PageSourceSearch

https://osfa.info/main.e9f4c252d07ad16f4369.js

js osfa.info collected 2026-10-04 19:17:38 UTC 1,283,888 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{"+6XX":function(t,e,n){var r=n("y1pI");t.exports=function(t){return r(this.__data__,t)>-1}},"+924":function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a}));var r=n("9AQC");function i(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function o(t,e){var n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);var i=Math.max(e-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o<r&&(n+=" {snip}"),n}function s(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var i=t[r];try{n.push(String(i))}catch(o){n.push("[value cannot be serialized]")}}return n.join(e)}function a(t,e){return!!Object(r.k)(t)&&(Object(r.j)(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}},"+A1k":function(t,e,n){"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(t,e){return t.require(e)}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},"+K+b":function(t,e,n){var r=n("JHRd");t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},"+Qka":function(t,e,n){var r=n("fmRc"),i=n("t2Dn"),o=n("cq/+"),s=n("T1AV"),a=n("GoyQ"),u=n("mTTR"),c=n("itsj");t.exports=function t(e,n,l,h,f){e!==n&&o(n,(function(o,u){if(f||(f=ne
1w r),a(o))s(e,n,u,l,t,h,f);else{var d=h?h(c(e,u),o,u+"",e,n,f):void 0;void 0===d&&(d=o),i(e,u,d)}}),u)}},"+RWU":function(t,e,n){"use strict";t.exports=function(t,e,n){if("GET"===e.method){e.debug("JSONP: start");var o=!1,s=!1;i+=1;var a=document.getElementsByTagName("head")[0],u=document.createElement("script"),c="algoliaJSONP_"+i,l=!1;window[c]=function(t){!function(){try{delete window[c],delete window[c+"_loaded"]}catch(t){window[c]=window[c+"_loaded"]=void 0}}(),s?e.debug("JSONP: Late answer, ignoring"):(o=!0,d(),n(null,{body:t,responseText:JSON.stringify(t)}))},t+="&callback="+c,e.jsonBody&&e.jsonBody.params&&(t+="&"+e.jsonBody.params);var h=setTimeout((function(){e.debug("JSONP: Script timeout"),s=!0,d(),n(new r.RequestTimeout)}),e.timeouts.complete);u.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||f()},u.onload=f,u.onerror=function(){e.debug("JSONP: Script error"),l||s||(d(),n(new r.JSONPScriptError))},u.async=!0,u.defer=!0,u.src=t,a.appendChild(u)}else n(new Error("Method "+e.method+" "+t+" is not supported by JSONP."));function f(){e.debug("JSONP: success"),l||s||(l=!0,o||(e.debug("JSONP: Fail. Script loaded but did not call the callback"),d(),n(new r.JSONPScriptFail)))}function d(){clearTimeout(h),u.onload=null,u.onreadystatechange=null,u.onerror=null,a.removeChild(u)}};var r=n("Z4lL"),i=0},"+c4W":function(t,e,n){var r=n("711d"),i=n("4/ic"),o=n("9ggG"),s=n("9Nap");t.exports=function(t){return o(t)?r(s(t)):i(t)}},"+iFO":function(t,e,n){var r=n("dTAl"),i=n("LcsW"),o=n("6sVZ");t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},"/9aa":function(t,e,n){var r=n("NykK"),i=n("ExA7");t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},"/lCS":function(t,e,n){var r=n("gFfm"),i=n("jbM+"),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return r(o,(function(n){var r="_."+n[0];e&n[1]&&!i(t,r)&&t.push(r)})),t.sort()}},"/uUt":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t,e){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))}}class s extends r.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},0:function(t,e,n){t.exports=n("zUnb")},"03A+":function(t,e,n){var r=n("JTzB"),i=n("ExA7"),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},"0ADi":function(t,e,n){var r=n("heNW"),i=n("EldB"),o=n("Kz5y");t.exports=function(t,e,n,s){var a=1&e,u=i(t);return function e(){for(var i=-1,c=arguments.length,l=-1,h=s.length,f=Array(h+c),d=this&&this!==o&&this instanceof e?u:t;++l<h;)f[l]=s[l];for(;c--;)f[l++]=arguments[++i];return r(d,a?n:this,f)}}},"0Cz8":function(t,e,n){var r=n("Xi7e"),i=n("ebwN"),o=n("e4Nc");t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},"0EUg":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("bHdf");function i(){return Object(r.a)(1)}},"0FS3":function(t,e,n){"use strict";n.d(e,"f",(function(){return $})),n.d(e,"e",(function(){return K})),n.d(e,"d",(function(){return X})),n.d(e,"b",(function(){return Y})),n.d(e,"a",(function(){return J})),n.d(e,"c",(function(){return Z})),n.d(e,"g",(function(){return ht})),n.d(e,"h",(function(){return et})),n.d(e,"i",(function(){return rt}));var r=n("ofXK"),i=n("fXoL"),o=n("SOwp"),s=n("eIep"),a=n("IzEk"),u=n("/uUt"),c=n("Kj3r"),l=n("pLZG"),h=n("JX91"),f=n("lJxs"),d=n("3Pt+"),p=n("7+OI"),m=n("XNiG"),g=n("VRyK"),y=n("LRne"),v=n("HDdC"),b=n("jhN1");const _=["content"];function w(t,e){if(1&t&&i.Rb(0,"formly-field",2),2&t){const t=e.$implicit;i.tc("form",t.form)("options",t.options)("model",t.model)("field",t)}}const E=["*"],O=["container"];function S(t,e){}const x=["fieldComponent"];function C(t,e){1&t&&i.Rb(0,"formly-field",1),2&t&&i.tc("field",e.$implicit)}function T(t,e,n){if(e.id)return e.id;let r=e.type;return!r&&e.template&&(r="template"),F(r)&&(r=r.prototype.constructor.name),[t,r,e.key,n].join("_")}function j(t){if(!t.key)return[];if(!t._keyPath||t._keyPath.key!==t.key){let e=[];
1if("string"==typeof t.key){const n=-1===t.key.indexOf("[")?t.key:t.key.replace(/\[(\w+)\]/g,".$1");e=-1!==n.indexOf(".")?n.split("."):[n]}else e=Array.isArray(t.key)?t.key.slice(0):[""+t.key];t._keyPath={key:t.key,path:e}}return t._keyPath.path.slice(0)}const A=["required","pattern","minLength","maxLength","min","max"];function k(t,e){let n=j(t);if(0===n.length)return;let r=t;for(;r.parent;)r=r.parent,n=[...j(r),...n];if(void 0===e&&t.resetOnHide){const t=n.pop();delete n.reduce((t,e)=>t[e]||{},r.model)[t]}else!function(t,e,n){for(let r=0;r<e.length-1;r++){const n=e[r];t[n]&&N(t[n])||(t[n]=/^\d+$/.test(e[r+1])?[]:{}),t=t[n]}t[e[e.length-1]]=L(n)}(r.model,n,e)}function I(t){let e=t.parent.model;for(const n of j(t)){if(!e)return e;e=e[n]}return e}function D(t,...e){return e.forEach(e=>{for(let i in e)R(t[i])||""===t[i]?t[i]=L(e[i]):(r=e[i],N(n=t[i])&&N(r)&&Object.getPrototypeOf(n)===Object.getPrototypeOf(r)&&!Array.isArray(n)&&!Array.isArray(r)&&D(t[i],e[i]));var n,r}),t}function R(t){return null==t}function P(t){return void 0===t}function F(t){return"function"==typeof t}function N(t){return null!=t&&"object"==typeof t}function L(t){if(!N(t)||Object(p.a)(t)||t instanceof i.N||t.changingThisBreaksApplicationSecurity||-1!==["RegExp","FileList","File","Blob"].indexOf(t.constructor.name))return t;if(t instanceof Set)return new Set(t);if(t instanceof Map)return new Map(t);if(t._isAMomentObject&&F(t.clone))return t.clone();if(t instanceof d.a)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(t=>L(t));const e=Object.getPrototypeOf(t);let n=Object.create(e);
1return n=Object.setPrototypeOf(n,e),Object.keys(t).reduce((e,n)=>{const r=Object.getOwnPropertyDescriptor(t,n);return r.get?Object.defineProperty(e,n,r):e[n]=L(t[n]),e},n)}function M(t,e,n){Object.defineProperty(t,e,{enumerable:!1,writable:!0,configurable:!0}),t[e]=n}function V(t,e,n){t._observers||M(t,"_observers",{}),t._observers[e]||(t._observers[e]=[]);let r=t._observers[e];return-1===r.indexOf(n)&&(r.push(n),n({currentValue:t[e],firstChange:!0}),1===r.length&&(M(t,"___$"+e,t[e]),Object.defineProperty(t,e,{configurable:!0,get:()=>t["___$"+e],set:n=>{if(n!==t["___$"+e]){const i=t["___$"+e];t["___$"+e]=n,r.forEach(t=>t({previousValue:i,currentValue:n,firstChange:!1}))}}}))),()=>r.splice(r.indexOf(n),1)}const U=new i.s("FORMLY_CONFIG");let B=(()=>{class t{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.templateManipulators={preWrapper:[],postWrapper:[]},this.extras={checkExpressionOn:"changeDetectionCheck",lazyRender:!1,showError:function(t){return t.formControl&&t.formControl.invalid&&(t.formControl.touched||t.options.parentForm&&t.options.parentForm.submitted||!(!t.field.validation||!t.field.validation.show))}},this.extensions={}}addConfig(t){t.types&&t.types.forEach(t=>this.setType(t)),t.validators&&t.validators.forEach(t=>this.setValidator(t)),t.wrappers&&t.wrappers.forEach(t=>this.setWrapper(t)),t.manipulators&&(console.warn("NgxFormly: passing 'manipulators' config is deprecated, use custom extension instead."),t.manipulators.forEach(t=>this.setManipulator(t))),t.validationMessages&&t.validationMessages.forEach(t=>this.addValidatorMessage(t.name,t.message)),t.extensions&&t.extensions.forEach(t=>this.extensions[t.name]=t.extension),t.extras&&(this.extras=Object.assign({},this.extras,t.extras))}setType(t){Array.isArray(t)?t.forEach(t=>this.setType(t)):(this.types[t.name]||(this.types[t.name]={name:t.name}),["component","extends","defaultOptions","wrappers"].forEach(e=>{t.hasOwnProperty(e)&&(this.types[t.name][e]=t[e])}))}getType(t){if(!this.types[t])throw new Error(`[Formly Error] The type "${t}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.mergeExtendedType(t),this.types[t]}getMergedField(t={}){const e=this.getType(t.type);e.defaultOptions&&D(t,e.defaultOptions);const n=e.extends&&this.getType(e.extends).defaultOptions;n&&D(t,n),t&&t.optionsTypes&&t.optionsTypes.forEach(e=>{const n=this.getType(e).defaultOptions;n&&D(t,n)});const r=this.resolveFieldTypeRef(t);r&&r.instance&&r.instance.defaultOptions&&D(t,r.instance.defaultOptions),!t.wrappers&&e.wrappers&&(t.wrappers=[...e.wrappers])}resolveFieldTypeRef(t={}){if(!t.type)return null;const e=this.getType(t.type);if(!e.component||e._componentRef)return e._componentRef;const{_resolver:n,_injector:r}=t.parent.options,i=n.resolveComponentFactory(e.component).create(r);return M(e,"_componentRef",i),i.destroy(),e._componentRef}setWrapper(t){this.wrappers[t.name]=t,t.types&&t.types.forEach(e=>{this.setTypeWrapper(e,t.name)})}getWrapper(t){if(!this.wrappers[t])throw new Error(`[Formly Error] The wrapper "${t}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[t]}setTypeWrapper(t,e){this.types[t]||(this.types[t]={}),this.types[t].wrappers||(this.types[t].wrappers=[]),-1===this.types[t].wrappers.indexOf(e)&&this.types[t].wrappers.push(e)}setValidator(t){this.validators[t.name]=t}getValidator(t){if(!this.validators[t])throw new Error(`[Formly Error] The validator "${t}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[t]}addValidatorMessage(t,e){this.messages[t]=e}getValidatorMessage(t){return this.messages[t]}setManipulator(t){(new t.class)[t.method](this)}mergeExtendedType(t){if(!this.types[t].extends)return;const e=this.getType(this.types[t].extends);this.types[t].component||(this.types[t].component=e.component),this.types[t].wrappers||(this.types[t].wrappers=e.wrappers)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(i.V)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),q=(()=>{class t{constructor(t,e,n){this.formlyConfig=t,this.componentFactoryResolver=e,this.injector=n}buildForm(t,e=[],n,r){if(!this.formlyConfig.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");const i={fieldGroup:e,model:n,formControl:t,options:this._setOptions(r)};!function(t,e){const n=t._updateTreeValidity.bind(t);t._updateTreeValidity=()=>{},e(),t._updateTreeValidity=n}(t,()=>this._buildForm(i)),i.options._checkField(i,!0)}
1_buildForm(t){this.getExtensions().forEach(e=>e.prePopulate&&e.prePopulate(t)),this.getExtensions().forEach(e=>e.onPopulate&&e.onPopulate(t)),t.fieldGroup&&t.fieldGroup.forEach(t=>this._buildForm(t)),this.getExtensions().forEach(e=>e.postPopulate&&e.postPopulate(t))}getExtensions(){return Object.keys(this.formlyConfig.extensions).map(t=>this.formlyConfig.extensions[t])}_setOptions(t){return(t=t||{}).formState=t.formState||{},t.showError||(t.showError=this.formlyConfig.extras.showError),t.fieldChanges||M(t,"fieldChanges",new m.a),t._resolver||M(t,"_resolver",this.componentFactoryResolver),t._injector||M(t,"_injector",this.injector),t._hiddenFieldsForCheck||(t._hiddenFieldsForCheck=[]),t._markForCheck||(t._markForCheck=e=>{e._componentRefs&&e._componentRefs.forEach(t=>{t.injector.get(i.h).markForCheck()}),e.fieldGroup&&e.fieldGroup.forEach(e=>t._markForCheck(e))}),t._buildField||(t._buildField=t=>(this.buildForm(t.form,t.fieldGroup,t.model,t.options),t)),t}}return t.\u0275fac=function(e){return new(e||t)(i.ec(B),i.ec(i.j),i.ec(i.t))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(i.V)({factory:function(){return new t(Object(i.Y)(B),Object(i.Y)(i.j),Object(i.Y)(i.p))},token:t,providedIn:"root"}),t})();function H(t,e=!1){const n=t.formControl,r=n._fields?n._fields.indexOf(t):-1;-1!==r&&n._fields.splice(r,1);const i=n.parent;if(!i)return;const o={emitEvent:e};if(i instanceof d.f){const t=i.controls.findIndex(t=>t===n);-1!==t&&W(i,o,()=>i.removeAt(t))}else if(i instanceof d.k){const e=j(t),r=e[e.length-1];i.get([r])===n&&W(i,o,()=>i.removeControl(r))}n.setParent(null)}function z(t){if(t.formControl)return t.formControl;if(!1===t.shareFormControl)return null;const e=t.parent.formControl;return e?e.get(j(t)):null}function Q(t,e,n=!1){(e=e||t.formControl)._fields||M(e,"_fields",[]),-1===e._fields.indexOf(t)&&e._fields.push(t),!t.formControl&&e&&(M(t,"formControl",e),e.setValidators(null),e.setAsyncValidators(null),t.templateOptions.disabled=!!t.templateOptions.disabled,V(t.templateOptions,"disabled",({firstChange:e,currentValue:n})=>{e||(n?t.formControl.disable():t.formControl.enable())}),e.registerOnDisabledChange&&e.registerOnDisabledChange(e=>{t.templateOptions.___$disabled=e,t.options&&t.options._markForCheck(t)}));let r=t.parent.formControl;if(!r||!t.key)return;const i=j(t),o=I(t);R(e.value)&&R(o)||e.value===o||!(e instanceof d.h)||e.patchValue(o);for(let a=0;a<i.length-1;a++){const t=i[a];r.get([t])||W(r,{emitEvent:n},()=>r.setControl(t,new d.k({}))),r=r.get([t])}const s=i[i.length-1];t._hide||r.get([s])===e||W(r,{emitEvent:n},()=>r.setControl(s,e))}function G(t,e=!1){const n=t.status,r=t.value;t.updateValueAndValidity({emitEvent:!1,onlySelf:e}),n!==t.status&&t.statusChanges.emit(t.status),r!==t.value&&t.valueChanges.emit(t.value)}function W(t,e,n){t instanceof d.k&&!t.__patchForEachChild&&(M(t,"__patchForEachChild",!0),t._forEachChild=e=>{Object.keys(t.controls).forEach(n=>t.controls[n]&&e(t.controls[n],n))});const r=t.updateValueAndValidity.bind(t);!1===e.emitEvent&&(t.updateValueAndValidity=t=>{r(Object.assign({},t||{},{emitEvent:!1}))}),n(),!1===e.emitEvent&&(t.updateValueAndValidity=r)}let $=(()=>{class t{constructor(t,e,n,r,o){this.formlyBuilder=t,this.formlyConfig=e,this.ngZone=n,this.parentFormGroup=o,this.modelChange=new i.o,this.immutable=!1,this._modelChangeValue={},this.modelChangeSubs=[],this.modelChange$=new m.a,this.modelChangeSub=this.modelChange$.pipe(Object(s.a)(()=>this.ngZone.onStable.asObservable().pipe(Object(a.a)(1)))).subscribe(()=>this.ngZone.runGuarded(()=>{this.checkExpressionChange(),this.modelChange.emit(this._modelChangeValue=L(this.model))})),null!==r&&console.warn("NgxFormly: passing 'immutable' attribute to 'formly-form' component is deprecated since v5.5, enable immutable mode through NgModule declaration instead."),this.immutable=null!==r||!!e.extras.immutable}set model(t){this._model=this.immutable?L(t):t}get model(){return this._model||(this._model={}),this._model}set fields(t){this._fields=this.immutable?L(t):t}get fields(){return this._fields||[]}set options(t){this._options=this.immutable?L(t):t}get options(){return this._options}set content(t){if(t){let e=!1,n=t.nativeElement.nextSibling;for(;n&&!e;)(n.nodeType===Node.ELEMENT_NODE||n.nodeType===Node.TEXT_NODE&&n.textContent&&""!==n.textContent.trim())&&(e=!0),n=n.nextSibling;e&&console.warn("NgxFormly: content projection for 'formly-form' component is deprecated since v5.5, you should avoid passing content inside the 'formly-form' tag.")}}ngDoCheck(){"changeDetectionCheck"===this.formlyConfig.extras.checkExpressionOn&&this.checkExpressionChange()}ngOnChanges(t){t.model&&this.field&&(this.field.model=this.model),t.fields&&this.form&&function t(e){e._fields&&delete e._fields,e.setValidators(null),e.setAsyncValidators(null),(e instanceof d.k||e instanceof d.f)&&Object.keys(e.controls).forEac
1h(n=>t(e.controls[n]))}(this.form),(t.fields||t.form||t.model&&this._modelChangeValue!==t.model.currentValue)&&(this.form=this.form||new d.k({}),this.setOptions(),this.options.updateInitialValue(),this.clearModelSubscriptions(),this.formlyBuilder.buildForm(this.form,this.fields,this.model,this.options),this.trackModelChanges(this.fields))}ngOnDestroy(){this.modelChangeSub.unsubscribe(),this.clearModelSubscriptions()}changeModel({value:t,field:e}){k(e,t),this.modelChange$.next()}setOptions(){this.options||(this.options={}),this.options.resetModel||(this.options.resetModel=t=>{t=L(R(t)?this.options._initialModel:t),this.model&&(Object.keys(this.model).forEach(t=>delete this.model[t]),Object.assign(this.model,t||{})),this.options._buildForm(),this.options.parentForm&&this.options.parentForm.control===this.form?this.options.parentForm.resetForm(this.model):this.form.reset(this.model)}),!this.options.parentForm&&this.parentFormGroup&&(M(this.options,"parentForm",this.parentFormGroup),V(this.options.parentForm,"submitted",({firstChange:t})=>{t||(this.checkExpressionChange(),this.options._markForCheck({fieldGroup:this.fields,model:this.model,formControl:this.form,options:this.options}))})),this.options.updateInitialValue||(this.options.updateInitialValue=()=>this.options._initialModel=L(this.model)),this.options._buildForm||(this.options._buildForm=(t=!1)=>{this.clearModelSubscriptions(),this.formlyBuilder.buildForm(this.form,this.fields,this.model,this.options),this.trackModelChanges(this.fields),t&&this.modelChange.emit(this._modelChangeValue=L(this.model))})}checkExpressionChange(){this.options&&this.options._checkField&&this.options._checkField({fieldGroup:this.fields,model:this.model,formControl:this.form,options:this.options})}trackModelChanges(t,e=[]){t.forEach(t=>{if(t.key&&!t.fieldGroup&&t.formControl){const n=t.formControl;let r=n.valueChanges.pipe(Object(u.a)((t,e)=>t===e&&!Array.isArray(t)&&!N(t)));const{updateOn:i,debounce:o}=t.modelOptions;(!i||"change"===i)&&o&&o.default>0&&(r=n.valueChanges.pipe(Object(c.a)(o.default))),this.modelChangeSubs.push(r.subscribe(r=>{n instanceof d.h&&n._fields&&n._fields.length>1&&n.patchValue(r,{emitEvent:!1,onlySelf:!0}),t.parsers&&t.parsers.length>0&&t.parsers.forEach(t=>r=t(r)),this.changeModel({key:[...e,...j(t)].join("."),value:r,field:t})}));const s=n.valueChanges.observers;s&&s.length>1&&s.unshift(s.pop())}t.fieldGroup&&t.fieldGroup.length>0&&this.trackModelChanges(t.fieldGroup,t.key?[...e,...j(t)]:e)})}clearModelSubscriptions(){this.modelChangeSubs.forEach(t=>t.unsubscribe()),this.modelChangeSubs=[]}get field(){return this.fields&&this.fields[0]&&this.fields[0].parent}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(q),i.Qb(B),i.Qb(i.C),i.fc("immutable"),i.Qb(d.l,8))},t.\u0275cmp=i.Kb({type:t,selectors:[["formly-form"]],viewQuery:function(t,e){var n;1&t&&i.Yc(_,!0),2&t&&i.Ec(n=i.jc())&&(e.content=n.first)},inputs:{model:"model",fields:"fields",options:"options",form:"form"},outputs:{modelChange:"modelChange"},features:[i.Cb([q]),i.Bb],ngContentSelectors:E,decls:4,vars:1,consts:[["hide-deprecation","",3,"form","options","model","field",4,"ngFor","ngForOf"],["content",""],["hide-deprecation","",3,"form","options","model","field"]],template:function(t,e){1&t&&(i.sc(),i.Qc(0,w,1,4,"formly-field",0),i.Ub(1,null,1),i.rc(3),i.Tb()),2&t&&i.tc("ngForOf",e.fields)},directives:function(){return[r.t,K]},encapsulation:2}),t})(),K=(()=>{class t{constructor(t,e,n,r,o){this.formlyConfig=t,this.renderer=e,this.resolver=n,this.elementRef=r,this.warnDeprecation=!1,this.modelChange=new i.o,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.warnDeprecation=null===o}set model(t){this.warnDeprecation&&console.warn(`NgxFormly: passing 'model' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}set form(t){this.warnDeprecation&&console.warn(`NgxFormly: passing 'form' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}set options(t){this.warnDeprecation&&console.warn(`NgxFormly: passing 'options' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterContentChecked(){this.triggerHook("afterContentChecked")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngAfterViewChecked(){this.triggerHook("afterViewChecked")}ngDoCheck(){this.triggerHook("doCheck"),this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(t){this.triggerHook("onChanges",t)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEac
1h(t=>t()),this.hooksObservers.forEach(t=>t()),this.triggerHook("onDestroy")}renderField(t,e,n=[]){if(this.containerRef===t&&(this.resetRefs(this.field),this.containerRef.clear(),n=this.field?this.field.wrappers:[]),n&&n.length>0){const[r,...i]=n,{component:o}=this.formlyConfig.getWrapper(r),s=t.createComponent(this.resolver.resolveComponentFactory(o));this.attachComponentRef(s,e),V(s.instance,"fieldComponent",({firstChange:t,previousValue:n,currentValue:r})=>{if(r){if(n&&n._lContainer===r._lContainer)return;const o=n?n.detach():null;o&&!o.destroyed?r.insert(o):this.renderField(r,e,i),!t&&s.changeDetectorRef.detectChanges()}})}else if(e&&e.type){const{component:n}=this.formlyConfig.getType(e.type),r=t.createComponent(this.resolver.resolveComponentFactory(n));this.attachComponentRef(r,e)}}triggerHook(t,e){if(this.field&&this.field.hooks&&this.field.hooks[t]&&(!e||e.field)){const e=this.field.hooks[t](this.field);if(Object(p.a)(e)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(t)){const t=e.subscribe();this.hooksObservers.push(()=>t.unsubscribe())}}this.field&&this.field.lifecycle&&this.field.lifecycle[t]&&this.field.lifecycle[t](this.field.form,this.field,this.field.model,this.field.options),"onChanges"===t&&e.field&&(this.resetRefs(e.field.previousValue),this.render())}attachComponentRef(t,e){this.componentRefs.push(t),e._componentRefs.push(t),Object.assign(t.instance,{field:e})}render(){this.field&&(this.field.options?(this.detectFieldBuild=!1,this.hostObservers.forEach(t=>t()),this.hostObservers=[V(this.field,"hide",({firstChange:t,currentValue:e})=>{this.formlyConfig.extras.lazyRender?e?(this.containerRef.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(this.containerRef,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)):(t&&this.renderField(this.containerRef,this.field),(!t||t&&e)&&this.renderer.setStyle(this.elementRef.nativeElement,"display",e?"none":""))}),V(this.field,"className",({firstChange:t,currentValue:e})=>{!(!t||t&&e)||this.formlyConfig.extras.lazyRender&&!0===this.field.hide||this.renderer.setAttribute(this.elementRef.nativeElement,"class",e)})]):this.detectFieldBuild=!0)}resetRefs(t){t&&(t._componentRefs?t._componentRefs=t._componentRefs.filter(t=>-1===this.componentRefs.indexOf(t)):M(this.field,"_componentRefs",[])),this.componentRefs=[]}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(B),i.Qb(i.G),i.Qb(i.j),i.Qb(i.m),i.fc("hide-deprecation"))},t.\u0275cmp=i.Kb({type:t,selectors:[["formly-field"]],viewQuery:function(t,e){var n;1&t&&i.Oc(O,!0,i.S),2&t&&i.Ec(n=i.jc())&&(e.containerRef=n.first)},inputs:{model:"model",form:"form",options:"options",field:"field"},outputs:{modelChange:"modelChange"},features:[i.Bb],decls:2,vars:0,consts:[["container",""]],template:function(t,e){1&t&&i.Qc(0,S,0,0,"ng-template",null,0,i.Rc)},encapsulation:2}),t})(),X=(()=>{class t{constructor(t,e,n){this.renderer=t,this.elementRef=e,this.uiAttributesCache={},this.uiAttributes=null,this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change"],callback:(t,e)=>{switch(t){case"focus":return this.onFocus(e);case"blur":return this.onBlur(e);case"change":return this.onChange(e);default:return this.to[t](this.field,e)}}},this.document=n}get to(){return this.field.templateOptions||{}}get fieldAttrElements(){return this.field&&this.field._elementRefs||[]}ngOnChanges(t){t.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(t=>t()),this.uiEvents.events.forEach(t=>{(this.to&&this.to[t]||-1!==["focus","blur","change"].indexOf(t))&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,t,e=>this.uiEvents.callback(t,e)))}),this.to&&this.to.attributes&&V(this.to,"attributes",({currentValue:t,previousValue:e})=>{e&&Object.keys(e).forEach(t=>this.removeAttribute(t)),t&&Object.keys(t).forEach(e=>{null!=t[e]&&this.setAttribute(e,t[e])})}),this.detachElementRef(t.field.previousValue),this.attachElementRef(t.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),V(this.field,"focu
1s",({currentValue:t})=>{this.toggleFocus(t)}))),t.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){const t=this.elementRef.nativeElement;this.uiAttributes=[...A,"tabindex","placeholder","readonly","disabled","step"].filter(e=>!t.hasAttribute||!t.hasAttribute(e))}this.uiAttributes.forEach(t=>{const e=this.to[t];this.uiAttributesCache[t]===e||this.to.attributes&&this.to.attributes.hasOwnProperty(t.toLowerCase())||(this.uiAttributesCache[t]=e,e||0===e?this.setAttribute(t,!0===e?t:""+e):this.removeAttribute(t))})}ngOnDestroy(){this.uiEvents.listeners.forEach(t=>t()),this.detachElementRef(this.field)}toggleFocus(t){const e=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!e||!e.nativeElement.focus)return;const n=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:t})=>this.document.activeElement===t||t.contains(this.document.activeElement));t&&!n?e.nativeElement.focus():!t&&n&&e.nativeElement.blur()}onFocus(t){this.field.___$focus=!0,this.to.focus&&this.to.focus(this.field,t)}onBlur(t){this.field.___$focus=!1,this.to.blur&&this.to.blur(this.field,t)}onHostChange(t){t instanceof Event||this.onChange(t)}onChange(t){this.to.change&&this.to.change(this.field,t),this.field.formControl&&this.field.formControl.markAsDirty()}attachElementRef(t){t&&(t._elementRefs&&-1===t._elementRefs.indexOf(this.elementRef)?t._elementRefs.push(this.elementRef):M(t,"_elementRefs",[this.elementRef]))}detachElementRef(t){const e=t&&t._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==e&&this.field._elementRefs.splice(e,1)}setAttribute(t,e){this.renderer.setAttribute(this.elementRef.nativeElement,t,e)}removeAttribute(t){this.renderer.removeAttribute(this.elementRef.nativeElement,t)}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(i.G),i.Qb(i.m),i.Qb(r.e))},t.\u0275dir=i.Lb({type:t,selectors:[["","formlyAttributes",""]],hostBindings:function(t,e){1&t&&i.ic("change",(function(t){return e.onHostChange(t)}))},inputs:{field:["formlyAttributes","field"],id:"id"},features:[i.Bb]}),t})(),Y=(()=>{class t{get model(){return this.field.model}set model(t){console.warn(`NgxFormly: passing 'model' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get form(){return this.field.parent.formControl}set form(t){console.warn(`NgxFormly: passing 'form' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get options(){return this.field.options}set options(t){console.warn(`NgxFormly: passing 'options' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get key(){return this.field.key}get formControl(){return this.field.formControl}get to(){return this.field.templateOptions||{}}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options.formState||{}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Lb({type:t,inputs:{model:"model",form:"form",options:"options",field:"field"}}),t})(),J=(()=>{class t extends Y{constructor(t){super(),this.defaultOptions={defaultValue:[]},t instanceof q&&console.warn(`NgxFormly: passing 'FormlyFormBuilder' to '${this.constructor.name}' type is not required anymore, you may remove it!`)}get formControl(){return this.field.formControl}onPopulate(t){!t.formControl&&t.key&&Q(t,z(t)||new d.f([],{updateOn:t.modelOptions.updateOn})),t.fieldGroup=t.fieldGroup||[];const e=t.model?t.model.length:0;if(t.fieldGroup.length>e)for(let n=t.fieldGroup.length-1;n>=e;--n)H(t.fieldGroup[n]),t.fieldGroup.splice(n,1);for(let n=t.fieldGroup.length;n<e;n++){const e=Object.assign({},L(t.fieldArray),{key:""+n});t.fieldGroup.push(e)}}add(t,e,{markAsDirty:n}={markAsDirty:!0}){t=R(t)?this.field.fieldGroup.length:t,this.model||k(this.field,[]),this.model.splice(t,0,e?L(e):void 0),this.options._buildForm(!0),n&&this.formControl.markAsDirty()}remove(t,{markAsDirty:e}={markAsDirty:!0}){this.model.splice(t,1),H(this.field.fieldGroup[t],!0),this.field.fieldGroup.splice(t,1),this.field.fieldGroup.forEach((t,e)=>t.key=""+e),this.options._buildForm(!0),e&&this.formControl.markAsDirty()}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(U,8))},t.\u0275dir=i.Lb({type:t,selectors:[["fieldArray"]],features:[i.Ab]}),t})(),Z=(()=>{class t extends Y{}return t.\u0275fac=function(e){return tt(e||t)},t.\u0275dir=i.Lb({type:t,viewQuery:function(t,e){var n;1&t&&i.Yc(x,!0,i.S),2&t&&i.Ec(n=i.jc())&&(e.fieldComponent=n.first)},features:[i.Ab]}),t})();const tt=i.Yb(Z);let et=(()=>{class t extends Y{constructor(){super(...arguments),this.defaultOptions={defaultValue:{}}}}return t.\u0275fac=function(e){return nt(e||t)},t.\u0275cmp=i.Kb({type:t,selectors:[["formly-group"]],hostVars:2,hostBindings:function(t,e){2&t&&i.Fb(e.field.fieldGroupClassName||"")},features:[i.Ab],ngContentSelectors:E,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(t,e){1&t&&(i.sc(),i.Qc(0,C,1,1,"formly-field",0),i.rc(1)),2&t&&i.tc("ngForOf",e.field.fieldGroup)},directives:[r.t,K],encapsulation:2}),t})();const nt=i.Yb(et);let rt=(()=>{class t{constructor(t){this.formlyConfig=t}ngOnChanges(){this.errorMessage$=Object(g.a)(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe(Object(l.a)(({field:t,type:e,property:n})=>t===this.field&&"expressionChanges"===e&&-1!==n.indexOf("validation"))):Object(y.a)(null)).pipe(Object(h.a)(null),Object(s.a)(()=>Object(p.a)(this.errorMessage)?this.errorMessage:Object(y.a)(this.errorMessage)))}get errorMessage(){const t=this.field.formControl;for(let e in t.errors)if(t.errors.hasOwnProperty(e)){let n=this.formlyConfig.getValidatorMessage(e);if(N(t.errors[e])){if(t.errors[e].errorPath)return;t.errors[e].message&&(n=t.errors[e].message)}return this.field.validation&&this.field.validation.messages&&this.field.validation.messages[e]&&(n=this.field.validation.messages[e]),this.field.validators&&this.field.validators[e]&&this.field.validators[e].message&&(n=this.field.validators[e].message),this.field.asyncValidators&&this.field.asyncValidators[e]&&this.field.asyncValidators[e].message&&(n=this.field.asyncValidators[e].message),"function"==typeof n?n(t.errors[e],this.field):n}}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(B))}
1,t.\u0275cmp=i.Kb({type:t,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[i.Bb],decls:2,vars:3,template:function(t,e){1&t&&(i.Sc(0),i.nc(1,"async")),2&t&&i.Tc(i.oc(1,1,e.errorMessage$))},pipes:[r.b],encapsulation:2,changeDetection:0}),t})(),it=(()=>{class t extends Y{constructor(t){super(),this.sanitizer=t,this.innerHtml={content:null,template:null}}get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.to.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(b.b))},t.\u0275cmp=i.Kb({type:t,selectors:[["formly-template"]],features:[i.Ab],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(t,e){1&t&&i.Rb(0,"div",0),2&t&&i.tc("innerHtml",e.template,i.Ic)},encapsulation:2}),t})();function ot(t,e,n){return t instanceof Function?t.apply(e,n):!!t}class st{prePopulate(t){if(t.parent||t.options._checkField)return;let e=!1;t.options._checkField=(t,n)=>{e||(e=!0,this.checkField(t,n),e=!1)}}postPopulate(t){if(t.parent&&!t._expressionProperties){if(M(t,"_expressionProperties",{}),t.expressionProperties)for(const e in t.expressionProperties){const n=t.expressionProperties[e];if("string"==typeof n||F(n))t._expressionProperties[e]={expression:this._evalExpression(e,n,"templateOptions.disabled"===e&&t.parent.expressionProperties&&t.parent.expressionProperties.hasOwnProperty("templateOptions.disabled")?()=>t.parent.templateOptions.disabled:void 0)},"templateOptions.disabled"===e&&Object.defineProperty(t._expressionProperties[e],"expressionValue",{get:()=>t.templateOptions.disabled,set:()=>{},enumerable:!0,configurable:!0});else if(n instanceof v.a){const r=()=>n.subscribe(n=>{this.setExprValue(t,e,n),t.options&&t.options._markForCheck&&t.options._markForCheck(t)});let i=r();const o=t.hooks.onInit;t.hooks.onInit=()=>(null===i&&(i=r()),o&&o(t));const s=t.hooks.onDestroy;t.hooks.onDestroy=()=>{s&&s(t),i.unsubscribe(),i=null}}}t.hideExpression?(delete t.hide,t.hideExpression=this._evalExpression("hide",t.hideExpression,()=>{let e=t.parent;for(;e.parent&&!e.hide;)e=e.parent;return e.hide})):V(t,"hide",({currentValue:e,firstChange:n})=>{t._hide=e,(!n||n&&!0===e)&&t.options._hiddenFieldsForCheck.push(t)})}}_evalExpression(t,e,n){return(...r)=>{try{return"string"==typeof e&&(e=function(t,e){try{return-1!==t.indexOf("this.field")&&console.warn("NgxFormly: using 'this.field' in expressionProperties is deprecated since v5.1, use 'field' instead."),Function("model","formState","field",`return ${t};`)}catch(n){console.error(n)}}(e)),"function"!=typeof e&&(e=()=>!!e),n&&n()||e(...r)}catch(i){throw i.message=`[Formly Error] [Expression "${t}"] ${i.message}`,i}}}checkField(t,e=!1){const n=this._checkField(t,e);t.options._hiddenFieldsForCheck.sort(t=>t.hide?-1:1).forEach(t=>this.toggleFormControl(t,!!t.hide,!e)),t.options._hiddenFieldsForCheck=[],n&&(this.checkField(t),t.options&&t.options._markForCheck&&t.options._markForCheck(t))}_checkField(t,e=!1){let n=!1;return t.fieldGroup.forEach(r=>{r.options&&(this.checkFieldExpressionChange(r,e)&&(n=!0),this.checkFieldVisibilityChange(r,e)&&(t.options._hiddenFieldsForCheck.push(r),n=!0),r.fieldGroup&&r.fieldGroup.length>0&&this._checkField(r,e)&&(n=!0))}),n}checkFieldExpressionChange(t,e){if(!t||!t._expressionProperties)return!1;let n=!1;const r=t._expressionProperties;for(const i in r){let o=ot(r[i].expression,{field:t},[t.model,t.options.formState,t,e]);"templateOptions.disabled"===i&&(o=!!o),(e||r[i].expressionValue!==o&&(!N(o)&&!F(o)||F(o)&&""+r[i].expressionValue!=""+o||Object(p.a)(o)||JSON.stringify(o)!==JSON.stringify(r[i].expressionValue)))&&(n=!0,r[i].expressionValue=o,this.setExprValue(t,i,o))}return n}checkFieldVisibilityChange(t,e){if(!t||R(t.hideExpression))return!1;const n=!!ot(t.hideExpression,{field:t},[t.model,t.options.formState,t,e]);let r=!1;return(n!==t.hide||e)&&(r=!0,t.hide=n,t.templateOptions.hidden=n),r}setDisabledState(t,e){t.fieldGroup&&t.fieldGroup.filter(t=>!t.expressionProperties||!t.expressionProperties.hasOwnProperty("templateOptions.disabled")).forEac
1h(t=>this.setDisabledState(t,e)),t.key&&t.templateOptions.disabled!==e&&(t.templateOptions.disabled=e)}toggleFormControl(t,e,n){if(t.fieldGroup&&t.fieldGroup.filter(t=>!t.hideExpression).forEach(t=>this.toggleFormControl(t,e,n)),t.formControl&&t.key){M(t,"_hide",!(!e&&!t.hide));const r=t.formControl;r._fields&&r._fields.length>1&&G(r),!0!==e||r._fields&&!r._fields.every(t=>!!t._hide)?!1===e&&(t.resetOnHide&&t.parent&&!P(t.defaultValue)&&P(I(t))&&k(t,t.defaultValue),Q(t,void 0,!0),t.resetOnHide&&t.fieldArray&&(t.fieldGroup||[]).length!==(t.model||[]).length&&t.options._buildForm(!0)):(H(t,!0),n&&t.resetOnHide&&(t.formControl.reset({value:void 0,disabled:t.formControl.disabled}),t.fieldGroup&&(k(t,void 0),t.formControl instanceof d.f&&(t.fieldGroup.length=0))))}t.options.fieldChanges&&t.options.fieldChanges.next({field:t,type:"hidden",value:e})}setExprValue(t,e,n){try{let r=t;const i=-1===e.indexOf("[")?e.split("."):e.replace(/\'|\"/g,"").split(/[[\]]{1,2}/).filter(t=>t),o=i.length-1;for(let t=0;t<o;t++)r=r[i[t]];r[i[o]]=n}catch(r){throw r.message=`[Formly Error] [Expression "${e}"] ${r.message}`,r}if("templateOptions.disabled"===e&&t.key&&this.setDisabledState(t,n),0===e.indexOf("model.")){const r=e.replace(/^model\./,""),i=t.key&&e===r?t.formControl:t.parent.formControl.get(r);!i||R(i.value)&&R(n)||i.value===n||i.patchValue(n)}this.emitExpressionChanges(t,e,n)}emitExpressionChanges(t,e,n){t.options.fieldChanges&&t.options.fieldChanges.next({field:t,type:"expressionChanges",property:e,value:n})}}class at{constructor(t){this.formlyConfig=t}onPopulate(t){this.initFieldValidation(t,"validators"),this.initFieldValidation(t,"asyncValidators")}initFieldValidation(t,e){const n=[];if("validators"!==e||t.hasOwnProperty("fieldGroup")&&!t.key||n.push(this.getPredefinedFieldValidation(t)),t[e])for(const r in t[e])"validation"!==r||Array.isArray(t[e].validation)||(t[e].validation=[t[e].validation],console.warn(`NgxFormly(${t.key}): passing a non array value to the 'validation' is deprecated, pass an array instead`)),"validation"===r?n.push(...t[e].validation.map(e=>this.wrapNgValidatorFn(t,e))):n.push(this.wrapNgValidatorFn(t,t[e][r],r));M(t,"_"+e,n)}getPredefinedFieldValidation(t){let e=[];return A.forEach(n=>V(t.templateOptions,n,({currentValue:r,firstChange:i})=>{e=e.filter(t=>t!==n),null!=r&&!1!==r&&e.push(n),!i&&t.formControl&&G(t.formControl)})),n=>0===e.length?null:d.G.compose(e.map(e=>()=>{const r=t.templateOptions[e];switch(e){case"required":return d.G.required(n);case"pattern":return d.G.pattern(r)(n);case"minLength":return d.G.minLength(r)(n);case"maxLength":return d.G.maxLength(r)(n);case"min":return d.G.min(r)(n);case"max":return d.G.max(r)(n)}}))(n)}wrapNgValidatorFn(t,e,n){let r=null;if("string"==typeof e&&(r=L(this.formlyConfig.getValidator(e))),"object"==typeof e&&e.name&&(r=L(this.formlyConfig.getValidator(e.name)),e.options&&(r.options=e.options)),"object"==typeof e&&e.expression){const{expression:t}=e,i=Object(o.__rest)(e,["expression"]);r={name:n,validation:t,options:Object.keys(i).length>0?i:null}}return"function"==typeof e&&(r={name:n,validation:e}),e=>{const i=r.validation(e,t,r.options);return(o=i)&&"function"==typeof o.then?i.then(e=>this.handleAsyncResult(t,n?!!e:e,r)):Object(p.a)(i)?i.pipe(Object(f.a)(e=>this.handleAsyncResult(t,n?!!e:e,r))):this.handleResult(t,n?!!i:i,r);var o}}handleAsyncResult(t,e,n){return t.options&&t.options._markForCheck&&t.options._markForCheck(t),this.handleResult(t,e,n)}handleResult(t,e,{name:n,options:r}){"boolean"==typeof e&&(e=e?null:{[n]:r||!0});const i=t.formControl;return i._childrenErrors&&i._childrenErrors[n]&&i._childrenErrors[n](),N(e)&&Object.keys(e).forEach(n=>{const s=e[n].errorPath?e[n].errorPath:(r||{}).errorPath,a=s?t.formControl.get(s):null;if(a){const t=e[n],r=Object(o.__rest)(t,["errorPath"]);a.setErrors(Object.assign({},a.errors||{},{[n]:r})),!i._childrenErrors&&M(i,"_childrenErrors",{}),i._childrenErrors[n]=()=>{const t=a.errors||{},e=n,r=Object(o.__rest)(t,["symbol"==typeof e?e:e+""]);a.setErrors(0===Object.keys(r).length?null:r)}}}),e}}class ut{constructor(t){this.config=t}onPopulate(t){t.parent&&(t.fieldGroup&&!t.key?M(t,"formControl",t.parent.formControl):this.addFormControl(t))}postPopulate(t){t.parent||this.setValidators(t)}addFormControl(t){let e=z(t);if(!e){const n={updateOn:t.modelOptions.updateOn},r=t.key?I(t):t.defaultValue,i=this.config?this.config.resolveFieldTypeRef(t):null;if(i&&i.componentType&&i.componentType.createControl){const n=i.
1componentType;console.warn(`NgxFormly: '${n.name}::createControl' is deprecated since v5.0, use 'prePopulate' hook instead.`),e=n.createControl(r,t)}else e=t.fieldGroup?new d.k({},n):new d.h(r,n)}Q(t,e)}setValidators(t,e=!1){let n=!1;if(!1===e&&t.key&&t.templateOptions&&t.templateOptions.disabled&&(e=!0),(t.fieldGroup||[]).forEach(t=>this.setValidators(t,e)&&(n=!0)),t.key||!t.parent||!t.key&&!t.fieldGroup){const{formControl:r}=t;t.templateOptions=t.templateOptions||{},t.key&&r&&r instanceof d.h&&(e&&r.enabled&&(r.disable({emitEvent:!1,onlySelf:!0}),n=!0),!e&&r.disabled&&(r.enable({emitEvent:!1,onlySelf:!0}),n=!0)),!r||null!==r.validator&&null!==r.asyncValidator||(r.setValidators(()=>{const e=d.G.compose(this.mergeValidators(t,"_validators"));return e?e(r):null}),r.setAsyncValidators(()=>{const e=d.G.composeAsync(this.mergeValidators(t,"_asyncValidators"));return e?e(r):Object(y.a)(null)}),n=!0),n&&G(r,!0)}return n}mergeValidators(t,e){const n=[],r=t.formControl;return r&&r._fields&&r._fields.length>1?r._fields.filter(t=>!t._hide).forEach(t=>n.push(...t[e])):t[e]&&n.push(...t[e]),t.fieldGroup&&t.fieldGroup.filter(t=>!t.key&&t.fieldGroup).forEach(t=>n.push(...this.mergeValidators(t,e))),n}}class ct{constructor(t){this.formlyConfig=t,this.formId=0}prePopulate(t){if(this.getFieldComponentInstance(t).prePopulate(),t.parent)return;const e=t.options&&t.options.fieldTransform||this.formlyConfig.extras.fieldTransform;(Array.isArray(e)?e:[e]).forEach(e=>{if(e&&(console.warn("NgxFormly: fieldTransform is deprecated since v5.0, use custom extension instead."),!e(t.fieldGroup,t.model,t.formControl,t.options)))throw new Error("fieldTransform must return an array of fields")})}onPopulate(t){this.initFieldOptions(t),this.getFieldComponentInstance(t).onPopulate(),t.fieldGroup&&t.fieldGroup.forEach((e,n)=>{Object.defineProperty(e,"parent",{get:()=>t,configurable:!0}),Object.defineProperty(e,"index",{get:()=>n,configurable:!0}),this.formId++})}postPopulate(t){this.getFieldComponentInstance(t).postPopulate()}initFieldOptions(t){const e=t.parent;if(e){if(Object.defineProperty(t,"form",{get:()=>e.formControl,configurable:!0}),Object.defineProperty(t,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(t,"model",{get:()=>t.key&&t.fieldGroup?I(t):e.model,configurable:!0}),D(t,{id:T("formly_"+this.formId,t,t.index),hooks:{},modelOptions:{},validation:{messages:{}},templateOptions:t.type&&t.key?{label:"",placeholder:"",focus:!1,disabled:!1}:{}}),this.formlyConfig.extras.resetFieldOnHide&&!1!==t.resetOnHide&&(t.resetOnHide=!0),t.lifecycle&&console.warn("NgxFormly: 'lifecycle' is deprecated since v5.0, use 'hooks' instead."),"formly-template"!==t.type&&(t.template||t.expressionProperties&&t.expressionProperties.template)&&(t.type&&console.warn("NgxFormly: passing 'type' property is not allowed when 'template' is set."),t.type="formly-template"),!t.type&&t.fieldGroup&&(t.type="formly-group"),t.type&&this.formlyConfig.getMergedField(t),t.parent){let e=!P(t.key)&&!P(t.defaultValue)&&P(I(t))&&(!t.resetOnHide||!(t.hide||t.hideExpression));if(e&&t.resetOnHide){let n=t.parent;for(;n&&!n.hideExpression&&!n.hide;)n=n.parent;e=!n||!(n.hideExpression||n.hide)}e&&k(t,t.defaultValue)}this.initFieldWrappers(t)}}initFieldWrappers(t){t.wrappers=t.wrappers||[];const e=Object.assign({preWrapper:[],postWrapper:[]},t.templateOptions.templateManipulators||{});t.wrappers=[...this.formlyConfig.templateManipulators.preWrapper.map(e=>e(t)),...e.preWrapper.map(e=>e(t)),...t.wrappers,...this.formlyConfig.templateManipulators.postWrapper.map(e=>e(t)),...e.postWrapper.map(e=>e(t))].filter((t,e,n)=>t&&e===n.indexOf(t))}getFieldComponentInstance(t){const e=this.formlyConfig.resolveFieldTypeRef(t),n=e?e.instance:{};return{prePopulate:()=>n.prePopulate&&n.prePopulate(t),onPopulate:()=>n.onPopulate&&n.onPopulate(t),postPopulate:()=>n.postPopulate&&n.postPopulate(t)}}}function lt(t){return{types:[{name:"formly-group",component:et},{name:"formly-template",component:it}],extensions:[{name:"core",extension:new ct(t)},{name:"field-validation",extension:new at(t)},{name:"field-form",extension:new ut(t)},{name:"field-expression",extension:new st}]}}let ht=(()=>
1{class t{constructor(t,e=[]){e&&e.forEach(e=>t.addConfig(e))}static forRoot(e={}){return{ngModule:t,providers:[{provide:U,multi:!0,useFactory:lt,deps:[B]},{provide:U,useValue:e,multi:!0},{provide:i.a,useValue:e,multi:!0},B,q]}}static forChild(e={}){return{ngModule:t,providers:[{provide:U,multi:!0,useFactory:lt,deps:[B]},{provide:U,useValue:e,multi:!0},{provide:i.a,useValue:e,multi:!0},q]}}}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)(i.ec(B),i.ec(U,8))},imports:[[r.c]]}),t})()},"0JQy":function(t,e){var n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+n+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",c=u+a+"(?:\\u200d(?:"+[i,o,s].join("|")+")"+u+a+")*",l="(?:"+[i+n+"?",n,o,s,"[\\ud800-\\udfff]"].join("|")+")",h=RegExp(r+"(?="+r+")|"+l+c,"g");t.exports=function(t){return t.match(h)||[]}},"0Ul8":function(t,e,n){t.exports=u;var r=n("Z4lL"),i=n("c+Bx"),o=n("ilQL"),s=n("ef3p"),a=process.env.RESET_APP_DATA_TIMER&&parseInt(process.env.RESET_APP_DATA_TIMER,10)||12e4;function u(t,e,i){var o=n("8KqL")("algoliasearch"),s=n("sLmk"),a=n("bTTx"),u=n("7Ule"),l="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==i._allowEmptyCredentials&&!t)throw new r.AlgoliaSearchError("Please provide an application ID. "+l);if(!0!==i._allowEmptyCredentials&&!e)throw new r.AlgoliaSearchError("Please provide an API key. "+l);this.applicationID=t,this.apiKey=e,this.hosts={read:[],write:[]},this._timeouts=(i=i||{}).timeouts||{connect:1e3,read:2e3,write:3e4},i.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=i.timeout);var h=i.protocol||"https:";if(/:$/.test(h)||(h+=":"),"http:"!==h&&"https:"!==h)throw new r.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+i.protocol+"`)");if(this._checkAppIdData(),i.hosts)a(i.hosts)?(this.hosts.read=s(i.hosts),this.hosts.write=s(i.hosts)):(this.hosts.read=s(i.hosts.read),this.hosts.write=s(i.hosts.write));else{var f=u(this._shuffleResult,(function(e){return t+"-"+e+".algolianet.com"}));this.hosts.read=[this.applicationID+(!1===i.dsn?"":"-dsn")+".algolia.net"].concat(f),this.hosts.write=[this.applicationID+".algolia.net"].concat(f)}this.hosts.read=u(this.hosts.read,c(h)),this.hosts.write=u(this.hosts.write,c(h)),this.extraHeaders={},this.cache=i._cache||{},this._ua=i._ua,this._useCache=!(void 0!==i._useCache&&!i._cache)||i._useCache,this._useRequestCache=this._useCache&&i._useRequestCache,this._useFallback=void 0===i.useFallback||i.useFallback,this._setTimeout=i._setTimeout,o("init done, %j",this)}function c(t){return function(e){return t+"//"+e.toLowerCase()}}function l(t){if(void 0===Array.prototype.toJSON)return JSON.stringify(t);var e=Array.prototype.toJSON;delete Array.prototype.toJSON;var n=JSON.stringify(t);return Array.prototype.toJSON=e,n}function h(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]="x-algolia-api-key"===n||"x-algolia-application-id"===n?"**hidden for security purposes**":t[n]);return e}u.prototype.initIndex=function(t){return new o(this,t)},u.prototype.setExtraHeader=function(t,e){this.extraHeaders[t.toLowerCase()]=e},u.prototype.getExtraHeader=function(t){return this.extraHeaders[t.toLowerCase()]},u.prototype.unsetExtraHeader=function(t){delete this.extraHeaders[t.toLowerCase()]},u.prototype.addAlgoliaAgent=function(t){var e="; "+t;-1===this._ua.indexOf(e)&&(this._ua+=e)},u.prototype._jsonRequest=function(t){this._checkAppIdData();var e,o,s,a=n("8KqL")("algoliasearch:"+t.url),u=t.additionalUA||"",c=t.cache,f=this,d=0,p=!1,m=f._useFallback&&f._request.fallback&&t.fallback;this.apiKey.length>500&&void 0!==t.body&&(void 0!==t.body.params||void 0!==t.body.requests)?(t.body.apiKey=this.apiKey,s=this._computeRequestHeaders({additionalUA:u,withApiKey:!1,headers:t.headers})):s=this._computeRequestHeaders({additionalUA:u,headers:t.headers}),void 0!==t.body&&(e=l(t.body)),a("request start");var g=[];function y(t,e,n){return f._useCache&&t&&e&&void 0!==e[n]}function v(e,n){if(y(f._useRequestCache,c,o)&&e.catch((function(){delete c[o]})),"function"!=typeof t.callback)return e.then(n);e.then((function(e){i((function(){t.callback(null,n(e))}),f._setTimeout||setTimeout)}),(function(e){i((function(){t.callback(e)}),f._setTimeout||setTimeout)}))}if(f._useCache&&f._useRequestCache&&(o=t.url),f._useCache&&f._useRequestCache&&e&&(o+="_body_"+e),y(f._useRequestCache,c,o)){a("serving request from cache");var b=c[o];return v("function"!=typeof b.then?f._promise.resolve({responseText:b}):b,(function(t){return JSON.parse(t.responseText)}))}var _=function n(i,v){f._checkAppIdData();var b=new Date;if(f._useCache&&!f._useRequestCache&&(o=t.url),f._useCache&&!f._useRequestCache&&e&&(o+="_body_"+v.body),y(!f._useRequestCache,c,o)){a("serving response from cache");var _=c[o];return f._promise.resolve({body:JSON.parse(_),responseText:_})}if(d>=f.hosts[t.hostType].length)return!m||p?(a("could not get any response"),f._promise.reject(new r.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to supp
1[email protected] to report and resolve the issue. Application id was: "+f.applicationID,{debugData:g}))):(a("switching to fallback"),d=0,v.method=t.fallback.method,v.url=t.fallback.url,v.jsonBody=t.fallback.body,v.jsonBody&&(v.body=l(v.jsonBody)),s=f._computeRequestHeaders({additionalUA:u,headers:t.headers}),v.timeouts=f._getTimeoutsForRequest(t.hostType),f._setHostIndexByType(0,t.hostType),p=!0,n(f._request.fallback,v));var w=f._getHostByType(t.hostType),E=w+v.url,O={body:v.body,jsonBody:v.jsonBody,method:v.method,headers:s,timeouts:v.timeouts,debug:a,forceAuthHeaders:v.forceAuthHeaders};return a("method: %s, url: %s, headers: %j, timeouts: %d",O.method,E,O.headers,O.timeouts),i===f._request.fallback&&a("using fallback"),i.call(f,E,O).then((function(t){var n=t&&t.body&&t.body.message&&t.body.status||t.statusCode||t&&t.body&&200;a("received response: statusCode: %s, computed statusCode: %d, headers: %j",t.statusCode,n,t.headers);var i=2===Math.floor(n/100),u=new Date;if(g.push({currentHost:w,headers:h(s),content:e||null,contentLength:void 0!==e?e.length:null,method:v.method,timeouts:v.timeouts,url:v.url,startTime:b,endTime:u,duration:u-b,statusCode:n}),i)return f._useCache&&!f._useRequestCache&&c&&(c[o]=t.responseText),{responseText:t.responseText,body:t.body};if(4!==Math.floor(n/100))return d+=1,S();a("unrecoverable error");var l=new r.AlgoliaSearchError(t.body&&t.body.message,{debugData:g,statusCode:n});return f._promise.reject(l)}),(function(o){a("error: %s, stack: %s",o.message,o.stack);var u=new Date;return g.push({currentHost:w,headers:h(s),content:e||null,contentLength:void 0!==e?e.length:null,method:v.method,timeouts:v.timeouts,url:v.url,startTime:b,endTime:u,duration:u-b}),o instanceof r.AlgoliaSearchError||(o=new r.Unknown(o&&o.message,o)),d+=1,o instanceof r.Unknown||o instanceof r.UnparsableJSON||d>=f.hosts[t.hostType].length&&(p||!m)?(o.debugData=g,f._promise.reject(o)):o instanceof r.RequestTimeout?(a("retrying request with higher timeout"),f._incrementHostIndex(t.hostType),f._incrementTimeoutMultipler(),v.timeouts=f._getTimeoutsForRequest(t.hostType),n(i,v)):S()}));function S(){return a("retrying request"),f._incrementHostIndex(t.hostType),n(i,v)}}(f._request,{url:t.url,method:t.method,body:e,jsonBody:t.body,timeouts:f._getTimeoutsForRequest(t.hostType),forceAuthHeaders:t.forceAuthHeaders});return f._useCache&&f._useRequestCache&&c&&(c[o]=_),v(_,(function(t){return t.body}))},u.prototype._getSearchParams=function(t,e){if(null==t)return e;for(var n in t)null!==n&&void 0!==t[n]&&t.hasOwnProperty(n)&&(e+=""===e?"":"&",e+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(t[n])?l(t[n]):t[n]));return e},u.prototype._computeRequestHeaders=function(t){var e=n("v61W"),r={"x-algolia-agent":t.additionalUA?this._ua+"; "+t.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==t.withApiKey&&(r["x-algolia-api-key"]=this.apiKey),this.userToken&&(r["x-algolia-usertoken"]=this.userToken),this.securityTags&&(r["x-algolia-tagfilters"]=this.securityTags),e(this.extraHeaders,(function(t,e){r[e]=t})),t.headers&&e(t.headers,(function(t,e){r[e]=t})),r},u.prototype.search=function(t,e,r){var i=n("bTTx"),o=n("7Ule");if(!i(t))throw new Error("Usage: client.search(arrayOfQueries[, callback])");"function"==typeof e?(r=e,e={}):void 0===e&&(e={});var s=this,a={requests:o(t,(function(t){var e="";return void 0!==t.query&&(e+="query="+encodeURIComponent(t.query)),{indexName:t.indexName,params:s._getSearchParams(t.params,e)}}))},u=o(a.requests,(function(t,e){return e+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(t.indexName)+"?"+t.params)})).join("&");return void 0!==e.strategy&&(a.strategy=e.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:a,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:u}},callback:r})},u.prototype.searchForFacetValues=function(t){var e=n("bTTx"),r=n("7Ule"),i="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!e(t))throw new Error(i);var o=this;return o._promise.all(r(t,(function(t){if(!t||void 0===t.indexName||void 0===t.params.facetName||void 0===t.params.facetQuery)throw new Error(i);var e=n("sLmk"),r=n("PGxr"),s=t.indexName,a=t.params,u=a.facetName,c=r(e(a),(function(t){return"facetName"===t})),l=o._getSearchParams(c,"");return o._jsonRequest({cache:o.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(s)+"/facets/"+encodeURIComponent(u)+"/query",hostType:"read",body:{params:l}})})))},u.prototype.setSecurityTags=function(t){if("[object Array]"===Object.prototype.toString.call(t)){for(var e=[],n=0;n<t.length;++n)if("[object Array]"===Object.prototype.toString.call(t[n])){for(var r=[],i=0;i<t[n].length;++i)r.push(t[n][i]);e.push("("+r.join(",")+")")}else e.push(t[n]);t=e.join(",")}this.securityTags=t},u.prototype.setUserToken=function(t){this.userToken=t},u.prototype.clearCache=function(){this.cache={}},u.prototype.setRequestTimeout=function(t){t&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=t)},u.prototype.setTimeouts=function(t){this._timeouts=t},u.prototype.getTimeouts=function(){return this._timeouts},u.prototype._getAppIdData=function(){var t=s.get(this.applicationID);return null!==t&&this._cacheAppIdData(t),t}
1,u.prototype._setAppIdData=function(t){return t.lastChange=(new Date).getTime(),this._cacheAppIdData(t),s.set(this.applicationID,t)},u.prototype._checkAppIdData=function(){var t=this._getAppIdData(),e=(new Date).getTime();return null===t||e-t.lastChange>a?this._resetInitialAppIdData(t):t},u.prototype._resetInitialAppIdData=function(t){var e=t||{};return e.hostIndexes={read:0,write:0},e.timeoutMultiplier=1,e.shuffleResult=e.shuffleResult||function(t){for(var e,n,r=t.length;0!==r;)n=Math.floor(Math.random()*r),e=t[r-=1],t[r]=t[n],t[n]=e;return t}([1,2,3]),this._setAppIdData(e)},u.prototype._cacheAppIdData=function(t){this._hostIndexes=t.hostIndexes,this._timeoutMultiplier=t.timeoutMultiplier,this._shuffleResult=t.shuffleResult},u.prototype._partialAppIdDataUpdate=function(t){var e=n("v61W"),r=this._getAppIdData();return e(t,(function(t,e){r[e]=t})),this._setAppIdData(r)},u.prototype._getHostByType=function(t){return this.hosts[t][this._getHostIndexByType(t)]},u.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},u.prototype._getHostIndexByType=function(t){return this._hostIndexes[t]},u.prototype._setHostIndexByType=function(t,e){var r=n("sLmk")(this._hostIndexes);return r[e]=t,this._partialAppIdDataUpdate({hostIndexes:r}),t},u.prototype._incrementHostIndex=function(t){return this._setHostIndexByType((this._getHostIndexByType(t)+1)%this.hosts[t].length,t)},u.prototype._incrementTimeoutMultipler=function(){var t=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:t})},u.prototype._getTimeoutsForRequest=function(t){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[t]*this._timeoutMultiplier}}},"0XPj":function(t,e,n){var r=n("eUgh"),i=n("s+kx"),o=n("EA7m"),s=n("XzbM"),a=o((function(t){var e=r(t,s);return e.length&&e[0]===t[0]?i(e):[]}));t.exports=a},"0jNN":function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],s=o.obj[o.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],l=s[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(e.push({obj:s,prop:c}),n.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(t,e,n){if(0===t.length)return t;var r="string"==typeof t?t:String(t);if("iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var i="",s=0;s<r.length;++s){var a=r.charCodeAt(s);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(a=65536+((1023&a)<<10|1023&r.charCodeAt(s+=1)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,n,o){if(!n)return e;if("object"!=typeof n){if(i(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var a=e;return i(e)&&!i(n)&&(a=s(e,o)),i(e)&&i(n)?(n.forEach((function(n,i){if(r.call(e,i)){var s=e[i];s&&"object"==typeof s&&n&&"object"==typeof n?e[i]=t(s,n,o):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var s=n[i];return e[i]=r.call(e,i)?t(e[i],s,o):s,e}),a)}}},"0oCz":function(t,e,n){"use strict";var r=n("bNQv"),i=n("3WF5"),o=n("xaJk"),s=n("QkVN"),a={_getQueries:function(t,e){var n=[];return n.push({indexName:t,params:a._getHitsSearchParams(e)}),r(e.getRefinedDisjunctiveFacets(),(function(r){n.push({indexName:t,params:a._getDisjunctiveFacetSearchParams(e,r)})})),r(e.getRefinedHierarchicalFacets(),(function(r){var i=e.getHierarchicalFacetByName(r),o=e.getHierarchicalRefinement(r),s=e._getHierarchicalFacetSeparator(i);o.length>0&&o[0].split(s).length>1&&n.push({indexName:t,params:a._getDisjunctiveFacetSearchParams(e,r,!0)})})),n},_getHitsSearchParams:function(t){var e=t.facets.concat(t.disjunctiveFacets).concat(a._getHitsHierarchicalFacetsAttributes(t)),n=a._getFacetFilters(t),r=a._getNumericFilters(t),i={facets:e,tagFilters:a._getTagFilters(t)};return n.length>0&&(i.facetFilters=n),r.length>0&&(i.numericFilters=r),s(t.getQueryParams(),i)},_getDisjunctiveFacetSearchParams:function(t,e,n){var r=a._getFacetFilters(t,e,n),i=a._getNumericFilters(t,e),o={hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],tagFilters:a._getTagFilters(t),analytics:!1,clickAnalytics:!1},u=t.getHierarchicalFacetByName(e);return o.facets=u?a._getDisjunctiveHierarchicalFacetAttribute(t,u,n):e,i.length>0&&(o.numericFilters=i),r.length>0&&(o.facetFilters=r),s(t.getQueryParams(),o)},_getNumericFilters:function(t,e){if(t.numericFilters)return t.numericFilters;var n=[];return r(t.numericRefinements,(function(t,o){r(t,(function(t,s){e!==o&&r(t,(function(t){if(Array.isArray(t)){var e=i(t,(function(t){return o+s+t}));n.push(e)}else n.push(o+s+t)}))}))})),n},_getTagFilters:function(t){return t.tagFilters?t.tagFilters:t.tagRefinements.join(",")},_getFacetFilters:function(t,e,n){var i=[];return r(t.facetsRefinements,(function(t,e){r(t,(function(t){i.push(e+":"+t)}
1))})),r(t.facetsExcludes,(function(t,e){r(t,(function(t){i.push(e+":-"+t)}))})),r(t.disjunctiveFacetsRefinements,(function(t,n){if(n!==e&&t&&0!==t.length){var o=[];r(t,(function(t){o.push(n+":"+t)})),i.push(o)}})),r(t.hierarchicalFacetsRefinements,(function(r,o){var s=r[0];if(void 0!==s){var a,u,c=t.getHierarchicalFacetByName(o),l=t._getHierarchicalFacetSeparator(c),h=t._getHierarchicalRootPath(c);if(e===o){if(-1===s.indexOf(l)||!h&&!0===n||h&&h.split(l).length===s.split(l).length)return;h?(u=h.split(l).length-1,s=h):(u=s.split(l).length-2,s=s.slice(0,s.lastIndexOf(l))),a=c.attributes[u]}else u=s.split(l).length-1,a=c.attributes[u];a&&i.push([a+":"+s])}})),i},_getHitsHierarchicalFacetsAttributes:function(t){return o(t.hierarchicalFacets,(function(e,n){var r=t.getHierarchicalRefinement(n.name)[0];if(!r)return e.push(n.attributes[0]),e;var i=t._getHierarchicalFacetSeparator(n),o=r.split(i).length,s=n.attributes.slice(0,o+1);return e.concat(s)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(t,e,n){var r=t._getHierarchicalFacetSeparator(e);if(!0===n){var i=t._getHierarchicalRootPath(e),o=0;return i&&(o=i.split(r).length),[e.attributes[o]]}var s=(t.getHierarchicalRefinement(e.name)[0]||"").split(r).length-1;return e.attributes.slice(0,s+1)},getSearchForFacetQuery:function(t,e,n,r){var i=r.isDisjunctiveFacet(t)?r.clearRefinements(t):r,o={facetQuery:e,facetName:t};return"number"==typeof n&&(o.maxFacetHits=n),s(a._getHitsSearchParams(i),o)}};t.exports=a},"0ycA":function(t,e){t.exports=function(){return[]}},"1+5i":function(t,e,n){var r=n("w/wX"),i=n("sEf8"),o=n("mdPL"),s=o&&o.isSet,a=s?i(s):r;t.exports=a},"1KsK":function(t,e,n){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},"1LK5":function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},"1hJj":function(t,e,n){var r=n("e4Nc"),i=n("ftKO"),o=n("3A9y");function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},"1qfx":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n("SOwp"),i=n("+A1k"),o=n("8LbN"),s=n("6PXS"),a=n("9AQC"),u=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],c={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]},l=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._operations=Array.isArray(t.operations)?t.operations:u,this._describeOperations=!("describeOperations"in t)||t.describeOperations,this._useMongoose=!!t.useMongoose}return e.prototype.setupOnce=function(e,n){var r,s=this._useMongoose?"mongoose":"mongodb";try{r=Object(i.a)(t,s).Collection}catch(a){return void o.a.error("Mongo Integration was unable to require `"+s+"` package.")}this._instrumentOperations(r,this._operations,n)},e.prototype._instrumentOperations=function(t,e,n){var r=this;e.forEach((function(e){return r._patchOperation(t,e,n)}))},e.prototype._patchOperation=function(t,e,n){if(e in t.prototype){var i=this._getSpanContextFromOperationArguments.bind(this);Object(s.c)(t.prototype,e,(function(t){return function(){for(var o,s,u,c,l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];var f=l[l.length-1],d=n().getScope(),p=null===(o=d)||void 0===o?void 0:o.getSpan();if("function"!=typeof f||"mapReduce"===e&&2===l.length){var m=null===(s=p)||void 0===s?void 0:s.startChild(i(this,e,l)),g=t.call.apply(t,Object(r.__spread)([this],l));return Object(a.m)(g)?g.then((function(t){var e;return null===(e=m)||void 0===e||e.finish(),t})):(null===(u=m)||void 0===u||u.finish(),g)}var y=null===(c=p)||void 0===c?void 0:c.startChild(i(this,e,l.slice(0,-1)));return t.call.apply(t,Object(r.__spread)([this],l.slice(0,-1),[function(t,e){var n;null===(n=y)||void 0===n||n.finish(),f(t,e)}]))}}))}},e.prototype._getSpanContextFromOperationArguments=function(t,e,n){var i={collectionName:t.collectionName,dbName:t.dbName,namespace:t.namespace},o={op:"db",description:e,data:i},s=c[e],a=Array.isArray(this._describeOperations)?this._describeOperations.includes(e):this._describeOperations;if(!s||!a)return o;try{if("mapReduce"===e){var u=Object(r.__read)(n,2),l=u[0],h=u[1];i[s[0]]="string"==typeof l?l:l.name||"<anonymous>",i[s[1]]="string"==typeof h?h:h.name||"<anonymous>"}else for(var f=0;f<s.length;f++)i[s[f]]=JSON.stringify(n[f])}catch(d){}return o}
1,e.id="Mongo",e}()}).call(this,n("3UD+")(t))},"1seS":function(t,e,n){"use strict";var r=Array.prototype.slice,i=n("1KsK"),o=Object.keys,s=o?function(t){return o(t)}:n("sYn3"),a=Object.keys;s.shim=function(){return Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return i(t)?a(r.call(t)):a(t)}):Object.keys=s,Object.keys||s},t.exports=s},"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("XNiG"),i=n("9ppp");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)}}},"2ajD":function(t,e){t.exports=function(t){return t!=t}},"2fFW":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}}},"2gN3":function(t,e,n){var r=n("Kz5y");t.exports=r["__core-js_shared__"]},"2lMS":function(t,e){var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,e){var r=e.length;if(!r)return t;var i=r-1;return e[i]=(r>1?"& ":"")+e[i],e=e.join(r>2?", ":" "),t.replace(n,"{\n/* [wrapped with "+e+"] */\n")}},"3A9y":function(t,e){t.exports=function(t){return this.__data__.has(t)}},"3Fdi":function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},"3L66":function(t,e,n){var r=n("MMmD"),i=n("ExA7");t.exports=function(t){return i(t)&&r(t)}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("quSY");class i extends r.a{constructor(t,e){super()}schedule(t,e=0){return this}}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);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",(function(){return yt})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return Wt})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return Xt})),n.d(e,"f",(function(){return _t})),n.d(e,"g",(function(){return Ut})),n.d(e,"h",(function(){return vt})),n.d(e,"i",(function(){return Pt})),n.d(e,"j",(function(){return Ht})),n.d(e,"k",(function(){return bt})),n.d(e,"l",(function(){return Nt})),n.d(e,"m",(function(){return Mt})),n.d(e,"n",(function(){return oe})),n.d(e,"o",(function(){return te})),n.d(e,"p",(function(){return Jt})),n.d(e,"q",(function(){return C})),n.d(e,"r",(function(){return h})),n.d(e,"s",(function(){return E})),n.d(e,"t",(function(){return O})),n.d(e,"u",(function(){return Ot})),n.d(e,"v",(function(){return kt})),n.d(e,"w",(function(){return Tt})),n.d(e,"x",(function(){return Q})),n.d(e,"y",(function(){return N})),n.d(e,"z",(function(){return ne})),n.d(e,"A",(function(){return V})),n.d(e,"B",(function(){return B})),n.d(e,"C",(function(){return se})),n.d(e,"D",(function(){return Gt})),n.d(e,"E",(function(){return z})),n.d(e,"F",(function(){return $})),n.d(e,"G",(function(){return A})),n.d(e,"H",(function(){return K})),n.d(e,"I",(function(){return It}));var r=n("fXoL"),i=n("ofXK"),o=n("HDdC"),s=n("DH7j"),a=n("lJxs"),u=n("XoHu"),c=n("Cfvw");function l(t,e){return new o.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 a=0;a<r;a++){const u=Object(c.a)(t[a]);let l=!1;n.add(u.subscribe({next:t=>{l||(l=!0,s++),i[a]=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())}}))}})}const h=new r.s("NgValueAccessor"),f={provide:h,useExisting:Object(r.X)(()=>d),multi:!0};let d=(()=>{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.G),r.Qb(r.m))},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.ic("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[r.Cb([f])]}),t})();const p={provide:h,useExisting:Object(r.X)(()=>g),multi:!0},m=new r.s("CompositionEventMode");let g=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(i.S)()?Object(i.S)().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)}
1_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.G),r.Qb(r.m),r.Qb(m,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.ic("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([p])]}),t})(),y=(()=>{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})(),v=(()=>{class t extends y{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return b(e||t)},t.\u0275dir=r.Lb({type:t,features:[r.Ab]}),t})();const b=r.Yb(v);class _ extends y{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}class w{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 E=(()=>{class t extends w{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(_,2))},t.\u0275dir=r.Lb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Ib("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})(),O=(()=>{class t extends w{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(v,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.Ib("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 S(t){return null==t||0===t.length}function x(t){return null!=t&&"number"==typeof t.length}const C=new r.s("NgValidators"),T=new r.s("NgAsyncValidators"),j=/^(?=.{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 A{static min(t){return e=>{if(S(e.value)||S(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(S(e.value)||S(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return S(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return S(t.value)||j.test(t.value)?null:{email:!0}}static minLength(t){return e=>S(e.value)||!x(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>x(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return A.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(S(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(k);return 0==e.length?null:function(t){return D(R(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(k);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(Object(s.a)(e))return l(e,null);if(Object(u.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l(t=1===t.length&&Object(s.a)(t[0])?t[0]:t,null).pipe(Object(a.a)(t=>e(...t)))}return l(t,null)}(R(t,e).map(I)).pipe(Object(a.a)(D))}}}function k(t){return null!=t}function I(t){const e=Object(r.vb)(t)?Object(c.a)(t):t;return Object(r.ub)(e),e}function D(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function R(t,e){return e.map(e=>e(t))}function P(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}const F={provide:h,useExisting:Object(r.X)(()=>N),multi:!0};let N=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.G),r.Qb(r.m))},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.ic("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[r.Cb([F])]}),t})();const L={provide:h,useExisting:Object(r.X)(()=>V),multi:!0};let M=(()=>{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)}
1select(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})(),V=(()=>{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(_),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)}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.G),r.Qb(r.m),r.Qb(M),r.Qb(r.t))},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.ic("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.Cb([L])]}),t})();const U={provide:h,useExisting:Object(r.X)(()=>B),multi:!0};let B=(()=>{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.G),r.Qb(r.m))},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.ic("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([U])]}),t})();const q={provide:h,useExisting:Object(r.X)(()=>z),multi:!0};function H(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let z=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){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=H(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.G),r.Qb(r.m))},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.ic("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.Cb([q])]}),t})(),Q=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(H(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
1),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.m),r.Qb(r.G),r.Qb(z,9))},t.\u0275dir=r.Lb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const G={provide:h,useExisting:Object(r.X)(()=>$),multi:!0};function W(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let $=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const r=t.item(e),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.G),r.Qb(r.m))},t.\u0275dir=r.Lb({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&r.ic("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.Cb([G])]}),t})(),K=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(W(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(W(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.m),r.Qb(r.G),r.Qb($,9))},t.\u0275dir=r.Lb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function X(t,e){return[...e.path,t]}function Y(t,e){t.validator=A.compose([t.validator,e.validator]),t.asyncValidator=A.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&&J(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&&J(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function J(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Z(t,e){t.validator=A.compose([t.validator,e.validator]),t.asyncValidator=A.composeAsync([t.asyncValidator,e.asyncValidator])}function tt(t){return null!=t?A.compose(P(t)):null}function et(t){return null!=t?A.composeAsync(P(t)):null}function nt(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}const rt=[d,B,N,z,$,V];function it(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ot(t,e){if(!e)return null;Array.isArray(e);let n=void 0,r=void 0,i=void 0;return e.forEach(t=>{var e;t.constructor===g?n=t:(e=t,rt.some(t=>e.constructor===t)?r=t:i=t)}),i||r||n||null}function st(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function at(t,e,n,i){Object(r.Z)()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}const ut="VALID",ct="INVALID",lt="PENDING",ht="DISABLED";function ft(t){return(gt(t)?t.validators:t)||null}function dt(t){return Array.isArray(t)?tt(t):t||null}function pt(t,e){return(gt(e)?e.asyncValidators:t)||null}function mt(t){return Array.isArray(t)?et(t):t||null}function gt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class yt{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=dt(this._rawValidators),this._composedAsyncValidatorFn=mt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===ut}get invalid(){return this.status===ct}get pending(){return this.status==lt}get disabled(){return this.status===ht}
1get enabled(){return this.status!==ht}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._rawValidators=t,this._composedValidatorFn=dt(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=mt(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=lt,!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=ht,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=ut,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==ut&&this.status!==lt||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()?ht:ut}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=lt,this._hasOwnPendingAsyncValidator=!0;const e=I(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}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 bt?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof _t&&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()?ht:this.errors?ct:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lt)?lt:this._anyControlsHaveStatus(ct)?ct:ut}
vendor: 4,145 bytes, line 1
1_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){gt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class vt extends yt{constructor(t=null,e,n){super(ft(e),pt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class bt extends yt{constructor(t,e,n){super(ft(e),pt(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 vt?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}.`)}
1_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class _t extends yt{constructor(t,e,n){super(ft(e),pt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof vt?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 wt={provide:v,useExisting:Object(r.X)(()=>Ot)},Et=(()=>Promise.resolve(null))();let Ot=(()=>{class t extends v{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.o,this.form=new bt({},tt(t),et(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Et.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Y(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}
1removeControl(t){Et.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),st(this._directives,t)})}addFormGroup(t){Et.then(()=>{const e=this._findContainer(t.path),n=new bt({});Z(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Et.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Et.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,it(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(C,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.ic("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Cb([wt]),r.Ab]}),t})(),St=(()=>{class t extends v{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return X(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}
1get validator(){return tt(this._validators)}get asyncValidator(){return et(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return xt(e||t)},t.\u0275dir=r.Lb({type:t,features:[r.Ab]}),t})();const xt=r.Yb(St),Ct={provide:v,useExisting:Object(r.X)(()=>Tt)};let Tt=(()=>{class t extends St{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(v,5),r.Qb(C,10),r.Qb(T,10))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r.Cb([Ct]),r.Ab]}),t})();const jt={provide:_,useExisting:Object(r.X)(()=>kt)},At=(()=>Promise.resolve(null))();let kt=(()=>{class t extends _{constructor(t,e,n,i){super(),this.control=new vt,this._registered=!1,this.update=new r.o,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=ot(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),nt(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?X(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return tt(this._rawValidators)}get asyncValidator(){return et(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(){Y(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){At.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;At.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(v,9),r.Qb(C,10),r.Qb(T,10),r.Qb(h,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([jt]),r.Ab,r.Bb]}),t})(),It=(()=>{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 Dt=new r.s("NgModelWithFormControlWarning"),Rt={provide:_,useExisting:Object(r.X)(()=>Pt)};let Pt=(()=>{class t extends _{constructor(t,e,n,i){super(),this._ngModelWarningConfig=i,this.update=new r.o,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=ot(0,n)}set isDisabled(t){}ngOnChanges(e){this._isControlChanged(e)&&(Y(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),nt(e,this.viewModel)&&(at(0,t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return tt(this._rawValidators)}get asyncValidator(){return et(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(C,10),r.Qb(T,10),r.Qb(h,10),r.Qb(Dt,8))},t.\u0275dir=r.Lb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r.Cb([Rt]),r.Ab,r.Bb]}),t._ngModelWarningSentOnce=!1,t})();const Ft={provide:v,useExisting:Object(r.X)(()=>Nt)};let Nt=(()=>
1{class t extends v{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 Y(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){st(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Z(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);Z(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,it(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){const n=()=>{};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),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&&Y(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=tt(this._validators);this.form.validator=A.compose([this.form.validator,t]);const e=et(this._asyncValidators);this.form.asyncValidator=A.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(C,10),r.Qb(T,10))},t.\u0275dir=r.Lb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&r.ic("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Cb([Ft]),r.Ab,r.Bb]}),t})();const Lt={provide:v,useExisting:Object(r.X)(()=>Mt)};let Mt=(()=>{class t extends St{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){Bt(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(v,13),r.Qb(C,10),r.Qb(T,10))},t.\u0275dir=r.Lb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r.Cb([Lt]),r.Ab]}),t})();const Vt={provide:v,useExisting:Object(r.X)(()=>Ut)};let Ut=(()=>{class t extends v{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 X(null==this.name?this.name:this.name.toString(),this._parent)}
1get validator(){return tt(this._validators)}get asyncValidator(){return et(this._asyncValidators)}_checkParentType(){Bt(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(v,13),r.Qb(C,10),r.Qb(T,10))},t.\u0275dir=r.Lb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r.Cb([Vt]),r.Ab]}),t})();function Bt(t){return!(t instanceof Mt||t instanceof Nt||t instanceof Ut)}const qt={provide:_,useExisting:Object(r.X)(()=>Ht)};let Ht=(()=>{class t extends _{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=ot(0,i)}set isDisabled(t){}ngOnChanges(e){this._added||this._setUpControl(),nt(e,this.viewModel)&&(at(0,t,this,this._ngModelWarningConfig),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 X(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return tt(this._rawValidators)}get asyncValidator(){return et(this._rawAsyncValidators)}_checkParentType(){}_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(v,13),r.Qb(C,10),r.Qb(T,10),r.Qb(h,10),r.Qb(Dt,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([qt]),r.Ab,r.Bb]}),t._ngModelWarningSentOnce=!1,t})();const zt={provide:C,useExisting:Object(r.X)(()=>Gt),multi:!0},Qt={provide:C,useExisting:Object(r.X)(()=>Wt),multi:!0};let Gt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?A.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([zt])]}),t})(),Wt=(()=>{class t extends Gt{validate(t){return this.required?A.requiredTrue(t):null}}return t.\u0275fac=function(e){return $t(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([Qt]),r.Ab]}),t})();const $t=r.Yb(Wt),Kt={provide:C,useExisting:Object(r.X)(()=>Xt),multi:!0};let Xt=(()=>{class t{constructor(){this._enabled=!1}set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?A.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[r.Cb([Kt])]}),t})();const Yt={provide:C,useExisting:Object(r.X)(()=>Jt),multi:!0};let Jt=(()=>{class t{constructor(){this._validator=A.nullValidator}ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}
1validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=A.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([Yt]),r.Bb]}),t})();const Zt={provide:C,useExisting:Object(r.X)(()=>te),multi:!0};let te=(()=>{class t{constructor(){this._validator=A.nullValidator}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=A.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([Zt]),r.Bb]}),t})();const ee={provide:C,useExisting:Object(r.X)(()=>ne),multi:!0};let ne=(()=>{class t{constructor(){this._validator=A.nullValidator}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=A.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.Eb("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[r.Cb([ee]),r.Bb]}),t})(),re=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)}}),t})(),ie=(()=>{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 bt(n,{asyncValidators:i,updateOn:o,validators:r})}control(t,e,n){return new vt(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new _t(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 vt||t instanceof bt||t instanceof _t?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})(),oe=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[M],imports:[re]}),t})(),se=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Dt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[ie,M],imports:[re]}),t})()},"3UD+":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},"3WF5":function(t,e,n){var r=n("eUgh"),i=n("ut/Y"),o=n("l9OW"),s=n("Z0cm");t.exports=function(t,e){return(s(t)?r:o)(t,i(e,3))}},"4/ic":function(t,e,n){var r=n("ZWtO");t.exports=function(t){return function(e){return r(e,t)}}},"44Ds":function(t,e,n){var r=n("e4Nc");function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},"4I5i":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"4JlD":function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,a){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?o(s(t),(function(s){var a=encodeURIComponent(r(s))+n;return i(t[s])?o(t[s],(function(t){return a+encodeURIComponent(r(t))})).join(e):a+encodeURIComponent(r(t[s]))}
1)).join(e):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var s=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},"4Oe1":function(t,e,n){var r=n("YO3V");t.exports=function(t){return r(t)?void 0:t}},"4kuk":function(t,e,n){var r=n("SfRM"),i=n("Hvzi"),o=n("u8Dt"),s=n("ekgI"),a=n("JSQU");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},"4qC0":function(t,e,n){var r=n("NykK"),i=n("Z0cm"),o=n("ExA7");t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},"4sDh":function(t,e,n){var r=n("4uTw"),i=n("03A+"),o=n("Z0cm"),s=n("wJg7"),a=n("shjB"),u=n("9Nap");t.exports=function(t,e,n){for(var c=-1,l=(e=r(e,t)).length,h=!1;++c<l;){var f=u(e[c]);if(!(h=null!=t&&n(t,f)))break;t=t[f]}return h||++c!=l?h:!!(l=null==t?0:t.length)&&a(l)&&s(f,l)&&(o(t)||i(t))}},"4uTw":function(t,e,n){var r=n("Z0cm"),i=n("9ggG"),o=n("GNiM"),s=n("dt0z");t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("lJxs"),i=n("Cfvw"),o=n("zx2A");function s(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?o=>o.pipe(s((n,o)=>Object(i.a)(t(n,o)).pipe(Object(r.a)((t,r)=>e(n,t,o,r))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}class u extends o.b{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)}_innerSub(t){const e=new o.a(this),n=this.destination;n.add(e);const r=Object(o.c)(t,e);r!==e&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"5Tg0":function(t,e,n){(function(t){var r=n("Kz5y"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}}).call(this,n("YuTi")(t))},"5b/b":function(t,e,n){t.exports=function(t){return function(e,o,s){var a=n("sLmk");(s=s&&a(s)||{}).hosts=s.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof e&&void 0!==e||(e="",o="",s._allowEmptyCredentials=!0);var u=t(e,o,s),c=u.initIndex("places");return c.search=i("query","/1/places/query"),c.reverse=function(t,e){var n=r.encode(t);return this.as._jsonRequest({method:"GET",url:"/1/places/reverse?"+n,hostType:"read",callback:e})},c.getObject=function(t,e){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(t),hostType:"read",callback:e})},c}};var r=n("s4NR"),i=n("9SYa")},"5sOR":function(t,e,n){var r=n("N4mw"),i=n("99Ms"),o=n("T8tx");t.exports=function(t,e,n,s,a,u,c,l,h,f){var d=8&e;e|=d?32:64,4&(e&=~(d?64:32))||(e&=-4);var p=[t,e,a,d?u:void 0,d?c:void 0,d?void 0:u,d?void 0:c,l,h,f],m=n.apply(void 0,p);return r(t)&&i(m,p),m.placeholder=s,o(m,t,e)}},"5zHL":function(t,e,n){"use strict";t.exports="2.28.1"},"6Joi":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("SOwp"),i=n("wj3C"),o=n("q/0M"),s=n("zVF4"),a=n("x7I3"),u=n("S+S0"),
1c=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(i),l={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"},h=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 r.__extends(e,t),e}(Error),f=new o.Logger("@firebase/firestore");function d(){return f.logLevel}function p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(f.logLevel<=o.LogLevel.DEBUG){var i=e.map(y);f.debug.apply(f,r.__spreadArrays(["Firestore (7.24.0): "+t],i))}}function m(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(f.logLevel<=o.LogLevel.ERROR){var i=e.map(y);f.error.apply(f,r.__spreadArrays(["Firestore (7.24.0): "+t],i))}}function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(f.logLevel<=o.LogLevel.WARN){var i=e.map(y);f.warn.apply(f,r.__spreadArrays(["Firestore (7.24.0): "+t],i))}}function y(t){if("string"==typeof t)return t;try{return JSON.stringify(t)}catch(i){return t}}function v(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE (7.24.0) INTERNAL ASSERTION FAILED: "+t;throw m(e),new Error(e)}function b(t,e){t||v()}function _(t,e){return t}function w(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function E(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}var S=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&v(),void 0===n?n=t.length-e:n>t.length-e&&v(),this.segments=t,this.offset=e,this.t=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.t},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.i(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.o(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.u=function(t){return this.o(this.segments,this.offset+(t=void 0===t?1:t),this.length-t)},t.prototype.h=function(){return this.o(this.segments,this.offset,this.length-1)},t.prototype.l=function(){return this.segments[this.offset]},t.prototype._=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.m=function(){return 0===this.length},t.prototype.T=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.I=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.A=function(){return this.segments.slice(this.offset,this.limit())},t.i=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}(),x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.o=function(t,n,r){return new e(t,n,r)},e.prototype.R=function(){return this.A().join("/")},e.prototype.toString=function(){return this.R()},e.g=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=[],i=0,o=t;i<o.length;i++){var s=o[i];if(s.indexOf("//")>=0)throw new h(l.INVALID_ARGUMENT,"Invalid segment ("+s+"). Paths must not contain // in them.");r.push.apply(r,s.split("/").filter((function(t){return t.length>0})))}return new e(r)},e.P=function(){return new e([])},e}(S),C=/^[_a-zA-Z][_a-zA-Z0-9]*$/,T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.o=function(t,n,r){return new e(t,n,r)},e.V=function(t){return C.test(t)},e.prototype.R=function(){return this.A().map((function(t){return t=t.replace("\\","\\\\").replace("`","\\`"),e.V(t)||(t="`"+t+"`"),t})).join(".")},e.prototype.toString=function(){return this.R()},e.prototype.p=function(){return 1===this.length&&"__name__"===this.get(0)},e.v=function(){return new e(["__name__"])},e.S=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new h(l.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 h(l.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var u=t[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new h(l.INVALID_ARGUMENT,"Path has invali
1d escape sequence: "+t);r+=u,i+=2}else"`"===a?(s=!s,i++):"."!==a||s?(r+=a,i++):(o(),i++)}if(o(),s)throw new h(l.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e.P=function(){return new e([])},e}(S),j=function(){function t(t){this.path=t}return t.D=function(e){return new t(x.g(e))},t.C=function(e){return new t(x.g(e).u(5))},t.prototype.N=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===x.i(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.i=function(t,e){return x.i(t.path,e.path)},t.F=function(t){return t.length%2==0},t.$=function(e){return new t(new x(e.slice()))},t}();function A(t,e){if(0!==e.length)throw new h(l.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+W(e.length,"argument")+".")}function k(t,e,n){if(e.length!==n)throw new h(l.INVALID_ARGUMENT,"Function "+t+"() requires "+W(n,"argument")+", but was called with "+W(e.length,"argument")+".")}function I(t,e,n){if(e.length<n)throw new h(l.INVALID_ARGUMENT,"Function "+t+"() requires at least "+W(n,"argument")+", but was called with "+W(e.length,"argument")+".")}function D(t,e,n,r){if(e.length<n||e.length>r)throw new h(l.INVALID_ARGUMENT,"Function "+t+"() requires between "+n+" and "+r+" arguments, but was called with "+W(e.length,"argument")+".")}function R(t,e,n,r){V(t,e,G(n)+" argument",r)}function P(t,e,n,r){void 0!==r&&R(t,e,n,r)}function F(t,e,n,r){V(t,e,n+" option",r)}function N(t,e,n,r){void 0!==r&&F(t,e,n,r)}function L(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(B(u))}var c=B(r);throw new h(l.INVALID_ARGUMENT,"Invalid value "+c+" provided to function "+t+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(t,0,n,r,i)}function M(t,e,n,r){if(!e.some((function(t){return t===r})))throw new h(l.INVALID_ARGUMENT,"Invalid value "+B(r)+" provided to function "+t+"() for its "+G(n)+" argument. Acceptable values: "+e.join(", "));return r}function V(t,e,n,r){if(!("object"===e?U(r):"non-empty string"===e?"string"==typeof r&&""!==r:typeof r===e)){var i=B(r);throw new h(l.INVALID_ARGUMENT,"Function "+t+"() requires its "+n+" to be of type "+e+", but it was: "+i)}}function U(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}function B(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":v()}function q(t,e,n){if(void 0===n)throw new h(l.INVALID_ARGUMENT,"Function "+t+"() requires a valid "+G(e)+" argument, but it was undefined.")}function H(t,e,n){E(e,(function(e,r){if(n.indexOf(e)<0)throw new h(l.INVALID_ARGUMENT,"Unknown option '"+e+"' passed to function "+t+"(). Available options: "+n.join(", "))}))}function z(t,e,n,r){var i=B(r);return new h(l.INVALID_ARGUMENT,"Function "+t+"() requires its "+G(n)+" argument to be a "+e+", but it was: "+i)}function Q(t,e,n){if(n<=0)throw new h(l.INVALID_ARGUMENT,"Function "+t+"() requires its "+G(e)+" argument to be a positive number, but it was: "+n+".")}function G(t){switch(t){case 1:return"first";
1case 2:return"second";case 3:return"third";default:return t+"th"}}function W(t,e){return t+" "+e+(1===t?"":"s")}function $(t){var e="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(n);else for(var r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}var K=function(){function t(){}return t.k=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var r=$(40),i=0;i<r.length;++i)n.length<20&&r[i]<e&&(n+=t.charAt(r[i]%t.length));return n},t}();function X(t,e){return t<e?-1:t>e?1:0}function Y(t,e,n){return t.length===e.length&&t.every((function(t,r){return n(t,e[r])}))}function J(t){return t+"\0"}var Z=function(){function t(t){this.M=t}return t.fromBase64String=function(e){return new t(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 btoa(this.M)},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.M)},t.prototype.O=function(){return 2*this.M.length},t.prototype.L=function(t){return X(this.M,t.M)},t.prototype.isEqual=function(t){return this.M===t.M},t}();Z.B=new Z("");var tt=function(){function t(t){this.q=t}return t.fromBase64String=function(e){try{return new t(Z.fromBase64String(e))}catch(e){throw new h(l.INVALID_ARGUMENT,"Failed to construct Bytes from Base64 string: "+e)}},t.fromUint8Array=function(e){return new t(Z.fromUint8Array(e))},t.prototype.toBase64=function(){return this.q.toBase64()},t.prototype.toUint8Array=function(){return this.q.toUint8Array()},t.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this.q.isEqual(t.q)},t}();function et(){if("undefined"==typeof Uint8Array)throw new h(l.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function nt(){if("undefined"==typeof atob)throw new h(l.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.fromBase64String=function(t){k("Blob.fromBase64String",arguments,1),R("Blob.fromBase64String","string",1,t),nt();try{return new e(Z.fromBase64String(t))}catch(t){throw new h(l.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+t)}},e.fromUint8Array=function(t){if(k("Blob.fromUint8Array",arguments,1),et(),!(t instanceof Uint8Array))throw z("Blob.fromUint8Array","Uint8Array",1,t);return new e(Z.fromUint8Array(t))},e.prototype.toBase64=function(){return k("Blob.toBase64",arguments,0),nt(),t.prototype.toBase64.call(this)},e.prototype.toUint8Array=function(){return k("Blob.toUint8Array",arguments,0),et(),t.prototype.toUint8Array.call(this)},e.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},e}(tt),it=function(t,e,n,r,i,o){this.U=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i,this.W=o},ot=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"j",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t.prototype.L=function(t){return X(this.projectId,t.projectId)||X(this.database,t.database)},t}(),st=function(){function t(t,e){this.K=t,this.G=e,this.H={}}return t.prototype.get=function(t){var e=this.K(t),n=this.H[e];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],s=o[1];if(this.G(o[0],t))return s}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.K(t),r=this.H[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(this.G(r[i][0],t))return void(r[i]=[t,e]);r.push([t,e])}else this.H[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.K(t),n=this.H[e];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.G(n[r][0],t))return 1===n.length?delete this.H[e]:n.splice(r,1),!0;return!1}
1,t.prototype.forEach=function(t){E(this.H,(function(e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];t(o[0],o[1])}}))},t.prototype.m=function(){return O(this.H)},t}(),at=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new h(l.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new h(l.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new h(l.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new h(l.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.Y=function(t){return this.seconds===t.seconds?X(this.nanoseconds,t.nanoseconds):X(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.toJSON=function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}},t.prototype.valueOf=function(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},t}(),ut=function(){function t(t){this.timestamp=t}return t.J=function(e){return new t(e)},t.min=function(){return new t(new at(0,0))},t.prototype.L=function(t){return this.timestamp.Y(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.X=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.Z=function(){return this.timestamp},t}();function ct(t){return null==t}function lt(t){return 0===t&&1/t==-1/0}function ht(t){return"number"==typeof t&&Number.isInteger(t)&&!lt(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}var ft=function(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.tt=null};function dt(t,e,n,r,i,o,s){return 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),new ft(t,e,n,r,i,o,s)}function pt(t){var e=_(t);if(null===e.tt){var n=e.path.R();null!==e.collectionGroup&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map((function(t){return function(t){return t.field.R()+t.op.toString()+ie(t.value)}(t)})).join(","),n+="|ob:",n+=e.orderBy.map((function(t){return(e=t).field.R()+e.dir;var e})).join(","),ct(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=sr(e.startAt)),e.endAt&&(n+="|ub:",n+=sr(e.endAt)),e.tt=n}return e.tt}function mt(t,e){if(t.limit!==e.limit)return!1;if(t.orderBy.length!==e.orderBy.length)return!1;for(var n=0;n<t.orderBy.length;n++)if(!hr(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(var r=0;r<t.filters.length;r++)if((i=t.filters[r]).op!==(o=e.filters[r]).op||!i.field.isEqual(o.field)||!te(i.value,o.value))return!1;var i,o;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!ur(t.startAt,e.startAt)&&ur(t.endAt,e.endAt)}function gt(t){return j.F(t.path)&&null===t.collectionGroup&&0===t.filters.length}var yt,vt,bt=function(){function t(t,e,n,r,i,o,s){void 0===i&&(i=ut.min()),void 0===o&&(o=ut.min()),void 0===s&&(s=Z.B),this.target=t,this.targetId=e,this.et=n,this.sequenceNumber=r,this.nt=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=s}return t.prototype.st=function(e){return new t(this.target,this.targetId,this.et,e,this.nt,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.it=function(e,n){return new t(this.target,this.targetId,this.et,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.rt=function(e){return new t(this.target,this.targetId,this.et,this.sequenceNumber,this.nt,e,this.resumeToken)},t}(),_t=function(t){this.count=t};function wt(t){switch(t){case l.OK:return v();case l.CANCELLED:case l.UNKNOWN:case l.DEADLINE_EXCEEDED:case l.RESOURCE_EXHAUSTED:case l.INTERNAL:case l.UNAVAILABLE:case l.UNAUTHENTICATED:return!1;case l.INVALID_ARGUMENT:case l.NOT_FOUND:case l.ALREADY_EXISTS:case l.PERMISSION_DENIED:case l.FAILED_PRECONDITION:case l.ABORTED:case l.OUT_OF_RANGE:case l.UNIMPLEMENT
1ED:case l.DATA_LOSS:return!0;default:return v()}}function Et(t){if(void 0===t)return m("GRPC error has no .code"),l.UNKNOWN;switch(t){case yt.OK:return l.OK;case yt.CANCELLED:return l.CANCELLED;case yt.UNKNOWN:return l.UNKNOWN;case yt.DEADLINE_EXCEEDED:return l.DEADLINE_EXCEEDED;case yt.RESOURCE_EXHAUSTED:return l.RESOURCE_EXHAUSTED;case yt.INTERNAL:return l.INTERNAL;case yt.UNAVAILABLE:return l.UNAVAILABLE;case yt.UNAUTHENTICATED:return l.UNAUTHENTICATED;case yt.INVALID_ARGUMENT:return l.INVALID_ARGUMENT;case yt.NOT_FOUND:return l.NOT_FOUND;case yt.ALREADY_EXISTS:return l.ALREADY_EXISTS;case yt.PERMISSION_DENIED:return l.PERMISSION_DENIED;case yt.FAILED_PRECONDITION:return l.FAILED_PRECONDITION;case yt.ABORTED:return l.ABORTED;case yt.OUT_OF_RANGE:return l.OUT_OF_RANGE;case yt.UNIMPLEMENTED:return l.UNIMPLEMENTED;case yt.DATA_LOSS:return l.DATA_LOSS;default:return v()}}(vt=yt||(yt={}))[vt.OK=0]="OK",vt[vt.CANCELLED=1]="CANCELLED",vt[vt.UNKNOWN=2]="UNKNOWN",vt[vt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",vt[vt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",vt[vt.NOT_FOUND=5]="NOT_FOUND",vt[vt.ALREADY_EXISTS=6]="ALREADY_EXISTS",vt[vt.PERMISSION_DENIED=7]="PERMISSION_DENIED",vt[vt.UNAUTHENTICATED=16]="UNAUTHENTICATED",vt[vt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",vt[vt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",vt[vt.ABORTED=10]="ABORTED",vt[vt.OUT_OF_RANGE=11]="OUT_OF_RANGE",vt[vt.UNIMPLEMENTED=12]="UNIMPLEMENTED",vt[vt.INTERNAL=13]="INTERNAL",vt[vt.UNAVAILABLE=14]="UNAVAILABLE",vt[vt.DATA_LOSS=15]="DATA_LOSS";var Ot=function(){function t(t,e){this.i=t,this.root=e||xt.EMPTY}return t.prototype.ot=function(e,n){return new t(this.i,this.root.ot(e,n,this.i).copy(null,null,xt.at,null,null))},t.prototype.remove=function(e){return new t(this.i,this.root.remove(e,this.i).copy(null,null,xt.at,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.m();){var n=this.i(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.m();){var r=this.i(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.m=function(){return this.root.m()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),t.prototype.ct=function(){return this.root.ct()},t.prototype.ut=function(){return this.root.ut()},t.prototype.ht=function(t){return this.root.ht(t)},t.prototype.forEach=function(t){this.ht((function(e,n){return t(e,n),!1}))},t.prototype.toString=function(){var t=[];return this.ht((function(e,n){return t.push(e+":"+n),!1})),"{"+t.join(", ")+"}"},t.prototype.lt=function(t){return this.root.lt(t)},t.prototype._t=function(){return new St(this.root,null,this.i,!1)},t.prototype.ft=function(t){return new St(this.root,t,this.i,!1)},t.prototype.dt=function(){return new St(this.root,null,this.i,!0)},t.prototype.wt=function(t){return new St(this.root,t,this.i,!0)},t}(),St=function(){function t(t,e,n,r){this.Tt=r,this.Et=[];for(var i=1;!t.m();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this.Tt?t.left:t.right;else{if(0===i){this.Et.push(t);break}this.Et.push(t),t=this.Tt?t.right:t.left}}return t.prototype.It=function(){var t=this.Et.pop(),e={key:t.key,value:t.value};if(this.Tt)for(t=t.left;!t.m();)this.Et.push(t),t=t.right;else for(t=t.right;!t.m();)this.Et.push(t),t=t.left;return e},t.prototype.At=function(){return this.Et.length>0},t.prototype.Rt=function(){if(0===this.Et.length)return null;var t=this.Et[this.Et.length-1];return{key:t.key,value:t.value}},t}(),xt=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.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.m=function(){return!1},t.prototype.ht=function(t){return this.left.ht(t)||t(this.key,this.value)||this.right.ht(t)},t.prototype.lt=function(t){return this.right.lt(t)||t(this.key,this.value)||this.left.lt(t)},t.prototype.min=function(){return this.left.m()?this:this.left.min()},t.prototype.ct=function(){return this.min().key},t.prototype.ut=function(){return this.right.m()?this.key:this.right.ut()},t.prototype.ot=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.copy(null,null,null,r.left.ot(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.ot(t,e,n))).gt()},t.prototype.Pt=function(){if(this.left.m())return t.EMPTY;var e=this;return e.left.yt()||e.left.left.yt()||(e=e.Vt()),(e=e.copy(null,null,null,e.left.Pt(),null)).gt()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left.m()||i.left.yt()||i.left.left.yt()||(i=i.Vt()),i=i.copy(null,null,null,i.left.remove(e,n),null);
1else{if(i.left.yt()&&(i=i.bt()),i.right.m()||i.right.yt()||i.right.left.yt()||(i=i.vt()),0===n(e,i.key)){if(i.right.m())return t.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.Pt())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.gt()},t.prototype.yt=function(){return this.color},t.prototype.gt=function(){var t=this;return t.right.yt()&&!t.left.yt()&&(t=t.St()),t.left.yt()&&t.left.left.yt()&&(t=t.bt()),t.left.yt()&&t.right.yt()&&(t=t.Dt()),t},t.prototype.Vt=function(){var t=this.Dt();return t.right.left.yt()&&(t=(t=(t=t.copy(null,null,null,null,t.right.bt())).St()).Dt()),t},t.prototype.vt=function(){var t=this.Dt();return t.left.left.yt()&&(t=(t=t.bt()).Dt()),t},t.prototype.St=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.bt=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.Dt=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.Ct=function(){var t=this.Nt();return Math.pow(2,t)<=this.size+1},t.prototype.Nt=function(){if(this.yt()&&this.left.yt())throw v();if(this.right.yt())throw v();var t=this.left.Nt();if(t!==this.right.Nt())throw v();return t+(this.yt()?0:1)},t}();xt.EMPTY=null,xt.RED=!0,xt.at=!1,xt.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw v()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw v()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw v()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw v()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw v()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.ot=function(t,e,n){return new xt(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.m=function(){return!0},t.prototype.ht=function(t){return!1},t.prototype.lt=function(t){return!1},t.prototype.ct=function(){return null},t.prototype.ut=function(){return null},t.prototype.yt=function(){return!1},t.prototype.Ct=function(){return!0},t.prototype.Nt=function(){return 0},t}());var Ct=function(){function t(t){this.i=t,this.data=new Ot(this.i)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.ct()},t.prototype.last=function(){return this.data.ut()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.ht((function(e,n){return t(e),!1}))},t.prototype.Ft=function(t,e){for(var n=this.data.ft(t[0]);n.At();){var r=n.It();if(this.i(r.key,t[1])>=0)return;e(r.key)}},t.prototype.xt=function(t,e){var n;for(n=void 0!==e?this.data.ft(e):this.data._t();n.At();)if(!t(n.It().key))return},t.prototype.$t=function(t){var e=this.data.ft(t);return e.At()?e.It().key:null},t.prototype._t=function(){return new Tt(this.data._t())},t.prototype.ft=function(t){return new Tt(this.data.ft(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).ot(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype.m=function(){return this.data.m()},t.prototype.kt=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._t(),r=e.data._t();n.At();){var i=n.It().key,o=r.It().key;if(0!==this.i(i,o))return!1}return!0},t.prototype.A=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.copy=function(e){var n=new t(this.i);return n.data=e,n},t}(),Tt=function(){function t(t){this.Mt=t}return t.prototype.It=function(){return this.Mt.It().key},t.prototype.At=function(){return this.Mt.At()},t}(),jt=new Ot(j.i);function At(){return jt}function kt(){return At()}var It=new Ot(j.i);function Dt(){return It}
1var Rt=new Ot(j.i),Pt=new Ct(j.i);function Ft(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Pt,r=0,i=t;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var Nt=new Ct(X);function Lt(){return Nt}var Mt=function(){function t(t){this.i=t?function(e,n){return t(e,n)||j.i(e.key,n.key)}:function(t,e){return j.i(t.key,e.key)},this.Ot=Dt(),this.Lt=new Ot(this.i)}return t.Bt=function(e){return new t(e.i)},t.prototype.has=function(t){return null!=this.Ot.get(t)},t.prototype.get=function(t){return this.Ot.get(t)},t.prototype.first=function(){return this.Lt.ct()},t.prototype.last=function(){return this.Lt.ut()},t.prototype.m=function(){return this.Lt.m()},t.prototype.indexOf=function(t){var e=this.Ot.get(t);return e?this.Lt.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.Lt.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t){this.Lt.ht((function(e,n){return t(e),!1}))},t.prototype.add=function(t){var e=this.delete(t.key);return e.copy(e.Ot.ot(t.key,t),e.Lt.ot(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.copy(this.Ot.remove(t),this.Lt.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.Lt._t(),r=e.Lt._t();n.At();){var i=n.It().key,o=r.It().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.copy=function(e,n){var r=new t;return r.i=this.i,r.Ot=e,r.Lt=n,r},t}(),Vt=function(){function t(){this.qt=new Ot(j.i)}return t.prototype.track=function(t){var e=t.doc.key,n=this.qt.get(e);n?0!==t.type&&3===n.type?this.qt=this.qt.ot(e,t):3===t.type&&1!==n.type?this.qt=this.qt.ot(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.qt=this.qt.ot(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.qt=this.qt.ot(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.qt=this.qt.remove(e):1===t.type&&2===n.type?this.qt=this.qt.ot(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.qt=this.qt.ot(e,{type:2,doc:t.doc}):v():this.qt=this.qt.ot(e,t)},t.prototype.Ut=function(){var t=[];return this.qt.ht((function(e,n){t.push(n)})),t},t}(),Ut=function(){function t(t,e,n,r,i,o,s,a){this.query=t,this.docs=e,this.Qt=n,this.docChanges=r,this.Wt=i,this.fromCache=o,this.jt=s,this.Kt=a}return t.Gt=function(e,n,r,i){var o=[];return n.forEach((function(t){o.push({type:0,doc:t})})),new t(e,n,Mt.Bt(n),o,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.Wt.m()},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.jt===t.jt&&this.Wt.isEqual(t.Wt)&&Qn(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.Qt.isEqual(t.Qt)))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}(),Bt=function(){function t(t,e,n,r,i){this.nt=t,this.zt=e,this.Ht=n,this.Yt=r,this.Jt=i}return t.Xt=function(e,n){var r=new Map;return r.set(e,qt.Zt(e,n)),new t(ut.min(),r,Lt(),At(),Ft())},t}(),qt=function(){function t(t,e,n,r,i){this.resumeToken=t,this.te=e,this.ee=n,this.ne=r,this.se=i}return t.Zt=function(e,n){return new t(Z.B,n,Ft(),Ft(),Ft())},t}(),Ht=function(t,e,n,r){this.ie=t,this.removedTargetIds=e,this.key=n,this.re=r},zt=function(t,e){this.targetId=t,this.oe=e},Qt=function(t,e,n,r){void 0===n&&(n=Z.B),void 0===r&&(r=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=r},Gt=function(){function t(){this.ae=0,this.ce=Kt(),this.ue=Z.B,this.he=!1,this.le=!0}return Object.defineProperty(t.prototype,"te",{get:function(){return this.he},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.ue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_e",{get:function(){return 0!==this.ae},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fe",{get:function(){return this.le}
1,enumerable:!1,configurable:!0}),t.prototype.de=function(t){t.O()>0&&(this.le=!0,this.ue=t)},t.prototype.we=function(){var t=Ft(),e=Ft(),n=Ft();return this.ce.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:v()}})),new qt(this.ue,this.he,t,e,n)},t.prototype.me=function(){this.le=!1,this.ce=Kt()},t.prototype.Te=function(t,e){this.le=!0,this.ce=this.ce.ot(t,e)},t.prototype.Ee=function(t){this.le=!0,this.ce=this.ce.remove(t)},t.prototype.Ie=function(){this.ae+=1},t.prototype.Ae=function(){this.ae-=1},t.prototype.Re=function(){this.le=!0,this.he=!0},t}(),Wt=function(){function t(t){this.ge=t,this.Pe=new Map,this.ye=At(),this.Ve=$t(),this.pe=new Ct(X)}return t.prototype.be=function(t){for(var e=0,n=t.ie;e<n.length;e++){var r=n[e];t.re instanceof An?this.ve(r,t.re):t.re instanceof kn&&this.Se(r,t.key,t.re)}for(var i=0,o=t.removedTargetIds;i<o.length;i++)this.Se(o[i],t.key,t.re)},t.prototype.De=function(t){var e=this;this.Ce(t,(function(n){var r=e.Ne(n);switch(t.state){case 0:e.Fe(n)&&r.de(t.resumeToken);break;case 1:r.Ae(),r._e||r.me(),r.de(t.resumeToken);break;case 2:r.Ae(),r._e||e.removeTarget(n);break;case 3:e.Fe(n)&&(r.Re(),r.de(t.resumeToken));break;case 4:e.Fe(n)&&(e.xe(n),r.de(t.resumeToken));break;default:v()}}))},t.prototype.Ce=function(t,e){var n=this;t.targetIds.length>0?t.targetIds.forEach(e):this.Pe.forEach((function(t,r){n.Fe(r)&&e(r)}))},t.prototype.$e=function(t){var e=t.targetId,n=t.oe.count,r=this.ke(e);if(r){var i=r.target;if(gt(i))if(0===n){var o=new j(i.path);this.Se(e,o,new kn(o,ut.min()))}else b(1===n);else this.Me(e)!==n&&(this.xe(e),this.pe=this.pe.add(e))}},t.prototype.Oe=function(t){var e=this,n=new Map;this.Pe.forEach((function(r,i){var o=e.ke(i);if(o){if(r.te&&gt(o.target)){var s=new j(o.target.path);null!==e.ye.get(s)||e.Le(i,s)||e.Se(i,s,new kn(s,t))}r.fe&&(n.set(i,r.we()),r.me())}}));var r=Ft();this.Ve.forEach((function(t,n){var i=!0;n.xt((function(t){var n=e.ke(t);return!n||2===n.et||(i=!1,!1)})),i&&(r=r.add(t))}));var i=new Bt(t,n,this.pe,this.ye,r);return this.ye=At(),this.Ve=$t(),this.pe=new Ct(X),i},t.prototype.ve=function(t,e){if(this.Fe(t)){var n=this.Le(t,e.key)?2:0;this.Ne(t).Te(e.key,n),this.ye=this.ye.ot(e.key,e),this.Ve=this.Ve.ot(e.key,this.Be(e.key).add(t))}},t.prototype.Se=function(t,e,n){if(this.Fe(t)){var r=this.Ne(t);this.Le(t,e)?r.Te(e,1):r.Ee(e),this.Ve=this.Ve.ot(e,this.Be(e).delete(t)),n&&(this.ye=this.ye.ot(e,n))}},t.prototype.removeTarget=function(t){this.Pe.delete(t)},t.prototype.Me=function(t){var e=this.Ne(t).we();return this.ge.qe(t).size+e.ee.size-e.se.size},t.prototype.Ie=function(t){this.Ne(t).Ie()},t.prototype.Ne=function(t){var e=this.Pe.get(t);return e||(e=new Gt,this.Pe.set(t,e)),e},t.prototype.Be=function(t){var e=this.Ve.get(t);return e||(e=new Ct(X),this.Ve=this.Ve.ot(t,e)),e},t.prototype.Fe=function(t){var e=null!==this.ke(t);return e||p("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.ke=function(t){var e=this.Pe.get(t);return e&&e._e?null:this.ge.Ue(t)},t.prototype.xe=function(t){var e=this;this.Pe.set(t,new Gt),this.ge.qe(t).forEach((function(n){e.Se(t,n,null)}))},t.prototype.Le=function(t,e){return this.ge.qe(t).has(e)},t}();function $t(){return new Ot(j.i)}function Kt(){return new Ot(j.i)}function Xt(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 Yt(t){var e=oe(t.mapValue.fields.__local_write_time__.timestampValue);return new at(e.seconds,e.nanos)}var Jt=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Zt(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?Xt(t)?4:10:v()}function te(t,e){var n=Zt(t);if(n!==Zt(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Yt(t).isEqual(Yt(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=oe(t.timestampValue),r=oe(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 ae(t.bytesValue).isEqual(ae(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return se(t.geoPointValue.latitude)===se(e.geoPointValue.latitude)&&se(t.geoPointValue.longitude)===se(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return se(t.integerValue)===se(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=se(t.doubleValue),r=se(e.doubleValue);return n===r?lt(n)===lt(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return Y(t.arrayValue.values||[],e.arrayValue.values||[],te);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(w(n)!==w(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!te(n[i],r[i])))return!1;return!0}(t,e);default:return v()}}function ee(t,e){return void 0!==(t.values||[]).find((function(t){return te(t,e)}))}function ne(t,e){var n=Zt(t),r=Zt(e);
1if(n!==r)return X(n,r);switch(n){case 0:return 0;case 1:return X(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=se(t.integerValue||t.doubleValue),r=se(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 re(t.timestampValue,e.timestampValue);case 4:return re(Yt(t),Yt(e));case 5:return X(t.stringValue,e.stringValue);case 6:return function(t,e){var n=ae(t),r=ae(e);return n.L(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=X(n[i],r[i]);if(0!==o)return o}return X(n.length,r.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=X(se(t.latitude),se(e.latitude));return 0!==n?n:X(se(t.longitude),se(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=ne(n[i],r[i]);if(o)return o}return X(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=X(r[s],o[s]);if(0!==a)return a;var u=ne(n[r[s]],i[o[s]]);if(0!==u)return u}return X(r.length,o.length)}(t.mapValue,e.mapValue);default:throw v()}}function re(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return X(t,e);var n=oe(t),r=oe(e),i=X(n.seconds,r.seconds);return 0!==i?i:X(n.nanos,r.nanos)}function ie(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=oe(t);return"time("+e.seconds+","+e.nanos+")"}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?ae(e.bytesValue).toBase64():"referenceValue"in e?j.C(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):v();var n}(t)}function oe(t){if(b(!!t),"string"==typeof t){var e=0,n=Jt.exec(t);if(b(!!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:se(t.seconds),nanos:se(t.nanos)}}function se(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function ae(t){return"string"==typeof t?Z.fromBase64String(t):Z.fromUint8Array(t)}function ue(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.R()}}function ce(t){return!!t&&"integerValue"in t}function le(t){return!!t&&"arrayValue"in t}function he(t){return!!t&&"nullValue"in t}function fe(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function de(t){return!!t&&"mapValue"in t}var pe={asc:"ASCENDING",desc:"DESCENDING"},me={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},ge=function(t,e){this.U=t,this.Qe=e};function ye(t){return{integerValue:""+t}}function ve(t,e){if(t.Qe){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:lt(e)?"-0":e}}function be(t,e){return ht(e)?ye(e):ve(t,e)}function _e(t,e){return t.Qe?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function we(t,e){return t.Qe?e.toBase64():e.toUint8Array()}function Ee(t,e){return _e(t,e.Z())}function Oe(t){return b(!!t),ut.J(function(t){var e=oe(t);return new at(e.seconds,e.nanos)}(t))}function Se(t,e){return function(t){return new x(["projects",t.projectId,"databases",t.database])}(t).child("documents").child(e).R()}function xe(t){var e=x.g(t);return b(Ge(e)),e}function Ce(t,e){return Se(t.U,e.path)}function Te(t,e){var n=xe(e);return b(n.get(1)===t.U.projectId),b(!n.get(3)&&!t.U.database||n.get(3)===t.U.database),new j(Ie(n))}function je(t,e){return Se(t.U,e)}function Ae(t){var e=xe(t);return 4===e.length?x.P():Ie(e)}function ke(t){return new x(["projects",t.U.projectId,"databases",t.U.database]).R()}function Ie(t){return b(t.length>4&&"documents"===t.get(4)),t.u(5)}function De(t,e,n){return{name:Ce(t,e),fields:n.proto.mapValue.fields}}function Re(t,e){var n;if(e instanceof yn)n={update:De(t,e.key,e.value)};else if(e instanceof On)n={delete:Ce(t,e.key)};else if(e instanceof vn)n={update:De(t,e.key,e.data),updateMask:Qe(e.We)};else if(e instanceof _n)n={transform:{document:Ce(t,e.key),fieldTransforms:e.fieldTransforms.map((function(t){return function(t,e){var n=e.transform;if(n instanceof Ye)return{fieldPath:e.field.R(),setToServerValue:"REQUEST_TIME"};if(n instanceof Je)return{fieldPath:e.field.R(),appendMissingElements:{values:n.elements}};if(n instanceof tn)return{fieldPath:e.field.R(),removeAllFromArray:{values:n.elements}};if(n instanceof nn)return{fieldPath:e.field.R(),increment:n.je};
1throw v()}(0,t)}))}};else{if(!(e instanceof Sn))return v();n={verify:Ce(t,e.key)}}return e.Ge.Ke||(n.currentDocument=function(t,e){return void 0!==e.updateTime?{updateTime:Ee(t,e.updateTime)}:void 0!==e.exists?{exists:e.exists}:v()}(t,e.Ge)),n}function Pe(t,e){var n=e.currentDocument?function(t){return void 0!==t.updateTime?cn.updateTime(Oe(t.updateTime)):void 0!==t.exists?cn.exists(t.exists):cn.ze()}(e.currentDocument):cn.ze();if(e.update){var r=Te(t,e.update.name),i=new xn({mapValue:{fields:e.update.fields}});if(e.updateMask){var o=function(t){return new sn((t.fieldPaths||[]).map((function(t){return T.S(t)})))}(e.updateMask);return new vn(r,i,o,n)}return new yn(r,i,n)}if(e.delete){var s=Te(t,e.delete);return new On(s,n)}if(e.transform){var a=Te(t,e.transform.document),u=e.transform.fieldTransforms.map((function(e){return function(t,e){var n=null;"setToServerValue"in e?(b("REQUEST_TIME"===e.setToServerValue),n=new Ye):"appendMissingElements"in e?n=new Je(e.appendMissingElements.values||[]):"removeAllFromArray"in e?n=new tn(e.removeAllFromArray.values||[]):"increment"in e?n=new nn(t,e.increment):v();var r=T.S(e.fieldPath);return new an(r,n)}(t,e)}));return b(!0===n.exists),new _n(a,u)}if(e.verify){var c=Te(t,e.verify);return new Sn(c,n)}return v()}function Fe(t,e){return{documents:[je(t,e.path)]}}function Ne(t,e){var n={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(n.parent=je(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=je(t,r.h()),n.structuredQuery.from=[{collectionId:r._()}]);var i=function(t){if(0!==t.length){var e=t.map((function(t){return function(t){if("=="===t.op){if(fe(t.value))return{unaryFilter:{field:Be(t.field),op:"IS_NAN"}};if(he(t.value))return{unaryFilter:{field:Be(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(fe(t.value))return{unaryFilter:{field:Be(t.field),op:"IS_NOT_NAN"}};if(he(t.value))return{unaryFilter:{field:Be(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Be(t.field),op:Ue(t.op),value:t.value}}}(t)}));return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);i&&(n.structuredQuery.where=i);var o=function(t){if(0!==t.length)return t.map((function(t){return function(t){return{field:Be(t.field),direction:Ve(t.dir)}}(t)}))}(e.orderBy);o&&(n.structuredQuery.orderBy=o);var s=function(t,e){return t.Qe||ct(e)?e:{value:e}}(t,e.limit);return null!==s&&(n.structuredQuery.limit=s),e.startAt&&(n.structuredQuery.startAt=Le(e.startAt)),e.endAt&&(n.structuredQuery.endAt=Le(e.endAt)),n}function Le(t){return{before:t.before,values:t.position}}function Me(t){return new or(t.values||[],!!t.before)}function Ve(t){return pe[t]}function Ue(t){return me[t]}function Be(t){return{fieldPath:t.R()}}function qe(t){return T.S(t.fieldPath)}function He(t){return Xn.create(qe(t.fieldFilter.field),function(t){switch(t){case"EQUAL":return"==";case"NOT_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"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return v()}}(t.fieldFilter.op),t.fieldFilter.value)}function ze(t){switch(t.unaryFilter.op){case"IS_NAN":var e=qe(t.unaryFilter.field);return Xn.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=qe(t.unaryFilter.field);return Xn.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=qe(t.unaryFilter.field);return Xn.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=qe(t.unaryFilter.field);return Xn.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return v()}}function Qe(t){var e=[];return t.fields.forEach((function(t){return e.push(t.R())})),{fieldPaths:e}}function Ge(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}var We=function(){this.He=void 0};function $e(t,e,n){return t instanceof Ye?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}}(n,e):t instanceof Je?Ze(t,e):t instanceof tn?en(t,e):function(t,e){var n=Xe(t,e),r=rn(n)+rn(t.je);return ce(n)&&ce(t.je)?ye(r):ve(t.serializer,r)}(t,e)}function Ke(t,e,n){return t instanceof Je?Ze(t,e):t instanceof tn?en(t,e):n}function Xe(t,e){return t instanceof nn?ce(n=e)||function(t){return!!t&&"doubleValue"in t}(n)?e:{integerValue:0}:null;var n}var Ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(We),Je=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return r.__extends(e,t),e}(We);function Ze(t,e){for(var n=on(e),r=function(t){n.some((function(e){return te(e,t)}))||n.push(t)},i=0,o=t.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var tn=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return r.__extends(e,t),e}(We);function en(t,e){for(var n=on(e),r=function(t){n=n.filter((function(e){return!te(e,t)}))},i=0,o=t.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var nn=function(t){function e(e,n){var r=this;
1return(r=t.call(this)||this).serializer=e,r.je=n,r}return r.__extends(e,t),e}(We);function rn(t){return se(t.integerValue||t.doubleValue)}function on(t){return le(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}var sn=function(){function t(t){this.fields=t,t.sort(T.i)}return t.prototype.Ye=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].T(t))return!0;return!1},t.prototype.isEqual=function(t){return Y(this.fields,t.fields,(function(t,e){return t.isEqual(e)}))},t}(),an=function(t,e){this.field=t,this.transform=e},un=function(t,e){this.version=t,this.transformResults=e},cn=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.ze=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,"Ke",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}();function ln(t,e){return void 0!==t.updateTime?e instanceof An&&e.version.isEqual(t.updateTime):void 0===t.exists||t.exists===e instanceof An}var hn=function(){};function fn(t,e,n){return t instanceof yn?function(t,e,n){return new An(t.key,n.version,t.value,{hasCommittedMutations:!0})}(t,0,n):t instanceof vn?function(t,e,n){if(!ln(t.Ge,e))return new In(t.key,n.version);var r=bn(t,e);return new An(t.key,n.version,r,{hasCommittedMutations:!0})}(t,e,n):t instanceof _n?function(t,e,n){if(b(null!=n.transformResults),!ln(t.Ge,e))return new In(t.key,n.version);var r=wn(0,e),i=function(t,e,n){var r=[];b(t.length===n.length);for(var i=0;i<n.length;i++){var o=t[i],s=o.transform,a=null;e instanceof An&&(a=e.field(o.field)),r.push(Ke(s,a,n[i]))}return r}(t.fieldTransforms,e,n.transformResults),o=n.version,s=En(t,r.data(),i);return new An(t.key,o,s,{hasCommittedMutations:!0})}(t,e,n):function(t,e,n){return new kn(t.key,n.version,{hasCommittedMutations:!0})}(t,0,n)}function dn(t,e,n,r){return t instanceof yn?function(t,e){if(!ln(t.Ge,e))return e;var n=gn(e);return new An(t.key,n,t.value,{Je:!0})}(t,e):t instanceof vn?function(t,e){if(!ln(t.Ge,e))return e;var n=gn(e),r=bn(t,e);return new An(t.key,n,r,{Je:!0})}(t,e):t instanceof _n?function(t,e,n,r){if(!ln(t.Ge,e))return e;var i=wn(0,e),o=function(t,e,n,r){for(var i=[],o=0,s=t;o<s.length;o++){var a=s[o],u=a.transform,c=null;n instanceof An&&(c=n.field(a.field)),null===c&&r instanceof An&&(c=r.field(a.field)),i.push($e(u,c,e))}return i}(t.fieldTransforms,n,e,r),s=En(t,i.data(),o);return new An(t.key,i.version,s,{Je:!0})}(t,e,r,n):function(t,e){return ln(t.Ge,e)?new kn(t.key,ut.min()):e}(t,e)}function pn(t,e){return t instanceof _n?function(t,e){for(var n=null,r=0,i=t.fieldTransforms;r<i.length;r++){var o=i[r],s=e instanceof An?e.field(o.field):void 0,a=Xe(o.transform,s||null);null!=a&&(n=null==n?(new Cn).set(o.field,a):n.set(o.field,a))}return n?n.Xe():null}(t,e):null}function mn(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.Ge.isEqual(e.Ge)&&(0===t.type?t.value.isEqual(e.value):1===t.type?t.data.isEqual(e.data)&&t.We.isEqual(e.We):2!==t.type||Y(t.fieldTransforms,t.fieldTransforms,(function(t,e){return function(t,e){return t.field.isEqual(e.field)&&function(t,e){return t instanceof Je&&e instanceof Je||t instanceof tn&&e instanceof tn?Y(t.elements,e.elements,te):t instanceof nn&&e instanceof nn?te(t.je,e.je):t instanceof Ye&&e instanceof Ye}(t.transform,e.transform)}(t,e)})))}function gn(t){return t instanceof An?t.version:ut.min()}var yn=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).key=e,i.value=n,i.Ge=r,i.type=0,i}return r.__extends(e,t),e}(hn),vn=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this)||this).key=e,o.data=n,o.We=r,o.Ge=i,o.type=1,o}return r.__extends(e,t),e}(hn);function bn(t,e){return function(t,e){var n=new Cn(e);return t.We.fields.forEach((function(e){if(!e.m()){var r=t.data.field(e);null!==r?n.set(e,r):n.delete(e)}})),n.Xe()}(t,e instanceof An?e.data():xn.empty())}var _n=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.fieldTransforms=n,r.type=2,r.Ge=cn.exists(!0),r}return r.__extends(e,t),e}(hn);function wn(t,e){return e}function En(t,e,n){for(var r=new Cn(e),i=0;i<t.fieldTransforms.length;i++)r.set(t.fieldTransforms[i].field,n[i]);return r.Xe()}var On=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Ge=n,r.type=3,r}return r.__extends(e,t),e}(hn),Sn=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Ge=n,r.type=4,r}return r.__extends(e,t),e}(hn),xn=function(){function t(t){this.proto=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(t){if(t.m())return this.proto;for(var e=this.proto,n=0;n<t.length-1;++n){if(!e.mapValue.fields)return null;if(!de(e=e.mapValue.fields[t.get(n)]))return null}return(e=(e.mapValue.fields||{})[t._()])||null},t.prototype.isEqual=function(t){return te(this.proto,t.proto)},t}(),Cn=function(){function t(t){void 0===t&&(t=xn.empty()),this.Ze=t,this.tn=new Map}return t.prototype.set=function(t,e){return this.en(t,e),this}
1,t.prototype.delete=function(t){return this.en(t,null),this},t.prototype.en=function(t,e){for(var n=this.tn,r=0;r<t.length-1;++r){var i=t.get(r),o=n.get(i);o instanceof Map?n=o:o&&10===Zt(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._(),e)},t.prototype.Xe=function(){var t=this.nn(T.P(),this.tn);return null!=t?new xn(t):this.Ze},t.prototype.nn=function(t,e){var n=this,r=!1,i=this.Ze.field(t),o=de(i)?Object.assign({},i.mapValue.fields):{};return e.forEach((function(e,i){if(e instanceof Map){var s=n.nn(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 Tn(t){var e=[];return E(t.fields||{},(function(t,n){var r=new T([t]);if(de(n)){var i=Tn(n.mapValue).fields;if(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 sn(e)}var jn=function(t,e){this.key=t,this.version=e},An=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this,e,n)||this).sn=r,o.Je=!!i.Je,o.hasCommittedMutations=!!i.hasCommittedMutations,o}return r.__extends(e,t),e.prototype.field=function(t){return this.sn.field(t)},e.prototype.data=function(){return this.sn},e.prototype.rn=function(){return this.sn.proto},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.Je===t.Je&&this.hasCommittedMutations===t.hasCommittedMutations&&this.sn.isEqual(t.sn)},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.sn.toString()+", {hasLocalMutations: "+this.Je+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.Je||this.hasCommittedMutations},enumerable:!1,configurable:!0}),e}(jn),kn=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n)||this).hasCommittedMutations=!(!r||!r.hasCommittedMutations),i}return r.__extends(e,t),e.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!1,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}(jn),In=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(jn),Dn=function(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.on=n,this.filters=r,this.limit=i,this.an=o,this.startAt=s,this.endAt=a,this.cn=null,this.un=null};function Rn(t,e,n,r,i,o,s,a){return new Dn(t,e,n,r,i,o,s,a)}function Pn(t){return new Dn(t)}function Fn(t){return!ct(t.limit)&&"F"===t.an}function Nn(t){return!ct(t.limit)&&"L"===t.an}function Ln(t){return t.on.length>0?t.on[0].field:null}function Mn(t){for(var e=0,n=t.filters;e<n.length;e++){var r=n[e];if(r.hn())return r.field}return null}function Vn(t){return null!==t.collectionGroup}function Un(t){var e=_(t);if(null===e.cn){e.cn=[];var n=Mn(e),r=Ln(e);if(null!==n&&null===r)n.p()||e.cn.push(new cr(n)),e.cn.push(new cr(T.v(),"asc"));else{for(var i=!1,o=0,s=e.on;o<s.length;o++){var a=s[o];e.cn.push(a),a.field.p()&&(i=!0)}if(!i){var u=e.on.length>0?e.on[e.on.length-1].dir:"asc";e.cn.push(new cr(T.v(),u))}}}return e.cn}function Bn(t){var e=_(t);if(!e.un)if("F"===e.an)e.un=dt(e.path,e.collectionGroup,Un(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],r=0,i=Un(e);r<i.length;r++){var o=i[r];n.push(new cr(o.field,"desc"===o.dir?"asc":"desc"))}var s=e.endAt?new or(e.endAt.position,!e.endAt.before):null,a=e.startAt?new or(e.startAt.position,!e.startAt.before):null;e.un=dt(e.path,e.collectionGroup,n,e.filters,e.limit,s,a)}return e.un}function qn(t,e,n){return new Dn(t.path,t.collectionGroup,t.on.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function Hn(t,e){return new Dn(t.path,t.collectionGroup,t.on.slice(),t.filters.slice(),t.limit,t.an,e,t.endAt)}function zn(t,e){return new Dn(t.path,t.collectionGroup,t.on.slice(),t.filters.slice(),t.limit,t.an,t.startAt,e)}function Qn(t,e){return mt(Bn(t),Bn(e))&&t.an===e.an}function Gn(t){return pt(Bn(t))+"|lt:"+t.an}function Wn(t){return"Query(target="+function(t){var e=t.path.R();return null!==t.collectionGroup&&(e+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(e+=", filters: ["+t.filters.map((function(t){return(e=t).field.R()+" "+e.op+" "+ie(e.value);var e})).join(", ")+"]"),ct(t.limit)||(e+=", limit: "+t.limit),t.orderBy.length>0&&(e+=", orderBy: ["+t.orderBy.map((function(t){return(e=t).field.R()+" ("+e.dir+")";var e})).join(", ")+"]"),t.startAt&&(e+=", startAt: "+sr(t.startAt)),t.endAt&&(e+=", endAt: "+sr(t.endAt)),"Target("+e+")"}(Bn(t))+"; limitType="+t.an+")"}function $n(t,e){return function(t,e){var n=e.key.path;return null!==t.collectionGroup?e.key.N(t.collectionGroup)&&t.path.T(n):j.F(t.path)?t.path.isEqual(n):t.path.I(n)}(t,e)&&function(t,e){for(var n=0,r=t.on;n<r.length;n++){var i=r[n];if(!i.field.p()&&null===e.field(i.field))return!1}return!0}(t,e)&&function(t,e){for(var n=0,r=t.filters;n<r.length;n++)if(!r[n].matches(e))return!1;return!0}(t,e)&&function(t,e){return!(t.startAt&&!ar(t.startAt,Un(t),e)||t.endAt&&ar(t.endAt,Un(t),e))}(t,e)}function Kn(t){return function(e,n){for(var r=!1,i=0,o=Un(t);i<o.length;i++){var s=o[i],a=lr(s,e,n);if(0!==a)return a;r=r||s.field.p()}return 0}}var Xn=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 r.__extends(e,t),e.create=function(t,n,r){if(t.p())return"in"===n||"not-in"===n?this.ln(t,
1n,r):new Yn(t,n,r);if(he(r)){if("=="!==n&&"!="!==n)throw new h(l.INVALID_ARGUMENT,"Invalid query. Null only supports '==' and '!=' comparisons.");return new e(t,n,r)}if(fe(r)){if("=="!==n&&"!="!==n)throw new h(l.INVALID_ARGUMENT,"Invalid query. NaN only supports '==' and '!=' comparisons.");return new e(t,n,r)}return"array-contains"===n?new er(t,r):"in"===n?new nr(t,r):"not-in"===n?new rr(t,r):"array-contains-any"===n?new ir(t,r):new e(t,n,r)},e.ln=function(t,e,n){return"in"===e?new Jn(t,n):new Zn(t,n)},e.prototype.matches=function(t){var e=t.field(this.field);return"!="===this.op?null!==e&&this._n(ne(e,this.value)):null!==e&&Zt(this.value)===Zt(e)&&this._n(ne(e,this.value))},e.prototype._n=function(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case"!=":return 0!==t;case">":return t>0;case">=":return t>=0;default:return v()}},e.prototype.hn=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},e}((function(){})),Yn=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=j.C(r.referenceValue),i}return r.__extends(e,t),e.prototype.matches=function(t){var e=j.i(t.key,this.key);return this._n(e)},e}(Xn),Jn=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=tr(0,n),r}return r.__extends(e,t),e.prototype.matches=function(t){return this.keys.some((function(e){return e.isEqual(t.key)}))},e}(Xn),Zn=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"not-in",n)||this).keys=tr(0,n),r}return r.__extends(e,t),e.prototype.matches=function(t){return!this.keys.some((function(e){return e.isEqual(t.key)}))},e}(Xn);function tr(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map((function(t){return j.C(t.referenceValue)}))}var er=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return le(e)&&ee(e.arrayValue,this.value)},e}(Xn),nr=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&ee(this.value.arrayValue,e)},e}(Xn),rr=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){if(ee(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var e=t.field(this.field);return null!==e&&!ee(this.value.arrayValue,e)},e}(Xn),ir=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){var e=this,n=t.field(this.field);return!(!le(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return ee(e.value.arrayValue,t)}))},e}(Xn),or=function(t,e){this.position=t,this.before=e};function sr(t){return(t.before?"b":"a")+":"+t.position.map((function(t){return ie(t)})).join(",")}function ar(t,e,n){for(var r=0,i=0;i<t.position.length;i++){var o=e[i],s=t.position[i];if(r=o.field.p()?j.i(j.C(s.referenceValue),n.key):ne(s,n.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return t.before?r<=0:r<0}function ur(t,e){if(null===t)return null===e;if(null===e)return!1;if(t.before!==e.before||t.position.length!==e.position.length)return!1;for(var n=0;n<t.position.length;n++)if(!te(t.position[n],e.position[n]))return!1;return!0}var cr=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function lr(t,e,n){var r=t.field.p()?j.i(e.key,n.key):function(t,e,n){var r=e.field(t),i=n.field(t);return null!==r&&null!==i?ne(r,i):v()}(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return v()}}function hr(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}var fr=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},dr=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.fn=t,this.dn=e,this.wn=n,this.mn=r,this.Tn=i,this.En=0,this.In=null,this.An=Date.now(),this.reset()}return t.prototype.reset=function(){this.En=0},t.prototype.Rn=function(){this.En=this.Tn},t.prototype.gn=function(t){var e=this;this.cancel();var n=Math.floor(this.En+this.Pn()),r=Math.max(0,Date.now()-this.An),i=Math.max(0,n-r);i>0&&p("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.En+" ms, delay with 
1jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.In=this.fn.yn(this.dn,i,(function(){return e.An=Date.now(),t()})),this.En*=this.mn,this.En<this.wn&&(this.En=this.wn),this.En>this.Tn&&(this.En=this.Tn)},t.prototype.Vn=function(){null!==this.In&&(this.In.pn(),this.In=null)},t.prototype.cancel=function(){null!==this.In&&(this.In.cancel(),this.In=null)},t.prototype.Pn=function(){return(Math.random()-.5)*this.En},t}(),pr=function(){function t(t){var e=this;this.bn=null,this.vn=null,this.result=void 0,this.error=void 0,this.Sn=!1,this.Dn=!1,t((function(t){e.Sn=!0,e.result=t,e.bn&&e.bn(t)}),(function(t){e.Sn=!0,e.error=t,e.vn&&e.vn(t)}))}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.Dn&&v(),this.Dn=!0,this.Sn?this.error?this.Cn(n,this.error):this.Nn(e,this.result):new t((function(t,i){r.bn=function(n){r.Nn(e,n).next(t,i)},r.vn=function(e){r.Cn(n,e).next(t,i)}}))},t.prototype.Fn=function(){var t=this;return new Promise((function(e,n){t.next(e,n)}))},t.prototype.xn=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.Nn=function(e,n){return e?this.xn((function(){return e(n)})):t.resolve(n)},t.prototype.Cn=function(e,n){return e?this.xn((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.$n=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.kn=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.$n(r)},t}(),mr=function(){function t(e,n,r){this.name=e,this.version=n,this.Mn=r,12.2===t.On(s.getUA())&&m("Firestore persistence suffers from a bug in iOS 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.delete=function(t){return p("SimpleDb","Removing database:",t),wr(window.indexedDB.deleteDatabase(t)).Fn()},t.Ln=function(){if("undefined"==typeof indexedDB)return!1;if(t.Bn())return!0;var e=s.getUA(),n=t.On(e),r=0<n&&n<10,i=t.qn(e),o=0<i&&i<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||o)},t.Bn=function(){var t;return"undefined"!=typeof process&&"YES"===(null===(t=process.env)||void 0===t?void 0:t.Un)},t.Qn=function(t,e){return t.store(e)},t.On=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.qn=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.Wn=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.db?[3,2]:(p("SimpleDb","Opening database:",this.name),e=this,[4,new Promise((function(e,r){var i=indexedDB.open(n.name,n.version);i.onsuccess=function(t){e(t.target.result)},i.onblocked=function(){r(new yr(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=function(e){var n=e.target.error;r("VersionError"===n.name?new h(l.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."):new yr(t,n))},i.onupgradeneeded=function(t){p("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',t.oldVersion),n.Mn.createOrUpgrade(t.target.result,i.transaction,t.oldVersion,n.version).next((function(){p("SimpleDb","Database upgrade to version "+n.version+" complete")}
1))}}))]);case 1:e.db=r.sent(),r.label=2;case 2:return[2,(this.jn&&(this.db.onversionchange=function(t){return n.jn(t)}),this.db)]}}))}))},t.prototype.Kn=function(t){this.jn=t,this.db&&(this.db.onversionchange=function(e){return t(e)})},t.prototype.runTransaction=function(t,e,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o,s,a,u,c;return r.__generator(this,(function(l){switch(l.label){case 0:o="readonly"===e,s=0,a=function(){var e,a,c,l,h;return r.__generator(this,(function(r){switch(r.label){case 0:++s,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,u.Wn(t)];case 2:return u.db=r.sent(),e=br.open(u.db,t,o?"readonly":"readwrite",n),a=i(e).catch((function(t){return e.abort(t),pr.reject(t)})).Fn(),c={},a.catch((function(){})),[4,e.Gn];case 3:return[2,(c.value=(r.sent(),a),c)];case 4:return p("SimpleDb","Transaction failed with error:",(l=r.sent()).message,"Retrying:",h="FirebaseError"!==l.name&&s<3),u.close(),h?[3,5]:[2,{value:Promise.reject(l)}];case 5:return[2]}}))},u=this,l.label=1;case 1:return[5,a()];case 2:if("object"==typeof(c=l.sent()))return[2,c.value];l.label=3;case 3:return[3,1];case 4:return[2]}}
1))}))},t.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},t}(),gr=function(){function t(t){this.zn=t,this.Hn=!1,this.Yn=null}return Object.defineProperty(t.prototype,"Sn",{get:function(){return this.Hn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Jn",{get:function(){return this.Yn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.zn=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.Hn=!0},t.prototype.Xn=function(t){this.Yn=t},t.prototype.delete=function(){return wr(this.zn.delete())},t}(),yr=function(t){function e(e,n){var r=this;return(r=t.call(this,l.UNAVAILABLE,"IndexedDB transaction '"+e+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return r.__extends(e,t),e}(h);function vr(t){return"IndexedDbTransactionError"===t.name}var br=function(){function t(t,e){var n=this;this.action=t,this.transaction=e,this.aborted=!1,this.Zn=new fr,this.transaction.oncomplete=function(){n.Zn.resolve()},this.transaction.onabort=function(){e.error?n.Zn.reject(new yr(t,e.error)):n.Zn.resolve()},this.transaction.onerror=function(e){var r=Or(e.target.error);n.Zn.reject(new yr(t,r))}}return t.open=function(e,n,r,i){try{return new t(n,e.transaction(i,r))}catch(e){throw new yr(n,e)}},Object.defineProperty(t.prototype,"Gn",{get:function(){return this.Zn.promise},enumerable:!1,configurable:!0}),t.prototype.abort=function(t){t&&this.Zn.reject(t),this.aborted||(p("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 _r(e)},t}(),_r=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(p("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(p("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),wr(n)},t.prototype.add=function(t){return p("SimpleDb","ADD",this.store.name,t,t),wr(this.store.add(t))},t.prototype.get=function(t){var e=this;return wr(this.store.get(t)).next((function(n){return void 0===n&&(n=null),p("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return p("SimpleDb","DELETE",this.store.name,t),wr(this.store.delete(t))},t.prototype.count=function(){return p("SimpleDb","COUNT",this.store.name),wr(this.store.count())},t.prototype.ts=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.es(n,(function(t,e){r.push(e)})).next((function(){return r}))},t.prototype.ns=function(t,e){p("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.ss=!1;var r=this.cursor(n);return this.es(r,(function(t,e,n){return n.delete()}))},t.prototype.rs=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.es(r,e)},t.prototype.os=function(t){var e=this.cursor({});return new pr((function(n,r){e.onerror=function(t){var e=Or(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.es=function(t,e){var n=[];return new pr((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 gr(i),s=e(i.primaryKey,i.value,o);if(s instanceof pr){var a=s.catch((function(t){return o.done(),pr.reject(t)}));n.push(a)}o.Sn?r():null===o.Jn?i.continue():i.continue(o.Jn)}else r()}})).next((function(){return pr.$n(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.ss?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function wr(t){return new pr((function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){var e=Or(t.target.error);n(e)}}))}var Er=!1;function Or(t){var e=mr.On(s.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 h("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 Er||(Er=!0,setTimeout((function(){throw r}),0)),r}}return t}function Sr(){return"undefined"!=typeof window?window:null}function xr(){return"undefined"!=typeof document?document:null}var Cr=function(){function t(t,e,n,r,i){this.cs=t,this.dn=e,this.us=n,this.op=r,this.hs=i,this.ls=new fr,this.then=this.ls.promise.then.bind(this.ls.promise),this.ls.promise.catch((function(t){}))}return t._s=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.fs=setTimeout((function(){return e.ds()}),t)},t.prototype.pn=function(){return this.ds()},t.prototype.cancel=function(t){null!==this.fs&&(this.clearTimeout(),this.ls.reject(new h(l.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
1)},t.prototype.ds=function(){var t=this;this.cs.ws((function(){return null!==t.fs?(t.clearTimeout(),t.op().then((function(e){return t.ls.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.fs&&(this.hs(this),clearTimeout(this.fs),this.fs=null)},t}(),Tr=function(){function t(){var t=this;this.Ts=Promise.resolve(),this.Es=[],this.Is=!1,this.As=[],this.Rs=null,this.gs=!1,this.Ps=[],this.ys=new dr(this,"async_queue_retry"),this.Vs=function(){var e=xr();e&&p("AsyncQueue","Visibility state changed to  ",e.visibilityState),t.ys.Vn()};var e=xr();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Vs)}return Object.defineProperty(t.prototype,"ps",{get:function(){return this.Is},enumerable:!1,configurable:!0}),t.prototype.ws=function(t){this.enqueue(t)},t.prototype.bs=function(t){this.vs(),this.Ss(t)},t.prototype.Ds=function(){if(!this.Is){this.Is=!0;var t=xr();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Vs)}},t.prototype.enqueue=function(t){return this.vs(),this.Is?new Promise((function(t){})):this.Ss(t)},t.prototype.Cs=function(t){var e=this;this.ws((function(){return e.Es.push(t),e.Ns()}))},t.prototype.Ns=function(){return r.__awaiter(this,void 0,void 0,(function(){var t,e=this;return r.__generator(this,(function(n){switch(n.label){case 0:if(0===this.Es.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.Es[0]()];case 2:return n.sent(),this.Es.shift(),this.ys.reset(),[3,4];case 3:if(!vr(t=n.sent()))throw t;return p("AsyncQueue","Operation failed with retryable error: "+t),[3,4];case 4:this.Es.length>0&&this.ys.gn((function(){return e.Ns()})),n.label=5;case 5:return[2]}}
1))}))},t.prototype.Ss=function(t){var e=this,n=this.Ts.then((function(){return e.gs=!0,t().catch((function(t){throw e.Rs=t,e.gs=!1,m("INTERNAL UNHANDLED ERROR: ",function(t){var e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+"\n"+t.stack),e}(t)),t})).then((function(t){return e.gs=!1,t}))}));return this.Ts=n,n},t.prototype.yn=function(t,e,n){var r=this;this.vs(),this.Ps.indexOf(t)>-1&&(e=0);var i=Cr._s(this,t,e,n,(function(t){return r.Fs(t)}));return this.As.push(i),i},t.prototype.vs=function(){this.Rs&&v()},t.prototype.xs=function(){},t.prototype.$s=function(){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(e){switch(e.label){case 0:return[4,t=this.Ts];case 1:e.sent(),e.label=2;case 2:if(t!==this.Ts)return[3,0];e.label=3;case 3:return[2]}}))}))},t.prototype.ks=function(t){for(var e=0,n=this.As;e<n.length;e++)if(n[e].dn===t)return!0;return!1},t.prototype.Ms=function(t){var e=this;return this.$s().then((function(){e.As.sort((function(t,e){return t.us-e.us}));for(var n=0,r=e.As;n<r.length;n++){var i=r[n];if(i.pn(),"all"!==t&&i.dn===t)break}return e.$s()}))},t.prototype.Os=function(t){this.Ps.push(t)},t.prototype.Fs=function(t){var e=this.As.indexOf(t);this.As.splice(e,1)},t}();function jr(t,e){if(m("AsyncQueue",e+": "+t),vr(t))return new h(l.UNAVAILABLE,e+": "+t);throw t}var Ar=function(){this.Ls=void 0,this.listeners=[]},kr=function(){this.Bs=new st((function(t){return Gn(t)}),Qn),this.onlineState="Unknown",this.qs=new Set};function Ir(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,s,a,u,c;return r.__generator(this,(function(r){switch(r.label){case 0:if(n=_(t),o=!1,(s=n.Bs.get(i=e.query))||(o=!0,s=new Ar),!o)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),a=s,[4,n.Us(i)];case 2:return a.Ls=r.sent(),[3,4];case 3:return u=r.sent(),c=jr(u,"Initialization of query '"+Wn(e.query)+"' failed"),[2,void e.onError(c)];case 4:return n.Bs.set(i,s),s.listeners.push(e),e.Qs(n.onlineState),s.Ls&&e.Ws(s.Ls)&&Fr(n),[2]}}))}))}function Dr(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,s,a;return r.__generator(this,(function(r){return n=_(t),o=!1,(s=n.Bs.get(i=e.query))&&(a=s.listeners.indexOf(e))>=0&&(s.listeners.splice(a,1),o=0===s.listeners.length),o?[2,(n.Bs.delete(i),n.js(i))]:[2]}))}))}function Rr(t,e){for(var n=_(t),r=!1,i=0,o=e;i<o.length;i++){var s=o[i],a=n.Bs.get(s.query);if(a){for(var u=0,c=a.listeners;u<c.length;u++)c[u].Ws(s)&&(r=!0);a.Ls=s}}r&&Fr(n)}function Pr(t,e,n){var r=_(t),i=r.Bs.get(e);if(i)for(var o=0,s=i.listeners;o<s.length;o++)s[o].onError(n);r.Bs.delete(e)}function Fr(t){t.qs.forEach((function(t){t.next()}))}var Nr=function(){function t(t,e,n){this.query=t,this.Ks=e,this.Gs=!1,this.zs=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.Ws=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 Ut(t.query,t.docs,t.Qt,e,t.Wt,t.fromCache,t.jt,!0)}var o=!1;return this.Gs?this.Hs(t)&&(this.Ks.next(t),o=!0):this.Ys(t,this.onlineState)&&(this.Js(t),o=!0),this.zs=t,o},t.prototype.onError=function(t){this.Ks.error(t)},t.prototype.Qs=function(t){this.onlineState=t;var e=!1;return this.zs&&!this.Gs&&this.Ys(this.zs,t)&&(this.Js(this.zs),e=!0),e},t.prototype.Ys=function(t,e){return!t.fromCache||!(this.options.Xs&&"Offline"!==e||t.docs.m()&&"Offline"!==e)},t.prototype.Hs=function(t){return t.docChanges.length>0||!!(t.jt||this.zs&&this.zs.hasPendingWrites!==t.hasPendingWrites)&&!0===this.options.includeMetadataChanges},t.prototype.Js=function(t){t=Ut.Gt(t.query,t.docs,t.Wt,t.fromCache),this.Gs=!0,this.Ks.next(t)},t}(),Lr=function(){function t(t){this.uid=t}return t.prototype.Zs=function(){return null!=this.uid},t.prototype.ti=function(){return this.Zs()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();Lr.UNAUTHENTICATED=new Lr(null),Lr.ei=new Lr("google-credentials-uid"),Lr.ni=new Lr("first-party-uid");var Mr=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.si=function(t){return n.ii(t)},this.ri=function(t){return e.oi(t)})}return t.prototype.ii=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.ri&&this.ri(t),t},t}();function Vr(t,e){return"firestore_clients_"+t+"_"+e}function Ur(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.Zs()&&(r+="_"+e.uid),r}function Br(t,e){return"firestore_targets_"+t+"_"+e}Mr.ai=-1;var qr=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.ci=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 h(i.error.code,i.error.message)),o?new t(e,n,i.state,s):(m("SharedCl
1ientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.ui=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}(),Hr=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.ci=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 h(r.error.code,r.error.message)),i?new t(e,r.state,o):(m("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.ui=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}(),zr=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.ci=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Lt(),s=0;i&&s<r.activeTargetIds.length;++s)i=ht(r.activeTargetIds[s]),o=o.add(r.activeTargetIds[s]);return i?new t(e,o):(m("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),Qr=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.ci=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):(m("SharedClientState","Failed to parse online state: "+e),null)},t}(),Gr=function(){function t(){this.activeTargetIds=Lt()}return t.prototype.hi=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.li=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.ui=function(){var t={activeTargetIds:this.activeTargetIds.A(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),Wr=function(){function t(t,e,n,r,i){this.window=t,this.fn=e,this.persistenceKey=n,this._i=r,this.fi=null,this.di=null,this.si=null,this.wi=this.mi.bind(this),this.Ti=new Ot(X),this.Ei=!1,this.Ii=[];var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.Ai=Vr(this.persistenceKey,this._i),this.Ri=function(t){return"firestore_sequence_number_"+t}(this.persistenceKey),this.Ti=this.Ti.ot(this._i,new Gr),this.gi=new RegExp("^firestore_clients_"+o+"_([^_]*)$"),this.Pi=new RegExp("^firestore_mutations_"+o+"_(\\d+)(?:_(.*))?$"),this.yi=new RegExp("^firestore_targets_"+o+"_(\\d+)$"),this.Vi=function(t){return"firestore_online_state_"+t}(this.persistenceKey),this.window.addEventListener("storage",this.wi)}return t.Ln=function(t){return!(!t||!t.localStorage)},t.prototype.start=function(){return r.__awaiter(this,void 0,void 0,(function(){var t,e,n,i,o,s,a,u,c,l,h=this;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,this.fi.pi()];case 1:for(t=r.sent(),e=0,n=t;e<n.length;e++)(i=n[e])!==this._i&&(o=this.getItem(Vr(this.persistenceKey,i)))&&(s=zr.ci(i,o))&&(this.Ti=this.Ti.ot(s.clientId,s));for(this.bi(),(a=this.storage.getItem(this.Vi))&&(u=this.vi(a))&&this.Si(u),c=0,l=this.Ii;c<l.length;c++)this.mi(l[c]);return this.Ii=[],this.window.addEventListener("unload",(function(){return h.Di()})),this.Ei=!0,[2]}}))}))},t.prototype.oi=function(t){this.setItem(this.Ri,JSON.stringify(t))},t.prototype.Ci=function(){return this.Ni(this.Ti)},t.prototype.Fi=function(t){var e=!1;return this.Ti.forEach((function(n,r){r.activeTargetIds.has(t)&&(e=!0)})),e},t.prototype.xi=function(t){this.$i(t,"pending")},t.prototype.ki=function(t,e,n){this.$i(t,e,n),this.Mi(t)},t.prototype.Oi=function(t){var e="not-current";if(this.Fi(t)){var n=this.storage.getItem(Br(this.persistenceKey,t));if(n){var r=Hr.ci(t,n);r&&(e=r.state)}}return this.Li.hi(t),this.bi(),e},t.prototype.Bi=function(t){this.Li.li(t),this.bi()},t.prototype.qi=function(t){return this.Li.activeTargetIds.has(t)},t.prototype.Ui=function(t){this.removeItem(Br(this.persistenceKey,t))},t.prototype.Qi=function(t,e,n){this.Wi(t,e,n)},t.prototype.ji=function(t,e,n){var r=this;e.forEach((function(t){r.Mi(t)}
1)),this.currentUser=t,n.forEach((function(t){r.xi(t)}))},t.prototype.Ki=function(t){this.Gi(t)},t.prototype.Di=function(){this.Ei&&(this.window.removeEventListener("storage",this.wi),this.removeItem(this.Ai),this.Ei=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return p("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){p("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){p("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.mi=function(t){var e=this,n=t;if(n.storageArea===this.storage){if(p("SharedClientState","EVENT",n.key,n.newValue),n.key===this.Ai)return void m("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.fn.Cs((function(){return r.__awaiter(e,void 0,void 0,(function(){var t,e,i,o,s,a;return r.__generator(this,(function(r){if(this.Ei){if(null!==n.key)if(this.gi.test(n.key)){if(null==n.newValue)return t=this.zi(n.key),[2,this.Hi(t,null)];if(e=this.Yi(n.key,n.newValue))return[2,this.Hi(e.clientId,e)]}else if(this.Pi.test(n.key)){if(null!==n.newValue&&(i=this.Ji(n.key,n.newValue)))return[2,this.Xi(i)]}else if(this.yi.test(n.key)){if(null!==n.newValue&&(o=this.Zi(n.key,n.newValue)))return[2,this.tr(o)]}else if(n.key===this.Vi){if(null!==n.newValue&&(s=this.vi(n.newValue)))return[2,this.Si(s)]}else n.key===this.Ri&&(a=function(t){var e=Mr.ai;if(null!=t)try{var n=JSON.parse(t);b("number"==typeof n),e=n}catch(t){m("SharedClientState","Failed to read sequence number from WebStorage",t)}return e}(n.newValue))!==Mr.ai&&this.si(a)}else this.Ii.push(n);return[2]}))}))}))}},Object.defineProperty(t.prototype,"Li",{get:function(){return this.Ti.get(this._i)},enumerable:!1,configurable:!0}),t.prototype.bi=function(){this.setItem(this.Ai,this.Li.ui())},t.prototype.$i=function(t,e,n){var r=new qr(this.currentUser,t,e,n),i=Ur(this.persistenceKey,this.currentUser,t);this.setItem(i,r.ui())},t.prototype.Mi=function(t){var e=Ur(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.Gi=function(t){this.storage.setItem(this.Vi,JSON.stringify({clientId:this._i,onlineState:t}))},t.prototype.Wi=function(t,e,n){var r=Br(this.persistenceKey,t),i=new Hr(t,e,n);this.setItem(r,i.ui())},t.prototype.zi=function(t){var e=this.gi.exec(t);return e?e[1]:null},t.prototype.Yi=function(t,e){var n=this.zi(t);return zr.ci(n,e)},t.prototype.Ji=function(t,e){var n=this.Pi.exec(t),r=Number(n[1]);return qr.ci(new Lr(void 0!==n[2]?n[2]:null),r,e)},t.prototype.Zi=function(t,e){var n=this.yi.exec(t),r=Number(n[1]);return Hr.ci(r,e)},t.prototype.vi=function(t){return Qr.ci(t)},t.prototype.Xi=function(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return t.user.uid===this.currentUser.uid?[2,this.fi.er(t.batchId,t.state,t.error)]:(p("SharedClientState","Ignoring mutation for non-active user "+t.user.uid),[2])}))}))},t.prototype.tr=function(t){return this.fi.nr(t.targetId,t.state,t.error)},t.prototype.Hi=function(t,e){var n=this,r=e?this.Ti.ot(t,e):this.Ti.remove(t),i=this.Ni(this.Ti),o=this.Ni(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.fi.sr(s,a).then((function(){n.Ti=r}))},t.prototype.Si=function(t){this.Ti.get(t.clientId)&&this.di(t.onlineState)},t.prototype.Ni=function(t){var e=Lt();return t.forEach((function(t,n){e=e.kt(n.activeTargetIds)})),e},t}(),$r=function(){function t(){this.ir=new Gr,this.rr={},this.di=null,this.si=null}return t.prototype.xi=function(t){},t.prototype.ki=function(t,e,n){},t.prototype.Oi=function(t){return this.ir.hi(t),this.rr[t]||"not-current"},t.prototype.Qi=function(t,e,n){this.rr[t]=e},t.prototype.Bi=function(t){this.ir.li(t)},t.prototype.qi=function(t){return this.ir.activeTargetIds.has(t)},t.prototype.Ui=function(t){delete this.rr[t]},t.prototype.Ci=function(){return this.ir.activeTargetIds},t.prototype.Fi=function(t){return this.ir.activeTargetIds.has(t)},t.prototype.start=function(){return this.ir=new Gr,Promise.resolve()},t.prototype.ji=function(t,e,n){},t.prototype.Ki=function(t){},t.prototype.Di=function(){},t.prototype.oi=function(t){},t}(),Kr=function(){function t(t,e,n,r){this.batchId=t,this.ar=e,this.baseMutations=n,this.mutations=r}return t.prototype.cr=function(t,e,n){for(var r=n.ur,i=0;i<this.mutations.length;i++){var o=this.mutations[i];o.key.isEqual(t)&&(e=fn(o,e,r[i]))}return e},t.prototype.hr=function(t,e){for(var n=0,r=this.baseMutations;n<r.length;n++){var i=r[n];i.key.isEqual(t)&&(e=dn(i,e,e,this.ar))}for(var o=e,s=0,a=this.mutations;s<a.length;s++){var u=a[s];u.key.isEqual(t)&&(e=dn(u,e,o,this.ar))}return e},t.prototype.lr=function(t){var e=this,n=t;return this.mutations.forEach((function(r){var i=e.hr(r.key,t.get(r.key));i&&(n=n.ot(r.key,i))})),n},t.prototype.keys=function(){return this.mutations.reduce((function(t,e){return t.add(e.key)}),Ft())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&Y(this.mutations,t.mutations,(function(t,e){return mn(t,e)}))&&Y(this.baseMutations,t.baseMutations,(function(t,e){return mn(t,e)}))},t}(),Xr=function(){function t(t,e,n,r){this.batch=t,this._r=e,this.ur=n,this.dr=r}return t.from=function(e,n,r){b(e.mutations.length===r.length);for(var i=Rt,o=e.mutations,s=0;s<o.length;s++)i=i.ot(o[s].key,r[s].version);return new t(e,n,r,i)},t}(),Yr=function(){function t(){this.wr=new st((function(t){return t.toString()}),(function(t,e){return t.isEqual(e)})),this.mr=!1}return Object.defineProperty(t.prototype,"readTime",{get:function(){return this.Tr},set:function(t){this.Tr=t}
1,enumerable:!1,configurable:!0}),t.prototype.Er=function(t,e){this.Ir(),this.readTime=e,this.wr.set(t.key,t)},t.prototype.Ar=function(t,e){this.Ir(),e&&(this.readTime=e),this.wr.set(t,null)},t.prototype.Rr=function(t,e){this.Ir();var n=this.wr.get(e);return void 0!==n?pr.resolve(n):this.gr(t,e)},t.prototype.getEntries=function(t,e){return this.Pr(t,e)},t.prototype.apply=function(t){return this.Ir(),this.mr=!0,this.yr(t)},t.prototype.Ir=function(){},t}(),Jr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Zr=function(){function t(){this.Vr=[]}return t.prototype.pr=function(t){this.Vr.push(t)},t.prototype.br=function(){this.Vr.forEach((function(t){return t()}))},t}(),ti=function(){function t(t,e,n){this.vr=t,this.Sr=e,this.Dr=n}return t.prototype.Cr=function(t,e){var n=this;return this.Sr.Nr(t,e).next((function(r){return n.Fr(t,e,r)}))},t.prototype.Fr=function(t,e,n){return this.vr.Rr(t,e).next((function(t){for(var r=0,i=n;r<i.length;r++)t=i[r].hr(e,t);return t}))},t.prototype.$r=function(t,e,n){var r=kt();return e.forEach((function(t,e){for(var i=0,o=n;i<o.length;i++)e=o[i].hr(t,e);r=r.ot(t,e)})),r},t.prototype.kr=function(t,e){var n=this;return this.vr.getEntries(t,e).next((function(e){return n.Mr(t,e)}))},t.prototype.Mr=function(t,e){var n=this;return this.Sr.Or(t,e).next((function(r){var i=n.$r(t,e,r),o=At();return i.forEach((function(t,e){e||(e=new kn(t,ut.min())),o=o.ot(t,e)})),o}))},t.prototype.Lr=function(t,e,n){return function(t){return j.F(t.path)&&null===t.collectionGroup&&0===t.filters.length}(e)?this.Br(t,e.path):Vn(e)?this.qr(t,e,n):this.Ur(t,e,n)},t.prototype.Br=function(t,e){return this.Cr(t,new j(e)).next((function(t){var e=Dt();return t instanceof An&&(e=e.ot(t.key,t)),e}))},t.prototype.qr=function(t,e,n){var r=this,i=e.collectionGroup,o=Dt();return this.Dr.Qr(t,i).next((function(s){return pr.forEach(s,(function(s){var a=function(t,e){return new Dn(e,null,t.on.slice(),t.filters.slice(),t.limit,t.an,t.startAt,t.endAt)}(e,s.child(i));return r.Ur(t,a,n).next((function(t){t.forEach((function(t,e){o=o.ot(t,e)}))}))})).next((function(){return o}))}))},t.prototype.Ur=function(t,e,n){var r,i,o=this;return this.vr.Lr(t,e,n).next((function(n){return r=n,o.Sr.Wr(t,e)})).next((function(e){return o.jr(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=dn(u,l,l,o.ar);r=h instanceof An?r.ot(c,h):r.remove(c)}}))})).next((function(){return r.forEach((function(t,n){$n(e,n)||(r=r.remove(t))})),r}))},t.prototype.jr=function(t,e,n){for(var r=Ft(),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 vn&&null===n.get(u.key)&&(r=r.add(u.key))}var c=n;return this.vr.getEntries(t,r).next((function(t){return t.forEach((function(t,e){null!==e&&e instanceof An&&(c=c.ot(t,e))})),c}))},t}(),ei=function(){function t(t,e,n,r){this.targetId=t,this.fromCache=e,this.Kr=n,this.Gr=r}return t.zr=function(e,n){for(var r=Ft(),i=Ft(),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}();function ni(t,e){var n=t[1],r=e[1],i=X(t[0],e[0]);return 0===i?X(n,r):i}var ri=function(){function t(t){this.Hr=t,this.buffer=new Ct(ni),this.Yr=0}return t.prototype.Jr=function(){return++this.Yr},t.prototype.Xr=function(t){var e=[t,this.Jr()];if(this.buffer.size<this.Hr)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();ni(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!1,configurable:!0}),t}(),ii={Zr:!1,eo:0,no:0,so:0},oi=function(){function t(t,e,n){this.io=t,this.ro=e,this.oo=n}return t.ao=function(e){return new t(e,t.co,t.uo)},t}();oi.ho=-1,oi.lo=1048576,oi._o=41943040,oi.co=10,oi.uo=1e3,oi.fo=new oi(oi._o,oi.co,oi.uo),oi.do=new oi(oi.ho,0,0);var si=function(){function t(t,e){this.wo=t,this.cs=e,this.mo=!1,this.To=null}return t.prototype.start=function(t){this.wo.params.io!==oi.ho&&this.Eo(t)},t.prototype.stop=function(){this.To&&(this.To.cancel(),this.To=null)},Object.defineProperty(t.prototype,"Ei",{get:function(){return null!==this.To}
1,enumerable:!1,configurable:!0}),t.prototype.Eo=function(t){var e=this,n=this.mo?3e5:6e4;p("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.To=this.cs.yn("lru_garbage_collection",n,(function(){return r.__awaiter(e,void 0,void 0,(function(){var e;return r.__generator(this,(function(n){switch(n.label){case 0:this.To=null,this.mo=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.Io(this.wo)];case 2:return n.sent(),[3,7];case 3:return vr(e=n.sent())?(p("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]):[3,4];case 4:return[4,Co(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.Eo(t)];case 8:return n.sent(),[2]}}))}))}))},t}(),ai=function(){function t(t,e){this.Ao=t,this.params=e}return t.prototype.Ro=function(t,e){return this.Ao.Po(t).next((function(t){return Math.floor(e/100*t)}))},t.prototype.yo=function(t,e){var n=this;if(0===e)return pr.resolve(Mr.ai);var r=new ri(e);return this.Ao.Ce(t,(function(t){return r.Xr(t.sequenceNumber)})).next((function(){return n.Ao.Vo(t,(function(t){return r.Xr(t)}))})).next((function(){return r.maxValue}))},t.prototype.po=function(t,e,n){return this.Ao.po(t,e,n)},t.prototype.bo=function(t,e){return this.Ao.bo(t,e)},t.prototype.vo=function(t,e){var n=this;return this.params.io===oi.ho?(p("LruGarbageCollector","Garbage collection skipped; disabled"),pr.resolve(ii)):this.So(t).next((function(r){return r<n.params.io?(p("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.io),ii):n.Do(t,e)}))},t.prototype.So=function(t){return this.Ao.So(t)},t.prototype.Do=function(t,e){var n,r,i,s,a,u,c,l=this,h=Date.now();return this.Ro(t,this.params.ro).next((function(e){return e>l.params.oo?(p("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.params.oo+" from "+e),r=l.params.oo):r=e,s=Date.now(),l.yo(t,r)})).next((function(r){return n=r,a=Date.now(),l.po(t,n,e)})).next((function(e){return i=e,u=Date.now(),l.bo(t,n)})).next((function(t){return c=Date.now(),d()<=o.LogLevel.DEBUG&&p("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(s-h)+"ms\n\tDetermined least recently used "+r+" in "+(a-s)+"ms\n\tRemoved "+i+" targets in "+(u-a)+"ms\n\tRemoved "+t+" documents in "+(c-u)+"ms\nTotal Duration: "+(c-h)+"ms"),pr.resolve({Zr:!0,eo:r,no:i,so:t})}))},t}();function ui(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=li(e)),e=ci(t.get(n),e);return li(e)}function ci(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 li(t){return t+"\x01\x01"}function hi(t){var e=t.length;if(b(e>=2),2===e)return b("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),x.P();for(var n=e-2,r=[],i="",o=0;o<e;){var s=t.indexOf("\x01",o);switch((s<0||s>n)&&v(),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:v()}o=s+2}return new x(r)}var fi=function(t){this.Co=t};function di(t,e){if(e.document)return function(t,e,n){var r=Te(t,e.name),i=Oe(e.updateTime),o=new xn({mapValue:{fields:e.fields}});return new An(r,i,o,{hasCommittedMutations:!!n})}(t.Co,e.document,!!e.hasCommittedMutations);if(e.noDocument){var n=j.$(e.noDocument.path),r=vi(e.noDocument.readTime);return new kn(n,r,{hasCommittedMutations:!!e.hasCommittedMutations})}if(e.unknownDocument){var i=j.$(e.unknownDocument.path),o=vi(e.unknownDocument.version);return new In(i,o)}return v()}function pi(t,e,n){var r=mi(n),i=e.key.path.h().A();if(e instanceof An){var o=function(t,e){return{name:Ce(t,e.key),fields:e.rn().mapValue.fields,updateTime:_e(t,e.version.Z())}}(t.Co,e);return new zi(null,null,o,e.hasCommittedMutations,r,i)}if(e instanceof kn){var s=e.key.path.A(),a=yi(e.version),u=e.hasCommittedMutations;return new zi(null,new qi(s,a),null,u,r,i)}if(e instanceof In){var c=e.key.path.A(),l=yi(e.version);return new zi(new Hi(c,l),null,null,!0,r,i)}return v()}function mi(t){var e=t.Z();return[e.seconds,e.nanoseconds]}function gi(t){var e=new at(t[0],t[1]);return ut.J(e)}function yi(t){var e=t.Z();return new Li(e.seconds,e.nanoseconds)}function vi(t){var e=new at(t.seconds,t.nanoseconds);return ut.J(e)}function bi(t,e){var n=(e.baseMutations||[]).map((function(e){return Pe(t.Co,e)})),r=e.mutations.map((function(e){return Pe(t.Co,e)})),i=at.fromMillis(e.localWriteTimeMs);return new Kr(e.batchId,i,n,r)}function _i(t){var e,n,r=vi(t.readTime),i=void 0!==t.lastLimboFreeSnapshotVersion?vi(t.lastLimboFreeSnapshotVersion):ut.min();return void 0!==t.query.documents?(b(1===(n=t.query).documents.length),e=Bn(Pn(Ae(n.documents[0])))):e=function(t){var e=Ae(t.parent),n=t.structuredQuery,r
1=n.from?n.from.length:0,i=null;if(r>0){b(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var s=[];n.where&&(s=function t(e){return e?void 0!==e.unaryFilter?[ze(e)]:void 0!==e.fieldFilter?[He(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return t(e)})).reduce((function(t,e){return t.concat(e)})):v():[]}(n.where));var a=[];n.orderBy&&(a=n.orderBy.map((function(t){return function(t){return new cr(qe(t.field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(t.direction))}(t)})));var u=null;n.limit&&(u=function(t){var e;return ct(e="object"==typeof t?t.value:t)?null:e}(n.limit));var c=null;n.startAt&&(c=Me(n.startAt));var l=null;return n.endAt&&(l=Me(n.endAt)),Bn(Rn(e,i,a,s,u,"F",c,l))}(t.query),new bt(e,t.targetId,0,t.lastListenSequenceNumber,r,i,Z.fromBase64String(t.resumeToken))}function wi(t,e){var n,r=yi(e.nt),i=yi(e.lastLimboFreeSnapshotVersion);n=gt(e.target)?Fe(t.Co,e.target):Ne(t.Co,e.target);var o=e.resumeToken.toBase64();return new Gi(e.targetId,pt(e.target),r,o,e.sequenceNumber,i,n)}var Ei=function(){function t(t,e,n,r){this.userId=t,this.serializer=e,this.Dr=n,this.No=r,this.Fo={}}return t.xo=function(e,n,r,i){return b(""!==e.uid),new t(e.Zs()?e.uid:"",n,r,i)},t.prototype.$o=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return xi(t).rs({index:Ui.userMutationsIndex,range:n},(function(t,n,r){e=!1,r.done()})).next((function(){return e}))},t.prototype.ko=function(t,e,n,r){var i=this,o=Ci(t),s=xi(t);return s.add({}).next((function(a){b("number"==typeof a);for(var u=new Kr(a,e,n,r),c=function(t,e,n){var r=n.baseMutations.map((function(e){return Re(t.Co,e)})),i=n.mutations.map((function(e){return Re(t.Co,e)}));return new Ui(e,n.batchId,n.ar.toMillis(),r,i)}(i.serializer,i.userId,u),l=[],h=new Ct((function(t,e){return X(t.R(),e.R())})),f=0,d=r;f<d.length;f++){var p=d[f],m=Bi.key(i.userId,p.key.path,a);h=h.add(p.key.path.h()),l.push(s.put(c)),l.push(o.put(m,Bi.PLACEHOLDER))}return h.forEach((function(e){l.push(i.Dr.Mo(t,e))})),t.pr((function(){i.Fo[a]=u.keys()})),pr.$n(l).next((function(){return u}))}))},t.prototype.Oo=function(t,e){var n=this;return xi(t).get(e).next((function(t){return t?(b(t.userId===n.userId),bi(n.serializer,t)):null}))},t.prototype.Lo=function(t,e){var n=this;return this.Fo[e]?pr.resolve(this.Fo[e]):this.Oo(t,e).next((function(t){if(t){var r=t.keys();return n.Fo[e]=r,r}return null}))},t.prototype.Bo=function(t,e){var n=this,r=e+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return xi(t).rs({index:Ui.userMutationsIndex,range:i},(function(t,e,i){e.userId===n.userId&&(b(e.batchId>=r),o=bi(n.serializer,e)),i.done()})).next((function(){return o}))},t.prototype.qo=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return xi(t).rs({index:Ui.userMutationsIndex,range:e,reverse:!0},(function(t,e,r){n=e.batchId,r.done()})).next((function(){return n}))},t.prototype.Uo=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return xi(t).ts(Ui.userMutationsIndex,n).next((function(t){return t.map((function(t){return bi(e.serializer,t)}))}))},t.prototype.Nr=function(t,e){var n=this,r=Bi.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return Ci(t).rs({range:i},(function(r,i,s){var a=r[0],u=r[2],c=hi(r[1]);if(a===n.userId&&e.path.isEqual(c))return xi(t).get(u).next((function(t){if(!t)throw v();b(t.userId===n.userId),o.push(bi(n.serializer,t))}));s.done()})).next((function(){return o}))},t.prototype.Or=function(t,e){var n=this,r=new Ct(X),i=[];return e.forEach((function(e){var o=Bi.prefixForPath(n.userId,e.path),s=IDBKeyRange.lowerBound(o),a=Ci(t).rs({range:s},(function(t,i,o){var s=t[0],a=t[2],u=hi(t[1]);s===n.userId&&e.path.isEqual(u)?r=r.add(a):o.done()}));i.push(a)})),pr.$n(i).next((function(){return n.Qo(t,r)}))},t.prototype.Wr=function(t,e){var n=this,r=e.path,i=r.length+1,o=Bi.prefixForPath(this.userId,r),s=IDBKeyRange.lowerBound(o),a=new Ct(X);return Ci(t).rs({range:s},(function(t,e,o){var s=t[0],u=t[2],c=hi(t[1]);
1s===n.userId&&r.T(c)?c.length===i&&(a=a.add(u)):o.done()})).next((function(){return n.Qo(t,a)}))},t.prototype.Qo=function(t,e){var n=this,r=[],i=[];return e.forEach((function(e){i.push(xi(t).get(e).next((function(t){if(null===t)throw v();b(t.userId===n.userId),r.push(bi(n.serializer,t))})))})),pr.$n(i).next((function(){return r}))},t.prototype.Wo=function(t,e){var n=this;return Si(t.jo,this.userId,e).next((function(r){return t.pr((function(){n.Ko(e.batchId)})),pr.forEach(r,(function(e){return n.No.Go(t,e)}))}))},t.prototype.Ko=function(t){delete this.Fo[t]},t.prototype.zo=function(t){var e=this;return this.$o(t).next((function(n){if(!n)return pr.resolve();var r=IDBKeyRange.lowerBound(Bi.prefixForUser(e.userId)),i=[];return Ci(t).rs({range:r},(function(t,n,r){if(t[0]===e.userId){var o=hi(t[1]);i.push(o)}else r.done()})).next((function(){b(0===i.length)}))}))},t.prototype.Ho=function(t,e){return Oi(t,this.userId,e)},t.prototype.Yo=function(t){var e=this;return Ti(t).get(this.userId).next((function(t){return t||new Vi(e.userId,-1,"")}))},t}();function Oi(t,e,n){var r=Bi.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),s=!1;return Ci(t).rs({range:o,ss:!0},(function(t,n,r){t[0]===e&&t[1]===i&&(s=!0),r.done()})).next((function(){return s}))}function Si(t,e,n){var r=t.store(Ui.store),i=t.store(Bi.store),o=[],s=IDBKeyRange.only(n.batchId),a=0,u=r.rs({range:s},(function(t,e,n){return a++,n.delete()}));o.push(u.next((function(){b(1===a)})));for(var c=[],l=0,h=n.mutations;l<h.length;l++){var f=h[l],d=Bi.key(e,f.key.path,n.batchId);o.push(i.delete(d)),c.push(f.key)}return pr.$n(o).next((function(){return c}))}function xi(t){return uo.Qn(t,Ui.store)}function Ci(t){return uo.Qn(t,Bi.store)}function Ti(t){return uo.Qn(t,Vi.store)}var ji=function(){function t(t,e){this.serializer=t,this.Dr=e}return t.prototype.Er=function(t,e,n){return Ii(t).put(Di(e),n)},t.prototype.Ar=function(t,e){var n=Ii(t),r=Di(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.Jo(t,r)}))},t.prototype.Rr=function(t,e){var n=this;return Ii(t).get(Di(e)).next((function(t){return n.Xo(t)}))},t.prototype.Zo=function(t,e){var n=this;return Ii(t).get(Di(e)).next((function(t){var e=n.Xo(t);return e?{ta:e,size:Ri(t)}:null}))},t.prototype.getEntries=function(t,e){var n=this,r=kt();return this.ea(t,e,(function(t,e){var i=n.Xo(e);r=r.ot(t,i)})).next((function(){return r}))},t.prototype.na=function(t,e){var n=this,r=kt(),i=new Ot(j.i);return this.ea(t,e,(function(t,e){var o=n.Xo(e);o?(r=r.ot(t,o),i=i.ot(t,Ri(e))):(r=r.ot(t,null),i=i.ot(t,0))})).next((function(){return{sa:r,ia:i}}))},t.prototype.ea=function(t,e,n){if(e.m())return pr.resolve();var r=IDBKeyRange.bound(e.first().path.A(),e.last().path.A()),i=e._t(),o=i.It();return Ii(t).rs({range:r},(function(t,e,r){for(var s=j.$(t);o&&j.i(o,s)<0;)n(o,null),o=i.It();o&&o.isEqual(s)&&(n(o,e),o=i.At()?i.It():null),o?r.Xn(o.path.A()):r.done()})).next((function(){for(;o;)n(o,null),o=i.At()?i.It():null}))},t.prototype.Lr=function(t,e,n){var r=this,i=Dt(),o=e.path.length+1,s={};if(n.isEqual(ut.min())){var a=e.path.A();s.range=IDBKeyRange.lowerBound(a)}else{var u=e.path.A(),c=mi(n);s.range=IDBKeyRange.lowerBound([u,c],!0),s.index=zi.collectionReadTimeIndex}return Ii(t).rs(s,(function(t,n,s){if(t.length===o){var a=di(r.serializer,n);e.path.T(a.key.path)?a instanceof An&&$n(e,a)&&(i=i.ot(a.key,a)):s.done()}})).next((function(){return i}))},t.prototype.ra=function(t){return new Ai(this,!!t&&t.oa)},t.prototype.aa=function(t){return this.getMetadata(t).next((function(t){return t.byteSize}))},t.prototype.getMetadata=function(t){return ki(t).get(Qi.key).next((function(t){return b(!!t),t}))},t.prototype.Jo=function(t,e){return ki(t).put(Qi.key,e)},t.prototype.Xo=function(t){if(t){var e=di(this.serializer,t);return e instanceof kn&&e.version.isEqual(ut.min())?null:e}return null},t}(),Ai=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).ca=e,r.oa=n,r.ua=new st((function(t){return t.toString()}),(function(t,e){return t.isEqual(e)})),r}return r.__extends(e,t),e.prototype.yr=function(t){var e=this,n=[],r=0,i=new Ct((function(t,e){return X(t.R(),e.R())}));return this.wr.forEach((function(o,s){var a=e.ua.get(o);if(s){var u=pi(e.ca.serializer,s,e.readTime);i=i.add(o.path.h());var c=Ri(u);r+=c-a,n.push(e.ca.Er(t,o,u))}else if(r-=a,e.oa){var l=pi(e.ca.serializer,new kn(o,ut.min()),e.readTime);n.push(e.ca.Er(t,o,l))}else n.push(e.ca.Ar(t,o))}
1)),i.forEach((function(r){n.push(e.ca.Dr.Mo(t,r))})),n.push(this.ca.updateMetadata(t,r)),pr.$n(n)},e.prototype.gr=function(t,e){var n=this;return this.ca.Zo(t,e).next((function(t){return null===t?(n.ua.set(e,0),null):(n.ua.set(e,t.size),t.ta)}))},e.prototype.Pr=function(t,e){var n=this;return this.ca.na(t,e).next((function(t){var e=t.sa;return t.ia.forEach((function(t,e){n.ua.set(t,e)})),e}))},e}(Yr);function ki(t){return uo.Qn(t,Qi.store)}function Ii(t){return uo.Qn(t,zi.store)}function Di(t){return t.path.A()}function Ri(t){var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw v();e=t.noDocument}return JSON.stringify(e).length}var Pi=function(){function t(){this.ha=new Fi}return t.prototype.Mo=function(t,e){return this.ha.add(e),pr.resolve()},t.prototype.Qr=function(t,e){return pr.resolve(this.ha.getEntries(e))},t}(),Fi=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t._(),n=t.h(),r=this.index[e]||new Ct(x.i),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.has=function(t){var e=t._(),n=t.h(),r=this.index[e];return r&&r.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new Ct(x.i)).A()},t}(),Ni=function(){function t(t){this.serializer=t}return t.prototype.createOrUpgrade=function(t,e,n,r){var i=this;b(n<r&&n>=0&&r<=10);var o=new br("createOrUpgrade",e);n<1&&r>=1&&(function(t){t.createObjectStore(Mi.store)}(t),function(t){t.createObjectStore(Vi.store,{keyPath:Vi.keyPath}),t.createObjectStore(Ui.store,{keyPath:Ui.keyPath,autoIncrement:!0}).createIndex(Ui.userMutationsIndex,Ui.userMutationsKeyPath,{unique:!0}),t.createObjectStore(Bi.store)}(t),Xi(t),function(t){t.createObjectStore(zi.store)}(t));var s=pr.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Wi.store),t.deleteObjectStore(Gi.store),t.deleteObjectStore($i.store)}(t),Xi(t)),s=s.next((function(){return function(t){var e=t.store($i.store),n=new $i(0,0,ut.min().Z(),0);return e.put($i.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(s=s.next((function(){return function(t,e){return e.store(Ui.store).ts().next((function(n){t.deleteObjectStore(Ui.store),t.createObjectStore(Ui.store,{keyPath:Ui.keyPath,autoIncrement:!0}).createIndex(Ui.userMutationsIndex,Ui.userMutationsKeyPath,{unique:!0});var r=e.store(Ui.store),i=n.map((function(t){return r.put(t)}));return pr.$n(i)}))}(t,o)}))),s=s.next((function(){!function(t){t.createObjectStore(Yi.store,{keyPath:Yi.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(Qi.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(zi.store);e.createIndex(zi.readTimeIndex,zi.readTimeIndexPath,{unique:!1}),e.createIndex(zi.collectionReadTimeIndex,zi.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(zi.store).rs((function(t,n){e+=Ri(n)})).next((function(){var n=new Qi(e);return t.store(Qi.store).put(Qi.key,n)}))},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(Vi.store),r=t.store(Ui.store);return n.ts().next((function(n){return pr.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.ts(Ui.userMutationsIndex,i).next((function(r){return pr.forEach(r,(function(r){b(r.userId===n.userId);var i=bi(e.serializer,r);return Si(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(Wi.store),n=t.store(zi.store);return t.store($i.store).get($i.key).next((function(t){var r=[];return n.rs((function(n,i){var o=new x(n),s=function(t){return[0,ui(t)]}(o);r.push(e.get(s).next((function(n){return n?pr.resolve():function(n){return e.put(new Wi(0,ui(n),t.highestListenSequenceNumber))}(o)})))})).next((function(){return pr.$n(r)}))}
1))},t.prototype.createCollectionParentIndex=function(t,e){t.createObjectStore(Ki.store,{keyPath:Ki.keyPath});var n=e.store(Ki.store),r=new Fi,i=function(t){if(r.add(t)){var e=t._(),i=t.h();return n.put({collectionId:e,parent:ui(i)})}};return e.store(zi.store).rs({ss:!0},(function(t,e){var n=new x(t);return i(n.h())})).next((function(){return e.store(Bi.store).rs({ss:!0},(function(t,e){var n=hi(t[1]);return i(n.h())}))}))},t.prototype.rewriteCanonicalIds=function(t){var e=this,n=t.store(Gi.store);return n.rs((function(t,r){var i=_i(r),o=wi(e.serializer,i);return n.put(o)}))},t}(),Li=function(t,e){this.seconds=t,this.nanoseconds=e},Mi=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Mi.store="owner",Mi.key="owner";var Vi=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Vi.store="mutationQueues",Vi.keyPath="userId";var Ui=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Ui.store="mutations",Ui.keyPath="batchId",Ui.userMutationsIndex="userMutationsIndex",Ui.userMutationsKeyPath=["userId","batchId"];var Bi=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,ui(e)]},t.key=function(t,e,n){return[t,ui(e),n]},t}();Bi.store="documentMutations",Bi.PLACEHOLDER=new Bi;var qi=function(t,e){this.path=t,this.readTime=e},Hi=function(t,e){this.path=t,this.version=e},zi=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};zi.store="remoteDocuments",zi.readTimeIndex="readTimeIndex",zi.readTimeIndexPath="readTime",zi.collectionReadTimeIndex="collectionReadTimeIndex",zi.collectionReadTimeIndexPath=["parentPath","readTime"];var Qi=function(t){this.byteSize=t};Qi.store="remoteDocumentGlobal",Qi.key="remoteDocumentGlobalKey";var Gi=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};Gi.store="targets",Gi.keyPath="targetId",Gi.queryTargetsIndexName="queryTargetsIndex",Gi.queryTargetsKeyPath=["canonicalId","targetId"];var Wi=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Wi.store="targetDocuments",Wi.keyPath=["targetId","path"],Wi.documentTargetsIndex="documentTargetsIndex",Wi.documentTargetsKeyPath=["path","targetId"];var $i=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};$i.key="targetGlobalKey",$i.store="targetGlobal";var Ki=function(t,e){this.collectionId=t,this.parent=e};function Xi(t){t.createObjectStore(Wi.store,{keyPath:Wi.keyPath}).createIndex(Wi.documentTargetsIndex,Wi.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(Gi.store,{keyPath:Gi.keyPath}).createIndex(Gi.queryTargetsIndexName,Gi.queryTargetsKeyPath,{unique:!0}),t.createObjectStore($i.store)}Ki.store="collectionParents",Ki.keyPath=["collectionId","parent"];var Yi=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};Yi.store="clientMetadata",Yi.keyPath="clientId";var Ji=r.__spreadArrays(r.__spreadArrays(r.__spreadArrays([Vi.store,Ui.store,Bi.store,zi.store,Gi.store,Mi.store,$i.store,Wi.store],[Yi.store]),[Qi.store]),[Ki.store]),Zi=function(){function t(){this.la=new Fi}return t.prototype.Mo=function(t,e){var n=this;if(!this.la.has(e)){var r=e._(),i=e.h();t.pr((function(){n.la.add(e)}));var o={collectionId:r,parent:ui(i)};return to(t).put(o)}return pr.resolve()},t.prototype.Qr=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[J(e),""],!1,!0);return to(t).ts(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(hi(o.parent))}return n}))},t}();function to(t){return uo.Qn(t,Ki.store)}var eo=function(){function t(t){this._a=t}return t.prototype.next=function(){return this._a+=2,this._a},t.fa=function(){return new t(0)},t.da=function(){return new t(-1)},t}
1(),no=function(){function t(t,e){this.No=t,this.serializer=e}return t.prototype.wa=function(t){var e=this;return this.ma(t).next((function(n){var r=new eo(n.highestTargetId);return n.highestTargetId=r.next(),e.Ta(t,n).next((function(){return n.highestTargetId}))}))},t.prototype.Ea=function(t){return this.ma(t).next((function(t){return ut.J(new at(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.Ia=function(t){return this.ma(t).next((function(t){return t.highestListenSequenceNumber}))},t.prototype.Aa=function(t,e,n){var r=this;return this.ma(t).next((function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.Z()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Ta(t,i)}))},t.prototype.Ra=function(t,e){var n=this;return this.ga(t,e).next((function(){return n.ma(t).next((function(r){return r.targetCount+=1,n.Pa(e,r),n.Ta(t,r)}))}))},t.prototype.ya=function(t,e){return this.ga(t,e)},t.prototype.Va=function(t,e){var n=this;return this.pa(t,e.targetId).next((function(){return ro(t).delete(e.targetId)})).next((function(){return n.ma(t)})).next((function(e){return b(e.targetCount>0),e.targetCount-=1,n.Ta(t,e)}))},t.prototype.po=function(t,e,n){var r=this,i=0,o=[];return ro(t).rs((function(s,a){var u=_i(a);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,o.push(r.Va(t,u)))})).next((function(){return pr.$n(o)})).next((function(){return i}))},t.prototype.Ce=function(t,e){return ro(t).rs((function(t,n){var r=_i(n);e(r)}))},t.prototype.ma=function(t){return io(t).get($i.key).next((function(t){return b(null!==t),t}))},t.prototype.Ta=function(t,e){return io(t).put($i.key,e)},t.prototype.ga=function(t,e){return ro(t).put(wi(this.serializer,e))},t.prototype.Pa=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.ba=function(t){return this.ma(t).next((function(t){return t.targetCount}))},t.prototype.va=function(t,e){var n=pt(e),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return ro(t).rs({range:r,index:Gi.queryTargetsIndexName},(function(t,n,r){var o=_i(n);mt(e,o.target)&&(i=o,r.done())})).next((function(){return i}))},t.prototype.Sa=function(t,e,n){var r=this,i=[],o=oo(t);return e.forEach((function(e){var s=ui(e.path);i.push(o.put(new Wi(n,s))),i.push(r.No.Da(t,n,e))})),pr.$n(i)},t.prototype.Ca=function(t,e,n){var r=this,i=oo(t);return pr.forEach(e,(function(e){var o=ui(e.path);return pr.$n([i.delete([n,o]),r.No.Na(t,n,e)])}))},t.prototype.pa=function(t,e){var n=oo(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.Fa=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=oo(t),i=Ft();return r.rs({range:n,ss:!0},(function(t,e,n){var r=hi(t[1]),o=new j(r);i=i.add(o)})).next((function(){return i}))},t.prototype.Ho=function(t,e){var n=ui(e.path),r=IDBKeyRange.bound([n],[J(n)],!1,!0),i=0;return oo(t).rs({index:Wi.documentTargetsIndex,ss:!0,range:r},(function(t,e,n){0!==t[0]&&(i++,n.done())})).next((function(){return i>0}))},t.prototype.Ue=function(t,e){return ro(t).get(e).next((function(t){return t?_i(t):null}))},t}();function ro(t){return uo.Qn(t,Gi.store)}function io(t){return uo.Qn(t,$i.store)}function oo(t){return uo.Qn(t,Wi.store)}var so="Failed to obtain exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",ao=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).jo=e,r.xa=n,r}return r.__extends(e,t),e}(Zr),uo=function(){function t(e,n,r,i,o,s,a,u,c,f){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.fn=o,this.window=s,this.document=a,this.$a=c,this.ka=f,this.Ma=null,this.Oa=!1,this.isPrimary=!1,this.networkEnabled=!0,this.La=null,this.inForeground=!1,this.Ba=null,this.qa=null,this.Ua=Number.NEGATIVE_INFINITY,this.Qa=function(t){return Promise.resolve()}
1,!t.Ln())throw new h(l.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.No=new ho(this,i),this.Wa=n+"main",this.serializer=new fi(u),this.ja=new mr(this.Wa,10,new Ni(this.serializer)),this.Ka=new no(this.No,this.serializer),this.Dr=new Zi,this.vr=function(t,e){return new ji(t,e)}(this.serializer,this.Dr),this.window&&this.window.localStorage?this.Ga=this.window.localStorage:(this.Ga=null,!1===f&&m("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.Qn=function(t,e){if(t instanceof ao)return mr.Qn(t.jo,e);throw v()},t.prototype.start=function(){var t=this;return this.za().then((function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new h(l.FAILED_PRECONDITION,so);return t.Ha(),t.Ya(),t.Ja(),t.runTransaction("getHighestListenSequenceNumber","readonly",(function(e){return t.Ka.Ia(e)}))})).then((function(e){t.Ma=new Mr(e,t.$a)})).then((function(){t.Oa=!0})).catch((function(e){return t.ja&&t.ja.close(),Promise.reject(e)}))},t.prototype.Xa=function(t){var e=this;return this.Qa=function(n){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){return this.Ei?[2,t(n)]:[2]}))}))},t(this.isPrimary)},t.prototype.Za=function(t){var e=this;this.ja.Kn((function(n){return r.__awaiter(e,void 0,void 0,(function(){return r.__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]}}
1))}))}))},t.prototype.tc=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.fn.ws((function(){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.Ei?[4,this.za()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.za=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(e){return lo(e).put(new Yi(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next((function(){if(t.isPrimary)return t.ec(e).next((function(e){e||(t.isPrimary=!1,t.fn.Cs((function(){return t.Qa(!1)})))}))})).next((function(){return t.nc(e)})).next((function(n){return t.isPrimary&&!n?t.sc(e).next((function(){return!1})):!!n&&t.ic(e).next((function(){return!0}))}))})).catch((function(e){if(vr(e))return p("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return p("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((function(e){t.isPrimary!==e&&t.fn.Cs((function(){return t.Qa(e)})),t.isPrimary=e}))},t.prototype.ec=function(t){var e=this;return co(t).get(Mi.key).next((function(t){return pr.resolve(e.rc(t))}))},t.prototype.oc=function(t){return lo(t).delete(this.clientId)},t.prototype.ac=function(){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i,o=this;return r.__generator(this,(function(r){switch(r.label){case 0:return!this.isPrimary||this.cc(this.Ua,18e5)?[3,2]:(this.Ua=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(e){var n=t.Qn(e,Yi.store);return n.ts().next((function(t){var e=o.uc(t,18e5),r=t.filter((function(t){return-1===e.indexOf(t)}));return pr.forEach(r,(function(t){return n.delete(t.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:if(e=r.sent(),this.Ga)for(n=0,i=e;n<i.length;n++)this.Ga.removeItem(this.hc(i[n].clientId));r.label=2;case 2:return[2]}}
1))}))},t.prototype.Ja=function(){var t=this;this.qa=this.fn.yn("client_metadata_refresh",4e3,(function(){return t.za().then((function(){return t.ac()})).then((function(){return t.Ja()}))}))},t.prototype.rc=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.nc=function(t){var e=this;return this.ka?pr.resolve(!0):co(t).get(Mi.key).next((function(n){if(null!==n&&e.cc(n.leaseTimestampMs,5e3)&&!e.lc(n.ownerId)){if(e.rc(n)&&e.networkEnabled)return!0;if(!e.rc(n)){if(!n.allowTabSynchronization)throw new h(l.FAILED_PRECONDITION,so);return!1}}return!(!e.networkEnabled||!e.inForeground)||lo(t).ts().next((function(t){return void 0===e.uc(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&&p("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t}))},t.prototype.Di=function(){return r.__awaiter(this,void 0,void 0,(function(){var t=this;return r.__generator(this,(function(e){switch(e.label){case 0:return this.Oa=!1,this._c(),this.qa&&(this.qa.cancel(),this.qa=null),this.fc(),this.dc(),[4,this.ja.runTransaction("shutdown","readwrite",[Mi.store,Yi.store],(function(e){var n=new ao(e,Mr.ai);return t.sc(n).next((function(){return t.oc(n)}))}))];case 1:return e.sent(),this.ja.close(),this.wc(),[2]}}))}))},t.prototype.uc=function(t,e){var n=this;return t.filter((function(t){return n.cc(t.updateTimeMs,e)&&!n.lc(t.clientId)}))},t.prototype.pi=function(){var t=this;return this.runTransaction("getActiveClients","readonly",(function(e){return lo(e).ts().next((function(e){return t.uc(e,18e5).map((function(t){return t.clientId}))}))}))},Object.defineProperty(t.prototype,"Ei",{get:function(){return this.Oa},enumerable:!1,configurable:!0}),t.prototype.mc=function(t){return Ei.xo(t,this.serializer,this.Dr,this.No)},t.prototype.Tc=function(){return this.Ka},t.prototype.Ec=function(){return this.vr},t.prototype.Ic=function(){return this.Dr},t.prototype.runTransaction=function(t,e,n){var r,i=this;return p("IndexedDbPersistence","Starting transaction:",t),this.ja.runTransaction(t,"readonly"===e?"readonly":"readwrite",Ji,(function(o){return r=new ao(o,i.Ma?i.Ma.next():Mr.ai),"readwrite-primary"===e?i.ec(r).next((function(t){return!!t||i.nc(r)})).next((function(e){if(!e)throw m("Failed to obtain primary lease for action '"+t+"'."),i.isPrimary=!1,i.fn.Cs((function(){return i.Qa(!1)})),new h(l.FAILED_PRECONDITION,Jr);return n(r)})).next((function(t){return i.ic(r).next((function(){return t}))})):i.Ac(r).next((function(){return n(r)}))})).then((function(t){return r.br(),t}))},t.prototype.Ac=function(t){var e=this;return co(t).get(Mi.key).next((function(t){if(null!==t&&e.cc(t.leaseTimestampMs,5e3)&&!e.lc(t.ownerId)&&!e.rc(t)&&!(e.ka||e.allowTabSynchronization&&t.allowTabSynchronization))throw new h(l.FAILED_PRECONDITION,so)}))},t.prototype.ic=function(t){var e=new Mi(this.clientId,this.allowTabSynchronization,Date.now());return co(t).put(Mi.key,e)},t.Ln=function(){return mr.Ln()},t.prototype.sc=function(t){var e=this,n=co(t);return n.get(Mi.key).next((function(t){return e.rc(t)?(p("IndexedDbPersistence","Releasing primary lease."),n.delete(Mi.key)):pr.resolve()}))},t.prototype.cc=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(m("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.Ha=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Ba=function(){t.fn.ws((function(){return t.inForeground="visible"===t.document.visibilityState,t.za()}))},this.document.addEventListener("visibilitychange",this.Ba),this.inForeground="visible"===this.document.visibilityState)},t.prototype.fc=function(){this.Ba&&(this.document.removeEventListener("visibilitychange",this.Ba),this.Ba=null)},t.prototype.Ya=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.La=function(){e._c(),e.fn.ws((function(){return e.Di()}))},this.window.addEventListener("unload",this.La))},t.prototype.dc=function(){this.La&&(this.window.removeEventListener("unload",this.La),this.La=null)},t.prototype.lc=function(t){var e;try{var n=null!==(null===(e=this.Ga)||void 0===e?void 0:e.getItem(this.hc(t)));return p("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(t){return m("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype._c=function(){if(this.Ga)try{this.Ga.setItem(this.hc(this.clientId),String(Date.now()))}catch(r){m("Failed to set zombie client id.",r)}},t.prototype.wc=function(){if(this.Ga)try{this.Ga.removeItem(this.hc(this.clientId))}catch(r){}},t.prototype.hc=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function co(t){return uo.Qn(t,Mi.store)}function lo(t){return uo.Qn(t,Yi.store)}var ho=function(){function t(t,e){this.db=t,this.wo=new ai(this,e)}return t.prototype.Po=function(t){var e=this.Rc(t);return this.db.Tc().ba(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype.Rc=function(t){var e=0;return this.Vo(t,(function(t){e++})).next((function(){return e}))},t.prototype.Ce=function(t,e){return this.db.Tc().Ce(t,e)},t.prototype.Vo=function(t,e){return this.gc(t,(function(t,n){return e(n)}))},t.prototype.Da=function(t,e,n){return fo(t,n)},t.prototype.Na=function(t,e,n){return fo(t,n)},t.prototype.po=function(t,e,n){return this.db.Tc().po(t,e,n)},t.prototype.Go=function(t,e){return fo(t,e)},t.prototype.Pc=function(t,e){return function(t,e){var n=!1;return Ti(t).os((function(r){return Oi(t,r,e).next((function(t){return t&&(n=!0),pr.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.bo=function(t,e){var n=this,r=this.db.Ec().ra(),i=[],o=0;return this.gc(t,(function(s,a){if(a<=e){var u=n.Pc(t,s).next((function(e){if(!e)return o++,r.Rr(t,s).next((function(){return r.Ar(s),oo(t).delete([0,ui(s.path)])}))}));i.push(u)}})).next((function(){return pr.$n(i)})).next((function(){return r.apply(t)})).next((function(){return o}
1))},t.prototype.removeTarget=function(t,e){var n=e.st(t.xa);return this.db.Tc().ya(t,n)},t.prototype.yc=function(t,e){return fo(t,e)},t.prototype.gc=function(t,e){var n,r=oo(t),i=Mr.ai;return r.rs({index:Wi.documentTargetsIndex},(function(t,r){var o=r.path,s=r.sequenceNumber;0===t[0]?(i!==Mr.ai&&e(new j(hi(n)),i),i=s,n=o):i=Mr.ai})).next((function(){i!==Mr.ai&&e(new j(hi(n)),i)}))},t.prototype.So=function(t){return this.db.Ec().aa(t)},t}();function fo(t,e){return oo(t).put(function(t,e){return new Wi(0,ui(t.path),e)}(e,t.xa))}function po(t,e){var n=t.projectId;return t.j||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var mo=function(){function t(t,e,n){this.persistence=t,this.Vc=e,this.bc=new Ot(X),this.vc=new st((function(t){return pt(t)}),mt),this.Sc=ut.min(),this.Sr=t.mc(n),this.Dc=t.Ec(),this.Ka=t.Tc(),this.Cc=new ti(this.Dc,this.Sr,this.persistence.Ic()),this.Vc.Nc(this.Cc)}return t.prototype.Io=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.vo(n,e.bc)}))},t}();function go(t,e){var n=_(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(t){var r=e.batch.keys(),i=n.Dc.ra({oa:!0});return function(t,e,n,r){var i=n.batch,o=i.keys(),s=pr.resolve();return o.forEach((function(t){s=s.next((function(){return r.Rr(e,t)})).next((function(e){var o=e,s=n.dr.get(t);b(null!==s),(!o||o.version.L(s)<0)&&(o=i.cr(t,o,n))&&r.Er(o,n._r)}))})),s.next((function(){return t.Sr.Wo(e,i)}))}(n,t,e,i).next((function(){return i.apply(t)})).next((function(){return n.Sr.zo(t)})).next((function(){return n.Cc.kr(t,r)}))}))}function yo(t){var e=_(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",(function(t){return e.Ka.Ea(t)}))}function vo(t,e){var n=_(t),r=e.nt,i=n.bc;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(function(t){var o=n.Dc.ra({oa:!0});i=n.bc;var s=[];e.zt.forEach((function(e,o){var a=i.get(o);if(a){s.push(n.Ka.Ca(t,e.se,o).next((function(){return n.Ka.Sa(t,e.ee,o)})));var u=e.resumeToken;if(u.O()>0){var c=a.it(u,r).st(t.xa);i=i.ot(o,c),function(t,e,n){return b(e.resumeToken.O()>0),0===t.resumeToken.O()||e.nt.X()-t.nt.X()>=3e8||n.ee.size+n.ne.size+n.se.size>0}(a,c,e)&&s.push(n.Ka.ya(t,c))}}}));var a=At(),u=Ft();if(e.Yt.forEach((function(t,e){u=u.add(t)})),s.push(o.getEntries(t,u).next((function(i){e.Yt.forEach((function(u,c){var l=i.get(u);c instanceof kn&&c.version.isEqual(ut.min())?(o.Ar(u,r),a=a.ot(u,c)):null==l||c.version.L(l.version)>0||0===c.version.L(l.version)&&l.hasPendingWrites?(o.Er(c,r),a=a.ot(u,c)):p("LocalStore","Ignoring outdated watch update for ",u,". Current version:",l.version," Watch version:",c.version),e.Jt.has(u)&&s.push(n.persistence.No.yc(t,u))}))}))),!r.isEqual(ut.min())){var c=n.Ka.Ea(t).next((function(e){return n.Ka.Aa(t,t.xa,r)}));s.push(c)}return pr.$n(s).next((function(){return o.apply(t)})).next((function(){return n.Cc.Mr(t,a)}))})).then((function(t){return n.bc=i,t}))}function bo(t,e){var n=_(t);return n.persistence.runTransaction("Get next mutation batch","readonly",(function(t){return void 0===e&&(e=-1),n.Sr.Bo(t,e)}))}function _o(t,e){var n=_(t);return n.persistence.runTransaction("Allocate target","readwrite",(function(t){var r;return n.Ka.va(t,e).next((function(i){return i?pr.resolve(r=i):n.Ka.wa(t).next((function(i){return r=new bt(e,i,0,t.xa),n.Ka.Ra(t,r).next((function(){return r}))}))}))})).then((function(t){var r=n.bc.get(t.targetId);return(null===r||t.nt.L(r.nt)>0)&&(n.bc=n.bc.ot(t.targetId,t),n.vc.set(e,t.targetId)),t}))}function wo(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,s,a;return r.__generator(this,(function(r){switch(r.label){case 0:i=_(t),o=i.bc.get(e),s=n?"readwrite":"readwrite-primary",r.label=1;case 1:return r.trys.push([1,4,,5]),n?[3,3]:[4,i.persistence.runTransaction("Release target",s,(function(t){return i.persistence.No.removeTarget(t,o)}))];case 2:r.sent(),r.label=3;case 3:return[3,5];case 4:if(!vr(a=r.sent()))throw a;return p("LocalStore","Failed to update sequence numbers for target "+e+": "+a),[3,5];case 5:return i.bc=i.bc.remove(e),i.vc.delete(o.target),[2]}}))}))}function Eo(t,e,n){var r=_(t),i=ut.min(),o=Ft();
1return r.persistence.runTransaction("Execute query","readonly",(function(t){return function(t,e,n){var r=_(t),i=r.vc.get(n);return void 0!==i?pr.resolve(r.bc.get(i)):r.Ka.va(e,n)}(r,t,Bn(e)).next((function(e){if(e)return i=e.lastLimboFreeSnapshotVersion,r.Ka.Fa(t,e.targetId).next((function(t){o=t}))})).next((function(){return r.Vc.Lr(t,e,n?i:ut.min(),n?o:Ft())})).next((function(t){return{documents:t,Fc:o}}))}))}function Oo(t,e){var n=_(t),r=_(n.Ka),i=n.bc.get(e);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(function(t){return r.Ue(t,e).next((function(t){return t?t.target:null}))}))}function So(t){var e=_(t);return e.persistence.runTransaction("Get new document changes","readonly",(function(t){return function(t,e,n){var r=_(t),i=At(),o=mi(n),s=Ii(e),a=IDBKeyRange.lowerBound(o,!0);return s.rs({index:zi.readTimeIndex,range:a},(function(t,e){var n=di(r.serializer,e);i=i.ot(n.key,n),o=e.readTime})).next((function(){return{xc:i,readTime:gi(o)}}))}(e.Dc,t,e.Sc)})).then((function(t){var n=t.xc;return e.Sc=t.readTime,n}))}function xo(t){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(n){return[2,(e=_(t)).persistence.runTransaction("Synchronize last document change read time","readonly",(function(t){return function(t){var e=Ii(t),n=ut.min();return e.rs({index:zi.readTimeIndex,reverse:!0},(function(t,e,r){e.readTime&&(n=gi(e.readTime)),r.done()})).next((function(){return n}))}(t)})).then((function(t){e.Sc=t}))]}))}))}function Co(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){if(t.code!==l.FAILED_PRECONDITION||t.message!==Jr)throw t;return p("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}var To=function(){function t(){this.$c=new Ct(jo.kc),this.Mc=new Ct(jo.Oc)}return t.prototype.m=function(){return this.$c.m()},t.prototype.Da=function(t,e){var n=new jo(t,e);this.$c=this.$c.add(n),this.Mc=this.Mc.add(n)},t.prototype.Lc=function(t,e){var n=this;t.forEach((function(t){return n.Da(t,e)}))},t.prototype.Na=function(t,e){this.Bc(new jo(t,e))},t.prototype.qc=function(t,e){var n=this;t.forEach((function(t){return n.Na(t,e)}))},t.prototype.Uc=function(t){var e=this,n=new j(new x([])),r=new jo(n,t),i=new jo(n,t+1),o=[];return this.Mc.Ft([r,i],(function(t){e.Bc(t),o.push(t.key)})),o},t.prototype.Qc=function(){var t=this;this.$c.forEach((function(e){return t.Bc(e)}))},t.prototype.Bc=function(t){this.$c=this.$c.delete(t),this.Mc=this.Mc.delete(t)},t.prototype.Wc=function(t){var e=new j(new x([])),n=new jo(e,t),r=new jo(e,t+1),i=Ft();return this.Mc.Ft([n,r],(function(t){i=i.add(t.key)})),i},t.prototype.Ho=function(t){var e=new jo(t,0),n=this.$c.$t(e);return null!==n&&t.isEqual(n.key)},t}(),jo=function(){function t(t,e){this.key=t,this.jc=e}return t.kc=function(t,e){return j.i(t.key,e.key)||X(t.jc,e.jc)},t.Oc=function(t,e){return X(t.jc,e.jc)||j.i(t.key,e.key)},t}(),Ao=function(t,e){this.user=e,this.type="OAuth",this.Kc={},this.Kc.Authorization="Bearer "+t},ko=function(){function t(){this.Gc=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.zc=function(){},t.prototype.Hc=function(t){this.Gc=t,t(Lr.UNAUTHENTICATED)},t.prototype.Yc=function(){this.Gc=null},t}(),Io=function(){function t(t){var e=this;this.Jc=null,this.currentUser=Lr.UNAUTHENTICATED,this.Xc=!1,this.Zc=0,this.Gc=null,this.forceRefresh=!1,this.Jc=function(){e.Zc++,e.currentUser=e.tu(),e.Xc=!0,e.Gc&&e.Gc(e.currentUser)},this.Zc=0,this.auth=t.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.Jc):(this.Jc(null),t.get().then((function(t){e.auth=t,e.Jc&&e.auth.addAuthTokenListener(e.Jc)}),(function(){})))}return t.prototype.getToken=function(){var t=this,e=this.Zc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return t.Zc!==e?(p("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(b("string"==typeof n.accessToken),new Ao(n.accessToken,t.currentUser)):null})):Promise.resolve(null)},t.prototype.zc=function(){this.forceRefresh=!0},t.prototype.Hc=function(t){this.Gc=t,this.Xc&&t(this.currentUser)},t.prototype.Yc=function(){this.auth&&this.auth.removeAuthTokenListener(this.Jc),this.Jc=null,this.Gc=null},t.prototype.tu=function(){var t=this.auth&&this.auth.getUid();return b(null===t||"string"==typeof t),new Lr(t)},t}(),Do=function(){function t(t,e){this.eu=t,this.nu=e,this.type="FirstParty",this.user=Lr.ni}return Object.defineProperty(t.prototype,"Kc",{get:function(){var t={"X-Goog-AuthUser":this.nu},e=this.eu.auth.getAuthHeaderValueForFirstParty([]);return e&&(t.Authorization=e),t}
1,enumerable:!1,configurable:!0}),t}(),Ro=function(){function t(t,e){this.eu=t,this.nu=e}return t.prototype.getToken=function(){return Promise.resolve(new Do(this.eu,this.nu))},t.prototype.Hc=function(t){t(Lr.ni)},t.prototype.Yc=function(){},t.prototype.zc=function(){},t}(),Po=function(){function t(t,e,n,r,i,o){this.fn=t,this.su=n,this.iu=r,this.ru=i,this.listener=o,this.state=0,this.ou=0,this.au=null,this.stream=null,this.ys=new dr(t,e)}return t.prototype.cu=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.uu=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.hu()},t.prototype.stop=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.cu()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.lu=function(){this.state=0,this.ys.reset()},t.prototype._u=function(){var t=this;this.uu()&&null===this.au&&(this.au=this.fn.yn(this.su,6e4,(function(){return t.fu()})))},t.prototype.du=function(t){this.wu(),this.stream.send(t)},t.prototype.fu=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return this.uu()?[2,this.close(0)]:[2]}))}))},t.prototype.wu=function(){this.au&&(this.au.cancel(),this.au=null)},t.prototype.close=function(t,e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){switch(n.label){case 0:return this.wu(),this.ys.cancel(),this.ou++,3!==t?this.ys.reset():e&&e.code===l.RESOURCE_EXHAUSTED?(m(e.toString()),m("Using maximum backoff delay to prevent overloading the backend."),this.ys.Rn()):e&&e.code===l.UNAUTHENTICATED&&this.ru.zc(),null!==this.stream&&(this.mu(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Tu(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.mu=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.Eu(this.ou),n=this.ou;this.ru.getToken().then((function(e){t.ou===n&&t.Iu(e)}),(function(n){e((function(){var e=new h(l.UNKNOWN,"Fetching auth token failed: "+n.message);return t.Au(e)}))}))},t.prototype.Iu=function(t){var e=this,n=this.Eu(this.ou);this.stream=this.Ru(t),this.stream.gu((function(){n((function(){return e.state=2,e.listener.gu()}))})),this.stream.Tu((function(t){n((function(){return e.Au(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.hu=function(){var t=this;this.state=4,this.ys.gn((function(){return r.__awaiter(t,void 0,void 0,(function(){return r.__generator(this,(function(t){return this.state=0,this.start(),[2]}))}))}))},t.prototype.Au=function(t){return p("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.Eu=function(t){var e=this;return function(n){e.fn.ws((function(){return e.ou===t?n():(p("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),Fo=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 r.__extends(e,t),e.prototype.Ru=function(t){return this.iu.Pu("Listen",t)},e.prototype.onMessage=function(t){this.ys.reset();var e=function(t,e){var n;if("targetChange"in e){var r=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:v()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(t,e){return t.Qe?(b(void 0===e||"string"==typeof e),Z.fromBase64String(e||"")):(b(void 0===e||e instanceof Uint8Array),Z.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),s=e.targetChange.cause,a=s&&function(t){var e=void 0===t.code?l.UNKNOWN:Et(t.code);return new h(e,t.message||"")}(s);n=new Qt(r,i,o,a||null)}else if("documentChange"in e){var u=e.documentChange,c=Te(t,u.document.name),f=Oe(u.document.updateTime),d=new xn({mapValue:{fields:u.document.fields}}),p=new An(c,f,d,{});n=new Ht(u.targetIds||[],u.removedTargetIds||[],p.key,p)}else if("documentDelete"in e){var m=e.documentDelete,g=Te(t,m.document),y=m.readTime?Oe(m.readTime):ut.min(),_=new kn(g,y);n=new Ht([],m.removedTargetIds||[],_.key,_)}else if("documentRemove"in e){var w=e.documentRemove,E=Te(t,w.document);n=new Ht([],w.removedTargetIds||[],E,null)}else{if(!("filter"in e))return v();var O=e.filter,S=new _t(O.count||0);n=new zt(O.targetId,S)}return n}(this.serializer,t),n=function(t){if(!("targetChange"in t))return ut.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?ut.min():e.readTime?Oe(e.readTime):ut.min()}(t);return this.listener.yu(e,n)},e.prototype.Vu=function(t){var e={};e.database=ke(this.serializer),e.addTarget=function(t,e){var n,r=e.target;return(n=gt(r)?{documents:Fe(t,r)}:{query:Ne(t,r)}).targetId=e.targetId,e.resumeToken.O()>0&&(n.resumeToken=we(t,e.resumeToken)),n}(this.serializer,t);var n=function(t,e){var n=function(t,e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return v()}}(0,e.et);return null==n?null:{"goog-listen-tags":n}}(0,t);n&&(e.labels=n),this.du(e)},e.prototype.pu=function(t){var e={};e.database=ke(this.serializer),e.removeTarget=t,this.du(e)},e}(Po),No=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
1=i,s.bu=!1,s}return r.__extends(e,t),Object.defineProperty(e.prototype,"vu",{get:function(){return this.bu},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.bu=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.mu=function(){this.bu&&this.Su([])},e.prototype.Ru=function(t){return this.iu.Pu("Write",t)},e.prototype.onMessage=function(t){if(b(!!t.streamToken),this.lastStreamToken=t.streamToken,this.bu){this.ys.reset();var e=function(t,e){return t&&t.length>0?(b(void 0!==e),t.map((function(t){return function(t,e){var n=Oe(t.updateTime?t.updateTime:e);n.isEqual(ut.min())&&(n=Oe(e));var r=null;return t.transformResults&&t.transformResults.length>0&&(r=t.transformResults),new un(n,r)}(t,e)}))):[]}(t.writeResults,t.commitTime),n=Oe(t.commitTime);return this.listener.Du(n,e)}return b(!t.writeResults||0===t.writeResults.length),this.bu=!0,this.listener.Cu()},e.prototype.Nu=function(){var t={};t.database=ke(this.serializer),this.du(t)},e.prototype.Su=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map((function(t){return Re(e.serializer,t)}))};this.du(n)},e}(Po),Lo=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).credentials=e,i.iu=n,i.serializer=r,i.Fu=!1,i}return r.__extends(e,t),e.prototype.xu=function(){if(this.Fu)throw new h(l.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.$u=function(t,e,n){var r=this;return this.xu(),this.credentials.getToken().then((function(i){return r.iu.$u(t,e,n,i)})).catch((function(t){throw t.code===l.UNAUTHENTICATED&&r.credentials.zc(),t}))},e.prototype.ku=function(t,e,n){var r=this;return this.xu(),this.credentials.getToken().then((function(i){return r.iu.ku(t,e,n,i)})).catch((function(t){throw t.code===l.UNAUTHENTICATED&&r.credentials.zc(),t}))},e.prototype.terminate=function(){this.Fu=!1},e}((function(){})),Mo=function(){function t(t,e){this.cs=t,this.di=e,this.state="Unknown",this.Mu=0,this.Ou=null,this.Lu=!0}return t.prototype.Bu=function(){var t=this;0===this.Mu&&(this.qu("Unknown"),this.Ou=this.cs.yn("online_state_timeout",1e4,(function(){return t.Ou=null,t.Uu("Backend didn't respond within 10 seconds."),t.qu("Offline"),Promise.resolve()})))},t.prototype.Qu=function(t){"Online"===this.state?this.qu("Unknown"):(this.Mu++,this.Mu>=1&&(this.Wu(),this.Uu("Connection failed 1 times. Most recent error: "+t.toString()),this.qu("Offline")))},t.prototype.set=function(t){this.Wu(),this.Mu=0,"Online"===t&&(this.Lu=!1),this.qu(t)}
1,t.prototype.qu=function(t){t!==this.state&&(this.state=t,this.di(t))},t.prototype.Uu=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.Lu?(m(e),this.Lu=!1):p("OnlineStateTracker",e)},t.prototype.Wu=function(){null!==this.Ou&&(this.Ou.cancel(),this.Ou=null)},t}(),Vo=function(t,e,n,i,o){var s=this;this.ju=t,this.Ku=e,this.cs=n,this.Gu={},this.zu=[],this.Hu=new Map,this.Yu=new Set,this.Ju=[],this.Xu=o,this.Xu.Zu((function(t){n.ws((function(){return r.__awaiter(s,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return Ko(this)?(p("RemoteStore","Restarting streams for network reachability change."),[4,function(t){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(n){switch(n.label){case 0:return(e=_(t)).Yu.add(4),[4,Bo(e)];case 1:return n.sent(),e.th.set("Unknown"),e.Yu.delete(4),[4,Uo(e)];case 2:return n.sent(),[2]}}))}))}(this)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
1))}))}))})),this.th=new Mo(n,i)};function Uo(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n;return r.__generator(this,(function(r){switch(r.label){case 0:if(!Ko(t))return[3,4];e=0,n=t.Ju,r.label=1;case 1:return e<n.length?[4,(0,n[e])(!0)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}}))}))}function Bo(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n;return r.__generator(this,(function(r){switch(r.label){case 0:e=0,n=t.Ju,r.label=1;case 1:return e<n.length?[4,(0,n[e])(!1)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}}))}))}function qo(t){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(n){switch(n.label){case 0:return e=_(t),p("RemoteStore","RemoteStore shutting down."),e.Yu.add(5),[4,Bo(e)];case 1:return n.sent(),e.Xu.Di(),e.th.set("Unknown"),[2]}}))}))}function Ho(t,e){var n=_(t);n.Hu.has(e.targetId)||(n.Hu.set(e.targetId,e),$o(n)?Wo(n):ls(n).uu()&&Qo(n,e))}function zo(t,e){var n=_(t),r=ls(n);n.Hu.delete(e),r.uu()&&Go(n,e),0===n.Hu.size&&(r.uu()?r._u():Ko(n)&&n.th.set("Unknown"))}function Qo(t,e){t.eh.Ie(e.targetId),ls(t).Vu(e)}function Go(t,e){t.eh.Ie(e),ls(t).pu(e)}function Wo(t){t.eh=new Wt({qe:function(e){return t.Gu.qe(e)},Ue:function(e){return t.Hu.get(e)||null}}),ls(t).start(),t.th.Bu()}function $o(t){return Ko(t)&&!ls(t).cu()&&t.Hu.size>0}function Ko(t){return 0===_(t).Yu.size}function Xo(t){t.eh=void 0}function Yo(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return t.Hu.forEach((function(e,n){Qo(t,e)})),[2]}))}))}function Jo(t,e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return Xo(t),$o(t)?(t.th.Qu(e),Wo(t)):t.th.set("Unknown"),[2]}))}))}function Zo(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,s;return r.__generator(this,(function(a){switch(a.label){case 0:if(t.th.set("Online"),!(e instanceof Qt&&2===e.state&&e.cause))return[3,6];a.label=1;case 1:return a.trys.push([1,3,,5]),[4,function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,s;return r.__generator(this,(function(r){switch(r.label){case 0:n=e.cause,i=0,o=e.targetIds,r.label=1;case 1:return i<o.length?t.Hu.has(s=o[i])?[4,t.Gu.nh(s,n)]:[3,3]:[3,5];case 2:r.sent(),t.Hu.delete(s),t.eh.removeTarget(s),r.label=3;case 3:r.label=4;case 4:return i++,[3,1];case 5:return[2]}}
1))}))}(t,e)];case 2:return a.sent(),[3,5];case 3:return i=a.sent(),p("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),i),[4,ts(t,i)];case 4:return a.sent(),[3,5];case 5:return[3,13];case 6:if(e instanceof Ht?t.eh.be(e):e instanceof zt?t.eh.$e(e):t.eh.De(e),n.isEqual(ut.min()))return[3,13];a.label=7;case 7:return a.trys.push([7,11,,13]),[4,yo(t.ju)];case 8:return o=a.sent(),n.L(o)>=0?[4,function(t,e){var n=t.eh.Oe(e);return n.zt.forEach((function(n,r){if(n.resumeToken.O()>0){var i=t.Hu.get(r);i&&t.Hu.set(r,i.it(n.resumeToken,e))}})),n.Ht.forEach((function(e){var n=t.Hu.get(e);if(n){t.Hu.set(e,n.it(Z.B,n.nt)),Go(t,e);var r=new bt(n.target,e,1,n.sequenceNumber);Qo(t,r)}})),t.Gu.sh(n)}(t,n)]:[3,10];case 9:a.sent(),a.label=10;case 10:return[3,13];case 11:return p("RemoteStore","Failed to raise snapshot:",s=a.sent()),[4,ts(t,s)];case 12:return a.sent(),[3,13];case 13:return[2]}}))}))}function ts(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i=this;return r.__generator(this,(function(o){switch(o.label){case 0:if(!vr(e))throw e;return t.Yu.add(1),[4,Bo(t)];case 1:return o.sent(),t.th.set("Offline"),n||(n=function(){return yo(t.ju)}),t.cs.Cs((function(){return r.__awaiter(i,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return p("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return e.sent(),t.Yu.delete(1),[4,Uo(t)];case 2:return e.sent(),[2]}}))}))})),[2]}}))}))}function es(t,e){return e().catch((function(n){return ts(t,n,e)}))}function ns(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i,o,s;return r.__generator(this,(function(r){switch(r.label){case 0:e=_(t),n=hs(e),i=e.zu.length>0?e.zu[e.zu.length-1].batchId:-1,r.label=1;case 1:if(!function(t){return Ko(t)&&t.zu.length<10}(e))return[3,7];r.label=2;case 2:return r.trys.push([2,4,,6]),[4,bo(e.ju,i)];case 3:return null===(o=r.sent())?(0===e.zu.length&&n._u(),[3,7]):(i=o.batchId,function(t,e){t.zu.push(e);var n=hs(t);n.uu()&&n.vu&&n.Su(e.mutations)}(e,o),[3,6]);case 4:return s=r.sent(),[4,ts(e,s)];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return rs(e)&&is(e),[2]}}))}))}function rs(t){return Ko(t)&&!hs(t).cu()&&t.zu.length>0}function is(t){hs(t).start()}function os(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return hs(t).Nu(),[2]}))}))}function ss(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i;return r.__generator(this,(function(r){for(e=hs(t),n=0,i=t.zu;n<i.length;n++)e.Su(i[n].mutations);return[2]}))}))}function as(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o;return r.__generator(this,(function(r){switch(r.label){case 0:return i=t.zu.shift(),o=Xr.from(i,e,n),[4,es(t,(function(){return t.Gu.ih(o)}))];case 1:return r.sent(),[4,ns(t)];case 2:return r.sent(),[2]}}))}))}function us(t,e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){switch(n.label){case 0:return e&&hs(t).vu?[4,function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i;return r.__generator(this,(function(r){switch(r.label){case 0:return wt(i=e.code)&&i!==l.ABORTED?(n=t.zu.shift(),hs(t).lu(),[4,es(t,(function(){return t.Gu.rh(n.batchId,e)}))]):[3,3];case 1:return r.sent(),[4,ns(t)];case 2:r.sent(),r.label=3;case 3:return[2]}}
1))}))}(t,e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return rs(t)&&is(t),[2]}}))}))}function cs(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n;return r.__generator(this,(function(r){switch(r.label){case 0:return n=_(t),e?(n.Yu.delete(2),[4,Uo(n)]):[3,2];case 1:return r.sent(),[3,5];case 2:return e?[3,4]:(n.Yu.add(2),[4,Bo(n)]);case 3:r.sent(),n.th.set("Unknown"),r.label=4;case 4:r.label=5;case 5:return[2]}}))}))}function ls(t){var e=this;return t.oh||(t.oh=function(t,e,n){var r=_(t);return r.xu(),new Fo(e,r.iu,r.credentials,r.serializer,n)}(t.Ku,t.cs,{gu:Yo.bind(null,t),Tu:Jo.bind(null,t),yu:Zo.bind(null,t)}),t.Ju.push((function(n){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return n?(t.oh.lu(),$o(t)?Wo(t):t.th.set("Unknown"),[3,3]):[3,1];case 1:return[4,t.oh.stop()];case 2:e.sent(),Xo(t),e.label=3;case 3:return[2]}}))}))}))),t.oh}function hs(t){var e=this;return t.ah||(t.ah=function(t,e,n){var r=_(t);return r.xu(),new No(e,r.iu,r.credentials,r.serializer,n)}(t.Ku,t.cs,{gu:os.bind(null,t),Tu:us.bind(null,t),Cu:ss.bind(null,t),Du:as.bind(null,t)}),t.Ju.push((function(n){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return n?(t.ah.lu(),[4,ns(t)]):[3,2];case 1:return e.sent(),[3,4];case 2:return[4,t.ah.stop()];case 3:e.sent(),t.zu.length>0&&(p("RemoteStore","Stopping write stream with "+t.zu.length+" pending writes"),t.zu=[]),e.label=4;case 4:return[2]}}
1))}))}))),t.ah}var fs=function(t){this.key=t},ds=function(t){this.key=t},ps=function(){function t(t,e){this.query=t,this.uh=e,this.hh=null,this.te=!1,this.lh=Ft(),this.Wt=Ft(),this._h=Kn(t),this.fh=new Mt(this._h)}return Object.defineProperty(t.prototype,"dh",{get:function(){return this.uh},enumerable:!1,configurable:!0}),t.prototype.wh=function(t,e){var n=this,r=e?e.mh:new Vt,i=e?e.fh:this.fh,o=e?e.Wt:this.Wt,s=i,a=!1,u=Fn(this.query)&&i.size===this.query.limit?i.last():null,c=Nn(this.query)&&i.size===this.query.limit?i.first():null;if(t.ht((function(t,e){var l=i.get(t),h=e instanceof An?e:null;h&&(h=$n(n.query,h)?h:null);var f=!!l&&n.Wt.has(l.key),d=!!h&&(h.Je||n.Wt.has(h.key)&&h.hasCommittedMutations),p=!1;l&&h?l.data().isEqual(h.data())?f!==d&&(r.track({type:3,doc:h}),p=!0):n.Th(l,h)||(r.track({type:2,doc:h}),p=!0,(u&&n._h(h,u)>0||c&&n._h(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=d?o.add(t):o.delete(t)):(s=s.delete(t),o=o.delete(t)))})),Fn(this.query)||Nn(this.query))for(;s.size>this.query.limit;){var l=Fn(this.query)?s.last():s.first();s=s.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{fh:s,mh:r,Eh:a,Wt:o}},t.prototype.Th=function(t,e){return t.Je&&e.hasCommittedMutations&&!e.Je},t.prototype.yr=function(t,e,n){var r=this,i=this.fh;this.fh=t.fh,this.Wt=t.Wt;var o=t.mh.Ut();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 v()}};return n(t)-n(e)}(t.type,e.type)||r._h(t.doc,e.doc)})),this.Ih(n);var s=e?this.Ah():[],a=0===this.lh.size&&this.te?1:0,u=a!==this.hh;return this.hh=a,0!==o.length||u?{snapshot:new Ut(this.query,t.fh,i,o,t.Wt,0===a,u,!1),Rh:s}:{Rh:s}},t.prototype.Qs=function(t){return this.te&&"Offline"===t?(this.te=!1,this.yr({fh:this.fh,mh:new Vt,Wt:this.Wt,Eh:!1},!1)):{Rh:[]}},t.prototype.gh=function(t){return!this.uh.has(t)&&!!this.fh.has(t)&&!this.fh.get(t).Je},t.prototype.Ih=function(t){var e=this;t&&(t.ee.forEach((function(t){return e.uh=e.uh.add(t)})),t.ne.forEach((function(t){})),t.se.forEach((function(t){return e.uh=e.uh.delete(t)})),this.te=t.te)},t.prototype.Ah=function(){var t=this;if(!this.te)return[];var e=this.lh;this.lh=Ft(),this.fh.forEach((function(e){t.gh(e.key)&&(t.lh=t.lh.add(e.key))}));var n=[];return e.forEach((function(e){t.lh.has(e)||n.push(new ds(e))})),this.lh.forEach((function(t){e.has(t)||n.push(new fs(t))})),n},t.prototype.Ph=function(t){this.uh=t.Fc,this.lh=Ft();var e=this.wh(t.documents);return this.yr(e,!0)},t.prototype.yh=function(){return Ut.Gt(this.query,this.fh,this.Wt,0===this.hh)},t}(),ms=function(t,e,n){this.query=t,this.targetId=e,this.view=n},gs=function(t){this.key=t,this.Vh=!1},ys=function(){function t(t,e,n,r,i,o){this.ju=t,this.ph=e,this.bh=n,this.Sh=r,this.currentUser=i,this.Dh=o,this.Ch={},this.Nh=new st((function(t){return Gn(t)}),Qn),this.Fh=new Map,this.xh=[],this.$h=new Ot(j.i),this.kh=new Map,this.Mh=new To,this.Oh={},this.Lh=new Map,this.Bh=eo.da(),this.onlineState="Unknown",this.qh=void 0}return Object.defineProperty(t.prototype,"Uh",{get:function(){return!0===this.qh},enumerable:!1,configurable:!0}),t}();function vs(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,s,a;return r.__generator(this,(function(r){switch(r.label){case 0:return n=zs(t),(o=n.Nh.get(e))?(n.Sh.Oi(o.targetId),i=o.view.yh(),[3,4]):[3,1];case 1:return[4,_o(n.ju,Bn(e))];case 2:return s=r.sent(),a=n.Sh.Oi(s.targetId),[4,bs(n,e,s.targetId,"current"===a)];case 3:i=r.sent(),n.Uh&&Ho(n.ph,s),r.label=4;case 4:return[2,i]}}))}))}function bs(t,e,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o,s,a,u,c,l;return r.__generator(this,(function(h){switch(h.label){case 0:return t.Qh=function(e,n,i){return function(t,e,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o,s,a;return r.__generator(this,(function(r){switch(r.label){case 0:return(o=e.view.wh(n)).Eh?[4,Eo(t.ju,e.query,!1).then((function(t){return e.view.wh(t.documents,o)}))]:[3,2];case 1:o=r.sent(),r.label=2;case 2:return s=i&&i.zt.get(e.targetId),a=e.view.yr(o,t.Uh,s),[2,(ks(t,e.targetId,a.Rh),a.snapshot)]}}))}))}(t,e,n,i)},[4,Eo(t.ju,e,!0)];case 1:return o=h.sent(),s=new ps(e,o.Fc),a=s.wh(o.documents),u=qt.Zt(n,i&&"Offline"!==t.onlineState),c=s.yr(a,t.Uh,u),ks(t,n,c.Rh),l=new ms(e,n,s),[2,(t.Nh.set(e,l),t.Fh.has(n)?t.Fh.get(n).push(e):t.Fh.set(n,[e]),c.snapshot)]}}))}))}function _s(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:return n=_(t),i=n.Nh.get(e),(o=n.Fh.get(i.targetId)).length>1?[2,(n.Fh.set(i.targetId,o.filter((function(t){return!Qn(t,e)}))),void n.Nh.delete(e))]:n.Uh?(n.Sh.Bi(i.targetId),n.Sh.Fi(i.targetId)?[3,2]:[4,wo(n.ju,i.targetId,!1).then((function(){n.Sh.Ui(i.targetId),zo(n.ph,i.targetId),js(n,i.targetId)})).catch(Co)]):[3,3];case 1:r.sent(),r.label=2;case 2:return[3,5];case 3:return js(n,i.targetId),[4,wo(n.ju,i.targetId,!0)];case 4:r.sent(),r.label=5;case 5:return[2]}}
1))}))}function ws(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i;return r.__generator(this,(function(r){switch(r.label){case 0:n=_(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,vo(n.ju,e)];case 2:return i=r.sent(),e.zt.forEach((function(t,e){var r=n.kh.get(e);r&&(b(t.ee.size+t.ne.size+t.se.size<=1),t.ee.size>0?r.Vh=!0:t.ne.size>0?b(r.Vh):t.se.size>0&&(b(r.Vh),r.Vh=!1))})),[4,Rs(n,i,e)];case 3:return r.sent(),[3,6];case 4:return[4,Co(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))}function Es(t,e,n){var r=_(t);if(r.Uh&&0===n||!r.Uh&&1===n){var i=[];r.Nh.forEach((function(t,n){var r=n.view.Qs(e);r.snapshot&&i.push(r.snapshot)})),function(t,e){var n=_(t);n.onlineState=e;var r=!1;n.Bs.forEach((function(t,n){for(var i=0,o=n.listeners;i<o.length;i++)o[i].Qs(e)&&(r=!0)})),r&&Fr(n)}(r.bh,e),i.length&&r.Ch.yu(i),r.onlineState=e,r.Uh&&r.Sh.Ki(e)}}function Os(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,s,a,u,c;return r.__generator(this,(function(r){switch(r.label){case 0:return(i=_(t)).Sh.Qi(e,"rejected",n),o=i.kh.get(e),(s=o&&o.key)?(a=(a=new Ot(j.i)).ot(s,new kn(s,ut.min())),u=Ft().add(s),c=new Bt(ut.min(),new Map,new Ct(X),a,u),[4,ws(i,c)]):[3,2];case 1:return r.sent(),i.$h=i.$h.remove(s),i.kh.delete(e),Ds(i),[3,4];case 2:return[4,wo(i.ju,e,!1).then((function(){return js(i,e,n)})).catch(Co)];case 3:r.sent(),r.label=4;case 4:return[2]}}
1))}))}function Ss(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:n=_(t),i=e.batch.batchId,r.label=1;case 1:return r.trys.push([1,4,,6]),[4,go(n.ju,e)];case 2:return o=r.sent(),Ts(n,i,null),Cs(n,i),n.Sh.ki(i,"acknowledged"),[4,Rs(n,o)];case 3:return r.sent(),[3,6];case 4:return[4,Co(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))}function xs(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o;return r.__generator(this,(function(r){switch(r.label){case 0:i=_(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,function(t,e){var n=_(t);return n.persistence.runTransaction("Reject batch","readwrite-primary",(function(t){var r;return n.Sr.Oo(t,e).next((function(e){return b(null!==e),r=e.keys(),n.Sr.Wo(t,e)})).next((function(){return n.Sr.zo(t)})).next((function(){return n.Cc.kr(t,r)}))}))}(i.ju,e)];case 2:return o=r.sent(),Ts(i,e,n),Cs(i,e),i.Sh.ki(e,"rejected",n),[4,Rs(i,o)];case 3:return r.sent(),[3,6];case 4:return[4,Co(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}
1))}))}function Cs(t,e){(t.Lh.get(e)||[]).forEach((function(t){t.resolve()})),t.Lh.delete(e)}function Ts(t,e,n){var r=_(t),i=r.Oh[r.currentUser.ti()];if(i){var o=i.get(e);o&&(n?o.reject(n):o.resolve(),i=i.remove(e)),r.Oh[r.currentUser.ti()]=i}}function js(t,e,n){void 0===n&&(n=null),t.Sh.Bi(e);for(var r=0,i=t.Fh.get(e);r<i.length;r++){var o=i[r];t.Nh.delete(o),n&&t.Ch.Wh(o,n)}t.Fh.delete(e),t.Uh&&t.Mh.Uc(e).forEach((function(e){t.Mh.Ho(e)||As(t,e)}))}function As(t,e){var n=t.$h.get(e);null!==n&&(zo(t.ph,n),t.$h=t.$h.remove(e),t.kh.delete(n),Ds(t))}function ks(t,e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];o instanceof fs?(t.Mh.Da(o.key,e),Is(t,o)):o instanceof ds?(p("SyncEngine","Document no longer in limbo: "+o.key),t.Mh.Na(o.key,e),t.Mh.Ho(o.key)||As(t,o.key)):v()}}function Is(t,e){var n=e.key;t.$h.get(n)||(p("SyncEngine","New document in limbo: "+n),t.xh.push(n),Ds(t))}function Ds(t){for(;t.xh.length>0&&t.$h.size<t.Dh;){var e=t.xh.shift(),n=t.Bh.next();t.kh.set(n,new gs(e)),t.$h=t.$h.ot(e,n),Ho(t.ph,new bt(Bn(Pn(e.path)),n,2,Mr.ai))}}function Rs(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,s,a;return r.__generator(this,(function(u){switch(u.label){case 0:return i=_(t),o=[],s=[],a=[],i.Nh.m()?[3,3]:(i.Nh.forEac
1h((function(t,r){a.push(i.Qh(r,e,n).then((function(t){if(t){i.Uh&&i.Sh.Qi(r.targetId,t.fromCache?"not-current":"current"),o.push(t);var e=ei.zr(r.targetId,t);s.push(e)}})))})),[4,Promise.all(a)]);case 1:return u.sent(),i.Ch.yu(o),[4,function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,s,a,u,c,l;return r.__generator(this,(function(r){switch(r.label){case 0:n=_(t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(t){return pr.forEach(e,(function(e){return pr.forEach(e.Kr,(function(r){return n.persistence.No.Da(t,e.targetId,r)})).next((function(){return pr.forEach(e.Gr,(function(r){return n.persistence.No.Na(t,e.targetId,r)}))}))}))}))];case 2:return r.sent(),[3,4];case 3:if(!vr(i=r.sent()))throw i;return p("LocalStore","Failed to update sequence numbers: "+i),[3,4];case 4:for(o=0,s=e;o<s.length;o++)u=(a=s[o]).targetId,a.fromCache||(c=n.bc.get(u),l=c.rt(c.nt),n.bc=n.bc.ot(u,l));return[2]}}))}))}(i.ju,s)];case 2:u.sent(),u.label=3;case 3:return[2]}}
1))}))}function Ps(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i;return r.__generator(this,(function(o){switch(o.label){case 0:return(n=_(t)).currentUser.isEqual(e)?[3,3]:(p("SyncEngine","User change. New user:",e.ti()),[4,function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,s;return r.__generator(this,(function(r){switch(r.label){case 0:return n=_(t),i=n.Sr,o=n.Cc,[4,n.persistence.runTransaction("Handle user change","readonly",(function(t){var r;return n.Sr.Uo(t).next((function(s){return r=s,i=n.persistence.mc(e),o=new ti(n.Dc,i,n.persistence.Ic()),i.Uo(t)})).next((function(e){for(var n=[],i=[],s=Ft(),a=0,u=r;a<u.length;a++){var c=u[a];n.push(c.batchId);for(var l=0,h=c.mutations;l<h.length;l++)s=s.add(h[l].key)}for(var f=0,d=e;f<d.length;f++){var p=d[f];i.push(p.batchId);for(var m=0,g=p.mutations;m<g.length;m++)s=s.add(g[m].key)}return o.kr(t,s).next((function(t){return{jh:t,Kh:n,Gh:i}}))}))}))];case 1:return s=r.sent(),[2,(n.Sr=i,n.Cc=o,n.Vc.Nc(n.Cc),s)]}}))}))}(n.ju,e)]);case 1:return i=o.sent(),n.currentUser=e,function(t,e){t.Lh.forEach((function(t){t.forEach((function(t){t.reject(new h(l.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))}))})),t.Lh.clear()}(n),n.Sh.ji(e,i.Kh,i.Gh),[4,Rs(n,i.jh)];case 2:o.sent(),o.label=3;case 3:return[2]}}
1))}))}function Fs(t,e){var n=_(t),r=n.kh.get(e);if(r&&r.Vh)return Ft().add(r.key);var i=Ft(),o=n.Fh.get(e);if(!o)return i;for(var s=0,a=o;s<a.length;s++){var u=n.Nh.get(a[s]);i=i.kt(u.view.dh)}return i}function Ns(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,Eo((n=_(t)).ju,e.query,!0)];case 1:return i=r.sent(),o=e.view.Ph(i),[2,(n.Uh&&ks(n,e.targetId,o.Rh),o)]}}))}))}function Ls(t,e,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o,s;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,function(t,e){var n=_(t),r=_(n.Sr);return n.persistence.runTransaction("Lookup mutation documents","readonly",(function(t){return r.Lo(t,e).next((function(e){return e?n.Cc.kr(t,e):pr.resolve(null)}))}))}((o=_(t)).ju,e)];case 1:return null===(s=r.sent())?[3,6]:"pending"!==n?[3,3]:[4,ns(o.ph)];case 2:return r.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(Ts(o,e,i||null),Cs(o,e),function(t,e){_(_(t).Sr).Ko(e)}(o.ju,e)):v(),r.label=4;case 4:return[4,Rs(o,s)];case 5:return r.sent(),[3,7];case 6:p("SyncEngine","Cannot apply mutation batch with id: "+e),r.label=7;case 7:return[2]}}
1))}))}function Ms(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,s,a,u,c;return r.__generator(this,(function(r){switch(r.label){case 0:return zs(n=_(t)),Qs(n),!0!==e||!0===n.qh?[3,3]:(i=n.Sh.Ci(),[4,Vs(n,i.A())]);case 1:return o=r.sent(),n.qh=!0,[4,cs(n.ph,!0)];case 2:for(r.sent(),s=0,a=o;s<a.length;s++)Ho(n.ph,a[s]);return[3,7];case 3:return!1!==e||!1===n.qh?[3,7]:(u=[],c=Promise.resolve(),n.Fh.forEach((function(t,e){n.Sh.qi(e)?u.push(e):c=c.then((function(){return js(n,e),wo(n.ju,e,!0)})),zo(n.ph,e)})),[4,c]);case 4:return r.sent(),[4,Vs(n,u)];case 5:return r.sent(),function(t){var e=_(t);e.kh.forEach((function(t,n){zo(e.ph,n)})),e.Mh.Qc(),e.kh=new Map,e.$h=new Ot(j.i)}(n),n.qh=!1,[4,cs(n.ph,!1)];case 6:r.sent(),r.label=7;case 7:return[2]}}))}))}function Vs(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,s,a,u,c,l,h,f,d,p,m;return r.__generator(this,(function(r){switch(r.label){case 0:n=_(t),i=[],o=[],s=0,a=e,r.label=1;case 1:return s<a.length?(c=void 0,(l=n.Fh.get(u=a[s]))&&0!==l.length?[4,_o(n.ju,Bn(l[0]))]:[3,7]):[3,13];case 2:c=r.sent(),h=0,f=l,r.label=3;case 3:return h<f.length?(d=n.Nh.get(f[h]),[4,Ns(n,d)]):[3,6];case 4:(p=r.sent()).snapshot&&o.push(p.snapshot),r.label=5;case 5:return h++,[3,3];case 6:return[3,11];case 7:return[4,Oo(n.ju,u)];case 8:return m=r.sent(),[4,_o(n.ju,m)];case 9:return c=r.sent(),[4,bs(n,Us(m),u,!1)];case 10:r.sent(),r.label=11;case 11:i.push(c),r.label=12;case 12:return s++,[3,1];case 13:return[2,(n.Ch.yu(o),i)]}}))}))}function Us(t){return Rn(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)}function Bs(t){var e=_(t);return _(_(e.ju).persistence).pi()}function qs(t,e,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o,s,a;return r.__generator(this,(function(r){switch(r.label){case 0:return(o=_(t)).qh?(p("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!o.Fh.has(e))return[3,8];switch(n){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,So(o.ju)];case 3:return s=r.sent(),a=Bt.Xt(e,"current"===n),[4,Rs(o,s,a)];case 4:return r.sent(),[3,8];case 5:return[4,wo(o.ju,e,!0)];case 6:return r.sent(),js(o,e,i),[3,8];case 7:v(),r.label=8;case 8:return[2]}}
1))}))}function Hs(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,s,a,u,c,l,h,f;return r.__generator(this,(function(d){switch(d.label){case 0:if(!(i=zs(t)).qh)return[3,10];o=0,s=e,d.label=1;case 1:return o<s.length?i.Fh.has(a=s[o])?(p("SyncEngine","Adding an already active target "+a),[3,5]):[4,Oo(i.ju,a)]:[3,6];case 2:return u=d.sent(),[4,_o(i.ju,u)];case 3:return c=d.sent(),[4,bs(i,Us(u),c.targetId,!1)];case 4:d.sent(),Ho(i.ph,c),d.label=5;case 5:return o++,[3,1];case 6:l=function(t){return r.__generator(this,(function(e){switch(e.label){case 0:return i.Fh.has(t)?[4,wo(i.ju,t,!1).then((function(){zo(i.ph,t),js(i,t)})).catch(Co)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))},h=0,f=n,d.label=7;case 7:return h<f.length?[5,l(f[h])]:[3,10];case 8:d.sent(),d.label=9;case 9:return h++,[3,7];case 10:return[2]}}))}))}function zs(t){var e=_(t);return e.ph.Gu.sh=ws.bind(null,e),e.ph.Gu.qe=Fs.bind(null,e),e.ph.Gu.nh=Os.bind(null,e),e.Ch.yu=Rr.bind(null,e.bh),e.Ch.Wh=Pr.bind(null,e.bh),e}function Qs(t){var e=_(t);return e.ph.Gu.ih=Ss.bind(null,e),e.ph.Gu.rh=xs.bind(null,e),e}var Gs=function(){function t(){}return t.prototype.Nc=function(t){this.zh=t},t.prototype.Lr=function(t,e,n,r){var i=this;return function(t){return 0===t.filters.length&&null===t.limit&&null==t.startAt&&null==t.endAt&&(0===t.on.length||1===t.on.length&&t.on[0].field.p())}(e)||n.isEqual(ut.min())?this.Hh(t,e):this.zh.kr(t,r).next((function(s){var a=i.Yh(e,s);return(Fn(e)||Nn(e))&&i.Eh(e.an,a,r,n)?i.Hh(t,e):(d()<=o.LogLevel.DEBUG&&p("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),Wn(e)),i.zh.Lr(t,e,n).next((function(t){return a.forEach((function(e){t=t.ot(e.key,e)})),t})))}))},t.prototype.Yh=function(t,e){var n=new Ct(Kn(t));return e.forEach((function(e,r){r instanceof An&&$n(t,r)&&(n=n.add(r))})),n},t.prototype.Eh=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.L(r)>0)},t.prototype.Hh=function(t,e){return d()<=o.LogLevel.DEBUG&&p("IndexFreeQueryEngine","Using full collection scan to execute query:",Wn(e)),this.zh.Lr(t,e,ut.min())},t}(),Ws=function(){function t(t,e){this.Dr=t,this.No=e,this.Sr=[],this.Jh=1,this.Xh=new Ct(jo.kc)}return t.prototype.$o=function(t){return pr.resolve(0===this.Sr.length)},t.prototype.ko=function(t,e,n,r){var i=this.Jh;this.Jh++;var o=new Kr(i,e,n,r);this.Sr.push(o);for(var s=0,a=r;s<a.length;s++){var u=a[s];this.Xh=this.Xh.add(new jo(u.key,i)),this.Dr.Mo(t,u.key.path.h())}return pr.resolve(o)},t.prototype.Oo=function(t,e){return pr.resolve(this.Zh(e))},t.prototype.Bo=function(t,e){var n=this.tl(e+1),r=n<0?0:n;return pr.resolve(this.Sr.length>r?this.Sr[r]:null)},t.prototype.qo=function(){return pr.resolve(0===this.Sr.length?-1:this.Jh-1)},t.prototype.Uo=function(t){return pr.resolve(this.Sr.slice())},t.prototype.Nr=function(t,e){var n=this,r=new jo(e,0),i=new jo(e,Number.POSITIVE_INFINITY),o=[];return this.Xh.Ft([r,i],(function(t){var e=n.Zh(t.jc);o.push(e)})),pr.resolve(o)},t.prototype.Or=function(t,e){var n=this,r=new Ct(X);return e.forEach((function(t){var e=new jo(t,0),i=new jo(t,Number.POSITIVE_INFINITY);n.Xh.Ft([e,i],(function(t){r=r.add(t.jc)}))})),pr.resolve(this.el(r))},t.prototype.Wr=function(t,e){var n=e.path,r=n.length+1,i=n;j.F(i)||(i=i.child(""));var o=new jo(new j(i),0),s=new Ct(X);return this.Xh.xt((function(t){var e=t.key.path;return!!n.T(e)&&(e.length===r&&(s=s.add(t.jc)),!0)}),o),pr.resolve(this.el(s))},t.prototype.el=function(t){var e=this,n=[];return t.forEach((function(t){var r=e.Zh(t);null!==r&&n.push(r)})),n},t.prototype.Wo=function(t,e){var n=this;b(0===this.nl(e.batchId,"removed")),this.Sr.shift();var r=this.Xh;return pr.forEach(e.mutations,(function(i){var o=new jo(i.key,e.batchId);return r=r.delete(o),n.No.Go(t,i.key)})).next((function(){n.Xh=r}))},t.prototype.Ko=function(t){},t.prototype.Ho=function(t,e){var n=new jo(e,0),r=this.Xh.$t(n);return pr.resolve(e.isEqual(r&&r.key))},t.prototype.zo=function(t){return pr.resolve()},t.prototype.nl=function(t,e){return this.tl(t)},t.prototype.tl=function(t){return 0===this.Sr.length?0:t-this.Sr[0].batchId},t.prototype.Zh=function(t){var e=this.tl(t);return e<0||e>=this.Sr.length?null:this.Sr[e]},t}(),$s=function(){function t(t,e){this.Dr=t,this.sl=e,this.docs=new Ot(j.i),this.size=0}return t.prototype.Er=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,s=this.sl(e);return this.docs=this.docs.ot(r,{ta:e,size:s,readTime:n}),this.size+=s-o,this.Dr.Mo(t,r.path.h())},t.prototype.Ar=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.Rr=function(t,e){var n=this.docs.get(e);return pr.resolve(n?n.ta:null)},t.prototype.getEntries=function(t,e){var n=this,r=kt();return e.forEach((function(t){var e=n.docs.get(t);r=r.ot(t,e?e.ta:null)})),pr.resolve(r)},t.prototype.Lr=function(t,e,n){for(var r=Dt(),i=new j(e.path.child("")),o=this.docs.ft(i);o.At();){var s=o.It(),a=s.value,u=a.ta,c=a.readTime;if(!e.path.T(s.key.path))break;c.L(n)<=0||u instanceof An&&$n(e,u)&&(r=r.ot(u.key,u))}return pr.resolve(r)},t.prototype.il=function(t,e){return pr.forEach(this.docs,(function(t){return e(t)}))},t.prototype.ra=function(t){return new Ks(this)},t.prototype.aa=function(t){return pr.resolve(this.size)},t}(),Ks=function(t){function e(e){var n=this;return(n=t.call(this)||this).ca=e,n}return r.__extends(e,t),e.prototype.yr=function(t){var e=this,n=[];return this.wr.forEach((function(r,i){i?n.push(e.ca.Er(t,i,e.readTime)):e.ca.Ar(r)})),pr.$n(n)},e.prototype.gr=function(t,e){return this.ca.Rr(t,e)},e.prototype.Pr=function(t,e){return this.ca.getEntries(t,e)},e}
1(Yr),Xs=function(){function t(t){this.persistence=t,this.rl=new st((function(t){return pt(t)}),mt),this.lastRemoteSnapshotVersion=ut.min(),this.highestTargetId=0,this.ol=0,this.al=new To,this.targetCount=0,this.cl=eo.fa()}return t.prototype.Ce=function(t,e){return this.rl.forEach((function(t,n){return e(n)})),pr.resolve()},t.prototype.Ea=function(t){return pr.resolve(this.lastRemoteSnapshotVersion)},t.prototype.Ia=function(t){return pr.resolve(this.ol)},t.prototype.wa=function(t){return this.highestTargetId=this.cl.next(),pr.resolve(this.highestTargetId)},t.prototype.Aa=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.ol&&(this.ol=e),pr.resolve()},t.prototype.ga=function(t){this.rl.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.cl=new eo(e),this.highestTargetId=e),t.sequenceNumber>this.ol&&(this.ol=t.sequenceNumber)},t.prototype.Ra=function(t,e){return this.ga(e),this.targetCount+=1,pr.resolve()},t.prototype.ya=function(t,e){return this.ga(e),pr.resolve()},t.prototype.Va=function(t,e){return this.rl.delete(e.target),this.al.Uc(e.targetId),this.targetCount-=1,pr.resolve()},t.prototype.po=function(t,e,n){var r=this,i=0,o=[];return this.rl.forEach((function(s,a){a.sequenceNumber<=e&&null===n.get(a.targetId)&&(r.rl.delete(s),o.push(r.pa(t,a.targetId)),i++)})),pr.$n(o).next((function(){return i}))},t.prototype.ba=function(t){return pr.resolve(this.targetCount)},t.prototype.va=function(t,e){var n=this.rl.get(e)||null;return pr.resolve(n)},t.prototype.Sa=function(t,e,n){return this.al.Lc(e,n),pr.resolve()},t.prototype.Ca=function(t,e,n){this.al.qc(e,n);var r=this.persistence.No,i=[];return r&&e.forEach((function(e){i.push(r.Go(t,e))})),pr.$n(i)},t.prototype.pa=function(t,e){return this.al.Uc(e),pr.resolve()},t.prototype.Fa=function(t,e){var n=this.al.Wc(e);return pr.resolve(n)},t.prototype.Ho=function(t,e){return pr.resolve(this.al.Ho(e))},t}(),Ys=function(){function t(t){var e=this;this.ul={},this.Ma=new Mr(0),this.Oa=!1,this.Oa=!0,this.No=t(this),this.Ka=new Xs(this),this.Dr=new Pi,this.vr=function(t,n){return new $s(t,(function(t){return e.No.hl(t)}))}(this.Dr)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.Di=function(){return this.Oa=!1,Promise.resolve()},Object.defineProperty(t.prototype,"Ei",{get:function(){return this.Oa},enumerable:!1,configurable:!0}),t.prototype.Za=function(){},t.prototype.tc=function(){},t.prototype.Ic=function(){return this.Dr},t.prototype.mc=function(t){var e=this.ul[t.ti()];return e||(e=new Ws(this.Dr,this.No),this.ul[t.ti()]=e),e},t.prototype.Tc=function(){return this.Ka},t.prototype.Ec=function(){return this.vr},t.prototype.runTransaction=function(t,e,n){var r=this;p("MemoryPersistence","Starting transaction:",t);var i=new Js(this.Ma.next());return this.No.ll(),n(i).next((function(t){return r.No._l(i).next((function(){return t}))})).Fn().then((function(t){return i.br(),t}))},t.prototype.fl=function(t,e){return pr.kn(Object.values(this.ul).map((function(n){return function(){return n.Ho(t,e)}})))},t}(),Js=function(t){function e(e){var n=this;return(n=t.call(this)||this).xa=e,n}return r.__extends(e,t),e}(Zr),Zs=function(){function t(t){this.persistence=t,this.dl=new To,this.wl=null}return t.ml=function(e){return new t(e)},Object.defineProperty(t.prototype,"Tl",{get:function(){if(this.wl)return this.wl;throw v()},enumerable:!1,configurable:!0}),t.prototype.Da=function(t,e,n){return this.dl.Da(n,e),this.Tl.delete(n.toString()),pr.resolve()},t.prototype.Na=function(t,e,n){return this.dl.Na(n,e),this.Tl.add(n.toString()),pr.resolve()},t.prototype.Go=function(t,e){return this.Tl.add(e.toString()),pr.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.dl.Uc(e.targetId).forEach((function(t){return n.Tl.add(t.toString())}));var r=this.persistence.Tc();return r.Fa(t,e.targetId).next((function(t){t.forEach((function(t){return n.Tl.add(t.toString())}))})).next((function(){return r.Va(t,e)}))},t.prototype.ll=function(){this.wl=new Set},t.prototype._l=function(t){var e=this,n=this.persistence.Ec().ra();return pr.forEach(this.Tl,(function(r){var i=j.D(r);return e.El(t,i).next((function(t){t||n.Ar(i)}))})).next((function(){return e.wl=null,n.apply(t)}))},t.prototype.yc=function(t,e){var n=this;return this.El(t,e).next((function(t){t?n.Tl.delete(e.toString()):n.Tl.add(e.toString())}))},t.prototype.hl=function(t){return 0},t.prototype.El=function(t,e){var n=this;return pr.kn([function(){return pr.resolve(n.dl.Ho(e))},function(){return n.persistence.Tc().Ho(t,e)},function(){return n.persistence.fl(t,e)}])},t}(),ta=function(){function t(t){this.Il=t.Il,this.Al=t.Al}return t.prototype.gu=function(t){this.Rl=t},t.prototype.Tu=function(t){this.gl=t},t.prototype.onMessage=function(t){this.Pl=t},t.prototype.close=function(){this.Al()},t.prototype.send=function(t){this.Il(t)},t.prototype.yl=function(){this.Rl()},t.prototype.Vl=function(t){this.gl(t)},t.prototype.pl=function(t){this.Pl(t)},t}(),ea={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},na=function(t){function e(e){var n=this;return(n=t.call(this,e)||this).forceLongPolling=e.forceLongPolling,n.W=e.W,n}return r.__extends(e,t),e.prototype.Nl=function(t,e,n,r){return new Promise((function(i,o){var s=new a.XhrIo;
1s.listenOnce(a.EventType.COMPLETE,(function(){try{switch(s.getLastErrorCode()){case a.ErrorCode.NO_ERROR:var e=s.getResponseJson();p("Connection","XHR received:",JSON.stringify(e)),i(e);break;case a.ErrorCode.TIMEOUT:p("Connection",'RPC "'+t+'" timed out'),o(new h(l.DEADLINE_EXCEEDED,"Request time out"));break;case a.ErrorCode.HTTP_ERROR:var n=s.getStatus();if(p("Connection",'RPC "'+t+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var r=s.getResponseJson().error;if(r&&r.status&&r.message){var u=function(t){var e=t.toLowerCase().replace("_","-");return Object.values(l).indexOf(e)>=0?e:l.UNKNOWN}(r.status);o(new h(u,r.message))}else o(new h(l.UNKNOWN,"Server responded with status "+s.getStatus()))}else o(new h(l.UNAVAILABLE,"Connection failed."));break;default:v()}}finally{p("Connection",'RPC "'+t+'" completed.')}}));var u=JSON.stringify(r);s.send(e,"POST",u,n,15)}))},e.prototype.Pu=function(t,e){var n=[this.vl,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=a.createWebChannelTransport(),i={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.U.projectId+"/databases/"+this.U.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.W};this.Cl(i.initMessageHeaders,e),s.isMobileCordova()||s.isReactNative()||s.isElectron()||s.isIE()||s.isUWP()||s.isBrowserExtension()||(i.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");p("Connection","Creating WebChannel: "+o,i);var u=r.createWebChannel(o,i),c=!1,f=!1,d=new ta({Il:function(t){f?p("Connection","Not sending because WebChannel is closed:",t):(c||(p("Connection","Opening WebChannel transport."),u.open(),c=!0),p("Connection","WebChannel sending:",t),u.send(t))},Al:function(){return u.close()}}),m=function(t,e){u.listen(t,(function(t){try{e(t)}catch(t){setTimeout((function(){throw t}),0)}}))};return m(a.WebChannel.EventType.OPEN,(function(){f||p("Connection","WebChannel transport opened.")})),m(a.WebChannel.EventType.CLOSE,(function(){f||(f=!0,p("Connection","WebChannel transport closed"),d.Vl())})),m(a.WebChannel.EventType.ERROR,(function(t){f||(f=!0,g("Connection","WebChannel transport errored:",t),d.Vl(new h(l.UNAVAILABLE,"The operation could not be completed")))})),m(a.WebChannel.EventType.MESSAGE,(function(t){var e;if(!f){var n=t.data[0];b(!!n);var r=n.error||(null===(e=n[0])||void 0===e?void 0:e.error);if(r){p("Connection","WebChannel received error:",r);var i=r.status,o=function(t){var e=yt[t];if(void 0!==e)return Et(e)}(i),s=r.message;void 0===o&&(o=l.INTERNAL,s="Unknown error status: "+i+" with message "+r.message),f=!0,d.Vl(new h(o,s)),u.close()}else p("Connection","WebChannel received:",n),d.pl(n)}})),setTimeout((function(){d.yl()}),0),d},e}(function(){function t(t){this.bl=t,this.U=t.U,this.vl=(t.ssl?"https":"http")+"://"+t.host,this.Sl="projects/"+this.U.projectId+"/databases/"+this.U.database+"/documents"}return t.prototype.$u=function(t,e,n,r){var i=this.Dl(t,e);p("RestConnection","Sending: ",i,n);var o={};return this.Cl(o,r),this.Nl(t,i,o,n).then((function(t){return p("RestConnection","Received: ",t),t}),(function(e){throw g("RestConnection",t+" failed with error: ",e,"url: ",i,"request:",n),e}))},t.prototype.ku=function(t,e,n,r){return this.$u(t,e,n,r)},t.prototype.Cl=function(t,e){if(t["X-Goog-Api-Client"]="gl-js/ fire/7.24.0",t["Content-Type"]="text/plain",e)for(var n in e.Kc)e.Kc.hasOwnProperty(n)&&(t[n]=e.Kc[n])},t.prototype.Dl=function(t,e){return this.vl+"/v1/"+e+":"+ea[t]},t}()),ra=function(){function t(){var t=this;this.Fl=function(){return t.xl()},this.$l=function(){return t.kl()},this.Ml=[],this.Ol()}return t.prototype.Zu=function(t){this.Ml.push(t)},t.prototype.Di=function(){window.removeEventListener("online",this.Fl),window.removeEventListener("offline",this.$l)},t.prototype.Ol=function(){window.addEventListener("online",this.Fl),window.addEventListener("offline",this.$l)},t.prototype.xl=function(){p("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.Ml;t<e.length;t++)(0,e[t])(0)},t.prototype.kl=function(){p("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.Ml;t<e.length;t++)(0,e[t])(1)},t.Ln=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),ia=function(){function t(){}return t.prototype.Zu=function(t){},t.prototype.Di=function(){},t}();function oa(t){return new ge(t,!0)}var sa="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.",aa=function(){function t(){}return t.prototype.initialize=function(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return this.Sh=this.Ll(t),this.persistence=this.Bl(t),[4,this.persistence.start()];case 1:return e.sent(),this.ql=this.Ul(t),this.ju=this.Ql(t),[2]}}))}))},t.prototype.Ul=function(t){return null},t.prototype.Ql=function(t){return e=this.persistence,n=new Gs,new mo(e,n,t.Wl);var e,n},t.prototype.Bl=function(t){if(t.persistenceSettings.jl)throw new h(l.FAILED_PRECONDITION,sa);return new Ys(Zs.ml)},t.prototype.Ll=function(t){return new $r},t.prototype.terminate=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.ql&&this.ql.stop(),[4,this.Sh.Di()];case 1:return t.sent(),[4,this.persistence.Di()];case 2:return t.sent(),[2]}}))}))},t.prototype.clearPersistence=function(t,e){throw new h(l.FAILED_PRECONDITION,sa)},t}(),ua=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.initialize=function(e){return r.__awaiter(this,void 0,void 0,(function(){var n,i=this;return r.__generator(this,(function(o){switch(o.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return o.sent(),n=this.Kl.fi,this.Sh instanceof Wr?(this.Sh.fi={er:Ls.bind(null,n),nr:qs.bind(null,n),sr:Hs.bind(null,n),pi:Bs.bind(null,n)},[4,this.Sh.start()]):[3,3];case 2:o.sent(),o.label=3;case 3:return[4,this.persistence.Xa((function(t){return r.__awaiter(i,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return[4,Ms(this.Kl.fi,t)];case 1:return e.sent(),this.ql&&(t&&!this.ql.Ei?this.ql.start(this.ju):t||this.ql.stop()),[2]}}))}))}))];case 4:return o.sent(),[2]}}))}))},e.prototype.Ll=function(t){if(t.persistenceSettings.jl&&t.persistenceSettings.synchronizeTabs){var e=Sr();
1if(!Wr.Ln(e))throw new h(l.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=po(t.bl.U,t.bl.persistenceKey);return new Wr(e,t.cs,n,t.clientId,t.Wl)}return new $r},e}(function(t){function e(e){var n=this;return(n=t.call(this)||this).Kl=e,n}return r.__extends(e,t),e.prototype.initialize=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){switch(n.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return n.sent(),[4,xo(this.ju)];case 2:return n.sent(),[4,this.Kl.initialize(this,e)];case 3:return n.sent(),[4,Qs(this.Kl.fi)];case 4:return n.sent(),[4,ns(this.Kl.ph)];case 5:return n.sent(),[2]}}))}))},e.prototype.Ul=function(t){return new si(this.persistence.No.wo,t.cs)},e.prototype.Bl=function(t){var e=po(t.bl.U,t.bl.persistenceKey),n=oa(t.bl.U);return new uo(t.persistenceSettings.synchronizeTabs,e,t.clientId,oi.ao(t.persistenceSettings.cacheSizeBytes),t.cs,Sr(),xr(),n,this.Sh,t.persistenceSettings.ka)},e.prototype.Ll=function(t){return new $r},e.prototype.clearPersistence=function(t,e){return function(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return mr.Ln()?[4,mr.delete(t+"main")]:[2,Promise.resolve()];case 1:return e.sent(),[2]}}))}))}(po(t,e))},e}(aa)),ca=function(){function t(){}return t.prototype.initialize=function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.ju?[3,2]:(this.ju=t.ju,this.Sh=t.Sh,this.Ku=this.Gl(e),this.ph=this.zl(e),this.bh=this.Hl(e),this.fi=this.Yl(e),this.Sh.di=function(t){return Es(n.fi,t,1)},this.ph.Gu.Jl=Ps.bind(null,this.fi),[4,cs(this.ph,this.fi.Uh)]);case 1:r.sent(),r.label=2;case 2:return[2]}}
1))}))},t.prototype.Hl=function(t){return new kr},t.prototype.Gl=function(t){var e=oa(t.bl.U),n=new na(t.bl);return function(t,e,n){return new Lo(t,e,n)}(t.credentials,n,e)},t.prototype.zl=function(t){var e,n,r,i,o,s=this;return e=this.ju,n=this.Ku,r=t.cs,i=function(t){return Es(s.fi,t,0)},o=ra.Ln()?new ra:new ia,new Vo(e,n,r,i,o)},t.prototype.Yl=function(t){return function(t,e,n,r,i,o,s){var a=new ys(t,e,n,r,i,o);return s&&(a.qh=!0),a}(this.ju,this.ph,this.bh,this.Sh,t.Wl,t.Dh,!t.persistenceSettings.jl||!t.persistenceSettings.synchronizeTabs)},t.prototype.terminate=function(){return qo(this.ph)},t}(),la=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.observer.next&&this.Xl(this.observer.next,t)},t.prototype.error=function(t){this.observer.error?this.Xl(this.observer.error,t):console.error("Uncaught Error in snapshot listener:",t)},t.prototype.Zl=function(){this.muted=!0},t.prototype.Xl=function(t,e){var n=this;this.muted||setTimeout((function(){n.muted||t(e)}),0)},t}(),ha=function(t){!function(t,e,n,r){if(!(e instanceof Array)||e.length<1)throw new h(l.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+W(1,"element")+".")}(0,t);for(var e=0;e<t.length;++e)if(R("FieldPath","string",e,t[e]),0===t[e].length)throw new h(l.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.t_=new T(t)},fa=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.call(this,e)||this}return r.__extends(e,t),e.documentId=function(){return new e(T.v().R())},e.prototype.isEqual=function(t){if(!(t instanceof e))throw z("isEqual","FieldPath",1,t);return this.t_.isEqual(t.t_)},e}(ha),da=new RegExp("[~\\*/\\[\\]]"),pa=function(t){this.e_=t},ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.n_=function(t){if(2!==t.s_)throw t.i_(1===t.s_?this.e_+"() can only appear at the top level of your update data":this.e_+"() cannot be used with set() unless you pass {merge:true}");return t.We.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(pa);function ga(t,e,n){return new ja({s_:3,r_:e.settings.r_,methodName:t.e_,o_:n},e.U,e.serializer,e.ignoreUndefinedProperties)}var ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.n_=function(t){return new an(t.path,new Ye)},e.prototype.isEqual=function(t){return t instanceof e},e}(pa),va=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).a_=n,r}return r.__extends(e,t),e.prototype.n_=function(t){var e=ga(this,t,!0),n=this.a_.map((function(t){return Pa(t,e)})),r=new Je(n);return new an(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(pa),ba=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).a_=n,r}return r.__extends(e,t),e.prototype.n_=function(t){var e=ga(this,t,!0),n=this.a_.map((function(t){return Pa(t,e)})),r=new tn(n);return new an(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(pa),_a=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).c_=n,r}return r.__extends(e,t),e.prototype.n_=function(t){var e=new nn(t.serializer,be(t.serializer,this.c_));return new an(t.path,e)},e.prototype.isEqual=function(t){return this===t},e}(pa),wa=function(){function t(t,e){if(k("GeoPoint",arguments,2),R("GeoPoint","number",1,t),R("GeoPoint","number",2,e),!isFinite(t)||t<-90||t>90)throw new h(l.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new h(l.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this.u_=t,this.h_=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this.u_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this.h_},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.u_===t.u_&&this.h_===t.h_},t.prototype.toJSON=function(){return{latitude:this.u_,longitude:this.h_}},t.prototype.Y=function(t){return X(this.u_,t.u_)||X(this.h_,t.h_)},t}(),Ea=function(t){this.l_=t},Oa=/^__.*__$/,Sa=function(t,e,n){this.__=t,this.f_=e,this.d_=n},xa=function(){function t(t,e,n){this.data=t,this.We=e,this.fieldTransforms=n}return t.prototype.w_=function(t,e){var n=[];return n.push(null!==this.We?new vn(t,this.data,this.We,e):new yn(t,this.data,e)),this.fieldTransforms.length>0&&n.push(new _n(t,this.fieldTransforms)),n},t}(),Ca=function(){function t(t,e,n){this.data=t,this.We=e,this.fieldTransforms=n}return t.prototype.w_=function(t,e){var n=[new vn(t,this.data,this.We,e)];return this.fieldTransforms.length>0&&n.push(new _n(t,this.fieldTransforms)),n},t}();function Ta(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw v()}}var ja=function(){function t(t,e,n,r,i,o){this.settings=t,this.U=e,this.serializer
1=n,this.ignoreUndefinedProperties=r,void 0===i&&this.m_(),this.fieldTransforms=i||[],this.We=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"s_",{get:function(){return this.settings.s_},enumerable:!1,configurable:!0}),t.prototype.T_=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.U,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.We)},t.prototype.E_=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.T_({path:n,o_:!1});return r.I_(t),r},t.prototype.A_=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.T_({path:n,o_:!1});return r.m_(),r},t.prototype.R_=function(t){return this.T_({path:void 0,o_:!0})},t.prototype.i_=function(t){return Ua(t,this.settings.methodName,this.settings.g_||!1,this.path,this.settings.r_)},t.prototype.contains=function(t){return void 0!==this.We.find((function(e){return t.T(e)}))||void 0!==this.fieldTransforms.find((function(e){return t.T(e.field)}))},t.prototype.m_=function(){if(this.path)for(var t=0;t<this.path.length;t++)this.I_(this.path.get(t))},t.prototype.I_=function(t){if(0===t.length)throw this.i_("Document fields must not be empty");if(Ta(this.s_)&&Oa.test(t))throw this.i_('Document fields cannot begin and end with "__"')},t}(),Aa=function(){function t(t,e,n){this.U=t,this.ignoreUndefinedProperties=e,this.serializer=n||oa(t)}return t.prototype.P_=function(t,e,n,r){return void 0===r&&(r=!1),new ja({s_:t,methodName:e,r_:n,path:T.P(),o_:!1,g_:r},this.U,this.serializer,this.ignoreUndefinedProperties)},t}();function ka(t,e,n,r,i,o){void 0===o&&(o={});var s=t.P_(o.merge||o.mergeFields?2:0,e,n,i);La("Data must be an object, but it was:",s,r);var a,u,c=Fa(r,s);if(o.merge)a=new sn(s.We),u=s.fieldTransforms;else if(o.mergeFields){for(var f=[],d=0,p=o.mergeFields;d<p.length;d++){var m=p[d],g=void 0;if(m instanceof ha)g=m.t_;else{if("string"!=typeof m)throw v();g=Va(e,m,n)}if(!s.contains(g))throw new h(l.INVALID_ARGUMENT,"Field '"+g+"' is specified in your field mask but missing from your input data.");Ba(f,g)||f.push(g)}a=new sn(f),u=s.fieldTransforms.filter((function(t){return a.Ye(t.field)}))}else a=null,u=s.fieldTransforms;return new xa(new xn(c),a,u)}function Ia(t,e,n,r){var i=t.P_(1,e,n);La("Data must be an object, but it was:",i,r);var o=[],s=new Cn;E(r,(function(t,r){var a=Va(e,t,n),u=i.A_(a);if(r instanceof ma||r instanceof Ea&&r.l_ instanceof ma)o.push(a);else{var c=Pa(r,u);null!=c&&(o.push(a),s.set(a,c))}}));var a=new sn(o);return new Ca(s.Xe(),a,i.fieldTransforms)}function Da(t,e,n,r,i,o){var s=t.P_(1,e,n),a=[Ma(e,r,n)],u=[i];if(o.length%2!=0)throw new h(l.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var c=0;c<o.length;c+=2)a.push(Ma(e,o[c])),u.push(o[c+1]);for(var f=[],d=new Cn,p=a.length-1;p>=0;--p)if(!Ba(f,a[p])){var m=a[p],g=u[p],y=s.A_(m);if(g instanceof ma||g instanceof Ea&&g.l_ instanceof ma)f.push(m);else{var v=Pa(g,y);null!=v&&(f.push(m),d.set(m,v))}}var b=new sn(f);return new Ca(d.Xe(),b,s.fieldTransforms)}function Ra(t,e,n,r){return void 0===r&&(r=!1),Pa(n,t.P_(r?4:3,e))}function Pa(t,e){if(t instanceof Ea&&(t=t.l_),Na(t))return La("Unsupported field value:",e,t),Fa(t,e);if(t instanceof pa)return function(t,e){if(!Ta(e.s_))throw e.i_(t.e_+"() can only be used with update() and set()");if(!e.path)throw e.i_(t.e_+"() is not currently supported inside arrays");var n=t.n_(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(e.path&&e.We.push(e.path),t instanceof Array){if(e.settings.o_&&4!==e.s_)throw e.i_("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i<o.length;i++){var s=Pa(o[i],e.R_(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 be(e.serializer,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=at.fromDate(t);return{timestampValue:_e(e.serializer,n)}}if(t instanceof at){var r=new at(t.seconds,1e3*Math.floor(t.nanoseconds/1e3));return{timestampValue:_e(e.serializer,r)}}if(t instanceof wa)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof tt)return{bytesValue:we(e.serializer,t.q)};if(t instanceof Sa){var i=e.U,o=t.__;if(!o.isEqual(i))throw e.i_("Document reference is for database "+o.projectId+"/"+o.database+" but should be for database "+i.projectId+"/"+i.database);return{referenceValue:Se(t.__||e.U,t.f_.path)}}if(void 0===t&&e.ignoreUndefinedProperties)return null;throw e.i_("Unsupported field value: "+B(t))}(t,e)}function Fa(t,e){var n={};return O(t)?e.path&&e.path.length>0&&e.We.push(e.path):E(t,(function(t,r){var i=Pa(r,e.E_(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function Na(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof at||t instanceof wa||t instanceof tt||t instanceof Sa||t instanceof pa)}function La(t,e,n){if(!Na(n)||!U(n)){var r=B(n);throw e.i_("an object"===r?t+" a custom object":t+" "+r)}}function Ma(t,e,n){if(e instanceof ha)return e.t_;if("string"==typeof e)return Va(t,e);throw Ua("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}function Va(t,e,n){try{return function(t){if(t.search(da)>=0)throw new h(l.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(fa.bind.apply(fa,r.__spreadArrays([void 0],t.split("."))))}catch(r){throw new h(l.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(e).t_}catch(e){throw Ua((i=e)instanceof Error?i.message:i.toString(),t,!1,void 0,n)}var i}function Ua(t,e,n,r,i){var o=r&&!r.m(),s=void 0!==i,a="Function "+e+"() called with invali
1d data";n&&(a+=" (via `toFirestore()`)");var u="";return(o||s)&&(u+=" (found",o&&(u+=" in field "+r),s&&(u+=" in document "+i),u+=")"),new h(l.INVALID_ARGUMENT,(a+=". ")+t+u)}function Ba(t,e){return t.some((function(t){return t.isEqual(e)}))}var qa=function(){function t(t){this.Ku=t,this.y_=new Map,this.mutations=[],this.V_=!1,this.p_=null,this.b_=new Set}return t.prototype.v_=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n=this;return r.__generator(this,(function(i){switch(i.label){case 0:if(this.S_(),this.mutations.length>0)throw new h(l.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,s,a,u;return r.__generator(this,(function(r){switch(r.label){case 0:return n=_(t),i=ke(n.serializer)+"/documents",o={documents:e.map((function(t){return Ce(n.serializer,t)}))},[4,n.ku("BatchGetDocuments",i,o)];case 1:return s=r.sent(),a=new Map,s.forEach((function(t){var e=function(t,e){return"found"in e?function(t,e){b(!!e.found);var n=Te(t,e.found.name),r=Oe(e.found.updateTime),i=new xn({mapValue:{fields:e.found.fields}});return new An(n,r,i,{})}(t,e):"missing"in e?function(t,e){b(!!e.missing),b(!!e.readTime);var n=Te(t,e.missing),r=Oe(e.readTime);return new kn(n,r)}(t,e):v()}(n.serializer,t);a.set(e.key.toString(),e)})),u=[],[2,(e.forEach((function(t){var e=a.get(t.toString());b(!!e),u.push(e)})),u)]}}))}))}(this.Ku,t)];case 1:return[2,((e=i.sent()).forEach((function(t){t instanceof kn||t instanceof An?n.D_(t):v()})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.w_(t,this.Ge(t))),this.b_.add(t.toString())},t.prototype.update=function(t,e){try{this.write(e.w_(t,this.C_(t)))}catch(t){this.p_=t}this.b_.add(t.toString())},t.prototype.delete=function(t){this.write([new On(t,this.Ge(t))]),this.b_.add(t.toString())},t.prototype.commit=function(){return r.__awaiter(this,void 0,void 0,(function(){var t,e=this;return r.__generator(this,(function(n){switch(n.label){case 0:if(this.S_(),this.p_)throw this.p_;return t=this.y_,this.mutations.forEach((function(e){t.delete(e.key.toString())})),t.forEach((function(t,n){var r=j.D(n);e.mutations.push(new Sn(r,e.Ge(r)))})),[4,function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:return n=_(t),i=ke(n.serializer)+"/documents",o={writes:e.map((function(t){return Re(n.serializer,t)}))},[4,n.$u("Commit",i,o)];case 1:return r.sent(),[2]}}))}))}(this.Ku,this.mutations)];case 1:return n.sent(),this.V_=!0,[2]}}))}))},t.prototype.D_=function(t){var e;if(t instanceof An)e=t.version;else{if(!(t instanceof kn))throw v();e=ut.min()}var n=this.y_.get(t.key.toString());if(n){if(!e.isEqual(n))throw new h(l.ABORTED,"Document version changed between two reads.")}else this.y_.set(t.key.toString(),e)},t.prototype.Ge=function(t){var e=this.y_.get(t.toString());return!this.b_.has(t.toString())&&e?cn.updateTime(e):cn.ze()},t.prototype.C_=function(t){var e=this.y_.get(t.toString());if(!this.b_.has(t.toString())&&e){if(e.isEqual(ut.min()))throw new h(l.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return cn.updateTime(e)}return cn.exists(!0)},t.prototype.write=function(t){this.S_(),this.mutations=this.mutations.concat(t)},t.prototype.S_=function(){},t}(),Ha=function(){function t(t,e,n,r){this.cs=t,this.Ku=e,this.updateFunction=n,this.ls=r,this.N_=5,this.ys=new dr(this.cs,"transaction_retry")}return t.prototype.run=function(){this.F_()},t.prototype.F_=function(){var t=this;this.ys.gn((function(){return r.__awaiter(t,void 0,void 0,(function(){var t,e,n=this;return r.__generator(this,(function(r){return t=new qa(this.Ku),(e=this.x_(t))&&e.then((function(e){n.cs.ws((function(){return t.commit().then((function(){n.ls.resolve(e)})).catch((function(t){n.k_(t)}))}))})).catch((function(t){n.k_(t)})),[2]}))}))}))},t.prototype.x_=function(t){try{var e=this.updateFunction(t);return!ct(e)&&e.catch&&e.then?e:(this.ls.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.ls.reject(t),null}},t.prototype.k_=function(t){var e=this;this.N_>0&&this.M_(t)?(this.N_-=1,this.cs.ws((function(){return e.F_(),Promise.resolve()}))):this.ls.reject(t)},t.prototype.M_=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!wt(e)}return!1},t}(),za=function(){function t(t,e){this.credentials=t,this.cs=e,this.clientId=K.k(),this.O_=ne
1w fr}return t.prototype.start=function(t,e,n,i){var o=this;this.L_(),this.bl=t;var s=new fr,a=!1;return this.credentials.Hc((function(t){if(!a)return a=!0,p("FirestoreClient","Initializing. user=",t.uid),o.B_(e,n,i,t,s).then(o.O_.resolve,o.O_.reject);o.cs.Cs((function(){return function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i;return r.__generator(this,(function(r){switch(r.label){case 0:return(n=_(t)).cs.xs(),p("RemoteStore","RemoteStore received new credentials"),i=Ko(n),n.Yu.add(3),[4,Bo(n)];case 1:return r.sent(),i&&n.th.set("Unknown"),[4,n.Gu.Jl(e)];case 2:return r.sent(),n.Yu.delete(3),[4,Uo(n)];case 3:return r.sent(),[2]}}))}))}(o.ph,t)}))})),this.cs.ws((function(){return o.O_.promise})),s.promise},t.prototype.enableNetwork=function(){var t=this;return this.L_(),this.cs.enqueue((function(){return t.persistence.tc(!0),function(t){var e=_(t);return e.Yu.delete(0),Uo(e)}(t.ph)}))},t.prototype.B_=function(t,e,n,i,o){return r.__awaiter(this,void 0,void 0,(function(){var s,a,u=this;return r.__generator(this,(function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),[4,t.initialize(s={cs:this.cs,bl:this.bl,clientId:this.clientId,credentials:this.credentials,Wl:i,Dh:100,persistenceSettings:n})];case 1:return c.sent(),[4,e.initialize(t,s)];case 2:return c.sent(),this.persistence=t.persistence,this.Sh=t.Sh,this.ju=t.ju,this.ql=t.ql,this.Ku=e.Ku,this.ph=e.ph,this.fi=e.fi,this.q_=e.bh,this.q_.Us=vs.bind(null,this.fi),this.q_.js=_s.bind(null,this.fi),this.persistence.Za((function(){return r.__awaiter(u,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return[4,this.terminate()];case 1:return t.sent(),[2]}}))}))})),o.resolve(),[3,4];case 3:if(a=c.sent(),o.reject(a),!this.U_(a))throw a;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+a),this.B_(new aa,new ca,{jl:!1},i,o))];case 4:return[2]}}
1))}))},t.prototype.U_=function(t){return"FirebaseError"===t.name?t.code===l.FAILED_PRECONDITION||t.code===l.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code},t.prototype.L_=function(){if(this.cs.ps)throw new h(l.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.disableNetwork=function(){var t=this;return this.L_(),this.cs.enqueue((function(){return t.persistence.tc(!1),function(t){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(n){switch(n.label){case 0:return(e=_(t)).Yu.add(0),[4,Bo(e)];case 1:return n.sent(),e.th.set("Offline"),[2]}}))}))}(t.ph)}))},t.prototype.terminate=function(){var t=this;this.cs.Ds();var e=new fr;return this.cs.bs((function(){return r.__awaiter(t,void 0,void 0,(function(){var t,n;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),this.ql&&this.ql.stop(),[4,qo(this.ph)];case 1:return r.sent(),[4,this.Sh.Di()];case 2:return r.sent(),[4,this.persistence.Di()];case 3:return r.sent(),this.credentials.Yc(),e.resolve(),[3,5];case 4:return t=r.sent(),n=jr(t,"Failed to shutdown persistence"),e.reject(n),[3,5];case 5:return[2]}}
1))}))})),e.promise},t.prototype.waitForPendingWrites=function(){var t=this;this.L_();var e=new fr;return this.cs.ws((function(){return function(t,e){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,s,a;return r.__generator(this,(function(r){switch(r.label){case 0:Ko((n=_(t)).ph)||p("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,function(t){var e=_(t);return e.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(t){return e.Sr.qo(t)}))}(n.ju)];case 2:return-1===(i=r.sent())?[2,void e.resolve()]:((o=n.Lh.get(i)||[]).push(e),n.Lh.set(i,o),[3,4]);case 3:return s=r.sent(),a=jr(s,"Initialization of waitForPendingWrites() operation failed"),e.reject(a),[3,4];case 4:return[2]}}))}))}(t.fi,e)})),e.promise},t.prototype.listen=function(t,e,n){var r=this;this.L_();var i=new la(n),o=new Nr(t,i,e);return this.cs.ws((function(){return Ir(r.q_,o)})),function(){i.Zl(),r.cs.ws((function(){return Dr(r.q_,o)}))}},t.prototype.Q_=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n=this;return r.__generator(this,(function(i){switch(i.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return i.sent(),e=new fr,[2,(this.cs.ws((function(){return function(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,s;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,function(t,e){var n=_(t);return n.persistence.runTransaction("read document","readonly",(function(t){return n.Cc.Cr(t,e)}))}(t,e)];case 1:return(i=r.sent())instanceof An?n.resolve(i):i instanceof kn?n.resolve(null):n.reject(new h(l.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.)")),[3,3];case 2:return o=r.sent(),s=jr(o,"Failed to get document '"+e+" from cache"),n.reject(s),[3,3];case 3:return[2]}}
1))}))}(n.ju,t,e)})),e.promise)]}}))}))},t.prototype.W_=function(t,e){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,(function(){var n,i=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return r.sent(),n=new fr,[2,(this.cs.ws((function(){return function(t,e,n,r,i){var o=new la({next:function(o){e.ws((function(){return Dr(t,s)}));var a=o.docs.has(n);!a&&o.fromCache?i.reject(new h(l.UNAVAILABLE,"Failed to get document because the client is offline.")):a&&o.fromCache&&r&&"server"===r.source?i.reject(new h(l.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.)')):i.resolve(o)},error:function(t){return i.reject(t)}}),s=new Nr(Pn(n.path),o,{includeMetadataChanges:!0,Xs:!0});return Ir(t,s)}(i.q_,i.cs,t,e,n)})),n.promise)]}}))}))},t.prototype.j_=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n=this;return r.__generator(this,(function(i){switch(i.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return i.sent(),e=new fr,[2,(this.cs.ws((function(){return function(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,s,a,u,c;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,Eo(t,e,!0)];case 1:return i=r.sent(),o=new ps(e,i.Fc),s=o.wh(i.documents),a=o.yr(s,!1),n.resolve(a.snapshot),[3,3];case 2:return u=r.sent(),c=jr(u,"Failed to execute query '"+e+" against cache"),n.reject(c),[3,3];case 3:return[2]}}
1))}))}(n.ju,t,e)})),e.promise)]}}))}))},t.prototype.K_=function(t,e){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,(function(){var n,i=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return r.sent(),n=new fr,[2,(this.cs.ws((function(){return function(t,e,n,r,i){var o=new la({next:function(n){e.ws((function(){return Dr(t,s)})),n.fromCache&&"server"===r.source?i.reject(new h(l.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.)')):i.resolve(n)},error:function(t){return i.reject(t)}}),s=new Nr(n,o,{includeMetadataChanges:!0,Xs:!0});return Ir(t,s)}(i.q_,i.cs,t,e,n)})),n.promise)]}}))}))},t.prototype.write=function(t){var e=this;this.L_();var n=new fr;return this.cs.ws((function(){return function(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,s,a;return r.__generator(this,(function(r){switch(r.label){case 0:i=Qs(t),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,function(t,e){var n,r=_(t),i=at.now(),o=e.reduce((function(t,e){return t.add(e.key)}),Ft());return r.persistence.runTransaction("Locally write mutations","readwrite",(function(t){return r.Cc.kr(t,o).next((function(o){n=o;for(var s=[],a=0,u=e;a<u.length;a++){var c=u[a],l=pn(c,n.get(c.key));null!=l&&s.push(new vn(c.key,l,Tn(l.proto.mapValue),cn.exists(!0)))}return r.Sr.ko(t,i,s,e)}))})).then((function(t){var e=t.lr(n);return{batchId:t.batchId,wr:e}}))}(i.ju,e)];case 2:return o=r.sent(),i.Sh.xi(o.batchId),function(t,e,n){var r=t.Oh[t.currentUser.ti()];r||(r=new Ot(X)),r=r.ot(e,n),t.Oh[t.currentUser.ti()]=r}(i,o.batchId,n),[4,Rs(i,o.wr)];case 3:return r.sent(),[4,ns(i.ph)];case 4:return r.sent(),[3,6];case 5:return s=r.sent(),a=jr(s,"Failed to persist write"),n.reject(a),[3,6];case 6:return[2]}}
1))}))}(e.fi,t,n)})),n.promise},t.prototype.U=function(){return this.bl.U},t.prototype.G_=function(t){var e=this;this.L_();var n=new la(t);return this.cs.ws((function(){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,function(t,e){_(t).qs.add(e),e.next()}(this.q_,n)]}))}))})),function(){n.Zl(),e.cs.ws((function(){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,function(t,e){_(t).qs.delete(e)}(this.q_,n)]}))}))}))}},Object.defineProperty(t.prototype,"z_",{get:function(){return this.cs.ps},enumerable:!1,configurable:!0}),t.prototype.transaction=function(t){var e=this;this.L_();var n=new fr;return this.cs.ws((function(){return new Ha(e.cs,e.Ku,t,n).run(),Promise.resolve()})),n.promise},t}();function Qa(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 Ga=function(){function t(t,e,n,r,i){this.U=t,this.timestampsInSnapshots=e,this.H_=n,this.Y_=r,this.J_=i}return t.prototype.X_=function(t){switch(Zt(t)){case 0:return null;case 1:return t.booleanValue;case 2:return se(t.integerValue||t.doubleValue);case 3:return this.Z_(t.timestampValue);case 4:return this.tf(t);case 5:return t.stringValue;case 6:return this.J_(ae(t.bytesValue));case 7:return this.ef(t.referenceValue);case 8:return this.nf(t.geoPointValue);case 9:return this.sf(t.arrayValue);case 10:return this.if(t.mapValue);default:throw v()}},t.prototype.if=function(t){var e=this,n={};return E(t.fields||{},(function(t,r){n[t]=e.X_(r)})),n},t.prototype.nf=function(t){return new wa(se(t.latitude),se(t.longitude))},t.prototype.sf=function(t){var e=this;return(t.values||[]).map((function(t){return e.X_(t)}))},t.prototype.tf=function(t){switch(this.H_){case"previous":var e=function t(e){var n=e.mapValue.fields.__previous_value__;return Xt(n)?t(n):n}(t);return null==e?null:this.X_(e);case"estimate":return this.Z_(Yt(t));default:return null}},t.prototype.Z_=function(t){var e=oe(t),n=new at(e.seconds,e.nanos);return this.timestampsInSnapshots?n:n.toDate()},t.prototype.ef=function(t){var e=x.g(t);b(Ge(e));var n=new ot(e.get(1),e.get(3)),r=new j(e.u(5));return n.isEqual(this.U)||m("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.U.projectId+"/"+this.U.database+") instead."),this.Y_(r)},t}(),Wa=oi.ho,$a=function(){function t(t){var e,n,r,i,o;if(void 0===t.host){if(void 0!==t.ssl)throw new h(l.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else F("settings","non-empty string","host",t.host),this.host=t.host,N("settings","boolean","ssl",t.ssl),this.ssl=null===(e=t.ssl)||void 0===e||e;if(H("settings",t,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling","experimentalAutoDetectLongPolling","ignoreUndefinedProperties"]),N("settings","object","credentials",t.credentials),this.credentials=t.credentials,N("settings","boolean","timestampsInSnapshots",t.timestampsInSnapshots),N("settings","boolean","ignoreUndefinedProperties",t.ignoreUndefinedProperties),!0===t.timestampsInSnapshots?m("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===t.timestampsInSnapshots&&m("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,this.ignoreUndefinedProperties=null!==(r=t.ignoreUndefinedProperties)&&void 0!==r&&r,N("settings","number","cacheSizeBytes",t.cacheSizeBytes),void 0===t.cacheSizeBytes)this.cacheSizeBytes=oi._o;else{if(t.cacheSizeBytes!==Wa&&t.cacheSizeBytes<oi.lo)throw new h(l.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+oi.lo);this.cacheSizeBytes=t.cacheSizeBytes}N("settings","boolean","experimentalForceLongPolling",t.experimentalForceLongPolling),this.experimentalForceLongPolling=null!==(i=t.experimentalForceLongPolling)&&void 0!==i&&i,N("settings","boolean","experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling),this.experimentalAutoDetectLongPolling=null!==(o=t.experimentalAutoDetectLongPolling)&&void 0!==o&&o,function(t,e,n,r){if(!0===e&&!0===r)throw new h(l.INVALID_ARGUMENT,"experimentalForceLongPolling and experimentalAutoDetectLongPolling cannot be used together.")}(0,t.experimentalForceLongPolling,0,t.experimentalAutoDetectLongPolling)}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.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties},t}(),Ka=function(){function t(e,n,i,o){var s=this;if(void 0===i&&(i=new aa),void 0===o&&(o=new ca),this.rf=i,this.af=o,this.cf=null,this.uf=new Tr,this.INTERNAL={delete:function(){return r.__awaiter(s,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.hf(),[4,this.lf.terminate()];case 1:return t.sent(),[2]}}))}))}}
1,"object"==typeof e.options){var a=e;this.cf=a,this.__=t._f(a),this.ff=a.name,this.df=new Io(n)}else{var u=e;if(!u.projectId)throw new h(l.INVALID_ARGUMENT,"Must provide projectId");this.__=new ot(u.projectId,u.database),this.ff="[DEFAULT]",this.df=new ko}this.wf=new $a({})}return Object.defineProperty(t.prototype,"mf",{get:function(){return this.Tf||(this.Tf=new Aa(this.__,this.wf.ignoreUndefinedProperties)),this.Tf},enumerable:!1,configurable:!0}),t.prototype.settings=function(t){k("Firestore.settings",arguments,1),R("Firestore.settings","object",1,t),t.merge&&delete(t=Object.assign(Object.assign({},this.wf),t)).merge;var e=new $a(t);if(this.lf&&!this.wf.isEqual(e))throw new h(l.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.wf=e,void 0!==e.credentials&&(this.df=function(t){if(!t)return new ko;switch(t.type){case"gapi":var e=t.client;return b(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new Ro(e,t.sessionIndex||"0");case"provider":return t.client;default:throw new h(l.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},t.prototype.enableNetwork=function(){return this.hf(),this.lf.enableNetwork()},t.prototype.disableNetwork=function(){return this.hf(),this.lf.disableNetwork()},t.prototype.enablePersistence=function(t){var e,n;if(this.lf)throw new h(l.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,i=!1;if(t&&(void 0!==t.experimentalTabSynchronization&&m("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,i=!!t.experimentalForceOwningTab&&t.experimentalForceOwningTab,r&&i))throw new h(l.INVALID_ARGUMENT,"The 'experimentalForceOwningTab' setting cannot be used with 'synchronizeTabs'.");return this.Ef(this.rf,this.af,{jl:!0,cacheSizeBytes:this.wf.cacheSizeBytes,synchronizeTabs:r,ka:i})},t.prototype.clearPersistence=function(){return r.__awaiter(this,void 0,void 0,(function(){var t,e=this;return r.__generator(this,(function(n){if(void 0!==this.lf&&!this.lf.z_)throw new h(l.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");return t=new fr,[2,(this.uf.bs((function(){return r.__awaiter(e,void 0,void 0,(function(){var e;return r.__generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.rf.clearPersistence(this.__,this.ff)];case 1:return n.sent(),t.resolve(),[3,3];case 2:return e=n.sent(),t.reject(e),[3,3];case 3:return[2]}}
1))}))})),t.promise)]}))}))},t.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(t.prototype,"If",{get:function(){return this.hf(),this.lf.z_},enumerable:!1,configurable:!0}),t.prototype.waitForPendingWrites=function(){return this.hf(),this.lf.waitForPendingWrites()},t.prototype.onSnapshotsInSync=function(t){return this.hf(),Qa(t)?this.lf.G_(t):(R("Firestore.onSnapshotsInSync","function",1,t),this.lf.G_({next:t}))},t.prototype.hf=function(){return this.lf||this.Ef(new aa,new ca,{jl:!1}),this.lf},t.prototype.Af=function(){return new it(this.__,this.ff,this.wf.host,this.wf.ssl,this.wf.experimentalForceLongPolling,this.wf.experimentalAutoDetectLongPolling)},t.prototype.Ef=function(t,e,n){var r=this.Af();return this.lf=new za(this.df,this.uf),this.lf.start(r,t,e,n)},t._f=function(t){if(!Object.prototype.hasOwnProperty.call(t.options,"projectId"))throw new h(l.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var e=t.options.projectId;if(!e||"string"!=typeof e)throw new h(l.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new ot(e)},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.cf)throw new h(l.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.cf},enumerable:!1,configurable:!0}),t.prototype.collection=function(t){return k("Firestore.collection",arguments,1),R("Firestore.collection","non-empty string",1,t),this.hf(),new lu(x.g(t),this,null)},t.prototype.doc=function(t){return k("Firestore.doc",arguments,1),R("Firestore.doc","non-empty string",1,t),this.hf(),Ja.Rf(x.g(t),this,null)},t.prototype.collectionGroup=function(t){if(k("Firestore.collectionGroup",arguments,1),R("Firestore.collectionGroup","non-empty string",1,t),t.indexOf("/")>=0)throw new h(l.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.hf(),new uu(function(t){return new Dn(x.P(),t)}(t),this,null)},t.prototype.runTransaction=function(t){var e=this;return k("Firestore.runTransaction",arguments,1),R("Firestore.runTransaction","function",1,t),this.hf().transaction((function(n){return t(new Xa(e,n))}))},t.prototype.batch=function(){return this.hf(),new Ya(this)},Object.defineProperty(t,"logLevel",{get:function(){switch(d()){case o.LogLevel.DEBUG:return"debug";case o.LogLevel.ERROR:return"error";case o.LogLevel.SILENT:return"silent";case o.LogLevel.WARN:return"warn";case o.LogLevel.INFO:return"info";case o.LogLevel.VERBOSE:return"verbose";default:return"error"}},enumerable:!1,configurable:!0}),t.setLogLevel=function(t){k("Firestore.setLogLevel",arguments,1),M("setLogLevel",["debug","error","silent","warn","info","verbose"],1,t),f.setLogLevel(t)},t.prototype.gf=function(){return this.wf.timestampsInSnapshots},t.prototype.Pf=function(){return this.wf},t}(),Xa=function(){function t(t,e){this.yf=t,this.Vf=e}return t.prototype.get=function(t){var e=this;k("Transaction.get",arguments,1);var n=pu("Transaction.get",t,this.yf);return this.Vf.v_([n.f_]).then((function(t){if(!t||1!==t.length)return v();var r=t[0];if(r instanceof kn)return new tu(e.yf,n.f_,null,!1,!1,n.d_);if(r instanceof An)return new tu(e.yf,n.f_,r,!1,!1,n.d_);throw v()}))},t.prototype.set=function(t,e,n){D("Transaction.set",arguments,2,3);var r=pu("Transaction.set",t,this.yf);n=hu("Transaction.set",n);var i=gu(r.d_,e,n),o=ka(this.yf.mf,"Transaction.set",r.f_,i,null!==r.d_,n);return this.Vf.set(r.f_,o),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 fa?(I("Transaction.update",arguments,3),r=pu("Transaction.update",t,this.yf),i=Da(this.yf.mf,"Transaction.update",r.f_,e,n,o)):(k("Transaction.update",arguments,2),r=pu("Transaction.update",t,this.yf),i=Ia(this.yf.mf,"Transaction.update",r.f_,e)),this.Vf.update(r.f_,i),this},t.prototype.delete=function(t){k("Transaction.delete",arguments,1);var e=pu("Transaction.delete",t,this.yf);return this.Vf.delete(e.f_),this},t}(),Ya=function(){function t(t){this.yf=t,this.pf=[],this.bf=!1}return t.prototype.set=function(t,e,n){D("WriteBatch.set",arguments,2,3),this.vf();var r=pu("WriteBatch.set",t,this.yf);n=hu("WriteBatch.set",n);var i=gu(r.d_,e,n),o=ka(this.yf.mf,"WriteBatch.set",r.f_,i,null!==r.d_,n);return this.pf=this.pf.concat(o.w_(r.f_,cn.ze())),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.vf(),"string"==typeof e||e instanceof fa?(I("WriteBatch.update",arguments,3),r=pu("WriteBatch.update",t,this.yf),i=Da(this.yf.mf,"WriteBatch.update",r.f_,e,n,o)):(k("WriteBatch.update",arguments,2),r=pu("WriteBatch.update",t,this.yf),i=Ia(this.yf.mf,"WriteBatch.update",r.f_,e)),this.pf=this.pf.concat(i.w_(r.f_,cn.exists(!0))),this},t.prototype.delete=function(t){k("WriteBatch.delete",arguments,1
1),this.vf();var e=pu("WriteBatch.delete",t,this.yf);return this.pf=this.pf.concat(new On(e.f_,cn.ze())),this},t.prototype.commit=function(){return this.vf(),this.bf=!0,this.pf.length>0?this.yf.hf().write(this.pf):Promise.resolve()},t.prototype.vf=function(){if(this.bf)throw new h(l.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}(),Ja=function(t){function e(e,n,r){var i=this;return(i=t.call(this,n.__,e,r)||this).f_=e,i.firestore=n,i.d_=r,i.lf=i.firestore.hf(),i}return r.__extends(e,t),e.Rf=function(t,n,r){if(t.length%2!=0)throw new h(l.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.R()+" has "+t.length);return new e(new j(t),n,r)},Object.defineProperty(e.prototype,"id",{get:function(){return this.f_.path._()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new lu(this.f_.path.h(),this.firestore,this.d_)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.f_.path.R()},enumerable:!1,configurable:!0}),e.prototype.collection=function(t){if(k("DocumentReference.collection",arguments,1),R("DocumentReference.collection","non-empty string",1,t),!t)throw new h(l.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var e=x.g(t);return new lu(this.f_.path.child(e),this.firestore,null)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw z("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this.f_.isEqual(t.f_)&&this.d_===t.d_},e.prototype.set=function(t,e){D("DocumentReference.set",arguments,1,2),e=hu("DocumentReference.set",e);var n=gu(this.d_,t,e),r=ka(this.firestore.mf,"DocumentReference.set",this.f_,n,null!==this.d_,e);return this.lf.write(r.w_(this.f_,cn.ze()))},e.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 fa?(I("DocumentReference.update",arguments,2),n=Da(this.firestore.mf,"DocumentReference.update",this.f_,t,e,r)):(k("DocumentReference.update",arguments,1),n=Ia(this.firestore.mf,"DocumentReference.update",this.f_,t)),this.lf.write(n.w_(this.f_,cn.exists(!0)))},e.prototype.delete=function(){return k("DocumentReference.delete",arguments,0),this.lf.write([new On(this.f_,cn.ze())])},e.prototype.onSnapshot=function(){for(var t,e,n,r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];D("DocumentReference.onSnapshot",arguments,1,4);var s={includeMetadataChanges:!1},a=0;"object"!=typeof i[a]||Qa(i[a])||(H("DocumentReference.onSnapshot",s=i[a],["includeMetadataChanges"]),N("DocumentReference.onSnapshot","boolean","includeMetadataChanges",s.includeMetadataChanges),a++);var u={includeMetadataChanges:s.includeMetadataChanges};if(Qa(i[a])){var c=i[a];i[a]=null===(t=c.next)||void 0===t?void 0:t.bind(c),i[a+1]=null===(e=c.error)||void 0===e?void 0:e.bind(c),i[a+2]=null===(n=c.complete)||void 0===n?void 0:n.bind(c)}else R("DocumentReference.onSnapshot","function",a,i[a]),P("DocumentReference.onSnapshot","function",a+1,i[a+1]),P("DocumentReference.onSnapshot","function",a+2,i[a+2]);var l={next:function(t){i[a]&&i[a](r.Sf(t))},error:i[a+1],complete:i[a+2]};return this.lf.listen(Pn(this.f_.path),u,l)},e.prototype.get=function(t){var e=this;D("DocumentReference.get",arguments,0,1),du("DocumentReference.get",t);var n=this.firestore.hf();return t&&"cache"===t.source?n.Q_(this.f_).then((function(t){return new tu(e.firestore,e.f_,t,!0,t instanceof An&&t.Je,e.d_)})):n.W_(this.f_,t).then((function(t){return e.Sf(t)}))},e.prototype.withConverter=function(t){return new e(this.f_,this.firestore,t)},e.prototype.Sf=function(t){var e=t.docs.get(this.f_);return new tu(this.firestore,this.f_,e,t.fromCache,t.hasPendingWrites,this.d_)},e}(Sa),Za=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}(),tu=function(){function t(t,e,n,r,i,o){this.yf=t,this.f_=e,this.Df=n,this.Cf=r,this.Nf=i,this.d_=o}return t.prototype.data=function(t){var e=this;if(D("DocumentSnapshot.data",arguments,0,1),t=fu("DocumentSnapshot.data",t),this.Df){if(this.d_){var n=new eu(this.yf,this.f_,this.Df,this.Cf,this.Nf,null);return this.d_.fromFirestore(n,t)}return new Ga(this.yf.__,this.yf.gf(),t.serverTimestamps||"none",(function(t){return new Ja(t,e.yf,null)}),(function(t){return new rt(t)})).X_(this.Df.rn())}},t.prototype.get=function(t,e){var n=this;if(D("DocumentSnapshot.get",arguments,1,2),e=fu("DocumentSnapshot.get",e),this.Df){var r=this.Df.data().field(Ma("DocumentSnapshot.get",t,this.f_));if(null!==r)return new Ga(this.yf.__,this.yf.gf(),e.serverTimestamps||"none",(function(t){return new Ja(t,n.yf,n.d_)}),(function(t){return new rt(t)})).X_(r)}},Object.defineProperty(t.prototype,"id",{get:function(){return this.f_.path._()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new Ja(this.f_,this.yf,this.d_)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return null!==this.Df},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return new Za(this.Nf,this.Cf)},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){if(!(e instanceof t))throw z("isEqual","DocumentSnapshot",1,e);return this.yf===e.yf&&this.Cf===e.Cf&&this.f_.isEqual(e.f_)&&(null===this.Df?null===e.Df:this.Df.isEqual(e.Df))&&this.d_===e.d_},t}(),eu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.data=function(e){return t.prototype.data.call(this,e)},e}(tu);function nu(t,e,n,r,i,o,s){var a;if(i.p()){if("array-contains"===o||"array-contains-any"===o)throw new h(l.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o||"not-in"===o){ou(s,o);for(var u=[],c=0,f=s;c<f.length;c++)u.push(iu(r,t,f[c]));a={arrayValue:{values:u}}}else a=iu(r,t,s)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||ou(s,o),a=Ra(n,e,s,"in"===o||"not-in"===o);var d=Xn.create(i,o,a);return function(t,e){if(e.hn()){var n=Mn(t);if(null!==n&&!n.isEqual(e.field))throw new h(l.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+e.field.toString()+"'");var r=Ln(t);null!==r&&su(0,e.field,r)}var i=function(t,e){for(var n=0,r=t.filters;n<r.length;n++){var i=r[n];if(e.indexOf(i.op)>=0)return i.op}return null}(t,function(t){switch(t){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(null!==i)throw new h(l.INVALID_ARGUMENT,i===e.op?"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter.":"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+i.toString()+"' filters.")}(t,d),d}function ru(t,e,n){if(null!==t.startAt)throw new h(l.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new h(l.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new cr(e,n);return function(t,e){if(null===Ln(t)){var n=Mn(t);null!==n&&su(0,n,e.field)}}(t,r),r}function iu(t,e,n){if("string"==typeof n){if(""===n)throw new h(l.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!Vn(e)&&-1!==n.indexOf("/"))throw new h(l.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var r=e.path.child(x.g(n));if(!j.F(r))throw new h(l.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+r+"' is not because it has an odd number of segments ("+r.length+").");return ue(t,new j(r))}if(n instanceof Sa)return ue(t,n.f_);throw new h(l.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+B(n)+".")}function ou(t,e){if(!Array.isArray(t)||0===t.length)throw new h(l.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new h(l.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.");if("in"===e||"array-contains-any"===e){if(t.indexOf(null)>=0)throw new h(l.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 h(l.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'NaN' in the value array.")}}function su(t,e,n){if(!n.isEqual(e))throw new h(l.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}function au(t){if(Nn(t)&&0===t.on.length)throw new h(l.UNIMPLEMENT
1ED,"limitToLast() queries require specifying at least one orderBy() clause")}var uu=function(){function t(t,e,n){this.Ff=t,this.firestore=e,this.d_=n}return t.prototype.where=function(e,n,r){k("Query.where",arguments,3),q("Query.where",3,r);var i=M("Query.where",["<","<=","==","!=",">=",">","array-contains","in","array-contains-any","not-in"],2,n),o=Ma("Query.where",e),s=nu(this.Ff,"Query.where",this.firestore.mf,this.firestore.__,o,i,r);return new t(function(t,e){var n=t.filters.concat([e]);return new Dn(t.path,t.collectionGroup,t.on.slice(),n,t.limit,t.an,t.startAt,t.endAt)}(this.Ff,s),this.firestore,this.d_)},t.prototype.orderBy=function(e,n){var r;if(D("Query.orderBy",arguments,1,2),P("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r="asc";else{if("desc"!==n)throw new h(l.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r="desc"}var i=Ma("Query.orderBy",e),o=ru(this.Ff,i,r);return new t(function(t,e){var n=t.on.concat([e]);return new Dn(t.path,t.collectionGroup,n,t.filters.slice(),t.limit,t.an,t.startAt,t.endAt)}(this.Ff,o),this.firestore,this.d_)},t.prototype.limit=function(e){return k("Query.limit",arguments,1),R("Query.limit","number",1,e),Q("Query.limit",1,e),new t(qn(this.Ff,e,"F"),this.firestore,this.d_)},t.prototype.limitToLast=function(e){return k("Query.limitToLast",arguments,1),R("Query.limitToLast","number",1,e),Q("Query.limitToLast",1,e),new t(qn(this.Ff,e,"L"),this.firestore,this.d_)},t.prototype.startAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];I("Query.startAt",arguments,1);var i=this.xf("Query.startAt",e,n,!0);return new t(Hn(this.Ff,i),this.firestore,this.d_)},t.prototype.startAfter=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];I("Query.startAfter",arguments,1);var i=this.xf("Query.startAfter",e,n,!1);return new t(Hn(this.Ff,i),this.firestore,this.d_)},t.prototype.endBefore=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];I("Query.endBefore",arguments,1);var i=this.xf("Query.endBefore",e,n,!0);return new t(zn(this.Ff,i),this.firestore,this.d_)},t.prototype.endAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];I("Query.endAt",arguments,1);var i=this.xf("Query.endAt",e,n,!1);return new t(zn(this.Ff,i),this.firestore,this.d_)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw z("isEqual","Query",1,e);return this.firestore===e.firestore&&Qn(this.Ff,e.Ff)&&this.d_===e.d_},t.prototype.withConverter=function(e){return new t(this.Ff,this.firestore,e)},t.prototype.xf=function(t,e,n,i){if(q(t,1,e),e instanceof tu)return k(t,r.__spreadArrays([e],n),1),function(t,e,n,r,i){if(!r)throw new h(l.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],s=0,a=Un(t);s<a.length;s++){var u=a[s];if(u.field.p())o.push(ue(e,r.key));else{var c=r.field(u.field);if(Xt(c))throw new h(l.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+u.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===c){var f=u.field.R();throw new h(l.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+f+"' (used as the orderBy) does not exist.")}o.push(c)}}return new or(o,i)}(this.Ff,this.firestore.__,t,e.Df,i);var o=[e].concat(n);return function(t,e,n,r,i,o){var s=t.on;if(i.length>s.length)throw new h(l.INVALID_ARGUMENT,"Too many arguments provided to "+r+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var a=[],u=0;u<i.length;u++){var c=i[u];if(s[u].field.p()){if("string"!=typeof c)throw new h(l.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+r+"(), but got a "+typeof c);if(!Vn(t)&&-1!==c.indexOf("/"))throw new h(l.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+r+"() must be a plain document ID, but '"+c+"' contains a slash.");var f=t.path.child(x.g(c));if(!j.F(f))throw new h(l.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+r+"() must result in a valid document path, but '"+f+"' is not because it c
1ontains an odd number of segments.");var d=new j(f);a.push(ue(e,d))}else{var p=Ra(n,r,c);a.push(p)}}return new or(a,o)}(this.Ff,this.firestore.__,this.firestore.mf,t,o,i)},t.prototype.onSnapshot=function(){for(var t,e,n,r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];D("Query.onSnapshot",arguments,1,4);var s={},a=0;if("object"!=typeof i[a]||Qa(i[a])||(H("Query.onSnapshot",s=i[a],["includeMetadataChanges"]),N("Query.onSnapshot","boolean","includeMetadataChanges",s.includeMetadataChanges),a++),Qa(i[a])){var u=i[a];i[a]=null===(t=u.next)||void 0===t?void 0:t.bind(u),i[a+1]=null===(e=u.error)||void 0===e?void 0:e.bind(u),i[a+2]=null===(n=u.complete)||void 0===n?void 0:n.bind(u)}else R("Query.onSnapshot","function",a,i[a]),P("Query.onSnapshot","function",a+1,i[a+1]),P("Query.onSnapshot","function",a+2,i[a+2]);var c={next:function(t){i[a]&&i[a](new cu(r.firestore,r.Ff,t,r.d_))},error:i[a+1],complete:i[a+2]};return au(this.Ff),this.firestore.hf().listen(this.Ff,s,c)},t.prototype.get=function(t){var e=this;D("Query.get",arguments,0,1),du("Query.get",t),au(this.Ff);var n=this.firestore.hf();return(t&&"cache"===t.source?n.j_(this.Ff):n.K_(this.Ff,t)).then((function(t){return new cu(e.firestore,e.Ff,t,e.d_)}))},t}(),cu=function(){function t(t,e,n,r){this.yf=t,this.$f=e,this.kf=n,this.d_=r,this.Mf=null,this.Of=null,this.metadata=new Za(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:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this.kf.docs.m()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.kf.docs.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;D("QuerySnapshot.forEach",arguments,1,2),R("QuerySnapshot.forEach","function",1,t),this.kf.docs.forEach((function(r){t.call(e,n.Lf(r,n.metadata.fromCache,n.kf.Wt.has(r.key)))}))},Object.defineProperty(t.prototype,"query",{get:function(){return new uu(this.$f,this.yf,this.d_)},enumerable:!1,configurable:!0}),t.prototype.docChanges=function(t){t&&(H("QuerySnapshot.docChanges",t,["includeMetadataChanges"]),N("QuerySnapshot.docChanges","boolean","includeMetadataChanges",t.includeMetadataChanges));var e=!(!t||!t.includeMetadataChanges);if(e&&this.kf.Kt)throw new h(l.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.Mf&&this.Of===e||(this.Mf=function(t,e,n){if(t.Qt.m()){var r=0;return t.docChanges.map((function(e){return{type:"added",doc:n(e.doc,t.fromCache,t.Wt.has(e.doc.key)),oldIndex:-1,newIndex:r++}}))}var i=t.Qt;return t.docChanges.filter((function(t){return e||3!==t.type})).map((function(e){var r=n(e.doc,t.fromCache,t.Wt.has(e.doc.key)),o=-1,s=-1;return 0!==e.type&&(o=i.indexOf(e.doc.key),i=i.delete(e.doc.key)),1!==e.type&&(s=(i=i.add(e.doc)).indexOf(e.doc.key)),{type:mu(e.type),doc:r,oldIndex:o,newIndex:s}}))}(this.kf,e,this.Lf.bind(this)),this.Of=e),this.Mf},t.prototype.isEqual=function(e){if(!(e instanceof t))throw z("isEqual","QuerySnapshot",1,e);return this.yf===e.yf&&Qn(this.$f,e.$f)&&this.kf.isEqual(e.kf)&&this.d_===e.d_},t.prototype.Lf=function(t,e,n){return new eu(this.yf,t.key,t,e,n,this.d_)},t}(),lu=function(t){function e(e,n,r){var i=this;if((i=t.call(this,Pn(e),n,r)||this).Bf=e,e.length%2!=1)throw new h(l.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e.R()+" has "+e.length);return i}return r.__extends(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this.Ff.path._()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.Ff.path.h();return t.m()?null:new Ja(new j(t),this.firestore,null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.Ff.path.R()},enumerable:!1,configurable:!0}),e.prototype.doc=function(t){D("CollectionReference.doc",arguments,0,1),0===arguments.length&&(t=K.k()),R("CollectionReference.doc","non-empty string",1,t);var e=x.g(t);return Ja.Rf(this.Ff.path.child(e),this.firestore,this.d_)},e.prototype.add=function(t){k("CollectionReference.add",arguments,1
1);var e=this.d_?this.d_.toFirestore(t):t;R("CollectionReference.add","object",1,e);var n=this.doc();return new Ja(n.f_,this.firestore,null).set(e).then((function(){return n}))},e.prototype.withConverter=function(t){return new e(this.Bf,this.firestore,t)},e}(uu);function hu(t,e){if(void 0===e)return{merge:!1};if(H(t,e,["merge","mergeFields"]),N(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 h(l.INVALID_ARGUMENT,"Function "+t+"() requires its "+e+" option to be an array, but it was: "+B(r));for(var o=0;o<r.length;++o)if(!i(r[o]))throw new h(l.INVALID_ARGUMENT,"Function "+t+"() requires all "+e+" elements to be a string or a FieldPath, but the value at index "+o+" was: "+B(r[o]))}(t,"mergeFields",0,r,(function(t){return"string"==typeof t||t instanceof fa}))}(t,0,0,e.mergeFields),void 0!==e.mergeFields&&void 0!==e.merge)throw new h(l.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function fu(t,e){return void 0===e?{}:(H(t,e,["serverTimestamps"]),L(t,0,"serverTimestamps",e.serverTimestamps,["estimate","previous","none"]),e)}function du(t,e){P(t,"object",1,e),e&&(H(t,e,["source"]),L(t,0,"source",e.source,["default","server","cache"]))}function pu(t,e,n){if(e instanceof Sa){if(e.firestore!==n)throw new h(l.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}throw z(t,"DocumentReference",1,e)}function mu(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return v()}}function gu(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}var yu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.serverTimestamp=function(){A("FieldValue.serverTimestamp",arguments);var t=new ya("serverTimestamp");return t.e_="FieldValue.serverTimestamp",new e(t)},e.delete=function(){A("FieldValue.delete",arguments);var t=new ma("deleteField");return t.e_="FieldValue.delete",new e(t)},e.arrayUnion=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];I("FieldValue.arrayUnion",arguments,1);var r=(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return I("arrayUnion()",arguments,1),new va("arrayUnion",t)}).apply(void 0,t);return r.e_="FieldValue.arrayUnion",new e(r)},e.arrayRemove=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];I("FieldValue.arrayRemove",arguments,1);var r=(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return I("arrayRemove()",arguments,1),new ba("arrayRemove",t)}).apply(void 0,t);return r.e_="FieldValue.arrayRemove",new e(r)},e.increment=function(t){R("FieldValue.increment","number",1,t),k("FieldValue.increment",arguments,1);var n=function(t){return new _a("increment",t)}(t);return n.e_="FieldValue.increment",new e(n)},e.prototype.isEqual=function(t){return this.l_.isEqual(t.l_)},e}(Ea),vu={Firestore:Ka,GeoPoint:wa,Timestamp:at,Blob:rt,Transaction:Xa,WriteBatch:Ya,DocumentReference:Ja,DocumentSnapshot:tu,Query:uu,QueryDocumentSnapshot:eu,QuerySnapshot:cu,CollectionReference:lu,FieldPath:fa,FieldValue:yu,setLogLevel:Ka.setLogLevel,CACHE_SIZE_UNLIMITED:Wa};function bu(t){!function(t,e){t.INTERNAL.registerComponent(new u.Component("firestore",(function(t){return function(t,e){var n=new ca,r=new ua(n);return new Ka(t,e,r,n)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},vu)))}(t),t.registerVersion("@firebase/firestore","1.18.0")}bu(c.default),e.__PRIVATE_registerFirestore=bu},"6KkN":function(t,e){var n="__lodash_placeholder__";t.exports=function(t,e){for(var r=-1,i=t.length,o=0,s=[];++r<i;){var a=t[r];a!==e&&a!==n||(t[r]=n,s[o++]=r)}return s}},"6NWb":function(t,e,n){"use strict";n.d(e,"a",(function(){return Lt})),n.d(e,"b",(function(){return Nt})),n.d(e,"c",(function(){return Ut})),n.d(e,"d",(function(){return Bt})),n.d(e,"e",(function(){return qt})),n.d(e,"f",(function(){return Ht})),n.d(e,"g",(function(){return Ft})),n.d(e,"h",(function(){return zt}));var r=n("fXoL");function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var c={},l={};try{"undefined"!=typeof window&&(c=window),"undefined"!=typeof document&&(l=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&performance}catch(Qt){}var h=(c.navigator||{}).userAgent,f=void 0===h?"":h,d=c,p=l,m=!!p.documentElement&&!!p.head&&"function"==typeof p.addEventListener&&"function"==typeof p.createElement,g=~f.indexOf("MSIE")||~f.indexOf("Trident/"),y="svg-inline--fa",v="data-fa-i2svg",b=[1,2,3,4,5,6,7,8,9,10],_=b.concat([11,12,13,14,15,16,17,18,19,20]),w={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},E=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",w.GROUP,w.SWAP_OPACITY,w.PRIMARY,w.SECONDARY].concat(b.map((function(t){return"".concat(t,"x")}))).concat(_.map((function(t){return"w-".concat(t)}))),d.FontAwesomeConfig||{});p&&"function"==typeof p.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(t){var e=a(t,2),n=e[1],r=function(t){return""===t||"false"!==t&&("true"===t||t)}(function(t){var e=p.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(e[0]));null!=r&&(E[n]=r)}));var O=s({},{familyPrefix:"fa",replacementClass:y,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},E);O.autoReplaceSvg||(O.observeMutations=!1);var S=s({},O);d.FontAwesomeConfig=S;var x=d||{};x.___FONT_AWESOME___||(x.___FONT_AWESOME___={}),x.___FONT_AWESOME___.styles||(x.___FONT_AWESOME___.styles={}),x.___FONT_AWESOME___.hooks||(x.___FONT_AWESOME___.hooks={}),x.___FONT_AWESOME___.shims||(x.___FONT_AWESOME___.shims=[]);var C=x.___FONT_AWESOME___,T=[];m&&((p.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(p.readyState)||p.addEventListener("DOMContentLoaded",(function t(){p.removeEventListener("DOMContentLoaded",t),T.map((function(t){return t()}))})));var j,A="pending",k="settled",I="fulfilled",D="rejected",R=function(){},P="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,F="undefined"==typeof setImmediate?setTimeout:setImmediate,N=[];function L(){for(var t=0;t<N.length;t++)N[t][0](N[t][1]);N=[],j=!1}function M(t,e){N.push([t,e]),j||(j=!0,F(L,0))}function V(t){var e=t.owner,n=e._state,r=e._data,i=t[n],o=t.then;if("function"==typeof i){n=I;try{r=i(r)}catch(Qt){H(o,Qt)}}U(o,r)||(n===I&&B(o,r),n===D&&H(o,r))}function U(t,e){var n;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(e&&("function"==typeof e||"object"===i(e))){var r=e.then;if("function"==typeof r)return r.call(e,(function(r){n||(n=!0,e===r?q(t,r):B(t,r))}),(function(e){n||(n=!0,H(t,e))})),!0}}catch(Qt){return n||H(t,Qt),!0}return!1}function B(t,e){t!==e&&U(t,e)||q(t,e)}function q(t,e){t._state===A&&(t._state=k,t._data=e,M(Q,t))}function H(t,e){t._state===A&&(t._state=k,t._data=e,M(G,t))}function z(t){t._then=t._then.forEach(V)}function Q(t){t._state=I,z(t)}function G(t){t._state=D,z(t),!t._handled&&P&&global.process.emit("unhandledRejection",t._data,t)}function W(t){global.process.emit("rejectionHandled",t)}function $(t){if("function"!=typeof t)throw new TypeError("Promise resolver "+t+" is not a function");if(this instanceof $==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
1onstructor cannot be called as a function.");this._then=[],function(t,e){function n(t){H(e,t)}try{t((function(t){B(e,t)}),n)}catch(Qt){n(Qt)}}(t,this)}$.prototype={constructor:$,_state:A,_then:null,_data:void 0,_handled:!1,then:function(t,e){var n={owner:this,then:new this.constructor(R),fulfilled:t,rejected:e};return!e&&!t||this._handled||(this._handled=!0,this._state===D&&P&&M(W,this)),this._state===I||this._state===D?M(V,n):this._then.push(n),n.then},catch:function(t){return this.then(null,t)}},$.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new $((function(e,n){var r=[],i=0;function o(t){return i++,function(n){r[t]=n,--i||e(r)}}for(var s,a=0;a<t.length;a++)(s=t[a])&&"function"==typeof s.then?s.then(o(a),n):r[a]=s;i||e(r)}))},$.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.race().");return new $((function(e,n){for(var r,i=0;i<t.length;i++)(r=t[i])&&"function"==typeof r.then?r.then(e,n):e(r)}))},$.resolve=function(t){return t&&"object"===i(t)&&t.constructor===$?t:new $((function(e){e(t)}))}
1,$.reject=function(t){return new $((function(e,n){n(t)}))};var K=16,X={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Y(){for(var t=12,e="";t-- >0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function J(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Z(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,": ").concat(t[n],";")}),"")}function tt(t){return t.size!==X.size||t.x!==X.x||t.y!==X.y||t.rotate!==X.rotate||t.flipX||t.flipY}function et(t){var e=t.transform,n=t.iconWidth,r={transform:"translate(".concat(t.containerWidth/2," 256)")},i="translate(".concat(32*e.x,", ").concat(32*e.y,") "),o="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(i," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var nt={x:0,y:0,width:"100%",height:"100%"};function rt(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function it(t){var e=t.icons,n=e.main,r=e.mask,i=t.prefix,o=t.iconName,a=t.transform,u=t.symbol,c=t.title,l=t.maskId,h=t.titleId,f=t.extra,d=t.watchable,p=void 0!==d&&d,m=r.found?r:n,g=m.width,y=m.height,b="fak"===i,_=b?"":"fa-w-".concat(Math.ceil(g/y*16)),w=[S.replacementClass,o?"".concat(S.familyPrefix,"-").concat(o):"",_].filter((function(t){return-1===f.classes.indexOf(t)})).filter((function(t){return""!==t||!!t})).concat(f.classes).join(" "),E={children:[],attributes:s({},f.attributes,{"data-prefix":i,"data-icon":o,class:w,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(y)})},O=b&&!~f.classes.indexOf("fa-fw")?{width:"".concat(g/y*16*.0625,"em")}:{};p&&(E.attributes[v]=""),c&&E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(h||Y())},children:[c]});var x=s({},E,{prefix:i,iconName:o,main:n,mask:r,maskId:l,transform:a,symbol:u,styles:s({},O,f.styles)}),C=r.found&&n.found?function(t){var e,n=t.children,r=t.attributes,i=t.main,o=t.mask,a=t.maskId,u=i.icon,c=o.icon,l=et({transform:t.transform,containerWidth:o.width,iconWidth:i.width}),h={tag:"rect",attributes:s({},nt,{fill:"white"})},f=u.children?{children:u.children.map(rt)}:{},d={tag:"g",attributes:s({},l.inner),children:[rt(s({tag:u.tag,attributes:s({},u.attributes,l.path)},f))]},p={tag:"g",attributes:s({},l.outer),children:[d]},m="mask-".concat(a||Y()),g="clip-".concat(a||Y()),y={tag:"mask",attributes:s({},nt,{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,p]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(e=c,"g"===e.tag?e.children:[e])},y]};return n.push(v,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(m,")")},nt)}),{children:n,attributes:r}}(x):function(t){var e=t.children,n=t.attributes,r=t.main,i=t.transform,o=Z(t.styles);if(o.length>0&&(n.style=o),tt(i)){var a=et({transform:i,containerWidth:r.width,iconWidth:r.width});e.push({tag:"g",attributes:s({},a.outer),children:[{tag:"g",attributes:s({},a.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:s({},r.icon.attributes,a.path)}]}]})}else e.push(r.icon);return{children:e,attributes:n}}(x),T=C.attributes;return x.children=C.children,x.attributes=T,u?function(t){var e=t.iconName,n=t.children,r=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},t.attributes,{id:!0===r?"".concat(t.prefix,"-").concat(S.familyPrefix,"-").concat(e):r}),children:n}]}]}(x):function(t){var e=t.children,n=t.main,r=t.mask,i=t.attributes,o=t.styles,a=t.transform;if(tt(a)&&n.found&&!r.found){var u={x:n.width/n.height/2,y:.5};i.style=Z(s({},o,{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:e}]}(x)}function ot(t){var e=t.content,n=t.width,r=t.height,i=t.transform,o=t.title,a=t.extra,u=t.watchable,c=void 0!==u&&u,l=s({},a.attributes,o?{title:o}:{},{class:a.classes.join(" ")});c&&(l[v]="");var h=s({},a.styles);tt(i)&&(h.transform=function(t){var e=t.transform,n=t.width,r=t.height,i=void 0===r?16:r,o=t.startCentered,s=void 0!==o&&o,a="";return a+=s&&g?"translate(".concat(e.x/K-(void 0===n?16:n)/2,"em, ").concat(e.y/K-i/2,"em) "):s?"translate(calc(-50% + ".concat(e.x/K,"em), calc(-50% + ").concat(e.y/K,"em)) "):"translate(".concat(e.x/K,"em, ").concat(e.y/K,"em) "),(a+="scale(".concat(e.size/K*(e.flipX?-1:1),", ").concat(e.size/K*(e.flipY?-1:1),") "))+"rotate(".concat(e.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),h["-webkit-transform"]=h.transform);var f=Z(h);f.length>0&&(l.style=f);var d=[];return d.push({tag:"span",attributes:l,children:[e]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}function st(t){var e=t.content,n=t.title,r=t.extra,i=s({},r.attributes,n?{title:n}:{},{class:r.classes.join(" ")}),o=Z(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[e]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var at=function(t,e,n,r){var i,o,s,a=Object.keys(t),u=a.length,c=void 0!==r?function(t,e){return function(n,r,i,o){return t.call(e,n,r,i,o)}}(e,r):e;for(void 0===n?(i=1,s=t[a[0]]):(i=0,s=n);i<u;i++)s=c(s,t[o=a[i]],o,t);return s};function ut(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,o=Object.keys(e).reduce((function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{});"function"!=typeof C.hooks.addPack||i?C.styles[t]=s({},C.styles[t]||{},o):C.hooks.addPack(t,o),"fas"===t&&ut("fa",e)}var ct=C.styles,lt=C.shims,ht=function(){var t=function(t){return at(ct,(function(e,n,r){return e[r]=at(n,t,{}),e}),{})};t((function(t,e,n){return e[3]&&(t[e[3]]=n),t})),t((function(t,e,n){var r=e[2];return t[n]=n,r.forEach((function(e){t[e]=n})),t}));var e="far"in ct;at(lt,(function(t,n){var r=n[1];return"far"!==r||e||(r="fas"),t[n[0]]={prefix:r,iconName:n[2]},t}),{})};function ft(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function dt(t){var e=t.tag,n=t.attributes,r=void 0===n?{}:n,i=t.children,o=void 0===i?[]:i;return"string"==typeof t?J(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,'="').concat(J(t[n]),'" ')}),"").trim()}(r),">").concat(o.map(dt).join(""),"</").concat(e,">")}function pt(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}ht(),(pt.prototype=Object.create(Error.prototype)).constructor=pt;var mt={fill:"currentColor"}
1,gt={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},yt=(s({},mt,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),s({},gt,{attributeName:"opacity"}));function vt(t){var e=t[0],n=t[1],r=a(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(S.familyPrefix,"-").concat(w.GROUP)},children:[{tag:"path",attributes:{class:"".concat(S.familyPrefix,"-").concat(w.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(S.familyPrefix,"-").concat(w.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}function bt(){S.autoAddCss&&!St&&(function(t){if(t&&m){var e=p.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=p.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}p.head.insertBefore(e,r)}}(function(){var t="fa",e=y,n=S.familyPrefix,r=S.replacementClass,i='svg:not(:root).svg-inline--fa {\n  overflow: visible;\n}\n\n.svg-inline--fa {\n  display: inline-block;\n  font-size: inherit;\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n  width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n  width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n  width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n  width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n  width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n  width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n  width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n  width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n  width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n  width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n  width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n  width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n  width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n  width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n  width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n  width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n  width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n  width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n  width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n  width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-border {\n  height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n  width: 2em;\n}\n.svg-inline--fa.fa-fw {\n  width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: #ff253a;\n  border-radius: 1em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  height: 1.5em;\n  line-height: 1;\n  max-width: 5em;\n  min-width: 1.5em;\n  overflow: hidden;\n  padding: 0.25em;\n  right: 0;\n  text-overflow: ellipsis;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: 0;\n  right: 0;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: 0;\n  left: 0;\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  right: 0;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: 0;\n  right: auto;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-lg {\n  font-size: 1.3333333333em;\n  line-height: 0.75em;\n  vertical-align: -0.0667em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;
1\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: 2.5em;\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: -2em;\n  position: absolute;\n  text-align: center;\n  width: 2em;\n  line-height: inherit;\n}\n\n.fa-border {\n  border: solid 0.08em #eee;\n  border-radius: 0.1em;\n  padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n  float: left;\n}\n\n.fa-pull-right {\n  float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n  margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n  margin-left: 0.3em;\n}\n\n.fa-spin {\n  -webkit-animation: fa-spin 2s infinite linear;\n          animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n  -webkit-animation: fa-spin 1s infinite steps(8);\n          animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n  -webkit-filter: none;\n          filter: none;\n}\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: #fff;\n}\n\n.sr-only {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  clip: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  position: static;\n  width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse {\n  color: #fff;\n}';if(n!==t||r!==e){var o=new RegExp("\\.".concat(t,"\\-"),"g"),s=new RegExp("\\--".concat(t,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return i}()),St=!0)}function _t(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map((function(t){return dt(t)}))}}),Object.defineProperty(t,"node",{get:function(){if(m){var e=p.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function wt(t){var e=t.prefix,n=void 0===e?"fa":e,r=t.iconName;if(r)return ft(Ot.definitions,n,r)||ft(C.styles,n,r)}s({},mt,{cx:"256",cy:"364",r:"28"}),s({},gt,{attributeName:"r",values:"28;14;28;28;14;28;"}),s({},yt,{values:"1;0;1;1;0;1;"}),s({},mt,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),s({},yt,{values:"1;0;0;0;0;1;"}),s({},mt,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),s({},yt,{values:"0;0;1;1;0;0;"});var Et,Ot=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e;return(e=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});
1Object.keys(i).forEach((function(e){t.definitions[e]=s({},t.definitions[e]||{},i[e]),ut(e,i[e]),ht()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var n=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(n).map((function(e){var r=n[e],i=r.prefix,o=r.iconName,s=r.icon;t[i]||(t[i]={}),t[i][o]=s})),t}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e),t}()),St=!1,xt=function(t){return function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce((function(t,e){var n=e.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return t.flipX=!0,t;if(r&&"v"===i)return t.flipY=!0,t;if(i=parseFloat(i),isNaN(i))return t;switch(r){case"grow":t.size=t.size+i;break;case"shrink":t.size=t.size-i;break;case"left":t.x=t.x-i;break;case"right":t.x=t.x+i;break;case"up":t.y=t.y-i;break;case"down":t.y=t.y+i;break;case"rotate":t.rotate=t.rotate+i}return t}),e):e}(t)},Ct=(Et=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?X:n,i=e.symbol,o=void 0!==i&&i,a=e.mask,u=void 0===a?null:a,c=e.maskId,l=void 0===c?null:c,h=e.title,f=void 0===h?null:h,d=e.titleId,p=void 0===d?null:d,m=e.classes,g=void 0===m?[]:m,y=e.attributes,v=void 0===y?{}:y,b=e.styles,_=void 0===b?{}:b;if(t){var w=t.prefix,E=t.iconName,O=t.icon;return _t(s({type:"icon"},t),(function(){return bt(),S.autoA11y&&(f?v["aria-labelledby"]="".concat(S.replacementClass,"-title-").concat(p||Y()):(v["aria-hidden"]="true",v.focusable="false")),it({icons:{main:vt(O),mask:u?vt(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:E,transform:s({},X,r),symbol:o,title:f,maskId:l,titleId:p,extra:{attributes:v,styles:_,classes:g}})}))}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:wt(t||{}),r=e.mask;return r&&(r=(r||{}).icon?r:wt(r||{})),Et(n,s({},e,{mask:r}))}),Tt=n("jhN1");const jt=[[["fa-icon"],["fa-duotone-icon"],["fa-layers-text"],["fa-layers-counter"]]],At=["fa-icon, fa-duotone-icon, fa-layers-text, fa-layers-counter"],kt=[[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]]],It=["fa-icon[stackItemSize],fa-duotone-icon[stackItemSize]"];let Dt=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Rt=(()=>{class t{constructor(){this.definitions={}}addIcons(...t){for(const e of t)e.prefix in this.definitions||(this.definitions[e.prefix]={}),this.definitions[e.prefix][e.iconName]=e}addIconPacks(...t){for(const e of t){const t=Object.keys(e).map(t=>e[t]);this.addIcons(...t)}}getIconDefinition(t,e){return t in this.definitions&&e in this.definitions[t]?this.definitions[t][e]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Mb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Pt=t=>{const e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,["fa-"+t.size]:null!==t.size,["fa-rotate-"+t.rotate]:null!==t.rotate,["fa-pull-"+t.pull]:null!==t.pull,["fa-stack-"+t.stackItemSize]:null!=t.stackItemSize};return Object.keys(e).map(t=>e[t]?t:null).filter(t=>t)};let Ft=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Lb({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[r.Bb]}),t})(),Nt=(()=>{class t{constructor(t,e,n,r){this.sanitizer=t,this.config=e,this.iconLibrary=n,this.stackItem=r,this.classes=[]}ngOnChanges(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let e=null;if(e=null==this.icon?this.config.fallbackIcon:this.icon,t){const t=this.findIconDefinition(e);if(null!=t){const e=this.buildParams();this.renderIcon(t,e)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const e=((t,e)=>{return void 0!==(n=t).prefix&&void 0!==n.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:e,iconName:t}:void 0;var n})(t,this.config.defaultPrefix);if("icon"in e)return e;const n=this.iconLibrary.getIconDefinition(e.prefix,e.iconName);if(null!=n)return n;const r=wt(e);if(null!=r){const t="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+t);else if(!this.config.globalLibrary)throw new Error(t);return r}return(t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(e),null}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},e="string"==typeof this.transform?xt(this.transform):this.transform;return{title:this.title,transform:e,classes:[...Pt(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,e){const n=Ct(t,e);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(Tt.b),r.Qb(Dt),r.Qb(Rt),r.Qb(Ft,8))},t.\u0275cmp=r.Kb({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,e){2&t&&(r.Zb("innerHTML",e.renderedIconHTML,r.Ic),r.Eb("title",e.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol
1:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[r.Bb],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),Lt=(()=>{class t extends Nt{findIconDefinition(t){const e=super.findIconDefinition(t);if(null!=e&&!Array.isArray(e.icon[4]))throw new Error(`The specified icon does not appear to be a Duotone icon. Check that you specified the correct style: <fa-duotone-icon [icon]="['fad', '${e.iconName}']"></fa-duotone-icon> or use: <fa-icon icon="${e.iconName}"></fa-icon> instead.`);return e}buildParams(){const t=super.buildParams();return!0!==this.swapOpacity&&"true"!==this.swapOpacity||t.classes.push("fa-swap-opacity"),null!=this.primaryOpacity&&(t.styles["--fa-primary-opacity"]=this.primaryOpacity.toString()),null!=this.secondaryOpacity&&(t.styles["--fa-secondary-opacity"]=this.secondaryOpacity.toString()),null!=this.primaryColor&&(t.styles["--fa-primary-color"]=this.primaryColor),null!=this.secondaryColor&&(t.styles["--fa-secondary-color"]=this.secondaryColor),t}}return t.\u0275fac=function(e){return Mt(e||t)},t.\u0275cmp=r.Kb({type:t,selectors:[["fa-duotone-icon"]],inputs:{swapOpacity:"swapOpacity",primaryOpacity:"primaryOpacity",secondaryOpacity:"secondaryOpacity",primaryColor:"primaryColor",secondaryColor:"secondaryColor"},features:[r.Ab],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();const Mt=r.Yb(Lt),Vt=(t,e,n)=>{if(!t)throw new Error(`${n} should be used as child of ${e} only.`)};let Ut=(()=>{class t{constructor(t,e,n){this.renderer=t,this.elementRef=e,this.config=n}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-layers"),this.fixedWidth="boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,"fa-"+t.size.currentValue),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,"fa-"+t.size.previousValue))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.G),r.Qb(r.m),r.Qb(Dt))},t.\u0275cmp=r.Kb({type:t,selectors:[["fa-layers"]],hostVars:2,hostBindings:function(t,e){2&t&&r.Ib("fa-fw",e.fixedWidth)},inputs:{fixedWidth:"fixedWidth",size:"size"},features:[r.Bb],ngContentSelectors:At,decls:1,vars:0,template:function(t,e){1&t&&(r.sc(jt),r.rc(0))},encapsulation:2}),t})(),Bt=(()=>{class t{constructor(t,e){this.parent=t,this.sanitizer=e,this.classes=[],Vt(this.parent,"FaLayersComponent",this.constructor.name)}ngOnChanges(t){if(t){const t=this.buildParams();this.updateContent(t)}}buildParams(){return{title:this.title,classes:this.classes,styles:this.styles}}updateContent(t){this.renderedHTML=this.sanitizer.bypassSecurityTrustHtml(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.title,r=void 0===n?null:n,i=e.classes,o=void 0===i?[]:i,s=e.attributes,a=void 0===s?{}:s,c=e.styles,l=void 0===c?{}:c;return _t({type:"counter",content:t},(function(){return bt(),st({content:t.toString(),title:r,extra:{attributes:a,styles:l,classes:["".concat(S.familyPrefix,"-layers-counter")].concat(u(o))}})}))}(this.content||"",t).html.join(""))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(Ut,8),r.Qb(Tt.b))},t.\u0275cmp=r.Kb({type:t,selectors:[["fa-layers-counter"]],hostAttrs:[1,"ng-fa-layers-counter"],hostVars:1,hostBindings:function(t,e){2&t&&r.Zb("innerHTML",e.renderedHTML,r.Ic)},inputs:{classes:"classes",content:"content",title:"title",styles:"styles"},features:[r.Bb],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),qt=(()=>{class t{constructor(t,e){this.parent=t,this.sanitizer=e,this.classes=[],Vt(this.parent,"FaLayersComponent",this.constructor.name)}ngOnChanges(t){if(t){const t=this.buildParams();this.updateContent(t)}}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:this.fixedWidth};return{transform:"string"==typeof this.transform?xt(this.transform):this.transform,classes:[...Pt(t),...this.classes],title:this.title,styles:this.styles}}updateContent(t){this.renderedHTML=this.sanitizer.bypassSecurityTrustHtml(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?X:n,i=e.title,o=void 0===i?null:i,a=e.classes,c=void 0===a?[]:a,l=e.attributes,h=void 0===l?{}:l,f=e.styles,d=void 0===f?{}:f;return _t({type:"text",content:t},(function(){return bt(),ot({content:t,transform:s({},X,r),title:o,extra:{attributes:h,styles:d,classes:["".concat(S.familyPrefix,"-layers-text")].concat(u(c))}})}))}(this.content||"",t).html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(Ut,8),r.Qb(Tt.b))},t.\u0275cmp=r.Kb({type:t,selectors:[["fa-layers-text"]],hostAttrs:[1,"ng-fa-layers-text"],hostVars:1,hostBindings:function(t,e){2&t&&r.Zb("innerHTML",e.renderedHTML,r.Ic)},inputs:{classes:"classes",content:"content",title:"title",styles:"styles",spin:"spin",pulse:"pulse",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform"},features:[r.Bb],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),Ht=(()=>{class t{constructor(t,e){this.renderer=t,this.elementRef=e}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,"fa-"+t.size.currentValue),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,"fa-"+t.size.previousValue))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.G),r.Qb(r.m))},t.\u0275cmp=r.Kb({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[r.Bb],ngContentSelectors:It,decls:1,vars:0,template:function(t,e){1&t&&(r.sc(kt),r.rc(0))},encapsulation:2}),t})(),zt=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)}}),t})()},"6PXS":function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"e",(function(){return f})),n.d(e,"d",(function(){return p})),n.d(e,"b",(function(){return m})),n.d(e,"a",(function(){return g}));var r=n("SOwp"),i=n("vFt6"),o=n("9AQC"),s=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var e=0;e<this._inner.length;e++)if(this._inner[e]===t)return!0;return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var e=0;e<this._inner.length;e++)if(this._inner[e]===t){this._inner.splice(e,1);break}},t}(),a=n("pRiV"),u=n("+924");function c(t,e,n){if(e in t){var r=t[e],i=n(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:r}})}catch(o){}t[e]=i}}function l(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function h(t){if(Object(o.d)(t)){var e=t,n={message:e.message,name:e.name,stack:e.stack};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}if(Object(o.f)(t)){var s=t,a={};a.type=s.type;try{a.target=Object(o.c)(s.target)?Object(i.a)(s.target):Object.prototype.toString.call(s.target)}catch(u){a.target="<unknown>"}try{a.currentTarget=Object(o.c)(s.currentTarget)?Object(i.a)(s.currentTarget):Object.prototype.toString.call(s.currentTarget)}catch(u){a.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&Object(o.g)(t,CustomEvent)&&(a.detail=s.detail),s)Object.prototype.hasOwnProperty.call(s,r)&&(a[r]=s);return a}return t}function f(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r,i=p(t,e);return r=JSON.stringify(i),~-encodeURI(r).split(/%..|./).length>n?f(t,e-1,n):i}function d(t,e){return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":Object(o.l)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+Object(a.a)(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function p(t,e){try{return JSON.parse(JSON.stringify(t,(function(t,n){return function t(e,n,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new s),0===r)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=d(t);return Object(o.i)(n)?n:e}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var a=d(n,e);if(Object(o.i)(a))return a;var u=h(n),c=Array.isArray(n)?[]:{};if(i.memoize(n))return"[Circular ~]";for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(c[l]=t(l,u[l],r-1,i));return i.unmemoize(n),c}(t,n,e)})))}catch(n){return"**non-serializable**"}}function m(t,e){void 0===e&&(e=40);var n=Object.keys(h(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Object(u.d)(n[0],e);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");
1if(!(i.length>e))return r===n.length?i:Object(u.d)(i,e)}return""}function g(t){var e,n;if(Object(o.h)(t)){var i=t,s={};try{for(var a=Object(r.__values)(Object.keys(i)),u=a.next();!u.done;u=a.next()){var c=u.value;void 0!==i[c]&&(s[c]=g(i[c]))}}catch(l){e={error:l}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return s}return Array.isArray(t)?t.map(g):t}},"6T1N":function(t,e,n){var r=n("s0N+"),i=n("ieoY"),o=n("Rw8+"),s=n("a1zH"),a=n("0ADi"),u=n("KF6i"),c=n("q3TU"),l=n("99Ms"),h=n("T8tx"),f=n("Sxd8"),d=Math.max;t.exports=function(t,e,n,p,m,g,y,v){var b=2&e;if(!b&&"function"!=typeof t)throw new TypeError("Expected a function");var _=p?p.length:0;if(_||(e&=-97,p=m=void 0),y=void 0===y?y:d(f(y),0),v=void 0===v?v:f(v),_-=m?m.length:0,64&e){var w=p,E=m;p=m=void 0}var O=b?void 0:u(t),S=[t,e,n,p,m,w,E,g,y,v];if(O&&c(S,O),t=S[0],e=S[1],n=S[2],p=S[3],m=S[4],!(v=S[9]=void 0===S[9]?b?0:t.length:d(S[9]-_,0))&&24&e&&(e&=-25),e&&1!=e)x=8==e||16==e?o(t,e,v):32!=e&&33!=e||m.length?s.apply(void 0,S):a(t,e,n,p);else var x=i(t,e,n);return h((O?r:l)(x,S),t,e)}},"6ae/":function(t,e,n){var r=n("dTAl"),i=n("RrRF");function o(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}(o.prototype=r(i.prototype)).constructor=o,t.exports=o},"6foH":function(t,e,n){var r,i;void 0===(i="function"==typeof(r=function(){"use strict";function t(t){t.preventDefault()}function e(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function n(t,e,n){n>0&&(o(t,e),setTimeout((function(){s(t,e)}),n))}function r(t){return Array.isArray(t)?t:[t]}function i(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function o(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function s(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function a(t){var e=void 0!==window.pageXOffset,n="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:n?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:n?t.documentElement.scrollTop:t.body.scrollTop}}function u(t,e){return 100/(e-t)}function c(t,e){return 100*e/(t[1]-t[0])}function l(t,e){for(var n=1;t>=e[n];)n+=1;return n}function h(t,n,r){var i;if("number"==typeof n&&(n=[n]),"[object Array]"!==Object.prototype.toString.call(n))throw new Error("noUiSlider (10.1.0): 'range' contains invalid value.");if(!e(i="min"===t?0:"max"===t?100:parseFloat(t))||!e(n[0]))throw new Error("noUiSlider (10.1.0): 'range' value isn't numeric.");r.xPct.push(i),r.xVal.push(n[0]),i?r.xSteps.push(!isNaN(n[1])&&n[1]):isNaN(n[1])||(r.xSteps[0]=n[1]),r.xHighestCompleteStep.push(0)}function f(t,e,n){if(!e)return!0;n.xSteps[t]=c([n.xVal[t],n.xVal[t+1]],e)/u(n.xPct[t],n.xPct[t+1]);var r=Math.ceil(Number(((n.xVal[t+1]-n.xVal[t])/n.xNumSteps[t]).toFixed(3))-1);n.xHighestCompleteStep[t]=n.xVal[t]+n.xNumSteps[t]*r}function d(t,e,n){this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var r,i=[];for(r in t)t.hasOwnProperty(r)&&i.push([t[r],r]);for(i.sort(i.length&&"object"==typeof i[0][0]?function(t,e){return t[0][0]-e[0][0]}:function(t,e){return t[0]-e[0]}),r=0;r<i.length;r++)h(i[r][1],i[r][0],this);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)f(r,this.xNumSteps[r],this)}d.prototype.getMargin=function(t){var e=this.xNumSteps[0];if(e&&t/e%1!=0)throw new Error("noUiSlider (10.1.0): 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&c(this.xVal,t)},d.prototype.toStepping=function(t){return function(t,e,n){if(n>=t.slice(-1)[0])return 100;var r,i,o=l(n,t);return i=e[o],(r=e[o-1])+function(t,e){return c(t,t[0]<0?e+Math.abs(t[0]):e-t[0])}([t[o-1],t[o]],n)/u(r,i)}(this.xVal,this.xPct,t)},d.prototype.fromStepping=function(t){return function(t,e,n){if(n>=100)return t.slice(-1)[0];var r,i=l(n,e);return function(t,e){return e*(t[1]-t[0])/100+t[0]}([t[i-1],t[i]],(n-(r=e[i-1]))*u(r,e[i]))}(this.xVal,this.xPct,t)},d.prototype.getStep=function(t){return function(t,e,n,r){if(100===r)return r;var i,o,s=l(r,t);return n?r-(i=t[s-1])>((o=t[s])-i)/2?o:i:e[s-1]?t[s-1]+function(t,e){return Math.round(t/e)*e}(r-t[s-1],e[s-1]):r}(this.xPct,this.xSteps,this.snap,t)},d.prototype.getNearbySteps=function(t){var e=l(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]}
1,stepAfter:{startValue:this.xVal[e-0],step:this.xNumSteps[e-0],highestStep:this.xHighestCompleteStep[e-0]}}},d.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(i);return Math.max.apply(null,t)},d.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var p={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};function m(t){if(function(t){return"object"==typeof t&&"function"==typeof t.to&&"function"==typeof t.from}(t))return!0;throw new Error("noUiSlider (10.1.0): 'format' requires 'to' and 'from' methods.")}function g(t,n){if(!e(n))throw new Error("noUiSlider (10.1.0): 'step' is not numeric.");t.singleStep=n}function y(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider (10.1.0): 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider (10.1.0): Missing 'min' or 'max' in 'range'.");if(e.min===e.max)throw new Error("noUiSlider (10.1.0): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new d(e,t.snap,t.singleStep)}function v(t,e){if(e=r(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider (10.1.0): 'start' option is incorrect.");t.handles=e.length,t.start=e}function b(t,e){if(t.snap=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): 'snap' option must be a boolean.")}function _(t,e){if(t.animate=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): 'animate' option must be a boolean.")}function w(t,e){if(t.animationDuration=e,"number"!=typeof e)throw new Error("noUiSlider (10.1.0): 'animationDuration' option must be a number.")}function E(t,e){var n,r=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(n=1;n<t.handles;n++)r.push(e);r.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider (10.1.0): 'connect' option doesn't match handle count.");r=e}t.connect=r}function O(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider (10.1.0): 'orientation' option is invalid.")}}function S(t,n){if(!e(n))throw new Error("noUiSlider (10.1.0): 'margin' option must be numeric.");if(0!==n&&(t.margin=t.spectrum.getMargin(n),!t.margin))throw new Error("noUiSlider (10.1.0): 'margin' option is only supported on linear sliders.")}function x(t,n){if(!e(n))throw new Error("noUiSlider (10.1.0): 'limit' option must be numeric.");if(t.limit=t.spectrum.getMargin(n),!t.limit||t.handles<2)throw new Error("noUiSlider (10.1.0): 'limit' option is only supported on linear sliders with 2 or more handles.")}function C(t,n){if(!e(n))throw new Error("noUiSlider (10.1.0): 'padding' option must be numeric.");if(0!==n){if(t.padding=t.spectrum.getMargin(n),!t.padding)throw new Error("noUiSlider (10.1.0): 'padding' option is only supported on linear sliders.");if(t.padding<0)throw new Error("noUiSlider (10.1.0): 'padding' option must be a positive number.");if(t.padding>=50)throw new Error("noUiSlider (10.1.0): 'padding' option must be less than half the range.")}}function T(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider (10.1.0): 'direction' option was not recognized.")}}function j(t,e){if("string"!=typeof e)throw new Error("noUiSlider (10.1.0): 'behaviour' must be a string containing options.");var n=e.indexOf("tap")>=0,r=e.indexOf("drag")>=0,i=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,s=e.indexOf("hover")>=0;if(i){if(2!==t.handles)throw new Error("noUiSlider (10.1.0): 'fixed' behaviour must be used with 2 handles");S(t,t.start[1]-t.start[0])}t.events={tap:n||o,drag:r,fixed:i,snap:o,hover:s}}function A(t,e){if(t.multitouch=e,"boolean"!=typeof e)throw new Error("noUiSlider (10.1.0): 'multitouch' option must be a boolean.")}function k(t,e){if(!1!==e)if(!0===e){t.tooltips=[];for(var n=0;n<t.handles;n++)t.tooltips.push(!0)}else{if(t.tooltips=r(e),t.tooltips.length!==t.handles)throw new Error("noUiSlider (10.1.0): must pass a formatter for all handles.");t.tooltips.forEach((function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider (10.1.0): 'tooltips' must be passed a formatter or 'false'.")}))}}function I(t,e){t.ariaFormat=e,m(e)}function D(t,e){t.format=e,m(e)}function R(t,e){if(void 0!==e&&"string"!=typeof e&&!1!==e)throw new Error("noUiSlider (10.1.0): 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function P(t,e){if(void 0!==e&&"object"!=typeof e)throw new Error("noUiSlider (10.1.0): 'cssClasse
1s' must be an object.");if("string"==typeof t.cssPrefix)for(var n in t.cssClasses={},e)e.hasOwnProperty(n)&&(t.cssClasses[n]=t.cssPrefix+e[n]);else t.cssClasses=e}function F(t,e){if(!0!==e&&!1!==e)throw new Error("noUiSlider (10.1.0): 'useRequestAnimationFrame' option should be true (default) or false.");t.useRequestAnimationFrame=e}function N(t){var e={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:p,format:p},n={step:{r:!1,t:g},start:{r:!0,t:v},connect:{r:!0,t:E},direction:{r:!0,t:T},snap:{r:!1,t:b},animate:{r:!1,t:_},animationDuration:{r:!1,t:w},range:{r:!0,t:y},orientation:{r:!1,t:O},margin:{r:!1,t:S},limit:{r:!1,t:x},padding:{r:!1,t:C},behaviour:{r:!0,t:j},multitouch:{r:!0,t:A},ariaFormat:{r:!1,t:I},format:{r:!1,t:D},tooltips:{r:!1,t:k},cssPrefix:{r:!1,t:R},cssClasses:{r:!1,t:P},useRequestAnimationFrame:{r:!1,t:F}},r={connect:!1,direction:"ltr",behaviour:"tap",multitouch:!1,orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(n).forEach((function(i){if(void 0===t[i]&&void 0===r[i]){if(n[i].r)throw new Error("noUiSlider (10.1.0): '"+i+"' is required.");return!0}n[i].t(e,void 0===t[i]?r[i]:t[i])})),e.pips=t.pips;var i=[["left","top"],["right","bottom"]];return e.style=i[e.dir][e.ort],e.styleOposite=i[e.dir?0:1][e.ort],e}function L(e,i,u){var c,l,h,f,d,p,m,g=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},y=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(n){}return t}(),v=e,b=[],_=[],w=0,E=i.spectrum,O=[],S={},x=e.ownerDocument,C=x.documentElement,T=x.body;function j(t,e){var n=x.createElement("div");return e&&o(n,e),t.appendChild(n),n}function A(t,e){var n=j(t,i.cssClasses.origin),r=j(n,i.cssClasse
1s.handle);return r.setAttribute("data-handle",e),r.setAttribute("tabindex","0"),r.setAttribute("role","slider"),r.setAttribute("aria-orientation",i.ort?"vertical":"horizontal"),0===e?o(r,i.cssClasses.handleLower):e===i.handles-1&&o(r,i.cssClasses.handleUpper),n}function k(t,e){return!!e&&j(t,i.cssClasses.connect)}function I(){var t;d&&((t=d).parentElement.removeChild(t),d=null)}function D(t){I();var e=t.mode,n=t.filter||!1,r=function(t,e,n){var r,i={},o=E.xVal[0],s=E.xVal[E.xVal.length-1],a=!1,u=!1,c=0;return(r=n.slice().sort((function(t,e){return t-e})),n=r.filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==o&&(n.unshift(o),a=!0),n[n.length-1]!==s&&(n.push(s),u=!0),n.forEach((function(r,o){var s,l,h,f,d,p,m,g,y=r,v=n[o+1];if("steps"===e&&(s=E.xNumSteps[o]),s||(s=v-y),!1!==y&&void 0!==v)for(s=Math.max(s,1e-7),l=y;l<=v;l=(l+s).toFixed(7)/1){for(g=(d=(f=E.toStepping(l))-c)/(m=Math.round(d/t)),h=1;h<=m;h+=1)i[(c+h*g).toFixed(5)]=["x",0];p=n.indexOf(l)>-1?1:"steps"===e?2:0,!o&&a&&(p=0),l===v&&u||(i[f.toFixed(5)]=[l,p]),c=f}})),i}(t.density||1,e,function(t,e,n){if("range"===t||"steps"===t)return E.xVal;if("count"===t){if(!e)throw new Error("noUiSlider (10.1.0): 'values' required for mode 'count'.");var r,i=100/(e-1),o=0;for(e=[];(r=o++*i)<=100;)e.push(r);t="positions"}return"positions"===t?e.map((function(t){return E.fromStepping(n?E.getStep(t):t)})):"values"===t?n?e.map((function(t){return E.fromStepping(E.getStep(E.toStepping(t)))})):e:void 0}(e,t.values||!1,t.stepped||!1)),s=t.format||{to:Math.round};return d=v.appendChild(function(t,e,n){var r=x.createElement("div"),s=[i.cssClasse
1s.valueNormal,i.cssClasses.valueLarge,i.cssClasses.valueSub],a=[i.cssClasses.markerNormal,i.cssClasses.markerLarge,i.cssClasses.markerSub],u=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],c=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];function l(t,e){var n=e===i.cssClasses.value;return e+" "+(n?u:c)[i.ort]+" "+(n?s:a)[t]}return o(r,i.cssClasses.pips),o(r,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(t).forEach((function(o){!function(t,o){o[1]=o[1]&&e?e(o[0],o[1]):o[1];var s=j(r,!1);s.className=l(o[1],i.cssClasses.marker),s.style[i.style]=t+"%",o[1]&&((s=j(r,!1)).className=l(o[1],i.cssClasses.value),s.style[i.style]=t+"%",s.innerText=n.to(o[0]))}(o,t[o])})),r}(r,n,s))}function R(){var t=c.getBoundingClientRect(),e="offset"+["Width","Height"][i.ort];return 0===i.ort?t.width||c[e]:t.height||c[e]}function P(t,e,n,r){var o=function(o){return!v.hasAttribute("disabled")&&(u=i.cssClasses.tap,!((s=v).classList?s.classList.contains(u):new RegExp("\\b"+u+"\\b").test(s.className)))&&!!(o=function(t,e,n){var r,o,s=0===t.type.indexOf("touch"),u=0===t.type.indexOf("mouse"),c=0===t.type.indexOf("pointer");if(0===t.type.indexOf("MSPointer")&&(c=!0),s&&i.multitouch){var l=function(t){return t.target===n||n.contains(t.target)};if("touchstart"===t.type){var h=Array.prototype.filter.call(t.touches,l);if(h.length>1)return!1;r=h[0].pageX,o=h[0].pageY}else{var f=Array.prototype.find.call(t.changedTouches,l);if(!f)return!1;r=f.pageX,o=f.pageY}}else if(s){if(t.touches.length>1)return!1;r=t.changedTouches[0].pageX,o=t.changedTouches[0].pageY}return e=e||a(x),(u||c)&&(r=t.clientX+e.x,o=t.clientY+e.y),t.pageOffset=e,t.points=[r,o],t.cursor=u||c,t}(o,r.pageOffset,r.target||e))&&!(t===g.start&&void 0!==o.buttons&&o.buttons>1)&&(!r.hover||!o.buttons)&&(y||o.preventDefault(),o.calcPoint=o.points[i.ort],void n(o,r));var s,u},s=[];return t.split(" ").forEach((function(t){e.addEventListener(t,o,!!y&&{passive:!0}),s.push([t,o])})),s}function F(t){var e,n,r,o,s,u,l=100*(t-(n=i.ort,r=(e=c).getBoundingClientRect(),s=(o=e.ownerDocument).documentElement,u=a(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(u.x=0),n?r.top+u.y-s.clientTop:r.left+u.x-s.clientLeft))/R();return i.dir?100-l:l}function L(t,e,n,r){var i=n.slice(),o=[!t,t],s=[t,!t];r=r.slice(),t&&r.reverse(),r.length>1?r.forEach((function(t,n){var r=H(i,t,i[t]+e,o[n],s[n],!1);!1===r?e=0:(e=r-i[t],i[t]=r)})):o=s=[!0];var a=!1;r.forEach((function(t,r){a=G(t,n[t]+e,o[r],s[r])||a})),a&&r.forEach((function(t){M("update",t),M("slide",t)}))}function M(t,e,n){Object.keys(S).forEach((function(r){var o=r.split(".")[0];t===o&&S[r].forEach((function(t){t.call(f,O.map(i.format.to),e,O.slice(),n||!1,b.slice())}))}))}function V(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&B(t,e)}function U(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return B(t,e);var n=(i.dir?-1:1)*(t.calcPoint-e.startCalcPoint);L(n>0,100*n/e.baseSize,e.locations,e.handleNumbers)}function B(e,n){n.handle&&(s(n.handle,i.cssClasses.active),w-=1),n.listeners.forEach((function(t){C.removeEventListener(t[0],t[1])})),0===w&&(s(v,i.cssClasses.drag),Q(),e.cursor&&(T.style.cursor="",T.removeEventListener("selectstart",t))),n.handleNumbers.forEach((function(t){M("change",t),M("set",t),M("end",t)}))}function q(e,n){var r;if(1===n.handleNumbers.length){var s=l[n.handleNumbers[0]];if(s.hasAttribute("disabled"))return!1;
1w+=1,o(r=s.children[0],i.cssClasses.active)}e.stopPropagation();var a=[],u=P(g.move,C,U,{target:e.target,handle:r,listeners:a,startCalcPoint:e.calcPoint,baseSize:R(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:b.slice()}),c=P(g.end,C,B,{target:e.target,handle:r,listeners:a,handleNumbers:n.handleNumbers}),h=P("mouseout",C,V,{target:e.target,handle:r,listeners:a,handleNumbers:n.handleNumbers});a.push.apply(a,u.concat(c,h)),e.cursor&&(T.style.cursor=getComputedStyle(e.target).cursor,l.length>1&&o(v,i.cssClasses.drag),T.addEventListener("selectstart",t,!1)),n.handleNumbers.forEach((function(t){M("start",t)}))}function H(t,e,n,r,o,s){return l.length>1&&(r&&e>0&&(n=Math.max(n,t[e-1]+i.margin)),o&&e<l.length-1&&(n=Math.min(n,t[e+1]-i.margin))),l.length>1&&i.limit&&(r&&e>0&&(n=Math.min(n,t[e-1]+i.limit)),o&&e<l.length-1&&(n=Math.max(n,t[e+1]-i.limit))),i.padding&&(0===e&&(n=Math.max(n,i.padding)),e===l.length-1&&(n=Math.min(n,100-i.padding))),a=n=E.getStep(n),!((n=Math.max(Math.min(a,100),0))===t[e]&&!s)&&n;var a}function z(t){return t+"%"}function Q(){_.forEach((function(t){l[t].childNodes[0].style.zIndex=3+(l.length+(b[t]>50?-1:1)*t)}))}function G(t,e,n,r){return!1!==(e=H(b,t,e,n,r,!1))&&(function(t,e){b[t]=e,O[t]=E.fromStepping(e);var n=function(){l[t].style[i.style]=z(e),W(t),W(t+1)};window.requestAnimationFrame&&i.useRequestAnimationFrame?window.requestAnimationFrame(n):n()}(t,e),!0)}function W(t){if(h[t]){var e=0,n=100;0!==t&&(e=b[t-1]),t!==h.length-1&&(n=b[t]),h[t].style[i.style]=z(e),h[t].style[i.styleOposite]=z(100-n)}}function $(t,e){null!==t&&!1!==t&&("number"==typeof t&&(t=String(t)),!1===(t=i.format.from(t))||isNaN(t)||G(e,E.toStepping(t),!1,!1))}function K(t,e){var o=r(t),s=void 0===b[0];e=void 0===e||!!e,o.forEach($),i.animate&&!s&&n(v,i.cssClasses.tap,i.animationDuration),_.forEach((function(t){G(t,b[t],!0,!1)})),Q(),_.forEach((function(t){M("update",t),null!==o[t]&&e&&M("set",t)}))}function X(){var t=O.map(i.format.to);return 1===t.length?t[0]:t}function Y(t,e){S[t]=S[t]||[],S[t].push(e),"update"===t.split(".")[0]&&l.forEach((function(t,e){M("update",e)}))}if(v.noUiSlider)throw new Error("noUiSlider (10.1.0): Slider was already initialized.");return function(t){o(t,i.cssClasses.target),o(t,0===i.dir?i.cssClasse
1s.ltr:i.cssClasses.rtl),o(t,0===i.ort?i.cssClasses.horizontal:i.cssClasses.vertical),c=j(t,i.cssClasses.base)}(v),function(t,e){l=[],(h=[]).push(k(e,t[0]));for(var n=0;n<i.handles;n++)l.push(A(e,n)),_[n]=n,h.push(k(e,t[n+1]))}(i.connect,c),f={destroy:function(){for(var t in i.cssClasses)i.cssClasses.hasOwnProperty(t)&&s(v,i.cssClasses[t]);for(;v.firstChild;)v.removeChild(v.firstChild);delete v.noUiSlider},steps:function(){return b.map((function(t,e){var n=E.getNearbySteps(t),r=O[e],i=n.thisStep.step,o=null;!1!==i&&r+i>n.stepAfter.startValue&&(i=n.stepAfter.startValue-r),o=r>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&r-n.stepBefore.highestStep,100===t?i=null:0===t&&(o=null);var s=E.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(s))),null!==o&&!1!==o&&(o=Number(o.toFixed(s))),[o,i]}))},on:Y,off:function(t){var e=t&&t.split(".")[0],n=e&&t.substring(e.length);Object.keys(S).forEach((function(t){var r=t.split(".")[0],i=t.substring(r.length);e&&e!==r||n&&n!==i||delete S[t]}))},get:X,set:K,reset:function(t){K(i.start,t)},__moveHandles:function(t,e,n){L(t,e,b,n)},options:u,updateOptions:function(t,e){var n=X(),r=["margin","limit","padding","range","animate","snap","step","format"];r.forEach((function(e){void 0!==t[e]&&(u[e]=t[e])}));var o=N(u);r.forEach((function(e){void 0!==t[e]&&(i[e]=o[e])})),E=o.spectrum,i.margin=o.margin,i.limit=o.limit,i.padding=o.padding,i.pips&&D(i.pips),b=[],K(t.start||n,e)},target:v,removePips:I,pips:D},(m=i.events).fixed||l.forEach((function(t,e){P(g.start,t.children[0],q,{handleNumbers:[e]})})),m.tap&&P(g.start,c,(function(t){t.stopPropagation();var e=F(t.calcPoint),r=function(t){var e=100,n=!1;return l.forEach((function(r,i){if(!r.hasAttribute("disabled")){var o=Math.abs(b[i]-t);o<e&&(n=i,e=o)}})),n}(e);if(!1===r)return!1;i.events.snap||n(v,i.cssClasses.tap,i.animationDuration),G(r,e,!0,!0),Q(),M("slide",r,!0),M("update",r,!0),M("change",r,!0),M("set",r,!0),i.events.snap&&q(t,{handleNumbers:[r]})}),{}),m.hover&&P(g.move,c,(function(t){var e=F(t.calcPoint),n=E.getStep(e),r=E.fromStepping(n);Object.keys(S).forEach((function(t){"hover"===t.split(".")[0]&&S[t].forEach((function(t){t.call(f,r)}))}))}),{hover:!0}),m.drag&&h.forEach((function(t,e){if(!1!==t&&0!==e&&e!==h.length-1){var n=l[e-1],r=l[e],s=[t];o(t,i.cssClasses.draggable),m.fixed&&(s.push(n.children[0]),s.push(r.children[0])),s.forEach((function(t){P(g.start,t,q,{handles:[n,r],handleNumbers:[e-1,e]})}))}})),K(i.start),i.pips&&D(i.pips),i.tooltips&&(p=l.map((function(t,e){return!!i.tooltips[e]&&j(t.firstChild,i.cssClasse
1s.tooltip)})),Y("update",(function(t,e,n){if(p[e]){var r=t[e];!0!==i.tooltips[e]&&(r=i.tooltips[e].to(n[e])),p[e].innerHTML=r}}))),Y("update",(function(t,e,n,r,o){_.forEach((function(t){var e=l[t],r=H(b,t,0,!0,!0,!0),s=H(b,t,100,!0,!0,!0),a=o[t],u=i.ariaFormat.to(n[t]);e.children[0].setAttribute("aria-valuemin",r.toFixed(1)),e.children[0].setAttribute("aria-valuemax",s.toFixed(1)),e.children[0].setAttribute("aria-valuenow",a.toFixed(1)),e.children[0].setAttribute("aria-valuetext",u)}))})),f}return{version:"10.1.0",create:function(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider (10.1.0): create requires a single element, got: "+t);var n=L(t,N(e),e);return t.noUiSlider=n,n}}})?r.apply(e,[]):r)||(t.exports=i)},"6kBg":function(t,e,n){"use strict";var r=n("TUb6"),i=n("t8G0"),o=n("LOHT"),s=n("0oCz"),a=n("8uDF"),u=n("T7LP"),c=n("TYy9"),l=n("bNQv"),h=n("E+oP"),f=n("3WF5"),d=n("lAdM"),p=n("5zHL");function m(t,e,n){t.addAlgoliaAgent&&!v(t)&&t.addAlgoliaAgent("JS Helper ("+p+")"),this.setClient(t);var i=n||{};i.index=e,this.state=r.make(i),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function g(t){if(t<0)throw new Error("Page requested below 0.");return this._change(this.state.setPage(t)),this}function y(){return this.state.page}function v(t){var e=t._ua;return!!e&&-1!==e.indexOf("JS Helper")}u(m,a.EventEmitter),m.prototype.search=function(){return this._search(),this},m.prototype.getQuery=function(){return s._getHitsSearchParams(this.state)},m.prototype.searchOnce=function(t,e){var n=t?this.state.setQueryParameters(t):this.state,r=s._getQueries(n.index,n),o=this;if(this._currentNbQueries++,this.emit("searchOnce",n),!e)return this.client.search(r).then((function(t){return o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),{content:new i(n,t.results),state:n,_originalResponse:t}}),(function(t){throw o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t}));this.client.search(r).then((function(t){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),e(null,new i(n,t.results),n)})).catch((function(t){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),e(t,null,n)}))},m.prototype.searchForFacetValues=function(t,e,n,r){var i="function"==typeof this.client.searchForFacetValues;if(!i&&"function"!=typeof this.client.initIndex)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var o=this.state.setQueryParameters(r||{}),a=o.isDisjunctiveFacet(t),u=s.getSearchForFacetQuery(t,e,n,o);this._currentNbQueries++;var c=this;return this.emit("searchForFacetValues",o,t,e),(i?this.client.searchForFacetValues([{indexName:o.index,params:u}]):this.client.initIndex(o.index).searchForFacetValues(u)).then((function(e){return c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),(e=Array.isArray(e)?e[0]:e).facetHits=l(e.facetHits,(function(e){e.isRefined=a?o.isDisjunctiveFacetRefined(t,e.value):o.isFacetRefined(t,e.value)})),e}),(function(t){throw c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),t}))},m.prototype.setQuery=function(t){return this._change(this.state.setPage(0).setQuery(t)),this},m.prototype.clearRefinements=function(t){return this._change(this.state.setPage(0).clearRefinements(t)),this},m.prototype.clearTags=function(){return this._change(this.state.setPage(0).clearTags()),this},m.prototype.addDisjunctiveFacetRefinement=function(t,e){return this._change(this.state.setPage(0).addDisjunctiveFacetRefinement(t,e)),this},m.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},m.prototype.addHierarchicalFacetRefinement=function(t,e){return this._change(this.state.setPage(0).addHierarchicalFacetRefinement(t,e)),this},m.prototype.addNumericRefinement=function(t,e,n){return this._change(this.state.setPage(0).addNumericRefinement(t,e,n)),this},m.prototype.addFacetRefinement=function(t,e){return this._change(this.state.setPage(0).addFacetRefinement(t,e)),this},m.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},m.prototype.addFacetExclusion=function(t,e){return this._change(this.state.setPage(0).addExcludeRefinement(t,e)),this},m.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},m.prototype.addTag=function(t){return this._change(this.state.setPage(0).addTagRefinement(t)),this},m.prototype.removeNumericRefinement=function(t,e,n){return this._change(this.state.setPage(0).removeNumericRefinement(t,e,n)),this},m.prototype.removeDisjunctiveFacetRefinement=function(t,e){return this._change(this.state.setPage(0).removeDisjunctiveFacetRefinement(t,e)),this},m.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},m.prototype.removeHierarchicalFacetRefinement=function(t){return this._change(this.state.setPage(0).removeHierarchicalFacetRefinement(t)),this},m.prototype.removeFacetRefinement=function(t,e){return this._change(this.state.setPage(0).removeFacetRefinement(t,e)),this},m.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},m.prototype.removeFacetExclusion=function(t,e){return this._change(this.state.setPage(0).removeExcludeRefinement(t,e)),this},m.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},m.prototype.removeTag=function(t){return this._change(this.state.setPage(0).removeTagRefinement(t)),this},m.prototype.toggleFacetExclusion=function(t,e){return this._change(this.state.setPage(0).toggleExcludeFacetRefinement(t,e)),this},m.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},m.prototype.toggleRefinement=function(t,e){return this.toggleFacetRefinement(t,e)},m.prototype.toggleFacetRefinement=function(t,e){return this._change(this.state.setPage(0).toggleFacetRefinement(t,e)),this},m.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},m.prototype.toggleTag=function(t){return this._change(this.state.setPage(0).toggleTagRefinement(t)),this},m.prototype.nextPage=function(){return this.setPage(this.state.page+1)},m.prototype.previousPage=function(){return this.setPage(this.state.page-1)},m.prototype.setCurrentPage=g,m.prototype.setPage=g,m.prototype.setIndex=function(t){return this._change(this.state.setPage(0).setIndex(t)),this},m.prototype.setQueryParameter=function(t,e){return this._change(this.state.setPage(0).setQueryParameter(t,e)),this},m.prototype.setState=function(t){return this._change(r.make(t)),this},m.prototype.getState=function(t){return void 0===t?this.state:this.state.filter(t)},m.prototype.getStateAsQueryString=function(t){var e=this.getState(t&&t.filters||["query","attribute:*"]);return d.getQueryStringFromState(e,t)},m.getConfigurationFromQueryString=d.getStateFromQueryString,m.getForeignConfigurationInQueryString=d.getUnrecognizedParametersInQueryString,m.prototype.setStateFromQueryString=function(t,e){var n=e&&e.triggerChange||!1,r=d.getStateFromQueryString(t,e),i=this.state.setQueryParameters(r);n?this.setState(i):this.overrideStateWithoutTriggeringChangeEvent(i)},m.prototype.overrideStateWithoutTriggeringChangeEvent=function(t){return this.state=new r(t),this},m.prototype.isRefined=function(t,e){if(this.state.isConjunctiveFacet(t))return this.state.isFacetRefined(t,e);if(this.state.isDisjunctiveFacet(t))return this.state.isDisjunctiveFacetRefined(t,e);throw new Error(t+" is not properly defined in this helper configuration(use the facets or disjunctiveFacets keys to configure it)")}
1,m.prototype.hasRefinements=function(t){return!h(this.state.getNumericRefinements(t))||(this.state.isConjunctiveFacet(t)?this.state.isFacetRefined(t):this.state.isDisjunctiveFacet(t)?this.state.isDisjunctiveFacetRefined(t):!!this.state.isHierarchicalFacet(t)&&this.state.isHierarchicalFacetRefined(t))},m.prototype.isExcluded=function(t,e){return this.state.isExcludeRefined(t,e)},m.prototype.isDisjunctiveRefined=function(t,e){return this.state.isDisjunctiveFacetRefined(t,e)},m.prototype.hasTag=function(t){return this.state.isTagRefined(t)},m.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},m.prototype.getIndex=function(){return this.state.index},m.prototype.getCurrentPage=y,m.prototype.getPage=y,m.prototype.getTags=function(){return this.state.tagRefinements},m.prototype.getQueryParameter=function(t){return this.state.getQueryParameter(t)},m.prototype.getRefinements=function(t){var e=[];if(this.state.isConjunctiveFacet(t)){var n=this.state.getConjunctiveRefinements(t);l(n,(function(t){e.push({value:t,type:"conjunctive"})}));var r=this.state.getExcludeRefinements(t);l(r,(function(t){e.push({value:t,type:"exclude"})}))}else if(this.state.isDisjunctiveFacet(t)){var i=this.state.getDisjunctiveRefinements(t);l(i,(function(t){e.push({value:t,type:"disjunctive"})}))}var o=this.state.getNumericRefinements(t);return l(o,(function(t,n){e.push({value:t,operator:n,type:"numeric"})})),e},m.prototype.getNumericRefinement=function(t,e){return this.state.getNumericRefinement(t,e)},m.prototype.getHierarchicalFacetBreadcrumb=function(t){return this.state.getHierarchicalFacetBreadcrumb(t)},m.prototype._search=function(){var t=this.state,e=s._getQueries(t.index,t),n=[{state:t,queriesCount:e.length,helper:this}];this.emit("search",t,this.lastResults);var r=f(this.derivedHelpers,(function(e){var r=e.getModifiedState(t),i=s._getQueries(r.index,r);return n.push({state:r,queriesCount:i.length,helper:e}),e.emit("search",r,e.lastResults),i})),i=e.concat(c(r)),o=this._queryId++;this._currentNbQueries++;try{this.client.search(i).then(this._dispatchAlgoliaResponse.bind(this,n,o)).catch(this._dispatchAlgoliaError.bind(this,o))}catch(a){this.emit("error",a)}},m.prototype._dispatchAlgoliaResponse=function(t,e,n){if(!(e<this._lastQueryIdReceived)){this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var r=n.results.slice();l(t,(function(t){var e=t.state,n=t.helper,o=r.splice(0,t.queriesCount),s=n.lastResults=new i(e,o);n.emit("result",s,e)}))}},m.prototype._dispatchAlgoliaError=function(t,e){t<this._lastQueryIdReceived||(this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,this.emit("error",e),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},m.prototype.containsRefinement=function(t,e,n,r){return t||0!==e.length||0!==n.length||0!==r.length},m.prototype._hasDisjunctiveRefinements=function(t){return this.state.disjunctiveRefinements[t]&&this.state.disjunctiveRefinements[t].length>0},m.prototype._change=function(t){t!==this.state&&(this.state=t,this.emit("change",this.state,this.lastResults))},m.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},m.prototype.setClient=function(t){return this.client===t||(t.addAlgoliaAgent&&!v(t)&&t.addAlgoliaAgent("JS Helper ("+p+")"),this.client=t),this},m.prototype.getClient=function(){return this.client},m.prototype.derive=function(t){var e=new o(this,t);return this.derivedHelpers.push(e),e},m.prototype.detachDerivedHelper=function(t){var e=this.derivedHelpers.indexOf(t);if(-1===e)throw new Error("Derived helper already detached");this.derivedHelpers.splice(e,1)},m.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},t.exports=m},"6sVZ":function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},"7+OI":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("HDdC");function i(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"711d":function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},"77Zs":function(t,e,n){var r=n("Xi7e");t.exports=function(){this.__data__=new r,this.size=0}},"7GkX":function(t,e,n){var r=n("b80T"),i=n("A90E"),o=n("MMmD");t.exports=function(t){return o(t)?r(t):i(t)}},"7Hc7":function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return d}));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("3N8a");
1class 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("IjjT");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}}}const f=new h(c),d=f},"7Ix3":function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},"7Paf":function(t,e){t.exports=function(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}},"7Ule":function(t,e,n){var r=n("v61W");t.exports=function(t,e){var n=[];return r(t,(function(r,i){n.push(e(r,i,t))})),n}},"7fqy":function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("n6bG"),i=n("gRHU"),o=n("quSY"),s=n("2QA8"),a=n("2fFW"),u=n("NJ4a");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()}}},"88Gu":function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},"8KqL":function(t,e,n){function r(){var t;try{t=e.storage.debug}catch(n){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t}(e=t.exports=n("dac+")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))})),t.splice(o,0,r)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(n){}},e.load=r,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},e.enable(r())},"8LbN":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("9/Zf"),i=Object(r.e)(),o="Sentry Logger ",s=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(r.c)((function(){i.console.log(o+"[Log]: "+t.join(" "))}))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(r.c)((function(){i.console.warn(o+"[Warn]: "+t.join(" "))}))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(r.c)((function(){i.console.error(o+"[Error]: "+t.join(" "))}))},t}();i.__SENTRY__=i.__SENTRY__||{};var a=i.__SENTRY__.logger||(i.__SENTRY__.logger=new s)},"8uDF":function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function i(t){return"object"==typeof t&&null!==t}function o(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,s,a,u,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((e
1=arguments[1])instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}if(o(n=this._events[t]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(i(n))for(a=Array.prototype.slice.call(arguments,1),s=(c=n.slice()).length,u=0;u<s;u++)c[u].apply(this,a);return!0},n.prototype.on=n.prototype.addListener=function(t,e){var s;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?i(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,i(this._events[t])&&!this._events[t].warned&&(s=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[t].length>s&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.once=function(t,e){if(!r(e))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(t,i),n||(n=!0,e.apply(this,arguments))}return i.listener=e,this.on(t,i),this},n.prototype.removeListener=function(t,e){var n,o,s,a;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(s=(n=this._events[t]).length,o=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(i(n)){for(a=s;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){o=a;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},"9/Zf":function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"j",(function(){return s})),n.d(e,"h",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return d})),n.d(e,"i",(function(){return p}));var r=n("+A1k"),i=(n("+924"),{});function o(){return Object(r.b)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function s(){var t=o(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function a(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return e?{host:e[4],path:e[5],protocol:e[2],relative:e[5]+(e[6]||"")+(e[8]||"")}:{}}function u(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function c(t){var e=o();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)}));var i=t();return Object.keys(r).forEach((function(t){n[t]=r[t]})),i}function l(t,e,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function h(t,e){void 0===e&&(e={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach((function(n){t.exception.values[0].mechanism[n]=e[n]}))}catch(n){}}function f(){try{return document.location.href}catch(t){return""}}function d(t,e){if(!e)return 6e4;var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?6e4:r-t}
1function p(t){return t.split(/[\?#]/,1)[0]}},"99Ms":function(t,e,n){var r=n("s0N+"),i=n("88Gu")(r);t.exports=i},"9AQC":function(t,e,n){"use strict";function r(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(t,Error)}}function i(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function o(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function s(t){return"[object DOMException]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function u(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function c(t){return"[object Object]"===Object.prototype.toString.call(t)}function l(t){return"undefined"!=typeof Event&&m(t,Event)}function h(t){return"undefined"!=typeof Element&&m(t,Element)}function f(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function d(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function p(t){return c(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function m(t,e){try{return t instanceof e}catch(n){return!1}}n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"k",(function(){return a})),n.d(e,"i",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"c",(function(){return h})),n.d(e,"j",(function(){return f})),n.d(e,"m",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"g",(function(){return m}))},"9Nap":function(t,e,n){var r=n("/9aa");t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},"9SYa":function(t,e,n){t.exports=function(t,e){return function(n,i,o){if("function"==typeof n&&"object"==typeof i||"object"==typeof o)throw new r.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof n?(o=n,n=""):1!==arguments.length&&"function"!=typeof i||(o=i,i=void 0),"object"==typeof n&&null!==n?(i=n,n=void 0):null==n&&(n="");var s,a="";return void 0!==n&&(a+=t+"="+encodeURIComponent(n)),void 0!==i&&(i.additionalUA&&(s=i.additionalUA,delete i.additionalUA),a=this.as._getSearchParams(i,a)),this._search(a,e,o,s)}};var r=n("Z4lL")},"9ggG":function(t,e,n){var r=n("Z0cm"),i=n("/9aa"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},"9p7i":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("tyNb"),i=n("fXoL"),o=n("ofXK");let s=(()=>{class t{constructor(t,e){this.router=t,this.location=e,this.history=[],this.router.events.subscribe(t=>{t instanceof r.c&&this.history.push(t.urlAfterRedirects)})}back(){this.history.pop(),this.history.length>0?this.location.back():this.router.navigateByUrl("/")}}return t.\u0275fac=function(e){return new(e||t)(i.ec(r.e),i.ec(o.o))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"9ppp":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},A90E:function(t,e,n){var r=n("6sVZ"),i=n("V6Ve"),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},AP2z:function(t,e,n){var r=n("nmnc"),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(u){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},Ag8Z:function(t,e,n){var r=n("JC6p"),i=n("EwQA");t.exports=function(t,e){return t&&r(t,i(e))}},AytR:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r={production:!0,appDomain:"https://osfa.info",firebase:{apiKey:"AIzaSyCMf5tG3VCRjAfdh1hUH7ShLyUMVp19lls",authDomain:"osfa-web.firebaseapp.com",projectId:"osfa-web",storageBucket:"osfa-web.appspot.com",messagingSenderId:"399862287928",appId:"1:399862287928:web:862fe02190ada911d420cd",measurementId:"G-Y79RCRNEGR"},algolia:{appId:"MGAYRBQR5B",searchApiKey:"c061cc6f8aaf10d890bf9f6317eaca85"}
1,shopify:{client:{domain:"oklahoma-state-fire-association.myshopify.com",storefrontAccessToken:"8c9dbc31091127aca15aef8b04fd9dba"}},recaptcha:{siteKey:"6LdqBYgaAAAAADZIaNw39JasG4t3wci4K1dM1Hf5"},stripe:{osfa:"pk_live_51IW3YQJN34q7aZNsjD8eolNpsFcIOhzAcUJ53On4EmF4L9npu1EKIz3s8T8hp6s5b2sOe7woyOqs967o8KLBnSII00UvCZemr2",ofca:"pk_live_51IYGLpB32pu3hpot8L7VwybLskXGXVkWa3IABjxbyningjXM4lGSyK5h1VsoQJ7tZ55CG1uF4Gs511ZQG2TjcUes00AaOmVFn3",orfa:"pk_live_51IYGMqHTDbL81eyPSuqUuRuJ4nHon5nzCA8uVgUy5c9KVMCnnEeFZ0IN4GW37PiBflN0ECbDdGvgFtVYQagXM0ld00lDNYN2Jg"},calendar:{enableEventRegistration:!0},defaultTestEmail:"[email protected]"}},B8du:function(t,e){t.exports=function(){return!1}},BFxc:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q"),i=n("4I5i"),o=n("EY2u");function s(t){return function(e){return 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.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()}}},BiGR:function(t,e,n){var r=n("nmnc"),i=n("03A+"),o=n("Z0cm"),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},CH3K:function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},CLvp:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return s}));var r=n("+A1k"),i=n("8LbN"),o=n("6PXS"),s=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(e,n){var s;try{s=Object(r.a)(t,"pg").Client}catch(a){return void i.a.error("Postgres Integration was unable to require `pg` package.")}Object(o.c)(s.prototype,"query",(function(t){return function(e,r,i){var o,s,a=null===(s=null===(o=n().getScope())||void 0===o?void 0:o.getSpan())||void 0===s?void 0:s.startChild({description:"string"==typeof e?e:e.text,op:"db"});return"function"==typeof i?t.call(this,e,r,(function(t,e){var n;null===(n=a)||void 0===n||n.finish(),i(t,e)})):"function"==typeof r?t.call(this,e,(function(t,e){var n;null===(n=a)||void 0===n||n.finish(),r(t,e)})):t.call(this,e,r).then((function(t){var e;return null===(e=a)||void 0===e||e.finish(),t}))}}))},e.id="Postgres",e}()}).call(this,n("3UD+")(t))},CMye:function(t,e,n){var r=n("GoyQ");t.exports=function(t){return t==t&&!r(t)}},CULM:function(t,e,n){"use strict";var r=n("xaJk"),i=n("J2m7"),o=n("Xdxp");t.exports=function(t,e){return r(t,(function(t,n){var r=n.split(":");if(e&&1===r.length){var s=i(e,(function(t){return o(t,n[0])}));s&&(r=s.split(":"))}return t[0].push(r[0]),t[1].push(r[1]),t}),[[],[]])}},CZoQ:function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},Cfvw:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("HDdC"),i=n("SeVD"),o=n("quSY"),s=n("kJWO"),a=n("jZKg"),u=n("Lhse"),c=n("c2HN"),l=n("I55L");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)}
1e?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))}},Cwc5:function(t,e,n){var r=n("NKxu"),i=n("Npjl");t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},D0XW:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n("3N8a");const i=new(n("IjjT").a)(r.a),o=i},DH7j:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},DSRE:function(t,e,n){(function(t){var r=n("Kz5y"),i=n("B8du"),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0;t.exports=(a?a.isBuffer:void 0)||i}).call(this,n("YuTi")(t))},DiRl:function(t,e,n){"use strict";t.exports="3.35.1"},"Dw+G":function(t,e,n){var r=n("juv8"),i=n("mTTR");t.exports=function(t,e){return t&&r(e,i(e),t)}},"E+oP":function(t,e,n){var r=n("A90E"),i=n("QqLw"),o=n("03A+"),s=n("Z0cm"),a=n("MMmD"),u=n("DSRE"),c=n("6sVZ"),l=n("c6wG"),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(s(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},E2g8:function(t,e,n){t.exports=function(){"use strict";function t(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=0,r=void 0,i=void 0,o=function(t,e){f[n]=t,f[n+1]=e,2===(n+=2)&&(i?i(d):v())},s="undefined"!=typeof window?window:void 0,a=s||{},u=a.MutationObserver||a.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),l="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var t=setTimeout;return function(){return t(d,1)}}var f=new Array(1e3);function d(){for(var t=0;t<n;t+=2)(0,f[t])(f[t+1]),f[t]=void 0,f[t+1]=void 0;n=0}var p,m,g,y,v=void 0;function b(t,e){var n=this,r=new this.constructor(E);void 0===r[w]&&R(r);var i=n._state;if(i){var s=arguments[i-1];o((function(){return I(i,r,s,n._result)}))}else A(n,r,t,e);return r}function _(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(E);return x(e,t),e}c?v=function(){return process.nextTick(d)}:u?(m=0,g=new u(d),y=document.createTextNode(""),g.observe(y,{characterData:!0}),v=function(){y.data=m=++m%2}):l?((p=new MessageChannel).port1.onmessage=d,v=function(){return p.port2.postMessage(0)}):v=void 0===s?function(){try{var t=Function("return this")().require("vertx");return void 0!==(r=t.runOnLoop||t.runOnContext)?function(){r(d)}:h()}catch(e){return h()}}():h();var w=Math.random().toString(36).substring(2);function E(){}var O=void 0;function S(e,n,r){n.constructor===e.constructor&&r===b&&n.constructor.resolve===_?function(t,e){1===e._state?T(t,e._result):2===e._state?j(t,e._result):A(e,void 0,(function(e){return x(t,e)}),(function(e){return j(t,e)}))}(e,n):void 0===r?T(e,n):t(r)?function(t,e,n){o((function(t){var r=!1,i=function(n,i,o,s){try{n.call(i,(function(n){r||(r=!0,e!==n?x(t,n):T(t,n))}),(function(e){r||(r=!0,j(t,e))}))}catch(a){return a}}(n,e);!r&&i&&(r=!0,j(t,i))}),t)}(e,n,r):T(e,n)}function x(t,e){if(t===e)j(t,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=e),null===r||"object"!==i&&"function"!==i)T(t,e);else{var n=void 0;try{n=e.then}catch(o){return void j(t,o)}S(t,e,n)}var r,i}function C(t){t._onerror&&t._onerror(t._result),k(t)}function T(t,e){t._state===O&&(t._result=e,t._state=1,0!==t._subscribers.length&&o(k,t))}function j(t,e){t._state===O&&(t._state=2,t._result=e,o(C,t))}function A(t,e,n,r){var i=t._subscribers,s=i.length;t._onerror=null,i[s]=e,i[s+1]=n,i[s+2]=r,0===s&&t._state&&o(k,t)}function k(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,i=void 0,o=t._result,s=0;s<e.length;s+=3)i=e[s+n],(r=e[s])?I(n,r,i,o):i(o);t._subscribers.length=0}}function I(e,n,r,i){var o=t(r),s=void 0,a=void 0,u=!0;if(o){try{s=r(i)}catch(c){u=!1,a=c}if(n===s)return void j(n,new TypeError("A promises callback cannot return that same promise."))}else s=i;n._state!==O||(o&&u?x(n,s):!1===u?j(n,a):1===e?T(n,s):2===e&&j(n,s))}var D=0;function R(t){t[w]=D++,t._state=void 0,t._result=void 0,t._subscribers=[]}var P=function(){function t(t,n){this._instanceConstructor=t,this.promise=new t(E),this.promise[w]||R(this.promise),e(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?T(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&T(this.promise,this._result))):j(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===O&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===_){var i=void 0,o=void 0,s=!1;try{i=t.then}catch(u){s=!0,o=u}if(i===b&&t._state!==O)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(n===F){var a=new n(E);s?j(a,o):S(a,t,i),this._willSettleAt(a,e)}
1else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===O&&(this._remaining--,2===t?j(r,n):this._result[e]=n),0===this._remaining&&T(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;A(t,void 0,(function(t){return n._settledAt(1,e,t)}),(function(t){return n._settledAt(2,e,t)}))},t}(),F=function(){function e(t){this[w]=D++,this._result=this._state=void 0,this._subscribers=[],E!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(t,e){try{e((function(e){x(t,e)}),(function(e){j(t,e)}))}catch(n){j(t,n)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var n=this,r=n.constructor;return t(e)?n.then((function(t){return r.resolve(e()).then((function(){return t}))}),(function(t){return r.resolve(e()).then((function(){throw t}))})):n.then(e,e)},e}();return F.prototype.then=b,F.all=function(t){return new P(this,t).promise},F.race=function(t){var n=this;return e(t)?new n((function(e,r){for(var i=t.length,o=0;o<i;o++)n.resolve(t[o]).then(e,r)})):new n((function(t,e){return e(new TypeError("You must pass an array to race."))}))},F.resolve=_,F.reject=function(t){var e=new this(E);return j(e,t),e},F._setScheduler=function(t){i=t},F._setAsap=function(t){o=t},F._asap=o,F.polyfill=function(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(r){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(r){}if("[object Promise]"===n&&!e.cast)return}t.Promise=F},F.Promise=F,F}()},E2jh:function(t,e,n){var r,i=n("2gN3"),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},EA7m:function(t,e,n){var r=n("zZ0H"),i=n("Ioao"),o=n("wclG");t.exports=function(t,e){return o(i(t,e,r),t+"")}},EEGq:function(t,e,n){var r=n("juv8"),i=n("oCl/");t.exports=function(t,e){return r(t,i(t),e)}},ERuW:function(t,e,n){var r=n("JbSc"),i=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",n=r[e],o=i.call(r,e)?n.length:0;o--;){var s=n[o],a=s.func;if(null==a||a==t)return s.name}return e}},EY2u:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n("HDdC");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}},EldB:function(t,e,n){var r=n("dTAl"),i=n("GoyQ");t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=r(t.prototype),o=t.apply(n,e);return i(o)?o:n}}},Em2t:function(t,e,n){var r=n("bahg"),i=n("quyA"),o=n("0JQy");t.exports=function(t){return i(t)?o(t):r(t)}},EpBk:function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},EwQA:function(t,e,n){var r=n("zZ0H");t.exports=function(t){return"function"==typeof t?t:r}},ExA7:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},FZoo:function(t,e,n){var r=n("MrPd"),i=n("4uTw"),o=n("wJg7"),s=n("GoyQ"),a=n("9Nap");t.exports=function(t,e,n,u){if(!s(t))return t;for(var c=-1,l=(e=i(e,t)).length,h=l-1,f=t;null!=f&&++c<l;){var d=a(e[c]),p=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(c!=h){var m=f[d];void 0===(p=u?u(m,d,f):void 0)&&(p=s(m)?m:o(e[c+1])?[]:{})}r(f,d,p),f=f[d]}return t}},FfPP:function(t,e,n){var r=n("idmN"),i=n("hgQt");t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},G6z8:function(t,e,n){var r=n("fR/l"),i=n("oCl/"),o=n("mTTR");t.exports=function(t){return r(t,o,i)}},GA8c:function(t,e,n){"use strict";var r=n("J/PD"),i=n("7GkX"),o={advancedSyntax:"aS",allowTyposOnNumericTokens:"aTONT",analyticsTags:"aT",anal
1ytics:"a",aroundLatLngViaIP:"aLLVIP",aroundLatLng:"aLL",aroundPrecision:"aP",aroundRadius:"aR",attributesToHighlight:"aTH",attributesToRetrieve:"aTR",attributesToSnippet:"aTS",disjunctiveFacetsRefinements:"dFR",disjunctiveFacets:"dF",distinct:"d",facetsExcludes:"fE",facetsRefinements:"fR",facets:"f",getRankingInfo:"gRI",hierarchicalFacetsRefinements:"hFR",hierarchicalFacets:"hF",highlightPostTag:"hPoT",highlightPreTag:"hPrT",hitsPerPage:"hPP",ignorePlurals:"iP",index:"idx",insideBoundingBox:"iBB",insidePolygon:"iPg",length:"l",maxValuesPerFacet:"mVPF",minimumAroundRadius:"mAR",minProximity:"mP",minWordSizefor1Typo:"mWS1T",minWordSizefor2Typos:"mWS2T",numericFilters:"nF",numericRefinements:"nR",offset:"o",optionalWords:"oW",page:"p",queryType:"qT",query:"q",removeWordsIfNoResults:"rWINR",replaceSynonymsInHighlight:"rSIH",restrictSearchableAttributes:"rSA",synonyms:"s",tagFilters:"tF",tagRefinements:"tR",typoTolerance:"tT",optionalTagFilters:"oTF",optionalFacetFilters:"oFF",snippetEllipsisText:"sET",disableExactOnAttributes:"dEOA",enableExactOnSingleWordQuery:"eEOSWQ"},s=r(o);t.exports={ENCODED_PARAMETERS:i(s),decode:function(t){return s[t]},encode:function(t){return o[t]}}},GDhZ:function(t,e,n){var r=n("wF/u"),i=n("mwIZ"),o=n("hgQt"),s=n("9ggG"),a=n("CMye"),u=n("IOzZ"),c=n("9Nap");t.exports=function(t,e){return s(t)&&a(e)?u(c(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},GNiM:function(t,e,n){var r=n("I01J"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=s},GODc:function(t,e,n){var r=n("UB5X");t.exports=function(t){return r(t)&&t!=+t}},Gi0A:function(t,e,n){var r=n("QqLw"),i=n("ExA7");t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},GoyQ:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},GyhO:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("LRne"),i=n("0EUg");function o(...t){return Object(i.a)()(Object(r.a)(...t))}},H8j4:function(t,e,n){var r=n("QkVE");t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},HDdC:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("7o/Q"),i=n("2QA8"),o=n("gRHU"),s=n("kJWO"),a=n("mCNh"),u=n("2fFW");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}},HDyB:function(t,e,n){var r=n("nmnc"),i=n("JHRd"),o=n("ljhN"),s=n("or5M"),a=n("7fqy"),u=n("rEGp"),c=r?r.prototype:void 0,l=c?c.valueOf
1:void 0;t.exports=function(t,e,n,r,c,h,f){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=a;case"[object Set]":if(d||(d=u),t.size!=e.size&&!(1&r))return!1;var p=f.get(t);if(p)return p==e;r|=2,f.set(t,e);var m=s(d(t),d(e),r,c,h,f);return f.delete(t),m;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},HLqC:function(t,e,n){var r=n("R5Y4"),i=n("mv/X"),o=n("ZCgT");t.exports=function(t){return function(e,n,s){return s&&"number"!=typeof s&&i(e,n,s)&&(n=s=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),s=void 0===s?e<n?1:-1:o(s),r(e,n,s,t)}}},HOxn:function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"Promise");t.exports=r},HR75:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r,i=n("9AQC");!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(r||(r={}));var o=function(){function t(t){var e=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(r.RESOLVED,t)},this._reject=function(t){e._setResult(r.REJECTED,t)},this._setResult=function(t,n){e._state===r.PENDING&&(Object(i.m)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==r.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t.done||(e._state===r.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===r.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)}))}};try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}return t.resolve=function(e){return new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.all=function(e){return new t((function(n,r){if(Array.isArray(e))if(0!==e.length){var i=e.length,o=[];e.forEach((function(e,s){t.resolve(e).then((function(t){o[s]=t,0==(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},t.prototype.then=function(e,n){var r=this;return new t((function(t,i){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(r){return void i(r)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(r){return void i(r)}else i(e)}})}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,r){var i,o;return n.then((function(t){o=!1,i=t,e&&e()}),(function(t){o=!0,i=t,e&&e()})).then((function(){o?r(i):t(i)}))}))},t.prototype.toString=function(){return"[object SyncPromise]"},t}()},HRBS:function(t,e,n){"use strict";var r=n("TP7S"),i=n("4qC0"),o=n("lSCD"),s=n("E+oP"),a=n("la6v"),u=n("xaJk"),c=n("k4Da"),l=n("Puqe"),h={addRefinement:function(t,e,n){if(h.isRefined(t,e,n))return t;var r=""+n,i=t[e]?t[e].concat(r):[r],o={};return o[e]=i,a({},o,t)},removeRefinement:function(t,e,n){if(r(n))return h.clearRefinement(t,e);var i=""+n;return h.clearRefinement(t,(function(t,n){return e===n&&i===t}))},toggleRefinement:function(t,e,n){if(r(n))throw new Error("toggleRefinement should be used with a value");return h.isRefined(t,e,n)?h.removeRefinement(t,e,n):h.addRefinement(t,e,n)},clearRefinement:function(t,e,n){if(r(e))return s(t)?t:{};if(i(e))return s(t[e])?t:l(t,e);if(o(e)){var a=!1,h=u(t,(function(t,r,i){var o=c(r,(function(t){return!e(t,i,n)}));return s(o)?a=!0:(o.length!==r.length&&(a=!0),t[i]=o),t}),{});return a?h:t}},isRefined:function(t,e,i){var o=n("uoTU"),s=!!t[e]&&t[e].length>0;return r(i)||!s?s:-1!==o(t[e],""+i)}};t.exports=h},Hvzi:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},"I+LG":function(t,e,n){var r=n("JC6p");t.exports=function(t,e,n,i){return r(t,(function(t,r,o){e(i,n(t),r,o)})),i}},"I/3d":function(t,e,n){"use strict";n.d(e,"a",(function(){return P}));var r=n("fXoL"),i=n("D0XW"),o=n("HDdC"),s=n("Cfvw"),a=n("LRne"),u=n("JX91"),c=n("Zy1z"),l=n("lJxs"),h=n("Kqap"),f=n("/uUt"),d=n("pLZG"),p=n("pxpQ"),m=n("spgP"),g=n("ofXK"),y=n("Wcq6"),v=n.n(y),b=(n("6Joi"),n("UbJi"));function _(t,e){return function(t,e=i.b){return new o.a(n=>{let r;return null!=e?e.schedule(()=>{r=t.onSnapshot({includeMetadataChanges:!0},n)}):r=t.onSnapshot({includeMetadataChanges:!0},n),()=>{null!=r&&r()}})}(t,e)}function w(t,e){return _(t,e).pipe(Object(l.a)(t=>({payload:t,type:"query"})))}function E(t,e){return w(t,e).pipe(Object(u.a)(void 0),Object(c.a)(),Object(l.a)(([t,e])=>{const n=e.payload.docChanges(),r=n.map(t=>({type:t.type,payload:t}));return t&&JSON.stringify(t.payload.metadata)!==JSON.stringify(e.payload.metadata)&&e.payload.docs.forEach((e,i)=>{const o=n.find(t=>t.doc.ref.isEqual(e.ref)),s=null==t?void 0:t.payload.docs.find(t=>t.ref.isEqual(e.ref));o&&JSON.stringify(o.doc.metadata)===JSON.stringify(e.metadata)||!o&&s&&JSON.stringify(s.metadata)===JSON.stringify(e.metadata)||r.push({type:"modified",payload:{oldIndex:i,newIndex:i,type:"modified",doc:e}})}),r}))}function O(t,e,n){return E(t,n).pipe(Object(h.a)((t,n)=>
1function(t,e,n){return e.forEach(e=>{n.indexOf(e.type)>-1&&(t=function(t,e){switch(e.type){case"added":if(!t[e.newIndex]||!t[e.newIndex].doc.ref.isEqual(e.doc.ref))return S(t,e.newIndex,0,e);break;case"modified":if(null==t[e.oldIndex]||t[e.oldIndex].doc.ref.isEqual(e.doc.ref)){if(e.oldIndex!==e.newIndex){const n=t.slice();return n.splice(e.oldIndex,1),n.splice(e.newIndex,0,e),n}return S(t,e.newIndex,1,e)}break;case"removed":if(t[e.oldIndex]&&t[e.oldIndex].doc.ref.isEqual(e.doc.ref))return S(t,e.oldIndex,1)}return t}(t,e))}),t}(t,n.map(t=>t.payload),e),[]),Object(f.a)(),Object(l.a)(t=>t.map(t=>({type:t.type,payload:t}))))}function S(t,e,n,...r){const i=t.slice();return i.splice(e,n,...r),i}function x(t){return t&&0!==t.length||(t=["added","removed","modified"]),t}class C{constructor(t,e,n){this.ref=t,this.query=e,this.afs=n}stateChanges(t){let e=E(this.query,this.afs.schedulers.outsideAngular);return t&&t.length>0&&(e=e.pipe(Object(l.a)(e=>e.filter(e=>t.indexOf(e.type)>-1)))),e.pipe(Object(u.a)(void 0),Object(c.a)(),Object(d.a)(([t,e])=>e.length>0||!t),Object(l.a)(([t,e])=>e),this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(Object(h.a)((t,e)=>[...t,...e],[]))}snapshotChanges(t){const e=x(t);return O(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return w(this.query,this.afs.schedulers.outsideAngular).pipe(Object(l.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(p.b)(this.afs.schedulers.insideAngular))}add(t){return this.ref.add(t)}doc(t){return new T(this.ref.doc(t),this.afs)}}class T{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}=R(n,e);return new C(r,i,this.afs)}snapshotChanges(){return _(this.ref,this.afs.schedulers.outsideAngular).pipe(Object(u.a)(void 0),Object(c.a)(),Object(l.a)(([t,e])=>e.exists?(null==t?void 0:t.exists)?{payload:e,type:"modified"}:{payload:e,type:"added"}:{payload:e,type:"removed"})).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return this.snapshotChanges().pipe(Object(l.a)(({payload:e})=>t.idField?Object.assign(Object.assign({},e.data()),{[t.idField]:e.id}):e.data()))}get(t){return Object(s.a)(this.ref.get(t)).pipe(Object(p.b)(this.afs.schedulers.insideAngular))}}class j{constructor(t,e){this.query=t,this.afs=e}stateChanges(t){return t&&0!==t.length?E(this.query,this.afs.schedulers.outsideAngular).pipe(Object(l.a)(e=>e.filter(e=>t.indexOf(e.type)>-1)),Object(d.a)(t=>t.length>0),this.afs.keepUnstableUntilFirst):E(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(Object(h.a)((t,e)=>[...t,...e],[]))}snapshotChanges(t){const e=x(t);return O(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return w(this.query,this.afs.schedulers.outsideAngular).pipe(Object(l.a)(e=>e.payload.docs.map(e=>t.idField?Object.assign({[t.idField]:e.id},e.data()):e.data())),this.afs.keepUnstableUntilFirst)}get(t){return Object(s.a)(this.query.get(t)).pipe(Object(p.b)(this.afs.schedulers.insideAngular))}}const A=new r.s("angularfire2.enableFirestorePersistence"),k=new r.s("angularfire2.firestore.persistenceSettings"),I=new r.s("angularfire2.firestore.settings"),D=new r.s("angularfire2.firestore.use-emulator");function R(t,e=(t=>t)){return{query:e(t),ref:t}}let P=(()=>{class t{constructor(t,e,n,r,i,o,u,c,l){this.schedulers=new m.e(o),this.keepUnstableUntilFirst=Object(m.i)(this.schedulers);const h=Object(m.h)(t,o,e);!v.a.auth&&l&&Object(m.k)();const f=c;[this.firestore,this.persistenceEnabled$]=Object(m.g)(h.name+".firestore","AngularFirestore",h,()=>{const t=o.runOutsideAngular(()=>h.firestore());if(r&&t.settings(r),f&&t.useEmulator(...f),n&&!Object(g.P)(i)){const e=()=>{try{return Object(s.a)(t.enablePersistence(u||void 0).then(()=>!0,()=>!1))}catch(e){return"undefined"!=typeof console&&console.warn(e),Object(a.a)(!1)}};return[t,o.runOutsideAngular(e)]}return[t,Object(a.a)(!1)]},[r,f,n])}collection(t,e){let n;n="string"==typeof t?this.firestore.collection(t):t;const{ref:r,query:i}=R(n,e),o=this.schedulers.ngZone.run(()=>r);return new C(o,i,this)}collectionGroup(t,e){const n=e||(t=>t),r=this.firestore.collectionGroup(t);return new j(n(r),this)}doc(t){let e;e="string"==typeof t?this.firestore.doc(t):t;const n=this.schedulers.ngZone.run(()=>e);return new T(n,this)}createId(){return this.firestore.collection("_").doc().id}}return t.\u0275fac=function(e){return new(e||t)(r.ec(m.c),r.ec(m.b,8),r.ec(A,8),r.ec(I,8),r.ec(r.E),r.ec(r.C),r.ec(k,8),r.ec(D,8),r.ec(b.b,8))},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.ec)(m.c),Object(r.ec)(m.b,8),Object(r.ec)(A,8),Object(r.ec)(I,8),Object(r.ec)(r.E),Object(r.ec)(r.C),Object(r.ec)(k,8),Object(r.ec)(D,8),Object(r.ec)(b.b,8))},token:t,providedIn:"any"}),t})()}
1,I01J:function(t,e,n){var r=n("44Ds");t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},I55L:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IOzZ:function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},IWTy:function(t,e,n){var r=n("yue5");t.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,u=n.length;++i<a;){var c=r(o[i],s[i]);if(c)return i>=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},IjjT:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));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})();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}}}},Ioao:function(t,e,n){var r=n("heNW"),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),u=Array(a);++s<a;)u[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(u),r(t,this,c)}}},IzEk:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q"),i=n("4I5i"),o=n("EY2u");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()))}}},"J/PD":function(t,e,n){var r=n("cvCv"),i=n("Q62E"),o=n("zZ0H"),s=Object.prototype.toString,a=i((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=s.call(e)),t[e]=n}),r(o));t.exports=a},J2m7:function(t,e,n){var r=n("XKAG")(n("UfWW"));t.exports=r},JC6p:function(t,e,n){var r=n("cq/+"),i=n("7GkX");t.exports=function(t,e){return t&&r(t,e,i)}},JHRd:function(t,e,n){var r=n("Kz5y");t.exports=r.Uint8Array},JHgL:function(t,e,n){var r=n("QkVE");t.exports=function(t){return r(this,t).get(t)}},JIMn:function(t,e,n){var r=n("EA7m"),i=n("6T1N"),o=n("V9aw"),s=n("6KkN"),a=r((function(t,e){var n=s(e,o(a));return i(t,64,void 0,e,n)}));a.placeholder={},t.exports=a},JIr8:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("zx2A");function i(t){return function(e){const n=new o(t),r=e.lift(n);return n.caught=r}}class o{constructor(t){this.selector=t}call(t,e){return e.subscribe(new s(t,this.selector,this.caught))}}class s extends r.b{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 i=new r.a(this);this.add(i);const o=Object(r.c)(n,i);o!==i&&this.add(o)}}}},JRE2:function(t,e){t.exports=function(t,e){var n=t.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+t+"` was replaced by `"+e+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+n}},JSQU:function(t,e,n){var r=n("YESw");t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},JTzB:function(t,e,n){var r=n("NykK"),i=n("ExA7");t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},JX91:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("GyhO"),i=n("z+Ro");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)}},JZM8:function(t,e,n){var r=n("FfPP"),i=n("xs/l")((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},JbSc:function(t,e){t.exports={}},JmpY:function(t,e,n){var r=n("eUgh");t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},JpaV:function(t,e,n){var r=n("EA7m"),i=n("6T1N"),o=n("V9aw"),s=n("6KkN"),a=r((function(t,e,n){var r=1;if(n.length){var u=s(n,o(a));r|=32}return i(t,r,e,n,u)}));a.placeholder={}
1,t.exports=a},Juji:function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},KEvE:function(t,e,n){"use strict";var r=n("bNQv"),i=n("k4Da"),o=n("3WF5"),s=n("E+oP"),a=n("uoTU");t.exports=function(t,e){var n={},u=i(e,(function(t){return-1!==t.indexOf("attribute:")})),c=o(u,(function(t){return t.split(":")[1]}));-1===a(c,"*")?r(c,(function(e){t.isConjunctiveFacet(e)&&t.isFacetRefined(e)&&(n.facetsRefinements||(n.facetsRefinements={}),n.facetsRefinements[e]=t.facetsRefinements[e]),t.isDisjunctiveFacet(e)&&t.isDisjunctiveFacetRefined(e)&&(n.disjunctiveFacetsRefinements||(n.disjunctiveFacetsRefinements={}),n.disjunctiveFacetsRefinements[e]=t.disjunctiveFacetsRefinements[e]),t.isHierarchicalFacet(e)&&t.isHierarchicalFacetRefined(e)&&(n.hierarchicalFacetsRefinements||(n.hierarchicalFacetsRefinements={}),n.hierarchicalFacetsRefinements[e]=t.hierarchicalFacetsRefinements[e]);var r=t.getNumericRefinements(e);s(r)||(n.numericRefinements||(n.numericRefinements={}),n.numericRefinements[e]=t.numericRefinements[e])})):(s(t.numericRefinements)||(n.numericRefinements=t.numericRefinements),s(t.facetsRefinements)||(n.facetsRefinements=t.facetsRefinements),s(t.disjunctiveFacetsRefinements)||(n.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements),s(t.hierarchicalFacetsRefinements)||(n.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements));var l=i(e,(function(t){return-1===t.indexOf("attribute:")}));return r(l,(function(e){n[e]=t[e]})),n}},KF6i:function(t,e,n){var r=n("a5q3"),i=n("vN+2");t.exports=r?function(t){return r.get(t)}:i},KMkd:function(t,e){t.exports=function(){this.__data__=[],this.size=0}},KfNM:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},"Kfv+":function(t,e,n){var r=n("Yoag"),i=n("6ae/"),o=n("RrRF"),s=n("Z0cm"),a=n("ExA7"),u=n("xFI3"),c=Object.prototype.hasOwnProperty;function l(t){if(a(t)&&!s(t)&&!(t instanceof r)){if(t instanceof i)return t;if(c.call(t,"__wrapped__"))return u(t)}return new i(t)}(l.prototype=o.prototype).constructor=l,t.exports=l},Kj3r:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),i=n("D0XW");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()}},KjyA:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return l}));var r=n("SOwp"),i=n("9AQC"),o=n("kdvv"),s=n("HR75"),a=n("9/Zf"),u=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=Object(r.__spread)(e._breadcrumbs),n._tags=Object(r.__assign)({},e._tags),n._extra=Object(r.__assign)({},e._extra),n._contexts=Object(r.__assign)({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=Object(r.__spread)(e._eventProcessors)),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.setTags=function(t){return this._tags=Object(r.__assign)(Object(r.__assign)({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=Object(r.__assign)(Object(r.__assign)({},this._tags),((n={}
1)[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=Object(r.__assign)(Object(r.__assign)({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=Object(r.__assign)(Object(r.__assign)({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=Object(r.__assign)(Object(r.__assign)({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t,e,n,r,i=this.getSpan();return(null===(t=i)||void 0===t?void 0:t.transaction)?null===(e=i)||void 0===e?void 0:e.transaction:(null===(r=null===(n=i)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?i.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=Object(r.__assign)(Object(r.__assign)({},this._tags),e._tags),this._extra=Object(r.__assign)(Object(r.__assign)({},this._extra),e._extra),this._contexts=Object(r.__assign)(Object(r.__assign)({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint)):Object(i.h)(e)&&(e=e,this._tags=Object(r.__assign)(Object(r.__assign)({},this._tags),e.tags),this._extra=Object(r.__assign)(Object(r.__assign)({},this._extra),e.extra),this._contexts=Object(r.__assign)(Object(r.__assign)({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n=Object(r.__assign)({timestamp:Object(o.b)()},t);return this._breadcrumbs=void 0!==e&&e>=0?Object(r.__spread)(this._breadcrumbs,[n]).slice(-e):Object(r.__spread)(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){var n;if(this._extra&&Object.keys(this._extra).length&&(t.extra=Object(r.__assign)(Object(r.__assign)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=Object(r.__assign)(Object(r.__assign)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=Object(r.__assign)(Object(r.__assign)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=Object(r.__assign)(Object(r.__assign)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=Object(r.__assign)({trace:this._span.getTraceContext()},t.contexts);var i=null===(n=this._span.transaction)||void 0===n?void 0:n.name;i&&(t.tags=Object(r.__assign)({transaction:i},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=Object(r.__spread)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(Object(r.__spread)(c(),this._eventProcessors),t,e)}
1,t.prototype._notifyEventProcessors=function(t,e,n,o){var a=this;return void 0===o&&(o=0),new s.a((function(s,u){var c=t[o];if(null===e||"function"!=typeof c)s(e);else{var l=c(Object(r.__assign)({},e),n);Object(i.m)(l)?l.then((function(e){return a._notifyEventProcessors(t,e,n,o+1).then(s)})).then(null,u):a._notifyEventProcessors(t,l,n,o+1).then(s).then(null,u)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function c(){var t=Object(a.e)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function l(t){c().push(t)}},Kqap:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");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)}}},KqfI:function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},KwMD:function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},KxBF:function(t,e){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},Kz5y:function(t,e,n){var r=n("WFqU"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},L8xA:function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},LOHT:function(t,e,n){"use strict";var r=n("8uDF");function i(t,e){this.main=t,this.fn=e,this.lastResults=null}n("T7LP")(i,r.EventEmitter),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(t){return this.fn(t)},t.exports=i},LPhD:function(t,e,n){var r=n("R/W3");t.exports=function(t,e){for(var n=t.length;n--&&r(e,t[n],0)>-1;);return n}},LRne:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("z+Ro"),i=n("yCtX"),o=n("jZKg");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)}},LXxW:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},LcsW:function(t,e,n){var r=n("kekF")(Object.getPrototypeOf,Object);t.exports=r},Lhse: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()},LsHQ:function(t,e,n){var r=n("EA7m"),i=n("mv/X");t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++r<o;){var u=n[r];u&&t(e,u,r,s)}return e}))}},M6lR:function(t,e,n){t.exports=function(t,e,n){var i={};return(n=n||{}).hosts=n.hosts||["analytics.algolia.com","analytics.algolia.com","analytics.algolia.com","analytics.algolia.com"],n.protocol=n.protocol||"https:",i.as=r(t,e,n),i.getABTests=function(t,e){var n=n||{},r=n.limit||10;return this.as._jsonRequest({method:"GET",url:"/2/abtests?offset="+encodeURIComponent(n.offset||0)+"&limit="+encodeURIComponent(r),hostType:"read",forceAuthHeaders:!0,callback:e})},i.getABTest=function(t,e){return this.as._jsonRequest({method:"GET",url:"/2/abtests/"+encodeURIComponent(t),hostType:"read",forceAuthHeaders:!0,callback:e})},i.addABTest=function(t,e){return this.as._jsonRequest({method:"POST",url:"/2/abtests",body:t,hostType:"read",forceAuthHeaders:!0,callback:e})},i.stopABTest=function(t,e){return this.as._jsonRequest({method:"POST",url:"/2/abtests/"+encodeURIComponent(t)+"/stop",hostType:"read",forceAuthHeaders:!0,callback:e})},i.deleteABTest=function(t,e){return this.as._jsonRequest({method:"DELETE",url:"/2/abtests/"+encodeURIComponent(t),hostType:"write",forceAuthHeaders:!0,callback:e})},i.waitTask=function(t,e,n){return this.as.initIndex(t).waitTask(e,n)},i};var r=n("hnrd")},MMiu:function(t,e){var n=Math.max;t.exports=function(t,e,r,i){for(var o=-1,s=t.length,a=-1,u=r.length,c=-1,l=e.length,h=n(s-u,0),f=Array(h+l),d=!i;++o<h;)f[o]=t[o];for(var p=o;++c<l;)f[p+c]=e[c];for(;++a<u;
1)(d||o<s)&&(f[p+r[a]]=t[o++]);return f}},MMmD:function(t,e,n){var r=n("lSCD"),i=n("shjB");t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},MYMM:function(t,e,n){var r=n("v61W");t.exports=function t(e){var n=Array.prototype.slice.call(arguments);return r(n,(function(n){for(var r in n)n.hasOwnProperty(r)&&("object"==typeof e[r]&&"object"==typeof n[r]?e[r]=t({},e[r],n[r]):void 0!==n[r]&&(e[r]=n[r]))})),e}},MrPd:function(t,e,n){var r=n("hypo"),i=n("ljhN"),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},MvSz:function(t,e,n){var r=n("LXxW"),i=n("0ycA"),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;t.exports=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i},N4mw:function(t,e,n){var r=n("Yoag"),i=n("KF6i"),o=n("ERuW"),s=n("Kfv+");t.exports=function(t){var e=o(t),n=s[e];if("function"!=typeof n||!(e in r.prototype))return!1;if(t===n)return!0;var a=i(n);return!!a&&t===a[0]}},NJ4a:function(t,e,n){"use strict";function r(t){setTimeout(()=>{throw t},0)}n.d(e,"a",(function(){return r}))},NKxu:function(t,e,n){var r=n("lSCD"),i=n("E2jh"),o=n("GoyQ"),s=n("3Fdi"),a=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?u:a).test(s(t))}},Npjl:function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},NykK:function(t,e,n){var r=n("nmnc"),i=n("AP2z"),o=n("KfNM"),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},O0oS:function(t,e,n){var r=n("Cwc5"),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},O7RO:function(t,e,n){var r=n("CMye"),i=n("7GkX");t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},OBhP:function(t,e,n){var r=n("fmRc"),i=n("gFfm"),o=n("MrPd"),s=n("WwFo"),a=n("Dw+G"),u=n("5Tg0"),c=n("Q1l4"),l=n("VOtZ"),h=n("EEGq"),f=n("qZTm"),d=n("G6z8"),p=n("QqLw"),m=n("yHx3"),g=n("wrZu"),y=n("+iFO"),v=n("Z0cm"),b=n("DSRE"),_=n("zEVN"),w=n("GoyQ"),E=n("1+5i"),O=n("7GkX"),S=n("mTTR"),x="[object Arguments]",C="[object Function]",T="[object Object]",j={};j[x]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object DataView]"]=j["[object Boolean]"]=j["[object Date]"]=j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Map]"]=j["[object Number]"]=j[T]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object Symbol]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Error]"]=j[C]=j["[object WeakMap]"]=!1,t.exports=function t(e,n,A,k,I,D){var R,P=1&n,F=2&n,N=4&n;if(A&&(R=I?A(e,k,I,D):A(e)),void 0!==R)return R;if(!w(e))return e;var L=v(e);if(L){if(R=m(e),!P)return c(e,R)}else{var M=p(e),V=M==C||"[object GeneratorFunction]"==M;if(b(e))return u(e,P);if(M==T||M==x||V&&!I){if(R=F||V?{}:y(e),!P)return F?h(e,a(R,e)):l(e,s(R,e))}else{if(!j[M])return I?e:{};R=g(e,M,P)}}D||(D=new r);var U=D.get(e);if(U)return U;D.set(e,R),E(e)?e.forEach((function(r){R.add(t(r,n,A,r,e,D))})):_(e)&&e.forEach((function(r,i){R.set(i,t(r,n,A,i,e,D))}));var B=L?void 0:(N?F?d:f:F?S:O)(e);return i(B||e,(function(r,i){B&&(r=e[i=r]),o(R,i,t(r,n,A,i,e,D))})),R}},"Of+w":function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"WeakMap");t.exports=r},"P/G1":function(t,e,n){var r=n("JmpY"),i=n("7GkX");t.exports=function(t){return null==t?[]:r(t,i(t))}},P5ON:function(t,e,n){"use strict";var r=n("vgmO"),i=r.Promise||n("E2g8").Promise;t.exports=function(t,e){var o=n("P7XM"),s=n("Z4lL"),a=n("bQm7"),u=n("+RWU"),c=n("5b/b");function l(t,e,r){return(r=n("sLmk")(r||{}))._ua=r._ua||l.ua,new f(t,e,r)}e=e||"",l.version=n("DiRl"),l.ua="Algolia for JavaScript ("+l.version+"); "+e,l.initPlaces=c(l),r.__algolia={debug:n("8KqL"),algoliasearch:l};var h={hasXMLHttpRequest:"XMLHttpRequest"in r,hasXDomainRequest:"XDomainRequest"in r};function f(){t.apply(this,arguments)}
1return h.hasXMLHttpRequest&&(h.cors="withCredentials"in new XMLHttpRequest),o(f,t),(f.prototype._request=function(t,e){return new i((function(n,r){if(h.cors||h.hasXDomainRequest){t=a(t,e.headers);var i,o,u=e.body,c=h.cors?new XMLHttpRequest:new XDomainRequest,l=!1;i=setTimeout(f,e.timeouts.connect),c.onprogress=function(){l||d()},"onreadystatechange"in c&&(c.onreadystatechange=function(){!l&&c.readyState>1&&d()}),c.onload=function(){if(!o){var t;clearTimeout(i);try{t={body:JSON.parse(c.responseText),responseText:c.responseText,statusCode:c.status,headers:c.getAllResponseHeaders&&c.getAllResponseHeaders()||{}}}catch(e){t=new s.UnparsableJSON({more:c.responseText})}t instanceof s.UnparsableJSON?r(t):n(t)}},c.onerror=function(t){o||(clearTimeout(i),r(new s.Network({more:t})))},c instanceof XMLHttpRequest?(c.open(e.method,t,!0),e.forceAuthHeaders&&(c.setRequestHeader("x-algolia-application-id",e.headers["x-algolia-application-id"]),c.setRequestHeader("x-algolia-api-key",e.headers["x-algolia-api-key"]))):c.open(e.method,t),h.cors&&(u&&c.setRequestHeader("content-type","POST"===e.method?"application/x-www-form-urlencoded":"application/json"),c.setRequestHeader("accept","application/json")),u?c.send(u):c.send()}else r(new s.Network("CORS not supported"));function f(){o=!0,c.abort(),r(new s.RequestTimeout)}function d(){l=!0,clearTimeout(i),i=setTimeout(f,e.timeouts.complete)}}))}).fallback=function(t,e){return t=a(t,e.headers),new i((function(n,r){u(t,e,(function(t,e){t?r(t):n(e)}))}))},f.prototype._promise={reject:function(t){return i.reject(t)},resolve:function(t){return i.resolve(t)},delay:function(t){return new i((function(e){setTimeout(e,t)}))},all:function(t){return i.all(t)}},l}},P6AB:function(t,e,n){"use strict";var r=n("6kBg"),i=n("TUb6"),o=n("t8G0");function s(t,e,n){return new r(t,e,n)}s.version=n("5zHL"),s.AlgoliaSearchHelper=r,s.SearchParameters=i,s.SearchResults=o,s.url=n("lAdM"),t.exports=s},P7XM:function(t,e){t.exports="function"==typeof Object.create?function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},PGxr:function(t,e,n){t.exports=function(t,e){var r=n("1seS"),i=n("v61W"),o={};return i(r(t),(function(n){!0!==e(n)&&(o[n]=t[n])})),o}},Pjly:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("mrSG"),i=n("lJxs"),o=n("SxV6"),s=n("AytR"),a=n("fXoL"),u=n("UbJi"),c=n("tyNb"),l=n("I/3d");let h=(()=>{class t{constructor(t,e,n){this.afAuth=t,this.router=e,this.afs=n,this.authLoading=!0,this.redirectUrl=null,this.roles$=this.afAuth.idTokenResult.pipe(Object(i.a)(t=>t&&t.claims&&t.claims.roles?t.claims.roles:[])),this.roles=[],this.isLoggedIn=!1,this.authSub=this.afAuth.authState.subscribe(t=>{this.authLoading=!1,t&&(this.isLoggedIn=!0,this.user=t)})}ngOnDestroy(){this.authSub.unsubscribe()}getUser(){return this.afAuth.authState.pipe(Object(o.a)()).toPromise()}state$(){return this.afAuth.authState}hasRole(t){return this.afAuth.idTokenResult.pipe(Object(o.a)()).toPromise().then(e=>!!(e&&e.claims&&e.claims.roles)&&e.claims.roles.includes(t))}signout(t){return Object(r.b)(this,void 0,void 0,(function*(){return yield this.afAuth.signOut(),this.user=null,this.router.navigateByUrl(t||"/",{replaceUrl:!0})}))}signinWithEmailAndPassword(t,e){return this.afAuth.signInWithEmailAndPassword(t,e).then(t=>(console.log("signin result"),console.log(t),t))}resetPasswordWithEmail(t){return this.afAuth.sendPasswordResetEmail(t,{url:s.a.appDomain+"/login"})}fetchSignInMethodsForEmail(t){return this.afAuth.fetchSignInMethodsForEmail(t)}fetchEmailMembership(t){return Object(r.b)(this,void 0,void 0,(function*(){const e=t.toLowerCase().trim(),n=yield this.afs.collection("members").doc(e).get().toPromise();return n.exists?n.data():null}))}sendEmailSignInLink(t){return Object(r.b)(this,void 0,void 0,(function*(){return this.afAuth.sendSignInLinkToEmail(t,{url:s.a.appDomain+"/finish-signup",handleCodeInApp:!0}).then(()=>{window.localStorage.setItem("emailForSignIn",t)})}))}}return t.\u0275fac=function(e){return new(e||t)(a.ec(u.a),a.ec(c.e),a.ec(l.a))},t.\u0275prov=a.Mb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},PqYM:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),i=n("D0XW"),o=n("Y7HM"),s=n("z+Ro");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)}}},Puqe:function(t,e,n){var r=n("eUgh"),i=n("OBhP"),o=n("S7Xf"),s=n("4uTw"),a=n("juv8"),u=n("4Oe1"),c=n("xs/l"),l=n("G6z8"),h=c((function(t,e){var n={};if(null==t)return n;var c=!1;e=r(e,(function(e){return e=s(e,t),c||(c=e.length>1),e})),a(t,l(t),n),c&&(n=i(n,7,u));for(var h=e.length;h--;)o(n,e[h]);return n}));t.exports=h},Q1l4:function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},Q62E:function(t,e,n){var r=n("I+LG");t.exports=function(t,e){return function(n,i){return r(n,t,e(i),{})}}},QSc6:function(t,e,n){"use strict";var r=n("0jNN"),i=n("sxOR"),o=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Array.isArray,u=Array.prototype.push,c=function(t,e){u.apply(t,a(e)?e:[e])},l=Date.prototype.toISOString,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,formatter:i.formatters[i.default],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},f=function t(e,n,i,o,s,u,l,f,d,p,m,g,y){var v=e;if("function"==typeof l?v=l(n,v):v instanceof Date?v=p(v):"comma"===i&&a(v)&&(v=v.join(",")),null===v){if(o)return u&&!g?u(n,h.encoder,y):n;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||r.isBuffer(v))return u?[m(g?n:u(n,h.encoder,y))+"="+m(u(v,h.encoder,y))]:[m(n)+"="+m(String(v))];var b,_=[];if(void 0===v)return _;if(a(l))b=l;else{var w=Object.keys(v);b=f?w.sort(f):w}for(var E=0;E<b.length;++E){var O=b[E];s&&null===v[O]||(a(v)?c(_,t(v[O],"function"==typeof i?i(n,O):n,i,o,s,u,l,f,d,p,m,g,y)):c(_,t(v[O],n+(d?"."+O:"["+O+"]"),i,o,s,u,l,f,d,p,m,g,y)))}return _};t.exports=function(t,e){var n,r=t,u=function(t){if(!t)return h;if(null!=t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||h.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==t.format){if(!o.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],s=h.filter;return("function"==typeof t.filter||a(t.filter))&&(s=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:s,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof u.filter?r=(0,u.filter)("",r):a(u.filter)&&(n=u.filter);var l=[];
1if("object"!=typeof r||null===r)return"";var d=s[e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices"];n||(n=Object.keys(r)),u.sort&&n.sort(u.sort);for(var p=0;p<n.length;++p){var m=n[p];u.skipNulls&&null===r[m]||c(l,f(r[m],m,d,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var g=l.join(u.delimiter),y=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&(y+="iso-8859-1"===u.charset?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),g.length>0?y+g:""}},QcOe:function(t,e,n){var r=n("GoyQ"),i=n("6sVZ"),o=n("7Ix3"),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},QkVE:function(t,e,n){var r=n("EpBk");t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},QkVN:function(t,e,n){var r=n("+Qka"),i=n("LsHQ")((function(t,e,n){r(t,e,n)}));t.exports=i},QoRX:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},QqLw:function(t,e,n){var r=n("tadb"),i=n("ebwN"),o=n("HOxn"),s=n("yGk4"),a=n("Of+w"),u=n("NykK"),c=n("3Fdi"),l="[object Map]",h="[object Promise]",f="[object Set]",d="[object WeakMap]",p="[object DataView]",m=c(r),g=c(i),y=c(o),v=c(s),b=c(a),_=u;
1(r&&_(new r(new ArrayBuffer(1)))!=p||i&&_(new i)!=l||o&&_(o.resolve())!=h||s&&_(new s)!=f||a&&_(new a)!=d)&&(_=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return p;case g:return l;case y:return h;case v:return f;case b:return d}return e}),t.exports=_},Qyje:function(t,e,n){"use strict";var r=n("QSc6"),i=n("nmq7"),o=n("sxOR");t.exports={formats:o,parse:i,stringify:r}},"R/W3":function(t,e,n){var r=n("KwMD"),i=n("2ajD"),o=n("CZoQ");t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},R0Ic:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return l})),n.d(e,"h",(function(){return c})),n.d(e,"i",(function(){return h})),n.d(e,"j",(function(){return s})),n.d(e,"k",(function(){return p})),n.d(e,"l",(function(){return m}));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:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function l(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function f(t){Promise.resolve(null).then(t)}class d{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(){f(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class p{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const i=this.players.length;0==i?f(()=>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 m="!"},R5Y4:function(t,e){var n=Math.ceil,r=Math.max;
1t.exports=function(t,e,i,o){for(var s=-1,a=r(n((e-t)/(i||1)),0),u=Array(a);a--;)u[o?a:++s]=t,t+=i;return u}},RBan:function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},RHI1:function(t,e,n){var r=n("hypo"),i=n("JC6p"),o=n("ut/Y");t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,e(t,i,o),t)})),n}},RgrY:function(t,e,n){"use strict";n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return g}));var r=n("fXoL"),i=n("LRne"),o=n("Cfvw"),s=n("pxpQ"),a=n("eIep"),u=n("lJxs"),c=n("UXun"),l=n("spgP");const h=new r.s("angularfire2.functions.origin"),f=new r.s("angularfire2.functions.region"),d=new r.s("angularfire2.functions.new-origin-behavior"),p=new r.s("angularfire2.functions.use-emulator");let m=(()=>{class t{constructor(t,e,r,h,f,d,p){const m=new l.e(r),g=p,y=Object(i.a)(void 0).pipe(Object(s.b)(m.outsideAngular),Object(a.a)(()=>n.e(49).then(n.bind(null,"iTTW"))),Object(u.a)(()=>Object(l.h)(t,r,e)),Object(u.a)(t=>Object(l.g)(`${t.name}.functions.${h||f}`,"AngularFireFunctions",t,()=>{let e;if(d){if(h&&f)throw new Error("REGION and ORIGIN can't be used at the same time.");e=t.functions(h||f||void 0)}else e=t.functions(h||void 0);return d||g||!f||e.useFunctionsEmulator(f),g&&e.useEmulator(...g),e},[h,f,g])),Object(c.a)({bufferSize:1,refCount:!1}));return this.httpsCallable=(t,e)=>n=>Object(o.a)(y).pipe(Object(s.b)(m.insideAngular),Object(a.a)(r=>r.httpsCallable(t,e)(n)),Object(u.a)(t=>t.data)),Object(l.j)(this,y,r)}}return t.\u0275fac=function(e){return new(e||t)(r.ec(l.c),r.ec(l.b,8),r.ec(r.C),r.ec(f,8),r.ec(h,8),r.ec(d,8),r.ec(p,8))},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.ec)(l.c),Object(r.ec)(l.b,8),Object(r.ec)(r.C),Object(r.ec)(f,8),Object(r.ec)(h,8),Object(r.ec)(d,8),Object(r.ec)(p,8))},token:t,providedIn:"any"}),t})(),g=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[m]}),t})()},RrRF:function(t,e){t.exports=function(){}},"Rw8+":function(t,e,n){var r=n("heNW"),i=n("EldB"),o=n("a1zH"),s=n("5sOR"),a=n("V9aw"),u=n("6KkN"),c=n("Kz5y");t.exports=function(t,e,n){var l=i(t);return function i(){for(var h=arguments.length,f=Array(h),d=h,p=a(i);d--;)f[d]=arguments[d];var m=h<3&&f[0]!==p&&f[h-1]!==p?[]:u(f,p);if((h-=m.length)<n)return s(t,e,o,i.placeholder,void 0,f,m,void 0,void 0,n-h);var g=this&&this!==c&&this instanceof i?l:t;return r(g,this,f)}}},"S+S0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("SOwp"),i=n("zVF4"),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="[DEFAULT]",a=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=s);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:s,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(a){if(n)return null;throw a}},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");if(this.component=t,function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService(s)}catch(h){}try{for(var i=r.__values(this.instancesDeferred.entries()),o=i.next();!o.done;
1o=i.next()){var a=r.__read(o.value,2),u=a[1],c=this.normalizeInstanceIdentifier(a[0]);try{var l=this.getOrInitializeService(c);u.resolve(l)}catch(h){}}}catch(f){e={error:f}}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=s),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(r.__spread(t.filter((function(t){return"INTERNAL"in t})).map((function(t){return t.INTERNAL.delete()})),t.filter((function(t){return"_delete"in t})).map((function(t){return t._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 t===s?void 0:t}(t)),this.instances.set(t,e)),e||null},t.prototype.normalizeInstanceIdentifier=function(t){return this.component?this.component.multipleInstances?t:s:t},t}(),u=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 a(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=u,e.Provider=a},S7Xf:function(t,e,n){var r=n("4uTw"),i=n("RBan"),o=n("gpbi"),s=n("9Nap");t.exports=function(t,e){return e=r(e,t),null==(t=o(t,e))||delete t[s(i(e))]}},SKAX:function(t,e,n){var r=n("JC6p"),i=n("lQqw")(r);t.exports=i},SOwp: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,"__createBinding",(function(){return f})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return m})),n.d(e,"__spread",(function(){return g})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return v})),n.d(e,"__asyncGenerator",(function(){return b})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return w}
vendor: 5,765 bytes, line 1
1)),n.d(e,"__makeTemplateObject",(function(){return E})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return x})),n.d(e,"__classPrivateFieldSet",(function(){return C}));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 f(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function d(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function p(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 m(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 g(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function y(){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 v(t){return this instanceof v?(this.v=t,this):new v(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 v?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 _(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:v(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(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 E(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(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 x(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function C(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}}
1,SeVD:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("ngJS"),i=n("NJ4a"),o=n("Lhse"),s=n("kJWO"),a=n("I55L"),u=n("c2HN"),c=n("XoHu");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);if(t&&"function"==typeof t[o.a])return e=t,t=>{const n=e[o.a]();for(;;){let e;try{e=n.next()}catch(r){return t.error(r),t}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}},SfRM:function(t,e,n){var r=n("YESw");t.exports=function(){this.__data__=r?r(null):{},this.size=0}},SpAZ:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},SxV6:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("sVev"),i=n("pLZG"),o=n("IzEk"),s=n("xbPD"),a=n("XDbj"),u=n("SpAZ");function c(t,e){const n=arguments.length>=2;return c=>c.pipe(t?Object(i.a)((e,n)=>t(e,n,c)):u.a,Object(o.a)(1),n?Object(s.a)(e):Object(a.a)(()=>new r.a))}},Sxd8:function(t,e,n){var r=n("ZCgT");t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},T1AV:function(t,e,n){var r=n("t2Dn"),i=n("5Tg0"),o=n("yP5f"),s=n("Q1l4"),a=n("+iFO"),u=n("03A+"),c=n("Z0cm"),l=n("3L66"),h=n("DSRE"),f=n("lSCD"),d=n("GoyQ"),p=n("YO3V"),m=n("c6wG"),g=n("itsj"),y=n("jeLo");t.exports=function(t,e,n,v,b,_,w){var E=g(t,n),O=g(e,n),S=w.get(O);if(S)r(t,n,S);else{var x=_?_(E,O,n+"",t,e,w):void 0,C=void 0===x;if(C){var T=c(O),j=!T&&h(O),A=!T&&!j&&m(O);x=O,T||j||A?c(E)?x=E:l(E)?x=s(E):j?(C=!1,x=i(O,!0)):A?(C=!1,x=o(O,!0)):x=[]:p(O)||u(O)?(x=E,u(E)?x=y(E):d(E)&&!f(E)||(x=a(O))):C=!1}C&&(w.set(O,x),b(x,O,v,_,w),w.delete(O)),r(t,n,x)}}},T7LP:function(t,e,n){"use strict";t.exports=function(t,e){t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}},T8tx:function(t,e,n){var r=n("ulEd"),i=n("2lMS"),o=n("wclG"),s=n("/lCS");t.exports=function(t,e,n){var a=e+"";return o(t,i(a,s(r(a),n)))}},TO8r:function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},TP7S:function(t,e){t.exports=function(t){return void 0===t}},TUb6:function(t,e,n){"use strict";var r=n("7GkX"),i=n("0XPj"),o=n("Ag8Z"),s=n("bNQv"),a=n("k4Da"),u=n("3WF5"),c=n("xaJk"),l=n("Puqe"),h=n("uoTU"),f=n("GODc"),d=n("E+oP"),p=n("Y+p1"),m=n("TP7S"),g=n("4qC0"),y=n("lSCD"),v=n("J2m7"),b=n("Zsd2"),_=n("la6v"),w=n("QkVN"),E=n("neZw"),O=n("KEvE"),S=n("HRBS");function x(t){var e=t?x._parseNumbers(t):{};this.index=e.index||"",this.query=e.query||"",this.facets=e.facets||[],this.disjunctiveFacets=e.disjunctiveFacets||[],this.hierarchicalFacets=e.hierarchicalFacets||[],this.facetsRefinements=e.facetsRefinements||{},this.facetsExcludes=e.facetsExcludes||{},this.disjunctiveFacetsRefinements=e.disjunctiveFacetsRefinements||{},this.numericRefinements=e.numericRefinements||{},this.tagRefinements=e.tagRefinements||[],this.hierarchicalFacetsRefinements=e.hierarchicalFacetsRefinements||{},this.numericFilters=e.numericFilters,this.tagFilters=e.tagFilters,this.optionalTagFilters=e.optionalTagFilters,this.optionalFacetFilters=e.optionalFacetFilters,this.hitsPerPage=e.hitsPerPage,this.maxValuesPerFacet=e.maxValuesPerFacet,this.page=e.page||0,this.queryType=e.queryType,this.typoTolerance=e.typoTolerance,this.minWordSizefor1Typo=e.minWordSizefor1Typo,this.minWordSizefor2Typos=e.minWordSizefor2Typos,this.minProximity=e.minProximity,this.allowTyposOnNumericTokens=e.allowTyposOnNumericTokens,this.ignorePlurals=e.ignorePlurals,this.restrictSearchableAttributes=e.restrictSearchableAttributes,this.advancedSyntax=e.advancedSyntax,this.analytics=e.analytics,this.analyticsTags=e.analyticsTags,this.synonyms=e.synonyms,this.replaceSynonymsInHighlight=e.replaceSynonymsInHighlight,this.optionalWords=e.optionalWords,this.removeWordsIfNoResults=e.removeWordsIfNoResults,this.attributesToRetrieve=e.attributesToRetrieve,this.attributesToHighlight=e.attributesToHighlight,this.highlightPreTag=e.highlightPreTag,this.highlightPostTag=e.highlightPostTag,this.attributesToSnippet=e.attributesToSnippet,this.getRankingInfo=e.getRankingInfo,this.distinct=e.distinct,this.aroundLatLng=e.aroundLatLng,this.aroundLatLngViaIP=e.aroundLatLngViaIP,this.aroundRadius=e.aroundRadius,this.minimumAroun
1dRadius=e.minimumAroundRadius,this.aroundPrecision=e.aroundPrecision,this.insideBoundingBox=e.insideBoundingBox,this.insidePolygon=e.insidePolygon,this.snippetEllipsisText=e.snippetEllipsisText,this.disableExactOnAttributes=e.disableExactOnAttributes,this.enableExactOnSingleWordQuery=e.enableExactOnSingleWordQuery,this.offset=e.offset,this.length=e.length;var n=this;o(e,(function(t,e){-1===x.PARAMETERS.indexOf(e)&&(n[e]=t)}))}x.PARAMETERS=r(new x),x._parseNumbers=function(t){if(t instanceof x)return t;var e={};if(s(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"],(function(n){var r=t[n];if(g(r)){var i=parseFloat(r);e[n]=f(i)?r:i}})),Array.isArray(t.insideBoundingBox)&&(e.insideBoundingBox=t.insideBoundingBox.map((function(t){return t.map((function(t){return parseFloat(t)}))}))),t.numericRefinements){var n={};s(t.numericRefinements,(function(t,e){n[e]={},s(t,(function(t,r){var i=u(t,(function(t){return Array.isArray(t)?u(t,(function(t){return g(t)?parseFloat(t):t})):g(t)?parseFloat(t):t}));n[e][r]=i}))})),e.numericRefinements=n}return w({},t,e)},x.make=function(t){var e=new x(t);return s(t.hierarchicalFacets,(function(t){if(t.rootPath){var n=e.getHierarchicalRefinement(t.name);n.length>0&&0!==n[0].indexOf(t.rootPath)&&(e=e.clearRefinements(t.name)),0===(n=e.getHierarchicalRefinement(t.name)).length&&(e=e.toggleHierarchicalFacetRefinement(t.name,t.rootPath))}})),e},x.validate=function(t,e){var n=e||{};return t.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):t.tagRefinements.length>0&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):t.numericFilters&&n.numericRefinements&&!d(n.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):!d(t.numericRefinements)&&n.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},x.prototype={constructor:x,clearRefinements:function(t){var e=S.clearRefinement,n={numericRefinements:this._clearNumericRefinements(t),facetsRefinements:e(this.facetsRefinements,t,"conjunctiveFacet"),facetsExcludes:e(this.facetsExcludes,t,"exclude"),disjunctiveFacetsRefinements:e(this.disjunctiveFacetsRefinements,t,"disjunctiveFacet"),hierarchicalFacetsRefinements:e(this.hierarchicalFacetsRefinements,t,"hierarchicalFacet")};return n.numericRefinements===this.numericRefinements&&n.facetsRefinements===this.facetsRefinements&&n.facetsExcludes===this.facetsExcludes&&n.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&n.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(n)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(t){return t===this.index?this:this.setQueryParameters({index:t})},setQuery:function(t){return t===this.query?this:this.setQueryParameters({query:t})},setPage:function(t){return t===this.page?this:this.setQueryParameters({page:t})},setFacets:function(t){return this.setQueryParameters({facets:t})},setDisjunctiveFacets:function(t){return this.setQueryParameters({disjunctiveFacets:t})},setHitsPerPage:function(t){return this.hitsPerPage===t?this:this.setQueryParameters({hitsPerPage:t})},setTypoTolerance:function(t){return this.typoTolerance===t?this:this.setQueryParameters({typoTolerance:t})},addNumericRefinement:function(t,e,n){var r=E(n);if(this.isNumericRefined(t,e,r))return this;var i=w({},this.numericRefinements);return i[t]=w({},i[t]),i[t][e]?(i[t][e]=i[t][e].slice(),i[t][e].push(r)):i[t][e]=[r],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(t){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.facetsRefinements[t]||[]},getDisjunctiveRefinements:function(t){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.disjunctiveFacetsRefinements[t]||[]},getHierarchicalRefinement:function(t){return this.hierarchicalFacetsRefinements[t]||[]},getExcludeRefinements:function(t){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.facetsExcludes[t]||[]},removeNumericRefinement:function(t,e,n){if(void 0!==n){var r=E(n);return this.isNumericRefined(t,e,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,i){return i===t&&n.op===e&&p(n.val,r)}))}):this}return void 0!==e?this.isNumericRefined(t,e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,r){return r===t&&n.op===e}))}):this:this.isNumericRefined(t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(e,n){return n===t}))}):this},getNumericRefinements:function(t){return this.numericRefinements[t]||{}},getNumericRefinement:function(t,e){return this.numericRefinements[t]&&this.numericRefinements[t][e]},_clearNumericRefinements:function(t){if(m(t))return d(this.numericRefinements)?this.numericRefinements:{};if(g(t))return d(this.numericRefinements[t])?this.numericRefinements:l(this.numericRefinements,t);
1if(y(t)){var e=!1,n=c(this.numericRefinements,(function(n,r,i){var o={};return s(r,(function(n,r){var a=[];s(n,(function(e){t({val:e,op:r},i,"numeric")||a.push(e)})),d(a)?e=!0:(a.length!==n.length&&(e=!0),o[r]=a)})),d(o)||(n[i]=o),n}),{});return e?n:this.numericRefinements}},addFacet:function(t){return this.isConjunctiveFacet(t)?this:this.setQueryParameters({facets:this.facets.concat([t])})},addDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([t])})},addHierarchicalFacet:function(t){if(this.isHierarchicalFacet(t.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+t.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([t])})},addFacetRefinement:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return S.isRefined(this.facetsRefinements,t,e)?this:this.setQueryParameters({facetsRefinements:S.addRefinement(this.facetsRefinements,t,e)})},addExcludeRefinement:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return S.isRefined(this.facetsExcludes,t,e)?this:this.setQueryParameters({facetsExcludes:S.addRefinement(this.facetsExcludes,t,e)})},addDisjunctiveFacetRefinement:function(t,e){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return S.isRefined(this.disjunctiveFacetsRefinements,t,e)?this:this.setQueryParameters({disjunctiveFacetsRefinements:S.addRefinement(this.disjunctiveFacetsRefinements,t,e)})},addTagRefinement:function(t){if(this.isTagRefined(t))return this;var e={tagRefinements:this.tagRefinements.concat(t)};return this.setQueryParameters(e)},removeFacet:function(t){return this.isConjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({facets:a(this.facets,(function(e){return e!==t}))}):this},removeDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({disjunctiveFacets:a(this.disjunctiveFacets,(function(e){return e!==t}))}):this},removeHierarchicalFacet:function(t){return this.isHierarchicalFacet(t)?this.clearRefinements(t).setQueryParameters({hierarchicalFacets:a(this.hierarchicalFacets,(function(e){return e.name!==t}))}):this},removeFacetRefinement:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return S.isRefined(this.facetsRefinements,t,e)?this.setQueryParameters({facetsRefinements:S.removeRefinement(this.facetsRefinements,t,e)}):this},removeExcludeRefinement:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return S.isRefined(this.facetsExcludes,t,e)?this.setQueryParameters({facetsExcludes:S.removeRefinement(this.facetsExcludes,t,e)}):this},removeDisjunctiveFacetRefinement:function(t,e){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return S.isRefined(this.disjunctiveFacetsRefinements,t,e)?this.setQueryParameters({disjunctiveFacetsRefinements:S.removeRefinement(this.disjunctiveFacetsRefinements,t,e)}):this},removeTagRefinement:function(t){if(!this.isTagRefined(t))return this;var e={tagRefinements:a(this.tagRefinements,(function(e){return e!==t}))};return this.setQueryParameters(e)},toggleRefinement:function(t,e){return this.toggleFacetRefinement(t,e)},toggleFacetRefinement:function(t,e){if(this.isHierarchicalFacet(t))return this.toggleHierarchicalFacetRefinement(t,e);if(this.isConjunctiveFacet(t))return this.toggleConjunctiveFacetRefinement(t,e);if(this.isDisjunctiveFacet(t))return this.toggleDisjunctiveFacetRefinement(t,e);throw new Error("Cannot refine the undeclared facet "+t+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:S.toggleRefinement(this.facetsRefinements,t,e)})},toggleExcludeFacetRefinement:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:S.toggleRefinement(this.facetsExcludes,t,e)})},toggleDisjunctiveFacetRefinement:function(t,e){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:S.toggleRefinement(this.disjunctiveFacetsRefinements,t,e)})},toggleHierarchicalFacetRefinement:function(t,e){if(!this.isHierarchicalFacet(t))throw new Error(t+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(t)),r={},i=void 0!==this.hierarchicalFacetsRefinements[t]&&this.hierarchicalFacetsRefinements[t].length>0&&(this.hierarchicalFacetsRefinements[t][0]===e||0===this.hierarchicalFacetsRefinements[t][0].indexOf(e+n));return r[t]=i?-1===e.indexOf(n)?[]:[e.slice(0,e.lastIndexOf(n))]:[e],this.setQueryParameters({hierarchicalFacetsRefinements:_({},r,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(t,e){if(this.isHierarchicalFacetRefined(t))throw new Error(t+" is already refined.");var n={};return n[t]=[e],this.setQueryParameters({hierarchicalFacetsRefinements:_({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(t){if(!this.isHierarchicalFacetRefined(t))throw new Error(t+" is not refined.");var e={};return e[t]=[],this.setQueryParameters({hierarchicalFacetsRefinements:_({},e,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(t){return this.isTagRefined(t)?this.removeTagRefinement(t):this.addTagRefinement(t)},isDisjunctiveFacet:function(t){return h(this.disjunctiveFacets,t)>-1},isHierarchicalFacet:function(t){return void 0!==this.getHierarchicalFacetByName(t)},isConjunctiveFacet:function(t){return h(this.facets,t)>-1},isFacetRefined:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return S.isRefined(this.facetsRefinements,t,e)},isExcludeRefined:function(t,e){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return S.isRefined(this.facetsExcludes,t,e)},isDisjunctiveFacetRefined:function(t,e){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return S.isRefined(this.disjunctiveFacetsRefinements,t,e)},isHierarchicalFacetRefined:function(t,e){if(!this.isHierarchicalFacet(t))throw new Error(t+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this.getHierarchicalRefinement(t);return e?-1!==h(n,e):n.length>0},isNumericRefined:function(t,e,n){if(m(n)&&m(e))return!!this.numericRefinements[t];var r=this.numericRefinements[t]&&!m(this.numericRefinements[t][e]);if(m(n)||!r)return r;var i,o,s=E(n),a=!m((i=this.numericRefinements[t][e],o=s,v(i,(function(t){return p(t,o)}))));return r&&a},isTagRefined:function(t){return-1!==h(this.tagRefinements,t)},getRefinedDisjunctiveFacets:function(){var t=i(r(this.numericRefinements),this.disjunctiveFacets);return r(this.disjunctiveFacetsRefinements).concat(t).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){return i(u(this.hierarchicalFacets,"name"),r(this.hierarchicalFacetsRefinements))},getUnrefinedDisjunctiveFacets:function(){var t=this.getRefinedDisjunctiveFacets();return a(this.disjunctiveFacets,(function(e){return-1===h(t,e)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements"],getQueryParams:function(){var t=this.managedParameters,e={};return o(this,(function(n,r){-1===h(t,r)&&void 0!==n&&(e[r]=n)})),e},getQueryParameter:function(t){if(!this.hasOwnProperty(t))throw new Error("Parameter '"+t+"' is not an attribute of SearchParameters (http://algolia.github.io/algoliasearch-helper-js/docs/SearchParameters.html)");return this[t]},setQueryParameter:function(t,e){if(this[t]===e)return this;var n={};return n[t]=e,this.setQueryParameters(n)},setQueryParameters:function(t){if(!t)return this;var e=x.validate(this,t);if(e)throw e;var n=x._parseNumbers(t);return this.mutateMe((function(e){var i=r(t);return s(i,(function(t){e[t]=n[t]})),e}))},filter:function(t){return O(this,t)},mutateMe:function(t){var e=new this.constructor(this);return t(e,this),e},_getHierarchicalFacetSortBy:function(t){return t.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(t){return t.separator||" > "},_getHierarchicalRootPath:function(t){return t.rootPath||null},_getHierarchicalShowParentLevel:function(t){return"boolean"!=typeof t.showParentLevel||t.showParentLevel},getHierarchicalFacetByName:function(t){return v(this.hierarchicalFacets,{name:t})},getHierarchicalFacetBreadcrumb:function(t){if(!this.isHierarchicalFacet(t))throw new Error("Cannot get the breadcrumb of an unknown hierarchical facet: `"+t+"`");var e=this.getHierarchicalRefinement(t)[0];if(!e)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(t)),r=e.split(n);return u(r,b)},toString:function(){return JSON.stringify(this,null,2)}},t.exports=x},TYy9:function(t,e,n){var r=n("XGnz");t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},UB5X:function(t,e,n){var r=n("NykK"),i=n("ExA7");t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},"UNi/":function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},UXun:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("jtHE");function i(t,e,n){let i;return i=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:i}
1){let o,s,a=0,u=!1,c=!1;return function(l){let h;a++,!o||u?(u=!1,o=new r.a(t,e,i),h=o.subscribe(this),s=l.subscribe({next(t){o.next(t)},error(t){u=!0,o.error(t)},complete(){c=!0,s=void 0,o.complete()}})):h=o.subscribe(this),this.add(()=>{a--,h.unsubscribe(),s&&!c&&n&&0===a&&(s.unsubscribe(),s=void 0,o=void 0)})}}(i))}},UbJi:function(t,e,n){"use strict";n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return b}));var r=n("fXoL"),i=n("XNiG"),o=n("LRne"),s=n("HDdC"),a=n("Cfvw"),u=n("VRyK"),c=n("pxpQ"),l=n("eIep"),h=n("lJxs"),f=n("UXun"),d=n("SxV6");function p(t,e){return e?Object(l.a)(()=>t,e):Object(l.a)(()=>t)}var m=n("tf+s"),g=n("pLZG"),y=n("spgP"),v=n("ofXK");const b=new r.s("angularfire2.auth.use-emulator"),_=new r.s("angularfire2.auth.settings"),w=new r.s("angularfire2.auth.tenant-id"),E=new r.s("angularfire2.auth.langugage-code"),O=new r.s("angularfire2.auth.use-device-language"),S=new r.s("angularfire.auth.persistence");let x=(()=>{class t{constructor(t,e,r,b,_,w,E,O,S,x){const C=new y.e(b),T=Object(y.i)(C),j=new i.a,A=Object(o.a)(void 0).pipe(Object(c.b)(C.outsideAngular),Object(l.a)(()=>b.runOutsideAngular(()=>n.e(48).then(n.bind(null,"6nsN")))),Object(h.a)(()=>Object(y.h)(t,b,e)),Object(h.a)(t=>b.runOutsideAngular(()=>{const e=_,n=w;return Object(y.g)(t.name+".auth","AngularFireAuth",t,()=>{const r=b.runOutsideAngular(()=>t.auth());return e&&r.useEmulator("http://"+e.join(":")),E&&(r.tenantId=E),r.languageCode=O,S&&r.useDeviceLanguage(),n&&(r.settings=n),x&&r.setPersistence(x),r},[e,E,O,S,n,x])})),Object(f.a)({bufferSize:1,refCount:!1}));if(Object(v.P)(r))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=Object(o.a)(null);else{A.pipe(Object(d.a)()).subscribe();const t=A.pipe(Object(l.a)(t=>t.getRedirectResult().then(t=>t,()=>null)),T,Object(f.a)({bufferSize:1,refCount:!1})),e=t=>new s.a(e=>({unsubscribe:b.runOutsideAngular(()=>t(e))})),n=A.pipe(Object(l.a)(t=>e(t.onAuthStateChanged.bind(t)))),r=A.pipe(Object(l.a)(t=>e(t.onIdTokenChanged.bind(t))));this.authState=t.pipe(p(n),Object(m.a)(C.outsideAngular),Object(c.b)(C.insideAngular)),this.user=t.pipe(p(r),Object(m.a)(C.outsideAngular),Object(c.b)(C.insideAngular)),this.idToken=this.user.pipe(Object(l.a)(t=>t?Object(a.a)(t.getIdToken()):Object(o.a)(null))),this.idTokenResult=this.user.pipe(Object(l.a)(t=>t?Object(a.a)(t.getIdTokenResult()):Object(o.a)(null))),this.credential=Object(u.a)(t,j,this.authState.pipe(Object(g.a)(t=>!t))).pipe(Object(h.a)(t=>(null==t?void 0:t.user)?t:null),Object(m.a)(C.outsideAngular),Object(c.b)(C.insideAngular))}return Object(y.j)(this,A,b,{spy:{apply:(t,e,n)=>{(t.startsWith("signIn")||t.startsWith("createUser"))&&n.then(t=>j.next(t))}}})}}return t.\u0275fac=function(e){return new(e||t)(r.ec(y.c),r.ec(y.b,8),r.ec(r.E),r.ec(r.C),r.ec(b,8),r.ec(_,8),r.ec(w,8),r.ec(E,8),r.ec(O,8),r.ec(S,8))},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.ec)(y.c),Object(r.ec)(y.b,8),Object(r.ec)(r.E),Object(r.ec)(r.C),Object(r.ec)(b,8),Object(r.ec)(_,8),Object(r.ec)(w,8),Object(r.ec)(E,8),Object(r.ec)(O,8),Object(r.ec)(S,8))},token:t,providedIn:"any"}),t})()},UfWW:function(t,e,n){var r=n("KwMD"),i=n("ut/Y"),o=n("Sxd8"),s=Math.max;t.exports=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var u=null==n?0:o(n);return u<0&&(u=s(a+u,0)),r(t,i(e,3),u)}},V6Ve:function(t,e,n){var r=n("kekF")(Object.keys,Object);t.exports=r},V9aw:function(t,e){t.exports=function(t){return t.placeholder}},VOtZ:function(t,e,n){var r=n("juv8"),i=n("MvSz");t.exports=function(t,e){return r(t,i(t),e)}},VPfG:function(t,e,n){"use strict";n.d(e,"b",(function(){return we})),n.d(e,"a",(function(){return ue})),n.d(e,"c",(function(){return qe})),n.d(e,"g",(function(){return Fe})),n.d(e,"d",(function(){return ye})),n.d(e,"e",(function(){return be})),n.d(e,"f",(function(){return Te})),n("uyml");var r=n("P6AB"),i=n.n(r),o=n("8uDF"),s=n.n(o);function a(t){return t!==Object(t)}var u=function t(e,n){if(e===n)return!0;if(a(e)||a(n)||"function"==typeof e||"function"==typeof n)return e===n;if(Object.keys(e).length!==Object.keys(n).length)return!1;for(var r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];if(!(o in n))return!1;if(!t(e[o],n[o]))return!1}return!0};function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?c(n,!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=function(){function t(e){var n=e.router,r=e.stateMapping,i=e.instantSearchInstance;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),h(this,"instantSearchInstance",void 0),h(this,"router",void 0),h(this,"stateMapping",void 0),h(this,"isFirstRender",!0),h(this,"currentUiState",void 0),h(this,"initState",void 0),h(this,"renderURLFromState",void 0),this.router=n,this.stateMapping=r,this.instantSearchInstance=i,this.currentUiState=this.stateMapping.routeToState(this.router.read())}var e;return(e=[{key:"getAllSearchParameters",value:function(t){var e=t.uiState;return this.instantSearchInstance.widgets.reduce((function(t,n){return n.getWidgetSearchParameters?n.getWidgetSearchParameters(t,{uiState:e}):t}),t.currentSearchParameters)}},{key:"getAllUiStates",value:function(t){var e=t.searchParameters,n=this.instantSearchInstance.helper;return this.instantSearchInstance.widgets.reduce((function(t,r){return r.getWidgetState?r.getWidgetState(t,{helper:n,searchParameters:e}):t}),{})}},{key:"setupRouting",value:function(t){var e=this,n=this.instantSearchInstance.helper;this.router.onUpdate((function(r){var i=e.stateMapping.routeToState(r),o=e.getAllUiStates({searchParameters:n.state});if(!u(i,o)){e.currentUiState=i;var s=e.getAllSearchParameters({currentSearchParameters:t,uiState:e.currentUiState});n.overrideStateWithoutTriggeringChangeEvent(s).search()}})),this.renderURLFromState=function(t){e.currentUiState=e.getAllUiStates({searchParameters:t});var n=e.stateMapping.stateToRoute(e.currentUiState);e.router.write(n)},n.on("change",this.renderURLFromState);var r=this.getAllUiStates({searchParameters:t});if(!u(this.initState,r)){this.currentUiState=r;var i=this.stateMapping.stateToRoute(this.currentUiState);this.router.write(i)}}},{key:"getConfiguration",value:function(t){var e=i.a.SearchParameters.make(t);return l({},this.getAllSearchParameters({uiState:this.currentUiState,currentSearchParameters:e}))}},{key:"init",value:function(t){this.initState=this.getAllUiStates({searchParameters:t.state})}},{key:"render",value:function(t){var e=t.state;this.isFirstRender&&(this.isFirstRender=!1,this.setupRouting(e))}},{key:"dispose",value:function(t){var e=t.helper,n=t.state;this.renderURLFromState&&this.instantSearchInstance.helper.removeListener("change",this.renderURLFromState),this.router.dispose&&this.router.dispose({helper:e,state:n})}},{key:"createURL",value:function(t){var e=this.getAllUiStates({searchParameters:t}),n=this.stateMapping.stateToRoute(e);return this.router.createURL(n)}},{key:"onHistoryChange",value:function(t){var e=this,n=this.instantSearchInstance.helper;this.router.onUpdate((function(r){var i=e.stateMapping.routeToState(r),o=e.getAllUiStates({searchParameters:n.state});if(!u(i,o)){e.currentUiState=i;var s=e.getAllSearchParameters({currentSearchParameters:n.state,uiState:e.currentUiState});t(l({},s))}}))}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e),t}();var d=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e;return(e=[{key:"stateToRoute",value:function(t){return t}},{key:"routeToState",value:function(t){return t}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e),t}(),p=n("Qyje"),m=n.n(p);function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function y(t,e,n){return(y=g()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&v(i,n.prototype),i}).apply(null,arguments)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=function(t){var e=t.routeState,n=t.location,r=n.protocol,i=n.hostname,o=n.port,s=void 0===o?"":o,a=n.pathname,u=n.hash,c=t.qsModule.stringify(e),l=""===s?"":":".concat(s);return e&&0!==Object.keys(e).length?"".concat(r,"//").concat(i).c
1oncat(l).concat(a,"?").concat(c).concat(u):"".concat(r,"//").concat(i).concat(l).concat(a).concat(u)},E=function(t){return t.qsModule.parse(t.location.search.slice(1),{arrayLimit:99})},O=function(t){t&&(window.document.title=t)},S=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.windowTitle,r=e.writeDelay,i=void 0===r?400:r,o=e.createURL,s=void 0===o?w:o,a=e.parseURL,u=void 0===a?E:a;b(this,t),_(this,"windowTitle",void 0),_(this,"writeDelay",void 0),_(this,"_createURL",void 0),_(this,"parseURL",void 0),_(this,"writeTimer",void 0),this.windowTitle=n,this.writeTimer=void 0,this.writeDelay=i,this._createURL=s,this.parseURL=u;var c=this.windowTitle&&this.windowTitle(this.read());O(c)}var e;return(e=[{key:"read",value:function(){return this.parseURL({qsModule:m.a,location:window.location})}},{key:"write",value:function(t){var e=this,n=this.createURL(t),r=this.windowTitle&&this.windowTitle(t);this.writeTimer&&window.clearTimeout(this.writeTimer),this.writeTimer=window.setTimeout((function(){O(r),window.history.pushState(t,r||"",n),e.writeTimer=void 0}),this.writeDelay)}},{key:"onUpdate",value:function(t){var e=this;this._onPopState=function(n){e.writeTimer&&(window.clearTimeout(e.writeTimer),e.writeTimer=void 0),t(n.state||e.read())},window.addEventListener("popstate",this._onPopState)}},{key:"createURL",value:function(t){return this._createURL({qsModule:m.a,routeState:t,location:window.location})}},{key:"dispose",value:function(){this._onPopState&&window.removeEventListener("popstate",this._onPopState),this.writeTimer&&window.clearTimeout(this.writeTimer),this.write({})}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e),t}(),x="3.7.0",C=function(t,e){return e.split(".").reduce((function(t,e){return t&&t[e]}),t)},T={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},j=/[&<>"']/g,A=RegExp(j.source);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var I=function(t){if(!function(t){return"object"===k(t)&&null!==t}(t)||"[object Object]"!==function(t){return null===t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}(t))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(n,!0).forEach((function(e){P(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var F={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},N="<mark>",L="</mark>";function M(t){return I(t)&&"string"!=typeof t.value?Object.keys(t).reduce((function(e,n){return R({},e,P({},n,M(t[n])))}),{}):Array.isArray(t)?t.map(M):R({},t,{value:(e=t.value,function(t){return t&&A.test(t)?t.replace(j,(function(t){return T[t]})):t}(e).replace(new RegExp(F.highlightPreTag,"g"),N).replace(new RegExp(F.highlightPostTag,"g"),L))});var e}function V(t){return void 0===t.__escaped&&((t=t.map((function(t){return t._highlightResult&&(t._highlightResult=M(t._highlightResult)),t._snippetResult&&(t._snippetResult=M(t._snippetResult)),t}))).__escaped=!0),t}var U=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.descendantName,r=e.modifierName,i=n?"-".concat(n):"",o=r?"--".concat(r):"";
1return"".concat("ais","-").concat(t).concat(i).concat(o)}},B=U("Highlight");function q(t){var e=t.highlightedTagName,n=void 0===e?"mark":e,r=C(t.hit,"_highlightResult.".concat(t.attribute,".value"))||"",i=B({descendantName:"highlighted"});return r.replace(new RegExp(N,"g"),"<".concat(n,' class="').concat(i,'">')).replace(new RegExp(L,"g"),"</".concat(n,">"))}var H=U("Snippet");function z(t){var e=t.highlightedTagName,n=void 0===e?"mark":e,r=C(t.hit,"_snippetResult.".concat(t.attribute,".value"))||"",i=H({descendantName:"highlighted"});return r.replace(new RegExp(N,"g"),"<".concat(n,' class="').concat(i,'">')).replace(new RegExp(L,"g"),"</".concat(n,">"))}function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(n,!0).forEach((function(e){W(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function W(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $(t){var e=t.numberLocale;return{formatNumber:function(t,n){return Number(n(t)).toLocaleString(e)},highlight:function(t,e){try{return e(q(G({},JSON.parse(t),{hit:this})))}catch(n){throw new Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(t,e){try{return e(z(G({},JSON.parse(t),{hit:this})))}catch(n){throw new Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}}}}var K=function(t){var e=t.connector;return["https://www.algolia.com/doc/api-reference/widgets/",t.name,"/js/",void 0!==e&&e?"#connector":""].join("")},X=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.map((function(t){return K(t)})).join(", ");return function(t){return[t,"See documentation: ".concat(r)].filter(Boolean).join("\n\n")}},Y=function(){},J=Y,Z=function(t){return t.filter((function(t,e,n){return n.indexOf(t)===e}))};function tt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var et=function t(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(n).forEach((function(r){var i=e[r],o=n[r];e[r]=Array.isArray(i)&&Array.isArray(o)?Z([].concat(tt(i),tt(o))):I(i)&&I(o)?t(i,o):o})),e}),{})};function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function it(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rt(n,!0).forEach((function(e){ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rt(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ot(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function st(t){return(st=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function at(t,e){return(at=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ut=X({name:"instantsearch"}),ct={stateMapping:new d,router:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return y(S,e)}()};function lt(){return"#"}function ht(t,e){if(!e.getConfiguration)return t;var n=e.getConfiguration(t);
1if(!n)return t;if(!n.hierarchicalFacets)return et(t,n);var r=n.hierarchicalFacets,i=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(n,["hierarchicalFacets"]),o=it({},t,{hierarchicalFacets:r.reduce((function(t,e){var n=function(t,n){if(!Array.isArray(t))return-1;for(var r=0;r<t.length;r++)if(t[r].name===e.name)return r;return-1}(t);if(-1===n)return t.concat(e);var r=t.slice();return r.splice(n,1,e),r}),t.hierarchicalFacets||[])});return et(o,i)}var ft=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(t,e){return!e||"object"!==nt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,st(e).call(this));var r=t.indexName,i=void 0===r?null:r,o=t.numberLocale,s=t.searchParameters,a=t.routing,u=void 0===a?null:a,c=t.searchFunction,l=t.stalledSearchDelay,h=void 0===l?200:l,f=t.searchClient,d=void 0===f?null:f,p=t.insightsClient,m=void 0===p?null:p;if(null===i)throw new Error(ut("The `indexName` option is required."));if(null===d)throw new Error(ut("The `searchClient` option is required."));if(void 0!==t.urlSync)throw new Error(ut("The `urlSync` option was removed in InstantSearch.js 3. You may want to use the `routing` option."));if("function"!=typeof d.search)throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof d.addAlgoliaAgent&&d.addAlgoliaAgent("instantsearch.js (".concat(x,")")),m&&"function"!=typeof m)throw new Error("The provided `insightsClient` must be a function.");return J(!s,"The `searchParameters` option is deprecated and will not be supported in InstantSearch.js 4.x.\n\nYou can replace it with the `configure` widget:\n\n```\nsearch.addWidgets([\n  configure(".concat(JSON.stringify(s,null,2),")\n]);\n```\n\nSee ").concat(K({name:"configure"}))),n.client=d,n.insightsClient=m,n.helper=null,n.indexName=i,n.searchParameters=it({},s,{index:i}),n.widgets=[],n.templatesConfig={helpers:$({numberLocale:o}),compileOptions:{}},n._stalledSearchDelay=h,c&&(n._searchFunction=c),!0===u?n.routing=ct:I(u)&&(n.routing=it({},ct,{},u)),n}var n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&at(t,e)}(e,t),(n=[{key:"addWidget",value:function(t){this.addWidgets([t])}},{key:"addWidgets",value:function(t){var e=this;if(!Array.isArray(t))throw new Error(ut("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));var n=this.widgets.pop();t.forEach((function(t){if(void 0===t.render&&void 0===t.init)throw new Error("The widget definition expects a `render` and/or an `init` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/widgets/create-your-own-widgets/js/");e.widgets.push(t)})),n&&this.widgets.push(n),this.started&&Boolean(t.length)&&(this.searchParameters=this.widgets.reduce(ht,it({},this.helper.state)),this.helper.setState(this.searchParameters),t.forEach((function(t){t.init&&t.init({state:e.helper.state,helper:e.helper,templatesConfig:e.templatesConfig,createURL:e._createAbsoluteURL,onHistoryChange:e._onHistoryChange,instantSearchInstance:e})})),this.helper.search())}},{key:"removeWidget",value:function(t){this.removeWidgets([t])}},{key:"removeWidgets",value:function(t){var e=this;if(!Array.isArray(t))throw new Error(ut("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));t.forEach((function(t){if(!e.widgets.includes(t)||"function"!=typeof t.dispose)throw new Error("The `dispose` method is required to remove the widget.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/widgets/create-your-own-widgets/js/#the-widget-lifecycle-and-api");e.widgets=e.widgets.filter((function(e){return e!==t}));var n=t.dispose({helper:e.helper,state:e.helper.state});n&&(e.searchParameters=e.widgets.reduce(ht,it({},n)),e.helper.setState(e.searchParameters))})),setTimeout((function(){e.widgets.length>0&&e.helper.search()}),0)}},{key:"refresh",value:function(){this.helper&&this.helper.clearCache().search()}},{key:"start",value:function(){var t=this;if(this.started)throw new Error(ut("The `start` method has already been called once."));if(this.routing){var e=new f(it({},this.routing,{instantSearchInstance:this}));this._onHistoryChange=e.onHistoryChange.bind(e),this._createURL=e.createURL.bind(e),this._createAbsoluteURL=this._createURL,this.widgets.push(e)}else this._createURL=lt,this._createAbsoluteURL=lt,this._onHistoryChange=Y;this.searchParameters=this.widgets.reduce(ht,this.searchParameters);var n=i()(this.client,this.searchParameters.index||this.indexName,this.searchParameters);this._searchFunction&&(this._mainHelperSearch=n.search.bind(n),n.search=function(){var e=i()({search:function(){return new Promise(Y)}},n.state.index,n.state);e.once("search",(function(e){n.overrideStateWithoutTriggeringChangeEvent(e),t._mainHelperSearch()})),t._searchFunction(e)}),this.helper=n,this._init(n.state,this.helper),this.helper.on("result",this._render.bind(this,this.helper)),this.helper.on("error",(function(e){t.emit("error",e)})),this._searchStalledTimer=null,this._isSearchStalled=!0,this.helper.search(),this.helper.on("search",(function(){t._isSearchStalled||t._searchStalledTimer||(t._searchStalledTimer=setTimeout((function(){t._isSearchStalled=!0,t._render(t.helper,t.helper.lastResults,t.helper.lastResults._state)}),t._stalledSearchDelay))})),this.started=!0}},{key:"dispose",value:function(){this.removeWidgets(this.widgets),this.started=!1,this.helper.removeAllListeners(),this.helper=null}},{key:"createURL",value:function(t){if(!this._createURL)throw new Error("The `start` method needs to be called before `createURL`.");return this._createURL(this.helper.state.setQueryParameters(t))}},{key:"_render",value:function(t,e,n){var r=this;this.helper.hasPendingRequests()||(clearTimeout(this._searchStalledTimer),this._searchStalledTimer=null,this._isSearchStalled=!1),this.widgets.forEac
1h((function(i){i.render&&i.render({templatesConfig:r.templatesConfig,results:e,state:n,helper:t,createURL:r._createAbsoluteURL,instantSearchInstance:r,searchMetadata:{isSearchStalled:r._isSearchStalled}})})),this.emit("render")}},{key:"_init",value:function(t,e){var n=this;this.widgets.forEach((function(r){r.init&&r.init({state:t,helper:e,templatesConfig:n.templatesConfig,createURL:n._createAbsoluteURL,onHistoryChange:n._onHistoryChange,instantSearchInstance:n})}))}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),e}(s.a),dt=function(t){return new ft(t)};dt.version=x,dt.snippet=z,dt.highlight=q,Object.defineProperty(dt,"widgets",{get:function(){throw new ReferenceError("\"instantsearch.widgets\" are not available from the ES build.\n\nTo import the widgets:\n\nimport { searchBox } from 'instantsearch.js/es/widgets'")}}),Object.defineProperty(dt,"connectors",{get:function(){throw new ReferenceError("\"instantsearch.connectors\" are not available from the ES build.\n\nTo import the connectors:\n\nimport { connectSearchBox } from 'instantsearch.js/es/connectors'")}});var pt=dt,mt=(n("6foH"),n("ofXK"));function gt(t){return(gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var yt=function(t,e){if(void 0===t||"function"!=typeof t)throw new Error('The render function is not valid (got type "'.concat(gt(t),'").\n\n').concat(e))};function vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vt(n,!0).forEach((function(e){_t(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vt(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}X({name:"breadcrumb",connector:!0}),X({name:"clear-refinements",connector:!0}),X({name:"current-refinements",connector:!0}),X({name:"hierarchical-menu",connector:!0}),X({name:"hits-per-page",connector:!0});function wt(t){return function(e,n){return t(function(t){return function(e,n){var r=e.results,i=e.hits,o=e.instantSearchInstance;if(r&&i&&o&&o.insightsClient){var s=function(t,e,n){return function(r,i){if(!Array.isArray(i.objectIDs))throw new TypeError("Expected `objectIDs` to be an array.");var o=function(t){var e,n=t.method,r=t.objectIDs,i=t.results.index,o=(e=t.hits,r.map((function(t){var n,r,i,o=(n=e,r=function(e){return e.objectID===t},Array.prototype.find?n.find(r,i):n.filter(r,i)[0]);if(void 0===o)throw new Error('Could not find objectID "'.concat(t,'" passed to `clickedObjectIDsAfterSearch` in the returned hits. This is necessary to infer the absolute position and the query ID.'));return o}
1))),s=function(t){var e=Z(t.map((function(t){return t.__queryID})));if(e.length>1)throw new Error("Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.");var n=e[0];if("string"!=typeof n)throw new Error("Could not infer `queryID`. Ensure InstantSearch is configured with `clickAnalytics: true`");return n}(o);switch(n){case"clickedObjectIDsAfterSearch":return{index:i,queryID:s,objectIDs:r,positions:function(t){return t.map((function(t){return t.__position}))}(o)};case"convertedObjectIDsAfterSearch":return{index:i,queryID:s,objectIDs:r};default:throw new Error('Unsupported method passed to insights: "'.concat(n,'".'))}}({method:r,results:e,hits:n,objectIDs:i.objectIDs});t(r,bt({},o,{},i))}}(o.insightsClient,r,i);return t(bt({},e,{insights:s}),n)}return t(e,n)}}(e),n)}}function Et(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ot(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var St=function(t,e,n){return t.map((function(t,r){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Et(n,!0).forEach((function(e){Ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Et(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t,{__position:n*e+r+1})}))};function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ct(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Tt=function(t,e){return e?t.map((function(t){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xt(n,!0).forEach((function(e){Ct(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xt(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t,{__queryID:e})})):t},jt=X({name:"hits",connector:!0}),At=wt((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y;return yt(t,jt()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.escapeHTML,i=void 0===r||r,o=n.transformItems,s=void 0===o?function(t){return t}:o;return{getConfiguration:function(){return i?F:void 0},init:function(e){t({hits:[],results:void 0,instantSearchInstance:e.instantSearchInstance,widgetParams:n},!0)},render:function(e){var r=e.results,o=e.instantSearchInstance;i&&r.hits.length>0&&(r.hits=V(r.hits));var a=r.hits.__escaped;r.hits=St(r.hits,r.page,r.hitsPerPage),r.hits=Tt(r.hits,r.queryID),r.hits=s(r.hits),r.hits.__escaped=a,t({hits:r.hits,results:r,instantSearchInstance:o,widgetParams:n},!1)},dispose:function(){e()}}}}));function kt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function It(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Dt(n,!0).forEach((function(e){Pt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dt(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ft=X({name:"infinite-hits",connector:!0}),Nt=wt((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y;return yt(t,Ft()),function(n){var r,i,o,s=n||{},a=s.escapeHTML,c=void 0===a||a,l=s.transformItems,h=void 0===l?function(t){return t}:l,f=s.showPrevious,d=void 0!==f&&f,p=[],m=1/0,g=-1;return{getConfiguration:function(){return c?F:{}},init:function(e){var r=e.instantSearchInstance,s=e.helper;i=function(t){return function(){t.overrideStateWithoutTriggeringChangeEvent(Rt({},t.state,{page:m-1})).search()}}(s),o=function(t){return function(){t.setPage(g+1).search()}}(s),g=s.state.page,t({hits:p,results:void 0,showPrevious:i,showMore:o,isFirstPage:0===(m=s.state.page),isLastPage:!0,instantSearchInstance:r,widgetParams:n},!0)},render:function(e){var s=e.results,a=e.state,l=e.instantSearchInstance,f=a.page,d=It(a,["page"]);u(d,r)||(p=[],m=f,g=f,r=d),c&&s.hits.length>0&&(s.hits=V(s.hits));var y=s.hits.__escaped;s.hits=St(s.hits,s.page,s.hitsPerPage),s.hits=Tt(s.hits,s.queryID),s.hits=h(s.hits),s.hits.__escaped=y,g<f||!p.length?(p=[].concat(kt(p),kt(s.hits)),g=f):m>f&&(p=[].concat(kt(s.hits),kt(p)),m=f),t({hits:p,results:s,showPrevious:i,showMore:o,isFirstPage:0===m,isLastPage:s.nbPages<=s.page+1,instantSearchInstance:l,widgetParams:n},!1)},dispose:function(){e()},getWidgetState:function(t,e){var n=e.searchParameters.page;return d&&0!==n&&n+1!==t.page?Rt({},t,{page:n+1}):t},getWidgetSearchParameters:function(t,e){if(!d)return t;var n=e.uiState.page;return t.setQueryParameter("page",n?n-1:0)}}}}));function Lt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lt(n,!0).forEach((function(e){Vt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lt(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}X({name:"menu",connector:!0}),X({name:"numeric-menu",connector:!0}),X({name:"pagination",connector:!0}),X({name:"range-input",connector:!0},{name:"range-slider",connector:!0}),X({name:"refinement-list",connector:!0});var Ut=X({name:"search-box",connector:!0});function Bt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y;return yt(t,Ut()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.queryHook;function i(t){return function(){t.setQuery(""),t.search()}}return{_clear:function(){},_cachedClear:function(){this._clear()},init:function(e){var o,s,a=e.helper,u=e.instantSearchInstance;this._cachedClear=this._cachedClear.bind(this),this._clear=i(a),this._refine=(s=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t!==a.state.query&&(o=a.state.query,a.setQuery(t)),e&&void 0!==o&&o!==t&&a.search()},r?function(t){return r(t,s)}:s),t({query:a.state.query,refine:this._refine,clear:this._cachedClear,widgetParams:n,instantSearchInstance:u},!0)},render:function(e){var r=e.helper,o=e.instantSearchInstance,s=e.searchMetadata;this._clear=i(r),t({query:r.state.query,refine:this._refine,clear:this._cachedClear,widgetParams:n,instantSearchInstance:o,isSearchStalled:s.isSearchStalled},!1)},dispose:function(t){var n=t.state;return e(),n.setQuery("")},getWidgetState:function(t,e){var n=e.searchParameters.query;return""===n||t&&t.query===n?t:Mt({},t,{query:n})},getWidgetSearchParameters:function(t,e){return t.setQuery(e.uiState.query||"")}}}}function qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?qt(n,!0).forEach((function(e){zt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qt(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}X({name:"sort-by",connector:!0}),X({name:"rating-menu",connector:!0}),X({name:"stats",connector:!0}),X({name:"toggle-refinement",connector:!0});var Qt=X({name:"configure",connector:!0});function Gt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y;return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!I(n.searchParameters))throw new Error(Qt("The `searchParameters` option expects an object."));return{getConfiguration:function(){return n.searchParameters},init:function(e){this._refine=this.refine(e.helper),t({refine:this._refine,widgetParams:n},!0)},refine:function(t){var e=this;return function(r){var i=ht(Ht({},e.removeSearchParameters(t.state)),{getConfiguration:function(){return r}});t.setState(i).search(),n.searchParameters=r}},render:function(){t({refine:this._refine,widgetParams:n},!1)},dispose:function(t){var n=t.state;return e(),this.removeSearchParameters(n)},removeSearchParameters:function(t){return t.mutateMe((function(t){Object.keys(n.searchParameters).forEach((function(e){delete t[e]}))}))}}}}X({name:"query-rules",connector:!0}),X({name:"voice-search",connector:!0}),n("hnrd"),n("4JlD");var Wt=n("fXoL");const $t=["*"],Kt=function(t,e){return[t,e]};function Xt(t,e){1&t&&Wt.Sb(0)}function Yt(t,e){if(1&t&&(Wt.Wb(0,"li"),Wt.Rb(1,"ais-highlight",3),Wt.Vb()),2&t){const t=e.$implicit,n=Wt.mc(2);Wt.Fb(n.cx("item")),Wt.Db(1),Wt.tc("hit",t)}}function Jt(t,e){if(1&t&&(Wt.Wb(0,"div"),Wt.Wb(1,"ul"),Wt.Qc(2,Yt,2,3,"li",2),Wt.Vb(),Wt.Vb()),2&t){const t=Wt.mc();Wt.Db(1),Wt.Fb(t.cx("list")),Wt.Db(1),Wt.tc("ngForOf",t.state.hits)}}function Zt(t,e){1&t&&Wt.Sb(0)}function te(t,e){if(1&t){const t=Wt.Xb();Wt.Wb(0,"button",3),Wt.ic("click",(function(e){return Wt.Hc(t),Wt.mc().showPreviousHandler(e)})),Wt.Sc(1),Wt.Vb()}if(2&t){const t=Wt.mc();Wt.tc("ngClass",Wt.yc(3,Kt,t.cx("loadPrevious"),t.state.isFirstPage?t.cx("loadPrevious","disabled"):""))("disabled",t.state.isFirstPage),Wt.Db(1),Wt.Uc(" ",t.showPreviousLabel," ")}}function ee(t,e){if(1&t&&(Wt.Wb(0,"li"),Wt.Rb(1,"ais-highlight",5),Wt.Vb()),2&t){const t=e.$implicit,n=Wt.mc(2);Wt.Fb(n.cx("item")),Wt.Db(1),Wt.tc("hit",t)}}function ne(t,e){if(1&t&&(Wt.Wb(0,"div"),Wt.Wb(1,"ul"),Wt.Qc(2,ee,2,3,"li",4),Wt.Vb(),Wt.Vb()),2&t){const t=Wt.mc();Wt.Db(1),Wt.Fb(t.cx("list")),Wt.Db(1),Wt.tc("ngForOf",t.state.hits)}}function re(t,e){if(1&t){const t=Wt.Xb();Wt.Wb(0,"button",3),Wt.ic("click",(function(e){return Wt.Hc(t),Wt.mc().showMoreHandler(e)})),Wt.Sc(1),Wt.Vb()}if(2&t){const t=Wt.mc();Wt.tc("ngClass",Wt.yc(3,Kt,t.cx("loadMore"),t.state.isLastPage?t.cx("loadMore","disabled"):""))("disabled",t.state.isLastPage),Wt.Db(1),Wt.Uc(" ",t.showMoreLabel," ")}}const ie=["searchBox"];function oe(t){return function(e,n){let r="ais-"+t;return e&&(r+="-"+e),n&&(r+="--"+n),r}}function se(...t){}let ae=(()=>{class t{constructor(t){this.state={},this.updateState=(t,e)=>{if(e)return Promise.resolve().then(()=>{this.state=t});this.state=t},this.cx=oe(t)}createWidget(t,e={}){this.widget=t(this.updateState,se)(e)}ngOnInit(){this.instantSearchParent.addWidget(this.widget)}ngOnDestroy(){Object(mt.O)(this.instantSearchParent.platformId)&&this.instantSearchParent.removeWidget(this.widget)}getItemClass(t){let e=this.cx("item");return t.isRefined&&(e=`${e} ${this.cx("item","selected")}`),e}}return t.\u0275fac=function(t){Wt.hc()},t.\u0275dir=Wt.Lb({type:t,inputs:{autoHideContainer:"autoHideContainer"}}),t})(),ue=(()=>{class t{constructor(t){this.platformId=t,this.instanceName="default",this.change=new Wt.o,this.onRender=()=>{this.change.emit({results:this.instantSearchInstance.helper.lastResults,state:this.instantSearchInstance.helper.state})}}ngOnInit(){this.createInstantSearchInstance(this.config)}ngAfterViewInit(){this.instantSearchInstance.start()}ngOnDestroy(){this.instantSearchInstance.removeListener("render",this.onRender),this.instantSearchInstance.dispose()}createInstantSearchInstance(t){t.searchParameters||(t.searchParameters={}),Object.assign(t.searchParameters,{highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"}),Object(mt.O)(this.platformId)||(void 0!==t.urlSync&&delete t.urlSync,void 0!==t.routing&&delete t.routing),"function"==typeof t.searchClient.addAlgoliaAgent&&(t.searchClient.addAlgoliaAgent(`angular (${Wt.Q.full})`),t.searchClient.addAlgoliaAgent("angular-instantsearch (3.0.0-beta.5)")),this.instantSearchInstance=pt(t),this.instantSearchInstance.on("render",this.onRender)}addWidget(t){this.instantSearchInstance.addWidget(t)}removeWidget(t){this.instantSearchInstance.removeWidget(t)}refresh(){this.instantSearchInstance.refresh()}}return t.\u0275fac=function(e){return new(e||t)(Wt.Qb(Wt.E))},t.\u0275cmp=Wt.Kb({type:t,selectors:[["ais-instantsearch"]],inputs:{instanceName:"instanceName",config:"config"},outputs:{change:"change"},ngContentSelectors:$t,decls:1,vars:0,template:function(t,e){1&t&&(Wt.sc(),Wt.rc(0))},encapsulation:2}),t})(),ce=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),le=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),he=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),fe=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),de=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})();const pe=n("mwIZ");let me=(()=>{class t{constructor(){this.tagName="em",this.cx=oe("Highlight")}get content(){if("highlighted"===this.attribute)return this.hit.highlighted?this.replaceWithTagName(this.hit.highlighted):this.hit.label;if(this.hit.hasOwnProperty("_highlightResult")){const t=pe(this.hit._highlightResult,this.attribute);if(void 0!==t&&"string"==typeof t.value)return this.replaceWithTagName(t.value)}return pe(this.hit,this.attribute)||(console.warn(`Could not find attribute [${this.attribute}] into hit object, will display an empty string.`),"")}replaceWithTagName(t){return t.replace(new RegExp("<em>","g"),`<${this.tagName} class="${this.cx("highlighted")}">`).replace(new RegExp("</em>","g"),`</${this.tagName}>`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Wt.Kb({type:t,selectors:[["ais-highlight"]],inputs:{tagName:"tagName",attribute:"attribute",hit:"hit"},decls:1,vars:3,consts:[[3,"innerHtml"]],template:function(t,e){1&t&&Wt.Rb(0,"span",0),2&t&&(Wt.Fb(e.cx()),Wt.tc("innerHtml",e.content,Wt.Ic))},encapsulation:2}),t})(),ge=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),ye=(()=>{class t extends ae{constructor(t){super("Hits"),this.instantSearchParent=t,this.state={hits:[],results:{}},this.updateState=(t,e)=>{e||(this.state=t)}}ngOnInit(){this.createWidget(At,{escapeHTML:this.escapeHTML,transformItems:this.transformItems}),super.ngOnInit()}}return t.\u0275fac=function(e){return new(e||t)(Wt.Qb(Object(Wt.X)(()=>ue)))},t.\u0275cmp=Wt.Kb({type:t,selectors:[["ais-hits"]],contentQueries:function(t,e,n){var r;1&t&&Wt.Jb(n,Wt.N,!0),2&t&&Wt.Ec(r=Wt.jc())&&(e.template=r.first)},inputs:{escapeHTML:"escapeHTML",transformItems:"transformItems"},features:[Wt.Ab],decls:3,vars:5,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"class",4,"ngFor","ngForOf"],["attribute","name",3,"hit"]],template:function(t,e){1&t&&(Wt.Wb(0,"div"),Wt.Qc(1,Xt,1,0,"ng-container",0),Wt.Qc(2,Jt,3,3,"div",1),Wt.Vb()),2&t&&(Wt.Fb(e.cx()),Wt.Db(1),Wt.tc("ngTemplateOutlet",e.template)("ngTemplateOutletContext",e.state),Wt.Db(1),Wt.tc("ngIf",!e.template))},directives:[mt.B,mt.u,mt.t,me],encapsulation:2}),t})(),ve=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c,ge]]}),t})(),be=(()=>{class t extends ae{constructor(t){super("InfiniteHits"),this.instantSearchParent=t,this.showPrevious=!1,this.showPreviousLabel="Show previous results",this.showMoreLabel="Show more results",this.state={hits:[],isFirstPage:!1,isLastPage:!1,showMore:se,showPrevious:se,results:{}},this.updateState=(t,e)=>{e||(this.state=t)}}ngOnInit(){this.createWidget(Nt,{escapeHTML:this.escapeHTML,transformItems:this.transformItems}),super.ngOnInit()}
1showMoreHandler(t){t.preventDefault(),this.state.showMore()}showPreviousHandler(t){t.preventDefault(),this.state.showPrevious()}}return t.\u0275fac=function(e){return new(e||t)(Wt.Qb(Object(Wt.X)(()=>ue)))},t.\u0275cmp=Wt.Kb({type:t,selectors:[["ais-infinite-hits"]],contentQueries:function(t,e,n){var r;1&t&&Wt.Jb(n,Wt.N,!0),2&t&&Wt.Ec(r=Wt.jc())&&(e.template=r.first)},inputs:{showPrevious:"showPrevious",showPreviousLabel:"showPreviousLabel",showMoreLabel:"showMoreLabel",escapeHTML:"escapeHTML",transformItems:"transformItems"},features:[Wt.Ab],decls:5,vars:7,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass","disabled","click",4,"ngIf"],[4,"ngIf"],[3,"ngClass","disabled","click"],[3,"class",4,"ngFor","ngForOf"],["attribute","name",3,"hit"]],template:function(t,e){1&t&&(Wt.Wb(0,"div"),Wt.Qc(1,Zt,1,0,"ng-container",0),Wt.Qc(2,te,2,6,"button",1),Wt.Qc(3,ne,3,3,"div",2),Wt.Qc(4,re,2,6,"button",1),Wt.Vb()),2&t&&(Wt.Fb(e.cx()),Wt.Db(1),Wt.tc("ngTemplateOutlet",e.template)("ngTemplateOutletContext",e.state),Wt.Db(1),Wt.tc("ngIf",e.showPrevious&&!e.template),Wt.Db(1),Wt.tc("ngIf",!e.template),Wt.Db(1),Wt.tc("ngIf",!e.template))},directives:[mt.B,mt.u,mt.r,mt.t,me],encapsulation:2}),t})(),_e=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c,ge]]}),t})(),we=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),Ee=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),Oe=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),Se=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),xe=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),Ce=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c,ge]]}),t})(),Te=(()=>{class t extends ae{constructor(t){super("SearchBox"),this.instantSearchParent=t,this.placeholder="Search",this.submitTitle="Submit",this.resetTitle="Reset",this.searchAsYouType=!0,this.autofocus=!1,this.submit=new Wt.o,this.reset=new Wt.o,this.change=new Wt.o,this.focus=new Wt.o,this.blur=new Wt.o,this.state={query:"",refine:se},this.createWidget(Bt)}ngAfterViewInit(){this.autofocus&&this.searchBox.nativeElement.focus()}handleChange(t){this.change.emit(t),this.searchAsYouType&&this.state.refine(t)}handleSubmit(t){this.submit.emit(t),t.preventDefault(),this.searchAsYouType||this.state.refine(this.searchBox.nativeElement.value)}handleReset(t){this.reset.emit(t),this.state.refine("")}}return t.\u0275fac=function(e){return new(e||t)(Wt.Qb(Object(Wt.X)(()=>ue)))},t.\u0275cmp=Wt.Kb({type:t,selectors:[["ais-search-box"]],viewQuery:function(t,e){var n;1&t&&Wt.Yc(ie,!0),2&t&&Wt.Ec(n=Wt.jc())&&(e.searchBox=n.first)},inputs:{placeholder:"placeholder",submitTitle:"submitTitle",resetTitle:"resetTitle",searchAsYouType:"searchAsYouType",autofocus:"autofocus"},outputs:{submit:"submit",reset:"reset",change:"change",focus:"focus",blur:"blur"},features:[Wt.Ab],decls:10,vars:17,consts:[["novalidate","",3,"submit"],["autocapitalize","off","autocorrect","off","role","textbox","spellcheck","false","type","text",3,"placeholder","value","input","focus","blur"],["searchBox",""],["type","submit",3,"title"],["viewBox","0 0 40 40","width","40","height","40",3,"ngClass"],["d","M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"],["type","reset",3,"title","hidden","click"],["viewBox","0 0 20 20","width","20","height","20",3,"ngClass"],["d","M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"]],template:function(t,e){1&t&&(Wt.Wb(0,"div"),Wt.Wb(1,"form",0),Wt.ic("submit",(function(t){return e.handleSubmit(t)})),Wt.Wb(2,"input",1,2),Wt.ic("input",(function(t){return e.handleChange(t.target.value)}))("focus",(function(t){return e.focus.emit(t)}))("blur",(function(t){return e.blur.emit(t)})),Wt.Vb(),Wt.Wb(4,"button",3),Wt.lc(),Wt.Wb(5,"svg",4),Wt.Rb(6,"path",5),Wt.Vb(),Wt.Vb(),Wt.kc(),Wt.Wb(7,"button",6),Wt.ic("click",(function(t){return e.handleReset(t)})),Wt.lc(),Wt.Wb(8,"svg",7),Wt.Rb(9,"path",8),Wt.Vb(),Wt.Vb(),Wt.Vb(),Wt.Vb()),2&t&&(Wt.Fb(e.cx()),Wt.Db(1),Wt.Fb(e.cx("form")),Wt.Db(1),Wt.Fb(e.cx("input")),Wt.uc("placeholder",e.placeholder),Wt.tc("value",e.state.query),Wt.Db(2),Wt.Fb(e.cx("submit")),Wt.uc("title",e.submitTitle),Wt.Db(1),Wt.tc("ngClass",e.cx("submitIcon")),Wt.Db(2),Wt.Fb(e.cx("reset")),Wt.uc("title",e.resetTitle),Wt.tc("hidden",!e.state.query||e.state.query&&!e.state.query.trim()),Wt.Db(1),Wt.tc("ngClass",e.cx("resetIcon")))},directives:[mt.r],encapsulation:2}),t})(),je=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),Ae=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),ke=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),Ie=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),De=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),Re=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),Pe=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),Fe=(()=>{class t extends ae{constructor(t,e){super("Configure"),this.differs=t,this.instantSearchParent=e,this.state={refine:se}}set searchParameters(t){this.internalSearchParameters=t,!this.differ&&t&&(this.differ=this.differs.find(t).create())}ngOnInit(){this.createWidget(Gt,{searchParameters:this.internalSearchParameters}),super.ngOnInit()}ngDoCheck(){this.differ&&this.differ.diff(this.internalSearchParameters)&&this.state.refine(this.internalSearchParameters)}}return t.\u0275fac=function(e){return new(e||t)(Wt.Qb(Wt.w),Wt.Qb(Object(Wt.X)(()=>ue)))},t.\u0275cmp=Wt.Kb({type:t,selectors:[["ais-configure"]],inputs:{searchParameters:"searchParameters"},features:[Wt.Ab],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),Ne=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),Le=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),Me=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})(),Ve=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[mt.c]]}),t})();const Ue=[we,ve,je,le,Ee,Se,Ce,de,Ae,Oe,Ie,De,_e,he,fe,ke,xe,ce,ge,Re,Pe,Ne,Le,Me,Ve];let Be=(()=>{class t{}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)},imports:[[we.forRoot()],we,ve,je,le,Ee,Se,Ce,de,Ae,Oe,Ie,De,_e,he,fe,ke,xe,ce,ge,Re,Pe,Ne,Le,Me,Ve]}),t})(),qe=(()=>{class t{static forRoot(){return{ngModule:Be}}}return t.\u0275mod=Wt.Ob({type:t}),t.\u0275inj=Wt.Nb({factory:function(e){return new(e||t)}
1,imports:[Ue,we,ve,je,le,Ee,Se,Ce,de,Ae,Oe,Ie,De,_e,he,fe,ke,xe,ce,ge,Re,Pe,Ne,Le,Me,Ve]}),t})()},VRyK:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),i=n("z+Ro"),o=n("bHdf"),s=n("yCtX");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))}},VaNO:function(t,e){t.exports=function(t){return this.__data__.has(t)}},WFqU:function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},WMd4:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("EY2u"),i=n("LRne"),o=n("z6cu");let s=(()=>{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(i.a)(this.value);case"E":return Object(o.a)(this.error);case"C":return Object(r.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})()},WPeF:function(t,e){t.exports=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}},Wcq6:function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=r(n("wj3C"));i.default.registerVersion("firebase","7.24.0","app"),t.exports=i.default},WjpJ:function(t,e,n){var r=n("HLqC")();t.exports=r},WwFo:function(t,e,n){var r=n("juv8"),i=n("7GkX");t.exports=function(t,e){return t&&r(e,i(e),t)}},XDbj:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("sVev"),i=n("7o/Q");function o(t=u){return e=>e.lift(new s(t))}class s{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends i.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 u(){return new r.a}},XGnz:function(t,e,n){var r=n("CH3K"),i=n("BiGR");t.exports=function t(e,n,o,s,a){var u=-1,c=e.length;for(o||(o=i),a||(a=[]);++u<c;){var l=e[u];n>0&&o(l)?n>1?t(l,n-1,o,s,a):r(a,l):s||(a[a.length]=l)}return a}},XKAG:function(t,e,n){var r=n("ut/Y"),i=n("MMmD"),o=n("7GkX");t.exports=function(t){return function(e,n,s){var a=Object(e);if(!i(e)){var u=r(n,3);e=o(e),n=function(t){return u(a[t],t,a)}}var c=t(e,n,s);return c>-1?a[u?e[c]:c]:void 0}}},XNiG:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l}));var r=n("HDdC"),i=n("7o/Q"),o=n("quSY"),s=n("9ppp"),a=n("Ylt2"),u=n("2QA8");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}}},XYm9:function(t,e,n){var r=n("+K+b");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},Xdxp:function(t,e,n){var r=n("g4R6"),i=n("zoYe"),o=n("Sxd8"),s=n("dt0z");t.exports=function(t,e,n){return t=s(t),n=null==n?0:r(o(n),0,t.length),e=i(e),t.slice(n,n+e.length)==e}},Xi7e:function(t,e,n){var r=n("KMkd"),i=n("adU4"),o=n("tMB7"),s=n("+6XX"),a=n("Z8oC");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},XoHu:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},"Xt/L":function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},XzbM:function(t,e,n){var r=n("3L66");t.exports=function(t){return r(t)?t:[]}},"Y+p1":function(t,e,n){var r=n("wF/u");t.exports=function(t,e){return r(t,e)}},Y7HM:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("DH7j");function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},YESw:function(t,e,n){var r=n("Cwc5")(Object,"create");t.exports=r},YO3V:function(t,e,n){var r=n("NykK"),i=n("LcsW"),o=n("ExA7"),s=Function.prototype.toString,a=Object.prototype.hasOwnProperty,u=s.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},Ylt2:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("quSY");class i extends r.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}
1unsubscribe(){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)}}},Yoag:function(t,e,n){var r=n("dTAl"),i=n("RrRF");function o(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}(o.prototype=r(i.prototype)).constructor=o,t.exports=o},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},Z0cm:function(t,e){t.exports=Array.isArray},Z4lL:function(t,e,n){"use strict";var r=n("P7XM");function i(t,e){var r=n("v61W"),i=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):i.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=t||"Unknown error",e&&r(e,(function(t,e){i[e]=t}))}function o(t,e){function n(){var n=Array.prototype.slice.call(arguments,0);"string"!=typeof n[0]&&n.unshift(e),i.apply(this,n),this.name="AlgoliaSearch"+t+"Error"}return r(n,i),n}
1r(i,Error),t.exports={AlgoliaSearchError:i,UnparsableJSON:o("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:o("RequestTimeout","Request timed out before getting a response"),Network:o("Network","Network issue, see err.more for details"),JSONPScriptFail:o("JSONPScriptFail","<script> was loaded but did not call our provided callback"),ValidUntilNotFound:o("ValidUntilNotFound","The SecuredAPIKey does not have a validUntil parameter."),JSONPScriptError:o("JSONPScriptError","<script> unable to load due to an `error` event on it"),ObjectNotFound:o("ObjectNotFound","Object not found"),Unknown:o("Unknown","Unknown error occured")}},Z8oC:function(t,e,n){var r=n("y1pI");t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},ZCgT:function(t,e,n){var r=n("tLB3");t.exports=function(t){return t?1/0===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},ZCpW:function(t,e,n){var r=n("lm/5"),i=n("O7RO"),o=n("IOzZ");t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},ZUHj:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("7o/Q");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()}}var o=n("SeVD"),s=n("HDdC");function a(t,e,n,r,a=new i(t,n,r)){if(!a.closed)return e instanceof s.a?e.subscribe(a):Object(o.a)(e)(a)}},ZWtO:function(t,e,n){var r=n("4uTw"),i=n("9Nap");t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},Zsd2:function(t,e,n){var r=n("zoYe"),i=n("jXQH"),o=n("wy8a"),s=n("LPhD"),a=n("t4mE"),u=n("Em2t"),c=n("dt0z");t.exports=function(t,e,n){if((t=c(t))&&(n||void 0===e))return i(t);if(!t||!(e=r(e)))return t;var l=u(t),h=u(e),f=a(l,h),d=s(l,h)+1;return o(l,f,d).join("")}},Zy1z:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(){return t=>t.lift(new o)}class o{call(t,e){return e.subscribe(new s(t))}}class s extends r.a{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}},a1zH:function(t,e,n){var r=n("y4QH"),i=n("MMiu"),o=n("t2dP"),s=n("EldB"),a=n("5sOR"),u=n("V9aw"),c=n("pzgU"),l=n("6KkN"),h=n("Kz5y");t.exports=function t(e,n,f,d,p,m,g,y,v,b){var _=128&n,w=1&n,E=2&n,O=24&n,S=512&n,x=E?void 0:s(e);return function C(){for(var T=arguments.length,j=Array(T),A=T;A--;)j[A]=arguments[A];if(O)var k=u(C),I=o(j,k);if(d&&(j=r(j,d,p,O)),m&&(j=i(j,m,g,O)),T-=I,O&&T<b){var D=l(j,k);return a(e,n,t,C.placeholder,f,j,D,y,v,b-T)}var R=w?f:this,P=E?R[e]:e;return T=j.length,y?j=c(j,y):S&&T>1&&j.reverse(),_&&v<T&&(j.length=v),this&&this!==h&&this instanceof C&&(P=x||s(P)),P.apply(R,j)}}},a5q3:function(t,e,n){var r=n("Of+w"),i=r&&new r;t.exports=i},a9jo:function(t,e,n){var r=n("ut/Y"),i=n("7Paf");t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):0}},aEDk:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return a}));var r=n("fXoL");function i(t){return void 0===t}function o(t){return"string"==typeof t}function s(t,e){const n=e.split("."),r=n.shift();return n.reduce((t,e)=>i(t)||null===t||i(t[e])?void 0:t[e],t[r||""])}let a=(()=>{class t{transform(e,n){if(!Array.isArray(e))return e;const r=[...e];if(Array.isArray(n))return r.sort((e,r)=>{const i=n.length;for(let o=0;o<i;++o){const[i,s]=t.extractFromConfig(n[o]),a=t.orderCompare(i,s,e,r);if(0!==a)return a}return 0});if(o(n)){const[e,i,o]=t.extractFromConfig(n);if(1===n.length)switch(o){case"+":return r.sort(t.simpleSort.bind(this));case"-":return r.sort(t.simpleSort.bind(this)).reverse()}return r.sort(t.orderCompare.bind(this,e,i))}return r.sort(t.simpleSort.bind(this))}static simpleSort(t,e){return o(t)&&o(e)?t.toLowerCase().localeCompare(e.toLowerCase()):t-e}static orderCompare(t,e,n,r){const a=s(n,t),u=s(r,t);if(a===u)return 0;if(i(a)||""===a)return 1;if(i(u)||""===u)return-1;if(o(a)&&o(u)){const t=a.toLowerCase().localeCompare(u.toLowerCase());return e?t:-t}return e?a-u:u-a}static extractFromConfig(t){const e=t.substr(0,1);return[t.replace(/^[-+]/,""),"-"!==e,e]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Pb({name:"orderBy",type:t,pure:!0}),t})(),u=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[]]}),t})(),c=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[]]}),t})(),l=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[]]}),t})(),h=(()=>{class t{constructor(){this.dictionary=[{max:1024,type:"B"},{max:1048576,type:"KB"},{max:1073741824,type:"MB"},{max:10995116e5,type:"GB"}]}transform(t,e){if(!function(t){return function(t){return"number"==typeof t}(t)&&isFinite(t)}
1(t))return NaN;const n=this.dictionary.find(e=>t<e.max)||this.dictionary[this.dictionary.length-1],r=t/(n.max/1024);return`${i(e)?r:function(t,e){if(e<=0)return Math.round(t);const n=Math.pow(10,e);return Math.round(t*n)/n}(r,e)} ${n.type}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Pb({name:"bytes",type:t,pure:!0}),t})(),f=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[]]}),t})(),d=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[]]}),t})(),p=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[]]}),t})(),m=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[u,l,f,d,c,p]}),t})()},adU4:function(t,e,n){var r=n("y1pI"),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},alwl:function(t,e,n){var r=n("eUgh"),i=n("ZWtO"),o=n("ut/Y"),s=n("l9OW"),a=n("1LK5"),u=n("sEf8"),c=n("IWTy"),l=n("zZ0H"),h=n("Z0cm");t.exports=function(t,e,n){e=e.length?r(e,(function(t){return h(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[l];var f=-1;e=r(e,u(o));var d=s(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return a(d,(function(t,e){return c(t,e,n)}))}},asDA:function(t,e){t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},b2z7:function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},b80T:function(t,e,n){var r=n("UNi/"),i=n("03A+"),o=n("Z0cm"),s=n("DSRE"),a=n("wJg7"),u=n("c6wG"),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),h=!n&&!l&&s(t),f=!n&&!l&&!h&&u(t),d=n||l||h||f,p=d?r(t.length,String):[],m=p.length;for(var g in t)!e&&!c.call(t,g)||d&&("length"==g||h&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||p.push(g);return p}},bHdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("5+tZ"),i=n("SpAZ");function o(t=Number.POSITIVE_INFINITY){return Object(r.a)(i.a,t)}},bNQv:function(t,e,n){var r=n("gFfm"),i=n("SKAX"),o=n("EwQA"),s=n("Z0cm");t.exports=function(t,e){return(s(t)?r:i)(t,o(e))}},bOdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5+tZ");function i(t,e){return Object(r.a)(t,e,1)}},bQm7:function(t,e,n){"use strict";t.exports=function(t,e){return/\?/.test(t)?t+="&":t+="?",t+r(e)};var r=n("4JlD")},bTTx:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},bahg:function(t,e){t.exports=function(t){return t.split("")}},bquJ:function(t,e,n){"use strict";n.d(e,"a",(function(){return gt}));var r=n("IzEk"),i=n("ofXK"),o=n("3Pt+"),s=n("0FS3"),a=n("HDdC"),u=n("LRne"),c=n("lJxs"),l=n("fXoL");let h=(()=>{class t{transform(t,e){return t instanceof a.a||(t=Object(u.a)(t)),t.pipe(Object(c.a)(t=>this.toOptions(t,e||{})))}toOptions(t,e){const n=[],r={},i=e.templateOptions||{};return i._flatOptions=!0,t.map(t=>{this.getGroupProp(t,i)?(i._flatOptions=!1,r[this.getGroupProp(t,i)]||(r[this.getGroupProp(t,i)]=[],n.push({label:this.getGroupProp(t,i),group:r[this.getGroupProp(t,i)]})),r[this.getGroupProp(t,i)].push(this.toOption(t,i))):n.push(this.toOption(t,i))}),n}toOption(t,e){return{label:this.getLabelProp(t,e),value:this.getValueProp(t,e),disabled:this.getDisabledProp(t,e)||!1}}getLabelProp(t,e){return"function"==typeof e.labelProp?e.labelProp(t):this.shouldUseLegacyOption(t,e)?(console.warn("NgxFormly: legacy select option '{key, value}' is deprecated since v5.5, use '{value, label}' instead."),t.value):t[e.labelProp||"label"]}getValueProp(t,e){return"function"==typeof e.valueProp?e.valueProp(t):this.shouldUseLegacyOption(t,e)?t.key:t[e.valueProp||"value"]}getDisabledProp(t,e){return"function"==typeof e.disabledProp?e.disabledProp(t):t[e.disabledProp||"disabled"]}getGroupProp(t,e){return"function"==typeof e.groupProp?e.groupProp(t):t[e.groupProp||"group"]}shouldUseLegacyOption(t,e){return!e.valueProp&&!e.labelProp&&null!=t&&"object"==typeof t&&"ke
1y"in t&&"value"in t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=l.Pb({name:"formlySelectOptions",type:t,pure:!0}),t})(),f=(()=>{class t{}return t.\u0275mod=l.Ob({type:t}),t.\u0275inj=l.Nb({factory:function(e){return new(e||t)}}),t})();function d(t,e){if(1&t&&l.Rb(0,"i",8),2&t){const t=l.mc(2);l.tc("ngClass",t.to.addonLeft.class)}}function p(t,e){if(1&t&&(l.Wb(0,"span",9),l.Sc(1),l.Vb()),2&t){const t=l.mc(2);l.Db(1),l.Tc(t.to.addonLeft.text)}}const m=function(t){return{cursor:t}};function g(t,e){if(1&t){const t=l.Xb();l.Wb(0,"div",5),l.ic("click",(function(e){return l.Hc(t),l.mc().addonLeftClick(e)})),l.Qc(1,d,1,1,"i",6),l.Qc(2,p,2,1,"span",7),l.Vb()}if(2&t){const t=l.mc();l.tc("ngStyle",l.xc(3,m,t.to.addonLeft.onClick?"pointer":"inherit")),l.Db(1),l.tc("ngIf",t.to.addonLeft.class),l.Db(1),l.tc("ngIf",t.to.addonLeft.text)}}function y(t,e){if(1&t&&l.Rb(0,"i",8),2&t){const t=l.mc(2);l.tc("ngClass",t.to.addonRight.class)}}function v(t,e){if(1&t&&(l.Wb(0,"span",9),l.Sc(1),l.Vb()),2&t){const t=l.mc(2);l.Db(1),l.Tc(t.to.addonRight.text)}}function b(t,e){if(1&t){const t=l.Xb();
1l.Wb(0,"div",10),l.ic("click",(function(e){return l.Hc(t),l.mc().addonRightClick(e)})),l.Qc(1,y,1,1,"i",6),l.Qc(2,v,2,1,"span",7),l.Vb()}if(2&t){const t=l.mc();l.tc("ngStyle",l.xc(3,m,t.to.addonRight.onClick?"pointer":"inherit")),l.Db(1),l.tc("ngIf",t.to.addonRight.class),l.Db(1),l.tc("ngIf",t.to.addonRight.text)}}let _=(()=>{class t extends s.c{addonRightClick(t){this.to.addonRight.onClick&&this.to.addonRight.onClick(this.to,this,t)}addonLeftClick(t){this.to.addonLeft.onClick&&this.to.addonLeft.onClick(this.to,this,t)}}return t.\u0275fac=function(e){return w(e||t)},t.\u0275cmp=l.Kb({type:t,selectors:[["formly-wrapper-addons"]],features:[l.Ab],decls:6,vars:2,consts:[[1,"input-group"],["class","input-group-prepend",3,"ngStyle","click",4,"ngIf"],[1,"input-addons"],["fieldComponent",""],["class","input-group-append",3,"ngStyle","click",4,"ngIf"],[1,"input-group-prepend",3,"ngStyle","click"],["class","input-group-text",3,"ngClass",4,"ngIf"],["class","input-group-text",4,"ngIf"],[1,"input-group-text",3,"ngClass"],[1,"input-group-text"],[1,"input-group-append",3,"ngStyle","click"]],template:function(t,e){1&t&&(l.Wb(0,"div",0),l.Qc(1,g,3,5,"div",1),l.Wb(2,"div",2),l.Sb(3,null,3),l.Vb(),l.Qc(5,b,3,5,"div",4),l.Vb()),2&t&&(l.Db(1),l.tc("ngIf",e.to.addonLeft),l.Db(4),l.tc("ngIf",e.to.addonRight))},directives:[i.u,i.x,i.r],styles:["[_nghost-%COMP%]     .input-group>:not(:first-child) .form-control{border-top-left-radius:0;border-bottom-left-radius:0}[_nghost-%COMP%]     .input-group>:not(:last-child) .form-control{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%]     .input-group>.input-addons{position:relative;flex:1 1 auto;width:1%;margin-bottom:0}"]}),t})();const w=l.Yb(_);function E(t){!t.templateOptions||t.wrappers&&-1!==t.wrappers.indexOf("addons")||(t.templateOptions.addonLeft||t.templateOptions.addonRight)&&(t.wrappers=[...t.wrappers||[],"addons"])}let O=(()=>{class t{}return t.\u0275mod=l.Ob({type:t}),t.\u0275inj=l.Nb({factory:function(e){return new(e||t)},imports:[[i.c,o.C,s.g.forChild({wrappers:[{name:"addons",component:_}],extensions:[{name:"addons",extension:{postPopulate:E}}]})]]}),t})();function S(t,e){1&t&&(l.Wb(0,"span",5),l.Sc(1,"*"),l.Vb())}function x(t,e){if(1&t&&(l.Wb(0,"label",3),l.Sc(1),l.Qc(2,S,2,0,"span",4),l.Vb()),2&t){const t=l.mc();l.Ib("form-check-label",-1===t.to.formCheck.indexOf("custom"))("custom-control-label",0===t.to.formCheck.indexOf("custom")),l.tc("for",t.id),l.Db(1),l.Uc(" ",t.to.label," "),l.Db(1),l.tc("ngIf",t.to.required&&!0!==t.to.hideRequiredMarker)}}const C=function(t,e,n,r,i,o){return{"form-check":t,"form-check-inline":e,"custom-control":n,"custom-checkbox":r,"custom-control-inline":i,"custom-switch":o}};function T(t,e){if(1&t){const t=l.Xb();l.Wb(0,"div",1),l.Wb(1,"input",2),l.ic("change",(function(n){l.Hc(t);const r=e.$implicit;return l.mc().onChange(r.value,n.target.checked)})),l.Vb(),l.Wb(2,"label",3),l.Sc(3),l.Vb(),l.Vb()}if(2&t){const t=e.$implicit,n=e.index,r=l.mc();l.tc("ngClass",l.Cc(16,C,-1===r.to.formCheck.indexOf("custom"),"inline"===r.to.formCheck,0===r.to.formCheck.indexOf("custom"),"custom"===r.to.formCheck||"custom-inline"===r.to.formCheck,"custom-inline"===r.to.formCheck,"custom-switch"===r.to.formCheck)),l.Db(1),l.Ib("form-check-input",-1===r.to.formCheck.indexOf("custom"))("custom-control-input",0===r.to.formCheck.indexOf("custom")),l.tc("id",r.id+"_"+n)("value",t.value)("checked",r.isChecked(t))("disabled",r.formControl.disabled||t.disabled)("formlyAttributes",r.field),l.Db(1),l.Ib("form-check-label",-1===r.to.formCheck.indexOf("custom"))("custom-control-label",0===r.to.formCheck.indexOf("custom")),l.tc("for",r.id+"_"+n),l.Db(1),l.Uc(" ",t.label," ")}}function j(t,e){if(1&t&&l.Rb(0,"input",2),2&t){const t=l.mc();l.Ib("is-invalid",t.showError),l.tc("type",t.type)("formControl",t.formControl)("formlyAttributes",t.field)}}function A(t,e){if(1&t&&l.Rb(0,"input",3),2&t){const t=l.mc();l.Ib("is-invalid",t.showError),l.tc("formControl",t.formControl)("formlyAttributes",t.field)}}const k=function(t,e,n,r){return{"form-check":t,"form-check-inline":e,"custom-control custom-radio":n,"custom-control-inline":r}};function I(t,e){if(1&t&&(l.Wb(0,"div",1),l.Rb(1,"input",2),l.Wb(2,"label",3),l.Sc(3),l.Vb(),l.Vb()),2&t){const t=e.$implicit,n=e.index,r=l.mc();l.tc("ngClass",l.Ac(20,k,-1===r.to.formCheck.indexOf("custom"),"inline"===r.to.formCheck,0===r.to.formCheck.indexOf("custom"),"custom-inline"===r.to.formCheck)),l.Db(1),l.Ib("form-check-input",-1===r.to.formCheck.indexOf("custom"))("custom-control-input",0===r.to.formCheck.indexOf("custom"))("is-invalid",r.showError),l.tc("id",r.id+"_"+n)("name",r.field.name||r.id)("value",t.value)("formControl",r.formControl)("formlyAttributes",r.field),l.Eb("value",t.value)("disabled",!(!t.disabled&&!r.formControl.disabled)||null),l.Db(1),l.Ib("form-check-label",-1===r.to.formCheck.indexOf("custom"))("custom-control-label",0===r.to.formCheck.indexOf("custom")),l.tc("for",r.id+"_"+n),l.Db(1),l.Uc(" ",t.label," ")}}function D(t,e){if(1&t&&(l.Ub(0),l.Wb(1,"option",7),l.Sc(2),l.Vb(),l.Tb()),2&t){const t=e.$implicit;l.Db(1),l.tc("ngValue",t.value)("disabled",t.disabled),l.Db(1),l.Tc(t.label)}}function R(t,e){if(1&t&&(l.Ub(0),l.Qc(1,D,3,3,"ng-container",6),l.Tb()),2&t){const t=l.mc().ngIf;l.Db(1),l.tc("ngForOf",t)}}function P(t,e){if(1&t&&(l.Wb(0,"option",7),l.Sc(1),l.Vb()),2&t){const t=l.mc().$implicit;l.tc("ngValue",t.value)("disabled",t.disabled),l.Db(1),l.Tc(t.label)}}function F(t,e){if(1&t&&(l.Wb(0,"option",7),l.Sc(1),l.Vb()),2&t){const t=e.$implicit;l.tc("ngValue",t.value)("disabled",t.disabled),l.Db(1),l.Uc(" ",t.label," ")}}function N(t,e){if(1&t&&(l.Wb(0,"optgroup",10),l.Qc(1,F,2,3,"option",11),l.Vb()),2&t){const t=l.mc().$implicit;l.tc("label",t.label),l.Db(1),l.tc("ngForOf",t.group)}}function L(t,e){if(1&t&&(l.Ub(0),l.Qc(1,P,2,3,"option",8),l.Qc(2,N,2,2,"ng-template",null,9,l.Rc),l.Tb()),2&t){const t=e.$implicit,n=l.Fc(3);l.Db(1),l.tc("ngIf",!t.group)("ngIfElse",n)}}function M(t,e){if(1&t&&l.Qc(0,L,4,2,"ng-container",6),2&t){const t=l.mc().ngIf;l.tc("ngForOf",t)}}function V(t,e){if(1&t&&(l.Ub(0),l.Qc(1,R,2,1,"ng-container",4),l.Qc(2,M,1,1,"ng-template",null,5,l.Rc),l.Tb()),2&t){const t=l.Fc(3),e=l.mc(2);l.Db(1),l.tc("ngIf",e.to._flatOptions)("ngIfElse",t)}}function U(t,e){if(1&t&&(l.Wb(0,"select",2),l.Qc(1,V,4,2,"ng-container",3),l.nc(2,"async"),l.nc(3,"formlySelectOptions"),l.Vb()),2&t){const t=l.mc();l.Ib("custom-select",t.to.customSelect)("is-invalid",t.showError),l.tc("formControl",t.formControl)("compareWith",t.to.compareWith)("formlyAttributes",t.field),l.Db(1),l.tc("ngIf",l.oc(2,8,l.pc(3,10,t.to.options,t.field)))}}function B(t,e){if(1&t&&(l.Wb(0,"option",14),l.Sc(1),l.Vb()),2&t){const t=l.mc(2);l.tc("ngValue",null),l.Db(1),l.Tc(t.to.placeholder)}}function q(t,e){if(1&t&&(l.Ub(0),l.Wb(1,"option",7),l.Sc(2),l.Vb(),l.Tb()),2&t){const t=e.$implicit;l.Db(1),l.tc("ngValue",t.value)("disabled",t.disabled),l.Db(1),l.Tc(t.label)}}function H(t,e){if(1&t&&(l.Ub(0),l.Qc(1,q,3,3,"ng-container",6),l.Tb()),2&t){const t=l.mc().ngIf;l.Db(1),l.tc("ngForOf",t)}}function z(t,e){if(1&t&&(l.Wb(0,"option",7),l.Sc(1),l.Vb()),2&t){const t=l.mc().$implicit;l.tc("ngValue",t.value)("disabled",t.disabled),l.Db(1),l.Tc(t.label)}}function Q(t,e){if(1&t&&(l.Wb(0,"option",7),l.Sc(1),l.Vb()),2&t){const t=e.$implicit;l.tc("ngValue",t.value)("disabled",t.disabled),l.Db(1),l.Uc(" ",t.label," ")}}function G(t,e){if(1&t&&(l.Wb(0,"optgroup",10),l.Qc(1,Q,2,3,"option",11),l.Vb()),2&t){const t=l.mc().$implicit;l.tc("label",t.label),l.Db(1),l.tc("ngForOf",t.group)}}function W(t,e){if(1&t&&(l.Ub(0),l.Qc(1,z,2,3,"option",8),l.Qc(2,G,2,2,"ng-template",null,9,l.Rc),l.Tb()),2&t){const t=e.$implicit,n=l.Fc(3);l.Db(1),l.tc("ngIf",!t.group)("ngIfElse",n)}}function $(t,e){if(1&t&&l.Qc(0,W,4,2,"ng-container",6),2&t){const t=l.mc().ngIf;l.tc("ngForOf",t)}}function K(t,e){if(1&t&&(l.Ub(0),l.Qc(1,H,2,1,"ng-container",4),l.Qc(2,$,1,1,"ng-template",null,5,l.Rc),l.Tb()),2&t){const t=l.Fc(3),e=l.mc(2);l.Db(1),l.tc("ngIf",e.to._flatOptions)("ngIfElse",t)}}function X(t,e){if(1&t&&(l.Wb(0,"select",12),l.Qc(1,B,2,2,"option",13),l.Qc(2,K,4,2,"ng-container",3),l.nc(3,"async"),l.nc(4,"formlySelectOptions"),l.Vb()),2&t){const t=l.mc();l.Ib("custom-select",t.to.customSelect)("is-invalid",t.showError),l.tc("formControl",t.formControl)("compareWith",t.to.compareWith)("formlyAttributes",t.field),l.Db(1),l.tc("ngIf",t.to.placeholder),l.Db(1),l.tc("ngIf",l.oc(3,9,l.pc(4,11,t.to.options,t.field)))}}function Y(t,e){1&t&&(l.Wb(0,"span",6),l.Sc(1,"*"),l.Vb())}function J(t,e){if(1&t&&(l.Wb(0,"label"),l.Sc(1),l.Qc(2,Y,2,0,"span",5),l.Vb()),2&t){const t=l.mc();
1l.Eb("for",t.id),l.Db(1),l.Uc(" ",t.to.label," "),l.Db(1),l.tc("ngIf",t.to.required&&!0!==t.to.hideRequiredMarker)}}function Z(t,e){}function tt(t,e){if(1&t&&(l.Wb(0,"div",7),l.Rb(1,"formly-validation-message",8),l.Vb()),2&t){const t=l.mc();l.Pc("display","block"),l.Db(1),l.tc("field",t.field)}}function et(t,e){if(1&t&&(l.Wb(0,"small",9),l.Sc(1),l.Vb()),2&t){const t=l.mc();l.Db(1),l.Tc(t.to.description)}}let nt=(()=>{class t extends s.b{constructor(){super(...arguments),this.defaultOptions={templateOptions:{indeterminate:!0,hideLabel:!0,formCheck:"custom"}}}}return t.\u0275fac=function(e){return rt(e||t)},t.\u0275cmp=l.Kb({type:t,selectors:[["formly-field-checkbox"]],features:[l.Ab],decls:3,vars:20,consts:[[3,"ngClass"],["type","checkbox",3,"indeterminate","formControl","formlyAttributes"],[3,"for","form-check-label","custom-control-label",4,"ngIf"],[3,"for"],["aria-hidden","true",4,"ngIf"],["aria-hidden","true"]],template:function(t,e){1&t&&(l.Wb(0,"div",0),l.Rb(1,"input",1),l.Qc(2,x,3,7,"label",2),l.Vb()),2&t&&(l.tc("ngClass",l.Cc(13,C,-1===e.to.formCheck.indexOf("custom"),"inline"===e.to.formCheck,0===e.to.formCheck.indexOf("custom"),"custom"===e.to.formCheck||"custom-inline"===e.to.formCheck,"custom-inline"===e.to.formCheck,"custom-switch"===e.to.formCheck)),l.Db(1),l.Ib("is-invalid",e.showError)("form-check-input",-1===e.to.formCheck.indexOf("custom"))("position-static","nolabel"===e.to.formCheck)("custom-control-input",0===e.to.formCheck.indexOf("custom")),l.tc("indeterminate",e.to.indeterminate&&null===e.formControl.value)("formControl",e.formControl)("formlyAttributes",e.field),l.Db(1),l.tc("ngIf","nolabel"!==e.to.formCheck))},directives:[i.r,o.b,o.s,o.i,s.d,i.u],encapsulation:2}),t})();const rt=l.Yb(nt);let it=(()=>{class t extends s.b{constructor(){super(...arguments),this.defaultOptions={templateOptions:{options:[],formCheck:"custom"}}}onChange(t,e){this.formControl.patchValue("array"===this.to.type?e?[...this.formControl.value||[],t]:[...this.formControl.value||[]].filter(e=>e!==t):Object.assign({},this.formControl.value,{[t]:e})),this.formControl.markAsTouched()}isChecked(t){const e=this.formControl.value;return e&&("array"===this.to.type?-1!==e.indexOf(t.value):e[t.value])}}return t.\u0275fac=function(e){return ot(e||t)},t.\u0275cmp=l.Kb({type:t,selectors:[["formly-field-multicheckbox"]],features:[l.Ab],decls:4,vars:6,consts:[[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["type","checkbox",3,"id","value","checked","disabled","formlyAttributes","change"],[3,"for"]],template:function(t,e){1&t&&(l.Wb(0,"div"),l.Qc(1,T,4,23,"div",0),l.nc(2,"async"),l.nc(3,"formlySelectOptions"),l.Vb()),2&t&&(l.Db(1),l.tc("ngForOf",l.oc(2,1,l.pc(3,3,e.to.options,e.field))))},directives:[i.t,i.r,s.d],pipes:[i.b,h],encapsulation:2}),t})();const ot=l.Yb(it);let st=(()=>{class t extends s.b{get type(){return this.to.type||"text"}}return t.\u0275fac=function(e){return at(e||t)},t.\u0275cmp=l.Kb({type:t,selectors:[["formly-field-input"]],features:[l.Ab],decls:3,vars:2,consts:[["class","form-control",3,"type","formControl","formlyAttributes","is-invalid",4,"ngIf","ngIfElse"],["numberTmp",""],[1,"form-control",3,"type","formControl","formlyAttributes"],["type","number",1,"form-control",3,"formControl","formlyAttributes"]],template:function(t,e){if(1&t&&(l.Qc(0,j,1,5,"input",0),l.Qc(1,A,1,4,"ng-template",null,1,l.Rc)),2&t){const t=l.Fc(2);l.tc("ngIf","number"!==e.type)("ngIfElse",t)}},directives:[i.u,o.d,o.s,o.i,s.d,o.y],encapsulation:2}),t})();const at=l.Yb(st);let ut=(()=>{class t extends s.b{constructor(){super(...arguments),this.defaultOptions={templateOptions:{options:[],formCheck:"custom"}}}}return t.\u0275fac=function(e){return ct(e||t)},t.\u0275cmp=l.Kb({type:t,selectors:[["formly-field-radio"]],features:[l.Ab],decls:4,vars:6,consts:[[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["type","radio",3,"id","name","value","formControl","formlyAttributes"],[3,"for"]],template:function(t,e){1&t&&(l.Wb(0,"div"),l.Qc(1,I,4,25,"div",0),l.nc(2,"async"),l.nc(3,"formlySelectOptions"),l.Vb()),2&t&&(l.Db(1),l.tc("ngForOf",l.oc(2,1,l.pc(3,3,e.to.options,e.field))))},directives:[i.t,i.r,o.A,o.d,o.s,o.i,s.d],pipes:[i.b,h],encapsulation:2}),t})();const ct=l.Yb(ut);let lt=(()=>{class t extends s.b{constructor(){super(...arguments),this.defaultOptions={templateOptions:{cols:1,rows:1}}}}return t.\u0275fac=function(e){return ht(e||t)},t.\u0275cmp=l.Kb({type:t,selectors:[["formly-field-textarea"]],features:[l.Ab],decls:2,vars:6,consts:[[1,"form-control",3,"formControl","cols","rows","formlyAttributes"]],template:function(t,e){1&t&&(l.Wb(0,"textarea",0),l.Sc(1,"    "),l.Vb()),2&t&&(l.Ib("is-invalid",e.showError),l.tc("formControl",e.formControl)("cols",e.to.cols)("rows",e.to.rows)("formlyAttributes",e.field))},directives:[o.d,o.s,o.i,s.d],encapsulation:2}),t})();const ht=l.Yb(lt);let ft=(()=>{class t extends s.b{constructor(t){super(),this.ngZone=t,this.defaultOptions={templateOptions:{options:[],compareWith:(t,e)=>t===e}}}set selectAccessor(t){if(!t)return;const e=t.writeValue.bind(t);null===t._getOptionId(t.value)&&e(t.value),t.writeValue=n=>{const i=t._idCounter;e(n),null===n&&this.ngZone.onStable.asObservable().pipe(Object(r.a)(1)).subscribe(()=>{i!==t._idCounter&&null===t._getOptionId(n)&&-1!==t._elementRef.nativeElement.selectedIndex&&e(n)})}}}
1return t.\u0275fac=function(e){return new(e||t)(l.Qb(l.C))},t.\u0275cmp=l.Kb({type:t,selectors:[["formly-field-select"]],viewQuery:function(t,e){var n;1&t&&l.Yc(o.E,!0),2&t&&l.Ec(n=l.jc())&&(e.selectAccessor=n.first)},features:[l.Ab],decls:3,vars:2,consts:[["class","form-control","multiple","",3,"custom-select","formControl","compareWith","is-invalid","formlyAttributes",4,"ngIf","ngIfElse"],["singleSelect",""],["multiple","",1,"form-control",3,"formControl","compareWith","formlyAttributes"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["grouplist",""],[4,"ngFor","ngForOf"],[3,"ngValue","disabled"],[3,"ngValue","disabled",4,"ngIf","ngIfElse"],["optgroup",""],[3,"label"],[3,"ngValue","disabled",4,"ngFor","ngForOf"],[1,"form-control",3,"formControl","compareWith","formlyAttributes"],[3,"ngValue",4,"ngIf"],[3,"ngValue"]],template:function(t,e){if(1&t&&(l.Qc(0,U,4,13,"select",0),l.Qc(1,X,5,14,"ng-template",null,1,l.Rc)),2&t){const t=l.Fc(2);l.tc("ngIf",e.to.multiple)("ngIfElse",t)}},directives:[i.u,o.F,o.s,o.i,s.d,i.t,o.x,o.H,o.E],pipes:[i.b,h],encapsulation:2}),t})(),dt=(()=>{class t extends s.c{}return t.\u0275fac=function(e){return pt(e||t)},t.\u0275cmp=l.Kb({type:t,selectors:[["formly-wrapper-form-field"]],features:[l.Ab],decls:6,vars:5,consts:[[1,"form-group"],[4,"ngIf"],["fieldComponent",""],["class","invalid-feedback",3,"display",4,"ngIf"],["class","form-text text-muted",4,"ngIf"],["aria-hidden","true",4,"ngIf"],["aria-hidden","true"],[1,"invalid-feedback"],[3,"field"],[1,"form-text","text-muted"]],template:function(t,e){1&t&&(l.Wb(0,"div",0),l.Qc(1,J,3,3,"label",1),l.Qc(2,Z,0,0,"ng-template",null,2,l.Rc),l.Qc(4,tt,2,3,"div",3),l.Qc(5,et,2,1,"small",4),l.Vb()),2&t&&(l.Ib("has-error",e.showError),l.Db(1),l.tc("ngIf",e.to.label&&!0!==e.to.hideLabel),l.Db(3),l.tc("ngIf",e.showError),l.Db(1),l.tc("ngIf",e.to.description))},directives:[i.u,s.i],encapsulation:2}),t})();const pt=l.Yb(dt),mt={types:[{name:"input",component:st,wrappers:["form-field"]},{name:"checkbox",component:nt,wrappers:["form-field"]},{name:"radio",component:ut,wrappers:["form-field"]},{name:"select",component:ft,wrappers:["form-field"]},{name:"textarea",component:lt,wrappers:["form-field"]},{name:"multicheckbox",component:it,wrappers:["form-field"]}],wrappers:[{name:"form-field",component:dt}]};let gt=(()=>{class t{}return t.\u0275mod=l.Ob({type:t}),t.\u0275inj=l.Nb({factory:function(e){return new(e||t)},imports:[[i.c,o.C,f,s.g.forChild(mt),O]]}),t})()},"c+Bx":function(t,e){t.exports=function(t,e){e(t,0)}},c2HN:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},c6wG:function(t,e,n){var r=n("dD9F"),i=n("sEf8"),o=n("mdPL"),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},"cq/+":function(t,e,n){var r=n("mc0g")();t.exports=r},cvCv:function(t,e){t.exports=function(t){return function(){return t}}},d8FT:function(t,e,n){var r=n("eUgh"),i=n("ut/Y"),o=n("idmN"),s=n("G6z8");t.exports=function(t,e){if(null==t)return{};var n=r(s(t),(function(t){return[t]}));return e=i(e),o(t,n,(function(t,n){return e(t,n[0])}))}},dD9F:function(t,e,n){var r=n("NykK"),i=n("shjB"),o=n("ExA7"),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},dTAl:function(t,e,n){var r=n("GoyQ"),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},"dac+":function(t,e,n){var r;function i(t){function n(){if(n.enabled){var t=n,i=+new Date,o=i-(r||i);
1t.diff=o,t.prev=r,t.curr=i,r=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=e.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var u=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;u++;var i=e.formatters[r];return"function"==typeof i&&(n=i.call(t,s[u]),s.splice(u,1),u--),n})),e.formatArgs.call(t,s);var c=n.log||e.log||console.log.bind(console);c.apply(t,s)}}return n.namespace=t,n.enabled=e.enabled(t),n.useColors=e.useColors(),n.color=function(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}(t),"function"==typeof e.init&&e.init(n),n}(e=t.exports=i.debug=i.default=i).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){e.save(t),e.names=[],e.skips=[];for(var n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&("-"===(t=n[i].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n("jq3D"),e.names=[],e.skips=[],e.formatters={}},dt0z:function(t,e,n){var r=n("zoYe");t.exports=function(t){return null==t?"":r(t)}},e4Nc:function(t,e,n){var r=n("fGT3"),i=n("k+1r"),o=n("JHgL"),s=n("pSRY"),a=n("H8j4");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},e5cp:function(t,e,n){var r=n("fmRc"),i=n("or5M"),o=n("HDyB"),s=n("seXi"),a=n("QqLw"),u=n("Z0cm"),c=n("DSRE"),l=n("c6wG"),h="[object Arguments]",f="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,m,g,y){var v=u(t),b=u(e),_=v?f:a(t),w=b?f:a(e),E=(_=_==h?d:_)==d,O=(w=w==h?d:w)==d,S=_==w;if(S&&c(t)){if(!c(e))return!1;v=!0,E=!1}if(S&&!E)return y||(y=new r),v||l(t)?i(t,e,n,m,g,y):o(t,e,_,n,m,g,y);if(!(1&n)){var x=E&&p.call(t,"__wrapped__"),C=O&&p.call(e,"__wrapped__");
1if(x||C){var T=x?t.value():t,j=C?e.value():e;return y||(y=new r),g(T,j,n,m,y)}}return!!S&&(y||(y=new r),s(t,e,n,m,g,y))}},eASc:function(t,e,n){var r=n("P7XM"),i=n("ilQL"),o=n("nVSS"),s=n("JRE2"),a=n("c+Bx"),u=n("Z4lL"),c=o((function(){}),s("forwardToSlaves","forwardToReplicas"));function l(){i.apply(this,arguments)}function h(t,e,n){return function n(r,i){var o={page:r||0,hitsPerPage:e||100},s=i||[];return t(o).then((function(t){var e=t.nbHits,r=t.hits.map((function(t){return delete t._highlightResult,t})),i=s.concat(r);return i.length<e?n(o.page+1,i):i}))}().then((function(t){if("function"!=typeof n)return t;n(t)}))}t.exports=l,r(l,i),l.prototype.addObject=function(t,e,n){var r=this;return 1!==arguments.length&&"function"!=typeof e||(n=e,e=void 0),this.as._jsonRequest({method:void 0!==e?"PUT":"POST",url:"/1/indexes/"+encodeURIComponent(r.indexName)+(void 0!==e?"/"+encodeURIComponent(e):""),body:t,hostType:"write",callback:n})},l.prototype.addObjects=function(t,e){if(!n("bTTx")(t))throw new Error("Usage: index.addObjects(arrayOfObjects[, callback])");for(var r={requests:[]},i=0;i<t.length;++i)r.requests.push({action:"addObject",body:t[i]});return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:r,hostType:"write",callback:e})},l.prototype.partialUpdateObject=function(t,e,n){1!==arguments.length&&"function"!=typeof e||(n=e,e=void 0);var r=this,i="/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(t.objectID)+"/partial";return!1===e&&(i+="?createIfNotExists=false"),this.as._jsonRequest({method:"POST",url:i,body:t,hostType:"write",callback:n})},l.prototype.partialUpdateObjects=function(t,e,r){1!==arguments.length&&"function"!=typeof e||(r=e,e=!0);var i=n("bTTx"),o="Usage: index.partialUpdateObjects(arrayOfObjects[, callback])";if(!i(t))throw new Error(o);for(var s=this,a={requests:[]},u=0;u<t.length;++u){var c={action:!0===e?"partialUpdateObject":"partialUpdateObjectNoCreate",objectID:t[u].objectID,body:t[u]};a.requests.push(c)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(s.indexName)+"/batch",body:a,hostType:"write",callback:r})},l.prototype.saveObject=function(t,e){return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(t.objectID),body:t,hostType:"write",callback:e})},l.prototype.saveObjects=function(t,e){if(!n("bTTx")(t))throw new Error("Usage: index.saveObjects(arrayOfObjects[, callback])");for(var r={requests:[]},i=0;i<t.length;++i)r.requests.push({action:"updateObject",objectID:t[i].objectID,body:t[i]});return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:r,hostType:"write",callback:e})},l.prototype.deleteObject=function(t,e){if("function"==typeof t||"string"!=typeof t&&"number"!=typeof t){var n=new u.AlgoliaSearchError(t&&"function"!=typeof t?"ObjectID must be a string":"Cannot delete an object without an objectID");return"function"==typeof(e=t)?e(n):this.as._promise.reject(n)}return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(t),hostType:"write",callback:e})},l.prototype.deleteObjects=function(t,e){var r=n("bTTx"),i=n("7Ule");if(!r(t))throw new Error("Usage: index.deleteObjects(arrayOfObjectIDs[, callback])");var o={requests:i(t,(function(t){return{action:"deleteObject",objectID:t,body:{objectID:t}}}))};return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:o,hostType:"write",callback:e})},l.prototype.deleteByQuery=o((function(t,e,r){var i=n("sLmk"),o=n("7Ule"),s=this,u=s.as;1===arguments.length||"function"==typeof e?(r=e,e={}):e=i(e),e.attributesToRetrieve="objectID",e.hitsPerPage=1e3,e.distinct=!1,this.clearCache();var c=this.search(t,e).then(l);function l(t){if(0===t.nbHits)return t;var e=o(t.hits,(function(t){return t.objectID}));return s.deleteObjects(e).then(h).then(f)}function h(t){return s.waitTask(t.taskID)}function f(){return s.deleteByQuery(t,e)}if(!r)return c;function d(){a((function(){r(null)}),u._setTimeout||setTimeout)}function p(t){a((function(){r(t)}),u._setTimeout||setTimeout)}c.then(d,p)}),s("index.deleteByQuery()","index.deleteBy()")),l.prototype.deleteBy=function(t,e){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/deleteByQuery",body:{params:this.as._getSearchParams(t,"")},hostType:"write",callback:e})},l.prototype.browseAll=function(t,e){"object"==typeof t&&(e=t,t=void 0);var r=n("MYMM"),i=new(n("qzBT")),o=this.as,s=this,a=o._getSearchParams(r({},e||{},{query:t}),"");function u(t){var e;i._stopped||(e=void 0!==t?{cursor:t}:{params:a},o._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(s.indexName)+"/browse",hostType:"read",body:e,callback:c}))}function c(t,e){i._stopped||(t?i._error(t):(i._result(e),void 0!==e.curs
1or?u(e.cursor):i._end()))}return u(),i},l.prototype.ttAdapter=o((function(t){var e=this;return function(n,r,i){var o;o="function"==typeof i?i:r,e.search(n,t,(function(t,e){o(t||e.hits)}))}}),"ttAdapter is not necessary anymore and will be removed in the next version,\nhave a look at autocomplete.js (https://github.com/algolia/autocomplete.js)"),l.prototype.waitTask=function(t,e){var n=0,r=this,i=r.as,o=function e(){return i._jsonRequest({method:"GET",hostType:"read",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/task/"+t}).then((function(t){var r=100*++n*n;return r>5e3&&(r=5e3),"published"!==t.status?i._promise.delay(r).then(e):t}))}();if(!e)return o;o.then((function(t){a((function(){e(null,t)}),i._setTimeout||setTimeout)}),(function(t){a((function(){e(t)}),i._setTimeout||setTimeout)}))},l.prototype.clearIndex=function(t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/clear",hostType:"write",callback:t})},l.prototype.getSettings=function(t,e){1===arguments.length&&"function"==typeof t&&(e=t,t={}),t=t||{};var n=encodeURIComponent(this.indexName);return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+n+"/settings?getVersion=2"+(t.advanced?"&advanced="+t.advanced:""),hostType:"read",callback:e})},l.prototype.searchSynonyms=function(t,e){return"function"==typeof t?(e=t,t={}):void 0===t&&(t={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/search",body:t,hostType:"read",callback:e})},l.prototype.exportSynonyms=function(t,e){return h(this.searchSynonyms.bind(this),t,e)},l.prototype.saveSynonym=function(t,e,n){"function"==typeof e?(n=e,e={}):void 0===e&&(e={}),void 0!==e.forwardToSlaves&&c();var r=e.forwardToSlaves||e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(t.objectID)+"?forwardToReplicas="+r,body:t,hostType:"write",callback:n})},l.prototype.getSynonym=function(t,e){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(t),hostType:"read",callback:e})},l.prototype.deleteSynonym=function(t,e,n){"function"==typeof e?(n=e,e={}):void 0===e&&(e={}),void 0!==e.forwardToSlaves&&c();var r=e.forwardToSlaves||e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(t)+"?forwardToReplicas="+r,hostType:"write",callback:n})},l.prototype.clearSynonyms=function(t,e){"function"==typeof t?(e=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&c();var n=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/clear?forwardToReplicas="+n,hostType:"write",callback:e})},l.prototype.batchSynonyms=function(t,e,n){"function"==typeof e?(n=e,e={}):void 0===e&&(e={}),void 0!==e.forwardToSlaves&&c();var r=e.forwardToSlaves||e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/batch?forwardToReplicas="+r+"&replaceExistingSynonyms="+(e.replaceExistingSynonyms?"true":"false"),hostType:"write",body:t,callback:n})},l.prototype.searchRules=function(t,e){return"function"==typeof t?(e=t,t={}):void 0===t&&(t={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/search",body:t,hostType:"read",callback:e})},l.prototype.exportRules=function(t,e){return h(this.searchRules.bind(this),t,e)},l.prototype.saveRule=function(t,e,n){if("function"==typeof e?(n=e,e={}):void 0===e&&(e={}),!t.objectID)throw new u.AlgoliaSearchError("Missing or empty objectID field for rule");var r=!0===e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(t.objectID)+"?forwardToReplicas="+r,body:t,hostType:"write",callback:n})},l.prototype.getRule=function(t,e){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(t),hostType:"read",callback:e})},l.prototype.deleteRule=function(t,e,n){"function"==typeof e?(n=e,e={}):void 0===e&&(e={});var r=!0===e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(t)+"?forwardToReplicas="+r,hostType:"write",callback:n})},l.prototype.clearRules=function(t,e){"function"==typeof t?(e=t,t={}):void 0===t&&(t={});var n=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/clear?forwardToReplicas="+n,hostType:"write",callback:e})},l.prototype.batchRules=function(t,e,n){"function"==typeof e?(n=e,e={}):void 0===e&&(e={});var r=!0===e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/batch?forwardToReplicas="+r+"&clearExistingRules="+(!0===e.clearExistingRules?"true":"false"),hostType:"write",body:t,callback:n})},l.prototype.exists=function(t){var e=this.getSettings().then((function(){return!0})).catch((function(t){if(t instanceof u.AlgoliaSearchError&&404===t.statusCode)return!1;throw t}));if("function"!=typeof t)return e;e.then((function(e){t(null,e)}
1)).catch((function(e){t(e)}))},l.prototype.findObject=function(t,e,n){var r=void 0===(e=void 0===e?{}:e).paginate||e.paginate,i=void 0!==e.query?e.query:"",o=this,s=0,a=function(){return e.page=s,o.search(i,e).then((function(e){for(var n=e.hits,i=0;i<n.length;i++){var o=n[i];if(t(o))return{object:o,position:i,page:s}}if(s+=1,!r||s>=e.nbPages)throw new u.ObjectNotFound("Object not found");return a()}))},c=a(s);if(void 0===n)return c;c.then((function(t){n(null,t)})).catch((function(t){n(t)}))},l.prototype.getObjectPosition=function(t,e){for(var n=t.hits,r=0;r<n.length;r++)if(n[r].objectID===e)return r;return-1},l.prototype.setSettings=function(t,e,n){1!==arguments.length&&"function"!=typeof e||(n=e,e={}),void 0!==e.forwardToSlaves&&c();var r=e.forwardToSlaves||e.forwardToReplicas?"true":"false",i=this;return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/settings?forwardToReplicas="+r,hostType:"write",body:t,callback:n})},l.prototype.listUserKeys=o((function(t){return this.listApiKeys(t)}),s("index.listUserKeys()","client.listApiKeys()")),l.prototype.listApiKeys=o((function(t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",hostType:"read",callback:t})}),s("index.listApiKeys()","client.listApiKeys()")),l.prototype.getUserKeyACL=o((function(t,e){return this.getApiKey(t,e)}),s("index.getUserKeyACL()","client.getApiKey()")),l.prototype.getApiKey=o((function(t,e){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+t,hostType:"read",callback:e})}),s("index.getApiKey()","client.getApiKey()")),l.prototype.deleteUserKey=o((function(t,e){return this.deleteApiKey(t,e)}),s("index.deleteUserKey()","client.deleteApiKey()")),l.prototype.deleteApiKey=o((function(t,e){return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+t,hostType:"write",callback:e})}),s("index.deleteApiKey()","client.deleteApiKey()")),l.prototype.addUserKey=o((function(t,e,n){return this.addApiKey(t,e,n)}),s("index.addUserKey()","client.addApiKey()")),l.prototype.addApiKey=o((function(t,e,r){var i=n("bTTx"),o="Usage: index.addApiKey(arrayOfAcls[, params, callback])";if(!i(t))throw new Error(o);1!==arguments.length&&"function"!=typeof e||(r=e,e=null);var s={acl:t};return e&&(s.validity=e.validity,s.maxQueriesPerIPPerHour=e.maxQueriesPerIPPerHour,s.maxHitsPerQuery=e.maxHitsPerQuery,s.description=e.description,e.queryParameters&&(s.queryParameters=this.as._getSearchParams(e.queryParameters,"")),s.referers=e.referers),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",body:s,hostType:"write",callback:r})}),s("index.addApiKey()","client.addApiKey()")),l.prototype.addUserKeyWithValidity=o((function(t,e,n){return this.addApiKey(t,e,n)}),s("index.addUserKeyWithValidity()","client.addApiKey()")),l.prototype.updateUserKey=o((function(t,e,n,r){return this.updateApiKey(t,e,n,r)}),s("index.updateUserKey()","client.updateApiKey()")),l.prototype.updateApiKey=o((function(t,e,r,i){var o=n("bTTx"),s="Usage: index.updateApiKey(key, arrayOfAcls[, params, callback])";if(!o(e))throw new Error(s);2!==arguments.length&&"function"!=typeof r||(i=r,r=null);var a={acl:e};return r&&(a.validity=r.validity,a.maxQueriesPerIPPerHour=r.maxQueriesPerIPPerHour,a.maxHitsPerQuery=r.maxHitsPerQuery,a.description=r.description,r.queryParameters&&(a.queryParameters=this.as._getSearchParams(r.queryParameters,"")),a.referers=r.referers),this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+t,body:a,hostType:"write",callback:i})}),s("index.updateApiKey()","client.updateApiKey()"))},eIep:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("lJxs"),i=n("Cfvw"),o=n("zx2A");function s(t,e){return"function"==typeof e?n=>n.pipe(s((n,o)=>Object(i.a)(t(n,o)).pipe(Object(r.a)((t,r)=>e(n,t,o,r))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new u(t,this.project))}}class u extends o.b{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)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new o.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(o.c)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},eUgh:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},ebwN:function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"Map");t.exports=r},ef3p:function(t,e,n){var r,i=n("8KqL")("algoliasearch:src/hostIndexState.js"),o="algoliasearch-client-js",s={state:{},set:function(t,e){return this.state[t]=e,this.state[t]},get:function(t){return this.state[t]||null}},a={set:function(t,e){s.set(t,e);try{var n=JSON.parse(global.localStorage[o]);return n[t]=e,global.localStorage[o]=JSON.stringify(n),n[t]}catch(r){return u(t,r)}},get:function(t){try{return JSON.parse(global.localStorage[o])[t]||null}catch(e){return u(t,e)}}};function u(t,e){return i("localStorage failed with",e),function(){try{global.localStorage.removeItem(o)}catch(t){}}(),(r=s).get(t)}function c(t,e){return 1===arguments.length?r.get(t):r.set(t,e)}function l(){try{return"localStorage"in global&&null!==global.localStorage&&(global.localStorage[o]||global.localStorage.setItem(o,JSON.stringify({})),!0)}catch(t){return!1}}r=l()?a:s,t.exports={get:c,set:c,supportsLocalStorage:l}},ekgI:function(t,e,n){var r=n("YESw"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},fGT3:function(t,e,n){var r=n("4kuk"),i=n("Xi7e"),o=n("ebwN");t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},"fR/l":function(t,e,n){var r=n("CH3K"),i=n("Z0cm");t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},fXoL:function(t,e,n){"use strict";n.d(e,"a",(function(){return js})),n.d(e,"b",(function(){return kf})),n.d(e,"c",(function(){return xf})),n.d(e,"d",(function(){return Of})),n.d(e,"e",(function(){return Sf})),n.d(e,"f",(function(){return _d})),n.d(e,"g",(function(){return ld})),n.d(e,"h",(function(){return Go})),n.d(e,"i",(function(){return Bf})),n.d(e,"j",(function(){return Al})),n.d(e,"k",(function(){return Rf})),n.d(e,"l",(function(){return _f})),n.d(e,"m",(function(){return kl})),n.d(e,"n",(function(){return rr})),n.d(e,"o",(function(){return Lh})),n.d(e,"p",(function(){return rt})),n.d(e,"q",(function(){return g})),n.d(e,"r",(function(){return hs}
1)),n.d(e,"s",(function(){return nt})),n.d(e,"t",(function(){return Ts})),n.d(e,"u",(function(){return wf})),n.d(e,"v",(function(){return Kl})),n.d(e,"w",(function(){return Xl})),n.d(e,"x",(function(){return Df})),n.d(e,"y",(function(){return wt})),n.d(e,"z",(function(){return fd})),n.d(e,"A",(function(){return _t})),n.d(e,"B",(function(){return od})),n.d(e,"C",(function(){return zf})),n.d(e,"D",(function(){return y})),n.d(e,"E",(function(){return Af})),n.d(e,"F",(function(){return jf})),n.d(e,"G",(function(){return Pl})),n.d(e,"H",(function(){return Dl})),n.d(e,"I",(function(){return Rl})),n.d(e,"J",(function(){return Nl})),n.d(e,"K",(function(){return Wr})),n.d(e,"L",(function(){return b})),n.d(e,"M",(function(){return md})),n.d(e,"N",(function(){return th})),n.d(e,"O",(function(){return Jf})),n.d(e,"P",(function(){return $o})),n.d(e,"Q",(function(){return Ml})),n.d(e,"R",(function(){return Ll})),n.d(e,"S",(function(){return nh})),n.d(e,"T",(function(){return It})),n.d(e,"U",(function(){return sd})),n.d(e,"V",(function(){return C})),n.d(e,"W",(function(){return wr})),n.d(e,"X",(function(){return V})),n.d(e,"Y",(function(){return mt})),n.d(e,"Z",(function(){return _r})),n.d(e,"ab",(function(){return vd})),n.d(e,"bb",(function(){return ed})),n.d(e,"cb",(function(){return If})),n.d(e,"db",(function(){return ds})),n.d(e,"eb",(function(){return Ec})),n.d(e,"fb",(function(){return Qr})),n.d(e,"gb",(function(){return Tr})),n.d(e,"hb",(function(){return hr})),n.d(e,"ib",(function(){return dr})),n.d(e,"jb",(function(){return yr})),n.d(e,"kb",(function(){return mr})),n.d(e,"lb",(function(){return pr})),n.d(e,"mb",(function(){return gr})),n.d(e,"nb",(function(){return vc})),n.d(e,"ob",(function(){return yd})),n.d(e,"pb",(function(){return bc})),n.d(e,"qb",(function(){return _c})),n.d(e,"rb",(function(){return fr})),n.d(e,"sb",(function(){return G})),n.d(e,"tb",(function(){return Hs})),n.d(e,"ub",(function(){return Ia})),n.d(e,"vb",(function(){return ka})),n.d(e,"wb",(function(){return yc})),n.d(e,"xb",(function(){return we})),n.d(e,"yb",(function(){return N})),n.d(e,"zb",(function(){return lr})),n.d(e,"Ab",(function(){return Ds})),n.d(e,"Bb",(function(){return de})),n.d(e,"Cb",(function(){return Cl})),n.d(e,"Db",(function(){return bi})),n.d(e,"Eb",(function(){return Ys})),n.d(e,"Fb",(function(){return mu})),n.d(e,"Gb",(function(){return Vu})),n.d(e,"Hb",(function(){return qu})),n.d(e,"Ib",(function(){return fu})),n.d(e,"Jb",(function(){return Jh})),n.d(e,"Kb",(function(){return Ft})),n.d(e,"Lb",(function(){return Ht})),n.d(e,"Mb",(function(){return x})),n.d(e,"Nb",(function(){return T})),n.d(e,"Ob",(function(){return Ut})),n.d(e,"Pb",(function(){return zt})),n.d(e,"Qb",(function(){return va})),n.d(e,"Rb",(function(){return xa})),n.d(e,"Sb",(function(){return ja})),n.d(e,"Tb",(function(){return Ta})),n.d(e,"Ub",(function(){return Ca})),n.d(e,"Vb",(function(){return Sa})),n.d(e,"Wb",(function(){return Oa})),n.d(e,"Xb",(function(){return Aa})),n.d(e,"Yb",(function(){return Zn})),n.d(e,"Zb",(function(){return fc})),n.d(e,"ac",(function(){return pl})),n.d(e,"bc",(function(){return yl})),n.d(e,"cc",(function(){return ml})),n.d(e,"dc",(function(){return gl})),n.d(e,"ec",(function(){return dt})),n.d(e,"fc",(function(){return ba})),n.d(e,"gc",(function(){return af})),n.d(e,"hc",(function(){return _a})),n.d(e,"ic",(function(){return Da})),n.d(e,"jc",(function(){return ef})),n.d(e,"kc",(function(){return bn})),n.d(e,"lc",(function(){return yn})),n.d(e,"mc",(function(){return La})),n.d(e,"nc",(function(){return Ah})),n.d(e,"oc",(function(){return kh})),n.d(e,"pc",(function(){return Ih})),n.d(e,"qc",(function(){return Rh}
1)),n.d(e,"rc",(function(){return qa})),n.d(e,"sc",(function(){return Va})),n.d(e,"tc",(function(){return wa})),n.d(e,"uc",(function(){return Ha})),n.d(e,"vc",(function(){return za})),n.d(e,"wc",(function(){return dh})),n.d(e,"xc",(function(){return ph})),n.d(e,"yc",(function(){return mh})),n.d(e,"zc",(function(){return gh})),n.d(e,"Ac",(function(){return yh})),n.d(e,"Bc",(function(){return vh})),n.d(e,"Cc",(function(){return bh})),n.d(e,"Dc",(function(){return _h})),n.d(e,"Ec",(function(){return $h})),n.d(e,"Fc",(function(){return ya})),n.d(e,"Gc",(function(){return ue})),n.d(e,"Hc",(function(){return He})),n.d(e,"Ic",(function(){return $r})),n.d(e,"Jc",(function(){return Yr})),n.d(e,"Kc",(function(){return Xr})),n.d(e,"Lc",(function(){return Nt})),n.d(e,"Mc",(function(){return Bt})),n.d(e,"Nc",(function(){return Zh})),n.d(e,"Oc",(function(){return Kh})),n.d(e,"Pc",(function(){return hu})),n.d(e,"Qc",(function(){return ga})),n.d(e,"Rc",(function(){return sf})),n.d(e,"Sc",(function(){return ju})),n.d(e,"Tc",(function(){return Au})),n.d(e,"Uc",(function(){return ku})),n.d(e,"Vc",(function(){return Iu})),n.d(e,"Wc",(function(){return Du})),n.d(e,"Xc",(function(){return Ru})),n.d(e,"Yc",(function(){return Xh}));var r=n("XNiG"),i=n("quSY"),o=n("HDdC"),s=n("VRyK"),a=n("w1tV");function u(t){return{toString:t}.toString()}const c="__annotations__",l="__parameters__",h="__prop__metadata__";function f(t,e,n,r,i){return u(()=>{const o=d(e);function s(...t){if(this instanceof s)return o.call(this,...t),this;const e=new s(...t);return function(n){return i&&i(n,...t),(n.hasOwnProperty(c)?n[c]:Object.defineProperty(n,c,{value:[]})[c]).push(e),r&&r(n),n}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}function d(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}function p(t,e,n){return u(()=>{const r=d(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(l)?t[l]:Object.defineProperty(t,l,{value:[]})[l];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})}function m(t,e,n,r){return u(()=>{const i=d(e);function o(...t){if(this instanceof o)return i.apply(this,t),this;const e=new o(...t);return function(n,i){const o=n.constructor,s=o.hasOwnProperty(h)?o[h]:Object.defineProperty(o,h,{value:{}})[h];s[i]=s.hasOwnProperty(i)&&s[i]||[],s[i].unshift(e),r&&r(n,i,...t)}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const g=p("Inject",t=>({token:t})),y=p("Optional"),v=p("Self"),b=p("SkipSelf"),_=p("Host"),w=p("Attribute",t=>({attributeName:t}));var E=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 O(t){for(let e in t)if(t[e]===O)return e;throw Error("Could not find renamed property on target object.")}function S(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function x(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const C=x;function T(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function j(t){return A(t,t[I])||A(t,t[P])}function A(t,e){return e&&e.token===t?e:null}function k(t){return t&&(t.hasOwnProperty(D)||t.hasOwnProperty(F))?t[D]:null}const I=O({"\u0275prov":O}),D=O({"\u0275inj":O}),R=O({"\u0275provFallback":O}),P=O({ngInjectableDef:O}),F=O({ngInjectorDef:O});function N(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(N).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 L(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const M=O({__forward_ref__:O});function V(t){return t.__forward_ref__=V,t.toString=function(){return N(this())},t}function U(t){return B(t)?t():t}function B(t){return"function"==typeof t&&t.hasOwnProperty(M)&&t.__forward_ref__===V}const q="undefined"!=typeof globalThis&&globalThis,H="undefined"!=typeof window&&window,z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Q="undefined"!=typeof global&&global,G=q||Q||H||z;var W=function(t){return t[t.Token=0]="Token",t[t.Attribute=1]="Attribute",t[t.ChangeDetectorRef=2]="ChangeDetectorRef",t[t.Invalid=3]="Invalid",t}({});function $(){const t=G.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}const K=O({"\u0275cmp":O}),X=O({"\u0275dir":O}),Y=O({"\u0275pipe":O}),J=O({"\u0275mod":O}),Z=O({"\u0275loc":O}),tt=O({"\u0275fac":O}),et=O({__NG_ELEMENT_ID__:O});
1class nt{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=x({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const rt=new nt("INJECTOR",-1),it={},ot=/\n/gm,st="__source",at=O({provide:String,useValue:O});let ut,ct=void 0;function lt(t){const e=ct;return ct=t,e}function ht(t){const e=ut;return ut=t,e}function ft(t,e=E.Default){if(void 0===ct)throw new Error("inject() must be called from an injection context");return null===ct?gt(t,void 0,e):ct.get(t,e&E.Optional?null:void 0,e)}function dt(t,e=E.Default){return(ut||ft)(U(t),e)}function pt(t){throw new Error("invalid")}const mt=dt;function gt(t,e,n){const r=j(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&E.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${N(t)}]`)}function yt(t){const e=[];for(let n=0;n<t.length;n++){const r=U(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=E.Default;for(let e=0;e<r.length;e++){const i=r[e];i instanceof y||"Optional"===i.ngMetadataName||i===y?n|=E.Optional:i instanceof b||"SkipSelf"===i.ngMetadataName||i===b?n|=E.SkipSelf:i instanceof v||"Self"===i.ngMetadataName||i===v?n|=E.Self:t=i instanceof g||i===g?i.token:i}e.push(dt(t,n))}else e.push(dt(r))}return e}class vt{get(t,e=it){if(e===it){const e=new Error(`NullInjectorError: No provider for ${N(t)}!`);throw e.name="NullInjectorError",e}return e}}const bt={"\u0275\u0275defineInjectable":x,"\u0275\u0275defineInjector":T,"\u0275\u0275inject":dt,"\u0275\u0275getFactoryOf":function t(e){const n=e;if(B(e))return()=>{const e=t(U(n));return e?e():null};const r=j(n)||k(n);return r&&void 0!==r.factory?r.factory:null},"\u0275\u0275invalidFactoryDep":pt};class _t{}class wt{}function Et(t,e){for(let n=0;n<t.length;n++)e.push(t[n])}function Ot(t,e){t.forEach(t=>Array.isArray(t)?Ot(t,e):e(t))}function St(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function xt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Ct(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}function Tt(t,e,n){let r=At(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;else{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 jt(t,e){const n=At(t,e);if(n>=0)return t[1|n]}function At(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)}var kt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),It=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Dt={},Rt=[];let Pt=0;function Ft(t){return u(()=>{const e={},n={type:t.type,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:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===kt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Rt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||It.Emulated,id:"c",styles:t.styles||Rt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,o=t.pipes;return n.id+=Pt++,n.inputs=qt(t.inputs,e),n.outputs=qt(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(Lt):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(Mt):null,n})}function Nt(t,e,n){const r=t.\u0275cmp;r.directiveDefs=()=>e.map(Lt),r.pipeDefs=()=>n.map(Mt)}function Lt(t){return Qt(t)||Gt(t)}function Mt(t){return function(t){return t[Y]||null}(t)}const Vt={};function Ut(t){const e={type:t.type,bootstrap:t.bootstrap||Rt,declarations:t.declarations||Rt,imports:t.imports||Rt,exports:t.exports||Rt,transitiveCompileScopes:null,
1schemas:t.schemas||null,id:t.id||null};return null!=t.id&&u(()=>{Vt[t.id]=t.type}),e}function Bt(t,e){return u(()=>{const n=$t(t,!0);n.declarations=e.declarations||Rt,n.imports=e.imports||Rt,n.exports=e.exports||Rt})}function qt(t,e){if(null==t)return Dt;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 Ht=Ft;function zt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Qt(t){return t[K]||null}function Gt(t){return t[X]||null}function Wt(t,e){return t.hasOwnProperty(tt)?t[tt]:null}function $t(t,e){const n=t[J]||null;if(!n&&!0===e)throw new Error(`Type ${N(t)} does not have '\u0275mod' property.`);return n}const Kt=20,Xt=10;function Yt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Jt(t){return Array.isArray(t)&&!0===t[1]}function Zt(t){return 0!=(8&t.flags)}function te(t){return 2==(2&t.flags)}function ee(t){return 1==(1&t.flags)}function ne(t){return null!==t.template}function re(t){return 0!=(512&t[2])}function ie(t){return"string"==typeof t?t:null==t?"":""+t}function oe(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ie(t)}const se=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(G))();function ae(t){return{name:"window",target:t.ownerDocument.defaultView}}function ue(t){return{name:"document",target:t.ownerDocument}}function ce(t){return{name:"body",target:t.ownerDocument.body}}function le(t){return t instanceof Function?t():t}function he(t,e){const n=e?" in "+e:"";throw new Error(`No provider for ${oe(t)} found${n}`)}class fe{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function de(){return pe}function pe(t){return t.type.prototype.ngOnChanges&&(t.setInput=ge),me}function me(){const t=ye(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Dt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function ge(t,e,n,r){const i=ye(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Dt,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new fe(u&&u.currentValue,e,s===Dt),t[r]=e}function ye(t){return t.__ngSimpleChanges__||null}de.ngInherit=!0;const ve="http://www.w3.org/2000/svg",be="http://www.w3.org/1998/MathML/";let _e=void 0;function we(t){_e=t}function Ee(){return void 0!==_e?_e:"undefined"!=typeof document?document:void 0}function Oe(t){return!!t.listen}const Se={createRenderer:(t,e)=>Ee()};function xe(t){for(;Array.isArray(t);)t=t[0];return t}function Ce(t,e){return xe(e[t+Kt])}function Te(t,e){return xe(e[t.index])}function je(t,e){return t.data[e+Kt]}function Ae(t,e){return t[e+Kt]}function ke(t,e){const n=e[t];return Yt(n)?n:n[0]}function Ie(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function De(t){return 4==(4&t[2])}function Re(t){return 128==(128&t[2])}function Pe(t,e){return null===t||null==e?null:t[e]}function Fe(t){t[18]=0}function Ne(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Le={lFrame:ln(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Me(){return Le.bindingsEnabled}function Ve(){Le.bindingsEnabled=!0}function Ue(){Le.bindingsEnabled=!1}function Be(){return Le.lFrame.lView}function qe(){return Le.lFrame.tView}function He(t){Le.lFrame.contextLView=t}function ze(){return Le.lFrame.currentTNode}function Qe(t,e){Le.lFrame.currentTNode=t,Le.lFrame.isParent=e}function Ge(){return Le.lFrame.isParent}function We(){Le.lFrame.isParent=!1}function $e(){return Le.isInCheckNoChangesMode}function Ke(t){Le.isInCheckNoChangesMode=t}function Xe(){const t=Le.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ye(){return Le.lFrame.bindingIndex}function Je(t){return Le.lFrame.bindingIndex=t}function Ze(){return Le.lFrame.bindingIndex++}function tn(t){const e=Le.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function en(t,e){const n=Le.lFrame;n.bindingIndex=n.bindingRootIndex=t,nn(e)}function nn(t){Le.lFrame.currentDirectiveIndex=t}function rn(t){const e=Le.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function on(){return Le.lFrame.currentQueryIndex}function sn(t){Le.lFrame.currentQueryIndex=t}function an(t,e){const n=cn();Le.lFrame=n,n.currentTNode=e,n.lView=t}function un(t){const e=cn(),n=t[1];Le.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex}function cn(){const t=Le.lFrame,e=null===t?null:t.child;return null===e?ln(t):e}function ln(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,
1selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function hn(){const t=Le.lFrame;return Le.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const fn=hn;function dn(){const t=hn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function pn(){return Le.lFrame.selectedIndex}function mn(t){Le.lFrame.selectedIndex=t}function gn(){const t=Le.lFrame;return je(t.tView,t.selectedIndex)}function yn(){Le.lFrame.currentNamespace=ve}function vn(){Le.lFrame.currentNamespace=be}function bn(){Le.lFrame.currentNamespace=null}function _n(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:i,ngAfterViewInit:o,ngAfterViewChecked:s,ngOnDestroy:a}=e;r&&(t.contentHooks||(t.contentHooks=[])).push(-n,r),i&&((t.contentHooks||(t.contentHooks=[])).push(n,i),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i)),o&&(t.viewHooks||(t.viewHooks=[])).push(-n,o),s&&((t.viewHooks||(t.viewHooks=[])).push(n,s),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,s)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function wn(t,e,n){Sn(t,e,3,n)}function En(t,e,n,r){(3&t[2])===n&&Sn(t,e,n,r)}function On(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Sn(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)&&(xn(t,n,e,s),t[18]=(4294901760&t[18])+s+2),s++}function xn(t,e,n,r){const i=n[r]<0,o=n[r+1],s=t[i?-n[r]:n[r]];i?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,o.call(s)):o.call(s)}const Cn=-1;class Tn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function jn(t,e,n){const r=Oe(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];kn(s)?r&&t.setProperty(e,s,a):r?t.setAttribute(e,s,a):e.setAttribute(s,a),i++}}return i}function An(t){return 3===t||4===t||6===t}function kn(t){return 64===t.charCodeAt(0)}function In(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||Dn(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function Dn(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 Rn(t){return t!==Cn}function Pn(t){return 32767&t}function Fn(t,e){let n=t>>16,r=e;for(;n>0;)r=r[15],n--;return r}let Nn=!0;function Ln(t){const e=Nn;return Nn=t,e}let Mn=0;function Vn(t,e){const n=Bn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Un(r.data,t),Un(e,null),Un(r.blueprint,null));const i=qn(t,e),o=t.injectorIndex;if(Rn(i)){const t=Pn(i),n=Fn(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 Un(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Bn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function qn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){const t=i[1],e=t.type;if(r=2===e?t.declTNode:1===e?i[6]:null,null===r)return Cn;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Cn}function Hn(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(et)&&(r=n[et]),null==r&&(r=n[et]=Mn++);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 zn(t,e,n,r=E.Default,i){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(et)?t[et]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof i){an(e,t);try{const t=i();if(null!=t||r&E.Optional)return t;he(n)}finally{fn()}}else if("number"==typeof i){if(-1===i)return new Yn(t,e);let o=null,s=Bn(t,e),a=Cn,u=r&E.Host?e[16][6]:null;for((-1===s||r&E.SkipSelf)&&(a=-1===s?qn(t,e):e[s+8],a!==Cn&&Xn(r,!1)?(o=e[1],s=Pn(a),e=Fn(a,e)):s=-1);-1!==s;){const t=e[1];if(Kn(i,s,t.data)){const t=Gn(s,e,n,o,r,u);if(t!==Qn)return t}a=e[s+8],a!==Cn&&Xn(r,e[1].data[s+8]===u)&&Kn(i,s,e)?(o=t,s=Pn(a),e=Fn(a,e)):s=-1}}}if(r&E.Optional&&void 0===i&&(i=null),0==(r&(E.Self|E.Host))){const t=e[9],o=ht(void 0);try{return t?t.get(n,i,r&E.Optional):gt(n,i,r&E.Optional)}finally{ht(o)}}if(r&E.Optional)return i;he(n,"NodeInjector")}const Qn={};function Gn(t,e,n,r,i,o){const s=e[1],a=s.data[t+8],u=Wn(a,s,n,null==r?te(a)&&Nn:r!=s&&2===a.type,i&E.Host&&o===a);return null!==u?$n(e,s,u,a):Qn}function Wn(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=1048575&o,u=t.directiveStart,c=o>>20,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&&ne(t)&&t.type===n)return u}return null}function $n(t,e,n,r){let i=t[n];const o=e.data;if(i instanceof Tn){const s=i;s.resolving&&function(t,e){throw new Error("Circular dependency in DI detected for "+t)}(oe(o[n]));const a=Ln(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?ht(s.injectImpl):null;an(t,r);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const r=pe(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==u&&ht(u),Ln(a),s.resolving=!1,fn()}}return i}function Kn(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 Xn(t,e){return!(t&E.Self||t&E.Host&&e)}class Yn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return zn(this._tNode,this._lView,t,void 0,e)}}function Jn(t){const e=t;if(B(t))return()=>{const t=Jn(U(e));return t?t():null};let n=Wt(e);if(null===n){const t=k(e);n=t&&t.factory}return n||null}function Zn(t){return u(()=>{const e=t.prototype.constructor,n=e[tt]||Jn(e),r=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){const t=i[tt]||Jn(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function tr(t){return t.ngDebugContext}function er(t){return t.ngOriginalError}function nr(t,...e){t.error(...e)}class rr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||nr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?tr(t)?tr(t):this._findContext(er(t)):null}_findOriginalError(t){let e=er(t);for(;e&&er(e);)e=er(e);return e}}class ir{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class or extends ir{getTypeName(){return"HTML"}}class sr extends ir{getTypeName(){return"Style"}}
1class ar extends ir{getTypeName(){return"Script"}}class ur extends ir{getTypeName(){return"URL"}}class cr extends ir{getTypeName(){return"ResourceURL"}}function lr(t){return t instanceof ir?t.changingThisBreaksApplicationSecurity:t}function hr(t,e){const n=fr(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 fr(t){return t instanceof ir&&t.getTypeName()||null}function dr(t){return new or(t)}function pr(t){return new sr(t)}function mr(t){return new ar(t)}function gr(t){return new ur(t)}function yr(t){return new cr(t)}let vr=!0,br=!1;function _r(){return br=!0,vr}function wr(){if(br)throw new Error("Cannot enable prod mode after platform setup.");vr=!1}function Er(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Or:new Sr(t)}class Or{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Sr{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const n=e.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const xr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Cr=/^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 Tr(t){return(t=String(t)).match(xr)||t.match(Cr)?t:(_r()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function jr(t){return(t=String(t)).split(",").map(t=>Tr(t.trim())).join(", ")}function Ar(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function kr(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Ir=Ar("area,br,col,hr,img,wbr"),Dr=Ar("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Rr=Ar("rp,rt"),Pr=kr(Rr,Dr),Fr=kr(Ir,kr(Dr,Ar("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")),kr(Rr,Ar("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")),Pr),Nr=Ar("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Lr=Ar("srcset"),Mr=kr(Nr,Lr,Ar("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"),Ar("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")),Vr=Ar("script,style,template");
1class Ur{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Fr.hasOwnProperty(e))return this.sanitizedSomething=!0,!Vr.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(!Mr.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=t.value;Nr[i]&&(o=Tr(o)),Lr[i]&&(o=jr(o)),this.buf.push(" ",e,'="',Hr(o),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Fr.hasOwnProperty(e)&&!Ir.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Hr(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 Br=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qr=/([^\#-~ |!])/g;function Hr(t){return t.replace(/&/g,"&amp;").replace(Br,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(qr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let zr;function Qr(t,e){let n=null;try{zr=zr||Er(t);let r=e?String(e):"";n=zr.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=zr.getInertBodyElement(r)}while(r!==o);const s=new Ur,a=s.sanitizeChildren(Gr(n)||n);return _r()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Gr(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Gr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Wr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function $r(t){const e=ti();return e?e.sanitize(Wr.HTML,t)||"":hr(t,"HTML")?lr(t):Qr(Ee(),ie(t))}function Kr(t){const e=ti();return e?e.sanitize(Wr.STYLE,t)||"":hr(t,"Style")?lr(t):ie(t)}function Xr(t){const e=ti();return e?e.sanitize(Wr.URL,t)||"":hr(t,"URL")?lr(t):Tr(ie(t))}function Yr(t){const e=ti();if(e)return e.sanitize(Wr.RESOURCE_URL,t)||"";if(hr(t,"ResourceURL"))return lr(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Jr(t){const e=ti();if(e)return e.sanitize(Wr.SCRIPT,t)||"";if(hr(t,"Script"))return lr(t);throw new Error("unsafe value used in a script context")}function Zr(t,e,n){return function(t,e){return"src"===e&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===e&&("base"===t||"link"===t)?Yr:Xr}(e,n)(t)}function ti(){const t=Be();return t&&t[12]}function ei(t,e){t.__ngContext__=e}function ni(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}}const ri="ng-template";function ii(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];
vendor: 7,683 bytes, line 1
1if(n&&"class"===i){if(i=t[r],-1!==ni(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 oi(t){return 0===t.type&&t.tagName!==ri}function si(t,e,n){return e===(0!==t.type||n?t.tagName:ri)}function ai(t,e,n){let r=4;const i=t.attrs||[],o=function(t){for(let e=0;e<t.length;e++)if(An(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&&!si(t,u,n)||""===u&&1===e.length){if(ui(r))return!1;s=!0}}else{const c=8&r?u:e[++a];if(8&r&&null!==t.attrs){if(!ii(t.attrs,c,n)){if(ui(r))return!1;s=!0}continue}const l=ci(8&r?"class":u,i,oi(t),n);if(-1===l){if(ui(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!==ni(e,c,0)||2&r&&c!==t){if(ui(r))return!1;s=!0}}}}else{if(!s&&!ui(r)&&!ui(u))return!1;if(s&&ui(u))continue;s=!1,r=u|1&r}}return ui(r)||s}function ui(t){return 0==(1&t)}function ci(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;if(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;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function li(t,e,n=!1){for(let r=0;r<e.length;r++)if(ai(t,e[r],n))return!0;return!1}function hi(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 fi(t,e){return t?":not("+e.trim()+")":e}function di(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||ui(s)||(e+=fi(o,i),i=""),r=s,o=o||!ui(r);n++}return""!==i&&(e+=fi(o,i)),e}const pi={};function mi(t){const e=t[3];return Jt(e)?e[3]:e}function gi(t){return vi(t[13])}function yi(t){return vi(t[4])}function vi(t){for(;null!==t&&!Jt(t);)t=t[4];return t}function bi(t){_i(qe(),Be(),pn()+t,$e())}function _i(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&wn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&En(e,r,0,n)}mn(n)}function wi(t,e){return t<<17|e<<2}function Ei(t){return t>>17&32767}function Oi(t){return 2|t}function Si(t){return(131068&t)>>2}function xi(t,e){return-131069&t|e<<2}function Ci(t){return 1|t}function Ti(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];sn(i),n.contentQueries(2,e[o],o)}}}function ji(t,e,n){return Oe(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ai(t,e,n,r,i,o,s,a,u,c){const l=e.blueprint.slice();return l[0]=i,l[2]=140|r,Fe(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 ki(t,e,n,r,i){const o=e+Kt,s=t.data[o]||function(t,e,n,r,i){const o=ze(),s=Ge(),a=t.data[e]=function(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,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,n,e,r,i);return null===t.firstChild&&(t.firstChild=a),null!==o&&(s&&null==o.child&&null!==a.parent?o.child=a:s||(o.next=a)),a}(t,o,n,r,i);return Qe(s,!0),s}function Ii(t,e,n){un(e);try{const r=t.viewQuery;null!==r&&co(1,r,n);const i=t.template;null!==i&&Pi(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Ti(t,e),t.staticViewQueries&&co(2,t.viewQuery,n);const o=t.components;null!==o&&function(t,e){for(let n=0;n<e.length;n++)io(t,e[n])}(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),r}finally{e[2]&=-5,dn()}}function Di(t,e,n,r){const i=e[2];if(256==(256&i))return;un(e);const o=$e();try{Fe(e),Je(t.bindingStartIndex),null!==n&&Pi(t,e,n,2,r);const s=3==(3&i);if(!o)if(s){const n=t.preOrderCheckHooks;null!==n&&wn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&En(e,n,0,null),On(e,0)}if(function(t){for(let e=gi(t);null!==e;e=yi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],r=n[3];0==(1024&n[2])&&Ne(r,1),n[2]|=1024}}}(e),function(t){for(let e=gi(t);null!==e;e=yi(e))for(let t=Xt;t<e.length;t++){const n=e[t],r=n[1];Re(n)&&Di(r,n,r.template,n[8])}}(e),null!==t.contentQueries&&Ti(t,e),!o)if(s){const n=t.contentCheckHooks;null!==n&&wn(e,n)}else{const n=t.contentHooks;null!==n&&En(e,n,1),On(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,mn(o),r+=9+n[++t],i=r):r+=s:(null!==s&&(en(r,i),s(2,e[i])),i++)}}}finally{mn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)ro(t,e[n])}(e,a);const u=t.viewQuery;if(null!==u&&co(2,u,r),!o)if(s){const n=t.viewCheckHooks;null!==n&&wn(e,n)}else{const n=t.viewHooks;null!==n&&En(e,n,2),On(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Ne(e[3],-1))}finally{dn()}}function Ri(t,e,n,r){const i=e[10],o=!$e(),s=De(e);try{o&&!s&&i.begin&&i.begin(),s&&Ii(t,e,r),Di(t,e,n,r)}finally{o&&!s&&i.end&&i.end()}}function Pi(t,e,n,r,i){const o=pn();try{mn(-1),2&r&&e.length>Kt&&_i(t,e,0,$e()),n(r,i)}finally{mn(o)}}function Fi(t,e,n){if(Zt(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 Ni(t,e,n){Me()&&(function(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Vn(n,e),ei(r,e);const s=n.initialInputs;for(let a=i;a<o;a++){const r=t.data[a],o=ne(r);o&&Ji(e,n,r);const u=$n(e,t,a,n);ei(u,e),null!==s&&to(0,a-i,u,r,0,s),o&&(ke(n.index,e)[8]=u)}}(t,e,n,Te(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-Kt,u=Le.lFrame.currentDirectiveIndex;try{mn(a);for(let n=r;n<i;n++){const r=t.data[n],i=e[n];nn(n),null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?Gi(r,i):s&&o.push(null)}}finally{mn(-1),nn(u)}}(t,e,n))}function Li(t,e,n=Te){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}}}function Mi(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Vi(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Vi(t,e,n,r,i,o,s,a,u,c){const l=Kt+r,h=l+i,f=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:pi);return n}(l,h),d="function"==typeof c?c():c;return f[1]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.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:d,incompleteFirstPass:!1}
1}function Ui(t,e,n,r){const i=ho(e);i.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(r,i.length-1)}function Bi(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 qi(t,e,n,r,i,o,s,a){const u=Te(e,n);let c,l=e.inputs;!a&&null!=l&&(c=l[r])?(mo(t,n,c,r,i),te(e)&&function(t,e){const n=ke(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):2===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,Oe(o)?o.setProperty(u,r,i):kn(r)||(u.setProperty?u.setProperty(r,i):u[r]=i))}function Hi(t,e,n,r){let i=!1;if(Me()){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];li(n,s.selectors,!1)&&(i||(i=[]),Hn(Vn(n,e),t,s.type),ne(s)?($i(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,Xi(n,t.data.length,o.length);for(let t=0;t<o.length;t++){const e=o[t];e.providersResolver&&e.providersResolver(e)}Wi(t,n,o.length);let a=!1,u=!1;for(let i=0;i<o.length;i++){const c=o[i];n.mergedAttrs=In(n.mergedAttrs,c.hostAttrs),Yi(t,e,c),Ki(t.data.length-1,c,s),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const l=c.type.prototype;!a&&(l.ngOnChanges||l.ngOnInit||l.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-Kt),a=!0),u||!l.ngOnChanges&&!l.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-Kt),u=!0),zi(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],n=t.inputs,c=null===i||oi(e)?null:eo(n,i);o.push(c),s=Bi(n,u,s),a=Bi(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),Qi(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=In(n.mergedAttrs,n.attrs),i}function zi(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Qi(t,e,n){for(let r=0;r<n;r++)e.push(pi),t.blueprint.push(pi),t.data.push(null)}function Gi(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Wi(t,e,n){const r=Kt-e.index,i=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,i,n)}function $i(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ki(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;ne(e)&&(n[""]=t)}}function Xi(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Yi(t,e,n){t.data.push(n);const r=n.factory||(n.factory=Wt(n.type)),i=new Tn(r,ne(n),null);t.blueprint.push(i),e.push(i)}function Ji(t,e,n){const r=Te(e,t),i=Mi(n),o=t[10],s=oo(t,Ai(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n),null,null));t[e.index]=s}function Zi(t,e,n,r,i,o){const s=Te(t,e),a=e[11];if(null==r)Oe(a)?a.removeAttribute(s,n,o):s.removeAttribute(n);else{const e=null==i?ie(r):i(r,t.tagName||"",n);Oe(a)?a.setAttribute(s,n,e,o):o?s.setAttributeNS(o,n,e):s.setAttribute(n,e)}}function to(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 eo(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 no(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function ro(t,e){const n=ke(e,t);if(Re(n)){const t=n[1];80&n[2]?Di(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let r=gi(e);null!==r;r=yi(r))for(let e=Xt;e<r.length;e++){const n=r[e];if(1024&n[2]){const t=n[1];Di(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=ke(n[r],e);Re(i)&&i[5]>0&&t(i)}}(n)}}function io(t,e){const n=ke(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),Ii(r,n,n[8])}function oo(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function so(t){for(;t;){t[2]|=64;const e=mi(t);if(re(t)&&!e)return t;t=e}return null}function ao(t,e,n){const r=e[10];r.begin&&r.begin();try{Di(t,e,t.template,n)}catch(i){throw po(e,i),i}finally{r.end&&r.end()}}function uo(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Ie(n),i=r[1];Ri(i,r,i.template,n)}}(t[8])}function co(t,e,n){sn(0),e(t,n)}const lo=(()=>Promise.resolve(null))();function ho(t){return t[7]||(t[7]=[])}function fo(t,e,n){return(null===t||ne(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function po(t,e){const n=t[9],r=n?n.get(rr,null):null;r&&r.handleError(e)}function mo(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 go(t,e,n){const r=Ce(e,t),i=t[11];Oe(i)?i.setValue(r,n):r.textContent=n}function yo(t,e,n,r,i){if(null!=r){let o,s=!1;Jt(r)?o=r:Yt(r)&&(s=!0,r=r[0]);const a=xe(r);0===t&&null!==n?null==i?xo(e,n,a):So(e,n,a,i||null):1===t&&null!==n?So(e,n,a,i||null):2===t?ko(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,r,i){const o=n[7];o!==xe(n)&&yo(e,t,r,o,i);for(let s=Xt;s<n.length;s++){const i=n[s];Do(i[1],i,t,e,r,o)}}(e,t,o,n,i)}}function vo(t,e){return Oe(e)?e.createText(t):e.createTextNode(t)}function bo(t,e){const n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,Ne(i,-1)),n.splice(r,1)}function _o(t,e){if(t.length<=Xt)return;const n=Xt+e,r=t[n];if(r){const o=r[17];null!==o&&o!==t&&bo(o,r),e>0&&(t[n-1][4]=r[4]);const s=xt(t,Xt+e);Do(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;const a=s[19];null!==a&&a.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}var i;return r}function wo(t,e){if(!(256&e[2])){const n=e[11];Oe(n)&&n.destroyNode&&Do(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Eo(t[1],t);for(;e;){let n=null;if(Yt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Yt(e)&&Eo(e[1],e),e=e[3];null===e&&(e=t),Yt(e)&&Eo(e[1],e),n=e&&e[4]}e=n}}(e)}}function Eo(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;
1r+=2){const t=e[n[r]];if(!(t instanceof Tn)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const i=n[r+1],o="function"==typeof i?i(e):xe(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),1===e[1].type&&Oe(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Jt(e[3])){n!==e[3]&&bo(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function Oo(t,e,n){let r=e.parent;for(;null!=r&&(3===r.type||4===r.type);)r=(e=r).parent;if(null===r)return n[0];if(e&&4===e.type&&4&e.flags)return Te(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==It.ShadowDom&&n!==It.Native)return null}return Te(r,n)}function So(t,e,n,r){Oe(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function xo(t,e,n){Oe(t)?t.appendChild(e,n):e.appendChild(n)}function Co(t,e,n,r){null!==r?So(t,e,n,r):xo(t,e,n)}function To(t,e){return Oe(t)?t.parentNode(e):e.parentNode}function jo(t,e){return 3===t.type||4===t.type?Te(t,e):null}function Ao(t,e,n,r){const i=Oo(t,r,e);if(null!=i){const t=e[11],o=jo(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Co(t,i,n[e],o);else Co(t,i,n,o)}}function ko(t,e,n){const r=To(t,e);r&&function(t,e,n,r){Oe(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}function Io(t,e,n,r,i,o,s){for(;null!=n;){const a=r[n.index],u=n.type;s&&0===e&&(a&&ei(xe(a),r),n.flags|=4),64!=(64&n.flags)&&(3===u||4===u?(Io(t,e,n.child,r,i,o,!1),yo(e,t,i,a,o)):1===u?Po(t,e,r,n,i,o):yo(e,t,i,a,o)),n=s?n.projectionNext:n.next}}function Do(t,e,n,r,i,o){Io(n,r,t.firstChild,e,i,o,!1)}function Ro(t,e,n){Po(e[11],0,e,n,Oo(t,n,e),jo(n.parent||e[6],e))}function Po(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++)yo(e,t,i,a[u],o);else Io(t,e,a,s[3],i,o,!0)}function Fo(t,e,n){Oe(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function No(t,e,n){Oe(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Lo{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView,e=t[1];return function t(e,n,r,i,o=!1){for(;null!==r;){const s=n[r.index];if(null!==s&&i.push(xe(s)),Jt(s))for(let e=Xt;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(3===a||4===a)t(e,n,r.child,i);else if(1===a){const e=n[16],o=e[6].projection[r.projection];if(Array.isArray(o))i.push(...o);else{const n=mi(e);t(n[1],n,o,i,!0)}}r=o?r.projectionNext:r.next}return i}(e,t,e.firstChild,[])}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}wo(this._lView[1],this._lView)}onDestroy(t){Ui(this._lView[1],this._lView,null,t)}markForCheck(){so(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ao(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Ke(!0);try{ao(t,e,n)}finally{Ke(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Do(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 Mo extends Lo{constructor(t){super(t),this._view=t}detectChanges(){uo(this._view)}checkNoChanges(){!function(t){Ke(!0);try{uo(t)}finally{Ke(!1)}}(this._view)}get context(){return null}}let Vo,Uo,Bo;function qo(t,e,n){return Vo||(Vo=class extends t{}),new Vo(Te(e,n))}function Ho(t,e,n,r){return Uo||(Uo=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=Ai(this._declarationView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Ii(e,n,t),new Lo(n)}}),0===n.type?new Uo(r,n,qo(e,n,r)):null}function zo(t,e,n,r){let i;Bo||(Bo=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}
1get element(){return qo(e,this._hostTNode,this._hostView)}get injector(){return new Yn(this._hostTNode,this._hostView)}get parentInjector(){const t=qn(this._hostTNode,this._hostView);if(Rn(t)){const e=Fn(t,this._hostView),n=Pn(t);return new Yn(e[1].data[n+8],e)}return new Yn(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-Xt}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(_t,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(),Jt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new Bo(e,e[6],e[3]);r.detach(r.indexOf(t))}}const i=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,r){const i=Xt+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-Xt?(e[4]=n[i],St(n,Xt+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[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(s,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(r,n,o,i);const s=function t(e,n){const r=Xt+e+1;if(r<n.length){const e=n[r],i=e[1].firstChild;if(null!==i)return function e(n,r){if(null!==r){const i=r.type;if(2===i)return Te(r,n);if(0===i)return t(-1,n[r.index]);if(3===i||4===i){const i=r.child;if(null!==i)return e(n,i);{const e=n[r.index];return Jt(e)?t(-1,e):xe(e)}}{const t=n[16],i=t[6],o=mi(t),s=i.projection[r.projection];return null!=s?e(o,s):e(n,r.next)}}return null}(e,i)}return n[7]}(i,o),a=n[11],u=To(a,o[7]);return null!==u&&function(t,e,n,r,i,o){r[0]=i,r[6]=e,Do(t,r,n,1,i,o)}(r,o[6],a,n,u,s),t.attachToViewContainerRef(this),St(o[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),n=_o(this._lContainer,e);n&&(xt(this._lContainer[8],e),wo(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=_o(this._lContainer,e);return n&&null!=xt(this._lContainer[8],e)?new Lo(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(Jt(o))i=o;else{let t;if(3===n.type)t=xe(o);else if(t=r[11].createComment(""),re(r)){const e=r[11],i=Te(n,r);So(e,To(e,i),t,function(t,e){return Oe(t)?t.nextSibling(e):e.nextSibling}(e,i))}else Ao(r[1],r,t,n);r[n.index]=i=no(o,r,t,n),oo(r,i)}return new Bo(i,n,r)}function Qo(t=!1){return function(t,e,n){if(!n&&te(t)){const n=ke(t.index,e);return new Lo(n,n)}return 2===t.type||0===t.type||3===t.type||4===t.type?new Lo(e[16],e):null}(ze(),Be(),t)}let Go=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Wo(),t})();const Wo=Qo,$o=Function;function Ko(t){return"function"==typeof t}const Xo=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|[^()]+\(arguments\))\)/,Yo=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Jo=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Zo=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class ts{constructor(t){this._reflect=t||G.Reflect}isReflectionEnabled(){return!0}factory(t){return(...e)=>new t(...e)}_zipTypesAndAnnotations(t,e){let n;n=Ct(void 0===t?e.length:t.length);for(let r=0;r<n.length;r++)n[r]=void 0===t?[]:t[r]&&t[r]!=Object?[t[r]]:[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n}_ownParameters(t,e){if(n=t.toString(),Xo.test(n)||Zo.test(n)||Yo.test(n)&&!Jo.test(n))return null;var n;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;const r=t.ctorParameters;if(r&&r!==e.ctorParameters){const t="function"==typeof r?r():r,e=t.map(t=>t&&t.type),n=t.map(t=>t&&es(t.decorators));return this._zipTypesAndAnnotations(e,n)}const i=t.hasOwnProperty(l)&&t[l],o=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return o||i?this._zipTypesAndAnnotations(o,i):Ct(t.length)}parameters(t){if(!Ko(t))return[];const e=ns(t);let n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]}_ownAnnotations(t,e){if(t.annotations&&t.annotations!==e.annotations){let e=t.annotations;return"function"==typeof e&&e.annotations&&(e=e.annotations),e}return t.decorators&&t.decorators!==e.decorators?es(t.decorators):t.hasOwnProperty(c)?t[c]:null}annotations(t){if(!Ko(t))return[];const e=ns(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)}_ownPropMetadata(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){let e=t.propMetadata;return"function"==typeof e&&e.propMetadata&&(e=e.propMetadata),e}if(t.propDecorators&&t.propDecorators!==e.propDecorators){const e=t.propDecorators,n={};return Object.keys(e).forEach(t=>{n[t]=es(e[t])}),n}return t.hasOwnProperty(h)?t[h]:null}propMetadata(t){if(!Ko(t))return{};const e=ns(t),n={};if(e!==Object){const t=this.propMetadata(e);
1Object.keys(t).forEach(e=>{n[e]=t[e]})}const r=this._ownPropMetadata(t,e);return r&&Object.keys(r).forEach(t=>{const e=[];n.hasOwnProperty(t)&&e.push(...n[t]),e.push(...r[t]),n[t]=e}),n}ownPropMetadata(t){return Ko(t)&&this._ownPropMetadata(t,ns(t))||{}}hasLifecycleHook(t,e){return t instanceof $o&&e in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n        return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+N(t)}resourceUri(t){return"./"+N(t)}resolveIdentifier(t,e,n,r){return r}resolveEnum(t,e){return t[e]}}function es(t){return t?t.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function ns(t){const e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}let rs=null;function is(){return rs=rs||new ts}function os(t){return ss(is().parameters(t))}function ss(t){const e=$();return t.map(t=>function(t,e){const n={token:null,host:!1,optional:!1,resolved:t.R3ResolvedDependencyType.Token,self:!1,skipSelf:!1};function r(e){n.resolved=t.R3ResolvedDependencyType.Token,n.token=e}if(Array.isArray(e)&&e.length>0)for(let i=0;i<e.length;i++){const o=e[i];if(void 0===o)continue;const s=Object.getPrototypeOf(o);if(o instanceof y||"Optional"===s.ngMetadataName)n.optional=!0;else if(o instanceof b||"SkipSelf"===s.ngMetadataName)n.skipSelf=!0;else if(o instanceof v||"Self"===s.ngMetadataName)n.self=!0;else if(o instanceof _||"Host"===s.ngMetadataName)n.host=!0;else if(o instanceof g)n.token=o.token;else if(o instanceof w){if(void 0===o.attributeName)throw new Error("Attribute name must be defined.");n.token=o.attributeName,n.resolved=t.R3ResolvedDependencyType.Attribute}else o===Go?(n.token=o,n.resolved=t.R3ResolvedDependencyType.ChangeDetectorRef):r(o)}else void 0===e||Array.isArray(e)&&0===e.length?(n.token=void 0,n.resolved=W.Invalid):r(e);return n}(e,t))}const as=O({provide:String,useValue:O});function us(t){return void 0!==t.useClass}function cs(t){return void 0!==t.useFactory}function ls(t,e){const n=e||{providedIn:null},r={name:t.name,type:t,typeArgumentCount:0,providedIn:n.providedIn,userDeps:void 0};return(us(n)||cs(n))&&void 0!==n.deps&&(r.userDeps=ss(n.deps)),us(n)?r.useClass=U(n.useClass):function(t){return as in t}(n)?r.useValue=U(n.useValue):cs(n)?r.useFactory=n.useFactory:function(t){return void 0!==t.useExisting}(n)&&(r.useExisting=U(n.useExisting)),r}const hs=f("Injectable",void 0,void 0,void 0,(t,e)=>fs(t,e)),fs=function(t,e){let n=null,r=null;t.hasOwnProperty(I)||(Object.defineProperty(t,I,{get:()=>(null===n&&(n=$().compileInjectable(bt,`ng:///${t.name}/\u0275prov.js`,ls(t,e))),n)}),t.hasOwnProperty(R)||(t[R]=()=>t[I])),t.hasOwnProperty(tt)||Object.defineProperty(t,tt,{get:()=>{if(null===r){const n=ls(t,e),i=$();r=i.compileFactory(bt,`ng:///${t.name}/\u0275fac.js`,{name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:os(t),injectFn:"inject",target:i.R3FactoryTarget.Injectable})}return r},configurable:!0})},ds=new nt("Set Injector scope."),ps={},ms={},gs=[];let ys=void 0;function vs(){return void 0===ys&&(ys=new vt),ys}function bs(t,e=null,n=null,r){return new _s(t,n,e||vs(),r)}class _s{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&&Ot(e,n=>this.processProvider(n,t,e)),Ot([t],t=>this.processInjectorType(t,[],i)),this.records.set(rt,Os(void 0,this));const o=this.records.get(ds);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:N(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=it,n=E.Default){this.assertNotDestroyed();const r=lt(this);try{if(!(n&E.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof nt)&&j(t);e=n&&this.injectableDefInScope(n)?Os(ws(t),ps):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&E.Self?vs():this.parent).get(t,e=n&E.Optional&&e===it?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(N(t)),r)throw o;return function(t,e,n,r){const i=t.ngTempTokenPath;throw e[st]&&i.unshift(e[st]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=N(e);if(Array.isArray(e))i=e.map(N).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];
vendor: 4,978 bytes, line 1
1t.push(n+":"+("string"==typeof r?JSON.stringify(r):N(r)))}i=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(ot,"\n  ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{lt(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(N(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=U(t)))return!1;let r=k(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=k(i)),null==r)return!1;if(null!=r.imports&&!s){let t;n.push(o);try{Ot(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];Ot(r,t=>this.processProvider(t,n,r||gs))}}this.injectorDefTypes.add(o),this.records.set(o,Os(r.factory,ps));const a=r.providers;if(null!=a&&!s){const e=t;Ot(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let r=xs(t=U(t))?t:U(t&&t.provide);const i=function(t,e,n){return Ss(t)?Os(void 0,t.useValue):Os(Es(t),ps)}(t);if(xs(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=Os(void 0,ps,!0),e.factory=()=>yt(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===ps&&(e.value=ms,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 ws(t){const e=j(t),n=null!==e?e.factory:Wt(t);if(null!==n)return n;const r=k(t);if(null!==r)return r.factory;if(t instanceof nt)throw new Error(`Token ${N(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Ct(e,"?");throw new Error(`Can't resolve all parameters for ${N(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[I]||t[P]||t[R]&&t[R]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Es(t,e,n){let r=void 0;if(xs(t)){const e=U(t);return Wt(e)||ws(e)}if(Ss(t))r=()=>U(t.useValue);else if((i=t)&&i.useFactory)r=()=>t.useFactory(...yt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>dt(U(t.useExisting));else{const e=U(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Wt(e)||ws(e);r=()=>new e(...yt(t.deps))}var i;return r}function Os(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Ss(t){return null!==t&&"object"==typeof t&&at in t}function xs(t){return"function"==typeof t}const Cs=function(t,e,n){return function(t,e=null,n=null,r){const i=bs(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let Ts=(()=>{class t{static create(t,e){return Array.isArray(t)?Cs(t,e,""):Cs(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=it,t.NULL=new vt,t.\u0275prov=x({token:t,providedIn:"any",factory:()=>dt(rt)}),t.__NG_ELEMENT_ID__=-1,t})();const js=new nt("AnalyzeForEntryComponents");function As(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(let s=0;s<e.length;s++){const t=e[s];"number"==typeof t?o=t:1==o?i=L(i,t):2==o&&(r=L(r,t+": "+e[++s]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}function ks(t,e){const n=Ie(t)[1],r=n.data.length-1;_n(n,{directiveStart:r,directiveEnd:r+1})}function Is(t){return Object.getPrototypeOf(t.prototype).constructor}function Ds(t){let e=Is(t.type),n=!0;const r=[t];for(;e;){let i=void 0;if(ne(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=Rs(t.inputs),e.declaredInputs=Rs(t.declaredInputs),e.outputs=Rs(t.outputs);const n=i.hostBindings;n&&Ns(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&Ps(t,o),s&&Fs(t,s),S(t.inputs,i.inputs),S(t.declaredInputs,i.declaredInputs),S(t.outputs,i.outputs),ne(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let r=0;r<e.length;r++){const i=e[r];i&&i.ngInherit&&i(t),i===Ds&&(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];
1i.hostVars=e+=i.hostVars,i.hostAttrs=In(i.hostAttrs,n=In(n,i.hostAttrs))}}(r)}function Rs(t){return t===Dt?{}:t===Rt?[]:t}function Ps(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function Fs(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,i)=>{e(t,r,i),n(t,r,i)}:e}function Ns(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}const Ls=["providersResolver"],Ms=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Vs(t){let e=Is(t.type),n=void 0;n=ne(t)?e.\u0275cmp:e.\u0275dir;const r=t;for(const i of Ls)r[i]=n[i];if(ne(n))for(const i of Ms)r[i]=n[i]}let Us=null;function Bs(){if(!Us){const t=G.Symbol;if(t&&t.iterator)Us=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&&(Us=n)}}}return Us}class qs{constructor(t){this.wrapped=t}static wrap(t){return new qs(t)}static unwrap(t){return qs.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof qs}}function Hs(t){return!!zs(t)&&(Array.isArray(t)||!(t instanceof Map)&&Bs()in t)}function zs(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Qs(t,e,n){return t[e]=n}function Gs(t,e){return t[e]}function Ws(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function $s(t,e,n,r){const i=Ws(t,e,n);return Ws(t,e+1,r)||i}function Ks(t,e,n,r,i){const o=$s(t,e,n,r);return Ws(t,e+2,i)||o}function Xs(t,e,n,r,i,o){const s=$s(t,e,n,r);return $s(t,e+2,i,o)||s}function Ys(t,e,n,r){const i=Be();return Ws(i,Ze(),e)&&(qe(),Zi(gn(),i,t,e,n,r)),Ys}function Js(t,e){let n=!1,r=Ye();for(let o=1;o<e.length;o+=2)n=Ws(t,r++,e[o])||n;if(Je(r),!n)return pi;let i=e[0];for(let o=1;o<e.length;o+=2)i+=ie(e[o])+e[o+1];return i}function Zs(t,e,n,r){return Ws(t,Ze(),n)?e+ie(n)+r:pi}function ta(t,e,n,r,i,o){const s=$s(t,Ye(),n,i);return tn(2),s?e+ie(n)+r+ie(i)+o:pi}function ea(t,e,n,r,i,o,s,a){const u=Ks(t,Ye(),n,i,s);return tn(3),u?e+ie(n)+r+ie(i)+o+ie(s)+a:pi}function na(t,e,n,r,i,o,s,a,u,c){const l=Xs(t,Ye(),n,i,s,u);return tn(4),l?e+ie(n)+r+ie(i)+o+ie(s)+a+ie(u)+c:pi}function ra(t,e,n,r,i,o,s,a,u,c,l,h){const f=Ye();let d=Xs(t,f,n,i,s,u);return d=Ws(t,f+4,l)||d,tn(5),d?e+ie(n)+r+ie(i)+o+ie(s)+a+ie(u)+c+ie(l)+h:pi}function ia(t,e,n,r,i,o,s,a,u,c,l,h,f,d){const p=Ye();let m=Xs(t,p,n,i,s,u);return m=$s(t,p+4,l,f)||m,tn(6),m?e+ie(n)+r+ie(i)+o+ie(s)+a+ie(u)+c+ie(l)+h+ie(f)+d:pi}function oa(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m){const g=Ye();let y=Xs(t,g,n,i,s,u);return y=Ks(t,g+4,l,f,p)||y,tn(7),y?e+ie(n)+r+ie(i)+o+ie(s)+a+ie(u)+c+ie(l)+h+ie(f)+d+ie(p)+m:pi}function sa(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g,y){const v=Ye();let b=Xs(t,v,n,i,s,u);return b=Xs(t,v+4,l,f,p,g)||b,tn(8),b?e+ie(n)+r+ie(i)+o+ie(s)+a+ie(u)+c+ie(l)+h+ie(f)+d+ie(p)+m+ie(g)+y:pi}function aa(t,e,n,r,i,o){const s=Be(),a=Zs(s,e,n,r);return a!==pi&&Zi(gn(),s,t,a,i,o),aa}function ua(t,e,n,r,i,o,s,a){const u=Be(),c=ta(u,e,n,r,i,o);return c!==pi&&Zi(gn(),u,t,c,s,a),ua}function ca(t,e,n,r,i,o,s,a,u,c){const l=Be(),h=ea(l,e,n,r,i,o,s,a);return h!==pi&&Zi(gn(),l,t,h,u,c),ca}function la(t,e,n,r,i,o,s,a,u,c,l,h){const f=Be(),d=na(f,e,n,r,i,o,s,a,u,c);return d!==pi&&Zi(gn(),f,t,d,l,h),la}function ha(t,e,n,r,i,o,s,a,u,c,l,h,f,d){const p=Be(),m=ra(p,e,n,r,i,o,s,a,u,c,l,h);return m!==pi&&Zi(gn(),p,t,m,f,d),ha}function fa(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m){const g=Be(),y=ia(g,e,n,r,i,o,s,a,u,c,l,h,f,d);return y!==pi&&Zi(gn(),g,t,y,p,m),fa}function da(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g,y){const v=Be(),b=oa(v,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m);return b!==pi&&Zi(gn(),v,t,b,g,y),da}function pa(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g,y,v,b){const _=Be(),w=sa(_,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g,y);return w!==pi&&Zi(gn(),_,t,w,v,b),pa}function ma(t,e,n,r){const i=Be(),o=Js(i,e);return o!==pi&&Zi(gn(),i,t,o,n,r),ma}function ga(t,e,n,r,i,o,s,a){const u=Be(),c=qe(),l=t+Kt,h=c.firstCreatePass?function(t,e,n,r,i,o,s,a,u){const c=e.consts,l=ki(e,t,0,s||null,Pe(c,a));Hi(e,n,l,Pe(c,u)),_n(e,l);const h=l.tViews=Vi(2,l,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return 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];Qe(h,!1);const f=u[11].createComment("");Ao(c,u,f,h),ei(f,u),oo(u,u[l]=no(f,u,f,h)),ee(h)&&Ni(c,u,h),null!=s&&Li(u,h,a)}function ya(t){return Ae(Le.lFrame.contextLView,t)}function va(t,e=E.Default){const n=Be();return null===n?dt(t,e):zn(ze(),n,U(t),e)}function ba(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(An(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}(ze(),t)}function _a(){throw new Error("invalid")}function wa(t,e,n){const r=Be();return Ws(r,Ze(),e)&&qi(qe(),gn(),r,t,e,r[11],n,!1),wa}function Ea(t,e,n,r,i){const o=i?"class":"style";mo(t,n,e.inputs[o],o,r)}function Oa(t,e,n,r){const i=Be(),o=qe(),s=Kt+t,a=i[11],u=i[s]=ji(e,a,Le.lFrame.currentNamespace),c=o.firstCreatePass?function(t,e,n,r,i,o,s){const a=e.consts,u=ki(e,t,2,i,Pe(a,o));return Hi(e,n,u,Pe(a,s)),null!==u.attrs&&As(u,u.attrs,!1),null!==u.mergedAttrs&&As(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(t,o,i,0,e,n,r):o.data[s];Qe(c,!0);const l=c.mergedAttrs;null!==l&&jn(a,u,l);const h=c.classes;null!==h&&No(a,u,h);const f=c.styles;null!==f&&Fo(a,u,f),Ao(o,i,u,c),0===Le.lFrame.elementDepthCount&&ei(u,i),Le.lFrame.elementDepthCount++,ee(c)&&(Ni(o,i,c),Fi(o,c,i)),null!==r&&Li(i,c)}function Sa(){let t=ze();Ge()?We():(t=t.parent,Qe(t,!1));const e=t;Le.lFrame.elementDepthCount--;const n=qe();n.firstCreatePass&&(_n(n,t),Zt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Ea(n,e,Be(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Ea(n,e,Be(),e.stylesWithoutHost,!1)}function xa(t,e,n,r){Oa(t,e,n,r),Sa()}function Ca(t,e,n){const r=Be(),i=qe(),o=t+Kt,s=i.firstCreatePass?function(t,e,n,r,i){const o=e.consts,s=Pe(o,r),a=ki(e,t,3,"ng-container",s);return null!==s&&As(a,s,!0),Hi(e,n,a,Pe(o,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,i,r,e,n):i.data[o];Qe(s,!0);const a=r[o]=r[11].createComment("");Ao(i,r,a,s),ei(a,r),ee(s)&&(Ni(i,r,s),Fi(i,s,r)),null!=n&&Li(r,s)}function Ta(){let t=ze();const e=qe();Ge()?We():(t=t.parent,Qe(t,!1)),e.firstCreatePass&&(_n(e,t),Zt(t)&&e.queries.elementEnd(t))}function ja(t,e,n){Ca(t,e,n),Ta()}function Aa(){return Be()}function ka(t){return!!t&&"function"==typeof t.then}function Ia(t){return!!t&&"function"==typeof t.subscribe}function Da(t,e,n=!1,r){const i=Be(),o=qe(),s=ze();return Pa(o,i,i[11],s,t,e,n,r),Da}function Ra(t,e,n=!1,r){const i=ze(),o=Be(),s=qe();return Pa(s,o,fo(rn(s.data),i,o),i,t,e,n,r),Ra}function Pa(t,e,n,r,i,o,s=!1,a){const u=ee(r),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),l=ho(e);let h=!0;if(2===r.type){const f=Te(r,e),d=a?a(f):Dt,p=d.target||f,m=l.length,g=a?t=>a(xe(t[r.index])).target:r.index;if(Oe(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=Na(r,e,o,!1);const t=n.listen(d.name||p,i,o);l.push(o,t),c&&c.push(i,g,m,m+1)}}else o=Na(r,e,o,!0),p.addEventListener(i,o,s),l.push(o),c&&c.push(i,g,m,s)}const f=r.outputs;let d;if(h&&null!==f&&(d=f[i])){const t=d.length;if(t)for(let n=0;n<t;n+=2){const t=e[d[n]][d[n+1]].subscribe(o),s=l.length;l.push(o,t),c&&c.push(i,r.index,s,-(s+1))}}}function Fa(t,e,n){try{return!1!==e(n)}catch(r){return po(t,r),!1}}function Na(t,e,n,r){return function i(o){if(o===Function)return n;const s=2&t.flags?ke(t.index,e):e;0==(32&e[2])&&so(s);let a=Fa(e,n,o),u=i.__ngNextListenerFn__;for(;u;)a=Fa(e,u,o)&&a,u=u.__ngNextListenerFn__;return r&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function La(t=1){return function(t){return(Le.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Le.lFrame.contextLView))[8]}(t)}function Ma(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?li(t,o,!0):hi(r,o))return i}else n=i}return n}function Va(t){const e=Be()[16][6];if(!e.projection){const n=e.projection=Ct(t?t.length:1,null),r=n.slice();let i=e.child;for(;null!==i;){const e=t?Ma(i,t):0;null!==e&&(r[e]?r[e].projectionNext=i:n[e]=i,r[e]=i),i=i.next}}}let Ua=!1;function Ba(t){Ua=t}function qa(t,e=0,n){const r=Be(),i=qe(),o=ki(i,t,1,null,n||null);null===o.projection&&(o.projection=e),We(),Ua||Ro(i,r,o)}function Ha(t,e,n){return za(t,"",e,"",n),Ha}function za(t,e,n,r,i){const o=Be(),s=Zs(o,e,n,r);return s!==pi&&qi(qe(),gn(),o,t,s,o[11],i,!1),za}function Qa(t,e,n,r,i,o,s){const a=Be(),u=ta(a,e,n,r,i,o);return u!==pi&&qi(qe(),gn(),a,t,u,a[11],s,!1),Qa}function Ga(t,e,n,r,i,o,s,a,u){const c=Be(),l=ea(c,e,n,r,i,o,s,a);return l!==pi&&qi(qe(),gn(),c,t,l,c[11],u,!1),Ga}function Wa(t,e,n,r,i,o,s,a,u,c,l){const h=Be(),f=na(h,e,n,r,i,o,s,a,u,c);return f!==pi&&qi(qe(),gn(),h,t,f,h[11],l,!1),Wa}function $a(t,e,n,r,i,o,s,a,u,c,l,h,f){const d=Be(),p=ra(d,e,n,r,i,o,s,a,u,c,l,h);return p!==pi&&qi(qe(),gn(),d,t,p,d[11],f,!1),$a}
1function Ka(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p){const m=Be(),g=ia(m,e,n,r,i,o,s,a,u,c,l,h,f,d);return g!==pi&&qi(qe(),gn(),m,t,g,m[11],p,!1),Ka}function Xa(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g){const y=Be(),v=oa(y,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m);return v!==pi&&qi(qe(),gn(),y,t,v,y[11],g,!1),Xa}function Ya(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g,y,v){const b=Be(),_=sa(b,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g,y);return _!==pi&&qi(qe(),gn(),b,t,_,b[11],v,!1),Ya}function Ja(t,e,n){const r=Be(),i=Js(r,e);return i!==pi&&qi(qe(),gn(),r,t,i,r[11],n,!1),Ja}const Za=[];function tu(t,e,n,r,i){const o=t[n+1],s=null===e;let a=r?Ei(o):Si(o),u=!1;for(;0!==a&&(!1===u||s);){const n=t[a+1];eu(t[a],e)&&(u=!0,t[a+1]=r?Ci(n):Oi(n)),a=r?Ei(n):Si(n)}u&&(t[n+1]=r?Oi(o):Ci(o))}function eu(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&At(t,e)>=0}const nu={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ru(t){return t.substring(nu.key,nu.keyEnd)}function iu(t){return t.substring(nu.value,nu.valueEnd)}function ou(t,e){const n=nu.textEnd;return n===e?-1:(e=nu.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,nu.key=e,n),uu(t,e,n))}function su(t,e){const n=nu.textEnd;let r=nu.key=uu(t,e,n);return n===r?-1:(r=nu.keyEnd=function(t,e,n){let r;for(;e<n&&(45===(r=t.charCodeAt(e))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)e++;return e}(t,r,n),r=cu(t,r,n),r=nu.value=uu(t,r,n),r=nu.valueEnd=function(t,e,n){let r=-1,i=-1,o=-1,s=e,a=s;for(;s<n;){const u=t.charCodeAt(s++);if(59===u)return a;34===u||39===u?a=s=lu(t,u,s,n):e===s-4&&85===o&&82===i&&76===r&&40===u?a=s=lu(t,41,s,n):u>32&&(a=s),o=i,i=r,r=-33&u}return a}(t,r,n),cu(t,r,n))}function au(t){nu.key=0,nu.keyEnd=0,nu.value=0,nu.valueEnd=0,nu.textEnd=t.length}function uu(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function cu(t,e,n,r){return(e=uu(t,e,n))<n&&e++,e}function lu(t,e,n,r){let i=-1,o=n;for(;o<r;){const n=t.charCodeAt(o++);if(n==e&&92!==i)return o;i=92==n&&92===i?0:n}throw new Error}function hu(t,e,n){return yu(t,e,n,!1),hu}function fu(t,e){return yu(t,e,null,!0),fu}function du(t){vu(Ou,pu,t,!1)}function pu(t,e){for(let n=function(t){return au(t),su(t,uu(t,0,nu.textEnd))}(e);n>=0;n=su(e,n))Ou(t,ru(e),iu(e))}function mu(t){vu(Tt,gu,t,!0)}function gu(t,e){for(let n=function(t){return au(t),ou(t,uu(t,0,nu.textEnd))}(e);n>=0;n=ou(e,n))Tt(t,ru(e),!0)}function yu(t,e,n,r){const i=Be(),o=qe(),s=tn(2);o.firstUpdatePass&&_u(o,t,s,r),e!==pi&&Ws(i,s,e)&&Su(o,o.data[pn()+Kt],i,i[11],t,i[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=N(lr(t)))),t}(e,n),r,s)}function vu(t,e,n,r){const i=qe(),o=tn(2);i.firstUpdatePass&&_u(i,null,o,r);const s=Be();if(n!==pi&&Ws(s,o,n)){const a=i.data[pn()+Kt];if(Tu(a,r)&&!bu(i,o)){let t=r?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=L(t,n||"")),Ea(i,a,s,n,r)}else!function(t,e,n,r,i,o,s,a){i===pi&&(i=Za);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 f=u<i.length?i[u+1]:void 0,d=c<o.length?o[c+1]:void 0;let p=null,m=void 0;l===h?(u+=2,c+=2,f!==d&&(p=h,m=d)):null===h||null!==l&&l<h?(u+=2,p=l):(c+=2,p=h,m=d),null!==p&&Su(t,e,n,r,p,m,s,a),l=u<i.length?i[u]:null,h=c<o.length?o[c]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function(t,e,n){if(null==n||""===n)return Za;const r=[],i=lr(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),r,o)}}function bu(t,e){return e>=t.expandoStartIndex}function _u(t,e,n,r){const i=t.data;if(null===i[n+1]){const o=i[pn()+Kt],s=bu(t,n);Tu(o,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const i=rn(t);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=Eu(n=wu(null,t,e,n,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==i)if(n=wu(i,t,e,n,r),null===o){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Si(r))return t[Ei(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=wu(null,t,e,n[1],r),n=Eu(n,e.attrs,r),function(t,e,n,r){t[Ei(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=Eu(r,t[o].hostAttrs,n);return Eu(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=Ei(s),u=Si(s);t[r]=n;let c,l=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||At(t,c)>0)&&(l=!0)}else c=n;if(i)if(0!==u){const e=Ei(t[a+1]);t[r+1]=wi(e,a),0!==e&&(t[e+1]=xi(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=wi(a,0),0!==a&&(t[a+1]=xi(t[a+1],r)),a=r;else t[r+1]=wi(u,0),0===a?a=r:t[u+1]=xi(t[u+1],r),u=r;l&&(t[r+1]=Oi(t[r+1])),tu(t,c,r,!0),tu(t,c,r,!1),function(t,e,n,r,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&At(o,e)>=0&&(n[r+1]=Ci(n[r+1]))}(e,c,t,r,o),s=wi(a,u),o?e.classBindings=s:e.styleBindings=s}
1(i,o,e,n,s,r)}}function wu(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=Eu(r,o.hostAttrs,i),o!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Eu(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]),Tt(t,s,!!n||e[++o]))}return void 0===t?null:t}function Ou(t,e,n){Tt(t,e,lr(n))}function Su(t,e,n,r,i,o,s,a){if(2!==e.type)return;const u=t.data,c=u[a+1];Cu(1==(1&c)?xu(u,e,n,i,Si(c),s):void 0)||(Cu(o)||2==(2&c)&&(o=xu(u,null,n,i,a,s)),function(t,e,n,r,i){const o=Oe(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,Ce(pn(),n),i,o))}function xu(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===pi&&(l=c?Za:void 0);let h=c?jt(l,r):u===r?l:void 0;if(o&&!Cu(h)&&(h=jt(e,r)),Cu(h)&&(a=h,s))return a;const f=t[i+1];i=s?Ei(f):Si(f)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=jt(t,r))}return a}function Cu(t){return void 0!==t}function Tu(t,e){return 0!=(t.flags&(e?16:32))}function ju(t,e=""){const n=Be(),r=qe(),i=t+Kt,o=r.firstCreatePass?ki(r,t,2,null,null):r.data[i],s=n[i]=vo(e,n[11]);Ao(r,n,s,o),Qe(o,!1)}function Au(t){return ku("",t,""),Au}function ku(t,e,n){const r=Be(),i=Zs(r,t,e,n);return i!==pi&&go(r,pn(),i),ku}function Iu(t,e,n,r,i){const o=Be(),s=ta(o,t,e,n,r,i);return s!==pi&&go(o,pn(),s),Iu}function Du(t,e,n,r,i,o,s){const a=Be(),u=ea(a,t,e,n,r,i,o,s);return u!==pi&&go(a,pn(),u),Du}function Ru(t,e,n,r,i,o,s,a,u){const c=Be(),l=na(c,t,e,n,r,i,o,s,a,u);return l!==pi&&go(c,pn(),l),Ru}function Pu(t,e,n,r,i,o,s,a,u,c,l){const h=Be(),f=ra(h,t,e,n,r,i,o,s,a,u,c,l);return f!==pi&&go(h,pn(),f),Pu}function Fu(t,e,n,r,i,o,s,a,u,c,l,h,f){const d=Be(),p=ia(d,t,e,n,r,i,o,s,a,u,c,l,h,f);return p!==pi&&go(d,pn(),p),Fu}function Nu(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p){const m=Be(),g=oa(m,t,e,n,r,i,o,s,a,u,c,l,h,f,d,p);return g!==pi&&go(m,pn(),g),Nu}function Lu(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g){const y=Be(),v=sa(y,t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g);return v!==pi&&go(y,pn(),v),Lu}function Mu(t){const e=Be(),n=Js(e,t);return n!==pi&&go(e,pn(),n),Mu}function Vu(t,e,n){vu(Tt,gu,Zs(Be(),t,e,n),!0)}function Uu(t,e,n,r,i){vu(Tt,gu,ta(Be(),t,e,n,r,i),!0)}function Bu(t,e,n,r,i,o,s){vu(Tt,gu,ea(Be(),t,e,n,r,i,o,s),!0)}function qu(t,e,n,r,i,o,s,a,u){vu(Tt,gu,na(Be(),t,e,n,r,i,o,s,a,u),!0)}function Hu(t,e,n,r,i,o,s,a,u,c,l){vu(Tt,gu,ra(Be(),t,e,n,r,i,o,s,a,u,c,l),!0)}function zu(t,e,n,r,i,o,s,a,u,c,l,h,f){vu(Tt,gu,ia(Be(),t,e,n,r,i,o,s,a,u,c,l,h,f),!0)}function Qu(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p){vu(Tt,gu,oa(Be(),t,e,n,r,i,o,s,a,u,c,l,h,f,d,p),!0)}function Gu(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g){vu(Tt,gu,sa(Be(),t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g),!0)}function Wu(t){vu(Tt,gu,Js(Be(),t),!0)}function $u(t,e,n){du(Zs(Be(),t,e,n))}function Ku(t,e,n,r,i){du(ta(Be(),t,e,n,r,i))}function Xu(t,e,n,r,i,o,s){du(ea(Be(),t,e,n,r,i,o,s))}function Yu(t,e,n,r,i,o,s,a,u){du(na(Be(),t,e,n,r,i,o,s,a,u))}function Ju(t,e,n,r,i,o,s,a,u,c,l){du(ra(Be(),t,e,n,r,i,o,s,a,u,c,l))}function Zu(t,e,n,r,i,o,s,a,u,c,l,h,f){du(ia(Be(),t,e,n,r,i,o,s,a,u,c,l,h,f))}function tc(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p){du(oa(Be(),t,e,n,r,i,o,s,a,u,c,l,h,f,d,p))}function ec(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g){du(sa(Be(),t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g))}function nc(t){du(Js(Be(),t))}function rc(t,e,n,r,i){return yu(t,Zs(Be(),e,n,r),i,!1),rc}function ic(t,e,n,r,i,o,s){return yu(t,ta(Be(),e,n,r,i,o),s,!1),ic}function oc(t,e,n,r,i,o,s,a,u){return yu(t,ea(Be(),e,n,r,i,o,s,a),u,!1),oc}function sc(t,e,n,r,i,o,s,a,u,c,l){return yu(t,na(Be(),e,n,r,i,o,s,a,u,c),l,!1),sc}function ac(t,e,n,r,i,o,s,a,u,c,l,h,f){return yu(t,ra(Be(),e,n,r,i,o,s,a,u,c,l,h),f,!1),ac}function uc(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p){return yu(t,ia(Be(),e,n,r,i,o,s,a,u,c,l,h,f,d),p,!1),uc}function cc(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g){return yu(t,oa(Be(),e,n,r,i,o,s,a,u,c,l,h,f,d,p,m),g,!1),cc}function lc(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g,y,v){return yu(t,sa(Be(),e,n,r,i,o,s,a,u,c,l,h,f,d,p,m,g,y),v,!1),lc}function hc(t,e,n){return yu(t,Js(Be(),e),n,!1),hc}function fc(t,e,n){const r=Be();return Ws(r,Ze(),e)&&qi(qe(),gn(),r,t,e,r[11],n,!0),fc}function dc(t,e,n){const r=Be();if(Ws(r,Ze(),e)){const i=qe(),o=gn();qi(i,o,r,t,e,fo(rn(i.data),o,r),n,!0)}return dc}const pc=void 0;var mc=["en",[["a","p"],["AM","PM"],pc],[["AM","PM"],pc,pc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],pc,[["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"]],pc,[["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}",pc,"{1} 'at' {0}",pc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let gc={};function yc(t,e,n){"string"!=typeof e&&(n=e,e=t[Ec.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),gc[e]=t,n&&(gc[e][Ec.ExtraData]=n)}function vc(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=wc(e);if(n)return n;const r=e.split("-")[0];if(n=wc(r),n)return n;if("en"===r)return mc;throw new Error(`Missing locale data for the locale "${t}".`)}function bc(t){return vc(t)[Ec.CurrencyCode]||null}function _c(t){return vc(t)[Ec.PluralCase]}function wc(t){return t in gc||(gc[t]=G.ng&&G.ng.common&&G.ng.common.locales&&G.ng.common.locales[t]),gc[t]}var Ec=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const Oc=["zero","one","two","few","many"],Sc="en-US",xc={marker:"element"},Cc={marker:"comment"};let Tc=Sc;function jc(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&&(Tc=t.toLowerCase().replace(/_/g,"-"))}const Ac=[];let kc=-1,Ic=0,Dc=0;function Rc(t,e,n,r){const i=r[11];let o=null,s=null;const a=[];for(let u=0;u<n.length;u++){const c=n[u];if("string"==typeof c){const e=vo(c,i),l=n[++u];s=o,o=Vc(t,r,l,2,e,null),a.push(l),We()}else if("number"==typeof c)switch(7&c){case 1:const i=c>>>17;let l;l=i===e?r[6]:je(t,i),s=Lc(t,o,l,s,r);break;case 0:const h=c>=0,f=(h?c:~c)>>>3;a.push(f),s=o,o=je(t,f),o&&Qe(o,h);break;case 5:s=o=je(t,c>>>3),Qe(o,!1);break;case 4:const d=n[++u],p=n[++u];Zi(je(t,c>>>3),r,d,p,null,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}else switch(c){case Cc:const e=n[++u],l=n[++u],h=i.createComment(e);s=o,o=Vc(t,r,l,4,h,null),a.push(l),ei(h,r),We();break;case xc:const f=n[++u],d=n[++u];s=o,o=Vc(t,r,d,2,i.createElement(f),f),a.push(d);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}}return We(),a}function Pc(t,e,n,r,i,o){let s=!1;for(let a=0;a<r.length;a++){const u=r[a],c=r[++a];if(u&o){let o="";for(let u=a+1;u<=a+c;u++){const a=r[u];if("string"==typeof a)o+=a;else if("number"==typeof a)if(a<0)o+=ie(n[i-a]);else{const c=a>>>2;switch(3&a){case 1:const a=r[++u],l=r[++u];qi(t,je(t,c),n,a,o,n[11],l,!1);break;case 0:go(n,c,o);break;case 2:s=Nc(t,e,r[++u],n,o);break;case 3:Fc(t,e,r[++u],i,n,s)}}}}a+=c}}function Fc(t,e,n,r,i,o){const s=e[n],a=i[s.currentCaseLViewIndex];null!==a&&Pc(t,e,i,s.update[a],r,o?-1:Ic)}function Nc(t,e,n,r,i){!function t(e,n,r,i){const o=n[r],s=i[o.currentCaseLViewIndex];if(null!==s){const r=o.remove[s];for(let o=0;o<r.length;o++){const s=r[o],a=s>>>3;switch(7&s){case 3:Mc(e,i,a,!1);break;case 6:t(e,n,a,i)}}}}(t,e,n,r);let o=!1;const s=e[n],a=function(t,e){let n=t.cases.indexOf(e);if(-1===n)switch(t.type){case 1:{const r=function(t,e){const n=_c(e)(parseInt(t,10)),r=Oc[n];return void 0!==r?r:"other"}(e,Tc);n=t.cases.indexOf(r),-1===n&&"other"!==r&&(n=t.cases.indexOf("other"));break}case 0:n=t.cases.indexOf("other")}return n}(s,i);return r[s.currentCaseLViewIndex]=-1!==a?a:null,a>-1&&(Rc(t,-1,s.create[a],r),o=!0),o}function Lc(t,e,n,r,i){const o=e.next;r||(r=n),r===n&&e!==n.child?(e.next=n.child,null===e.parent?t.firstChild=e
1: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 Ro(t,i,e),e;Ao(t,i,Te(e,i),e);const a=i[e.index];return 0!==e.type&&Jt(a)&&Ao(t,i,a[7],e),e}function Mc(t,e,n,r){const i=je(t,n),o=Ce(n,e);o&&ko(e[11],o);const s=Ae(e,n);if(Jt(s)){const t=s;0!==i.type&&ko(e[11],t[7])}r&&i&&(i.flags|=64)}function Vc(t,e,n,r,i,o){const s=ze();e[n+Kt]=i;const a=ki(t,n,r,o,null);return s&&s.next===a&&(s.next=null),a}const Uc=/\ufffd(\d+):?\d*\ufffd/gi,Bc=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,qc=/\ufffd(\d+)\ufffd/,Hc=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/;let zc;const Qc=[],Gc=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Wc=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,$c=/\uE500/g;function Kc(t,e,n,r=null){const i=[null,null],o=t.split(Uc);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|=Jc(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 Xc(t,e=0){let n;e|=Jc(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=Uc.exec(r);)e|=Jc(parseInt(n[1],10));else e=Xc(r,e)}}return e}function Yc(t){return t+zc++}function Jc(t){return 1<<Math.min(t,31)}function Zc(t){return void 0===t}function tl(t){let e,n,r="",i=0,o=!1;for(;null!==(e=Gc.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 el(t,e,n,r){const i=[],o=[],s=[],a=[],u=[],c=e.values;for(let l=0;l<c.length;l++){const e=c[l],h=[];for(let t=0;t<e.length;t++){const n=e[t];if("string"!=typeof n){const r=h.push(n)-1;e[t]=`\x3c!--\ufffd${r}\ufffd--\x3e`}}const f=rl(e.join(""),n,h,t,r);i.push(f.create),o.push(f.remove),s.push(f.update),a.push(f.vars),u.push(f.childIcus)}t.push({type:e.type,vars:a,currentCaseLViewIndex:Kt+r+1,childIcus:u,cases:e.cases,create:i,remove:o,update:s}),zc+=Math.max(...a)}function nl(t){const e=[],n=[];let r=1,i=0;const o=il(t=t.replace(Hc,(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=il(o[s++]);e.length>n.length&&n.push(i)}return{type:r,mainBinding:i,cases:e,values:n}}function rl(t,e,n,r,i){const o=Er(Ee()).getInertBodyElement(t);if(!o)throw new Error("Unable to generate inert body element");const s={vars:1,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(Fr.hasOwnProperty(l)){n.create.push(xc,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(Uc)?Mr.hasOwnProperty(r)&&Et(Nr[r]?Kc(e.value,c,e.name,Tr):Lr[r]?Kc(e.value,c,e.name,jr):Kc(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||"",f=h.match(Uc);n.create.push(f?"":h,c,r<<17|1),n.remove.push(c<<3|3),f&&Et(Kc(h,c),n.update);break;case Node.COMMENT_NODE:const d=qc.exec(e.textContent||"");if(d){const t=parseInt(d[1],10);n.create.push(Cc,"",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];el(o,e,r,s+n.vars);const i=o.length-1;n.vars+=Math.max(...o[i].vars),n.childIcus.push(i);const u=Xc(e);n.update.push(Jc(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)}}}((Gr(o)||o).firstChild,s,e,n,r,i),s}function il(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("}"==o[0]){if(n.pop(),0==n.length){const n=t.substring(e,i);Hc.test(n)?r.push(nl(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}const ol=/\[(\ufffd.+?\ufffd?)\]/,sl=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,al=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,ul=/{([A-Z0-9_]+)}/g,cl=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,ll=/\/\*/,hl=/\d+\:(\d+)/;function fl(t,e,n){const r=qe(),i=Pe(r.consts,e);!function(t){Ac[++kc]=t}(t),Ba(!0),r.firstCreatePass&&null===r.data[t+Kt]&&function(t,e,n,r,i){const o=e.blueprint.length-Kt;zc=0;const s=ze(),a=Ge()?s:s&&s.parent;
1let u=a&&a!==t[6]?a.index-Kt:n,c=0;Qc[c]=u;const l=[];if(n>0&&s!==a){let t=s.index-Kt;Ge()||(t=~t),l.push(t<<3|0)}const h=[],f=[];if(""===r&&Zc(i))l.push(r,Yc(o),u<<17|1);else{const t=function(t,e){if(Zc(e))return tl(t);{const n=t.indexOf(`:${e}\ufffd`)+2+e.toString().length,r=t.search(new RegExp(`\ufffd\\/\\*\\d+:${e}\ufffd`));return tl(t.substring(n,r))}}(r,i),e=(d=t,d.replace($c," ")).split(Wc);for(let n=0;n<e.length;n++){let r=e[n];if(1&n)if("/"===r.charAt(0)){if("#"===r.charAt(1)){const t=parseInt(r.substr(2),10);u=Qc[--c],l.push(t<<3|5)}}else{const t=parseInt(r.substr(1),10),e="#"===r.charAt(0);l.push((e?t:~t)<<3|0,u<<17|1),e&&(Qc[++c]=u=t)}else{const e=il(r);for(let n=0;n<e.length;n++)if(1&n){const r=e[n];if("object"!=typeof r)throw new Error(`Unable to parse ICU expression in "${t}" message.`);const i=Yc(o);l.push(Cc,"",i,u<<17|1);const s=Xc(r);el(f,r,i,i);const a=f.length-1;h.push(Jc(r.mainBinding),3,-1-r.mainBinding,i<<2|2,a,s,2,i<<2|3,a)}else if(""!==e[n]){const t=e[n],r=t.match(Uc),i=Yc(o);l.push(r?"":t,i,u<<17|1),r&&Et(Kc(t,i),h)}}}}var d;zc>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,zc),e.data[n+Kt]={vars:zc,create:l,update:h,icus:f.length?f:null}}(Be(),r,t,i,n)}function dl(){const t=Be();(function(t,e){const n=Ac[kc--],r=t.data[n+Kt],i=ze(),o=Rc(t,n,r.create,e);let s=n+1;for(;null!==i&&s<=i.index-Kt;){-1===o.indexOf(s)&&Mc(t,e,s,!0);const n=je(t,s);!n||0!==n.type&&2!==n.type&&3!==n.type||null===n.localNames||(s+=n.localNames.length>>1),s++}})(qe(),t),Ba(!1)}function pl(t,e,n){fl(t,e,n),dl()}function ml(t,e){const n=Be(),r=qe();!function(t,e,n,r){const i=ze().index-Kt,o=[];for(let s=0;s<r.length;s+=2){const a=r[s],u=r[s+1].split(Bc);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(Uc))e.firstCreatePass&&null===e.data[n+Kt]&&Et(Kc(s,i,a),o);else{const n=je(e,i);2===n.type&&Zi(n,t,a,s,null,null);const r=null!==n.inputs&&n.inputs[a];r&&mo(e,t,r,a,s)}}}e.firstCreatePass&&null===e.data[n+Kt]&&(e.data[n+Kt]=o)}(n,r,t,Pe(r.consts,e))}function gl(t){return Ws(Be(),Ze(),t)&&(Ic|=1<<Dc),Dc++,gl}function yl(t){!function(t,e,n){if(Dc>0){const r=t.data[n+Kt];let i,o=null;Array.isArray(r)?i=r:(i=r.update,o=r.icus),Pc(t,o,e,i,Ye()-Dc-1,Ic),Ic=0,Dc=0}}(qe(),Be(),t)}function vl(t,e={}){return function(t,e={}){let n=t;if(ol.test(t)){const t={},e=[0];n=n.replace(sl,(n,r,i)=>{const o=r||i,s=t[o]||[];if(s.length||(o.split("|").forEach(t=>{const e=t.match(hl),n=e?parseInt(e[1],10):0,r=ll.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(al,(t,n,r,i,o,s)=>e.hasOwnProperty(r)?`${n}${e[r]}${s}`:t),n=n.replace(ul,(t,n)=>e.hasOwnProperty(n)?e[n]:t),n=n.replace(cl,(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}(t,e)}function bl(t,e,n,r,i){if(t=U(t),Array.isArray(t))for(let o=0;o<t.length;o++)bl(t[o],e,n,r,i);else{const o=qe(),s=Be();let a=xs(t)?t:U(t.provide),u=Es(t);const c=ze(),l=1048575&c.providerIndexes,h=c.directiveStart,f=c.providerIndexes>>20;if(xs(t)||!t.multi){const r=new Tn(u,i,va),d=El(a,e,i?l:l+f,h);-1===d?(Hn(Vn(c,s),o,a),_l(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(r),s.push(r)):(n[d]=r,s[d]=r)}else{const d=El(a,e,l+f,h),p=El(a,e,l,l+f),m=d>=0&&n[d],g=p>=0&&n[p];if(i&&!g||!i&&!m){Hn(Vn(c,s),o,a);const l=function(t,e,n,r,i){const o=new Tn(t,n,va);return o.multi=[],o.index=e,o.componentProviders=0,wl(o,i,r&&!n),o}(i?Sl:Ol,n.length,i,r,u);!i&&g&&(n[p].providerFactory=l),_l(o,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(l),s.push(l)}else _l(o,t,d>-1?d:p,wl(n[i?p:d],u,!i&&r));!i&&r&&g&&n[p].componentProviders++}}}function _l(t,e,n,r){const i=xs(e);if(i||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const s=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[r,o]):s[t+1].push(r,o)}else s.push(n,o)}}}function wl(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function El(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function Ol(t,e,n,r){return xl(this.multi,[])}function Sl(t,e,n,r){const i=this.multi;let o;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=$n(n,n[1],this.providerFactory.index,r);o=e.slice(0,t),xl(i,o);for(let n=t;n<e.length;n++)o.push(e[n])}else o=[],xl(i,o);return o}function xl(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function Cl(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=qe();if(r.firstCreatePass){const i=ne(t);bl(n,r.data,r.blueprint,i,!0),bl(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}class Tl{}class jl{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${N(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Al=(()=>{class t{}return t.NULL=new jl,t})(),kl=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Il(t),t})();const Il=function(t){return qo(t,ze(),Be())};class Dl{}var Rl=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Pl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Fl(),t})();const Fl=function(){const t=Be(),e=ke(ze().index,t);
vendor: 8,012 bytes, line 1
1return function(t){const e=t[11];if(Oe(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Yt(e)?e:t)};let Nl=(()=>{class t{}return t.\u0275prov=x({token:t,providedIn:"root",factory:()=>null}),t})();class Ll{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ml=new Ll("10.2.4");class Vl{constructor(){}supports(t){return Hs(t)}create(t){return new Bl(t)}}const Ul=(t,e)=>e;class Bl{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||Ul}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<Ql(n,r,i)?e:n,s=Ql(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=[]),!Hs(t))throw new Error(`Error trying to diff '${N(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&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,e)),Object.is(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[Bs()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,t,r,e)),Object.is(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;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,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))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new ql(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 zl),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new zl),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 ql{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 Hl{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class zl{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Hl,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 Ql(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 Gl{constructor(){}supports(t){return t instanceof Map||zs(t)}create(){return new Wl}}class Wl{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;
1e=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||zs(t)))throw new Error(`Error trying to diff '${N(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 $l(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class $l{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 Kl=(()=>{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 b,new y]]}}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=x({token:t,providedIn:"root",factory:()=>new t([new Vl])}),t})(),Xl=(()=>{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 b,new y]]}}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=x({token:t,providedIn:"root",factory:()=>new t([new Gl])}),t})();const Yl=[new Gl],Jl=new Kl([new Vl]),Zl=new Xl(Yl);let th=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>eh(t,kl),t})();const eh=function(t,e){return Ho(t,e,ze(),Be())};let nh=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>rh(t,kl),t})();const rh=function(t,e){return zo(t,e,ze(),Be())},ih={};class oh extends Al{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Qt(t);return new uh(e,this.ngModule)}}function sh(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const ah=new nt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>se});class uh extends Tl{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(di).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return sh(this.componentDef.inputs)}get outputs(){return sh(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,ih,i);return o!==ih||r===ih?o:e.get(n,r,i)}}}(t,r.injector):t,o=i.get(Dl,Se),s=i.get(Nl,null),a=o.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Oe(t))return t.selectRootElement(e,n===It.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):ji(u,o.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?ve:"math"===e?be:null}(u)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:se,clean:lo,playerHandler:null,flags:0}
1,f=Vi(0,null,null,1,0,null,null,null,null,null),d=Ai(null,f,h,l,null,null,o,a,s,i);let p,m;un(d);try{const t=function(t,e,n,r,i,o){const s=n[1];n[20]=t;const a=ki(s,0,2,null,null),u=a.mergedAttrs=e.hostAttrs;null!==u&&(As(a,u,!0),null!==t&&(jn(i,t,u),null!==a.classes&&No(i,t,a.classes),null!==a.styles&&Fo(i,t,a.styles)));const c=r.createRenderer(t,e),l=Ai(n,Mi(e),null,e.onPush?64:16,n[20],a,r,c,null,null);return s.firstCreatePass&&(Hn(Vn(a,n),s,e.type),$i(s,a),Xi(a,n.length,1)),oo(n,l),n[20]=l}(c,this.componentDef,d,o,a);if(c)if(n)jn(a,c,["ng-version",Ml.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(!ui(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&jn(a,c,t),e&&e.length>0&&No(a,c,e.join(" "))}if(m=je(f,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=e[n];t.push(null!=r?Array.from(r):null)}}p=function(t,e,n,r,i){const o=n[1],s=function(t,e,n){const r=ze();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Wi(t,r,1),Yi(t,e,n));const i=$n(e,t,e.length-1,r);ei(i,e);const o=Te(r,e);return o&&ei(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=ze();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){mn(a.index-Kt);const t=n[1];zi(t,e),Qi(t,n,e.hostVars),Gi(e,s)}return s}(t,this.componentDef,d,h,[ks]),Ii(f,d,null)}finally{dn()}return new ch(this.componentType,p,qo(kl,m,d),d,m)}}class ch 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 Mo(r),this.componentType=t}get injector(){return new Yn(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 lh=new Map;class hh extends _t{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new oh(this);const n=$t(t),r=t[Z]||null;r&&jc(r),this._bootstrapComponents=le(n.bootstrap),this._r3Injector=bs(t,e,[{provide:_t,useValue:this},{provide:Al,useValue:this.componentFactoryResolver}],N(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ts.THROW_IF_NOT_FOUND,n=E.Default){return t===Ts||t===_t||t===rt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class fh extends wt{constructor(t){super(),this.moduleType=t,null!==$t(t)&&function(t){const e=new Set;!function t(n){const r=$t(n,!0),i=r.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${N(e)} vs ${N(e.name)}`)}(i,lh.get(i),n),lh.set(i,n));const o=le(r.imports);for(const s of o)e.has(s)||(e.add(s),t(s))}(t)}(t)}create(t){return new hh(this.moduleType,t)}}function dh(t,e,n){const r=Xe()+t,i=Be();return i[r]===pi?Qs(i,r,n?e.call(n):e()):Gs(i,r)}function ph(t,e,n,r){return Sh(Be(),Xe(),t,e,n,r)}function mh(t,e,n,r,i){return xh(Be(),Xe(),t,e,n,r,i)}function gh(t,e,n,r,i,o){return Ch(Be(),Xe(),t,e,n,r,i,o)}function yh(t,e,n,r,i,o,s){return Th(Be(),Xe(),t,e,n,r,i,o,s)}function vh(t,e,n,r,i,o,s,a){const u=Xe()+t,c=Be(),l=Xs(c,u,n,r,i,o);return Ws(c,u+4,s)||l?Qs(c,u+5,a?e.call(a,n,r,i,o,s):e(n,r,i,o,s)):Gs(c,u+5)}function bh(t,e,n,r,i,o,s,a,u){const c=Xe()+t,l=Be(),h=Xs(l,c,n,r,i,o);return $s(l,c+4,s,a)||h?Qs(l,c+6,u?e.call(u,n,r,i,o,s,a):e(n,r,i,o,s,a)):Gs(l,c+6)}function _h(t,e,n,r,i,o,s,a,u,c){const l=Xe()+t,h=Be();let f=Xs(h,l,n,r,i,o);return Ks(h,l+4,s,a,u)||f?Qs(h,l+7,c?e.call(c,n,r,i,o,s,a,u):e(n,r,i,o,s,a,u)):Gs(h,l+7)}function wh(t,e,n,r,i,o,s,a,u,c,l){const h=Xe()+t,f=Be(),d=Xs(f,h,n,r,i,o);return Xs(f,h+4,s,a,u,c)||d?Qs(f,h+8,l?e.call(l,n,r,i,o,s,a,u,c):e(n,r,i,o,s,a,u,c)):Gs(f,h+8)}function Eh(t,e,n,r){return jh(Be(),Xe(),t,e,n,r)}function Oh(t,e){const n=t[e];return n===pi?void 0:n}function Sh(t,e,n,r,i,o){const s=e+n;
1return Ws(t,s,i)?Qs(t,s+1,o?r.call(o,i):r(i)):Oh(t,s+1)}function xh(t,e,n,r,i,o,s){const a=e+n;return $s(t,a,i,o)?Qs(t,a+2,s?r.call(s,i,o):r(i,o)):Oh(t,a+2)}function Ch(t,e,n,r,i,o,s,a){const u=e+n;return Ks(t,u,i,o,s)?Qs(t,u+3,a?r.call(a,i,o,s):r(i,o,s)):Oh(t,u+3)}function Th(t,e,n,r,i,o,s,a,u){const c=e+n;return Xs(t,c,i,o,s,a)?Qs(t,c+4,u?r.call(u,i,o,s,a):r(i,o,s,a)):Oh(t,c+4)}function jh(t,e,n,r,i,o){let s=e+n,a=!1;for(let u=0;u<i.length;u++)Ws(t,s++,i[u])&&(a=!0);return a?Qs(t,s,r.apply(o,i)):Oh(t,s)}function Ah(t,e){const n=qe();let r;const i=t+Kt;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=Wt(r.type)),s=ht(va);try{const e=Ln(!1),r=o();return Ln(e),function(t,e,n,r){const i=n+Kt;i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=r}(n,Be(),t,r),r}finally{ht(s)}}function kh(t,e,n){const r=Be(),i=Ae(r,t);return Nh(r,Fh(r,t)?Sh(r,Xe(),e,i.transform,n,i):i.transform(n))}function Ih(t,e,n,r){const i=Be(),o=Ae(i,t);return Nh(i,Fh(i,t)?xh(i,Xe(),e,o.transform,n,r,o):o.transform(n,r))}function Dh(t,e,n,r,i){const o=Be(),s=Ae(o,t);return Nh(o,Fh(o,t)?Ch(o,Xe(),e,s.transform,n,r,i,s):s.transform(n,r,i))}function Rh(t,e,n,r,i,o){const s=Be(),a=Ae(s,t);return Nh(s,Fh(s,t)?Th(s,Xe(),e,a.transform,n,r,i,o,a):a.transform(n,r,i,o))}function Ph(t,e,n){const r=Be(),i=Ae(r,t);return Nh(r,Fh(r,t)?jh(r,Xe(),e,i.transform,n,i):i.transform.apply(i,n))}function Fh(t,e){return t[1].data[e+Kt].pure}function Nh(t,e){return qs.isWrapped(e)&&(e=qs.unwrap(e),t[Ye()]=pi),e}const Lh=class 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 Mh(){return this._results[Bs()]()}class Vh{constructor(){this.dirty=!0,this._results=[],this.changes=new Lh,this.length=0;const t=Bs(),e=Vh.prototype;e[t]||(e[t]=Mh)}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 Uh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Uh(this.queryList)}setDirty(){this.queryList.setDirty()}}class Bh{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 Bh(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!==of(t,e).matches&&this.queries[e].setDirty()}}class qh{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class Hh{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);
1i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new Hh(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 zh{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 zh(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&3===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const i=n[r];this.matchTNodeWithReadOption(t,e,Qh(e,i)),this.matchTNodeWithReadOption(t,e,Wn(e,t,i,!1,!1))}else n===th?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Wn(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===kl||r===nh||r===th&&0===e.type)this.addMatch(e.index,-2);else{const n=Wn(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 Qh(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 Gh(t,e,n,r){return-1===n?function(t,e){return 2===t.type||3===t.type?qo(kl,t,e):0===t.type?Ho(th,kl,t,e):null}(e,t):-2===n?function(t,e,n){return n===kl?qo(kl,e,t):n===th?Ho(th,kl,e,t):n===nh?zo(nh,kl,e,t):void 0}(t,e,r):$n(t,t[1],n,e)}function Wh(t,e,n,r){const i=e[19].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:Gh(e,r[i],o[t+1],n.metadata.read))}i.matches=s}return i.matches}function $h(t){const e=Be(),n=qe(),r=on();sn(r+1);const i=of(n,r);if(t.dirty&&De(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=Wh(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=Xt;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,o,i)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const r=e[n];t(r[1],r,o,i)}}}}}return i}(n,e,r,[]):Wh(n,e,i,r);t.reset(o),t.notifyOnChanges()}return!0}return!1}function Kh(t,e,n){Yh(qe(),Be(),t,e,n,!0)}function Xh(t,e,n){Yh(qe(),Be(),t,e,n,!1)}function Yh(t,e,n,r,i,o){t.firstCreatePass&&(rf(t,new qh(n,r,o,i),-1),o&&(t.staticViewQueries=!0)),nf(t,e)}function Jh(t,e,n,r){tf(qe(),Be(),e,n,r,!1,ze(),t)}function Zh(t,e,n,r){tf(qe(),Be(),e,n,r,!0,ze(),t)}function tf(t,e,n,r,i,o,s,a){t.firstCreatePass&&(rf(t,new qh(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)),nf(t,e)}function ef(){return t=Be(),e=on(),t[19].queries[e].queryList;var t,e}function nf(t,e){const n=new Vh;Ui(t,e,n,n.destroy),null===e[19]&&(e[19]=new Bh),e[19].queries.push(new Uh(n))}function rf(t,e,n){null===t.queries&&(t.queries=new Hh),t.queries.track(new zh(e,n))}function of(t,e){return t.queries.getByIndex(e)}function sf(t,e){return Ho(th,kl,t,e)}function af(t=E.Default){const e=Qo(!0);if(null!=e||t&E.Optional)return e;he("ChangeDetectorRef")}const uf=(()=>({"\u0275\u0275attribute":Ys,"\u0275\u0275attributeInterpolate1":aa,"\u0275\u0275attributeInterpolate2":ua,"\u0275\u0275attributeInterpolate3":ca,"\u0275\u0275attributeInterpolate4":la,"\u0275\u0275attributeInterpolate5":ha,"\u0275\u0275attributeInterpolate6":fa,"\u0275\u0275attributeInterpolate7":da,"\u0275\u0275attributeInterpolate8":pa,"\u0275\u0275attributeInterpolateV":ma,"\u0275\u0275defineComponent":Ft,"\u0275\u0275defineDirective":Ht,"\u0275\u0275defineInjectable":x,"\u0275\u0275defineInjector":T,"\u0275\u0275defineNgModule":Ut,"\u0275\u0275definePipe":zt,"\u0275\u0275directiveInject":va,"\u0275\u0275getFactoryOf":Jn,"\u0275\u0275getIn
1heritedFactory":Zn,"\u0275\u0275inject":dt,"\u0275\u0275injectAttribute":ba,"\u0275\u0275invalidFactory":_a,"\u0275\u0275invalidFactoryDep":pt,"\u0275\u0275injectPipeChangeDetectorRef":af,"\u0275\u0275templateRefExtractor":sf,"\u0275\u0275NgOnChangesFeature":de,"\u0275\u0275ProvidersFeature":Cl,"\u0275\u0275CopyDefinitionFeature":Vs,"\u0275\u0275InheritDefinitionFeature":Ds,"\u0275\u0275nextContext":La,"\u0275\u0275namespaceHTML":bn,"\u0275\u0275namespaceMathML":vn,"\u0275\u0275namespaceSVG":yn,"\u0275\u0275enableBindings":Ve,"\u0275\u0275disableBindings":Ue,"\u0275\u0275elementStart":Oa,"\u0275\u0275elementEnd":Sa,"\u0275\u0275element":xa,"\u0275\u0275elementContainerStart":Ca,"\u0275\u0275elementContainerEnd":Ta,"\u0275\u0275elementContainer":ja,"\u0275\u0275pureFunction0":dh,"\u0275\u0275pureFunction1":ph,"\u0275\u0275pureFunction2":mh,"\u0275\u0275pureFunction3":gh,"\u0275\u0275pureFunction4":yh,"\u0275\u0275pureFunction5":vh,"\u0275\u0275pureFunction6":bh,"\u0275\u0275pureFunction7":_h,"\u0275\u0275pureFunction8":wh,"\u0275\u0275pureFunctionV":Eh,"\u0275\u0275getCurrentView":Aa,"\u0275\u0275restoreView":He,"\u0275\u0275listener":Da,"\u0275\u0275projection":qa,"\u0275\u0275syntheticHostProperty":dc,"\u0275\u0275syntheticHostListener":Ra,"\u0275\u0275pipeBind1":kh,"\u0275\u0275pipeBind2":Ih,"\u0275\u0275pipeBind3":Dh,"\u0275\u0275pipeBind4":Rh,"\u0275\u0275pipeBindV":Ph,"\u0275\u0275projectionDef":Va,"\u0275\u0275hostProperty":fc,"\u0275\u0275property":wa,"\u0275\u0275propertyInterpolate":Ha,"\u0275\u0275propertyInterpolate1":za,"\u0275\u0275propertyInterpolate2":Qa,"\u0275\u0275propertyInterpolate3":Ga,"\u0275\u0275propertyInterpolate4":Wa,"\u0275\u0275propertyInterpolate5":$a,"\u0275\u0275propertyInterpolate6":Ka,"\u0275\u0275propertyInterpolate7":Xa,"\u0275\u0275propertyInterpolate8":Ya,"\u0275\u0275propertyInterpolateV":Ja,"\u0275\u0275pipe":Ah,"\u0275\u0275queryRefresh":$h,"\u0275\u0275viewQuery":Xh,"\u0275\u0275staticViewQuery":Kh,"\u0275\u0275staticContentQuery":Zh,"\u0275\u0275loadQuery":ef,"\u0275\u0275contentQuery":Jh,"\u0275\u0275reference":ya,"\u0275\u0275classMap":mu,"\u0275\u0275classMapInterpolate1":Vu,"\u0275\u0275classMapInterpolate2":Uu,"\u0275\u0275classMapInterpolate3":Bu,"\u0275\u0275classMapInterpolate4":qu,"\u0275\u0275classMapInterpolate5":Hu,"\u0275\u0275classMapInterpolate6":zu,"\u0275\u0275classMapInterpolate7":Qu,"\u0275\u0275classMapInterpolate8":Gu,"\u0275\u0275classMapInterpolateV":Wu,"\u0275\u0275styleMap":du,"\u0275\u0275styleMapInterpolate1":$u,"\u0275\u0275styleMapInterpolate2":Ku,"\u0275\u0275styleMapInterpolate3":Xu,"\u0275\u0275styleMapInterpolate4":Yu,"\u0275\u0275styleMapInterpolate5":Ju,"\u0275\u0275styleMapInterpolate6":Zu,"\u0275\u0275styleMapInterpolate7":tc,"\u0275\u0275styleMapInterpolate8":ec,"\u0275\u0275styleMapInterpolateV":nc,"\u0275\u0275styleProp":hu,"\u0275\u0275stylePropInterpolate1":rc,"\u0275\u0275stylePropInterpolate2":ic,"\u0275\u0275stylePropInterpolate3":oc,"\u0275\u0275stylePropInterpolate4":sc,"\u0275\u0275stylePropInterpolate5":ac,"\u0275\u0275stylePropInterpolate6":uc,"\u0275\u0275stylePropInterpolate7":cc,"\u0275\u0275stylePropInterpolate8":lc,"\u0275\u0275stylePropInterpolateV":hc,"\u0275\u0275classProp":fu,"\u0275\u0275advance":bi,"\u0275\u0275template":ga,"\u0275\u0275text":ju,"\u0275\u0275textInterpolate":Au,"\u0275\u0275textInterpolate1":ku,"\u0275\u0275textInterpolate2":Iu,"\u0275\u0275textInterpolate3":Du,"\u0275\u0275textInterpolate4":Ru,"\u0275\u0275textInterpolate5":Pu,"\u0275\u0275textInterpolate6":Fu,"\u0275\u0275textInterpolate7":Nu,"\u0275\u0275textInterpolate8":Lu,"\u0275\u0275textInterpolateV":Mu,"\u0275\u0275i18n":pl,"\u0275\u0275i18nAttributes":ml,"\u0275\u0275i18nExp":gl,"\u0275\u0275i18nStart":fl,"\u0275\u0275i18nEnd":dl,"\u0275\u0275i18nApply":yl,"\u0275\u0275i18nPostprocess":vl,"\u0275\u0275resolveWindow":ae,"\u0275\u0275resolveDocument":ue,"\u0275\u0275resolveBody":ce,"\u0275\u0275setComponentScope":Nt,"\u0275\u0275setNgModuleScope":Bt,"\u0275\u0275sanitizeHtml":$r,"\u0275\u0275sanitizeStyle":Kr,"\u0275\u0275sanitizeResourceUrl":Yr,"\u0275\u0275sanitizeScript":Jr,"\u0275\u0275sanitizeUrl":Xr,"\u0275\u0275sanitizeUrlOrResourceUrl":Zr}))();function cf(t,e){let n=null;(function(t,e){let n=null;Object.defineProperty(t,tt,{get:()=>{if(null===n){const r=lf(t,e),i=$();n=i.compileFactory(uf,`ng:///${t.name}/\u0275fac.js`,Object.assign(Object.assign({},r.metadata),{injectFn:"directiveInject",target:i.R3FactoryTarget.Directive}))}return n},configurable:!1})})(t,e||{}),Object.defineProperty(t,X,{get:()=>{if(null===n){const r=lf(t,e||{});n=$().compileDirective(uf,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function lf(t,e){const n=t&&t.name,r=`ng:///${n}/\u0275dir.js`,i=$(),o=function(t,e){const n=is(),r=n.ownPropMetadata(t);return{name:t.name,type:t,typeArgumentCount:0,selector:void 0!==e.selector?e.selector:null,deps:os(t),host:e.host||Dt,propMetadata:r,inputs:e.inputs||Rt,outputs:e.outputs||Rt,queries:df(t,r,pf),lifecycle:{usesOnChanges:n.hasLifecycleHook(t,"ngOnChanges")}
1,typeSourceSpan:null,usesInheritance:!hf(t),exportAs:(i=e.exportAs,void 0===i?null:yf(i)),providers:e.providers||null,viewQueries:df(t,r,mf)};var i}(t,e);return o.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),o.usesInheritance&&function(t){const e=Object.prototype;let n=Object.getPrototypeOf(t.prototype).constructor;for(;n&&n!==e;)Gt(n)||Qt(n)||!bf(n)||cf(n,null),n=Object.getPrototypeOf(n)}(t),{metadata:o,sourceMapUrl:r}}function hf(t){return Object.getPrototypeOf(t.prototype)===Object.prototype}function ff(t,e){return{propertyName:t,predicate:(n=e.selector,"string"==typeof n?yf(n):U(n)),descendants:e.descendants,first:e.first,read:e.read?e.read:null,static:!!e.static};var n}function df(t,e,n){const r=[];for(const i in e)if(e.hasOwnProperty(i)){const o=e[i];o.forEach(e=>{if(n(e)){if(!e.selector)throw new Error(`Can't construct a query for the property "${i}" of "${oe(t)}" since the query selector wasn't defined.`);if(o.some(gf))throw new Error("Cannot combine @Input decorators with query decorators");r.push(ff(i,e))}})}return r}function pf(t){const e=t.ngMetadataName;return"ContentChild"===e||"ContentChildren"===e}function mf(t){const e=t.ngMetadataName;return"ViewChild"===e||"ViewChildren"===e}function gf(t){return"Input"===t.ngMetadataName}function yf(t){return t.split(",").map(t=>t.trim())}const vf=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function bf(t){const e=is();if(vf.some(n=>e.hasLifecycleHook(t,n)))return!0;const n=e.propMetadata(t);for(const r in n){const t=n[r];for(let e=0;e<t.length;e++){const n=t[e],r=n.ngMetadataName;if(gf(n)||pf(n)||mf(n)||"Output"===r||"HostBinding"===r||"HostListener"===r)return!0}}return!1}const _f=f("Directive",(t={})=>t,void 0,void 0,(t,e)=>Ef(t,e)),wf=m("Input",t=>({bindingPropertyName:t})),Ef=cf,Of=new nt("Application Initializer");let Sf=(()=>{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]();ka(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)(dt(Of,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const xf=new nt("AppId"),Cf={provide:xf,useFactory:function(){return`${Tf()}${Tf()}${Tf()}`},deps:[]};function Tf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const jf=new nt("Platform Initializer"),Af=new nt("Platform ID"),kf=new nt("appBootstrapListener");let If=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const Df=new nt("LocaleId"),Rf=new nt("DefaultCurrencyCode");class Pf{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Ff=function(t){return new fh(t)},Nf=Ff,Lf=function(t){return Promise.resolve(Ff(t))},Mf=function(t){const e=Ff(t),n=le($t(t).declarations).reduce((t,e)=>{const n=Qt(e);return n&&t.push(new uh(n)),t},[]);return new Pf(e,n)},Vf=Mf,Uf=function(t){return Promise.resolve(Mf(t))};let Bf=(()=>{class t{constructor(){this.compileModuleSync=Nf,this.compileModuleAsync=Lf,this.compileModuleAndAllComponentsSync=Vf,this.compileModuleAndAllComponentsAsync=Uf}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const qf=(()=>Promise.resolve(0))();function Hf(t){"undefined"==typeof Zone?qf.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class zf{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Lh(!1),this.onMicrotaskEmpty=new Lh(!1),this.onStable=new Lh(!1),this.onError=new Lh(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=G.requestAnimationFrame,e=G.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(G,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,$f(t),Wf(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),$f(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,i,o,s,a)=>{try{return Kf(t),n.invokeTask(i,o,s,a)}finally{e&&"eventTask"===o.type&&e(),Xf(t)}},onInvoke:(e,n,r,i,o,s,a)=>{try{return Kf(t),e.invoke(r,i,o,s,a)}finally{Xf(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,$f(t),Wf(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(n)}
vendor: 4,757 bytes, line 1
1static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!zf.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(zf.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,Gf,Qf,Qf);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 Qf(){}const Gf={};function Wf(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 $f(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Kf(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Xf(t){t._nesting--,Wf(t)}class Yf{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Lh,this.onMicrotaskEmpty=new Lh,this.onStable=new Lh,this.onError=new Lh}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 Jf=(()=>{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:()=>{zf.assertNotInAngularZone(),Hf(()=>{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())Hf(()=>{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)(dt(zf))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),Zf=(()=>{class t{constructor(){this._applications=new Map,rd.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 rd.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();class td{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function ed(t){rd=t}let nd,rd=new td;const id=new nt("AllowMultipleToken");class od{constructor(t,e){this.name=t,this.token=e}}function sd(t,e,n=[]){const r="Platform: "+e,i=new nt(r);return(e=[])=>{let o=ad();if(!o||o.injector.get(id,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:ds,useValue:"platform"});!function(t){if(nd&&!nd.destroyed&&!nd.injector.get(id,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");nd=t.get(ud);
1const e=t.get(jf,null);e&&e.forEach(t=>t())}(Ts.create({providers:t,name:r}))}return function(t){const e=ad();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 ad(){return nd&&!nd.destroyed?nd:null}let ud=(()=>{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 Yf:("zone.js"===t?void 0:t)||new zf({enableLongStackTrace:_r(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:zf,useValue:n}];return n.run(()=>{const e=Ts.create({providers:r,parent:this.injector,name:t.moduleType.name}),i=t.create(e),o=i.injector.get(rr,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>hd(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{o.handleError(t)}})),function(t,e,n){try{const r=n();return ka(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(Sf);return t.runInitializers(),t.donePromise.then(()=>(jc(i.injector.get(Df,Sc)||Sc),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=cd({},e);return function(t,e,n){const r=new fh(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(ld);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${N(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)(dt(Ts))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function cd(t,e){return Array.isArray(e)?e.reduce(cd,t):Object.assign(Object.assign({},t),e)}let ld=(()=>{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=_r(),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(()=>{zf.assertNotInAngularZone(),Hf(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{zf.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 initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Tl?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(_t),i=n.create(Ts.NULL,[],e||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const o=i.injector.get(Jf,null);return o&&i.injector.get(Zf).registerApplication(i.location.nativeElement,o),this._loadComponent(i),_r()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable 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;hd(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(kf,[]).concat(this._bootstrapListeners).forEac
1h(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),hd(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)(dt(zf),dt(If),dt(Ts),dt(rr),dt(Al),dt(Sf))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function hd(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class fd{}class dd{}const pd={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let md=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||pd}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=>gd(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=>gd(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(dt(Bf),dt(dd,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function gd(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const yd=function(t){return null},vd=sd(null,"core",[{provide:Af,useValue:"unknown"},{provide:ud,deps:[Ts]},{provide:Zf,deps:[]},{provide:If,deps:[]}]),bd=[{provide:ld,useClass:ld,deps:[zf,If,Ts,rr,Al,Sf]},{provide:ah,deps:[zf],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Sf,useClass:Sf,deps:[[new y,Of]]},{provide:Bf,useClass:Bf,deps:[]},Cf,{provide:Kl,useFactory:function(){return Jl},deps:[]},{provide:Xl,useFactory:function(){return Zl},deps:[]},{provide:Df,useFactory:function(t){return jc(t=t||"undefined"!=typeof $localize&&$localize.locale||Sc),t},deps:[[new g(Df),new y,new b]]},{provide:Rf,useValue:"USD"}];let _d=(()=>{class t{constructor(t){}}return t.\u0275mod=Ut({type:t}),t.\u0275inj=T({factory:function(e){return new(e||t)(dt(ld))},providers:bd}),t})()},fmRc:function(t,e,n){var r=n("Xi7e"),i=n("77Zs"),o=n("L8xA"),s=n("gCq4"),a=n("VaNO"),u=n("0Cz8");function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},ftKO:function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},g4R6:function(t,e){t.exports=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}},gCq4:function(t,e){t.exports=function(t){return this.__data__.get(t)}},gFfm:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},gRHU:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("2fFW"),i=n("NJ4a");const o={closed:!0,next(t){},error(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete(){}}},gpbi:function(t,e,n){var r=n("ZWtO"),i=n("KxBF");t.exports=function(t,e){return e.length<2?t:r(t,i(e,0,-1))}},gtzJ:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a}));var r=n("SOwp"),i=n("lW6c");function o(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var o=Object(i.b)();if(o&&o[t])return o[t].apply(o,Object(r.__spread)(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function s(t,e){var n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return o("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function a(t){o("withScope",t)}},hIJN:function(t,e,n){t.exports=c;var r=n("eASc"),i=n("nVSS"),o=n("JRE2"),s=n("0Ul8"),a=n("P7XM"),u=n("Z4lL");function c(){s.apply(this,arguments)}function l(){throw new u.AlgoliaSearchError("Not implemented in this environment.\nIf you feel this is a mistake, write to [email protected]")}a(c,s),c.prototype.deleteIndex=function(t,e){return this._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(t),hostType:"write",callback:e})},c.prototype.moveIndex=function(t,e,n){var r={operation:"move",destination:e};return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(t)+"/operation",body:r,hostType:"write",callback:n})},c.prototype.copyIndex=function(t,e,n,r){var i={operation:"copy",destination:e},o=r;if("function"==typeof n)o=n;else if(Array.isArray(n)&&n.length>0)i.scope=n;else if(void 0!==n)throw new Error("the scope given to `copyIndex` was not an array with settings, synonyms or rules");return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(t)+"/operation",body:i,hostType:"write",callback:o})},c.prototype.getLogs=function(t,e,r){var i=n("sLmk"),o={};return"object"==typeof t?(o=i(t),r=e):0===arguments.length||"function"==typeof t?r=t:1===arguments.length||"function"==typeof e?(r=e,o.offset=t):(o.offset=t,o.length=e),void 0===o.offset&&(o.offset=0),void 0===o.length&&(o.length=10),this._jsonRequest({method:"GET",url:"/1/logs?"+this._getSearchParams(o,""),hostType:"read",callback:r})},c.prototype.listIndexes=function(t,e){var n="";return void 0===t||"function"==typeof t?e=t:n="?page="+t,this._jsonRequest({method:"GET",url:"/1/indexes"+n,hostType:"read",callback:e})},c.prototype.initIndex=function(t){return new r(this,t)},c.prototype.initAnalytics=function(t){return n("M6lR")(this.applicationID,this.apiKey,t)},c.prototype.listUserKeys=i((function(t){return this.listApiKeys(t)}),o("client.listUserKeys()","client.listApiKeys()")),c.prototype.listApiKeys=function(t){return this._jsonRequest({method:"GET",url:"/1/keys",hostType:"read",callback:t})},c.prototype.getUserKeyACL=i((function(t,e){return this.getApiKey(t,e)}),o("client.getUserKeyACL()","client.getApiKey()")),c.prototype.getApiKey=function(t,e){return this._jsonRequest({method:"GET",url:"/1/keys/"+t,hostType:"read",callback:e})},c.prototype.deleteUserKey=i((function(t,e){return this.deleteApiKey(t,e)}),o("client.deleteUserKey()","client.deleteApiKey()")),c.prototype.deleteApiKey=function(t,e){return this._jsonRequest({method:"DELETE",url:"/1/keys/"+t,hostType:"write",callback:e})},c.prototype.restoreApiKey=function(t,e){return this._jsonRequest({method:"POST",url:"/1/keys/"+t+"/restore",hostType:"write",callback:e})},c.prototype.addUserKey=i((function(t,e,n){return this.addApiKey(t,e,n)}),o("client.addUserKey()","client.addApiKey()")),c.prototype.addApiKey=function(t,e,r){var i=n("bTTx"),o="Usage: client.addApiKey(arrayOfAcls[, params, callback])";if(!i(t))throw new Error(o);1!==arguments.length&&"function"!=typeof e||(r=e,e=null);var s={acl:t};return e&&(s.validity=e.validity,s.maxQueriesPerIPPerHour=e.maxQueriesPerIPPerHour,s.maxHitsPerQuery=e.maxHitsPerQuery,s.indexes=e.indexes,s.description=e.description,e.queryParameters&&(s.queryParameters=this._getSearchParams(e.queryParameters,"")),s.referers=e.referers),this._jsonRequest({method:"POST",url:"/1/keys",body:s,hostType:"write",callback:r})},c.prototype.addUserKeyWithValidity=i((function(t,e,n){return this.addApiKey(t,e,n)}),o("client.addUserKeyWithValidity()","client.addApiKey()")),c.prototype.updateUserKey=i((function(t,e,n,r){return this.updateApiKey(t,e,n,r)}),o("client.updateUserKey()","client.updateApiKey()")),c.prototype.updateApiKey=function(t,e,r,i){var o=n("bTTx"),s="Usage: client.updateApiKey(key, arrayOfAcls[, params, callback])";if(!o(e))throw new Error(s);2!==arguments.length&&"function"!=typeof r||(i=r,r=null);var a={acl:e};return r&&(a.validity=r.validity,a.maxQueriesPerIPPerHour=r.maxQueriesPerIPPerHour,a.maxHitsPerQuery=r.maxHitsPerQuery,a.indexes=r.indexes,a.description=r.description,r.queryParameters&&(a.queryParameters=this._getSearchParams(r.queryParameters,"")),a.referers=r.referers),this._jsonRequest({method:"PUT",url:"/1/keys/"+t,body:a,hostType:"write",callback:i})},c.prototype.startQueriesBatch=i((function(){this._batch=[]}),o("client.startQueriesBatch()","client.search()")),c.prototype.addQueryInBatch=i((function(t,e,n){this._batch.push({indexName:t,query:e,params:n})}),o("client.addQueryInBatch()","client.search()")),c.prototype.sendQueriesBatch=i((function(t){return this.search(this._batch,t)}),o("client.sendQueriesBatch()","client.search()")),c.prototype.batch=function(t,e){if(!n("bTTx")(t))throw new Error("Usage: client.batch(operations[, callback])");return this._jsonRequest({method:"POST",url:"/1/indexes/*/batch",body:{requests:t},hostType:"write",callback:e})},c.prototype.assignUserID=function(t,e){if(!t.userID||!t.cluster)throw new u.AlgoliaSearchError("You have to provide both a userID and cluster",t);return this._jsonRequest({method:"POST",url:"/1/clusters/mapping",hostType:"write",body:{cluster:t.cluster},callback:e,headers:{"x-algolia-user-id":t.userID}})},c.prototype.assignUserIDs=function(t,e){if(!t.userIDs||!t.cluster)throw new u.AlgoliaSearchError("You have to provide both an array of userIDs and cluster",t);return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/batch",hostType:"write",body:{cluster:t.cluster,users:t.userIDs},callback:e})},c.prototype.getTopUserID=function(t){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/top",hostType:"read",callback:t})},c.prototype.getUserID=function(t,e){if(!t.userID)throw new u.AlgoliaSearchError("You have to provide a userID",{debugData:t});return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/"+t.userID,hostType:"read",callback:e})}
1,c.prototype.listClusters=function(t){return this._jsonRequest({method:"GET",url:"/1/clusters",hostType:"read",callback:t})},c.prototype.listUserIDs=function(t,e){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping",body:t,hostType:"read",callback:e})},c.prototype.removeUserID=function(t,e){if(!t.userID)throw new u.AlgoliaSearchError("You have to provide a userID",{debugData:t});return this._jsonRequest({method:"DELETE",url:"/1/clusters/mapping",hostType:"write",callback:e,headers:{"x-algolia-user-id":t.userID}})},c.prototype.searchUserIDs=function(t,e){return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/search",body:t,hostType:"read",callback:e})},c.prototype.setPersonalizationStrategy=function(t,e){return this._jsonRequest({method:"POST",url:"/1/recommendation/personalization/strategy",body:t,hostType:"write",callback:e})},c.prototype.getPersonalizationStrategy=function(t){return this._jsonRequest({method:"GET",url:"/1/recommendation/personalization/strategy",hostType:"read",callback:t})},c.prototype.destroy=l,c.prototype.enableRateLimitForward=l,c.prototype.disableRateLimitForward=l,c.prototype.useSecuredAPIKey=l,c.prototype.disableSecuredAPIKey=l,c.prototype.generateSecuredApiKey=l,c.prototype.getSecuredApiKeyRemainingValidity=l},heNW:function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},hgQt:function(t,e,n){var r=n("Juji"),i=n("4sDh");t.exports=function(t,e){return null!=t&&i(t,e,r)}},hnrd:function(t,e,n){"use strict";var r=n("hIJN"),i=n("P5ON");t.exports=i(r,"Browser")},hypo:function(t,e,n){var r=n("O0oS");t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},idmN:function(t,e,n){var r=n("ZWtO"),i=n("FZoo"),o=n("4uTw");t.exports=function(t,e,n){for(var s=-1,a=e.length,u={};++s<a;){var c=e[s],l=r(t,c);n(l,c)&&i(u,o(c,t),l)}return u}},ieoY:function(t,e,n){var r=n("EldB"),i=n("Kz5y");t.exports=function(t,e,n){var o=1&e,s=r(t);return function e(){var r=this&&this!==i&&this instanceof e?s:t;return r.apply(o?n:this,arguments)}}},ijCd:function(t,e,n){var r=n("R/W3"),i=n("MMmD"),o=n("4qC0"),s=n("Sxd8"),a=n("P/G1"),u=Math.max;t.exports=function(t,e,n,c){t=i(t)?t:a(t),n=n&&!c?s(n):0;var l=t.length;return n<0&&(n=u(l+n,0)),o(t)?n<=l&&t.indexOf(e,n)>-1:!!l&&r(t,e,n)>-1}},ilQL:function(t,e,n){var r=n("9SYa"),i=n("nVSS"),o=n("JRE2");function s(t,e){this.indexName=e,this.as=t,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}t.exports=s,s.prototype.clearCache=function(){this.cache={}},s.prototype.search=r("query"),s.prototype.similarSearch=i(r("similarQuery"),o("index.similarSearch(query[, callback])","index.search({ similarQuery: query }[, callback])")),s.prototype.browse=function(t,e,r){var i,o,s=n("MYMM"),a=this;0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(i=0,r=arguments[0],t=void 0):"number"==typeof arguments[0]?(i=arguments[0],"number"==typeof arguments[1]?o=arguments[1]:"function"==typeof arguments[1]&&(r=arguments[1],o=void 0),t=void 0,e=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(r=arguments[1]),e=arguments[0],t=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(r=arguments[1],e=void 0),e=s({},e||{},{page:i,hitsPerPage:o,query:t});var u=this.as._getSearchParams(e,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(a.indexName)+"/browse",body:{params:u},hostType:"read",callback:r})},s.prototype.browseFrom=function(t,e){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:t},hostType:"read",callback:e})},s.prototype.searchForFacetValues=function(t,e){var r=n("sLmk"),i=n("PGxr");if(void 0===t.facetName||void 0===t.facetQuery)throw new Error("Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])");var o=t.facetName,s=i(r(t),(function(t){return"facetName"===t})),a=this.as._getSearchParams(s,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(o)+"/query",hostType:"read",body:{params:a}
1,callback:e})},s.prototype.searchFacet=i((function(t,e){return this.searchForFacetValues(t,e)}),o("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),s.prototype._search=function(t,e,n,r){return this.as._jsonRequest({cache:this.cache,method:"POST",url:e||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:t},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:t}},callback:n,additionalUA:r})},s.prototype.getObject=function(t,e,n){var r=this;1!==arguments.length&&"function"!=typeof e||(n=e,e=void 0);var i="";if(void 0!==e){i="?attributes=";for(var o=0;o<e.length;++o)0!==o&&(i+=","),i+=e[o]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(t)+i,hostType:"read",callback:n})},s.prototype.getObjects=function(t,e,r){var i=n("bTTx"),o=n("7Ule"),s="Usage: index.getObjects(arrayOfObjectIDs[, callback])";if(!i(t))throw new Error(s);var a=this;1!==arguments.length&&"function"!=typeof e||(r=e,e=void 0);var u={requests:o(t,(function(t){var n={indexName:a.indexName,objectID:t};return e&&(n.attributesToRetrieve=e.join(",")),n}))};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:u,callback:r})},s.prototype.as=null,s.prototype.indexName=null,s.prototype.typeAheadArgs=null,s.prototype.typeAheadValueOption=null},itXk:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("z+Ro"),i=n("DH7j"),o=n("l7GE"),s=n("ZUHj"),a=n("yCtX");const u={};function c(...t){let e=void 0,n=void 0;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,void 0,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const r=this.values,i=this.toRespond?r[n]===u?--this.toRespond:this.toRespond:0;r[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},itsj:function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},jXQH:function(t,e,n){var r=n("TO8r"),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},jZKg:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("HDdC"),i=n("quSY");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})}},"jbM+":function(t,e,n){var r=n("R/W3");t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},jeLo:function(t,e,n){var r=n("juv8"),i=n("mTTR");t.exports=function(t){return r(t,i(t))}},jhN1:function(t,e,n){"use strict";n.d(e,"a",(function(){return L})),n.d(e,"b",(function(){return I})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return V})),n.d(e,"e",(function(){return F})),n.d(e,"f",(function(){return w}));var r=n("ofXK"),i=n("fXoL");class o extends r.Q{constructor(){super()}supportsDOMEvents(){return!0}}class s extends o{static makeCurrent(){Object(r.U)(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.T)(document.cookie,t)}}let a,u=null;const c=new i.s("TRANSITION_ID"),l=[{provide:i.d,useFactory:function(t,e,n){return()=>{n.get(i.e).donePromise.then(()=>{const n=Object(r.S)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[c,r.e,i.t],multi:!0}];class h{static init(){Object(i.bb)(new h)}
1addToWindow(t){i.sb.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.sb.getAllAngularTestabilities=()=>t.getAllTestabilities(),i.sb.getAllAngularRootElements=()=>t.getAllRootElements(),i.sb.frameworkStabilizers||(i.sb.frameworkStabilizers=[]),i.sb.frameworkStabilizers.push(t=>{const e=i.sb.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.S)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const f=new i.s("EventManagerPlugins");let d=(()=>{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.ec(f),i.ec(i.C))},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.S)().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)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(r.S)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(i.ec(r.e))},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/"},v=/%COMP%/g;function b(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?b(t,i,n):(i=i.replace(v,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.T.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new O(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case i.T.Native:case i.T.ShadowDom:return new S(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=b(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.ec(d),i.ec(g),i.ec(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}
1" 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.I.DashCase?t.style.setProperty(e,n,r&i.I.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&i.I.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 O extends E{constructor(t,e,n,r){super(t),this.component=n;const i=b(r+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(v,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(v,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 S extends E{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===i.T.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const o=b(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.ec(r.e))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})();const C=["alt","control","meta","shift"],T={"\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"},j={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 k=(()=>{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.S)().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(C.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&&j.hasOwnProperty(e)&&(e=j[e]))}return T[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),C.forEach(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.ec(r.e))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Mb)({factory:function(){return Object(i.ec)(R)},token:t,providedIn:"root"}),t})();function D(t){return new R(t.get(r.e))}let R=(()=>{class t extends I{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case i.K.NONE:return e;case i.K.HTML:return Object(i.hb)(e,"HTML")?Object(i.zb)(e):Object(i.fb)(this._doc,String(e));case i.K.STYLE:return Object(i.hb)(e,"Style")?Object(i.zb)(e):e;case i.K.SCRIPT:if(Object(i.hb)(e,"Script"))return Object(i.zb)(e);throw new Error("unsafe value used in a script context");case i.K.URL:return Object(i.rb)(e),Object(i.hb)(e,"URL")?Object(i.zb)(e):Object(i.gb)(String(e));case i.K.RESOURCE_URL:if(Object(i.hb)(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.ib)(t)}bypassSecurityTrustStyle(t){return Object(i.lb)(t)}bypassSecurityTrustScript(t){return Object(i.kb)(t)}bypassSecurityTrustUrl(t){return Object(i.mb)(t)}bypassSecurityTrustResourceUrl(t){return Object(i.jb)(t)}}return t.\u0275fac=function(e){return new(e||t)(i.ec(r.e))},t.\u0275prov=Object(i.Mb)({factory:function(){return D(Object(i.ec)(i.p))},token:t,providedIn:"root"}),t})();const P=[{provide:i.E,useValue:r.R},{provide:i.F,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:r.e,useFactory:function(){return Object(i.xb)(document),document},deps:[]}],F=Object(i.U)(i.ab,"browser",P),N=[[],{provide:i.db,useValue:"root"},{provide:i.n,useFactory:function(){return new i.n},deps:[]},{provide:f,useClass:x,multi:!0,deps:[r.e,i.C,i.E]},{provide:f,useClass:k,multi:!0,deps:[r.e]},[],{provide:w,useClass:w,deps:[d,g,i.c]},{provide:i.H,useExisting:w},{provide:m,useExisting:g},{provide:g,useClass:g,deps:[r.e]},{provide:i.O,useClass:i.O,deps:[i.C]},{provide:d,useClass:d,deps:[f,i.C]},[]];let L=(()=>{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.ec(t,12))},providers:N,imports:[r.c,i.f]}),t})();function M(){return new V(Object(i.ec)(r.e))}let V=(()=>{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.ec(r.e))},t.\u0275prov=Object(i.Mb)({factory:M,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},jq3D:function(t,e){var n=1e3,r=60*n,i=60*r,o=24*i;function s(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}t.exports=function(t,e){e=e||{};var a,u=typeof t;if("string"===u&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(t);if("number"===u&&!1===isNaN(t))return e.long?s(a=t,o,"day")||s(a,i,"hour")||s(a,r,"minute")||s(a,n,"second")||a+" ms":function(t){return t>=o?Math.round(t/o)+"d":t>=i?Math.round(t/i)+"h":t>=r?Math.round(t/r)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},jtHE:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("XNiG"),i=n("qgXg"),o=n("quSY"),s=n("pxpQ"),a=n("9ppp"),u=n("Ylt2");class c extends r.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler
1=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){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(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}}},juv8:function(t,e,n){var r=n("MrPd"),i=n("hypo");t.exports=function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=o?o(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),s?i(n,c,l):r(n,c,l)}return n}},"k+1r":function(t,e,n){var r=n("QkVE");t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},k4Da:function(t,e,n){var r=n("LXxW"),i=n("n3Sm"),o=n("ut/Y"),s=n("Z0cm");t.exports=function(t,e){return(s(t)?r:i)(t,o(e,3))}},"k8Y/":function(t,e,n){var r=n("alwl"),i=n("Z0cm");t.exports=function(t,e,n,o){return null==t?[]:(i(e)||(e=null==e?[]:[e]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},kJWO:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kd2E:function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,o){n=n||"=";var s={};if("string"!=typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e=e||"&");var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var h,f,d,p,m=t[l].replace(a,"%20"),g=m.indexOf(n);g>=0?(h=m.substr(0,g),f=m.substr(g+1)):(h=m,f=""),d=decodeURIComponent(h),p=decodeURIComponent(f),r(s,d)?i(s[d])?s[d].push(p):s[d]=[s[d],p]:s[d]=p}return s};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},kdvv:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l}));var r=n("9/Zf"),i=n("+A1k"),o={nowSeconds:function(){return Date.now()/1e3}},s=Object(i.b)()?function(){try{return Object(i.a)(t,"perf_hooks").performance}catch(e){return}}():function(){var t=Object(r.e)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),a=void 0===s?o:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},u=o.nowSeconds.bind(o),c=a.nowSeconds.bind(a),l=function(){var t=Object(r.e)().performance;if(t)return t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}()}).call(this,n("3UD+")(t))},kekF:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},l7GE:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");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()}}},l9OW:function(t,e,n){var r=n("SKAX"),i=n("MMmD");t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},lAdM:function(t,e,n){"use strict";var r=n("GA8c"),i=n("TUb6"),o=n("Qyje"),s=n("JpaV"),a=n("bNQv"),u=n("JZM8"),c=n("3WF5"),l=n("RHI1"),h=n("noZS"),f=n("4qC0"),d=n("YO3V"),p=n("E+oP"),m=n("J/PD"),g=n("0jNN").encode;function y(t){return d(t)?h(t,y):Array.isArray(t)?c(t,y):f(t)?g(t):t}var v=["dFR","fR","nR","hFR","tR"],b=r.ENCODED_PARAMETERS;function _(t,e,n,r){if(null!==t&&(n=n.replace(t,""),r=r.replace(t,"")),r=e[r]||r,-1!==b.indexOf(n=e[n]||n)||-1!==b.indexOf(r)){if("q"===n)return-1;if("q"===r)return 1;var i=-1!==v.indexOf(n),o=-1!==v.indexOf(r);if(i&&!o)return 1;if(o&&!i)return-1}return n.localeCompare(r)}e.getStateFromQueryString=function(t,e){var n=e&&e.prefix||"",s=m(e&&e.mapping||{}),a=o.parse(t),c=new RegExp("^"+n),h=l(a,(function(t,e){var i=n&&c.test(e)?e.replace(c,""):e;return r.decode(s[i]||i)||i})),f=i._parseNumbers(h);return u(f,i.PARAMETERS)},e.getUnrecognizedParametersInQueryString=function(t,e){var n=e&&e.prefix,i=m(e&&e.mapping||{}),s={},u=o.parse(t);if(n){var c=new RegExp("^"+n);a(u,(function(t,e){c.test(e)||(s[e]=t)}))}else a(u,(function(t,e){r.decode(i[e]||e)||(s[e]=t)}));return s},e.getQueryStringFromState=function(t,e){var n=e&&e.moreAttributes,i=e&&e.prefix||"",a=e&&e.mapping||{},u=e&&e.safe||!1,c=m(a),h=u?t:y(t),f=l(h,(function(t,e){var n=r.encode(e);return i+(a[n]||n)})),d=""===i?null:new RegExp("^"+i),g=s(_,null,d,c);if(!p(n)){var v=o.stringify(f,{encode:u,sort:g}
1),b=o.stringify(n,{encode:u});return v?v+"&"+b:b}return o.stringify(f,{encode:u,sort:g})}},lJxs:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");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)}}},lPP5:function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return w})),n.d(e,"c",(function(){return E})),n.d(e,"d",(function(){return _}));var r=n("fXoL"),i=n("ofXK"),o=n("XNiG"),s=n("LRne"),a=n("PqYM"),u=n("itXk"),c=n("lJxs"),l=n("IzEk"),h=n("vkgz"),f=n("JX91"),d=n("eIep"),p=n("UXun");function m(t,e){if(1&t&&(r.Wb(0,"div",3),r.Rb(1,"div",4),r.Vb()),2&t){const t=r.mc(2);r.Db(1),r.Pc("width",t.diameter)("height",t.diameter)}}function g(t,e){if(1&t&&r.Rb(0,"div",5),2&t){const t=r.mc().ngIf,e=r.mc();r.Pc("background",e.color)("height",e.height)("width",t+"%")}}function y(t,e){if(1&t&&(r.Ub(0),r.Qc(1,m,2,4,"div",1),r.Qc(2,g,1,6,"div",2),r.Tb()),2&t){const t=r.mc();r.Db(1),r.tc("ngIf",t.includeSpinner),r.Db(1),r.tc("ngIf",t.includeBar)}}class v{constructor(t={}){this.config=t,this.state={action:null,value:0,initialValue:0},this.requests=null,this.disabled=!1,this.stream$=new o.a,this._value$=null,this.timer$=t=>{let e=Object(s.a)(t);switch(t.action){case"start":case"increment":case"set":"start"===t.action&&0===this.config.latencyThreshold&&0===t.value&&(t.value=t.initialValue),this.requests>0&&(e=Object(a.a)(this.config.latencyThreshold,250).pipe(Object(c.a)(e=>Object.assign(Object.assign({},t),{value:0===e?this.state.value||t.initialValue:this._increment()}))));break;case"complete":case"stop":e=0===t.value?Object(s.a)(Object.assign({},t)):Object(a.a)(0,500).pipe(Object(l.a)(2),Object(c.a)(t=>({value:0===t?100:0})))}return e.pipe(Object(c.a)(t=>Object.assign(Object.assign({},t),{action:"set"})),Object(h.a)(t=>this.next(t,!1)))},this.config=Object.assign({latencyThreshold:0},t)}get value$(){return this._value$?this._value$:this._value$=this.stream$.asObservable().pipe(Object(f.a)(this.state),Object(d.a)(t=>this.timer$(t)),Object(p.a)(),Object(c.a)(t=>t.value))}start(t=2){this.disabled||this.next({action:"start",initialValue:t})}stop(){this.next({action:"stop"})}complete(){this.next({action:"complete"})}disable(){this.disabled=!0}set(t){this.next({action:"set",value:t})}increment(t=0){this.next({action:"increment",value:t})}next(t,e=!0){switch(t.action){case"start":this.requests=(this.requests||0)+1;break;case"complete":if(this.requests=(this.requests||1)-1,this.requests>0)return;break;case"stop":this.requests=0;break;case"increment":t.value=this._increment(t.value)}this.state=Object.assign(Object.assign(Object.assign({},this.state),{action:null}),t),e&&this.stream$.next(this.state)}_increment(t=0){const e=this.state.value;return e>=99&&(t=0),0===t&&(t=e>=0&&e<25?3*Math.random()+3:e>=25&&e<65?3*Math.random():e>=65&&e<90?2*Math.random():e>=90&&e<99?.5:0),t+e}}const b=new r.s("LOADING_BAR_CONFIG");let _=(()=>{let t=class{constructor(t,e={}){this.platformId=t,this.config=e,this.refs={},this.streams$=new o.a,this.value$=this.streams$.asObservable().pipe(Object(f.a)(null),Object(d.a)(()=>Object(u.a)(...Object.keys(this.refs).map(t=>this.refs[t].value$))),Object(c.a)(t=>Math.max(0,...t)))}get progress$(){return this.value$}start(t=2){this.useRef().start(t)}set(t){this.useRef().set(t)}increment(t){this.useRef().increment(t)}complete(){this.useRef().complete()}stop(){this.useRef().stop()}useRef(t="default"){return this.refs[t]||(this.refs[t]=new v(this.config),this.streams$.next(),Object(i.O)(this.platformId)||this.refs[t].disable()),this.refs[t]}};return t.\u0275fac=function(e){return new(e||t)(r.ec(r.E),r.ec(b,8))},t.\u0275prov=Object(r.Mb)({factory:function(){return new t(Object(r.ec)(r.E),Object(r.ec)(b,8))},token:t,providedIn:"root"}),t})(),w=(()=>{let t=class{constructor(t){this.loader=t,this.includeSpinner=!0,this.includeBar=!0,this.fixed=!0,this.color="#29d"}get value$(){return this.ref?this.loader.useRef(this.ref).value$:this.loader.value$}};return t.\u0275fac=function(e){return new(e||t)(r.Qb(_))},t.\u0275cmp=r.Kb({type:t,selectors:[["ngx-loading-bar"]],hostVars:3,hostBindings:function(t,e){2&t&&(r.Eb("fixed",e.fixed),r.Pc("color",e.color))},inputs:{includeSpinner:"includeSpinner",includeBar:"includeBar",fixed:"fixed",color:"color",value:"value",ref:"ref",height:"height",diameter:"diameter"},decls:2,vars:3,consts:[[4,"ngIf"],["class","ngx-spinner",4,"ngIf"],["class","ngx-bar",3,"background","height","width",4,"ngIf"],[1,"ngx-spinner"],[1,"ngx-spinner-icon"],[1,"ngx-bar"]],template:function(t,e){1&t&&(r.Qc(0,y,3,2,"ng-container",0),r.nc(1,"async")),2&t&&r.tc("ngIf",null!=e.value?e.value:r.oc(1,1,e.value$))},directives:[i.u],pipes:[i.b],styles:["[_nghost-%COMP%]{position:relative;display:block;pointer-events:none}[_nghost-%COMP%]   .ngx-spinner[_ngcontent-%COMP%]{transition:350ms linear;display:block;position:absolute;top:5px;left:0}[_nghost-%COMP%]   .ngx-spinner[_ngcontent-%COMP%]   .ngx-spinner-icon[_ngcontent-%COMP%]{width:14px;
1height:14px;border:2px solid transparent;border-top-color:inherit;border-left-color:inherit;border-radius:50%;-webkit-animation:.4s linear infinite loading-bar-spinner;animation:.4s linear infinite loading-bar-spinner}[_nghost-%COMP%]   .ngx-bar[_ngcontent-%COMP%]{transition:width 350ms;position:absolute;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl]   [_nghost-%COMP%]   .ngx-bar[_ngcontent-%COMP%]{right:0;left:unset}[fixed=true][_nghost-%COMP%]{z-index:10002}[fixed=true][_nghost-%COMP%]   .ngx-bar[_ngcontent-%COMP%]{position:fixed}[fixed=true][_nghost-%COMP%]   .ngx-spinner[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}[dir=rtl]   [fixed=true][_nghost-%COMP%]   .ngx-spinner[_ngcontent-%COMP%]{right:10px;left:unset}@-webkit-keyframes loading-bar-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"],changeDetection:0}),t})(),E=(()=>{let t=class{};return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t})()},lQqw:function(t,e,n){var r=n("MMmD");t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},lSCD:function(t,e,n){var r=n("NykK"),i=n("GoyQ");t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},lW6c:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return d})),n.d(e,"b",(function(){return m}));var r=n("SOwp"),i=n("yksw"),o=n("9/Zf"),s=n("kdvv"),a=n("8LbN"),u=n("+A1k"),c=n("KjyA"),l=n("6PXS"),h=function(){function t(t){this.errors=0,this.sid=Object(o.j)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=i.a.Ok,this.init=!0,t&&this.update(t)}return t.prototype.update=function(t){void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:Object(o.j)()),void 0!==t.init&&(this.init=t.init),t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.duration="number"==typeof t.duration?t.duration:this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===i.a.Ok?this.update({status:i.a.Exited}):this.update()},t.prototype.toJSON=function(){return Object(l.a)({sid:""+this.sid,init:this.init,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Object(l.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),f=function(){function t(t,e,n){void 0===e&&(e=new c.a),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=e,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=c.a.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=Object(o.j)(),i=e;if(!e){var s=void 0;try{throw new Error("Sentry syntheticException")}catch(t){s=t}i={originalException:t,syntheticException:s}}return this._invokeClient("captureException",t,Object(r.__assign)(Object(r.__assign)({},i),{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var i=this._lastEventId=Object(o.j)(),s=n;
1if(!n){var a=void 0;try{throw new Error(t)}catch(u){a=u}s={originalException:t,syntheticException:a}}return this._invokeClient("captureMessage",t,e,Object(r.__assign)(Object(r.__assign)({},s),{event_id:i})),i},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=Object(o.j)();return this._invokeClient("captureEvent",t,Object(r.__assign)(Object(r.__assign)({},e),{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop(),i=n.scope,a=n.client;if(i&&a){var u=a.getOptions&&a.getOptions()||{},c=u.beforeBreadcrumb,l=void 0===c?null:c,h=u.maxBreadcrumbs,f=void 0===h?100:h;if(!(f<=0)){var d=Object(s.b)(),p=Object(r.__assign)({timestamp:d},t),m=l?Object(o.c)((function(){return l(p,e)})):p;null!==m&&i.addBreadcrumb(m,Math.min(f,100))}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope;n&&e.client&&t(n)},t.prototype.run=function(t){var e=p(this);try{t(this)}finally{p(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return a.a.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t,e,n,r,i;null===(n=null===(e=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)||void 0===e?void 0:e.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(i=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===i||i.setSession()},t.prototype.startSession=function(t){var e=this.getStackTop(),n=e.scope,o=e.client,s=o&&o.getOptions()||{},a=s.release,u=s.environment,c=new h(Object(r.__assign)(Object(r.__assign)({release:a,environment:u},n&&{user:n.getUser()}),t));if(n){var l=n.getSession&&n.getSession();l&&l.status===i.a.Ok&&l.update({status:i.a.Exited}),this.endSession(),n.setSession(c)}return c},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var r=e.getSession&&e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},t.prototype._invokeClient=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.getStackTop(),s=o.scope,a=o.client;a&&a[t]&&(e=a)[t].apply(e,Object(r.__spread)(n,[s]))},t.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=d(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,e);a.a.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function d(){var t=Object(o.e)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function p(t){var e=d(),n=y(e);return v(e,t),n}function m(){var t=d();return g(t)&&!y(t).isOlderThan(3)||v(t,new f),Object(u.b)()?function(t){var e,n,r;try{var i=null===(r=null===(n=null===(e=d().__SENTRY__)||void 0===e?void 0:e.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;if(!i)return y(t);if(!g(i)||y(i).isOlderThan(3)){var o=y(t).getStackTop();v(i,new f(o.client,c.a.clone(o.scope)))}return y(i)}catch(s){return y(t)}}(t):y(t)}function g(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function y(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new f),t.__SENTRY__.hub}function v(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}},la6v:function(t,e,n){var r=n("EA7m"),i=n("ljhN"),o=n("mv/X"),s=n("mTTR"),a=Object.prototype,u=a.hasOwnProperty,c=r((function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n<r;)for(var l=e[n],h=s(l),f=-1,d=h.length;++f<d;){var p=h[f],m=t[p];(void 0===m||i(m,a[p])&&!u.call(t,p))&&(t[p]=l[p])}return t}));t.exports=c},ljhN:function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},"lm/5":function(t,e,n){var r=n("fmRc"),i=n("wF/u");t.exports=function(t,e,n,o){var s=n.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var c=n[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=n[s])[0],h=t[l],f=c[1];if(u&&c[2]){if(void 0===h&&!(l in t))return!1}else{var d=new r;if(o)var p=o(h,f,l,t,e,d);if(!(void 0===p?i(f,h,3,o,d):p))return!1}}return!0}},mCNh:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}
1));var r=n("SpAZ");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)}}},mTTR:function(t,e,n){var r=n("b80T"),i=n("QcOe"),o=n("MMmD");t.exports=function(t){return o(t)?r(t,!0):i(t)}},mc0g:function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===n(o[u],u,o))break}return e}}},mdPL:function(t,e,n){(function(t){var r=n("WFqU"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,n("YuTi")(t))},mrSG:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return a}));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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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,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 a(){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}},muXY:function(t,e,n){"use strict";t.exports=function(t){return function(e,n){var h=t.hierarchicalFacets[n],f=t.hierarchicalFacetsRefinements[h.name]&&t.hierarchicalFacetsRefinements[h.name][0]||"",d=t._getHierarchicalFacetSeparator(h),p=t._getHierarchicalRootPath(h),m=t._getHierarchicalShowParentLevel(h),g=function(t,e,n,o,l){return function(h,f,d){var p=h;if(d>0){var m=0;for(p=h;m<d;)p=p&&u(p.data,{isRefined:!0}),m++}if(p){var g=function(t,e,n,r,i){return function(o,s){return(!r||0===s.indexOf(r)&&r!==s)&&(!r&&-1===s.indexOf(n)||r&&s.split(n).length-r.split(n).length==1||-1===s.indexOf(n)&&-1===e.indexOf(n)||0===e.indexOf(s)||0===s.indexOf(t+n)&&(i||0===s.indexOf(e)))}}(p.path||n,l,e,n,o);p.data=s(i(c(f.data,g),function(t,e){return function(n,i){return{name:a(r(i.split(t))),path:i,count:n,isRefined:e===i||0===e.indexOf(i+t),data:null}}}(e,l)),t[0],t[1])}return h}}(l(t._getHierarchicalFacetSortBy(h)),d,p,m,f),y=e;return p&&(y=e.slice(p.split(d).length)),o(y,g,{name:t.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,data:null})}};var r=n("RBan"),i=n("3WF5"),o=n("xaJk"),s=n("k8Y/"),a=n("Zsd2"),u=n("J2m7"),c=n("d8FT"),l=n("CULM")},"mv/X":function(t,e,n){var r=n("ljhN"),i=n("MMmD"),o=n("wJg7"),s=n("GoyQ");t.exports=function(t,e,n){if(!s(n))return!1;var a=typeof e;return!!("number"==a?i(n)&&o(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},mwIZ:function(t,e,n){var r=n("ZWtO");t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},n3Sm:function(t,e,n){var r=n("SKAX");t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},n6bG:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},nVSS:function(t,e){t.exports=function(t,e){var n=!1;return function(){return n||(console.warn(e),n=!0),t.apply(this,arguments)}}},neZw:function(t,e,n){"use strict";var r=n("3WF5"),i=n("UB5X"),o=n("4qC0");t.exports=function t(e){if(i(e))return e;if(o(e))return parseFloat(e);if(Array.isArray(e))return r(e,t);
1throw new Error("The value should be a number, a parseable string or an array of those.")}},ngJS:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}},nmnc:function(t,e,n){var r=n("Kz5y");t.exports=r.Symbol},nmq7:function(t,e,n){"use strict";var r=n("0jNN"),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},a=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,s=/(\[[^[\]]*])/.exec(r),a=s?r.slice(0,s.index):r,u=[];if(a){if(!n.plainObjects&&i.call(Object.prototype,a)&&!n.allowPrototypes)return;u.push(a)}for(var c=0;null!==(s=o.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+r.slice(s.index)+"]"),function(t,e,n){for(var r=e,i=t.length-1;i>=0;--i){var o,s=t[i];if("[]"===s&&n.parseArrays)o=[].concat(r);else{o=n.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(a,10);n.parseArrays||""!==a?!isNaN(u)&&s!==a&&String(u)===a&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[])[u]=r:o[a]=r:o={0:r}}r=o}return r}(u,e,n)}};t.exports=function(t,e){var n=function(t){if(!t)return o;if(null!=t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");return{allowDots:void 0===t.allowDots?o.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,charset:void 0===t.charset?o.charset:t.charset,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:o.comma,decoder:"function"==typeof t.decoder?t.decoder:o.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:"number"==typeof t.depth?t.depth:o.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,a={},u=(e.ignoreQueryPrefix?t.replace(/^\?/,""):t).split(e.delimiter,e.parameterLimit===1/0?void 0:e.parameterLimit),c=-1,l=e.charset;if(e.charsetSentinel)for(n=0;n<u.length;++n)0===u[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[n]?l="utf-8":"utf8=%26%2310003%3B"===u[n]&&(l="iso-8859-1"),c=n,n=u.length);for(n=0;n<u.length;++n)if(n!==c){var h,f,d=u[n],p=d.indexOf("]="),m=-1===p?d.indexOf("="):p+1;-1===m?(h=e.decoder(d,o.decoder,l),f=e.strictNullHandling?null:""):(h=e.decoder(d.slice(0,m),o.decoder,l),f=e.decoder(d.slice(m+1),o.decoder,l)),f&&e.interpretNumericEntities&&"iso-8859-1"===l&&(f=s(f)),f&&e.comma&&f.indexOf(",")>-1&&(f=f.split(",")),a[h]=i.call(a,h)?r.combine(a[h],f):f}return a}(t,n):t,c=n.plainObjects?Object.create(null):{},l=Object.keys(u),h=0;h<l.length;++h){var f=l[h],d=a(f,u[f],n);c=r.merge(c,d,n)}return r.compact(c)}},noZS:function(t,e,n){var r=n("hypo"),i=n("JC6p"),o=n("ut/Y");t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},"oCl/":function(t,e,n){var r=n("CH3K"),i=n("LcsW"),o=n("MvSz"),s=n("0ycA");t.exports=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:s},ofXK:function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return Mt})),n.d(e,"c",(function(){return ne})),n.d(e,"d",(function(){return Jt})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return Ht})),n.d(e,"g",(function(){return Xt})),n.d(e,"h",(function(){return A})),n.d(e,"i",(function(){return E})),n.d(e,"j",(function(){return Qt})),n.d(e,"k",(function(){return Gt})),n.d(e,"l",(function(){return Wt})),n.d(e,"m",(function(){return $t})),n.d(e,"n",(function(){return h})),n.d(e,"o",(function(){return O})),n.d(e,"p",(function(){return v})),n.d(e,"q",(function(){return Vt})),n.d(e,"r",(function(){return yt})),n.d(e,"s",(function(){return vt})),n.d(e,"t",(function(){return _t})),n.d(e,"u",(function(){return Et})),n.d(e,"v",(function(){return At})),n.d(e,"w",(function(){return kt})),n.d(e,"x",(function(){return It})),n.d(e,"y",(function(){return Ct})),n.d(e,"z",(function(){return Tt})),n.d(e,"A",(function(){return jt})),n.d(e,"B",(function(){return Dt})),n.d(e,"C",(function(){return w})),n.d(e,"D",(function(){return Yt})),n.d(e,"E",(function(){return c})),n.d(e,"F",(function(){return ee})),n.d(e,"G",(function(){return Bt})),n.d(e,"H",(function(){return k})),n.d(e,"I",(function(){return qt})),n.d(e,"J",(function(){return se})),n.d(e,"K",(function(){return Y})),n.d(e,"L",(function(){return P})),n.d(e,"M",(function(){return R})),n.d(e,"N",(function(){return F})),n.d(e,"O",(function(){return ie})),n.d(e,"P",(function(){return oe})),n.d(e,"Q",(function(){return a})),n.d(e,"R",(function(){return re})),n.d(e,"S",(function(){return o}
1)),n.d(e,"T",(function(){return gt})),n.d(e,"U",(function(){return s}));var r=n("fXoL");let i=null;function o(){return i}function s(t){i||(i=t)}class a{}const u=new r.s("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.ec)(f)}const h=new r.s("Location Initialized");let f=(()=>{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){d()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){d()?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.ec(u))},t.\u0275prov=Object(r.Mb)({factory:p,token:t,providedIn:"platform"}),t})();function d(){return!!window.history.pushState}function p(){return new f(Object(r.ec)(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 v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Mb)({factory:b,token:t,providedIn:"root"}),t})();function b(t){const e=Object(r.ec)(u).location;return new w(Object(r.ec)(c),e&&e.origin||"")}const _=new r.s("appBaseHref");let w=(()=>{class t extends v{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}
1getBaseHref(){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.ec(c),r.ec(_,8))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})(),E=(()=>{class t extends v{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.ec(c),r.ec(_,8))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})(),O=(()=>{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._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(r.ec(v),r.ec(c))},t.normalizeQueryParams=y,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=Object(r.Mb)({factory:S,token:t,providedIn:"root"}),t})();function S(){return new O(Object(r.ec)(v),Object(r.ec)(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]};var T=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scie
1ntific=3]="Scientific",t}({}),j=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),A=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),k=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),I=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),D=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function R(t,e,n){const i=Object(r.nb)(t),o=H([i[r.eb.DayPeriodsFormat],i[r.eb.DayPeriodsStandalone]],e);return H(o,n)}function P(t,e,n){const i=Object(r.nb)(t),o=H([i[r.eb.DaysFormat],i[r.eb.DaysStandalone]],e);return H(o,n)}function F(t,e,n){const i=Object(r.nb)(t),o=H([i[r.eb.MonthsFormat],i[r.eb.MonthsStandalone]],e);return H(o,n)}function N(t,e){return H(Object(r.nb)(t)[r.eb.DateFormat],e)}function L(t,e){return H(Object(r.nb)(t)[r.eb.TimeFormat],e)}function M(t,e){return H(Object(r.nb)(t)[r.eb.DateTimeFormat],e)}function V(t,e){const n=Object(r.nb)(t),i=n[r.eb.NumberSymbols][e];if(void 0===i){if(e===D.CurrencyDecimal)return n[r.eb.NumberSymbols][D.Decimal];if(e===D.CurrencyGroup)return n[r.eb.NumberSymbols][D.Group]}return i}function U(t,e){return Object(r.nb)(t)[r.eb.NumberFormats][e]}const B=r.qb;function q(t){if(!t[r.eb.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[r.eb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function H(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 z(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const Q=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,G={},W=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var $=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),K=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),X=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Y(t,e,n,i){let o=function(t){if(st(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(Q))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(!st(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.nb)(t)[r.eb.LocaleId]}(e);if(G[i]=G[i]||{},G[i][n])return G[i][n];let o="";switch(n){case"shortDate":o=N(e,I.Short);break;case"mediumDate":o=N(e,I.Medium);break;case"longDate":o=N(e,I.Long);break;case"fullDate":o=N(e,I.Full);break;case"shortTime":o=L(e,I.Short);break;case"mediumTime":o=L(e,I.Medium);break;case"longTime":o=L(e,I.Long);break;case"fullTime":o=L(e,I.Full);break;case"short":const n=t(e,"shortTime"),r=t(e,"shortDate");o=J(M(e,I.Short),[n,r]);break;case"medium":const i=t(e,"mediumTime"),s=t(e,"mediumDate");o=J(M(e,I.Medium),[i,s]);break;case"long":const a=t(e,"longTime"),u=t(e,"longDate");o=J(M(e,I.Long),[a,u]);break;case"full":const c=t(e,"fullTime"),l=t(e,"fullDate");o=J(M(e,I.Full),[c,l])}return o&&(G[i][n]=o),o}(n,e)||e;let s,a=[];for(;e;){if(s=W.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=ot(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*(ot(e,r)-r))}(o,i));let c="";return a.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=et(X.Eras,k.Abbreviated);break;case"GGGG":e=et(X.Eras,k.Wide);break;case"GGGGG":e=et(X.Eras,k.Narrow);break;case"y":e=tt(K.FullYear,1,0,!1,!0);break;case"yy":e=tt(K.FullYear,2,0,!0,!0);break;case"yyy":e=tt(K.FullYear,3,0,!1,!0);break;case"yyyy":e=tt(K.FullYear,4,0,!1,!0);break;case"M":case"L":e=tt(K.Month,1,1);break;case"MM":case"LL":e=tt(K.Month,2,1);break;case"MMM":e=et(X.Months,k.Abbreviated);break;case"MMMM":e=et(X.Months,k.Wide);break;case"MMMMM":e=et(X.Months,k.Narrow);break;case"LLL":e=et(X.Months,k.Abbreviated,A.Standalone);break;case"LLLL":e=et(X.Months,k.Wide,A.Standalone);break;case"LLLLL":e=et(X.Months,k.Narrow,A.Standalone);break;case"w":e=rt(1);break;case"ww":e=rt(2);break;case"W":e=rt(1,!0);break;case"d":e=tt(K.Date,1);break;case"dd":e=tt(K.Date,2);break;case"E":case"EE":case"EEE":e=et(X.Days,k.Abbreviated);break;case"EEEE":e=et(X.Days,k.Wide);break;case"EEEEE":e=et(X.Days,k.Narrow);break;case"EEEEEE":e=et(X.Days,k.Short);break;case"a":case"aa":case"aaa":e=et(X.DayPeriods,k.Abbreviated);break;case"aaaa":e=et(X.DayPeriods,k.Wide);break;case"aaaaa":e=et(X.DayPeriods,k.Narrow);break;
vendor: 1,249 bytes, line 1
1case"b":case"bb":case"bbb":e=et(X.DayPeriods,k.Abbreviated,A.Standalone,!0);break;case"bbbb":e=et(X.DayPeriods,k.Wide,A.Standalone,!0);break;case"bbbbb":e=et(X.DayPeriods,k.Narrow,A.Standalone,!0);break;case"B":case"BB":case"BBB":e=et(X.DayPeriods,k.Abbreviated,A.Format,!0);break;case"BBBB":e=et(X.DayPeriods,k.Wide,A.Format,!0);break;case"BBBBB":e=et(X.DayPeriods,k.Narrow,A.Format,!0);break;case"h":e=tt(K.Hours,1,-12);break;case"hh":e=tt(K.Hours,2,-12);break;case"H":e=tt(K.Hours,1);break;case"HH":e=tt(K.Hours,2);break;case"m":e=tt(K.Minutes,1);break;case"mm":e=tt(K.Minutes,2);break;case"s":e=tt(K.Seconds,1);break;case"ss":e=tt(K.Seconds,2);break;case"S":e=tt(K.FractionalSeconds,1);break;case"SS":e=tt(K.FractionalSeconds,2);break;case"SSS":e=tt(K.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=nt($.Short);break;case"ZZZZZ":e=nt($.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=nt($.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=nt($.Long);break;default:return null}return it[t]=e,e}(t);c+=e?e(o,n,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function J(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function Z(t,e,n="-",r,i){let o="";
1(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 tt(t,e,n=0,r=!1,i=!1){return function(o,s){let a=function(t,e){switch(t){case K.FullYear:return e.getFullYear();case K.Month:return e.getMonth();case K.Date:return e.getDate();case K.Hours:return e.getHours();case K.Minutes:return e.getMinutes();case K.Seconds:return e.getSeconds();case K.FractionalSeconds:return e.getMilliseconds();case K.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,o);if((n>0||a>-n)&&(a+=n),t===K.Hours)0===a&&-12===n&&(a=12);else if(t===K.FractionalSeconds)return u=e,Z(a,3).substr(0,u);var u;const c=V(s,D.MinusSign);return Z(a,e,c,r,i)}}function et(t,e,n=A.Format,i=!1){return function(o,s){return function(t,e,n,i,o,s){switch(n){case X.Months:return F(e,o,i)[t.getMonth()];case X.Days:return P(e,o,i)[t.getDay()];case X.DayPeriods:const a=t.getHours(),u=t.getMinutes();if(s){const t=function(t){const e=Object(r.nb)(t);return q(e),(e[r.eb.ExtraData][2]||[]).map(t=>"string"==typeof t?z(t):[z(t[0]),z(t[1])])}(e),n=function(t,e,n){const i=Object(r.nb)(t);q(i);const o=H([i[r.eb.ExtraData][0],i[r.eb.ExtraData][1]],e)||[];return H(o,n)||[]}(e,o,i),s=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,r=a>=e.hours&&u>=e.minutes,i=a<n.hours||a===n.hours&&u<n.minutes;if(e.hours<n.hours){if(r&&i)return!0}else if(r||i)return!0}else if(t.hours===a&&t.minutes===u)return!0;return!1});if(-1!==s)return n[s]}return R(e,o,i)[a<12?0:1];case X.Eras:return function(t,e){return H(Object(r.nb)(t)[r.eb.Eras],e)}(e,i)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(o,s,t,e,n,i)}}function nt(t){return function(e,n,r){const i=-1*r,o=V(n,D.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case $.Short:return(i>=0?"+":"")+Z(s,2,o)+Z(Math.abs(i%60),2,o);case $.ShortGMT:return"GMT"+(i>=0?"+":"")+Z(s,1,o);case $.Long:return"GMT"+(i>=0?"+":"")+Z(s,2,o)+":"+Z(Math.abs(i%60),2,o);case $.Extended:return 0===r?"Z":(i>=0?"+":"")+Z(s,2,o)+":"+Z(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function rt(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=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(4-o.getDay()))),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),r=t.getTime()-e.getTime();i=1+Math.round(r/6048e5)}var o;return Z(i,t,V(r,D.MinusSign))}}const it={};function ot(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}const at=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ut=".",ct="0";function lt(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(ut))>-1&&(s=s.replace(ut,"")),(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;s.charAt(r)===ct;r++);if(r===(o=s.length))e=[0],n=1;else{for(o--;s.charAt(o)===ct;)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,f=e.maxFrac;if(o){const t=o.match(at);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=ft(e)),null!=n&&(h=ft(n)),null!=r?f=ft(r):null!=n&&h>f&&(f=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,f);let d=c.digits,p=c.integerLen;const m=c.exponent;let g=[];for(u=d.every(t=>!t);p<l;p++)d.unshift(0);for(;p<0;p++)d.unshift(0);p>0?g=d.splice(p,d.length):(g=d,d=[0]);const y=[];for(d.length>=e.lgSize&&y.unshift(d.splice(-e.lgSize,d.length).join(""));d.length>e.gSize;)y.unshift(d.splice(-e.gSize,d.length).join(""));d.length&&y.unshift(d.join("")),a=y.join(V(n,r)),g.length&&(a+=V(n,i)+g.join("")),m&&(
1a+=V(n,D.Exponential)+"+"+m)}else a=V(n,D.Infinity);return a=t<0&&!u?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function ht(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(ut)?i.split(ut):[i.substring(0,i.lastIndexOf(ct)+1),i.substring(i.lastIndexOf(ct)+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);t===ct?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 ft(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class dt{}function pt(t,e,n,r){let i="="+t;if(e.indexOf(i)>-1)return i;if(i=n.getPluralCategory(t,r),e.indexOf(i)>-1)return i;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}let mt=(()=>{class t extends dt{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(B(e||this.locale)(t)){case j.Zero:return"zero";case j.One:return"one";case j.Two:return"two";case j.Few:return"few";case j.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(r.ec(r.x))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})();function gt(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 yt=(()=>{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.tb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r.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.v),r.Qb(r.w),r.Qb(r.m),r.Qb(r.G))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})(),vt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}ngOnChanges(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const t=e.get(r.A);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(r.j)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.S))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngC
1omponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[r.Bb]}),t})();class bt{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 _t=(()=>{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.Z)()&&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 bt(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new wt(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 wt(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);
1t.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.S),r.Qb(r.N),r.Qb(r.v))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class wt{constructor(t,e){this.record=t,this.view=e}}let Et=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Ot,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){St("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){St("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.S),r.Qb(r.N))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Ot{constructor(){this.$implicit=null,this.ngIf=null}}function St(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(r.yb)(e)}'.`)}class xt{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 Ct=(()=>{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})(),Tt=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new xt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.S),r.Qb(r.N),r.Qb(Ct,1))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),jt=(()=>{class t{constructor(t,e,n){n._addDefault(new xt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.S),r.Qb(r.N),r.Qb(Ct,1))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),At=(()=>{class t{constructor(t){this._localization=t,this._caseViews={}}set ngPlural(t){this._switchValue=t,this._updateView()}addCase(t,e){this._caseViews[t]=e}_updateView(){this._clearViews();const t=Object.keys(this._caseViews),e=pt(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(dt))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),t})(),kt=(()=>{class t{constructor(t,e,n,r){this.value=t;const i=!isNaN(Number(t));r.addCase(i?"="+t:t,new xt(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r.fc("ngPluralCase"),r.Qb(r.N),r.Qb(r.S),r.Qb(At,1))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngPluralCase",""]]}),t})(),It=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,r]=t.split(".");null!=(e=null!=e&&r?`${e}${r}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.m),r.Qb(r.w),r.Qb(r.G))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}
1),t})(),Dt=(()=>{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.S))},t.\u0275dir=r.Lb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.Bb]}),t})();function Rt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(r.yb)(t)}'`)}class Pt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Ft{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Nt=new Ft,Lt=new Pt;let Mt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(r.vb)(e))return Nt;if(Object(r.ub)(e))return Lt;throw Rt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(r.gc())},t.\u0275pipe=r.Pb({name:"async",type:t,pure:!1}),t})(),Vt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Rt(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Pb({name:"lowercase",type:t,pure:!0}),t})();const Ut
vendor: 7,066 bytes, line 1
1=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g
1;let Bt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Rt(t,e);return e.replace(Ut,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Pb({name:"titlecase",type:t,pure:!0}),t})(),qt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Rt(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Pb({name:"uppercase",type:t,pure:!0}),t})(),Ht=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",r,i){if(null==e||""===e||e!=e)return null;try{return Y(e,n,i||this.locale,r)}catch(o){throw Rt(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.x))},t.\u0275pipe=r.Pb({name:"date",type:t,pure:!0}),t})();const zt=/#/g;let Qt=(()=>{class t{constructor(t){this._localization=t}transform(e,n,r){if(null==e)return"";if("object"!=typeof n||null===n)throw Rt(t,n);return n[pt(e,Object.keys(n),this._localization,r)].replace(zt,e.toString())}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(dt))},t.\u0275pipe=r.Pb({name:"i18nPlural",type:t,pure:!0}),t})(),Gt=(()=>{class t{transform(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw Rt(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Pb({name:"i18nSelect",type:t,pure:!0}),t})(),Wt=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Pb({name:"json",type:t,pure:!1}),t})(),$t=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=Kt){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.w))},t.\u0275pipe=r.Pb({name:"keyvalue",type:t,pure:!1}),t})();function Kt(t,e){const n=t.key,r=e.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n<r?-1:1;if("number"==typeof n&&"number"==typeof r)return n-r;if("boolean"==typeof n&&"boolean"==typeof r)return n<r?-1:1;const i=String(n),o=String(r);return i==o?0:i<o?-1:1}let Xt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,r){if(Zt(e))return null;r=r||this._locale;try{return function(t,e,n){return lt(t,ht(U(e,T.Decimal),V(e,D.MinusSign)),e,D.Group,D.Decimal,n)}(te(e),r,n)}catch(i){throw Rt(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.x))},t.\u0275pipe=r.Pb({name:"number",type:t,pure:!0}),t})(),Yt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,r){if(Zt(e))return null;r=r||this._locale;try{return function(t,e,n){return lt(t,ht(U(e,T.Percent),V(e,D.MinusSign)),e,D.Group,D.Decimal,n,!0).replace(new RegExp("%","g"),V(e,D.PercentSign))}(te(e),r,n)}catch(i){throw Rt(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.x))},t.\u0275pipe=r.Pb({name:"percent",type:t,pure:!0}),t})(),Jt=(()=>{class t{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(e,n,i="symbol",o,s){if(Zt(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.nb)(t)[r.eb.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,r,i){const o=ht(U(e,T.Currency),V(e,D.MinusSign));return o.minFrac=function(t){let e;const n=C[t];return n&&(e=n[2]),"number"==typeof e?e:2}(r),o.maxFrac=o.minFrac,lt(t,o,e,D.CurrencyGroup,D.CurrencyDecimal,i).replace("\xa4",n).replace("\xa4","").trim()}(te(e),s,a,n,o)}catch(u){throw Rt(t,u.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Qb(r.x),r.Qb(r.k))},t.\u0275pipe=r.Pb({name:"currency",type:t,pure:!0}),t})();function Zt(t){return null==t||""===t||t!=t}
1function te(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}let ee=(()=>{class t{transform(e,n,r){if(null==e)return e;if(!this.supports(e))throw Rt(t,e);return e.slice(n,r)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Pb({name:"slice",type:t,pure:!1}),t})(),ne=(()=>{class t{}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[{provide:dt,useClass:mt}]}),t})();const re="browser";function ie(t){return t===re}function oe(t){return"server"===t}let se=(()=>{class t{}return t.\u0275prov=Object(r.Mb)({token:t,providedIn:"root",factory:()=>new ae(Object(r.ec)(u),window,Object(r.ec)(r.n))}),t})();class ae{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.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(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{if(!this.window||!this.window.scrollTo)return!1;const t=ue(this.window.history)||ue(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function ue(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},or5M:function(t,e,n){var r=n("1hJj"),i=n("QoRX"),o=n("xYSL");t.exports=function(t,e,n,s,a,u){var c=1&n,l=t.length,h=e.length;if(l!=h&&!(c&&h>l))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,m=!0,g=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p<l;){var y=t[p],v=e[p];if(s)var b=c?s(v,y,p,e,t,u):s(y,v,p,t,e,u);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(e,(function(t,e){if(!o(g,e)&&(y===t||a(y,t,n,s,u)))return g.push(e)}))){m=!1;break}}else if(y!==v&&!a(y,v,n,s,u)){m=!1;break}}return u.delete(t),u.delete(e),m}},"otv/":function(t,e,n){var r=n("nmnc"),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},pFRH:function(t,e,n){var r=n("cvCv"),i=n("O0oS"),o=n("zZ0H");t.exports=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o},pLZG:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");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)}}},pRiV:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r="<anonymous>";function i(t){try{return t&&"function"==typeof t&&t.name||r}catch(e){return r}}},pSRY:function(t,e,n){var r=n("QkVE");t.exports=function(t){return r(this,t).has(t)}},pxpQ:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n("7o/Q"),i=n("WMd4");function o(t,e=0){return function(n){return n.lift(new s(t,e))}}class s{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))}}class a 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(a.dispatch,this.delay,new u(t,this.destination)))}_next(t){this.scheduleMessage(i.a.createNext(t))}_error(t){this.scheduleMessage(i.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(i.a.createComplete()),this.unsubscribe()}}class u{constructor(t,e){this.notification=t,this.destination=e}}},pzgU:function(t,e,n){var r=n("Q1l4"),i=n("wJg7"),o=Math.min;t.exports=function(t,e){for(var n=t.length,s=o(e.length,n),a=r(t);s--;){var u=e[s];t[s]=i(u,n)?a[u]:void 0}return t}},"q/0M":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 f})),n.d(e,"setUserLogHandler",(function(){return d}));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}({}
1),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 "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"==typeof t?a[t]:t},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:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,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 f(t){o.forEach((function(e){e.setLogLevel(t)}))}function d(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])}},q3TU:function(t,e,n){var r=n("y4QH"),i=n("MMiu"),o=n("6KkN"),s="__lodash_placeholder__",a=Math.min;t.exports=function(t,e){var n=t[1],u=e[1],c=n|u;if(!(c<131||128==u&&8==n||128==u&&256==n&&t[7].length<=e[8]||384==u&&e[7].length<=e[8]&&8==n))return t;1&u&&(t[2]=e[2],c|=1&n?0:4);var l=e[3];if(l){var h=t[3];t[3]=h?r(h,l,e[4]):l,t[4]=h?o(t[3],s):e[4]}return(l=e[5])&&(t[5]=(h=t[5])?i(h,l,e[6]):l,t[6]=h?o(t[5],s):e[6]),(l=e[7])&&(t[7]=l),128&u&&(t[8]=null==t[8]?e[8]:a(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=c,t}},qZTm:function(t,e,n){var r=n("fR/l"),i=n("MvSz"),o=n("7GkX");t.exports=function(t){return r(t,o,i)}},qgXg:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return u}));var r=n("3N8a");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("IjjT");class s extends o.a{}const a=new s(i),u=a},quSY:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("DH7j"),i=n("XoHu"),o=n("n6bG");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})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:c,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(Object(o.a)(c)){a&&(this._unsubscribe=void 0);try{c.call(this)}catch(h){e=h instanceof s?u(h.errors):[h]}}if(Object(r.a)(l)){let t=-1,n=l.length;for(;++t<n;){const n=l[t];if(Object(i.a)(n))try{n.unsubscribe()}catch(h){e=e||[],h instanceof s?e=e.concat(u(h.errors)):e.push(h)}}}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),[])}},quyA:function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},qzBT:function(t,e,n){"use strict";function r(){}t.exports=r,n("P7XM")(r,n("8uDF").EventEmitter),r.prototype.stop=function(){this._stopped=!0,this._clean()}
1,r.prototype._end=function(){this.emit("end"),this._clean()},r.prototype._error=function(t){this.emit("error",t),this._clean()},r.prototype._result=function(t){this.emit("result",t)},r.prototype._clean=function(){this.removeAllListeners("stop"),this.removeAllListeners("end"),this.removeAllListeners("error"),this.removeAllListeners("result")}},rEGp:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},"s+kx":function(t,e,n){var r=n("1hJj"),i=n("jbM+"),o=n("Xt/L"),s=n("eUgh"),a=n("sEf8"),u=n("xYSL"),c=Math.min;t.exports=function(t,e,n){for(var l=n?o:i,h=t[0].length,f=t.length,d=f,p=Array(f),m=1/0,g=[];d--;){var y=t[d];d&&e&&(y=s(y,a(e))),m=c(y.length,m),p[d]=!n&&(e||h>=120&&y.length>=120)?new r(d&&y):void 0}y=t[0];var v=-1,b=p[0];t:for(;++v<h&&g.length<m;){var _=y[v],w=e?e(_):_;if(_=n||0!==_?_:0,!(b?u(b,w):l(g,w,n))){for(d=f;--d;){var E=p[d];if(!(E?u(E,w):l(t[d],w,n)))continue t}b&&b.push(w),g.push(_)}}return g}},"s0N+":function(t,e,n){var r=n("zZ0H"),i=n("a5q3");t.exports=i?function(t,e){return i.set(t,e),t}:r},s4NR:function(t,e,n){"use strict";e.decode=e.parse=n("kd2E"),e.encode=e.stringify=n("4JlD")},sEf8:function(t,e){t.exports=function(t){return function(e){return t(e)}}},"sKJ/":function(t,e,n){var r=n("EA7m"),i=n("6T1N"),o=n("V9aw"),s=n("6KkN"),a=r((function(t,e){var n=s(e,o(a));return i(t,32,void 0,e,n)}));a.placeholder={},t.exports=a},sLmk:function(t,e){t.exports=function(t){return JSON.parse(JSON.stringify(t))}},sVev:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},sYn3:function(t,e,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=n("1KsK"),a=Object.prototype.propertyIsEnumerable,u=!a.call({toString:null},"toString"),c=a.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===o.call(t),r=s(t),a=e&&"[object String]"===o.call(t),f=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=c&&n;if(a&&t.length>0&&!i.call(t,0))for(var m=0;m<t.length;++m)f.push(String(m));if(r&&t.length>0)for(var g=0;g<t.length;++g)f.push(String(g));else for(var y in t)p&&"prototype"===y||!i.call(t,y)||f.push(String(y));if(u)for(var v=function(t){if("undefined"==typeof window||!d)return h(t);try{return h(t)}catch(e){return!1}}(t),b=0;b<l.length;++b)v&&"constructor"===l[b]||!i.call(t,l[b])||f.push(l[b]);return f}}t.exports=r},seXi:function(t,e,n){var r=n("qZTm"),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var u=1&n,c=r(t),l=c.length;if(l!=r(e).length&&!u)return!1;for(var h=l;h--;){var f=c[h];if(!(u?f in e:i.call(e,f)))return!1}var d=a.get(t),p=a.get(e);if(d&&p)return d==e&&p==t;var m=!0;a.set(t,e),a.set(e,t);for(var g=u;++h<l;){var y=t[f=c[h]],v=e[f];if(o)var b=u?o(v,y,f,e,t,a):o(y,v,f,t,e,a);if(!(void 0===b?y===v||s(y,v,n,o,a):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var _=t.constructor,w=e.constructor;_==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(t),a.delete(e),m}},shjB:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},spgP:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return j})),n.d(e,"b",(function(){return _})),n.d(e,"c",(function(){return b})),n.d(e,"d",(function(){return w})),n.d(e,"e",(function(){return p})),n.d(e,"f",(function(){return v})),n.d(e,"g",(function(){return C})),n.d(e,"h",(function(){return O})),n.d(e,"i",(function(){return m})),n.d(e,"j",(function(){return y}
1)),n.d(e,"k",(function(){return S}));var r=n("qgXg"),i=n("D0XW"),o=n("vkgz"),s=n("tf+s"),a=n("pxpQ"),u=n("fXoL"),c=n("Wcq6"),l=n.n(c);function h(){}class f{constructor(t,e=r.b){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 d{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",h,{},h,h)),e.pipe(Object(o.a)({next:n,complete:n,error:n})).subscribe(t).add(n)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}class p{constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new f(Zone.current)),this.insideAngular=t.run(()=>new f(Zone.current,i.b))}}function m(t){return function(e){return(e=e.lift(new d(t.ngZone))).pipe(Object(s.a)(t.outsideAngular),Object(a.b)(t.insideAngular))}}const g=["ngOnDestroy"],y=(t,e,n,r={})=>new Proxy(t,{get:(i,o)=>n.runOutsideAngular(()=>{var i;if(t[o])return(null===(i=null==r?void 0:r.spy)||void 0===i?void 0:i.get)&&r.spy.get(o,t[o]),t[o];if(g.indexOf(o)>-1)return()=>{};const s=e.toPromise().then(t=>{const e=t&&t[o];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)=>s[e],apply:(t,e,n)=>s.then(t=>{var e;const i=t&&t(...n);return(null===(e=null==r?void 0:r.spy)||void 0===e?void 0:e.apply)&&r.spy.apply(o,n,i),i})})})}),v=(t,e)=>{e.forEach(e=>{Object.getOwnPropertyNames(e.prototype||e).forEach(n=>{Object.defineProperty(t.prototype,n,Object.getOwnPropertyDescriptor(e.prototype||e,n))})})},b=new u.s("angularfire2.app.options"),_=new u.s("angularfire2.app.nameOrConfig");class w{}const E=new u.R("6.1.4");function O(e,n,r){const i="object"==typeof r&&r||{};i.name=i.name||"string"==typeof r&&r||"[DEFAULT]";const o=l.a.apps.filter(t=>t&&t.name===i.name)[0]||n.runOutsideAngular(()=>l.a.initializeApp(e,i));try{JSON.stringify(e)!==JSON.stringify(o.options)&&x("error",`${o.name} Firebase App already initialized with different options${t.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch(s){}return o}const S=()=>{x("warn","You may need to import 'firebase/auth' manually in your component rather than rely on AngularFireAuth's dynamic import, when using the emulator suite https://github.com/angular/angularfire/issues/2656")},x=(t,...e)=>{Object(u.Z)()&&"undefined"!=typeof console&&console[t](...e)};function C(e,n,r,i,o){const[s,...a]=globalThis.\u0275AngularfireInstanceCache.get(e)||[];if(s){try{o.some((t,e)=>{const n=a[e];return t&&"object"==typeof t?JSON.stringify(t)!==JSON.stringify(n):t!==n})&&x("error",`${n} was already initialized on the ${r.name} Firebase App instance with different settings.${t.hot?" You may need to reload as Firebase is not HMR aware.":""}`)}catch(u){}return s}{const t=i();return globalThis.\u0275AngularfireInstanceCache.set(e,[t,...o]),t}}globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=new Map);const T={provide:w,useFactory:O,deps:[b,u.C,[new u.D,_]]};let j=(()=>{class t{constructor(t){l.a.registerVersion("angularfire",E.full,t.toString()),l.a.registerVersion("angular",u.Q.full)}static initializeApp(e,n){return{ngModule:t,providers:[{provide:b,useValue:e},{provide:_,useValue:n}]}}}return t.\u0275mod=u.Ob({type:t}),t.\u0275inj=u.Nb({factory:function(e){return new(e||t)(u.ec(u.E))},providers:[T]}),t})()}).call(this,n("3UD+")(t))},sxOR:function(t,e,n){"use strict";var r=String.prototype.replace,i=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},t2Dn:function(t,e,n){var r=n("hypo"),i=n("ljhN");t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},t2dP:function(t,e){t.exports=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}},t4mE:function(t,e,n){var r=n("R/W3");t.exports=function(t,e){for(var n=-1,i=t.length;++n<i&&r(e,t[n],0)>-1;);return n}},t8G0:function(t,e,n){"use strict";var r=n("bNQv"),i=n("wig9"),o=n("uoTU"),s=n("UfWW"),a=n("mwIZ"),u=n("a9jo"),c=n("J2m7"),l=n("ijCd"),h=n("3WF5"),f=n("k8Y/"),d=n("la6v"),p=n("QkVN"),m=n("lSCD"),g=n("sKJ/"),y=n("JIMn"),v=n("CULM"),b=n("muXY");function _(t){var e={};return r(t,(function(t,n){e[t]=n})),e}function w(t,e,n){e&&e[n]&&(t.stats=e[n])}function E(t,e){var n=e[0];this._rawResults=e,this.query=n.query,this.parsedQuery=n.parsedQuery,this.hits=n.hits,this.index=n.index,this.hitsPerPage=n.hitsPerPage,this.nbHits=n.nbHits,this.nbPages=n.nbPages,this.page=n.page,this.processingTimeMS=u(e,"processingTimeMS"),this.aroundLatLng=n.aroundLatLng,this.automaticRadius=n.automaticRadius,this.serverUsed=n.serverUsed,this.timeoutCounts=n.timeoutCounts,this.timeoutHits=n.timeoutHits,this.exh
1austiveFacetsCount=n.exhaustiveFacetsCount,this.exhaustiveNbHits=n.exhaustiveNbHits,this.userData=n.userData,this.queryID=n.queryID,this.disjunctiveFacets=[],this.hierarchicalFacets=h(t.hierarchicalFacets,(function(){return[]})),this.facets=[];var a=t.getRefinedDisjunctiveFacets(),f=_(t.facets),m=_(t.disjunctiveFacets),g=1,y=this;r(n.facets,(function(e,r){var i,a=(i=r,c(t.hierarchicalFacets,(function(t){return l(t.attributes,i)})));if(a){var u=a.attributes.indexOf(r),h=s(t.hierarchicalFacets,{name:a.name});y.hierarchicalFacets[h][u]={attribute:r,data:e,exhaustive:n.exhaustiveFacetsCount}}else{var d,p=-1!==o(t.disjunctiveFacets,r),g=-1!==o(t.facets,r);p&&(y.disjunctiveFacets[d=m[r]]={name:r,data:e,exhaustive:n.exhaustiveFacetsCount},w(y.disjunctiveFacets[d],n.facets_stats,r)),g&&(y.facets[d=f[r]]={name:r,data:e,exhaustive:n.exhaustiveFacetsCount},w(y.facets[d],n.facets_stats,r))}})),this.hierarchicalFacets=i(this.hierarchicalFacets),r(a,(function(i){var a=e[g],u=t.getHierarchicalFacetByName(i);r(a.facets,(function(e,i){var c;if(u){c=s(t.hierarchicalFacets,{name:u.name});var l=s(y.hierarchicalFacets[c],{attribute:i});if(-1===l)return;y.hierarchicalFacets[c][l].data=p({},y.hierarchicalFacets[c][l].data,e)}else y.disjunctiveFacets[c=m[i]]={name:i,data:d({},e,n.facets&&n.facets[i]||{}),exhaustive:a.exhaustiveFacetsCount},w(y.disjunctiveFacets[c],a.facets_stats,i),t.disjunctiveFacetsRefinements[i]&&r(t.disjunctiveFacetsRefinements[i],(function(e){!y.disjunctiveFacets[c].data[e]&&o(t.disjunctiveFacetsRefinements[i],e)>-1&&(y.disjunctiveFacets[c].data[e]=0)}))})),g++})),r(t.getRefinedHierarchicalFacets(),(function(n){var i=t.getHierarchicalFacetByName(n),o=t._getHierarchicalFacetSeparator(i),a=t.getHierarchicalRefinement(n);0===a.length||a[0].split(o).length<2||(r(e[g].facets,(function(e,n){var r=s(t.hierarchicalFacets,{name:i.name}),u=s(y.hierarchicalFacets[r],{attribute:n});if(-1!==u){var c={};if(a.length>0){var l=a[0].split(o)[0];c[l]=y.hierarchicalFacets[r][u].data[l]}y.hierarchicalFacets[r][u].data=d(c,e,y.hierarchicalFacets[r][u].data)}})),g++)})),r(t.facetsExcludes,(function(t,e){var i=f[e];y.facets[i]={name:e,data:n.facets[e],exhaustive:n.exhaustiveFacetsCount},r(t,(function(t){y.facets[i]=y.facets[i]||{name:e},y.facets[i].data=y.facets[i].data||{},y.facets[i].data[t]=0}))})),this.hierarchicalFacets=h(this.hierarchicalFacets,b(t)),this.facets=i(this.facets),this.disjunctiveFacets=i(this.disjunctiveFacets),this._state=t}function O(t,e){if(!e.data||0===e.data.length)return e;var n=t(h(e.data,g(O,t)));return p({},e,{data:n})}function S(t,e){return e.sort(t)}function x(t,e){var n=c(t,{name:e});return n&&n.stats}function C(t,e,n,r,i){var o=c(i,{name:n});return{type:e,attributeName:n,name:r,count:a(o,"data["+r+"]")||0,exhaustive:a(o,"exhaustive")||!1}}E.prototype.getFacetByName=function(t){var e={name:t};return c(this.facets,e)||c(this.disjunctiveFacets,e)||c(this.hierarchicalFacets,e)},E.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],E.prototype.getFacetValues=function(t,e){var n=function(t,e){var n={name:e};if(t._state.isConjunctiveFacet(e)){var r=c(t.facets,n);return r?h(r.data,(function(n,r){return{name:r,count:n,isRefined:t._state.isFacetRefined(e,r),isExcluded:t._state.isExcludeRefined(e,r)}})):[]}if(t._state.isDisjunctiveFacet(e)){var i=c(t.disjunctiveFacets,n);return i?h(i.data,(function(n,r){return{name:r,count:n,isRefined:t._state.isDisjunctiveFacetRefined(e,r)}})):[]}if(t._state.isHierarchicalFacet(e))return c(t.hierarchicalFacets,n)}(this,t);if(!n)throw new Error(t+" is not a retrieved facet.");var r=d({},e,{sortBy:E.DEFAULT_SORT});if(Array.isArray(r.sortBy)){var i=v(r.sortBy,E.DEFAULT_SORT);return Array.isArray(n)?f(n,i[0],i[1]):O(y(f,i[0],i[1]),n)}if(m(r.sortBy))return Array.isArray(n)?n.sort(r.sortBy):O(g(S,r.sortBy),n);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},E.prototype.getFacetStats=function(t){if(this._state.isConjunctiveFacet(t))return x(this.facets,t);if(this._state.isDisjunctiveFacet(t))return x(this.disjunctiveFacets,t);throw new Error(t+" is not present in `facets` or `disjunctiveFacets`")},E.prototype.getRefinements=function(){var t=this._state,e=this,n=[];return r(t.facetsRefinements,(function(t,i){r(t,(function(t){n.push(C(0,"facet",i,t,e.facets))}))})),r(t.facetsExcludes,(function(t,i){r(t,(function(t){n.push(C(0,"exclude",i,t,e.facets))}))})),r(t.disjunctiveFacetsRefinements,(function(t,i){r(t,(function(t){n.push(C(0,"disjunctive",i,t,e.disjunctiveFacets))}))})),r(t.hierarchicalFacetsRefinements,(function(i,o){r(i,(function(r){n.push(function(t,e,n,r){for(var i=c(r,{name:e}),o=t.getHierarchicalFacetByName(e),s=n.split(o.separator),u=s[s.length-1],l=0;void 0!==i&&l<s.length;++l)i=c(i.data,{name:s[l]});return{type:"hierarchical",attributeName:e,name:u,count:a(i,"count")||0,exhaustive:a(i,"exhaustive")||!1}}(t,o,r,e.hierarchicalFacets))}))})),r(t.numericRefinements,(function(t,e){r(t,(function(t,i){r(t,(function(t){n.push({type:"numeric",attributeName:e,name:t,numericValue:t,operator:i})}
1))}))})),r(t.tagRefinements,(function(t){n.push({type:"tag",attributeName:"_tags",name:t})})),n},t.exports=E},tLB3:function(t,e,n){var r=n("jXQH"),i=n("GoyQ"),o=n("/9aa"),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=a.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):s.test(t)?NaN:+t}},tMB7:function(t,e,n){var r=n("y1pI");t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},tadb:function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"DataView");t.exports=r},"tf+s":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),i=n("7Hc7"),o=n("Y7HM");class s extends r.a{constructor(t,e=0,n=i.a){super(),this.source=t,this.delayTime=e,this.scheduler=n,(!Object(o.a)(e)||e<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=i.a)}static create(t,e=0,n=i.a){return new s(t,e,n)}static dispatch(t){const{source:e,subscriber:n}=t;return this.add(e.subscribe(n))}_subscribe(t){return this.scheduler.schedule(s.dispatch,this.delayTime,{source:this.source,subscriber:t})}}function a(t,e=0){return function(n){return n.lift(new u(t,e))}}class u{constructor(t,e){this.scheduler=t,this.delay=e}call(t,e){return new s(e,this.delay,this.scheduler).subscribe(t)}}},"tk/3":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 f})),n.d(e,"d",(function(){return m}));var r=n("fXoL"),i=n("LRne"),o=n("HDdC"),s=n("bOdf"),a=n("pLZG"),u=n("lJxs"),c=n("ofXK");class l{}class h{}class f{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 f?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 f;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof f?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()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class d{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 d,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
vendor: 7,708 bytes, line 1
1=>{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 v(t){return"undefined"!=typeof FormData&&t instanceof FormData}class b{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 f),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)||v(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||v(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 b(e,n,i,{params:u,headers:a,reportProgress:s,responseType:r,withCredentials:o})}}var _=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class w{constructor(t,e=200,n="OK"){this.headers=t.headers||new f,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 O extends w{constructor(t={}){super(t),this.type=_.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new O({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 S 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 b)r=t;else{let i=void 0;i=n.headers instanceof f?n.headers:new f(n.headers);let o=void 0;n.params&&(o=n.params instanceof m?n.params:new m({fromObject:n.params})),r=new b(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 b||"events"===n.observe)return o;const c=o.pipe(Object(a.a)(t=>t instanceof O));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.ec(l))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})();class T{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const j=new r.s("HTTP_INTERCEPTORS");let A=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})();const k=/^\)\]\}',?\n/;class I{}let D=(()=>{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})(),R=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule 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
1h((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 f(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(k,"");try{u=""!==u?JSON.parse(u):null}catch(l){u=t,c&&(c=!1,u={error:l,text:u})}}c?(e.next(new O({body:u,headers:r,status:i,statusText:s,url:a||void 0})),e.complete()):e.error(new S({error:u,headers:r,status:i,statusText:s,url:a||void 0}))},a=t=>{const{url:r}=o(),i=new S({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.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.ec(I))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})();const P=new r.s("XSRF_COOKIE_NAME"),F=new r.s("XSRF_HEADER_NAME");class N{}let L=(()=>{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.T)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r.ec(c.e),r.ec(r.E),r.ec(P))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{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.ec(N),r.ec(F))},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(j,[]);this.chain=t.reduceRight((t,e)=>new T(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.ec(h),r.ec(r.t))},t.\u0275prov=r.Mb({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:M,useClass:A}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:P,useValue:e.cookieName}:[],e.headerName?{provide:F,useValue:e.headerName}:[]]}}}return t.\u0275mod=r.Ob({type:t}),t.\u0275inj=r.Nb({factory:function(e){return new(e||t)},providers:[M,{provide:j,useExisting:M,multi:!0},{provide:N,useClass:L},{provide:P,useValue:"XSRF-TOKEN"},{provide:F,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},R,{provide:h,useExisting:R},D,{provide:I,useExisting:D}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",(function(){return Lt})),n.d(e,"b",(function(){return X})),n.d(e,"c",(function(){return L})),n.d(e,"d",(function(){return N})),n.d(e,"e",(function(){return Je})),n.d(e,"f",(function(){return Ze})),n.d(e,"g",(function(){return nn})),n.d(e,"h",(function(){return tn})),n.d(e,"i",(function(){return pn})),n.d(e,"j",(function(){return rn})),n.d(e,"k",(function(){return Ve}));var r=n("ofXK"),i=n("fXoL"),o=n("LRne"),s=n("Cfvw"),a=n("2Vo4"),u=n("itXk"),c=n("HDdC"),l=n("sVev"),h=n("EY2u");function f(t){return new c.a(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(s.a)(n):Object(h.b)()).subscribe(e)})}var d=n("XNiG"),p=n("lJxs"),m=n("0EUg"),g=n("pLZG"),y=n("BFxc"),v=n("XDbj"),b=n("xbPD"),_=n("SpAZ"),w=n("eIep"),E=n("IzEk"),O=n("JX91"),S=n("Kqa
1p"),x=n("JIr8"),C=n("bOdf"),T=n("SxV6"),j=n("5+tZ"),A=n("vkgz"),k=n("7o/Q"),I=n("quSY");class D{constructor(t){this.callback=t}call(t,e){return e.subscribe(new R(t,this.callback))}}class R extends k.a{constructor(t,e){super(t),this.add(new I.a(e))}}var P=n("bHdf");class F{constructor(t,e){this.id=t,this.url=e}}class N extends F{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 L extends F{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class M extends F{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class V extends F{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class U extends F{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 B extends F{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 q extends F{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 H extends F{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 z extends F{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 Q{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class G{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class W{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ${constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class K{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class X{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Y{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}')`}}const J="primary";class Z{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function tt(t){return new Z(t)}function et(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function nt(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}}function rt(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],!it(t[i],e[i]))return!1;return!0}function it(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),r=[...e].sort();return n.every((t,e)=>r[e]===t)}return t===e}function ot(t){return Array.prototype.concat.apply([],t)}function st(t){return t.length>0?t[t.length-1]:null}function at(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function ut(t){return Object(i.ub)(t)?t:Object(i.vb)(t)?Object(s.a)(Prom
vendor: 11,990 bytes, line 1
1ise.resolve(t)):Object(o.a)(t)}function ct(t,e,n){return n?function(t,e){return rt(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!dt(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=>it(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!!dt(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!dt(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!!dt(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,o)}}(e,n,n.segments)}(t.root,e.root)}class lt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tt(this.queryParams)),this._queryParamMap}toString(){return yt.serialize(this)}}class ht{constructor(t,e){this.segments=t,this.children=e,this.parent=null,at(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vt(this)}}class ft{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=tt(this.parameters)),this._parameterMap}toString(){return St(this)}}function dt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function pt(t,e){let n=[];return at(t.children,(t,r)=>{r===J&&(n=n.concat(e(t,r)))}),at(t.children,(t,r)=>{r!==J&&(n=n.concat(e(t,r)))}),n}class mt{}class gt{parse(t){const e=new At(t);return new lt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return vt(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return at(e.children,(e,n)=>{n!==J&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=pt(e,(n,r)=>r===J?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${vt(e)}/${n[0]}`:`${vt(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=>`${_t(e)}=${_t(t)}`).join("&"):`${_t(e)}=${_t(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const yt=new gt;function vt(t){return t.segments.map(t=>St(t)).join("/")}function bt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _t(t){return bt(t).replace(/%3B/gi,";")}function wt(t){return bt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Et(t){return decodeURIComponent(t)}function Ot(t){return Et(t.replace(/\+/g,"%20"))}function St(t){return`${wt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${wt(t)}=${wt(e[t])}`).join("")}`;var e}const xt=/^[^\/()?;=#]+/;function Ct(t){const e=t.match(xt);return e?e[0]:""}const Tt=/^[^=?&#]+/,jt=/^[^?&#]+/;class At{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ht([],{}):new ht([],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 ht(t,e)),n}parseSegment(){const t=Ct(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new ft(Et(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Ct(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Ct(this.remaining);t&&(n=t,this.capture(n))}t[Et(e)]=Et(n)}parseQueryParam(t){const e=function(t){const e=t.match(Tt);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(jt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=Ot(e),i=Ot(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;){const n=Ct(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=J);const o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new ht([],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 kt{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=It(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=It(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Dt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Dt(t,this._root).map(t=>t.value)}}function It(t,e){if(t===e.value)return e;for(const n of e.children){const e=It(t,n);if(e)return e}return null}function Dt(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Dt(t,n);if(r.length)return r.unshift(e),r}return[]}class Rt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Pt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ft extends kt{constructor(t,e){super(t),this.snapshot=e,Bt(this,t)}toString(){return this.snapshot.toString()}}function Nt(t,e){const n=function(t,e){const n=new Vt([],{},{},"",{},J,e,null,t.root,-1,{});return new Ut("",new Rt(n,[]))}(t,e),r=new a.a([new ft("",{})]),i=new a.a({}),o=new a.a({}),s=new a.a({}),u=new a.a(""),c=new Lt(r,i,s,u,o,J,e,n.root);return c.snapshot=n.root,new Ft(new Rt(c,[]),n)}class Lt{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=>tt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)(t=>tt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Mt(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 Vt{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=tt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ut extends kt{constructor(t,e){super(e),this.url=t,Bt(this,e)}toString(){return qt(this._root)}}function Bt(t,e){e.value._routerState=t,e.children.forEach(e=>Bt(t,e))}function qt(t){const e=t.children.length>0?` { ${t.children.map(qt).join(", ")} } `:"";return`${t.value}${e}`}function Ht(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,rt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),rt(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(!rt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),rt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function zt(t,e){var n,r;return rt(t.params,e.params)&&dt(n=t.url,r=e.url)&&n.every((t,e)=>rt(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||zt(t.parent,e.parent))}function Qt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Gt(t){return"object"==typeof t&&null!=t&&t.outlets}function Wt(t,e,n,r,i){let o={};return r&&at(r,(t,e)=>{o[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new lt(n.root===t?e:function t(e,n,r){const i={};return at(e.children,(e,o)=>{i[o]=e===n?r:t(e,n,r)}),new ht(e.segments,i)}(n.root,t,e),o,i)}class $t{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Qt(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(Gt);if(r&&r!==st(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Kt{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Xt(t,e,n){if(t||(t=new ht([],{})),0===t.segments.length&&t.hasChildren())return Yt(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=n[r];if(Gt(s))break;const a=""+s,u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!ee(a,u,e))return o;r+=2}else{if(!ee(a,{},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 ht(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new ht(t.segments.slice(r.pathIndex),t.children),Yt(e,0,i)}return r.match&&0===i.length?new ht(t.segments,{}):r.match&&!t.hasChildren()?Jt(t,e,n):r.match?Yt(t,0,i):Jt(t,e,n)}function Yt(t,e,n){if(0===n.length)return new ht(t.segments,{});{const r=function(t){return Gt(t[0])?t[0].outlets:{[J]:t}}(n),i={};return at(r,(n,r)=>
1{null!==n&&(i[r]=Xt(t.children[r],e,n))}),at(t.children,(t,e)=>{void 0===r[e]&&(i[e]=t)}),new ht(t.segments,i)}}function Jt(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i<n.length;){const o=n[i];if(Gt(o)){const t=Zt(o.outlets);return new ht(r,t)}if(0===i&&Qt(n[0])){r.push(new ft(t.segments[e].path,n[0])),i++;continue}const s=Gt(o)?o.outlets.primary:""+o,a=i<n.length-1?n[i+1]:null;s&&a&&Qt(a)?(r.push(new ft(s,te(a))),i+=2):(r.push(new ft(s,{})),i++)}return new ht(r,{})}function Zt(t){const e={};return at(t,(t,n)=>{null!==t&&(e[n]=Jt(new ht([],{}),0,t))}),e}function te(t){const e={};return at(t,(t,n)=>e[n]=""+t),e}function ee(t,e,n){return t==n.path&&rt(e,n.parameters)}class ne{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),Ht(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Pt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),at(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);else 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=Pt(t),i=t.value.component?n.children:e;at(r,(t,e)=>this.deactivateRouteAndItsChildren(t,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=Pt(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new X(t.value.snapshot))}),t.children.length&&this.forwardEvent(new $(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(Ht(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),re(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 re(t){Ht(t.value),t.children.forEach(re)}class ie{constructor(t,e){this.routes=t,this.module=e}}function oe(t){return"function"==typeof t}function se(t){return t instanceof lt}const ae=Symbol("INITIAL_VALUE");function ue(){return Object(w.a)(t=>Object(u.a)(...t.map(t=>t.pipe(Object(E.a)(1),Object(O.a)(ae)))).pipe(Object(S.a)((t,e)=>{let n=!1;return e.reduce((t,r,i)=>{if(t!==ae)return t;if(r===ae&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||se(r))return r}return t},t)},ae),Object(g.a)(t=>t!==ae),Object(p.a)(t=>se(t)?t:!0===t),Object(E.a)(1)))}class ce{constructor(t){this.segmentGroup=t||null}}class le{constructor(t){this.urlTree=t}}function he(t){return new c.a(e=>e.error(new ce(t)))}function fe(t){return new c.a(e=>e.error(new le(t)))}function de(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class pe{constructor(t,e,n,r,o){this.configLoader=e,this.urlSerializer
1=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(i.A)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,J).pipe(Object(p.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(x.a)(t=>{if(t instanceof le)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ce)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,J).pipe(Object(p.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(x.a)(t=>{if(t instanceof ce)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 ht([],{[J]:t}):t;return new lt(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 ht([],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 at(t,(t,o)=>{const s=e(o,t).pipe(Object(p.a)(t=>i[o]=t));o===J?n.push(s):r.push(s)}),o.a.apply(null,n.concat(r)).pipe(Object(m.a)(),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(g.a)((e,n)=>t(e,n,r)):_.a,Object(y.a)(1),n?Object(b.a)(e):Object(v.a)(()=>new l.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(C.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,r,i,s).pipe(Object(x.a)(t=>{if(t instanceof ce)return Object(o.a)(null);throw t}))),Object(T.a)(t=>!!t),Object(x.a)((t,n)=>{if(t instanceof l.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,i))return Object(o.a)(new ht([],{}));throw new ce(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,i,o,s){return ve(r)!==o?he(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):he(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("/")?fe(i):this.lineralizeSegments(n,i).pipe(Object(j.a)(n=>{const i=new ht(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}=me(e,r,i);if(!s)return he(e);const l=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?fe(l):this.lineralizeSegments(r,l).pipe(Object(j.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 ht(r,{})))):Object(o.a)(new ht(r,{}));const{matched:i,consumedSegments:s,lastChild:a}=me(e,n,r);if(!i)return he(e);const u=r.slice(a);return this.getChildConfig(t,n,r).pipe(Object(j.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=>ye(t,e,n)&&ve(n)!==J)}(t,n,r)?{segmentGroup:ge(new ht(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&ve(r)!==J&&(n[ve(r)]=new ht([],{}));return n}(r,new ht(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>ye(t,e,n))}(t,n,r)?{segmentGroup:ge(new ht(t.segments,function(t,e,n,r){const i={};for(const o of n)ye(t,e,o)&&!r[ve(o)]&&(i[ve(o)]=new ht([],{}));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 ht(s,t))):0===r.length&&0===a.length?Object(o.a)(new ht(s,{})):this.expandSegment(n,i,r,a,J,!0).pipe(Object(p.a)(t=>new ht(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(o.a)(new ie(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(o.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(j.a)(n=>
1n?this.configLoader.load(t.injector,e).pipe(Object(p.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(et(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(o.a)(new ie([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;if(!r||0===r.length)return Object(o.a)(!0);const i=r.map(r=>{const i=t.get(r);let o;if(function(t){return t&&oe(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!oe(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return ut(o)});return Object(o.a)(i).pipe(ue(),Object(A.a)(t=>{if(!se(t))return;const e=et(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(p.a)(t=>!0===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 de(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 lt(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return at(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 at(e.children,(e,i)=>{o[i]=this.createSegmentGroup(t,e,n,r)}),new ht(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 me(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||nt)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function ge(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new ht(t.segments.concat(e.segments),e.children)}return t}function ye(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function ve(t){return t.outlet||J}class be{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class _e{constructor(t,e){this.component=t,this.route=e}}function we(t,e,n){const r=t._root;return function t(e,n,r,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=Pt(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!dt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!dt(t.url,e.url)||!rt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zt(t,e)||!rt(t.queryParams,e.queryParams);case"paramsChange":default:return!zt(t,e)}}(a,s,s.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new be(i)):(s.data=a.data,s._resolvedData=a._resolvedData),t(e,n,s.component?u?u.children:null:r,i,o),c&&u&&u.outlet&&u.outlet.isActivated&&o.canDeactivateChecks.push(new _e(u.outlet.component,a))}else a&&Oe(n,u,o),o.canActivateChecks.push(new be(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]}),at(s,(t,e)=>Oe(t,r.getContext(e),o)),o}(r,e?e._root:null,n,[r.value])}function Ee(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 Oe(t,e,n){const r=Pt(t),i=t.value;at(r,(t,r)=>{Oe(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new _e(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}function Se(t,e){return null!==t&&e&&e(new K(t)),Object(o.a)(!0)}function xe(t,e){return null!==t&&e&&e(new W(t)),Object(o.a)(!0)}function Ce(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=>f(()=>{const i=Ee(r,e,n);let o;if(function(t){return t&&oe(t.canActivate)}(i))o=ut(i.canActivate(e,t));else{if(!oe(i))throw new Error("Invalid CanActivate guard");o=ut(i(e,t))}
1return o.pipe(Object(T.a)())}));return Object(o.a)(i).pipe(ue())}function Te(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=>f(()=>{const i=e.guards.map(i=>{const o=Ee(i,e.node,n);let s;if(function(t){return t&&oe(t.canActivateChild)}(o))s=ut(o.canActivateChild(r,t));else{if(!oe(o))throw new Error("Invalid CanActivateChild guard");s=ut(o(r,t))}return s.pipe(Object(T.a)())});return Object(o.a)(i).pipe(ue())}));return Object(o.a)(i).pipe(ue())}class je{}class Ae{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=De(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,J),n=new Vt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},J,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Rt(n,e),i=new Ut(this.url,r);return this.inheritParamsAndData(i._root),Object(o.a)(i)}catch(t){return new c.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Mt(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=pt(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>t.value.outlet===J?-1:e.value.outlet===J?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 je))throw i}if(this.noLeftoversInUrl(e,n,r))return[];throw new je}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new je;if((t.outlet||J)!==r)throw new je;let i,o=[],s=[];if("**"===t.path){const o=n.length>0?st(n).parameters:{};i=new Vt(n,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Fe(t),r,t.component,t,ke(e),Ie(e)+n.length,Ne(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new je;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||nt)(n,t,e);if(!r)throw new je;const i={};at(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}}(e,t,n);o=a.consumedSegments,s=n.slice(a.lastChild),i=new Vt(o,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Fe(t),r,t.component,t,ke(e),Ie(e)+o.length,Ne(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:u,slicedSegments:c}=De(e,o,s,a,this.relativeLinkResolution);if(0===c.length&&u.hasChildren()){const t=this.processChildren(a,u);return[new Rt(i,t)]}if(0===a.length&&0===c.length)return[new Rt(i,[])];const l=this.processSegment(a,u,c,J);return[new Rt(i,l)]}}function ke(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Ie(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 De(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some(n=>Re(t,e,n)&&Pe(n)!==J)}(t,n,r)){const i=new ht(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&&Pe(o)!==J){const n=new ht([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[Pe(o)]=n}return i}(t,e,r,new ht(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=>Re(t,e,n))}(t,n,r)){const o=new ht(t.segments,function(t,e,n,r,i,o){const s={};for(const a of r)if(Re(t,n,a)&&!i[Pe(a)]){const n=new ht([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Pe(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 ht(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function Re(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Pe(t){return t.outlet||J}function Fe(t){return t.data||{}}function Ne(t){return t.resolve||{}}function Le(t){return function(e){return e.pipe(Object(w.a)(e=>{const n=t(e);return n?Object(s.a)(n).pipe(Object(p.a)(()=>e)):Object(s.a)([e])}))}}class Me extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}let Ve=(()=>{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[rn]},encapsulation:2}),t})();function Ue(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];Be(r,qe(e,r))}}function Be(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&t.outlet!==J)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&&Ue(t.children,e)}function qe(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function He(t){const e=t.children&&t.children.map(He),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==J&&(n.component=Ve),n}const ze=new i.s("ROUTES");class Qe{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 ie(ot(r.injector.get(ze)).map(He),r)}))}loadModuleFactory(t){return"string"==typeof t?Object(s.a)(this.loader.load(t)):ut(t()).pipe(Object(j.a)(t=>t instanceof i.y?Object(o.a)(t):Object(s.a)(this.compiler.compileModuleAsync(t))))}}class Ge{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new We,this.attachRef=null}}class We{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 Ge,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class $e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Ke(t){throw t}function Xe(t,e,n){return e.parse("/")}function Ye(t,e){return Object(o.a)(null)}let Je=(()=>{class t{constructor(t,e,n,r,o,s,u,c){this.rootComponentType=t,this.urlSerializer
1=e,this.rootContexts=n,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new d.a,this.errorHandler=Ke,this.malformedUriErrorHandler=Xe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ye,afterPreactivation:Ye},this.urlHandlingStrategy=new $e,this.routeReuseStrategy=new Me,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(i.A),this.console=o.get(i.cb);const l=o.get(i.C);this.isNgZoneEnabled=l instanceof i.C,this.resetConfig(c),this.currentUrlTree=new lt(new ht([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Qe(s,u,t=>this.triggerEvent(new Q(t)),t=>this.triggerEvent(new G(t))),this.routerState=Nt(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(w.a)(t=>{let n=!1,r=!1;return Object(o.a)(t).pipe(Object(A.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(w.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(w.a)(t=>{const n=this.transitions.getValue();return e.next(new N(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?h.a:[t]}),Object(w.a)(t=>Promise.resolve(t)),(r=this.ngModule.injector,i=this.configLoader,s=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(w.a)(t=>function(t,e,n,r,i){return new pe(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(A.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,i){return function(o){return o.pipe(Object(j.a)(o=>function(t,e,n,r,i="emptyOnly",o="legacy"){return new Ae(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(A.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(A.a)(t=>{const n=new U(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 N(n,this.serializeUrl(r),i,s);e.next(u);const c=Nt(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})}
1))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),h.a}),Le(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(A.a)(t=>{const e=new B(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:we(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(j.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(j.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=Ee(o,e,i);let a;if(function(t){return t&&oe(t.canDeactivate)}(s))a=ut(s.canDeactivate(t,e,n,r));else{if(!oe(s))throw new Error("Invalid CanDeactivate guard");a=ut(s(t,e,n,r))}return a.pipe(Object(T.a)())});return Object(o.a)(a).pipe(ue())}(t.component,t.route,n,e,r)),Object(T.a)(t=>!0!==t,!0))}(u,r,i,t).pipe(Object(j.a)(n=>n&&"boolean"==typeof n?function(t,e,n,r){return Object(s.a)(e).pipe(Object(C.a)(e=>Object(s.a)([xe(e.route.parent,r),Se(e.route,r),Te(t,e.path,n),Ce(t,e.route,n)]).pipe(Object(m.a)(),Object(T.a)(t=>!0!==t,!0))),Object(T.a)(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(A.a)(t=>{if(se(t.guardsResult)){const e=et(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(A.a)(t=>{const e=new q(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 M(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Le(t=>{if(t.guards.canActivateChecks.length)return Object(o.a)(t).pipe(Object(A.a)(t=>{const e=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(w.a)(t=>{let n=!1;return Object(o.a)(t).pipe((r=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(t){return t.pipe(Object(j.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(o.a)(t);let a=0;return Object(s.a)(n).pipe(Object(C.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)({});const a={};return Object(s.a)(i).pipe(Object(j.a)(i=>function(t,e,n,r){const i=Ee(t,e,r);return ut(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(Object(A.a)(t=>{a[i]=t}))),Object(y.a)(1),Object(j.a)(()=>Object.keys(a).length===i.length?Object(o.a)(a):h.a))}(t._resolve,t,e,r).pipe(Object(p.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Mt(t,n).resolve),null)))}(t.route,e,r,i)),Object(A.a)(()=>a++),Object(y.a)(1),Object(j.a)(e=>a===n.length?Object(o.a)(t):h.a))}))}),Object(A.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new M(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var r,i}),Object(A.a)(t=>{const e=new z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Le(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 Rt(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");
1if(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 Lt(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 Rt(r,o)}}var i}(t,e._root,n?n._root:void 0);return new Ft(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(A.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)}),(u=this.rootContexts,c=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(p.a)(t=>(new ne(c,t.targetRouterState,t.currentRouterState,l).activate(u),t))),Object(A.a)({next(){n=!0},complete(){n=!0}}),(i=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new M(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new D(i))),Object(x.a)(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=se(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const i=new M(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 V(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(o){t.reject(o)}}var i;return h.a}));var i,u,c,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:r}=e,i={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(i.state=t)}this.scheduleNavigation(r,t,n,i)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ue(t),this.config=t.map(He),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:o,preserveQueryParams:s,queryParamsHandling:a,preserveFragment:u}=e;Object(i.Z)()&&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 Wt(e.root,e.root,e,r,i);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new $t(!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 at(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 $t(n,e,r)}(n);if(o.toRoot())return Wt(e.root,new ht([],{}),e,r,i);const s=function(t,e,n){if(t.isAbsolute)return new Kt(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Kt(t,t===e.root,0)}
1const r=Qt(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 Kt(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?Yt(s.segmentGroup,s.index,o.commands):Xt(s.segmentGroup,s.index,o.commands);return Wt(s.segmentGroup,a,e,r,i)}(c,this.currentUrlTree,t,h,l)}navigateByUrl(t,e={skipLocationChange:!1}){Object(i.Z)()&&this.isNgZoneEnabled&&!i.C.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=se(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(se(t))return ct(this.currentUrlTree,t,e);const n=this.parseUrl(t);return ct(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 L(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(),s="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(s&&a)return Promise.resolve(!0);let u,c,l;i?(u=i.resolve,c=i.reject,l=i.promise):l=new Promise((t,e)=>{u=t,c=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.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(e){return new(e||t)(i.ec(i.P),i.ec(mt),i.ec(We),i.ec(r.o),i.ec(i.t),i.ec(i.z),i.ec(i.i),i.ec(void 0))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})(),Ze=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],this.onChanges=new d.a,null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(i.Z)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:en(this.skipLocationChange),replaceUrl:en(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:en(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:en(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(Je),i.Qb(Lt),i.fc("tabindex"),i.Qb(i.G),i.Qb(i.m))},t.\u0275dir=i.Lb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&i.ic("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[i.Bb]}),t})(),tn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new d.a,this.subscription=t.events.subscribe(t=>{t instanceof L&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(i.Z)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r,i){if(0!==t||e||n||r||i)return!0;
1if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:en(this.skipLocationChange),replaceUrl:en(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:en(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:en(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(Je),i.Qb(Lt),i.Qb(r.p))},t.\u0275dir=i.Lb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.ic("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)})),2&t&&(i.Zb("href",e.href,i.Kc),i.Eb("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[i.Bb]}),t})();function en(t){return""===t||!!t}let nn=(()=>{class t{constructor(t,e,n,r,i,o){this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.link=i,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof L&&this.update()})}ngAfterContentInit(){Object(s.a)([this.links.changes,this.linksWithHrefs.changes,Object(o.a)(null)]).pipe(Object(P.a)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=Object(s.a)(e).pipe(Object(P.a)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Qb(Je),i.Qb(i.m),i.Qb(i.G),i.Qb(i.h),i.Qb(Ze,8),i.Qb(tn,8))},t.\u0275dir=i.Lb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var r;1&t&&(i.Jb(n,Ze,!0),i.Jb(n,tn,!0)),2&t&&(i.Ec(r=i.jc())&&(e.links=r),i.Ec(r=i.jc())&&(e.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[i.Bb]}),t})(),rn=(()=>{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||J,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;
1const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new on(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(We),i.Qb(i.S),i.Qb(i.j),i.fc("name"),i.Qb(i.h))},t.\u0275dir=i.Lb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class on{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Lt?this.route:t===We?this.childContexts:this.parent.get(t,e)}}class sn{}class an{preload(t,e){return Object(o.a)(null)}}let un=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new Qe(e,n,e=>t.triggerEvent(new Q(e)),e=>t.triggerEvent(new G(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(g.a)(t=>t instanceof L),Object(C.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(i.A);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&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(P.a)(),Object(p.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(j.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(i.ec(Je),i.ec(i.z),i.ec(i.i),i.ec(i.t),i.ec(sn))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})(),cn=(()=>{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 N?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof L&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Y&&(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 Y(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.ec(Je),i.ec(r.J),i.ec(void 0))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})();const ln=new i.s("ROUTER_CONFIGURATION"),hn=new i.s("ROUTER_FORROOT_GUARD"),fn=[r.o,{provide:mt,useClass:gt},{provide:Je,useFactory:function(t,e,n,i,o,s,a,u={},c,l){const h=new Je(null,t,e,n,i,o,s,ot(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.S)();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:[mt,We,r.o,i.t,i.z,i.i,ze,ln,[class{},new i.D],[class{},new i.D]]},We,{provide:Lt,useFactory:function(t){return t.routerState.root},deps:[Je]},{provide:i.z,useClass:i.M},un,an,class{preload(t,e){return e().pipe(Object(x.a)(()=>Object(o.a)(null)))}},{provide:ln,useValue:{enableTracing:!1}}];function dn(){return new i.B("Router",Je)}let pn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[fn,vn(e),{provide:hn,useFactory:yn,deps:[[Je,new i.D,new i.L]]},{provide:ln,useValue:n||{}},{provide:r.p,useFactory:gn,deps:[r.E,[new i.q(r.a),new i.D],ln]},{provide:cn,useFactory:mn,deps:[Je,r.J,ln]},{provide:sn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:an},{provide:i.B,multi:!0,useFactory:dn},[bn,{provide:i.d,multi:!0,useFactory:_n,deps:[bn]},{provide:En,useFactory:wn,deps:[bn]},{provide:i.b,multi:!0,useExisting:En}]]}}static forChild(e){return{ngModule:t,providers:[vn(e)]}}}return t.\u0275mod=i.Ob({type:t}),t.\u0275inj=i.Nb({factory:function(e){return new(e||t)(i.ec(hn,8),i.ec(Je,8))}}),t})();function mn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new cn(t,e,n)}function gn(t,e,n={}){return n.useHash?new r.i(t,e):new r.C(t,e)}function yn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function vn(t){return[{provide:i.a,multi:!0,useValue:t},{provide:ze,multi:!0,useValue:t}]}let bn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new d.a}appInitializer(){return this.injector.get(r.n,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Je),r=this.injector.get(ln);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(ln),n=this.injector.get(un),r=this.injector.get(cn),o=this.injector.get(Je),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.ec(i.t))},t.\u0275prov=i.Mb({token:t,factory:t.\u0275fac}),t})();function _n(t){return t.appInitializer.bind(t)}function wn(t){return t.bootstrapListener.bind(t)}const En=new i.s("Router Initializer")},u8Dt:function(t,e,n){var r=n("YESw"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},ulEd:function(t,e){var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;t.exports=function(t){var e=t.match(n);return e?e[1].split(r):[]}},uoTU:function(t,e,n){var r=n("R/W3"),i=n("Sxd8"),o=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var a=null==n?0:i(n);return a<0&&(a=o(s+a,0)),r(t,e,a)}},"ut/Y":function(t,e,n){var r=n("ZCpW"),i=n("GDhZ"),o=n("zZ0H"),s=n("Z0cm"),a=n("+c4W");t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},uyml:function(t,e,n){"use strict";var r=n("0Ul8"),i=n("P5ON");t.exports=i(r,"Browser (lite)")},v61W:function(t,e){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;
1t.exports=function(t,e,i){if("[object Function]"!==r.call(e))throw new TypeError("iterator must be a function");var o=t.length;if(o===+o)for(var s=0;s<o;s++)e.call(i,t[s],s,t);else for(var a in t)n.call(t,a)&&e.call(i,t[a],a,t)}},vFt6:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("9AQC");function i(t){try{for(var e=t,n=[],r=0,i=0,s=" > ".length,a=void 0;e&&r++<5&&!("html"===(a=o(e))||r>1&&i+n.length*s+a.length>=80);)n.push(a),i+=a.length,e=e.parentNode;return n.reverse().join(" > ")}catch(u){return"<unknown>"}}function o(t){var e,n,i,o,s,a=t,u=[];if(!a||!a.tagName)return"";if(u.push(a.tagName.toLowerCase()),a.id&&u.push("#"+a.id),(e=a.className)&&Object(r.k)(e))for(n=e.split(/\s+/),s=0;s<n.length;s++)u.push("."+n[s]);var c=["type","name","title","alt"];for(s=0;s<c.length;s++)(o=a.getAttribute(i=c[s]))&&u.push("["+i+'="'+o+'"]');return u.join("")}},"vN+2":function(t,e){t.exports=function(){}},vgmO:function(t,e){var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t.exports=n},vkgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q"),i=n("KqfI"),o=n("n6bG");function s(t,e,n){return function(r){return r.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new u(t,this.nextOrObserver,this.error,this.complete))}}class u extends r.a{constructor(t,e,n,r){super(t),this._tapNext=i.a,this._tapError=i.a,this._tapComplete=i.a,this._tapError=n||i.a,this._tapComplete=r||i.a,Object(o.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||i.a,this._tapError=e.error||i.a,this._tapComplete=e.complete||i.a)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},"w/wX":function(t,e,n){var r=n("QqLw"),i=n("ExA7");t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},w1tV:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("XNiG"),i=n("HDdC"),o=n("7o/Q"),s=n("quSY");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 f(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 f 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 d(){return new r.a}function p(){return t=>{return a()((e=d,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}}},"wF/u":function(t,e,n){var r=n("e5cp"),i=n("ExA7");t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,s,t,a))}},wJg7:function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},wclG:function(t,e,n){var r=n("pFRH"),i=n("88Gu")(r);t.exports=i},wig9:function(t,e){t.exports=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}},wj3C:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=n("SOwp"),s=n("zVF4"),a=n("S+S0"),u=n("q/0M"),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="@firebase/app",f="[DEFAULT]",d=((i={})[h]="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),p=new u.Logger("@firebase/app"),m=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:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,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=f),this.checkDestroyed_(),this.container.getProvider(t).getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e=f),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){p.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}();m.prototype.name&&m.prototype.options||m.prototype.delete||console.log("dc");var g=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=f);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=d[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 p.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.20.0",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||f))throw l.create("no-app",{appName:t});return e[t]}function c(a){var u,c,h=a.name;if(n.has(h))return p.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];return this._getService.bind(this,h).apply(this,a.multipleInstances?t:[])}}try{for(var d=o.__values(Object.keys(e)),m=d.next();!m.done;m=d.next())e[m.value]._addComponent(a)}catch(g){u={error:g}}finally{try{m&&!m.done&&(c=d.return)&&c.call(d)}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}(m);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}(),y=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){p.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var v=self.firebase.SDK_VERSION;v&&v.indexOf("LITE")>=0&&p.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 b=g.initializeApp;g.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s.isNode()&&p.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      '),b.apply(void 0,t)};var _=g;!function(t,e){t.INTERNAL.registerComponent(new a.Component("platform-logger",(function(t){return new y(t)}),"PRIVATE")),t.registerVersion(h,"0.6.11",void 0),t.registerVersion("fire-js","")}(_),e.default=_,e.firebase=_},wrZu:function(t,e,n){var r=n("+K+b"),i=n("XYm9"),o=n("b2z7"),s=n("otv/"),a=n("yP5f");t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,n);
1case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Set]":return new u;case"[object Symbol]":return s(t)}}},wy8a:function(t,e,n){var r=n("KxBF");t.exports=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}},x7I3:function(t,e,n){"use strict";n.r(e),n.d(e,"ErrorCode",(function(){return Jn})),n.d(e,"EventType",(function(){return Zn})),n.d(e,"WebChannel",(function(){return tr})),n.d(e,"XhrIo",(function(){return er})),n.d(e,"createWebChannelTransport",(function(){return Yn}));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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(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.")}var o,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=a||{},u=s||self;function c(){}function l(t){var e=typeof t;return"object"!=e?e:t?Array.isArray(t)?"array":e:"null"}function h(t){var e=l(t);return"array"==e||"object"==e&&"number"==typeof t.length}function f(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var d="closure_uid_"+(1e9*Math.random()>>>0),p=0;function m(t,e,n){return t.call.apply(t.bind,arguments)}function g(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 y(t,e,n){return(y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?m:g).apply(null,arguments)}function v(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 _(t,e){function n(){}n.prototype=e.prototype,t.S=e.prototype,t.prototype=new n,t.prototype.constructor=t}function w(){this.j=this.j,this.i=this.i}w.prototype.j=!1,w.prototype.ja=function(){!this.j&&(this.j=!0,this.G(),0)&&function(t){Object.prototype.hasOwnProperty.call(t,d)&&t[d]||(t[d]=++p)}(this)},w.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var E=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},O=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 x(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 C(t){return/^[\s\xa0]*$/.test(t)}var T,j=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function A(t,e){return-1!=t.indexOf(e)}function k(t,e){return t<e?-1:t>e?1:0}t:{var I=u.navigator;if(I){var D=I.userAgent;if(D){T=D;break t}}T=""}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 F="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function N(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<F.length;
1o++)n=F[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function L(t){return L[" "](t),t}L[" "]=c;var M,V,U=A(T,"Opera"),B=A(T,"Trident")||A(T,"MSIE"),q=A(T,"Edge"),H=q||B,z=A(T,"Gecko")&&!(A(T.toLowerCase(),"webkit")&&!A(T,"Edge"))&&!(A(T,"Trident")||A(T,"MSIE"))&&!A(T,"Edge"),Q=A(T.toLowerCase(),"webkit")&&!A(T,"Edge");function G(){var t=u.document;return t?t.documentMode:void 0}t:{var W="",$=(V=T,z?/rv:([^\);]+)(\)|;)/.exec(V):q?/Edge\/([\d\.]+)/.exec(V):B?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(V):Q?/WebKit\/(\S+)/.exec(V):U?/(?:Version)[ \/]?(\S+)/.exec(V):void 0);if($&&(W=$?$[1]:""),B){var K=G();if(null!=K&&K>parseFloat(W)){M=String(K);break t}}M=W}var X={};function Y(t){return function(t,e){var n=X;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,(function(){for(var e=0,n=j(String(M)).split("."),r=j(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=k(0==s[1].length?0:parseInt(s[1],10),0==a[1].length?0:parseInt(a[1],10))||k(0==s[2].length,0==a[2].length)||k(s[2],a[2]),s=s[3],a=a[3]}while(0==e)}return 0<=e}))}var J=u.document&&B&&(G()||parseInt(M,10))||void 0,Z=!B||9<=Number(J),tt=B&&!Y("9"),et=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{u.addEventListener("test",c,e),u.removeEventListener("test",c,e)}catch(n){}return t}();function nt(t,e){this.type=t,this.a=this.target=e,this.defaultPrevented=!1}function rt(t,e){if(nt.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:it[t.pointerType]||"",this.c=t,t.defaultPrevented&&this.b()}}nt.prototype.b=function(){this.defaultPrevented=!0},_(rt,nt);var it={2:"touch",3:"pen",4:"mouse"};rt.prototype.b=function(){rt.S.b.call(this);var t=this.c;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,tt)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var ot="closure_listenable_"+(1e6*Math.random()|0),st=0;function at(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.ca=i,this.key=++st,this.Y=this.Z=!1}function ut(t){t.Y=!0,t.listener=null,t.proxy=null,t.src=null,t.ca=null}function ct(t){this.src=t,this.a={},this.b=0}function lt(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=E(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(ut(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function ht(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.Y&&o.listener==e&&o.capture==!!n&&o.ca==r)return i}return-1}ct.prototype.add=function(t,e,n,r,i){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var s=ht(t,e,r,i);return-1<s?(e=t[s],n||(e.Z=!1)):((e=new at(e,this.src,o,!!r,i)).Z=n,t.push(e)),e};var ft="closure_lm_"+(1e6*Math.random()|0),dt={};function pt(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=Et(r),e&&e[ot]?e.wa(n,r,f(i)?!!i.capture:!!i,o):mt(e,n,r,!0,i,o)}(t,e,n,r,i);if(Array.isArray(e)){for(var o=0;o<e.length;o++)pt(t,e[o],n,r,i);return null}return n=Et(n),t&&t[ot]?t.va(e,n,f(r)?!!r.capture:!!r,i):mt(t,e,n,!1,r,i)}function mt(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var s=f(i)?!!i.capture:!!i;if(s&&!Z)return null;var a=_t(t);if(a||(t[ft]=a=new ct(t)),(n=a.add(e,n,r,s,o)).proxy)return n;if(r=function(){var t=bt,e=Z?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)et||(i=s),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(yt(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function gt(t){if("number"!=typeof t&&t&&!t.Y){var e=t.src;if(e&&e[ot])lt(e.c,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(yt(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=_t(e))?(lt(n,t),0==n.b&&(n.src=null,e[ft]=null)):ut(t)}}}function yt(t){return t in dt?dt[t]:dt[t]="on"+t}function vt(t,e){var n=t.listener,r=t.ca||t.src;return t.Z&&gt(t),n.call(r,e)}function bt(t,e){if(t.Y)return!0;
1if(!Z){if(!e)t:{e=["window","event"];for(var n=u,r=0;r<e.length;r++)if(null==(n=n[e[r]])){e=null;break t}e=n}return vt(t,e=new rt(e,this))}return vt(t,new rt(e,this))}function _t(t){return(t=t[ft])instanceof ct?t:null}var wt="__closure_events_fn_"+(1e9*Math.random()>>>0);function Et(t){return"function"==l(t)?t:(t[wt]||(t[wt]=function(e){return t.handleEvent(e)}),t[wt])}function Ot(){w.call(this),this.c=new ct(this),this.J=this,this.C=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.Y&&s.capture==n){var a=s.listener,u=s.ca||s.src;s.Z&&lt(t.c,s),i=!1!==a.call(u,r)&&i}}return i&&!r.defaultPrevented}_(Ot,w),Ot.prototype[ot]=!0,(o=Ot.prototype).addEventListener=function(t,e,n,r){pt(this,t,e,n,r)},o.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=f(i)?!!i.capture:!!i,r=Et(r),e&&e[ot]?(e=e.c,(n=String(n).toString())in e.a&&-1<(r=ht(s=e.a[n],r,i,o))&&(ut(s[r]),Array.prototype.splice.call(s,r,1),0==s.length&&(delete e.a[n],e.b--))):e&&(e=_t(e))&&(n=e.a[n.toString()],e=-1,n&&(e=ht(n,r,i,o)),(r=-1<e?n[e]:null)&&gt(r))}(this,t,e,n,r)},o.dispatchEvent=function(t){var e,n=this.C;if(n)for(e=[];n;n=n.C)e.push(n);n=this.J;var r=t.type||t;if("string"==typeof t)t=new nt(t,n);else if(t instanceof nt)t.target=t.target||n;else{var i=t;N(t=new nt(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},o.G=function(){if(Ot.S.G.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++)ut(n[r]);delete e.a[t],e.b--}}this.C=null},o.va=function(t,e,n,r){return this.c.add(String(t),e,!1,n,r)},o.wa=function(t,e,n,r){return this.c.add(String(t),e,!0,n,r)};var xt=u.JSON.stringify;function Ct(){this.b=this.a=null}var Tt,jt=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 kt}),(function(t){t.reset()}),100);function At(){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 kt(){this.next=this.b=this.a=null}function It(t){u.setTimeout((function(){throw t}),0)}function Dt(t,e){Tt||function(){var t=u.Promise.resolve(void 0);Tt=function(){t.then(Ft)}}(),Rt||(Tt(),Rt=!0),Pt.add(t,e)}Ct.prototype.add=function(t,e){var n=jt.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},kt.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},kt.prototype.reset=function(){this.next=this.b=this.a=null};var Rt=!1,Pt=new Ct;function Ft(){for(var t;t=At();){try{t.a.call(t.b)}catch(n){It(n)}var e=jt;e.g(t),e.b<e.f&&(e.b++,t.next=e.a,e.a=t)}Rt=!1}function Nt(t,e){Ot.call(this),this.b=t||1,this.a=e||u,this.f=y(this.Ya,this),this.g=b()}function Lt(t){t.aa=!1,t.M&&(t.a.clearTimeout(t.M),t.M=null)}function Mt(t,e,n){if("function"==l(t))n&&(t=y(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=y(t.handleEvent,t)}return 2147483647<Number(e)?-1:u.setTimeout(t,e||0)}function Vt(t){t.a=Mt((function(){t.a=null,t.c&&(t.c=!1,Vt(t))}),t.h);var e=t.b;t.b=null,t.g.apply(null,e)}_(Nt,Ot),(o=Nt.prototype).aa=!1,o.M=null,o.Ya=function(){if(this.aa){var t=b()-this.g;0<t&&t<.8*this.b?this.M=this.a.setTimeout(this.f,this.b-t):(this.M&&(this.a.clearTimeout(this.M),this.M=null),this.dispatchEvent("tick"),this.aa&&(Lt(this),this.start()))}},o.start=function(){this.aa=!0,this.M||(this.M=this.a.setTimeout(this.f,this.b),this.g=b())},o.G=function(){Nt.S.G.call(this),Lt(this),delete this.a};var Ut=function(t){function e(e,n,r){var i=t.call(this)||this;return i.g=null!=r?e.bind(r):e,i.h=n,i.b=null,i.c=!1,i.a=null,i}return function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.f=function(t){this.b=arguments,this.a?this.c=!0:Vt(this)},e.prototype.G=function(){t.prototype.G.call(this),this.a&&(u.clearTimeout(this.a),this.a=null,this.c=!1,this.b=null)},e}(w);function Bt(t){w.call(this),this.b=t,this.a={}}_(Bt,w);var qt=[];function Ht(t,e,n,r){Array.isArray(n)||(n&&(qt[0]=n.toString()),n=qt);for(var i=0;i<n.length;i++){var o=pt(e,n[i],r||t.handleEvent,!1,t.b||t);
1if(!o)break;t.a[o.key]=o}}function zt(t){R(t.a,(function(t,e){this.a.hasOwnProperty(e)&&gt(t)}),t),t.a={}}function Qt(){this.a=!0}function Gt(t,e,n,r){t.info((function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.a)return e;if(!e)return null;try{var n=JSON.parse(e);if(n)for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var r=n[t];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var s=1;s<i.length;s++)i[s]=""}}}return xt(n)}catch(a){return e}}(t,n)+(r?" "+r:"")}))}Bt.prototype.G=function(){Bt.S.G.call(this),zt(this)},Bt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Qt.prototype.info=function(){};var Wt=null;function $t(){return Wt=Wt||new Ot}function Kt(t){nt.call(this,"serverreachability",t)}function Xt(t){var e=$t();e.dispatchEvent(new Kt(e,t))}function Yt(t){nt.call(this,"statevent",t)}function Jt(t){var e=$t();e.dispatchEvent(new Yt(e,t))}function Zt(t){nt.call(this,"timingevent",t)}function te(t,e){if("function"!=l(t))throw Error("Fn must not be null and must be a function");return u.setTimeout((function(){t()}),e)}_(Kt,nt),_(Yt,nt),_(Zt,nt);var ee={NO_ERROR:0,Za:1,gb:2,fb:3,bb:4,eb:5,hb:6,Da:7,TIMEOUT:8,kb:9},ne={ab:"complete",ob:"success",Ea:"error",Da:"abort",mb:"ready",nb:"readystatechange",TIMEOUT:"timeout",ib:"incrementaldata",lb:"progress",cb:"downloadprogress",pb:"uploadprogress"};function re(){}function ie(){}re.prototype.a=null;var oe,se={OPEN:"a",$a:"b",Ea:"c",jb:"d"};function ae(){nt.call(this,"d")}function ue(){nt.call(this,"c")}function ce(){}function le(t,e,n,r){this.g=t,this.c=e,this.f=n,this.T=r||1,this.J=new Bt(this),this.P=he,this.R=new Nt(t=H?125:void 0),this.B=null,this.b=!1,this.j=this.l=this.i=this.H=this.u=this.U=this.o=null,this.s=[],this.a=null,this.D=0,this.h=this.m=null,this.N=-1,this.A=!1,this.O=0,this.F=null,this.W=this.C=this.V=this.I=!1}_(ae,nt),_(ue,nt),_(ce,re),oe=new ce;var he=45e3,fe={},de={};function pe(t,e,n){t.H=1,t.i=Ne(ke(e)),t.j=n,t.I=!0,me(t,null)}function me(t,e){t.u=b(),ve(t),t.l=ke(t.i);var n=t.l,r=t.T;Array.isArray(r)||(r=[String(r)]),Ke(n.b,"t",r),t.D=0,t.a=zn(t.g,t.g.C?e:null),0<t.O&&(t.F=new Ut(y(t.Ca,t,t.a),t.O)),Ht(t.J,t.a,"readystatechange",t.Wa),e=t.B?P(t.B):{},t.j?(t.m||(t.m="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.a.ba(t.l,t.m,t.j,e)):(t.m="GET",t.a.ba(t.l,t.m,null,e)),Xt(1),function(t,e,n,r,i,o){t.info((function(){if(t.a)if(o)for(var s="",a=o.split("&"),u=0;u<a.length;u++){var c=a[u].split("=");if(1<c.length){var l=c[0];c=c[1];var h=l.split("_");s=2<=h.length&&"type"==h[1]?s+(l+"=")+c+"&":s+(l+"=redacted&")}}else s=null;else s=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+e+"\n"+n+"\n"+s}))}(t.c,t.m,t.l,t.f,t.T,t.j)}function ge(t,e,n){for(var r=!0;!t.A&&t.D<n.length;){var i=ye(t,n);if(i==de){4==e&&(t.h=4,Jt(14),r=!1),Gt(t.c,t.f,null,"[Incomplete Response]");break}if(i==fe){t.h=4,Jt(15),Gt(t.c,t.f,n,"[Invalid Chunk]"),r=!1;break}Gt(t.c,t.f,i,null),Oe(t,i)}4==e&&0==n.length&&(t.h=1,Jt(16),r=!1),t.b=t.b&&r,r?0<n.length&&!t.W&&(t.W=!0,(e=t.g).a==t&&e.V&&!e.F&&(e.c.info("Great, no buffering proxy detected. Bytes received: "+n.length),Nn(e),e.F=!0)):(Gt(t.c,t.f,n,"[Invalid Chunked Response]"),Ee(t),we(t))}function ye(t,e){var n=t.D,r=e.indexOf("\n",n);return-1==r?de:(n=Number(e.substring(n,r)),isNaN(n)?fe:(r+=1)+n>e.length?de:(e=e.substr(r,n),t.D=r+n,e))}function ve(t){t.U=b()+t.P,be(t,t.P)}function be(t,e){if(null!=t.o)throw Error("WatchDog timer not null");t.o=te(y(t.Ua,t),e)}function _e(t){t.o&&(u.clearTimeout(t.o),t.o=null)}function we(t){0==t.g.v||t.A||Vn(t.g,t)}function Ee(t){_e(t);var e=t.F;
vendor: 10,948 bytes, line 1
1e&&"function"==typeof e.ja&&e.ja(),t.F=null,Lt(t.R),zt(t.J),t.a&&(e=t.a,t.a=null,e.abort(),e.ja())}function Oe(t,e){try{var n=t.g;if(0!=n.v&&(n.a==t||nn(n.b,t)))if(n.I=t.N,!t.C&&nn(n.b,t)&&3==n.v){try{var r=n.ka.a.parse(e)}catch(g){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){t:if(!n.j){if(n.a){if(!(n.a.u+3e3<t.u))break t;Mn(n),Tn(n)}Fn(n),Jt(18)}}else n.oa=i[1],0<n.oa-n.P&&37500>i[2]&&n.H&&0==n.o&&!n.m&&(n.m=te(y(n.Ra,n),6e3));if(1>=en(n.b)&&n.ea){try{n.ea()}catch(g){}n.ea=void 0}}else Bn(n,11)}else if((t.C||n.a==t)&&Mn(n),!C(e))for(e=r=n.ka.a.parse(e),r=0;r<e.length;r++)if(n.P=(i=e[r])[0],i=i[1],2==n.v)if("c"==i[0]){n.J=i[1],n.ga=i[2];var o=i[3];null!=o&&(n.ha=o,n.c.info("VER="+n.ha));var s=i[4];null!=s&&(n.pa=s,n.c.info("SVER="+n.pa));var a=i[5];if(null!=a&&"number"==typeof a&&0<a){var u=1.5*a;n.D=u,n.c.info("backChannelRequestTimeoutMs_="+u)}u=n;var c=t.a;if(c){var l=c.a?c.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(l){var h=u.b;!h.a&&(A(l,"spdy")||A(l,"quic")||A(l,"h2"))&&(h.f=h.g,h.a=new Set,h.b&&(rn(h,h.b),h.b=null))}if(u.A){var f=c.a?c.a.getResponseHeader("X-HTTP-Session-Id"):null;f&&(u.na=f,Fe(u.B,u.A,f))}}n.v=3,n.f&&n.f.ta(),n.V&&(n.N=b()-t.u,n.c.info("Handshake RTT: "+n.N+"ms"));var d=t;if((u=n).la=Hn(u,u.C?u.ga:null,u.fa),d.C){on(u.b,d);var p=d,m=u.D;m&&p.setTimeout(m),p.o&&(_e(p),ve(p)),u.a=d}else Pn(u);0<n.g.length&&kn(n)}else"stop"!=i[0]&&"close"!=i[0]||Bn(n,7);else 3==n.v&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?Bn(n,7):Cn(n):"noop"!=i[0]&&n.f&&n.f.sa(i),n.o=0);Xt(4)}catch(g){}}function Se(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(h(t)||"string"==typeof t)O(t,e,void 0);else{if(t.L&&"function"==typeof t.L)var n=t.L();else if(t.K&&"function"==typeof t.K)n=void 0;else if(h(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.K&&"function"==typeof t.K)return t.K();if("string"==typeof t)return t.split("");if(h(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 xe(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 xe)for(n=t.L(),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 Ce(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];Te(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;)Te(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function Te(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(o=le.prototype).setTimeout=function(t){this.P=t},o.Wa=function(t){t=t.target;var e=this.F;e&&3==En(t)?e.f():this.Ca(t)},o.Ca=function(t){try{if(t==this.a)t:{var e=En(this.a),n=this.a.ua(),r=this.a.X();if(!(3>e||3==e&&!H&&!this.a.$())){this.A||4!=e||7==n||Xt(8==n||0>=r?3:2),_e(this);var i=this.a.X();this.N=i;var o=this.a.$();if(this.b=200==i,function(t,e,n,r,i,o,s){t.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+e+"\n"+n+"\n"+o+" "+s}))}(this.c,this.m,this.l,this.f,this.T,e,i),this.b){if(this.V&&!this.C){e:{if(this.a){var s,a=this.a;if((s=a.a?a.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!C(s)){var u=s;break e}}u=null}if(!u){this.b=!1,this.h=3,Jt(12),Ee(this),we(this);break t}Gt(this.c,this.f,u,"Initial handshake response via X-HTTP-Initial-Response"),this.C=!0,Oe(this,u)}this.I?(ge(this,e,o),H&&this.b&&3==e&&(Ht(this.J,this.R,"tick",this.Va),this.R.start())):(Gt(this.c,this.f,o,null),Oe(this,o)),4==e&&Ee(this),this.b&&!this.A&&(4==e?Vn(this.g,this):(this.b=!1,ve(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.h=3,Jt(12)):(this.h=0,Jt(13)),Ee(this),we(this)}}}catch(c){}},o.Va=function(){if(this.a){var t=En(this.a),e=this.a.$();this.D<e.length&&(_e(this),ge(this,t,e),this.b&&4!=t&&ve(this))}},o.cancel=function(){this.A=!0,Ee(this)},o.Ua=function(){this.o=null;var t=b();0<=t-this.U?(function(t,e){t.info((function(){return"TIMEOUT: "+e}))}(this.c,this.l),2!=this.H&&(Xt(3),Jt(17)),Ee(this),this.h=2,we(this)):be(this,this.U-t)},(o=xe.prototype).K=function(){Ce(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},o.L=function(){return Ce(this),this.a.concat()},o.get=function(t,e){return Te(this.b,t)?this.b[t]:e},o.set=function(t,e){Te(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},o.forEach=function(t,e){for(var n=this.L(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var je=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ae(t,e){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,t instanceof Ae){this.a=void 0!==e?e:t.a,Ie(this,t.f),this.j=t.j,De(this,t.c),Re(this,t.h),this.g=t.g,e=t.b;var n=new Qe;n.c=e.c,e.a&&(n.a=new xe(e.a),n.b=e.b),Pe(this,n),this.i=t.i}else t&&(n=String(t).match(je))?(this.a=!!e,Ie(this,n[1]||"",!0),this.j=Le(n[2]||""),De(this,n[3]||"",!0),Re(this,n[4]),this.g=Le(n[5]||"",!0),Pe(this,n[6]||"",!0),this.i=Le(n[7]||"")):(this.a=!!e,this.b=new Qe(null,this.a))}function ke(t){return new Ae(t)}function Ie(t,e,n){t.f=n?Le(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function De(t,e,n){t.c=n?Le(e,!0):e}function Re(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 Pe(t,e,n){e instanceof Qe?(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&&(We(this,e),Ke(this,n,t))}),t)),t.f=e}(t.b,t.a)):(n||(e=Me(e,He)),t.b=new Qe(e,t.a))}function Fe(t,e,n){t.b.set(e,n)}function Ne(t){return Fe(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^b()).toString(36)),t}function Le(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Me(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Ve),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Ve(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Ae.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Me(e,Ue,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(Me(e,Ue,!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(Me(n,"/"==n.charAt(0)?qe:Be,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",Me(n,ze)),t.join("")};var Ue=/[#\/\?@]/g,Be=/[#\?:]/g,qe=/[#\?]/g,He=/[#\?@]/g,ze=/#/g;function Qe(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function Ge(t){t.a||(t.a=new xe,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 We(t,e){Ge(t),e=Xe(t,e),Te(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,Te((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Ce(t)))}function $e(t,e){return Ge(t),e=Xe(t,e),Te(t.a.b,e)}function Ke(t,e,n){We(t,e),0<n.length&&(t.c=null,t.a.set(Xe(t,e),x(n)),t.b+=n.length)}function Xe(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function Ye(t,e){this.b=t,this.a=e}function Je(t){this.g=t||Ze,t=u.PerformanceNavigationTiming?0<(t=u.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(u.ia&&u.ia.ya&&u.ia.ya()&&u.ia.ya().qb),this.f=t?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}(o=Qe.prototype).add=function(t,e){Ge(this),this.c=null,t=Xe(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},o.forEach=function(t,e){Ge(this),this.a.forEach((function(n,r){O(n,(function(n){t.call(e,n,r,this)}),this)}),this)},o.L=function(){Ge(this);for(var t=this.a.K(),e=this.a.L(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},o.K=function(t){Ge(this);var e=[];if("string"==typeof t)$e(this,t)&&(e=S(e,this.a.get(Xe(this,t))));else{t=this.a.K();for(var n=0;n<t.length;n++)e=S(e,t[n])}return e},o.set=function(t,e){return Ge(this),this.c=null,$e(this,t=Xe(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},o.get=function(t,e){return t&&0<(t=this.K(t)).length?String(t[0]):e},o.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.L(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.K(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 tn(t){return!!t.b||!!t.a&&t.a.size>=t.f}function en(t){return t.b?1:t.a?t.a.size:0}function nn(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function rn(t,e){t.a?t.a.add(e):t.b=e}function on(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function sn(t){var e,n;if(null!=t.b)return t.c.concat(t.b.s);if(null!=t.a&&0!==t.a.size){var r=t.c;try{for(var o=i(t.a.values()),s=o.next();!s.done;s=o.next())r=r.concat(s.value.s)}catch(a){e={error:a}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}return x(t.c)}function an(){}function un(){this.a=new an}function cn(t,e,n){var r=n||"";try{Se(t,(function(t,n){var i=t;f(t)&&(i=xt(t)),e.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function ln(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}Je.prototype.cancel=function(){var t,e;if(this.c=sn(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=i(this.a.values()),r=n.next();!r.done;r=n.next())r.value.cancel()}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},an.prototype.stringify=function(t){return u.JSON.stringify(t,void 0)},an.prototype.parse=function(t){return u.JSON.parse(t,void 0)};var hn=u.JSON.parse;function fn(t){Ot.call(this),this.headers=new xe,this.H=t||null,this.b=!1,this.s=this.a=null,this.B="",this.h=0,this.f="",this.g=this.A=this.l=this.u=!1,this.o=0,this.m=null,this.I=dn,this.D=this.F=!1}_(fn,Ot);var dn="",pn=/^https?$/i,mn=["POST","PUT"];function gn(t){return"content-type"==t.toLowerCase()}function yn(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,vn(t),_n(t)}function vn(t){t.u||(t.u=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function bn(t){if(t.b&&void 0!==a&&(!t.s[1]||4!=En(t)||2!=t.X()))if(t.l&&4==En(t))Mt(t.za,0,t);else if(t.dispatchEvent("readystatechange"),4==En(t)){t.b=!1;try{var e,n=t.X();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r
1=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.B).match(je)[1]||null;if(!o&&u.self&&u.self.location){var s=u.self.location.protocol;o=s.substr(0,s.length-1)}i=!pn.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.h=6;try{var c=2<En(t)?t.a.statusText:""}catch(l){c=""}t.f=c+" ["+t.X()+"]",vn(t)}}finally{_n(t)}}}function _n(t,e){if(t.a){wn(t);var n=t.a,r=t.s[0]?c:null;t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){}}}function wn(t){t.a&&t.D&&(t.a.ontimeout=null),t.m&&(u.clearTimeout(t.m),t.m=null)}function En(t){return t.a?t.a.readyState:0}function On(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)):Fe(t,e,n))}function Sn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function xn(t){this.pa=0,this.g=[],this.c=new Qt,this.ga=this.la=this.B=this.fa=this.a=this.na=this.A=this.W=this.i=this.O=this.l=null,this.La=this.R=0,this.Ia=Sn("failFast",!1,t),this.H=this.m=this.j=this.h=this.f=null,this.T=!0,this.I=this.oa=this.P=-1,this.U=this.o=this.u=0,this.Fa=Sn("baseRetryDelayMs",5e3,t),this.Ma=Sn("retryDelaySeedMs",1e4,t),this.Ja=Sn("forwardChannelMaxRetries",2,t),this.ma=Sn("forwardChannelRequestTimeoutMs",2e4,t),this.Ka=t&&t.g||void 0,this.D=void 0,this.C=t&&t.supportsCrossDomainXhr||!1,this.J="",this.b=new Je(t&&t.concurrentRequestLimit),this.ka=new un,this.da=t&&t.fastHandshake||!1,this.Ga=t&&t.b||!1,t&&t.f&&(this.c.a=!1),t&&t.forceLongPolling&&(this.T=!1),this.V=!this.da&&this.T&&t&&t.c||!1,this.ea=void 0,this.N=0,this.F=!1,this.s=null}function Cn(t){if(jn(t),3==t.v){var e=t.R++,n=ke(t.B);Fe(n,"SID",t.J),Fe(n,"RID",e),Fe(n,"TYPE","terminate"),Dn(t,n),(e=new le(t,t.c,e,void 0)).H=2,e.i=Ne(ke(n)),n=!1,u.navigator&&u.navigator.sendBeacon&&(n=u.navigator.sendBeacon(e.i.toString(),"")),!n&&u.Image&&((new Image).src=e.i,n=!0),n||(e.a=zn(e.g,null),e.a.ba(e.i)),e.u=b(),ve(e)}qn(t)}function Tn(t){t.a&&(Nn(t),t.a.cancel(),t.a=null)}function jn(t){Tn(t),t.j&&(u.clearTimeout(t.j),t.j=null),Mn(t),t.b.cancel(),t.h&&("number"==typeof t.h&&u.clearTimeout(t.h),t.h=null)}function An(t,e){t.g.push(new Ye(t.La++,e)),3==t.v&&kn(t)}function kn(t){tn(t.b)||t.h||(t.h=!0,Dt(t.Ba,t),t.u=0)}function In(t,e){var n;n=e?e.f:t.R++;var r=ke(t.B);Fe(r,"SID",t.J),Fe(r,"RID",n),Fe(r,"AID",t.P),Dn(t,r),t.i&&t.l&&On(r,t.i,t.l),n=new le(t,t.c,n,t.u+1),null===t.i&&(n.B=t.l),e&&(t.g=e.s.concat(t.g)),e=Rn(t,n,1e3),n.setTimeout(Math.round(.5*t.ma)+Math.round(.5*t.ma*Math.random())),rn(t.b,n),pe(n,r,e)}function Dn(t,e){t.f&&Se({},(function(t,n){Fe(e,n,t)}))}function Rn(t,e,n){n=Math.min(t.g.length,n);var r=t.f?y(t.f.Ha,t.f,t):null;t:for(var i=t.g,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{cn(l,s,"req"+c+"_")}catch(h){r&&r(l)}}if(a){r=s.join("&");break t}}return t=t.g.splice(0,n),e.s=t,r}function Pn(t){t.a||t.j||(t.U=1,Dt(t.Aa,t),t.o=0)}function Fn(t){return!(t.a||t.j||3<=t.o||(t.U++,t.j=te(y(t.Aa,t),Un(t,t.o)),t.o++,0))}function Nn(t){null!=t.s&&(u.clearTimeout(t.s),t.s=null)}function Ln(t){t.a=new le(t,t.c,"rpc",t.U),null===t.i&&(t.a.B=t.l),t.a.O=0;var e=ke(t.la);Fe(e,"RID","rpc"),Fe(e,"SID",t.J),Fe(e,"CI",t.H?"0":"1"),Fe(e,"AID",t.P),Dn(t,e),Fe(e,"TYPE","xmlhttp"),t.i&&t.l&&On(e,t.i,t.l),t.D&&t.a.setTimeout(t.D);var n=t.a;t=t.ga,n.H=1,n.i=Ne(ke(e)),n.j=null,n.I=!0,me(n,t)}function Mn(t){null!=t.m&&(u.clearTimeout(t.m),t.m=null)}function Vn(t,e){var n=null;if(t.a==e){Mn(t),Nn(t),t.a=null;var r=2}else{if(!nn(t.b,e))return;n=e.s,on(t.b,e),r=1}if(t.I=e.N,0!=t.v)if(e.b)if(1==r){n=e.j?e.j.length:0,e=b()-e.u;var i=t.u;(r=$t()).dispatchEvent(new Zt(r,n,e,i)),kn(t)}else Pn(t);else if(3==(i=e.h)||0==i&&0<t.I||!(1==r&&function(t,e){return!(en(t.b)>=t.b.f-(t.h?1:0)||(t.h?(t.g=e.s.concat(t.g),0):1==t.v||2==t.v||t.u>=(t.Ia?0:t.Ja)||(t.h=te(y(t.Ba,t,e),Un(t,t.u)),t.u++,0)))}(t,e)||2==r&&Fn(t)))switch(n&&0<n.length&&(e=t.b,e.c=e.c.concat(n)),i){case 1:Bn(t,5);break;case 4:Bn(t,10);break;case 3:Bn(t,6);break;default:Bn(t,2)}}function Un(t,e){var n=t.Fa+Math.floor(Math.random()*t.Ma);return t.f||(n*=2),n*e}function Bn(t,e){if(t.c.info("Error code "+e),2==e){var n=null;t.f&&(n=null);var r=y(t.Xa,t);n||(n=new Ae("//www.google.com/images/cleardot.gif"),u.location&&"http"==u.location.protocol||Ie(n,"https"),Ne(n)),function(t,e){var n=new Qt;if(u.Image){var r=new Image;r.onload=v(ln,n,r,"TestLoadImage: loaded",!0,e),r.onerror=v(ln,n,r,"TestLoadImage: error",!1,e),r.onabort=v(ln,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=v(ln,n,r,"TestLoadImage: timeout",!1,e),u.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=t}else e(!1)}(n.toString(),r)}else Jt(2);t.v=0,t.f&&t.f.ra(e),qn(t),jn(t)}function qn(t){t.v=0,t.I=-1,t.f&&(0==sn(t.b).length&&0==t.g.length||(t.b.c.length=0,x(t.g),t.g.length=0),t.f.qa())}function Hn(t,e,n){var r=function(t){return t instanceof Ae?ke(t):new Ae(t,void 0)}(n);if(""!=r.c)e&&De(r,e+"."+r.c),Re(r,r.h);else{var i=u.location;r=function(t,e,n,r){var i=new Ae(null,void 0);return t&&Ie(i,t),e&&De(i,e),n&&Re(i,n),r&&(i.g=r),i}(i.protocol,e?e+"."+i.hostname:i.hostname,+i.port,n)}return t.W&&R(t.W,(function(t,e){Fe(r,e,t)})),n=t.na,(e=t.A)&&n&&Fe(r,e,n),Fe(r,"VER",t.ha),Dn(t,r),r}function zn(t,e){if(e&&!t.C)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new fn(t.Ka)).F=t.C,e}function Qn(){}function Gn(){if(B&&!(10<=Number(J)))throw Error("Environmental error: no available transport.")}function Wn(t,e){Ot.call(this),this.a=new xn(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.l=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.a&&(t?t["X-WebChannel-Client-Profile"]=e.a:t={"X-WebChannel-Client-Profile":e.a}),this.a.O=t,(t=e&&e.httpHeadersOverwriteParam)&&!C(t)&&(this.a.i=t),this.h=e&&e.supportsCrossDomainXhr||!1,this.g=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!C(e)&&(this.a.A=e,null!==(t=this.b)&&e in t&&e in(t=this.b)&&delete t[e]),this.f=new Xn(this)}function $n(t){ae.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 Kn(){ue.call(this),this.status=1}function Xn(t){this.a=t}(o=fn.prototype).ba=function(t,e,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+t);e=e?e.toUpperCase():"GET",this.B=t,this.f="",this.h=0,this.u=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=function(t){var e;return(e=t.a)||(e=t.a={}),e}(this.H?this.H:oe),this.a.onreadystatechange=y(this.za,this);try{this.A=!0,this.a.open(e,String(t),!0),this.A=!1}catch(o){return void yn(this,o)}t=n||"";var i=new xe(this.headers);r&&Se(r,(function(t,e){i.set(e,t)})),r=function(t){t:{for(var e=gn,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.L()),n=u.FormData&&t instanceof u.FormData,!(0<=E(mn,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;
1charset=utf-8"),i.forEach((function(t,e){this.a.setRequestHeader(e,t)}),this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{wn(this),0<this.o&&((this.D=function(t){return B&&Y(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=y(this.xa,this)):this.m=Mt(this.xa,this.o,this)),this.l=!0,this.a.send(t),this.l=!1}catch(o){yn(this,o)}},o.xa=function(){void 0!==a&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},o.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"),_n(this))},o.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),_n(this,!0)),fn.S.G.call(this)},o.za=function(){this.j||(this.A||this.l||this.g?bn(this):this.Ta())},o.Ta=function(){bn(this)},o.X=function(){try{return 2<En(this)?this.a.status:-1}catch(V){return-1}},o.$=function(){try{return this.a?this.a.responseText:""}catch(V){return""}},o.Na=function(t){if(this.a){var e=this.a.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),hn(e)}},o.ua=function(){return this.h},o.Qa=function(){return"string"==typeof this.f?this.f:String(this.f)},(o=xn.prototype).ha=8,o.v=1,o.Ba=function(t){if(this.h)if(this.h=null,1==this.v){if(!t){this.R=Math.floor(1e5*Math.random()),t=this.R++;var e,n=new le(this,this.c,t,void 0),r=this.l;if(this.O&&(r?N(r=P(r),this.O):r=this.O),null===this.i&&(n.B=r),this.da)t:{for(var i=e=0;i<this.g.length;i++){var o=this.g[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.g.length-1){e=i+1;break t}}e=1e3}else e=1e3;e=Rn(this,n,e),Fe(i=ke(this.B),"RID",t),Fe(i,"CVER",22),this.A&&Fe(i,"X-HTTP-Session-Id",this.A),Dn(this,i),this.i&&r&&On(i,this.i,r),rn(this.b,n),this.Ga&&Fe(i,"TYPE","init"),this.da?(Fe(i,"$req",e),Fe(i,"SID","null"),n.V=!0,pe(n,i,null)):pe(n,i,e),this.v=2}}else 3==this.v&&(t?In(this,t):0==this.g.length||tn(this.b)||In(this))},o.Aa=function(){if(this.j=null,Ln(this),this.V&&!(this.F||null==this.a||0>=this.N)){var t=2*this.N;this.c.info("BP detection timer enabled: "+t),this.s=te(y(this.Sa,this),t)}},o.Sa=function(){this.s&&(this.s=null,this.c.info("BP detection timeout reached."),this.c.info("Buffering proxy detected and switch to long-polling!"),this.H=!1,this.F=!0,Tn(this),Ln(this))},o.Ra=function(){null!=this.m&&(this.m=null,Tn(this),Fn(this),Jt(19))},o.Xa=function(t){t?(this.c.info("Successfully pinged google.com"),Jt(2)):(this.c.info("Failed to ping google.com"),Jt(1))},(o=Qn.prototype).ta=function(){},o.sa=function(){},o.ra=function(){},o.qa=function(){},o.Ha=function(){},Gn.prototype.a=function(t,e){return new Wn(t,e)},_(Wn,Ot),(o=Wn.prototype).addEventListener=function(t,e,n,r){Wn.S.addEventListener.call(this,t,e,n,r)},o.removeEventListener=function(t,e,n,r){Wn.S.removeEventListener.call(this,t,e,n,r)},o.Oa=function(){this.a.f=this.f,this.h&&(this.a.C=!0);var t=this.a,e=this.l,n=this.b||void 0;Jt(0),t.fa=e,t.W=n||{},t.H=t.T,t.B=Hn(t,null,t.fa),kn(t)},o.close=function(){Cn(this.a)},o.Pa=function(t){if("string"==typeof t){var e={};e.__data__=t,An(this.a,e)}else this.g?((e={}).__data__=xt(t),An(this.a,e)):An(this.a,t)},o.G=function(){this.a.f=null,delete this.f,Cn(this.a),delete this.a,Wn.S.G.call(this)},_($n,ae),_(Kn,ue),_(Xn,Qn),Xn.prototype.ta=function(){this.a.dispatchEvent("a")},Xn.prototype.sa=function(t){this.a.dispatchEvent(new $n(t))},Xn.prototype.ra=function(t){this.a.dispatchEvent(new Kn(t))},Xn.prototype.qa=function(){this.a.dispatchEvent("b")},Gn.prototype.createWebChannel=Gn.prototype.a,Wn.prototype.send=Wn.prototype.Pa,Wn.prototype.open=Wn.prototype.Oa,Wn.prototype.close=Wn.prototype.close,ee.NO_ERROR=0,ee.TIMEOUT=8,ee.HTTP_ERROR=6,ne.COMPLETE="complete",ie.EventType=se,se.OPEN="a",se.CLOSE="b",se.ERROR="c",se.MESSAGE="d",Ot.prototype.listen=Ot.prototype.va,fn.prototype.listenOnce=fn.prototype.wa,fn.prototype.getLastError=fn.prototype.Qa,fn.prototype.getLastErrorCode=fn.prototype.ua,fn.prototype.getStatus=fn.prototype.X,fn.prototype.getResponseJson=fn.prototype.Na,fn.prototype.getResponseText=fn.prototype.$,fn.prototype.send=fn.prototype.ba;var Yn=function(){return new Gn},Jn=ee,Zn=ne,tr=ie,er=fn;e.default={createWebChannelTransport:Yn,ErrorCode:Jn,EventType:Zn,WebChannel:tr,XhrIo:er}},xFI3:function(t,e,n){var r=n("Yoag"),i=n("6ae/"),o=n("Q1l4");t.exports=function(t){if(t instanceof r)return t.clone();var e=new i(t.__wrapped__,t.__chain__);return e.__actions__=o(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},xYSL:function(t,e){t.exports=function(t,e){return t.has(e)}},xaJk:function(t,e,n){var r=n("asDA"),i=n("SKAX"),o=n("ut/Y"),s=n("WPeF"),a=n("Z0cm");t.exports=function(t,e,n){var u=a(t)?r:s,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},xbPD:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new s(t,this.defaultValue))}}class s extends r.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()}}},"xs/l":function(t,e,n){var r=n("TYy9"),i=n("Ioao"),o=n("wclG");t.exports=function(t){return o(i(t,void 0,r),t+"")}},y1pI:function(t,e,n){var r=n("ljhN");t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},y4QH:function(t,e){var n=Math.max;t.exports=function(t,e,r,i){for(var o=-1,s=t.length,a=r.length,u=-1,c=e.length,l=n(s-a,0),h=Array(c+l),f=!i;++u<c;)h[u]=e[u];for(;++o<a;)(f||o<s)&&(h[r[o]]=t[o]);for(;l--;)h[u++]=t[o++];return h}},yCtX:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC"),i=n("ngJS"),o=n("jZKg");function s(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},yGk4:function(t,e,n){var r=n("Cwc5")(n("Kz5y"),"Set");t.exports=r},yHx3:function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input
1=t.input),r}},yP5f:function(t,e,n){var r=n("+K+b");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},yksw:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(r||(r={}))},yue5:function(t,e,n){var r=n("/9aa");t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==e,u=null===e,c=e==e,l=r(e);if(!u&&!l&&!s&&t>e||s&&a&&c&&!u&&!l||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<e||l&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!c)return-1}return 0}},"z+Ro":function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},z6cu:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("HDdC");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)}},zEVN:function(t,e,n){var r=n("Gi0A"),i=n("sEf8"),o=n("mdPL"),s=o&&o.isMap,a=s?i(s):r;t.exports=a},zR2W:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return s}));var r=n("+A1k"),i=n("8LbN"),o=n("6PXS"),s=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(e,n){var s;try{s=Object(r.a)(t,"mysql/lib/Connection.js")}catch(a){return void i.a.error("Mysql Integration was unable to require `mysql` package.")}Object(o.c)(s.prototype,"query",(function(t){return function(e,r,i){var o,s,a=null===(s=null===(o=n().getScope())||void 0===o?void 0:o.getSpan())||void 0===s?void 0:s.startChild({description:"string"==typeof e?e:e.sql,op:"db"});return"function"==typeof i?t.call(this,e,r,(function(t,e,n){var r;null===(r=a)||void 0===r||r.finish(),i(t,e,n)})):"function"==typeof r?t.call(this,e,(function(t,e,n){var i;null===(i=a)||void 0===i||i.finish(),r(t,e,n)})):t.call(this,e,r,i)}}))},e.id="Mysql",e}()}).call(this,n("3UD+")(t))},zUnb:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"FunctionToString",(function(){return c})),n.d(r,"InboundFilters",(function(){return y}));var i={};n.r(i),n.d(i,"Express",(function(){return Se})),n.d(i,"Postgres",(function(){return je.a})),n.d(i,"Mysql",(function(){return Ae.a})),n.d(i,"Mongo",(function(){return ke.a}));var o,s=n("fXoL"),a=n("AytR"),u="6.2.3",c=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){o=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.__sentry_original__||this;return o.apply(n,t)}},t.id="FunctionToString",t}(),l=n("SOwp"),h=n("KjyA"),f=n("lW6c"),d=n("8LbN"),p=n("9/Zf"),m=n("+924"),g=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],y=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){Object(h.b)((function(e){var n=Object(f.b)();if(!n)return e;var r=n.getIntegration(t);if(r){var i=n.getClient(),o=i?i.getOptions():{},s=r._mergeOptions(o);if(r._shouldDropEvent(e,s))return null}return e}))},t.prototype._shouldDropEvent=function(t,e){return this._isSentryError(t,e)?(d.a.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(p.d)(t)),!0):this._isIgnoredError(t,e)?(d.a.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(p.d)(t)),!0):this._isDeniedUrl(t,e)?(d.a.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Object(p.d)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isAllowedUrl(t,e)&&(d.a.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Object(p.d)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},t.prototype._isSentryError=function(t,e){if(!e.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(n){return!1}},t.prototype._isIgnoredError=function(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this._getPossibleEventMessages(t).some((function(t){return e.ignoreErrors.some((function(e){return Object(m.a)(t,e)}))}
1))},t.prototype._isDeniedUrl=function(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;var n=this._getEventFilterUrl(t);return!!n&&e.denyUrls.some((function(t){return Object(m.a)(n,t)}))},t.prototype._isAllowedUrl=function(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;var n=this._getEventFilterUrl(t);return!n||e.allowUrls.some((function(t){return Object(m.a)(n,t)}))},t.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{allowUrls:Object(l.__spread)(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:Object(l.__spread)(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:Object(l.__spread)(this._options.ignoreErrors||[],t.ignoreErrors||[],g),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},t.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=e.value,i=void 0===r?"":r;return[""+i,(void 0===n?"":n)+": "+i]}catch(o){return d.a.error("Cannot extract message for event "+Object(p.d)(t)),[]}return[]},t.prototype._getEventFilterUrl=function(t){try{if(t.stacktrace){var e=t.stacktrace.frames;return e&&e[e.length-1].filename||null}if(t.exception){var n=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(r){return d.a.error("Cannot extract url for event "+Object(p.d)(t)),null}},t.id="InboundFilters",t}(),v=n("HR75"),b=n("9AQC"),_=n("6PXS"),w=n("pRiV");function E(){if(!("fetch"in Object(p.e)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function O(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function S(){if(!E())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}
1var x,C,T,j=Object(p.e)(),A={},k={};function I(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(A[t.type]=A[t.type]||[],A[t.type].push(t.callback),function(t){if(!k[t])switch(k[t]=!0,t){case"console":"console"in j&&["debug","info","warn","error","log","assert"].forEach((function(t){t in j.console&&Object(_.c)(j.console,t,(function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];D("console",{args:n,level:t}),e&&Function.prototype.apply.call(e,j.console,n)}}))}));break;case"dom":!function(){if("document"in j){var t=D.bind(null,"dom"),e=F(t,!0);j.document.addEventListener("click",e,!1),j.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((function(e){var n=j[e]&&j[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(_.c)(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){var a=F(t);s.handler=a,e.call(this,n,a,i)}s.refCount+=1}catch(u){}return e.call(this,n,r,i)}})),Object(_.c)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[e];o&&(o.refCount-=1,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(s){}return t.call(this,e,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in j){var t=[],e=[],n=XMLHttpRequest.prototype;Object(_.c)(n,"open",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=this,s=r[1];o.__sentry_xhr__={method:Object(b.k)(r[0])?r[0].toUpperCase():r[0],url:r[1]},Object(b.k)(s)&&"POST"===o.__sentry_xhr__.method&&s.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var a=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(s){}try{var n=t.indexOf(o);if(-1!==n){t.splice(n);var i=e.splice(n)[0];o.__sentry_xhr__&&void 0!==i[0]&&(o.__sentry_xhr__.body=i[0])}}catch(s){}D("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?Object(_.c)(o,"onreadystatechange",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return a(),t.apply(o,e)}})):o.addEventListener("readystatechange",a),n.apply(o,r)}})),Object(_.c)(n,"send",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.push(this),e.push(r),D("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}}();break;case"fetch":(function(){if(!E())return!1;var t=Object(p.e)();if(O(t.fetch))return!0;var e=!1,n=t.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=O(r.contentWindow.fetch)),n.head.removeChild(r)}catch(i){d.a.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return e})()&&Object(_.c)(j,"fetch",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={args:e,fetchData:{method:R(e),url:P(e)},startTimestamp:Date.now()};return D("fetch",Object(l.__assign)({},r)),t.apply(j,e).then((function(t){return D("fetch",Object(l.__assign)(Object(l.__assign)({},r),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw D("fetch",Object(l.__assign)(Object(l.__assign)({},r),{endTimestamp:Date.now(),error:t})),t}))}}));break;case"history":!function(){if(function(){var t=Object(p.e)(),e=t.chrome;return!(e&&e.app&&e.app.runtime||!("history"in t)||!t.history.pushState||!t.history.replaceState)}()){var t=j.onpopstate;j.onpopstate=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=j.location.href,i=x;if(x=r,D("history",{from:i,to:r}),t)return t.apply(this,e)},Object(_.c)(j.history,"pushState",e),Object(_.c)(j.history,"replaceState",e)}function e(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length>2?e[2]:void 0;if(r){var i=x,o=String(r);x=o,D("history",{from:i,to:o})}return t.apply(this,e)}}}();break;case"error":L=j.onerror,j.onerror=function(t,e,n,r,i){return D("error",{column:r,error:i,line:n,msg:t,url:e}),!!L&&L.apply(this,arguments)};break;case"unhandledrejection":M=j.onunhandledrejection,j.onunhandledrejection=function(t){return D("unhandledrejection",t),!M||M.apply(this,arguments)};break;default:d.a.warn("unknown instrumentation type:",t)}}(t.type))}function D(t,e){var n,r;if(t&&A[t])try{for(var i=Object(l.__values)(A[t]||[]),o=i.next();!o.done;o=i.next()){var s=o.value;try{s(e)}catch(a){d.a.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+Object(w.a)(s)+"\nError: "+a)}}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function R(t){return void 0===t&&(t=[]),"Request"in j&&Object(b.g)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function P(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in j&&Object(b.g)(t[0],Request)?t[0].url:String(t[0])}function F(t,e){return void 0===e&&(e=!1),function(n){if(n&&T!==n&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;
1if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(n){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===C||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(n){}return!1}(T,n))&&(t({event:n,name:r,global:e}),T=n),clearTimeout(C),C=j.setTimeout((function(){C=void 0}),1e3)}}}var N,L=null,M=null,V=n("yksw"),U=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t}),B=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,U(r,n.prototype),r}return Object(l.__extends)(e,t),e}(Error),q=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,H=function(){function t(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var e=this,n=e.path,r=e.pass,i=e.port;return e.protocol+"://"+e.publicKey+(t&&r?":"+r:"")+"@"+e.host+(i?":"+i:"")+"/"+(n?n+"/":n)+e.projectId},t.prototype._fromString=function(t){var e=q.exec(t);if(!e)throw new B("Invalid Dsn");var n=Object(l.__read)(e.slice(1),6),r=n[0],i=n[1],o=n[2],s=void 0===o?"":o,a=n[3],u=n[4],c=void 0===u?"":u,h="",f=n[5],d=f.split("/");if(d.length>1&&(h=d.slice(0,-1).join("/"),f=d.pop()),f){var p=f.match(/^\d+/);p&&(f=p[0])}this._fromComponents({host:a,pass:s,path:h,projectId:f,port:c,protocol:r,publicKey:i})},t.prototype._fromComponents=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach((function(e){if(!t[e])throw new B("Invalid Dsn: "+e+" missing")})),!this.projectId.match(/^\d+$/))throw new B("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new B("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new B("Invalid Dsn: Invalid port "+this.port)},t}(),z=n("kdvv"),Q=[],G=function(){function t(t,e){this._integrations={},this._processing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=new H(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this,i=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return r._captureEvent(t,e,n)})).then((function(t){i=t}))),i},t.prototype.captureMessage=function(t,e,n,r){var i=this,o=n&&n.event_id,s=Object(b.i)(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(s.then((function(t){return i._captureEvent(t,n,r)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,e,n){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){r=t}))),r},t.prototype.captureSession=function(t){t.release?(this._sendSession(t),t.update({init:!1})):d.a.warn("Discarded session because of missing release")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.flush=function(t){var e=this;return this._isClientProcessing(t).then((function(n){return e._getBackend().getTransport().close(t).then((function(t){return n&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=function(t){var e={};return function(t){var e=t.defaultIntegrations&&Object(l.__spread)(t.defaultIntegrations)||[],n=t.integrations,r=[];if(Array.isArray(n)){var i=n.map((function(t){return t.name})),o=[];e.forEach((function(t){-1===i.indexOf(t.name)&&-1===o.indexOf(t.name)&&(r.push(t),o.push(t.name))})),n.forEach((function(t){-1===o.indexOf(t.name)&&(r.push(t),o.push(t.name))}))}else"function"==typeof n?(r=n(e),r=Array.isArray(r)?r:[r]):r=Object(l.__spread)(e);var s=r.map((function(t){return t.name})),a="Debug";return-1!==s.indexOf(a)&&r.push.apply(r,Object(l.__spread)(r.splice(s.indexOf(a),1))),r}(t).forEach((function(t){e[t.name]=t,function(t){-1===Q.indexOf(t.name)&&(t.setupOnce(h.b,f.b),Q.push(t.name),d.a.log("Integration installed: "+t.name))}(t)})),e}(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return d.a.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,r,i,o=!1,s=!1,a=e.exception&&e.exception.values;if(a){s=!0;try{for(var u=Object(l.__values)(a),c=u.next();!c.done;c=u.next()){var h=c.value.mechanism;if(h&&!1===h.handled){o=!0;break}}}catch(m){n={error:m}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}var f=e.user;if(!t.userAgent){var d=e.request?e.request.headers:{};for(var p in d)if("user-agent"===p.toLowerCase()){i=d[p];break}}t.update(Object(l.__assign)(Object(l.__assign)({},o&&{status:V.a.Crashed}),{user:f,userAgent:i,errors:t.errors+Number(s||o)})),this.captureSession(t)},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientProcessing=function(t){var e=this;return new v.a((function(n){var r=0,i=setInterval((function(){0==e._processing?(clearInterval(i),n(!0)):(r+=1,t&&r>=t&&(clearInterval(i),n(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var r=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,s=Object(l.__assign)(Object(l.__assign)({}
1,t),{event_id:t.event_id||(n&&n.event_id?n.event_id:Object(p.j)()),timestamp:t.timestamp||Object(z.b)()});this._applyClientOptions(s),this._applyIntegrationsMetadata(s);var a=e;n&&n.captureContext&&(a=h.a.clone(a).update(n.captureContext));var u=v.a.resolve(s);return a&&(u=a.applyToEvent(s,n)),u.then((function(t){return"number"==typeof o&&o>0?r._normalizeEvent(t,o):t}))},t.prototype._normalizeEvent=function(t,e){if(!t)return null;var n=Object(l.__assign)(Object(l.__assign)(Object(l.__assign)(Object(l.__assign)(Object(l.__assign)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return Object(l.__assign)(Object(l.__assign)({},t),t.data&&{data:Object(_.d)(t.data,e)})}))}),t.user&&{user:Object(_.d)(t.user,e)}),t.contexts&&{contexts:Object(_.d)(t.contexts,e)}),t.extra&&{extra:Object(_.d)(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),n},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.release,r=e.dist,i=e.maxValueLength,o=void 0===i?250:i;"environment"in t||(t.environment="environment"in e?e.environment:"production"),void 0===t.release&&void 0!==n&&(t.release=n),void 0===t.dist&&void 0!==r&&(t.dist=r),t.message&&(t.message=Object(m.d)(t.message,o));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Object(m.d)(s.value,o));var a=t.request;a&&a.url&&(a.url=Object(m.d)(a.url,o))},t.prototype._applyIntegrationsMetadata=function(t){var e=t.sdk,n=Object.keys(this._integrations);e&&n.length>0&&(e.integrations=n)},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){d.a.error(t)}))},t.prototype._processEvent=function(t,e,n){var r=this,i=this.getOptions(),o=i.beforeSend,s=i.sampleRate;if(!this._isEnabled())return v.a.reject(new B("SDK not enabled, will not send event."));var a="transaction"===t.type;return!a&&"number"==typeof s&&Math.random()>s?v.a.reject(new B("Discarding event because it's not included in the random sample (sampling rate = "+s+")")):this._prepareEvent(t,n,e).then((function(t){if(null===t)throw new B("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||a||!o)return t;var n=o(t,e);if(void 0===n)throw new B("`beforeSend` method has to return `null` or a valid event.");return Object(b.m)(n)?n.then((function(t){return t}),(function(t){throw new B("beforeSend rejected with "+t)})):n})).then((function(t){if(null===t)throw new B("`beforeSend` returned `null`, will not send event.");var e=n&&n.getSession&&n.getSession();return!a&&e&&r._updateSessionFromEvent(e,t),r._sendEvent(t),t})).then(null,(function(t){if(t instanceof B)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new B("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._processing+=1,t.then((function(t){return e._processing-=1,t}),(function(t){return e._processing-=1,t}))},t}();!function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(N||(N={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(N||(N={}));var W,$=function(){function t(){}return t.prototype.sendEvent=function(t){return v.a.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:N.Skipped})},t.prototype.close=function(t){return v.a.resolve(!0)},t}(),K=function(){function t(t){this._options=t,this._options.dsn||d.a.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new B("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new B("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){d.a.error("Error while sending event: "+t)}))},t.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){d.a.error("Error while sending session: "+t)})):d.a.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new $},t}();!function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(W||(W={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(W||(W={}));var X="?",Y=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,J=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Z=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,et=/\((\S*)(?::(\d+))(?::(\d+))\)/,nt=/Minified React error #\d+;/i;function rt(t){var e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:nt.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=t.stacktrace.split("\n"),o=[],s=0;s<i.length;s+=2){var a=null;(e=n.exec(i[s]))?a={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=r.exec(i[s]))&&(a={url:e[6],func:e[3]||e[4],args:e[5]?e[5].split(","):[],line:+e[1],column:+e[2]}),a&&(!a.func&&a.line&&(a.func=X),o.push(a))}return o.length?{message:ot(t),name:t.name,stack:o}:null}(t))return it(e,n)}catch(r){}try{if(e=function(t){if(!t||!t.stack)return null;for(var e,n,r,i=[],o=t.stack.split("\n"),s=0;s<o.length;++s){if(n=Y.exec(o[s])){var a=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=et.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),r={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||X,args:a?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=Z.exec(o[s]))r={url:n[2],func:n[1]||X,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=J.exec(o[s])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=tt.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==s||n[5]||void 0===t.columnNumber||(i[0].column=t.columnNumber+1),r={url:n[3],func:n[1]||X,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=X),i.push(r)}return i.length?{message:ot(t),name:t.name,stack:i}:null}(t))return it(e,n)}catch(r){}return{message:ot(t),name:t&&t.name,stack:[],failed:!0}}function it(t,e){try{return Object(l.__assign)(Object(l.__assign)({},t),{stack:t.stack.slice(e)})}catch(n){return t}}function ot(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function st(t){var e=ut(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function at(t){return{exception:{values:[st(t)]}}}function ut(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",r=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}function ct(t,e,n){var r;if(void 0===n&&(n={}),Object(b.e)(t)&&t.error)return at(rt(t=t.error));if(Object(b.a)(t)||Object(b.b)(t)){var i=t,o=i.name||(Object(b.a)(i)?"DOMError":"DOMException"),s=i.message?o+": "+i.message:o;return r=lt(s,e,n),Object(p.b)(r,s),"code"in i&&(r.tags=Object(l.__assign)(Object(l.__assign)({},r.tags),{"DOMException.code":""+i.code})),r}return Object(b.d)(t)?r=at(rt(t)):Object(b.h)(t)||Object(b.f)(t)?(r=function(t,e,n){var r={exception:{values:[{type:Object(b.f)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(_.b)(t)}]},extra:{__serialized__:Object(_.e)(t)}};if(e){var i=ut(rt(e).stack);r.stacktrace={frames:i}}return r}(t,e,n.rejection),Object(p.a)(r,{synthetic:!0}),r):(r=lt(t,e,n),Object(p.b)(r,""+t,void 0),Object(p.a)(r,{synthetic:!0}),r)}function lt(t,e,n){void 0===n&&(n={});var r={message:t};if(n.attachStacktrace&&e){var i=ut(rt(e).stack);r.stacktrace={frames:i}}return r}function ht(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function ft(t,e){return e?(t.sdk=t.sdk||{name:e.name,version:e.version},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=Object(l.__spread)(t.s
1dk.integrations||[],e.integrations||[]),t.sdk.packages=Object(l.__spread)(t.sdk.packages||[],e.packages||[]),t):t}function dt(t,e){var n=ht(e);return{body:JSON.stringify(Object(l.__assign)({sent_at:(new Date).toISOString()},n&&{sdk:n}))+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(t),type:"session",url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function pt(t,e){var n=ht(e),r=t.type||"event",i="transaction"===r,o=t.debug_meta||{},s=o.transactionSampling,a=Object(l.__rest)(o,["transactionSampling"]),u=s||{},c=u.method,h=u.rate;0===Object.keys(a).length?delete t.debug_meta:t.debug_meta=a;var f={body:JSON.stringify(n?ft(t,e.metadata.sdk):t),type:r,url:i?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(i){var d=JSON.stringify(Object(l.__assign)({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n})),p=JSON.stringify({type:t.type,sample_rates:[{id:c,rate:h}]});f.body=d+"\n"+p+"\n"+f.body}return f}var mt=function(){function t(t,e){void 0===e&&(e={}),this.dsn=t,this._dsnObject=new H(t),this.metadata=e}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.getBaseApiEndpoint=function(){var t=this._dsnObject;return(t.protocol?t.protocol+":":"")+"//"+t.host+(t.port?":"+t.port:"")+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var t=this._dsnObject;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,e){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+t+"/"+e),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var i in r.push("dsn="+e.toString()),t)if("dsn"!==i)if("user"===i){if(!t.user)continue;t.user.name&&r.push("name="+encodeURIComponent(t.user.name)),t.user.email&&r.push("email="+encodeURIComponent(t.user.email))}else r.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return r.length?n+"?"+r.join("&"):n},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(t){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+t+"/"},t.prototype._encodedAuth=function(){var t={sentry_key:this._dsnObject.publicKey,sentry_version:"7"};return Object(_.f)(t)},t}(),gt=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},t.prototype.add=function(t){var e=this;return this.isReady()?(-1===this._buffer.indexOf(t)&&this._buffer.push(t),t.then((function(){return e.remove(t)})).then(null,(function(){return e.remove(t).then(null,(function(){}))})),t):v.a.reject(new B("Not adding Promise due to buffer limit reached."))},t.prototype.remove=function(t){return this._buffer.splice(this._buffer.indexOf(t),1)[0]},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(t){var e=this;return new v.a((function(n){var r=setTimeout((function(){t&&t>0&&n(!1)}),t);v.a.all(e._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},t}(),yt=function(){function t(t){this.options=t,this._buffer=new gt(30),this._rateLimits={},this._api=new mt(t.dsn,t._metadata),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){throw new B("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,i=t.resolve,o=t.reject,s=N.fromHttpCode(n.status);this._handleRateLimit(r)&&d.a.warn("Too many requests, backing off until: "+this._disabledUntil(e)),s!==N.Success?o(n):i({status:s})},t.prototype._disabledUntil=function(t){return this._rateLimits[t]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},t.prototype._handleRateLimit=function(t){var e,n,r,i,o=Date.now(),s=t["x-sentry-rate-limits"],a=t["retry-after"];if(s){try{for(var u=Object(l.__values)(s.trim().split(",")),c=u.next();!c.done;c=u.next()){var h=c.value.split(":",2),f=parseInt(h[0],10),d=1e3*(isNaN(f)?60:f);try{for(var m=(r=void 0,Object(l.__values)(h[1].split(";"))),g=m.next();!g.done;g=m.next())this._rateLimits[g.value||"all"]=new Date(o+d)}catch(y){r={error:y}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}}catch(v){e={error:v}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}return!0}return!!a&&(this._rateLimits.all=new Date(o+Object(p.g)(o,a)),!0)},t}(),vt=function(t){function e(e,n){void 0===n&&(n=function(){var t,e,n=Object(p.e)(),r=n.document;if("function"==typeof(null===(t=r)||void 0===t?void 0:t.createElement))try{var i=r.createElement("iframe");
1if(i.hidden=!0,r.head.appendChild(i),null===(e=i.contentWindow)||void 0===e?void 0:e.fetch)return i.contentWindow.fetch.bind(n);r.head.removeChild(i)}catch(o){d.a.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return n.fetch.bind(n)}());var r=t.call(this,e)||this;return r._fetch=n,r}return Object(l.__extends)(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(pt(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(dt(t,this._api),t)},e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return Promise.reject({event:e,type:t.type,reason:"Transport locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:S()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new v.a((function(e,i){n._fetch(t.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:o,resolve:e,reject:i})})).catch(i)})))},e}(yt),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.__extends)(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(pt(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(dt(t,this._api),t)},e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?Promise.reject({event:e,type:t.type,reason:"Transport locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429}):this._buffer.add(new v.a((function(e,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:i,headers:o,resolve:e,reject:r})}},i.open("POST",t.url),n.options.headers)n.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(t.body)})))},e}(yt),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.__extends)(e,t),e.prototype.eventFromException=function(t,e){return function(t,e,n){var r=ct(e,n&&n.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return Object(p.a)(r,{handled:!0,type:"generic"}),r.level=W.Error,n&&n.event_id&&(r.event_id=n.event_id),v.a.resolve(r)}(this._options,t,e)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=W.Info),function(t,e,n,r){void 0===n&&(n=W.Info);var i=lt(e,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),v.a.resolve(i)}(this._options,t,e,n)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=Object(l.__assign)(Object(l.__assign)({},this._options.transportOptions),{dsn:this._options.dsn,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(e):E()?new vt(e):new bt(e)},e}(K),wt=n("gtzJ"),Et=0;function Ot(){return Et>0}function St(){Et+=1,setTimeout((function(){Et-=1}))}function xt(t,e,n){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(o){return t}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(t){return xt(t,e)}));return t.handleEvent?t.handleEvent.apply(this,i):t.apply(this,i)}catch(o){throw St(),Object(wt.b)((function(t){t.addEventProcessor((function(t){var n=Object(l.__assign)({},t);return e.mechanism&&(Object(p.b)(n,void 0,void 0),Object(p.a)(n,e.mechanism)),n.extra=Object(l.__assign)(Object(l.__assign)({},n.extra),{arguments:r}),n})),Object(wt.a)(o)})),o}};try{for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch(s){}t.prototype=t.prototype||{},r.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return t.name}})}catch(s){}return r}var Ct,Tt,jt,At=n("vFt6"),kt=function(){function t(e){this.name=t.id,this._options=Object(l.__assign)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&Object(f.b)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Object(p.d)(t)},{event:t})},t.prototype.setupOnce=function(){var t=this;this._options.console&&I({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._consoleBreadcrumb.apply(t,Object(l.__spread)(e))},type:"console"}),this._options.dom&&I({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._domBreadcrumb.apply(t,Object(l.__spread)(e))},type:"dom"}),this._options.xhr&&I({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._xhrBreadcrumb.apply(t,Object(l.__spread)(e))},type:"xhr"}),this._options.fetch&&I({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._fetchBreadcrumb.apply(t,Object(l.__spread)(e))},type:"fetch"}),this._options.history&&I({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._historyBreadcrumb.apply(t,Object(l.__spread)(e))},type:"history"})},t.prototype._consoleBreadcrumb=function(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:W.fromString(t.level),message:Object(m.b)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+(Object(m.b)(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}
1Object(f.b)().addBreadcrumb(e,{input:t.args,level:t.level})},t.prototype._domBreadcrumb=function(t){var e;try{e=t.event.target?Object(At.a)(t.event.target):Object(At.a)(t.event)}catch(n){e="<unknown>"}0!==e.length&&Object(f.b)().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name,global:t.global})},t.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,i=e.status_code,o=e.body;Object(f.b)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:t.xhr,input:o})}},t.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?Object(f.b)().addBreadcrumb({category:"fetch",data:t.fetchData,level:W.Error,type:"http"},{data:t.error,input:t.args}):Object(f.b)().addBreadcrumb({category:"fetch",data:Object(l.__assign)(Object(l.__assign)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},t.prototype._historyBreadcrumb=function(t){var e=Object(p.e)(),n=t.from,r=t.to,i=Object(p.h)(e.location.href),o=Object(p.h)(n),s=Object(p.h)(r);o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Object(f.b)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},t.id="Breadcrumbs",t}(),It=function(t){function e(e){return void 0===e&&(e={}),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:u}],version:u},t.call(this,_t,e)||this}return Object(l.__extends)(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),Object(p.e)().document&&(this._isEnabled()?function(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var e=document.createElement("script");e.async=!0,e.src=new mt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad),(document.head||document.body).appendChild(e)}else d.a.error("Missing dsn option in showReportDialog call");else d.a.error("Missing eventId option in showReportDialog call")}(Object(l.__assign)(Object(l.__assign)({},t),{dsn:t.dsn||this.getDsn()})):d.a.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,n,r)},e.prototype._sendEvent=function(e){var n=this.getIntegration(kt);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(G),Dt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Rt=function(){function t(e){this.name=t.id,this._options=Object(l.__assign)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=Object(p.e)();this._options.setTimeout&&Object(_.c)(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Object(_.c)(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Object(_.c)(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&Object(_.c)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Dt).forEach(this._wrapEventTarget.bind(this))},t.prototype._wrapTimeFunction=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0];return e[0]=xt(r,{mechanism:{data:{function:Object(w.a)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}},t.prototype._wrapRAF=function(t){return function(e){return t.call(this,xt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(w.a)(t)},handled:!0,type:"instrument"}}))}},t.prototype._wrapEventTarget=function(t){var e=Object(p.e)(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(_.c)(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=xt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(w.a)(r),target:t},handled:!0,type:"instrument"}}))}catch(o){}return e.call(this,n,xt(r,{mechanism:{data:{function:"addEventListener",handler:Object(w.a)(r),target:t},handled:!0,type:"instrument"}}),i)}})),Object(_.c)(n,"removeEventListener",(function(t){return function(e,n,r){var i,o=n;try{var s=null===(i=o)||void 0===i?void 0:i.__sentry_wrapped__;s&&t.call(this,e,s,r)}catch(a){}return t.call(this,e,o,r)}})))},t.prototype._wrapXHR=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this,i=["onload","onerror","onprogress","onreadystatechange"];
1return i.forEach((function(t){t in r&&"function"==typeof r[t]&&Object(_.c)(r,t,(function(e){var n={mechanism:{data:{function:t,handler:Object(w.a)(e)},handled:!0,type:"instrument"}};return e.__sentry_original__&&(n.mechanism.data.handler=Object(w.a)(e.__sentry_original__)),xt(e,n)}))})),t.apply(this,e)}},t.id="TryCatch",t}(),Pt=function(){function t(e){this.name=t.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Object(l.__assign)({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(d.a.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(d.a.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},t.prototype._installGlobalOnErrorHandler=function(){var e=this;this._onErrorHandlerInstalled||(I({callback:function(n){var r=n.error,i=Object(f.b)(),o=i.getIntegration(t),s=r&&!0===r.__sentry_own_request__;if(o&&!Ot()&&!s){var a=i.getClient(),u=Object(b.i)(r)?e._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):e._enhanceEventWithInitialFrame(ct(r,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);Object(p.a)(u,{handled:!1,type:"onerror"}),i.captureEvent(u,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},t.prototype._installGlobalOnUnhandledRejectionHandler=function(){var e=this;this._onUnhandledRejectionHandlerInstalled||(I({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(c){}var i=Object(f.b)(),o=i.getIntegration(t),s=r&&!0===r.__sentry_own_request__;if(!o||Ot()||s)return!0;var a=i.getClient(),u=Object(b.i)(r)?e._eventFromRejectionWithPrimitive(r):ct(r,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!0});u.level=W.Error,Object(p.a)(u,{handled:!1,type:"onunhandledrejection"}),i.captureEvent(u,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},t.prototype._eventFromIncompleteOnError=function(t,e,n,r){var i,o=Object(b.e)(t)?t.message:t;if(Object(b.k)(o)){var s=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(i=s[1],o=s[2])}return this._enhanceEventWithInitialFrame({exception:{values:[{type:i||"Error",value:o}]}},e,n,r)},t.prototype._eventFromRejectionWithPrimitive=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},t.prototype._enhanceEventWithInitialFrame=function(t,e,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(n,10))?void 0:n,s=Object(b.k)(e)&&e.length>0?e:Object(p.f)();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:i,filename:s,function:"?",in_app:!0,lineno:o}),t},t.id="GlobalHandlers",t}(),Ft=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){Object(h.b)((function(e,n){var r=Object(f.b)().getIntegration(t);return r?r._handler(e,n):e}))},t.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&Object(b.g)(e.originalException,Error)))return t;var n=this._walkErrorTree(e.originalException,this._key);return t.exception.values=Object(l.__spread)(n,t.exception.values),t},t.prototype._walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!Object(b.g)(t[e],Error)||n.length+1>=this._limit)return n;var r=st(rt(t[e]));return this._walkErrorTree(t[e],e,Object(l.__spread)([r],n))},t.id="LinkedErrors",t}(),Nt=Object(p.e)(),Lt=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Object(h.b)((function(e){var n,r,i;if(Object(f.b)().getIntegration(t)){if(!Nt.navigator&&!Nt.location&&!Nt.document)return e;var o=(null===(n=e.request)||void 0===n?void 0:n.url)||(null===(r=Nt.location)||void 0===r?void 0:r.href),s=(Nt.document||{}).referrer,a=(Nt.navigator||{}).userAgent,u=Object(l.__assign)(Object(l.__assign)(Object(l.__assign)({},null===(i=e.request)||void 0===i?void 0:i.headers),s&&{Referer:s}
1),a&&{"User-Agent":a}),c=Object(l.__assign)(Object(l.__assign)({},o&&{url:o}),{headers:u});return Object(l.__assign)(Object(l.__assign)({},e),{request:c})}return e}))},t.id="UserAgent",t}(),Mt=[new r.InboundFilters,new r.FunctionToString,new Rt,new kt,new Pt,new Ft,new Lt],Vt=n("tyNb"),Ut=n("pLZG"),Bt=n("vkgz");function qt(){var t=Object(f.b)();if(t){var e=t.getScope();if(e)return e.getTransaction()}}var Ht,zt,Qt=Object(l.__decorate)([Object(s.r)({providedIn:"root"})],(function(t){var e=this;this._router=t,this.navStart$=this._router.events.pipe(Object(Ut.a)((function(t){return t instanceof Vt.d})),Object(Bt.a)((function(t){if(Ct){var n=t,r=Object(p.i)(n.url),i=qt();!i&&jt&&(i=Tt({name:r,op:"navigation"})),i&&(e._routingSpan=i.startChild({description:""+n.url,op:"angular.routing",tags:Object(l.__assign)({"routing.instrumentation":"@sentry/angular",url:r},n.navigationTrigger&&{navigationTrigger:n.navigationTrigger})}))}else d.a.error("Angular integration has tracing enabled, but Tracing integration is not configured")}))),this.navEnd$=this._router.events.pipe(Object(Ut.a)((function(t){return t instanceof Vt.c})),Object(Bt.a)((function(){e._routingSpan&&(e._routingSpan.finish(),delete e._routingSpan)}))),this.navStart$.subscribe(),this.navEnd$.subscribe()}));!function(){function t(){this.componentName="unknown"}t.prototype.ngOnInit=function(){var t=qt();t&&(this._tracingSpan=t.startChild({description:"<"+this.componentName+">",op:"angular.initialize"}))},t.prototype.ngAfterViewInit=function(){this._tracingSpan&&this._tracingSpan.finish()},Object(l.__decorate)([Object(s.u)("trace")],t.prototype,"componentName",void 0),t=Object(l.__decorate)([Object(s.l)({selector:"[trace]"})],t)}(),function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"}(Ht||(Ht={})),function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"}(zt||(zt={})),function(t){t.fromHttpCode=function(e){if(e<400)return t.Ok;if(e>=400&&e<500)switch(e){case 401:return t.Unauthenticated;case 403:return t.PermissionDenied;case 404:return t.NotFound;case 409:return t.AlreadyExists;case 413:return t.FailedPrecondition;case 429:return t.ResourceExhausted;default:return t.InvalidArgument}if(e>=500&&e<600)switch(e){case 501:return t.Unimplemented;case 503:return t.Unavailable;case 504:return t.DeadlineExceeded;default:return t.InternalError}return t.UnknownError}}(zt||(zt={}));var Gt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Wt(t){return"tracesSampleRate"in t||"tracesSampler"in t}function $t(t){var e,n;return void 0===t&&(t=Object(f.b)()),null===(n=null===(e=t)||void 0===e?void 0:e.getScope())||void 0===n?void 0:n.getTransaction()}function Kt(t){return t/1e3}function Xt(){var t=$t();t&&(d.a.log("[Tracing] Transaction: "+zt.InternalError+" -> Global error occured"),t.setStatus(zt.InternalError))}var Yt=function(){function t(t){void 0===t&&(t=1e3),this.spans=[],this._maxlen=t}return t.prototype.add=function(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)},t}(),Jt=function(t){function e(e,n){var r=t.call(this,e)||this;return r._metadata={},r._measurements={},r._hub=Object(f.b)(),Object(b.g)(n,f.a)&&(r._hub=n),r.name=e.name||"",r._trimEnd=e.trimEnd,r.transaction=r,r}return Object(l.__extends)(e,t),e.prototype.setName=function(t){this.name=t},e.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new Yt(t)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(t){this._measurements=Object(l.__assign)({},t)},e.prototype.setMetadata=function(t){this._metadata=Object(l.__assign)(Object(l.__assign)({},this._metadata),t)},e.prototype.finish=function(e){var n=this;if(void 0===this.endTimestamp){if(this.name||(d.a.warn("Transaction has no name, falling back to `<unlabeled transaction>
1`."),this.name="<unlabeled transaction>"),t.prototype.finish.call(this,e),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(t){return t!==n&&t.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(t,e){return t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t})).endTimestamp);var i={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",debug_meta:this._metadata};return Object.keys(this._measurements).length>0&&(d.a.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),this._hub.captureEvent(i)}d.a.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.")}},e.prototype.toContext=function(){var e=t.prototype.toContext.call(this);return Object(_.a)(Object(l.__assign)(Object(l.__assign)({},e),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(e){var n;return t.prototype.updateWithContext.call(this,e),this.name=null!=(n=e.name)?n:"",this._trimEnd=e.trimEnd,this},e}(function(){function t(t){if(this.traceId=Object(p.j)(),this.spanId=Object(p.j)().substring(16),this.startTimestamp=Object(z.c)(),this.tags={},this.data={},!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return t.prototype.child=function(t){return this.startChild(t)},t.prototype.startChild=function(e){var n=new t(Object(l.__assign)(Object(l.__assign)({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},t.prototype.setTag=function(t,e){var n;return this.tags=Object(l.__assign)(Object(l.__assign)({},this.tags),((n={})[t]=e,n)),this},t.prototype.setData=function(t,e){var n;return this.data=Object(l.__assign)(Object(l.__assign)({},this.data),((n={})[t]=e,n)),this},t.prototype.setStatus=function(t){return this.status=t,this},t.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var e=zt.fromHttpCode(t);return e!==zt.UnknownError&&this.setStatus(e),this},t.prototype.isSuccess=function(){return this.status===zt.Ok},t.prototype.finish=function(t){this.endTimestamp="number"==typeof t?t:Object(z.c)()},t.prototype.toTraceparent=function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},t.prototype.toContext=function(){return Object(_.a)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(t){var e,n,r,i,o;return this.data=null!=(e=t.data)?e:{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=null!=(n=t.spanId)?n:this.spanId,this.startTimestamp=null!=(r=t.startTimestamp)?r:this.startTimestamp,this.status=t.status,this.tags=null!=(i=t.tags)?i:{},this.traceId=null!=(o=t.traceId)?o:this.traceId,this},t.prototype.getTraceContext=function(){return Object(_.a)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return Object(_.a)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}()),Zt=function(t){function e(e,n,r,i){void 0===r&&(r="");var o=t.call(this,i)||this;return o._pushActivity=e,o._popActivity=n,o.transactionSpanId=r,o}return Object(l.__extends)(e,t),e.prototype.add=function(e){var n=this;e.spanId!==this.transactionSpanId&&(e.finish=function(t){e.endTimestamp="number"==typeof t?t:Object(z.c)(),n._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),t.prototype.add.call(this,e)},e}(Yt),te=function(t){function e(e,n,r,i){void 0===r&&(r=1e3),void 0===i&&(i=!1);var o=t.call(this,e,n)||this;return o._idleHub=n,o._idleTimeout=r,o._onScope=i,o.activities={},o._heartbeatTimer=0,o._heartbeatCounter=0,o._finished=!1,o._beforeFinishCallbacks=[],n&&i&&(ee(n),d.a.log("Setting idle transaction on scope. Span ID: "+o.spanId),n.configureScope((function(t){return t.setSpan(o)}))),o._initTimeout=setTimeout((function(){o._finished||o.finish()}),o._idleTimeout),o}return Object(l.__extends)(e,t),e.prototype.finish=function(e){var n,r,i=this;if(void 0===e&&(e=Object(z.c)()),this._finished=!0,this.activities={},this.spanRecorder){d.a.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);try{for(var o=Object(l.__values)(this._beforeFinishCallbacks),s=o.next();!s.done;s=o.next())(0,s.value)(this,e)}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(t){if(t.spanId===i.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus(zt.Cancelled),d.a.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var n=t.startTimestamp<e;return n||d.a.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),d.a.log("[Tracing] flushing IdleTransaction")}else d.a.log("[Tracing] No active IdleTransaction");return this._onScope&&ee(this._idleHub),t.prototype.finish.call(this,e)},e.prototype.registerBeforeFinishCallback=function(t){this._beforeFinishCallbacks.push(t)},e.prototype.initSpanRecorder=function(t){var e=this;this.spanRecorder||(this.spanRecorder=new Zt((function(t){e._finished||e._pushActivity(t)}),(function(t){e._finished||e._popActivity(t)}),this.spanId,t),d.a.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)},e.prototype._pushActivity=function(t){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),d.a.log("[Tracing] pushActivity: "+t),this.activities[t]=!0,d.a.log("[Tracing] new activities count",Object.keys(this.activities).length)},e.prototype._popActivity=function(t){var e=this;
1if(this.activities[t]&&(d.a.log("[Tracing] popActivity "+t),delete this.activities[t],d.a.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,r=Object(z.c)()+n/1e3;setTimeout((function(){e._finished||e.finish(r)}),n)}},e.prototype._beat=function(){if(clearTimeout(this._heartbeatTimer),!this._finished){var t=Object.keys(this.activities),e=t.length?t.reduce((function(t,e){return t+e})):"";e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(d.a.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(zt.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var t=this;d.a.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),this._heartbeatTimer=setTimeout((function(){t._beat()}),5e3)},e}(Jt);function ee(t){if(t){var e=t.getScope();e&&e.getTransaction()&&e.setSpan(void 0)}}function ne(t,e,n){return Wt(e)?void 0!==t.sampled?(t.setMetadata({transactionSampling:{method:Ht.Explicit}}),t):("function"==typeof e.tracesSampler?(i=e.tracesSampler(n),t.setMetadata({transactionSampling:{method:Ht.Sampler,rate:Number(i)}})):void 0!==n.parentSampled?(i=n.parentSampled,t.setMetadata({transactionSampling:{method:Ht.Inheritance}})):(i=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:Ht.Rate,rate:Number(i)}})),r=i,(isNaN(r)||"number"!=typeof r&&"boolean"!=typeof r?(d.a.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(r)+" of type "+JSON.stringify(typeof r)+"."),0):!(r<0||r>1)||(d.a.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+r+"."),0))?i?(t.sampled=Math.random()<i,t.sampled?(d.a.log("[Tracing] starting "+t.op+" transaction - "+t.name),t):(d.a.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(i)+")"),t)):(d.a.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(d.a.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)):(t.sampled=!1,t);var r,i}var re,ie,oe=Object(p.e)(),se=function(t,e,n,r){var i;return function(){n&&e.isFinal&&n.disconnect(),e.value>=0&&(r||e.isFinal||"hidden"===document.visibilityState)&&(e.delta=e.value-(i||0),(e.delta||e.isFinal||void 0===i)&&(t(e),i=e.value))}},ae=function(t,e){return void 0===e&&(e=-1),{name:t,value:e,delta:0,entries:[],id:Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12),isFinal:!1}},ue=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(r){}},ce=!1,le=!1,he=function(t){ce=!t.persisted},fe=function(t,e){void 0===e&&(e=!1),le||(addEventListener("pagehide",he),addEventListener("beforeunload",(function(){})),le=!0),addEventListener("visibilitychange",(function(e){"hidden"===document.visibilityState&&t({timeStamp:e.timeStamp,isUnloading:ce})}),{capture:!0,once:e})},de=function(){return void 0===re&&(re="hidden"===document.visibilityState?0:1/0,fe((function(t){return re=t.timeStamp}),!0)),{get timeStamp(){return re}}},pe=Object(p.e)(),me=Object(p.e)(),ge=function(){function t(){this._measurements={},this._performanceCursor=0,me&&me.performance&&(me.performance.mark&&me.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID(),this._trackTTFB())}return t.prototype.addPerformanceEntries=function(t){var e=this;if(me&&me.performance&&me.performance.getEntries&&z.a){d.a.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,i,o=Kt(z.a);if(me.document)for(var s=0;s<document.scripts.length;s++)if("true"===document.scripts[s].dataset.entry){n=document.scripts[s].src;break}if(me.performance.getEntries().slice(this._performanceCursor).forEach((function(s){var a=Kt(s.startTime),u=Kt(s.duration);if(!("navigation"===t.op&&o+a<t.startTimestamp))switch(s.entryType){case"navigation":!function(t,e,n){ye(t,e,"unloadEvent",n),ye(t,e,"redirect",n),ye(t,e,"domContentLoadedEvent",n),ye(t,e,"loadEvent",n),ye(t,e,"connect",n),ye(t,e,"secureConnection",n,"connectEnd"),ye(t,e,"fetch",n,"domainLookupStart"),ye(t,e,"domainLookup",n),function(t,e,n){ve(t,{op:"browser",description:"request",startTimestamp:n+Kt(e.requestStart),endTimestamp:n+Kt(e.responseEnd)}),ve(t,{op:"browser",description:"response",startTimestamp:n+Kt(e.responseStart),endTimestamp:n+Kt(e.responseEnd)})}(t,e,n)}(t,s,o);break;case"mark":case"paint":case"measure":var c=function(t,e,n,r,i){var o=i+n;return ve(t,{description:e.name,endTimestamp:o+r,op:e.entryType,startTimestamp:o}),o}(t,s,a,u,o);void 0===i&&"sentry-tracing-init"===s.name&&(i=c);var l=de(),h=s.startTime<l.timeStamp;"first-paint"===s.name&&h&&(d.a.log("[Measurements] Adding FP"),e._measurements.fp={value:s.startTime},e._measurements["mark.fp"]={value:c}
1),"first-contentful-paint"===s.name&&h&&(d.a.log("[Measurements] Adding FCP"),e._measurements.fcp={value:s.startTime},e._measurements["mark.fcp"]={value:c});break;case"resource":var f=s.name.replace(window.location.origin,""),p=function(t,e,n,r,i,o){if("xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType){var s={};"transferSize"in e&&(s["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(s["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(s["Decoded Body Size"]=e.decodedBodySize);var a=o+r,u=a+i;return ve(t,{description:n,endTimestamp:u,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:a,data:s}),u}}(t,s,f,a,u,o);void 0===r&&(n||"").indexOf(f)>-1&&(r=p)}})),void 0!==r&&void 0!==i&&ve(t,{description:"evaluation",endTimestamp:i,op:"script",startTimestamp:r}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(t),"pageload"===t.op){var a=Kt(z.a);["fcp","fp","lcp","ttfb"].forEach((function(n){if(e._measurements[n]&&!(a>=t.startTimestamp)){var r=e._measurements[n].value,i=a+Kt(r),o=Math.abs(1e3*(i-t.startTimestamp));d.a.log("[Measurements] Normalized "+n+" from "+r+" to "+o+" ("+(o-r)+")"),e._measurements[n].value=o}})),this._measurements["mark.fid"]&&this._measurements.fid&&ve(t,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+Kt(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),t.setMeasurements(this._measurements)}}},t.prototype._trackCLS=function(){var t=this;!function(e,n){void 0===n&&(n=!1);var r,i=ae("CLS",0),o=function(t){t.hadRecentInput||(i.value+=t.value,i.entries.push(t),r())},s=ue("layout-shift",o);s&&(r=se((function(e){e.entries.pop()&&(d.a.log("[Measurements] Adding CLS"),t._measurements.cls={value:e.value})}),i,s,n),fe((function(t){var e=t.isUnloading;s.takeRecords().map(o),e&&(i.isFinal=!0),r()})))}()},t.prototype._trackNavigator=function(t){var e=me.navigator;if(e){var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),be(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),be(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),be(e.deviceMemory)&&t.setTag("deviceMemory",String(e.deviceMemory)),be(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}},t.prototype._trackLCP=function(){var t=this;!function(e,n){void 0===n&&(n=!1);var r,i=ae("LCP"),o=de(),s=function(t){var e=t.startTime;e<o.timeStamp?(i.value=e,i.entries.push(t)):i.isFinal=!0,r()},a=ue("largest-contentful-paint",s);if(a){r=se((function(e){var n=e.entries.pop();if(n){var r=Kt(performance.timeOrigin),i=Kt(n.startTime);d.a.log("[Measurements] Adding LCP"),t._measurements.lcp={value:e.value},t._measurements["mark.lcp"]={value:r+i}}}),i,a,n);var u=function(){i.isFinal||(a.takeRecords().map(s),i.isFinal=!0,r())};(ie||(ie=new Promise((function(t){return["scroll","keydown","pointerdown"].map((function(e){addEventListener(e,t,{once:!0,passive:!0,capture:!0})}))}))),ie).then(u),fe(u,!0)}}()},t.prototype._trackFID=function(){var t,e,n,r,i,o,s=this;t=function(t){var e=t.entries.pop();if(e){var n=Kt(performance.timeOrigin),r=Kt(e.startTime);d.a.log("[Measurements] Adding FID"),s._measurements.fid={value:t.value},s._measurements["mark.fid"]={value:n+r}}},e=ae("FID"),n=de(),i=ue("first-input",r=function(t){t.startTime<n.timeStamp&&(e.value=t.processingStart-t.startTime,e.entries.push(t),e.isFinal=!0,o())}),o=se(t,e,i),i?fe((function(){i.takeRecords().map(r),i.disconnect()}),!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(t,r){r.timeStamp<n.timeStamp&&(e.value=t,e.isFinal=!0,e.entries=[{entryType:"first-input",name:r.type,target:r.target,cancelable:r.cancelable,startTime:r.timeStamp,processingStart:r.timeStamp+t}],o())}))},t.prototype._trackTTFB=function(){var t,e,n,r=this;t=function(t){var e,n=t.entries.pop();if(n){d.a.log("[Measurements] Adding TTFB"),r._measurements.ttfb={value:t.value};var i=t.value-(e=t.entries[0],null!=e?e:n).requestStart;r._measurements["ttfb.requestTime"]={value:i}}},n=ae("TTFB"),e=function(){try{var e=pe.performance.getEntriesByType("navigation")[0]||function(){var t=pe.performance.timing,e={entryType:"navigation",startTime:0};for(var n in t)"navigationStart"!==n&&"toJSON"!==n&&(e[n]=Math.max(t[n]-t.navigationStart,0));return e}();n.value=n.delta=e.responseStart,n.entries=[e],t(n)}catch(r){}},"complete"===document.readyState?setTimeout(e,0):addEventListener("pageshow",e)},t}();function ye(t,e,n,r,i){var o=i?e[i]:e[n+"End"],s=e[n+"Start"];s&&o&&ve(t,{op:"browser",description:n,startTimestamp:r+Kt(s),endTimestamp:r+Kt(o)})}function ve(t,e){var n=e.startTimestamp,r=Object(l.__rest)(e,["startTimestamp"]);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild(Object(l.__assign)({startTimestamp:n},r))}function be(t){return"number"==typeof t&&isFinite(t)}
1var _e={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]},we=Object(p.e)(),Ee=Object(l.__assign)({idleTimeout:1e3,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(t,e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!0),we&&we.location){var r,i=we.location.href;e&&(r=t({name:we.location.pathname,op:"pageload"})),n&&I({callback:function(e){var n=e.to,o=e.from;void 0===o&&i&&-1!==i.indexOf(n)?i=void 0:o!==n&&(i=void 0,r&&(d.a.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=t({name:we.location.pathname,op:"navigation"}))},type:"history"})}else d.a.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},_e),Oe=function(){function t(e){this.name=t.id,this._metrics=new ge,this._emitOptionsWarning=!1;var n=_e.tracingOrigins;e&&e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&0!==e.tracingOrigins.length?n=e.tracingOrigins:this._emitOptionsWarning=!0,this.options=Object(l.__assign)(Object(l.__assign)(Object(l.__assign)({},Ee),e),{tracingOrigins:n})}return t.prototype.setupOnce=function(t,e){var n=this;this._getCurrentHub=e,this._emitOptionsWarning&&(d.a.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),d.a.warn("[Tracing] We added a reasonable default for you: "+_e.tracingOrigins));var r=this.options,i=r.markBackgroundTransactions,o=r.traceFetch,s=r.traceXHR,a=r.tracingOrigins,u=r.shouldCreateSpanForRequest;(0,r.routingInstrumentation)((function(t){return n._createRouteTransaction(t)}),r.startTransactionOnPageLoad,r.startTransactionOnLocationChange),i&&(oe&&oe.document?oe.document.addEventListener("visibilitychange",(function(){var t=$t();oe.document.hidden&&t&&(d.a.log("[Tracing] Transaction: "+zt.Cancelled+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(zt.Cancelled),t.setTag("visibilitychange","document.hidden"),t.finish())})):d.a.warn("[Tracing] Could not set up background tab detection due to lack of global document")),function(e){var n=Object(l.__assign)(Object(l.__assign)({},_e),e),r=n.traceXHR,i=n.tracingOrigins,o=n.shouldCreateSpanForRequest,s={},a=function(t){return s[t]||(s[t]=i.some((function(e){return Object(m.a)(t,e)}))&&!Object(m.a)(t,"sentry_key")),s[t]},u=a;"function"==typeof o&&(u=function(t){return a(t)&&o(t)});var c={};n.traceFetch&&I({callback:function(t){!function(t,e,n){var r,i=null===(r=Object(f.b)().getClient())||void 0===r?void 0:r.getOptions();if(i&&Wt(i)&&t.fetchData&&e(t.fetchData.url))if(t.endTimestamp&&t.fetchData.__span){if(a=n[t.fetchData.__span]){var o=t.response;o&&a.setHttpStatus(o.status),a.finish(),delete n[t.fetchData.__span]}}else{var s=$t();if(s){var a=s.startChild({data:Object(l.__assign)(Object(l.__assign)({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http"});t.fetchData.__span=a.spanId,n[a.spanId]=a;var u=t.args[0]=t.args[0],c=t.args[1]=t.args[1]||{},h=c.headers;Object(b.g)(u,Request)&&(h=u.headers),h?"function"==typeof h.append?h.append("sentry-trace",a.toTraceparent()):h=Array.isArray(h)?Object(l.__spread)(h,[["sentry-trace",a.toTraceparent()]]):Object(l.__assign)(Object(l.__assign)({},h),{"sentry-trace":a.toTraceparent()}):h={"sentry-trace":a.toTraceparent()},c.headers=h}}}(t,u,c)},type:"fetch"}),r&&I({callback:function(e){!function(e,n,r){var i,o=null===(i=Object(f.b)().getClient())||void 0===i?void 0:i.getOptions();if(o&&Wt(o)&&e.xhr&&e.xhr.__sentry_xhr__&&n(e.xhr.__sentry_xhr__.url)&&!e.xhr.__sentry_own_request__){var s=e.xhr.__sentry_xhr__;if(e.endTimestamp&&e.xhr.__sentry_xhr_span_id__)(u=r[e.xhr.__sentry_xhr_span_id__])&&(u.setHttpStatus(s.status_code),u.finish(),delete r[e.xhr.__sentry_xhr_span_id__]);else{var a=$t();if(a){var u=a.startChild({data:Object(l.__assign)(Object(l.__assign)({},s.data),{type:"xhr",method:s.method,url:s.url}),description:s.method+" "+s.url,op:"http"});if(e.xhr.__sentry_xhr_span_id__=u.spanId,r[e.xhr.__sentry_xhr_span_id__]=u,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",u.toTraceparent())}catch(t){}}}}}(e,u,c)},type:"xhr"})}({traceFetch:o,traceXHR:s,tracingOrigins:a,shouldCreateSpanForRequest:u})},t.prototype._createRouteTransaction=function(t){var e=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,i=n.idleTimeout,o=n.maxTransactionDuration,s="pageload"===t.op?function(){var t,e=(t=document.querySelector("meta[name=sentry-trace]"))?t.getAttribute("content"):null;if(e)return function(t){var e=t.match(Gt);if(e){var n=void 0;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}}(e)}():void 0,a=Object(l.__assign)(Object(l.__assign)(Object(l.__assign)({},t),s),{trimEnd:!0}),u="function"==typeof r?r(a):a,c=void 0===u?Object(l.__assign)(Object(l.__assign)({},a),{sampled:!1}):u;!1===c.sampled&&d.a.log("[Tracing] Will not send "+c.op+" transaction because of beforeNavigate."),d.a.log("[Tracing] Starting "+c.op+" transaction on scope");var h=function(t,e,n,r,i){var o,s,a=(null===(o=t.getClient())||void 0===o?void 0:o.getOptions())||{},u=new te(e,t,n,!0);return(u=ne(u,a,Object(l.__assign)({parentSampled:e.parentSampled,transactionContext:e},i))).sampled&&u.initSpanRecorder(null===(s=a._experiments)||void 0===s?void 0:s.maxSpans),u}(this._getCurrentHub(),c,i,0,{location:Object(p.e)().location});return h.registerBeforeFinishCallback((function(t,n){e._metrics.addPerformanceEntries(t),function(t,e,n){var r=n-e.startTimestamp;n&&(r>t||r<0)&&(e.setStatus(zt.DeadlineExceeded),e.setTag("maxTransactionDurationExceeded","true"))}(1e3*o,t,n)})),h}d.a.warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invali
1d.")},t.id="BrowserTracing",t}(),Se=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}return t.prototype.setupOnce=function(){var t,e;this._router?(t=this._router,void 0===(e=this._methods)&&(e=[]),e.forEach((function(e){return function(t,e){var n=t[e];return t[e]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return n.call.apply(n,Object(l.__spread)([this],Ce(t,e)))},t}(t,e)}))):d.a.error("ExpressIntegration is missing an Express instance")},t.id="Express",t}();function xe(t,e){var n=t.length;switch(n){case 2:return function(n,r){var i=r.__sentry_transaction;if(i){var o=i.startChild({description:t.name,op:"middleware."+e});r.once("finish",(function(){o.finish()}))}return t.call(this,n,r)};case 3:return function(n,r,i){var o,s=null===(o=r.__sentry_transaction)||void 0===o?void 0:o.startChild({description:t.name,op:"middleware."+e});t.call(this,n,r,(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];null===(t=s)||void 0===t||t.finish(),i.call.apply(i,Object(l.__spread)([this],e))}))};case 4:return function(n,r,i,o){var s,a=null===(s=i.__sentry_transaction)||void 0===s?void 0:s.startChild({description:t.name,op:"middleware."+e});t.call(this,n,r,i,(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];null===(t=a)||void 0===t||t.finish(),o.call.apply(o,Object(l.__spread)([this],e))}))};default:throw new Error("Express middleware takes 2-4 arguments. Got: "+n)}}function Ce(t,e){return t.map((function(t){return"function"==typeof t?xe(t,e):Array.isArray(t)?t.map((function(t){return"function"==typeof t?xe(t,e):t})):t}))}var Te,je=n("CLvp"),Ae=n("zR2W"),ke=n("1qfx"),Ie=Object(l.__assign)(Object(l.__assign)({},i),{BrowserTracing:Oe});(Te=Object(f.c)()).__SENTRY__&&(Te.__SENTRY__.extensions=Te.__SENTRY__.extensions||{},Te.__SENTRY__.extensions.startTransaction||(Te.__SENTRY__.extensions.startTransaction=function(t,e){var n,r,i=(null===(n=this.getClient())||void 0===n?void 0:n.getOptions())||{},o=new Jt(t,this);return(o=ne(o,i,Object(l.__assign)({parentSampled:t.parentSampled,transactionContext:t},e))).sampled&&o.initSpanRecorder(null===(r=i._experiments)||void 0===r?void 0:r.maxSpans),o}),Te.__SENTRY__.extensions.traceHeaders||(Te.__SENTRY__.extensions.traceHeaders=function(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}})),I({callback:Xt,type:"error"}),I({callback:Xt,type:"unhandledrejection"});var De=n("jhN1"),Re=n("R0Ic");function Pe(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Fe(t){switch(t.length){case 0:return new Re.d;case 1:return t[0];default:return new Re.k(t)}}function Ne(t,e,n,r,i={},o={}){const s=[],a=[];let u=-1,c=null;if(r.forEach(t=>{const n=t.offset,r=n==u,l=r&&c||{};Object.keys(t).forEach(n=>{let r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),a){case Re.l:a=i[n];break;case Re.a:a=o[n];break;default:a=e.normalizeStyleValue(n,r,a,s)}l[r]=a}),r||a.push(l),c=l,u=n}),s.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${s.join(t)}`)}return a}function Le(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Me(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Me(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Me(n,"destroy",t)))}}function Me(t,e,n){const r=n.totalTime,i=Ve(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 Ve(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Ue(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 Be(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let qe=(t,e)=>!1,He=(t,e)=>!1,ze=(t,e,n)=>[];const Qe=Pe();(Qe||"undefined"!=typeof Element)&&(qe=(t,e)=>t.contains(e),He=(()=>{if(Qe||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]):He}})(),ze=(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 Ge=null,We=!1;function $e(t){Ge||(Ge=("undefined"!=typeof document?document.body:null)||{}
1,We=!!Ge.style&&"WebkitAppearance"in Ge.style);let e=!0;return Ge.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Ge.style,!e&&We)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Ge.style),e}const Ke=He,Xe=qe,Ye=ze;function Je(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 Ze=(()=>{class t{validateStyleProperty(t){return $e(t)}matchesElement(t,e){return Ke(t,e)}containsElement(t,e){return Xe(t,e)}query(t,e,n){return Ye(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,i,o=[],s){return new Re.d(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Mb({token:t,factory:t.\u0275fac}),t})(),tn=(()=>{class t{}return t.NOOP=new Ze,t})();const en="ng-enter",nn="ng-leave",rn="ng-trigger",on=".ng-trigger",sn="ng-animating",an=".ng-animating";function un(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:cn(parseFloat(e[1]),e[2])}function cn(t,e){switch(e){case"s":return 1e3*t;default:return t}}function ln(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=cn(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(i=cn(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 hn(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function fn(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else hn(t,n);return n}function dn(t,e,n){return n?e+":"+n+";":""}function pn(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=dn(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=dn(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function mn(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const i=On(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]}),Pe()&&pn(t))}function gn(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=On(e);t.style[n]=""}),Pe()&&pn(t))}function yn(t){return Array.isArray(t)?1==t.length?t[0]:Object(Re.f)(t):t}const vn=new RegExp("{{\\s*(.+?)\\s*}}","g");function bn(t){let e=[];
1if("string"==typeof t){let n;for(;n=vn.exec(t);)e.push(n[1]);vn.lastIndex=0}return e}function _n(t,e,n){const r=t.toString(),i=r.replace(vn,(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 wn(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const En=/-+([a-z0-9])/g;function On(t){return t.replace(En,(...t)=>t[1].toUpperCase())}function Sn(t,e){return 0===t||0===e}function xn(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]=Tn(t,e)}))}}return e}function Cn(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 Tn(t,e){return window.getComputedStyle(t)[e]}const jn="*";function An(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(Dn(i,s)),"<"!=o[0]||i==jn&&s==jn||e.push(Dn(s,i))}(t,n,e)):n.push(t),n}const kn=new Set(["true","1"]),In=new Set(["false","0"]);function Dn(t,e){const n=kn.has(t)||In.has(t),r=kn.has(e)||In.has(e);return(i,o)=>{let s=t==jn||t==i,a=e==jn||e==o;return!s&&n&&"boolean"==typeof i&&(s=i?kn.has(t):In.has(t)),!a&&r&&"boolean"==typeof o&&(a=o?kn.has(e):In.has(e)),s&&a}}const Rn=new RegExp("s*:selfs*,?","g");function Pn(t,e,n){return new Fn(t).build(e,n)}class Fn{constructor(t){this._driver=t}build(t,e){const n=new Nn(e);return this._resetContextStyleTimingState(n),Cn(this,yn(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(Ln(t)){const e=t;Object.keys(e).forEach(t=>{bn(e[t]).forEach(t=>{o.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=wn(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=Cn(this,yn(t.animation),e);return{type:1,matchers:An(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Mn(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Cn(this,t,e)),options:Mn(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const i=t.steps.map(t=>{e.currentTime=n;const i=Cn(this,t,e);return r=Math.max(r,e.currentTime),i});return e.currentTime=r,{type:3,steps:i,options:Mn(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 Vn(ln(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Vn(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||ln(r,e),Vn(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let i=t.styles?t.styles:Object(Re.h)({});
1if(5==i.type)r=this.visitKeyframes(i,e);else{let i=t.styles,o=!1;if(!i){o=!0;const t={};n.easing&&(t.easing=n.easing),i=Object(Re.h)(t)}e.currentTime+=n.duration+n.delay;const s=this.visitStyle(i,e);s.isEmptyStep=o,r=s}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==Re.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(Ln(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=bn(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(Ln(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Ln(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,f=e.currentTime,d=e.currentAnimateTimings,p=d.duration;return u.forEach((t,r)=>{const o=l>0?r==h?1:l*r:i[r],s=o*p;e.currentTime=f+d.delay+s,d.duration=s,this._validateStyleAst(t,e),t.offset=o,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Cn(this,yn(t.animation),e),options:Mn(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Mn(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Mn(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(Rn,"")),[t=t.replace(/@\*/g,on).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,an),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,Ue(e.collectedStyles,e.currentQuerySelector,{});const s=Cn(this,yn(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:Mn(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"}:ln(t.timings,e.errors,!0);return{type:12,animation:Cn(this,yn(t.animation),e),timings:n,options:null}}}class Nn{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 Ln(t){return!Array.isArray(t)&&"object"==typeof t}function Mn(t){var e;return t?(t=hn(t)).params&&(t.params=(e=t.params)?hn(e):null):t={},t}function Vn(t,e,n){return{duration:t,delay:e,easing:n}}function Un(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}}class Bn{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 qn=new RegExp(":enter","g"),Hn=new RegExp(":leave","g");function zn(t,e,n,r,i,o={},s={},a,u,c=[]){return(new Qn).buildKeyframes(t,e,n,r,i,o,s,a,u,c)}class Qn{buildKeyframes(t,e,n,r,i,o,s,a,u,c=[]){u=u||new Bn;const l=new Wn(t,e,u,r,i,c,[]);l.options=a,l.currentTimeline.setStyles([o],null,l.errors,a),Cn(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()):[Un(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}
vendor: 4,735 bytes, line 1
1visitAnimateChild(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?un(n.duration):null,o=null!=n.delay?un(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),Cn(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=Gn);const t=un(i.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Cn(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?un(t.options.delay):0;t.steps.forEach(o=>{const s=e.createSubContext(t.options);i&&s.delayNextStep(i),Cn(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 ln(e.params?_n(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?un(r.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Gn);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;s.forEach((n,r)=>{e.currentQueryIndex=r;const s=e.createSubContext(t.options,n);i&&s.delayNextStep(i),n===e.element&&(a=s.currentTimeline),Cn(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;Cn(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const Gn={};class Wn{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=Gn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new $n(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=un(n.duration)),null!=n.delay&&(r.delay=un(n.delay));const i=n.params;if(i){let t=r.params;t||(t=this.options.params={}
1),Object.keys(i).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=_n(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 Wn(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=Gn,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 Kn(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(qn,"."+this._enterClassName)).replace(Hn,"."+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 $n{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 $n(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]||Re.a,this._currentKeyframe[t]=Re.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const i=r&&r.params||{},o=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=Re.a})):fn(t,!1,n)}),n}(t,this._globalTimelineStyles);
1Object.keys(o).forEach(t=>{const e=_n(o[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Re.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,o)=>{const s=fn(i,!0);Object.keys(s).forEach(n=>{const r=s[n];r==Re.l?t.add(n):r==Re.a&&e.add(n)}),n||(s.offset=o/this.duration),r.push(s)});const i=t.size?wn(t.values()):[],o=e.size?wn(e.values()):[];if(n){const t=r[0],e=hn(t);t.offset=0,e.offset=1,r=[t,e]}return Un(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}}class Kn extends $n{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=fn(t[0],!1);a.offset=0,i.push(a);const u=fn(t[0],!1);u.offset=Xn(s),i.push(u);const c=t.length-1;for(let r=1;r<=c;r++){let s=fn(t[r],!1);s.offset=Xn((e+s.offset*n)/o),i.push(s)}n=o,e=0,r="",t=i}return Un(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function Xn(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Yn{}class Jn extends Yn{normalizePropertyName(t,e){return On(t)}normalizeStyleValue(t,e,n,r){let i="";const o=n.toString().trim();if(Zn[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 Zn=(()=>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 tr(t,e,n,r,i,o,s,a,u,c,l,h,f){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:f}}const er={};class nr{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||er,f=this.buildStyles(n,s&&s.params||er,l),d=a&&a.params||er,p=this.buildStyles(r,d,l),m=new Set,g=new Map,y=new Map,v="void"===r,b={params:Object.assign(Object.assign({},h),d)},_=c?[]:zn(t,e,this.ast.animation,i,o,f,p,b,u,l);let w=0;if(_.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),l.length)return tr(e,this._triggerName,n,r,v,f,p,[],[],g,y,w,l);_.forEach(t=>{const n=t.element,r=Ue(g,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const i=Ue(y,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&m.add(n)});const E=wn(m.values());return tr(e,this._triggerName,n,r,v,f,p,_,E,g,y,w)}}class rr{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},r=hn(this.defaultParams);
1return 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=_n(o,r,e)),n[t]=o})}}),n}}class ir{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new rr(t.style,t.options&&t.options.params||{})}),or(this.states,"true","1"),or(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new nr(t,e,this.states))}),this.fallbackTransition=new nr(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 or(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const sr=new Bn;class ar{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=Pn(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=Ne(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 o;const s=new Map;if(i?(o=zn(this._driver,e,i,en,nn,{},{},n,sr,r),o.forEach(t=>{const e=Ue(s,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));s.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Re.a)})});const a=Fe(o.map(t=>{const e=s.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,r){const i=Ve(e,"","","");return Le(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 ur="ng-animate-queued",cr="ng-animate-disabled",lr=".ng-animate-disabled",hr=[],fr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},dr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class pr{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=hn(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 mr="void",gr=new pr(mr);class yr{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-"
1+t,Sr(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=Ue(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};o.push(s);const a=Ue(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Sr(t,rn),Sr(t,"ng-trigger-"+e),a[e]=gr),()=>{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 br(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(Sr(t,rn),Sr(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const u=new pr(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&u.absorbOptions(a.options),s[e]=u,a||(a=gr),u.value!==mr&&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(()=>{gn(t,n),mn(t,r)})}return}const c=Ue(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||(Sr(t,ur),o.onStart(()=>{xr(t,ur)})),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,on,!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=[];
1if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,mr,r);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Fe(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]||gr,s=new pr(mr),a=new br(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!==fr||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Sr(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=Ve(i,n.triggerName,n.fromState.value,n.toState.value);r._data=t,Le(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 vr{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 yr(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(_r(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!_r(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);
1r&&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),Sr(t,cr)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),xr(t,cr))}removeNode(t,e,n,r){if(_r(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 _r(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,on,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,an,!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 Fe(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=fr,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,lr)&&this.markElementAsDisabled(t,!1),this.driver.query(t,lr,!0).forEac
1h(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Sr(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?Fe(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 Bn,r=[],i=new Map,o=[],s=new Map,a=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const l=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=Or(h,this.collectedEnterElements),d=new Map;let p=0;f.forEach((t,e)=>{const n=en+p++;d.set(e,n),t.forEach(t=>Sr(t,n))});const m=[],g=new Set,y=new Set;for(let k=0;k<this.collectedLeaveElements.length;k++){const t=this.collectedLeaveElements[k],e=t.__ng_removed;e&&e.setForRemoval&&(m.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):y.add(t))}const v=new Map,b=Or(h,Array.from(g));b.forEach((t,e)=>{const n=nn+p++;v.set(e,n),t.forEach(t=>Sr(t,n))}),t.push(()=>{f.forEach((t,e)=>{const n=d.get(e);t.forEach(t=>xr(t,n))}),b.forEach((t,e)=>{const n=v.get(e);t.forEach(t=>xr(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const _=[],w=[];for(let k=this._namespaceList.length-1;k>=0;k--)this._namespaceList[k].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(_.push(e),this.collectedEnterElements.length){const t=i.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!l||!this.driver.containsElement(l,i),h=v.get(i),f=d.get(i),p=this._buildInstruction(t,n,f,h,c);if(p.errors&&p.errors.length)w.push(p);else{if(c)return e.onStart(()=>gn(i,p.fromStyles)),e.onDestroy(()=>mn(i,p.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>gn(i,p.fromStyles)),e.onDestroy(()=>mn(i,p.toStyles)),void r.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,p.timelines),o.push({instruction:p,player:e,element:i}),p.queriedElements.forEach(t=>Ue(s,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=u.get(e);r||u.set(e,r=new Set),n.forEach(t=>r.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),_.forEach(t=>t.destroy()),this.reportError(t)}const E=new Map,O=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(O.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,E))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Ue(E,e,[]).push(t),t.destroy()})});const S=m.filter(t=>Tr(t,a,u)),x=new Map;Er(x,this.driver,y,u,Re.a).forEach(t=>{Tr(t,a,u)&&S.push(t)});const C=new Map;f.forEach((t,e)=>{Er(C,this.driver,new Set(t),a,Re.l)}),S.forEach(t=>{const e=x.get(t),n=C.get(t);x.set(t,Object.assign(Object.assign({},e),n))});const T=[],j=[],A={};o.forEach(t=>{const{element:e,player:o,instruction:s}=t;if(n.has(e)){if(c.has(e))return o.onDestroy(()=>mn(e,s.toStyles)),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);let t=A;if(O.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=O.get(n);if(e){t=e;break}r.push(n)}
1r.forEach(e=>O.set(e,t))}const n=this._buildAnimation(o.namespaceId,s,E,i,C,x);if(o.setRealPlayer(n),t===A)T.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=Fe(e)),r.push(o)}}else gn(e,s.fromStyles),o.onDestroy(()=>mn(e,s.toStyles)),j.push(o),c.has(e)&&r.push(o)}),j.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=Fe(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let k=0;k<m.length;k++){const t=m[k],e=t.__ng_removed;if(xr(t,nn),e&&e.hasAnimation)continue;let n=[];if(s.size){let e=s.get(t);e&&e.length&&n.push(...e);let r=this.driver.query(t,an,!0);for(let t=0;t<r.length;t++){let e=s.get(r[t]);e&&e.length&&n.push(...e)}}const r=n.filter(t=>!t.destroyed);r.length?Cr(this,t,r):this.processLeaveNode(t)}return m.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const r=e.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,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||i==mr;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=Ue(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)})}gn(r,e.fromStyles)}_buildAnimation(t,e,n,r,i,o){const s=e.triggerName,a=e.element,u=[],c=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const f=h.__ng_removed;if(f&&f.removedBeforeQueried)return new Re.d(e.duration,e.delay);const d=h!==a,p=function(t){const e=[];return function t(e,n){for(let r=0;r<e.length;r++){const i=e[r];i instanceof Re.k?t(i.players,n):n.push(i)}}(t,e),e}((n.get(h)||hr).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),m=i.get(h),g=o.get(h),y=Ne(0,this._normalizer,0,e.keyframes,m,g),v=this._buildPlayer(e,y,p);if(e.subTimeline&&r&&l.add(h),d){const e=new br(t,s,h);e.setRealPlayer(v),u.push(e)}return v});u.forEach(t=>{Ue(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))}),c.forEach(t=>Sr(t,sn));const f=Fe(h);return f.onDestroy(()=>{c.forEach(t=>xr(t,sn)),mn(a,e.toStyles)}),l.forEach(t=>{Ue(r,t,[]).push(f)}),f}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Re.d(t.duration,t.delay)}}class br{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Re.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
1h(e=>{this._queuedCallbacks[e].forEach(n=>Le(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){Ue(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 _r(t){return t&&1===t.nodeType}function wr(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Er(t,e,n,r,i){const o=[];n.forEach(t=>o.push(wr(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=dr,s.push(r))}),t.set(r,o)});let a=0;return n.forEach(t=>wr(t,o[a++])),s}function Or(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 Sr(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function xr(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Cr(t,e,n){Fe(n).onDone(()=>t.processLeaveNode(e))}function Tr(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 jr{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new vr(t,e,n),this._timelineEngine=new ar(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=Pn(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 ir(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]=Be(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]=Be(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 Ar(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Ir(e[0]),e.length>1&&(r=Ir(e[e.length-1]))):e&&(n=Ir(e)),n||r?new kr(t,n,r):null}let kr=(()=>{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&&mn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(mn(this._element,this._initialStyles),this._endStyles&&(mn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(gn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(gn(this._element,this._endStyles),this._endStyles=null),mn(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Ir(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=n[r];Dr(i)&&(e=e||{},e[i]=t[i])}return e}function Dr(t){return"display"===t||"position"===t}const Rr="animation",Pr="animationend";class Fr{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=Br(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}`),Ur(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Vr(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Nr(this._element,this._name,"paused")}resume(){Nr(this._element,this._name,"running")}setPosition(t){const e=Lr(this._element,this._name);this._position=t*this._duration,Ur(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(),Vr(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Br(t,"").split(","),r=Mr(n,e);r>=0&&(n.splice(r,1),Ur(t,"",n.join(",")))}(this._element,this._name))}}function Nr(t,e,n){Ur(t,"PlayState",n,Lr(t,e))}function Lr(t,e){const n=Br(t,"");return n.indexOf(",")>0?Mr(n.split(","),e):Mr([n],e)}function Mr(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Vr(t,e,n){n?t.removeEventListener(Pr,e):t.addEventListener(Pr,e)}
1function Ur(t,e,n,r){const i=Rr+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 Br(t,e){return t.style[Rr+e]}class qr{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 Fr(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]:Tn(this.element,n))})}this.currentSnapshot=t}}class Hr extends Re.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Je(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 zr{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return $e(t)}matchesElement(t,e){return Ke(t,e)}containsElement(t,e){return Xe(t,e)}query(t,e,n){return Ye(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Je(t));let r=`@keyframes ${e} {\n`,i="";n.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.textContent=r,o}animate(t,e,n,r,i,o=[],s){s&&this._notifyFaultyScrubber();const a=o.filter(t=>t instanceof qr),u={};Sn(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=xn(t,e,u));if(0==n)return new Hr(t,c);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);document.querySelector("head").appendChild(h);const f=Ar(t,e),d=new qr(t,e,l,n,r,i,c,f);return d.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),d}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWu
1kam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Qr{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]:Tn(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Gr{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Wr().toString()),this._cssKeyframesDriver=new zr}validateStyleProperty(t){return $e(t)}matchesElement(t,e){return Ke(t,e)}containsElement(t,e){return Xe(t,e)}query(t,e,n){return Ye(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 Qr);Sn(n,r)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>u[t]=e[t])});const l=Ar(t,e=xn(t,e=e.map(t=>fn(t,!1)),u));return new Qr(t,e,a,l)}}function Wr(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var $r=n("ofXK");let Kr=(()=>{class t extends Re.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.T.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(Re.f)(t):t;return Jr(this._renderer,null,e,"register",[n]),new Xr(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.ec(s.H),s.ec($r.e))},t.\u0275prov=s.Mb({token:t,factory:t.\u0275fac}),t})();class Xr extends Re.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Yr(this._id,t,e||{},this._renderer)}}class Yr{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 Jr(this._renderer,this.element,this.id,t,e)}
1onDone(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 Jr(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}const Zr="@",ti="@.disabled";let ei=(()=>{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 ni("",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 ri(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)(s.ec(s.H),s.ec(jr),s.ec(s.C))},t.\u0275prov=s.Mb({token:t,factory:t.\u0275fac}),t})();class ni{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)==Zr&&e==ti?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 ri extends ni{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Zr?"."==e.charAt(1)&&e==ti?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)==Zr){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)!=Zr&&([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 ii=(()=>{class t extends jr{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.ec($r.e),s.ec(tn),s.ec(Yn
1))},t.\u0275prov=s.Mb({token:t,factory:t.\u0275fac}),t})();const oi=[{provide:tn,useFactory:function(){return"function"==typeof Wr()?new Gr:new zr}},{provide:new s.s("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:Re.b,useClass:Kr},{provide:Yn,useFactory:function(){return new Jn}},{provide:jr,useClass:ii},{provide:s.H,useFactory:function(t,e,n){return new ei(t,e,n)},deps:[De.f,jr,s.C]}];let si=(()=>{class t{}return t.\u0275mod=s.Ob({type:t}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)},providers:oi,imports:[De.a]}),t})();var ai=n("tk/3"),ui=n("spgP"),ci=n("mrSG"),li=n("LRne"),hi=n("EY2u"),fi=n("pxpQ"),di=n("eIep"),pi=n("lJxs"),mi=n("UXun"),gi=n("7o/Q"),yi=n("quSY"),vi=n("HDdC"),bi=n("XNiG");class _i{constructor(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}call(t,e){return e.subscribe(new wi(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class wi extends gi.a{constructor(t,e,n,r,i){super(t),this.keySelector=e,this.elementSelector=n,this.durationSelector=r,this.subjectSelector=i,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(t){let e;try{e=this.keySelector(t)}catch(n){return void this.error(n)}this._group(t,e)}_group(t,e){let n=this.groups;n||(n=this.groups=new Map);let r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(o){this.error(o)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new bi.a,n.set(e,i);const t=new Oi(e,i,this);if(this.destination.next(t),this.durationSelector){let t;try{t=this.durationSelector(new Oi(e,i))}catch(o){return void this.error(o)}this.add(t.subscribe(new Ei(e,i,this)))}}i.closed||i.next(r)}_error(t){const e=this.groups;e&&(e.forEach((e,n)=>{e.error(t)}),e.clear()),this.destination.error(t)}_complete(){const t=this.groups;t&&(t.forEach((t,e)=>{t.complete()}),t.clear()),this.destination.complete()}removeGroup(t){this.groups.delete(t)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class Ei extends gi.a{constructor(t,e,n){super(e),this.key=t,this.group=e,this.parent=n}_next(t){this.complete()}_unsubscribe(){const{parent:t,key:e}=this;this.key=this.parent=null,t&&t.removeGroup(e)}}class Oi extends vi.a{constructor(t,e,n){super(),this.key=t,this.groupSubject=e,this.refCountSubscription=n}_subscribe(t){const e=new yi.a,{refCountSubscription:n,groupSubject:r}=this;return n&&!n.closed&&e.add(new Si(n)),e.add(r.subscribe(t)),e}}class Si extends yi.a{constructor(t){super(),this.parent=t,t.count++}unsubscribe(){const t=this.parent;t.closed||this.closed||(super.unsubscribe(),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())}}var xi=n("5+tZ"),Ci=n("/uUt"),Ti=n("JX91"),ji=n("Zy1z"),Ai=n("UbJi");const ki=new s.s("angularfire2.analytics.analyticsCollectionEnabled"),Ii=new s.s("angularfire2.analytics.appVersion"),Di=new s.s("angularfire2.analytics.appName"),Ri=new s.s("angularfire2.analytics.debugMode"),Pi=new s.s("angularfire2.analytics.config");let Fi=(()=>{class t{constructor(t,e,r,i,o,s,a,u){if(this.analyticsInitialized=new Promise(()=>{}),Object($r.O)(a)){window.dataLayer=window.dataLayer||[];const t=(...t)=>"config"===t[0]&&"firebase"===t[2].origin&&(this.measurementId=t[1],!0),e=t=>{window.gtag=(...e)=>{t&&t(...e),"event"===e[0]&&e[2].send_to===this.measurementId&&(i&&(e[2].app_name=i),r&&(e[2].app_version=r)),o&&"undefined"!=typeof console&&console.info(...e),function(...t){window.dataLayer.push(arguments)}(...e)}};window.dataLayer.some(t)?(this.analyticsInitialized=Promise.resolve(),e()):this.analyticsInitialized=new Promise(n=>{e((...e)=>{t(...e)&&n()})}),s&&this.updateConfig(s),o&&this.updateConfig({debug_mode:1})}else this.analyticsInitialized=Promise.resolve();const c=Object(li.a)(void 0).pipe(Object(fi.b)(new ui.e(u).outsideAngular),Object(di.a)(()=>Object($r.O)(a)?u.runOutsideAngular(()=>n.e(50).then(n.bind(null,"AAub"))):hi.a),Object(pi.a)(()=>Object(ui.g)("analytics","AngularFireAnalytics",t,()=>{const n=t.analytics();return!1===e&&n.setAnalyticsCollectionEnabled(!1),n},[t,e,s,o])),Object(mi.a)({bufferSize:1,refCount:!1}));return Object(ui.j)(this,c,u)}updateConfig(t){return Object(ci.b)(this,void 0,void 0,(function*(){yield this.analyticsInitialized,window.gtag("config",this.measurementId,Object.assign(Object.assign({},t),{update:!0}))}))}}return t.\u0275fac=function(e){return new(e||t)(s.ec(ui.d),s.ec(ki,8),s.ec(Ii,8),s.ec(Di,8),s.ec(Ri,8),s.ec(Pi,8),s.ec(s.E),s.ec(s.C))},t.\u0275prov=Object(s.Mb)({factory:function(){return new t(Object(s.ec)(ui.d),Object(s.ec)(ki,8),Object(s.ec)(Ii,8),Object(s.ec)(Di,8),Object(s.ec)(Ri,8),Object(s.ec)(Pi,8),Object(s.ec)(s.E),Object(s.ec)(s.C))},token:t,providedIn:"any"}),t})(),Ni=(()=>{class t{constructor(t,e,n,r){if(this.disposables=[],Object($r.P)(e))this.initialized=Promise.resolve();else{let e;this.initialized=r.runOutsideAngular(()=>new Promise(t=>e=t)),this.disposables=[n.authState.subscribe(n=>{t.setUserId(null==n?void 0:n.uid),e()}),n.credential.subscribe(e=>{if(e){const n=e.user.isAnonymous?"anonymous":e.additionalUserInfo.providerId;e.additionalUserInfo.isNewUser&&t.logEvent("sign_up",{method:n}),t.logEvent("login",{method:n})}})]}}
1ngOnDestroy(){this.disposables.forEach(t=>t.unsubscribe())}}return t.\u0275fac=function(e){return new(e||t)(s.ec(Fi),s.ec(s.E),s.ec(Ai.a),s.ec(s.C))},t.\u0275prov=s.Mb({token:t,factory:t.\u0275fac}),t})();const Li="screen_class";let Mi=Math.floor(Math.random()*(Math.pow(2,32)-1))-Math.pow(2,31);const Vi={},Ui=t=>{const e=[t.screen_class,t.outlet].join("#");if(Vi.hasOwnProperty(e))return Vi[e];{const t=Mi++;return Vi[e]=t,t}};let Bi=(()=>{class t{constructor(t,e,n,r,i,o,s){if(!e||!Object($r.O)(i))return this;o.runOutsideAngular(()=>{const i=e.events.pipe(Object(Ut.a)(t=>t instanceof Vt.b));var o;this.disposable=i.pipe(Object(di.a)(t=>{var i;const o=(null===(i=e.parseUrl(e.url.replace(/(?:\().+(?:\))/g,t=>t.replace("://",":///"))).root.children[t.snapshot.outlet])||void 0===i?void 0:i.toString())||"",s=e.routerState.root.children.map(t=>t).find(e=>e.outlet===t.snapshot.outlet);if(!s)return Object(li.a)(null);let a=s;for(;a.firstChild;)a=a.firstChild;const u=a.pathFromRoot.map(t=>{var e;return null===(e=t.routeConfig)||void 0===e?void 0:e.path}).filter(t=>t).join("/")||"/",c={screen_name:u,page_path:"/"+o,firebase_event_origin:"auto",firebase_screen:u,outlet:t.snapshot.outlet};n&&(c.page_title=n.getTitle());let l=s.component;if(l){if(l===Vt.k){let e=t.snapshot;for(;e.firstChild;)e=e.firstChild;l=e.component}}else l=t.snapshot.component;if("string"==typeof l)return Object(li.a)(Object.assign(Object.assign({},c),{[Li]:l}));if(l){const t=r.resolveComponentFactory(l);return Object(li.a)(Object.assign(Object.assign({},c),{[Li]:t.selector}))}return Object(li.a)(null)}),Object(Ut.a)(t=>t),Object(pi.a)(t=>Object.assign({firebase_screen_class:t.screen_class,firebase_screen_id:Ui(t)},t)),(o=t=>t.outlet,t=>t.lift(new _i(o,void 0,void 0,void 0))),Object(xi.a)(e=>e.pipe(Object(Ci.a)((t,e)=>JSON.stringify(t)===JSON.stringify(e)),Object(Ti.a)(void 0),Object(ji.a)(),Object(pi.a)(([t,e])=>t?Object.assign({firebase_previous_class:t.screen_class,firebase_previous_screen:t.screen_name,firebase_previous_id:t.firebase_screen_id},e):e),Object(di.a)(e=>Object(ci.b)(this,void 0,void 0,(function*(){return s&&(yield s.initialized),yield t.logEvent("screen_view",e)})))))).subscribe()})}ngOnDestroy(){this.disposable&&this.disposable.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.ec(Fi),s.ec(Vt.e,8),s.ec(De.d,8),s.ec(s.j),s.ec(s.E),s.ec(s.C),s.ec(Ni,8))},t.\u0275prov=s.Mb({token:t,factory:t.\u0275fac}),t})(),qi=(()=>{class t{constructor(t,e,n){t.app.then(()=>{})}}return t.\u0275mod=s.Ob({type:t}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)(s.ec(Fi),s.ec(Bi,8),s.ec(Ni,8))},providers:[Fi]}),t})();var Hi,zi=n("RgrY"),Qi=n("3Pt+"),Gi=n("6NWb"),Wi=n("bquJ"),$i=n("0FS3"),Ki=n("lPP5"),Xi=n("VPfG");class Yi{}let Ji=(()=>{let t=Hi=class{static forRoot(t){return{ngModule:Hi,providers:[{provide:Yi,useValue:t}]}}};return t.\u0275mod=s.Ob({type:t}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)},imports:[[$r.c]]}),t})();var Zi=n("aEDk"),to=n("Pjly");const eo=[{path:"login",loadChildren:()=>Promise.all([n.e(7),n.e(46)]).then(n.bind(null,"X3zk")).then(t=>t.LoginModule)},{path:"finish-signup",loadChildren:()=>Promise.all([n.e(7),n.e(39)]).then(n.bind(null,"KbG9")).then(t=>t.FinishSignupModule)},{path:"admin",loadChildren:()=>Promise.all([n.e(7),n.e(8),n.e(38)]).then(n.bind(null,"jkDv")).then(t=>t.AdminModule),canActivate:[(()=>{class t{constructor(t,e){this.authService=t,this.router=e}canActivate(t,e){return Object(ci.b)(this,void 0,void 0,(function*(){return(yield this.authService.getUser())?((yield this.authService.hasRole("admin"))||this.router.navigateByUrl("/unauthorized"),!0):(this.router.navigate(["/login"],{queryParams:{returnUrl:e.url}}),!1)}))}}return t.\u0275fac=function(e){return new(e||t)(s.ec(to.a),s.ec(Vt.e))},t.\u0275prov=s.Mb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()]},{path:"kiosk",loadChildren:()=>Promise.all([n.e(0),n.e(7),n.e(6),n.e(8),n.e(47)]).then(n.bind(null,"nOwr")).then(t=>t.KioskModule)},{path:"register",loadChildren:()=>Promise.all([n.e(0),n.e(3),n.e(7),n.e(6),n.e(8),n.e(12),n.e(42)]).then(n.bind(null,"x5bZ")).then(t=>t.RegisterModule)},{path:"",loadChildren:()=>
1Promise.all([n.e(0),n.e(2),n.e(7),n.e(6),n.e(8),n.e(1),n.e(43)]).then(n.bind(null,"UFnY")).then(t=>t.PublicModule)}];let no=(()=>{class t{}return t.\u0275mod=s.Ob({type:t}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)},imports:[[Vt.i.forRoot(eo,{scrollPositionRestoration:"enabled",anchorScrolling:"enabled"})],Vt.i]}),t})();var ro=n("9p7i");let io=(()=>{class t{constructor(t){this.navService=t,this.title="osfa-web"}}return t.\u0275fac=function(e){return new(e||t)(s.Qb(ro.a))},t.\u0275cmp=s.Kb({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(t,e){1&t&&(s.Rb(0,"ngx-loading-bar"),s.Rb(1,"router-outlet"))},directives:[Ki.b,Vt.j],styles:[""]}),t})(),oo=(()=>{class t{constructor(){}handleError(t){if(/Loading chunk [\d]+ failed/.test(t.message))window.location.reload();else{if(!a.a.production)throw t.originalError||t;wt.a(t.originalError||t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Mb({token:t,factory:t.\u0275fac}),t})(),so=(()=>{class t{}return t.\u0275mod=s.Ob({type:t,bootstrap:[io]}),t.\u0275inj=s.Nb({factory:function(e){return new(e||t)},providers:[Bi,Ni,{provide:Ki.a,useValue:{latencyThreshold:100}},{provide:s.n,useClass:oo},{provide:Qt,deps:[Vt.e]},{provide:s.d,useFactory:()=>()=>{},deps:[Qt],multi:!0}],imports:[[De.a,no,Gi.h,si,Ki.c,ai.b,Qi.C,$i.g.forRoot({extras:{lazyRender:!0},validationMessages:[{name:"email",message:ao},{name:"required",message:"This field is required"},{name:"max",message:"Too many"},{name:"min",message:"Too few"}]}),Xi.c.forRoot(),Xi.b.forRoot(),Wi.a,ui.a.initializeApp(a.a.firebase),zi.b,qi,Ji.forRoot(),Zi.b]]}),t})();function ao(t,e){return`"${e.formControl.value}" is not a valid Email Address`}var uo;(uo={dsn:"https://[email protected]/5695203",integrations:[new Ie.BrowserTracing({tracingOrigins:["localhost","https://osfa-web.web.app","https://osfa.info"],routingInstrumentation:function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!0),Ct=!0,Tt=t,jt=n,e&&t({name:window.location.pathname,op:"pageload"})}})],enabled:a.a.production,environment:"production",tracesSampleRate:.5})._metadata=uo._metadata||{},uo._metadata.sdk={name:"sentry.javascript.angular",packages:[{name:"npm:@sentry/angular",version:u}],version:u},function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Mt),void 0===t.release){var e=Object(p.e)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),function(t,e){!0===e.debug&&d.a.enable();var n=Object(f.b)(),r=new t(e);n.bindClient(r)}(It,t),t.autoSessionTracking&&function(){if(void 0!==Object(p.e)().document){var t=Object(f.b)();"startSession"in t&&(t.startSession(),t.captureSession(),I({callback:function(){t.startSession(),t.captureSession()},type:"history"}))}else d.a.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}(uo),a.a.production&&Object(s.W)(),De.e().bootstrapModule(so).catch(t=>console.error(t))},zVF4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("SOwp"),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++];
1e[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 f(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function d(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}}var p=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,m.prototype.create),i}return r.__extends(e,t),e}(Error),m=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?g(o,r):"Error",a=this.serviceName+": "+s+" ("+i+").",u=new p(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 g(t,e){return t.replace(y,(function(t,n){var r=e[n];return null!=r?String(r):"<"+n+"?>"}))}var y=/\{\$([^}]+)}/g;function v(t){return JSON.parse(t)}var b=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=v(c(o[0])||""),n=v(c(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(s){}return{header:e,claims:n,data:r,signature:i}},_=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}(),w=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
1ise.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=E),void 0===r.error&&(r.error=E),void 0===r.complete&&(r.complete=E);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 E(){}function O(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 "}var S=144e5;e.CONSTANTS=i,e.Deferred=h,e.ErrorFactory=m,e.FirebaseError=p,e.MAX_VALUE_MILLIS=S,e.RANDOM_FACTOR=.5,e.Sha1=_,e.areCookiesEnabled=function(){return!(!navigator||!navigator.cookieEnabled)},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.calculateBackoffMillis=function(t,e,n){void 0===e&&(e=1e3),void 0===n&&(n=2);var r=e*Math.pow(n,t),i=Math.round(.5*r*(Math.random()-.5)*2);return Math.min(S,r+i)},e.contains=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.createSubscribe=function(t,e){var n=new w(t,e);return n.subscribe.bind(n)},e.decode=b,e.deepCopy=function(t){return l(void 0,t)},e.deepExtend=l,e.errorPrefix=O,e.getUA=f,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 f().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=f();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0},e.isIndexedDBAvailable=function(){return"indexedDB"in self&&null!=indexedDB},e.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f())},e.isNode=d,e.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},e.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},e.isSafari=function(){return!d()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}
1,e.isUWP=function(){return f().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=v,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.forEach((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(O(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(O(t,e,r)+"must be a valid context object.")},e.validateIndexedDBOpenable=function(){return new Promise((function(t,e){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=window.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||window.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var t;e((null===(t=i.error)||void 0===t?void 0:t.message)||"")}}catch(o){e(o)}}))},e.validateNamespace=function(t,e,n,r){if((!r||n)&&"string"!=typeof n)throw new Error(O(t,e,r)+"must be a valid firebase namespace.")}},zZ0H:function(t,e){t.exports=function(t){return 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"},zoYe:function(t,e,n){var r=n("nmnc"),i=n("eUgh"),o=n("Z0cm"),s=n("/9aa"),a=r?r.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},zx2A: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 u}));var r=n("7o/Q"),i=n("HDdC"),o=n("SeVD");class s extends r.a{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends r.a{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function u(t,e){if(!e.closed)return t instanceof i.a?t.subscribe(e):Object(o.a)(t)(e)}}},[[0,10]]]);

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.