1/** 2 * @license 3 * Copyright Google Inc. All Rights Reserved. 4 * 5 * Use of this source code is governed by an MIT-style license that can be 6 * found in the LICENSE file at https://angular.io/license 7 */ 8!function(e){e.ng=e.ng||{},e.ng.common=e.ng.common||{},e.ng.common.locales=e.ng.common.locales||{};const o=void 0;e.ng.common.locales.es=["es",[["a.\xa0m.","p.\xa0m."],o,o],o,[["D","L","M","X","J","V","S"],["dom.","lun.","mar.","mi\xe9.","jue.","vie.","s\xe1b."],["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"],["DO","LU","MA","MI","JU","VI","SA"]],o,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],o,[["a. C.","d. C."],o,["antes de Cristo","despu\xe9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1} {0}",o,"{1}, {0}",o],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[o,"$"],BRL:[o,"R$"],CNY:[o,"\xa5"],EGP:[],ESP:["\u20a7"],GBP:[o,"\xa3"],HKD:[o,"$"],ILS:[o,"\u20aa"],INR:[o,"\u20b9"],JPY:[o,"\xa5"],KRW:[o,"\u20a9"],MXN:[o,"$"],NZD:[o,"$"],RON:[o,"L"],THB:["\u0e3f"],TWD:[o,"NT$"],USD:["US$","$"],XAF:[],XCD:[o,"$"],XOF:[]},function(e){return 1===e?1:5},[[["del mediod\xeda","de la madrugada","de la ma\xf1ana","de la tarde","de la noche"],o,o],[["mediod\xeda","madrugada","ma\xf1ana","tarde","noche"],o,o],["12:00",["00:00","06:00"],["06:00","12:00"],["12:00","20:00"],["20:00","24:00"]]]]}("undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window);;var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"es"});(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"+Tre":function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return x})),n.d(e,"c",(function(){return E}));var r=n("5XID"),i=n("EM62"),o=n("nIj0"),s=n("mFH5"),a=n("5lCh"),u=n("TKFd"),c=n("sg/T");const l=["input"],h=function(){return{enterDuration:150}},d=["*"],f=new i.r("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),p=new i.r("mat-checkbox-click-action");let m=0;const g={provide:o.k,useExisting:Object(i.V)(()=>_),multi:!0};class y{}class b{constructor(t){this._elementRef=t}}const v=Object(s.u)(Object(s.p)(Object(s.q)(Object(s.r)(b))));let _=(()=>{class t extends v{constructor(t,e,n,r,o,s,a,u){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=r,this._clickAction=s,this._animationMode=a,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId=`mat-checkbox-${++m}`,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.o,this.indeterminateChange=new i.o,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(o)||0,this._focusMonitor.monitor(t,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),e.markForCheck()})}),this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=Object(r.c)(t)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=Object(r.c)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=Object(r.c)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new y;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${n}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(i.l),i.Qb(i.h),i.Qb(c.e),i.Qb(i.A),i.gc("tabindex"),i.Qb(p,8),i.Qb(a.a,8),i.Qb(f,8))},t.\u0275cmp=i.Kb({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(i.Oc(l,!0),i.Oc(s.k,!0)),2&t&&(i.yc(n=i.kc())&&(e._inputElement=n.first),i.yc(n=i.kc())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(i.Zb("id",e.id),i.Eb("tabindex",null),i.Gb("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i.Cb([g]),i.Ab],ngContentSelectors:d,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(i.sc(),i.Wb(0,"label",0,1),i.Wb(2,"div",2),i.Wb(3,"input",3,4),i.jc("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),i.Vb(),i.Wb(5,"div",5),i.Rb(6,"div",6),i.Vb(),i.Rb(7,"div",7),i.Wb(8,"div",8),i.mc(),i.Wb(9,"svg",9),i.Rb(10,"path",10),i.Vb(),i.lc(),i.Rb(11,"div",11),i.Vb(),i.Vb(),i.Wb(12,"span",12,13),i.jc("cdkObserveContent",(function(){return e._onLabelTextChange()})),i.Wb(14,"span",14),i.Jc(15,"\xa0"),i.Vb(),i.rc(16),i.Vb(),i.Vb()),2&t){const t=i.zc(1),n=i.zc(13);i.Eb("for",e.inputId),i.Db(2),i.Gb("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),i.Db(1),i.tc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),i.Eb("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),i.Db(2),i.tc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.uc(18,h))}},directives:[s.k,u.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}
850%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;
8transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const w={provide:o.j,useExisting:Object(i.V)(()=>E),multi:!0};let E=(()=>{class t extends o.a{}return t.\u0275fac=function(e){return S(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[i.Cb([w]),i.Ab]}),t})();const S=i.Yb(E);let T=(()=>{class t{}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)}}),t})(),x=(()=>{class t{}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[s.l,s.g,u.c,T],s.g,T]}),t})()},"/KFi":function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return a})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return l})),n.d(e,"__generator",(function(){return h})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return f})),n.d(e,"__read",(function(){return p})),n.d(e,"__spread",(function(){return m})),n.d(e,"__spreadArrays",(function(){return g})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return b})),n.d(e,"__asyncDelegator",(function(){return v})),n.d(e,"__asyncValues",(function(){return _}
8)),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return E})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return T})),n.d(e,"__classPrivateFieldSet",(function(){return x}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(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 i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function a(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function d(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function g(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function v(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function _(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=f(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function E(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function T(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function x(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},"/vgl":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}))},0:function(t,e,n){t.exports=n("zUnb")},"1MAX":function(t,e,n){"use strict";var r=n("dUuy"),i=n("i9P/"),o=n("sWLk"),s=n("qEfY"),a=n("eY+9"),u=n("/vgl"),c=n("X0qr");n.d(e,"a",(function(){return l}));const l=t=>{if(t&&"function"==typeof t[s.a])return l=t,t=>{const e=l[s.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(u.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,i.a),t);
8if(t&&"function"==typeof t[o.a])return e=t,t=>{const n=e[o.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(c.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,l}},"25CY":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"29Wa":function(t,e,n){"use strict";n.d(e,"a",(function(){return Y})),n.d(e,"b",(function(){return L})),n.d(e,"c",(function(){return Z})),n.d(e,"d",(function(){return F})),n.d(e,"e",(function(){return X})),n.d(e,"f",(function(){return q}));var r=n("2kYt"),i=n("EM62"),o=n("TKFd"),s=n("5XID"),a=n("mFH5"),u=n("ZTXN"),c=n("g6G6"),l=n("KTx3"),h=n("jIqt"),d=n("kuMc"),f=n("J+dc"),p=n("f7+R"),m=n("5lCh"),g=n("E5oP"),y=n("cZZj");const b=["underline"],v=["connectionContainer"],_=["inputContainer"],w=["label"];function E(t,e){1&t&&(i.Ub(0),i.Wb(1,"div",14),i.Rb(2,"div",15),i.Rb(3,"div",16),i.Rb(4,"div",17),i.Vb(),i.Wb(5,"div",18),i.Rb(6,"div",15),i.Rb(7,"div",16),i.Rb(8,"div",17),i.Vb(),i.Tb())}function S(t,e){1&t&&(i.Wb(0,"div",19),i.rc(1,1),i.Vb())}function T(t,e){if(1&t&&(i.Ub(0),i.rc(1,2),i.Wb(2,"span"),i.Jc(3),i.Vb(),i.Tb()),2&t){const t=i.nc(2);i.Db(3),i.Kc(t._control.placeholder)}}function x(t,e){1&t&&i.rc(0,3,["*ngSwitchCase","true"])}function C(t,e){1&t&&(i.Wb(0,"span",23),i.Jc(1," *"),i.Vb())}function k(t,e){if(1&t){const t=i.Xb();i.Wb(0,"label",20,21),i.jc("cdkObserveContent",(function(){return i.Ac(t),i.nc().updateOutlineGap()})),i.Ic(2,T,4,1,"ng-container",12),i.Ic(3,x,1,0,void 0,12),i.Ic(4,C,2,0,"span",22),i.Vb()}if(2&t){const t=i.nc();i.Gb("mat-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),i.tc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),i.Eb("for",t._control.id)("aria-owns",t._control.id),i.Db(2),i.tc("ngSwitchCase",!1),i.Db(1),i.tc("ngSwitchCase",!0),i.Db(1),i.tc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function O(t,e){1&t&&(i.Wb(0,"div",24),i.rc(1,4),i.Vb())}function I(t,e){if(1&t&&(i.Wb(0,"div",25,26),i.Rb(2,"span",27),i.Vb()),2&t){const t=i.nc();i.Db(2),i.Gb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function A(t,e){if(1&t&&(i.Wb(0,"div"),i.rc(1,5),i.Vb()),2&t){const t=i.nc();i.tc("@transitionMessages",t._subscriptAnimationState)}}function N(t,e){if(1&t&&(i.Wb(0,"div",31),i.Jc(1),i.Vb()),2&t){const t=i.nc(2);i.tc("id",t._hintLabelId),i.Db(1),i.Kc(t.hintLabel)}}function R(t,e){if(1&t&&(i.Wb(0,"div",28),i.Ic(1,N,2,2,"div",29),i.rc(2,6),i.Rb(3,"div",30),i.rc(4,7),i.Vb()),2&t){const t=i.nc();i.tc("@transitionMessages",t._subscriptAnimationState),i.Db(1),i.tc("ngIf",t.hintLabel)}}const P=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],D=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let j=0,L=(()=>{class t{constructor(){this.id=`mat-error-${j++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("id",e.id)},inputs:{id:"id"}}),t})();const M={transitionMessages:Object(p.n)("transitionMessages",[Object(p.k)("enter",Object(p.l)({opacity:1,transform:"translateY(0%)"})),Object(p.m)("void => enter",[Object(p.l)({opacity:0,transform:"translateY(-100%)"}),Object(p.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t}),t})();function V(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let U=0,B=(()=>{class t{constructor(){this.align="start",this.id=`mat-hint-${U++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(i.Eb("id",e.id)("align",null),i.Gb("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["mat-label"]]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["mat-placeholder"]]}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["","matPrefix",""]]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,selectors:[["","matSuffix",""]]}),t})(),W=0;class ${constructor(t){this._elementRef=t}}const Q=Object(a.p)($,"primary"),K=new i.r("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Y=new i.r("MatFormField");let Z=(()=>{class t extends Q{constructor(t,e,n,r,i,o,s,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=r,this._defaults=i,this._platform=o,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new u.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${W++}`,this._labelId=`mat-form-field-label-${W++}`,this._labelOptions=n||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=i&&i.appearance?i.appearance:"legacy",this._hideRequiredMarker=!(!i||null==i.hideRequiredMarker)&&i.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Object(s.c)(t)}
8get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Object(h.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(d.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(c.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(h.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(h.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(l.a)(this._label.nativeElement,"transitionend").pipe(Object(f.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(n=>{if("start"===n.align){if(t||this.hintLabel)throw V("start");t=n}else if("end"===n.align){if(e)throw V("end");e=n}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>
8t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const r=this._connectionContainerRef.nativeElement,i=r.querySelectorAll(".mat-form-field-outline-start"),o=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const i=r.getBoundingClientRect();if(0===i.width&&0===i.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(i),s=this._getStartEnd(t.children[0].getBoundingClientRect());let a=0;for(const e of t.children)a+=e.offsetWidth;e=Math.abs(s-o)-5,n=a>0?.75*a+10:0}for(let s=0;s<i.length;s++)i[s].style.width=`${e}px`;for(let s=0;s<o.length;s++)o[s].style.width=`${n}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(i.l),i.Qb(i.h),i.Qb(a.d,8),i.Qb(g.b,8),i.Qb(K,8),i.Qb(y.a),i.Qb(i.A),i.Qb(m.a,8))},t.\u0275cmp=i.Kb({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){var r;1&t&&(i.Ib(n,F,!0),i.Fc(n,F,!0),i.Ib(n,q,!0),i.Fc(n,q,!0),i.Ib(n,z,!0),i.Ib(n,L,!0),i.Ib(n,B,!0),i.Ib(n,G,!0),i.Ib(n,H,!0)),2&t&&(i.yc(r=i.kc())&&(e._controlNonStatic=r.first),i.yc(r=i.kc())&&(e._controlStatic=r.first),i.yc(r=i.kc())&&(e._labelChildNonStatic=r.first),i.yc(r=i.kc())&&(e._labelChildStatic=r.first),i.yc(r=i.kc())&&(e._placeholderChild=r.first),i.yc(r=i.kc())&&(e._errorChildren=r),i.yc(r=i.kc())&&(e._hintChildren=r),i.yc(r=i.kc())&&(e._prefixChildren=r),i.yc(r=i.kc())&&(e._suffixChildren=r))},viewQuery:function(t,e){var n;1&t&&(i.Oc(b,!0),i.Gc(v,!0),i.Oc(_,!0),i.Oc(w,!0)),2&t&&(i.yc(n=i.kc())&&(e.underlineRef=n.first),i.yc(n=i.kc())&&(e._connectionContainerRef=n.first),i.yc(n=i.kc())&&(e._inputContainerRef=n.first),i.yc(n=i.kc())&&(e._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&i.Gb("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat)("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i.Cb([{provide:Y,useExisting:t}]),i.Ab],ngContentSelectors:D,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(i.sc(P),i.Wb(0,"div",0),i.Wb(1,"div",1,2),i.jc("click",(function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)})),i.Ic(3,E,9,0,"ng-container",3),i.Ic(4,S,2,0,"div",4),i.Wb(5,"div",5,6),i.rc(7),i.Wb(8,"span",7),i.Ic(9,k,5,16,"label",8),i.Vb(),i.Vb(),i.Ic(10,O,2,0,"div",9),i.Vb(),i.Ic(11,I,3,4,"div",10),i.Wb(12,"div",11),i.Ic(13,A,2,1,"div",12),i.Ic(14,R,5,2,"div",13),i.Vb(),i.Vb()),2&t&&(i.Db(3),i.tc("ngIf","outline"==e.appearance),i.Db(1),i.tc("ngIf",e._prefixChildren.length),i.Db(5),i.tc("ngIf",e._hasFloatingLabel()),i.Db(1),i.tc("ngIf",e._suffixChildren.length),i.Db(1),i.tc("ngIf","outline"!=e.appearance),i.Db(1),i.tc("ngSwitch",e._getDisplayedMessages()),i.Db(1),i.tc("ngSwitchCase","error"),i.Db(1),i.tc("ngSwitchCase","hint"))}
8,directives:[r.m,r.n,r.o,o.a],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px
8)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[M.transitionMessages]},changeDetection:0}),t})(),X=(()=>{class t{}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[r.b,o.c]]}),t})()},"2gE8":function(t,e,n){"use strict";var r=n("IdLP"),i=n("ROBh"),o=n("GoAz"),s=n("YtkY"),a=n("A2S1"),u=n("TLy2"),c=n("EM62"),l=n("xBdF"),h=n("plFh"),d=n.n(h);function f(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}
8var p=n("WRB3"),m=function(){function t(t,e){this.code_=g(t),this.message_="Firebase Storage: "+e,this.serverResponse_=null,this.name_="FirebaseError"}return t.prototype.codeProp=function(){return this.code},t.prototype.codeEquals=function(t){return g(t)===this.codeProp()},t.prototype.serverResponseProp=function(){return this.serverResponse_},t.prototype.setServerResponseProp=function(t){this.serverResponse_=t},Object.defineProperty(t.prototype,"name",{get:function(){return this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"code",{get:function(){return this.code_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this.message_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!0,configurable:!0}),t}();function g(t){return"storage/"+t}function y(){return new m("unknown","An unknown error occurred, please check the error payload for server response.")}function b(){return new m("canceled","User canceled the upload/download.")}function v(){return new m("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function _(){return new m("no-download-url","The given file does not have any download URLs.")}function w(t,e,n){return new m("invalid-argument","Invalid argument in `"+e+"` at index "+t+": "+n)}function E(){return new m("app-deleted","The Firebase app was deleted.")}function S(t,e){return new m("invalid-format","String does not match format '"+t+"': "+e)}function T(t){throw new m("internal-error","Internal error: "+t)}var x={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function C(t){switch(t){case x.RAW:case x.BASE64:case x.BASE64URL:case x.DATA_URL:return;default:throw"Expected one of the event types: ["+x.RAW+", "+x.BASE64+", "+x.BASE64URL+", "+x.DATA_URL+"]."}}var k=function(){return function(t,e){this.data=t,this.contentType=e||null}}();function O(t,e){switch(t){case x.RAW:return new k(I(e));case x.BASE64:case x.BASE64URL:return new k(A(t,e));case x.DATA_URL:return new k((n=new N(e)).base64?A(x.BASE64,n.rest):function(t){var e;try{e=decodeURIComponent(t)}catch(n){throw S(x.DATA_URL,"Malformed data URL.")}return I(e)}(n.rest),function(t){return new N(t).contentType}(e))}var n;throw y()}function I(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>6,128|63&r);else if(55296==(64512&r))if(n<t.length-1&&56320==(64512&t.charCodeAt(n+1))){var i=r,o=t.charCodeAt(++n);e.push(240|(r=65536|(1023&i)<<10|1023&o)>>18,128|r>>12&63,128|r>>6&63,128|63&r)}else e.push(239,191,189);else 56320==(64512&r)?e.push(239,191,189):e.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(e)}function A(t,e){switch(t){case x.BASE64:var n=-1!==e.indexOf("-"),r=-1!==e.indexOf("_");if(n||r)throw S(t,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case x.BASE64URL:var i=-1!==e.indexOf("+"),o=-1!==e.indexOf("/");if(i||o)throw S(t,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var s;try{s=atob(e)}catch(c){throw S(t,"Invalid character found")}for(var a=new Uint8Array(s.length),u=0;u<s.length;u++)a[u]=s.charCodeAt(u);return a}var N=function(){return function(t){this.base64=!1,this.contentType=null;var e=t.match(/^data:([^,]+)?,/);if(null===e)throw S(x.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n,r=e[1]||null;null!=r&&(this.base64=(n=r).length>=";base64".length&&";base64"===n.substring(n.length-";base64".length),this.contentType=this.base64?r.substring(0,r.length-";base64".length):r),this.rest=t.substring(t.indexOf(",")+1)}}(),R={STATE_CHANGED:"state_changed"},P={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function D(t){switch(t){case"running":case"pausing":case"canceling":return P.RUNNING;case"paused":return P.PAUSED;case"success":return P.SUCCESS;case"canceled":return P.CANCELED;case"error":default:return P.ERROR}}function j(t){return null!=t}function L(t){return void 0!==t}function M(t){return"function"==typeof t}function F(t){return"object"==typeof t}function V(t){return F(t)&&null!==t}function U(t){return"string"==typeof t||t instanceof String}function B(t){return q(t)&&Number.isInteger(t)}function q(t){return"number"==typeof t||t instanceof Number}function z(t){return G()&&t instanceof Blob}function G(){return"undefined"!=typeof Blob}var H=function(t){return t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_E
8RROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT",t}({}),W=function(){function t(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=H.NO_ERROR,this.sendPromise_=new Promise((function(e){t.xhr_.addEventListener("abort",(function(){t.errorCode_=H.ABORT,e(t)})),t.xhr_.addEventListener("error",(function(){t.errorCode_=H.NETWORK_ERROR,e(t)})),t.xhr_.addEventListener("load",(function(){e(t)}))}))}return t.prototype.send=function(t,e,n,r){if(this.sent_)throw T("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(e,t,!0),j(r))for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return j(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},t.prototype.getErrorCode=function(){if(!this.sent_)throw T("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw T("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw T("cannot .getResponseText() before sending");return this.xhr_.responseText},t.prototype.abort=function(){this.xhr_.abort()},t.prototype.getResponseHeader=function(t){return this.xhr_.getResponseHeader(t)},t.prototype.addUploadProgressListener=function(t){j(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",t)},t.prototype.removeUploadProgressListener=function(t){j(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",t)},t}(),$=function(){function t(){}return t.prototype.createXhrIo=function(){return new W},t}();function Q(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function K(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Q();if(void 0!==n){for(var r=new n,i=0;i<t.length;i++)r.append(t[i]);return r.getBlob()}if(G())return new Blob(t);throw Error("This browser doesn't seem to support creating Blobs")}var Y=function(){function t(t,e){var n=0,r="";z(t)?(this.data_=t,n=t.size,r=t.type):t instanceof ArrayBuffer?(e?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),n=this.data_.length):t instanceof Uint8Array&&(e?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),n=t.length),this.size_=n,this.type_=r}return t.prototype.size=function(){return this.size_},t.prototype.type=function(){return this.type_},t.prototype.slice=function(e,n){if(z(this.data_)){var r=(o=e,s=n,(i=this.data_).webkitSlice?i.webkitSlice(o,s):i.mozSlice?i.mozSlice(o,s):i.slice?i.slice(o,s):null);return null===r?null:new t(r)}var i,o,s;return new t(new Uint8Array(this.data_.buffer,e,n-e),!0)},t.getBlob=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(G()){var r=e.map((function(e){return e instanceof t?e.data_:e}));return new t(K.apply(null,r))}var i=e.map((function(t){return U(t)?O(x.RAW,t).data:t.data_})),o=0;i.forEach((function(t){o+=t.byteLength}));var s=new Uint8Array(o),a=0;return i.forEach((function(t){for(var e=0;e<t.length;e++)s[a++]=t[e]})),new t(s,!0)},t.prototype.uploadData=function(){return this.data_},t}(),Z=function(){function t(t,e){this.bucket=t,this.path_=e}return Object.defineProperty(t.prototype,"path",{get:function(){return this.path_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!0,configurable:!0}),t.prototype.fullServerUrl=function(){var t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)},t.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},t.makeFromBucketSpec=function(e){var n;try{n=t.makeFromUrl(e)}catch(r){return new t(e,"")}if(""===n.path)return n;throw new m("invalid-default-bucket","Invalid default bucket '"+e+"'.")},t.makeFromUrl=function(e){var n=null,r=new RegExp("^gs://([A-Za-z0-9.\\-_]+)(/(.*))?$","i");function i(t){t.path_=decodeURIComponent(t.path)}for(var o="firebasestorage.googleapis.com".replace(/[.]/g,"\\."),s=[{regex:r,indices:{bucket:1,path:3},postModify:function(t){"/"===t.path.charAt(t.path.length-1)&&(t.path_=t.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+o+"/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-_]+)/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:i},{regex:new RegExp("^https?://(?:storage.googleapis.com|storage.cloud.google.com)/([A-Za-z0-9.\\-_]+)/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:i}],a=0;a<s.length;a++){var u=s[a],c=u.regex.exec(e);if(c){var l=c[u.indices.path];l||(l=""),n=new t(c[u.indices.bucket],l),u.postModify(n);break}}if(null==n)throw function(t){return new m("invalid-url","Invalid URL '"+t+"'.")}(e);return n},t}();function X(t){var e,n;try{e=JSON.parse(t)}catch(r){return null}return F(n=e)&&!Array.isArray(n)?e:null}function J(t,e){var n=e.split("/").filter((function(t){return t.length>0})).join("/");return 0===t.length?n:t+"/"+n}function tt(t){var e=t.lastIndexOf("/",t.length-2);return-1===e?t:t.slice(e+1)}function et(t){return"https://firebasestorage.googleapis.com/v0"+t}function nt(t){var e=encodeURIComponent,n="?";for(var r in t)t.hasOwnProperty(r)&&(n=n+(e(r)+"=")+e(t[r])+"&");return n.slice(0,-1)}function rt(t,e){return e}var it=function(){return function(t,e,n,r){this.server=t,this.local=e||t,this.writable=!!n,this.xform=r||rt}}(),ot=null;function st(t,e,n){var r=X(e);return null===r?null:function(t,e,n){for(var r={type:"file"},i=n.length,o=0;o<i;o++){var s=n[o];r[s.local]=s.xform(r,e[s.server])}return function(t,e){Object.defineProperty(t,"ref",{get:function(){var n=new Z(t.bucket,t.fullPath);return e.makeStorageReference(n)}})}(r,t),r}(t,r,n)}function at(t,e){for(var n={},r=e.length,i=0;i<r;i++){var o=e[i];o.writable&&(n[o.server]=t[o.local])}return JSON.stringify(n)}function ut(t){if(!F(t)||!t)throw"Expected Metadata object.";for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];if("customMetadata"===e){if(!F(n))throw"Expected object for 'customMetadata' mapping."}else if(V(n))throw"Mapping for '"+e+"' cannot be an object."}}function ct(t){if(!F(t)||!t)throw"Expected ListOptions object.";for(var e in t)if("maxResults"===e){if(!B(t.maxResults)||t.maxResults<=0)throw"Expected maxResults to be a positive number.";if(t.maxResults>1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if("pageToken"!==e)throw"Unknown option: "+e;if(t.pageToken&&!U(t.pageToken))throw"Expected pageToken to be string."}}var lt=function(){return function(t,e,n,r){this.url=t,this.method=e,this.handler=n,this.timeout=r,this.urlParam
8s={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}();function ht(t){if(!t)throw y()}function dt(t,e){return function(n,r){var i=st(t,r,e);return ht(null!==i),i}}function ft(t){return function(e,n){var r;return(r=401===e.getStatus()?new m("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===e.getStatus()?new m("quota-exceeded","Quota for bucket '"+t.bucket+"' exceeded, please view quota on https://firebase.google.com/pricing/."):403===e.getStatus()?new m("unauthorized","User does not have permission to access '"+t.path+"'."):n).setServerResponseProp(n.serverResponseProp()),r}}function pt(t){var e=ft(t);return function(n,r){var i=e(n,r);return 404===n.getStatus()&&(i=new m("object-not-found","Object '"+t.path+"' does not exist.")),i.setServerResponseProp(r.serverResponseProp()),i}}function mt(t,e,n){var r=et(e.fullServerUrl()),i=t.maxOperationRetryTime(),o=new lt(r,"GET",dt(t,n),i);return o.errorHandler=pt(e),o}function gt(t,e,n,r,i){var o={};o.prefix=e.isRoot?"":e.path+"/",n&&n.length>0&&(o.delimiter=n),r&&(o.pageToken=r),i&&(o.maxResults=i);var s=et(e.bucketOnlyServerUrl()),a=t.maxOperationRetryTime(),u=new lt(s,"GET",function(t,e){return function(n,r){var i=function(t,e,n){var r=X(n);return null===r?null:function(t,e,n){var r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n.prefixes)for(var i=0,o=n.prefixes;i<o.length;i++){var s=o[i].replace(/\/$/,""),a=t.makeStorageReference(new Z(e,s));r.prefixes.push(a)}if(n.items)for(var u=0,c=n.items;u<c.length;u++)a=t.makeStorageReference(new Z(e,c[u].name)),r.items.push(a);return r}(t,e,r)}(t,e,r);return ht(null!==i),i}}(t,e.bucket),a);return u.urlParams=o,u.errorHandler=ft(e),u}function yt(t,e,n){var r=et(e.fullServerUrl()),i=t.maxOperationRetryTime(),o=new lt(r,"GET",function(t,e){return function(n,r){var i=st(t,r,e);return ht(null!==i),function(t,e){var n=X(e);if(null===n)return null;if(!U(n.downloadTokens))return null;var r=n.downloadTokens;if(0===r.length)return null;var i=encodeURIComponent;return r.split(",").map((function(e){var n=t.fullPath;return et("/b/"+i(t.bucket)+"/o/"+i(n))+nt({alt:"media",token:e})}))[0]}(i,r)}}(t,n),i);return o.errorHandler=pt(e),o}function bt(t,e,n,r){var i=et(e.fullServerUrl()),o=at(n,r),s=t.maxOperationRetryTime(),a=new lt(i,"PATCH",dt(t,r),s);return a.headers={"Content-Type":"application/json; charset=utf-8"},a.body=o,a.errorHandler=pt(e),a}function vt(t,e){var n=et(e.fullServerUrl()),r=t.maxOperationRetryTime(),i=new lt(n,"DELETE",(function(t,e){}),r);return i.successCodes=[200,204],i.errorHandler=pt(e),i}function _t(t,e,n){var r=Object.assign({},n);return r.fullPath=t.path,r.size=e.size(),r.contentType||(r.contentType=function(t,e){return e&&e.type()||"application/octet-stream"}(0,e)),r}var wt=function(){return function(t,e,n,r){this.current=t,this.total=e,this.finalized=!!n,this.metadata=r||null}}();function Et(t,e){var n=null;try{n=t.getResponseHeader("X-Goog-Upload-Status")}catch(r){ht(!1)}return ht(!!n&&-1!==(e||["active"]).indexOf(n)),n}var St=function(){return function(t,e,n){if(M(t)||j(e)||j(n))this.next=t,this.error=e||null,this.complete=n||null;else{var r=t;this.next=r.next||null,this.error=r.error||null,this.complete=r.complete||null}}}(),Tt=function(){return function(t,e,n,r,i,o){this.bytesTransferred=t,this.totalBytes=e,this.state=n,this.metadata=r,this.task=i,this.ref=o}}();function xt(t,e,n){for(var r=e.length,i=e.length,o=0;o<e.length;o++)if(e[o].optional){r=o;break}var s,a,u,c;if(!(r<=n.length&&n.length<=i))throw(s=r)===(a=i)?(u=s,c=1===s?"argument":"arguments"):(u="between "+s+" and "+a,c="arguments"),new m("invalid-argument-count","Invalid argument count in `"+t+"`: Expected "+u+" "+c+", received "+n.length+".");for(o=0;o<n.length;o++)try{e[o].validator(n[o])}catch(l){throw l instanceof Error?w(o,t,l.message):w(o,t,l)}}var Ct=function(){return function(t,e){var n=this;this.validator=function(e){n.optional&&!L(e)||t(e)},this.optional=!!e}}();function kt(t,e){function n(t){if(!U(t))throw"Expected string."}var r,i,o;return t?(i=n,o=t,r=function(t){i(t),o(t)}):r=n,new Ct(r,e)}function Ot(){return new Ct((function(t){if(!(t instanceof Uint8Array||t instanceof ArrayBuffer||G()&&t instanceof Blob))throw"Expected Blob or File."}))}function It(t){return new Ct(ut,t)}function At(t){return new Ct(ct,t)}function Nt(){return new Ct((function(t){if(!(q(t)&&t>=0))throw"Expected a number 0 or greater."}))}function Rt(t,e){return new Ct((function(e){if(!(null===e||j(e)&&e instanceof Object))throw"Expected an Object.";null!=t&&t(e)}),e)}function Pt(t){return new Ct((function(t){if(null!==t&&!M(t))throw"Expected a Function."}),t)}function Dt(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];Promise.resolve().then((function(){return t.apply(void 0,e)}))}}var jt=function(){function t(t,e,n,r,i,o){var s=this;void 0===o&&(o=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=t,this.authWrapper_=e,this.location_=n,this.blob_=i,this.metadata_=o,this.mappings_=r,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_="running",this.errorHandler_=function(t){s.request_=null,s.chunkMultiplier_=1,t.codeEquals("canceled")?(s.needToFetchStatus_=!0,s.completeTransitions_()):(s.error_=t,s.transition_("error"))},this.metadataErrorHandler_=function(t){s.request_=null,t.codeEquals("canceled")?s.completeTransitions_():(s.error_=t,s.transition_("error"))},this.promise_=new Promise((function(t,e){s.resolve_=t,s.reject_=e,s.start_()}
8)),this.promise_.then(null,(function(){}))}return t.prototype.makeProgressCallback_=function(){var t=this,e=this.transferred_;return function(n){return t.updateProgress_(e+n)}},t.prototype.shouldDoResumable_=function(t){return t.size()>262144},t.prototype.start_=function(){"running"===this.state_&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},t.prototype.resolveToken_=function(t){var e=this;this.authWrapper_.getAuthToken().then((function(n){switch(e.state_){case"running":t(n);break;case"canceling":e.transition_("canceled");break;case"pausing":e.transition_("paused")}}))},t.prototype.createResumable_=function(){var t=this;this.resolveToken_((function(e){var n=function(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),s=_t(e,r,i),a={name:s.fullPath},u=et(o),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":s.contentType,"Content-Type":"application/json; charset=utf-8"},l=at(s,n),h=t.maxUploadRetryTime(),d=new lt(u,"POST",(function(t){var e;Et(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){ht(!1)}return ht(U(e)),e}),h);return d.urlParams=a,d.headers=c,d.body=l,d.errorHandler=ft(e),d}(t.authWrapper_,t.location_,t.mappings_,t.blob_,t.metadata_),r=t.authWrapper_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.uploadUrl_=e,t.needToFetchStatus_=!1,t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.fetchStatus_=function(){var t=this,e=this.uploadUrl_;this.resolveToken_((function(n){var r=function(t,e,n,r){var i=t.maxUploadRetryTime(),o=new lt(n,"POST",(function(t){var e=Et(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){ht(!1)}n||ht(!1);var i=Number(n);return ht(!isNaN(i)),new wt(i,r.size(),"final"===e)}),i);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=ft(e),o}(t.authWrapper_,t.location_,e,t.blob_),i=t.authWrapper_.makeRequest(r,n);t.request_=i,i.getPromise().then((function(e){e=e,t.request_=null,t.updateProgress_(e.current),t.needToFetchStatus_=!1,e.finalized&&(t.needToFetchMetadata_=!0),t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.continueUpload_=function(){var t=this,e=262144*this.chunkMultiplier_,n=new wt(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_((function(i){var o;try{o=function(t,e,n,r,i,o,s,a){var u=new wt(0,0);if(s?(u.current=s.current,u.total=s.total):(u.current=0,u.total=r.size()),r.size()!==u.total)throw new m("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.");var c=u.total-u.current,l=c;i>0&&(l=Math.min(l,i));var h=u.current,d={"X-Goog-Upload-Command":l===c?"upload, finalize":"upload","X-Goog-Upload-Offset":u.current},f=r.slice(h,h+l);if(null===f)throw v();var p=e.maxUploadRetryTime(),g=new lt(n,"POST",(function(t,n){var i,s=Et(t,["active","final"]),a=u.current+l,c=r.size();return i="final"===s?dt(e,o)(t,n):null,new wt(a,c,"final"===s,i)}),p);return g.headers=d,g.body=f.uploadData(),g.progressCallback=a||null,g.errorHandler=ft(t),g}(t.location_,t.authWrapper_,r,t.blob_,e,t.mappings_,n,t.makeProgressCallback_())}catch(a){return t.error_=a,void t.transition_("error")}var s=t.authWrapper_.makeRequest(o,i);t.request_=s,s.getPromise().then((function(e){t.increaseMultiplier_(),t.request_=null,t.updateProgress_(e.current),e.finalized?(t.metadata_=e.metadata,t.transition_("success")):t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},t.prototype.fetchMetadata_=function(){var t=this;this.resolveToken_((function(e){var n=mt(t.authWrapper_,t.location_,t.mappings_),r=t.authWrapper_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.metadata_=e,t.transition_("success")}),t.metadataErrorHandler_)}))},t.prototype.oneShotUpload_=function(){var t=this;this.resolveToken_((function(e){var n=function(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),s={"X-Goog-Upload-Protocol":"multipart"},a=function(){for(var t="",e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}();s["Content-Type"]="multipart/related; boundary="+a;var u=_t(e,r,i),c=at(u,n),l=Y.getBlob("--"+a+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+c+"\r\n--"+a+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",r,"\r\n--"
8+a+"--");if(null===l)throw v();var h={name:u.fullPath},d=et(o),f=t.maxUploadRetryTime(),p=new lt(d,"POST",dt(t,n),f);return p.urlParams=h,p.headers=s,p.body=l.uploadData(),p.errorHandler=ft(e),p}(t.authWrapper_,t.location_,t.mappings_,t.blob_,t.metadata_),r=t.authWrapper_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.metadata_=e,t.updateProgress_(t.blob_.size()),t.transition_("success")}),t.errorHandler_)}))},t.prototype.updateProgress_=function(t){var e=this.transferred_;this.transferred_=t,this.transferred_!==e&&this.notifyObservers_()},t.prototype.transition_=function(t){if(this.state_!==t)switch(t){case"canceling":case"pausing":this.state_=t,null!==this.request_&&this.request_.cancel();break;case"running":var e="paused"===this.state_;this.state_=t,e&&(this.notifyObservers_(),this.start_());break;case"paused":this.state_=t,this.notifyObservers_();break;case"canceled":this.error_=b(),this.state_=t,this.notifyObservers_();break;case"error":case"success":this.state_=t,this.notifyObservers_()}},t.prototype.completeTransitions_=function(){switch(this.state_){case"pausing":this.transition_("paused");break;case"canceling":this.transition_("canceled");break;case"running":this.start_()}},Object.defineProperty(t.prototype,"snapshot",{get:function(){var t=D(this.state_);return new Tt(this.transferred_,this.blob_.size(),t,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),t.prototype.on=function(t,e,n,r){function i(){if(t!==R.STATE_CHANGED)throw"Expected one of the event types: ["+R.STATE_CHANGED+"]."}var o="Expected a function or an Object with one of `next`, `error`, `complete` properties.",s=Pt(!0).validator,a=Rt(null,!0).validator;function u(t){try{return void s(t)}catch(e){}try{if(a(t),!(L(t.next)||L(t.error)||L(t.complete)))throw"";return}catch(e){throw o}}var c=[kt(i),Rt(u,!0),Pt(!0),Pt(!0)];xt("on",c,arguments);var l=this;function h(t){return function(e,n,i){null!==t&&xt("on",t,arguments);var o=new St(e,n,r);return l.addObserver_(o),function(){l.removeObserver_(o)}}}function d(t){if(null===t)throw o;u(t)}var f=[Rt(d),Pt(!0),Pt(!0)],p=!(L(e)||L(n)||L(r));return p?h(f):h(null)(e,n,r)},t.prototype.then=function(t,e){return this.promise_.then(t,e)},t.prototype.catch=function(t){return this.then(null,t)},t.prototype.addObserver_=function(t){this.observers_.push(t),this.notifyObserver_(t)},t.prototype.removeObserver_=function(t){var e=this.observers_.indexOf(t);-1!==e&&this.observers_.splice(e,1)},t.prototype.notifyObservers_=function(){var t=this;this.finishPromise_(),this.observers_.slice().forEach((function(e){t.notifyObserver_(e)}))},t.prototype.finishPromise_=function(){if(null!==this.resolve_){var t=!0;switch(D(this.state_)){case P.SUCCESS:Dt(this.resolve_.bind(null,this.snapshot))();break;case P.CANCELED:case P.ERROR:Dt(this.reject_.bind(null,this.error_))();break;default:t=!1}t&&(this.resolve_=null,this.reject_=null)}},t.prototype.notifyObserver_=function(t){switch(D(this.state_)){case P.RUNNING:case P.PAUSED:t.next&&Dt(t.next.bind(t,this.snapshot))();break;case P.SUCCESS:t.complete&&Dt(t.complete.bind(t))();break;case P.CANCELED:case P.ERROR:t.error&&Dt(t.error.bind(t,this.error_))();break;default:t.error&&Dt(t.error.bind(t,this.error_))()}},t.prototype.resume=function(){xt("resume",[],arguments);var t="paused"===this.state_||"pausing"===this.state_;return t&&this.transition_("running"),t},t.prototype.pause=function(){xt("pause",[],arguments);var t="running"===this.state_;return t&&this.transition_("pausing"),t},t.prototype.cancel=function(){xt("cancel",[],arguments);var t="running"===this.state_||"pausing"===this.state_;return t&&this.transition_("canceling"),t},t}(),Lt=function(){function t(t,e){this.authWrapper=t,this.location=e instanceof Z?e:Z.makeFromUrl(e)}return t.prototype.toString=function(){return xt("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},t.prototype.newRef=function(e,n){return new t(e,n)},t.prototype.mappings=function(){return function(){if(ot)return ot;var t=[];t.push(new it("bucket")),t.push(new it("generation")),t.push(new it("metageneration")),t.push(new it("name","fullPath",!0));var e=new it("name");e.xform=function(t,e){return function(t){return!U(t)||t.length<2?t:tt(t)}(e)},t.push(e);var n=new it("size");return n.xform=function(t,e){return j(e)?Number(e):e},t.push(n),t.push(new it("timeCreated")),t.push(new it("updated")),t.push(new it("md5Hash",null,!0)),t.push(new it("cacheControl",null,!0)),t.push(new it("contentDisposition",null,!0)),t.push(new it("contentEncoding",null,!0)),t.push(new it("contentLanguage",null,!0)),t.push(new it("contentType",null,!0)),t.push(new it("metadata","customMetadata",!0)),ot=t}()},t.prototype.child=function(t){xt("child",[kt()],arguments);var e=J(this.location.path,t),n=new Z(this.location.bucket,e);return this.newRef(this.authWrapper,n)},Object.defineProperty(t.prototype,"parent",{get:function(){var t=function(t){if(0===t.length)return null;var e=t.lastIndexOf("/");return-1===e?"":t.slice(0,e)}(this.location.path);if(null===t)return null;var e=new Z(this.location.bucket,t);return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){var t=new Z(this.location.bucket,"");return this.newRef(this.authWrapper,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return tt(this.location.path)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storage",{get:function(){return this.authWrapper.service()},enumerable:!0,configurable:!0}),t.prototype.put=function(t,e){return void 0===e&&(e=null),xt("put",[Ot(),It(!0)],arguments),this.throwIfRoot_("put"),new jt(this,this.authWrapper,this.location,this.mappings(),new Y(t),e)},t.prototype.putString=function(t,e,n){void 0===e&&(e=x.RAW),xt("putString",[kt(),kt(C,!0),It(!0)],arguments),this.throwIfRoot_("putString");var r=O(e,t),i=Object.assign({},n);return!j(i.contentType)&&j(r.contentType)&&(i.contentType=r.contentType),new jt(this,this.authWrapper,this.location,this.mappings(),new Y(r.data,!0),i)},t.prototype.delete=function(){var t=this;return xt("delete",[],arguments),this.throwIfRoot_("delete"),this.authWrapper.getAuthToken().then((function(e){var n=vt(t.authWrapper,t.location);
8return t.authWrapper.makeRequest(n,e).getPromise()}))},t.prototype.listAll=function(){xt("listAll",[],arguments);var t={prefixes:[],items:[]};return this.listAllHelper(t).then((function(){return t}))},t.prototype.listAllHelper=function(t,e){return n=this,void 0,i=function(){var n,r,i;return function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(o){switch(o.label){case 0:return[4,this.list({pageToken:e})];case 1:return n=o.sent(),(r=t.prefixes).push.apply(r,n.prefixes),(i=t.items).push.apply(i,n.items),null==n.nextPageToken?[3,3]:[4,this.listAllHelper(t,n.nextPageToken)];case 2:o.sent(),o.label=3;case 3:return[2]}}
8))},new((r=void 0)||(r=Promise))((function(t,e){function o(t){try{a(i.next(t))}catch(n){e(n)}}function s(t){try{a(i.throw(t))}catch(n){e(n)}}function a(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(t){t(n)}))).then(o,s)}a((i=i.apply(n,[])).next())}));var n,r,i},t.prototype.list=function(t){xt("list",[At(!0)],arguments);var e=this;return this.authWrapper.getAuthToken().then((function(n){var r=t||{},i=gt(e.authWrapper,e.location,"/",r.pageToken,r.maxResults);return e.authWrapper.makeRequest(i,n).getPromise()}))},t.prototype.getMetadata=function(){var t=this;return xt("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.authWrapper.getAuthToken().then((function(e){var n=mt(t.authWrapper,t.location,t.mappings());return t.authWrapper.makeRequest(n,e).getPromise()}))},t.prototype.updateMetadata=function(t){var e=this;return xt("updateMetadata",[It()],arguments),this.throwIfRoot_("updateMetadata"),this.authWrapper.getAuthToken().then((function(n){var r=bt(e.authWrapper,e.location,t,e.mappings());return e.authWrapper.makeRequest(r,n).getPromise()}))},t.prototype.getDownloadURL=function(){var t=this;return xt("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.authWrapper.getAuthToken().then((function(e){var n=yt(t.authWrapper,t.location,t.mappings());return t.authWrapper.makeRequest(n,e).getPromise().then((function(t){if(null===t)throw _();return t}))}))},t.prototype.throwIfRoot_=function(t){if(""===this.location.path)throw function(t){return new m("invalid-root-operation","The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(t)},t}(),Mt=function(){function t(t){this.promise_=Promise.reject(t)}return t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){},t}(),Ft=function(){function t(){this.map=new Map,this.id=-9007199254740991}return t.prototype.addRequest=function(t){var e=this,n=this.id;this.id++,this.map.set(n,t),t.getPromise().then((function(){return e.map.delete(n)}),(function(){return e.map.delete(n)}))},t.prototype.clear=function(){this.map.forEach((function(t){t&&t.cancel(!0)})),this.map.clear()},t}(),Vt=function(){function t(e,n,r,i,o,s){var a;if(this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=e,null!==this.app_){var u=this.app_.options;j(u)&&(this.bucket_=t.extractBucket_(u),this.appId_=null!==(a=u.appId)&&void 0!==a?a:null)}this.authProvider_=n,this.storageRefMaker_=r,this.requestMaker_=i,this.pool_=s,this.service_=o,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requestMap_=new Ft}return t.extractBucket_=function(t){var e=t.storageBucket||null;return null==e?null:Z.makeFromBucketSpec(e).bucket},t.prototype.getAuthToken=function(){var t=this.authProvider_.getImmediate({optional:!0});return t?t.getToken().then((function(t){return null!==t?t.accessToken:null}),(function(){return null})):Promise.resolve(null)},t.prototype.bucket=function(){if(this.deleted_)throw E();return this.bucket_},t.prototype.service=function(){return this.service_},t.prototype.makeStorageReference=function(t){return this.storageRefMaker_(this,t)},t.prototype.makeRequest=function(t,e){if(this.deleted_)return new Mt(E());var n=this.requestMaker_(t,this.appId_,e,this.pool_);return this.requestMap_.addRequest(n),n},t.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requestMap_.clear()},t.prototype.maxUploadRetryTime=function(){return this.maxUploadRetryTime_},t.prototype.setMaxUploadRetryTime=function(t){this.maxUploadRetryTime_=t},t.prototype.maxOperationRetryTime=function(){return this.maxOperationRetryTime_},t.prototype.setMaxOperationRetryTime=function(t){this.maxOperationRetryTime_=t},t}(),Ut=function(){function t(t,e,n,r,i,o,s,a,u,c,l){var h=this;this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=t,this.method_=e,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=s,this.errorCallback_=a,this.progressCallback_=c,this.timeout_=u,this.pool_=l,this.promise_=new Promise((function(t,e){h.resolve_=t,h.reject_=e,h.start_()}
8))}return t.prototype.start_=function(){var t=this;function e(e,n){var r,i=t.resolve_,o=t.reject_,s=n.xhr;if(n.wasSuccessCode)try{var a=t.callback_(s,s.getResponseText());L(a)?i(a):i()}catch(u){o(u)}else null!==s?((r=y()).setServerResponseProp(s.getResponseText()),o(t.errorCallback_?t.errorCallback_(s,r):r)):o(r=n.canceled?t.appDelete_?E():b():new m("retry-limit-exceeded","Max retry time for operation exceeded, please try again."))}this.canceled_?e(0,new Bt(!1,null,!0)):this.backoffId_=function(e,n,r){var i=1,o=null,s=!1,a=0;function u(){return 2===a}var c=!1;function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];c||(c=!0,n.apply(null,t))}function h(e){o=setTimeout((function(){o=null,function(e,n){if(n)e(!1,new Bt(!1,null,!0));else{var r=t.pool_.createXhrIo();t.pendingXhr_=r,null!==t.progressCallback_&&r.addUploadProgressListener(i),r.send(t.url_,t.method_,t.body_,t.headers_).then((function(n){null!==t.progressCallback_&&n.removeUploadProgressListener(i),t.pendingXhr_=null;var r=(n=n).getErrorCode()===H.NO_ERROR,o=n.getStatus();if(r&&!t.isRetryStatusCode_(o)){var s=-1!==t.successCodes_.indexOf(o);e(!0,new Bt(s,n))}else{var a=n.getErrorCode()===H.ABORT;e(!1,new Bt(!1,null,a))}}))}function i(e){null!==t.progressCallback_&&t.progressCallback_(e.loaded,e.lengthComputable?e.total:-1)}}(d,u())}),e)}function d(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!c)if(t)l.call.apply(l,f([null,t],e));else{var r,o=u()||s;o?l.call.apply(l,f([null,t],e)):(i<64&&(i*=2),1===a?(a=2,r=0):r=1e3*(i+Math.random()),h(r))}}var p=!1;function m(t){p||(p=!0,c||(null!==o?(t||(a=2),clearTimeout(o),h(0)):t||(a=1)))}return h(0),setTimeout((function(){s=!0,m(!0)}),r),m}(0,e,this.timeout_)},t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){this.canceled_=!0,this.appDelete_=t||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},t.prototype.isRetryStatusCode_=function(t){var e=t>=500&&t<600,n=-1!==[408,429].indexOf(t),r=-1!==this.additionalRetryCodes_.indexOf(t);return e||n||r},t}(),Bt=function(){return function(t,e,n){this.wasSuccessCode=t,this.xhr=e,this.canceled=!!n}}();function qt(t,e,n,r){var i=nt(t.urlParams),o=t.url+i,s=Object.assign({},t.headers);return function(t,e){e&&(t["X-Firebase-GMPID"]=e)}(s,e),function(t,e){null!==e&&e.length>0&&(t.Authorization="Firebase "+e)}(s,n),function(t){t["X-Firebase-Storage-Version"]="webjs/"+(void 0!==d.a?d.a.SDK_VERSION:"AppManager")}(s),new Ut(o,t.method,s,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,r)}var zt,Gt,Ht=function(){function t(t,e,n,r){if(this.bucket_=null,this.authWrapper_=new Vt(t,e,(function(t,e){return new Lt(t,e)}),qt,this,n),this.app_=t,null!=r)this.bucket_=Z.makeFromBucketSpec(r);else{var i=this.authWrapper_.bucket();null!=i&&(this.bucket_=new Z(i,""))}this.internals_=new Wt(this)}return t.prototype.ref=function(t){function e(t){if("string"!=typeof t)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(t))throw"Expected child path but got a URL, use refFromURL instead."}if(xt("ref",[kt(e,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new Lt(this.authWrapper_,this.bucket_);return null!=t?n.child(t):n},t.prototype.refFromURL=function(t){function e(t){if("string"!=typeof t)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(t))throw"Expected full URL but got a child path, use ref instead.";try{Z.makeFromUrl(t)}catch(e){throw"Expected valid full URL but got an invalid one."}}return xt("refFromURL",[kt(e,!1)],arguments),new Lt(this.authWrapper_,t)},Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),t.prototype.setMaxUploadRetryTime=function(t){xt("setMaxUploadRetryTime",[Nt()],arguments),this.authWrapper_.setMaxUploadRetryTime(t)},t.prototype.setMaxOperationRetryTime=function(t){xt("setMaxOperationRetryTime",[Nt()],arguments),this.authWrapper_.setMaxOperationRetryTime(t)},Object.defineProperty(t.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!0,configurable:!0}),t}(),Wt=function(){function t(t){this.service_=t}return t.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),Promise.resolve()},t}();function $t(t){const e=function(t){return new r.a(e=>(t.on("state_changed",t=>e.next(t),t=>e.error(t),()=>e.complete()),()=>t.cancel()))}(t);return{task:t,then:t.then.bind(t),catch:t.catch.bind(t),pause:t.pause.bind(t),cancel:t.cancel.bind(t),resume:t.resume.bind(t),snapshotChanges:()=>e,percentageChanges:()=>e.pipe(Object(s.a)(t=>t.bytesTransferred/t.totalBytes*100))}}function Qt(t,e,n){return{getDownloadURL:()=>Object(i.a)(void 0).pipe(Object(a.b)(e.outsideAngular),Object(u.a)(()=>t.getDownloadURL()),n),getMetadata:()=>Object(i.a)().pipe(Object(a.b)(e.outsideAngular),Object(u.a)(()=>t.getMetadata()),n),delete:()=>Object(o.a)(t.delete()),child:r=>Qt(t.child(r),e,n),updateMetadata:e=>Object(o.a)(t.updateMetadata(e)),put:(e,n)=>$t(t.put(e,n)),putString:(e,n,r)=>$t(t.putString(e,n,r)),listAll:()=>Object(o.a)(t.listAll())}}Gt={TaskState:P,TaskEvent:R,StringFormat:x,Storage:Ht,Reference:Lt}
8,(zt=d.a).INTERNAL.registerComponent(new p.Component("storage",(function(t,e){var n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal");return new Ht(n,r,new $,e)}),"PUBLIC").setServiceProps(Gt).setMultipleInstances(!0)),zt.registerVersion("@firebase/storage","0.3.33"),n.d(e,"a",(function(){return Yt})),n.d(e,"b",(function(){return Zt}));const Kt=new c.r("angularfire2.storageBucket");let Yt=(()=>{class t{constructor(t,e,n,r,i){this.schedulers=new l.d(i),this.keepUnstableUntilFirst=Object(l.f)(this.schedulers,r),this.storage=i.runOutsideAngular(()=>Object(l.e)(t,i,e).storage(n||void 0))}ref(t){return Qt(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst)}upload(t,e,n){return Qt(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst).put(e,n)}}return t.\u0275fac=function(e){return new(e||t)(c.fc(l.c),c.fc(l.b,8),c.fc(Kt,8),c.fc(c.C),c.fc(c.A))},t.\u0275prov=Object(c.Mb)({factory:function(){return new t(Object(c.fc)(l.c),Object(c.fc)(l.b,8),Object(c.fc)(Kt,8),Object(c.fc)(c.C),Object(c.fc)(c.A))},token:t,providedIn:"any"}),t})(),Zt=(()=>{class t{}return t.\u0275mod=c.Ob({type:t}),t.\u0275inj=c.Nb({factory:function(e){return new(e||t)},providers:[Yt]}),t})()},"2kYt":function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return Tt})),n.d(e,"c",(function(){return St})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return _t})),n.d(e,"f",(function(){return E})),n.d(e,"g",(function(){return wt})),n.d(e,"h",(function(){return h})),n.d(e,"i",(function(){return S})),n.d(e,"j",(function(){return b})),n.d(e,"k",(function(){return at})),n.d(e,"l",(function(){return ct})),n.d(e,"m",(function(){return ht})),n.d(e,"n",(function(){return mt})),n.d(e,"o",(function(){return gt})),n.d(e,"p",(function(){return yt})),n.d(e,"q",(function(){return bt})),n.d(e,"r",(function(){return w})),n.d(e,"s",(function(){return c})),n.d(e,"t",(function(){return Ot})),n.d(e,"u",(function(){return Ct})),n.d(e,"v",(function(){return kt})),n.d(e,"w",(function(){return a})),n.d(e,"x",(function(){return xt})),n.d(e,"y",(function(){return o})),n.d(e,"z",(function(){return st})),n.d(e,"A",(function(){return s}));var r=n("EM62");let i=null;function o(){return i}function s(t){i||(i=t)}class a{}const u=new r.r("DocumentToken");let c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Mb)({factory:l,token:t,providedIn:"platform"}),t})();function l(){return Object(r.fc)(d)}const h=new r.r("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=o().getLocation(),this._history=o().getHistory()}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){o().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){o().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.fc(u))},t.\u0275prov=Object(r.Mb)({factory:p,token:t,providedIn:"platform"}),t})();function f(){return!!window.history.pushState}function p(){return new d(Object(r.fc)(u))}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 y(t){return t&&"?"!==t[0]?"?"+t:t}let b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Mb)({factory:v,token:t,providedIn:"root"}),t})();function v(t){const e=Object(r.fc)(u).location;return new w(Object(r.fc)(c),e&&e.origin||"")}const _=new r.r("appBaseHref");let w=(()=>{class t extends b{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.on
8HashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+y(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const i=this.prepareExternalUrl(n+y(r));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){const i=this.prepareExternalUrl(n+y(r));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.fc(c),r.fc(_,8))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})(),E=(()=>{class t extends b{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 i=this.prepareExternalUrl(n+y(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){let i=this.prepareExternalUrl(n+y(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.fc(c),r.fc(_,8))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})(),S=(()=>{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(x(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+y(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,x(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+y(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),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.fc(b),r.fc(c))},t.normalizeQueryParams=y,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=Object(r.Mb)({factory:T,token:t,providedIn:"root"}),t})();function T(){return new S(Object(r.fc)(b),Object(r.fc)(c))}function x(t){return t.replace(/\/index.html$/,"")}const C={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},k=function(){var t={Decimal:0,Percent:1,Currency:2,Scientific:3};return t[t.Decimal]="Decimal",t[t.Percent]="Percent",t[t.Currency]="Currency",t[t.Scie
8ntific]="Scientific",t}(),O=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),I=function(){var t={Format:0,Standalone:1};return t[t.Format]="Format",t[t.Standalone]="Standalone",t}(),A=function(){var t={Narrow:0,Abbreviated:1,Wide:2,Short:3};return t[t.Narrow]="Narrow",t[t.Abbreviated]="Abbreviated",t[t.Wide]="Wide",t[t.Short]="Short",t}(),N=function(){var t={Short:0,Medium:1,Long:2,Full:3};return t[t.Short]="Short",t[t.Medium]="Medium",t[t.Long]="Long",t[t.Full]="Full",t}(),R=function(){var t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return t[t.Decimal]="Decimal",t[t.Group]="Group",t[t.List]="List",t[t.PercentSign]="PercentSign",t[t.PlusSign]="PlusSign",t[t.MinusSign]="MinusSign",t[t.Exponential]="Exponential",t[t.SuperscriptingExponent]="SuperscriptingExponent",t[t.PerMille]="PerMille",t[t.Infinity]="Infinity",t[t.NaN]="NaN",t[t.TimeSeparator]="TimeSeparator",t[t.CurrencyDecimal]="CurrencyDecimal",t[t.CurrencyGroup]="CurrencyGroup",t}();function P(t,e){return V(Object(r.mb)(t)[r.cb.DateFormat],e)}function D(t,e){return V(Object(r.mb)(t)[r.cb.TimeFormat],e)}function j(t,e){return V(Object(r.mb)(t)[r.cb.DateTimeFormat],e)}function L(t,e){const n=Object(r.mb)(t),i=n[r.cb.NumberSymbols][e];if(void 0===i){if(e===R.CurrencyDecimal)return n[r.cb.NumberSymbols][R.Decimal];if(e===R.CurrencyGroup)return n[r.cb.NumberSymbols][R.Group]}return i}const M=r.pb;function F(t){if(!t[r.cb.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[r.cb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function V(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 B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,q={},z=/((?:[^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]*)/,G=function(){var t={Short:0,ShortGMT:1,Long:2,Extended:3};return t[t.Short]="Short",t[t.ShortGMT]="ShortGMT",t[t.Long]="Long",t[t.Extended]="Extended",t}(),H=function(){var t={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return t[t.FullYear]="FullYear",t[t.Month]="Month",t[t.Date]="Date",t[t.Hours]="Hours",t[t.Minutes]="Minutes",t[t.Seconds]="Seconds",t[t.FractionalSeconds]="FractionalSeconds",t[t.Day]="Day",t}(),W=function(){var t={DayPeriods:0,Days:1,Months:2,Eras:3};return t[t.DayPeriods]="DayPeriods",t[t.Days]="Days",t[t.Months]="Months",t[t.Eras]="Eras",t}();function $(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function Q(t,e,n="-",r,i){let o="";
8(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));let s=String(t);for(;s.length<e;)s="0"+s;return r&&(s=s.substr(s.length-e)),o+s}function K(t,e,n=0,r=!1,i=!1){return function(o,s){let a=function(t,e){switch(t){case H.FullYear:return e.getFullYear();case H.Month:return e.getMonth();case H.Date:return e.getDate();case H.Hours:return e.getHours();case H.Minutes:return e.getMinutes();case H.Seconds:return e.getSeconds();case H.FractionalSeconds:return e.getMilliseconds();case H.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,o);if((n>0||a>-n)&&(a+=n),t===H.Hours)0===a&&-12===n&&(a=12);else if(t===H.FractionalSeconds)return u=e,Q(a,3).substr(0,u);var u;const c=L(s,R.MinusSign);return Q(a,e,c,r,i)}}function Y(t,e,n=I.Format,i=!1){return function(o,s){return function(t,e,n,i,o,s){switch(n){case W.Months:return function(t,e,n){const i=Object(r.mb)(t),o=V([i[r.cb.MonthsFormat],i[r.cb.MonthsStandalone]],e);return V(o,n)}(e,o,i)[t.getMonth()];case W.Days:return function(t,e,n){const i=Object(r.mb)(t),o=V([i[r.cb.DaysFormat],i[r.cb.DaysStandalone]],e);return V(o,n)}(e,o,i)[t.getDay()];case W.DayPeriods:const a=t.getHours(),u=t.getMinutes();if(s){const t=function(t){const e=Object(r.mb)(t);return F(e),(e[r.cb.ExtraData][2]||[]).map(t=>"string"==typeof t?U(t):[U(t[0]),U(t[1])])}(e),n=function(t,e,n){const i=Object(r.mb)(t);F(i);const o=V([i[r.cb.ExtraData][0],i[r.cb.ExtraData][1]],e)||[];return V(o,n)||[]}(e,o,i);let s;if(t.forEach((t,e)=>{if(Array.isArray(t)){const{hours:r,minutes:i}=t[0],{hours:o,minutes:c}=t[1];a>=r&&u>=i&&(a<o||a===o&&u<c)&&(s=n[e])}else{const{hours:r,minutes:i}=t;r===a&&i===u&&(s=n[e])}}),s)return s}return function(t,e,n){const i=Object(r.mb)(t),o=V([i[r.cb.DayPeriodsFormat],i[r.cb.DayPeriodsStandalone]],e);return V(o,n)}(e,o,i)[a<12?0:1];case W.Eras:return function(t,e){return V(Object(r.mb)(t)[r.cb.Eras],e)}(e,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(o,s,t,e,n,i)}}function Z(t){return function(e,n,r){const i=-1*r,o=L(n,R.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case G.Short:return(i>=0?"+":"")+Q(s,2,o)+Q(Math.abs(i%60),2,o);case G.ShortGMT:return"GMT"+(i>=0?"+":"")+Q(s,1,o);case G.Long:return"GMT"+(i>=0?"+":"")+Q(s,2,o)+":"+Q(Math.abs(i%60),2,o);case G.Extended:return 0===r?"Z":(i>=0?"+":"")+Q(s,2,o)+":"+Q(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function X(t,e=!1){return function(n,r){let i;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();i=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=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(4-o.getDay()))).getTime()-t.getTime();i=1+Math.round(e/6048e5)}var o;return Q(i,t,L(r,R.MinusSign))}}const J={};function tt(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function et(t){return t instanceof Date&&!isNaN(t.valueOf())}const nt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function rt(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class it{}let ot=(()=>{class t extends it{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(M(e||this.locale)(t)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(r.fc(r.v))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})();function st(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(i)}return null}let at=(()=>{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.sb)(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=>
8{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(r.yb)(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.Qb(r.t),r.Qb(r.u),r.Qb(r.l),r.Qb(r.F))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ut{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 ct=(()=>{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.X)()&&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 ut(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new lt(t,n);e.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const o=new lt(t,i);e.push(o)}});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);
8t.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.Qb(r.Q),r.Qb(r.M),r.Qb(r.t))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class lt{constructor(t,e){this.record=t,this.view=e}}let ht=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new dt,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){ft("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){ft("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.Qb(r.Q),r.Qb(r.M))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class dt{constructor(){this.$implicit=null,this.ngIf=null}}function ft(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(r.yb)(e)}'.`)}class pt{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let mt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),gt=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new pt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.Q),r.Qb(r.M),r.Qb(mt,1))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),yt=(()=>{class t{constructor(t,e,n){n._addDefault(new pt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.Q),r.Qb(r.M),r.Qb(mt,1))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),bt=(()=>{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.Qb(r.Q))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.Bb]}),t})();function vt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(r.yb)(t)}'`)}let _t=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",i,o){if(null==e||""===e||e!=e)return null;try{return function(t,e,n,i){let o=function(t){if(et(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(B))return function(t){const e=new Date(0);let n=0,r=0;const i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,u=Number(t[6]||0),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}(n)}const e=new Date(t);if(!et(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const i=function(t){return Object(r.mb)(t)[r.cb.LocaleId]}(e);
8if(q[i]=q[i]||{},q[i][n])return q[i][n];let o="";switch(n){case"shortDate":o=P(e,N.Short);break;case"mediumDate":o=P(e,N.Medium);break;case"longDate":o=P(e,N.Long);break;case"fullDate":o=P(e,N.Full);break;case"shortTime":o=D(e,N.Short);break;case"mediumTime":o=D(e,N.Medium);break;case"longTime":o=D(e,N.Long);break;case"fullTime":o=D(e,N.Full);break;case"short":const n=t(e,"shortTime"),r=t(e,"shortDate");o=$(j(e,N.Short),[n,r]);break;case"medium":const i=t(e,"mediumTime"),s=t(e,"mediumDate");o=$(j(e,N.Medium),[i,s]);break;case"long":const a=t(e,"longTime"),u=t(e,"longDate");o=$(j(e,N.Long),[a,u]);break;case"full":const c=t(e,"fullTime"),l=t(e,"fullDate");o=$(j(e,N.Full),[c,l])}return o&&(q[i][n]=o),o}(n,e)||e;let s,a=[];for(;e;){if(s=z.exec(e),!s){a.push(e);break}{a=a.concat(s.slice(1));const t=a.pop();if(!t)break;e=t}}let u=o.getTimezoneOffset();i&&(u=tt(i,u),o=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*(tt(e,r)-r))}(o,i));let c="";return a.forEach(t=>{const e=function(t){if(J[t])return J[t];let e;switch(t){case"G":case"GG":case"GGG":e=Y(W.Eras,A.Abbreviated);break;case"GGGG":e=Y(W.Eras,A.Wide);break;case"GGGGG":e=Y(W.Eras,A.Narrow);break;case"y":e=K(H.FullYear,1,0,!1,!0);break;case"yy":e=K(H.FullYear,2,0,!0,!0);break;case"yyy":e=K(H.FullYear,3,0,!1,!0);break;case"yyyy":e=K(H.FullYear,4,0,!1,!0);break;case"M":case"L":e=K(H.Month,1,1);break;case"MM":case"LL":e=K(H.Month,2,1);break;case"MMM":e=Y(W.Months,A.Abbreviated);break;case"MMMM":e=Y(W.Months,A.Wide);break;case"MMMMM":e=Y(W.Months,A.Narrow);break;case"LLL":e=Y(W.Months,A.Abbreviated,I.Standalone);break;case"LLLL":e=Y(W.Months,A.Wide,I.Standalone);break;case"LLLLL":e=Y(W.Months,A.Narrow,I.Standalone);break;case"w":e=X(1);break;case"ww":e=X(2);break;case"W":e=X(1,!0);break;case"d":e=K(H.Date,1);break;case"dd":e=K(H.Date,2);break;case"E":case"EE":case"EEE":e=Y(W.Days,A.Abbreviated);break;case"EEEE":e=Y(W.Days,A.Wide);break;case"EEEEE":e=Y(W.Days,A.Narrow);break;case"EEEEEE":e=Y(W.Days,A.Short);break;case"a":case"aa":case"aaa":e=Y(W.DayPeriods,A.Abbreviated);break;case"aaaa":e=Y(W.DayPeriods,A.Wide);break;case"aaaaa":e=Y(W.DayPeriods,A.Narrow);break;case"b":case"bb":case"bbb":e=Y(W.DayPeriods,A.Abbreviated,I.Standalone,!0);break;case"bbbb":e=Y(W.DayPeriods,A.Wide,I.Standalone,!0);break;case"bbbbb":e=Y(W.DayPeriods,A.Narrow,I.Standalone,!0);break;case"B":case"BB":case"BBB":e=Y(W.DayPeriods,A.Abbreviated,I.Format,!0);break;case"BBBB":e=Y(W.DayPeriods,A.Wide,I.Format,!0);break;case"BBBBB":e=Y(W.DayPeriods,A.Narrow,I.Format,!0);break;case"h":e=K(H.Hours,1,-12);break;case"hh":e=K(H.Hours,2,-12);break;case"H":e=K(H.Hours,1);break;case"HH":e=K(H.Hours,2);break;case"m":e=K(H.Minutes,1);break;case"mm":e=K(H.Minutes,2);break;case"s":e=K(H.Seconds,1);break;case"ss":e=K(H.Seconds,2);break;case"S":e=K(H.FractionalSeconds,1);break;case"SS":e=K(H.FractionalSeconds,2);break;case"SSS":e=K(H.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Z(G.Short);break;case"ZZZZZ":e=Z(G.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Z(G.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Z(G.Long);break;default:return null}return J[t]=e,e}(t);c+=e?e(o,n,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}(e,n,o||this.locale,i)}catch(s){throw vt(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.v))},t.\u0275pipe=r.Pb({name:"date",type:t,pure:!0}),t})(),wt=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=Et){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.Qb(r.u))},t.\u0275pipe=r.Pb({name:"keyvalue",type:t,pure:!1}),t})();function Et(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;
8if("number"==typeof n&&"number"==typeof r)return n-r;if("boolean"==typeof n&&"boolean"==typeof r)return n<r?-1:1;const i=String(n),o=String(r);return i==o?0:i<o?-1:1}let St=(()=>{class t{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(e,n,i="symbol",o,s){if(function(t){return null==t||""===t||t!=t}(e))return null;s=s||this._locale,"boolean"==typeof i&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),i=i?"symbol":"code");let a=n||this._defaultCurrencyCode;"code"!==i&&(a="symbol"===i||"symbol-narrow"===i?function(t,e,n="en"){const i=function(t){return Object(r.mb)(t)[r.cb.Currencies]}(n)[t]||C[t]||[],o=i[1];return"narrow"===e&&"string"==typeof o?o:i[0]||t}(a,"symbol"===i?"wide":"narrow",s):i);try{return function(t,e,n,i,o){const s=function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(";"),i=r[0],o=r[1],s=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],a=s[0],u=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let l=0;l<u.length;l++){const t=u.charAt(l);"0"===t?n.minFrac=n.maxFrac=l+1:"#"===t?n.maxFrac=l+1:n.posSuf+=t}const c=a.split(",");if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){const t=i.length-n.posPre.length-n.posSuf.length,e=o.indexOf("#");n.negPre=o.substr(0,e).replace(/'/g,""),n.negSuf=o.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function(t,e){return Object(r.mb)(t)[r.cb.NumberFormats][e]}(e,k.Currency),L(e,R.MinusSign));return s.minFrac=function(t){let e;const n=C[t];return n&&(e=n[2]),"number"==typeof e?e:2}(i),s.maxFrac=s.minFrac,function(t,e,n,r,i,o,s=!1){let a="",u=!1;if(isFinite(t)){let c=function(t){let e,n,r,i,o,s=Math.abs(t)+"",a=0;for((n=s.indexOf("."))>-1&&(s=s.replace(".","")),(r=s.search(/e/i))>0?(n<0&&(n=r),n+=+s.slice(r+1),s=s.substring(0,r)):n<0&&(n=s.length),r=0;"0"===s.charAt(r);r++);if(r===(o=s.length))e=[0],n=1;else{for(o--;"0"===s.charAt(o);)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=Number(s.charAt(r))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);s&&(c=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}(c));let l=e.minInt,h=e.minFrac,d=e.maxFrac;if(o){const t=o.match(nt);if(null===t)throw new Error(`${o} is not a valid digit info`);const e=t[1],n=t[3],r=t[5];null!=e&&(l=rt(e)),null!=n&&(h=rt(n)),null!=r?d=rt(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,i=r.length-t.integerLen;const o=Math.min(Math.max(e,i),n);let s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let t=s;t<r.length;t++)r[t]=0}else{i=Math.max(0,i),t.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let t=1;t<s;t++)r[t]=0}if(a>=5)if(s-1<0){for(let e=0;e>s;e--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let u=0!==o;const c=e+t.integerLen,l=r.reduceRight((function(t,e,n,r){return r[n]=(e+=t)<10?e:e-10,u&&(0===r[n]&&n>=c?r.pop():u=!1),e>=10?1:0}),0);l&&(r.unshift(l),t.integerLen++)}(c,h,d);let f=c.digits,p=c.integerLen;const m=c.exponent;let g=[];for(u=f.every(t=>!t);p<l;p++)f.unshift(0);for(;p<0;p++)f.unshift(0);p>0?g=f.splice(p,f.length):(g=f,f=[0]);const y=[];for(f.length>=e.lgSize&&y.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)y.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&y.unshift(f.join("")),a=y.join(L(n,r)),g.length&&(a+=L(n,i)+g.join("")),m&&(a+=L(n,R.Exponential)+"+"+m)}else a=L(n,R.Infinity);return a=t<0&&!u?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,s,e,R.CurrencyGroup,R.CurrencyDecimal,o).replace("\xa4",n).replace("\xa4","").trim()}
8(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,a,n,o)}catch(u){throw vt(t,u.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.v),r.Qb(r.k))},t.\u0275pipe=r.Pb({name:"currency",type:t,pure:!0}),t})(),Tt=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[{provide:it,useClass:ot}]}),t})();const xt="browser";function Ct(t){return t===xt}function kt(t){return"server"===t}let Ot=(()=>{class t{}return t.\u0275prov=Object(r.Mb)({token:t,providedIn:"root",factory:()=>new It(Object(r.fc)(u),window,Object(r.fc)(r.n))}),t})();class It{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,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}},"3lSR":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("cJ9h"),i=n("5E2i");function o(t=Number.POSITIVE_INFINITY){return Object(r.a)(i.a,t)}},"47ST":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("IdLP");function i(t,e){return new r.a(e?n=>e.schedule(o,0,{error:t,subscriber:n}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},"4e/d":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("pBDD"),i=n("r9RI"),o=n("mW0F");function s(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 u(t,this.selector,this.caught))}}class u 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 i.a(this,void 0,void 0);this.add(r);const s=Object(o.a)(this,n,void 0,void 0,r);s!==r&&this.add(s)}}}},"5E2i":function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},"5XID":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return o}));var r=n("EM62");function i(t){return null!=t&&"false"!==`${t}`}function o(t,e=0){return s(t)?Number(t):e}function s(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function u(t){return null==t?"":"string"==typeof t?t:`${t}px`}function c(t){return t instanceof r.l?t.nativeElement:t}},"5lCh":function(t,e,n){"use strict";var r=n("EM62"),i=n("e4iD"),o=n("f7+R");function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new o.d;case 1:return t[0];default:return new o.o(t)}}function u(t,e,n,r,i={},s={}){const a=[],u=[];let c=-1,l=null;if(r.forEach(t=>{const n=t.offset,r=n==c,h=r&&l||{};Object.keys(t).forEach(n=>{let r=n,u=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),u){case o.p:u=i[n];break;case o.a:u=s[n];break;default:u=e.normalizeStyleValue(n,r,u,a)}h[r]=u}),r||u.push(h),l=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return u}function c(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&l(n,"start",t)));break;case"done":t.onDone(()=>r(n&&l(n,"done",t)));break;
8case"destroy":t.onDestroy(()=>r(n&&l(n,"destroy",t)))}}function l(t,e,n){const r=n.totalTime,i=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function h(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function d(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 f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let p=(t,e)=>!1,m=(t,e)=>!1,g=(t,e,n)=>[];const y=s();(y||"undefined"!=typeof Element)&&(p=(t,e)=>t.contains(e),m=(()=>{if(y||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]):m}})(),g=(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 b=null,v=!1;function _(t){b||(b=("undefined"!=typeof document?document.body:null)||{},v=!!b.style&&"WebkitAppearance"in b.style);let e=!0;return b.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in b.style,!e&&v)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in b.style),e}const w=m,E=p,S=g;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 x=(()=>{class t{validateStyleProperty(t){return _(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return E(t,e)}query(t,e,n){return S(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,i,s=[],a){return new o.d(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{}return t.NOOP=new x,t})();function k(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:O(parseFloat(e[1]),e[2])}function O(t,e){switch(e){case"s":return 1e3*t;default:return t}}function I(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let r,i=0,o="";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=O(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(i=O(parseFloat(s),n[4]));const a=n[5];a&&(o=a)}else r=t;if(!n){let n=!1,o=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:i,easing:o}}(t,e,n)}function A(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function N(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else A(t,n);return n}function R(t,e,n){return n?e+":"+n+";":""}function P(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=R(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=R(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function D(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const i=q(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]}),s()&&P(t))}function j(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=q(e);t.style[n]=""}),s()&&P(t))}function L(t){return Array.isArray(t)?1==t.length?t[0]:Object(o.j)(t):t}const M=new RegExp("{{\\s*(.+?)\\s*}}","g");function F(t){let e=[];
8if("string"==typeof t){let n;for(;n=M.exec(t);)e.push(n[1]);M.lastIndex=0}return e}function V(t,e,n){const r=t.toString(),i=r.replace(M,(t,r)=>{let i=e[r];return e.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),i=""),i.toString()});return i==r?t:i}function U(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const B=/-+([a-z0-9])/g;function q(t){return t.replace(B,(...t)=>t[1].toUpperCase())}function z(t,e){return 0===t||0===e}function G(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let o=e[0],s=[];if(r.forEach(t=>{o.hasOwnProperty(t)||s.push(t),o[t]=n[t]}),s.length)for(var i=1;i<e.length;i++){let n=e[i];s.forEach((function(e){n[e]=W(t,e)}))}}return e}function H(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 W(t,e){return window.getComputedStyle(t)[e]}function $(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 i=r[1],o=r[2],s=r[3];e.push(Y(i,s)),"<"!=o[0]||"*"==i&&"*"==s||e.push(Y(s,i))}(t,n,e)):n.push(t),n}const Q=new Set(["true","1"]),K=new Set(["false","0"]);function Y(t,e){const n=Q.has(t)||K.has(t),r=Q.has(e)||K.has(e);return(i,o)=>{let s="*"==t||t==i,a="*"==e||e==o;return!s&&n&&"boolean"==typeof i&&(s=i?Q.has(t):K.has(t)),!a&&r&&"boolean"==typeof o&&(a=o?Q.has(e):K.has(e)),s&&a}}const Z=new RegExp("s*:selfs*,?","g");function X(t,e,n){return new J(t).build(e,n)}class J{constructor(t){this._driver=t}build(t,e){const n=new tt(e);return this._resetContextStyleTimingState(n),H(this,L(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 i=[],o=[];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,i.push(this.visitState(n,e))}),n.name=r}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,r+=i.depCount,o.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:o,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 i=new Set,o=r||{};if(n.styles.forEach(t=>{if(et(t)){const e=t;Object.keys(e).forEach(t=>{F(e[t]).forEach(t=>{o.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=U(i.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=H(this,L(t.animation),e);return{type:1,matchers:$(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>H(this,t,e)),options:nt(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const i=t.steps.map(t=>{e.currentTime=n;const i=H(this,t,e);return r=Math.max(r,e.currentTime),i});return e.currentTime=r,{type:3,steps:i,options:nt(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 rt(I(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=rt(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||I(r,e),rt(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let i=t.styles?t.styles:Object(o.l)({});
8if(5==i.type)r=this.visitKeyframes(i,e);else{let i=t.styles,s=!1;if(!i){s=!0;const t={};n.easing&&(t.easing=n.easing),i=Object(o.l)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(i,e);a.isEmptyStep=s,r=a}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==o.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,i=null;return n.forEach(t=>{if(et(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,i=e.currentTime;n&&i>0&&(i-=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 o=e.collectedStyles[e.currentQuerySelector],s=o[n];let a=!0;s&&(i!=r&&i>=s.startTime&&r<=s.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${r}ms"`),a=!1),i=s.startTime),a&&(o[n]={startTime:i,endTime:r}),e.options&&function(t,e,n){const r=e.params||{},i=F(t);i.length&&i.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 i=[];let o=!1,s=!1,a=0;const u=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let u=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=u&&(r++,c=n.offset=u),s=s||c<0||c>1,o=o||c<a,a=c,i.push(c),n});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let l=0;r>0&&r<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(l=1/(c-1));const h=c-1,d=e.currentTime,f=e.currentAnimateTimings,p=f.duration;return u.forEach((t,r)=>{const o=l>0?r==h?1:l*r:i[r],s=o*p;e.currentTime=d+f.delay+s,f.duration=s,this._validateStyleAst(t,e),t.offset=o,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:H(this,L(t.animation),e),options:nt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:nt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[i,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Z,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,d(e.collectedStyles,e.currentQuerySelector,{});const s=H(this,L(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:nt(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"}:I(t.timings,e.errors,!0);return{type:12,animation:H(this,L(t.animation),e),timings:n,options:null}}}class tt{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 et(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=A(t)).params&&(t.params=(e=t.params)?A(e):null):t={},t}function rt(t,e,n){return{duration:t,delay:e,easing:n}}function it(t,e,n,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}
8class ot{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 st=new RegExp(":enter","g"),at=new RegExp(":leave","g");function ut(t,e,n,r,i,o={},s={},a,u,c=[]){return(new ct).buildKeyframes(t,e,n,r,i,o,s,a,u,c)}class ct{buildKeyframes(t,e,n,r,i,o,s,a,u,c=[]){u=u||new ot;const l=new ht(t,e,u,r,i,c,[]);l.options=a,l.currentTimeline.setStyles([o],null,l.errors,a),H(this,n,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(s).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[it(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),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}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 i=null!=n.duration?k(n.duration):null,o=null!=n.delay?k(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),H(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const i=t.options;if(i&&(i.params||i.delay)&&(r=e.createSubContext(i),r.transformIntoNewTimeline(),null!=i.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=lt);const t=k(i.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>H(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 i=t.options&&t.options.delay?k(t.options.delay):0;t.steps.forEach(o=>{const s=e.createSubContext(t.options);i&&s.delayNextStep(i),H(this,o,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.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 I(e.params?V(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 i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,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 i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},i=r.delay?k(r.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=lt);let o=n;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let a=null;
vendor: 1,577 bytes, line 8
8s.forEach((n,r)=>{e.currentQueryIndex=r;const s=e.createSubContext(t.options,n);i&&s.delayNextStep(i),n===e.element&&(a=s.currentTimeline),H(this,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const u=e.currentTimeline;a&&u.delayNextStep(a);const c=u.currentTime;H(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const lt={};class ht{constructor(t,e,n,r,i,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=lt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new dt(this._driver,e,0),s.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=k(n.duration)),null!=n.delay&&(r.delay=k(n.delay));const i=n.params;if(i){let t=r.params;t||(t=this.options.params={}
8),Object.keys(i).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=V(i[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,i=new ht(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=lt,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:""},i=new ft(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,i,o){let s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(st,"."+this._enterClassName)).replace(at,"."+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)),s.push(...e)}return i||0!=s.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class dt{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 dt(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]||o.a,this._currentKeyframe[t]=o.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const i=r&&r.params||{},s=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=o.a})):N(t,!1,n)}),n}(t,this._globalTimelineStyles);
8Object.keys(s).forEach(t=>{const e=V(s[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:o.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((i,s)=>{const a=N(i,!0);Object.keys(a).forEach(n=>{const r=a[n];r==o.p?t.add(n):r==o.a&&e.add(n)}),n||(a.offset=s/this.duration),r.push(a)});const i=t.size?U(t.values()):[],s=e.size?U(e.values()):[];if(n){const t=r[0],e=A(t);t.offset=0,e.offset=1,r=[t,e]}return it(this.element,r,i,s,this.duration,this.startTime,this.easing,!1)}}class ft extends dt{constructor(t,e,n,r,i,o,s=!1){super(t,e,o.delay),this.element=e,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=s,this.timings={duration:o.duration,delay:o.delay,easing:o.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 i=[],o=n+e,s=e/o,a=N(t[0],!1);a.offset=0,i.push(a);const u=N(t[0],!1);u.offset=pt(s),i.push(u);const c=t.length-1;for(let r=1;r<=c;r++){let s=N(t[r],!1);s.offset=pt((e+s.offset*n)/o),i.push(s)}n=o,e=0,r="",t=i}return it(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function pt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class mt{}class gt extends mt{normalizePropertyName(t,e){return q(t)}normalizeStyleValue(t,e,n,r){let i="";const o=n.toString().trim();if(yt[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="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 o+i}}const yt=(()=>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 bt(t,e,n,r,i,o,s,a,u,c,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:d}}const vt={};class _t{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function(t,e,n,r,i){return t.some(t=>t(e,n,r,i))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o}build(t,e,n,r,i,o,s,a,u,c){const l=[],h=this.ast.options&&this.ast.options.params||vt,f=this.buildStyles(n,s&&s.params||vt,l),p=a&&a.params||vt,m=this.buildStyles(r,p,l),g=new Set,y=new Map,b=new Map,v="void"===r,_={params:Object.assign(Object.assign({},h),p)},w=c?[]:ut(t,e,this.ast.animation,i,o,f,m,_,u,l);let E=0;if(w.forEach(t=>{E=Math.max(t.duration+t.delay,E)}),l.length)return bt(e,this._triggerName,n,r,v,f,m,[],[],y,b,E,l);w.forEach(t=>{const n=t.element,r=d(y,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const i=d(b,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&g.add(n)});const S=U(g.values());return bt(e,this._triggerName,n,r,v,f,m,w,S,y,b,E)}}class wt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},r=A(this.defaultParams);
8return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let o=i[t];o.length>1&&(o=V(o,r,e)),n[t]=o})}}),n}}class Et{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new wt(t.style,t.options&&t.options.params||{})}),St(this.states,"true","1"),St(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new _t(t,e,this.states))}),this.fallbackTransition=new _t(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(i=>i.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function St(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Tt=new ot;class xt{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=X(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,i=u(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],i=this._animations[t];let s;const u=new Map;if(i?(s=ut(this._driver,e,i,"ng-enter","ng-leave",{},{},n,Tt,r),s.forEach(t=>{const e=d(u,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),s=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);u.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,o.a)})});const c=a(s.map(t=>{const e=u.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}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 i=h(e,"","","");return c(this._getPlayer(t),n,i,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 i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const Ct=[],kt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ot={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class It{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=A(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 At=new It("void");class Nt{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-"
8+t,Ft(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"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var i;const o=d(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};o.push(s);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Ft(t,"ng-trigger"),Ft(t,"ng-trigger-"+e),a[e]=At),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(s);t>=0&&o.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 i=this._getTrigger(e),o=new Pt(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(Ft(t,"ng-trigger"),Ft(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const u=new It(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&u.absorbOptions(a.options),s[e]=u,a||(a=At),"void"!==u.value&&a.value===u.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const r=n[i];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}(a.params,u.params)){const e=[],n=i.matchStyles(a.value,a.params,e),r=i.matchStyles(u.value,u.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{j(t,n),D(t,r)})}return}const c=d(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=i.matchTransition(a.value,u.value,t,u.params),h=!1;if(!l){if(!r)return;l=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:u,player:o,isFallbackTransition:h}),h||(Ft(t,"ng-animate-queued"),o.onStart(()=>{Vt(t,"ng-animate-queued")})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(o);t>=0&&n.splice(t,1)}}),this.players.push(o),c.push(o),o}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,".ng-trigger",!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 i=this._engine.statesByElement.get(t);if(i){const o=[];
8if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",r);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(o).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 i=this._triggers[r].fallbackTransition,o=this._engine.statesByElement.get(t)[r]||At,s=new It("void"),a=new Pt(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:i,fromState:o,toState:s,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!==kt||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Ft(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const i=n.element,o=this._elementListeners.get(i);o&&o.forEach(e=>{if(e.name==n.triggerName){const r=h(i,n.triggerName,n.fromState.value,n.toState.value);r._data=t,c(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 Rt{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 Nt(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 i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+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 i=n[t[r]].namespaceId;if(i){const t=this._fetchNamespace(i);t&&e.add(t)}}}return e}trigger(t,e,n,r){if(Dt(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!Dt(e))return;const i=e.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const r=this._fetchNamespace(t);
8r&&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),Ft(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Vt(t,"ng-animate-disabled"))}removeNode(t,e,n,r){if(Dt(e)){const i=t?this._fetchNamespace(t):null;if(i?i.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,i){return Dt(e)?this._fetchNamespace(t).listen(e,n,r,i):()=>{}}_buildInstruction(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!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 a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=kt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];
vendor: 1,705 bytes, line 8
8if(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++)Ft(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?a(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 ot,r=[],i=new Map,s=[],u=new Map,c=new Map,l=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)h.add(e[n])});const f=this.bodyNode,p=Array.from(this.statesByElement.keys()),m=Mt(p,this.collectedEnterElements),g=new Map;let y=0;m.forEach((t,e)=>{const n="ng-enter"+y++;g.set(e,n),t.forEach(t=>Ft(t,n))});const b=[],v=new Set,_=new Set;for(let o=0;o<this.collectedLeaveElements.length;o++){const t=this.collectedLeaveElements[o],e=t.__ng_removed;e&&e.setForRemoval&&(b.push(t),v.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>v.add(t)):_.add(t))}
8const w=new Map,E=Mt(p,Array.from(v));E.forEach((t,e)=>{const n="ng-leave"+y++;w.set(e,n),t.forEach(t=>Ft(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Vt(t,n))}),E.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Vt(t,n))}),b.forEach(t=>{this.processLeaveNode(t)})});const S=[],T=[];for(let o=this._namespaceList.length-1;o>=0;o--)this._namespaceList[o].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(S.push(e),this.collectedEnterElements.length){const t=i.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const o=!f||!this.driver.containsElement(f,i),a=w.get(i),h=g.get(i),p=this._buildInstruction(t,n,h,a,o);if(!p.errors||!p.errors.length)return o?(e.onStart(()=>j(i,p.fromStyles)),e.onDestroy(()=>D(i,p.toStyles)),void r.push(e)):t.isFallbackTransition?(e.onStart(()=>j(i,p.fromStyles)),e.onDestroy(()=>D(i,p.toStyles)),void r.push(e)):(p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,p.timelines),s.push({instruction:p,player:e,element:i}),p.queriedElements.forEac
8h(t=>d(u,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),void p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=l.get(e);r||l.set(e,r=new Set),n.forEach(t=>r.add(t))}));T.push(p)});if(T.length){const t=[];T.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),S.forEach(t=>t.destroy()),this.reportError(t)}const x=new Map,C=new Map;s.forEach(t=>{const e=t.element;n.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(x,e,[]).push(t),t.destroy()})});const k=b.filter(t=>Bt(t,c,l)),O=new Map;Lt(O,this.driver,_,l,o.a).forEach(t=>{Bt(t,c,l)&&k.push(t)});const I=new Map;m.forEach((t,e)=>{Lt(I,this.driver,new Set(t),c,o.p)}),k.forEach(t=>{const e=O.get(t),n=I.get(t);O.set(t,Object.assign(Object.assign({},e),n))});const A=[],N=[],R={};s.forEach(t=>{const{element:e,player:o,instruction:s}=t;if(n.has(e)){if(h.has(e))return o.onDestroy(()=>D(e,s.toStyles)),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);let t=R;if(C.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=C.get(n);if(e){t=e;break}r.push(n)}r.forEach(e=>C.set(e,t))}const n=this._buildAnimation(o.namespaceId,s,x,i,I,O);if(o.setRealPlayer(n),t===R)A.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=a(e)),r.push(o)}}else j(e,s.fromStyles),o.onDestroy(()=>D(e,s.toStyles)),N.push(o),h.has(e)&&r.push(o)}),N.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let o=0;o<b.length;o++){const t=b[o],e=t.__ng_removed;if(Vt(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(u.size){let e=u.get(t);e&&e.length&&n.push(...e);let r=this.driver.query(t,".ng-animating",!0);for(let t=0;t<r.length;t++){let e=u.get(r[t]);e&&e.length&&n.push(...e)}}const r=n.filter(t=>!t.destroyed);r.length?Ut(this,t,r):this.processLeaveNode(t)}return b.length=0,A.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),A}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,i){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||"void"==i;e.forEach(e=>{e.queued||(t||e.triggerName==r)&&o.push(e)})}}return(n||r)&&(o=o.filter(t=>!(n&&n!=t.namespaceId||r&&r!=t.triggerName))),o}_beforeAnimationBuild(t,e,n){const r=e.element,i=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const t=s.element,a=t!==r,u=d(n,t,[]);this._getPreviousPlayers(t,a,i,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),u.push(t)})}j(r,e.fromStyles)}_buildAnimation(t,e,n,r,i,s){const c=e.triggerName,l=e.element,h=[],f=new Set,p=new Set,m=e.timelines.map(e=>{const a=e.element;f.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new o.d(e.duration,e.delay);const m=a!==l,g=function(t){const e=[];return function t(e,n){for(let r=0;r<e.length;r++){const i=e[r];i instanceof o.o?t(i.players,n):n.push(i)}}(t,e),e}((n.get(a)||Ct).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===a),y=i.get(a),b=s.get(a),v=u(0,this._normalizer,0,e.keyframes,y,b),_=this._buildPlayer(e,v,g);if(e.subTimeline&&r&&p.add(a),m){const e=new Pt(t,c,a);e.setRealPlayer(_),h.push(e)}return _});h.forEach(t=>{d(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))}),f.forEach(t=>Ft(t,"ng-animating"));const g=a(m);return g.onDestroy(()=>{f.forEach(t=>Vt(t,"ng-animating")),D(l,e.toStyles)}),p.forEach(t=>{d(r,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new o.d(t.duration,t.delay)}}class Pt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new o.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).forEac
8h(e=>{this._queuedCallbacks[e].forEach(n=>c(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){d(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 Dt(t){return t&&1===t.nodeType}function jt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Lt(t,e,n,r,i){const o=[];n.forEach(t=>o.push(jt(t)));const s=[];r.forEach((n,r)=>{const o={};n.forEach(t=>{const n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r.__ng_removed=Ot,s.push(r))}),t.set(r,o)});let a=0;return n.forEach(t=>jt(t,o[a++])),s}function Mt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const r=new Set(e),i=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let o=i.get(e);if(o)return o;const s=e.parentNode;return o=n.has(s)?s:r.has(s)?1:t(s),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}function Ft(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Vt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Ut(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function Bt(t,e,n){const r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(t=>i.add(t)):e.set(t,r),n.delete(t),!0}class qt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Rt(t,e,n),this._timelineEngine=new xt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,r,i){const o=t+"-"+r;let s=this._triggerCache[o];if(!s){const t=[],e=X(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);s=function(t,e){return new Et(t,e)}(r,e),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)}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,i]=f(n);this._timelineEngine.command(t,e,i,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,i){if("@"==n.charAt(0)){const[t,r]=f(n);return this._timelineEngine.listen(t,e,r,i)}return this._transitionEngine.listen(t,e,n,r,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function zt(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Ht(e[0]),e.length>1&&(r=Ht(e[e.length-1]))):e&&(n=Ht(e)),n||r?new Gt(t,n,r):null}let Gt=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&D(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(D(this._element,this._initialStyles),this._endStyles&&(D(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),D(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Ht(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=n[r];Wt(i)&&(e=e||{},e[i]=t[i])}return e}function Wt(t){return"display"===t||"position"===t}class $t{constructor(t,e,n,r,i,o,s){this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Jt(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}`),Xt(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Zt(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Qt(this._element,this._name,"paused")}resume(){Qt(this._element,this._name,"running")}setPosition(t){const e=Kt(this._element,this._name);
8this._position=t*this._duration,Xt(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(),Zt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Jt(t,"").split(","),r=Yt(n,e);r>=0&&(n.splice(r,1),Xt(t,"",n.join(",")))}(this._element,this._name))}}function Qt(t,e,n){Xt(t,"PlayState",n,Kt(t,e))}function Kt(t,e){const n=Jt(t,"");return n.indexOf(",")>0?Yt(n.split(","),e):Yt([n],e)}function Yt(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Zt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Xt(t,e,n,r){const i="animation"+e;if(null!=r){const e=t.style[i];if(e.length){const t=e.split(",");t[r]=n,n=t.join(",")}}t.style[i]=n}function Jt(t,e){return t.style["animation"+e]}class te{constructor(t,e,n,r,i,o,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+i,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 $t(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]:W(this.element,n))})}this.currentSnapshot=t}}class ee extends o.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 ne{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return _(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return E(t,e)}query(t,e,n){return S(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`,i="";
8n.forEach(t=>{i=" ";const e=parseFloat(t.offset);r+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=`${i}animation-timing-function: ${n};\n`));default:return void(r+=`${i}${e}: ${n};\n`)}}),r+=`${i}}\n`}),r+="}\n";const o=document.createElement("style");return o.innerHTML=r,o}animate(t,e,n,r,i,o=[],s){s&&this._notifyFaultyScrubber();const a=o.filter(t=>t instanceof te),u={};z(n,r)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>u[t]=e[t])});const c=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=G(t,e,u));if(0==n)return new ee(t,c);const l=`gen_css_kf_${this._count++}`,h=this.buildKeyframeElement(t,l,e);document.querySelector("head").appendChild(h);const d=zt(t,e),f=new te(t,e,l,n,r,i,c,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 re{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]:W(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ie{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(oe().toString()),this._cssKeyframesDriver=new ne}validateStyleProperty(t){return _(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return E(t,e)}query(t,e,n){return S(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,i,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);const u={},c=o.filter(t=>t instanceof re);
8z(n,r)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>u[t]=e[t])});const l=zt(t,e=G(t,e=e.map(t=>N(t,!1)),u));return new re(t,e,a,l)}}function oe(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var se=n("2kYt");n.d(e,"a",(function(){return me})),n.d(e,"b",(function(){return ye}));let ae=(()=>{class t extends o.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(o.j)(t):t;return le(this._renderer,null,e,"register",[n]),new ue(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(r.fc(r.G),r.fc(se.d))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})();class ue extends o.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ce(this._id,t,e||{},this._renderer)}}class ce{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 le(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 le(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}let he=(()=>{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 de("",n,this.engine),this._rendererCache.set(n,t)),t}const r=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(r,i,t,e.name,e)};return e.data.animation.forEach(o),new fe(this,i,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.fc(r.G),r.fc(qt),r.fc(r.A))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})();class de{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)&&"@.disabled"==e?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 fe extends de{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?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)){const r=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),o="";return"@"!=i.charAt(0)&&([i,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,r,i,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let pe=(()=>{class t extends qt{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.fc(se.d),r.fc(C),r.fc(mt))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})();const me=new r.r("AnimationModuleType"),ge=[{provide:C,useFactory:function(){return"function"==typeof oe()?new ie:new ne}},{provide:me,useValue:"BrowserAnimations"},{provide:o.b,useClass:ae},{provide:mt,useFactory:function(){return new gt}}
8,{provide:qt,useClass:pe},{provide:r.G,useFactory:function(t,e,n){return new he(t,e,n)},deps:[i.j,qt,r.A]}];let ye=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:ge,imports:[i.a]}),t})()},"5uDM":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("cJ9h");function i(t,e){return Object(r.a)(t,e,1)}},"5uGe":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("IJgj"),i=n("rWo0"),o=n("bwdy"),s=n("25CY"),a=n("HgnN"),u=n("i9P/");class c extends o.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=i.a;break;case 1:if(!t){this.destination=i.a;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,t,e,n)}}[s.a](){return this}static create(t,e,n){const r=new c(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 l extends c{constructor(t,e,n,o){let s;super(),this._parentSubscriber=t;let a=this;Object(r.a)(e)?s=e:e&&(s=e.next,n=e.error,o=e.complete,e!==i.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=s,this._error=n,this._complete=o}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(u.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(u.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(u.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(u.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"6F5T":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("EM62"),i=n("2kYt"),o=n("zfB+"),s=n("mHt8");let a=(()=>{class t{constructor(t,e,n){this.platformId=t,this.apiService=e,this.userService=n,this.isLoading=!0}ngOnInit(){this.preNgOnInit(),Object(i.v)(this.platformId)?this.init():this.apiService.connect().then(()=>{this.userService.init(this.apiService),this.initServices(),this.userService.isLoggedIn()?(this.user=this.userService.getUser(),this.init()):this.init()}),this.postNgOnInit()}initServices(){}preNgOnInit(){}postNgOnInit(){}init(){this.isLoading=!1}can(t,e){return this.user=this.userService.getUser(),!!this.user&&(!!this.user.permissions.admin||this.user.permissions[e]&&!0===this.user.permissions[e][t])}has(t,e){return this.user=this.userService.getUser(),!(!this.user||!e)&&e.extraModules&&!0===e.extraModules[t]}isOwner(){return!(!this.user||!this.restaurant)&&this.user.uid===this.restaurant.owner}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.C),r.Qb(o.b),r.Qb(s.b))},t.\u0275dir=r.Lb({type:t}),t})()},"6Oco":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}
8));var r=n("IdLP");const i=new r.a(t=>t.complete());function o(t){return t?function(t){return new r.a(e=>t.schedule(()=>e.complete()))}(t):i}},"7ntQ":function(t,e,n){"use strict";var r=n("ZTXN"),i=n("IdLP"),o=n("5uGe"),s=n("bwdy");function a(){return function(t){return t.lift(new u(t))}}class u{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new c(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class c extends o.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 l extends i.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 s.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t}refCount(){return a()(this)}}const h=(()=>{const t=l.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}}n.d(e,"a",(function(){return p}))},"82Ps":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("/KFi"),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(t,e){if(!t)throw s(e)},s=function(t){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},a=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):55296==(64512&i)&&r+1<t.length&&56320==(64512&t.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&t.charCodeAt(++r)),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},u={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<t.length;i+=3){var o=t[i],s=i+1<t.length,a=s?t[i+1]:0,u=i+2<t.length,c=u?t[i+2]:0,l=(15&a)<<2|c>>6,h=63&c;u||(h=64,s||(l=64)),r.push(n[o>>2],n[(3&o)<<4|a>>4],n[l],n[h])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(a(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n<t.length;){var i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var s=((7&i)<<18|(63&(o=t[n++]))<<12|(63&(a=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(s>>10)),e[r++]=String.fromCharCode(56320+(1023&s))}else{o=t[n++];var a=t[n++];
8e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<t.length;){var o=n[t.charAt(i++)],s=i<t.length?n[t.charAt(i)]:0,a=++i<t.length?n[t.charAt(i)]:64,u=++i<t.length?n[t.charAt(i)]:64;if(++i,null==o||null==s||null==a||null==u)throw Error();r.push(o<<2|s>>4),64!==a&&(r.push(s<<4&240|a>>2),64!==u&&r.push(a<<6&192|u))}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},c=function(t){try{return u.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function l(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:return new Date(e.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)e.hasOwnProperty(n)&&(t[n]=l(t[n],e[n]));return t}var h=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return t.prototype.wrapCallback=function(t){var e=this;return function(n,r){n?e.reject(n):e.resolve(r),"function"==typeof t&&(e.promise.catch((function(){})),1===t.length?t(n):t(n,r))}},t}();function d(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}var f=function(t){function e(n,r){var i=t.call(this,r)||this;return i.code=n,i.name="FirebaseError",Object.setPrototypeOf(i,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,p.prototype.create),i}return r.__extends(e,t),e}(Error),p=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=e[0]||{},i=this.service+"/"+t,o=this.errors[t],s=o?m(o,r):"Error",a=this.serviceName+": "+s+" ("+i+").",u=new f(i,a),c=0,l=Object.keys(r);c<l.length;c++){var h=l[c];"_"!==h.slice(-1)&&(h in u&&console.warn('Overwriting FirebaseError base field "'+h+'" can cause unexpected behavior.'),u[h]=r[h])}return u},t}();function m(t,e){return t.replace(g,(function(t,n){var r=e[n];return null!=r?r.toString():"<"+n+"?>"}))}var g=/\{\$([^}]+)}/g;function y(t){return JSON.parse(t)}var b=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=y(c(o[0])||""),n=y(c(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(s){}return{header:e,claims:n,data:r,signature:i}},v=function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}return t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(t,e){e||(e=0);var n=this.W_;if("string"==typeof t)for(var r=0;r<16;r++)n[r]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(r=0;r<16;r++)n[r]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(r=16;r<80;r++)n[r]=4294967295&((h=n[r-3]^n[r-8]^n[r-14]^n[r-16])<<1|h>>>31);var i,o,s=this.chain_[0],a=this.chain_[1],u=this.chain_[2],c=this.chain_[3],l=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(i=c^a&(u^c),o=1518500249):(i=a^u^c,o=1859775393):r<60?(i=a&u|c&(a|u),o=2400959708):(i=a^u^c,o=3395469782);var h=(s<<5|s>>>27)+i+l+o+n[r]&4294967295;l=c,c=u,u=4294967295&(a<<30|a>>>2),a=s,s=h}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+a&4294967295,this.chain_[2]=this.chain_[2]+u&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+l&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var n=e-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<e;){if(0===o)for(;r<=n;)this.compress_(t,r),r+=this.blockSize;if("string"==typeof t){for(;r<e;)if(i[o]=t.charCodeAt(r),++r,++o===this.blockSize){this.compress_(i),o=0;break}}else for(;r<e;)if(i[o]=t[r],++r,++o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=e}},t.prototype.digest=function(){var t=[],e=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&e,e/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)t[r]=this.chain_[n]>>i&255,++r;return t},t}(),_=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
8ise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then((function(){t(n)})).catch((function(t){n.error(t)}))}return t.prototype.next=function(t){this.forEachObserver((function(e){e.next(t)}))},t.prototype.error=function(t){this.forEachObserver((function(e){e.error(t)})),this.close(t)},t.prototype.complete=function(){this.forEachObserver((function(t){t.complete()})),this.close()},t.prototype.subscribe=function(t,e,n){var r,i=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=0,r=["next","error","complete"];n<r.length;n++){var i=r[n];if(i in t&&"function"==typeof t[i])return!0}return!1}(t)?t:{next:t,error:e,complete:n}).next&&(r.next=w),void 0===r.error&&(r.error=w),void 0===r.complete&&(r.complete=w);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(t){}})),this.observers.push(r),o},t.prototype.unsubscribeOne=function(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},t.prototype.forEachObserver=function(t){if(!this.finalized)for(var e=0;e<this.observers.length;e++)this.sendOne(e,t)},t.prototype.sendOne=function(t,e){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[t])try{e(n.observers[t])}catch(r){"undefined"!=typeof console&&console.error&&console.error(r)}}))},t.prototype.close=function(t){var e=this;this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then((function(){e.observers=void 0,e.onNoObservers=void 0})))},t}();function w(){}function E(t,e,n){var r="";switch(e){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4. Need to update it?")}return t+" failed: "+r+" argument "}e.CONSTANTS=i,e.Deferred=h,e.ErrorFactory=p,e.FirebaseError=f,e.Sha1=v,e.assert=o,e.assertionError=s,e.async=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then((function(){t.apply(void 0,n)})).catch((function(t){e&&e(t)}))}},e.base64=u,e.base64Decode=c,e.base64Encode=function(t){var e=a(t);return u.encodeByteArray(e,!0)},e.contains=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.createSubscribe=function(t,e){var n=new _(t,e);return n.subscribe.bind(n)},e.decode=b,e.deepCopy=function(t){return l(void 0,t)},e.deepExtend=l,e.errorPrefix=E,e.getUA=d,e.isAdmin=function(t){var e=b(t).claims;return"object"==typeof e&&!0===e.admin},e.isBrowser=function(){return"object"==typeof self&&self.self===self},e.isBrowserExtension=function(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id},e.isElectron=function(){return d().indexOf("Electron/")>=0},e.isEmpty=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},e.isIE=function(){var t=d();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0},e.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(d())},e.isNode=function(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}},e.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},e.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},e.isUWP=function(){return d().indexOf("MSAppHost/")>=0},e.isValidFormat=function(t){var e=b(t).claims;return!!e&&"object"==typeof e&&e.hasOwnProperty("iat")},e.isValidTimestamp=function(t){var e=b(t).claims,n=Math.floor((new Date).getTime()/1e3),r=0,i=0;return"object"==typeof e&&(e.hasOwnProperty("nbf")?r=e.nbf:e.hasOwnProperty("iat")&&(r=e.iat),i=e.hasOwnProperty("exp")?e.exp:r+86400),!!n&&!!r&&!!i&&n>=r&&n<=i},e.issuedAtTime=function(t){var e=b(t).claims;return"object"==typeof e&&e.hasOwnProperty("iat")?e.iat:null},e.jsonEval=y,e.map=function(t,e,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e.call(n,t[i],i,t));return r},e.querystring=function(t){for(var e=[],n=function(t,n){Array.isArray(n)?n.forEac
8h((function(n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))})):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r];n(o[0],o[1])}return e.length?"&"+e.join("&"):""},e.querystringDecode=function(t){var e={};return t.replace(/^\?/,"").split("&").forEach((function(t){if(t){var n=t.split("=");e[n[0]]=n[1]}})),e},e.safeGet=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0},e.stringLength=function(t){for(var e=0,n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e++:r<2048?e+=2:r>=55296&&r<=56319?(e+=4,n++):e+=3}return e},e.stringToByteArray=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);if(i>=55296&&i<=56319){var s=i-55296;r++,o(r<t.length,"Surrogate pair missing trail surrogate."),i=65536+(s<<10)+(t.charCodeAt(r)-56320)}i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):i<65536?(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},e.stringify=function(t){return JSON.stringify(t)},e.validateArgCount=function(t,e,n,r){var i;if(r<e?i="at least "+e:r>n&&(i=0===n?"none":"no more than "+n),i)throw new Error(t+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},e.validateCallback=function(t,e,n,r){if((!r||n)&&"function"!=typeof n)throw new Error(E(t,e,r)+"must be a valid function.")},e.validateContextObject=function(t,e,n,r){if((!r||n)&&("object"!=typeof n||null===n))throw new Error(E(t,e,r)+"must be a valid context object.")},e.validateNamespace=function(t,e,n,r){if((!r||n)&&"string"!=typeof n)throw new Error(E(t,e,r)+"must be a valid firebase namespace.")}},"8j5Y":function(t,e,n){"use strict";var r=n("5uGe");function i(){}var o=n("IJgj");function s(t,e,n){return function(r){return r.lift(new a(t,e,n))}}n.d(e,"a",(function(){return s}));class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new u(t,this.nextOrObserver,this.error,this.complete))}}class u extends r.a{constructor(t,e,n,r){super(t),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=n||i,this._tapComplete=r||i,Object(o.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||i,this._tapError=e.error||i,this._tapComplete=e.complete||i)}_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()}}},"8lHc":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("IdLP"),i=n("Efrr"),o=n("KRZI"),s=n("gBlb");function a(t=0,e,n){let a=-1;return Object(o.a)(e)?a=Number(e)<1?1:Number(e):Object(s.a)(e)&&(n=e),Object(s.a)(n)||(n=i.a),new r.a(e=>{const r=Object(o.a)(t)?t:+t-n.now();return n.schedule(u,r,{index:0,period:a,subscriber:e})})}function u(t){const{index:e,period:n,subscriber:r}=t;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},"9bRT":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("IdLP");function i(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},A2S1:function(t,e,n){"use strict";var r=n("5uGe"),i=n("6Oco"),o=n("ROBh"),s=n("47ST");let a=(()=>{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(o.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(i.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=0){return function(n){return n.lift(new c(t,e))}}n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return l}));
8class c{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new l(t,this.scheduler,this.delay))}}class l extends r.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(l.dispatch,this.delay,new h(t,this.destination)))}_next(t){this.scheduleMessage(a.createNext(t))}_error(t){this.scheduleMessage(a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(a.createComplete()),this.unsubscribe()}}class h{constructor(t,e){this.notification=t,this.destination=e}}},AmJI:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n("huQ6"),o=(r=n("plFh"))&&"object"==typeof r&&"default"in r?r.default:r,s=n("Gjt8"),a=n("82Ps"),u=n("WRB3"),c=n("EeOn"),l=o.SDK_VERSION,h=function(){function t(t){this.uid=t}return t.prototype.t=function(){return null!=this.uid},t.prototype.s=function(){return this.t()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();h.UNAUTHENTICATED=new h(null),h.i=new h("google-credentials-uid"),h.h=new h("first-party-uid");var d={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},f=function(t){function e(e,n){var r=this;return(r=t.call(this,n)||this).code=e,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return i.__extends(e,t),e}(Error),p=function(t,e){this.user=e,this.type="OAuth",this.o={},this.o.Authorization="Bearer "+t},m=function(){function t(){this.u=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype._=function(){},t.prototype.l=function(t){this.u=t,t(h.UNAUTHENTICATED)},t.prototype.T=function(){this.u=null},t}(),g=function(){function t(t){var e=this;this.I=null,this.currentUser=h.UNAUTHENTICATED,this.R=!1,this.m=0,this.u=null,this.forceRefresh=!1,this.I=function(){e.m++,e.currentUser=e.A(),e.R=!0,e.u&&e.u(e.currentUser)},this.m=0,this.auth=t.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.I):(this.I(null),t.get().then((function(t){e.auth=t,e.I&&e.auth.addAuthTokenListener(e.I)}),(function(){})))}return t.prototype.getToken=function(){var t=this,e=this.m,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){if(t.m!==e)throw new f(d.ABORTED,"getToken aborted due to token change.");return n?(we("string"==typeof n.accessToken),new p(n.accessToken,t.currentUser)):null})):Promise.resolve(null)},t.prototype._=function(){this.forceRefresh=!0},t.prototype.l=function(t){this.u=t,this.R&&t(this.currentUser)},t.prototype.T=function(){this.auth&&this.auth.removeAuthTokenListener(this.I),this.I=null,this.u=null},t.prototype.A=function(){var t=this.auth&&this.auth.getUid();return we(null===t||"string"==typeof t),new h(t)},t}(),y=function(){function t(t,e){this.P=t,this.V=e,this.type="FirstParty",this.user=h.h}return Object.defineProperty(t.prototype,"o",{get:function(){var t={"X-Goog-AuthUser":this.V},e=this.P.auth.g([]);return e&&(t.Authorization=e),t},enumerable:!0,configurable:!0}),t}(),b=function(){function t(t,e){this.P=t,this.V=e}return t.prototype.getToken=function(){return Promise.resolve(new y(this.P,this.V))},t.prototype.l=function(t){t(h.h)},t.prototype.T=function(){},t.prototype._=function(){},t}(),v=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new f(d.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new f(d.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new f(d.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new f(d.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,1e6*(e-1e3*n))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype.p=function(t){return this.seconds===t.seconds?Te(this.nanoseconds,t.nanoseconds):Te(this.seconds,t.seconds)},t.prototype.isEqual=function(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds},t.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},t.prototype.valueOf=function(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
8,t}(),_=function(){function t(t){this.timestamp=t}return t.v=function(e){return new t(e)},t.min=function(){return new t(new v(0,0))},t.prototype.S=function(t){return this.timestamp.p(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.D=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.C=function(){return this.timestamp},t}(),w=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&_e(),void 0===n?n=t.length-e:n>t.length-e&&_e(),this.segments=t,this.offset=e,this.F=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.F},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.N(this,e)},t.prototype.child=function(e){var n=this.segments.slice(this.offset,this.limit());return e instanceof t?e.forEach((function(t){n.push(t)})):n.push(e),this.k(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.$=function(t){return this.k(this.segments,this.offset+(t=void 0===t?1:t),this.length-t)},t.prototype.M=function(){return this.k(this.segments,this.offset,this.length-1)},t.prototype.L=function(){return this.segments[this.offset]},t.prototype.O=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.B=function(){return 0===this.length},t.prototype.q=function(t){if(t.length<this.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.U=function(t){if(this.length+1!==t.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.forEach=function(t){for(var e=this.offset,n=this.limit();e<n;e++)t(this.segments[e])},t.prototype.W=function(){return this.segments.slice(this.offset,this.limit())},t.N=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){var i=t.get(r),o=e.get(r);if(i<o)return-1;if(i>o)return 1}return t.length<e.length?-1:t.length>e.length?1:0},t}(),E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.k=function(t,n,r){return new e(t,n,r)},e.prototype.j=function(){return this.W().join("/")},e.prototype.toString=function(){return this.j()},e.K=function(t){if(t.indexOf("//")>=0)throw new f(d.INVALID_ARGUMENT,"Invalid path ("+t+"). Paths must not contain // in them.");return new e(t.split("/").filter((function(t){return t.length>0})))},e}(w);E.G=new E([]);var S=/^[_a-zA-Z][_a-zA-Z0-9]*$/,T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.k=function(t,n,r){return new e(t,n,r)},e.H=function(t){return S.test(t)},e.prototype.j=function(){return this.W().map((function(t){return t=t.replace("\\","\\\\").replace("`","\\`"),e.H(t)||(t="`"+t+"`"),t})).join(".")},e.prototype.toString=function(){return this.j()},e.prototype.Y=function(){return 1===this.length&&"__name__"===this.get(0)},e.J=function(){return new e(["__name__"])},e.X=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new f(d.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},s=!1;i<t.length;){var a=t[i];if("\\"===a){if(i+1===t.length)throw new f(d.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var u=t[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new f(d.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);r+=u,i+=2}else"`"===a?(s=!s,i++):"."!==a||s?(r+=a,i++):(o(),i++)}if(o(),s)throw new f(d.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e}(w);T.G=new T([]);var x=function(){function t(t){this.path=t}return t.Z=function(e){return new t(E.K(e).$(5))},t.prototype.tt=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===E.N(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.N=function(t,e){return E.N(t.path,e.path)},t.et=function(t){return t.length%2==0},t.st=function(e){return new t(new E(e.slice()))},t}();function C(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function k(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function O(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}
8x.EMPTY=new x(new E([]));var I=function(){function t(t){this.it=t}return t.fromBase64String=function(e){return new t(fe.nt().atob(e))},t.fromUint8Array=function(e){return new t(function(t){for(var e="",n=0;n<t.length;++n)e+=String.fromCharCode(t[n]);return e}(e))},t.prototype.toBase64=function(){return fe.nt().btoa(this.it)},t.prototype.toUint8Array=function(){return function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}(this.it)},t.prototype.rt=function(){return 2*this.it.length},t.prototype.S=function(t){return Te(this.it,t.it)},t.prototype.isEqual=function(t){return this.it===t.it},t}();function A(t){return null==t}function N(t){return-0===t&&1/t==-1/0}function R(t){return"number"==typeof t&&Number.isInteger(t)&&!N(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}function P(t){var e,n;return"server_timestamp"===(null===(n=((null===(e=null==t?void 0:t.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function D(t){var e=q(t.mapValue.fields.__local_write_time__.timestampValue);return new v(e.seconds,e.nanos)}I.ht=new I("");var j=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function L(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?P(t)?4:10:_e()}function M(t,e){var n=L(t);if(n!==L(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return D(t).isEqual(D(e));case 3:return function(t,e){if("string"==typeof t.timestampValue&&"string"==typeof e.timestampValue&&t.timestampValue.length===e.timestampValue.length)return t.timestampValue===e.timestampValue;var n=q(t.timestampValue),r=q(e.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(t,e){return G(t.bytesValue).isEqual(G(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return z(t.geoPointValue.latitude)===z(e.geoPointValue.latitude)&&z(t.geoPointValue.longitude)===z(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return z(t.integerValue)===z(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=z(t.doubleValue),r=z(e.doubleValue);return n===r?N(n)===N(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return xe(t.arrayValue.values||[],e.arrayValue.values||[],M);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(C(n)!==C(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!M(n[i],r[i])))return!1;return!0}(t,e);default:return _e()}}function F(t,e){return void 0!==(t.values||[]).find((function(t){return M(t,e)}))}function V(t,e){var n=L(t),r=L(e);if(n!==r)return Te(n,r);switch(n){case 0:return 0;case 1:return Te(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=z(t.integerValue||t.doubleValue),r=z(e.integerValue||e.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(t,e);case 3:return U(t.timestampValue,e.timestampValue);case 4:return U(D(t),D(e));case 5:return Te(t.stringValue,e.stringValue);case 6:return function(t,e){var n=G(t),r=G(e);return n.S(r)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),r=e.split("/"),i=0;i<n.length&&i<r.length;i++){var o=Te(n[i],r[i]);if(0!==o)return o}return Te(n.length,r.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=Te(z(t.latitude),z(e.latitude));return 0!==n?n:Te(z(t.longitude),z(e.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(t,e){for(var n=t.values||[],r=e.values||[],i=0;i<n.length&&i<r.length;++i){var o=V(n[i],r[i]);if(o)return o}return Te(n.length,r.length)}(t.arrayValue,e.arrayValue);case 10:return function(t,e){var n=t.fields||{},r=Object.keys(n),i=e.fields||{},o=Object.keys(i);r.sort(),o.sort();for(var s=0;s<r.length&&s<o.length;++s){var a=Te(r[s],o[s]);if(0!==a)return a;var u=V(n[r[s]],i[o[s]]);if(0!==u)return u}return Te(r.length,o.length)}(t.mapValue,e.mapValue);default:throw _e()}}function U(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return Te(t,e);var n=q(t),r=q(e),i=Te(n.seconds,r.seconds);return 0!==i?i:Te(n.nanos,r.nanos)}function B(t){return function t(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(t){var e=q(t);return"time("+e.seconds+","+e.nanos+")"}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?G(e.bytesValue).toBase64():"referenceValue"in e?x.Z(e.referenceValue).toString():"geoPointValue"in e?"geo("+(n=e.geoPointValue).latitude+","+n.longitude+")":"arrayValue"in e?function(e){for(var n="[",r=!0,i=0,o=e.values||[];i<o.length;i++)r?r=!1:n+=",",n+=t(o[i]);return n+"]"}(e.arrayValue):"mapValue"in e?function(e){for(var n="{",r=!0,i=0,o=Object.keys(e.fields||{}).sort();i<o.length;i++){var s=o[i];r?r=!1:n+=",",n+=s+":"+t(e.fields[s])}return n+"}"}(e.mapValue):_e();var n}(t)}function q(t){if(we(!!t),"string"==typeof t){var e=0,n=j.exec(t);if(we(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),e=Number(r)}var i=new Date(t);return{seconds:Math.floor(i.getTime()/1e3),nanos:e}}return{seconds:z(t.seconds),nanos:z(t.nanos)}}function z(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function G(t){return"string"==typeof t?I.fromBase64String(t):I.fromUint8Array(t)}function H(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.j()}}function W(t){return!!t&&"integerValue"in t}function $(t){return!!t&&"arrayValue"in t}function Q(t){return!!t&&"nullValue"in t}function K(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function Y(t){return!!t&&"mapValue"in t}var Z=function(){function t(){}return t.prototype.ot=function(t,e){return function(t,e){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:t.seconds,nanos:t.nanoseconds}}}};return e&&(n.fields.__previous_value__=e),{mapValue:n}}(e,t)},t.prototype.at=function(t,e){return e},t.prototype.ut=function(t){return null},t.prototype.isEqual=function(e){return e instanceof t},t}();Z.instance=new Z;var X=function(){function t(t){this.elements=t}return t.prototype.ot=function(t,e){return this.apply(t)},t.prototype.at=function(t,e){return this.apply(t)},t.prototype.apply=function(t){for(var e=et(t),n=function(t){e.some((function(e){return M(e,t)}))||e.push(t)},r=0,i=this.elements;r<i.length;r++)n(i[r]);return{arrayValue:{values:e}}},t.prototype.ut=function(t){return null},t.prototype.isEqual=function(e){return e instanceof t&&xe(this.elements,e.elements,M)},t}(),J=function(){function t(t){this.elements=t}return t.prototype.ot=function(t,e){return this.apply(t)},t.prototype.at=function(t,e){return this.apply(t)},t.prototype.apply=function(t){for(var e=et(t),n=function(t){e=e.filter((function(e){return!M(e,t)}))},r=0,i=this.elements;r<i.length;r++)n(i[r]);return{arrayValue:{values:e}}},t.prototype.ut=function(t){return null},t.prototype.isEqual=function(e){return e instanceof t&&xe(this.elements,e.elements,M)},t}
8(),tt=function(){function t(t,e){this.serializer=t,this.ct=e}return t.prototype.ot=function(t,e){var n=this.ut(t),r=this.asNumber(n)+this.asNumber(this.ct);return W(n)&&W(this.ct)?this.serializer._t(r):this.serializer.lt(r)},t.prototype.at=function(t,e){return e},t.prototype.ut=function(t){return W(e=t)||function(t){return!!t&&"doubleValue"in t}(e)?t:{integerValue:0};var e},t.prototype.isEqual=function(e){return e instanceof t&&M(this.ct,e.ct)},t.prototype.asNumber=function(t){return z(t.integerValue||t.doubleValue)},t}();function et(t){return $(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}var nt=function(){function t(t){this.fields=t,t.sort(T.N)}return t.prototype.dt=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].q(t))return!0;return!1},t.prototype.isEqual=function(t){return xe(this.fields,t.fields,(function(t,e){return t.isEqual(e)}))},t}(),rt=function(){function t(t,e){this.field=t,this.transform=e}return t.prototype.isEqual=function(t){return this.field.isEqual(t.field)&&this.transform.isEqual(t.transform)},t}(),it=function(t,e){this.version=t,this.transformResults=e},ot=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.ft=function(){return new t},t.exists=function(e){return new t(void 0,e)},t.updateTime=function(e){return new t(e)},Object.defineProperty(t.prototype,"Tt",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!0,configurable:!0}),t.prototype.Et=function(t){return void 0!==this.updateTime?t instanceof bt&&t.version.isEqual(this.updateTime):void 0===this.exists||this.exists===t instanceof bt},t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}(),st=function(){function t(){}return t.prototype.It=function(t){},t.wt=function(t){return t instanceof bt?t.version:_.min()},t}(),at=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).key=e,i.value=n,i.Rt=r,i.type=0,i}return i.__extends(e,t),e.prototype.at=function(t,e){return this.It(t),new bt(this.key,e.version,this.value,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){if(this.It(t),!this.Rt.Et(t))return t;var r=st.wt(t);return new bt(this.key,r,this.value,{At:!0})},e.prototype.Pt=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.value.isEqual(t.value)&&this.Rt.isEqual(t.Rt)},e}(st),ut=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this)||this).key=e,o.data=n,o.Vt=r,o.Rt=i,o.type=1,o}return i.__extends(e,t),e.prototype.at=function(t,e){if(this.It(t),!this.Rt.Et(t))return new _t(this.key,e.version);var n=this.gt(t);return new bt(this.key,e.version,n,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){if(this.It(t),!this.Rt.Et(t))return t;var r=st.wt(t),i=this.gt(t);return new bt(this.key,r,i,{At:!0})},e.prototype.Pt=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Vt.isEqual(t.Vt)&&this.Rt.isEqual(t.Rt)},e.prototype.gt=function(t){var e;return e=t instanceof bt?t.data():dt.empty(),this.pt(e)},e.prototype.pt=function(t){var e=this,n=new ft(t);return this.Vt.fields.forEach((function(t){if(!t.B()){var r=e.data.field(t);null!==r?n.set(t,r):n.delete(t)}})),n.yt()},e}(st),ct=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.fieldTransforms=n,r.type=2,r.Rt=ot.exists(!0),r}return i.__extends(e,t),e.prototype.at=function(t,e){if(this.It(t),we(null!=e.transformResults),!this.Rt.Et(t))return new _t(this.key,e.version);var n=this.bt(t),r=this.vt(t,e.transformResults),i=e.version,o=this.St(n.data(),r);return new bt(this.key,i,o,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){if(this.It(t),!this.Rt.Et(t))return t;var r=this.bt(t),i=this.Dt(n,t,e),o=this.St(r.data(),i);return new bt(this.key,r.version,o,{At:!0})},e.prototype.Pt=function(t){for(var e=null,n=0,r=this.fieldTransforms;n<r.length;n++){var i=r[n],o=t instanceof bt?t.field(i.field):void 0,s=i.transform.ut(o||null);null!=s&&(e=null==e?(new ft).set(i.field,s):e.set(i.field,s))}return e?e.yt():null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&xe(this.fieldTransforms,t.fieldTransforms,(function(t,e){return t.isEqual(e)}))&&this.Rt.isEqual(t.Rt)},e.prototype.bt=function(t){return t},e.prototype.vt=function(t,e){var n=[];we(this.fieldTransforms.length===e.length);for(var r=0;r<e.length;r++){var i=this.fieldTransforms[r],o=i.transform,s=null;t instanceof bt&&(s=t.field(i.field)),n.push(o.at(s,e[r]))}return n},e.prototype.Dt=function(t,e,n){for(var r=[],i=0,o=this.fieldTransforms;i<o.length;i++){var s=o[i],a=s.transform,u=null;e instanceof bt&&(u=e.field(s.field)),null===u&&n instanceof bt&&(u=n.field(s.field)),r.push(a.ot(u,t))}return r},e.prototype.St=function(t,e){for(var n=new ft(t),r=0;r<this.fieldTransforms.length;r++)n.set(this.fieldTransforms[r].field,e[r]);return n.yt()},e}(st),lt=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Rt=n,r.type=3,r}return i.__extends(e,t),e.prototype.at=function(t,e){return this.It(t),new vt(this.key,e.version,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){return this.It(t),this.Rt.Et(t)?new vt(this.key,_.min()):t},e.prototype.Pt=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Rt.isEqual(t.Rt)},e}(st),ht=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Rt=n,r.type=4,r}return i.__extends(e,t),e.prototype.at=function(t,e){_e()},e.prototype.ot=function(t,e,n){_e()},e.prototype.Pt=function(t){_e()},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Rt.isEqual(t.Rt)},e}(st),dt=function(){function t(t){this.proto=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(t){if(t.B())return this.proto;for(var e=this.proto,n=0;n<t.length-1;++n){if(!e.mapValue.fields)return null;if(!Y(e=e.mapValue.fields[t.get(n)]))return null}return(e=(e.mapValue.fields||{})[t.O()])||null},t.prototype.isEqual=function(t){return M(this.proto,t.proto)},t}(),ft=function(){function t(t){void 0===t&&(t=dt.empty()),this.Ct=t,this.Ft=new Map}return t.prototype.set=function(t,e){return this.Nt(t,e),this},t.prototype.delete=function(t){return this.Nt(t,null),this},t.prototype.Nt=function(t,e){for(var n=this.Ft,r=0;r<t.length-1;++r){var i=t.get(r),o=n.get(i);o instanceof Map?n=o:o&&10===L(o)?(o=new Map(Object.entries(o.mapValue.fields||{})),n.set(i,o),n=o):(o=new Map,n.set(i,o),n=o)}n.set(t.O(),e)},t.prototype.yt=function(){var t=this.kt(T.G,this.Ft);return null!=t?new dt(t):this.Ct},t.prototype.kt=function(t,e){var n=this,r=!1,i=this.Ct.field(t),o=Y(i)?Object.assign({},i.mapValue.fields):{};return e.forEach((function(e,i){if(e instanceof Map){var s=n.kt(t.child(i),e);null!=s&&(o[i]=s,r=!0)}else null!==e?(o[i]=e,r=!0):o.hasOwnProperty(i)&&(delete o[i],r=!0)})),r?{mapValue:{fields:o}}:null},t}();function pt(t){var e=[];return k(t.fields||{},(function(t,n){var r=new T([t]);if(Y(n)){var i=pt(n.mapValue).fields;
8if(0===i.length)e.push(r);else for(var o=0,s=i;o<s.length;o++)e.push(r.child(s[o]))}else e.push(r)})),new nt(e)}var mt,gt,yt=function(t,e){this.key=t,this.version=e},bt=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this,e,n)||this).$t=r,o.At=!!i.At,o.hasCommittedMutations=!!i.hasCommittedMutations,o}return i.__extends(e,t),e.prototype.field=function(t){return this.$t.field(t)},e.prototype.data=function(){return this.$t},e.prototype.Mt=function(){return this.$t.proto},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.At===t.At&&this.hasCommittedMutations===t.hasCommittedMutations&&this.$t.isEqual(t.$t)},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.$t.toString()+", {hasLocalMutations: "+this.At+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.At||this.hasCommittedMutations},enumerable:!0,configurable:!0}),e}(yt),vt=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n)||this).hasCommittedMutations=!(!r||!r.hasCommittedMutations),i}return i.__extends(e,t),e.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.hasCommittedMutations===this.hasCommittedMutations&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(yt),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(yt),wt=function(){function t(t,e,n,r,i,o,s){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=s,this.Lt=null}return t.prototype.canonicalId=function(){if(null===this.Lt){var t=this.path.j();null!==this.collectionGroup&&(t+="|cg:"+this.collectionGroup),t+="|f:",t+=this.filters.map((function(t){return t.canonicalId()})).join(","),t+="|ob:",t+=this.orderBy.map((function(t){return t.canonicalId()})).join(","),A(this.limit)||(t+="|l:",t+=this.limit),this.startAt&&(t+="|lb:",t+=this.startAt.canonicalId()),this.endAt&&(t+="|ub:",t+=this.endAt.canonicalId()),this.Lt=t}return this.Lt},t.prototype.toString=function(){var t=this.path.j();return null!==this.collectionGroup&&(t+=" collectionGroup="+this.collectionGroup),this.filters.length>0&&(t+=", filters: ["+this.filters.join(", ")+"]"),A(this.limit)||(t+=", limit: "+this.limit),this.orderBy.length>0&&(t+=", orderBy: ["+this.orderBy.join(", ")+"]"),this.startAt&&(t+=", startAt: "+this.startAt.canonicalId()),this.endAt&&(t+=", endAt: "+this.endAt.canonicalId()),"Target("+t+")"},t.prototype.isEqual=function(t){if(this.limit!==t.limit)return!1;if(this.orderBy.length!==t.orderBy.length)return!1;for(var e=0;e<this.orderBy.length;e++)if(!this.orderBy[e].isEqual(t.orderBy[e]))return!1;if(this.filters.length!==t.filters.length)return!1;for(var n=0;n<this.filters.length;n++)if(!this.filters[n].isEqual(t.filters[n]))return!1;return this.collectionGroup===t.collectionGroup&&!!this.path.isEqual(t.path)&&!!(null!==this.startAt?this.startAt.isEqual(t.startAt):null===t.startAt)&&(null!==this.endAt?this.endAt.isEqual(t.endAt):null===t.endAt)},t.prototype.xt=function(){return x.et(this.path)&&null===this.collectionGroup&&0===this.filters.length},t}(),Et=function(){function t(t,e,n,r,i,o,s,a){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o="F"),void 0===s&&(s=null),void 0===a&&(a=null),this.path=t,this.collectionGroup=e,this.Ot=n,this.filters=r,this.limit=i,this.Bt=o,this.startAt=s,this.endAt=a,this.qt=null,this.Ut=null,this.startAt&&this.Qt(this.startAt),this.endAt&&this.Qt(this.endAt)}return t.Wt=function(e){return new t(e)},Object.defineProperty(t.prototype,"orderBy",{get:function(){if(null===this.qt){this.qt=[];var t=this.jt(),e=this.Kt();if(null!==t&&null===e)t.Y()||this.qt.push(new At(t)),this.qt.push(new At(T.J(),"asc"));else{for(var n=!1,r=0,i=this.Ot;r<i.length;r++){var o=i[r];this.qt.push(o),o.field.Y()&&(n=!0)}if(!n){var s=this.Ot.length>0?this.Ot[this.Ot.length-1].dir:"asc";this.qt.push(new At(T.J(),s))}}}return this.qt},enumerable:!0,configurable:!0}),t.prototype.Gt=function(e){var n=this.filters.concat([e]);return new t(this.path,this.collectionGroup,this.Ot.slice(),n,this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.zt=function(e){var n=this.Ot.concat([e]);return new t(this.path,this.collectionGroup,n,this.filters.slice(),this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.Ht=function(e){return new t(this.path,this.collectionGroup,this.Ot.slice(),this.filters.slice(),e,"F",this.startAt,this.endAt)},t.prototype.Yt=function(e){return new t(this.path,this.collectionGroup,this.Ot.slice(),this.filters.slice(),e,"L",this.startAt,this.endAt)},t.prototype.Jt=function(e){return new t(this.path,this.collectionGroup,this.Ot.slice(),this.filters.slice(),this.limit,this.Bt,e,this.endAt)},t.prototype.Xt=function(e){return new t(this.path,this.collectionGroup,this.Ot.slice(),this.filters.slice(),this.limit,this.Bt,this.startAt,e)},t.prototype.Zt=function(e){return new t(e,null,this.Ot.slice(),this.filters.slice(),this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.te=function(){return 0===this.filters.length&&null===this.limit&&null==this.startAt&&null==this.endAt&&(0===this.Ot.length||1===this.Ot.length&&this.Ot[0].field.Y())},t.prototype.canonicalId=function(){return this.ee().canonicalId()+"|lt:"+this.Bt},t.prototype.toString=function(){return"Query(target="+this.ee().toString()+"; limitType="+this.Bt+")"},t.prototype.isEqual=function(t){return this.ee().isEqual(t.ee())&&this.Bt===t.Bt},t.prototype.se=function(t,e){for(var n=!1,r=0,i=this.orderBy;r<i.length;r++){var o=i[r],s=o.compare(t,e);if(0!==s)return s;n=n||o.field.Y()}return 0},t.prototype.matches=function(t){return this.ie(t)&&this.ne(t)&&this.re(t)&&this.he(t)},t.prototype.oe=function(){return!A(this.limit)&&"F"===this.Bt},t.prototype.ae=function(){return!A(this.limit)&&"L"===this.Bt},t.prototype.Kt=function(){return this.Ot.length>0?this.Ot[0].field:null},t.prototype.jt=function(){for(var t=0,e=this.filters;t<e.length;t++){var n=e[t];if(n instanceof St&&n.ue())return n.field}return null},t.prototype.ce=function(t){for(var e=0,n=this.filters;e<n.length;e++){var r=n[e];if(r instanceof St&&t.indexOf(r.op)>=0)return r.op}return null},t.prototype.xt=function(){return this.ee().xt()},t.prototype._e=function(){return null!==this.collectionGroup},t.prototype.ee=function(){if(!this.Ut)if("F"===this.Bt)this.Ut=new wt(this.path,this.collectionGroup,this.orderBy,this.filters,this.limit,this.startAt,this.endAt);else{for(var t=[],e=0,n=this.orderBy;e<n.length;e++){var r=n[e];t.push(new At(r.field,"desc"===r.dir?"asc":"desc"))}var i=this.endAt?new It(this.endAt.position,!this.endAt.before):null,o=this.startAt?new It(this.startAt.position,!this.startAt.before):null;this.Ut=new wt(this.path,this.collectionGroup,t,this.filters,this.limit,i,o)}return this.Ut},t.prototype.ie=function(t){var e=t.key.path;return null!==this.collectionGroup?t.key.tt(this.collectionGroup)&&this.path.q(e):x.et(this.path)?this.path.isEqual(e):this.path.U(e)},t.prototype.ne=function(t){for(var e=0,n=this.Ot;e<n.length;e++){var r=n[e];if(!r.field.Y()&&null===t.field(r.field))return!1}return!0},t.prototype.re=function(t){for(var e=0,n=this.filters;e<n.length;e++)if(!n[e].matches(t))return!1;return!0},t.prototype.he=function(t){return!(this.startAt&&!this.startAt.le(this.orderBy,t)||this.endAt&&this.endAt.le(this.orderBy,t))},t.prototype.Qt=function(t){},t}(),St=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).field=e,i.op=n,i.value=r,i}return i.__extends(e,t),e.create=function(t,n,r){if(t.Y())return"in"===n?new xt(t,r):new Tt(t,n,r);if(Q(r)){if("=="!==n)throw new f(d.INVALID_ARGUMENT,"Invalid query. Null supports only equality comparisons.");return new e(t,n,r)}if(K(r)){if("=="!==n)throw new f(d.INVALID_ARGUMENT,"Invalid query. NaN supports only equality comparisons.");return new e(t,n,r)}return"array-contains"===n?new Ct(t,r):"in"===n?new kt(t,r):"array-contains-any"===n?new Ot(t,r):new e(t,n,r)},e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&L(this.value)===L(e)&&this.de(V(e,this.value))},e.prototype.de=function(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case">":return t>0;case">=":return t>=0;default:return _e()}},e.prototype.ue=function(){return["<","<=",">",">="].indexOf(this.op)>=0},e.prototype.canonicalId=function(){return this.field.j()+this.op.toString()+B(this.value)},e.prototype.isEqual=function(t){return t instanceof e&&this.op===t.op&&this.field.isEqual(t.field)&&M(this.value,t.value)},e.prototype.toString=function(){return this.field.j()+" "+this.op+" "+B(this.value)},e}((function(){})),Tt=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=x.Z(r.referenceValue),i}return i.__extends(e,t),e.prototype.matches=function(t){var e=x.N(t.key,this.key);return this.de(e)},e}(St),xt=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=(n.arrayValue.values||[]).map((function(t){return x.Z(t.referenceValue)})),r}return i.__extends(e,t),e.prototype.matches=function(t){return this.keys.some((function(e){return e.isEqual(t.key)}))},e}(St),Ct=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return $(e)&&F(e.arrayValue,this.value)},e}(St),kt=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&F(this.value.arrayValue,e)},e}(St),Ot=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=this,n=t.field(this.field);return!(!$(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return F(e.value.arrayValue,t)}))},e}(St),It=function(){function t(t,e){this.position=t,this.before=e}return t.prototype.canonicalId=function(){return(this.before?"b":"a")+":"+this.position.map((function(t){return B(t)})).join(",")},t.prototype.le=function(t,e){for(var n=0,r=0;r<this.position.length;r++){var i=t[r],o=this.position[r];if(n=i.field.Y()?x.N(x.Z(o.referenceValue),e.key):V(o,e.field(i.field)),"desc"===i.dir&&(n*=-1),0!==n)break}return this.before?n<=0:n<0},t.prototype.isEqual=function(t){if(null===t)return!1;if(this.before!==t.before||this.position.length!==t.position.length)return!1;for(var e=0;e<this.position.length;e++)if(!M(this.position[e],t.position[e]))return!1;return!0},t}(),At=function(){function t(t,e){this.field=t,void 0===e&&(e="asc"),this.dir=e,this.fe=t.Y()}return t.prototype.compare=function(t,e){var n=this.fe?x.N(t.key,e.key):function(t,e,n){var r=e.field(t),i=n.field(t);return null!==r&&null!==i?V(r,i):_e()}(this.field,t,e);switch(this.dir){case"asc":return n;
8case"desc":return-1*n;default:return _e()}},t.prototype.canonicalId=function(){return this.field.j()+this.dir.toString()},t.prototype.toString=function(){return this.field.j()+" ("+this.dir+")"},t.prototype.isEqual=function(t){return this.dir===t.dir&&this.field.isEqual(t.field)},t}(),Nt=function(){function t(t,e,n,r,i,o,s){void 0===i&&(i=_.min()),void 0===o&&(o=_.min()),void 0===s&&(s=I.ht),this.target=t,this.targetId=e,this.Te=n,this.sequenceNumber=r,this.Ee=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=s}return t.prototype.Ie=function(e){return new t(this.target,this.targetId,this.Te,e,this.Ee,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.we=function(e,n){return new t(this.target,this.targetId,this.Te,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.Re=function(e){return new t(this.target,this.targetId,this.Te,this.sequenceNumber,this.Ee,e,this.resumeToken)},t}(),Rt=function(t){this.count=t};function Pt(t){switch(t){case d.OK:return _e();case d.CANCELLED:case d.UNKNOWN:case d.DEADLINE_EXCEEDED:case d.RESOURCE_EXHAUSTED:case d.INTERNAL:case d.UNAVAILABLE:case d.UNAUTHENTICATED:return!1;case d.INVALID_ARGUMENT:case d.NOT_FOUND:case d.ALREADY_EXISTS:case d.PERMISSION_DENIED:case d.FAILED_PRECONDITION:case d.ABORTED:case d.OUT_OF_RANGE:case d.UNIMPLEMENTED:case d.DATA_LOSS:return!0;default:return _e()}}function Dt(t){if(void 0===t)return be("GRPC error has no .code"),d.UNKNOWN;switch(t){case mt.OK:return d.OK;case mt.CANCELLED:return d.CANCELLED;case mt.UNKNOWN:return d.UNKNOWN;case mt.DEADLINE_EXCEEDED:return d.DEADLINE_EXCEEDED;case mt.RESOURCE_EXHAUSTED:return d.RESOURCE_EXHAUSTED;case mt.INTERNAL:return d.INTERNAL;case mt.UNAVAILABLE:return d.UNAVAILABLE;case mt.UNAUTHENTICATED:return d.UNAUTHENTICATED;case mt.INVALID_ARGUMENT:return d.INVALID_ARGUMENT;case mt.NOT_FOUND:return d.NOT_FOUND;case mt.ALREADY_EXISTS:return d.ALREADY_EXISTS;case mt.PERMISSION_DENIED:return d.PERMISSION_DENIED;case mt.FAILED_PRECONDITION:return d.FAILED_PRECONDITION;case mt.ABORTED:return d.ABORTED;case mt.OUT_OF_RANGE:return d.OUT_OF_RANGE;case mt.UNIMPLEMENTED:return d.UNIMPLEMENTED;case mt.DATA_LOSS:return d.DATA_LOSS;default:return _e()}}(gt=mt||(mt={}))[gt.OK=0]="OK",gt[gt.CANCELLED=1]="CANCELLED",gt[gt.UNKNOWN=2]="UNKNOWN",gt[gt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",gt[gt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",gt[gt.NOT_FOUND=5]="NOT_FOUND",gt[gt.ALREADY_EXISTS=6]="ALREADY_EXISTS",gt[gt.PERMISSION_DENIED=7]="PERMISSION_DENIED",gt[gt.UNAUTHENTICATED=16]="UNAUTHENTICATED",gt[gt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",gt[gt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",gt[gt.ABORTED=10]="ABORTED",gt[gt.OUT_OF_RANGE=11]="OUT_OF_RANGE",gt[gt.UNIMPLEMENTED=12]="UNIMPLEMENTED",gt[gt.INTERNAL=13]="INTERNAL",gt[gt.UNAVAILABLE=14]="UNAVAILABLE",gt[gt.DATA_LOSS=15]="DATA_LOSS";var jt=function(){function t(t,e){this.N=t,this.root=e||Mt.EMPTY}return t.prototype.me=function(e,n){return new t(this.N,this.root.me(e,n,this.N).Ae(null,null,Mt.Pe,null,null))},t.prototype.remove=function(e){return new t(this.N,this.root.remove(e,this.N).Ae(null,null,Mt.Pe,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.B();){var n=this.N(t,e.key);if(0===n)return e.value;n<0?e=e.left:n>0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n.B();){var r=this.N(t,n.key);if(0===r)return e+n.left.size;r<0?n=n.left:(e+=n.left.size+1,n=n.right)}return-1},t.prototype.B=function(){return this.root.B()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!0,configurable:!0}),t.prototype.Ve=function(){return this.root.Ve()},t.prototype.ge=function(){return this.root.ge()},t.prototype.pe=function(t){return this.root.pe(t)},t.prototype.forEach=function(t){this.pe((function(e,n){return t(e,n),!1}))},t.prototype.toString=function(){var t=[];return this.pe((function(e,n){return t.push(e+":"+n),!1})),"{"+t.join(", ")+"}"},t.prototype.ye=function(t){return this.root.ye(t)},t.prototype.be=function(){return new Lt(this.root,null,this.N,!1)},t.prototype.ve=function(t){return new Lt(this.root,t,this.N,!1)},t.prototype.Se=function(){return new Lt(this.root,null,this.N,!0)},t.prototype.De=function(t){return new Lt(this.root,t,this.N,!0)},t}(),Lt=function(){function t(t,e,n,r){this.Ce=r,this.Fe=[];for(var i=1;!t.B();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this.Ce?t.left:t.right;else{if(0===i){this.Fe.push(t);break}this.Fe.push(t),t=this.Ce?t.right:t.left}}return t.prototype.Ne=function(){var t=this.Fe.pop(),e={key:t.key,value:t.value};if(this.Ce)for(t=t.left;!t.B();)this.Fe.push(t),t=t.right;else for(t=t.right;!t.B();)this.Fe.push(t),t=t.left;return e},t.prototype.ke=function(){return this.Fe.length>0},t.prototype.$e=function(){if(0===this.Fe.length)return null;var t=this.Fe[this.Fe.length-1];return{key:t.key,value:t.value}},t}(),Mt=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:t.EMPTY,this.right=null!=o?o:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.Ae=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,
8null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.B=function(){return!1},t.prototype.pe=function(t){return this.left.pe(t)||t(this.key,this.value)||this.right.pe(t)},t.prototype.ye=function(t){return this.right.ye(t)||t(this.key,this.value)||this.left.ye(t)},t.prototype.min=function(){return this.left.B()?this:this.left.min()},t.prototype.Ve=function(){return this.min().key},t.prototype.ge=function(){return this.right.B()?this.key:this.right.ge()},t.prototype.me=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.Ae(null,null,null,r.left.me(t,e,n),null):0===i?r.Ae(null,e,null,null,null):r.Ae(null,null,null,null,r.right.me(t,e,n))).Me()},t.prototype.Le=function(){if(this.left.B())return t.EMPTY;var e=this;return e.left.xe()||e.left.left.xe()||(e=e.Oe()),(e=e.Ae(null,null,null,e.left.Le(),null)).Me()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left.B()||i.left.xe()||i.left.left.xe()||(i=i.Oe()),i=i.Ae(null,null,null,i.left.remove(e,n),null);else{if(i.left.xe()&&(i=i.Be()),i.right.B()||i.right.xe()||i.right.left.xe()||(i=i.qe()),0===n(e,i.key)){if(i.right.B())return t.EMPTY;r=i.right.min(),i=i.Ae(r.key,r.value,null,null,i.right.Le())}i=i.Ae(null,null,null,null,i.right.remove(e,n))}return i.Me()},t.prototype.xe=function(){return this.color},t.prototype.Me=function(){var t=this;return t.right.xe()&&!t.left.xe()&&(t=t.Ue()),t.left.xe()&&t.left.left.xe()&&(t=t.Be()),t.left.xe()&&t.right.xe()&&(t=t.Qe()),t},t.prototype.Oe=function(){var t=this.Qe();return t.right.left.xe()&&(t=(t=(t=t.Ae(null,null,null,null,t.right.Be())).Ue()).Qe()),t},t.prototype.qe=function(){var t=this.Qe();return t.left.left.xe()&&(t=(t=t.Be()).Qe()),t},t.prototype.Ue=function(){var e=this.Ae(null,null,t.RED,null,this.right.left);return this.right.Ae(null,null,this.color,e,null)},t.prototype.Be=function(){var e=this.Ae(null,null,t.RED,this.left.right,null);return this.left.Ae(null,null,this.color,null,e)},t.prototype.Qe=function(){var t=this.left.Ae(null,null,!this.left.color,null,null),e=this.right.Ae(null,null,!this.right.color,null,null);return this.Ae(null,null,!this.color,t,e)},t.prototype.We=function(){var t=this.je();return Math.pow(2,t)<=this.size+1},t.prototype.je=function(){if(this.xe()&&this.left.xe())throw _e();if(this.right.xe())throw _e();var t=this.left.je();if(t!==this.right.je())throw _e();return t+(this.xe()?0:1)},t}();Mt.EMPTY=null,Mt.RED=!0,Mt.Pe=!1,Mt.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw _e()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw _e()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw _e()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw _e()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw _e()},enumerable:!0,configurable:!0}),t.prototype.Ae=function(t,e,n,r,i){return this},t.prototype.me=function(t,e,n){return new Mt(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.B=function(){return!0},t.prototype.pe=function(t){return!1},t.prototype.ye=function(t){return!1},t.prototype.Ve=function(){return null},t.prototype.ge=function(){return null},t.prototype.xe=function(){return!1},t.prototype.We=function(){return!0},t.prototype.je=function(){return 0},t}());var Ft=function(){function t(t){this.N=t,this.data=new jt(this.N)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.Ve()},t.prototype.last=function(){return this.data.ge()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.pe((function(e,n){return t(e),!1}))},t.prototype.Ke=function(t,e){for(var n=this.data.ve(t[0]);n.ke();){var r=n.Ne();if(this.N(r.key,t[1])>=0)return;e(r.key)}},t.prototype.Ge=function(t,e){var n;for(n=void 0!==e?this.data.ve(e):this.data.be();n.ke();
8)if(!t(n.Ne().key))return},t.prototype.ze=function(t){var e=this.data.ve(t);return e.ke()?e.Ne().key:null},t.prototype.be=function(){return new Vt(this.data.be())},t.prototype.ve=function(t){return new Vt(this.data.ve(t))},t.prototype.add=function(t){return this.Ae(this.data.remove(t).me(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.Ae(this.data.remove(t)):this},t.prototype.B=function(){return this.data.B()},t.prototype.He=function(t){var e=this;return e.size<t.size&&(e=t,t=this),t.forEach((function(t){e=e.add(t)})),e},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.data.be(),r=e.data.be();n.ke();){var i=n.Ne().key,o=r.Ne().key;if(0!==this.N(i,o))return!1}return!0},t.prototype.W=function(){var t=[];return this.forEach((function(e){t.push(e)})),t},t.prototype.toString=function(){var t=[];return this.forEach((function(e){return t.push(e)})),"SortedSet("+t.toString()+")"},t.prototype.Ae=function(e){var n=new t(this.N);return n.data=e,n},t}(),Vt=function(){function t(t){this.Ye=t}return t.prototype.Ne=function(){return this.Ye.Ne().key},t.prototype.ke=function(){return this.Ye.ke()},t}(),Ut=new jt(x.N);function Bt(){return Ut}function qt(){return Bt()}var zt=new jt(x.N);function Gt(){return zt}var Ht=new jt(x.N);function Wt(){return Ht}var $t=new Ft(x.N);function Qt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=$t,r=0,i=t;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var Kt=new Ft(Te);function Yt(){return Kt}var Zt=function(){function t(t){this.N=t?function(e,n){return t(e,n)||x.N(e.key,n.key)}:function(t,e){return x.N(t.key,e.key)},this.Je=Gt(),this.Xe=new jt(this.N)}return t.Ze=function(e){return new t(e.N)},t.prototype.has=function(t){return null!=this.Je.get(t)},t.prototype.get=function(t){return this.Je.get(t)},t.prototype.first=function(){return this.Xe.Ve()},t.prototype.last=function(){return this.Xe.ge()},t.prototype.B=function(){return this.Xe.B()},t.prototype.indexOf=function(t){var e=this.Je.get(t);return e?this.Xe.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.Xe.size},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t){this.Xe.pe((function(e,n){return t(e),!1}))},t.prototype.add=function(t){var e=this.delete(t.key);return e.Ae(e.Je.me(t.key,t),e.Xe.me(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.Ae(this.Je.remove(t),this.Xe.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.Xe.be(),r=e.Xe.be();n.ke();){var i=n.Ne().key,o=r.Ne().key;if(!i.isEqual(o))return!1}return!0},t.prototype.toString=function(){var t=[];return this.forEach((function(e){t.push(e.toString())})),0===t.length?"DocumentSet ()":"DocumentSet (\n "+t.join(" \n")+"\n)"},t.prototype.Ae=function(e,n){var r=new t;return r.N=this.N,r.Je=e,r.Xe=n,r},t}(),Xt=function(){function t(){this.ts=new jt(x.N)}return t.prototype.track=function(t){var e=t.doc.key,n=this.ts.get(e);n?0!==t.type&&3===n.type?this.ts=this.ts.me(e,t):3===t.type&&1!==n.type?this.ts=this.ts.me(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.ts=this.ts.me(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.ts=this.ts.me(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.ts=this.ts.remove(e):1===t.type&&2===n.type?this.ts=this.ts.me(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.ts=this.ts.me(e,{type:2,doc:t.doc}):_e():this.ts=this.ts.me(e,t)},t.prototype.es=function(){var t=[];return this.ts.pe((function(e,n){t.push(n)})),t},t}(),Jt=function(){function t(t,e,n,r,i,o,s,a){this.query=t,this.docs=e,this.ss=n,this.docChanges=r,this.ns=i,this.fromCache=o,this.rs=s,this.hs=a}return t.os=function(e,n,r,i){var o=[];return n.forEach((function(t){o.push({type:0,doc:t})})),new t(e,n,Zt.Ze(n),o,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.ns.B()},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.rs===t.rs&&this.ns.isEqual(t.ns)&&this.query.isEqual(t.query)&&this.docs.isEqual(t.docs)&&this.ss.isEqual(t.ss)))return!1;var e=this.docChanges,n=t.docChanges;if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(e[r].type!==n[r].type||!e[r].doc.isEqual(n[r].doc))return!1;return!0},t}(),te=function(){function t(t,e,n,r,i){this.Ee=t,this.as=e,this.us=n,this.cs=r,this._s=i}return t.ls=function(e,n){var r=new Map;return r.set(e,ee.ds(e,n)),new t(_.min(),r,Yt(),Bt(),Qt())},t}(),ee=function(){function t(t,e,n,r,i){this.resumeToken=t,this.fs=e,this.Ts=n,this.Es=r,this.Is=i}return t.ds=function(e,n){return new t(I.ht,n,Qt(),Qt(),Qt())},t}(),ne=function(t,e,n,r){this.ws=t,this.removedTargetIds=e,this.key=n,this.Rs=r},re=function(t,e){this.targetId=t,this.ms=e},ie=function(t,e,n,r){void 0===n&&(n=I.ht),void 0===r&&(r=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=r},oe=function(){function t(){this.As=0,this.Ps=ue(),this.Vs=I.ht,this.gs=!1,this.ps=!0}return Object.defineProperty(t.prototype,"fs",{get:function(){return this.gs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.Vs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ys",{get:function(){return 0!==this.As},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bs",{get:function(){return this.ps},enumerable:!0,configurable:!0}),t.prototype.vs=function(t){t.rt()>0&&(this.ps=!0,this.Vs=t)},t.prototype.Ss=function(){var t=Qt(),e=Qt(),n=Qt();
8return this.Ps.forEach((function(r,i){switch(i){case 0:t=t.add(r);break;case 2:e=e.add(r);break;case 1:n=n.add(r);break;default:_e()}})),new ee(this.Vs,this.gs,t,e,n)},t.prototype.Ds=function(){this.ps=!1,this.Ps=ue()},t.prototype.Cs=function(t,e){this.ps=!0,this.Ps=this.Ps.me(t,e)},t.prototype.Fs=function(t){this.ps=!0,this.Ps=this.Ps.remove(t)},t.prototype.Ns=function(){this.As+=1},t.prototype.ks=function(){this.As-=1},t.prototype.$s=function(){this.ps=!0,this.gs=!0},t}(),se=function(){function t(t){this.Ms=t,this.Ls=new Map,this.xs=Bt(),this.Os=ae(),this.Bs=new Ft(Te)}return t.prototype.qs=function(t){for(var e=0,n=t.ws;e<n.length;e++){var r=n[e];t.Rs instanceof bt?this.Us(r,t.Rs):t.Rs instanceof vt&&this.Qs(r,t.key,t.Rs)}for(var i=0,o=t.removedTargetIds;i<o.length;i++)this.Qs(o[i],t.key,t.Rs)},t.prototype.Ws=function(t){var e=this;this.js(t,(function(n){var r=e.Ks(n);switch(t.state){case 0:e.Gs(n)&&r.vs(t.resumeToken);break;case 1:r.ks(),r.ys||r.Ds(),r.vs(t.resumeToken);break;case 2:r.ks(),r.ys||e.removeTarget(n);break;case 3:e.Gs(n)&&(r.$s(),r.vs(t.resumeToken));break;case 4:e.Gs(n)&&(e.zs(n),r.vs(t.resumeToken));break;default:_e()}}))},t.prototype.js=function(t,e){var n=this;t.targetIds.length>0?t.targetIds.forEach(e):this.Ls.forEach((function(t,r){n.Gs(r)&&e(r)}))},t.prototype.Hs=function(t){var e=t.targetId,n=t.ms.count,r=this.Ys(e);if(r){var i=r.target;if(i.xt())if(0===n){var o=new x(i.path);this.Qs(e,o,new vt(o,_.min()))}else we(1===n);else this.Js(e)!==n&&(this.zs(e),this.Bs=this.Bs.add(e))}},t.prototype.Xs=function(t){var e=this,n=new Map;this.Ls.forEach((function(r,i){var o=e.Ys(i);if(o){if(r.fs&&o.target.xt()){var s=new x(o.target.path);null!==e.xs.get(s)||e.Zs(i,s)||e.Qs(i,s,new vt(s,t))}r.bs&&(n.set(i,r.Ss()),r.Ds())}}));var r=Qt();this.Os.forEach((function(t,n){var i=!0;n.Ge((function(t){var n=e.Ys(t);return!n||2===n.Te||(i=!1,!1)})),i&&(r=r.add(t))}));var i=new te(t,n,this.Bs,this.xs,r);return this.xs=Bt(),this.Os=ae(),this.Bs=new Ft(Te),i},t.prototype.Us=function(t,e){if(this.Gs(t)){var n=this.Zs(t,e.key)?2:0;this.Ks(t).Cs(e.key,n),this.xs=this.xs.me(e.key,e),this.Os=this.Os.me(e.key,this.ti(e.key).add(t))}},t.prototype.Qs=function(t,e,n){if(this.Gs(t)){var r=this.Ks(t);this.Zs(t,e)?r.Cs(e,1):r.Fs(e),this.Os=this.Os.me(e,this.ti(e).delete(t)),n&&(this.xs=this.xs.me(e,n))}},t.prototype.removeTarget=function(t){this.Ls.delete(t)},t.prototype.Js=function(t){var e=this.Ks(t).Ss();return this.Ms.ei(t).size+e.Ts.size-e.Is.size},t.prototype.Ns=function(t){this.Ks(t).Ns()},t.prototype.Ks=function(t){var e=this.Ls.get(t);return e||(e=new oe,this.Ls.set(t,e)),e},t.prototype.ti=function(t){var e=this.Os.get(t);return e||(e=new Ft(Te),this.Os=this.Os.me(t,e)),e},t.prototype.Gs=function(t){var e=null!==this.Ys(t);return e||ye("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.Ys=function(t){var e=this.Ls.get(t);return e&&e.ys?null:this.Ms.si(t)},t.prototype.zs=function(t){var e=this;this.Ls.set(t,new oe),this.Ms.ei(t).forEach((function(n){e.Qs(t,n,null)}))},t.prototype.Zs=function(t,e){return this.Ms.ei(t).has(e)},t}();function ae(){return new jt(x.N)}function ue(){return new jt(x.N)}var ce={asc:"ASCENDING",desc:"DESCENDING"},le={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","array-contains-any":"ARRAY_CONTAINS_ANY"},he=function(){function t(t,e){this.ii=t,this.options=e}return t.prototype.ni=function(t){var e=void 0===t.code?d.UNKNOWN:Dt(t.code);return new f(e,t.message||"")},t.prototype.ri=function(t){return this.options.hi||A(t)?t:{value:t}},t.prototype.oi=function(t){var e;return A(e="object"==typeof t?t.value:t)?null:e},t.prototype._t=function(t){return{integerValue:""+t}},t.prototype.lt=function(t){if(this.options.hi){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:N(t)?"-0":t}},t.prototype.ai=function(t){return R(t)?this._t(t):this.lt(t)},t.prototype.C=function(t){return this.options.hi?new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+t.nanoseconds).slice(-9)+"Z":{seconds:""+t.seconds,nanos:t.nanoseconds}},t.prototype.v=function(t){var e=q(t);return new v(e.seconds,e.nanos)},t.prototype.ui=function(t){return this.options.hi?t.toBase64():t.toUint8Array()},t.prototype.ci=function(t){return this.options.hi?(we(void 0===t||"string"==typeof t),I.fromBase64String(t||"")):(we(void 0===t||t instanceof Uint8Array),I.fromUint8Array(t||new Uint8Array))},t.prototype.toVersion=function(t){return this.C(t.C())},t.prototype.fromVersion=function(t){return we(!!t),_.v(this.v(t))},t.prototype._i=function(t,e){return this.li(e||this.ii).child("documents").child(t).j()},t.prototype.di=function(t){var e=E.K(t);return we(de(e)),e},t.prototype.fi=function(t){return this._i(t.path)},t.prototype.Z=function(t){var e=this.di(t);return we(e.get(1)===this.ii.projectId),we(!e.get(3)&&!this.ii.database||e.get(3)===this.ii.database),new x(this.Ti(e))},t.prototype.Ei=function(t){return this._i(t)},t.prototype.Ii=function(t){var e=this.di(t);return 4===e.length?E.G:this.Ti(e)},Object.defineProperty(t.prototype,"wi",{get:function(){return new E(["projects",this.ii.projectId,"databases",this.ii.database]).j()},enumerable:!0,configurable:!0}),t.prototype.li=function(t){return new E(["projects",t.projectId,"databases",t.database])},t.prototype.Ti=function(t){return we(t.length>4&&"documents"===t.get(4)),t.$(5)},t.prototype.Ri=function(t,e){return{name:this.fi(t),fields:e.proto.mapValue.fields}},t.prototype.mi=function(t){return{name:this.fi(t.key),fields:t.Mt().mapValue.fields,updateTime:this.C(t.version.C())}},t.prototype.Ai=function(t,e){var n=this.Z(t.name),r=this.fromVersion(t.updateTime),i=new dt({mapValue:{fields:t.fields}});return new bt(n,r,i,{hasCommittedMutations:!!e})},t.prototype.Pi=function(t){we(!!t.found);var e=this.Z(t.found.name),n=this.fromVersion(t.found.updateTime),r=new dt({mapValue:{fields:t.found.fields}});return new bt(e,n,r,{})},t.prototype.Vi=function(t){we(!!t.missing),we(!!t.readTime);var e=this.Z(t.missing),n=this.fromVersion(t.readTime);return new vt(e,n)},t.prototype.gi=function(t){return"found"in t?this.Pi(t):"missing"in t?this.Vi(t):_e()},t.prototype.pi=function(t){var e;if("targetChange"in t){var n=this.yi(t.targetChange.targetChangeType||"NO_CHANGE"),r=t.targetChange.targetIds||[],i=this.ci(t.targetChange.resumeToken),o=t.targetChange.cause,s=o&&this.ni(o);e=new ie(n,r,i,s||null)}else if("documentChange"in t){var a=t.documentChange,u=this.Z(a.document.name),c=this.fromVersion(a.document.updateTime),l=new dt({mapValue:{fields:a.document.fields}}),h=new bt(u,c,l,{});e=new ne(a.targetIds||[],a.removedTargetIds||[],h.key,h)}else if("documentDelete"in t){var d=t.documentDelete,f=this.Z(d.document),p=d.readTime?this.fromVersion(d.readTime):_.min(),m=new vt(f,p);e=new ne([],d.removedTargetIds||[],m.key,m)}else if("documentRemove"in t){var g=t.documentRemove,y=this.Z(g.document);e=new ne([],g.removedTargetIds||[],y,null)}else{if(!("filter"in t))return _e();var b=t.filter,v=new Rt(b.count||0);e=new re(b.targetId,v)}return e},t.prototype.yi=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:_e()},t.prototype.bi=function(t){if(!("targetChange"in t))return _.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?_.min():e.readTime?this.fromVersion(e.readTime):_.min()},t.prototype.vi=function(t){var e,n=this;if(t instanceof at)e={update:this.Ri(t.key,t.value)};else if(t instanceof lt)e={delete:this.fi(t.key)};else if(t instanceof ut)e={update:this.Ri(t.key,t.data),updateMask:this.Si(t.Vt)};else if(t instanceof ct)e={transform:{document:this.fi(t.key),fieldTransforms:t.fieldTransforms.map((function(t){return n.Di(t)}))}};else{if(!(t instanceof ht))return _e();e={verify:this.fi(t.key)}}return t.Rt.Tt||(e.currentDocument=this.Ci(t.Rt)),e},t.prototype.Fi=function(t){var e=this,n=t.currentDocument?this.Ni(t.currentDocument):ot.ft();if(t.update){var r=this.Z(t.update.name),i=new dt({mapValue:{fields:t.update.fields}});if(t.updateMask){var o=this.ki(t.updateMask);return new ut(r,i,o,n)}return new at(r,i,n)}if(t.delete){var s=this.Z(t.delete);return new lt(s,n)}if(t.transform){var a=this.Z(t.transform.document),u=t.transform.fieldTransforms.map((function(t){return e.$i(t)}));return we(!0===n.exists),new ct(a,u)}if(t.verify){var c=this.Z(t.verify);return new ht(c,n)}return _e()},t.prototype.Ci=function(t){return void 0!==t.updateTime?{updateTime:this.toVersion(t.updateTime)}:void 0!==t.exists?{exists:t.exists}:_e()},t.prototype.Ni=function(t){return void 0!==t.updateTime?ot.updateTime(this.fromVersion(t.updateTime)):void 0!==t.exists?ot.exists(t.exists):ot.ft()},t.prototype.Mi=function(t,e){var n=this.fromVersion(t.updateTime?t.updateTime:e);n.isEqual(_.min())&&(n=this.fromVersion(e));var r=null;return t.transformResults&&t.transformResults.length>0&&(r=t.transformResults),new it(n,r)},t.prototype.Li=function(t,e){var n=this;return t&&t.length>0?(we(void 0!==e),t.map((function(t){return n.Mi(t,e)}))):[]},t.prototype.Di=function(t){var e=t.transform;if(e instanceof Z)return{fieldPath:t.field.j(),setToServerValue:"REQUEST_TIME"};if(e instanceof X)return{fieldPath:t.field.j(),appendMissingElements:{values:e.elements}};if(e instanceof J)return{fieldPath:t.field.j(),removeAllFromArray:{values:e.elements}};if(e instanceof tt)return{fieldPath:t.field.j(),increment:e.ct};throw _e()},t.prototype.$i=function(t){var e=null;"setToServerValue"in t?(we("REQUEST_TIME"===t.setToServerValue),e=Z.instance):"appendMissingElements"in t?e=new X(t.appendMissingElements.values||[]):"removeAllFromArray"in t?e=new J(t.removeAllFromArray.values||[]):"increment"in t?e=new tt(this,t.increment):_e();var n=T.X(t.fieldPath);return new rt(n,e)},t.prototype.xi=function(t){return{documents:[this.Ei(t.path)]}},t.prototype.Oi=function(t){return we(1===t.documents.length),Et.Wt(this.Ii(t.documents[0])).ee()},t.prototype.Bi=function(t){var e={structuredQuery:{}},n=t.path;null!==t.collectionGroup?(e.parent=this.Ei(n),e.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(e.parent=this.Ei(n.M()),e.structuredQuery.from=[{collectionId:n.O()}]);var r=this.qi(t.filters);r&&(e.structuredQuery.where=r);var i=this.Ui(t.orderBy);i&&(e.structuredQuery.orderBy=i);var o=this.ri(t.limit);return null!==o&&(e.structuredQuery.limit=o),t.startAt&&(e.structuredQuery.startAt=this.Qi(t.startAt)),t.endAt&&(e.structuredQuery.endAt=this.Qi(t.endAt)),e},t.prototype.Wi=function(t){var e=this.Ii(t.parent),n=t.structuredQuery,r
8=n.from?n.from.length:0,i=null;if(r>0){we(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var s=[];n.where&&(s=this.ji(n.where));var a=[];n.orderBy&&(a=this.Ki(n.orderBy));var u=null;n.limit&&(u=this.oi(n.limit));var c=null;n.startAt&&(c=this.Gi(n.startAt));var l=null;return n.endAt&&(l=this.Gi(n.endAt)),new Et(e,i,a,s,u,"F",c,l).ee()},t.prototype.zi=function(t){var e=this.Hi(t.Te);return null==e?null:{"goog-listen-tags":e}},t.prototype.Hi=function(t){switch(t){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return _e()}},t.prototype.ee=function(t){var e,n=t.target;return(e=n.xt()?{documents:this.xi(n)}:{query:this.Bi(n)}).targetId=t.targetId,t.resumeToken.rt()>0&&(e.resumeToken=this.ui(t.resumeToken)),e},t.prototype.qi=function(t){var e=this;if(0!==t.length){var n=t.map((function(t){return t instanceof St?e.Yi(t):_e()}));return 1===n.length?n[0]:{compositeFilter:{op:"AND",filters:n}}}},t.prototype.ji=function(t){var e=this;return t?void 0!==t.unaryFilter?[this.Ji(t)]:void 0!==t.fieldFilter?[this.Xi(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map((function(t){return e.ji(t)})).reduce((function(t,e){return t.concat(e)})):_e():[]},t.prototype.Ui=function(t){var e=this;if(0!==t.length)return t.map((function(t){return e.Zi(t)}))},t.prototype.Ki=function(t){var e=this;return t.map((function(t){return e.tn(t)}))},t.prototype.Qi=function(t){return{before:t.before,values:t.position}},t.prototype.Gi=function(t){return new It(t.values||[],!!t.before)},t.prototype.en=function(t){return ce[t]},t.prototype.sn=function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}},t.prototype.nn=function(t){return le[t]},t.prototype.rn=function(t){switch(t){case"EQUAL":return"==";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return _e()}},t.prototype.hn=function(t){return{fieldPath:t.j()}},t.prototype.on=function(t){return T.X(t.fieldPath)},t.prototype.Zi=function(t){return{field:this.hn(t.field),direction:this.en(t.dir)}},t.prototype.tn=function(t){return new At(this.on(t.field),this.sn(t.direction))},t.prototype.Xi=function(t){return St.create(this.on(t.fieldFilter.field),this.rn(t.fieldFilter.op),t.fieldFilter.value)},t.prototype.Yi=function(t){if("=="===t.op){if(K(t.value))return{unaryFilter:{field:this.hn(t.field),op:"IS_NAN"}};if(Q(t.value))return{unaryFilter:{field:this.hn(t.field),op:"IS_NULL"}}}return{fieldFilter:{field:this.hn(t.field),op:this.nn(t.op),value:t.value}}},t.prototype.Ji=function(t){switch(t.unaryFilter.op){case"IS_NAN":var e=this.on(t.unaryFilter.field);return St.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=this.on(t.unaryFilter.field);return St.create(n,"==",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return _e()}},t.prototype.Si=function(t){var e=[];return t.fields.forEach((function(t){return e.push(t.j())})),{fieldPaths:e}},t.prototype.ki=function(t){return new nt((t.fieldPaths||[]).map((function(t){return T.X(t)})))},t}();function de(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}var fe=function(){function t(){}return t.an=function(e){t.platform&&_e(),t.platform=e},t.nt=function(){return t.platform||_e(),t.platform},t}(),pe=new s.Logger("@firebase/firestore");function me(){return pe.logLevel}function ge(t){pe.logLevel=t}function ye(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(pe.logLevel<=s.LogLevel.DEBUG){var r=e.map(ve);pe.debug.apply(pe,i.__spreadArrays(["Firestore ("+l+"): "+t],r))}}function be(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(pe.logLevel<=s.LogLevel.ERROR){var r=e.map(ve);pe.error.apply(pe,i.__spreadArrays(["Firestore ("+l+"): "+t],r))}}function ve(t){if("string"==typeof t)return t;var e=fe.nt();try{return e.un(t)}catch(e){return t}}function _e(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE ("+l+") INTERNAL ASSERTION FAILED: "+t;throw be(e),new Error(e)}function we(t,e){t||_e()}function Ee(t,e){return t}var Se=function(){function t(){}return t.cn=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var r=fe.nt()._n(40),i=0;i<r.length;++i)n.length<20&&r[i]<e&&(n+=t.charAt(r[i]%t.length));return n},t}();function Te(t,e){return t<e?-1:t>e?1:0}function xe(t,e,n){return t.length===e.length&&t.every((function(t,r){return n(t,e[r])}))}function Ce(t){return t+"\0"}var ke=function(t,e,n,r,i){this.ii=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i},Oe=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"ln",{get:function(){return"(default)"===this.database},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t.prototype.S=function(t){return Te(this.projectId,t.projectId)||Te(this.database,t.database)},t}(),Ie=function(){function t(t){this.dn=t,this.fn={}}return t.prototype.get=function(t){var e=this.dn(t),n=this.fn[e];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],s=o[1];if(o[0].isEqual(t))return s}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.dn(t),r=this.fn[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(r[i][0].isEqual(t))return void(r[i]=[t,e]);r.push([t,e])}else this.fn[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.dn(t),n=this.fn[e];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(n[r][0].isEqual(t))return 1===n.length?delete this.fn[e]:n.splice(r,1),!0;return!1},t.prototype.forEach=function(t){k(this.fn,(function(e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];t(o[0],o[1])}}))},t.prototype.B=function(){return O(this.fn)},t}(),Ae=function(){function t(t,e,n,r){this.batchId=t,this.Tn=e,this.baseMutations=n,this.mutations=r}return t.prototype.at=function(t,e,n){for(var r=n.En,i=0;i<this.mutations.length;i++){var o=this.mutations[i];o.key.isEqual(t)&&(e=o.at(e,r[i]))}return e},t.prototype.ot=function(t,e){for(var n=0,r=this.baseMutations;n<r.length;n++){var i=r[n];i.key.isEqual(t)&&(e=i.ot(e,e,this.Tn))}for(var o=e,s=0,a=this.mutations;s<a.length;s++){var u=a[s];u.key.isEqual(t)&&(e=u.ot(e,o,this.Tn))}return e},t.prototype.In=function(t){var e=this,n=t;return this.mutations.forEach((function(r){var i=e.ot(r.key,t.get(r.key));i&&(n=n.me(r.key,i))})),n},t.prototype.keys=function(){return this.mutations.reduce((function(t,e){return t.add(e.key)}),Qt())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&xe(this.mutations,t.mutations,(function(t,e){return t.isEqual(e)}))&&xe(this.baseMutations,t.baseMutations,(function(t,e){return t.isEqual(e)}))},t}(),Ne=function(){function t(t,e,n,r,i){this.batch=t,this.wn=e,this.En=n,this.streamToken=r,this.Rn=i}return t.from=function(e,n,r,i){we(e.mutations.length===r.length);for(var o=Wt(),s=e.mutations,a=0;a<s.length;a++)o=o.me(s[a].key,r[a].version);return new t(e,n,r,i,o)},t}(),Re=function(){function t(){this.mn=new Ft(Pe.An),this.Pn=new Ft(Pe.Vn)}return t.prototype.B=function(){return this.mn.B()},t.prototype.gn=function(t,e){var n=new Pe(t,e);this.mn=this.mn.add(n),this.Pn=this.Pn.add(n)},t.prototype.pn=function(t,e){var n=this;t.forEach((function(t){return n.gn(t,e)}))}
8,t.prototype.yn=function(t,e){this.bn(new Pe(t,e))},t.prototype.vn=function(t,e){var n=this;t.forEach((function(t){return n.yn(t,e)}))},t.prototype.Sn=function(t){var e=this,n=x.EMPTY,r=new Pe(n,t),i=new Pe(n,t+1),o=[];return this.Pn.Ke([r,i],(function(t){e.bn(t),o.push(t.key)})),o},t.prototype.Dn=function(){var t=this;this.mn.forEach((function(e){return t.bn(e)}))},t.prototype.bn=function(t){this.mn=this.mn.delete(t),this.Pn=this.Pn.delete(t)},t.prototype.Cn=function(t){var e=x.EMPTY,n=new Pe(e,t),r=new Pe(e,t+1),i=Qt();return this.Pn.Ke([n,r],(function(t){i=i.add(t.key)})),i},t.prototype.Fn=function(t){var e=new Pe(t,0),n=this.mn.ze(e);return null!==n&&t.isEqual(n.key)},t}(),Pe=function(){function t(t,e){this.key=t,this.Nn=e}return t.An=function(t,e){return x.N(t.key,e.key)||Te(t.Nn,e.Nn)},t.Vn=function(t,e){return Te(t.Nn,e.Nn)||x.N(t.key,e.key)},t}(),De=function(){function t(t){var e=this;this.kn=null,this.$n=null,this.result=void 0,this.error=void 0,this.Mn=!1,this.Ln=!1,t((function(t){e.Mn=!0,e.result=t,e.kn&&e.kn(t)}),(function(t){e.Mn=!0,e.error=t,e.$n&&e.$n(t)}))}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.Ln&&_e(),this.Ln=!0,this.Mn?this.error?this.xn(n,this.error):this.On(e,this.result):new t((function(t,i){r.kn=function(n){r.On(e,n).next(t,i)},r.$n=function(e){r.xn(n,e).next(t,i)}}))},t.prototype.Bn=function(){var t=this;return new Promise((function(e,n){t.next(e,n)}))},t.prototype.qn=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.On=function(e,n){return e?this.qn((function(){return e(n)})):t.resolve(n)},t.prototype.xn=function(e,n){return e?this.qn((function(){return e(n)})):t.reject(n)},t.resolve=function(e){return new t((function(t,n){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.Un=function(e){return new t((function(t,n){var r=0,i=0,o=!1;e.forEach((function(e){++r,e.next((function(){++i,o&&i===r&&t()}),(function(t){return n(t)}))})),o=!0,i===r&&t()}))},t.Qn=function(e){for(var n=t.resolve(!1),r=function(e){n=n.next((function(n){return n?t.resolve(n):e()}))},i=0,o=e;i<o.length;i++)r(o[i]);return n},t.forEach=function(t,e){var n=this,r=[];return t.forEach((function(t,i){r.push(e.call(n,t,i))})),this.Un(r)},t}(),je=function(){function t(){this.Wn=new Ie((function(t){return t.toString()})),this.jn=!1}return Object.defineProperty(t.prototype,"readTime",{get:function(){return this.Kn},set:function(t){this.Kn=t},enumerable:!0,configurable:!0}),t.prototype.Gn=function(t,e){this.zn(),this.readTime=e,this.Wn.set(t.key,t)},t.prototype.Hn=function(t,e){this.zn(),e&&(this.readTime=e),this.Wn.set(t,null)},t.prototype.Yn=function(t,e){this.zn();var n=this.Wn.get(e);return void 0!==n?De.resolve(n):this.Jn(t,e)},t.prototype.getEntries=function(t,e){return this.Xn(t,e)},t.prototype.apply=function(t){return this.zn(),this.jn=!0,this.Zn(t)},t.prototype.zn=function(){},t}(),Le="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Me=function(){function t(){this.tr=[]}return t.prototype.er=function(t){this.tr.push(t)},t.prototype.sr=function(){this.tr.forEach((function(t){return t()}))},t}(),Fe=function(){function t(t,e,n){this.ir=t,this.nr=e,this.rr=n}return t.prototype.hr=function(t,e){var n=this;return this.nr.or(t,e).next((function(r){return n.ar(t,e,r)}))},t.prototype.ar=function(t,e,n){return this.ir.Yn(t,e).next((function(t){for(var r=0,i=n;r<i.length;r++)t=i[r].ot(e,t);return t}))},t.prototype.ur=function(t,e,n){var r=qt();return e.forEach((function(t,e){for(var i=0,o=n;i<o.length;i++)e=o[i].ot(t,e);r=r.me(t,e)})),r},t.prototype.cr=function(t,e){var n=this;return this.ir.getEntries(t,e).next((function(e){return n._r(t,e)}))},t.prototype._r=function(t,e){var n=this;return this.nr.lr(t,e).next((function(r){var i=n.ur(t,e,r),o=Bt();return i.forEach((function(t,e){e||(e=new vt(t,_.min())),o=o.me(t,e)})),o}))},t.prototype.dr=function(t,e,n){return e.xt()?this.Tr(t,e.path):e._e()?this.Er(t,e,n):this.Ir(t,e,n)},t.prototype.Tr=function(t,e){return this.hr(t,new x(e)).next((function(t){var e=Gt();return t instanceof bt&&(e=e.me(t.key,t)),e}))},t.prototype.Er=function(t,e,n){var r=this,i=e.collectionGroup,o=Gt();return this.rr.wr(t,i).next((function(s){return De.forEach(s,(function(s){var a=e.Zt(s.child(i));return r.Ir(t,a,n).next((function(t){t.forEach((function(t,e){o=o.me(t,e)}))}
8))})).next((function(){return o}))}))},t.prototype.Ir=function(t,e,n){var r,i,o=this;return this.ir.dr(t,e,n).next((function(n){return r=n,o.nr.Rr(t,e)})).next((function(e){return o.mr(t,i=e,r).next((function(t){r=t;for(var e=0,n=i;e<n.length;e++)for(var o=n[e],s=0,a=o.mutations;s<a.length;s++){var u=a[s],c=u.key,l=r.get(c),h=u.ot(l,l,o.Tn);r=h instanceof bt?r.me(c,h):r.remove(c)}}))})).next((function(){return r.forEach((function(t,n){e.matches(n)||(r=r.remove(t))})),r}))},t.prototype.mr=function(t,e,n){for(var r=Qt(),i=0,o=e;i<o.length;i++)for(var s=0,a=o[i].mutations;s<a.length;s++){var u=a[s];u instanceof ut&&null===n.get(u.key)&&(r=r.add(u.key))}var c=n;return this.ir.getEntries(t,r).next((function(t){return t.forEach((function(t,e){null!==e&&e instanceof bt&&(c=c.me(t,e))})),c}))},t}(),Ve=function(){function t(t,e,n,r){this.targetId=t,this.fromCache=e,this.Ar=n,this.Pr=r}return t.Vr=function(e,n){for(var r=Qt(),i=Qt(),o=0,s=n.docChanges;o<s.length;o++){var a=s[o];switch(a.type){case 0:r=r.add(a.doc.key);break;case 1:i=i.add(a.doc.key)}}return new t(e,n.fromCache,r,i)},t}(),Ue=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.gr=function(t){return n.pr(t)},this.yr=function(t){return e.br(t)})}return t.prototype.pr=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.yr&&this.yr(t),t},t}();Ue.vr=-1;var Be=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},qe=function(){function t(t,e,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.Sr=t,this.Dr=e,this.Cr=n,this.Fr=r,this.Nr=i,this.kr=0,this.$r=null,this.Mr=Date.now(),this.reset()}return t.prototype.reset=function(){this.kr=0},t.prototype.Lr=function(){this.kr=this.Nr},t.prototype.xr=function(t){var e=this;this.cancel();var n=Math.floor(this.kr+this.Or()),r=Math.max(0,Date.now()-this.Mr),i=Math.max(0,n-r);i>0&&ye("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.kr+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.$r=this.Sr.Br(this.Dr,i,(function(){return e.Mr=Date.now(),t()})),this.kr*=this.Fr,this.kr<this.Cr&&(this.kr=this.Cr),this.kr>this.Nr&&(this.kr=this.Nr)},t.prototype.cancel=function(){null!==this.$r&&(this.$r.cancel(),this.$r=null)},t.prototype.Or=function(){return(Math.random()-.5)*this.kr},t}(),ze=function(){function t(t,e,n,r,i){this.qr=t,this.Dr=e,this.Ur=n,this.op=r,this.Qr=i,this.Wr=new Be,this.then=this.Wr.promise.then.bind(this.Wr.promise),this.catch=this.Wr.promise.catch.bind(this.Wr.promise),this.Wr.promise.catch((function(t){}))}return t.jr=function(e,n,r,i,o){var s=new t(e,n,Date.now()+r,i,o);return s.start(r),s},t.prototype.start=function(t){var e=this;this.Kr=setTimeout((function(){return e.Gr()}),t)},t.prototype.zr=function(){return this.Gr()},t.prototype.cancel=function(t){null!==this.Kr&&(this.clearTimeout(),this.Wr.reject(new f(d.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
8)},t.prototype.Gr=function(){var t=this;this.qr.Hr((function(){return null!==t.Kr?(t.clearTimeout(),t.op().then((function(e){return t.Wr.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.Kr&&(this.Qr(this),clearTimeout(this.Kr),this.Kr=null)},t}(),Ge=function(){function t(){var t=this;this.Yr=Promise.resolve(),this.Jr=Promise.resolve(),this.Xr=!1,this.Zr=[],this.th=null,this.eh=!1,this.sh=[],this.ih=new qe(this,"async_queue_retry"),this.nh=function(){t.rh("async_queue_retry")};var e=fe.nt().window;e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.nh)}return Object.defineProperty(t.prototype,"hh",{get:function(){return this.Xr},enumerable:!0,configurable:!0}),t.prototype.Hr=function(t){this.enqueue(t)},t.prototype.oh=function(t){this.ah(),this.uh(t)},t.prototype._h=function(t){return this.ah(),this.uh(t)},t.prototype.lh=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:return this.ah(),this.Xr?[3,2]:(this.Xr=!0,(e=fe.nt().window)&&e.removeEventListener("visibilitychange",this.nh),[4,this._h(t)]);case 1:n.sent(),n.label=2;case 2:return[2]}}
8))}))},t.prototype.enqueue=function(t){return this.ah(),this.Xr?new Promise((function(t){})):this.uh(t)},t.prototype.dh=function(t){var e=this;this.ah(),this.Xr||(this.Jr=this.Jr.then((function(){var n=new Be,r=function(){return i.__awaiter(e,void 0,void 0,(function(){var e;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,t()];case 1:return i.sent(),n.resolve(),this.ih.reset(),[3,3];case 2:if("IndexedDbTransactionError"!==(e=i.sent()).name)throw n.resolve(),e;return ye("AsyncQueue","Operation failed with retryable error: "+e),this.ih.xr(r),[3,3];case 3:return[2]}}))}))};return e.Hr(r),n.promise})))},t.prototype.uh=function(t){var e=this,n=this.Yr.then((function(){return e.eh=!0,t().catch((function(t){throw e.th=t,e.eh=!1,be("INTERNAL UNHANDLED ERROR: ",t.stack||t.message||""),t})).then((function(t){return e.eh=!1,t}))}));return this.Yr=n,n},t.prototype.Br=function(t,e,n){var r=this;this.ah(),this.sh.indexOf(t)>-1&&(e=0);var i=ze.jr(this,t,e,n,(function(t){return r.fh(t)}));return this.Zr.push(i),i},t.prototype.ah=function(){this.th&&_e()},t.prototype.Th=function(){},t.prototype.Eh=function(){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(e){switch(e.label){case 0:return[4,t=this.Yr];case 1:e.sent(),e.label=2;case 2:if(t!==this.Yr)return[3,0];e.label=3;case 3:return[2]}}
8))}))},t.prototype.Ih=function(t){for(var e=0,n=this.Zr;e<n.length;e++)if(n[e].Dr===t)return!0;return!1},t.prototype.rh=function(t){var e=this;return this.Eh().then((function(){e.Zr.sort((function(t,e){return t.Ur-e.Ur}));for(var n=0,r=e.Zr;n<r.length;n++){var i=r[n];if(i.zr(),"all"!==t&&i.Dr===t)break}return e.Eh()}))},t.prototype.wh=function(t){this.sh.push(t)},t.prototype.fh=function(t){var e=this.Zr.indexOf(t);this.Zr.splice(e,1)},t}();function He(t,e){var n=t[1],r=e[1],i=Te(t[0],e[0]);return 0===i?Te(n,r):i}var We=function(){function t(t){this.Rh=t,this.buffer=new Ft(He),this.mh=0}return t.prototype.Ah=function(){return++this.mh},t.prototype.Ph=function(t){var e=[t,this.Ah()];if(this.buffer.size<this.Rh)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();He(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!0,configurable:!0}),t}(),$e={Vh:!1,gh:0,ph:0,yh:0},Qe=function(){function t(t,e,n){this.bh=t,this.vh=e,this.Sh=n}return t.Dh=function(e){return new t(e,t.Ch,t.Fh)},t}();Qe.Nh=-1,Qe.kh=1048576,Qe.$h=41943040,Qe.Ch=10,Qe.Fh=1e3,Qe.Mh=new Qe(Qe.$h,Qe.Ch,Qe.Fh),Qe.DISABLED=new Qe(Qe.Nh,0,0);var Ke=function(){function t(t,e){this.Lh=t,this.qr=e,this.xh=!1,this.Oh=null}return t.prototype.start=function(t){this.Lh.Bh.bh!==Qe.Nh&&this.qh(t)},t.prototype.stop=function(){this.Oh&&(this.Oh.cancel(),this.Oh=null)},Object.defineProperty(t.prototype,"Uh",{get:function(){return null!==this.Oh},enumerable:!0,configurable:!0}),t.prototype.qh=function(t){var e=this,n=this.xh?3e5:6e4;ye("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.Oh=this.qr.Br("lru_garbage_collection",n,(function(){return i.__awaiter(e,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:this.Oh=null,this.xh=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.Qh(this.Lh)];case 2:return n.sent(),[3,7];case 3:return"IndexedDbTransactionError"!==(e=n.sent()).name?[3,4]:(ye("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]);case 4:return[4,or(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.qh(t)];case 8:return n.sent(),[2]}}))}))}))},t}(),Ye=function(){function t(t,e){this.Wh=t,this.Bh=e}return t.prototype.jh=function(t,e){return this.Wh.Kh(t).next((function(t){return Math.floor(e/100*t)}))},t.prototype.Gh=function(t,e){var n=this;if(0===e)return De.resolve(Ue.vr);var r=new We(e);return this.Wh.js(t,(function(t){return r.Ph(t.sequenceNumber)})).next((function(){return n.Wh.zh(t,(function(t){return r.Ph(t)}))})).next((function(){return r.maxValue}))},t.prototype.Hh=function(t,e,n){return this.Wh.Hh(t,e,n)},t.prototype.Yh=function(t,e){return this.Wh.Yh(t,e)},t.prototype.Jh=function(t,e){var n=this;return this.Bh.bh===Qe.Nh?(ye("LruGarbageCollector","Garbage collection skipped; disabled"),De.resolve($e)):this.Xh(t).next((function(r){return r<n.Bh.bh?(ye("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.Bh.bh),$e):n.Zh(t,e)}))},t.prototype.Xh=function(t){return this.Wh.Xh(t)},t.prototype.Zh=function(t,e){var n,r,i,o,a,u,c,l=this,h=Date.now();return this.jh(t,this.Bh.vh).next((function(e){return e>l.Bh.Sh?(ye("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.Bh.Sh+" from "+e),r=l.Bh.Sh):r=e,o=Date.now(),l.Gh(t,r)})).next((function(r){return n=r,a=Date.now(),l.Hh(t,n,e)})).next((function(e){return i=e,u=Date.now(),l.Yh(t,n)})).next((function(t){return c=Date.now(),me()<=s.LogLevel.DEBUG&&ye("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-h)+"ms\n\tDetermined least recently used "+r+" in "+(a-o)+"ms\n\tRemoved "+i+" targets in "+(u-a)+"ms\n\tRemoved "+t+" documents in "+(c-u)+"ms\nTotal Duration: "+(c-h)+"ms"),De.resolve({Vh:!0,gh:r,ph:i,yh:t})}))},t}();function Ze(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=Je(e)),e=Xe(t.get(n),e);return Je(e)}function Xe(t,e){for(var n=e,r=t.length,i=0;i<r;i++){var o=t.charAt(i);switch(o){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=o}}return n}function Je(t){return t+"\x01\x01"}function tn(t){var e=t.length;if(we(e>=2),2===e)return we("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),E.G;for(var n=e-2,r=[],i="",o=0;o<e;){var s=t.indexOf("\x01",o);switch((s<0||s>n)&&_e(),t.charAt(s+1)){case"\x01":var a=t.substring(o,s),u=void 0;0===i.length?u=a:(u=i+=a,i=""),r.push(u);break;case"\x10":i+=t.substring(o,s),i+="\0";break;case"\x11":i+=t.substring(o,s+1);break;default:_e()}o=s+2}return new E(r)}var en=function(){function t(e){this.db=e,12.2===t.to(a.getUA())&&be("Firestore persistence suffers from a bug in
8iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return t.eo=function(e,n,r){return ye("SimpleDb","Opening database:",e),new De((function(i,o){var s=window.indexedDB.open(e,n);s.onsuccess=function(e){i(new t(e.target.result))},s.onblocked=function(){o(new f(d.FAILED_PRECONDITION,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},s.onerror=function(t){var e=t.target.error;o("VersionError"===e.name?new f(d.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):e)},s.onupgradeneeded=function(t){ye("SimpleDb",'Database "'+e+'" requires upgrade from version:',t.oldVersion),r.createOrUpgrade(t.target.result,s.transaction,t.oldVersion,In).next((function(){ye("SimpleDb","Database upgrade to version "+In+" complete")}))}})).Bn()},t.delete=function(t){return ye("SimpleDb","Removing database:",t),an(window.indexedDB.deleteDatabase(t)).Bn()},t.so=function(){if("undefined"==typeof window||null==window.indexedDB)return!1;if(t.io())return!0;if(void 0===window.navigator)return!1;var e=a.getUA(),n=t.to(e),r=0<n&&n<10,i=t.no(e),o=0<i&&i<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||o)},t.io=function(){var t;return"undefined"!=typeof __PRIVATE_process&&"YES"===(null===(t=__PRIVATE_process.__PRIVATE_env)||void 0===t?void 0:t.ro)},t.ho=function(t,e){return t.store(e)},t.to=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(n)},t.no=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.oo=function(t){this.db.onversionchange=function(e){return t(e)}},t.prototype.runTransaction=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,s,a,u;return i.__generator(this,(function(c){switch(c.label){case 0:r="readonly"===t,o=0,s=function(){var t,s,u,c,l;return i.__generator(this,(function(i){switch(i.label){case 0:++o,t=on.open(a.db,r?"readonly":"readwrite",e),i.label=1;case 1:return i.trys.push([1,3,,4]),s=n(t).catch((function(e){return t.abort(e),De.reject(e)})).Bn(),u={},s.catch((function(){})),[4,t.ao];case 2:return[2,(u.value=(i.sent(),s),u)];case 3:return ye("SimpleDb","Transaction failed with error: %s. Retrying: %s.",(c=i.sent()).message,l="FirebaseError"!==c.name&&o<3),l?[3,4]:[2,{value:Promise.reject(c)}];case 4:return[2]}}
8))},a=this,c.label=1;case 1:return[5,s()];case 2:if("object"==typeof(u=c.sent()))return[2,u.value];c.label=3;case 3:return[3,1];case 4:return[2]}}))}))},t.prototype.close=function(){this.db.close()},t}(),nn=function(){function t(t){this.uo=t,this.co=!1,this._o=null}return Object.defineProperty(t.prototype,"Mn",{get:function(){return this.co},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lo",{get:function(){return this._o},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.uo=t},enumerable:!0,configurable:!0}),t.prototype.done=function(){this.co=!0},t.prototype.do=function(t){this._o=t},t.prototype.delete=function(){return an(this.uo.delete())},t}(),rn=function(t){function e(e){var n=this;return(n=t.call(this,d.UNAVAILABLE,"IndexedDB transaction failed: "+e)||this).name="IndexedDbTransactionError",n}return i.__extends(e,t),e}(f),on=function(){function t(t){var e=this;this.transaction=t,this.aborted=!1,this.fo=new Be,this.transaction.oncomplete=function(){e.fo.resolve()},this.transaction.onabort=function(){t.error?e.fo.reject(new rn(t.error)):e.fo.resolve()},this.transaction.onerror=function(t){var n=cn(t.target.error);e.fo.reject(new rn(n))}}return t.open=function(e,n,r){return new t(e.transaction(r,n))},Object.defineProperty(t.prototype,"ao",{get:function(){return this.fo.promise},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){t&&this.fo.reject(t),this.aborted||(ye("SimpleDb","Aborting transaction:",t?t.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},t.prototype.store=function(t){var e=this.transaction.objectStore(t);return new sn(e)},t}(),sn=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(ye("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(ye("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),an(n)},t.prototype.add=function(t){return ye("SimpleDb","ADD",this.store.name,t,t),an(this.store.add(t))},t.prototype.get=function(t){var e=this;return an(this.store.get(t)).next((function(n){return void 0===n&&(n=null),ye("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return ye("SimpleDb","DELETE",this.store.name,t),an(this.store.delete(t))},t.prototype.count=function(){return ye("SimpleDb","COUNT",this.store.name),an(this.store.count())},t.prototype.To=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.Eo(n,(function(t,e){r.push(e)})).next((function(){return r}))},t.prototype.Io=function(t,e){ye("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.wo=!1;var r=this.cursor(n);return this.Eo(r,(function(t,e,n){return n.delete()}))},t.prototype.Ro=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.Eo(r,e)},t.prototype.mo=function(t){var e=this.cursor({});return new De((function(n,r){e.onerror=function(t){var e=cn(t.target.error);r(e)},e.onsuccess=function(e){var r=e.target.result;r?t(r.primaryKey,r.value).next((function(t){t?r.continue():n()})):n()}}))},t.prototype.Eo=function(t,e){var n=[];return new De((function(r,i){t.onerror=function(t){i(t.target.error)},t.onsuccess=function(t){var i=t.target.result;if(i){var o=new nn(i),s=e(i.primaryKey,i.value,o);if(s instanceof De){var a=s.catch((function(t){return o.done(),De.reject(t)}));n.push(a)}o.Mn?r():null===o.lo?i.continue():i.continue(o.lo)}else r()}})).next((function(){return De.Un(n)}))},t.prototype.options=function(t,e){var n=void 0;return void 0!==t&&("string"==typeof t?n=t:e=t),{index:n,range:e}},t.prototype.cursor=function(t){var e="next";if(t.reverse&&(e="prev"),t.index){var n=this.store.index(t.index);return t.wo?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function an(t){return new De((function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){var e=cn(t.target.error);n(e)}}))}var un=!1;function cn(t){var e=en.to(a.getUA());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var r=new f("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return un||(un=!0,setTimeout((function(){throw r}),0)),r}}return t}var ln=function(){function t(t,e,n,r){this.userId=t,this.serializer
8=e,this.rr=n,this.Ao=r,this.Po={}}return t.Vo=function(e,n,r,i){return we(""!==e.uid),new t(e.t()?e.uid:"",n,r,i)},t.prototype.po=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return fn(t).Ro({index:Dn.userMutationsIndex,range:n},(function(t,n,r){e=!1,r.done()})).next((function(){return e}))},t.prototype.yo=function(t,e,n){return this.bo(t).next((function(e){return e.lastStreamToken=n.toBase64(),mn(t).put(e)}))},t.prototype.vo=function(t){return this.bo(t).next((function(t){return I.fromBase64String(t.lastStreamToken)}))},t.prototype.So=function(t,e){return this.bo(t).next((function(n){return n.lastStreamToken=e.toBase64(),mn(t).put(n)}))},t.prototype.Do=function(t,e,n,r){var i=this,o=pn(t),s=fn(t);return s.add({}).next((function(a){we("number"==typeof a);for(var u=new Ae(a,e,n,r),c=i.serializer.Co(i.userId,u),l=[],h=new Ft((function(t,e){return Te(t.j(),e.j())})),d=0,f=r;d<f.length;d++){var p=f[d],m=jn.key(i.userId,p.key.path,a);h=h.add(p.key.path.M()),l.push(s.put(c)),l.push(o.put(m,jn.PLACEHOLDER))}return h.forEach((function(e){l.push(i.rr.Fo(t,e))})),t.er((function(){i.Po[a]=u.keys()})),De.Un(l).next((function(){return u}))}))},t.prototype.No=function(t,e){var n=this;return fn(t).get(e).next((function(t){return t?(we(t.userId===n.userId),n.serializer.ko(t)):null}))},t.prototype.$o=function(t,e){var n=this;return this.Po[e]?De.resolve(this.Po[e]):this.No(t,e).next((function(t){if(t){var r=t.keys();return n.Po[e]=r,r}return null}))},t.prototype.Mo=function(t,e){var n=this,r=e+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return fn(t).Ro({index:Dn.userMutationsIndex,range:i},(function(t,e,i){e.userId===n.userId&&(we(e.batchId>=r),o=n.serializer.ko(e)),i.done()})).next((function(){return o}))},t.prototype.Lo=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return fn(t).Ro({index:Dn.userMutationsIndex,range:e,reverse:!0},(function(t,e,r){n=e.batchId,r.done()})).next((function(){return n}))},t.prototype.xo=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return fn(t).To(Dn.userMutationsIndex,n).next((function(t){return t.map((function(t){return e.serializer.ko(t)}))}))},t.prototype.or=function(t,e){var n=this,r=jn.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return pn(t).Ro({range:i},(function(r,i,s){var a=r[0],u=r[2],c=tn(r[1]);if(a===n.userId&&e.path.isEqual(c))return fn(t).get(u).next((function(t){if(!t)throw _e();we(t.userId===n.userId),o.push(n.serializer.ko(t))}));s.done()})).next((function(){return o}))},t.prototype.lr=function(t,e){var n=this,r=new Ft(Te),i=[];return e.forEach((function(e){var o=jn.prefixForPath(n.userId,e.path),s=IDBKeyRange.lowerBound(o),a=pn(t).Ro({range:s},(function(t,i,o){var s=t[0],a=t[2],u=tn(t[1]);s===n.userId&&e.path.isEqual(u)?r=r.add(a):o.done()}));i.push(a)})),De.Un(i).next((function(){return n.Oo(t,r)}))},t.prototype.Rr=function(t,e){var n=this,r=e.path,i=r.length+1,o=jn.prefixForPath(this.userId,r),s=IDBKeyRange.lowerBound(o),a=new Ft(Te);return pn(t).Ro({range:s},(function(t,e,o){var s=t[0],u=t[2],c=tn(t[1]);s===n.userId&&r.q(c)?c.length===i&&(a=a.add(u)):o.done()})).next((function(){return n.Oo(t,a)}))},t.prototype.Oo=function(t,e){var n=this,r=[],i=[];return e.forEach((function(e){i.push(fn(t).get(e).next((function(t){if(null===t)throw _e();we(t.userId===n.userId),r.push(n.serializer.ko(t))})))})),De.Un(i).next((function(){return r}))},t.prototype.Bo=function(t,e){var n=this;return dn(t.qo,this.userId,e).next((function(r){return t.er((function(){n.Uo(e.batchId)})),De.forEach(r,(function(e){return n.Ao.Qo(t,e)}))}))},t.prototype.Uo=function(t){delete this.Po[t]},t.prototype.Wo=function(t){var e=this;return this.po(t).next((function(n){if(!n)return De.resolve();var r=IDBKeyRange.lowerBound(jn.prefixForUser(e.userId)),i=[];return pn(t).Ro({range:r},(function(t,n,r){if(t[0]===e.userId){var o=tn(t[1]);i.push(o)}else r.done()})).next((function(){we(0===i.length)}))}))},t.prototype.Fn=function(t,e){return hn(t,this.userId,e)},t.prototype.bo=function(t){var e=this;return mn(t).get(this.userId).next((function(t){return t||new Pn(e.userId,-1,"")}))},t}();
8function hn(t,e,n){var r=jn.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),s=!1;return pn(t).Ro({range:o,wo:!0},(function(t,n,r){t[0]===e&&t[1]===i&&(s=!0),r.done()})).next((function(){return s}))}function dn(t,e,n){var r=t.store(Dn.store),i=t.store(jn.store),o=[],s=IDBKeyRange.only(n.batchId),a=0,u=r.Ro({range:s},(function(t,e,n){return a++,n.delete()}));o.push(u.next((function(){we(1===a)})));for(var c=[],l=0,h=n.mutations;l<h.length;l++){var d=h[l],f=jn.key(e,d.key.path,n.batchId);o.push(i.delete(f)),c.push(d.key)}return De.Un(o).next((function(){return c}))}function fn(t){return Xn.ho(t,Dn.store)}function pn(t){return Xn.ho(t,jn.store)}function mn(t){return Xn.ho(t,Pn.store)}var gn=function(){function t(t){this.jo=t}return t.prototype.next=function(){return this.jo+=2,this.jo},t.Ko=function(){return new t(0)},t.Go=function(){return new t(-1)},t}(),yn=function(){function t(t,e){this.Ao=t,this.serializer=e}return t.prototype.zo=function(t){var e=this;return this.Ho(t).next((function(n){var r=new gn(n.highestTargetId);return n.highestTargetId=r.next(),e.Yo(t,n).next((function(){return n.highestTargetId}))}))},t.prototype.Jo=function(t){return this.Ho(t).next((function(t){return _.v(new v(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.Xo=function(t){return _n(t.qo)},t.prototype.Zo=function(t,e,n){var r=this;return this.Ho(t).next((function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.C()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Yo(t,i)}))},t.prototype.ta=function(t,e){var n=this;return this.ea(t,e).next((function(){return n.Ho(t).next((function(r){return r.targetCount+=1,n.sa(e,r),n.Yo(t,r)}))}))},t.prototype.ia=function(t,e){return this.ea(t,e)},t.prototype.na=function(t,e){var n=this;return this.ra(t,e.targetId).next((function(){return bn(t).delete(e.targetId)})).next((function(){return n.Ho(t)})).next((function(e){return we(e.targetCount>0),e.targetCount-=1,n.Yo(t,e)}))},t.prototype.Hh=function(t,e,n){var r=this,i=0,o=[];return bn(t).Ro((function(s,a){var u=r.serializer.ha(a);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,o.push(r.na(t,u)))})).next((function(){return De.Un(o)})).next((function(){return i}))},t.prototype.js=function(t,e){var n=this;return bn(t).Ro((function(t,r){var i=n.serializer.ha(r);e(i)}))},t.prototype.Ho=function(t){return vn(t.qo)},t.prototype.Yo=function(t,e){return(n=t,Xn.ho(n,qn.store)).put(qn.key,e);var n},t.prototype.ea=function(t,e){return bn(t).put(this.serializer.oa(e))},t.prototype.sa=function(t,e){var n=!1;return t.targetId>e.highestTargetId&&(e.highestTargetId=t.targetId,n=!0),t.sequenceNumber>e.highestListenSequenceNumber&&(e.highestListenSequenceNumber=t.sequenceNumber,n=!0),n},t.prototype.aa=function(t){return this.Ho(t).next((function(t){return t.targetCount}))},t.prototype.ua=function(t,e){var n=this,r=e.canonicalId(),i=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]),o=null;return bn(t).Ro({range:i,index:Un.queryTargetsIndexName},(function(t,r,i){var s=n.serializer.ha(r);e.isEqual(s.target)&&(o=s,i.done())})).next((function(){return o}))},t.prototype.ca=function(t,e,n){var r=this,i=[],o=wn(t);return e.forEach((function(e){var s=Ze(e.path);i.push(o.put(new Bn(n,s))),i.push(r.Ao.gn(t,e))})),De.Un(i)},t.prototype._a=function(t,e,n){var r=this,i=wn(t);return De.forEach(e,(function(e){var o=Ze(e.path);return De.Un([i.delete([n,o]),r.Ao.yn(t,e)])}))},t.prototype.ra=function(t,e){var n=wn(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.la=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=wn(t),i=Qt();return r.Ro({range:n,wo:!0},(function(t,e,n){var r=tn(t[1]),o=new x(r);i=i.add(o)})).next((function(){return i}))},t.prototype.Fn=function(t,e){var n=Ze(e.path),r=IDBKeyRange.bound([n],[Ce(n)],!1,!0),i=0;return wn(t).Ro({index:Bn.documentTargetsIndex,wo:!0,range:r},(function(t,e,n){0!==t[0]&&(i++,n.done())})).next((function(){return i>0}))},t.prototype.si=function(t,e){var n=this;return bn(t).get(e).next((function(t){return t?n.serializer.ha(t):null}))},t}();function bn(t){return Xn.ho(t,Un.store)}function vn(t){return en.ho(t,qn.store).get(qn.key).next((function(t){return we(null!==t),t}))}function _n(t){return vn(t).next((function(t){return t.highestListenSequenceNumber}))}function wn(t){return Xn.ho(t,Bn.store)}
8var En=function(){function t(t,e){this.serializer=t,this.rr=e}return t.prototype.Gn=function(t,e,n){return Tn(t).put(xn(e),n)},t.prototype.Hn=function(t,e){var n=Tn(t),r=xn(e);return n.delete(r)},t.prototype.updateMetadata=function(t,e){var n=this;return this.getMetadata(t).next((function(r){return r.byteSize+=e,n.da(t,r)}))},t.prototype.Yn=function(t,e){var n=this;return Tn(t).get(xn(e)).next((function(t){return n.fa(t)}))},t.prototype.Ta=function(t,e){var n=this;return Tn(t).get(xn(e)).next((function(t){var e=n.fa(t);return e?{Ea:e,size:Cn(t)}:null}))},t.prototype.getEntries=function(t,e){var n=this,r=qt();return this.Ia(t,e,(function(t,e){var i=n.fa(e);r=r.me(t,i)})).next((function(){return r}))},t.prototype.wa=function(t,e){var n=this,r=qt(),i=new jt(x.N);return this.Ia(t,e,(function(t,e){var o=n.fa(e);o?(r=r.me(t,o),i=i.me(t,Cn(e))):(r=r.me(t,null),i=i.me(t,0))})).next((function(){return{Ra:r,ma:i}}))},t.prototype.Ia=function(t,e,n){if(e.B())return De.resolve();var r=IDBKeyRange.bound(e.first().path.W(),e.last().path.W()),i=e.be(),o=i.Ne();return Tn(t).Ro({range:r},(function(t,e,r){for(var s=x.st(t);o&&x.N(o,s)<0;)n(o,null),o=i.Ne();o&&o.isEqual(s)&&(n(o,e),o=i.ke()?i.Ne():null),o?r.do(o.path.W()):r.done()})).next((function(){for(;o;)n(o,null),o=i.ke()?i.Ne():null}))},t.prototype.dr=function(t,e,n){var r=this,i=Gt(),o=e.path.length+1,s={};if(n.isEqual(_.min())){var a=e.path.W();s.range=IDBKeyRange.lowerBound(a)}else{var u=e.path.W(),c=this.serializer.Aa(n);s.range=IDBKeyRange.lowerBound([u,c],!0),s.index=Fn.collectionReadTimeIndex}return Tn(t).Ro(s,(function(t,n,s){if(t.length===o){var a=r.serializer.Pa(n);e.path.q(a.key.path)?a instanceof bt&&e.matches(a)&&(i=i.me(a.key,a)):s.done()}})).next((function(){return i}))},t.prototype.Va=function(t,e){var n=this,r=Bt(),i=this.serializer.Aa(e),o=Tn(t),s=IDBKeyRange.lowerBound(i,!0);return o.Ro({index:Fn.readTimeIndex,range:s},(function(t,e){var o=n.serializer.Pa(e);r=r.me(o.key,o),i=e.readTime})).next((function(){return{ga:r,readTime:n.serializer.pa(i)}}))},t.prototype.ya=function(t){var e=this,n=Tn(t),r=_.min();return n.Ro({index:Fn.readTimeIndex,reverse:!0},(function(t,n,i){n.readTime&&(r=e.serializer.pa(n.readTime)),i.done()})).next((function(){return r}))},t.prototype.ba=function(e){return new t.va(this,!!e&&e.Sa)},t.prototype.Da=function(t){return this.getMetadata(t).next((function(t){return t.byteSize}))},t.prototype.getMetadata=function(t){return Sn(t).get(Vn.key).next((function(t){return we(!!t),t}))},t.prototype.da=function(t,e){return Sn(t).put(Vn.key,e)},t.prototype.fa=function(t){if(t){var e=this.serializer.Pa(t);return e instanceof vt&&e.version.isEqual(_.min())?null:e}return null},t}();function Sn(t){return Xn.ho(t,Vn.store)}function Tn(t){return Xn.ho(t,Fn.store)}function xn(t){return t.path.W()}function Cn(t){var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw _e();e=t.noDocument}return JSON.stringify(e).length}En.va=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Ca=e,r.Sa=n,r.Fa=new Ie((function(t){return t.toString()})),r}return i.__extends(e,t),e.prototype.Zn=function(t){var e=this,n=[],r=0,i=new Ft((function(t,e){return Te(t.j(),e.j())}));return this.Wn.forEach((function(o,s){var a=e.Fa.get(o);if(s){var u=e.Ca.serializer.Na(s,e.readTime);i=i.add(o.path.M());var c=Cn(u);r+=c-a,n.push(e.Ca.Gn(t,o,u))}else if(r-=a,e.Sa){var l=e.Ca.serializer.Na(new vt(o,_.min()),e.readTime);n.push(e.Ca.Gn(t,o,l))}else n.push(e.Ca.Hn(t,o))})),i.forEach((function(r){n.push(e.Ca.rr.Fo(t,r))})),n.push(this.Ca.updateMetadata(t,r)),De.Un(n)},e.prototype.Jn=function(t,e){var n=this;return this.Ca.Ta(t,e).next((function(t){return null===t?(n.Fa.set(e,0),null):(n.Fa.set(e,t.size),t.Ea)}))},e.prototype.Xn=function(t,e){var n=this;return this.Ca.wa(t,e).next((function(t){var e=t.Ra;return t.ma.forEach((function(t,e){n.Fa.set(t,e)})),e}))},e}(je);var kn=function(){function t(){this.ka=new On}return t.prototype.Fo=function(t,e){return this.ka.add(e),De.resolve()},t.prototype.wr=function(t,e){return De.resolve(this.ka.getEntries(e))},t}(),On=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.O(),n=t.M(),r=this.index[e]||new Ft(E.N),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.has=function(t){var e=t.O(),n=t.M(),r=this.index[e];return r&&r.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new Ft(E.N)).W()},t}
8(),In=10,An=function(){function t(t){this.serializer=t}return t.prototype.createOrUpgrade=function(t,e,n,r){var i=this;we(n<r&&n>=0&&r<=In);var o=new on(e);n<1&&r>=1&&(function(t){t.createObjectStore(Rn.store)}(t),function(t){t.createObjectStore(Pn.store,{keyPath:Pn.keyPath}),t.createObjectStore(Dn.store,{keyPath:Dn.keyPath,autoIncrement:!0}).createIndex(Dn.userMutationsIndex,Dn.userMutationsKeyPath,{unique:!0}),t.createObjectStore(jn.store)}(t),Gn(t),function(t){t.createObjectStore(Fn.store)}(t));var s=De.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Bn.store),t.deleteObjectStore(Un.store),t.deleteObjectStore(qn.store)}(t),Gn(t)),s=s.next((function(){return function(t){var e=t.store(qn.store),n=new qn(0,0,_.min().C(),0);return e.put(qn.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(s=s.next((function(){return function(t,e){return e.store(Dn.store).To().next((function(n){t.deleteObjectStore(Dn.store),t.createObjectStore(Dn.store,{keyPath:Dn.keyPath,autoIncrement:!0}).createIndex(Dn.userMutationsIndex,Dn.userMutationsKeyPath,{unique:!0});var r=e.store(Dn.store),i=n.map((function(t){return r.put(t)}));return De.Un(i)}))}(t,o)}))),s=s.next((function(){!function(t){t.createObjectStore(Hn.store,{keyPath:Hn.keyPath})}(t)}))),n<5&&r>=5&&(s=s.next((function(){return i.removeAcknowledgedMutations(o)}))),n<6&&r>=6&&(s=s.next((function(){return function(t){t.createObjectStore(Vn.store)}(t),i.addDocumentGlobal(o)}))),n<7&&r>=7&&(s=s.next((function(){return i.ensureSequenceNumbers(o)}))),n<8&&r>=8&&(s=s.next((function(){return i.createCollectionParentIndex(t,o)}))),n<9&&r>=9&&(s=s.next((function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(Fn.store);e.createIndex(Fn.readTimeIndex,Fn.readTimeIndexPath,{unique:!1}),e.createIndex(Fn.collectionReadTimeIndex,Fn.collectionReadTimeIndexPath,{unique:!1})}(e)}))),n<10&&r>=10&&(s=s.next((function(){return i.rewriteCanonicalIds(o)}))),s},t.prototype.addDocumentGlobal=function(t){var e=0;return t.store(Fn.store).Ro((function(t,n){e+=Cn(n)})).next((function(){var n=new Vn(e);return t.store(Vn.store).put(Vn.key,n)}))},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(Pn.store),r=t.store(Dn.store);return n.To().next((function(n){return De.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.To(Dn.userMutationsIndex,i).next((function(r){return De.forEach(r,(function(r){we(r.userId===n.userId);var i=e.serializer.ko(r);return dn(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(Bn.store),n=t.store(Fn.store);return _n(t).next((function(t){var r=[];return n.Ro((function(n,i){var o=new E(n),s=function(t){return[0,Ze(t)]}(o);r.push(e.get(s).next((function(n){return n?De.resolve():function(n){return e.put(new Bn(0,Ze(n),t))}(o)})))})).next((function(){return De.Un(r)}))}))},t.prototype.createCollectionParentIndex=function(t,e){t.createObjectStore(zn.store,{keyPath:zn.keyPath});var n=e.store(zn.store),r=new On,i=function(t){if(r.add(t)){var e=t.O(),i=t.M();return n.put({collectionId:e,parent:Ze(i)})}};return e.store(Fn.store).Ro({wo:!0},(function(t,e){var n=new E(t);return i(n.M())})).next((function(){return e.store(jn.store).Ro({wo:!0},(function(t,e){var n=tn(t[1]);return i(n.M())}))}))},t.prototype.rewriteCanonicalIds=function(t){var e=this,n=t.store(Un.store);return n.Ro((function(t,r){var i=e.serializer.ha(r),o=e.serializer.oa(i);return n.put(o)}))},t}(),Nn=function(t,e){this.seconds=t,this.nanoseconds=e},Rn=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Rn.store="owner",Rn.key="owner";var Pn=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Pn.store="mutationQueues",Pn.keyPath="userId";var Dn=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Dn.store="mutations",Dn.keyPath="batchId",Dn.userMutationsIndex="userMutationsIndex",Dn.userMutationsKeyPath=["userId","batchId"];var jn=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,Ze(e)]},t.key=function(t,e,n){return[t,Ze(e),n]},t}();jn.store="documentMutations",jn.PLACEHOLDER=new jn;var Ln=function(t,e){this.path=t,this.readTime=e},Mn=function(t,e){this.path=t,this.version=e},Fn=function(t,e,n,r,i,o){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o};Fn.store="remoteDocuments",Fn.readTimeIndex="readTimeIndex",Fn.readTimeIndexPath="readTime",Fn.collectionReadTimeIndex="collectionReadTimeIndex",Fn.collectionReadTimeIndexPath=["parentPath","readTime"];var Vn=function(t){this.byteSize=t};Vn.store="remoteDocumentGlobal",Vn.key="remoteDocumentGlobalKey";var Un=function(t,e,n,r,i,o,s){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=s};Un.store="targets",Un.keyPath="targetId",Un.queryTargetsIndexName="queryTargetsIndex",Un.queryTargetsKeyPath=["canonicalId","targetId"];var Bn=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Bn.store="targetDocuments",Bn.keyPath=["targetId","path"],Bn.documentTargetsIndex="documentTargetsIndex",Bn.documentTargetsKeyPath=["path","targetId"];var qn=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};qn.key="targetGlobalKey",qn.store="targetGlobal";var zn=function(t,e){this.collectionId=t,this.parent=e};function Gn(t){t.createObjectStore(Bn.store,{keyPath:Bn.keyPath}).createIndex(Bn.documentTargetsIndex,Bn.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(Un.store,{keyPath:Un.keyPath}).createIndex(Un.queryTargetsIndexName,Un.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(qn.store)}zn.store="collectionParents",zn.keyPath=["collectionId","parent"];var Hn=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};Hn.store="clientMetadata",Hn.keyPath="clientId";var Wn=i.__spreadArrays(i.__spreadArrays(i.__spreadArrays([Pn.store,Dn.store,jn.store,Fn.store,Un.store,Rn.store,qn.store,Bn.store],[Hn.store]),[Vn.store]),[zn.store]),$n=function(){function t(){this.$a=new On}return t.prototype.Fo=function(t,e){var n=this;if(!this.$a.has(e)){var r=e.O(),i=e.M();t.er((function(){n.$a.add(e)}));var o={collectionId:r,parent:Ze(i)};return Qn(t).put(o)}return De.resolve()},t.prototype.wr=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[Ce(e),""],!1,!0);return Qn(t).To(r).next((function(t){for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.collectionId!==e)break;n.push(tn(o.parent))}return n}))},t}();function Qn(t){return Xn.ho(t,zn.store)}var Kn=function(){function t(t){this.Ma=t}return t.prototype.Pa=function(t){if(t.document)return this.Ma.Ai(t.document,!!t.hasCommittedMutations);if(t.noDocument){var e=x.st(t.noDocument.path),n=this.La(t.noDocument.readTime);return new vt(e,n,{hasCommittedMutations:!!t.hasCommittedMutations})}if(t.unknownDocument){var r=x.st(t.unknownDocument.path),i=this.La(t.unknownDocument.version);return new _t(r,i)}return _e()},t.prototype.Na=function(t,e){var n=this.Aa(e),r=t.key.path.M().W();if(t instanceof bt){var i=this.Ma.mi(t);return new Fn(null,null,i,t.hasCommittedMutations,n,r)}if(t instanceof vt){var o=t.key.path.W(),s=this.xa(t.version),a=t.hasCommittedMutations;return new Fn(null,new Ln(o,s),null,a,n,r)}if(t instanceof _t){var u=t.key.path.W(),c=this.xa(t.version);return new Fn(new Mn(u,c),null,null,!0,n,r)}return _e()},t.prototype.Aa=function(t){var e=t.C();return[e.seconds,e.nanoseconds]},t.prototype.pa=function(t){var e=new v(t[0],t[1]);return _.v(e)},t.prototype.xa=function(t){var e=t.C();return new Nn(e.seconds,e.nanoseconds)},t.prototype.La=function(t){var e=new v(t.seconds,t.nanoseconds);return _.v(e)},t.prototype.Co=function(t,e){var n=this,r=e.baseMutations.map((function(t){return n.Ma.vi(t)})),i=e.mutations.map((function(t){return n.Ma.vi(t)}));return new Dn(t,e.batchId,e.Tn.toMillis(),r,i)},t.prototype.ko=function(t){var e=this,n=(t.baseMutations||[]).map((function(t){return e.Ma.Fi(t)})),r=t.mutations.map((function(t){return e.Ma.Fi(t)})),i=v.fromMillis(t.localWriteTimeMs);return new Ae(t.batchId,i,n,r)},t.prototype.ha=function(t){var e,n=this.La(t.readTime),r=void 0!==t.lastLimboFreeSnapshotVersion?this.La(t.lastLimboFreeSnapshotVersion):_.min();return e=void 0!==t.query.documents?this.Ma.Oi(t.query):this.Ma.Wi(t.query),new Nt(e,t.targetId,0,t.lastListenSequenceNumber,n,r,I.fromBase64String(t.resumeToken))},t.prototype.oa=function(t){var e,n=this.xa(t.Ee),r=this.xa(t.lastLimboFreeSnapshotVersion);e=t.target.xt()?this.Ma.xi(t.target):this.Ma.Bi(t.target);var i=t.resumeToken.toBase64();return new Un(t.targetId,t.target.canonicalId(),n,i,t.sequenceNumber,r,e)},t}(),Yn="Another tab has exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs.",Zn=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).qo=e,r.Oa=n,r}return i.__extends(e,t),e}(Me),Xn=function(){function t(e,n,r,i,o,s,a,u){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Sr=s,this.Ba=u,this.qa=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Ua=null,this.inForeground=!1,this.Qa=null,this.Wa=null,this.ja=Number.NEGATIVE_INFINITY,this.Ka=function(t){return Promise.resolve()}
8,!t.so())throw new f(d.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");if(this.Ao=new er(this,o),this.Ga=n+t.za,this.serializer=new Kn(a),this.document=i.document,this.Ha=new yn(this.Ao,this.serializer),this.rr=new $n,this.ir=new En(this.serializer,this.rr),!i.window||!i.window.localStorage)throw new f(d.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");this.window=i.window,this.Ya=this.window.localStorage}return t.ho=function(t,e){if(t instanceof Zn)return en.ho(t.qo,e);throw _e()},t.prototype.start=function(){var t=this;return en.eo(this.Ga,In,new An(this.serializer)).then((function(e){return t.Ja=e,t.Xa()})).then((function(){return t.Za(),t.tu(),t.eu(),t.Ja.runTransaction("readonly",[qn.store],(function(t){return _n(t)}))})).then((function(e){t.su=new Ue(e,t.Ba)})).then((function(){t.qa=!0})).catch((function(e){return t.Ja&&t.Ja.close(),Promise.reject(e)}))},t.prototype.iu=function(t){var e=this;return this.Ka=function(n){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.Uh?[2,t(n)]:[2]}))}))},t(this.isPrimary)},t.prototype.nu=function(t){var e=this;this.Ja.oo((function(n){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return null===n.newVersion?[4,t()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}
8))}))}))},t.prototype.ru=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Sr.Hr((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.Uh?[4,this.Xa()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.Xa=function(){var t=this;return this.Ja.runTransaction("readwrite",Wn,(function(e){return tr(e).put(new Hn(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next((function(){if(t.isPrimary)return t.hu(e).next((function(e){e||(t.isPrimary=!1,t.Sr.Hr((function(){return t.Ka(!1)})))}))})).next((function(){return t.ou(e)})).next((function(n){return t.isPrimary&&!n?t.au(e).next((function(){return!1})):!!n&&t.uu(e).next((function(){return!0}))}))})).catch((function(e){if(!t.allowTabSynchronization)throw e;return ye("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((function(e){t.isPrimary!==e&&t.Sr.Hr((function(){return t.Ka(e)})),t.isPrimary=e}))},t.prototype.hu=function(t){var e=this;return Jn(t).get(Rn.key).next((function(t){return De.resolve(e.cu(t))}))},t.prototype._u=function(t){return tr(t).delete(this.clientId)},t.prototype.lu=function(){return i.__awaiter(this,void 0,void 0,(function(){var e=this;return i.__generator(this,(function(n){switch(n.label){case 0:return!this.isPrimary||this.du(this.ja,18e5)?[3,2]:(this.ja=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(n){var r=t.ho(n,Hn.store);return r.To().next((function(t){var n=e.fu(t,18e5),i=t.filter((function(t){return-1===n.indexOf(t)}));return De.forEach(i,(function(t){return r.delete(t.clientId)})).next((function(){return i}))}))})).catch((function(){return[]}))]);case 1:n.sent().forEach((function(t){e.window.localStorage.removeItem(e.Tu(t.clientId))})),n.label=2;case 2:return[2]}}
8))}))},t.prototype.eu=function(){var t=this;this.Wa=this.Sr.Br("client_metadata_refresh",4e3,(function(){return t.Xa().then((function(){return t.lu()})).then((function(){return t.eu()}))}))},t.prototype.cu=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.ou=function(t){var e=this;return Jn(t).get(Rn.key).next((function(n){if(null!==n&&e.du(n.leaseTimestampMs,5e3)&&!e.Eu(n.ownerId)){if(e.cu(n)&&e.networkEnabled)return!0;if(!e.cu(n)){if(!n.allowTabSynchronization)throw new f(d.FAILED_PRECONDITION,Yn);return!1}}return!(!e.networkEnabled||!e.inForeground)||tr(t).To().next((function(t){return void 0===e.fu(t,5e3).find((function(t){return!(e.clientId===t.clientId||!(!e.networkEnabled&&t.networkEnabled||!e.inForeground&&t.inForeground&&e.networkEnabled===t.networkEnabled))}))}))})).next((function(t){return e.isPrimary!==t&&ye("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t}))},t.prototype.Iu=function(){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(e){switch(e.label){case 0:return this.qa=!1,this.wu(),this.Wa&&(this.Wa.cancel(),this.Wa=null),this.Ru(),this.mu(),[4,this.Ja.runTransaction("readwrite",[Rn.store,Hn.store],(function(e){return t.au(e).next((function(){return t._u(e)}))}))];case 1:return e.sent(),this.Ja.close(),this.Au(),[2]}}))}))},t.prototype.fu=function(t,e){var n=this;return t.filter((function(t){return n.du(t.updateTimeMs,e)&&!n.Eu(t.clientId)}))},t.prototype.Pu=function(){var t=this;return this.Ja.runTransaction("readonly",[Hn.store],(function(e){return tr(e).To().next((function(e){return t.fu(e,18e5).map((function(t){return t.clientId}))}))}))},t.clearPersistence=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(n.label){case 0:return t.so()?[4,en.delete(e+t.za)]:[2,Promise.resolve()];case 1:return n.sent(),[2]}}))}))},Object.defineProperty(t.prototype,"Uh",{get:function(){return this.qa},enumerable:!0,configurable:!0}),t.prototype.Vu=function(t){return ln.Vo(t,this.serializer,this.rr,this.Ao)},t.prototype.gu=function(){return this.Ha},t.prototype.pu=function(){return this.ir},t.prototype.yu=function(){return this.rr},t.prototype.runTransaction=function(t,e,n){var r,i=this;return ye("IndexedDbPersistence","Starting transaction:",t),this.Ja.runTransaction("readonly"===e?"readonly":"readwrite",Wn,(function(o){return r=new Zn(o,i.su.next()),"readwrite-primary"===e?i.hu(o).next((function(t){return!!t||i.ou(o)})).next((function(e){if(!e)throw be("Failed to obtain primary lease for action '"+t+"'."),i.isPrimary=!1,i.Sr.Hr((function(){return i.Ka(!1)})),new f(d.FAILED_PRECONDITION,Le);return n(r)})).next((function(t){return i.uu(o).next((function(){return t}))})):i.bu(o).next((function(){return n(r)}))})).then((function(t){return r.sr(),t}))},t.prototype.bu=function(t){var e=this;return Jn(t).get(Rn.key).next((function(t){if(null!==t&&e.du(t.leaseTimestampMs,5e3)&&!e.Eu(t.ownerId)&&!e.cu(t)&&!t.allowTabSynchronization)throw new f(d.FAILED_PRECONDITION,Yn)}))},t.prototype.uu=function(t){var e=new Rn(this.clientId,this.allowTabSynchronization,Date.now());return Jn(t).put(Rn.key,e)},t.so=function(){return en.so()},t.vu=function(t){var e=t.ii.projectId;return t.ii.ln||(e+="."+t.ii.database),"firestore/"+t.persistenceKey+"/"+e+"/"},t.prototype.au=function(t){var e=this,n=Jn(t);return n.get(Rn.key).next((function(t){return e.cu(t)?(ye("IndexedDbPersistence","Releasing primary lease."),n.delete(Rn.key)):De.resolve()}))},t.prototype.du=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(be("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.Za=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Qa=function(){t.Sr.Hr((function(){return t.inForeground="visible"===t.document.visibilityState,t.Xa()}))},this.document.addEventListener("visibilitychange",this.Qa),this.inForeground="visible"===this.document.visibilityState)},t.prototype.Ru=function(){this.Qa&&(this.document.removeEventListener("visibilitychange",this.Qa),this.Qa=null)},t.prototype.tu=function(){var t=this;"function"==typeof this.window.addEventListener&&(this.Ua=function(){t.wu(),t.Sr.Hr((function(){return t.Iu()}))},this.window.addEventListener("unload",this.Ua))},t.prototype.mu=function(){this.Ua&&(this.window.removeEventListener("unload",this.Ua),this.Ua=null)},t.prototype.Eu=function(t){try{var e=null!==this.Ya.getItem(this.Tu(t));return ye("IndexedDbPersistence","Client '"+t+"' "+(e?"is":"is not")+" zombied in LocalStorage"),e}catch(t){return be("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype.wu=function(){try{this.Ya.setItem(this.Tu(this.clientId),String(Date.now()))}catch(t){be("Failed to set zombie client id.",t)}},t.prototype.Au=function(){try{this.Ya.removeItem(this.Tu(this.clientId))}catch(t){}},t.prototype.Tu=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function Jn(t){return t.store(Rn.store)}function tr(t){return t.store(Hn.store)}Xn.za="main";var er=function(){function t(t,e){this.db=t,this.Su=null,this.Lh=new Ye(this,e)}return t.prototype.Kh=function(t){var e=this.Du(t);return this.db.gu().aa(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype.Du=function(t){var e=0;return this.zh(t,(function(t){e++})).next((function(){return e}))},t.prototype.js=function(t,e){return this.db.gu().js(t,e)},t.prototype.zh=function(t,e){return this.Cu(t,(function(t,n){return e(n)}))},t.prototype.Fu=function(t){this.Su=t},t.prototype.gn=function(t,e){return nr(t,e)},t.prototype.yn=function(t,e){return nr(t,e)},t.prototype.Hh=function(t,e,n){return this.db.gu().Hh(t,e,n)},t.prototype.Qo=function(t,e){return nr(t,e)},t.prototype.Nu=function(t,e){return this.Su.Fn(e)?De.resolve(!0):function(t,e){var n=!1;return mn(t).mo((function(r){return hn(t,r,e).next((function(t){return t&&(n=!0),De.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.Yh=function(t,e){var n=this,r=this.db.pu().ba(),i=[],o=0;return this.Cu(t,(function(s,a){if(a<=e){var u=n.Nu(t,s).next((function(e){if(!e)return o++,r.Yn(t,s).next((function(){return r.Hn(s),wn(t).delete([0,Ze(s.path)])}))}));i.push(u)}})).next((function(){return De.Un(i)})).next((function(){return r.apply(t)})).next((function(){return o}
8))},t.prototype.removeTarget=function(t,e){var n=e.Ie(t.Oa);return this.db.gu().ia(t,n)},t.prototype.ku=function(t,e){return nr(t,e)},t.prototype.Cu=function(t,e){var n,r=wn(t),i=Ue.vr;return r.Ro({index:Bn.documentTargetsIndex},(function(t,r){var o=r.path,s=r.sequenceNumber;0===t[0]?(i!==Ue.vr&&e(new x(tn(n)),i),i=s,n=o):i=Ue.vr})).next((function(){i!==Ue.vr&&e(new x(tn(n)),i)}))},t.prototype.Xh=function(t){return this.db.pu().Da(t)},t}();function nr(t,e){return wn(t).put(function(t,e){return new Bn(0,Ze(t.path),e)}(e,t.Oa))}var rr=function(){function t(t,e,n){this.persistence=t,this.$u=e,this.Mu=new Re,this.Lu=new jt(Te),this.xu=new Ie((function(t){return t.canonicalId()})),this.Ou=_.min(),this.persistence.Ao.Fu(this.Mu),this.nr=t.Vu(n),this.Bu=t.pu(),this.Ha=t.gu(),this.qu=new Fe(this.Bu,this.nr,this.persistence.yu()),this.$u.Uu(this.qu)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.Qu=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o=this;return i.__generator(this,(function(i){switch(i.label){case 0:return e=this.nr,n=this.qu,[4,this.persistence.runTransaction("Handle user change","readonly",(function(r){var i;return o.nr.xo(r).next((function(s){return i=s,e=o.persistence.Vu(t),n=new Fe(o.Bu,e,o.persistence.yu()),e.xo(r)})).next((function(t){for(var e=[],o=[],s=Qt(),a=0,u=i;a<u.length;a++){var c=u[a];e.push(c.batchId);for(var l=0,h=c.mutations;l<h.length;l++)s=s.add(h[l].key)}for(var d=0,f=t;d<f.length;d++){var p=f[d];o.push(p.batchId);for(var m=0,g=p.mutations;m<g.length;m++)s=s.add(g[m].key)}return n.cr(r,s).next((function(t){return{Wu:t,ju:e,Ku:o}}))}))}))];case 1:return r=i.sent(),[2,(this.nr=e,this.qu=n,this.$u.Uu(this.qu),r)]}}))}))},t.prototype.Gu=function(t){var e,n=this,r=v.now(),i=t.reduce((function(t,e){return t.add(e.key)}),Qt());return this.persistence.runTransaction("Locally write mutations","readwrite",(function(o){return n.qu.cr(o,i).next((function(i){e=i;for(var s=[],a=0,u=t;a<u.length;a++){var c=u[a],l=c.Pt(e.get(c.key));null!=l&&s.push(new ut(c.key,l,pt(l.proto.mapValue),ot.exists(!0)))}return n.nr.Do(o,r,s,t)}))})).then((function(t){var n=t.In(e);return{batchId:t.batchId,Wn:n}}))},t.prototype.yo=function(t){var e=this;return this.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(n){var r=t.batch.keys(),i=e.Bu.ba({Sa:!0});return e.nr.yo(n,t.batch,t.streamToken).next((function(){return e.zu(n,t,i)})).next((function(){return i.apply(n)})).next((function(){return e.nr.Wo(n)})).next((function(){return e.qu.cr(n,r)}))}))},t.prototype.Hu=function(t){var e=this;return this.persistence.runTransaction("Reject batch","readwrite-primary",(function(n){var r;return e.nr.No(n,t).next((function(t){return we(null!==t),r=t.keys(),e.nr.Bo(n,t)})).next((function(){return e.nr.Wo(n)})).next((function(){return e.qu.cr(n,r)}))}))},t.prototype.Lo=function(){var t=this;return this.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(e){return t.nr.Lo(e)}))},t.prototype.vo=function(){var t=this;return this.persistence.runTransaction("Get last stream token","readonly",(function(e){return t.nr.vo(e)}))},t.prototype.So=function(t){var e=this;return this.persistence.runTransaction("Set last stream token","readwrite-primary",(function(n){return e.nr.So(n,t)}))},t.prototype.Jo=function(){var t=this;return this.persistence.runTransaction("Get last remote snapshot version","readonly",(function(e){return t.Ha.Jo(e)}))},t.prototype.Yu=function(e){var n=this,r=e.Ee,i=this.Lu;return this.persistence.runTransaction("Apply remote event","readwrite-primary",(function(o){var s=n.Bu.ba({Sa:!0});i=n.Lu;var a=[];e.as.forEach((function(e,s){var u=i.get(s);if(u){a.push(n.Ha._a(o,e.Is,s).next((function(){return n.Ha.ca(o,e.Ts,s)})));var c=e.resumeToken;if(c.rt()>0){var l=u.we(c,r).Ie(o.Oa);i=i.me(s,l),t.Ju(u,l,e)&&a.push(n.Ha.ia(o,l))}}}));var u=Bt(),c=Qt();if(e.cs.forEach((function(t,e){c=c.add(t)})),a.push(s.getEntries(o,c).next((function(t){e.cs.forEach((function(i,c){var l=t.get(i);c instanceof vt&&c.version.isEqual(_.min())?(s.Hn(i,r),u=u.me(i,c)):null==l||c.version.S(l.version)>0||0===c.version.S(l.version)&&l.hasPendingWrites?(s.Gn(c,r),u=u.me(i,c)):ye("LocalStore","Ignoring outdated watch update for ",i,". Current version:",l.version," Watch version:",c.version),e._s.has(i)&&a.push(n.persistence.Ao.ku(o,i))}))}))),!r.isEqual(_.min())){var l=n.Ha.Jo(o).next((function(t){return n.Ha.Zo(o,o.Oa,r)}));a.push(l)}return De.Un(a).next((function(){return s.apply(o)})).next((function(){return n.qu._r(o,u)}))})).then((function(t){return n.Lu=i,t}))},t.Ju=function(t,e,n){return we(e.resumeToken.rt()>0),0===t.resumeToken.rt()||e.Ee.D()-t.Ee.D()>=this.Xu||n.Ts.size+n.Es.size+n.Is.size>0},t.prototype.Zu=function(t){for(var e=this,n=0,r=t;n<r.length;n++){var i=r[n],o=i.targetId;if(this.Mu.pn(i.Ar,o),this.Mu.vn(i.Pr,o),!i.fromCache){var s=this.Lu.get(o),a=s.Re(s.Ee);this.Lu=this.Lu.me(o,a)}}return this.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(n){return De.forEach(t,(function(t){return De.forEach(t.Pr,(function(t){return e.persistence.Ao.yn(n,t)}))}))}))},t.prototype.tc=function(t){var e=this;return this.persistence.runTransaction("Get next mutation batch","readonly",(function(n){return void 0===t&&(t=-1),e.nr.Mo(n,t)}))},t.prototype.ec=function(t){var e=this;return this.persistence.runTransaction("read document","readonly",(function(n){return e.qu.hr(n,t)}))},t.prototype.sc=function(t){var e=this;return this.persistence.runTransaction("Allocate target","readwrite",(function(n){var r;return e.Ha.ua(n,t).next((function(i){return i?De.resolve(r=i):e.Ha.zo(n).next((function(i){return r=new Nt(t,i,0,n.Oa),e.Ha.ta(n,r).next((function(){return r}))}))}))})).then((function(n){return null===e.Lu.get(n.targetId)&&(e.Lu=e.Lu.me(n.targetId,n),e.xu.set(t,n.targetId)),n}))},t.prototype.ua=function(t,e){var n=this.xu.get(e);return void 0!==n?De.resolve(this.Lu.get(n)):this.Ha.ua(t,e)},t.prototype.ic=function(t,e){var n=this,r=this.Lu.get(t);return this.persistence.runTransaction("Release target",e?"readwrite":"readwrite-primary",(function(i){var o=n.Mu.Sn(t);return e?De.resolve():De.forEach(o,(function(t){return n.persistence.Ao.yn(i,t)})).next((function(){n.persistence.Ao.removeTarget(i,r)}))})).then((function(){n.Lu=n.Lu.remove(t),n.xu.delete(r.target)}))},t.prototype.nc=function(t,e){var n=this,r=_.min(),i=Qt();
8return this.persistence.runTransaction("Execute query","readonly",(function(o){return n.ua(o,t.ee()).next((function(t){if(t)return r=t.lastLimboFreeSnapshotVersion,n.Ha.la(o,t.targetId).next((function(t){i=t}))})).next((function(){return n.$u.dr(o,t,e?r:_.min(),e?i:Qt())})).next((function(t){return{documents:t,rc:i}}))}))},t.prototype.hc=function(t){var e=this;return this.persistence.runTransaction("Remote document keys","readonly",(function(n){return e.Ha.la(n,t)}))},t.prototype.zu=function(t,e,n){var r=this,i=e.batch,o=i.keys(),s=De.resolve();return o.forEach((function(r){s=s.next((function(){return n.Yn(t,r)})).next((function(t){var o=t,s=e.Rn.get(r);we(null!==s),(!o||o.version.S(s)<0)&&(o=i.at(r,o,e))&&n.Gn(o,e.wn)}))})),s.next((function(){return r.nr.Bo(t,i)}))},t.prototype.Qh=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.Jh(n,e.Lu)}))},t}();rr.Xu=3e8;var ir=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).persistence=e,i.nr=e.Vu(r),i.Bu=e.pu(),i.Ha=e.gu(),i}return i.__extends(e,t),e.prototype.start=function(){return this.oc()},e.prototype.ac=function(t){var e=this;return this.persistence.runTransaction("Lookup mutation documents","readonly",(function(n){return e.nr.$o(n,t).next((function(t){return t?e.qu.cr(n,t):De.resolve(null)}))}))},e.prototype.uc=function(t){this.nr.Uo(t)},e.prototype.ru=function(t){this.persistence.ru(t)},e.prototype.Pu=function(){return this.persistence.Pu()},e.prototype.cc=function(t){var e=this,n=this.Lu.get(t);return n?Promise.resolve(n.target):this.persistence.runTransaction("Get target data","readonly",(function(n){return e.Ha.si(n,t).next((function(t){return t?t.target:null}))}))},e.prototype.Va=function(){var t=this;return this.persistence.runTransaction("Get new document changes","readonly",(function(e){return t.Bu.Va(e,t.Ou)})).then((function(e){var n=e.ga;return t.Ou=e.readTime,n}))},e.prototype.oc=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){switch(n.label){case 0:return t=this,[4,this.persistence.runTransaction("Synchronize last document change read time","readonly",(function(t){return e.Bu.ya(t)}))];case 1:return t.Ou=n.sent(),[2]}}))}))},e}(rr);function or(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){if(t.code!==d.FAILED_PRECONDITION||t.message!==Le)throw t;return ye("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}function sr(t,e){if(0!==e.length)throw new f(d.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+Sr(e.length,"argument")+".")}function ar(t,e,n){if(e.length!==n)throw new f(d.INVALID_ARGUMENT,"Function "+t+"() requires "+Sr(n,"argument")+", but was called with "+Sr(e.length,"argument")+".")}function ur(t,e,n){if(e.length<n)throw new f(d.INVALID_ARGUMENT,"Function "+t+"() requires at least "+Sr(n,"argument")+", but was called with "+Sr(e.length,"argument")+".")}function cr(t,e,n,r){if(e.length<n||e.length>r)throw new f(d.INVALID_ARGUMENT,"Function "+t+"() requires between "+n+" and "+r+" arguments, but was called with "+Sr(e.length,"argument")+".")}function lr(t,e,n,r){mr(t,e,Er(n)+" argument",r)}function hr(t,e,n,r){void 0!==r&&lr(t,e,n,r)}function dr(t,e,n,r){mr(t,e,n+" option",r)}function fr(t,e,n,r){void 0!==r&&dr(t,e,n,r)}function pr(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){for(var o=[],s=0,a=i;s<a.length;s++){var u=a[s];if(u===r)return;o.push(yr(u))}var c=yr(r);throw new f(d.INVALID_ARGUMENT,"Invalid value "+c+" provided to function "+t+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(t,0,n,r,i)}function mr(t,e,n,r){if(!("object"===e?gr(r):"non-empty string"===e?"string"==typeof r&&""!==r:typeof r===e)){var i=yr(r);throw new f(d.INVALID_ARGUMENT,"Function "+t+"() requires its "+n+" to be of type "+e+", but it was: "+i)}}function gr(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}function yr(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(t=t.substring(0,20)+"..."),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";var e=function(t){if(t.constructor){var e=/function\s+([^\s(]+)\s*\(/.exec(t.constructor.toString());if(e&&e.length>1)return e[1]}return null}(t);return e?"a custom "+e+" object":"an object"}return"function"==typeof t?"a function":_e()}function br(t,e,n){if(void 0===n)throw new f(d.INVALID_ARGUMENT,"Function "+t+"() requires a valid "+Er(e)+" argument, but it was undefined.")}function vr(t,e,n){k(e,(function(e,r){if(n.indexOf(e)<0)throw new f(d.INVALID_ARGUMENT,"Unknown option '"+e+"' passed to function "+t+"(). Available options: "+n.join(", "))}))}function _r(t,e,n,r){var i=yr(r);return new f(d.INVALID_ARGUMENT,"Function "+t+"() requires its "+Er(n)+" argument to be a "+e+", but it was: "+i)}function wr(t,e,n){if(n<=0)throw new f(d.INVALID_ARGUMENT,'Function "'+t+'()" requires its '+Er(e)+" argument to be a positive number, but it was: "+n+".")}function Er(t){switch(t){case 1:return"first";
8case 2:return"second";case 3:return"third";default:return t+"th"}}function Sr(t,e){return t+" "+e+(1===t?"":"s")}function Tr(){if("undefined"==typeof Uint8Array)throw new f(d.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function xr(){if(!fe.nt()._c)throw new f(d.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var Cr=function(){function t(t){xr(),this.lc=t}return t.fromBase64String=function(e){ar("Blob.fromBase64String",arguments,1),lr("Blob.fromBase64String","string",1,e),xr();try{return new t(I.fromBase64String(e))}catch(e){throw new f(d.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+e)}},t.fromUint8Array=function(e){if(ar("Blob.fromUint8Array",arguments,1),Tr(),!(e instanceof Uint8Array))throw _r("Blob.fromUint8Array","Uint8Array",1,e);return new t(I.fromUint8Array(e))},t.prototype.toBase64=function(){return ar("Blob.toBase64",arguments,0),xr(),this.lc.toBase64()},t.prototype.toUint8Array=function(){return ar("Blob.toUint8Array",arguments,0),Tr(),this.lc.toUint8Array()},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this.lc.isEqual(t.lc)},t}(),kr=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];!function(t,e,n,r){if(!(e instanceof Array)||e.length<1)throw new f(d.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+Sr(1,"element")+".")}(0,t);for(var n=0;n<t.length;++n)if(lr("FieldPath","string",n,t[n]),0===t[n].length)throw new f(d.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.dc=new T(t)}return t.documentId=function(){return t.fc},t.prototype.isEqual=function(e){if(!(e instanceof t))throw _r("isEqual","FieldPath",1,e);return this.dc.isEqual(e.dc)},t}();kr.fc=new kr(T.J().j());var Or=new RegExp("[~\\*/\\[\\]]"),Ir=function(t){this.Tc=t},Ar=function(t){function e(){return t.call(this,"FieldValue.delete")||this}return i.__extends(e,t),e.prototype.Di=function(t){if(2!==t.Ec)throw t.Ic(1===t.Ec?"FieldValue.delete() can only appear at the top level of your update data":"FieldValue.delete() cannot be used with set() unless you pass {merge:true}");return t.Vt.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(Ir),Nr=function(t){function e(){return t.call(this,"FieldValue.serverTimestamp")||this}return i.__extends(e,t),e.prototype.Di=function(t){return new rt(t.path,Z.instance)},e.prototype.isEqual=function(t){return t instanceof e},e}(Ir),Rr=function(t){function e(e){var n=this;return(n=t.call(this,"FieldValue.arrayUnion")||this).wc=e,n}return i.__extends(e,t),e.prototype.Di=function(t){var e=t.Rc({Ec:3,methodName:this.Tc}),n=this.wc.map((function(t,n){return qr(t,e.mc(n))})),r=new X(n);return new rt(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(Ir),Pr=function(t){function e(e){var n=this;return(n=t.call(this,"FieldValue.arrayRemove")||this).wc=e,n}return i.__extends(e,t),e.prototype.Di=function(t){var e=t.Rc({Ec:3,methodName:this.Tc}),n=this.wc.map((function(t,n){return qr(t,e.mc(n))})),r=new J(n);return new rt(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(Ir),Dr=function(t){function e(e){var n=this;return(n=t.call(this,"FieldValue.increment")||this).Ac=e,n}return i.__extends(e,t),e.prototype.Di=function(t){t.Rc({methodName:this.Tc});var e=qr(this.Ac,t),n=new tt(t.serializer,e);return new rt(t.path,n)},e.prototype.isEqual=function(t){return this===t},e}(Ir),jr=function(){function t(t,e){if(ar("GeoPoint",arguments,2),lr("GeoPoint","number",1,t),lr("GeoPoint","number",2,e),!isFinite(t)||t<-90||t>90)throw new f(d.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new f(d.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this.Pc=t,this.Vc=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this.Pc},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this.Vc},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){return this.Pc===t.Pc&&this.Vc===t.Vc},t.prototype.p=function(t){return Te(this.Pc,t.Pc)||Te(this.Vc,t.Vc)},t}(),Lr=/^__.*__$/,Mr=function(){function t(t,e,n){this.data=t,this.Vt=e,this.fieldTransforms=n}return t.prototype.gc=function(t,e){var n=[];return n.push(null!==this.Vt?new ut(t,this.data,this.Vt,e):new at(t,this.data,e)),this.fieldTransforms.length>0&&n.push(new ct(t,this.fieldTransforms)),n},t}(),Fr=function(){function t(t,e,n){this.data=t,this.Vt=e,this.fieldTransforms=n}return t.prototype.gc=function(t,e){var n=[new ut(t,this.data,this.Vt,e)];return this.fieldTransforms.length>0&&n.push(new ct(t,this.fieldTransforms)),n},t}();function Vr(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw _e()}}var Ur=function(){function t(t,e,n,r,i){this.settings=t,this.ii=e,this.serializer
8=n,void 0===r&&this.pc(),this.fieldTransforms=r||[],this.Vt=i||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Ec",{get:function(){return this.settings.Ec},enumerable:!0,configurable:!0}),t.prototype.Rc=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.ii,this.serializer,this.fieldTransforms,this.Vt)},t.prototype.yc=function(t){var e=null==this.path?null:this.path.child(t),n=this.Rc({path:e,bc:!1});return n.vc(t),n},t.prototype.Sc=function(t){var e=null==this.path?null:this.path.child(t),n=this.Rc({path:e,bc:!1});return n.pc(),n},t.prototype.mc=function(t){return this.Rc({path:null,bc:!0})},t.prototype.Ic=function(t){var e=null===this.path||this.path.B()?"":" (found in field "+this.path.toString()+")";return new f(d.INVALID_ARGUMENT,"Function "+this.settings.methodName+"() called with invalid data. "+t+e)},t.prototype.contains=function(t){return void 0!==this.Vt.find((function(e){return t.q(e)}))||void 0!==this.fieldTransforms.find((function(e){return t.q(e.field)}))},t.prototype.pc=function(){if(null!==this.path)for(var t=0;t<this.path.length;t++)this.vc(this.path.get(t))},t.prototype.vc=function(t){if(0===t.length)throw this.Ic("Document fields must not be empty");if(Vr(this.Ec)&&Lr.test(t))throw this.Ic('Document fields cannot begin and end with "__"')},t}(),Br=function(){function t(t,e){this.ii=t,this.serializer=e||fe.nt().Dc(t)}return t.prototype.Cc=function(t,e){var n=this.Fc(0,t);Hr("Data must be an object, but it was:",n,e);var r=zr(e,n);return new Mr(new dt(r),null,n.fieldTransforms)},t.prototype.Nc=function(t,e,n){var r=this.Fc(2,t);Hr("Data must be an object, but it was:",r,e);var i,o,s=zr(e,r);if(n){for(var a=[],u=0,c=n;u<c.length;u++){var l=c[u],h=void 0;if(l instanceof kr)h=l.dc;else{if("string"!=typeof l)throw _e();h=$r(t,l)}if(!r.contains(h))throw new f(d.INVALID_ARGUMENT,"Field '"+h+"' is specified in your field mask but missing from your input data.");Qr(a,h)||a.push(h)}i=new nt(a),o=r.fieldTransforms.filter((function(t){return i.dt(t.field)}))}else i=new nt(r.Vt),o=r.fieldTransforms;return new Mr(new dt(s),i,o)},t.prototype.kc=function(t,e){var n=this.Fc(1,t);Hr("Data must be an object, but it was:",n,e);var r=[],i=new ft;k(e,(function(e,o){var s=$r(t,e),a=n.Sc(s);if(o instanceof Ar)r.push(s);else{var u=qr(o,a);null!=u&&(r.push(s),i.set(s,u))}}));var o=new nt(r);return new Fr(i.yt(),o,n.fieldTransforms)},t.prototype.$c=function(t,e,n,r){var i=this.Fc(1,t),o=[Wr(t,e)],s=[n];if(r.length%2!=0)throw new f(d.INVALID_ARGUMENT,"Function "+t+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var a=0;a<r.length;a+=2)o.push(Wr(t,r[a])),s.push(r[a+1]);for(var u=[],c=new ft,l=o.length-1;l>=0;--l)if(!Qr(u,o[l])){var h=o[l],p=s[l],m=i.Sc(h);if(p instanceof Ar)u.push(h);else{var g=qr(p,m);null!=g&&(u.push(h),c.set(h,g))}}var y=new nt(u);return new Fr(c.yt(),y,i.fieldTransforms)},t.prototype.Fc=function(t,e){return new Ur({Ec:t,methodName:e,path:T.G,bc:!1},this.ii,this.serializer)},t.prototype.Mc=function(t,e,n){return void 0===n&&(n=!1),qr(e,this.Fc(n?4:3,t))},t}();function qr(t,e){if(Gr(t))return Hr("Unsupported field value:",e,t),zr(t,e);if(t instanceof Ir)return function(t,e){if(!Vr(e.Ec))throw e.Ic(t.Tc+"() can only be used with update() and set()");if(null===e.path)throw e.Ic(t.Tc+"() is not currently supported inside arrays");var n=t.Di(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(e.path&&e.Vt.push(e.path),t instanceof Array){if(e.settings.bc&&4!==e.Ec)throw e.Ic("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i<o.length;i++){var s=qr(o[i],e.mc(r));null==s&&(s={nullValue:"NULL_VALUE"}),n.push(s),r++}return{arrayValue:{values:n}}}(t,e)}return function(t,e){if(null===t)return{nullValue:"NULL_VALUE"};if("number"==typeof t)return e.serializer.ai(t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=v.fromDate(t);return{timestampValue:e.serializer.C(n)}}if(t instanceof v){var r=new v(t.seconds,1e3*Math.floor(t.nanoseconds/1e3));return{timestampValue:e.serializer.C(r)}}if(t instanceof jr)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof Cr)return{bytesValue:e.serializer.ui(t)};if(t instanceof Bi){var i=e.ii,o=t.firestore.Lc;if(!o.isEqual(i))throw e.Ic("Document reference is for database "+o.projectId+"/"+o.database+" but should be for database "+i.projectId+"/"+i.database);return{referenceValue:e.serializer._i(t.xc.path,t.firestore.Lc)}}throw e.Ic("Unsupported field value: "+yr(t))}(t,e)}function zr(t,e){var n={};return O(t)?e.path&&e.path.length>0&&e.Vt.push(e.path):k(t,(function(t,r){var i=qr(r,e.yc(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function Gr(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof v||t instanceof jr||t instanceof Cr||t instanceof Bi||t instanceof Ir)}function Hr(t,e,n){if(!Gr(n)||!gr(n)){var r=yr(n);throw e.Ic("an object"===r?t+" a custom object":t+" "+r)}}function Wr(t,e){if(e instanceof kr)return e.dc;if("string"==typeof e)return $r(t,e);throw new f(d.INVALID_ARGUMENT,"Function "+t+"() called with invali
8d data. Field path arguments must be of type string or FieldPath.")}function $r(t,e){try{return function(t){if(t.search(Or)>=0)throw new f(d.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(kr.bind.apply(kr,i.__spreadArrays([void 0],t.split("."))))}catch(i){throw new f(d.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(e).dc}catch(e){var n=(r=e)instanceof Error?r.message:r.toString();throw new f(d.INVALID_ARGUMENT,"Function "+t+"() called with invalid data. "+n)}var r}function Qr(t,e){return t.some((function(t){return t.isEqual(e)}))}var Kr=function(){function t(t,e,n,r,i,o){this.Sr=t,this.Oc=n,this.Bc=r,this.qc=i,this.listener=o,this.state=0,this.Uc=0,this.Qc=null,this.stream=null,this.ih=new qe(t,e)}return t.prototype.Wc=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.jc=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.Kc()},t.prototype.stop=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.Wc()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
8))}))},t.prototype.Gc=function(){this.state=0,this.ih.reset()},t.prototype.zc=function(){var t=this;this.jc()&&null===this.Qc&&(this.Qc=this.Sr.Br(this.Oc,6e4,(function(){return t.Hc()})))},t.prototype.Yc=function(t){this.Jc(),this.stream.send(t)},t.prototype.Hc=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.jc()?[2,this.close(0)]:[2]}))}))},t.prototype.Jc=function(){this.Qc&&(this.Qc.cancel(),this.Qc=null)},t.prototype.close=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(n.label){case 0:return this.Jc(),this.ih.cancel(),this.Uc++,3!==t?this.ih.reset():e&&e.code===d.RESOURCE_EXHAUSTED?(be(e.toString()),be("Using maximum backoff delay to prevent overloading the backend."),this.ih.Lr()):e&&e.code===d.UNAUTHENTICATED&&this.qc._(),null!==this.stream&&(this.Xc(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Zc(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.Xc=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.t_(this.Uc),n=this.Uc;this.qc.getToken().then((function(e){t.Uc===n&&t.e_(e)}),(function(n){e((function(){var e=new f(d.UNKNOWN,"Fetching auth token failed: "+n.message);return t.s_(e)}))}))},t.prototype.e_=function(t){var e=this,n=this.t_(this.Uc);this.stream=this.i_(t),this.stream.n_((function(){n((function(){return e.state=2,e.listener.n_()}))})),this.stream.Zc((function(t){n((function(){return e.s_(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.Kc=function(){var t=this;this.state=4,this.ih.xr((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.state=0,this.start(),[2]}))}))}))},t.prototype.s_=function(t){return ye("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.t_=function(t){var e=this;return function(n){e.Sr.Hr((function(){return e.Uc===t?n():(ye("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),Yr=function(t){function e(e,n,r,i,o){var s=this;return(s=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).serializer=i,s}return i.__extends(e,t),e.prototype.i_=function(t){return this.Bc.r_("Listen",t)},e.prototype.onMessage=function(t){this.ih.reset();var e=this.serializer.pi(t),n=this.serializer.bi(t);return this.listener.h_(e,n)},e.prototype.o_=function(t){var e={};e.database=this.serializer.wi,e.addTarget=this.serializer.ee(t);var n=this.serializer.zi(t);n&&(e.labels=n),this.Yc(e)},e.prototype.a_=function(t){var e={};e.database=this.serializer.wi,e.removeTarget=t,this.Yc(e)},e}(Kr),Zr=function(t){function e(e,n,r,i,o){var s=this;return(s=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).serializer=i,s.u_=!1,s.lastStreamToken=I.ht,s}return i.__extends(e,t),Object.defineProperty(e.prototype,"c_",{get:function(){return this.u_},enumerable:!0,configurable:!0}),e.prototype.start=function(){this.u_=!1,t.prototype.start.call(this)},e.prototype.Xc=function(){this.u_&&this.__([])},e.prototype.i_=function(t){return this.Bc.r_("Write",t)},e.prototype.onMessage=function(t){if(we(!!t.streamToken),this.lastStreamToken=this.serializer.ci(t.streamToken),this.u_){this.ih.reset();var e=this.serializer.Li(t.writeResults,t.commitTime),n=this.serializer.fromVersion(t.commitTime);return this.listener.l_(n,e)}return we(!t.writeResults||0===t.writeResults.length),this.u_=!0,this.listener.d_()},e.prototype.f_=function(){var t={};t.database=this.serializer.wi,this.Yc(t)},e.prototype.__=function(t){var e=this,n={streamToken:this.serializer.ui(this.lastStreamToken),writes:t.map((function(t){return e.serializer.vi(t)}))};this.Yc(n)},e}(Kr),Xr=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).Bc=e,i.credentials=n,i.serializer=r,i}return i.__extends(e,t),e.prototype.E_=function(t,e){var n=this;return this.credentials.getToken().then((function(r){return n.Bc.E_(t,e,r)})).catch((function(t){throw t.code===d.UNAUTHENTICATED&&n.credentials._(),t}))},e.prototype.I_=function(t,e){var n=this;return this.credentials.getToken().then((function(r){return n.Bc.I_(t,e,r)})).catch((function(t){throw t.code===d.UNAUTHENTICATED&&n.credentials._(),t}))},e}((function(){this.T_=void 0})),Jr=function(){function t(t){this.w_=t,this.R_=Wt(),this.mutations=[],this.m_=!1,this.A_=null,this.P_=new Set}return t.prototype.V_=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:if(this.g_(),this.mutations.length>0)throw new f(d.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,s,a;return i.__generator(this,(function(i){switch(i.label){case 0:return n=Ee(t),r={database:n.seri
8alizer.wi,documents:e.map((function(t){return n.serializer.fi(t)}))},[4,n.I_("BatchGetDocuments",r)];case 1:return o=i.sent(),s=new Map,o.forEach((function(t){var e=n.serializer.gi(t);s.set(e.key.toString(),e)})),a=[],[2,(e.forEach((function(t){var e=s.get(t.toString());we(!!e),a.push(e)})),a)]}}))}))}(this.w_,t)];case 1:return[2,((e=r.sent()).forEach((function(t){t instanceof vt||t instanceof bt?n.p_(t):_e()})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.gc(t,this.Rt(t))),this.P_.add(t)},t.prototype.update=function(t,e){try{this.write(e.gc(t,this.y_(t)))}catch(t){this.A_=t}this.P_.add(t)},t.prototype.delete=function(t){this.write([new lt(t,this.Rt(t))]),this.P_.add(t)},t.prototype.commit=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){switch(n.label){case 0:if(this.g_(),this.A_)throw this.A_;return t=this.R_,this.mutations.forEach((function(e){t=t.remove(e.key)})),t.forEach((function(t,n){e.mutations.push(new ht(t,e.Rt(t)))})),[4,function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:return n=Ee(t),r={database:n.seri
8alizer.wi,writes:e.map((function(t){return n.serializer.vi(t)}))},[4,n.E_("Commit",r)];case 1:return o=i.sent(),[2,n.serializer.Li(o.writeResults,o.commitTime)]}}))}))}(this.w_,this.mutations)];case 1:return n.sent(),this.m_=!0,[2]}}))}))},t.prototype.p_=function(t){var e;if(t instanceof bt)e=t.version;else{if(!(t instanceof vt))throw _e();e=_.min()}var n=this.R_.get(t.key);if(null!==n){if(!e.isEqual(n))throw new f(d.ABORTED,"Document version changed between two reads.")}else this.R_=this.R_.me(t.key,e)},t.prototype.Rt=function(t){var e=this.R_.get(t);return!this.P_.has(t)&&e?ot.updateTime(e):ot.ft()},t.prototype.y_=function(t){var e=this.R_.get(t);if(!this.P_.has(t)&&e){if(e.isEqual(_.min()))throw new f(d.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ot.updateTime(e)}return ot.exists(!0)},t.prototype.write=function(t){this.g_(),this.mutations=this.mutations.concat(t)},t.prototype.g_=function(){},t}(),ti=function(){function t(t,e){this.qr=t,this.b_=e,this.state="Unknown",this.v_=0,this.S_=null,this.D_=!0}return t.prototype.C_=function(){var t=this;0===this.v_&&(this.F_("Unknown"),this.S_=this.qr.Br("online_state_timeout",1e4,(function(){return t.S_=null,t.N_("Backend didn't respond within 10 seconds."),t.F_("Offline"),Promise.resolve()})))},t.prototype.k_=function(t){"Online"===this.state?this.F_("Unknown"):(this.v_++,this.v_>=1&&(this.M_(),this.N_("Connection failed 1 times. Most recent error: "+t.toString()),this.F_("Offline")))},t.prototype.set=function(t){this.M_(),this.v_=0,"Online"===t&&(this.D_=!1),this.F_(t)},t.prototype.F_=function(t){t!==this.state&&(this.state=t,this.b_(t))},t.prototype.N_=function(t){var e="Could not reach Cloud Firestore backend. "+t+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.D_?(be(e),this.D_=!1):ye("OnlineStateTracker",e)},t.prototype.M_=function(){null!==this.S_&&(this.S_.cancel(),this.S_=null)},t}(),ei=function(){function t(t,e,n,r,o){var s=this;this.L_=t,this.w_=e,this.qr=n,this.x_=[],this.O_=new Map,this.B_=null,this.networkEnabled=!1,this.isPrimary=!1,this.q_=!1,this.U_=o,this.U_.Q_((function(t){n.Hr((function(){return i.__awaiter(s,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.W_()?(ye("RemoteStore","Restarting streams for network reachability change."),[4,this.j_()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
8))}))}))})),this.K_=new ti(n,r),this.G_=function(t,e,n){var r=Ee(t);return new Yr(e,r.Bc,r.credentials,r.serializer,n)}(this.w_,n,{n_:this.z_.bind(this),Zc:this.H_.bind(this),h_:this.Y_.bind(this)}),this.J_=function(t,e,n){var r=Ee(t);return new Zr(e,r.Bc,r.credentials,r.serializer,n)}(this.w_,n,{n_:this.X_.bind(this),Zc:this.Z_.bind(this),d_:this.tl.bind(this),l_:this.l_.bind(this)})}return t.prototype.start=function(){return this.enableNetwork()},t.prototype.enableNetwork=function(){return this.networkEnabled=!0,this.el()},t.prototype.el=function(){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(e){switch(e.label){case 0:return this.W_()?(t=this.J_,[4,this.L_.vo()]):[3,3];case 1:return t.lastStreamToken=e.sent(),this.sl()?this.il():this.K_.set("Unknown"),[4,this.nl()];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},t.prototype.disableNetwork=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.networkEnabled=!1,[4,this.rl()];case 1:return t.sent(),this.K_.set("Offline"),[2]}}))}))},t.prototype.rl=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return[4,this.J_.stop()];case 1:return t.sent(),[4,this.G_.stop()];case 2:return t.sent(),this.x_.length>0&&(ye("RemoteStore","Stopping write stream with "+this.x_.length+" pending writes"),this.x_=[]),this.hl(),[2]}}))}))},t.prototype.Iu=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return ye("RemoteStore","RemoteStore shutting down."),this.networkEnabled=!1,[4,this.rl()];case 1:return t.sent(),this.U_.Iu(),this.K_.set("Unknown"),[2]}}))}))},t.prototype.listen=function(t){this.O_.has(t.targetId)||(this.O_.set(t.targetId,t),this.sl()?this.il():this.G_.jc()&&this.ol(t))},t.prototype.al=function(t){this.O_.delete(t),this.G_.jc()&&this.ul(t),0===this.O_.size&&(this.G_.jc()?this.G_.zc():this.W_()&&this.K_.set("Unknown"))},t.prototype.si=function(t){return this.O_.get(t)||null},t.prototype.ei=function(t){return this.cl.ei(t)},t.prototype.ol=function(t){this.B_.Ns(t.targetId),this.G_.o_(t)},t.prototype.ul=function(t){this.B_.Ns(t),this.G_.a_(t)},t.prototype.il=function(){this.B_=new se(this),this.G_.start(),this.K_.C_()},t.prototype.sl=function(){return this.W_()&&!this.G_.Wc()&&this.O_.size>0},t.prototype.W_=function(){return!this.q_&&this.isPrimary&&this.networkEnabled},t.prototype.hl=function(){this.B_=null},t.prototype.z_=function(){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(e){return this.O_.forEach((function(e,n){t.ol(e)})),[2]}))}))},t.prototype.H_=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.hl(),this.sl()?(this.K_.k_(t),this.il()):this.K_.set("Unknown"),[2]}))}))},t.prototype.Y_=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:if(this.K_.set("Online"),!(t instanceof ie&&2===t.state&&t.cause))return[3,6];i.label=1;case 1:return i.trys.push([1,3,,5]),[4,this._l(t)];case 2:return i.sent(),[3,5];case 3:return n=i.sent(),ye("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),[4,this.ll(n)];case 4:return i.sent(),[3,5];case 5:return[3,13];case 6:if(t instanceof ne?this.B_.qs(t):t instanceof re?this.B_.Hs(t):this.B_.Ws(t),e.isEqual(_.min()))return[3,13];i.label=7;case 7:return i.trys.push([7,11,,13]),[4,this.L_.Jo()];case 8:return r=i.sent(),e.S(r)>=0?[4,this.dl(e)]:[3,10];case 9:i.sent(),i.label=10;case 10:return[3,13];case 11:return ye("RemoteStore","Failed to raise snapshot:",o=i.sent()),[4,this.ll(o)];case 12:return i.sent(),[3,13];case 13:return[2]}}
8))}))},t.prototype.ll=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e=this;return i.__generator(this,(function(n){switch(n.label){case 0:if("IndexedDbTransactionError"!==t.name)throw t;return this.q_=!0,[4,this.rl()];case 1:return n.sent(),this.K_.set("Offline"),this.qr.dh((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return ye("RemoteStore","Retrying IndexedDB access"),[4,this.L_.Jo()];case 1:return t.sent(),this.q_=!1,[4,this.el()];case 2:return t.sent(),[2]}}))}))})),[2]}}))}))},t.prototype.dl=function(t){var e=this,n=this.B_.Xs(t);return n.as.forEach((function(n,r){if(n.resumeToken.rt()>0){var i=e.O_.get(r);i&&e.O_.set(r,i.we(n.resumeToken,t))}})),n.us.forEach((function(t){var n=e.O_.get(t);if(n){e.O_.set(t,n.we(I.ht,n.Ee)),e.ul(t);var r=new Nt(n.target,t,1,n.sequenceNumber);e.ol(r)}})),this.cl.Yu(n)},t.prototype._l=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:e=t.cause,n=0,r=t.targetIds,i.label=1;case 1:return n<r.length?this.O_.has(o=r[n])?[4,this.cl.fl(o,e)]:[3,3]:[3,5];case 2:i.sent(),this.O_.delete(o),this.B_.removeTarget(o),i.label=3;case 3:i.label=4;case 4:return n++,[3,1];case 5:return[2]}}
8))}))},t.prototype.nl=function(){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(e){switch(e.label){case 0:return this.Tl()?[4,this.L_.tc(this.x_.length>0?this.x_[this.x_.length-1].batchId:-1)]:[3,5];case 1:return null!==(t=e.sent())?[3,2]:(0===this.x_.length&&this.J_.zc(),[3,4]);case 2:return this.El(t),[4,this.nl()];case 3:e.sent(),e.label=4;case 4:e.label=5;case 5:return this.Il()&&this.wl(),[2]}}))}))},t.prototype.Tl=function(){return this.W_()&&this.x_.length<10},t.prototype.Rl=function(){return this.x_.length},t.prototype.El=function(t){this.x_.push(t),this.J_.jc()&&this.J_.c_&&this.J_.__(t.mutations)},t.prototype.Il=function(){return this.W_()&&!this.J_.Wc()&&this.x_.length>0},t.prototype.wl=function(){this.J_.start()},t.prototype.X_=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.J_.f_(),[2]}))}))},t.prototype.tl=function(){var t=this;return this.L_.So(this.J_.lastStreamToken).then((function(){for(var e=0,n=t.x_;e<n.length;e++)t.J_.__(n[e].mutations)})).catch(or)},t.prototype.l_=function(t,e){var n=this,r=this.x_.shift(),i=Ne.from(r,t,e,this.J_.lastStreamToken);return this.cl.ml(i).then((function(){return n.nl()}))},t.prototype.Z_=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return t&&this.x_.length>0?this.J_.c_?[4,this.Al(t)]:[3,2]:[3,5];case 1:return e.sent(),[3,4];case 2:return[4,this.Pl(t)];case 3:e.sent(),e.label=4;case 4:this.Il()&&this.wl(),e.label=5;case 5:return[2]}}
8))}))},t.prototype.Pl=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return Pt(t.code)?[2,(ye("RemoteStore","RemoteStore error before completed handshake; resetting stream token: ",this.J_.lastStreamToken),this.J_.lastStreamToken=I.ht,this.L_.So(I.ht).catch(or))]:[2]}))}))},t.prototype.Al=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r=this;return i.__generator(this,(function(i){return Pt(n=t.code)&&n!==d.ABORTED?(e=this.x_.shift(),[2,(this.J_.Gc(),this.cl.Vl(e.batchId,t).then((function(){return r.nl()})))]):[2]}))}))},t.prototype.gl=function(){return new Jr(this.w_)},t.prototype.j_=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.networkEnabled=!1,[4,this.rl()];case 1:return t.sent(),this.K_.set("Unknown"),[4,this.enableNetwork()];case 2:return t.sent(),[2]}}))}))},t.prototype.pl=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.W_()?(ye("RemoteStore","RemoteStore restarting streams for new credential"),[4,this.j_()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
8))}))},t.prototype.yl=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.isPrimary=t,t&&this.networkEnabled?[4,this.enableNetwork()]:[3,2];case 1:return e.sent(),[3,5];case 2:return t?[3,4]:[4,this.rl()];case 3:e.sent(),this.K_.set("Unknown"),e.label=4;case 4:e.label=5;case 5:return[2]}}))}))},t}();function ni(t,e){return"firestore_clients_"+t+"_"+e}function ri(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.t()&&(r+="_"+e.uid),r}function ii(t,e){return"firestore_targets_"+t+"_"+e}var oi=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.bl=function(e,n,r){var i=JSON.parse(r),o="object"==typeof i&&-1!==["pending","acknowledged","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error),s=void 0;return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(s=new f(i.error.code,i.error.message)),o?new t(e,n,i.state,s):(be("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.vl=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),si=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.bl=function(e,n){var r=JSON.parse(n),i="object"==typeof r&&-1!==["not-current","current","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error),o=void 0;return i&&r.error&&(i="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(o=new f(r.error.code,r.error.message)),i?new t(e,r.state,o):(be("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.vl=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),ai=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.bl=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Yt(),s=0;i&&s<r.activeTargetIds.length;++s)i=R(r.activeTargetIds[s]),o=o.add(r.activeTargetIds[s]);return i?new t(e,o):(be("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),ui=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.bl=function(e){var n=JSON.parse(e);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new t(n.clientId,n.onlineState):(be("SharedClientState","Failed to parse online state: "+e),null)},t}(),ci=function(){function t(){this.activeTargetIds=Yt()}return t.prototype.Sl=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.Dl=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.vl=function(){var t={activeTargetIds:this.activeTargetIds.W(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),li=function(){function t(e,n,r,i,o){if(this.Sr=e,this.platform=n,this.persistenceKey=r,this.Cl=i,this.cl=null,this.b_=null,this.gr=null,this.Fl=this.Nl.bind(this),this.kl=new jt(Te),this.Uh=!1,this.$l=[],!t.so(this.platform))throw new f(d.UNIMPLEMENTED,"LocalStorage is not available on this platform.");var s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.platform.window.localStorage,this.currentUser=o,this.Ml=ni(this.persistenceKey,this.Cl),this.Ll=function(t){return"firestore_sequence_number_"+t}(this.persistenceKey),this.kl=this.kl.me(this.Cl,new ci),this.xl=new RegExp("^firestore_clients_"+s+"_([^_]*)$"),this.Ol=new RegExp("^firestore_mutations_"+s+"_(\\d+)(?:_(.*))?$"),this.Bl=new RegExp("^firestore_targets_"+s+"_(\\d+)$"),this.ql=function(t){return"firestore_online_state_"+t}(this.persistenceKey),this.platform.window.addEventListener("storage",this.Fl)}return t.so=function(t){return!(!t.window||null==t.window.localStorage)},t.prototype.start=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e,n,r,o,s,a,u,c,l,h=this;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.cl.Pu()];case 1:for(t=i.sent(),e=0,n=t;e<n.length;e++)(r=n[e])!==this.Cl&&(o=this.getItem(ni(this.persistenceKey,r)))&&(s=ai.bl(r,o))&&(this.kl=this.kl.me(s.clientId,s));for(this.Ul(),(a=this.storage.getItem(this.ql))&&(u=this.Ql(a))&&this.Wl(u),c=0,l=this.$l;c<l.length;c++)this.Nl(l[c]);return this.$l=[],this.platform.window.addEventListener("unload",(function(){return h.Iu()})),this.Uh=!0,[2]}}))}))},t.prototype.br=function(t){this.setItem(this.Ll,JSON.stringify(t))},t.prototype.jl=function(){return this.Kl(this.kl)},t.prototype.Gl=function(t){var e=!1;return this.kl.forEach((function(n,r){r.activeTargetIds.has(t)&&(e=!0)})),e},t.prototype.zl=function(t){this.Hl(t,"pending")},t.prototype.Yl=function(t,e,n){this.Hl(t,e,n),this.Jl(t)},t.prototype.Xl=function(t){var e="not-current";if(this.Gl(t)){var n=this.storage.getItem(ii(this.persistenceKey,t));if(n){var r=si.bl(t,n);r&&(e=r.state)}}return this.Zl.Sl(t),this.Ul(),e},t.prototype.td=function(t){this.Zl.Dl(t),this.Ul()},t.prototype.ed=function(t){return this.Zl.activeTargetIds.has(t)},t.prototype.sd=function(t){this.removeItem(ii(this.persistenceKey,t))},t.prototype.nd=function(t,e,n){this.rd(t,e,n)},t.prototype.Qu=function(t,e,n){var r=this;e.forEach((function(t){r.Jl(t)}
8)),this.currentUser=t,n.forEach((function(t){r.zl(t)}))},t.prototype.hd=function(t){this.od(t)},t.prototype.Iu=function(){this.Uh&&(this.platform.window.removeEventListener("storage",this.Fl),this.removeItem(this.Ml),this.Uh=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return ye("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){ye("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){ye("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.Nl=function(t){var e=this;if(t.storageArea===this.storage){if(ye("SharedClientState","EVENT",t.key,t.newValue),t.key===this.Ml)return void be("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Sr.dh((function(){return i.__awaiter(e,void 0,void 0,(function(){var e,n,r,o,s,a;return i.__generator(this,(function(i){if(this.Uh){if(null!==t.key)if(this.xl.test(t.key)){if(null==t.newValue)return e=this.ad(t.key),[2,this.ud(e,null)];if(n=this._d(t.key,t.newValue))return[2,this.ud(n.clientId,n)]}else if(this.Ol.test(t.key)){if(null!==t.newValue&&(r=this.ld(t.key,t.newValue)))return[2,this.dd(r)]}else if(this.Bl.test(t.key)){if(null!==t.newValue&&(o=this.fd(t.key,t.newValue)))return[2,this.Td(o)]}else if(t.key===this.ql){if(null!==t.newValue&&(s=this.Ql(t.newValue)))return[2,this.Wl(s)]}else t.key===this.Ll&&(a=function(t){var e=Ue.vr;if(null!=t)try{var n=JSON.parse(t);we("number"==typeof n),e=n}catch(t){be("SharedClientState","Failed to read sequence number from WebStorage",t)}return e}(t.newValue))!==Ue.vr&&this.gr(a)}else this.$l.push(t);return[2]}))}))}))}},Object.defineProperty(t.prototype,"Zl",{get:function(){return this.kl.get(this.Cl)},enumerable:!0,configurable:!0}),t.prototype.Ul=function(){this.setItem(this.Ml,this.Zl.vl())},t.prototype.Hl=function(t,e,n){var r=new oi(this.currentUser,t,e,n),i=ri(this.persistenceKey,this.currentUser,t);this.setItem(i,r.vl())},t.prototype.Jl=function(t){var e=ri(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.od=function(t){this.storage.setItem(this.ql,JSON.stringify({clientId:this.Cl,onlineState:t}))},t.prototype.rd=function(t,e,n){var r=ii(this.persistenceKey,t),i=new si(t,e,n);this.setItem(r,i.vl())},t.prototype.ad=function(t){var e=this.xl.exec(t);return e?e[1]:null},t.prototype._d=function(t,e){var n=this.ad(t);return ai.bl(n,e)},t.prototype.ld=function(t,e){var n=this.Ol.exec(t),r=Number(n[1]);return oi.bl(new h(void 0!==n[2]?n[2]:null),r,e)},t.prototype.fd=function(t,e){var n=this.Bl.exec(t),r=Number(n[1]);return si.bl(r,e)},t.prototype.Ql=function(t){return ui.bl(t)},t.prototype.dd=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return t.user.uid===this.currentUser.uid?[2,this.cl.Ed(t.batchId,t.state,t.error)]:(ye("SharedClientState","Ignoring mutation for non-active user "+t.user.uid),[2])}))}))},t.prototype.Td=function(t){return this.cl.Id(t.targetId,t.state,t.error)},t.prototype.ud=function(t,e){var n=this,r=e?this.kl.me(t,e):this.kl.remove(t),i=this.Kl(this.kl),o=this.Kl(r),s=[],a=[];return o.forEach((function(t){i.has(t)||s.push(t)})),i.forEach((function(t){o.has(t)||a.push(t)})),this.cl.wd(s,a).then((function(){n.kl=r}))},t.prototype.Wl=function(t){this.kl.get(t.clientId)&&this.b_(t.onlineState)},t.prototype.Kl=function(t){var e=Yt();return t.forEach((function(t,n){e=e.He(n.activeTargetIds)})),e},t}(),hi=function(){function t(){this.Rd=new ci,this.md={},this.cl=null,this.b_=null,this.gr=null}return t.prototype.zl=function(t){},t.prototype.Yl=function(t,e,n){},t.prototype.Xl=function(t){return this.Rd.Sl(t),this.md[t]||"not-current"},t.prototype.nd=function(t,e,n){this.md[t]=e},t.prototype.td=function(t){this.Rd.Dl(t)},t.prototype.ed=function(t){return this.Rd.activeTargetIds.has(t)},t.prototype.sd=function(t){delete this.md[t]},t.prototype.jl=function(){return this.Rd.activeTargetIds},t.prototype.Gl=function(t){return this.Rd.activeTargetIds.has(t)},t.prototype.start=function(){return this.Rd=new ci,Promise.resolve()},t.prototype.Qu=function(t,e,n){},t.prototype.hd=function(t){},t.prototype.Iu=function(){},t.prototype.br=function(t){},t}(),di=function(t){this.key=t},fi=function(t){this.key=t},pi=function(){function t(t,e){this.query=t,this.Ad=e,this.Pd=null,this.fs=!1,this.Vd=Qt(),this.ns=Qt(),this.gd=new Zt(t.se.bind(t))}return Object.defineProperty(t.prototype,"pd",{get:function(){return this.Ad},enumerable:!0,configurable:!0}),t.prototype.yd=function(t,e){var n=this,r=e?e.bd:new Xt,i=e?e.gd:this.gd,o=e?e.ns:this.ns,s=i,a=!1,u=this.query.oe()&&i.size===this.query.limit?i.last(
8):null,c=this.query.ae()&&i.size===this.query.limit?i.first():null;if(t.pe((function(t,e){var l=i.get(t),h=e instanceof bt?e:null;h&&(h=n.query.matches(h)?h:null);var d=!!l&&n.ns.has(l.key),f=!!h&&(h.At||n.ns.has(h.key)&&h.hasCommittedMutations),p=!1;l&&h?l.data().isEqual(h.data())?d!==f&&(r.track({type:3,doc:h}),p=!0):n.vd(l,h)||(r.track({type:2,doc:h}),p=!0,(u&&n.query.se(h,u)>0||c&&n.query.se(h,c)<0)&&(a=!0)):!l&&h?(r.track({type:0,doc:h}),p=!0):l&&!h&&(r.track({type:1,doc:l}),p=!0,(u||c)&&(a=!0)),p&&(h?(s=s.add(h),o=f?o.add(t):o.delete(t)):(s=s.delete(t),o=o.delete(t)))})),this.query.oe()||this.query.ae())for(;s.size>this.query.limit;){var l=this.query.oe()?s.last():s.first();s=s.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{gd:s,bd:r,Sd:a,ns:o}},t.prototype.vd=function(t,e){return t.At&&e.hasCommittedMutations&&!e.At},t.prototype.Zn=function(t,e,n){var r=this,i=this.gd;this.gd=t.gd,this.ns=t.ns;var o=t.bd.es();o.sort((function(t,e){return function(t,e){var n=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return _e()}};return n(t)-n(e)}(t.type,e.type)||r.query.se(t.doc,e.doc)})),this.Dd(n);var s=e?this.Cd():[],a=0===this.Vd.size&&this.fs?1:0,u=a!==this.Pd;return this.Pd=a,0!==o.length||u?{snapshot:new Jt(this.query,t.gd,i,o,t.ns,0===a,u,!1),Fd:s}:{Fd:s}},t.prototype.Nd=function(t){return this.fs&&"Offline"===t?(this.fs=!1,this.Zn({gd:this.gd,bd:new Xt,ns:this.ns,Sd:!1},!1)):{Fd:[]}},t.prototype.kd=function(t){return!this.Ad.has(t)&&!!this.gd.has(t)&&!this.gd.get(t).At},t.prototype.Dd=function(t){var e=this;t&&(t.Ts.forEach((function(t){return e.Ad=e.Ad.add(t)})),t.Es.forEach((function(t){})),t.Is.forEach((function(t){return e.Ad=e.Ad.delete(t)})),this.fs=t.fs)},t.prototype.Cd=function(){var t=this;if(!this.fs)return[];var e=this.Vd;this.Vd=Qt(),this.gd.forEach((function(e){t.kd(e.key)&&(t.Vd=t.Vd.add(e.key))}));var n=[];return e.forEach((function(e){t.Vd.has(e)||n.push(new fi(e))})),this.Vd.forEach((function(t){e.has(t)||n.push(new di(t))})),n},t.prototype.$d=function(t){this.Ad=t.rc,this.Vd=Qt();var e=this.yd(t.documents);return this.Zn(e,!0)},t.prototype.Md=function(){return Jt.os(this.query,this.gd,this.ns,0===this.Pd)},t}(),mi=function(){function t(t,e,n,r){this.qr=t,this.Ld=e,this.updateFunction=n,this.Wr=r,this.xd=5,this.ih=new qe(this.qr,"transaction_retry")}return t.prototype.Od=function(){this.Bd()},t.prototype.Bd=function(){var t=this;this.ih.xr((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,e,n=this;return i.__generator(this,(function(r){return t=this.Ld.gl(),(e=this.qd(t))&&e.then((function(e){n.qr.Hr((function(){return t.commit().then((function(){n.Wr.resolve(e)})).catch((function(t){n.Ud(t)}))}))})).catch((function(t){n.Ud(t)})),[2]}))}))}))},t.prototype.qd=function(t){try{var e=this.updateFunction(t);return!A(e)&&e.catch&&e.then?e:(this.Wr.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.Wr.reject(t),null}},t.prototype.Ud=function(t){var e=this;this.xd>0&&this.Qd(t)?(this.xd-=1,this.qr.Hr((function(){return e.Bd(),Promise.resolve()}))):this.Wr.reject(t)},t.prototype.Qd=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!Pt(e)}return!1},t}(),gi=function(t,e,n){this.query=t,this.targetId=e,this.view=n},yi=function(t){this.key=t,this.Wd=!1},bi=function(){function t(t,e,n,r,i){this.L_=t,this.Ld=e,this.jd=n,this.currentUser=r,this.Kd=i,this.Gd=null,this.zd=new Ie((function(t){return t.canonicalId()})),this.Hd=new Map,this.Yd=[],this.Jd=new jt(x.N),this.Xd=new Map,this.Zd=new Re,this.tf={},this.ef=new Map,this.sf=gn.Go(),this.onlineState="Unknown"}return Object.defineProperty(t.prototype,"if",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.subscribe=function(t){this.Gd=t},t.prototype.listen=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:return this.nf("listen()"),(n=this.zd.get(t))?(this.jd.Xl(n.targetId),e=n.view.Md(),[3,4]):[3,1];case 1:return[4,this.L_.sc(t.ee())];case 2:return r=i.sent(),o=this.jd.Xl(r.targetId),[4,this.rf(t,r.targetId,"current"===o)];case 3:e=i.sent(),this.if&&this.Ld.listen(r),i.label=4;case 4:return[2,e]}}))}))},t.prototype.rf=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,s,a,u,c;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.L_.nc(t,!0)];case 1:return r=i.sent(),o=new pi(t,r.rc),s=o.yd(r.documents),a=ee.ds(e,n&&"Offline"!==this.onlineState),u=o.Zn(s,this.if,a),this.hf(e,u.Fd),c=new gi(t,e,o),[2,(this.zd.set(t,c),this.Hd.has(e)?this.Hd.get(e).push(t):this.Hd.set(e,[t]),u.snapshot)]}}))}))},t.prototype.al=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.nf("unlisten()"),e=this.zd.get(t),(n=this.Hd.get(e.targetId)).length>1?[2,(this.Hd.set(e.targetId,n.filter((function(e){return!e.isEqual(t)}))),void this.zd.delete(t))]:this.if?(this.jd.td(e.targetId),this.jd.Gl(e.targetId)?[3,2]:[4,this.L_.ic(e.targetId,!1).then((function(){r.jd.sd(e.targetId),r.Ld.al(e.targetId),r.af(e.targetId)})).catch(or)]):[3,3];case 1:i.sent(),i.label=2;case 2:return[3,5];case 3:return this.af(e.targetId),[4,this.L_.ic(e.targetId,!0)];case 4:i.sent(),i.label=5;case 5:return[2]}}
8))}))},t.prototype.write=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r;return i.__generator(this,(function(i){switch(i.label){case 0:this.nf("write()"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.L_.Gu(t)];case 2:return n=i.sent(),[3,4];case 3:if("IndexedDbTransactionError"===(r=i.sent()).name)return[2,(be("SyncEngine","Dropping write that cannot be persisted: "+r),void e.reject(new f(d.UNAVAILABLE,"Failed to persist write: "+r)))];throw r;case 4:return this.jd.zl(n.batchId),this.uf(n.batchId,e),[4,this.cf(n.Wn)];case 5:return i.sent(),[4,this.Ld.nl()];case 6:return i.sent(),[2]}}))}))},t.prototype.runTransaction=function(t,e,n){new mi(t,this.Ld,e,n).Od()},t.prototype.Yu=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:this.nf("applyRemoteEvent()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.L_.Yu(t)];case 2:return e=r.sent(),t.as.forEach((function(t,e){var r=n.Xd.get(e);r&&(we(t.Ts.size+t.Es.size+t.Is.size<=1),t.Ts.size>0?r.Wd=!0:t.Es.size>0?we(r.Wd):t.Is.size>0&&(we(r.Wd),r.Wd=!1))})),[4,this.cf(e,t)];case 3:return r.sent(),[3,6];case 4:return[4,or(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}
8))}))},t.prototype.Nd=function(t,e){this.nf("applyOnlineStateChange()");var n=[];this.zd.forEach((function(e,r){var i=r.view.Nd(t);i.snapshot&&n.push(i.snapshot)})),this.Gd._f(t),this.Gd.h_(n),this.onlineState=t},t.prototype.fl=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,s,a,u=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.nf("rejectListens()"),this.jd.nd(t,"rejected",e),n=this.Xd.get(t),(r=n&&n.key)?(this.Jd=this.Jd.remove(r),this.Xd.delete(t),this.lf(),o=(o=new jt(x.N)).me(r,new vt(r,_.min())),s=Qt().add(r),a=new te(_.min(),new Map,new Ft(Te),o,s),[2,this.Yu(a)]):[4,this.L_.ic(t,!1).then((function(){return u.af(t,e)})).catch(or)];case 1:return i.sent(),[2]}}))}))},t.prototype.ml=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){switch(r.label){case 0:this.nf("applySuccessfulWrite()"),this.df(e=t.batch.batchId,null),this.ff(e),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.L_.yo(t)];case 2:return n=r.sent(),this.jd.Yl(e,"acknowledged"),[4,this.cf(n)];case 3:return r.sent(),[3,6];case 4:return[4,or(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}
8))}))},t.prototype.Vl=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:this.nf("rejectFailedWrite()"),this.df(t,e),this.ff(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.L_.Hu(t)];case 2:return n=r.sent(),this.jd.Yl(t,"rejected",e),[4,this.cf(n)];case 3:return r.sent(),[3,6];case 4:return[4,or(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},t.prototype.Tf=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){switch(r.label){case 0:return this.Ld.W_()||ye("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),[4,this.L_.Lo()];case 1:return-1===(e=r.sent())?[2,void t.resolve()]:((n=this.ef.get(e)||[]).push(t),this.ef.set(e,n),[2])}}))}))},t.prototype.ff=function(t){(this.ef.get(t)||[]).forEach((function(t){t.resolve()})),this.ef.delete(t)},t.prototype.Ef=function(t){this.ef.forEach((function(e){e.forEach((function(e){e.reject(new f(d.CANCELLED,t))}))})),this.ef.clear()},t.prototype.uf=function(t,e){var n=this.tf[this.currentUser.s()];n||(n=new jt(Te)),n=n.me(t,e),this.tf[this.currentUser.s()]=n},t.prototype.df=function(t,e){var n=this.tf[this.currentUser.s()];if(n){var r=n.get(t);r&&(e?r.reject(e):r.resolve(),n=n.remove(t)),this.tf[this.currentUser.s()]=n}},t.prototype.af=function(t,e){var n=this;void 0===e&&(e=null),this.jd.td(t);for(var r=0,i=this.Hd.get(t);r<i.length;r++){var o=i[r];this.zd.delete(o),e&&this.Gd.If(o,e)}if(this.Hd.delete(t),this.if){var s=this.Zd.Cn(t);this.Zd.Sn(t),s.forEach((function(t){n.Zd.Fn(t)||n.wf(t)}))}},t.prototype.wf=function(t){var e=this.Jd.get(t);null!==e&&(this.Ld.al(e),this.Jd=this.Jd.remove(t),this.Xd.delete(e),this.lf())},t.prototype.hf=function(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];i instanceof di?(this.Zd.gn(i.key,t),this.Rf(i)):i instanceof fi?(ye("SyncEngine","Document no longer in limbo: "+i.key),this.Zd.yn(i.key,t),this.Zd.Fn(i.key)||this.wf(i.key)):_e()}},t.prototype.Rf=function(t){var e=t.key;this.Jd.get(e)||(ye("SyncEngine","New document in limbo: "+e),this.Yd.push(e),this.lf())},t.prototype.lf=function(){for(;this.Yd.length>0&&this.Jd.size<this.Kd;){var t=this.Yd.shift(),e=this.sf.next();this.Xd.set(e,new yi(t)),this.Jd=this.Jd.me(t,e),this.Ld.listen(new Nt(Et.Wt(t.path).ee(),e,2,Ue.vr))}},t.prototype.mf=function(){return this.Jd},t.prototype.Af=function(){return this.Yd},t.prototype.cf=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,s=this;return i.__generator(this,(function(i){switch(i.label){case 0:return n=[],r=[],o=[],this.zd.forEach((function(i,a){o.push(Promise.resolve().then((function(){var e=a.view.yd(t);return e.Sd?s.L_.nc(a.query,!1).then((function(t){return a.view.yd(t.documents,e)})):e})).then((function(t){var i=e&&e.as.get(a.targetId),o=a.view.Zn(t,s.if,i);if(s.hf(a.targetId,o.Fd),o.snapshot){s.if&&s.jd.nd(a.targetId,o.snapshot.fromCache?"not-current":"current"),n.push(o.snapshot);var u=Ve.Vr(a.targetId,o.snapshot);r.push(u)}})))})),[4,Promise.all(o)];case 1:return i.sent(),this.Gd.h_(n),[4,this.L_.Zu(r)];case 2:return i.sent(),[2]}}))}))},t.prototype.nf=function(t){},t.prototype.pl=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){switch(r.label){case 0:return e=!this.currentUser.isEqual(t),this.currentUser=t,e?(this.Ef("'waitForPendingWrites' promise is rejected due to a user change."),[4,this.L_.Qu(t)]):[3,3];case 1:return n=r.sent(),this.jd.Qu(t,n.ju,n.Ku),[4,this.cf(n.Wu)];case 2:r.sent(),r.label=3;case 3:return[4,this.Ld.pl()];case 4:return r.sent(),[2]}}))}))},t.prototype.enableNetwork=function(){return this.Ld.enableNetwork()},t.prototype.disableNetwork=function(){return this.Ld.disableNetwork()},t.prototype.ei=function(t){var e=this.Xd.get(t);if(e&&e.Wd)return Qt().add(e.key);var n=Qt(),r=this.Hd.get(t);if(!r)return n;for(var i=0,o=r;i<o.length;i++){var s=this.zd.get(o[i]);n=n.He(s.view.pd)}return n},t}(),vi=function(t){function e(e,n,r,i,o){var s=this;return(s=t.call(this,e,n,r,i,o)||this).L_=e,s.isPrimary=void 0,s}return i.__extends(e,t),Object.defineProperty(e.prototype,"if",{get:function(){return!0===this.isPrimary},enumerable:!0,configurable:!0}),e.prototype.enableNetwork=function(){return this.L_.ru(!0),t.prototype.enableNetwork.c
8all(this)},e.prototype.disableNetwork=function(){return this.L_.ru(!1),t.prototype.disableNetwork.call(this)},e.prototype.Pf=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,this.L_.nc(t.query,!0)];case 1:return e=r.sent(),n=t.view.$d(e),[2,(this.isPrimary&&this.hf(t.targetId,n.Fd),n)]}}))}))},e.prototype.Nd=function(e,n){this.if&&0===n&&(t.prototype.Nd.call(this,e,n),this.jd.hd(e)),this.if||1!==n||t.prototype.Nd.call(this,e,n)},e.prototype.Ed=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r;return i.__generator(this,(function(i){switch(i.label){case 0:return this.nf("applyBatchState()"),[4,this.L_.ac(t)];case 1:return null===(r=i.sent())?[3,6]:"pending"!==e?[3,3]:[4,this.Ld.nl()];case 2:return i.sent(),[3,4];case 3:"acknowledged"===e||"rejected"===e?(this.df(t,n||null),this.L_.uc(t)):_e(),i.label=4;case 4:return[4,this.cf(r)];case 5:return i.sent(),[3,7];case 6:ye("SyncEngine","Cannot apply mutation batch with id: "+t),i.label=7;case 7:return[2]}}
8))}))},e.prototype.yl=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,s,a,u=this;return i.__generator(this,(function(i){switch(i.label){case 0:return!0!==t||!0===this.isPrimary?[3,3]:(this.isPrimary=!0,[4,this.Ld.yl(!0)]);case 1:return i.sent(),e=this.jd.jl(),[4,this.Vf(e.W())];case 2:for(n=i.sent(),r=0,o=n;r<o.length;r++)this.Ld.listen(o[r]);return[3,7];case 3:return!1!==t||!1===this.isPrimary?[3,7]:(this.isPrimary=!1,s=[],a=Promise.resolve(),this.Hd.forEach((function(t,e){u.jd.ed(e)?s.push(e):a=a.then((function(){return u.af(e),u.L_.ic(e,!0)})),u.Ld.al(e)})),[4,a]);case 4:return i.sent(),[4,this.Vf(s)];case 5:return i.sent(),this.gf(),[4,this.Ld.yl(!1)];case 6:i.sent(),i.label=7;case 7:return[2]}}))}))},e.prototype.gf=function(){var t=this;this.Xd.forEach((function(e,n){t.Ld.al(n)})),this.Zd.Dn(),this.Xd=new Map,this.Jd=new jt(x.N)},e.prototype.Vf=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,s,a,u,c,l,h,d,f;return i.__generator(this,(function(i){switch(i.label){case 0:e=[],n=[],r=0,o=t,i.label=1;case 1:return r<o.length?(a=void 0,(u=this.Hd.get(s=o[r]))&&0!==u.length?[4,this.L_.ic(s,!0)]:[3,8]):[3,14];case 2:return i.sent(),[4,this.L_.sc(u[0].ee())];case 3:a=i.sent(),c=0,l=u,i.label=4;case 4:return c<l.length?(h=this.zd.get(l[c]),[4,this.Pf(h)]):[3,7];case 5:(d=i.sent()).snapshot&&n.push(d.snapshot),i.label=6;case 6:return c++,[3,4];case 7:return[3,12];case 8:return[4,this.L_.cc(s)];case 9:return f=i.sent(),[4,this.L_.sc(f)];case 10:return a=i.sent(),[4,this.rf(this.pf(f),s,!1)];case 11:i.sent(),i.label=12;case 12:e.push(a),i.label=13;case 13:return r++,[3,1];case 14:return[2,(this.Gd.h_(n),e)]}}))}))},e.prototype.pf=function(t){return new Et(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)},e.prototype.Pu=function(){return this.L_.Pu()},e.prototype.Id=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o;return i.__generator(this,(function(i){switch(i.label){case 0:return this.isPrimary?(ye("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!this.Hd.has(t))return[3,8];switch(e){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,this.L_.Va()];case 3:return r=i.sent(),o=te.ls(t,"current"===e),[4,this.cf(r,o)];case 4:return i.sent(),[3,8];case 5:return[4,this.L_.ic(t,!0)];case 6:return i.sent(),this.af(t,n),[3,8];case 7:_e(),i.label=8;case 8:return[2]}}
8))}))},e.prototype.wd=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,s,a,u,c,l,h,d=this;return i.__generator(this,(function(f){switch(f.label){case 0:if(!this.isPrimary)return[3,10];n=0,r=t,f.label=1;case 1:return n<r.length?this.Hd.has(o=r[n])?(ye("SyncEngine","Adding an already active target "+o),[3,5]):[4,this.L_.cc(o)]:[3,6];case 2:return s=f.sent(),[4,this.L_.sc(s)];case 3:return a=f.sent(),[4,this.rf(this.pf(s),a.targetId,!1)];case 4:f.sent(),this.Ld.listen(a),f.label=5;case 5:return n++,[3,1];case 6:u=function(t){return i.__generator(this,(function(e){switch(e.label){case 0:return c.Hd.has(t)?[4,c.L_.ic(t,!1).then((function(){d.Ld.al(t),d.af(t)})).catch(or)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))},c=this,l=0,h=e,f.label=7;case 7:return l<h.length?[5,u(h[l])]:[3,10];case 8:f.sent(),f.label=9;case 9:return l++,[3,7];case 10:return[2]}}))}))},e}(bi),_i=function(){this.yf=void 0,this.bf=[]},wi=function(){function t(t){this.cl=t,this.vf=new Ie((function(t){return t.canonicalId()})),this.onlineState="Unknown",this.Sf=new Set,this.cl.subscribe(this)}return t.prototype.listen=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,s,a;return i.__generator(this,(function(i){switch(i.label){case 0:if(n=!1,(r=this.vf.get(e=t.query))||(n=!0,r=new _i),!n)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),o=r,[4,this.cl.listen(e)];case 2:return o.yf=i.sent(),[3,4];case 3:if(s=i.sent(),be("EventManager",a="Initialization of query '"+e+"' failed: "+s),"IndexedDbTransactionError"!==s.name)throw s;return[2,void t.onError(new f(d.UNAVAILABLE,a))];case 4:return this.vf.set(e,r),r.bf.push(t),t.Nd(this.onlineState),r.yf&&t.Df(r.yf)&&this.Cf(),[2]}}))}))},t.prototype.al=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){return n=!1,(r=this.vf.get(e=t.query))&&(o=r.bf.indexOf(t))>=0&&(r.bf.splice(o,1),n=0===r.bf.length),n?[2,(this.vf.delete(e),this.cl.al(e))]:[2]}))}))},t.prototype.h_=function(t){for(var e=!1,n=0,r=t;n<r.length;n++){var i=r[n],o=this.vf.get(i.query);if(o){for(var s=0,a=o.bf;s<a.length;s++)a[s].Df(i)&&(e=!0);o.yf=i}}e&&this.Cf()},t.prototype.If=function(t,e){var n=this.vf.get(t);if(n)for(var r=0,i=n.bf;r<i.length;r++)i[r].onError(e);this.vf.delete(t)},t.prototype._f=function(t){this.onlineState=t;var e=!1;this.vf.forEach((function(n,r){for(var i=0,o=r.bf;i<o.length;i++)o[i].Nd(t)&&(e=!0)})),e&&this.Cf()},t.prototype.Ff=function(t){this.Sf.add(t),t.next()},t.prototype.Nf=function(t){this.Sf.delete(t)},t.prototype.Cf=function(){this.Sf.forEach((function(t){t.next()}))},t}(),Ei=function(){function t(t,e,n){this.query=t,this.kf=e,this.$f=!1,this.Mf=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.Df=function(t){if(!this.options.includeMetadataChanges){for(var e=[],n=0,r=t.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&e.push(i)}t=new Jt(t.query,t.docs,t.ss,e,t.ns,t.fromCache,t.rs,!0)}var o=!1;return this.$f?this.Lf(t)&&(this.kf.next(t),o=!0):this.xf(t,this.onlineState)&&(this.Of(t),o=!0),this.Mf=t,o},t.prototype.onError=function(t){this.kf.error(t)},t.prototype.Nd=function(t){this.onlineState=t;var e=!1;return this.Mf&&!this.$f&&this.xf(this.Mf,t)&&(this.Of(this.Mf),e=!0),e},t.prototype.xf=function(t,e){return!t.fromCache||!(this.options.Bf&&"Offline"!==e||t.docs.B()&&"Offline"!==e)},t.prototype.Lf=function(t){return t.docChanges.length>0||!!(t.rs||this.Mf&&this.Mf.hasPendingWrites!==t.hasPendingWrites)&&!0===this.options.includeMetadataChanges},t.prototype.Of=function(t){t=Jt.os(t.query,t.docs,t.ns,t.fromCache),this.$f=!0,this.kf.next(t)},t}(),Si=function(){function t(){}return t.prototype.Uu=function(t){this.qf=t},t.prototype.dr=function(t,e,n,r){var i=this;return e.te()||n.isEqual(_.min())?this.Uf(t,e):this.qf.cr(t,r).next((function(o){var a=i.Qf(e,o);return(e.oe()||e.ae())&&i.Sd(e.Bt,a,r,n)?i.Uf(t,e):(me()<=s.LogLevel.DEBUG&&ye("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),e.toString()),i.qf.dr(t,e,n).next((function(t){return a.forEach((function(e){t=t.me(e.key,e)})),t})))}))},t.prototype.Qf=function(t,e){var n=new Ft((function(e,n){return t.se(e,n)}));return e.forEach((function(e,r){r instanceof bt&&t.matches(r)&&(n=n.add(r))})),n},t.prototype.Sd=function(t,e,n,r){if(n.size!==e.size)return!0;var i="F"===t?e.last():e.first();return!!i&&(i.hasPendingWrites||i.version.S(r)>0)},t.prototype.Uf=function(t,e){return me()<=s.LogLevel.DEBUG&&ye("IndexFreeQueryEngine","Using full collection scan to execute query: %s",e.toString()),this.qf.dr(t,e,_.min())},t}(),Ti=function(){function t(t,e){this.rr=t,this.Ao=e,this.nr=[],this.Wf=1,this.lastStreamToken=I.ht,this.jf=new Ft(Pe.An)}return t.prototype.po=function(t){return De.resolve(0===this.nr.length)},t.prototype.yo=function(t,e,n){return we(0===this.Kf(e.batchId,"acknowledged")),this.lastStreamToken=n,De.resolve()},t.prototype.vo=function(t){return De.resolve(this.lastStreamToken)},t.prototype.So=function(t,e){return this.lastStreamToken=e,De.resolve()},t.prototype.Do=function(t,e,n,r){var i=this.Wf;this.Wf++;var o=new Ae(i,e,n,r);this.nr.push(o);for(var s=0,a=r;s<a.length;s++){var u=a[s];
8this.jf=this.jf.add(new Pe(u.key,i)),this.rr.Fo(t,u.key.path.M())}return De.resolve(o)},t.prototype.No=function(t,e){return De.resolve(this.Gf(e))},t.prototype.Mo=function(t,e){var n=this.zf(e+1),r=n<0?0:n;return De.resolve(this.nr.length>r?this.nr[r]:null)},t.prototype.Lo=function(){return De.resolve(0===this.nr.length?-1:this.Wf-1)},t.prototype.xo=function(t){return De.resolve(this.nr.slice())},t.prototype.or=function(t,e){var n=this,r=new Pe(e,0),i=new Pe(e,Number.POSITIVE_INFINITY),o=[];return this.jf.Ke([r,i],(function(t){var e=n.Gf(t.Nn);o.push(e)})),De.resolve(o)},t.prototype.lr=function(t,e){var n=this,r=new Ft(Te);return e.forEach((function(t){var e=new Pe(t,0),i=new Pe(t,Number.POSITIVE_INFINITY);n.jf.Ke([e,i],(function(t){r=r.add(t.Nn)}))})),De.resolve(this.Hf(r))},t.prototype.Rr=function(t,e){var n=e.path,r=n.length+1,i=n;x.et(i)||(i=i.child(""));var o=new Pe(new x(i),0),s=new Ft(Te);return this.jf.Ge((function(t){var e=t.key.path;return!!n.q(e)&&(e.length===r&&(s=s.add(t.Nn)),!0)}),o),De.resolve(this.Hf(s))},t.prototype.Hf=function(t){var e=this,n=[];return t.forEach((function(t){var r=e.Gf(t);null!==r&&n.push(r)})),n},t.prototype.Bo=function(t,e){var n=this;we(0===this.Kf(e.batchId,"removed")),this.nr.shift();var r=this.jf;return De.forEach(e.mutations,(function(i){var o=new Pe(i.key,e.batchId);return r=r.delete(o),n.Ao.Qo(t,i.key)})).next((function(){n.jf=r}))},t.prototype.Uo=function(t){},t.prototype.Fn=function(t,e){var n=new Pe(e,0),r=this.jf.ze(n);return De.resolve(e.isEqual(r&&r.key))},t.prototype.Wo=function(t){return De.resolve()},t.prototype.Kf=function(t,e){return this.zf(t)},t.prototype.zf=function(t){return 0===this.nr.length?0:t-this.nr[0].batchId},t.prototype.Gf=function(t){var e=this.zf(t);return e<0||e>=this.nr.length?null:this.nr[e]},t}(),xi=function(){function t(t,e){this.rr=t,this.Yf=e,this.docs=new jt(x.N),this.size=0}return t.prototype.Gn=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,s=this.Yf(e);return this.docs=this.docs.me(r,{Ea:e,size:s,readTime:n}),this.size+=s-o,this.rr.Fo(t,r.path.M())},t.prototype.Hn=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.Yn=function(t,e){var n=this.docs.get(e);return De.resolve(n?n.Ea:null)},t.prototype.getEntries=function(t,e){var n=this,r=qt();return e.forEach((function(t){var e=n.docs.get(t);r=r.me(t,e?e.Ea:null)})),De.resolve(r)},t.prototype.dr=function(t,e,n){for(var r=Gt(),i=new x(e.path.child("")),o=this.docs.ve(i);o.ke();){var s=o.Ne(),a=s.value,u=a.Ea,c=a.readTime;if(!e.path.q(s.key.path))break;c.S(n)<=0||u instanceof bt&&e.matches(u)&&(r=r.me(u.key,u))}return De.resolve(r)},t.prototype.Jf=function(t,e){return De.forEach(this.docs,(function(t){return e(t)}))},t.prototype.ba=function(e){return new t.va(this)},t.prototype.Da=function(t){return De.resolve(this.size)},t}();xi.va=function(t){function e(e){var n=this;return(n=t.call(this)||this).Ca=e,n}return i.__extends(e,t),e.prototype.Zn=function(t){var e=this,n=[];return this.Wn.forEach((function(r,i){i?n.push(e.Ca.Gn(t,i,e.readTime)):e.Ca.Hn(r)})),De.Un(n)},e.prototype.Jn=function(t,e){return this.Ca.Yn(t,e)},e.prototype.Xn=function(t,e){return this.Ca.getEntries(t,e)},e}(je);var Ci=function(){function t(t){this.persistence=t,this.Xf=new Ie((function(t){return t.canonicalId()})),this.lastRemoteSnapshotVersion=_.min(),this.highestTargetId=0,this.Zf=0,this.tT=new Re,this.targetCount=0,this.eT=gn.Ko()}return t.prototype.js=function(t,e){return this.Xf.forEach((function(t,n){return e(n)})),De.resolve()},t.prototype.Jo=function(t){return De.resolve(this.lastRemoteSnapshotVersion)},t.prototype.Xo=function(t){return De.resolve(this.Zf)},t.prototype.zo=function(t){return this.highestTargetId=this.eT.next(),De.resolve(this.highestTargetId)},t.prototype.Zo=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.Zf&&(this.Zf=e),De.resolve()},t.prototype.ea=function(t){this.Xf.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.eT=new gn(e),this.highestTargetId=e),t.sequenceNumber>this.Zf&&(this.Zf=t.sequenceNumber)},t.prototype.ta=function(t,e){return this.ea(e),this.targetCount+=1,De.resolve()},t.prototype.ia=function(t,e){return this.ea(e),De.resolve()},t.prototype.na=function(t,e){return this.Xf.delete(e.target),this.tT.Sn(e.targetId),this.targetCount-=1,De.resolve()},t.prototype.Hh=function(t,e,n){var r=this,i=0,o=[];return this.Xf.forEach((function(s,a){a.sequenceNumber<=e&&null===n.get(a.targetId)&&(r.Xf.delete(s),o.push(r.ra(t,a.targetId)),i++)})),De.Un(o).next((function(){return i}))},t.prototype.aa=function(t){return De.resolve(this.targetCount)},t.prototype.ua=function(t,e){var n=this.Xf.get(e)||null;return De.resolve(n)},t.prototype.ca=function(t,e,n){this.tT.pn(e,n);var r=this.persistence.Ao,i=[];return r&&e.forEach((function(e){i.push(r.gn(t,e))})),De.Un(i)},t.prototype._a=function(t,e,n){this.tT.vn(e,n);var r=this.persistence.Ao,i=[];return r&&e.forEach((function(e){i.push(r.yn(t,e))})),De.Un(i)},t.prototype.ra=function(t,e){return this.tT.Sn(e),De.resolve()},t.prototype.la=function(t,e){var n=this.tT.Cn(e);return De.resolve(n)},t.prototype.Fn=function(t,e){return De.resolve(this.tT.Fn(e))},t}(),ki=function(){function t(t){var e=this;this.sT={},this.su=new Ue(0),this.qa=!1,this.qa=!0,this.Ao=t(this),this.Ha=new Ci(this),this.rr=new kn,this.ir=new xi(this.rr,(function(t){return e.Ao.iT(t)}))}return t.prototype.start=function(){return Promise.resolve()},t.prototype.Iu=function(){return this.qa=!1,Promise.resolve()},Object.defineProperty(t.prototype,"Uh",{get:function(){return this.qa},enumerable:!0,configurable:!0}),t.prototype.nu=function(){},t.prototype.yu=function(){return this.rr},t.prototype.Vu=function(t){var e=this.sT[t.s()];return e||(e=new Ti(this.rr,this.Ao),this.sT[t.s()]=e),e},t.prototype.gu=function(){return this.Ha},t.prototype.pu=function(){return this.ir},t.prototype.runTransaction=function(t,e,n){var r=this;ye("MemoryPersistence","Starting transaction:",t);var i=new Oi(this.su.next());return this.Ao.nT(),n(i).next((function(t){return r.Ao.rT(i).next((function(){return t}))})).Bn().then((function(t){return i.sr(),t}))},t.prototype.hT=function(t,e){return De.Qn(Object.values(this.sT).map((function(n){return function(){return n.Fn(t,e)}})))},t}(),Oi=function(t){function e(e){var n=this;return(n=t.call(this)||this).Oa=e,n}return i.__extends(e,t),e}(Me),Ii=function(){function t(t){this.persistence=t,this.Su=null,this.oT=null}return t.aT=function(e){return new t(e)},Object.defineProperty(t.prototype,"uT",{get:function(){if(this.oT)return this.oT;throw _e()},enumerable:!0,configurable:!0}),t.prototype.Fu=function(t){this.Su=t},t.prototype.gn=function(t,e){return this.uT.delete(e),De.resolve()},t.prototype.yn=function(t,e){return this.uT.add(e),De.resolve()},t.prototype.Qo=function(t,e){return this.uT.add(e),De.resolve()},t.prototype.removeTarget=function(t,e){var n=this,r=this.persistence.gu();return r.la(t,e.targetId).next((function(t){t.forEach((function(t){return n.uT.add(t)}))})).next((function(){return r.na(t,e)}))},t.prototype.nT=function(){this.oT=new Set},t.prototype.rT=function(t){var e=this,n=this.persistence.pu().ba();return De.forEach(this.uT,(function(r){return e.cT(t,r).next((function(t){t||n.Hn(r)}))}
8)).next((function(){return e.oT=null,n.apply(t)}))},t.prototype.ku=function(t,e){var n=this;return this.cT(t,e).next((function(t){t?n.uT.delete(e):n.uT.add(e)}))},t.prototype.iT=function(t){return 0},t.prototype.cT=function(t,e){var n=this;return De.Qn([function(){return n.persistence.gu().Fn(t,e)},function(){return n.persistence.hT(t,e)},function(){return De.resolve(n.Su.Fn(e))}])},t}(),Ai=function(){function t(){}return t.prototype.initialize=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e=this;return i.__generator(this,(function(n){switch(n.label){case 0:return this.jd=this._T(t),this.persistence=this.lT(t),[4,this.persistence.start()];case 1:return n.sent(),this.dT=this.fT(t),this.L_=this.TT(t),this.Ld=this.ET(t),this.cl=this.IT(t),this.wT=this.RT(t),this.jd.b_=function(t){return e.cl.Nd(t,1)},this.Ld.cl=this.cl,[4,this.L_.start()];case 2:return n.sent(),[4,this.jd.start()];case 3:return n.sent(),[4,this.Ld.start()];case 4:return n.sent(),[4,this.Ld.yl(this.cl.if)];case 5:return n.sent(),[2]}}))}))},t.prototype.RT=function(t){return new wi(this.cl)},t.prototype.fT=function(t){return null},t.prototype.TT=function(t){return new rr(this.persistence,new Si,t.mT)},t.prototype.lT=function(t){return new ki(Ii.aT)},t.prototype.ET=function(t){var e=this;return new ei(this.L_,t.w_,t.qr,(function(t){return e.cl.Nd(t,0)}),t.platform.AT())},t.prototype._T=function(t){return new hi},t.prototype.IT=function(t){return new bi(this.L_,this.Ld,this.jd,t.mT,t.Kd)},t.prototype.clearPersistence=function(t){throw new f(d.FAILED_PRECONDITION,"You are using the memory-only build of Firestore. Persistence support is only available via the @firebase/firestore bundle or the firebase-firestore.js build.")},t}(),Ni=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initialize=function(e){return i.__awaiter(this,void 0,void 0,(function(){var n=this;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return r.sent(),[4,this.persistence.iu((function(t){return i.__awaiter(n,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return[4,this.cl.yl(t)];case 1:return e.sent(),this.dT&&(t&&!this.dT.Uh?this.dT.start(this.L_):t||this.dT.stop()),[2]}}))}))}))];case 2:return r.sent(),[2]}}))}))},e.prototype.TT=function(t){return new ir(this.persistence,new Si,t.mT)},e.prototype.IT=function(t){var e=new vi(this.L_,this.Ld,this.jd,t.mT,t.Kd);return this.jd instanceof li&&(this.jd.cl=e),e},e.prototype.fT=function(t){return new Ke(this.persistence.Ao.Lh,t.qr)},e.prototype.lT=function(t){var e=Xn.vu(t.PT),n=t.platform.Dc(t.PT.ii);return new Xn(t.VT.synchronizeTabs,e,t.clientId,t.platform,Qe.Dh(t.VT.cacheSizeBytes),t.qr,n,this.jd)},e.prototype._T=function(t){if(t.VT.gT&&t.VT.synchronizeTabs){if(!li.so(t.platform))throw new f(d.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var e=Xn.vu(t.PT);return new li(t.qr,t.platform,e,t.clientId,t.mT)}return new hi},e.prototype.clearPersistence=function(t){var e=Xn.vu(t);return Xn.clearPersistence(e)},e}(Ai),Ri=function(){function t(t,e,n,r){this.platform=t,this.PT=e,this.credentials=n,this.qr=r,this.clientId=Se.cn()}return t.prototype.start=function(t,e){var n=this;this.pT();var r=new Be,i=new Be,o=!1;return this.credentials.l((function(s){if(!o)return o=!0,ye("FirestoreClient","Initializing. user=",s.uid),n.yT(t,e,s,i).then(r.resolve,r.reject);n.qr.Hr((function(){return n.pl(s)}))})),this.qr.Hr((function(){return r.promise})),i.promise},t.prototype.enableNetwork=function(){var t=this;return this.pT(),this.qr.enqueue((function(){return t.cl.enableNetwork()}))},t.prototype.yT=function(t,e,n,r){return i.__awaiter(this,void 0,void 0,(function(){var o,s,a,u,c=this;return i.__generator(this,(function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),[4,this.platform.bT(this.PT)];case 1:return o=l.sent(),s=this.platform.Dc(this.PT.ii),a=function(t,e,n){return new Xr(t,e,n)}(o,this.credentials,s),[4,t.initialize({qr:this.qr,PT:this.PT,platform:this.platform,w_:a,clientId:this.clientId,mT:n,Kd:100,VT:e})];case 2:return l.sent(),this.persistence=t.persistence,this.jd=t.jd,this.L_=t.L_,this.Ld=t.Ld,this.cl=t.cl,this.dT=t.dT,this.vT=t.wT,this.persistence.nu((function(){return i.__awaiter(c,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return[4,this.terminate()];case 1:return t.sent(),[2]}}))}))})),r.resolve(),[3,4];case 3:if(u=l.sent(),r.reject(u),!this.ST(u))throw u;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+u),this.yT(new Ai,{gT:!1},n,r))];case 4:return[2]}}
8))}))},t.prototype.ST=function(t){return"FirebaseError"===t.name?t.code===d.FAILED_PRECONDITION||t.code===d.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code},t.prototype.pT=function(){if(this.qr.hh)throw new f(d.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.pl=function(t){return this.qr.Th(),ye("FirestoreClient","Credential Changed. Current user: "+t.uid),this.cl.pl(t)},t.prototype.disableNetwork=function(){var t=this;return this.pT(),this.qr.enqueue((function(){return t.cl.disableNetwork()}))},t.prototype.terminate=function(){var t=this;return this.qr.lh((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.dT&&this.dT.stop(),[4,this.Ld.Iu()];case 1:return t.sent(),[4,this.jd.Iu()];case 2:return t.sent(),[4,this.persistence.Iu()];case 3:return t.sent(),this.credentials.T(),[2]}}))}))}))},t.prototype.waitForPendingWrites=function(){var t=this;this.pT();var e=new Be;return this.qr.Hr((function(){return t.cl.Tf(e)})),e.promise},t.prototype.listen=function(t,e,n){var r=this;this.pT();var i=new Ei(t,e,n);return this.qr.Hr((function(){return r.vT.listen(i)})),i},t.prototype.al=function(t){var e=this;this.DT||this.qr.Hr((function(){return e.vT.al(t)}))},t.prototype.CT=function(t){var e=this;return this.pT(),this.qr.enqueue((function(){return e.L_.ec(t)})).then((function(t){if(t instanceof bt)return t;if(t instanceof vt)return null;throw new f(d.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")}))},t.prototype.FT=function(t){var e=this;return this.pT(),this.qr.enqueue((function(){return i.__awaiter(e,void 0,void 0,(function(){var e,n,r;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.L_.nc(t,!0)];
8case 1:return e=i.sent(),n=new pi(t,e.rc),r=n.yd(e.documents),[2,n.Zn(r,!1).snapshot]}}))}))}))},t.prototype.write=function(t){var e=this;this.pT();var n=new Be;return this.qr.Hr((function(){return e.cl.write(t,n)})),n.promise},t.prototype.ii=function(){return this.PT.ii},t.prototype.Ff=function(t){var e=this;this.pT(),this.qr.Hr((function(){return e.vT.Ff(t),Promise.resolve()}))},t.prototype.Nf=function(t){this.DT||this.vT.Nf(t)},Object.defineProperty(t.prototype,"DT",{get:function(){return this.qr.hh},enumerable:!0,configurable:!0}),t.prototype.transaction=function(t){var e=this;this.pT();var n=new Be;return this.qr.Hr((function(){return e.cl.runTransaction(e.qr,t,n),Promise.resolve()})),n.promise},t}(),Pi=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.NT(this.observer.next,t)},t.prototype.error=function(t){this.NT(this.observer.error,t)},t.prototype.kT=function(){this.muted=!0},t.prototype.NT=function(t,e){var n=this;this.muted||setTimeout((function(){n.muted||t(e)}),0)},t}();function Di(t){return function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=t,r=0,i=["next","error","complete"];r<i.length;r++){var o=i[r];if(o in n&&"function"==typeof n[o])return!0}return!1}(t)}var ji=function(){function t(t,e,n,r){this.firestore=t,this.timestampsInSnapshots=e,this.$T=n,this.converter=r}return t.prototype.MT=function(t){switch(L(t)){case 0:return null;case 1:return t.booleanValue;case 2:return z(t.integerValue||t.doubleValue);case 3:return this.LT(t.timestampValue);case 4:return this.xT(t);case 5:return t.stringValue;case 6:return new Cr(G(t.bytesValue));case 7:return this.OT(t.referenceValue);case 8:return this.BT(t.geoPointValue);case 9:return this.qT(t.arrayValue);case 10:return this.UT(t.mapValue);default:throw _e()}},t.prototype.UT=function(t){var e=this,n={};return k(t.fields||{},(function(t,r){n[t]=e.MT(r)})),n},t.prototype.BT=function(t){return new jr(z(t.latitude),z(t.longitude))},t.prototype.qT=function(t){var e=this;return(t.values||[]).map((function(t){return e.MT(t)}))},t.prototype.xT=function(t){switch(this.$T){case"previous":var e=function t(e){var n=e.mapValue.fields.__previous_value__;return P(n)?t(n):n}(t);return null==e?null:this.MT(e);case"estimate":return this.LT(D(t));default:return null}},t.prototype.LT=function(t){var e=q(t),n=new v(e.seconds,e.nanos);return this.timestampsInSnapshots?n:n.toDate()},t.prototype.OT=function(t){var e=E.K(t);we(de(e));var n=new Oe(e.get(1),e.get(3)),r=new x(e.$(5));return n.isEqual(this.firestore.Lc)||be("Document "+r+" contains a document reference within a different database ("+n.projectId+"/"+n.database+") which is not supported. It will be treated as a reference in the current database ("+this.firestore.Lc.projectId+"/"+this.firestore.Lc.database+") instead."),new Bi(r,this.firestore,this.converter)},t}(),Li=Qe.Nh,Mi=function(){function t(t){var e,n;if(void 0===t.host){if(void 0!==t.ssl)throw new f(d.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else dr("settings","non-empty string","host",t.host),this.host=t.host,fr("settings","boolean","ssl",t.ssl),this.ssl=null===(e=t.ssl)||void 0===e||e;if(vr("settings",t,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling"]),fr("settings","object","credentials",t.credentials),this.credentials=t.credentials,fr("settings","boolean","timestampsInSnapshots",t.timestampsInSnapshots),!0===t.timestampsInSnapshots?be("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===t.timestampsInSnapshots&&be("Support for 'timestampsInSnapshots: false' will be removed soon. You must update your code to handle Timestamp objects."),this.timestampsInSnapshots=null===(n=t.timestampsInSnapshots)||void 0===n||n,fr("settings","number","cacheSizeBytes",t.cacheSizeBytes),void 0===t.cacheSizeBytes)this.cacheSizeBytes=Qe.$h;else{if(t.cacheSizeBytes!==Li&&t.cacheSizeBytes<Qe.kh)throw new f(d.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+Qe.kh);this.cacheSizeBytes=t.cacheSizeBytes}fr("settings","boolean","experimentalForceLongPolling",t.experimentalForceLongPolling),this.forceLongPolling=void 0!==t.experimentalForceLongPolling&&t.experimentalForceLongPolling}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.timestampsInSnapshots===t.timestampsInSnapshots&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.forceLongPolling===t.forceLongPolling},t}(),Fi=function(){function t(e,n,r){var o=this;if(void 0===r&&(r=new Ai),this.QT=null,this.WT=new Ge,this.INTERNAL={delete:function(){return i.__awaiter(o,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.jT(),[4,this.KT.terminate()];case 1:return t.sent(),[2]}}))}))}}
8,"object"==typeof e.options){var s=e;this.QT=s,this.Lc=t.GT(s),this.zT=s.name,this.HT=new g(n)}else{var a=e;if(!a.projectId)throw new f(d.INVALID_ARGUMENT,"Must provide projectId");this.Lc=new Oe(a.projectId,a.database),this.zT="[DEFAULT]",this.HT=new m}this.YT=r,this.JT=new Mi({}),this.XT=new Br(this.Lc)}return t.prototype.settings=function(t){ar("Firestore.settings",arguments,1),lr("Firestore.settings","object",1,t);var e=new Mi(t);if(this.KT&&!this.JT.isEqual(e))throw new f(d.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this.JT=e,void 0!==e.credentials&&(this.HT=function(t){if(!t)return new m;switch(t.type){case"gapi":var e=t.ZT;return we(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new b(e,t.V||"0");case"provider":return t.ZT;default:throw new f(d.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},t.prototype.enableNetwork=function(){return this.jT(),this.KT.enableNetwork()},t.prototype.disableNetwork=function(){return this.jT(),this.KT.disableNetwork()},t.prototype.enablePersistence=function(t){var e,n;if(this.KT)throw new f(d.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");var r=!1;return t&&(void 0!==t.experimentalTabSynchronization&&be("The 'experimentalTabSynchronization' setting will be removed. Use 'synchronizeTabs' instead."),r=null!==(n=null!==(e=t.synchronizeTabs)&&void 0!==e?e:t.experimentalTabSynchronization)&&void 0!==n&&n),this.tE(this.YT,{gT:!0,cacheSizeBytes:this.JT.cacheSizeBytes,synchronizeTabs:r})},t.prototype.clearPersistence=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){if(void 0!==this.KT&&!this.KT.DT)throw new f(d.FAILED_PRECONDITION,"Persistence cannot be cleared after this Firestore instance is initialized.");return t=new Be,[2,(this.WT.oh((function(){return i.__awaiter(e,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=this.eE(),[4,this.YT.clearPersistence(e)];case 1:return r.sent(),t.resolve(),[3,3];case 2:return n=r.sent(),t.reject(n),[3,3];case 3:return[2]}}
8))}))})),t.promise)]}))}))},t.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(t.prototype,"sE",{get:function(){return this.jT(),this.KT.DT},enumerable:!0,configurable:!0}),t.prototype.waitForPendingWrites=function(){return this.jT(),this.KT.waitForPendingWrites()},t.prototype.onSnapshotsInSync=function(t){return this.jT(),Di(t)?this.iE(t):(lr("Firestore.onSnapshotsInSync","function",1,t),this.iE({next:t}))},t.prototype.iE=function(t){var e=this,n=new Pi({next:function(){t.next&&t.next()},error:function(t){throw _e()}});return this.KT.Ff(n),function(){n.kT(),e.KT.Nf(n)}},t.prototype.jT=function(){return this.KT||this.tE(new Ai,{gT:!1}),this.KT},t.prototype.eE=function(){return new ke(this.Lc,this.zT,this.JT.host,this.JT.ssl,this.JT.forceLongPolling)},t.prototype.tE=function(t,e){var n=this.eE();return this.KT=new Ri(fe.nt(),n,this.HT,this.WT),this.KT.start(t,e)},t.GT=function(t){if(!Object.prototype.hasOwnProperty.call(t.options,"projectId"))throw new f(d.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var e=t.options.projectId;if(!e||"string"!=typeof e)throw new f(d.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new Oe(e)},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.QT)throw new f(d.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.QT},enumerable:!0,configurable:!0}),t.prototype.collection=function(t){return ar("Firestore.collection",arguments,1),lr("Firestore.collection","non-empty string",1,t),this.jT(),new $i(E.K(t),this)},t.prototype.doc=function(t){return ar("Firestore.doc",arguments,1),lr("Firestore.doc","non-empty string",1,t),this.jT(),Bi.nE(E.K(t),this)},t.prototype.collectionGroup=function(t){if(ar("Firestore.collectionGroup",arguments,1),lr("Firestore.collectionGroup","non-empty string",1,t),t.indexOf("/")>=0)throw new f(d.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.jT(),new Hi(new Et(E.G,t),this)},t.prototype.runTransaction=function(t){var e=this;return ar("Firestore.runTransaction",arguments,1),lr("Firestore.runTransaction","function",1,t),this.jT().transaction((function(n){return t(new Vi(e,n))}))},t.prototype.batch=function(){return this.jT(),new Ui(this)},Object.defineProperty(t,"logLevel",{get:function(){switch(me()){case s.LogLevel.DEBUG:return"debug";case s.LogLevel.SILENT:return"silent";default:return"error"}},enumerable:!0,configurable:!0}),t.setLogLevel=function(t){switch(ar("Firestore.setLogLevel",arguments,1),lr("Firestore.setLogLevel","non-empty string",1,t),t){case"debug":ge(s.LogLevel.DEBUG);break;case"error":ge(s.LogLevel.ERROR);break;case"silent":ge(s.LogLevel.SILENT);break;default:throw new f(d.INVALID_ARGUMENT,"Invalid log level: "+t)}},t.prototype.rE=function(){return this.JT.timestampsInSnapshots},t}(),Vi=function(){function t(t,e){this.hE=t,this.oE=e}return t.prototype.get=function(t){var e=this;ar("Transaction.get",arguments,1);var n=Zi("Transaction.get",t,this.hE);return this.oE.V_([n.xc]).then((function(t){if(!t||1!==t.length)return _e();var r=t[0];if(r instanceof vt)return new zi(e.hE,n.xc,null,!1,!1,n.aE);if(r instanceof bt)return new zi(e.hE,n.xc,r,!1,!1,n.aE);throw _e()}))},t.prototype.set=function(t,e,n){cr("Transaction.set",arguments,2,3);var r=Zi("Transaction.set",t,this.hE);n=Qi("Transaction.set",n);var i=Ji(r.aE,e,"Transaction.set"),o=i[0],s=i[1],a=n.merge||n.mergeFields?this.hE.XT.Nc(s,o,n.mergeFields):this.hE.XT.Cc(s,o);return this.oE.set(r.xc,a),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return"string"==typeof e||e instanceof kr?(ur("Transaction.update",arguments,3),r=Zi("Transaction.update",t,this.hE),i=this.hE.XT.$c("Transaction.update",e,n,o)):(ar("Transaction.update",arguments,2),r=Zi("Transaction.update",t,this.hE),i=this.hE.XT.kc("Transaction.update",e)),this.oE.update(r.xc,i),this},t.prototype.delete=function(t){ar("Transaction.delete",arguments,1
8);var e=Zi("Transaction.delete",t,this.hE);return this.oE.delete(e.xc),this},t}(),Ui=function(){function t(t){this.hE=t,this.uE=[],this.cE=!1}return t.prototype.set=function(t,e,n){cr("WriteBatch.set",arguments,2,3),this._E();var r=Zi("WriteBatch.set",t,this.hE);n=Qi("WriteBatch.set",n);var i=Ji(r.aE,e,"WriteBatch.set"),o=i[0],s=i[1],a=n.merge||n.mergeFields?this.hE.XT.Nc(s,o,n.mergeFields):this.hE.XT.Cc(s,o);return this.uE=this.uE.concat(a.gc(r.xc,ot.ft())),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return this._E(),"string"==typeof e||e instanceof kr?(ur("WriteBatch.update",arguments,3),r=Zi("WriteBatch.update",t,this.hE),i=this.hE.XT.$c("WriteBatch.update",e,n,o)):(ar("WriteBatch.update",arguments,2),r=Zi("WriteBatch.update",t,this.hE),i=this.hE.XT.kc("WriteBatch.update",e)),this.uE=this.uE.concat(i.gc(r.xc,ot.exists(!0))),this},t.prototype.delete=function(t){ar("WriteBatch.delete",arguments,1),this._E();var e=Zi("WriteBatch.delete",t,this.hE);return this.uE=this.uE.concat(new lt(e.xc,ot.ft())),this},t.prototype.commit=function(){return this._E(),this.cE=!0,this.uE.length>0?this.hE.jT().write(this.uE):Promise.resolve()},t.prototype._E=function(){if(this.cE)throw new f(d.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}(),Bi=function(){function t(t,e,n){this.xc=t,this.firestore=e,this.aE=n,this.KT=this.firestore.jT()}return t.nE=function(e,n,r){if(e.length%2!=0)throw new f(d.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e.j()+" has "+e.length);return new t(new x(e),n,r)},Object.defineProperty(t.prototype,"id",{get:function(){return this.xc.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new $i(this.xc.path.M(),this.firestore,this.aE)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.xc.path.j()},enumerable:!0,configurable:!0}),t.prototype.collection=function(t){if(ar("DocumentReference.collection",arguments,1),lr("DocumentReference.collection","non-empty string",1,t),!t)throw new f(d.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var e=E.K(t);return new $i(this.xc.path.child(e),this.firestore)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw _r("isEqual","DocumentReference",1,e);return this.firestore===e.firestore&&this.xc.isEqual(e.xc)&&this.aE===e.aE},t.prototype.set=function(t,e){cr("DocumentReference.set",arguments,1,2),e=Qi("DocumentReference.set",e);var n=Ji(this.aE,t,"DocumentReference.set"),r=n[0],i=n[1],o=e.merge||e.mergeFields?this.firestore.XT.Nc(i,r,e.mergeFields):this.firestore.XT.Cc(i,r);return this.KT.write(o.gc(this.xc,ot.ft()))},t.prototype.update=function(t,e){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return"string"==typeof t||t instanceof kr?(ur("DocumentReference.update",arguments,2),n=this.firestore.XT.$c("DocumentReference.update",t,e,r)):(ar("DocumentReference.update",arguments,1),n=this.firestore.XT.kc("DocumentReference.update",t)),this.KT.write(n.gc(this.xc,ot.exists(!0)))},t.prototype.delete=function(){return ar("DocumentReference.delete",arguments,0),this.KT.write([new lt(this.xc,ot.ft())])},t.prototype.onSnapshot=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];cr("DocumentReference.onSnapshot",arguments,1,4);var n,r={includeMetadataChanges:!1},i=0;"object"!=typeof t[i]||Di(t[i])||(vr("DocumentReference.onSnapshot",r=t[i],["includeMetadataChanges"]),fr("DocumentReference.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++);var o={includeMetadataChanges:r.includeMetadataChanges};return Di(t[i])?n=t[i]:(lr("DocumentReference.onSnapshot","function",i,t[i]),hr("DocumentReference.onSnapshot","function",i+1,t[i+1]),hr("DocumentReference.onSnapshot","function",i+2,t[i+2]),n={next:t[i],error:t[i+1],complete:t[i+2]}),this.lE(o,n)},t.prototype.lE=function(t,e){var n=this,r=function(t){console.error("Uncaught Error in onSnapshot:",t)};e.error&&(r=e.error.bind(e));var i=new Pi({next:function(t){if(e.next){var r=t.docs.get(n.xc);
8e.next(new zi(n.firestore,n.xc,r,t.fromCache,t.hasPendingWrites,n.aE))}},error:r}),o=this.KT.listen(Et.Wt(this.xc.path),i,t);return function(){i.kT(),n.KT.al(o)}},t.prototype.get=function(t){var e=this;return cr("DocumentReference.get",arguments,0,1),Yi("DocumentReference.get",t),new Promise((function(n,r){t&&"cache"===t.source?e.firestore.jT().CT(e.xc).then((function(t){n(new zi(e.firestore,e.xc,t,!0,t instanceof bt&&t.At,e.aE))}),r):e.dE(n,r,t)}))},t.prototype.dE=function(t,e,n){var r=this.lE({includeMetadataChanges:!0,Bf:!0},{next:function(i){r(),!i.exists&&i.metadata.fromCache?e(new f(d.UNAVAILABLE,"Failed to get document because the client is offline.")):i.exists&&i.metadata.fromCache&&n&&"server"===n.source?e(new f(d.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):t(i)},error:e})},t.prototype.withConverter=function(e){return new t(this.xc,this.firestore,e)},t}(),qi=function(){function t(t,e){this.hasPendingWrites=t,this.fromCache=e}return t.prototype.isEqual=function(t){return this.hasPendingWrites===t.hasPendingWrites&&this.fromCache===t.fromCache},t}(),zi=function(){function t(t,e,n,r,i,o){this.hE=t,this.xc=e,this.fE=n,this.TE=r,this.EE=i,this.aE=o}return t.prototype.data=function(t){if(cr("DocumentSnapshot.data",arguments,0,1),t=Ki("DocumentSnapshot.data",t),this.fE){if(this.aE){var e=new Gi(this.hE,this.xc,this.fE,this.TE,this.EE);return this.aE.fromFirestore(e,t)}return new ji(this.hE,this.hE.rE(),t.serverTimestamps,void 0).MT(this.fE.Mt())}},t.prototype.get=function(t,e){if(cr("DocumentSnapshot.get",arguments,1,2),e=Ki("DocumentSnapshot.get",e),this.fE){var n=this.fE.data().field(Wr("DocumentSnapshot.get",t));if(null!==n)return new ji(this.hE,this.hE.rE(),e.serverTimestamps,this.aE).MT(n)}},Object.defineProperty(t.prototype,"id",{get:function(){return this.xc.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new Bi(this.xc,this.hE,this.aE)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return null!==this.fE},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return new qi(this.EE,this.TE)},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){if(!(e instanceof t))throw _r("isEqual","DocumentSnapshot",1,e);return this.hE===e.hE&&this.TE===e.TE&&this.xc.isEqual(e.xc)&&(null===this.fE?null===e.fE:this.fE.isEqual(e.fE))&&this.aE===e.aE},t}(),Gi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.data=function(e){return t.prototype.data.call(this,e)},e}(zi),Hi=function(){function t(t,e,n){this.IE=t,this.firestore=e,this.aE=n}return t.prototype.where=function(e,n,r){ar("Query.where",arguments,3),br("Query.where",3,r);var i,o=function(t,e,n,r){if(!e.some((function(t){return t===r})))throw new f(d.INVALID_ARGUMENT,"Invalid value "+yr(r)+" provided to function Query.where() for its "+Er(2)+" argument. Acceptable values: "+e.join(", "));return r}(0,["<","<=","==",">=",">","array-contains","in","array-contains-any"],0,n),s=Wr("Query.where",e);if(s.Y()){if("array-contains"===o||"array-contains-any"===o)throw new f(d.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o){this.wE(r,o);for(var a=[],u=0,c=r;u<c.length;u++){var l=c[u];a.push(this.RE(l))}i={arrayValue:{values:a}}}else i=this.RE(r)}else"in"!==o&&"array-contains-any"!==o||this.wE(r,o),i=this.firestore.XT.Mc("Query.where",r,"in"===o);var h=St.create(s,o,i);return this.mE(h),new t(this.IE.Gt(h),this.firestore,this.aE)},t.prototype.orderBy=function(e,n){var r;if(cr("Query.orderBy",arguments,1,2),hr("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r="asc";else{if("desc"!==n)throw new f(d.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r="desc"}if(null!==this.IE.startAt)throw new f(d.INVALID_ARGUMENT,"Invalid query. You must not call Query.startAt() or Query.startAfter() before calling Query.orderBy().");if(null!==this.IE.endAt)throw new f(d.INVALID_ARGUMENT,"Invalid query. You must not call Query.endAt() or Query.endBefore() before calling Query.orderBy().");var i=Wr("Query.orderBy",e),o=new At(i,r);return this.AE(o),new t(this.IE.zt(o),this.firestore,this.aE)},t.prototype.limit=function(e){return ar("Query.limit",arguments,1
8),lr("Query.limit","number",1,e),wr("Query.limit",1,e),new t(this.IE.Ht(e),this.firestore,this.aE)},t.prototype.limitToLast=function(e){return ar("Query.limitToLast",arguments,1),lr("Query.limitToLast","number",1,e),wr("Query.limitToLast",1,e),new t(this.IE.Yt(e),this.firestore,this.aE)},t.prototype.startAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.startAt",arguments,1);var i=this.PE("Query.startAt",e,n,!0);return new t(this.IE.Jt(i),this.firestore,this.aE)},t.prototype.startAfter=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.startAfter",arguments,1);var i=this.PE("Query.startAfter",e,n,!1);return new t(this.IE.Jt(i),this.firestore,this.aE)},t.prototype.endBefore=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.endBefore",arguments,1);var i=this.PE("Query.endBefore",e,n,!0);return new t(this.IE.Xt(i),this.firestore,this.aE)},t.prototype.endAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.endAt",arguments,1);var i=this.PE("Query.endAt",e,n,!1);return new t(this.IE.Xt(i),this.firestore,this.aE)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw _r("isEqual","Query",1,e);return this.firestore===e.firestore&&this.IE.isEqual(e.IE)},t.prototype.withConverter=function(e){return new t(this.IE,this.firestore,e)},t.prototype.PE=function(t,e,n,r){if(br(t,1,e),e instanceof zi){if(n.length>0)throw new f(d.INVALID_ARGUMENT,"Too many arguments provided to "+t+"().");var i=e;if(!i.exists)throw new f(d.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+t+"().");return this.VE(i.fE,r)}var o=[e].concat(n);return this.gE(t,o,r)},t.prototype.VE=function(t,e){for(var n=[],r=0,i=this.IE.orderBy;r<i.length;r++){var o=i[r];if(o.field.Y())n.push(H(this.firestore.Lc,t.key));else{var s=t.field(o.field);if(P(s))throw new f(d.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+o.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===s){var a=o.field.j();throw new f(d.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+a+"' (used as the orderBy) does not exist.")}n.push(s)}}return new It(n,e)},t.prototype.gE=function(t,e,n){var r=this.IE.Ot;if(e.length>r.length)throw new f(d.INVALID_ARGUMENT,"Too many arguments provided to "+t+"(). The number of arguments must be less than or equal to the number of Query.orderBy() clauses");for(var i=[],o=0;o<e.length;o++){var s=e[o];if(r[o].field.Y()){if("string"!=typeof s)throw new f(d.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+t+"(), but got a "+typeof s);if(!this.IE._e()&&-1!==s.indexOf("/"))throw new f(d.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+t+"() must be a plain document ID, but '"+s+"' contains a slash.");var a=this.IE.path.child(E.K(s));if(!x.et(a))throw new f(d.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+t+"() must result in a valid document path, but '"+a+"' is not because it contains an odd number of segments.");var u=new x(a);i.push(H(this.firestore.Lc,u))}else{var c=this.firestore.XT.Mc(t,s);i.push(c)}}return new It(i,n)},t.prototype.onSnapshot=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];cr("Query.onSnapshot",arguments,1,4);var n,r={},i=0;return"object"!=typeof t[i]||Di(t[i])||(vr("Query.onSnapshot",r=t[i],["includeMetadataChanges"]),fr("Query.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++),Di(t[i])?n=t[i]:(lr("Query.onSnapshot","function",i,t[i]),hr("Query.onSnapshot","function",i+1,t[i+1]),hr("Query.onSnapshot","function",i+2,t[i+2]),n={next:t[i],error:t[i+1],complete:t[i+2]}),this.pE(this.IE),this.lE(r,n)},t.prototype.lE=function(t,e){var n=this,r=function(t){console.error("Uncaught Error in onSnapshot:",t)};e.error&&(r=e.error.bind(e));var i=new Pi({next:function(t){e.next&&e.next(new Wi(n.firestore,
8n.IE,t,n.aE))},error:r}),o=this.firestore.jT(),s=o.listen(this.IE,i,t);return function(){i.kT(),o.al(s)}},t.prototype.pE=function(t){if(t.ae()&&0===t.Ot.length)throw new f(d.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")},t.prototype.get=function(t){var e=this;return cr("Query.get",arguments,0,1),Yi("Query.get",t),this.pE(this.IE),new Promise((function(n,r){t&&"cache"===t.source?e.firestore.jT().FT(e.IE).then((function(t){n(new Wi(e.firestore,e.IE,t,e.aE))}),r):e.dE(n,r,t)}))},t.prototype.dE=function(t,e,n){var r=this.lE({includeMetadataChanges:!0,Bf:!0},{next:function(i){r(),i.metadata.fromCache&&n&&"server"===n.source?e(new f(d.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):t(i)},error:e})},t.prototype.RE=function(t){if("string"==typeof t){if(""===t)throw new f(d.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!this.IE._e()&&-1!==t.indexOf("/"))throw new f(d.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+t+"' contains a '/' character.");var e=this.IE.path.child(E.K(t));if(!x.et(e))throw new f(d.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+e+"' is not because it has an odd number of segments ("+e.length+").");return H(this.firestore.Lc,new x(e))}if(t instanceof Bi)return H(this.firestore.Lc,t.xc);throw new f(d.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+yr(t)+".")},t.prototype.wE=function(t,e){if(!Array.isArray(t)||0===t.length)throw new f(d.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new f(d.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.");if(t.indexOf(null)>=0)throw new f(d.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'null' in the value array.");if(t.filter((function(t){return Number.isNaN(t)})).length>0)throw new f(d.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'NaN' in the value array.")},t.prototype.mE=function(t){if(t instanceof St){var e=["array-contains","array-contains-any"],n=["in","array-contains-any"],r=e.indexOf(t.op)>=0,i=n.indexOf(t.op)>=0;if(t.ue()){var o=this.IE.jt();if(null!==o&&!o.isEqual(t.field))throw new f(d.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+o.toString()+"' and '"+t.field.toString()+"'");var s=this.IE.Kt();null!==s&&this.yE(t.field,s)}else if(i||r){var a=null;if(i&&(a=this.IE.ce(n)),null===a&&r&&(a=this.IE.ce(e)),null!=a)throw new f(d.INVALID_ARGUMENT,a===t.op?"Invalid query. You cannot use more than one '"+t.op.toString()+"' filter.":"Invalid query. You cannot use '"+t.op.toString()+"' filters with '"+a.toString()+"' filters.")}}},t.prototype.AE=function(t){if(null===this.IE.Kt()){var e=this.IE.jt();null!==e&&this.yE(e,t.field)}},t.prototype.yE=function(t,e){if(!e.isEqual(t))throw new f(d.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+t.toString()+"' and so you must also use '"+t.toString()+"' as your first Query.orderBy(), but your first Query.orderBy() is on field '"+e.toString()+"' instead.")},t}(),Wi=function(){function t(t,e,n,r){this.hE=t,this.bE=e,this.vE=n,this.aE=r,this.SE=null,this.DE=null,this.metadata=new qi(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach((function(e){return t.push(e)})),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this.vE.docs.B()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.vE.docs.size},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;
8cr("QuerySnapshot.forEach",arguments,1,2),lr("QuerySnapshot.forEach","function",1,t),this.vE.docs.forEach((function(r){t.call(e,n.CE(r))}))},Object.defineProperty(t.prototype,"query",{get:function(){return new Hi(this.bE,this.hE,this.aE)},enumerable:!0,configurable:!0}),t.prototype.docChanges=function(t){t&&(vr("QuerySnapshot.docChanges",t,["includeMetadataChanges"]),fr("QuerySnapshot.docChanges","boolean","includeMetadataChanges",t.includeMetadataChanges));var e=!(!t||!t.includeMetadataChanges);if(e&&this.vE.hs)throw new f(d.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.SE&&this.DE===e||(this.SE=function(t,e,n,r){if(n.ss.B()){var i=0;return n.docChanges.map((function(e){return{type:"added",doc:new Gi(t,e.doc.key,e.doc,n.fromCache,n.ns.has(e.doc.key),r),oldIndex:-1,newIndex:i++}}))}var o=n.ss;return n.docChanges.filter((function(t){return e||3!==t.type})).map((function(e){var i=new Gi(t,e.doc.key,e.doc,n.fromCache,n.ns.has(e.doc.key),r),s=-1,a=-1;return 0!==e.type&&(s=o.indexOf(e.doc.key),o=o.delete(e.doc.key)),1!==e.type&&(a=(o=o.add(e.doc)).indexOf(e.doc.key)),{type:Xi(e.type),doc:i,oldIndex:s,newIndex:a}}))}(this.hE,e,this.vE,this.aE),this.DE=e),this.SE},t.prototype.isEqual=function(e){if(!(e instanceof t))throw _r("isEqual","QuerySnapshot",1,e);return this.hE===e.hE&&this.bE.isEqual(e.bE)&&this.vE.isEqual(e.vE)&&this.aE===e.aE},t.prototype.CE=function(t){return new Gi(this.hE,t.key,t,this.metadata.fromCache,this.vE.ns.has(t.key),this.aE)},t}(),$i=function(t){function e(e,n,r){var i=this;if((i=t.call(this,Et.Wt(e),n,r)||this).FE=e,e.length%2!=1)throw new f(d.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e.j()+" has "+e.length);return i}return i.__extends(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this.IE.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.IE.path.M();return t.B()?null:new Bi(new x(t),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.IE.path.j()},enumerable:!0,configurable:!0}),e.prototype.doc=function(t){if(cr("CollectionReference.doc",arguments,0,1),0===arguments.length&&(t=Se.cn()),lr("CollectionReference.doc","non-empty string",1,t),""===t)throw new f(d.INVALID_ARGUMENT,"Document path must be a non-empty string");var e=E.K(t);return Bi.nE(this.IE.path.child(e),this.firestore,this.aE)},e.prototype.add=function(t){ar("CollectionReference.add",arguments,1),lr("CollectionReference.add","object",1,this.aE?this.aE.toFirestore(t):t);var e=this.doc();return e.set(t).then((function(){return e}))},e.prototype.withConverter=function(t){return new e(this.FE,this.firestore,t)},e}(Hi);function Qi(t,e){if(void 0===e)return{merge:!1};if(vr(t,e,["merge","mergeFields"]),fr(t,"boolean","merge",e.merge),function(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){if(!(r instanceof Array))throw new f(d.INVALID_ARGUMENT,"Function "+t+"() requires its "+e+" option to be an array, but it was: "+yr(r));for(var o=0;o<r.length;++o)if(!i(r[o]))throw new f(d.INVALID_ARGUMENT,"Function "+t+"() requires all "+e+" elements to be a string or a FieldPath, but the value at index "+o+" was: "+yr(r[o]))}(t,"mergeFields",0,r,(function(t){return"string"==typeof t||t instanceof kr}))}(t,0,0,e.mergeFields),void 0!==e.mergeFields&&void 0!==e.merge)throw new f(d.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function Ki(t,e){return void 0===e?{}:(vr(t,e,["serverTimestamps"]),pr(t,0,"serverTimestamps",e.serverTimestamps,["estimate","previous","none"]),e)}function Yi(t,e){hr(t,"object",1,e),e&&(vr(t,e,["source"]),pr(t,0,"source",e.source,["default","server","cache"]))}function Zi(t,e,n){if(e instanceof Bi){if(e.firestore!==n)throw new f(d.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}throw _r(t,"DocumentReference",1,e)}function Xi(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return _e()}}function Ji(t,e,n){var r;return t?(r=t.toFirestore(e),n="toFirestore() in "+n):r=e,[r,n]}function to(t,e){function n(){var t="This constructor is private.";throw e&&(t+=" ",t+=e),new f(d.INVALID_ARGUMENT,t)}return n.prototype=t.prototype,Object.assign(n,t),n}var eo=to(Fi,"Use firebase.firestore() instead."),no=to(Vi,"Use firebase.firestore().runTransaction() instead."),ro=to(Ui,"Use firebase.firestore().batch() instead."),io=to(Bi,"Use firebase.firestore().doc() instead."),oo=to(zi),so=to(Gi),ao=to(Hi),uo=to(Wi),c
8o=to($i,"Use firebase.firestore().collection() instead."),lo=to(function(){function t(){}return t.delete=function(){return sr("FieldValue.delete",arguments),new Ar},t.serverTimestamp=function(){return sr("FieldValue.serverTimestamp",arguments),new Nr},t.arrayUnion=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ur("FieldValue.arrayUnion",arguments,1),new Rr(t)},t.arrayRemove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ur("FieldValue.arrayRemove",arguments,1),new Pr(t)},t.increment=function(t){return lr("FieldValue.increment","number",1,t),ar("FieldValue.increment",arguments,1),new Dr(t)},t.prototype.isEqual=function(t){return this===t},t}(),"Use FieldValue.<field>() instead."),ho=to(Cr,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),fo={Firestore:eo,GeoPoint:jr,Timestamp:v,Blob:ho,Transaction:no,WriteBatch:ro,DocumentReference:io,DocumentSnapshot:oo,Query:ao,QueryDocumentSnapshot:so,QuerySnapshot:uo,CollectionReference:co,FieldPath:kr,FieldValue:lo,setLogLevel:Fi.setLogLevel,CACHE_SIZE_UNLIMITED:Li},po=function(){function t(){}return t.prototype.Q_=function(t){},t.prototype.Iu=function(){},t}(),mo=function(){function t(){var t=this;this.NE=function(){return t.kE()},this.$E=function(){return t.ME()},this.LE=[],this.xE()}return t.prototype.Q_=function(t){this.LE.push(t)},t.prototype.Iu=function(){window.removeEventListener("online",this.NE),window.removeEventListener("offline",this.$E)},t.prototype.xE=function(){window.addEventListener("online",this.NE),window.addEventListener("offline",this.$E)},t.prototype.kE=function(){ye("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.LE;t<e.length;t++)(0,e[t])(0)},t.prototype.ME=function(){ye("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.LE;t<e.length;t++)(0,e[t])(1)},t.so=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),go=function(){function t(t){this.OE=t.OE,this.BE=t.BE}return t.prototype.n_=function(t){this.qE=t},t.prototype.Zc=function(t){this.UE=t},t.prototype.onMessage=function(t){this.QE=t},t.prototype.close=function(){this.BE()},t.prototype.send=function(t){this.OE(t)},t.prototype.WE=function(){this.qE()},t.prototype.jE=function(t){this.UE(t)},t.prototype.KE=function(t){this.QE(t)},t}(),yo={BatchGetDocuments:"batchGet",Commit:"commit"},bo="gl-js/ fire/"+l,vo=function(){function t(t){this.ii=t.ii,this.GE=(t.ssl?"https":"http")+"://"+t.host,this.forceLongPolling=t.forceLongPolling}return t.prototype.zE=function(t,e){if(e)for(var n in e.o)e.o.hasOwnProperty(n)&&(t[n]=e.o[n]);t["X-Goog-Api-Client"]=bo},t.prototype.E_=function(t,e,n){var r=this,i=this.HE(t);return new Promise((function(o,s){var a=new c.XhrIo;a.listenOnce(c.EventType.COMPLETE,(function(){try{switch(a.getLastErrorCode()){case c.ErrorCode.NO_ERROR:var e=a.getResponseJson();ye("Connection","XHR received:",JSON.stringify(e)),o(e);break;case c.ErrorCode.TIMEOUT:ye("Connection",'RPC "'+t+'" timed out'),s(new f(d.DEADLINE_EXCEEDED,"Request time out"));break;case c.ErrorCode.HTTP_ERROR:var n=a.getStatus();if(ye("Connection",'RPC "'+t+'" failed with status:',n,"response text:",a.getResponseText()),n>0){var r=a.getResponseJson().error;if(r&&r.status&&r.message){var i=function(t){var e=t.toLowerCase().replace("_","-");return Object.values(d).indexOf(e)>=0?e:d.UNKNOWN}(r.status);s(new f(i,r.message))}else s(new f(d.UNKNOWN,"Server responded with status "+a.getStatus()))}else ye("Connection",'RPC "'+t+'" failed'),s(new f(d.UNAVAILABLE,"Connection failed."));break;default:_e()}}finally{ye("Connection",'RPC "'+t+'" completed.')}}));var u=Object.assign({},e);delete u.database;var l=JSON.stringify(u);ye("Connection","XHR sending: ",i+" "+l);var h={"Content-Type":"text/plain"};r.zE(h,n),a.send(i,"POST",l,h,15)}))},t.prototype.I_=function(t,e,n){return this.E_(t,e,n)},t.prototype.r_=function(t,e){var n=[this.GE,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=c.createWebChannelTransport(),i={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.ii.projectId+"/databases/"+this.ii.database}
8,sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this.zE(i.initMessageHeaders,e),a.isMobileCordova()||a.isReactNative()||a.isElectron()||a.isIE()||a.isUWP()||a.isBrowserExtension()||(i.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");ye("Connection","Creating WebChannel: "+o+" "+i);var s=r.createWebChannel(o,i),u=!1,l=!1,h=new go({OE:function(t){l?ye("Connection","Not sending because WebChannel is closed:",t):(u||(ye("Connection","Opening WebChannel transport."),s.open(),u=!0),ye("Connection","WebChannel sending:",t),s.send(t))},BE:function(){return s.close()}}),p=function(t,e){s.listen(t,(function(t){try{e(t)}catch(t){setTimeout((function(){throw t}),0)}}))};return p(c.WebChannel.EventType.OPEN,(function(){l||ye("Connection","WebChannel transport opened.")})),p(c.WebChannel.EventType.CLOSE,(function(){l||(l=!0,ye("Connection","WebChannel transport closed"),h.jE())})),p(c.WebChannel.EventType.ERROR,(function(t){l||(l=!0,ye("Connection","WebChannel transport errored:",t),h.jE(new f(d.UNAVAILABLE,"The operation could not be completed")))})),p(c.WebChannel.EventType.MESSAGE,(function(t){var e;if(!l){var n=t.data[0];we(!!n);var r=n.error||(null===(e=n[0])||void 0===e?void 0:e.error);if(r){ye("Connection","WebChannel received error:",r);var i=r.status,o=function(t){var e=mt[t];if(void 0!==e)return Dt(e)}(i),a=r.message;void 0===o&&(o=d.INTERNAL,a="Unknown error status: "+i+" with message "+r.message),l=!0,h.jE(new f(o,a)),s.close()}else ye("Connection","WebChannel received:",n),h.KE(n)}})),setTimeout((function(){h.WE()}),0),h},t.prototype.HE=function(t){return this.GE+"/v1/projects/"+this.ii.projectId+"/databases/"+this.ii.database+"/documents:"+yo[t]},t}();function _o(t){!function(t,e){t.INTERNAL.registerComponent(new u.Component("firestore",(function(t){return function(t,e){return new Fi(t,e,new Ni)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},fo)))}(t),t.registerVersion("@firebase/firestore","1.14.3")}fe.an(new(function(){function t(){this._c="undefined"!=typeof atob}return Object.defineProperty(t.prototype,"document",{get:function(){return"undefined"!=typeof document?document:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return"undefined"!=typeof window?window:null},enumerable:!0,configurable:!0}),t.prototype.bT=function(t){return Promise.resolve(new vo(t))},t.prototype.AT=function(){return mo.so()?new mo:new po},t.prototype.Dc=function(t){return new he(t,{hi:!0})},t.prototype.un=function(t){return JSON.stringify(t)},t.prototype.atob=function(t){return atob(t)},t.prototype.btoa=function(t){return btoa(t)},t.prototype._n=function(t){var e="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e)e.getRandomValues(n);else for(var r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n},t}())),_o(o),e.__PRIVATE_registerFirestore=_o},AytR:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r={production:!0,app:{name:"Carta Online",currency:"EUR",price:{base:11.9,pro:16.5},vat:21,max_languages:5,websiteUrl:"https://carta-online.web.app",restaurantBaseUrl:"https://carta-online.web.app/carta/",tandcUrl:"https://carta-online.web.app/terminos-de-uso/",privacyUrl:"https://carta-online.web.app/politica-de-privacidad/",email:"[email protected]",phone:"+34681622069",demoUrl:"https://carta-online.web.app/carta/el-cingle"},api:{baseUrl:"https://us-central1-beyond-tech-carta-online.cloudfunctions.net/api/",version:"v1"},firebase:{apiKey:"AIzaSyBrhCo8CJvWDseBjbYvk9q7OP9F0zoNt9M",authDomain:"carta-online.web.app",databaseURL:"https://beyond-tech-carta-online.firebaseio.com",projectId:"beyond-tech-carta-online",storageBucket:"beyond-tech-carta-online.appspot.com",messagingSenderId:"948215558571",appId:"1:948215558571:web:43c1c119c21dda3de222ee",measurementId:"G-B7KN18KCSJ"}}},BZpo:function(t,e,n){"use strict";var r=n("EM62");n("zfB+"),n("sEIs");var i=n("nIj0"),o=n("29Wa"),s=n("Cd2c"),a=n("2kYt"),u=n("PBFl");"Please verify your account. Check your email.","Didn't receive the email?","We've sent you another email, please check your inbox and make sure it is not in the spam.";var c=n("+Tre");"We've sent you email, please check your inbox and make sure it is not in the spam.";var l=n("jdnZ");let h=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[a.b,i.g,o.e,l.a,s.b,u.b,c.b]]}),t})();n.d(e,"a",(function(){return h}))},C05f:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
8));var r=n("ZTXN"),i=n("MiDb");class o 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 i.a;return this._value}next(t){super.next(this._value=t)}}},Cd2c:function(t,e,n){"use strict";var r=n("cZZj"),i=n("EM62"),o=n("5XID"),s=n("6Oco"),a=n("ZTXN");n("KTx3"),n("prE9"),n("kuMc"),n("2kYt");const u=Object(r.f)({passive:!0});let c=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return s.a;const e=Object(o.e)(t),n=this._monitoredElements.get(e);if(n)return n.subject.asObservable();const r=new a.a,i="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(i)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(i)&&(e.classList.remove(i),this._ngZone.run(()=>r.next({target:t.target,isAutofilled:!1}))):(e.classList.add(i),this._ngZone.run(()=>r.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,u),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:r,unlisten:()=>{e.removeEventListener("animationstart",c,u)}}),r.asObservable()}stopMonitoring(t){const e=Object(o.e)(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(i.fc(r.a),i.fc(i.A))},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.fc)(r.a),Object(i.fc)(i.A))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},imports:[[r.b]]}),t})();var h=n("mFH5"),d=n("29Wa"),f=n("nIj0");n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return _}));const p=new i.r("MAT_INPUT_VALUE_ACCESSOR"),m=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;class y{constructor(t,e,n,r){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r}}const b=Object(h.s)(y);let v=(()=>{class t extends b{constructor(t,e,n,i,o,s,u,c,l){super(s,i,o,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=c,this._uid=`mat-input-${g++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new a.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Object(r.e)().has(t));const h=this._elementRef.nativeElement;this._inputValueAccessor=u||h,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h.nodeName.toLowerCase(),this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(o.c)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Object(o.c)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&Object(r.e)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Object(o.c)(t)}ngOnInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_isTextarea(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}
8_validateType(){if(m.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(i.l),i.Qb(r.a),i.Qb(f.l,10),i.Qb(f.o,8),i.Qb(f.f,8),i.Qb(h.c),i.Qb(p,10),i.Qb(c),i.Qb(i.A))},t.\u0275dir=i.Lb({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&i.jc("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(i.Zb("disabled",e.disabled)("required",e.required),i.Eb("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),i.Gb("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[i.Cb([{provide:d.d,useExisting:t}]),i.Ab,i.Bb]}),t})(),_=(()=>{class t{}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},providers:[h.c],imports:[[l,d.e],l,d.e]}),t})()},Czmw:function(t,e,n){"use strict";var r=n("EM62"),i=n("Efrr"),o=n("IdLP"),s=n("GoAz"),a=n("ROBh"),u=n("YtkY"),c=n("SrNW"),l=n("xVbo"),h=n("A2S1"),d=n("xBdF"),f=n("2kYt"),p=n("plFh"),m=n.n(p),g=n("AmJI");function y(t,e){return function(t,e=i.a){return new o.a(n=>{let r;return null!=e?e.schedule(()=>{r=t.onSnapshot(n)}):r=t.onSnapshot(n),function(){null!=r&&r()}})}(t,e)}function b(t,e){return y(t,e).pipe(Object(u.a)(t=>({payload:t,type:"query"})))}function v(t,e){return b(t,e).pipe(Object(u.a)(t=>t.payload.docChanges().map(t=>({type:t.type,payload:t}))))}function _(t,e,n){return b(t,n).pipe(Object(u.a)(t=>t.payload.docChanges()),Object(c.a)((t,n)=>function(t,e,n){return e.forEach(e=>{n.indexOf(e.type)>-1&&(t=function(t,e){switch(e.type){case"added":t[e.newIndex]&&t[e.newIndex].doc.ref.isEqual(e.doc.ref)||t.splice(e.newIndex,0,e);break;case"modified":(null==t[e.oldIndex]||t[e.oldIndex].doc.ref.isEqual(e.doc.ref))&&(e.oldIndex!==e.newIndex?(t.splice(e.oldIndex,1),t.splice(e.newIndex,0,e)):t.splice(e.newIndex,1,e));break;case"removed":t[e.oldIndex]&&t[e.oldIndex].doc.ref.isEqual(e.doc.ref)&&t.splice(e.oldIndex,1)}return t}(t,e))}),t}(t,n,e),[]),Object(u.a)(t=>t.map(t=>({type:t.type,payload:t}))))}function w(t){return t&&0!==t.length||(t=["added","removed","modified"]),t}n.d(e,"a",(function(){return I})),n.d(e,"b",(function(){return A}));class E{constructor(t,e,n){this.ref=t,this.query=e,this.afs=n}stateChanges(t){return t&&0!==t.length?v(this.query,this.afs.schedulers.outsideAngular).pipe(Object(u.a)(e=>e.filter(e=>t.indexOf(e.type)>-1)),Object(l.a)(t=>t.length>0),this.afs.keepUnstableUntilFirst):v(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(Object(c.a)((t,e)=>[...t,...e],[]))}snapshotChanges(t){const e=w(t);return _(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return b(this.query,this.afs.schedulers.outsideAngular).pipe(Object(u.a)(e=>e.payload.docs.map(e=>t.idField?Object.assign(Object.assign({},e.data()),{[t.idField]:e.id}):e.data())),this.afs.keepUnstableUntilFirst)}get(t){return Object(s.a)(this.query.get(t)).pipe(Object(h.b)(this.afs.schedulers.insideAngular))}add(t){return this.ref.add(t)}doc(t){return new S(this.ref.doc(t),this.afs)}}class S{constructor(t,e){this.ref=t,this.afs=e}set(t,e){return this.ref.set(t,e)}update(t){return this.ref.update(t)}delete(){return this.ref.delete()}collection(t,e){const n=this.ref.collection(t),{ref:r,query:i}=O(n,e);return new E(r,i,this.afs)}
8snapshotChanges(){return y(this.ref,this.afs.schedulers.outsideAngular).pipe(Object(u.a)(t=>({payload:t,type:"value"}))).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(){return this.snapshotChanges().pipe(Object(u.a)(t=>t.payload.data()))}get(t){return Object(s.a)(this.ref.get(t)).pipe(Object(h.b)(this.afs.schedulers.insideAngular))}}class T{constructor(t,e){this.query=t,this.afs=e}stateChanges(t){return t&&0!==t.length?v(this.query,this.afs.schedulers.outsideAngular).pipe(Object(u.a)(e=>e.filter(e=>t.indexOf(e.type)>-1)),Object(l.a)(t=>t.length>0),this.afs.keepUnstableUntilFirst):v(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(Object(c.a)((t,e)=>[...t,...e],[]))}snapshotChanges(t){const e=w(t);return _(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(){return b(this.query,this.afs.schedulers.outsideAngular).pipe(Object(u.a)(t=>t.payload.docs.map(t=>t.data())),this.afs.keepUnstableUntilFirst)}get(t){return Object(s.a)(this.query.get(t)).pipe(Object(h.b)(this.afs.schedulers.insideAngular))}}const x=new r.r("angularfire2.enableFirestorePersistence"),C=new r.r("angularfire2.firestore.persistenceSettings"),k=new r.r("angularfire2.firestore.settings");function O(t,e=(t=>t)){return{query:e(t),ref:t}}let I=(()=>{class t{constructor(t,e,n,r,i,o,u){this.schedulers=new d.d(o),this.keepUnstableUntilFirst=Object(d.f)(this.schedulers,i),this.firestore=o.runOutsideAngular(()=>{const n=Object(d.e)(t,o,e);g.registerFirestore&&Object(g.registerFirestore)(m.a);const i=n.firestore();return r&&i.settings(r),i}),this.persistenceEnabled$=n&&!Object(f.v)(i)?o.runOutsideAngular(()=>{try{return Object(s.a)(this.firestore.enablePersistence(u||void 0).then(()=>!0,()=>!1))}catch(t){return Object(a.a)(!1)}}):Object(a.a)(!1)}collection(t,e){let n;n="string"==typeof t?this.firestore.collection(t):t;const{ref:r,query:i}=O(n,e);return new E(r,i,this)}collectionGroup(t,e){const n=e||(t=>t),r=this.firestore.collectionGroup(t);return new T(n(r),this)}doc(t){let e;return e="string"==typeof t?this.firestore.doc(t):t,new S(e,this)}createId(){return this.firestore.collection("_").doc().id}}return t.\u0275fac=function(e){return new(e||t)(r.fc(d.c),r.fc(d.b,8),r.fc(x,8),r.fc(k,8),r.fc(r.C),r.fc(r.A),r.fc(C,8))},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.fc)(d.c),Object(r.fc)(d.b,8),Object(r.fc)(x,8),Object(r.fc)(k,8),Object(r.fc)(r.C),Object(r.fc)(r.A),Object(r.fc)(C,8))},token:t,providedIn:"any"}),t})(),A=(()=>{class t{static enablePersistence(e){return{ngModule:t,providers:[{provide:x,useValue:!0},{provide:C,useValue:e}]}}}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[I]}),t})()},"DG/E":function(t,e,n){"use strict";let r=(()=>{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})();n.d(e,"a",(function(){return i}));class i extends r{constructor(t,e=r.now){super(t,()=>i.delegate&&i.delegate!==this?i.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return i.delegate&&i.delegate!==this?i.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}}}},E5oP:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var r=n("EM62"),i=n("2kYt");const o=new r.r("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(r.W)(i.d)}});let s=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new r.o,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(r.fc(o,8))},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.fc)(o,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)}}),t})()},EM62:function(t,e,n){"use strict";n.d(e,"a",(function(){return No})),n.d(e,"b",(function(){return Ac}
8)),n.d(e,"c",(function(){return xc})),n.d(e,"d",(function(){return Sc})),n.d(e,"e",(function(){return Tc})),n.d(e,"f",(function(){return Tl})),n.d(e,"g",(function(){return dl})),n.d(e,"h",(function(){return po})),n.d(e,"i",(function(){return Bc})),n.d(e,"j",(function(){return fa})),n.d(e,"k",(function(){return Pc})),n.d(e,"l",(function(){return pa})),n.d(e,"m",(function(){return _l})),n.d(e,"n",(function(){return vn})),n.d(e,"o",(function(){return tc})),n.d(e,"p",(function(){return W})),n.d(e,"q",(function(){return l})),n.d(e,"r",(function(){return H})),n.d(e,"s",(function(){return Ao})),n.d(e,"t",(function(){return Pa})),n.d(e,"u",(function(){return Da})),n.d(e,"v",(function(){return Rc})),n.d(e,"w",(function(){return at})),n.d(e,"x",(function(){return pl})),n.d(e,"y",(function(){return st})),n.d(e,"z",(function(){return al})),n.d(e,"A",(function(){return Hc})),n.d(e,"B",(function(){return h})),n.d(e,"C",(function(){return Ic})),n.d(e,"D",(function(){return Oc})),n.d(e,"E",(function(){return nc})),n.d(e,"F",(function(){return ba})),n.d(e,"G",(function(){return ga})),n.d(e,"H",(function(){return ya})),n.d(e,"I",(function(){return _a})),n.d(e,"J",(function(){return ar})),n.d(e,"K",(function(){return f})),n.d(e,"L",(function(){return yl})),n.d(e,"M",(function(){return Fa})),n.d(e,"N",(function(){return Jc})),n.d(e,"O",(function(){return Ea})),n.d(e,"P",(function(){return wa})),n.d(e,"Q",(function(){return Ua})),n.d(e,"R",(function(){return yt})),n.d(e,"S",(function(){return Vo})),n.d(e,"T",(function(){return ul})),n.d(e,"U",(function(){return Mn})),n.d(e,"V",(function(){return A})),n.d(e,"W",(function(){return nt})),n.d(e,"X",(function(){return Ln})),n.d(e,"Y",(function(){return El})),n.d(e,"Z",(function(){return nl})),n.d(e,"ab",(function(){return Nc})),n.d(e,"bb",(function(){return go})),n.d(e,"cb",(function(){return nu})),n.d(e,"db",(function(){return or})),n.d(e,"eb",(function(){return lr})),n.d(e,"fb",(function(){return Bn})),n.d(e,"gb",(function(){return kn})),n.d(e,"hb",(function(){return In})),n.d(e,"ib",(function(){return Pn})),n.d(e,"jb",(function(){return Nn})),n.d(e,"kb",(function(){return An})),n.d(e,"lb",(function(){return Rn})),n.d(e,"mb",(function(){return Xa})),n.d(e,"nb",(function(){return wl})),n.d(e,"ob",(function(){return Ja})),n.d(e,"pb",(function(){return tu})),n.d(e,"qb",(function(){return On})),n.d(e,"rb",(function(){return M})),n.d(e,"sb",(function(){return Uo})),n.d(e,"tb",(function(){return cs})),n.d(e,"ub",(function(){return us})),n.d(e,"vb",(function(){return Fo})),n.d(e,"wb",(function(){return Za})),n.d(e,"xb",(function(){return Bt})),n.d(e,"yb",(function(){return k})),n.d(e,"zb",(function(){return Cn})),n.d(e,"Ab",(function(){return Qs})),n.d(e,"Bb",(function(){return ta})),n.d(e,"Cb",(function(){return la})),n.d(e,"Db",(function(){return Rr})),n.d(e,"Eb",(function(){return Wo})),n.d(e,"Fb",(function(){return Gs})),n.d(e,"Gb",(function(){return Is})),n.d(e,"Hb",(function(){return hs})),n.d(e,"Ib",(function(){return mc})),n.d(e,"Jb",(function(){return mr})),n.d(e,"Kb",(function(){return wt})),n.d(e,"Lb",(function(){return Ot})),n.d(e,"Mb",(function(){return y})),n.d(e,"Nb",(function(){return b})),n.d(e,"Ob",(function(){return xt})),n.d(e,"Pb",(function(){return It})),n.d(e,"Qb",(function(){return Yo})),n.d(e,"Rb",(function(){return rs})),n.d(e,"Sb",(function(){return ss})),n.d(e,"Tb",(function(){return os})),n.d(e,"Ub",(function(){return is})),n.d(e,"Vb",(function(){return ns})),n.d(e,"Wb",(function(){return es})),n.d(e,"Xb",(function(){return as})),n.d(e,"Yb",(function(){return mn})),n.d(e,"Zb",(function(){return Hs})),n.d(e,"ac",(function(){return Nu})),n.d(e,"bc",(function(){return Ru})),n.d(e,"cc",(function(){return Ou})),n.d(e,"dc",(function(){return ku})),n.d(e,"ec",(function(){return Tu})),n.d(e,"fc",(function(){return et})),n.d(e,"gc",(function(){return Zo})),n.d(e,"hc",(function(){return Ec})),n.d(e,"ic",(function(){return Xo})),n.d(e,"jc",(function(){return ls})),n.d(e,"kc",(function(){return bc})),n.d(e,"lc",(function(){return Ne})),n.d(e,"mc",(function(){return Ae})),n.d(e,"nc",(function(){return ms})),n.d(e,"oc",(function(){return Ku})),n.d(e,"pc",(function(){return Yu})),n.d(e,"qc",(function(){return Zu})),n.d(e,"rc",(function(){return _s})),n.d(e,"sc",(function(){return ys})),n.d(e,"tc",(function(){return Jo})),n.d(e,"uc",(function(){return qu})),n.d(e,"vc",(function(){return zu})),n.d(e,"wc",(function(){return Gu})),n.d(e,"xc",(function(){return Hu})),n.d(e,"yc",(function(){return hc})),n.d(e,"zc",(function(){return Ko})),n.d(e,"Ac",(function(){return se})),n.d(e,"Bc",(function(){return hr})),n.d(e,"Cc",(function(){return pr})),n.d(e,"Dc",(function(){return fr})),n.d(e,"Ec",(function(){return Ct})),n.d(e,"Fc",(function(){return gc})),n.d(e,"Gc",(function(){return dc})),n.d(e,"Hc",(function(){return Os})),n.d(e,"Ic",(function(){return Qo})),n.d(e,"Jc",(function(){return Us})),n.d(e,"Kc",(function(){return Bs})),n.d(e,"Lc",(function(){return qs})),n.d(e,"Mc",(function(){return zs})),n.d(e,"Nc",(function(){return Ws})),n.d(e,"Oc",(function(){return fc}));var r=n("ZTXN"),i=n("bwdy"),o=n("IdLP"),s=n("g6G6"),a=n("7ntQ");function u(t){return{toString:t}.toString()}function c(t,e,n){return u(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return r.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,r){const i=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}const l=c("Inject",t=>({token:t})),h=c("Optional"),d=c("Self"),f=c("SkipSelf");var p=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 m(t){for(let e in t)if(t[e]===m)return e;throw Error("Could not find renamed property on target object.")}function g(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function b(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function v(t){return _(t,t[E])||_(t,t[x])}function _(t,e){return e&&e.token===t?e:null}function w(t){return t&&(t.hasOwnProperty(S)||t.hasOwnProperty(C))?t[S]:null}const E=m({"\u0275prov":m}),S=m({"\u0275inj":m}),T=m({"\u0275provFallback":m}),x=m({ngInjectableDef:m}),C=m({ngInjectorDef:m});function k(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(k).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 O(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const I=m({__forward_ref__:m});function A(t){return t.__forward_ref__=A,t.toString=function(){return k(this())},t}function N(t){return R(t)?t():t}function R(t){return"function"==typeof t&&t.hasOwnProperty(I)&&t.__forward_ref__===A}const P="undefined"!=typeof globalThis&&globalThis,D="undefined"!=typeof window&&window,j="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,L="undefined"!=typeof global&&global,M=P||L||D||j,F=m({"\u0275cmp":m}),V=m({"\u0275dir":m}),U=m({"\u0275pipe":m}),B=m({"\u0275mod":m}),q=m({"\u0275loc":m}),z=m({"\u0275fac":m}),G=m({__NG_ELEMENT_ID__:m});class H{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=y({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const W=new H("INJECTOR",-1),$={},Q=/\n/gm,K=m({provide:String,useValue:m});let Y,Z=void 0;function X(t){const e=Z;return Z=t,e}function J(t){const e=Y;return Y=t,e}function tt(t,e=p.Default){if(void 0===Z)throw new Error("inject() must be called from an injection context");return null===Z?rt(t,void 0,e):Z.get(t,e&p.Optional?null:void 0,e)}function et(t,e=p.Default){return(Y||tt)(N(t),e)}const nt=et;function rt(t,e,n){const r=v(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&p.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${k(t)}]`)}function it(t){const e=[];for(let n=0;n<t.length;n++){const r=N(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=p.Default;for(let e=0;e<r.length;e++){const i=r[e];i instanceof h||"Optional"===i.ngMetadataName||i===h?n|=p.Optional:i instanceof f||"SkipSelf"===i.ngMetadataName||i===f?n|=p.SkipSelf:i instanceof d||"Self"===i.ngMetadataName||i===d?n|=p.Self:t=i instanceof l||i===l?i.token:i}e.push(et(t,n))}else e.push(et(r))}return e}class ot{get(t,e=$){if(e===$){const e=new Error(`NullInjectorError: No provider for ${k(t)}!`);throw e.name="NullInjectorError",e}return e}}class st{}class at{}function ut(t,e){for(let n=0;n<t.length;n++)e.push(t[n])}function ct(t,e){t.forEach(t=>Array.isArray(t)?ct(t,e):e(t))}function lt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ht(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dt(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}function ft(t,e,n){let r=mt(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;
8else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function pt(t,e){const n=mt(t,e);if(n>=0)return t[1|n]}function mt(t,e){return function(t,e,n){let r=0,i=t.length>>1;for(;i!==r;){const n=r+(i-r>>1),o=t[n<<1];if(e===o)return n<<1;o>e?i=n:r=n+1}return~(i<<1)}(t,e)}const gt=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),yt=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),bt={},vt=[];let _t=0;function wt(t){return u(()=>{const e=t.type,n=e.prototype,r={},i={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===gt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||vt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||yt.Emulated,id:"c",styles:t.styles||vt,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,s=t.features,a=t.pipes;return i.id+=_t++,i.inputs=kt(t.inputs,r),i.outputs=kt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Et):null,i.pipeDefs=a?()=>("function"==typeof a?a():a).map(St):null,i})}function Et(t){return At(t)||function(t){return t[V]||null}(t)}function St(t){return function(t){return t[U]||null}(t)}const Tt={};function xt(t){const e={type:t.type,bootstrap:t.bootstrap||vt,declarations:t.declarations||vt,imports:t.imports||vt,exports:t.exports||vt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&u(()=>{Tt[t.id]=t.type}),e}function Ct(t,e){return u(()=>{const n=Rt(t,!0);n.declarations=e.declarations||vt,n.imports=e.imports||vt,n.exports=e.exports||vt})}function kt(t,e){if(null==t)return bt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}const Ot=wt;function It(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function At(t){return t[F]||null}function Nt(t,e){return t.hasOwnProperty(z)?t[z]:null}function Rt(t,e){const n=t[B]||null;if(!n&&!0===e)throw new Error(`Type ${k(t)} does not have '\u0275mod' property.`);return n}function Pt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Dt(t){return Array.isArray(t)&&!0===t[1]}function jt(t){return 0!=(8&t.flags)}function Lt(t){return 2==(2&t.flags)}function Mt(t){return 1==(1&t.flags)}function Ft(t){return null!==t.template}function Vt(t){return 0!=(512&t[2])}let Ut=void 0;function Bt(t){Ut=t}function qt(){return void 0!==Ut?Ut:"undefined"!=typeof document?document:void 0}function zt(t){return!!t.listen}const Gt={createRenderer:(t,e)=>qt()};function Ht(t){for(;Array.isArray(t);)t=t[0];return t}function Wt(t,e){return Ht(e[t+19])}function $t(t,e){return Ht(e[t.index])}function Qt(t,e){return t.data[e+19]}function Kt(t,e){return t[e+19]}function Yt(t,e){const n=e[t];return Pt(n)?n:n[0]}function Zt(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Xt(t){return 4==(4&t[2])}function Jt(t){return 128==(128&t[2])}function te(t,e){return null===t||null==e?null:t[e]}function ee(t){t[18]=0}const ne={lFrame:Se(null),bindingsEnabled:!0,checkNoChangesMode:!1};function re(){return ne.bindingsEnabled}function ie(){return ne.lFrame.lView}function oe(){return ne.lFrame.tView}function se(t){ne.lFrame.contextLView=t}function ae(){return ne.lFrame.previousOrParentTNode}function ue(t,e){ne.lFrame.previousOrParentTNode=t,ne.lFrame.isParent=e}function ce(){return ne.lFrame.isParent}
8function le(){ne.lFrame.isParent=!1}function he(){return ne.checkNoChangesMode}function de(t){ne.checkNoChangesMode=t}function fe(){const t=ne.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function pe(){return ne.lFrame.bindingIndex}function me(){return ne.lFrame.bindingIndex++}function ge(t){const e=ne.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ye(t,e){const n=ne.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function be(){return ne.lFrame.currentQueryIndex}function ve(t){ne.lFrame.currentQueryIndex=t}function _e(t,e){const n=Ee();ne.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function we(t,e){const n=Ee(),r=t[1];ne.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function Ee(){const t=ne.lFrame,e=null===t?null:t.child;return null===e?Se(t):e}function Se(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Te(){const t=ne.lFrame;return ne.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const xe=Te;function Ce(){const t=Te();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ke(){return ne.lFrame.selectedIndex}function Oe(t){ne.lFrame.selectedIndex=t}function Ie(){const t=ne.lFrame;return Qt(t.tView,t.selectedIndex)}function Ae(){ne.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Ne(){ne.lFrame.currentNamespace=null}function Re(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 Pe(t,e,n){Le(t,e,3,n)}function De(t,e,n,r){(3&t[2])===n&&Le(t,e,n,r)}function je(t,e){let n=t[2];(3&n)===e&&(n&=1023,n+=1,t[2]=n)}function Le(t,e,n,r){const i=null!=r?r:-1;let o=0;for(let s=void 0!==r?65535&t[18]:0;s<e.length;s++)if("number"==typeof e[s+1]){if(o=e[s],null!=r&&o>=r)break}else e[s]<0&&(t[18]+=65536),(o<i||-1==i)&&(Me(t,n,e,s),t[18]=(4294901760&t[18])+s+2),s++}function Me(t,e,n,r){const i=n[r]<0,o=n[r+1],s=t[i?-n[r]:n[r]];i?t[2]>>10<t[18]>>16&&(3&t[2])===e&&(t[2]+=1024,o.call(s)):o.call(s)}class Fe{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ve(t,e,n){const r=zt(t);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const s=n[i++],a=n[i++],u=n[i++];r?t.setAttribute(e,a,u,s):e.setAttributeNS(s,a,u)}else{const s=o,a=n[++i];Be(s)?r&&t.setProperty(e,s,a):r?t.setAttribute(e,s,a):e.setAttribute(s,a),i++}}return i}function Ue(t){return 3===t||4===t||6===t}function Be(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 i=e[r];"number"==typeof i?n=i:0===n||ze(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function ze(t,e,n,r,i){let o=0,s=t.length;if(-1===e)s=-1;else for(;o<t.length;){const n=t[o++];if("number"==typeof n){if(n===e){s=-1;break}if(n>e){s=o-1;break}}}for(;o<t.length;){const e=t[o];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function Ge(t){return-1!==t}function He(t){return 32767&t}function We(t){return t>>16}function $e(t,e){let n=We(t),r=e;for(;n>0;)r=r[15],n--;return r}function Qe(t){return"string"==typeof t?t:null==t?"":""+t}function Ke(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.n
8ame||t.type.toString():Qe(t)}const Ye=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(M))();function Ze(t){return t instanceof Function?t():t}let Xe=!0;function Je(t){const e=Xe;return Xe=t,e}let tn=0;function en(t,e){const n=rn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,nn(r.data,t),nn(e,null),nn(r.blueprint,null));const i=on(t,e),o=t.injectorIndex;if(Ge(i)){const t=He(i),n=$e(i,e),r=n[1].data;for(let i=0;i<8;i++)e[o+i]=n[t+i]|r[t+i]}return e[o+8]=i,o}function nn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function rn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function on(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 sn(t,e,n){!function(t,e,n){let r="string"!=typeof n?n[G]:n.charCodeAt(0)||0;null==r&&(r=n[G]=tn++);const i=255&r,o=1<<i,s=64&i,a=32&i,u=e.data;128&i?s?a?u[t+7]|=o:u[t+6]|=o:a?u[t+5]|=o:u[t+4]|=o:s?a?u[t+3]|=o:u[t+2]|=o:a?u[t+1]|=o:u[t]|=o}(t,e,n)}function an(t,e,n,r=p.Default,i){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[G];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof i){_e(e,t);try{const t=i();if(null!=t||r&p.Optional)return t;throw new Error(`No provider for ${Ke(n)}!`)}finally{xe()}}else if("number"==typeof i){if(-1===i)return new pn(t,e);let o=null,s=rn(t,e),a=-1,u=r&p.Host?e[16][6]:null;for((-1===s||r&p.SkipSelf)&&(a=-1===s?on(t,e):e[s+8],fn(r,!1)?(o=e[1],s=He(a),e=$e(a,e)):s=-1);-1!==s;){a=e[s+8];const t=e[1];if(dn(i,s,t.data)){const t=cn(s,e,n,o,r,u);if(t!==un)return t}fn(r,e[1].data[s+8]===u)&&dn(i,s,e)?(o=t,s=He(a),e=$e(a,e)):s=-1}}}if(r&p.Optional&&void 0===i&&(i=null),0==(r&(p.Self|p.Host))){const t=e[9],o=J(void 0);try{return t?t.get(n,i,r&p.Optional):rt(n,i,r&p.Optional)}finally{J(o)}}if(r&p.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${Ke(n)}]`)}const un={};function cn(t,e,n,r,i,o){const s=e[1],a=s.data[t+8],u=ln(a,s,n,null==r?Lt(a)&&Xe:r!=s&&3===a.type,i&p.Host&&o===a);return null!==u?hn(e,s,u,a):un}function ln(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=65535&o,u=t.directiveStart,c=o>>16,l=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h<l;h++){const t=s[h];if(h<u&&n===t||h>=u&&t.type===n)return h}if(i){const t=s[u];if(t&&Ft(t)&&t.type===n)return u}return null}function hn(t,e,n,r){let i=t[n];const o=e.data;if(i instanceof Fe){const s=i;if(s.resolving)throw new Error(`Circular dep for ${Ke(o[n])}`);const a=Je(s.canSeeViewProviders);let u;s.resolving=!0,s.injectImpl&&(u=J(s.injectImpl)),_e(t,r);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{onChanges:r,onInit:i,doCheck:o}=e;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{s.injectImpl&&J(u),Je(a),s.resolving=!1,xe()}}return i}function dn(t,e,n){const r=64&t,i=32&t;let o;return o=128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(o&1<<t)}function fn(t,e){return!(t&p.Self||t&p.Host&&e)}class pn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return an(this._tNode,this._lView,t,void 0,e)}}function mn(t){return u(()=>{const e=Object.getPrototypeOf(t.prototype).constructor,n=e[z]||function t(e){const n=e;if(R(e))return()=>{const e=t(N(n));return e?e():null};let r=Nt(n);if(null===r){const t=w(n);r=t&&t.factory}return r||null}(e);return null!==n?n:t=>new t})}function gn(t){return t.ngDebugContext}function yn(t){return t.ngOriginalError}function bn(t,...e){t.error(...e)}class vn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||bn}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?gn(t)?gn(t):this._findContext(yn(t)):null}_findOriginalError(t){let e=yn(t);for(;e&&yn(e);)e=yn(e);return e}}class _n{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class wn extends _n{getTypeName(){return"HTML"}}class En extends _n{getTypeName(){return"Style"}}
8class Sn extends _n{getTypeName(){return"Script"}}class Tn extends _n{getTypeName(){return"URL"}}class xn extends _n{getTypeName(){return"ResourceURL"}}function Cn(t){return t instanceof _n?t.changingThisBreaksApplicationSecurity:t}function kn(t,e){const n=On(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 On(t){return t instanceof _n&&t.getTypeName()||null}function In(t){return new wn(t)}function An(t){return new En(t)}function Nn(t){return new Sn(t)}function Rn(t){return new Tn(t)}function Pn(t){return new xn(t)}let Dn=!0,jn=!1;function Ln(){return jn=!0,Dn}function Mn(){if(jn)throw new Error("Cannot enable prod mode after platform setup.");Dn=!1}class Fn{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(r){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(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}}getInertBodyElement_InertDocument(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 Vn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Un=/^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 Bn(t){return(t=String(t)).match(Vn)||t.match(Un)?t:(Ln()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function qn(t){return(t=String(t)).split(",").map(t=>Bn(t.trim())).join(", ")}function zn(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Gn(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Hn=zn("area,br,col,hr,img,wbr"),Wn=zn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$n=zn("rp,rt"),Qn=Gn($n,Wn),Kn=Gn(Hn,Gn(Wn,zn("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")),Gn($n,zn("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")),Qn),Yn=zn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zn=zn("srcset"),Xn=Gn(Yn,Zn,zn("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"),zn("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")),Jn=zn("script,style,template");class tr{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(!Kn.hasOwnProperty(e))return this.sanitizedSomething=!0,!Jn.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,i=e.toLowerCase();if(!Xn.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=t.value;Yn[i]&&(o=Bn(o)),Zn[i]&&(o=qn(o)),this.buf.push(" ",e,'="',rr(o),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Kn.hasOwnProperty(e)&&!Hn.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(rr(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 er=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nr=/([^\#-~ |!])/g;function rr(t){return t.replace(/&/g,"&").replace(er,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(nr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let ir;function or(t,e){let n=null;try{ir=ir||new Fn(t);let r=e?String(e):"";n=ir.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ir.getInertBodyElement(r)}while(r!==o);const s=new tr,a=s.sanitizeChildren(sr(n)||n);return Ln()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=sr(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function sr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const ar=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),ur=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),cr=/^url\(([^)]+)\)$/;function lr(t){if(!(t=String(t).trim()))return"";const e=t.match(cr);return e&&Bn(e[1])===e[1]||t.match(ur)&&function(t){let e=!0,n=!0;for(let r=0;r<t.length;r++){const i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(Ln()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}function hr(t){const e=gr();return e?e.sanitize(ar.HTML,t)||"":kn(t,"HTML")?Cn(t):or(qt(),Qe(t))}function dr(t){const e=gr();return e?e.sanitize(ar.STYLE,t)||"":kn(t,"Style")?Cn(t):lr(Qe(t))}function fr(t){const e=gr();
8return e?e.sanitize(ar.URL,t)||"":kn(t,"URL")?Cn(t):Bn(Qe(t))}function pr(t){const e=gr();if(e)return e.sanitize(ar.RESOURCE_URL,t)||"";if(kn(t,"ResourceURL"))return Cn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}const mr=function(t,e,n){if(void 0===e&&void 0===n)return dr(t);let r=!0;return 1&(n=n||3)&&(r=function(t){return"background-image"===t||"backgroundImage"===t||"background"===t||"border-image"===t||"borderImage"===t||"border-image-source"===t||"borderImageSource"===t||"filter"===t||"list-style"===t||"listStyle"===t||"list-style-image"===t||"listStyleImage"===t||"clip-path"===t||"clipPath"===t}(t)),2&n?r?dr(e):Cn(e):r};function gr(){const t=ie();return t&&t[12]}function yr(t,e){t.__ngContext__=e}function br(t){throw new Error(`Multiple components match node with tagname ${t.tagName}`)}function vr(){throw new Error("Cannot mix multi providers and regular providers")}function _r(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===r||t.charCodeAt(i+n)<=32)return i}n=i+1}}function wr(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];
vendor: 1,230 bytes, line 8
8if(n&&"class"===i){if(i=t[r],-1!==_r(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function Er(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function Sr(t,e,n){let r=4;const i=t.attrs||[],o=function(t){for(let e=0;e<t.length;e++)if(Ue(t[e]))return e;return t.length}(i);let s=!1;for(let a=0;a<e.length;a++){const u=e[a];if("number"!=typeof u){if(!s)if(4&r){if(r=2|1&r,""!==u&&!Er(t,u,n)||""===u&&1===e.length){if(Tr(r))return!1;s=!0}}else{const c=8&r?u:e[++a];if(8&r&&null!==t.attrs){if(!wr(t.attrs,c,n)){if(Tr(r))return!1;s=!0}continue}const l=xr(8&r?"class":u,i,0==t.type&&"ng-template"!==t.tagName,n);if(-1===l){if(Tr(r))return!1;s=!0;continue}if(""!==c){let t;t=l>o?"":i[l+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==_r(e,c,0)||2&r&&c!==t){if(Tr(r))return!1;s=!0}}}}else{if(!s&&!Tr(r)&&!Tr(u))return!1;if(s&&Tr(u))continue;s=!1,r=u|1&r}}return Tr(r)||s}function Tr(t){return 0==(1&t)}function xr(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let n=!1;for(;i<e.length;){const r=e[i];if(r===t)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===r)break;
8if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){if(t[n]===e)return n;n++}return-1}(e,t)}function Cr(t,e,n=!1){for(let r=0;r<e.length;r++)if(Sr(t,e[r],n))return!0;return!1}function kr(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 Or(t,e){return t?":not("+e.trim()+")":e}function Ir(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&r){const e=t[++n];i+="["+s+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||Tr(s)||(e+=Or(o,i),i=""),r=s,o=o||!Tr(r);n++}return""!==i&&(e+=Or(o,i)),e}const Ar={};function Nr(t){const e=t[3];return Dt(e)?e[3]:e}function Rr(t){Pr(oe(),ie(),ke()+t,he())}function Pr(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&Pe(e,r,n)}else{const r=t.preOrderHooks;null!==r&&De(e,r,0,n)}Oe(n)}const Dr={marker:"element"},jr={marker:"comment"};function Lr(t,e){return t<<17|e<<2}function Mr(t){return t>>17&32767}function Fr(t){return 2|t}function Vr(t){return(131068&t)>>2}function Ur(t,e){return-131069&t|e<<2}function Br(t){return 1|t}function qr(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const n=t.data[o];ve(i),n.contentQueries(2,e[o],o)}}}function zr(t,e,n){return zt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Gr(t,e,n,r,i,o,s,a,u,c){const l=e.blueprint.slice();return l[0]=i,l[2]=140|r,ee(l),l[3]=l[15]=t,l[8]=n,l[10]=s||t&&t[10],l[11]=a||t&&t[11],l[12]=u||t&&t[12]||null,l[9]=c||t&&t[9]||null,l[6]=o,l[16]=2==e.type?t[16]:l,l}function Hr(t,e,n,r,i,o){const s=n+19,a=t.data[s]||function(t,e,n,r,i,o){const s=ae(),a=ce(),u=a?s:s&&s.parent,c=t.data[n]=ei(0,u&&u!==e?u:null,r,n,i,o);return null===t.firstChild&&(t.firstChild=c),s&&(!a||null!=s.child||null===c.parent&&2!==s.type?a||(s.next=c):s.child=c),c}(t,e,s,r,i,o);return ue(a,!0),a}function Wr(t,e,n){we(e,e[6]);try{const r=t.viewQuery;null!==r&&xi(1,r,n);const i=t.template;null!==i&&Kr(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&qr(t,e),t.staticViewQueries&&xi(2,t.viewQuery,n);const o=t.components;null!==o&&function(t,e){for(let n=0;n<e.length;n++)_i(t,e[n])}(e,o)}finally{e[2]&=-5,Ce()}}function $r(t,e,n,r){const i=e[2];if(256==(256&i))return;we(e,e[6]);const o=he();try{ee(e),ne.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Kr(t,e,n,2,r);const s=3==(3&i);if(!o)if(s){const n=t.preOrderCheckHooks;null!==n&&Pe(e,n,null)}else{const n=t.preOrderHooks;null!==n&&De(e,n,0,null),je(e,0)}if(function(t){let e=t[13];for(;null!==e;){let n;if(Dt(e)&&(n=e[2])>>1==-1){for(let t=9;t<e.length;t++){const n=e[t],r=n[1];Jt(n)&&$r(r,n,r.template,n[8])}0!=(1&n)&&bi(e,t[16])}e=e[4]}}(e),null!==t.contentQueries&&qr(t,e),!o)if(s){const n=t.contentCheckHooks;null!==n&&Pe(e,n)}else{const n=t.contentHooks;null!==n&&De(e,n,1),je(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,i=-1,o=-1;for(let t=0;t<n.length;t++){const s=n[t];"number"==typeof s?s<=0?(o=0-s,Oe(o),r+=9+n[++t],i=r):r+=s:(null!==s&&(ye(r,i),s(2,e[i])),i++)}}}finally{Oe(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)vi(t,e[n])}(e,a);const u=t.viewQuery;if(null!==u&&xi(2,u,r),!o)if(s){const n=t.viewCheckHooks;null!==n&&Pe(e,n)}else{const n=t.viewHooks;null!==n&&De(e,n,2),je(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73)}finally{Ce()}}function Qr(t,e,n,r){const i=e[10],o=!he(),s=Xt(e);try{o&&!s&&i.begin&&i.begin(),s&&Wr(t,e,r),$r(t,e,n,r)}finally{o&&!s&&i.end&&i.end()}}function Kr(t,e,n,r,i){const o=ke();try{Oe(-1),2&r&&e.length>19&&Pr(t,e,0,he()),n(r,i)}finally{Oe(o)}}function Yr(t,e,n){if(jt(e)){const r=e.directiveEnd;for(let i=e.directiveStart;i<r;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}function Zr(t,e,n){re()&&(function(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||en(n,e),yr(r,e);const s=n.initialInputs;for(let a=i;a<o;a++){const r=t.data[a],o=Ft(r);o&&fi(e,n,r);const u=hn(e,t,a,n);yr(u,e),null!==s&&mi(0,a-i,u,r,0,s),o&&(Yt(n.index,e)[8]=u)}}(t,e,n,$t(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,i=n.directiveEnd,o=t.expandoInstructions,s=t.firstCreatePass,a=n.index-19;try{Oe(a);for(let n=r;n<i;n++){const r=t.data[n],i=e[n];null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?ai(r,i):s&&o.push(null)}}finally{Oe(-1)}}(t,e,n))}function Xr(t,e,n=$t){const r=e.localNames;if(null!==r){let i=e.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(e,t):t[s];t[i++]=a}}}
8function Jr(t){return t.tView||(t.tView=ti(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts))}function ti(t,e,n,r,i,o,s,a,u,c){const l=19+r,h=l+i,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:Ar);return n}(l,h);return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,l),bindingStartIndex:l,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 o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:u,consts:c}}function ei(t,e,n,r,i,o){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:o,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,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ni(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function ri(t,e,n,r,i,o,s,a){const u=$t(e,n);let c,l=e.inputs;!a&&null!=l&&(c=l[r])?(Ni(t,n,c,r,i),Lt(e)&&function(t,e){const n=Yt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(r=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),i=null!=s?s(i,e.tagName||"",r):i,zt(o)?o.setProperty(u,r,i):Be(r)||(u.setProperty?u.setProperty(r,i):u[r]=i))}function ii(t,e,n,r){let i=!1;if(re()){const o=function(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];Cr(n,s.selectors,!1)&&(i||(i=[]),sn(en(n,e),t,s.type),Ft(s)?(2&n.flags&&br(n),ci(t,n),i.unshift(s)):i.push(s))}return i}(t,e,n),s=null===r?null:{"":-1};if(null!==o){let r=0;i=!0,hi(n,t.data.length,o.length);for(let t=0;t<o.length;t++){const e=o[t];e.providersResolver&&e.providersResolver(e)}ui(t,n,o.length);let a=!1,u=!1;for(let i=0;i<o.length;i++){const c=o[i];n.mergedAttrs=qe(n.mergedAttrs,c.hostAttrs),di(t,e,c),li(t.data.length-1,c,s),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128),!a&&(c.onChanges||c.onInit||c.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-19),a=!0),u||!c.onChanges&&!c.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-19),u=!0),oi(t,c),r+=c.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,i=e.attrs,o=[];let s=null,a=null;for(let u=e.directiveStart;u<n;u++){const t=r[u],e=t.inputs;o.push(null!==i?gi(e,i):null),s=ni(e,u,s),a=ni(t.outputs,u,a)}null!==s&&(s.hasOwnProperty("class")&&(e.flags|=16),s.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=s,e.outputs=a}(t,n),si(t,e,r)}s&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new Error(`Export of name '${e[t+1]}' not found!`);r.push(e[t],i)}}}(n,r,s)}return n.mergedAttrs=qe(n.mergedAttrs,n.attrs),i}function oi(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function si(t,e,n){for(let r=0;r<n;r++)e.push(Ar),t.blueprint.push(Ar),t.data.push(null)}function ai(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function ui(t,e,n){const r=19-e.index,i=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,i,n)}function ci(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function li(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ft(e)&&(n[""]=t)}}function hi(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function di(t,e,n){t.data.push(n);const r=n.factory||(n.factory=Nt(n.type)),i=new Fe(r,Ft(n),null);t.blueprint.push(i),e.push(i)}function fi(t,e,n){const r=$t(e,t),i=Jr(n),o=t[10],s=wi(t,Gr(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n)));t[e.index]=s}function pi(t,e,n,r,i,o){const s=$t(t,e),a=e[11];if(null==r)zt(a)?a.removeAttribute(s,n,o):s.removeAttribute(n);else{const e=null==i?Qe(r):i(r,t.tagName||"",n);zt(a)?a.setAttribute(s,n,e,o):o?s.setAttributeNS(o,n,e):s.setAttribute(n,e)}}function mi(t,e,n,r,i,o){const s=o[e];if(null!==s){const t=r.setInput;for(let e=0;e<s.length;){const i=s[e++],o=s[e++],a=s[e++];null!==t?r.setInput(n,a,i,o):n[o]=a}}}function gi(t,e){let n=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function yi(t,e,n,r){return new Array(t,!0,-2,e,null,null,r,n,null)}function bi(t,e){const n=t[5];for(let r=0;r<n.length;r++){const t=n[r],i=t[3][3][16];if(i!==e&&0==(16&i[2])){const e=t[1];$r(e,t,e.template,t[8])}}}function vi(t,e){const n=Yt(e,t);if(Jt(n)&&80&n[2]){const t=n[1];$r(t,n,t.template,n[8])}}function _i(t,e){const n=Yt(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),Wr(r,n,n[8])}function wi(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Ei(t){for(;t;){t[2]|=64;const e=Nr(t);if(Vt(t)&&!e)return t;t=e}return null}function Si(t,e,n){const r=e[10];r.begin&&r.begin();try{$r(t,e,t.template,n)}catch(i){throw Ai(e,i),i}finally{r.end&&r.end()}}function Ti(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Zt(n),i=r[1];Qr(i,r,i.template,n)}}(t[8])}function xi(t,e,n){ve(0),e(t,n)}const Ci=(()=>Promise.resolve(null))();function ki(t){return t[7]||(t[7]=[])}function Oi(t){return t.cleanup||(t.cleanup=[])}function Ii(t,e){return function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[t.index])[11]}function Ai(t,e){const n=t[9],r=n?n.get(vn,null):null;r&&r.handleError(e)}function Ni(t,e,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],u=e[s],c=t.data[s];null!==c.setInput?c.setInput(u,i,r,a):u[a]=i}}function Ri(t,e,n){const r=Wt(e,t),i=t[11];zt(i)?i.setValue(r,n):r.textContent=n}function Pi(t,e){const n=e[3];return-1===t.index?Dt(n)?n:null:n}function Di(t,e){const n=Pi(t,e);return n?$i(e[11],n[7]):null}function ji(t,e,n,r,i){if(null!=r){let o,s=!1;Dt(r)?o=r:Pt(r)&&(s=!0,r=r[0]);const a=Ht(r);0===t&&null!==n?null==i?Hi(e,n,a):Gi(e,n,a,i||null):1===t&&null!==n?Gi(e,n,a,i||null):2===t?Zi(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,r,i){const o=n[7];o!==Ht(n)&&ji(e,t,r,o,i);for(let s=9;s<n.length;s++){const i=n[s];Ji(i[1],i,t,e,r,o)}}(e,t,o,n,i)}}function Li(t,e){return zt(e)?e.createText(t):e.createTextNode(t)}function Mi(t,e,n,r){const i=Di(t.node,e);i&&Ji(t,e,e[11],n?1:2,i,r)}function Fi(t,e){const n=t[5],r=n.indexOf(e);n.splice(r,1)}function Vi(t,e){if(t.length<=9)return;const n=9+e,r=t[n];if(r){const i=r[17];null!==i&&i!==t&&Fi(i,r),e>0&&(t[n-1][4]=r[4]);const o=ht(t,9+e);Mi(r[1],r,!1,null);const s=o[5];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Ui(t,e){if(!(256&e[2])){const n=e[11];zt(n)&&n.destroyNode&&Ji(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return qi(t[1],t);for(;e;){let n=null;if(Pt(e))n=e[13];else{const t=e[9];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Pt(e)&&qi(e[1],e),e=Bi(e,t);null===e&&(e=t),Pt(e)&&qi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Bi(t,e){let n;return Pt(t)&&(n=t[6])&&2===n.type?Pi(n,t):t[3]===e?null:t[3]}function qi(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;
8r+=2){const t=e[n[r]];t instanceof Fe||n[r+1].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 i=n[r+1],o="function"==typeof i?i(e):Ht(e[i]),s=t[n[r+2]],a=n[r+3];"boolean"==typeof a?o.removeEventListener(n[r],s,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&&zt(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&Dt(e[3])){r!==e[3]&&Fi(r,e);const n=e[5];null!==n&&n.detachView(t)}}}function zi(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?Di(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return $t(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==yt.ShadowDom&&n!==yt.Native)return null}return $t(r,n)}function Gi(t,e,n,r){zt(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Hi(t,e,n){zt(t)?t.appendChild(e,n):e.appendChild(n)}function Wi(t,e,n,r){null!==r?Gi(t,e,n,r):Hi(t,e,n)}function $i(t,e){return zt(t)?t.parentNode(e):e.parentNode}function Qi(t,e){if(2===t.type){const n=Pi(t,e);return null===n?null:Yi(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?$t(t,e):null}function Ki(t,e,n,r){const i=zi(t,r,e);if(null!=i){const t=e[11],o=Qi(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Wi(t,i,n[e],o);else Wi(t,i,n,o)}}function Yi(t,e){const n=9+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return function t(e,n){if(null!==n){const r=n.type;if(3===r)return $t(n,e);if(0===r)return Yi(-1,e[n.index]);if(4===r||5===r){const r=n.child;if(null!==r)return t(e,r);{const t=e[n.index];return Dt(t)?Yi(-1,t):Ht(t)}}{const r=e[16],i=r[6],o=Nr(r),s=i.projection[n.projection];return null!=s?t(o,s):t(e,n.next)}}return null}(t,r)}return e[7]}function Zi(t,e,n){const r=$i(t,e);r&&function(t,e,n,r){zt(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}function Xi(t,e,n,r,i,o,s){for(;null!=n;){const a=r[n.index],u=n.type;s&&0===e&&(a&&yr(Ht(a),r),n.flags|=4),64!=(64&n.flags)&&(4===u||5===u?(Xi(t,e,n.child,r,i,o,!1),ji(e,t,i,a,o)):1===u?eo(t,e,r,n,i,o):ji(e,t,i,a,o)),n=s?n.projectionNext:n.next}}function Ji(t,e,n,r,i,o){Xi(n,r,t.node.child,e,i,o,!1)}function to(t,e,n){eo(e[11],0,e,n,zi(t,n,e),Qi(n.parent||e[6],e))}function eo(t,e,n,r,i,o){const s=n[16],a=s[6].projection[r.projection];if(Array.isArray(a))for(let u=0;u<a.length;u++)ji(e,t,i,a[u],o);else Xi(t,e,a,s[3],i,o,!0)}function no(t,e,n){zt(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function ro(t,e,n){zt(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class io{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,r,i,o=!1){for(;null!==r;){const s=n[r.index];if(null!==s&&i.push(Ht(s)),Dt(s))for(let e=9;e<s.length;e++){const n=s[e],r=n[1].firstChild;null!==r&&t(n[1],n,r,i)}const a=r.type;if(4===a||5===a)t(e,n,r.child,i);else if(1===a){const e=n[16],o=e[6],s=Nr(e);let a=o.projection[r.projection];null!==a&&null!==s&&t(s[1],s,a,i,!0)}r=o?r.projectionNext:r.next}return i}(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}Ui(this._lView[1],this._lView)}onDestroy(t){var e,n,r;e=this._lView[1],r=t,ki(n=this._lView).push(r),e.firstCreatePass&&Oi(e).push(n[7].length-1,null)}markForCheck(){Ei(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Si(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){de(!0);try{Si(t,e,n)}finally{de(!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!");
8this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ji(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 oo extends io{constructor(t){super(t),this._view=t}detectChanges(){Ti(this._view)}checkNoChanges(){!function(t){de(!0);try{Ti(t)}finally{de(!1)}}(this._view)}get context(){return null}}let so,ao,uo;function co(t,e,n){return so||(so=class extends t{}),new so($t(e,n))}function lo(t,e,n,r){return ao||(ao=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=Gr(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[5];null!==r&&(n[5]=r.createEmbeddedView(e)),Wr(e,n,t);const i=new io(n);return i._tViewNode=n[6],i}}),0===n.type?new ao(r,n,co(e,n,r)):null}function ho(t,e,n,r){let i;uo||(uo=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return co(e,this._hostTNode,this._hostView)}get injector(){return new pn(this._hostTNode,this._hostView)}get parentInjector(){const t=on(this._hostTNode,this._hostView),e=$e(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=We(t),i=e,o=e[6];for(;r>1;)i=i[15],o=i[6],r--;return o}(t,this._hostView,this._hostTNode);return Ge(t)&&null!=n?new pn(n,e):new pn(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-9}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){const t=o.get(st,null);t&&(i=t)}const s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}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(),Dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new uo(e,e[6],e[3]);r.detach(r.indexOf(t))}}const i=this._adjustIndex(e);return function(t,e,n,r){const i=9+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-9?(e[4]=n[i],lt(n,9+r,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[5],r=e[3][3][16];16!=(16&r[2])&&e[16]!==r&&(t[2]|=1),null===n?t[5]=[e]:n.push(e)}(s,e);const a=e[5];null!==a&&a.insertView(t),e[2]|=128}(r,n,this._lContainer,i),Mi(r,n,!0,Yi(i,this._lContainer)),t.attachToViewContainerRef(this),lt(this._lContainer[8],i,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=Vi(t,e);n&&Ui(n[1],n)})(this._lContainer,e),ht(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Vi(this._lContainer,e);return n&&null!=ht(this._lContainer[8],e)?new io(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const o=r[n.index];if(Dt(o))i=o,function(t,e){t[2]=-2}(i);else{let t;if(4===n.type)t=Ht(o);else if(t=r[11].createComment(""),Vt(r)){const e=r[11],i=$t(n,r);Gi(e,$i(e,i),t,function(t,e){return zt(t)?t.nextSibling(e):e.nextSibling}(e,i))}else Ki(r[1],r,t,n);r[n.index]=i=yi(o,r,t,n),wi(r,i)}return new uo(i,n,r)}function fo(t=!1){return function(t,e,n){if(!n&&Lt(t)){const n=Yt(t.index,e);return new io(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new io(e[16],e):null}(ae(),ie(),t)}let po=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>mo(),t})();const mo=fo,go=new H("Set Injector scope."),yo={},bo={},vo=[];let _o=void 0;function wo(){return void 0===_o&&(_o=new ot),_o}function Eo(t,e=null,n=null,r){return new So(t,n,e||wo(),r)}class So{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 i=[];e&&ct(e,n=>this.processProvider(n,t,e)),ct([t],t=>this.processInjectorType(t,[],i)),this.records.set(W,Co(void 0,this));const o=this.records.get(go);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:k(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=$,n=p.Default){this.assertNotDestroyed();const r=X(this);try{if(!(n&p.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof H)&&v(t);e=n&&this.injectableDefInScope(n)?Co(To(t),yo):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&p.Self?wo():this.parent).get(t,e=n&p.Optional&&e===$?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(k(t)),r)throw o;return function(t,e,n,r){const i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=k(e);if(Array.isArray(e))i=e.map(k).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];
8t.push(n+":"+("string"==typeof r?JSON.stringify(r):k(r)))}i=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Q,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{X(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(k(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=N(t)))return!1;let r=w(t);const i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=-1!==n.indexOf(o);if(void 0!==i&&(r=w(i)),null==r)return!1;if(null!=r.imports&&!s){let t;n.push(o);try{ct(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];ct(r,t=>this.processProvider(t,n,r||vo))}}this.injectorDefTypes.add(o),this.records.set(o,Co(r.factory,yo));const a=r.providers;if(null!=a&&!s){const e=t;ct(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let r=Oo(t=N(t))?t:N(t&&t.provide);const i=function(t,e,n){return ko(t)?Co(void 0,t.useValue):Co(xo(t,e,n),yo)}(t,e,n);if(Oo(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&vr()}else{let e=this.records.get(r);e?void 0===e.multi&&vr():(e=Co(void 0,yo,!0),e.factory=()=>it(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,i)}hydrate(t,e){var n;return e.value===bo?function(t){throw new Error(`Cannot instantiate cyclic dependency! ${t}`)}(k(t)):e.value===yo&&(e.value=bo,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 To(t){const e=v(t),n=null!==e?e.factory:Nt(t);if(null!==n)return n;const r=w(t);if(null!==r)return r.factory;if(t instanceof H)throw new Error(`Token ${k(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=dt(e,"?");throw new Error(`Can't resolve all parameters for ${k(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[E]||t[x]||t[T]&&t[T]());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.\n`+`This will become an error in v10. 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 xo(t,e,n){let r=void 0;if(Oo(t)){const e=N(t);return Nt(e)||To(e)}if(ko(t))r=()=>N(t.useValue);else if((i=t)&&i.useFactory)r=()=>t.useFactory(...it(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>et(N(t.useExisting));else{const i=N(t&&(t.useClass||t.provide));if(i||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 '${k(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return Nt(i)||To(i);r=()=>new i(...it(t.deps))}var i;return r}function Co(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ko(t){return null!==t&&"object"==typeof t&&K in t}function Oo(t){return"function"==typeof t}const Io=function(t,e,n){return function(t,e=null,n=null,r){const i=Eo(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let Ao=(()=>{class t{static create(t,e){return Array.isArray(t)?Io(t,e,""):Io(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=$,t.NULL=new ot,t.\u0275prov=y({token:t,providedIn:"any",factory:()=>et(W)}),t.__NG_ELEMENT_ID__=-1,t})();const No=new H("AnalyzeForEntryComponents");let Ro=new Map;const Po=new Set;function Do(t){return"string"==typeof t?t:t.text()}function jo(t,e){let n=t.styles,r=t.classes,i=0;for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?i=t:1==i?r=O(r,t):2==i&&(n=O(n,t+": "+e[++o]+";"))}null!==n&&(t.styles=n),null!==r&&(t.classes=r)}let Lo=null;function Mo(){if(!Lo){const t=M.Symbol;if(t&&t.iterator)Lo=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&&(Lo=n)}}}return Lo}function Fo(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}class Vo{constructor(t){this.wrapped=t}static wrap(t){return new Vo(t)}static unwrap(t){return Vo.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Vo}}function Uo(t){return!!Bo(t)&&(Array.isArray(t)||!(t instanceof Map)&&Mo()in t)}function Bo(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function qo(t,e,n){return t[e]=n}function zo(t,e){return t[e]}function Go(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Ho(t,e,n,r){const i=Go(t,e,n);return Go(t,e+1,r)||i}function Wo(t,e,n,r){const i=ie();return Go(i,me(),e)&&(oe(),pi(Ie(),i,t,e,n,r)),Wo}function $o(t,e,n,r){return Go(t,me(),n)?e+Qe(n)+r:Ar}function Qo(t,e,n,r,i,o,s,a){const u=ie(),c=oe(),l=t+19,h=c.firstCreatePass?function(t,e,n,r,i,o,s,a,u){const c=e.consts,l=Hr(e,n[6],t,0,s||null,te(c,a));ii(e,n,l,te(c,u)),Re(e,l);
8const h=l.tViews=ti(2,-1,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=ei(0,null,2,-1,null,null);return d.injectorIndex=l.injectorIndex,h.node=d,null!==e.queries&&(e.queries.template(e,l),h.queries=e.queries.embeddedTView(l)),l}(t,c,u,e,n,r,i,o,s):c.data[l];ue(h,!1);const d=u[11].createComment("");Ki(c,u,d,h),yr(d,u),wi(u,u[l]=yi(d,u,d,h)),Mt(h)&&Zr(c,u,h),null!=s&&Xr(u,h,a)}function Ko(t){return Kt(ne.lFrame.contextLView,t)}function Yo(t,e=p.Default){const n=ie();return null==n?et(t,e):an(ae(),n,N(t),e)}function Zo(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 i=n[r];if(Ue(i))break;if(0===i)r+=2;else if("number"==typeof i)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(i===e)return n[r+1];r+=2}}}return null}(ae(),t)}function Xo(){throw new Error("invalid")}function Jo(t,e,n){const r=ie();return Go(r,me(),e)&&ri(oe(),Ie(),r,t,e,r[11],n,!1),Jo}function ts(t,e,n,r,i){const o=i?"class":"style";Ni(t,n,e.inputs[o],o,r)}function es(t,e,n,r){const i=ie(),o=oe(),s=19+t,a=i[11],u=i[s]=zr(e,a,ne.lFrame.currentNamespace),c=o.firstCreatePass?function(t,e,n,r,i,o,s){const a=e.consts,u=te(a,o),c=Hr(e,n[6],t,3,i,u);return ii(e,n,c,te(a,s)),null!==c.mergedAttrs&&jo(c,c.mergedAttrs),null!==e.queries&&e.queries.elementStart(e,c),c}(t,o,i,0,e,n,r):o.data[s];ue(c,!0);const l=c.mergedAttrs;null!==l&&Ve(a,u,l);const h=c.classes;null!==h&&ro(a,u,h);const d=c.styles;null!==d&&no(a,u,d),Ki(o,i,u,c),0===ne.lFrame.elementDepthCount&&yr(u,i),ne.lFrame.elementDepthCount++,Mt(c)&&(Zr(o,i,c),Yr(o,c,i)),null!==r&&Xr(i,c)}function ns(){let t=ae();ce()?le():(t=t.parent,ue(t,!1));const e=t;ne.lFrame.elementDepthCount--;const n=oe();n.firstCreatePass&&(Re(n,t),jt(t)&&n.queries.elementEnd(t)),null!==e.classes&&function(t){return 0!=(16&t.flags)}(e)&&ts(n,e,ie(),e.classes,!0),null!==e.styles&&function(t){return 0!=(32&t.flags)}(e)&&ts(n,e,ie(),e.styles,!1)}function rs(t,e,n,r){es(t,e,n,r),ns()}function is(t,e,n){const r=ie(),i=oe(),o=t+19,s=i.firstCreatePass?function(t,e,n,r,i){const o=e.consts,s=te(o,r),a=Hr(e,n[6],t,4,"ng-container",s);return null!==s&&jo(a,s),ii(e,n,a,te(o,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,i,r,e,n):i.data[o];ue(s,!0);const a=r[o]=r[11].createComment("");Ki(i,r,a,s),yr(a,r),Mt(s)&&(Zr(i,r,s),Yr(i,s,r)),null!=n&&Xr(r,s)}function os(){let t=ae();const e=oe();ce()?le():(t=t.parent,ue(t,!1)),e.firstCreatePass&&(Re(e,t),jt(t)&&e.queries.elementEnd(t))}function ss(t,e,n){is(t,e,n),os()}function as(){return ie()}function us(t){return!!t&&"function"==typeof t.then}function cs(t){return!!t&&"function"==typeof t.subscribe}function ls(t,e,n=!1,r){const i=ie(),o=oe(),s=ae();return ds(o,i,i[11],s,t,e,n,r),ls}function hs(t,e,n=!1,r){const i=ae(),o=ie(),s=Ii(i,o);return ds(oe(),o,s,i,t,e,n,r),hs}function ds(t,e,n,r,i,o,s=!1,a){const u=Mt(r),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),l=ki(e);let h=!0;if(3===r.type){const d=$t(r,e),f=a?a(d):bt,p=f.target||d,m=l.length,g=a?t=>a(Ht(t[r.index])).target:r.index;if(zt(n)){let s=null;if(!a&&u&&(s=function(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const t=i[o];if(t===n&&i[o+1]===r){const t=e[7],n=i[o+2];return t.length>n?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,i,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,h=!1;else{o=ps(r,e,o,!1);const t=n.listen(f.name||p,i,o);l.push(o,t),c&&c.push(i,g,m,m+1)}}else o=ps(r,e,o,!0),p.addEventListener(i,o,s),l.push(o),c&&c.push(i,g,m,s)}const d=r.outputs;let f;if(h&&null!==d&&(f=d[i])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(o),s=l.length;l.push(o,t),c&&c.push(i,r.index,s,-(s+1))}}}function fs(t,e,n){try{return!1!==e(n)}catch(r){return Ai(t,r),!1}}function ps(t,e,n,r){return function i(o){if(o===Function)return n;const s=2&t.flags?Yt(t.index,e):e;0==(32&e[2])&&Ei(s);let a=fs(e,n,o),u=i.__ngNextListenerFn__;for(;u;)a=fs(e,u,o)&&a,u=u.__ngNextListenerFn__;return r&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function ms(t=1){return function(t){return(ne.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,ne.lFrame.contextLView))[8]}(t)}function gs(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 i=0;i<e.length;i++){const o=e[i];if("*"!==o){if(null===r?Cr(t,o,!0):kr(r,o))return i}else n=i}return n}function ys(t){const e=ie()[16][6];if(!e.projection){const n=e.projection=dt(t?t.length:1,null),r=n.slice();let i=e.child;for(;null!==i;){const e=t?gs(i,t):0;null!==e&&(r[e]?r[e].projectionNext=i:n[e]=i,r[e]=i),i=i.next}}}let bs=!1;function vs(t){bs=t}function _s(t,e=0,n){const r=ie(),i=oe(),o=Hr(i,r[6],t,1,null,n||null);null===o.projection&&(o.projection=e),le(),bs||to(i,r,o)}const ws=[];function Es(t,e,n,r,i){const o=t[n+1],s=null===e;let a=r?Mr(o):Vr(o),u=!1;for(;0!==a&&(!1===u||s);){const n=t[a+1];Ss(t[a],e)&&(u=!0,t[a+1]=r?Br(n):Fr(n)),a=r?Mr(n):Vr(n)}u&&(t[n+1]=r?Fr(o):Br(o))}function Ss(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&mt(t,e)>=0}const Ts={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0}
8;function xs(t){return t.substring(Ts.key,Ts.keyEnd)}function Cs(t,e){const n=Ts.textEnd;return n===e?-1:(e=Ts.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,Ts.key=e,n),ks(t,e,n))}function ks(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Os(t,e,n){return Ns(t,e,n,!1),Os}function Is(t,e){return Ns(t,e,null,!0),Is}function As(t,e){for(let n=function(t){return function(t){Ts.key=0,Ts.keyEnd=0,Ts.value=0,Ts.valueEnd=0,Ts.textEnd=t.length}(t),Cs(t,ks(t,0,Ts.textEnd))}(e);n>=0;n=Cs(e,n))ft(t,xs(e),!0)}function Ns(t,e,n,r){const i=ie(),o=oe(),s=ge(2);if(o.firstUpdatePass&&Ps(o,t,s,r),e!==Ar&&Go(i,s,e)){let a;null==n&&(a=function(){const t=ne.lFrame;return null===t?null:t.currentSanitizer}())&&(n=a),Ls(o,o.data[ke()+19],i,i[11],t,i[s+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=k(Cn(t)))),t}(e,n),r,s)}}function Rs(t,e){return e>=t.expandoStartIndex}function Ps(t,e,n,r){const i=t.data;if(null===i[n+1]){const o=i[ke()+19],s=Rs(t,n);Vs(o,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const i=function(t){const e=ne.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=js(n=Ds(null,t,e,n,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==i)if(n=Ds(i,t,e,n,r),null===o){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Vr(r))return t[Mr(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=Ds(null,t,e,n[1],r),n=js(n,e.attrs,r),function(t,e,n,r){t[Mr(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else o=function(t,e,n){let r=void 0;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++)r=js(r,t[o].hostAttrs,n);return js(r,e.attrs,n)}(t,e,r)}return void 0!==o&&(r?e.residualClasses=o:e.residualStyles=o),n}(i,o,e,r),function(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=Mr(s),u=Vr(s);t[r]=n;let c,l=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||mt(t,c)>0)&&(l=!0)}else c=n;if(i)if(0!==u){const e=Mr(t[a+1]);t[r+1]=Lr(e,a),0!==e&&(t[e+1]=Ur(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=Lr(a,0),0!==a&&(t[a+1]=Ur(t[a+1],r)),a=r;else t[r+1]=Lr(u,0),0===a?a=r:t[u+1]=Ur(t[u+1],r),u=r;l&&(t[r+1]=Fr(t[r+1])),Es(t,c,r,!0),Es(t,c,r,!1),function(t,e,n,r,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&mt(o,e)>=0&&(n[r+1]=Br(n[r+1]))}(e,c,t,r,o),s=Lr(a,u),o?e.classBindings=s:e.styleBindings=s}(i,o,e,n,s,r)}}function Ds(t,e,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=e[a],r=js(r,o.hostAttrs,i),o!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function js(t,e,n){const r=n?1:2;let i=-1;if(null!==e)for(let o=0;o<e.length;o++){const s=e[o];"number"==typeof s?i=s:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),ft(t,s,!!n||e[++o]))}return void 0===t?null:t}function Ls(t,e,n,r,i,o,s,a){if(3!==e.type)return;const u=t.data,c=u[a+1];Fs(1==(1&c)?Ms(u,e,n,i,Vr(c),s):void 0)||(Fs(o)||function(t){return 2==(2&t)}(c)&&(o=Ms(u,null,n,i,a,s)),function(t,e,n,r,i){const o=zt(t);if(e)i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r);else{const e=-1==r.indexOf("-")?void 0:2;null==i?o?t.removeStyle(n,r,e):n.style.removeProperty(r):o?t.setStyle(n,r,i,e):n.style.setProperty(r,i)}}(r,s,Wt(ke(),n),i,o))}function Ms(t,e,n,r,i,o){const s=null===e;let a=void 0;for(;i>0;){const e=t[i],o=Array.isArray(e),u=o?e[1]:e,c=null===u;let l=n[i+1];l===Ar&&(l=c?ws:void 0);let h=c?pt(l,r):u===r?l:void 0;if(o&&!Fs(h)&&(h=pt(e,r)),Fs(h)&&(a=h,s))return a;const d=t[i+1];i=s?Mr(d):Vr(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=pt(t,r))}return a}function Fs(t){return void 0!==t}function Vs(t,e){return 0!=(t.flags&(e?16:32))}function Us(t,e=""){const n=ie(),r=oe(),i=t+19,o=r.firstCreatePass?Hr(r,n[6],t,3,null,null):r.data[i],s=n[i]=Li(e,n[11]);Ki(r,n,s,o),ue(o,!1)}function Bs(t){return qs("",t,""),Bs}function qs(t,e,n){const r=ie(),i=$o(r,t,e,n);return i!==Ar&&Ri(r,ke(),i),qs}function zs(t,e,n,r,i){const o=ie(),s=function(t,e,n,r,i,o){const s=Ho(t,pe(),n,i);return ge(2),s?e+Qe(n)+r+Qe(i)+o:Ar}(o,t,e,n,r,i);return s!==Ar&&Ri(o,ke(),s),zs}function Gs(t,e,n){!function(t,e,n,r){const i=oe(),o=ge(2);i.firstUpdatePass&&Ps(i,null,o,!0);const s=ie();if(n!==Ar&&Go(s,o,n)){const r=i.data[ke()+19];if(Vs(r,!0)&&!Rs(i,o)){let t=r.classes;null!==t&&(n=O(t,n||"")),ts(i,r,s,n,!0)}else!function(t,e,n,r,i,o,s,a){i===Ar&&(i=ws);let u=0,c=0,l=0<i.length?i[0]:null,h=0<o.length?o[0]:null;for(;null!==l||null!==h;){const s=u<i.length?i[u+1]:void 0,d=c<o.length?o[c+1]:void 0;let f=null,p=void 0;
8l===h?(u+=2,c+=2,s!==d&&(f=h,p=d)):null===h||null!==l&&l<h?(u+=2,f=l):(c+=2,f=h,p=d),null!==f&&Ls(t,e,n,r,f,p,!0,a),l=u<i.length?i[u]:null,h=c<o.length?o[c]:null}}(i,r,s,s[11],s[o+1],s[o+1]=function(t,e,n){if(null==n||""===n)return ws;const r=[],i=Cn(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)t(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&t(r,o,i[o]);else"string"==typeof i&&e(r,i);return r}(t,e,n),0,o)}}(ft,As,$o(ie(),t,e,n))}function Hs(t,e,n){const r=ie();return Go(r,me(),e)&&ri(oe(),Ie(),r,t,e,r[11],n,!0),Hs}function Ws(t,e,n){const r=ie();if(Go(r,me(),e)){const i=oe(),o=Ie();ri(i,o,r,t,e,Ii(o,r),n,!0)}return Ws}function $s(t,e){const n=Zt(t)[1],r=n.data.length-1;Re(n,{directiveStart:r,directiveEnd:r+1})}function Qs(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let i=void 0;if(Ft(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);const e=t;e.inputs=Ks(t.inputs),e.declaredInputs=Ks(t.declaredInputs),e.outputs=Ks(t.outputs);const n=i.hostBindings;n&&Xs(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&Ys(t,o),s&&Zs(t,s),g(t.inputs,i.inputs),g(t.declaredInputs,i.declaredInputs),g(t.outputs,i.outputs),Ft(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}e.afterContentChecked=e.afterContentChecked||i.afterContentChecked,e.afterContentInit=t.afterContentInit||i.afterContentInit,e.afterViewChecked=t.afterViewChecked||i.afterViewChecked,e.afterViewInit=t.afterViewInit||i.afterViewInit,e.doCheck=t.doCheck||i.doCheck,e.onDestroy=t.onDestroy||i.onDestroy,e.onInit=t.onInit||i.onInit}const e=i.features;if(e)for(let r=0;r<e.length;r++){const i=e[r];i&&i.ngInherit&&i(t),i===Qs&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=qe(i.hostAttrs,n=qe(n,i.hostAttrs))}}(r)}function Ks(t){return t===bt?{}:t===vt?[]:t}function Ys(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function Zs(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,i)=>{e(t,r,i),n(t,r,i)}:e}function Xs(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}class Js{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ta(t){t.type.prototype.ngOnChanges&&(t.setInput=ea,t.onChanges=function(){const t=na(this),e=t&&t.current;if(e){const n=t.previous;if(n===bt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function ea(t,e,n,r){const i=na(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:bt,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new Js(u&&u.currentValue,e,s===bt),t[r]=e}function na(t){return t.__ngSimpleChanges__||null}function ra(t,e,n,r,i){if(t=N(t),Array.isArray(t))for(let o=0;o<t.length;o++)ra(t[o],e,n,r,i);else{const o=oe(),s=ie();let a=Oo(t)?t:N(t.provide),u=xo(t);const c=ae(),l=65535&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>16;if(Oo(t)||!t.multi){const r=new Fe(u,i,Yo),f=sa(a,e,i?l:l+d,h);-1===f?(sn(en(c,s),o,a),ia(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(r),s.push(r)):(n[f]=r,s[f]=r)}else{const f=sa(a,e,l+d,h),p=sa(a,e,l,l+d),m=f>=0&&n[f],g=p>=0&&n[p];if(i&&!g||!i&&!m){sn(en(c,s),o,a);const l=function(t,e,n,r,i){const o=new Fe(t,n,Yo);return o.multi=[],o.index=e,o.componentProviders=0,oa(o,i,r&&!n),o}(i?ua:aa,n.length,i,r,u);!i&&g&&(n[p].providerFactory=l),ia(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(l),s.push(l)}else ia(o,t,f>-1?f:p),oa(n[i?p:f],u,!i&&r);!i&&r&&g&&n[p].componentProviders++}}}function ia(t,e,n){if(Oo(e)||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;r&&(t.destroyHooks||(t.destroyHooks=[])).push(n,r)}}function oa(t,e,n){t.multi.push(e),n&&t.componentProviders++}function sa(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function aa(t,e,n,r){return ca(this.multi,[])}function ua(t,e,n,r){const i=this.multi;let o;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=hn(n,n[1],this.providerFactory.index,r);o=e.slice(0,t),ca(i,o);for(let n=t;n<e.length;n++)o.push(e[n])}else o=[],ca(i,o);return o}function ca(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function la(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=oe();if(r.firstCreatePass){const i=Ft(t);ra(n,r.data,r.blueprint,i,!0),ra(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}ta.ngInherit=!0;class ha{}
vendor: 8,587 bytes, line 8
8class da{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${k(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let fa=(()=>{class t{}return t.NULL=new da,t})(),pa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>ma(t),t})();const ma=function(t){return co(t,ae(),ie())};class ga{}const ya=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let ba=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>va(),t})();const va=function(){const t=ie(),e=Yt(ae().index,t);return function(t){const e=t[11];if(zt(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Pt(e)?e:t)};let _a=(()=>{class t{}return t.\u0275prov=y({token:t,providedIn:"root",factory:()=>null}),t})();class wa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ea=new wa("9.0.7");class Sa{constructor(){}supports(t){return Uo(t)}create(t){return new xa(t)}}const Ta=(t,e)=>e;class xa{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||Ta}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,i=null;for(;e||n;){const o=!n||e&&e.currentIndex<Ia(n,r,i)?e:n,s=Ia(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);const t=s-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<i.length?i[n]:i[n]=0,o=r+n;e<=o&&o<t&&(i[n]=r+1)}i[o.previousIndex]=e-t}}s!==a&&t(o,s,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=[]),!Uo(t))throw new Error(`Error trying to diff '${k(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,i=this._itHead,o=!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!==i&&Fo(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,e)),Fo(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,e),o=!0),i=i._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[Mo()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==i&&Fo(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,t,r,e)),Fo(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,r,e),o=!0),i=i._next,e++}),this.length=e;return this._truncate(i),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 i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Fo(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Fo(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new Ca(e,n),i,r),t}_verifyReinsertion(t,e,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,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,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._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 Oa),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?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Oa),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 Ca{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 ka{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)&&Fo(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 Oa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new ka,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 Ia(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+e+i}class Aa{constructor(){}supports(t){return t instanceof Map||Bo(t)}create(){return new Na}}class Na{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;
8e=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||Bo(t)))throw new Error(`Error trying to diff '${k(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,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new Ra(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){Fo(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 Ra{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 Pa=(()=>{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 f,new h]]}}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=y({token:t,providedIn:"root",factory:()=>new t([new Sa])}),t})(),Da=(()=>{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 f,new h]]}}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=y({token:t,providedIn:"root",factory:()=>new t([new Aa])}),t})();const ja=[new Aa],La=new Pa([new Sa]),Ma=new Da(ja);let Fa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Va(t,pa),t})();const Va=function(t,e){return lo(t,e,ae(),ie())};let Ua=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ba(t,pa),t})();const Ba=function(t,e){return ho(t,e,ae(),ie())},qa={};class za extends fa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=At(t);return new Wa(e,this.ngModule)}}function Ga(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Ha=new H("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ye});class Wa extends ha{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ir).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ga(this.componentDef.inputs)}get outputs(){return Ga(this.componentDef.outputs)}create(t,e,n,r){const i=(r=r||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const o=t.get(n,qa,i);return o!==qa||r===qa?o:e.get(n,r,i)}}}(t,r.injector):t,o=i.get(ga,Gt),s=i.get(_a,null),a=o.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(zt(t))return t.selectRootElement(e,n===yt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}
8(a,n,this.componentDef.encapsulation):zr(u,o.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}(u)),l=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:Ye,clean:Ci,playerHandler:null,flags:0},f=ti(0,-1,null,1,0,null,null,null,null,null),p=Gr(null,f,d,l,null,null,o,a,s,i);let m,g;we(p,null);try{const t=function(t,e,n,r,i,o){const s=n[1];n[19]=t;const a=Hr(s,null,0,3,null,null),u=a.mergedAttrs=e.hostAttrs;null!==u&&(jo(a,u),null!==t&&(Ve(i,t,u),null!==a.classes&&ro(i,t,a.classes),null!==a.styles&&no(i,t,a.styles)));const c=r.createRenderer(t,e),l=Gr(n,Jr(e),null,e.onPush?64:16,n[19],a,r,c,void 0);return s.firstCreatePass&&(sn(en(a,n),s,e.type),ci(s,a),hi(a,n.length,1)),wi(n,l),n[19]=l}(c,this.componentDef,p,o,a);if(c)if(n)Ve(a,c,["ng-version",Ea.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!Tr(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Ve(a,c,t),e&&e.length>0&&ro(a,c,e.join(" "))}g=Qt(p[1],0),e&&(g.projection=e.map(t=>Array.from(t))),m=function(t,e,n,r,i){const o=n[1],s=function(t,e,n){const r=ae();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ui(t,r,1),di(t,e,n));const i=hn(e,t,e.length-1,r);yr(i,e);const o=$t(r,e);return o&&yr(o,e),i}(o,n,e);r.components.push(s),t[8]=s,i&&i.forEach(t=>t(s,e)),e.contentQueries&&e.contentQueries(1,s,n.length-1);const a=ae();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Oe(a.index-19);const t=n[1];oi(t,e),si(t,n,e.hostVars),ai(e,s)}return s}(t,this.componentDef,p,d,[$s]),Wr(f,p,null)}finally{Ce()}const y=new $a(this.componentType,m,co(pa,g,p),p,g);return n&&!h||(y.hostView._tViewNode.child=g),y}}class $a extends class{}{constructor(t,e,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new oo(r),this.hostView._tViewNode=function(t,e,n,r){let i=t.node;return null==i&&(t.node=i=ei(0,null,2,-1,null,null)),r[6]=i}(r[1],0,0,r),this.componentType=t}get injector(){return new pn(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 Qa=void 0;var Ka=["en",[["a","p"],["AM","PM"],Qa],[["AM","PM"],Qa,Qa],[["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"]],Qa,[["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"]],Qa,[["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}",Qa,"{1} 'at' {0}",Qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Ya={};function Za(t,e,n){"string"!=typeof e&&(n=e,e=t[nu.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Ya[e]=t,n&&(Ya[e][nu.ExtraData]=n)}function Xa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=eu(e);if(n)return n;const r=e.split("-")[0];if(n=eu(r),n)return n;if("en"===r)return Ka;throw new Error(`Missing locale data for the locale "${t}".`)}function Ja(t){return Xa(t)[nu.CurrencyCode]||null}function tu(t){return Xa(t)[nu.PluralCase]}function eu(t){return t in Ya||(Ya[t]=M.ng&&M.ng.common&&M.ng.common.locales&&M.ng.common.locales[t]),Ya[t]}const nu=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,PluralCase:19,ExtraData:20};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}(),ru=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,iu=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,ou=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,su=/\ufffd(\d+):?\d*\ufffd/gi,au=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,uu=/\[(\ufffd.+?\ufffd?)\]/,cu=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,lu=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,hu=/{([A-Z0-9_]+)}/g,du=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,fu=/\/\*/,pu=/\d+\:(\d+)/;function mu(t){if(!t)return[];let e=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(t);){const i=o.index;if("}
8"==o[0]){if(n.pop(),0==n.length){const n=t.substring(e,i);ru.test(n)?r.push(gu(n)):r.push(n),e=i+1}}else{if(0==n.length){const n=t.substring(e,i);r.push(n),e=i+1}n.push("{")}}const s=t.substring(e);return r.push(s),r}function gu(t){const e=[],n=[];let r=1,i=0;const o=mu(t=t.replace(ru,(function(t,e,n){return r="select"===n?0:1,i=parseInt(e.substr(1),10),""})));for(let s=0;s<o.length;){let t=o[s++].trim();1===r&&(t=t.replace(/\s*(?:=)?(\w+)\s*/,"$1")),t.length&&e.push(t);const i=mu(o[s++]);e.length>n.length&&n.push(i)}return{type:r,mainBinding:i,cases:e,values:n}}function yu(t){let e,n,r="",i=0,o=!1;for(;null!==(e=iu.exec(t));)o?e[0]===`\ufffd/*${n}\ufffd`&&(i=e.index,o=!1):(r+=t.substring(i,e.index+e[0].length),n=e[1],o=!0);return r+=t.substr(i),r}function bu(t,e,n,r=null){const i=[null,null],o=t.split(su);let s=0;for(let a=0;a<o.length;a++){const t=o[a];if(1&a){const e=parseInt(t,10);i.push(-1-e),s|=Eu(e)}else""!==t&&i.push(t)}return i.push(e<<2|(n?1:0)),n&&i.push(n,r),i[0]=s,i[1]=i.length-2,i}function vu(t,e=0){let n;e|=Eu(t.mainBinding);for(let r=0;r<t.values.length;r++){const i=t.values[r];for(let t=0;t<i.length;t++){const r=i[t];if("string"==typeof r)for(;n=su.exec(r);)e|=Eu(parseInt(n[1],10));else e=vu(r,e)}}return e}const _u=[];let wu=-1;function Eu(t){return 1<<Math.min(t,31)}const Su=[];function Tu(t,e,n){const r=oe();_u[++wu]=t,vs(!0),r.firstCreatePass&&null===r.data[t+19]&&function(t,e,n,r,i){const o=e.blueprint.length-19;xu=0;const s=ae(),a=ce()?s:s&&s.parent;let u=a&&a!==t[6]?a.index-19:n,c=0;Su[c]=u;const l=[];if(n>0&&s!==a){let t=s.index-19;ce()||(t=~t),l.push(t<<3|0)}const h=[],d=[],f=function(t,e){if("number"!=typeof e)return yu(t);{const n=t.indexOf(`:${e}\ufffd`)+2+e.toString().length,r=t.search(new RegExp(`\ufffd\\/\\*\\d+:${e}\ufffd`));return yu(t.substring(n,r))}}(r,i),p=(m=f,m.replace(Lu," ")).split(ou);var m;for(let g=0;g<p.length;g++){let t=p[g];if(1&g)if("/"===t.charAt(0)){if("#"===t.charAt(1)){const e=parseInt(t.substr(2),10);u=Su[--c],l.push(e<<3|5)}}else{const e=parseInt(t.substr(1),10),n="#"===t.charAt(0);l.push((n?e:~e)<<3|0,u<<17|1),n&&(Su[++c]=u=e)}else{const e=mu(t);for(let t=0;t<e.length;t++)if(1&t){const n=e[t];if("object"!=typeof n)throw new Error(`Unable to parse ICU expression in "${f}" message.`);const r=o+xu++;l.push(jr,"",r,u<<17|1);const i=vu(n);Pu(d,n,r,r);const s=d.length-1;h.push(Eu(n.mainBinding),3,-1-n.mainBinding,r<<2|2,s,i,2,r<<2|3,s)}else if(""!==e[t]){const n=e[t],r=n.match(su),i=o+xu++;l.push(r?"":n,i,u<<17|1),r&&ut(bu(n,i),h)}}}xu>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,xu),e.data[n+19]={vars:xu,create:l,update:h,icus:d.length?d:null}}(ie(),r,t,e,n)}let xu;function Cu(t,e,n,r,i){const o=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!==i[6]&&(e.parent=n);let s=e.next;for(;s;)s.next===e&&(s.next=o),s=s.next;if(1===e.type)return to(t,i,e),e;Ki(t,i,$t(e,i),e);const a=i[e.index];return 0!==e.type&&Dt(a)&&Ki(t,i,a[7],e),e}function ku(t,e={}){let n=t;if(uu.test(t)){const t={},e=[0];n=n.replace(cu,(n,r,i)=>{const o=r||i,s=t[o]||[];if(s.length||(o.split("|").forEach(t=>{const e=t.match(pu),n=e?parseInt(e[1],10):0,r=fu.test(t);s.push([n,r,t])}),t[o]=s),!s.length)throw new Error(`i18n postprocess: unmatched placeholder - ${o}`);const a=e[e.length-1];let u=0;for(let t=0;t<s.length;t++)if(s[t][0]===a){u=t;break}const[c,l,h]=s[u];return l?e.pop():a!==c&&e.push(c),s.splice(u,1),h})}return Object.keys(e).length?(n=n.replace(lu,(t,n,r,i,o,s)=>e.hasOwnProperty(r)?`${n}${e[r]}${s}`:t),n=n.replace(hu,(t,n)=>e.hasOwnProperty(n)?e[n]:t),n=n.replace(du,(t,n)=>{if(e.hasOwnProperty(n)){const r=e[n];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${t} with key: ${n}`);return r.shift()}return t}),n):n}function Ou(){const t=ie();!function(t,e){const n=_u[wu--],r=t.data[n+19],i=ae(),o=function(t,e,n,r){const i=r[11];let o=null,s=null;const a=[];for(let u=0;u<e.length;u++){const c=e[u];if("string"==typeof c){const t=Li(c,i),l=e[++u];s=o,o=Iu(n,r,l,3,t,null),a.push(l),le()}else if("number"==typeof c)switch(7&c){case 1:const i=c>>>17;let l;l=i===t?r[6]:Qt(n,i),s=Cu(n,o,l,s,r);break;case 0:const h=c>=0,d=(h?c:~c)>>>3;a.push(d),s=o,o=Qt(n,d),o&&ue(o,h);break;case 5:s=o=Qt(n,c>>>3),ue(o,!1);break;case 4:const f=e[++u],p=e[++u];pi(Qt(n,c>>>
83),r,f,p,null,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}else switch(c){case jr:const t=e[++u],l=e[++u],h=i.createComment(t);s=o,o=Iu(n,r,l,5,h,null),a.push(l),yr(h,r),o.activeCaseIndex=null,le();break;case Dr:const d=e[++u],f=e[++u];s=o,o=Iu(n,r,f,3,i.createElement(d),d),a.push(f);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}}return le(),a}(n,r.create,t,e);let s=n+1;for(;s<=i.index-19;){-1===o.indexOf(s)&&Au(t,e,s,!0);const n=Qt(t,s);!n||0!==n.type&&3!==n.type&&4!==n.type||null===n.localNames||(s+=n.localNames.length>>1),s++}}(oe(),t),vs(!1)}function Iu(t,e,n,r,i,o){const s=ae();e[n+19]=i;const a=Hr(t,e[6],n,r,o,null);return s&&s.next===a&&(s.next=null),a}function Au(t,e,n,r){const i=Qt(t,n),o=Wt(n,e);o&&Zi(e[11],o);const s=Kt(e,n);if(Dt(s)){const t=s;0!==i.type&&Zi(e[11],t[7])}r&&(i.flags|=64)}function Nu(t,e,n){Tu(t,e,n),Ou()}function Ru(t,e){!function(t,e,n,r){const i=ae().index-19,o=[];for(let s=0;s<r.length;s+=2){const a=r[s],u=r[s+1].split(au);for(let r=0;r<u.length;r++){const s=u[r];if(1&r)throw new Error("ICU expressions are not yet supported in attributes");if(""!==s)if(s.match(su))e.firstCreatePass&&null===e.data[n+19]&&ut(bu(s,i,a),o);else{const n=Qt(e,i);3===n.type&&pi(n,t,a,s,null,null);const r=null!==n.inputs&&n.inputs[a];r&&Ni(e,t,r,a,s)}}}e.firstCreatePass&&null===e.data[n+19]&&(e.data[n+19]=o)}(ie(),oe(),t,e)}function Pu(t,e,n,r){const i=[],o=[],s=[],a=[],u=[];for(let c=0;c<e.values.length;c++){const l=e.values[c],h=[];for(let t=0;t<l.length;t++){const e=l[t];if("string"!=typeof e){const n=h.push(e)-1;l[t]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}const d=Du(l.join(""),n,h,t,r);i.push(d.create),o.push(d.remove),s.push(d.update),a.push(d.vars),u.push(d.childIcus)}t.push({type:e.type,vars:a,childIcus:u,cases:e.cases,create:i,remove:o,update:s}),xu+=Math.max(...a)}function Du(t,e,n,r,i){const o=new Fn(qt()).getInertBodyElement(t);if(!o)throw new Error("Unable to generate inert body element");const s={vars:0,childIcus:[],create:[],remove:[],update:[]};return function t(e,n,r,i,o,s){if(e){const a=[];for(;e;){const u=e.nextSibling,c=s+ ++n.vars;switch(e.nodeType){case Node.ELEMENT_NODE:const u=e,l=u.tagName.toLowerCase();if(Kn.hasOwnProperty(l)){n.create.push(Dr,l,c,r<<17|1);const a=u.attributes;for(let t=0;t<a.length;t++){const e=a.item(t),r=e.name.toLowerCase();e.value.match(su)?Xn.hasOwnProperty(r)&&ut(Yn[r]?bu(e.value,c,e.name,Bn):Zn[r]?bu(e.value,c,e.name,qn):bu(e.value,c,e.name),n.update):n.create.push(c<<3|4,e.name,e.value)}t(e.firstChild,n,c,i,o,s),n.remove.push(c<<3|3)}else n.vars--;break;case Node.TEXT_NODE:const h=e.textContent||"",d=h.match(su);n.create.push(d?"":h,c,r<<17|1),n.remove.push(c<<3|3),d&&ut(bu(h,c),n.update);break;case Node.COMMENT_NODE:const f=ju.exec(e.textContent||"");if(f){const t=parseInt(f[1],10);n.create.push(jr,"",c,r<<17|1),a.push([i[t],c])}else n.vars--;break;default:n.vars--}e=u}for(let t=0;t<a.length;t++){const e=a[t][0],r=a[t][1];Pu(o,e,r,s+n.vars);const i=o.length-1;n.vars+=Math.max(...o[i].vars),n.childIcus.push(i);const u=vu(e);n.update.push(Eu(e.mainBinding),3,-1-e.mainBinding,r<<2|2,i,u,2,r<<2|3,i),n.remove.push(i<<3|6,r<<3|3)}}}((sr(o)||o).firstChild,s,e,n,r,i),s}const ju=/\ufffd(\d+)\ufffd/,Lu=/\uE500/g;let Mu="en-US";function Fu(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&&(Mu=t.toLowerCase().replace(/_/g,"-"))}const Vu=new Map;class Uu extends st{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new za(this);const n=Rt(t),r=t[q]||null;r&&Fu(r),this._bootstrapComponents=Ze(n.bootstrap),this._r3Injector=Eo(t,e,[{provide:st,useValue:this},{provide:fa,useValue:this.componentFactoryResolver}],k(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ao.THROW_IF_NOT_FOUND,n=p.Default){return t===Ao||t===st||t===W?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;
8!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Bu extends at{constructor(t){super(),this.moduleType=t,null!==Rt(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${k(e)} vs ${k(e.name)}`)})(t,Vu.get(t),e),Vu.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Uu(this.moduleType,t)}}function qu(t,e,n){const r=fe()+t,i=ie();return i[r]===Ar?qo(i,r,n?e.call(n):e()):zo(i,r)}function zu(t,e,n,r){return $u(ie(),fe(),t,e,n,r)}function Gu(t,e,n,r,i){return Qu(ie(),fe(),t,e,n,r,i)}function Hu(t,e,n,r,i,o,s,a,u){const c=fe()+t,l=ie(),h=function(t,e,n,r,i,o){const s=Ho(t,e,n,r);return Ho(t,e+2,i,o)||s}(l,c,n,r,i,o);return Ho(l,c+4,s,a)||h?qo(l,c+6,u?e.call(u,n,r,i,o,s,a):e(n,r,i,o,s,a)):zo(l,c+6)}function Wu(t,e){const n=t[e];return n===Ar?void 0:n}function $u(t,e,n,r,i,o){const s=e+n;return Go(t,s,i)?qo(t,s+1,o?r.call(o,i):r(i)):Wu(t,s+1)}function Qu(t,e,n,r,i,o,s){const a=e+n;return Ho(t,a,i,o)?qo(t,a+2,s?r.call(s,i,o):r(i,o)):Wu(t,a+2)}function Ku(t,e){const n=oe();let r;const i=t+19;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[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Nt(r.type)),s=J(Yo),a=o();return J(s),function(t,e,n,r){const i=n+19;i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=r}(n,ie(),t,a),a}function Yu(t,e,n){const r=ie(),i=Kt(r,t);return Ju(r,Xu(r,t)?$u(r,fe(),e,i.transform,n,i):i.transform(n))}function Zu(t,e,n,r){const i=ie(),o=Kt(i,t);return Ju(i,Xu(i,t)?Qu(i,fe(),e,o.transform,n,r,o):o.transform(n,r))}function Xu(t,e){return t[1].data[e+19].pure}function Ju(t,e){return Vo.isWrapped(e)&&(e=Vo.unwrap(e),t[pe()]=Ar),e}class tc extends r.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,o=t=>null,s=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(o=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(o=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,o,s);return t instanceof i.a&&t.add(a),a}}function ec(){return this._results[Mo()]()}class nc{constructor(){this.dirty=!0,this._results=[],this.changes=new tc,this.length=0;const t=Mo(),e=nc.prototype;e[t]||(e[t]=ec)}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=function t(e,n){void 0===n&&(n=e);for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?(n===e&&(n=e.slice(0,r)),t(i,n)):n!==e&&n.push(i)}return n}(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 rc{constructor(t){this.queryList=t,this.matches=null}clone(){return new rc(this.queryList)}setDirty(){this.queryList.setDirty()}}class ic{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 ic(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!==wc(t,e).matches&&this.queries[e].setDirty()}}class oc{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class sc{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,i=this.getByIndex(n).embeddedTView(t,r);
8i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new sc(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 ac{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 ac(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,uc(e,n[r]))}else{const n=this.metadata.predicate;n===Fa?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,ln(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===pa||r===Ua||r===Fa&&0===e.type)this.addMatch(e.index,-2);else{const n=ln(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 uc(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 cc(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?co(pa,t,e):0===t.type?lo(Fa,pa,t,e):null}(e,t):-2===n?function(t,e,n){return n===pa?co(pa,e,t):n===Fa?lo(Fa,pa,e,t):n===Ua?ho(Ua,pa,e,t):void 0}(t,e,r):hn(t,t[1],n,e)}function lc(t,e,n,r){const i=e[5].queries[r];if(null===i.matches){const r=t.data,o=n.matches,s=[];for(let t=0;t<o.length;t+=2){const i=o[t];s.push(i<0?null:cc(e,r[i],o[t+1],n.metadata.read))}i.matches=s}return i.matches}function hc(t){const e=ie(),n=oe(),r=be();ve(r+1);const i=wc(n,r);if(t.dirty&&Xt(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{const o=i.crossesNgTemplate?function t(e,n,r,i){const o=e.queries.getByIndex(r),s=o.matches;if(null!==s){const a=lc(e,n,o,r);for(let e=0;e<s.length;e+=2){const r=s[e];if(r>0)i.push(a[e/2]);else{const o=s[e+1],a=n[-r];for(let e=9;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,o,i)}if(null!==a[5]){const e=a[5];for(let n=0;n<e.length;n++){const r=e[n];t(r[1],r,o,i)}}}}}return i}(n,e,r,[]):lc(n,e,i,r);t.reset(o),t.notifyOnChanges()}return!0}return!1}function dc(t,e,n){pc(oe(),ie(),t,e,n,!0)}function fc(t,e,n){pc(oe(),ie(),t,e,n,!1)}function pc(t,e,n,r,i,o){t.firstCreatePass&&(_c(t,new oc(n,r,o,i),-1),o&&(t.staticViewQueries=!0)),vc(t,e)}
8function mc(t,e,n,r){yc(oe(),ie(),e,n,r,!1,ae(),t)}function gc(t,e,n,r){yc(oe(),ie(),e,n,r,!0,ae(),t)}function yc(t,e,n,r,i,o,s,a){t.firstCreatePass&&(_c(t,new oc(n,r,o,i),s.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),o&&(t.staticContentQueries=!0)),vc(t,e)}function bc(){return t=ie(),e=be(),t[5].queries[e].queryList;var t,e}function vc(t,e){const n=new nc;!function(t,e,n,r){const i=ki(e);i.push(n),t.firstCreatePass&&Oi(t).push(r,i.length-1)}(t,e,n,n.destroy),null===e[5]&&(e[5]=new ic),e[5].queries.push(new rc(n))}function _c(t,e,n){null===t.queries&&(t.queries=new sc),t.queries.track(new ac(e,n))}function wc(t,e){return t.queries.getByIndex(e)}function Ec(t=p.Default){const e=fo(!0);if(null!=e||t&p.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}const Sc=new H("Application Initializer");let Tc=(()=>{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]();us(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)(et(Sc,8))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const xc=new H("AppId"),Cc={provide:xc,useFactory:function(){return`${kc()}${kc()}${kc()}`},deps:[]};function kc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Oc=new H("Platform Initializer"),Ic=new H("Platform ID"),Ac=new H("appBootstrapListener");let Nc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const Rc=new H("LocaleId"),Pc=new H("DefaultCurrencyCode");class Dc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const jc=function(t){return new Bu(t)},Lc=jc,Mc=function(t){return Promise.resolve(jc(t))},Fc=function(t){const e=jc(t),n=Ze(Rt(t).declarations).reduce((t,e)=>{const n=At(e);return n&&t.push(new Wa(n)),t},[]);return new Dc(e,n)},Vc=Fc,Uc=function(t){return Promise.resolve(Fc(t))};let Bc=(()=>{class t{constructor(){this.compileModuleSync=Lc,this.compileModuleAsync=Mc,this.compileModuleAndAllComponentsSync=Vc,this.compileModuleAndAllComponentsAsync=Uc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const qc=new H("compilerOptions"),zc=(()=>Promise.resolve(0))();function Gc(t){"undefined"==typeof Zone?zc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Hc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new tc(!1),this.onMicrotaskEmpty=new tc(!1),this.onStable=new tc(!1),this.onError=new tc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=M.requestAnimationFrame,e=M.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(M,()=>{t.lastRequestAnimationFrameId=-1,Kc(t),Qc(t)}),Kc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,i,o,s,a)=>{try{return Yc(t),n.invokeTask(i,o,s,a)}finally{e&&"eventTask"===o.type&&e(),Zc(t)}},onInvoke:(e,n,r,i,o,s,a)=>{try{return Yc(t),e.invoke(r,i,o,s,a)}finally{Zc(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Kc(t),Qc(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(this)}
8static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Hc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Hc.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 i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,$c,Wc,Wc);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Wc(){}const $c={};function Qc(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 Kc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Yc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Zc(t){t._nesting--,Qc(t)}class Xc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new tc,this.onMicrotaskEmpty=new tc,this.onStable=new tc,this.onError=new tc}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 Jc=(()=>{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:()=>{Hc.assertNotInAngularZone(),Gc(()=>{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())Gc(()=>{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)(et(Hc))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})(),tl=(()=>{class t{constructor(){this._applications=new Map,il.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 il.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();class el{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function nl(t){il=t}let rl,il=new el,ol=function(t,e,n){const r=new Bu(n);if(0===Ro.size)return Promise.resolve(r);const i=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(t.get(qc,[]).concat(e).map(t=>t.providers));if(0===i.length)return Promise.resolve(r);const o=function(){const t=M.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),s=Ao.create({providers:i}).get(o.ResourceLoader);return function(t){const e=[],n=new Map;function r(t){let e=n.get(t);if(!e){const r=(t=>Promise.resolve(s.get(t)))(t);n.set(t,e=r.then(Do))}return e}
8return Ro.forEach((t,n)=>{const i=[];t.templateUrl&&i.push(r(t.templateUrl).then(e=>{t.template=e}));const o=t.styleUrls,s=t.styles||(t.styles=[]),a=t.styles.length;o&&o.forEach((e,n)=>{s.push(""),i.push(r(e).then(r=>{s[a+n]=r,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)}))});const u=Promise.all(i).then(()=>function(t){Po.delete(t)}(n));e.push(u)}),Ro=new Map,Promise.all(e).then(()=>{})}().then(()=>r)};const sl=new H("AllowMultipleToken");class al{constructor(t,e){this.name=t,this.token=e}}function ul(t,e,n=[]){const r=`Platform: ${e}`,i=new H(r);return(e=[])=>{let o=cl();if(!o||o.injector.get(sl,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:go,useValue:"platform"});!function(t){if(rl&&!rl.destroyed&&!rl.injector.get(sl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");rl=t.get(ll);const e=t.get(Oc,null);e&&e.forEach(t=>t())}(Ao.create({providers:t,name:r}))}return function(t){const e=cl();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}(i)}}function cl(){return rl&&!rl.destroyed?rl:null}let ll=(()=>{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 Xc:("zone.js"===t?void 0:t)||new Hc({enableLongStackTrace:Ln(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:Hc,useValue:n}];return n.run(()=>{const e=Ao.create({providers:r,parent:this.injector,name:t.moduleType.name}),i=t.create(e),o=i.injector.get(vn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>fl(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{o.handleError(t)}})),function(t,e,n){try{const r=n();return us(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(o,n,()=>{const t=i.injector.get(Tc);return t.runInitializers(),t.donePromise.then(()=>(Fu(i.injector.get(Rc,"en-US")||"en-US"),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=hl({},e);return ol(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(dl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${k(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)(et(Ao))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function hl(t,e){return Array.isArray(e)?e.reduce(hl,t):Object.assign(Object.assign({},t),e)}let dl=(()=>{class t{constructor(t,e,n,r,i,u){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ln(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),l=new o.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Hc.assertNotInAngularZone(),Gc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Hc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(s.a)(c,l.pipe(Object(a.a)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializer
8s running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof ha?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(st),i=n.create(Ao.NULL,[],e||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const o=i.injector.get(Jc,null);return o&&i.injector.get(tl).registerApplication(i.location.nativeElement,o),this._loadComponent(i),Ln()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i}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;fl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ac,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),fl(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)(et(Hc),et(Nc),et(Ao),et(vn),et(fa),et(Tc))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function fl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class pl{}class ml{}const gl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let yl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||gl}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=>bl(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+i]).then(t=>bl(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(et(Bc),et(ml,8))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function bl(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class vl extends po{}class _l extends vl{}const wl=function(t){return null},El=ul(null,"core",[{provide:Ic,useValue:"unknown"},{provide:ll,deps:[Ao]},{provide:tl,deps:[]},{provide:Nc,deps:[]}]),Sl=[{provide:dl,useClass:dl,deps:[Hc,Nc,Ao,vn,fa,Tc]},{provide:Ha,deps:[Hc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Tc,useClass:Tc,deps:[[new h,Sc]]},{provide:Bc,useClass:Bc,deps:[]},Cc,{provide:Pa,useFactory:function(){return La},deps:[]},{provide:Da,useFactory:function(){return Ma},deps:[]},{provide:Rc,useFactory:function(t){return Fu(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new l(Rc),new h,new f]]},{provide:Pc,useValue:"USD"}];let Tl=(()=>{class t{constructor(t){}}return t.\u0275mod=xt({type:t}),t.\u0275inj=b({factory:function(e){return new(e||t)(et(dl))},providers:Sl}),t})()},EWqr:function(t,e,n){"use strict";var r=n("bwdy");class i extends r.a{constructor(t,e){super()}schedule(t,e=0){return this}}n.d(e,"a",(function(){return o}));class o extends i{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(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);
8this.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}}},EeOn:function(t,e,n){"use strict";function r(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}n.r(e),n.d(e,"ErrorCode",(function(){return Qn})),n.d(e,"EventType",(function(){return Kn})),n.d(e,"WebChannel",(function(){return Yn})),n.d(e,"XhrIo",(function(){return Zn})),n.d(e,"createWebChannelTransport",(function(){return $n}));var i,o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=s||{},a=o||self;function u(){}function c(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function l(t){var e=c(t);return"array"==e||"object"==e&&"number"==typeof t.length}function h(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var d="closure_uid_"+(1e9*Math.random()>>>0),f=0;function p(t,e,n){return t.call.apply(t.bind,arguments)}function m(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function g(t,e,n){return(g=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?p:m).apply(null,arguments)}function y(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var b=Date.now||function(){return+new Date};function v(t,e){function n(){}n.prototype=e.prototype,t.M=e.prototype,t.prototype=new n,t.prototype.constructor=t}function _(){this.j=this.j,this.i=this.i}_.prototype.j=!1,_.prototype.da=function(){!this.j&&(this.j=!0,this.C(),0)&&function(t){Object.prototype.hasOwnProperty.call(t,d)&&t[d]||(t[d]=++f)}(this)},_.prototype.C=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var w=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},E=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i="string"==typeof t?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)};function S(t){return Array.prototype.concat.apply([],arguments)}function T(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}function x(t){return/^[\s\xa0]*$/.test(t)}var C,k=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function O(t,e){return-1!=t.indexOf(e)}function I(t,e){return t<e?-1:t>e?1:0}t:{var A=a.navigator;if(A){var N=A.userAgent;if(N){C=N;break t}}C=""}function R(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function P(t){var e={};for(var n in t)e[n]=t[n];return e}var D="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function j(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])t[n]=r[n];for(var o=0;o<D.length;o++)n=D[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function L(t){return L[" "](t),t}L[" "]=u;var M,F,V=O(C,"Opera"),U=O(C,"Trident")||O(C,"MSIE"),B=O(C,"Edge"),q=B||U,z=O(C,"Gecko")&&!(O(C.toLowerCase(),"webkit")&&!O(C,"Edge"))&&!(O(C,"Trident")||O(C,"MSIE"))&&!O(C,"Edge"),G=O(C.toLowerCase(),"webkit")&&!O(C,"Edge");function H(){var t=a.document;return t?t.documentMode:void 0}
8t:{var W="",$=(F=C,z?/rv:([^\);]+)(\)|;)/.exec(F):B?/Edge\/([\d\.]+)/.exec(F):U?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(F):G?/WebKit\/(\S+)/.exec(F):V?/(?:Version)[ \/]?(\S+)/.exec(F):void 0);if($&&(W=$?$[1]:""),U){var Q=H();if(null!=Q&&Q>parseFloat(W)){M=String(Q);break t}}M=W}var K={};function Y(t){return function(t,e){var n=K;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,(function(){for(var e=0,n=k(String(M)).split("."),r=k(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var s=n[o]||"",a=r[o]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==s[0].length&&0==a[0].length)break;e=I(0==s[1].length?0:parseInt(s[1],10),0==a[1].length?0:parseInt(a[1],10))||I(0==s[2].length,0==a[2].length)||I(s[2],a[2]),s=s[3],a=a[3]}while(0==e)}return 0<=e}))}var Z=a.document&&U&&(H()||parseInt(M,10))||void 0,X=!U||9<=Number(Z),J=U&&!Y("9"),tt=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{a.addEventListener("test",u,e),a.removeEventListener("test",u,e)}catch(n){}return t}();function et(t,e){this.type=t,this.a=this.target=e,this.defaultPrevented=!1}function nt(t,e){if(et.call(this,t?t.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.a=e,e=t.relatedTarget){if(z){t:{try{L(e.nodeName);var i=!0;break t}catch(o){}i=!1}i||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:rt[t.pointerType]||"",this.c=t,t.defaultPrevented&&this.b()}}et.prototype.b=function(){this.defaultPrevented=!0},v(nt,et);var rt={2:"touch",3:"pen",4:"mouse"};nt.prototype.b=function(){nt.M.b.call(this);var t=this.c;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,J)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var it="closure_listenable_"+(1e6*Math.random()|0),ot=0;function st(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.aa=i,this.key=++ot,this.V=this.X=!1}function at(t){t.V=!0,t.listener=null,t.proxy=null,t.src=null,t.aa=null}function ut(t){this.src=t,this.a={},this.b=0}function ct(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=w(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(at(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function lt(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.V&&o.listener==e&&o.capture==!!n&&o.aa==r)return i}return-1}ut.prototype.add=function(t,e,n,r,i){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var s=lt(t,e,r,i);return-1<s?(e=t[s],n||(e.X=!1)):((e=new st(e,this.src,o,!!r,i)).X=n,t.pu
8sh(e)),e};var ht="closure_lm_"+(1e6*Math.random()|0),dt={};function ft(t,e,n,r,i){if(r&&r.once)return function t(e,n,r,i,o){if(Array.isArray(n)){for(var s=0;s<n.length;s++)t(e,n[s],r,i,o);return null}return r=wt(r),e&&e[it]?e.sa(n,r,h(i)?!!i.capture:!!i,o):pt(e,n,r,!0,i,o)}(t,e,n,r,i);if(Array.isArray(e)){for(var o=0;o<e.length;o++)ft(t,e[o],n,r,i);return null}return n=wt(n),t&&t[it]?t.ra(e,n,h(r)?!!r.capture:!!r,i):pt(t,e,n,!1,r,i)}function pt(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var s=h(i)?!!i.capture:!!i;if(s&&!X)return null;var a=vt(t);if(a||(t[ht]=a=new ut(t)),(n=a.add(e,n,r,s,o)).proxy)return n;if(r=function(){var t=bt,e=X?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)tt||(i=s),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(gt(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function mt(t){if("number"!=typeof t&&t&&!t.V){var e=t.src;if(e&&e[it])ct(e.c,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(gt(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=vt(e))?(ct(n,t),0==n.b&&(n.src=null,e[ht]=null)):at(t)}}}function gt(t){return t in dt?dt[t]:dt[t]="on"+t}function yt(t,e){var n=t.listener,r=t.aa||t.src;return t.X&&mt(t),n.call(r,e)}function bt(t,e){if(t.V)return!0;if(!X){if(!e)t:{e=["window","event"];for(var n=a,r=0;r<e.length;r++)if(null==(n=n[e[r]])){e=null;break t}e=n}return yt(t,e=new nt(e,this))}return yt(t,new nt(e,this))}function vt(t){return(t=t[ht])instanceof ut?t:null}var _t="__closure_events_fn_"+(1e9*Math.random()>>>0);function wt(t){return"function"==c(t)?t:(t[_t]||(t[_t]=function(e){return t.handleEvent(e)}),t[_t])}function Et(){_.call(this),this.c=new ut(this),this.J=this,this.A=null}function St(t,e,n,r){if(!(e=t.c.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var s=e[o];if(s&&!s.V&&s.capture==n){var a=s.listener,u=s.aa||s.src;s.X&&ct(t.c,s),i=!1!==a.call(u,r)&&i}}return i&&!r.defaultPrevented}v(Et,_),Et.prototype[it]=!0,(i=Et.prototype).addEventListener=function(t,e,n,r){ft(this,t,e,n,r)},i.removeEventListener=function(t,e,n,r){!function t(e,n,r,i,o){if(Array.isArray(n))for(var s=0;s<n.length;s++)t(e,n[s],r,i,o);else i=h(i)?!!i.capture:!!i,r=wt(r),e&&e[it]?(e=e.c,(n=String(n).toString())in e.a&&-1<(r=lt(s=e.a[n],r,i,o))&&(at(s[r]),Array.prototype.splice.call(s,r,1),0==s.length&&(delete e.a[n],e.b--))):e&&(e=vt(e))&&(n=e.a[n.toString()],e=-1,n&&(e=lt(n,r,i,o)),(r=-1<e?n[e]:null)&&mt(r))}(this,t,e,n,r)},i.dispatchEvent=function(t){var e,n=this.A;if(n)for(e=[];n;n=n.A)e.push(n);n=this.J;var r=t.type||t;if("string"==typeof t)t=new et(t,n);else if(t instanceof et)t.target=t.target||n;else{var i=t;j(t=new et(r,n),i)}if(i=!0,e)for(var o=e.length-1;0<=o;o--){var s=t.a=e[o];i=St(s,r,!0,t)&&i}if(i=St(s=t.a=n,r,!0,t)&&i,i=St(s,r,!1,t)&&i,e)for(o=0;o<e.length;o++)i=St(s=t.a=e[o],r,!1,t)&&i;return i},i.C=function(){if(Et.M.C.call(this),this.c){var t,e=this.c;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)at(n[r]);delete e.a[t],e.b--}}this.A=null},i.ra=function(t,e,n,r){return this.c.add(String(t),e,!1,n,r)},i.sa=function(t,e,n,r){return this.c.add(String(t),e,!0,n,r)};var Tt=a.JSON.stringify;function xt(){this.b=this.a=null}var Ct,kt=new(function(){function t(t,e,n){this.f=n,this.c=t,this.g=e,this.b=0,this.a=null}return t.prototype.get=function(){var t;return 0<this.b?(this.b--,this.a=(t=this.a).next,t.next=null):t=this.c(),t},t}())((function(){return new It}),(function(t){t.reset()}),100);function Ot(){var t=Pt,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function It(){this.next=this.b=this.a=null}function At(t){a.setTimeout((function(){throw t}),0)}function Nt(t,e){Ct||function(){var t=a.Promise.resolve(void 0);Ct=function(){t.then(Dt)}}(),Rt||(Ct(),Rt=!0),Pt.add(t,e)}xt.prototype.add=function(t,e){var n=kt.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},It.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},It.prototype.reset=function(){this.next=this.b=this.a=null};var Rt=!1,Pt=new xt;function Dt(){for(var t;t=Ot();
8){try{t.a.call(t.b)}catch(n){At(n)}var e=kt;e.g(t),e.b<e.f&&(e.b++,t.next=e.a,e.a=t)}Rt=!1}function jt(t,e){Et.call(this),this.b=t||1,this.a=e||a,this.f=g(this.Ua,this),this.g=b()}function Lt(t){t.Z=!1,t.L&&(t.a.clearTimeout(t.L),t.L=null)}function Mt(t,e,n){if("function"==c(t))n&&(t=g(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=g(t.handleEvent,t)}return 2147483647<Number(e)?-1:a.setTimeout(t,e||0)}function Ft(t,e,n){_.call(this),this.f=null!=n?g(t,n):t,this.c=e,this.b=g(this.Pa,this),this.a=[]}function Vt(t){t.T=Mt(t.b,t.c),t.f.apply(null,t.a)}function Ut(t){_.call(this),this.b=t,this.a={}}v(jt,Et),(i=jt.prototype).Z=!1,i.L=null,i.Ua=function(){if(this.Z){var t=b()-this.g;0<t&&t<.8*this.b?this.L=this.a.setTimeout(this.f,this.b-t):(this.L&&(this.a.clearTimeout(this.L),this.L=null),this.dispatchEvent("tick"),this.Z&&(Lt(this),this.start()))}},i.start=function(){this.Z=!0,this.L||(this.L=this.a.setTimeout(this.f,this.b),this.g=b())},i.C=function(){jt.M.C.call(this),Lt(this),delete this.a},v(Ft,_),(i=Ft.prototype).ba=!1,i.T=null,i.Ia=function(t){this.a=arguments,this.T?this.ba=!0:Vt(this)},i.C=function(){Ft.M.C.call(this),this.T&&(a.clearTimeout(this.T),this.T=null,this.ba=!1,this.a=[])},i.Pa=function(){this.T=null,this.ba&&(this.ba=!1,Vt(this))},v(Ut,_);var Bt=[];function qt(t,e,n,r){Array.isArray(n)||(n&&(Bt[0]=n.toString()),n=Bt);for(var i=0;i<n.length;i++){var o=ft(e,n[i],r||t.handleEvent,!1,t.b||t);if(!o)break;t.a[o.key]=o}}function zt(t){R(t.a,(function(t,e){this.a.hasOwnProperty(e)&&mt(t)}),t),t.a={}}function Gt(){}Ut.prototype.C=function(){Ut.M.C.call(this),zt(this)},Ut.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Ht=null;function Wt(){return Ht=Ht||new Et}function $t(t){et.call(this,"serverreachability",t)}function Qt(t){var e=Wt();e.dispatchEvent(new $t(e,t))}function Kt(t){et.call(this,"statevent",t)}function Yt(t){var e=Wt();e.dispatchEvent(new Kt(e,t))}function Zt(t){et.call(this,"timingevent",t)}function Xt(t,e){if("function"!=c(t))throw Error("Fn must not be null and must be a function");return a.setTimeout((function(){t()}),e)}v($t,et),v(Kt,et),v(Zt,et);var Jt={NO_ERROR:0,Va:1,bb:2,ab:3,Ya:4,$a:5,cb:6,za:7,TIMEOUT:8,gb:9},te={Xa:"complete",kb:"success",Aa:"error",za:"abort",ib:"ready",jb:"readystatechange",TIMEOUT:"timeout",eb:"incrementaldata",hb:"progress",Za:"downloadprogress",lb:"uploadprogress"};function ee(){}function ne(){}ee.prototype.a=null;var re,ie={OPEN:"a",Wa:"b",Aa:"c",fb:"d"};function oe(){et.call(this,"d")}function se(){et.call(this,"c")}function ae(){}function ue(t,e,n){this.g=t,this.W=e,this.U=n||1,this.G=new Ut(this),this.N=ce,this.O=new jt(t=q?125:void 0),this.m=null,this.b=!1,this.j=this.A=this.f=this.B=this.s=this.P=this.h=null,this.i=[],this.a=null,this.w=0,this.c=this.v=null,this.H=-1,this.l=!1,this.J=0,this.D=null,this.o=this.R=this.F=!1}v(oe,et),v(se,et),v(ae,ee),re=new ae;var ce=45e3,le={},he={};function de(t,e,n){t.B=1,t.f=De(Oe(e)),t.j=n,t.F=!0,fe(t,null)}function fe(t,e){t.s=b(),ge(t),t.A=Oe(t.f);var n=t.A,r=t.U;Array.isArray(r)||(r=[String(r)]),$e(n.b,"t",r),t.w=0,t.a=Vn(t.g,t.g.w?e:null),0<t.J&&(t.D=new Ft(g(t.ya,t,t.a),t.J)),qt(t.G,t.a,"readystatechange",t.Sa),e=t.m?P(t.m):{},t.j?(t.v||(t.v="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.a.$(t.A,t.v,t.j,e)):(t.v="GET",t.a.$(t.A,t.v,null,e)),Qt(1)}function pe(t,e,n){for(var r=!0;!t.l&&t.w<n.length;){var i=me(t,n);if(i==he){4==e&&(t.c=4,Yt(14),r=!1);break}if(i==le){t.c=4,Yt(15),r=!1;break}we(t,i)}4==e&&0==n.length&&(t.c=1,Yt(16),r=!1),t.b=t.b&&r,r||(_e(t),ve(t))}function me(t,e){var n=t.w,r=e.indexOf("\n",n);return-1==r?he:(n=Number(e.substring(n,r)),isNaN(n)?le:(r+=1)+n>e.length?he:(e=e.substr(r,n),t.w=r+n,e))}function ge(t){t.P=b()+t.N,ye(t,t.N)}function ye(t,e){if(null!=t.h)throw Error("WatchDog timer not null");t.h=Xt(g(t.Qa,t),e)}function be(t){t.h&&(a.clearTimeout(t.h),t.h=null)}function ve(t){0==t.g.u||t.l||Dn(t.g,t)}function _e(t){be(t);var e=t.D;e&&"function"==typeof e.da&&e.da(),t.D=null,Lt(t.O),zt(t.G),t.a&&(e=t.a,t.a=null,e.abort(),e.da())}function we(t,e){try{var n=t.g;if(0!=n.u&&(n.a==t||tn(n.b,t)))if(n.A=t.H,!t.o&&tn(n.b,t)&&3==n.u){try{var r=n.ja.a.parse(e)}catch(m){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){t:if(!n.i){if(n.a){if(!(n.a.s+3e3<t.s))break t;Pn(n),n.a.cancel(),n.a=null}Rn(n),Yt(18)}}else n.ia=i[1],0<n.ia-n.G&&37500>i[2]&&n.U&&0==n.m&&!n.l&&(n.l=Xt(g(n.Na,n),6e3));if(1>
8=Je(n.b)&&n.O){try{n.O()}catch(m){}n.O=void 0}}else Ln(n,11)}else if((t.o||n.a==t)&&Pn(n),!x(e))for(e=r=n.ja.a.parse(e),r=0;r<e.length;r++)if(n.G=(i=e[r])[0],i=i[1],2==n.u)if("c"==i[0]){n.B=i[1],n.R=i[2];var o=i[3];null!=o&&(n.oa=o);var s=i[5];null!=s&&"number"==typeof s&&0<s&&(n.D=1.5*s);var a=n,u=t.a;if(u){var c=u.a?u.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(c){var l=a.b;!l.a&&(O(c,"spdy")||O(c,"quic")||O(c,"h2"))&&(l.f=l.g,l.a=new Set,l.b&&(en(l,l.b),l.b=null))}if(a.s){var h=u.a?u.a.getResponseHeader("X-HTTP-Session-Id"):null;h&&(a.ha=h,Pe(a.v,a.s,h))}}n.u=3,n.c&&n.c.na();var d=t;if((a=n).ea=Fn(a,a.w?a.R:null,a.P),d.o){nn(a.b,d);var f=d,p=a.D;p&&f.setTimeout(p),f.h&&(be(f),ge(f)),a.a=d}else Nn(a);0<n.f.length&&kn(n)}else"stop"!=i[0]&&"close"!=i[0]||Ln(n,7);else 3==n.u&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?Ln(n,7):Tn(n):"noop"!=i[0]&&n.c&&n.c.ma(i),n.m=0);Qt(4)}catch(m){}}function Ee(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(l(t)||"string"==typeof t)E(t,e,void 0);else{if(t.K&&"function"==typeof t.K)var n=t.K();else if(t.I&&"function"==typeof t.I)n=void 0;else if(l(t)||"string"==typeof t){n=[];for(var r=t.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,t)n[r++]=i;i=(r=function(t){if(t.I&&"function"==typeof t.I)return t.I();if("string"==typeof t)return t.split("");if(l(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}(t)).length;for(var o=0;o<i;o++)e.call(void 0,r[o],n&&n[o],t)}}function Se(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Se)for(n=t.K(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function Te(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];xe(t.b,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.c!=t.a.length){var i={};for(n=e=0;e<t.a.length;)xe(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function xe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(i=ue.prototype).setTimeout=function(t){this.N=t},i.Sa=function(t){t=t.target;var e=this.D;e&&3==_n(t)?e.Ia():this.ya(t)},i.ya=function(t){try{if(t==this.a)t:{var e=_n(this.a),n=this.a.qa(),r=this.a.S();if(!(3>e||3==e&&!q&&!this.a.Y())){this.l||4!=e||7==n||Qt(8==n||0>=r?3:2),be(this);var i=this.a.S();this.H=i;var o=this.a.Y();if(this.b=200==i){if(this.R&&!this.o){e:{if(this.a){var s,a=this.a;if((s=a.a?a.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!x(s)){var u=s;break e}}u=null}if(!u){this.b=!1,this.c=3,Yt(12),_e(this),ve(this);break t}this.o=!0,we(this,u)}this.F?(pe(this,e,o),q&&this.b&&3==e&&(qt(this.G,this.O,"tick",this.Ra),this.O.start())):we(this,o),4==e&&_e(this),this.b&&!this.l&&(4==e?Dn(this.g,this):(this.b=!1,ge(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.c=3,Yt(12)):(this.c=0,Yt(13)),_e(this),ve(this)}}}catch(c){}},i.Ra=function(){if(this.a){var t=_n(this.a),e=this.a.Y();this.w<e.length&&(be(this),pe(this,t,e),this.b&&4!=t&&ge(this))}},i.cancel=function(){this.l=!0,_e(this)},i.Qa=function(){this.h=null;var t=b();0<=t-this.P?(2!=this.B&&(Qt(3),Yt(17)),_e(this),this.c=2,ve(this)):ye(this,this.P-t)},(i=Se.prototype).I=function(){Te(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},i.K=function(){return Te(this),this.a.concat()},i.get=function(t,e){return xe(this.b,t)?this.b[t]:e},i.set=function(t,e){xe(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},i.forEach=function(t,e){for(var n=this.K(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var Ce=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function ke(t,e){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,t instanceof ke){this.a=void 0!==e?e:t.a,Ie(this,t.f),this.j=t.j,Ae(this,t.c),Ne(this,t.h),this.g=t.g,e=t.b;var n=new ze;n.c=e.c,e.a&&(n.a=new Se(e.a),n.b=e.b),Re(this,n),this.i=t.i}else t&&(n=String(t).match(Ce))?(this.a=!!e,Ie(this,n[1]||"",!0),this.j=je(n[2]||""),Ae(this,n[3]||"",!0),Ne(this,n[4]),this.g=je(n[5]||"",!0),Re(this,n[6]||"",!0),this.i=je(n[7]||"")):(this.a=!!e,this.b=new ze(null,this.a))}function Oe(t){return new ke(t)}
vendor: 2,026 bytes, line 8
8function Ie(t,e,n){t.f=n?je(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Ae(t,e,n){t.c=n?je(e,!0):e}function Ne(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.h=e}else t.h=null}function Re(t,e,n){e instanceof ze?(t.b=e,function(t,e){e&&!t.f&&(Ge(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(He(this,e),$e(this,n,t))}),t)),t.f=e}(t.b,t.a)):(n||(e=Le(e,Be)),t.b=new ze(e,t.a))}function Pe(t,e,n){t.b.set(e,n)}function De(t){return Pe(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^b()).toString(36)),t}function je(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Le(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Me),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Me(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}ke.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Le(e,Fe,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(Le(e,Fe,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.h)&&t.push(":",String(n))),(n=this.g)&&(this.c&&"/"!=n.charAt(0)&&t.push("/"),t.push(Le(n,"/"==n.charAt(0)?Ue:Ve,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",Le(n,qe)),t.join("")};var Fe=/[#\/\?@]/g,Ve=/[#\?:]/g,Ue=/[#\?]/g,Be=/[#\?@]/g,qe=/#/g;function ze(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function Ge(t){t.a||(t.a=new Se,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(t.c,(function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)})))}function He(t,e){Ge(t),e=Qe(t,e),xe(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,xe((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Te(t)))}function We(t,e){return Ge(t),e=Qe(t,e),xe(t.a.b,e)}
8function $e(t,e,n){He(t,e),0<n.length&&(t.c=null,t.a.set(Qe(t,e),T(n)),t.b+=n.length)}function Qe(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function Ke(t,e){this.b=t,this.a=e}function Ye(t){this.g=t||Ze,t=a.PerformanceNavigationTiming?0<(t=a.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(a.ca&&a.ca.ua&&a.ca.ua()&&a.ca.ua().mb),this.f=t?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}(i=ze.prototype).add=function(t,e){Ge(this),this.c=null,t=Qe(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},i.forEach=function(t,e){Ge(this),this.a.forEach((function(n,r){E(n,(function(n){t.call(e,n,r,this)}),this)}),this)},i.K=function(){Ge(this);for(var t=this.a.I(),e=this.a.K(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},i.I=function(t){Ge(this);var e=[];if("string"==typeof t)We(this,t)&&(e=S(e,this.a.get(Qe(this,t))));else{t=this.a.I();for(var n=0;n<t.length;n++)e=S(e,t[n])}return e},i.set=function(t,e){return Ge(this),this.c=null,We(this,t=Qe(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},i.get=function(t,e){return t&&0<(t=this.I(t)).length?String(t[0]):e},i.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.K(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.I(r);for(var o=0;o<r.length;o++){var s=i;""!==r[o]&&(s+="="+encodeURIComponent(String(r[o]))),t.push(s)}}return this.c=t.join("&")};var Ze=10;function Xe(t){return!!t.b||!!t.a&&t.a.size>=t.f}function Je(t){return t.b?1:t.a?t.a.size:0}function tn(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function en(t,e){t.a?t.a.add(e):t.b=e}function nn(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function rn(t){var e,n;if(null!=t.b)return t.c.concat(t.b.i);if(null!=t.a&&0!==t.a.size){var i=t.c;try{for(var o=r(t.a.values()),s=o.next();!s.done;s=o.next())i=i.concat(s.value.i)}catch(a){e={error:a}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}return T(t.c)}function on(){}function sn(){this.a=new on}function an(t,e,n){var r=n||"";try{Ee(t,(function(t,n){var i=t;h(t)&&(i=Tt(t)),e.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function un(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}Ye.prototype.cancel=function(){var t,e;if(this.c=rn(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=r(this.a.values()),i=n.next();!i.done;i=n.next())i.value.cancel()}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},on.prototype.stringify=function(t){return a.JSON.stringify(t,void 0)},on.prototype.parse=function(t){return a.JSON.parse(t,void 0)};var cn=a.JSON.parse;function ln(t){Et.call(this),this.headers=new Se,this.G=t||null,this.b=!1,this.s=this.a=null,this.D="",this.h=0,this.f="",this.g=this.w=this.l=this.v=!1,this.o=0,this.m=null,this.H=hn,this.B=this.F=!1}v(ln,Et);var hn="",dn=/^https?$/i,fn=["POST","PUT"];function pn(t){return"content-type"==t.toLowerCase()}function mn(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,gn(t),bn(t)}function gn(t){t.v||(t.v=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function yn(t){if(t.b&&void 0!==s&&(!t.s[1]||4!=_n(t)||2!=t.S()))if(t.l&&4==_n(t))Mt(t.va,0,t);else if(t.dispatchEvent("readystatechange"),4==_n(t)){t.b=!1;try{var e,n=t.S();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.D).match(Ce)[1]||null;if(!o&&a.self&&a.self.location){var u=a.self.location.protocol;o=u.substr(0,u.length-1)}i=!dn.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.h=6;try{var c=2<_n(t)?t.a.statusText:""}catch(l){c=""}t.f=c+" ["+t.S()+"]",gn(t)}}finally{bn(t)}}}function bn(t,e){if(t.a){vn(t);var n=t.a,r=t.s[0]?u:null;
8t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){}}}function vn(t){t.a&&t.B&&(t.a.ontimeout=null),t.m&&(a.clearTimeout(t.m),t.m=null)}function _n(t){return t.a?t.a.readyState:0}function wn(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}r||(n=function(t){var e="";return R(t,(function(t,n){e+=n,e+=":",e+=t,e+="\r\n"})),e}(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):Pe(t,e,n))}function En(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function Sn(t){this.f=[],this.R=this.ea=this.v=this.P=this.a=this.ha=this.s=this.N=this.h=this.F=this.j=null,this.Fa=this.H=0,this.Ca=En("failFast",!1,t),this.U=this.l=this.i=this.g=this.c=null,this.W=!0,this.A=this.ia=this.G=-1,this.J=this.m=this.o=0,this.Ba=En("baseRetryDelayMs",5e3,t),this.Ga=En("retryDelaySeedMs",1e4,t),this.Da=En("forwardChannelMaxRetries",2,t),this.ga=En("forwardChannelRequestTimeoutMs",2e4,t),this.Ea=t&&t.nb||void 0,this.D=void 0,this.w=t&&t.supportsCrossDomainXhr||!1,this.B="",this.b=new Ye(t&&t.concurrentRequestLimit),this.ja=new sn,this.fa=t&&t.fastHandshake||!1,t&&t.forceLongPolling&&(this.W=!1),this.O=void 0}function Tn(t){if(xn(t),3==t.u){var e=t.H++,n=Oe(t.v);Pe(n,"SID",t.B),Pe(n,"RID",e),Pe(n,"TYPE","terminate"),In(t,n),(e=new ue(t,e,void 0)).B=2,e.f=De(Oe(n)),n=!1,a.navigator&&a.navigator.sendBeacon&&(n=a.navigator.sendBeacon(e.f.toString(),"")),!n&&a.Image&&((new Image).src=e.f,n=!0),n||(e.a=Vn(e.g,null),e.a.$(e.f)),e.s=b(),ge(e)}Mn(t)}function xn(t){t.a&&(t.a.cancel(),t.a=null),t.i&&(a.clearTimeout(t.i),t.i=null),Pn(t),t.b.cancel(),t.g&&("number"==typeof t.g&&a.clearTimeout(t.g),t.g=null)}function Cn(t,e){t.f.push(new Ke(t.Fa++,e)),3==t.u&&kn(t)}function kn(t){Xe(t.b)||t.g||(t.g=!0,Nt(t.xa,t),t.o=0)}function On(t,e){var n;n=e?e.W:t.H++;var r=Oe(t.v);Pe(r,"SID",t.B),Pe(r,"RID",n),Pe(r,"AID",t.G),In(t,r),t.h&&t.j&&wn(r,t.h,t.j),n=new ue(t,n,t.o+1),null===t.h&&(n.m=t.j),e&&(t.f=e.i.concat(t.f)),e=An(t,n,1e3),n.setTimeout(Math.round(.5*t.ga)+Math.round(.5*t.ga*Math.random())),en(t.b,n
8),de(n,r,e)}function In(t,e){t.c&&Ee({},(function(t,n){Pe(e,n,t)}))}function An(t,e,n){n=Math.min(t.f.length,n);var r=t.c?g(t.c.Ha,t.c,t):null;t:for(var i=t.f,o=-1;;){var s=["count="+n];-1==o?0<n?s.push("ofs="+(o=i[0].b)):o=0:s.push("ofs="+o);for(var a=!0,u=0;u<n;u++){var c=i[u].b,l=i[u].a;if(0>(c-=o))o=Math.max(0,i[u].b-100),a=!1;else try{an(l,s,"req"+c+"_")}catch(h){r&&r(l)}}if(a){r=s.join("&");break t}}return t=t.f.splice(0,n),e.i=t,r}function Nn(t){t.a||t.i||(t.J=1,Nt(t.wa,t),t.m=0)}function Rn(t){return!(t.a||t.i||3<=t.m||(t.J++,t.i=Xt(g(t.wa,t),jn(t,t.m)),t.m++,0))}function Pn(t){null!=t.l&&(a.clearTimeout(t.l),t.l=null)}function Dn(t,e){var n=null;if(t.a==e){Pn(t),t.a=null;var r=2}else{if(!tn(t.b,e))return;n=e.i,nn(t.b,e),r=1}if(t.A=e.H,0!=t.u)if(e.b)if(1==r){n=e.j?e.j.length:0,e=b()-e.s;var i=t.o;(r=Wt()).dispatchEvent(new Zt(r,n,e,i)),kn(t)}else Nn(t);else if(3==(i=e.c)||0==i&&0<t.A||!(1==r&&function(t,e){return!(Je(t.b)>=t.b.f-(t.g?1:0)||(t.g?(t.f=e.i.concat(t.f),0):1==t.u||2==t.u||t.o>=(t.Ca?0:t.Da)||(t.g=Xt(g(t.xa,t,e),jn(t,t.o)),t.o++,0)))}(t,e)||2==r&&Rn(t)))switch(n&&0<n.length&&(e=t.b,e.c=e.c.concat(n)),i){case 1:Ln(t,5);break;case 4:Ln(t,10);break;case 3:Ln(t,6);break;default:Ln(t,2)}}function jn(t,e){var n=t.Ba+Math.floor(Math.random()*t.Ga);return t.c||(n*=2),n*e}function Ln(t,e){if(2==e){var n=null;t.c&&(n=null);var r=g(t.Ta,t);n||(n=new ke("//www.google.com/images/cleardot.gif"),a.location&&"http"==a.location.protocol||Ie(n,"https"),De(n)),function(t,e){var n=new Gt;if(a.Image){var r=new Image;r.onload=y(un,n,r,"TestLoadImage: loaded",!0,e),r.onerror=y(un,n,r,"TestLoadImage: error",!1,e),r.onabort=y(un,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=y(un,n,r,"TestLoadImage: timeout",!1,e),a.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=t}else e(!1)}(n.toString(),r)}else Yt(2);t.u=0,t.c&&t.c.la(e),Mn(t),xn(t)}function Mn(t){t.u=0,t.A=-1,t.c&&(0==rn(t.b).length&&0==t.f.length||(t.b.c.length=0,T(t.f),t.f.length=0),t.c.ka())}function Fn(t,e,n){var r=function(t){return t instanceof ke?Oe(t):new ke(t,void 0)}(n);if(""!=r.c)e&&Ae(r,e+"."+r.c),Ne(r,r.h);else{var i=a.location;r=function(t,e,n,r){var i=new ke(null,void 0);return t&&Ie(i,t),e&&Ae(i,e),n&&Ne(i,n),r&&(i.g=r),i}(i.protocol,e?e+"."+i.hostname:i.hostname,+i.port,n)}return t.N&&R(t.N,(function(t,e){Pe(r,e,t)})),n=t.ha,(e=t.s)&&n&&Pe(r,e,n),Pe(r,"VER",t.oa),In(t,r),r}function Vn(t,e){if(e&&!t.w)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new ln(t.Ea)).F=t.w,e}function Un(){}function Bn(){if(U&&!(10<=Number(Z)))throw Error("Environmental error: no available transport.")}function qn(t,e){Et.call(this),this.a=new Sn(e),this.l=t,this.b=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.a.j=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.pa&&(t?t["X-WebChannel-Client-Profile"]=e.pa:t={"X-WebChannel-Client-Profile":e.pa}),this.a.F=t,(t=e&&e.httpHeadersOverwriteParam)&&!x(t)&&(this.a.h=t),this.h=e&&e.supportsCrossDomainXhr||!1,this.g=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!x(e)&&(this.a.s=e,null!==(t=this.b)&&e in t&&e in(t=this.b)&&delete t[e]),this.f=new Hn(this)}function zn(t){oe.call(this);var e=t.__sm__;if(e){t:{for(var n in e){t=n;break t}t=void 0}(this.c=t)?(t=this.c,this.data=null!==e&&t in e?e[t]:void 0):this.data=e}else this.data=t}function Gn(){se.call(this),this.status=1}function Hn(t){this.a=t}(i=ln.prototype).$=function(t,e,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+t);e=e?e.toUpperCase():"GET",this.D=t,this.f="",this.h=0,this.v=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=function(t){var e;return(e=t.a)||(e=t.a={}),e}(this.G?this.G:re),this.a.onreadystatechange=g(this.va,this);try{this.w=!0,this.a.open(e,String(t),!0),this.w=!1}catch(o){return void mn(this,o)}t=n||"";var i=new Se(this.headers);r&&Ee(r,(function(t,e){i.set(e,t)})),r=function(t){t:{for(var e=pn,n=t.length,r="string"==typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t)){e=i;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}(i.K()),n=a.FormData&&t instanceof a.FormData,!(0<=w(fn,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;
8charset=utf-8"),i.forEach((function(t,e){this.a.setRequestHeader(e,t)}),this),this.H&&(this.a.responseType=this.H),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{vn(this),0<this.o&&((this.B=function(t){return U&&Y(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=g(this.ta,this)):this.m=Mt(this.ta,this.o,this)),this.l=!0,this.a.send(t),this.l=!1}catch(o){mn(this,o)}},i.ta=function(){void 0!==s&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},i.abort=function(t){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=t||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),bn(this))},i.C=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),bn(this,!0)),ln.M.C.call(this)},i.va=function(){this.j||(this.w||this.l||this.g?yn(this):this.Oa())},i.Oa=function(){yn(this)},i.S=function(){try{return 2<_n(this)?this.a.status:-1}catch(F){return-1}},i.Y=function(){try{return this.a?this.a.responseText:""}catch(F){return""}},i.Ja=function(t){if(this.a){var e=this.a.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),cn(e)}},i.qa=function(){return this.h},i.Ma=function(){return"string"==typeof this.f?this.f:String(this.f)},(i=Sn.prototype).oa=8,i.u=1,i.xa=function(t){if(this.g)if(this.g=null,1==this.u){if(!t){this.H=Math.floor(1e5*Math.random());var e,n=new ue(this,t=this.H++,void 0),r=this.j;if(this.F&&(r?j(r=P(r),this.F):r=this.F),null===this.h&&(n.m=r),this.fa)t:{for(var i=e=0;i<this.f.length;i++){var o=this.f[i];if(void 0===(o="__data__"in o.a&&"string"==typeof(o=o.a.__data__)?o.length:void 0))break;if(4096<(e+=o)){e=i;break t}if(4096===e||i===this.f.length-1){e=i+1;break t}}e=1e3}else e=1e3;e=An(this,n,e),Pe(i=Oe(this.v),"RID",t),Pe(i,"CVER",22),this.s&&Pe(i,"X-HTTP-Session-Id",this.s),In(this,i),this.h&&r&&wn(i,this.h,r),en(this.b,n),this.fa?(Pe(i,"$req",e),Pe(i,"SID","null"),n.R=!0,de(n,i,null)):de(n,i,e),this.u=2}}else 3==this.u&&(t?On(this,t):0==this.f.length||Xe(this.b)||On(this))},i.wa=function(){this.i=null,this.a=new ue(this,"rpc",this.J),null===this.h&&(this.a.m=this.j),this.a.J=0;var t=Oe(this.ea);Pe(t,"RID","rpc"),Pe(t,"SID",this.B),Pe(t,"CI",this.U?"0":"1"),Pe(t,"AID",this.G),In(this,t),Pe(t,"TYPE","xmlhttp"),this.h&&this.j&&wn(t,this.h,this.j),this.D&&this.a.setTimeout(this.D);var e=this.a,n=this.R;e.B=1,e.f=De(Oe(t)),e.j=null,e.F=!0,fe(e,n)},i.Na=function(){null!=this.l&&(this.l=null,this.a.cancel(),this.a=null,Rn(this),Yt(19))},i.Ta=function(t){Yt(t?2:1)},(i=Un.prototype).na=function(){},i.ma=function(){},i.la=function(){},i.ka=function(){},i.Ha=function(){},Bn.prototype.a=function(t,e){return new qn(t,e)},v(qn,Et),(i=qn.prototype).addEventListener=function(t,e,n,r){qn.M.addEventListener.call(this,t,e,n,r)},i.removeEventListener=function(t,e,n,r){qn.M.removeEventListener.call(this,t,e,n,r)},i.Ka=function(){this.a.c=this.f,this.h&&(this.a.w=!0);var t=this.a,e=this.l,n=this.b||void 0;Yt(0),t.P=e,t.N=n||{},t.U=t.W,t.v=Fn(t,null,t.P),kn(t)},i.close=function(){Tn(this.a)},i.La=function(t){if("string"==typeof t){var e={};e.__data__=t,Cn(this.a,e)}else this.g?((e={}).__data__=Tt(t),Cn(this.a,e)):Cn(this.a,t)},i.C=function(){this.a.c=null,delete this.f,Tn(this.a),delete this.a,qn.M.C.call(this)},v(zn,oe),v(Gn,se),v(Hn,Un),Hn.prototype.na=function(){this.a.dispatchEvent("a")},Hn.prototype.ma=function(t){this.a.dispatchEvent(new zn(t))},Hn.prototype.la=function(t){this.a.dispatchEvent(new Gn(t))},Hn.prototype.ka=function(){this.a.dispatchEvent("b")},Bn.prototype.createWebChannel=Bn.prototype.a,qn.prototype.send=qn.prototype.La,qn.prototype.open=qn.prototype.Ka,qn.prototype.close=qn.prototype.close,Jt.NO_ERROR=0,Jt.TIMEOUT=8,Jt.HTTP_ERROR=6,te.COMPLETE="complete",ne.EventType=ie,ie.OPEN="a",ie.CLOSE="b",ie.ERROR="c",ie.MESSAGE="d",Et.prototype.listen=Et.prototype.ra,ln.prototype.listenOnce=ln.prototype.sa,ln.prototype.getLastError=ln.prototype.Ma,ln.prototype.getLastErrorCode=ln.prototype.qa,ln.prototype.getStatus=ln.prototype.S,ln.prototype.getResponseJson=ln.prototype.Ja,ln.prototype.getResponseText=ln.prototype.Y,ln.prototype.send=ln.prototype.$;var Wn={createWebChannelTransport:function(){return new Bn},ErrorCode:Jt,EventType:te,WebChannel:ne,XhrIo:ln},$n=Wn.createWebChannelTransport,Qn=Wn.ErrorCode,Kn=Wn.EventType,Yn=Wn.WebChannel,Zn=Wn.XhrIo;e.default=Wn},Efrr:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("EWqr");const i=new(n("DG/E").a)(r.a)},FU6l:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},Gjt8:function(t,e,n){"use strict";function r(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}var i;n.r(e),n.d(e,"LogLevel",(function(){return s})),n.d(e,"Logger",(function(){return h})),n.d(e,"setLogLevel",(function(){return d})),n.d(e,"setUserLogHandler",(function(){return f}));var o=[],s=function(t){return t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT",t}({}
8),a={debug:s.DEBUG,verbose:s.VERBOSE,info:s.INFO,warn:s.WARN,error:s.ERROR,silent:s.SILENT},u=s.INFO,c=((i={})[s.DEBUG]="log",i[s.VERBOSE]="log",i[s.INFO]="info",i[s.WARN]="warn",i[s.ERROR]="error",i),l=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(e<t.logLevel)){var o=(new Date).toISOString(),s=c[e];if(!s)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[s].apply(console,r(["["+o+"] "+t.name+":"],n))}},h=function(){function t(t){this.name=t,this._logLevel=u,this._logHandler=l,this._userLogHandler=null,o.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in s))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!0,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.DEBUG],t)),this._logHandler.apply(this,r([this,s.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.VERBOSE],t)),this._logHandler.apply(this,r([this,s.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.INFO],t)),this._logHandler.apply(this,r([this,s.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.WARN],t)),this._logHandler.apply(this,r([this,s.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.ERROR],t)),this._logHandler.apply(this,r([this,s.ERROR],t))},t}();function d(t){var e="string"==typeof t?a[t]:t;o.forEach((function(t){t.logLevel=e}))}function f(t,e){for(var n=function(n){var r=null;e&&e.level&&(r=a[e.level]),n.userLogHandler=null===t?null:function(e,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var a=i.map((function(t){if(null==t)return null;if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(e){return null}})).filter((function(t){return t})).join(" ");n>=(null!=r?r:e.logLevel)&&t({level:s[n].toLowerCase(),message:a,args:i,type:e.name})}},r=0,i=o;r<i.length;r++)n(i[r])}},GoAz:function(t,e,n){"use strict";var r=n("IdLP"),i=n("1MAX"),o=n("bwdy"),s=n("qEfY"),a=n("czMQ"),u=n("sWLk"),c=n("/vgl"),l=n("eY+9");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[s.a]}(t))return function(t,e){return new r.a(n=>{const r=new o.a;return r.add(e.schedule(()=>{const i=t[s.a]();r.add(i.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(c.a)(t))return function(t,e){return new r.a(n=>{const r=new o.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(l.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[u.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 o.a;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[u.a](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(r){return void n.error(r)}
8e?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(i.a)(t))}n.d(e,"a",(function(){return h}))},HM3f:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("gBlb"),i=n("FU6l"),o=n("pBDD"),s=n("mW0F"),a=n("ckkg");const u={};function c(...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(i.a)(t[0])&&(t=t[0]),Object(a.a)(t,n).lift(new l(e))}class l{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends o.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(u),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(s.a)(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,r,i){const o=this.values,s=this.toRespond?o[n]===u?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},HgnN:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));let r=!1;const i={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}}},IJgj:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},Ibu0:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("EM62"),i=n("vobO");let o=(()=>{let t=class{constructor(t,e){this.locale=t,this.httpClient=e,this.TRANSLATIONS={"auth/invalid-email":{es:"Por favor, introduce una direcci\xf3n de correo electr\xf3nico v\xe1lida.",ca:"",en:"Please, make sure to use a correct email address.",it:"Per favore, inserisci un indirizzo email valido."},"auth/user-not-found":{es:"Nome utente o password non corretti.",ca:"",en:"Username or password are wrong.",it:"Nome utente o password non corretti."},"auth/invalid-password":{es:"Nome utente o password non corretti.",ca:"",en:"Username or password are wrong.",it:"Nome utente o password non corretti."},"auth/weak-password":{es:"La contrase\xf1a debe tener al menos 6 caracteres de longitud.",ca:"",en:"Password should be at least 6 characters long.",it:"La password deve essere di almeno 6 caratteri."},"auth/email-already-in-use":{es:"Ya hay registrada una cuenta con este correo electr\xf3nico.",ca:"",en:"You have already registered an account with this email address.",it:"Hai gi\xe0 registrato un account con questo indirizzo email."},"auth/invalid-action-code":{es:"Ya ha verificado tu correo electr\xf3nico, procede a iniciar la sesi\xf3n.",ca:"",en:"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.",it:"Hai gi\xe0 verificato la tua email, procedi al login."},"auth/double-password-incorrect":{es:"Por favor, ver\xedfica que has escrito las dos contrase\xf1as igual.",ca:"",en:"Please make sure to repeat the exact same password.",it:"Per favore, verifica di aver scritto la stessa password due volte."},"auth/mobile-phone-incorrect":{es:"Por favor, ver\xedfica que has ingresado un n\xfamero de tel\xe9fono v\xe1lido.",ca:"",en:"Please make sure to enter a valid telephone number.",it:"Per favore, verifica di aver inserito un numero di telefono valido."},"auth/tandc-incorrect":{es:"Para utilizar nuestro servicio, debes aceptar nuestros T\xe9rminos y Condiciones.",ca:"",en:"In order to use our service, you have to accept our Terms and Conditions.",it:"Per poter utilizzare il nostro
8servizio, devi accettare le nostre Condizioni d'Uso."},"vat-check/notfound":{es:"El NIF es inv\xe1lido",ca:"",en:"Your VAT number is not valid",it:"Il numero di P.IVA non \xe8 valido"},"vat-check/notformatted":{es:"Por favor aseg\xfarese de que el NIF incluye el prefijo internacional (ES)",ca:"",en:"Please, make sure your VAT number includes the international prefix (GB)",it:"Per favore, assicurati che il numero di P.IVA include il prefisso internazionale (IT)"},"edit-menu/section-name":{es:"Nombre de la secci\xf3n",ca:"",en:"Section title",it:"Nome della sezione"},"edit-menu/menu-name":{es:"Nombre del Men\xfa",ca:"",en:"Menu title",it:"Nome del menu"},"edit-menu/item-name":{es:"Nombre del elemento",ca:"",en:"Item title",it:"Nome dell'elemento"},"generic-error":{es:"Ha ocurrido un error, por favor, vuelva a cargar la p\xe1gina e intentalo de nuevo.",ca:"",en:"An error occurred, please refresh the page and try again.",it:"Si \xe8 verificato un errore, per favore ricarica la pagina e prova ancora."},"generic-success":{es:"\xa1Hecho!",ca:"",en:"Done!",it:"Fatto!"},"translation/not-found":{es:"Ha ocurrido un error, por favor, vuelva a cargar la p\xe1gina y vuelve a intentarlo.",ca:"",en:"An error occurred, please refresh the page and try again.",it:"Si \xe8 verificato un errore, per favore ricarica la pagina e prova ancora."}},this.LANGUAGES={es:{es:"Castellano",ca:"Catal\xe1",en:"Ingl\xe9s",fr:"Franc\xe9s",it:"Italiano"},it:{es:"Spagnolo",ca:"Catalano",en:"Inglese",fr:"Francese",it:"Italiano"},en:{es:"Spanish",ca:"Catalan",en:"English",fr:"French",it:"Italian"}},this.DAILY_MENU={es:"Men\xfa del d\xeda",it:"Menu del giorno",ca:"Men\xfa del d\xeda",en:"Menu of the Day",fr:"Menu du jour"},this.SUBSCRIPTION_TYPES={es:{FREE_TRIAL:"Periodo de prueba gratis",MONTHLY:"Suscripci\xf3n mensual",QUARTERLY:"Suscripci\xf3n trimestral",TWICE_A_YEAR:"Suscripci\xf3n semestral",YEARLY:"Suscripci\xf3n anual",EXPIRED:"Subscripci\xf3n vencida"},it:{FREE_TRIAL:"Periodo di prova gratuita",MONTHLY:"Abbonamento mensile",QUARTERLY:"Abbonamento trimestrale",TWICE_A_YEAR:"Abbonamento semestrale",YEARLY:"Abbonamento annuale",EXPIRED:"Abbonamento scaduto"},en:{FREE_TRIAL:"Free trial",MONTHLY:"Monthly subscription",QUARTERLY:"Quarterly subscription",TWICE_A_YEAR:"Semi-annual subscription",YEARLY:"Annual subscription",EXPIRED:"Subscription expired"}},this.ORDER_STATUS={es:{OPEN:"Abierto",CLOSED:"Terminado"},it:{OPEN:"Aperto",CLOSED:"Completato"},en:{OPEN:"Open",CLOSED:"Completed"}},this.DEFAULT_MENU={es:[{sections:[{items:[{notes:"",title:"Primer entrante",price:0,allergens:["MUSTARD"],hidden:!1,description:"Ingredientes del primer entrante"},{description:"Ingredientes del segundo entrante",price:0,hidden:!1,title:"Segundo entrante",notes:"",allergens:[]}],notes:"",title:"Entrantes",description:"Elige un entrante",hidden:!1},{title:"Platos principales",items:[{notes:"",price:0,hidden:!1,description:"Ingredientes del primer plato principal",allergens:[],title:"Primer plato principal"},{title:"Segundo plato principal",description:"Ingredientes del segundo plato principal",hidden:!1,price:0,notes:"",allergens:[]}],notes:"",description:"Elige un plato principal",hidden:!1},{items:[{description:"Descripci\xf3n del primer postre",notes:"",hidden:!1,price:0,allergens:[],title:"Primer postre"},{title:"Segundo postre",price:0,allergens:[],notes:"",description:"Descripci\xf3n del segundo postre",hidden:!1}],hidden:!1,notes:"",description:"Elige un postre",title:"Postres"}],title:"Men\xfa del dia",restaurant:"",totalPrice:18,picture:null,language:"es",createdDate:null,lastUpdatedDate:null,notes:"",description:"Elije un entrante, un plato principal y un postre.\nEl agua y el pan est\xe1n incluidos en el precio.",type:"DAY"},{notes:"",createdDate:null,restaurant:"",lastUpdatedDate:null,language:"es",description:"Nuestro men\xfa a La Carte",totalPrice:0,sections:[{notes:"",hidden:!1,title:"Sopas",items:[{title:"Primera sopa",allergens:["GLUTEN"],description:"Descripci\xf3n de la primera sopa",hidden:!1,price:8,notes:""},{hidden:!1,price:8,allergens:[],description:"Descripci\xf3n de la segunda sopa",notes:"",title:"Segunda sopa"}],description:""},{title:"Ensaladas",hidden:!1,description:"",items:[{title:"Primera ensalada",price:7,allergens:[],description:"Ingredientes de la primera ensalada",hidden:!1,notes:""},{price:7,description:"Ingredientes de la segunda ensalada",allergens:[],hidden:!1,title:"Segunda ensalada",notes:""}],notes:""}],title:"A La Carte",type:"CARTA",picture:null},{type:"CARTA",title:"Bebidas",lastUpdatedDate:null,createdDate:null,notes:"",totalPrice:0,restaurant:"",sections:[{items:[{description:"Copa",hidden:!1,allergens:[],price:5,notes:"",title:"Vino tinto"},{allergens:[],notes:"",title:"Vino blanco",price:5,description:"Copa",hidden:!1}],description:"",hidden:!1,title:"Vino",notes:""},{notes:"",hidden:!1,title:"Bebidas sin alcohol",items:[{price:2,title:"Agua",hidden:!1,notes:"",description:"Botella de 500 ml",allergens:[]}],description:""}],language:"es",picture:null,description:""}],it:[{title:"Menu del giorno",notes:"",type:"DAY",createdDate:null,totalPrice:18,lastUpdatedDate:null,sections:[{notes:"",description:"Scegli un antipasto",title:"antipasti",hidden:!1,items:[{allergens:["MUSTARD"],price:0,hidden:!1,title:"Primo Antipasto",description:"Ingredienti del primo antipasto",notes:""},{hidden:!1,title:"Secondo Antipasto",notes:"",allergens:[],description:"Ingredienti del secondo antipasto",price:0}]},{items:[{description:"Ingredienti del primo piatto principale",notes:"",allergens:[],price:0,title:"Primo piatto principale",hidden:!1},{description:"Ingredienti del secondo piatto principale",price:0,notes:"",hidden:!1,title:"Secondo piatto principale",allergens:[]}],notes:"",description:"Scegli un piatto principale",hidden:!1,title:"Piatti principali"},{notes:"",title:"Dolci",description:"Scegli un dessert",items:[{description:"Descrizione del primo de
8ssert",allergens:[],notes:"",title:"Primo Dessert",hidden:!1,price:0},{description:"Descrizione del secondo dessert",title:"Secondo dessert",allergens:[],price:0,notes:"",hidden:!1}],hidden:!1}],language:"it",description:"Scegli un antipasto, un piatto principale e un dessert.\nAcqua e pane sono inclusi nel prezzo.",picture:null,restaurant:""},{description:"Il nostro menu a la carte",notes:"",totalPrice:0,sections:[{title:"Zuppe",description:"",items:[{description:"Descrizione della prima zuppa",title:"Prima zuppa",allergens:["GLUTEN"],price:8,notes:"",hidden:!1},{price:8,title:"Seconda Zuppa",description:"Descrizione della seconda zuppa",hidden:!1,allergens:[],notes:""}],hidden:!1,notes:""},{hidden:!1,items:[{title:"Prima Insalata",allergens:[],price:7,description:"Ingredienti della prima insalata",hidden:!1,notes:""},{price:7,hidden:!1,description:"Ingredienti della seconda insalata",notes:"",title:"Seconda insalata",allergens:[]}],notes:"",description:"",title:"insalate"}],language:"it",type:"CARTA",createdDate:null,title:"A La Carte",picture:null,restaurant:"",lastUpdatedDate:null},{language:"it",totalPrice:0,description:"",lastUpdatedDate:null,picture:null,type:"CARTA",createdDate:null,title:"Bevande",sections:[{items:[{title:"Vino rosso",notes:"",description:"Bicchiere",allergens:[],hidden:!1,price:5},{allergens:[],title:"Vino bianco",notes:"",description:"bicchiere",hidden:!1,price:5}],title:"Vino",description:"",hidden:!1,notes:""},{hidden:!1,title:"Bevande analcoliche",description:"",notes:"",items:[{allergens:[],description:"Bottiglietta da 500ml",hidden:!1,price:2,notes:"",title:"acqua"}]}],restaurant:"",notes:""}],ca:[{lastUpdatedDate:null,notes:"",description:"Trieu un entrant, un plat principal i un postre.\nL'aigua i el pa estan inclosos en el preu.",totalPrice:18,picture:null,sections:[{description:"Trieu un entrant",items:[{hidden:!1,price:0,description:"Ingredients de primer entrant",notes:"",allergens:["MUSTARD"],title:"Primer entrant"},{notes:"",hidden:!1,price:0,description:"Ingredients de segon entrant",title:"Segon entrant",allergens:[]}],hidden:!1,title:"Entrants",notes:""},{items:[{allergens:[],description:"Ingredients del primer plat principal",price:0,notes:"",hidden:!1,title:"Primer plat principal"},{title:"Segon plat principal",description:"Ingredients del segon plat principal",hidden:!1,notes:"",price:0,allergens:[]}],description:"Trieu un plat principal",hidden:!1,title:"Plats principals",notes:""},{items:[{description:"Descripci\xf3 del primer postre",notes:"",price:0,allergens:[],hidden:!1,title:"Primer Postre"},{hidden:!1,title:"Segon postre",price:0,description:"Descripci\xf3 del segon Postre",n
8otes:"",allergens:[]}],title:"Postres",notes:"",hidden:!1,description:"Trieu un postre"}],createdDate:null,restaurant:"",language:"ca",type:"DAY",title:"Menu del dia"},{title:"A La Carte",totalPrice:0,picture:null,sections:[{notes:"",hidden:!1,items:[{allergens:["GLUTEN"],hidden:!1,description:"Descripci\xf3 de la primera sopa",notes:"",price:8,title:"Primera Sopa"},{title:"Segona Sopa",notes:"",price:8,description:"Descripci\xf3 de la segona sopa",allergens:[],hidden:!1}],description:"",title:"Sopes"},{title:"Amanides",items:[{title:"Primera Amanida",allergens:[],price:7,description:"Ingredients de la primera Amanida",notes:"",hidden:!1},{notes:"",title:"Segona amanida",description:"",price:7,hidden:!1,allergens:[]}],notes:"",description:"",hidden:!1}],type:"CARTA",description:"El nostre men\xfa a la carte",createdDate:null,lastUpdatedDate:null,notes:"",restaurant:"",language:"ca"},{sections:[{description:"",items:[{notes:"",title:"Vi negre",description:"Copa",price:5,hidden:!1,allergens:[]},{allergens:[],price:5,notes:"",description:"Copa",hidden:!1,title:"Vi blanc"}],hidden:!1,title:"Vi",notes:""},{hidden:!1,title:"Refrescs",description:"",items:[{notes:"",description:"Ampolla de 500ml",allergens:[],price:2,hidden:!1,title:"Aigua"}],notes:""}],language:"ca",createdDate:null,notes:"",picture:null,lastUpdatedDate:null,totalPrice:0,title:"Begudes",type:"CARTA",description:"",restaurant:""}],en:[{createdDate:null,lastUpdatedDate:null,language:"en",totalPrice:18,type:"DAY",title:"Today's offer",description:"Choose a starter, a main course and a dessert.\nWater and bread is included in the price.",picture:null,notes:"",restaurant:"",sections:[{title:"Starters",description:"Choose a starter",hidden:!1,notes:"",items:[{title:"First Starter",hidden:!1,allergens:["MUSTARD"],description:"First Starter Ingredients",price:0},{title:"Second Starter",hidden:!1,allergens:[],description:"Second Starter Ingredients",price:0}]},{title:"Main Courses",description:"Choose a main course",hidden:!1,notes:"",items:[{title:"First main course",hidden:!1,allergens:[],description:"First main course ingredients",price:0},{title:"Second main course",hidden:!1,allergens:[],description:"Second main course ingredients",price:0}]},{title:"Desserts",description:"Choose a dessert",hidden:!1,notes:"",items:[{title:"First Dessert",hidden:!1,allergens:[],description:"First Dessert Description",price:0},{title:"Second Dessert",hidden:!1,allergens:[],description:"Second Dessert Description",price:0}]}]},{createdDate:null,lastUpdatedDate:null,language:"en",totalPrice:0,type:"CARTA",title:"A La Carte",description:"Our a la Carte menu",picture:null,notes:"",restaurant:"",sections:[{title:"Soups",description:"",hidden:!1,notes:"",items:[{title:"First Soup",hidden:!1,allergens:["GLUTEN"],description:"First Soup Description",price:8},{title:"Second Soup",hidden:!1,allergens:[],description:"Second Soup Description",price:8}]},{title:"Salads",description:"",hidden:!1,notes:"",items:[{title:"First Salad",hidden:!1,allergens:[],description:"First Salad Ingredients",price:7},{title:"Second Salad",hidden:!1,allergens:[],description:"Second Salad Ingredients",price:7}]}]},{createdDate:null,lastUpdatedDate:null,language:"en",totalPrice:0,type:"CARTA",title:"Drinks",description:"",picture:null,notes:"",restaurant:"",sections:[{title:"Wine",description:"",hidden:!1,notes:"",items:[{title:"Red Wine",hidden:!1,allergens:[],description:"Glass",price:5},{title:"White Wine",hidden:!1,allergens:[],description:"glass",price:5}]},{title:"Soft Drinks",description:"",hidden:!1,notes:"",items:[{title:"Water",hidden:!1,allergens:[],description:"500ml bottle",price:2}]}]}],fr:[{notes:"",description:"Choisissez une entr\xe9e, un plat principal et un dessert.\nL'eau et le pain sont inclus dans le prix.",totalPrice:18,sections:[{items:[{allergens:["MUSTARD"],price:0,hidden:!1,description:"Ingr\xe9dients de premi\xe8re entr\xe9e",title:"Premier d\xe9marreur",notes:""},{title:"Deuxi\xe8me entr\xe9e",notes:"",price:0,description:"Ingr\xe9dients de deuxi\xe8me entr\xe9e",allergens:[],hidden:!1}],notes:"",description:"Choisissez une entr\xe9e",hidden:!1,title:"Entr\xe9es"},{notes:"",title:"Plats principaux",description:"Choisissez un plat principal",items:[{notes:"",description:"Ingr\xe9dients du premier plat principal",hidden:!1,title:"Premier plat principal",price:0,allergens:[]},{title:"Deuxi\xe8me plat principal",price:0,notes:"",description:"Ingr\xe9dients du deuxi\xe8me plat principal",allergens:[],hidden:!1}],hidden:!1},{notes:"",hidden:!1,title:"Desserts",description:"Choisissez un dessert",items:[{allergens:[],description:"Description du premier dessert",price:0,notes:"",title:"Premier dessert",hidden:!1},{allergens:[],notes:"",hidden:!1,price:0,title:"Deuxi\xe8me dessert",description:"Description du deuxi\xe8me dessert"}]}],title:"Menu du jour",restaurant:"",picture:null,type:"DAY",lastUpdatedDate:null,createdDate:null,language:"fr"},{notes:"",picture:null,restaurant:"",lastUpdatedDate:null,createdDate:null,totalPrice:0,description:"Our a la Carte menu",language:"fr",sections:[{items:[{hidden:!1,notes:"",allergens:["GLUTEN"],description:"Description de la premi\xe8re soupe",title:"Premi\xe8re soupe",price:8},{title:"Deuxi\xe8me soupe",notes:"",price:8,description:"Description de la deuxi\xe8me soupe",hidden:!1,allergens:[]}],description:"",notes:"",hidden:!1,title:"Les soupes"},{items:[{notes:"",hidden:!1,price:7,description:"Ingr\xe9dients de la premi\xe8re salade",allergens:[],title:"Premi\xe8re salade"},{title:"Deuxi\xe8me salade",notes:"",price:7,description:"Ingr\xe9dients de la deuxi\xe8me salade",hidden:!1,allergens:[]}],hidden:!1,description:"",title:"Salades",notes:""}],type:"CARTA",title:"A La Carte"},{language:"fr",lastUpdatedDate:null,totalPrice:0,restaurant:"",createdDate:null,sections:[{description:"",hidden:!1,title:"Du vin",notes:"",items:[{price:5,allergens:[],notes:"",description:"Verre",hidden:!1,title:"Vin rouge"},{title:"Vin blanc",allergens:[],hidden:!1,notes:"",price:5,description:"Verre"}]},{notes:"",title:"Boissons non alcoolis\xe9es",description:"",items:[{description:"Flacon de 500 ml",allergens:[],price:2,notes:"",hidden:!1,title:"Eau"}],hidden:!1}],type:"CARTA",description:"",picture:null,title:"Boissons",notes:""}]}}translate(t){return this.TRANSLATIONS[t]||(t="translation/not-found"),this.TRANSLATIONS[t][this.locale]}
8getLanguageList(){let t=this.locale.toLowerCase();return this.LANGUAGES[t]||(t="es"),this.LANGUAGES[t]}getMenuOfTheDay(t){return t=t||this.locale.toLowerCase(),this.DAILY_MENU[t]||(t="es"),this.DAILY_MENU[t]}getSubscriptionTypes(){let t=this.locale.toLowerCase();return this.SUBSCRIPTION_TYPES[t]||(t="es"),this.SUBSCRIPTION_TYPES[t]}translateWithGoogleTranslate(t,e,n){return new Promise((e,r)=>{this.httpClient.post("https://translation.googleapis.com/language/translate/v2?key=AIzaSyBrhCo8CJvWDseBjbYvk9q7OP9F0zoNt9M",{q:t,target:n,format:"text",model:"nmt"}).toPromise().then(t=>{const n=t.data.translations.map(t=>t.translatedText);e(n)}).catch(t=>r(t))})}translateOrderStatus(t){let e=this.locale.toLowerCase();return this.ORDER_STATUS[e]||(e="es"),this.ORDER_STATUS[e][t]}getDefaultMenu(t){return this.DEFAULT_MENU[t]||(t="es"),this.DEFAULT_MENU[t]}};return t.\u0275fac=function(e){return new(e||t)(r.fc(r.v),r.fc(i.a))},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.fc)(r.v),Object(r.fc)(i.a))},token:t,providedIn:"root"}),t})()},IdLP:function(t,e,n){"use strict";var r=n("5uGe"),i=n("25CY"),o=n("rWo0"),s=n("qEfY"),a=n("Ti3e"),u=n("HgnN");n.d(e,"a",(function(){return c}));let c=(()=>{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:s}=this,a=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(a.add(s?s.call(a,this.source):this.source||u.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),u.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){u.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)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=l(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[s.a](){return this}pipe(...t){return 0===t.length?this:Object(a.b)(t)(this)}toPromise(t){return new(t=l(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function l(t){if(t||(t=u.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},"J+dc":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("5uGe"),i=n("PNff"),o=n("6Oco");function s(t){return e=>0===t?Object(o.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new i.a}call(t,e){return e.subscribe(new u(t,this.total))}}class u 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()))}}},KRZI:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("FU6l");function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},KTx3:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("IdLP"),i=n("FU6l"),o=n("IJgj"),s=n("YtkY");function a(t,e,n,u){return Object(o.a)(n)&&(u=n,n=void 0),u?a(t,e,n).pipe(Object(s.a)(t=>Object(i.a)(t)?u(...t):u(t))):new r.a(r=>{!function t(e,n,r,i,o){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,r,o),s=()=>t.removeEventListener(n,r,o)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,r),s=()=>t.off(n,r)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,r),s=()=>t.removeListener(n,r)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,a=e.length;s<a;s++)t(e[s],n,r,i,o)}i.add(s)}(t,e,(function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),r,n)})}},MiDb: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})()},P4Xx:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("IdLP"),i=n("FU6l"),o=n("YtkY"),s=n("X0qr"),a=n("GoAz");function u(...t){if(1===t.length){const e=t[0];if(Object(i.a)(e))return c(e,null);if(Object(s.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&Object(i.a)(t[0])?t[0]:t,null).pipe(Object(o.a)(t=>e(...t)))}return c(t,null)}function c(t,e){return new r.a(n=>{const r=t.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let u=0;u<r;u++){const c=Object(a.a)(t[u]);let l=!1;n.add(c.subscribe({next:t=>{l||(l=!0,s++),i[u]=t},error:t=>n.error(t),complete:()=>{o++,o!==r&&l||(s===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}},PBFl:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return f}));var r=n("mFH5"),i=n("5lCh"),o=n("EM62"),s=n("sg/T");const a=["mat-button",""],u=["*"],c=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class l{constructor(t){this._elementRef=t}}const h=Object(r.p)(Object(r.r)(Object(r.q)(l)));let d=(()=>{class t extends h{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const r of c)this._hasHostAttributes(r)&&this._getHostElement().classList.add(r);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(o.Qb(o.l),o.Qb(s.e),o.Qb(i.a,8))},t.\u0275cmp=o.Kb({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n;1&t&&o.Oc(r.k,!0),2&t&&o.yc(n=o.kc())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(o.Eb("disabled",e.disabled||null),o.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o.Ab],attrs:a,ngContentSelectors:u,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(o.sc(),o.Wb(0,"span",0),o.rc(1),o.Vb(),o.Rb(2,"div",1),o.Rb(3,"div",2)),2&t&&(o.Db(2),o.Gb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),o.tc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[r.k],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}
8.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275mod=o.Ob({type:t}),t.\u0275inj=o.Nb({factory:function(e){return new(e||t)},imports:[[r.l,r.g],r.g]}),t})()},PNff: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})()},ROBh:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("gBlb"),i=n("ckkg"),o=n("czMQ");function s(...t){let e=t[t.length-1];return Object(r.a)(e)?(t.pop(),Object(o.a)(t,e)):Object(i.a)(t)}},SrNW:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5uGe");function i(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new o(t,e,n))}}class o{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))}}class s extends r.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)}}},TKFd:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return h}));var r=n("5XID"),i=n("EM62"),o=n("IdLP"),s=n("ZTXN"),a=n("mWib");let u=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}
8ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(r.e)(t);return new o.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new s.a,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(i.fc(u))},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.fc)(u))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new i.o,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(r.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(r.f)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(a.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(c),i.Qb(i.l),i.Qb(i.A))},t.\u0275dir=i.Lb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},providers:[u]}),t})()},TLy2:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("pBDD"),i=n("r9RI"),o=n("mW0F"),s=n("YtkY"),a=n("GoAz");function u(t,e){return"function"==typeof e?n=>n.pipe(u((n,r)=>Object(a.a)(t(n,r)).pipe(Object(s.a)((t,i)=>e(n,t,r,i))))):e=>e.lift(new c(t))}class c{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l 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 s=new i.a(this,e,n),a=this.destination;a.add(s),this.innerSubscription=Object(o.a)(this,t,void 0,void 0,s),this.innerSubscription!==s&&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,i){this.destination.next(e)}}},Ti3e:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n("5E2i");function i(...t){return o(t)}function o(t){return 0===t.length?r.a:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},WRB3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("pD9t"),i=n("82Ps"),o=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t}(),s=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return t.prototype.get=function(t){void 0===t&&(t="[DEFAULT]");var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new i.Deferred;this.instancesDeferred.set(e,n);try{var r=this.getOrInitializeService(e);r&&n.resolve(r)}catch(o){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e=r.__assign({identifier:"[DEFAULT]",optional:!1},t),n=e.optional,i=this.normalizeInstanceIdentifier(e.identifier);try{var o=this.getOrInitializeService(i);if(!o){if(n)return null;throw Error("Service "+this.name+" is not available")}return o}catch(s){if(n)return null;throw s}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(t){var e,n;if(t.name!==this.name)throw Error("Mismatching Component "+t.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");
8if(this.component=t,function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService("[DEFAULT]")}catch(l){}try{for(var i=r.__values(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var s=r.__read(o.value,2),a=s[1],u=this.normalizeInstanceIdentifier(s[0]);try{var c=this.getOrInitializeService(u);a.resolve(c)}catch(l){}}}catch(h){e={error:h}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t.prototype.clearInstance=function(t){void 0===t&&(t="[DEFAULT]"),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(t.filter((function(t){return"INTERNAL"in t})).map((function(t){return t.INTERNAL.delete()})))];case 1:return e.sent(),[2]}}))}))},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.getOrInitializeService=function(t){var e=this.instances.get(t);return!e&&this.component&&(e=this.component.instanceFactory(this.container,function(t){return"[DEFAULT]"===t?void 0:t}(t)),this.instances.set(t,e)),e||null},t.prototype.normalizeInstanceIdentifier=function(t){return this.component?this.component.multipleInstances?t:"[DEFAULT]":t},t}(),a=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(t){var e=this.getProvider(t.name);if(e.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);e.setComponent(t)},t.prototype.addOrOverwriteComponent=function(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new s(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}();e.Component=o,e.ComponentContainer=a,e.Provider=s},X0qr:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},YtkY:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5uGe");function i(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 o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.project,this.thisArg))}}class s 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)}}},ZGFJ:function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return w})),n.d(e,"c",(function(){return E}));var r=n("EM62"),i=n("sEIs"),o=n("ROBh"),s=n("IdLP"),a=n("Ti3e"),u=n("J+dc"),c=n("YtkY"),l=n("A2S1"),h=n("TLy2"),d=n("wqq/"),f=n("xBdF");let p=(()=>{class t{constructor(t,e,r,i){this.router=i,this.canActivate=(t,e)=>{const n=t.data.authGuardPipe||(()=>g);return this.authState.pipe(Object(u.a)(1),n(t,e),Object(c.a)(t=>"boolean"==typeof t?t:this.router.createUrlTree(t)))};const a=Object(o.a)(void 0).pipe(Object(l.b)(new f.d(r).outsideAngular),Object(h.a)(()=>r.runOutsideAngular(()=>n.e(6).then(n.bind(null,"6AkR")))),Object(l.b)(new f.d(r).insideAngular),Object(c.a)(()=>Object(f.e)(t,r,e)),Object(c.a)(t=>t.auth()),Object(d.a)({bufferSize:1,refCount:!1}));this.authState=a.pipe(Object(h.a)(t=>new s.a(t.onAuthStateChanged.bind(t))))}}return t.\u0275fac=function(e){return new(e||t)(r.fc(f.c),r.fc(f.b,8),r.fc(r.A),r.fc(i.b))},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.fc)(f.c),Object(r.fc)(f.b,8),Object(r.fc)(r.A),Object(r.fc)(i.b))},token:t,providedIn:"any"}),t})();const m=t=>!!t,g=Object(c.a)(m),y=t=>t?t.getIdTokenResult():Object(o.a)(null),b=Object(h.a)(y),v=t=>t?t.claims:[],_=Object(a.a)(b,Object(c.a)(v)),w=t=>Object(a.a)(_,Object(c.a)(e=>e.hasOwnProperty(t))),E=t=>Object(a.a)(g,Object(c.a)(e=>e||t))},ZTXN:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l}));var r=n("IdLP"),i=n("5uGe"),o=n("bwdy"),s=n("MiDb"),a=n("yTkW"),u=n("25CY");class c extends i.a{constructor(t){super(t),this.destination=t}}let l=(()=>{class t extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[u.a](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new s.a;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].next(t)}}error(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new s.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 s.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),o.a.EMPTY):this.isStopped?(t.complete(),o.a.EMPTY):(this.observers.push(t),new a.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 l{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):o.a.EMPTY}}},bwdy:function(t,e,n){"use strict";var r=n("FU6l"),i=n("X0qr"),o=n("IJgj");const s=(()=>{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})();n.d(e,"a",(function(){return a}));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:c}=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(o.a)(a))try{a.call(this)}catch(l){e=l instanceof s?u(l.errors):[l]}if(Object(r.a)(c)){let t=-1,n=c.length;for(;++t<n;){const n=c[t];if(Object(i.a)(n))try{n.unsubscribe()}catch(l){e=e||[],l instanceof s?e=e.concat(u(l.errors)):e.push(l)}}}if(e)throw new s(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 i=this._subscriptions;return null===i?this._subscriptions=[n]:i.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 u(t){return t.reduce((t,e)=>t.concat(e instanceof s?e.errors:e),[])}},cJ9h:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("mW0F"),i=n("pBDD"),o=n("r9RI"),s=n("YtkY"),a=n("GoAz");function u(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(u((n,r)=>Object(a.a)(t(n,r)).pipe(Object(s.a)((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new c(t,n)))}class c{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends i.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 i=new o.a(this,e,n),s=this.destination;s.add(i);const a=Object(r.a)(this,t,void 0,void 0,i);a!==i&&s.add(a)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,r,i){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()}}},cZZj:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return y}
8)),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return l})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return m}));var r=n("EM62"),i=n("2kYt");let o;try{o="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(b){o=!1}let s,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(i.u)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!o)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(r.fc(r.C,8))},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.fc)(r.C,8))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)}}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function l(){if(s)return s;if("object"!=typeof document||!document)return s=new Set(c),s;let t=document.createElement("input");return s=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),s}let h,d,f;function p(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function m(){return!!("object"==typeof document&&"scrollBehavior"in document.documentElement.style)}function g(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function y(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},ckkg:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("IdLP"),i=n("dUuy"),o=n("czMQ");function s(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},cqs0:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return u}));var r=n("9bRT"),i=n("ROBh"),o=n("ZTXN"),s=n("EM62");class a{}function u(t){return t&&"function"==typeof t.connect}class c extends a{constructor(t){super(),this._data=t}connect(){return Object(r.a)(this._data)?this._data:Object(i.a)(this._data)}disconnect(){}}class l{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.a,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let h=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t})()},czMQ:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
8));var r=n("IdLP"),i=n("bwdy");function o(t,e){return new r.a(n=>{const r=new i.a;let o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}},dUuy: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()}},e4iD:function(t,e,n){"use strict";n.d(e,"a",(function(){return F})),n.d(e,"b",(function(){return W})),n.d(e,"c",(function(){return R})),n.d(e,"d",(function(){return C})),n.d(e,"e",(function(){return U})),n.d(e,"f",(function(){return q})),n.d(e,"g",(function(){return G})),n.d(e,"h",(function(){return z})),n.d(e,"i",(function(){return L})),n.d(e,"j",(function(){return w}));var r=n("2kYt"),i=n("EM62");class o extends r.w{constructor(){super()}supportsDOMEvents(){return!0}}class s extends o{static makeCurrent(){Object(r.A)(new s)}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=u||(u=document.querySelector("base"),u)?u.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(){u=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.z)(document.cookie,t)}}let a,u=null;const c=new i.r("TRANSITION_ID"),l=[{provide:i.d,useFactory:function(t,e,n){return()=>{n.get(i.e).donePromise.then(()=>{const n=Object(r.y)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[c,r.d,i.s],multi:!0}];class h{static init(){Object(i.Z)(new h)}addToWindow(t){i.rb.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},i.rb.getAllAngularTestabilities=()=>t.getAllTestabilities(),i.rb.getAllAngularRootElements=()=>t.getAllRootElements(),i.rb.frameworkStabilizers||(i.rb.frameworkStabilizers=[]),i.rb.frameworkStabilizers.push(t=>{const e=i.rb.getAllAngularTestabilities();let n=e.length,r=!1;const o=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(o)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Object(r.y)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new i.r("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)(i.fc(d),i.fc(i.A))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})();class p{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=Object(r.y)().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,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=i.Mb({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)}
8onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(r.y)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(i.fc(r.d))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})();const y={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/"},b=/%COMP%/g;function v(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?v(t,i,n):(i=i.replace(b,t),n.push(i))}return n}function _(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 E(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case i.R.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case i.R.Native:case i.R.ShadowDom:return new T(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=v(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)(i.fc(f),i.fc(g),i.fc(i.c))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})();class E{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(y[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 i=y[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=y[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&i.H.DashCase?t.style.setProperty(e,n,r&i.H.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&i.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,_(n)):this.eventManager.addEventListener(t,e,_(n))}}class S extends E{constructor(t,e,n,r){super(t),this.component=n;const i=v(r+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(b,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(b,t)}(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 T extends E{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===i.R.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const o=v(r.id,r.styles,[]);for(let i=0;i<o.length;i++){const t=document.createElement("style");t.textContent=o[i],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 x=(()=>{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)(i.fc(r.d))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const n in this.overrides)e.get(n).set(this.overrides[n]);return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})();const k=["alt","control","meta","shift"],O={"\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"},I={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 N=(()=>{class t extends p{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const o=t.parseEventName(n),s=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(r.y)().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=t._normalizeKey(n.pop());let o="";if(k.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}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&&I.hasOwnProperty(e)&&(e=I[e]))}return O[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),k.forEac
8h(r=>{r!=n&&(0,A[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return i=>{t.getEventFullKey(i)===e&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(i.fc(r.d))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Mb)({factory:function(){return Object(i.fc)(D)},token:t,providedIn:"root"}),t})();function P(t){return new D(t.get(r.d))}let D=(()=>{class t extends R{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case i.J.NONE:return e;case i.J.HTML:return Object(i.gb)(e,"HTML")?Object(i.zb)(e):Object(i.db)(this._doc,String(e));case i.J.STYLE:return Object(i.gb)(e,"Style")?Object(i.zb)(e):Object(i.eb)(e);case i.J.SCRIPT:if(Object(i.gb)(e,"Script"))return Object(i.zb)(e);throw new Error("unsafe value used in a script context");case i.J.URL:return Object(i.qb)(e),Object(i.gb)(e,"URL")?Object(i.zb)(e):Object(i.fb)(String(e));case i.J.RESOURCE_URL:if(Object(i.gb)(e,"ResourceURL"))return Object(i.zb)(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(i.hb)(t)}bypassSecurityTrustStyle(t){return Object(i.kb)(t)}bypassSecurityTrustScript(t){return Object(i.jb)(t)}bypassSecurityTrustUrl(t){return Object(i.lb)(t)}bypassSecurityTrustResourceUrl(t){return Object(i.ib)(t)}}return t.\u0275fac=function(e){return new(e||t)(i.fc(r.d))},t.\u0275prov=Object(i.Mb)({factory:function(){return P(Object(i.fc)(i.p))},token:t,providedIn:"root"}),t})();const j=[{provide:i.C,useValue:r.x},{provide:i.D,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:r.d,useFactory:function(){return Object(i.xb)(document),document},deps:[]}],L=Object(i.T)(i.Y,"browser",j),M=[[],{provide:i.bb,useValue:"root"},{provide:i.n,useFactory:function(){return new i.n},deps:[]},{provide:d,useClass:x,multi:!0,deps:[r.d,i.A,i.C]},{provide:d,useClass:N,multi:!0,deps:[r.d]},[],{provide:w,useClass:w,deps:[f,g,i.c]},{provide:i.G,useExisting:w},{provide:m,useExisting:g},{provide:g,useClass:g,deps:[r.d]},{provide:i.N,useClass:i.N,deps:[i.A]},{provide:f,useClass:f,deps:[d,i.A]},[]];let F=(()=>{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:i.c,useValue:e.appId},{provide:c,useExisting:i.c},l]}}}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)(i.fc(t,12))},providers:M,imports:[r.b,i.f]}),t})();function V(){return new U(Object(i.fc)(r.d))}let U=(()=>{class t{constructor(t){this._doc=t,this._dom=Object(r.y)()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,n)=>(n&&t.push(this._getOrCreateElement(n,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),n=this.getTag(e);if(n&&this._containsAttributes(t,n))return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(t,n),this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(n=>e.setAttribute(n,t[n])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(n=>e.getAttribute(n)===t[n])}}return t.\u0275fac=function(e){return new(e||t)(i.fc(r.d))},t.\u0275prov=Object(i.Mb)({factory:V,token:t,providedIn:"root"}),t})();function B(){return new q(Object(i.fc)(r.d))}let q=(()=>{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)(i.fc(r.d))},t.\u0275prov=Object(i.Mb)({factory:B,token:t,providedIn:"root"}),t})();function z(t){return t}"undefined"!=typeof window&&window;let G=(()=>{class t{constructor(){this.store={},this.onSerializeCallbacks={}}static init(e){const n=new t;return n.store=e,n}get(t,e){return void 0!==this.store[t]?this.store[t]:e}set(t,e){this.store[t]=e}remove(t){delete this.store[t]}hasKey(t){return this.store.hasOwnProperty(t)}onSerialize(t,e){this.onSerializeCallbacks[t]=e}toJson(){for(const e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})();function H(t,e){const n=t.getElementById(e+"-state");let r={};if(n&&n.textContent)try{r=JSON.parse(function(t){const e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,t=>e[t])}(n.textContent))}catch(i){console.warn("Exception while restoring TransferState for app "+e,i)}return G.init(r)}let W=(()=>{class t{}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)},providers:[{provide:G,useFactory:H,deps:[r.d,i.c]}]}),t})()},"eY+9":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>t&&"number"==typeof t.length&&"function"!=typeof t},"f7+R":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
8)),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return y})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return d})),n.d(e,"i",(function(){return m})),n.d(e,"j",(function(){return c})),n.d(e,"k",(function(){return h})),n.d(e,"l",(function(){return l})),n.d(e,"m",(function(){return f})),n.d(e,"n",(function(){return s})),n.d(e,"o",(function(){return b})),n.d(e,"p",(function(){return v}));class r{}class i{}const o="*";function s(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function u(t,e=null){return{type:3,steps:t,options:e}}function c(t,e=null){return{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function h(t,e,n){return{type:0,name:t,styles:e,options:n}}function d(t){return{type:5,steps:t}}function f(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p(t=null){return{type:9,options:t}}function m(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function g(t){Promise.resolve(null).then(t)}class y{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(){g(()=>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 b{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 i=this.players.length;0==i?g(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++r==i&&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 v="!"},fAiE:function(t,e,n){"use strict";n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return i})),n.d(e,"e",(function(){return o}
8)),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return p})),n.d(e,"i",(function(){return h})),n.d(e,"j",(function(){return s})),n.d(e,"k",(function(){return r})),n.d(e,"l",(function(){return l})),n.d(e,"m",(function(){return g})),n.d(e,"n",(function(){return f})),n.d(e,"o",(function(){return y}));const r=9,i=13,o=27,s=32,a=35,u=36,c=37,l=38,h=39,d=40,f=48,p=57,m=65,g=90;function y(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},g6G6:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("IdLP"),i=n("gBlb"),o=n("3lSR"),s=n("ckkg");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(i.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(o.a)(e)(Object(s.a)(t,n))}},gBlb:function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},huQ6:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return a})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return l})),n.d(e,"__generator",(function(){return h})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return f})),n.d(e,"__read",(function(){return p})),n.d(e,"__spread",(function(){return m})),n.d(e,"__spreadArrays",(function(){return g})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return b})),n.d(e,"__asyncDelegator",(function(){return v})),n.d(e,"__asyncValues",(function(){return _}
8)),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return E})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return T})),n.d(e,"__classPrivateFieldSet",(function(){return x}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(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 i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function a(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function d(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function g(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function v(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function _(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=f(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function E(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function T(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function x(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},"i9P/":function(t,e,n){"use strict";function r(t){setTimeout(()=>{throw t},0)}n.d(e,"a",(function(){return r}))},i9xl:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("IdLP"),i=n("GoAz"),o=n("6Oco");function s(t){return new r.a(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(e)})}},iwOJ:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n("EM62"),i=n("ROBh"),o=n("IdLP"),s=n("GoAz"),a=n("A2S1"),u=n("TLy2"),c=n("YtkY"),l=n("wqq/"),h=n("xBdF");let d=(()=>{class t{constructor(t,e,r,d){const f=new h.d(d),p=Object(h.f)(f,r),m=Object(i.a)(void 0).pipe(Object(a.b)(f.outsideAngular),Object(u.a)(()=>d.runOutsideAngular(()=>n.e(6).then(n.bind(null,"6AkR")))),Object(c.a)(()=>Object(h.e)(t,d,e)),Object(c.a)(t=>t.auth()),Object(l.a)({bufferSize:1,refCount:!1}));return this.authState=m.pipe(Object(a.b)(f.outsideAngular),Object(u.a)(t=>new o.a(t.onAuthStateChanged.bind(t))),p),this.user=m.pipe(Object(a.b)(f.outsideAngular),Object(u.a)(t=>new o.a(t.onIdTokenChanged.bind(t))),p),this.idToken=this.user.pipe(Object(u.a)(t=>t?Object(s.a)(t.getIdToken()):Object(i.a)(null))),this.idTokenResult=this.user.pipe(Object(u.a)(t=>t?Object(s.a)(t.getIdTokenResult()):Object(i.a)(null))),Object(h.g)(this,m,d)}}return t.\u0275fac=function(e){return new(e||t)(r.fc(h.c),r.fc(h.b,8),r.fc(r.C),r.fc(r.A))},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.fc)(h.c),Object(r.fc)(h.b,8),Object(r.fc)(r.C),Object(r.fc)(r.A))},token:t,providedIn:"any"}),t})()},jIqt:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
8));var r=n("qZtG"),i=n("gBlb");function o(...t){const e=t[t.length-1];return Object(i.a)(e)?(t.pop(),n=>Object(r.a)(t,n,e)):e=>Object(r.a)(t,e)}},jdnZ:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n("5XID"),n("cqs0");var r=n("EM62"),i=(n("nIj0"),n("mFH5"));n("sg/T");let o=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[i.g,i.l],i.g]}),t})()},kSHZ:function(t,e,n){"use strict";var r=n("EWqr");class i extends r.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var o=n("DG/E");class s extends o.a{}n.d(e,"a",(function(){return a}));const a=new s(i)},kTG4:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return a})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return l})),n.d(e,"__generator",(function(){return h})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return f})),n.d(e,"__read",(function(){return p})),n.d(e,"__spread",(function(){return m})),n.d(e,"__spreadArrays",(function(){return g})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return b})),n.d(e,"__asyncDelegator",(function(){return v})),n.d(e,"__asyncValues",(function(){return _}
vendor: 5,768 bytes, line 8
8)),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return E})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return T})),n.d(e,"__classPrivateFieldSet",(function(){return x}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(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 i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function a(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function d(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function g(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function v(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function _(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=f(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function E(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function T(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function x(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},kuMc:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
8));var r=n("pBDD"),i=n("mW0F");function o(t){return e=>e.lift(new s(t))}class s{constructor(t){this.notifier=t}call(t,e){const n=new a(t),r=Object(i.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class a extends r.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,r,i){this.seenValue=!0,this.complete()}notifyComplete(){}}},mFH5:function(t,e,n){"use strict";var r=n("EM62"),i=n("sg/T"),o=n("E5oP");const s=new r.P("9.2.3");var a=n("2kYt"),u=n("5XID"),c=n("ZTXN"),l=n("IdLP"),h=n("cZZj"),d=(n("e4iD"),n("jIqt"),n("5lCh")),f=n("fAiE");n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return v})),n.d(e,"c",(function(){return A})),n.d(e,"d",(function(){return tt})),n.d(e,"e",(function(){return K})),n.d(e,"f",(function(){return M})),n.d(e,"g",(function(){return S})),n.d(e,"h",(function(){return H})),n.d(e,"i",(function(){return Y})),n.d(e,"j",(function(){return J})),n.d(e,"k",(function(){return F})),n.d(e,"l",(function(){return V})),n.d(e,"m",(function(){return L})),n.d(e,"n",(function(){return Z})),n.d(e,"o",(function(){return X})),n.d(e,"p",(function(){return x})),n.d(e,"q",(function(){return C})),n.d(e,"r",(function(){return T})),n.d(e,"s",(function(){return O})),n.d(e,"t",(function(){return I})),n.d(e,"u",(function(){return k}));const p=["*",[["mat-option"],["ng-container"]]],m=["*","mat-option, ng-container"];function g(t,e){if(1&t&&r.Rb(0,"mat-pseudo-checkbox",3),2&t){const t=r.nc();r.tc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const y=["*"];let b=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),v=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const _=new r.P("9.2.3"),w=new r.r("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let E,S=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(r.X)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const r=getComputedStyle(n);r&&"none"!==r.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&_.full!==s.full&&console.warn("The Angular Material version ("+_.full+") does not match the Angular CDK version ("+s.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)(r.fc(i.g),r.fc(w,8),r.fc(a.d,8))},imports:[[o.a],o.a]}),t})();function T(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(u.c)(t)}}}function x(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}}}function C(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(u.c)(t)}}}function k(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:e}}}function O(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new c.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function I(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new l.a(t=>
8{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}try{E="undefined"!=typeof Intl}catch(et){E=!1}let A=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class N{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const R={enterDuration:450,exitDuration:400},P=Object(h.f)({passive:!0}),D=["mousedown","touchstart"],j=["mouseup","mouseleave","touchend","touchcancel"];class L{constructor(t,e,n,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Object(u.e)(n))}fadeInRipple(t,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=Object.assign(Object.assign({},R),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=n.radius||function(t,e,n){const r=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(r*r+i*i)}(t,e,r),s=t-r.left,a=e-r.top,u=i.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${s-o}px`,c.style.top=`${a-o}px`,c.style.height=`${2*o}px`,c.style.width=`${2*o}px`,null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const l=new N(this,c,n);return l.state=0,this._activeRipples.add(l),n.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,n.persistent||t&&this._isPointerDown||l.fadeOut()},u),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,r=Object.assign(Object.assign({},R),t.config.animation);n.style.transitionDuration=`${r.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(u.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(D))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(j),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(i.i)(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,P)})})}_removeTriggerEvents(){this._triggerElement&&(D.forEach(t=>{this._triggerElement.removeEventListener(t,this,P)}),this._pointerUpEventsRegistered&&j.forEach(t=>{this._triggerElement.removeEventListener(t,this,P)}))}}const M=new r.r("mat-ripple-global-options");let F=(()=>{class t{constructor(t,e,n,r,i){this._elementRef=t,this._animationMode=i,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new L(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.l),r.Qb(r.A),r.Qb(h.a),r.Qb(M,8),r.Qb(d.a,8))},t.\u0275dir=r.Lb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&r.Gb("mat-ripple-unbounded",e.unbounded)}
8,inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),V=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[S,h.b],S]}),t})(),U=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(d.a,8))},t.\u0275cmp=r.Kb({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&r.Gb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),B=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)}}),t})();class q{}const z=T(q);let G=0,H=(()=>{class t extends z{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${G++}`}}return t.\u0275fac=function(e){return W(e||t)},t.\u0275cmp=r.Kb({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(r.Eb("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),r.Gb("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[r.Ab],ngContentSelectors:m,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(r.sc(p),r.Wb(0,"label",0),r.Jc(1),r.rc(2),r.Vb(),r.rc(3,1)),2&t&&(r.tc("id",e._labelId),r.Db(1),r.Lc("",e.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();const W=r.Yb(H);let $=0;class Q{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const K=new r.r("MAT_OPTION_PARENT_COMPONENT");let Y=(()=>{class t{constructor(t,e,n,i){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${$++}`,this.onSelectionChange=new r.o,this._stateChanges=new c.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(u.c)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==f.d&&t.keyCode!==f.j||Object(f.o)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}
8_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Q(this,t))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.l),r.Qb(r.h),r.Qb(K,8),r.Qb(H,8))},t.\u0275cmp=r.Kb({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&r.jc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(r.Zb("id",e.id),r.Eb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),r.Gb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:y,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(r.sc(),r.Ic(0,g,1,2,"mat-pseudo-checkbox",0),r.Wb(1,"span",1),r.rc(2),r.Vb(),r.Rb(3,"div",2)),2&t&&(r.tc("ngIf",e.multiple),r.Db(3),r.tc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.m,F,U],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function Z(t,e,n){if(n.length){let r=e.toArray(),i=n.toArray(),o=0;for(let e=0;e<t+1;e++)r[e].group&&r[e].group===i[o]&&o++;return o}return 0}function X(t,e,n,r){const i=t*e;return i<n?i:i+e>n+r?Math.max(0,i-r+e):n}let J=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[V,a.b,B]]}),t})();const tt=new r.r("mat-label-global-options")},mHt8:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return h}));var r=n("EM62"),i=n("nIj0"),o=n("29Wa"),s=n("jdnZ"),a=n("Cd2c"),u=n("PBFl"),c=n("+Tre"),l=n("2kYt");n("zfB+"),n("sEIs"),"Please verify your account. Check your email.","Didn't receive the email?","We've sent you another email, please check your inbox and make sure it is not in the spam.","We've sent you email, please check your inbox and make sure it is not in the spam.";let h=(()=>{let t=class{constructor(){this.onUserChanges=new r.o,this.isInit=!1}init(t){this.apiService=t,this.isInit=!0,this.user=this.apiService.getUser(),this.apiService.onAuthStateChanged.subscribe(t=>{t&&(this.user=this.apiService.getUser()),this.onUserChanges.emit(this.user)})}getUser(){return this.user}isLoggedIn(){return!!this.user}login(t,e){return new Promise((n,r)=>{this.isInit?this.isLoggedIn()?this.apiService.reloadUser().then(t=>{this.user=t,n(this.user)}):this.apiService.login(t,e).then(t=>{this.user=t,n(t)}
8).catch(t=>{r(t)}):r(!1)})}register(t,e){return new Promise((n,r)=>{this.isInit?this.apiService.registerUser(t,e).then(t=>{this.user=t,n(t)}).catch(t=>{r(t)}):r(!1)})}addUser(t,e,n,r){return this.apiService.addUser(t,e,n,r)}verifyUser(t){return this.apiService.verifyUser(t)}recoverEmail(t){return this.apiService.verifyUser(t)}sendResetPasswordLink(t){return this.apiService.sendResetPasswordLink(t)}verifyPasswordReset(t,e){return this.apiService.verifyPasswordReset(t,e)}refreshUser(){return this.apiService.reloadUser()}forceRefreshUser(){return this.apiService.refreshUser()}logout(){return new Promise((t,e)=>{this.isInit?this.apiService.logout().then(()=>{this.user=null,t(!0)}).catch(t=>{e(t)}):e(!1)})}sendVerificationEmail(){return this.apiService.sendEmailVerification()}loginWithToken(t){return this.apiService.loginWithToken(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),d=(()=>{let t=class{};return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[l.b,i.g,o.e,s.a,a.b,u.b,c.b]]}),t})()},mW0F:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("r9RI"),i=n("1MAX"),o=n("IdLP");function s(t,e,n,s,a=new r.a(t,n,s)){if(!a.closed)return e instanceof o.a?e.subscribe(a):Object(i.a)(e)(a)}},mWib:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("5uGe"),i=n("Efrr");function o(t,e=i.a){return n=>n.lift(new s(t,e))}class s{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends r.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function u(t){t.debouncedNext()}},mawV:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("3lSR");function i(){return Object(r.a)(1)}},nIj0:function(t,e,n){"use strict";n.d(e,"a",(function(){return Ft})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return dt})),n.d(e,"d",(function(){return Ht})),n.d(e,"e",(function(){return Dt})),n.d(e,"f",(function(){return kt})),n.d(e,"g",(function(){return Wt})),n.d(e,"h",(function(){return zt})),n.d(e,"i",(function(){return Bt})),n.d(e,"j",(function(){return S})),n.d(e,"k",(function(){return u})),n.d(e,"l",(function(){return b})),n.d(e,"m",(function(){return _})),n.d(e,"n",(function(){return w})),n.d(e,"o",(function(){return mt})),n.d(e,"p",(function(){return St})),n.d(e,"q",(function(){return P})),n.d(e,"r",(function(){return $t})),n.d(e,"s",(function(){return Mt})),n.d(e,"t",(function(){return C})),n.d(e,"u",(function(){return Tt}));var r=n("EM62"),i=n("2kYt"),o=n("P4Xx"),s=n("GoAz"),a=n("YtkY");const u=new r.r("NgValueAccessor"),c={provide:u,useExisting:Object(r.V)(()=>l),multi:!0};let l=(()=>{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.Qb(r.F),r.Qb(r.l))},t.\u0275dir=r.Lb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&r.jc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[r.Cb([c])]}),t})();const h={provide:u,useExisting:Object(r.V)(()=>f),multi:!0},d=new r.r("CompositionEventMode");let f=(()=>{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(i.y)()?Object(i.y)().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)}
8_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.F),r.Qb(r.l),r.Qb(d,8))},t.\u0275dir=r.Lb({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.jc("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.Cb([h])]}),t})(),p=(()=>{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.Lb({type:t}),t})(),m=(()=>{class t extends p{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return g(e||t)},t.\u0275dir=r.Lb({type:t,features:[r.Ab]}),t})();const g=r.Yb(m);function y(){throw new Error("unimplemented")}class b extends p{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return y()}get asyncValidator(){return y()}}class v{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 _=(()=>{class t extends v{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(b,2))},t.\u0275dir=r.Lb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Gb("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.Ab]}),t})(),w=(()=>{class t extends v{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(m,2))},t.\u0275dir=r.Lb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Gb("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.Ab]}),t})();function E(t){return null==t||0===t.length}const S=new r.r("NgValidators"),T=new r.r("NgAsyncValidators"),x=/^(?=.{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 C{static min(t){return e=>{if(E(e.value)||E(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(E(e.value)||E(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return E(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return E(t.value)?null:x.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(E(e.value))return null;const n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}static maxLength(t){return e=>{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return C.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(E(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(k);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(k);return 0==e.length?null:function(t){const n=function(t,e){return e.map(e=>e(t))}(t,e).map(O);return Object(o.a)(n).pipe(Object(a.a)(I))}}}function k(t){return null!=t}function O(t){const e=Object(r.ub)(t)?Object(s.a)(t):t;if(!Object(r.tb)(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 A(t){return t.validate?e=>t.validate(e):t}function N(t){return t.validate?e=>t.validate(e):t}const R={provide:u,useExisting:Object(r.V)(()=>P),multi:!0};let P=(()=>{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.Qb(r.F),r.Qb(r.l))},t.\u0275dir=r.Lb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&r.jc("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.Cb([R])]}),t})();const D={provide:u,useExisting:Object(r.V)(()=>L),multi:!0};let j=(()=>{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)}
8select(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.Mb({token:t,factory:t.\u0275fac}),t})(),L=(()=>{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(b),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.Qb(r.F),r.Qb(r.l),r.Qb(j),r.Qb(r.s))},t.\u0275dir=r.Lb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&r.jc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.Cb([D])]}),t})();const M={provide:u,useExisting:Object(r.V)(()=>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,"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.Qb(r.F),r.Qb(r.l))},t.\u0275dir=r.Lb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&r.jc("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.Cb([M])]}),t})();const V='\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 });',U='\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 });',B='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>';class q{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 ${V}`)}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 ${U}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${B}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${V}`)}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).\
8n\n Example:\n\n ${U}`)}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 Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"
8===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}const z={provide:u,useExisting:Object(r.V)(()=>G),multi:!0};let G=(()=>{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=r.vb}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=function(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(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.Qb(r.F),r.Qb(r.l))},t.\u0275dir=r.Lb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&r.jc("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.Cb([z])]}),t})();const H={provide:u,useExisting:Object(r.V)(()=>W),multi:!0};let W=(()=>{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=r.vb}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(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const r=t.item(e),i=this._getOptionValue(r.value);n.push(i)}}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.Qb(r.F),r.Qb(r.l))},t.\u0275dir=r.Lb({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&r.jc("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.Cb([H])]}),t})();function $(t,e){return[...e.path,t]}function Q(t,e){t||X(e,"Cannot find control with"),e.valueAccessor||X(e,"No value accessor for form control with"),t.validator=C.compose([t.validator,e.validator]),t.asyncValidator=C.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&&K(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&&K(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}
8),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function K(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Y(t,e){null==t&&X(e,"Cannot find control with"),t.validator=C.compose([t.validator,e.validator]),t.asyncValidator=C.composeAsync([t.asyncValidator,e.asyncValidator])}function Z(t){return X(t,"There is no FormControl instance attached to form control element with")}function X(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 J(t){return null!=t?C.compose(t.map(A)):null}function tt(t){return null!=t?C.composeAsync(t.map(N)):null}function et(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object(r.vb)(e,n.currentValue)}const nt=[l,F,P,G,W,L];function rt(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function it(t,e){if(!e)return null;Array.isArray(e)||X(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,i=void 0;return e.forEach(e=>{var o;e.constructor===f?n=e:(o=e,nt.some(t=>o.constructor===t)?(r&&X(t,"More than one built-in value accessor matches form control with"),r=e):(i&&X(t,"More than one custom value accessor matches form control with"),i=e))}),i||r||n||(X(t,"No valid value accessor for form control with"),null)}function ot(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function st(t){const e=ut(t)?t.validators:t;return Array.isArray(e)?J(e):e||null}function at(t,e){const n=ut(e)?e.asyncValidators:t;return Array.isArray(n)?tt(n):n||null}function ut(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ct{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"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}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=st(t)}setAsyncValidators(t){this.asyncValidator=at(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="PENDING",!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="DISABLED",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="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}
8),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(),"VALID"!==this.status&&"PENDING"!==this.status||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()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=O(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 ht?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof dt&&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()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_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){ut(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class lt extends ct{constructor(t=null,e,n){super(st(e),at(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._pe
8ndingChange)||(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 ht extends ct{constructor(t,e,n){super(st(e),at(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 lt?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){let e=!1;return this._forEachChild((n,r)=>{e=e||this.contains(r)&&t(n)}),e}_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 dt extends ct{constructor(t,e,n){super(st(e),at(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})}
8),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 lt?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 ft={provide:m,useExisting:Object(r.V)(()=>mt)},pt=(()=>Promise.resolve(null))();let mt=(()=>{class t extends m{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.o,this.form=new ht({},J(t),tt(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){pt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Q(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}
8removeControl(t){pt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),ot(this._directives,t)})}addFormGroup(t){pt.then(()=>{const e=this._findContainer(t.path),n=new ht({});Y(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){pt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){pt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,rt(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.Qb(S,10),r.Qb(T,10))},t.\u0275dir=r.Lb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&r.jc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Cb([ft]),r.Ab]}),t})(),gt=(()=>{class t extends m{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return J(this._validators)}get asyncValidator(){return tt(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return yt(e||t)},t.\u0275dir=r.Lb({type:t,features:[r.Ab]}),t})();const yt=r.Yb(gt);class bt{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 ${V}\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 ${U}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${B}`)}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 ${U}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${B}`)}}const vt={provide:m,useExisting:Object(r.V)(()=>_t)};let _t=(()=>{class t extends gt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof mt||bt.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(m,5),r.Qb(S,10),r.Qb(T,10))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r.Cb([vt]),r.Ab]}),t})();const wt={provide:b,useExisting:Object(r.V)(()=>St)},Et=(()=>Promise.resolve(null))();let St=(()=>{class t extends b{constructor(t,e,n,i){super(),this.control=new lt,this._registered=!1,this.update=new r.o,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=it(this,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),et(t,this.viewModel)&&(this._updateV
8alue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?$(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return J(this._rawValidators)}get asyncValidator(){return tt(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(){Q(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof _t)&&this._parent instanceof gt?bt.formGroupNameException():this._parent instanceof _t||this._parent instanceof mt||bt.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||bt.missingNameException()}_updateValue(t){Et.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Et.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.Qb(m,9),r.Qb(S,10),r.Qb(T,10),r.Qb(u,10))},t.\u0275dir=r.Lb({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.Cb([wt]),r.Ab,r.Bb]}),t})(),Tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const xt=new r.r("NgModelWithFormControlWarning"),Ct={provide:m,useExisting:Object(r.V)(()=>kt)};let kt=(()=>{class t extends m{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 Q(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}
8removeControl(t){ot(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Y(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);Y(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,rt(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(()=>Z(e)),e.valueAccessor.registerOnTouched(()=>Z(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&&Q(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=J(this._validators);this.form.validator=C.compose([this.form.validator,t]);const e=tt(this._asyncValidators);this.form.asyncValidator=C.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||q.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(S,10),r.Qb(T,10))},t.\u0275dir=r.Lb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&r.jc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Cb([Ct]),r.Ab,r.Bb]}),t})();const Ot={provide:m,useExisting:Object(r.V)(()=>It)};let It=(()=>{class t extends gt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){Rt(this._parent)&&q.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(m,13),r.Qb(S,10),r.Qb(T,10))},t.\u0275dir=r.Lb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r.Cb([Ot]),r.Ab]}),t})();const At={provide:m,useExisting:Object(r.V)(()=>Nt)};let Nt=(()=>{class t extends m{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 $(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return J(this._validators)}get asyncValidator(){return tt(this._asyncValidators)}_checkParentType(){Rt(this._parent)&&q.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(m,13),r.Qb(S,10),r.Qb(T,10))},t.\u0275dir=r.Lb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r.Cb([At]),r.Ab]}),t})();function Rt(t){return!(t instanceof It||t instanceof kt||t instanceof Nt)}const Pt={provide:b,useExisting:Object(r.V)(()=>Dt)};let Dt=(()=>{class t extends b{constructor(t,e,n,i,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new r.o,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=it(this,i)}set isDisabled(t){q.disabledAttrWarning()}ngOnChanges(e){var n,i,o;this._added||this._setUpControl(),et(e,this.viewModel)&&(n=t,i=this,o=this._ngModelWarningConfig,Object(r.X)()&&"never"!==o&&((null!==o&&"once"!==o||n._ngModelWarningSentOnce)&&("always"!==o||i._ngModelWarningSent)||(q.ngModelWarning("formControlName"),n._ngModelWarningSentOnce=!0,i._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 $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return J(this._rawValidators)}get asyncValidator(){return tt(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof It)&&this._parent instanceof gt?q.ngModelGroupException():this._parent instanceof It||this._parent instanceof kt||this._parent instanceof Nt||q.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.Qb(m,13),r.Qb(S,10),r.Qb(T,10),r.Qb(u,10),r.Qb(xt,8))},t.\u0275dir=r.Lb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r.Cb([Pt]),r.Ab,r.Bb]}),t._ngModelWarningSentOnce=!1,t})();const jt={provide:S,useExisting:Object(r.V)(()=>Mt),multi:!0},Lt={provide:S,useExisting:Object(r.V)(()=>Ft),multi:!0};let Mt=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!==`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?C.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({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.Eb("required",e.required?"":null)},inputs:{required:"required"},features:[r.Cb([jt])]}),t})(),Ft=(()=>{class t extends Mt{validate(t){return this.required?C.requiredTrue(t):null}}return t.\u0275fac=function(e){return Vt(e||t)},t.\u0275dir=r.Lb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.Eb("required",e.required?"":null)},features:[r.Cb([Lt]),r.Ab]}),t})();const Vt=r.Yb(Ft),Ut={provide:S,useExisting:Object(r.V)(()=>Bt),multi:!0};let Bt=(()=>{class t{ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}
8validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=C.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.Eb("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[r.Cb([Ut]),r.Bb]}),t})();const qt={provide:S,useExisting:Object(r.V)(()=>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=C.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.Eb("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r.Cb([qt]),r.Bb]}),t})(),Gt=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)}}),t})(),Ht=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r=null,i=null,o=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,i=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new ht(n,{asyncValidators:i,updateOn:o,validators:r})}control(t,e,n){return new lt(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new dt(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 lt||t instanceof ht||t instanceof dt?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.Mb({token:t,factory:t.\u0275fac}),t})(),Wt=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[j],imports:[Gt]}),t})(),$t=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[Ht,j],imports:[Gt]}),t})()},pBDD:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5uGe");class i extends r.a{notifyNext(t,e,n,r,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},pD9t:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return a})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return l})),n.d(e,"__generator",(function(){return h})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return f})),n.d(e,"__read",(function(){return p})),n.d(e,"__spread",(function(){return m})),n.d(e,"__spreadArrays",(function(){return g})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return b})),n.d(e,"__asyncDelegator",(function(){return v})),n.d(e,"__asyncValues",(function(){return _}
vendor: 5,737 bytes, line 8
8)),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return E})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return T})),n.d(e,"__classPrivateFieldSet",(function(){return x}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(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 i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function a(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function d(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function g(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function v(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function _(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=f(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function E(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function T(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function x(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},plFh:function(t,e,n){"use strict";
8Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=n("kTG4"),s=n("82Ps"),a=n("WRB3"),u=n("Gjt8"),c=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),l=new s.ErrorFactory("app","Firebase",c),h=((i={})["@firebase/app"]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/auth"]="fire-auth",i["@firebase/database"]="fire-rtdb",i["@firebase/functions"]="fire-fn",i["@firebase/installations"]="fire-iid",i["@firebase/messaging"]="fire-fcm",i["@firebase/performance"]="fire-perf",i["@firebase/remote-config"]="fire-rc",i["@firebase/storage"]="fire-gcs",i["@firebase/firestore"]="fire-fst",i["fire-js"]="fire-js",i["firebase-wrapper"]="fire-js-all",i),d=new u.Logger("@firebase/app"),f=function(){function t(t,e,n){var r,i,u=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=s.deepCopy(t),this.container=new a.ComponentContainer(e.name),this._addComponent(new a.Component("app",(function(){return u}),"PUBLIC"));try{for(var c=o.__values(this.firebase_.INTERNAL.components.values()),l=c.next();!l.done;l=c.next())this._addComponent(l.value)}catch(h){r={error:h}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise((function(e){t.checkDestroyed_(),e()})).then((function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map((function(t){return t.delete()})))})).then((function(){t.isDeleted_=!0}))},t.prototype._getService=function(t,e){return void 0===e&&(e="[DEFAULT]"),this.checkDestroyed_(),this.container.getProvider(t).getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e="[DEFAULT]"),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){d.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},t.prototype._addOrOverwriteComponent=function(t){this.container.addOrOverwriteComponent(t)},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw l.create("app-deleted",{appName:this.name_})},t}();f.prototype.name&&f.prototype.options||f.prototype.delete||console.log("dc");var p=function t(){var e=function(t){var e={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={}),"object"==typeof i&&null!==i||(i={name:i});var o=i;void 0===o.name&&(o.name="[DEFAULT]");var a=o.name;if("string"!=typeof a||!a)throw l.create("bad-app-name",{appName:String(a)});if(s.contains(e,a))throw l.create("duplicate-app",{appName:a});var u=new t(n,o,r);return e[a]=u,u},app:i,registerVersion:function(t,e,n){var r,i=null!==(r=h[t])&&void 0!==r?r:t;n&&(i+="-"+n);var o=i.match(/\s|\//),s=e.match(/\s|\//);if(o||s){var u=['Unable to register library "'+i+'" with version "'+e+'":'];return o&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&s&&u.push("and"),s&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void d.warn(u.join(" "))}c(new a.Component(i+"-version",(function(){return{library:i,version:e}}),"VERSION"))},setLogLevel:u.setLogLevel,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw l.create("invalid-log-argument",{appName:name});u.setUserLogHandler(t,e)},apps:null,SDK_VERSION:"7.14.3",INTERNAL:{registerComponent:c,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){return"serverAuth"===e?null:e}}};function i(t){if(!s.contains(e,t=t||"[DEFAULT]"))throw l.create("no-app",{appName:t});return e[t]}function c(a){var u,c,h=a.name;if(n.has(h))return d.debug("There were multiple attempts to register component "+h+"."),"PUBLIC"===a.type?r[h]:null;if(n.set(h,a),"PUBLIC"===a.type){var f=function(t){if(void 0===t&&(t=i()),"function"!=typeof t[h])throw l.create("invalid-app-argument",{appName:h});return t[h]()};void 0!==a.serviceProps&&s.deepExtend(f,a.serviceProps),r[h]=f,t.prototype[h]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._getService.bind(this,h);return n.apply(this,a.multipleInstances?t:[])}}try{for(var p=o.__values(Object.keys(e)),m=p.next();!m.done;m=p.next())e[m.value]._addComponent(a)}catch(g){u={error:g}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(u)throw u.error}}return"PUBLIC"===a.type?r[h]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(e).map((function(t){return e[t]}))}}),i.App=t,r}(f);return e.INTERNAL=o.__assign(o.__assign({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){s.deepExtend(e,t)},createSubscribe:s.createSubscribe,ErrorFactory:s.ErrorFactory,deepExtend:s.deepExtend}),e}(),m=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(t){if(function(t){var e=t.getComponent();return"VERSION"===(null==e?void 0:e.type)}(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null})).filter((function(t){return t})).join(" ")},t}();if(s.isBrowser()&&void 0!==self.firebase){d.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var g=self.firebase.SDK_VERSION;g&&g.indexOf("LITE")>=0&&d.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var y=p.initializeApp;p.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s.isNode()&&d.warn('\n Warning: This is a browser-targeted Firebase bundle but it appears it is being\n run in a Node environment. If running in a Node environment, make sure you\n are using the bundle specified by the "main" field in package.json.\n \n If you are using Webpack, you can specify "main" as the first item in\n "resolve.mainFields":\n https://webpack.js.org/configuration/resolve/#resolvemainfields\n \n If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n as the first item in "mainFields", e.g. [\'main\', \'module\'].\n https://github.com/rollup/rollup-plugin-node-resolve\n '),y.apply(void 0,t)};var b=p;!function(t,e){t.INTERNAL.registerComponent(new a.Component("platform-logger",(function(t){return new m(t)}),"PRIVATE")),t.registerVersion("@firebase/app","0.6.3",void 0),t.registerVersion("fire-js","")}(b),e.default=b,e.firebase=b},prE9:function(t,e,n){"use strict";var r=n("Efrr"),i=n("pBDD"),o=n("mW0F");class s{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends i.a{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const r=Object(o.a)(this,n);!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var u=n("8lHc");function c(t,e=r.a){return n=()=>Object(u.a)(t,e),function(t){return t.lift(new s(n))};var n}n.d(e,"a",(function(){return c}))},qEfY:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},qZtG:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
8));var r=n("ROBh"),i=n("mawV");function o(...t){return Object(i.a)()(Object(r.a)(...t))}},r9RI:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5uGe");class i 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()}}},rWo0:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("HgnN"),i=n("i9P/");const o={closed:!0,next(t){},error(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete(){}}},ruxD:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("5uGe"),i=n("bwdy");function o(t){return e=>e.lift(new s(t))}class s{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends r.a{constructor(t,e){super(t),this.add(new i.a(e))}}},sEIs:function(t,e,n){"use strict";var r=n("2kYt"),i=n("EM62"),o=n("ROBh"),s=n("GoAz"),a=n("C05f"),u=n("IdLP");const c=(()=>{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 l=n("HM3f"),h=n("i9xl"),d=n("ZTXN"),f=n("6Oco"),p=n("YtkY"),m=n("mawV"),g=n("xVbo"),y=n("5uGe"),b=n("PNff");function v(t){return function(e){return 0===t?Object(f.b)():e.lift(new _(t))}}class _{constructor(t){if(this.total=t,this.total<0)throw new b.a}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends y.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 i=0;i<n;i++){const i=e++%n;t.next(r[i])}}t.complete()}}function E(t=x){return e=>e.lift(new S(t))}class S{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new T(t,this.errorFactory))}}class T extends y.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 x(){return new c}function C(t=null){return e=>e.lift(new k(t))}class k{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new O(t,this.defaultValue))}}class O extends y.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 I=n("5E2i");function A(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(g.a)((e,n)=>t(e,n,r)):I.a,v(1),n?C(e):E(()=>new c))}var N=n("4e/d"),R=n("J+dc");function P(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(g.a)((e,n)=>t(e,n,r)):I.a,Object(R.a)(1),n?C(e):E(()=>new c))}var D=n("cJ9h");class j{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new L(t,this.predicate,this.thisArg,this.source))}}class L extends y.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 M=n("TLy2"),F=n("jIqt"),V=n("SrNW"),U=n("5uDM"),B=n("Ti3e"),q=n("8j5Y"),z=n("ruxD"),G=n("3lSR");n.d(e,"a",(function(){return Xt})),n.d(e,"b",(function(){return an})),n.d(e,"c",(function(){return _n})),n.d(e,"d",(function(){return ln}));class H{constructor(t,e){this.id=t,this.url=e}}class W extends H{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 $ extends H{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 H{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class K extends H{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Y extends H{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 Z extends H{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 H{constructor(t,e,n,r,i){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class J extends H{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 tt extends H{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 et{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nt{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rt{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||""}')`}}
8class ot{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class st{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{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 ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Kb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&i.Rb(0,"router-outlet")},directives:function(){return[ln]},encapsulation:2}),t})();class ct{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(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 lt(t){return new ct(t)}function ht(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function dt(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 i={};for(let o=0;o<r.length;o++){const e=r[o],n=t[o];if(e.startsWith(":"))i[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}class ft{constructor(t,e){this.routes=t,this.module=e}}function pt(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];mt(r,gt(e,r))}}function mt(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&&"primary"!==t.outlet)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&&pt(t.children,e)}function gt(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function yt(t){const e=t.children&&t.children.map(yt),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=ut),n}function bt(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!vt(t[i],e[i]))return!1;return!0}function vt(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function _t(t){return Array.prototype.concat.apply([],t)}function wt(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(i.tb)(t)?t:Object(i.ub)(t)?Object(s.a)(Prom
8ise.resolve(t)):Object(o.a)(t)}function Tt(t,e,n){return n?function(t,e){return bt(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Ot(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>vt(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!Ot(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Ot(n.segments,i))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=i.slice(0,n.segments.length),o=i.slice(n.segments.length);return!!Ot(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,o)}}(e,n,n.segments)}(t.root,e.root)}class xt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=lt(this.queryParams)),this._queryParamMap}toString(){return Rt.serialize(this)}}class Ct{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 Pt(this)}}class kt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=lt(this.parameters)),this._parameterMap}toString(){return Vt(this)}}function Ot(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function It(t,e){let n=[];return Et(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),Et(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}class At{}class Nt{parse(t){const e=new Gt(t);return new xt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,n){if(!e.hasChildren())return Pt(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return Et(e.children,(e,n)=>{"primary"!==n&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=It(e,(n,r)=>"primary"===r?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return`${Pt(e)}/(${n.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${jt(e)}=${jt(t)}`).join("&"):`${jt(e)}=${jt(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Rt=new Nt;function Pt(t){return t.segments.map(t=>Vt(t)).join("/")}function Dt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jt(t){return Dt(t).replace(/%3B/gi,";")}function Lt(t){return Dt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mt(t){return decodeURIComponent(t)}function Ft(t){return Mt(t.replace(/\+/g,"%20"))}function Vt(t){return`${Lt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Lt(t)}=${Lt(e[t])}`).join("")}`;var e}const Ut=/^[^\/()?;=#]+/;function Bt(t){const e=t.match(Ut);return e?e[0]:""}const qt=/^[^=?&#]+/,zt=/^[^?&#]+/;class Gt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ct([],{}):new Ct([],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 Ct(t,e)),n}parseSegment(){const t=Bt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new kt(Mt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Bt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Bt(this.remaining);t&&(n=t,this.capture(n))}t[Mt(e)]=Mt(n)}parseQueryParam(t){const e=function(t){const e=t.match(qt);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(zt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=Ft(e),i=Ft(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(i)}else t[r]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;
8){const n=Bt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");const o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new Ct([],o),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 Ht{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=Wt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Wt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=$t(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return $t(t,this._root).map(t=>t.value)}}function Wt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Wt(t,n);if(e)return e}return null}function $t(t,e){if(t===e.value)return[e];for(const n of e.children){const r=$t(t,n);if(r.length)return r.unshift(e),r}return[]}class Qt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Kt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Yt extends Ht{constructor(t,e){super(t),this.snapshot=e,ne(this,t)}toString(){return this.snapshot.toString()}}function Zt(t,e){const n=function(t,e){const n=new te([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ee("",new Qt(n,[]))}(t,e),r=new a.a([new kt("",{})]),i=new a.a({}),o=new a.a({}),s=new a.a({}),u=new a.a(""),c=new Xt(r,i,s,u,o,"primary",e,n.root);return c.snapshot=n.root,new Yt(new Qt(c,[]),n)}class Xt{constructor(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,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=>lt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)(t=>lt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Jt(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 te{constructor(t,e,n,r,i,o,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}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=lt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=lt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ee extends Ht{constructor(t,e){super(e),this.url=t,ne(this,e)}toString(){return re(this._root)}}
vendor: 4,123 bytes, line 8
8function ne(t,e){e.value._routerState=t,e.children.forEach(e=>ne(t,e))}function re(t){const e=t.children.length>0?` { ${t.children.map(re).join(", ")} } `:"";return`${t.value}${e}`}function ie(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,bt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),bt(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(!bt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),bt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function oe(t,e){var n,r;return bt(t.params,e.params)&&Ot(n=t.url,r=e.url)&&n.every((t,e)=>bt(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||oe(t.parent,e.parent))}function se(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ae(t,e,n,r,i){let o={};return r&&Et(r,(t,e)=>{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new xt(n.root===t?e:function t(e,n,r){const i={};return Et(e.children,(e,o)=>{i[o]=e===n?r:t(e,n,r)}),new Ct(e.segments,i)}(n.root,t,e),o,i)}class ue{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&se(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!==wt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ce{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function le(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function he(t,e,n){if(t||(t=new Ct([],{})),0===t.segments.length&&t.hasChildren())return de(t,e,n);const r=function(t,e,n){let r=0,i=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return o;const e=t.segments[i],s=le(n[r]),a=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&a&&"object"==typeof a&&void 0===a.outlets){if(!ge(s,a,e))return o;r+=2}else{if(!ge(s,{},e))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new Ct(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new Ct(t.segments.slice(r.pathIndex),t.children),de(e,0,i)}return r.match&&0===i.length?new Ct(t.segments,{}):r.match&&!t.hasChildren()?fe(t,e,n):r.match?de(t,0,i):fe(t,e,n)}function de(t,e,n){if(0===n.length)return new Ct(t.segments,{});{const r=function(t){return"object"!=typeof t[0]?{primary:t}:void 0===t[0].outlets?{primary:t}:t[0].outlets}(n),i={};return Et(r,(n,r)=>{null!==n&&(i[r]=he(t.children[r],e,n))}),Et(t.children,(t,e)=>{void 0===r[e]&&(i[e]=t)}),new Ct(t.segments,i)}}function fe(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){const t=pe(n[i].outlets);return new Ct(r,t)}if(0===i&&se(n[0])){r.push(new kt(t.segments[e].path,n[0])),i++;continue}const o=le(n[i]),s=i<n.length-1?n[i+1]:null;o&&s&&se(s)?(r.push(new kt(o,me(s))),i+=2):(r.push(new kt(o,{})),i++)}return new Ct(r,{})}function pe(t){const e={};return Et(t,(t,n)=>{null!==t&&(e[n]=fe(new Ct([],{}),0,t))}),e}function me(t){const e={};return Et(t,(t,n)=>e[n]=`${t}`),e}function ge(t,e,n){return t==n.path&&bt(e,n.parameters)}class ye{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),ie(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Kt(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,i=e?e.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);
8else i&&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=Kt(t),i=t.value.component?n.children:e;Et(r,(t,e)=>this.deactivateRouteAndItsChildren(t,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=Kt(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new st(t.value.snapshot))}),t.children.length&&this.forwardEvent(new it(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(ie(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,i.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),be(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),i=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=i,e.outlet&&e.outlet.activateWith(r,i),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function be(t){ie(t.value),t.children.forEach(be)}function ve(t){return"function"==typeof t}function _e(t){return t instanceof xt}class we{constructor(t){this.segmentGroup=t||null}}class Ee{constructor(t){this.urlTree=t}}function Se(t){return new u.a(e=>e.error(new we(t)))}function Te(t){return new u.a(e=>e.error(new Ee(t)))}function xe(t){return new u.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ce{constructor(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(i.y)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(p.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(N.a)(t=>{if(t instanceof Ee)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof we)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(p.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(N.a)(t=>{if(t instanceof we)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 Ct([],{primary:t}):t;return new xt(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 Ct([],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(o.a)({});const n=[],r=[],i={};return Et(t,(t,o)=>{const s=e(o,t).pipe(Object(p.a)(t=>i[o]=t));"primary"===o?n.push(s):r.push(s)}),o.a.apply(null,n.concat(r)).pipe(Object(m.a)(),A(),Object(p.a)(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,i,s){return Object(o.a)(...n).pipe(Object(p.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,r,i,s).pipe(Object(N.a)(t=>{if(t instanceof we)return Object(o.a)(null);throw t}))),Object(m.a)(),P(t=>!!t),Object(N.a)((t,n)=>{if(t instanceof c||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,i))return Object(o.a)(new Ct([],{}));throw new we(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,i,o,s){return Ae(r)!==o?Se(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Se(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Te(i):this.lineralizeSegments(n,i).pipe(Object(D.a)(n=>{const i=new Ct(n,{});return this.expandSegment(t,i,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){const{matched:s,consumedSegments:a,lastChild:u,positionalParamSegments:c}=ke(e,r,i);if(!s)return Se(e);const l=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Te(l):this.lineralizeSegments(r,l).pipe(Object(D.a)(r=>this.expandSegment(t,e,n,r.concat(i.slice(u)),o,!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 Ct(r,{})))):Object(o.a)(new Ct(r,{}));const{matched:i,consumedSegments:s,lastChild:a}=ke(e,n,r);if(!i)return Se(e);const u=r.slice(a);return this.getChildConfig(t,n,r).pipe(Object(D.a)(t=>{const n=t.module,r=t.routes,{segmentGroup:i,slicedSegments:a}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>Ie(t,e,n)&&"primary"!==Ae(n))}
8(t,n,r)?{segmentGroup:Oe(new Ct(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&"primary"!==Ae(r)&&(n[Ae(r)]=new Ct([],{}));return n}(r,new Ct(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Ie(t,e,n))}(t,n,r)?{segmentGroup:Oe(new Ct(t.segments,function(t,e,n,r){const i={};for(const o of n)Ie(t,e,o)&&!r[Ae(o)]&&(i[Ae(o)]=new Ct([],{}));return Object.assign(Object.assign({},r),i)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,u,r);return 0===a.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(Object(p.a)(t=>new Ct(s,t))):0===r.length&&0===a.length?Object(o.a)(new Ct(s,{})):this.expandSegment(n,i,r,a,"primary",!0).pipe(Object(p.a)(t=>new Ct(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(o.a)(new ft(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(o.a)(e._loadedConfig):function(t,e,n){const r=e.canLoad;return r&&0!==r.length?Object(s.a)(r).pipe(Object(p.a)(r=>{const i=t.get(r);let o;if(function(t){return t&&ve(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!ve(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return St(o)})).pipe(Object(m.a)(),(i=t=>!0===t,t=>t.lift(new j(i,void 0,t)))):Object(o.a)(!0);var i}(t.injector,e,n).pipe(Object(D.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(p.a)(t=>(e._loadedConfig=t,t))):function(t){return new u.a(e=>e.error(ht(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(o.a)(new ft([],t))}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(o.a)(n);if(r.numberOfChildren>1||!r.children.primary)return xe(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 i=this.createSegmentGroup(t,e.root,n,r);return new xt(i,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 i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const i=this.createSegments(t,e.segments,n,r);let o={};return Et(e.children,(e,i)=>{o[i]=this.createSegmentGroup(t,e,n,r)}),new Ct(i,o)}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 ke(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||dt)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Oe(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Ct(t.segments.concat(e.segments),e.children)}return t}function Ie(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ae(t){return t.outlet||"primary"}class Ne{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Re{constructor(t,e){this.component=t,this.route=e}}function Pe(t,e,n){const r=t._root;return function t(e,n,r,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=Kt(n);return e.children.forEach(e=>{!function(e,n,r,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,a=n?n.value:null,u=r?r.getContext(e.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ot(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ot(t.url,e.url)||!bt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!oe(t,e)||!bt(t.queryParams,e.queryParams);case"paramsChange":default:return!oe(t,e)}}
8(a,s,s.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Ne(i)):(s.data=a.data,s._resolvedData=a._resolvedData),t(e,n,s.component?u?u.children:null:r,i,o),c&&o.canDeactivateChecks.push(new Re(u&&u.outlet&&u.outlet.component||null,a))}else a&&je(n,u,o),o.canActivateChecks.push(new Ne(i)),t(e,null,s.component?u?u.children:null:r,i,o)}(e,s[e.value.outlet],r,i.concat([e.value]),o),delete s[e.value.outlet]}),Et(s,(t,e)=>je(t,r.getContext(e),o)),o}(r,e?e._root:null,n,[r.value])}function De(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 je(t,e,n){const r=Kt(t),i=t.value;Et(r,(t,r)=>{je(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Re(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}const Le=Symbol("INITIAL_VALUE");function Me(){return Object(M.a)(t=>Object(l.a)(...t.map(t=>t.pipe(Object(R.a)(1),Object(F.a)(Le)))).pipe(Object(V.a)((t,e)=>{let n=!1;return e.reduce((t,r,i)=>{if(t!==Le)return t;if(r===Le&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||_e(r))return r}return t},t)},Le),Object(g.a)(t=>t!==Le),Object(p.a)(t=>_e(t)?t:!0===t),Object(R.a)(1)))}function Fe(t,e){return null!==t&&e&&e(new ot(t)),Object(o.a)(!0)}function Ve(t,e){return null!==t&&e&&e(new rt(t)),Object(o.a)(!0)}function Ue(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(o.a)(!0);const i=r.map(r=>Object(h.a)(()=>{const i=De(r,e,n);let o;if(function(t){return t&&ve(t.canActivate)}(i))o=St(i.canActivate(e,t));else{if(!ve(i))throw new Error("Invalid CanActivate guard");o=St(i(e,t))}return o.pipe(P())}));return Object(o.a)(i).pipe(Me())}function Be(t,e,n){const r=e[e.length-1],i=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=>Object(h.a)(()=>{const i=e.guards.map(i=>{const o=De(i,e.node,n);let s;if(function(t){return t&&ve(t.canActivateChild)}(o))s=St(o.canActivateChild(r,t));else{if(!ve(o))throw new Error("Invalid CanActivateChild guard");s=St(o(r,t))}return s.pipe(P())});return Object(o.a)(i).pipe(Me())}));return Object(o.a)(i).pipe(Me())}class qe{}class ze{constructor(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}recognize(){try{const t=We(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new te([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Qt(n,e),i=new ee(this.url,r);return this.inheritParamsAndData(i._root),Object(o.a)(i)}catch(t){return new u.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Jt(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=It(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)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const o of t)try{return this.processSegmentAgainstRoute(o,e,n,r)}catch(i){if(!(i instanceof qe))throw i}if(this.noLeftoversInUrl(e,n,r))return[];throw new qe}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new qe;if((t.outlet||"primary")!==r)throw new qe;let i,o=[],s=[];if("**"===t.path){const o=n.length>0?wt(n).parameters:{};i=new te(n,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ke(t),r,t.component,t,Ge(e),He(e)+n.length,Ye(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new qe;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||dt)(n,t,e);if(!r)throw new qe;const i={};Et(r.posParams,(t,e)=>{i[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}
8(e,t,n);o=a.consumedSegments,s=n.slice(a.lastChild),i=new te(o,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ke(t),r,t.component,t,Ge(e),He(e)+o.length,Ye(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:u,slicedSegments:c}=We(e,o,s,a,this.relativeLinkResolution);if(0===c.length&&u.hasChildren()){const t=this.processChildren(a,u);return[new Qt(i,t)]}if(0===a.length&&0===c.length)return[new Qt(i,[])];const l=this.processSegment(a,u,c,"primary");return[new Qt(i,l)]}}function Ge(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function He(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 We(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some(n=>$e(t,e,n)&&"primary"!==Qe(n))}(t,n,r)){const i=new Ct(e,function(t,e,n,r){const i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&"primary"!==Qe(o)){const n=new Ct([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[Qe(o)]=n}return i}(t,e,r,new Ct(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>$e(t,e,n))}(t,n,r)){const o=new Ct(t.segments,function(t,e,n,r,i,o){const s={};for(const a of r)if($e(t,n,a)&&!i[Qe(a)]){const n=new Ct([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Qe(a)]=n}return Object.assign(Object.assign({},i),s)}(t,e,n,r,t.children,i));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new Ct(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function $e(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Qe(t){return t.outlet||"primary"}function Ke(t){return t.data||{}}function Ye(t){return t.resolve||{}}function Ze(t,e,n,r){const i=De(t,e,r);return St(i.resolve?i.resolve(e,n):i(e,n))}function Xe(t){return function(e){return e.pipe(Object(M.a)(e=>{const n=t(e);return n?Object(s.a)(n).pipe(Object(p.a)(()=>e)):Object(s.a)([e])}))}}class Je{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const tn=new i.r("ROUTES");class en{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 ft(_t(r.injector.get(tn)).map(yt),r)}))}loadModuleFactory(t){return"string"==typeof t?Object(s.a)(this.loader.load(t)):St(t()).pipe(Object(D.a)(t=>t instanceof i.w?Object(o.a)(t):Object(s.a)(this.compiler.compileModuleAsync(t))))}}class nn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function rn(t){throw t}function on(t,e,n){return e.parse("/")}function sn(t,e){return Object(o.a)(null)}let an=(()=>{class t{constructor(t,e,n,r,o,s,u,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new d.a,this.errorHandler=rn,this.malformedUriErrorHandler=on,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:sn,afterPreactivation:sn},this.urlHandlingStrategy=new nn,this.routeReuseStrategy=new Je,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(i.y),this.console=o.get(i.ab);const l=o.get(i.A);this.isNgZoneEnabled=l instanceof i.A,this.resetConfig(c),this.currentUrlTree=new xt(new Ct([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new en(s,u,t=>this.triggerEvent(new et(t)),t=>this.triggerEvent(new nt(t))),this.routerState=Zt(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(M.a)(t=>{let n=!1,r=!1;return Object(o.a)(t).pipe(Object(q.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(M.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(o.a)(t).pipe(Object(M.a)(t=>{const n=this.transitions.getValue();return e.next(new W(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?f.a:[t]}),Object(M.a)(t=>Promise.resolve(t)),(r=this.ngModule.injector,i=this.configLoader,s=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(M.a)(t=>function(t,e,n,r,i){return new Ce(t,e,n,r,i).apply()}(r,i,s,t.extractedUrl,a).pipe(Object(p.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(q.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}
8),function(t,e,n,r,i){return function(o){return o.pipe(Object(D.a)(o=>function(t,e,n,r,i="emptyOnly",o="legacy"){return new ze(t,e,n,r,i,o).recognize()}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),r,i).pipe(Object(p.a)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(q.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(q.a)(t=>{const n=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,i,s,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:s,extras:a}=t,u=new W(n,this.serializeUrl(r),i,s);e.next(u);const c=Zt(r,this.rootComponentType).snapshot;return Object(o.a)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:r,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),f.a}),Xe(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),Object(q.a)(t=>{const e=new Z(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:Pe(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(D.a)(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:a,canDeactivateChecks:u}}=n;return 0===u.length&&0===a.length?Object(o.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Object(s.a)(t).pipe(Object(D.a)(t=>function(t,e,n,r,i){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||0===s.length)return Object(o.a)(!0);const a=s.map(o=>{const s=De(o,e,i);let a;if(function(t){return t&&ve(t.canDeactivate)}(s))a=St(s.canDeactivate(t,e,n,r));else{if(!ve(s))throw new Error("Invalid CanDeactivate guard");a=St(s(t,e,n,r))}return a.pipe(P())});return Object(o.a)(a).pipe(Me())}(t.component,t.route,n,e,r)),P(t=>!0!==t,!0))}(u,r,i,t).pipe(Object(D.a)(n=>n&&"boolean"==typeof n?function(t,e,n,r){return Object(s.a)(e).pipe(Object(U.a)(e=>Object(s.a)([Ve(e.route.parent,r),Fe(e.route,r),Be(t,e.path,n),Ue(t,e.route,n)]).pipe(Object(m.a)(),P(t=>!0!==t,!0))),P(t=>!0!==t,!0))}(r,a,t,e):Object(o.a)(n)),Object(p.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(q.a)(t=>{if(_e(t.guardsResult)){const e=ht(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(q.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}),Xe(t=>{if(t.guards.canActivateChecks.length)return Object(o.a)(t).pipe(Object(q.a)(t=>{const e=new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(Object(D.a)(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;return i.length?Object(s.a)(i).pipe(Object(U.a)(t=>function(t,e,n,r){return function(t,e,n,r){const i=Object.keys(t);if(0===i.length)return Object(o.a)({});if(1===i.length){const o=i[0];return Ze(t[o],e,n,r).pipe(Object(p.a)(t=>({[o]:t})))}const a={};return Object(s.a)(i).pipe(Object(D.a)(i=>Ze(t[i],e,n,r).pipe(Object(p.a)(t=>(a[i]=t,t))))).pipe(A(),Object(p.a)(()=>a))}(t._resolve,t,e,r).pipe(Object(p.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Jt(t,n).resolve),null)))}(t.route,r,e,n)),function(t,e){return arguments.length>=2?function(n){return Object(B.a)(Object(V.a)(t,e),v(1),C(e))(n)}:function(e){return Object(B.a)(Object(V.a)((e,n,r)=>t(e,n,r+1)),v(1))(e)}}((t,e)=>t),Object(p.a)(e=>t)):Object(o.a)(t)}))}),Object(q.a)(t=>{const e=new tt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),Xe(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),Object(p.a)(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const i=r.value;i._futureSnapshot=n.value;const o=function(e,n,r){return n.children.map(n=>{for(const i of r.children)if(e.shouldReuseRoute(i.value.snapshot,n.value))return t(e,n,i);return t(e,n)})}(e,n,r);return new Qt(i,o)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");
8if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,t),t}{const r=new Xt(new a.a((i=n.value).url),new a.a(i.params),new a.a(i.queryParams),new a.a(i.fragment),new a.a(i.data),i.outlet,i.component,i),o=n.children.map(n=>t(e,n));return new Qt(r,o)}}var i}(t,e._root,n?n._root:void 0);return new Yt(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(q.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)}),(i=this.rootContexts,u=this.routeReuseStrategy,c=t=>this.triggerEvent(t),Object(p.a)(t=>(new ye(u,t.targetRouterState,t.currentRouterState,c).activate(i),t))),Object(q.a)({next(){n=!0},complete(){n=!0}}),Object(z.a)(()=>{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}),Object(N.a)(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=_e(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const i=new Q(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(i),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 K(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(o){t.reject(o)}}var i;return f.a}));var i,u,c}))}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){pt(t),this.config=t.map(yt),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:o,preserveQueryParams:s,queryParamsHandling:a,preserveFragment:u}=e;Object(i.X)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=n||this.routerState.root,l=u?this.currentUrlTree.fragment:o;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=s?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,i){if(0===n.length)return ae(e.root,e.root,e,r,i);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ue(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,i)=>{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===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new ue(n,e,r)}(n);if(o.toRoot())return ae(e.root,new Ct([],{}),e,r,i);const s=function(t,e,n){if(t.isAbsolute)return new ce(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new ce(n.snapshot._urlSegment,!0,0);const r=se(t.commands[0])?0:1;return function(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new ce(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?de(s.segmentGroup,s.index,o.commands):he(s.segmentGroup,s.index,o.commands);return ae(s.segmentGroup,a,e,r,i)}(c,this.currentUrlTree,t,h,l)}navigateByUrl(t,e={skipLocationChange:!1}){Object(i.X)()&&this.isNgZoneEnabled&&!i.A.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did
8you forget to call 'ngZone.run()'?");const n=_e(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(_e(t))return Tt(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Tt(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 $(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,i){const o=this.getTransition();if(o&&"imperative"!==e&&"imperative"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"hashchange"==e&&"popstate"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"popstate"==e&&"hashchange"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);let s,a,u;i?(s=i.resolve,a=i.reject,u=i.promise):u=new Promise((t,e)=>{s=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:s,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const i=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",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(t){i.ic()},t.\u0275dir=i.Lb({type:t}),t})();class un{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new cn,this.attachRef=null}}class cn{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 un,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let ln=(()=>{class t{constructor(t,e,n,r,o){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.o,this.deactivateEvents=new i.o,this.name=r||"primary",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;
8const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new hn(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(cn),i.Qb(i.Q),i.Qb(i.j),i.gc("name"),i.Qb(i.h))},t.\u0275dir=i.Lb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class hn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Xt?this.route:t===cn?this.childContexts:this.parent.get(t,e)}}class dn{}class fn{preload(t,e){return Object(o.a)(null)}}let pn=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new en(e,n,e=>t.triggerEvent(new et(e)),e=>t.triggerEvent(new nt(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(g.a)(t=>t instanceof $),Object(U.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(i.y);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(s.a)(n).pipe(Object(G.a)(),Object(p.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(D.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(i.fc(an),i.fc(i.x),i.fc(i.i),i.fc(i.s),i.fc(dn))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})(),mn=(()=>{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 W?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof $&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof at&&(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 at(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(t){i.ic()},t.\u0275dir=i.Lb({type:t}),t})();const gn=new i.r("ROUTER_CONFIGURATION"),yn=new i.r("ROUTER_FORROOT_GUARD"),bn=[r.i,{provide:At,useClass:Nt},{provide:an,useFactory:function(t,e,n,i,o,s,a,u={},c,l){const h=new an(null,t,e,n,i,o,s,_t(a));if(c&&(h.urlHandlingStrategy=c),l&&(h.routeReuseStrategy=l),u.errorHandler&&(h.errorHandler=u.errorHandler),u.malformedUriErrorHandler&&(h.malformedUriErrorHandler=u.malformedUriErrorHandler),u.enableTracing){const t=Object(r.y)();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u.onSameUrlNavigation&&(h.onSameUrlNavigation=u.onSameUrlNavigation),u.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=u.paramsInheritanceStrategy),u.urlUpdateStrategy&&(h.urlUpdateStrategy=u.urlUpdateStrategy),u.relativeLinkResolution&&(h.relativeLinkResolution=u.relativeLinkResolution),h},deps:[At,cn,r.i,i.s,i.x,i.i,tn,gn,[class{},new i.B],[class{},new i.B]]},cn,{provide:Xt,useFactory:function(t){return t.routerState.root},deps:[an]},{provide:i.x,useClass:i.L},pn,fn,class{preload(t,e){return e().pipe(Object(N.a)(()=>Object(o.a)(null)))}},{provide:gn,useValue:{enableTracing:!1}}];function vn(){return new i.z("Router",an)}let _n=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[bn,Tn(e),{provide:yn,useFactory:Sn,deps:[[an,new i.B,new i.K]]},{provide:gn,useValue:n||{}},{provide:r.j,useFactory:En,deps:[r.s,[new i.q(r.a),new i.B],gn]},{provide:mn,useFactory:wn,deps:[an,r.t,gn]},{provide:dn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:fn},{provide:i.z,multi:!0,useFactory:vn},[xn,{provide:i.d,multi:!0,useFactory:Cn,deps:[xn]},{provide:On,useFactory:kn,deps:[xn]},{provide:i.b,multi:!0,useExisting:On}]]}}static forChild(e){return{ngModule:t,providers:[Tn(e)]}}}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)(i.fc(yn,8),i.fc(an,8))}}),t})();function wn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new mn(t,e,n)}function En(t,e,n={}){return n.useHash?new r.f(t,e):new r.r(t,e)}function Sn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Tn(t){return[{provide:i.a,multi:!0,useValue:t},{provide:tn,multi:!0,useValue:t}]}let xn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new d.a}appInitializer(){return this.injector.get(r.h,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(an),r=this.injector.get(gn);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(o.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(gn),n=this.injector.get(pn),r=this.injector.get(mn),o=this.injector.get(an),s=this.injector.get(i.g);t===s.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),o.resetRootComponentType(s.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)(i.fc(i.s))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})();function Cn(t){return t.appInitializer.bind(t)}function kn(t){return t.bootstrapListener.bind(t)}
8const On=new i.r("Router Initializer")},sWLk:function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));const i=r()},"sg/T":function(t,e,n){"use strict";n.d(e,"a",(function(){return j})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return P})),n.d(e,"d",(function(){return v})),n.d(e,"e",(function(){return N})),n.d(e,"f",(function(){return T})),n.d(e,"g",(function(){return D})),n.d(e,"h",(function(){return k})),n.d(e,"i",(function(){return O}));var r=n("2kYt"),i=n("EM62"),o=n("ZTXN"),s=n("bwdy"),a=n("ROBh"),u=n("fAiE"),c=n("8j5Y"),l=n("mWib"),h=n("xVbo"),d=n("YtkY"),f=n("J+dc"),p=n("5XID"),m=n("cZZj"),g=n("TKFd");class y{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.a,this._typeaheadSubscription=s.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.a,this.change=new o.a,t instanceof i.E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){if(this._items.length&&this._items.some(t=>"function"!=typeof t.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(c.a)(t=>this._pressedLetters.push(t)),Object(l.a)(t),Object(h.a)(()=>this._pressedLetters.length>0),Object(d.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const r=(this._activeItemIndex+n)%e.length,i=e[r];if(!this._skipPredicateFn(i)&&0===i.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(r);break}}this._pressedLetters=[]}),this}setActiveItem(t){const e=this._activeItemIndex;this.updateActiveItem(t),this._activeItemIndex!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case u.k:return void this.tabOut.next();case u.b:if(this._vertical&&n){this.setNextItemActive();break}return;case u.l:if(this._vertical&&n){this.setPreviousItemActive();break}return;case u.i:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case u.g:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((n||Object(u.o)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=u.a&&e<=u.m||e>=u.n&&e<=u.h)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof i.E?this._items.toArray():this._items}}class b extends y{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class v extends y{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let _=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===E(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let r=t.nodeName.toLowerCase(),i=E(t);if(t.hasAttribute("contenteditable"))return-1!==i;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;
8if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||w(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(i.fc(m.a))},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.fc)(m.a))},token:t,providedIn:"root"}),t})();function w(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function E(t){if(!w(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class S{constructor(t,e,n,r,i=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,i||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], `+`[cdkFocusRegion${t}], `+`[cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', `+`use 'cdkFocusRegion${t}' instead. The deprecated `+"attribute will be removed in 8.0.0.",e[n]):e[n].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', `+`use 'cdkFocusRegion${t}' instead. The deprecated attribute `+"will be removed in 8.0.0.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),Object(i.X)()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focus(),!0):this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Object(f.a)(1)).subscribe(t)}}let T=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new S(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(i.fc(_),i.fc(i.A),i.fc(r.d))},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.fc)(_),Object(i.fc)(i.A),Object(i.fc)(r.d))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const x=new i.r("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),C=new i.r("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let k=(()=>{class t{constructor(t,e,n,r){this._ngZone=e,this._defaultOptions=r,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let r,i;return 1===e.length&&"number"==typeof e[0]?i=e[0]:[r,i]=e,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),null==i&&n&&(i=n.duration),this._liveElement.setAttribute("aria-live",r),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof i&&(this._previousTimeout=setTimeout(()=>this.clear(),i))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(i.fc(x,8),i.fc(i.A),i.fc(r.d),i.fc(C,8))},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.fc)(x,8),Object(i.fc)(i.A),Object(i.fc)(r.d),Ob
8ject(i.fc)(C,8))},token:t,providedIn:"root"}),t})();function O(t){return 0===t.buttons}const I=new i.r("cdk-focus-monitor-default-options"),A=Object(m.f)({passive:!0,capture:!0});let N=(()=>{class t{constructor(t,e,n,r){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=O(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=R(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=R(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let r=e;r;r=r.parentElement)n.call(this,t,r)},this._document=n,this._detectionMode=(null==r?void 0:r.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Object(a.a)(null);const n=Object(p.e)(t),r=Object(m.c)(n)||this._getDocument();if(this._elementInfo.has(n)){const t=this._elementInfo.get(n);return t.checkChildren=e,t.subject.asObservable()}const i={checkChildren:e,subject:new o.a,rootNode:r};return this._elementInfo.set(n,i),this._registerGlobalListeners(i),i.subject.asObservable()}stopMonitoring(t){const e=Object(p.e)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const r=Object(p.e)(t);this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=R(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==R(t))return;const r=this._getFocusOrigin(t);this._setClasses(e,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,A),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,A)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,A),t.addEventListener("mousedown",this._documentMousedownListener,A),t.addEventListener("touchstart",this._documentTouchstartListener,A),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,A),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,A),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,A),t.removeEventListener("mousedown",this._documentMousedownListener,A),t.removeEventListener("touchstart",this._documentTouchstartListener,A),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(i.fc(i.A),i.fc(m.a),i.fc(r.d,8),i.fc(I,8))},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.fc)(i.A),Object(i.fc)(m.a),Object(i.fc)(r.d,8),Object(i.fc)(I,8))},token:t,providedIn:"root"}),t})();function R(t){return t.composedPath?t.composedPath()[0]:t.target}let P=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new i.o,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(i.l),i.Qb(N))},t.\u0275dir=i.Lb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),D=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}
8_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(i.fc(m.a),i.fc(r.d))},t.\u0275prov=Object(i.Mb)({factory:function(){return new t(Object(i.fc)(m.a),Object(i.fc)(r.d))},token:t,providedIn:"root"}),t})(),j=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)(i.fc(D))},imports:[[m.b,g.c]]}),t})()},vEql:function(t,e,n){"use strict";var r,i=(r=n("plFh"))&&"object"==typeof r&&"default"in r?r.default:r;i.registerVersion("firebase","7.14.3","app"),t.exports=i},vT4p:function(t,e,n){"use strict";let r=1;const i=(()=>Promise.resolve())(),o={};function s(t){return t in o&&(delete o[t],!0)}const a={setImmediate(t){const e=r++;return o[e]=!0,i.then(()=>s(e)&&t()),e},clearImmediate(t){s(t)}};var u=n("EWqr");class c extends u.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}}var l=n("DG/E");class h extends l.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++r<i&&(t=e.shift()));if(this.active=!1,n){for(;++r<i&&(t=e.shift());)t.unsubscribe();throw n}}}n.d(e,"a",(function(){return d}));const d=new h(c)},vobO:function(t,e,n){"use strict";n.d(e,"a",(function(){return C})),n.d(e,"b",(function(){return B})),n.d(e,"c",(function(){return d}));var r=n("EM62"),i=n("ROBh"),o=n("IdLP"),s=n("5uDM"),a=n("xVbo"),u=n("YtkY"),c=n("2kYt");class l{}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(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{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 i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.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()).forEac
vendor: 8,744 bytes, line 8
8h(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("="),[i,o]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],s=n.get(i)||[];s.push(o),n.set(i,s)}),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 y(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}class v{constructor(t,e,n,r){let i;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,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.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)||y(this.body)||b(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?null:b(this.body)?null:y(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,i=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,u=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&&(u=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),u)),new v(e,n,i,{params:u,headers:a,reportProgress:s,responseType:r,withCredentials:o})}}const _=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="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 E extends w{constructor(t={}){super(t),this.type=_.ResponseHeader}clone(t={}){return new E({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 S extends w{constructor(t={}){super(t),this.type=_.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({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 T 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 x(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let C=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof v)r=t;else{let i=void 0;i=n.headers instanceof d?n.headers:new d(n.headers);let o=void 0;n.params&&(o=n.params instanceof m?n.params:new m({fromObject:n.params})),r=new v(t,e,void 0!==n.body?n.body:null,{headers:i,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const o=Object(i.a)(r).pipe(Object(s.a)(t=>this.handler.handle(t)));if(t instanceof v||"events"===n.observe)return o;const c=o.pipe(Object(a.a)(t=>t instanceof S));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return c.pipe(Object(u.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return c.pipe(Object(u.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return c.pipe(Object(u.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 c.pipe(Object(u.a)(t=>t.body))}case"response":return c;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,x(n,e))}post(t,e,n={}){return this.request("POST",t,x(n,e))}put(t,e,n={}){return this.request("PUT",t,x(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r.fc(l))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})();class k{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const O=new r.r("HTTP_INTERCEPTORS");let I=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})();const A=/^\)\]\}',?\n/;class N{}let R=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})(),P=(()=>{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 o.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEac
8h((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 i=null;const o=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,r=n.statusText||"OK",o=new d(n.getAllResponseHeaders()),s=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 i=new E({headers:o,status:e,statusText:r,url:s}),i},s=()=>{let{headers:r,status:i,statusText:s,url:a}=o(),u=null;204!==i&&(u=void 0===n.response?n.responseText:n.response),0===i&&(i=u?200:0);let c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof u){const t=u;u=u.replace(A,"");try{u=""!==u?JSON.parse(u):null}catch(l){u=t,c&&(c=!1,u={error:l,text:u})}}c?(e.next(new S({body:u,headers:r,status:i,statusText:s,url:a||void 0})),e.complete()):e.error(new T({error:u,headers:r,status:i,statusText:s,url:a||void 0}))},a=t=>{const{url:r}=o(),i=new T({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(i)};let u=!1;const c=r=>{u||(e.next(o()),u=!0);let i={type:_.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===t.responseType&&n.responseText&&(i.partialText=n.responseText),e.next(i)},l=t=>{let n={type:_.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",l)),n.send(r),e.next({type:_.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",s),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",l)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.fc(N))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})();const D=new r.r("XSRF_COOKIE_NAME"),j=new r.r("XSRF_HEADER_NAME");class L{}let M=(()=>{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(c.z)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r.fc(c.d),r.fc(r.C),r.fc(D))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})(),F=(()=>{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.fc(L),r.fc(j))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{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(O,[]);this.chain=t.reduceRight((t,e)=>new k(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.fc(h),r.fc(r.s))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:F,useClass:I}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:D,useValue:e.cookieName}:[],e.headerName?{provide:j,useValue:e.headerName}:[]]}}}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[F,{provide:O,useExisting:F,multi:!0},{provide:L,useClass:M},{provide:D,useValue:"XSRF-TOKEN"},{provide:j,useValue:"X-XSRF-TOKEN"}]}),t})(),B=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[C,{provide:l,useClass:V},P,{provide:h,useExisting:P},R,{provide:N,useExisting:R}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},"wqq/":function(t,e,n){"use strict";var r=n("ZTXN"),i=n("kSHZ"),o=n("bwdy"),s=n("A2S1"),a=n("MiDb"),u=n("yTkW");class c extends r.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler
8=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new l(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let c;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?c=o.a.EMPTY:(this.observers.push(t),c=new u.a(this,t)),r&&t.add(t=new s.a(t,r)),e)for(let o=0;o<i&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<i&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),c}_getNow(){return(this.scheduler||i.a).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length;let o=0;for(;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r}}class l{constructor(t,e){this.time=t,this.value=e}}function h(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let i,o,s=0,a=!1,u=!1;return function(l){s++,i&&!a||(a=!1,i=new c(t,e,r),o=l.subscribe({next(t){i.next(t)},error(t){a=!0,i.error(t)},complete(){u=!0,o=void 0,i.complete()}}));const h=i.subscribe(this);this.add(()=>{s--,h.unsubscribe(),o&&!u&&n&&0===s&&(o.unsubscribe(),o=void 0,i=void 0)})}}(r))}n.d(e,"a",(function(){return h}))},xBdF:function(t,e,n){"use strict";var r=n("kSHZ"),i=n("Efrr"),o=n("8j5Y"),s=n("IdLP"),a=n("vT4p"),u=n("KRZI");class c extends s.a{constructor(t,e=0,n=a.a){super(),this.source=t,this.delayTime=e,this.scheduler=n,(!Object(u.a)(e)||e<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=a.a)}static create(t,e=0,n=a.a){return new c(t,e,n)}static dispatch(t){const{source:e,subscriber:n}=t;return this.add(e.subscribe(n))}_subscribe(t){return this.scheduler.schedule(c.dispatch,this.delayTime,{source:this.source,subscriber:t})}}class l{constructor(t,e){this.scheduler=t,this.delay=e}call(t,e){return new c(e,this.delay,this.scheduler).subscribe(t)}}var h=n("A2S1"),d=n("EM62"),f=n("vEql");function p(){}n.d(e,"a",(function(){return C})),n.d(e,"b",(function(){return E})),n.d(e,"c",(function(){return w})),n.d(e,"d",(function(){return y})),n.d(e,"e",(function(){return T})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return _}));class m{constructor(t,e=r.a){this.zone=t,this.delegate=e}now(){return this.delegate.now()}schedule(t,e,n){const r=this.zone;return this.delegate.schedule((function(e){r.runGuarded(()=>{t.apply(this,[e])})}),e,n)}}class g{constructor(t){this.zone=t,this.task=null}call(t,e){const n=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",p,{},p,p)),e.pipe(Object(o.a)(n,n,n)).subscribe(t).add(n)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}class y{constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new m(Zone.current)),this.insideAngular=t.run(()=>new m(Zone.current,i.a))}}function b(t,e){return function(e){return(e=e.lift(new g(t.ngZone))).pipe(function(t,e=0){return function(n){return n.lift(new l(t,e))}}(t.outsideAngular),Object(h.b)(t.insideAngular))}}const v=["ngOnDestroy"],_=(t,e,n)=>new Proxy(t,{get:(r,i)=>n.runOutsideAngular(()=>{if(t[i])return t[i];if(v.includes(i))return()=>{};let r=e.toPromise().then(t=>{const e=t&&t[i];return"function"==typeof e?e.bind(t):e&&e.then?e.then(t=>n.run(()=>t)):n.run(()=>e)});return new Proxy(()=>{},{get:(t,e)=>r[e],apply:(t,e,n)=>r.then(t=>t&&t(...n))})})}),w=new d.r("angularfire2.app.options"),E=new d.r("angularfire2.app.nameOrConfig"),S=new d.P("6.0.0");function T(t,e,n){const r="object"==typeof n&&n||{};return r.name=r.name||"string"==typeof n&&n||"[DEFAULT]",f.apps.filter(t=>t&&t.name===r.name)[0]||e.runOutsideAngular(()=>Object(f.initializeApp)(t,r))}const x={provide:class{},useFactory:T,deps:[w,d.A,[new d.B,E]]};let C=(()=>{class t{constructor(t){Object(f.registerVersion)("angularfire",S.full,t.toString()),Object(f.registerVersion)("angular",d.O.full)}static initializeApp(e,n){return{ngModule:t,providers:[{provide:w,useValue:e},{provide:E,useValue:n}]}}}return t.\u0275mod=d.Ob({type:t}),t.\u0275inj=d.Nb({factory:function(e){return new(e||t)(d.fc(d.C))},providers:[x]}),t})()},xVbo:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5uGe");function i(t,e){return function(n){return n.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))}}class s 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)}}},yTkW:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("bwdy");class i extends r.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}
8unsubscribe(){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)}}},zUnb:function(t,e,n){"use strict";n.r(e);var r=n("EM62"),i=n("AytR"),o=n("e4iD"),s=n("xBdF"),a=n("Czmw"),u=n("sEIs"),c=n("YtkY"),l=n("ZGFJ"),h=n("6F5T"),d=n("mHt8"),f=n("zfB+");const p=[{path:"",loadChildren:()=>Promise.all([n.e(0),n.e(12)]).then(n.bind(null,"ct+p")).then(t=>t.HomeModule)},{path:"carta",loadChildren:()=>Promise.all([n.e(0),n.e(2),n.e(5)]).then(n.bind(null,"19mU")).then(t=>t.MenuModule)},{path:"menu",loadChildren:()=>Promise.all([n.e(0),n.e(2),n.e(5)]).then(n.bind(null,"19mU")).then(t=>t.MenuModule)},{path:"terms-and-conditions",loadChildren:()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,"f42e")).then(t=>t.TermsAndConditionsModule)},{path:"condizioni-di-utilizzo",loadChildren:()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,"f42e")).then(t=>t.TermsAndConditionsModule)},{path:"terminos-de-uso",loadChildren:()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,"f42e")).then(t=>t.TermsAndConditionsModule)},{path:"politica-de-privacidad",loadChildren:()=>Promise.all([n.e(0),n.e(3)]).then(n.bind(null,"TOq4")).then(t=>t.PrivacyPolicyModule)},{path:"privacy",loadChildren:()=>Promise.all([n.e(0),n.e(3)]).then(n.bind(null,"TOq4")).then(t=>t.PrivacyPolicyModule)},{path:"privacy-policy",loadChildren:()=>Promise.all([n.e(0),n.e(3)]).then(n.bind(null,"TOq4")).then(t=>t.PrivacyPolicyModule)},{path:"auth",component:(()=>{class t extends h.a{constructor(t,e,n,r,i){super(t,i,r),this.platformId=t,this.router=e,this.route=n,this.userService=r,this.apiService=i}init(){this.route.queryParams.subscribe(t=>
8{switch(this.action=t.mode||"noAction",this.code=t.oobCode||"noCode",this.key=t.apiKey||"noKey",this.action){case"verifyEmail":this.userService.verifyUser(this.code).then(()=>{this.userService.isLoggedIn()?this.userService.refreshUser().then(()=>this.router.navigateByUrl("/admin")).catch(()=>{this.router.navigateByUrl("/?emailVerified=1")}):this.router.navigateByUrl("/?emailVerified=1")}).catch(t=>{this.router.navigateByUrl("/?emailVerified=0&error="+encodeURI(t))});break;case"recoverEmail":this.userService.recoverEmail(this.code).then(()=>{this.userService.isLoggedIn()?this.userService.refreshUser().then(()=>this.router.navigateByUrl("/admin")).catch(()=>{this.router.navigateByUrl("/?emailVerified=1")}):this.router.navigateByUrl("/?emailVerified=1")}).catch(t=>{this.router.navigateByUrl("/?emailVerified=0")});break;case"resetPassword":this.router.navigateByUrl("/?resetPwd=1&code="+this.code);break;case"noAction":default:this.router.navigateByUrl("")}})}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.C),r.Qb(u.b),r.Qb(u.a),r.Qb(d.b),r.Qb(f.b))},t.\u0275cmp=r.Kb({type:t,selectors:[["po-public-auth"]],features:[r.Ab],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})()},{path:"admin",loadChildren:()=>Promise.all([n.e(0),n.e(2),n.e(11)]).then(n.bind(null,"jkDv")).then(t=>t.AdminModule),canActivate:[l.a],data:{authGuardPipe:()=>Object(c.a)(t=>!(!t||!t.emailVerified)||[""])}},{path:"**",redirectTo:""}];let m=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[u.c.forRoot(p,{initialNavigation:"enabled"})],u.c]}),t})(),g=(()=>{class t{constructor(){this.title="paperless-menu"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Kb({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(t,e){1&t&&r.Rb(0,"router-outlet")},directives:[u.d],styles:[""]}),t})();var y=n("5lCh"),b=n("BZpo"),v=n("2kYt"),_=n("vobO"),w=n("2gE8");let E=(()=>{class t{}return t.\u0275mod=r.Ob({type:t,bootstrap:[g]}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[],imports:[[v.b,o.a.withServerTransition({appId:"serverApp"}),o.b,_.b,s.a.initializeApp(i.a.firebase),a.b,w.b,m,y.b,b.a]]}),t})();i.a.production&&Object(r.U)(),document.addEventListener("DOMContentLoaded",()=>{o.i().bootstrapModule(E).catch(t=>console.error(t))})},"zfB+":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return c}));var r=n("EM62"),i=n("Czmw"),o=n("vEql"),s=n("iwOJ"),a=n("2gE8"),u=n("Ibu0");let c=(()=>{let t=class{constructor(t,e,n,i){this.firebaseFirestore=t,this.firebaseAuth=e,this.firebaseStorage=n,this.translateService=i,this.onAuthStateChanged=new r.o,this.user=null}preInit(){}connect(){return new Promise((t,e)=>{this.isConnected&&this.isAuthenticated?t():this.isConnected||this.firebaseAuth.onAuthStateChanged(e=>{this.didTryConnecting=!0,this.isConnected=!0,e?(this.firebaseUser=e,this.setUser(e),this.isAuthenticated=!0,e.getIdTokenResult(!0).then(e=>{this.user.permissions=e.claims,this.user.idToken=e.token,this.onAuthStateChanged.emit(this.isAuthenticated),t()}),e.emailVerified||window.localStorage.getItem("emailSent")||(window.localStorage.setItem("emailSent","sent"),this.firebaseUser.sendEmailVerification().then())):(this.isAuthenticated=!1,this.onAuthStateChanged.emit(this.isAuthenticated),t())})})}setUser(t){this.user={displayName:t.displayName,email:t.email,emailVerified:t.emailVerified,isAnonymous:t.isAnonymous,creationTime:t.metadata.creationTime,lastSignInTime:t.metadata.lastSignInTime,photoURL:t.photoURL,refreshToken:t.refreshToken,uid:t.uid,permissions:{}}}getUser(){return this.user}reloadUser(){return new Promise((t,e)=>{this.firebaseUser.reload().then(()=>{this.setUser(this.firebaseUser),t(this.user)}).catch(t=>e(t))})}refreshUser(){return new Promise((t,e)=>{this.firebaseUser.getIdToken(!0).then(()=>{this.setUser(this.firebaseUser),t(this.user)}).catch(t=>e(t))})}registerUser(t,e){return new Promise((n,r)=>{this.firebaseAuth.createUserWithEmailAndPassword(t,e).then(t=>{this.setUser(t.user),n(this.user)}).catch(t=>{r(this.translateService.translate(t.code))})})}addUser(t,e,n,r){return this.usersCollection||(this.usersCollection=this.firebaseFirestore.collection("users")),new Promise((i,s)=>{const a={username:t,phone:e,tandc:n,referer:r,createdDate:o.firestore.FieldValue.serverTimestamp()};this.usersCollection.add(a).then(()=>i(!0)).catch(t=>s(t))})}
8verifyUser(t){return new Promise((e,n)=>{try{this.firebaseAuth.applyActionCode(t).then(()=>e(!0)).catch(t=>{console.log(t),n(this.translateService.translate(t.code))})}catch(r){console.log(r),n(this.translateService.translate(r.code))}})}sendResetPasswordLink(t){return this.firebaseAuth.sendPasswordResetEmail(t)}verifyPasswordReset(t,e){return new Promise((n,r)=>{try{this.firebaseAuth.confirmPasswordReset(t,e).then(()=>n(!0)).catch(t=>{console.log(t),r(this.translateService.translate(t.code))})}catch(i){console.log(i),r(this.translateService.translate(i.code))}})}login(t,e){return new Promise((n,r)=>{this.logout().then(()=>{this.firebaseAuth.signInWithEmailAndPassword(t,e).then(t=>{this.setUser(t.user),n(this.user)}).catch(t=>{r(this.translateService.translate(t.code))})}).catch(t=>{r(this.translateService.translate(t))})})}loginWithToken(t){return this.firebaseAuth.signInWithCustomToken(t)}sendEmailVerification(){return new Promise((t,e)=>{this.firebaseUser.sendEmailVerification().then(()=>t(!0)).catch(t=>console.log(t))})}logout(){return new Promise((t,e)=>{this.firebaseAuth.signOut().then(()=>{t()}).catch(t=>{e("Si \xe8 verificato un errore, per favore verifica la tua connessione internet e prova ancora")})})}getRestaurantPicture(t){return this.getPicture("restaurants/"+t.picture.url)}getRestaurantLogo(t){return this.getPicture("restaurants/"+t.logo.url)}getPicture(t){return this.firebaseStorage.ref(t).getDownloadURL().toPromise()}getRestaurantForOwner(t){return this.restaurantsCollection||(this.restaurantsCollection=this.firebaseFirestore.collection("restaurants")),new Promise((e,n)=>{this.restaurantsCollection.ref.where("owner","==",t).get().then(t=>{if(t.empty)n(!1);else{const n=t.docs[0].data();n.uid=t.docs[0].id,e(n)}}).catch(t=>{console.log("ERROR getRestaurantForOwner",t),n(t)})})}getRestaurantsForUser(t){return this.restaurantsCollection||(this.restaurantsCollection=this.firebaseFirestore.collection("restaurants")),new Promise((e,n)=>{this.restaurantsCollection.ref.where("users","array-contains",t).get().then(t=>{if(t.empty)n(!1);else{const n=[];t.docs.forEach(t=>{const e=t.data();e.uid=t.id,n.push(e)}),e(n)}}).catch(t=>{console.log("ERROR getRestaurantForOwner",t),n(t)})})}getRestaurant(t){return this.restaurantsCollection||(this.restaurantsCollection=this.firebaseFirestore.collection("restaurants")),new Promise((e,n)=>{this.restaurantsCollection.doc(t).get().toPromise().then(t=>{if(t.exists){const n=t.data();n.uid=t.id,e(n)}else n(!1)}).catch(t=>{console.log("ERROR getRestaurant",t),n(t)})})}getRestaurantObservable(t){return this.restaurantsCollection||(this.restaurantsCollection=this.firebaseFirestore.collection("restaurants")),this.restaurantsCollection.doc(t).valueChanges()}getMenuObservable(t){return this.menuCollection||(this.menuCollection=this.firebaseFirestore.collection("menu")),this.menuCollection.doc(t).valueChanges()}getMenuGroup(t){return this.menuCollection||(this.menuCollection=this.firebaseFirestore.collection("menu")),new Promise((e,n)=>{this.menuCollection.ref.doc(t).get().then(t=>{t.exists?e(t.data()):n(!1)}).catch(t=>{console.log("ERROR getRestaurantForOwner",t),n(t)})})}getOrder(t){return this.ordersCollection||(this.ordersCollection=this.firebaseFirestore.collection("orders")),new Promise((e,n)=>{this.ordersCollection.doc(t).get().toPromise().then(t=>{if(t.exists){const n=t.data();n.uid=t.id,e(n)}else n(!1)}).catch(t=>{console.log("ERROR getOrder",t),n(t)})})}};return t.\u0275fac=function(e){return new(e||t)(r.fc(i.a),r.fc(s.a),r.fc(a.a),r.fc(u.a))},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.fc)(i.a),Object(r.fc)(s.a),Object(r.fc)(a.a),Object(r.fc)(u.a))},token:t,providedIn:"root"}),t})(),l=(()=>{let t=class{};return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[]]}),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]]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.