PageSourceSearch

https://www.fundacionosde.com/main-es2015.486118f9d79c96c460b2.js

js fundacionosde.com collected 2026-10-07 11:05:41 UTC 1,556,105 bytes, 1 lines download raw bytes

1(self.webpackChunkfundacion_osde=self.webpackChunkfundacion_osde||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},248:function(t,e,n){var i,r,s;!function(o){if("object"==typeof t.exports){var a=o(0,e);void 0!==a&&(t.exports=a)}else r=[n,e],void 0!==(s="function"==typeof(i=o)?i.apply(e,r):i)&&(t.exports=s)}(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=void 0;e.default=["es-AR",[["a.\xa0m.","p.\xa0m."],n,n],n,[["D","L","M","M","J","V","S"],["dom.","lun.","mar.","mi\xe9.","jue.","vie.","s\xe1b."],["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"],["DO","LU","MA","MI","JU","VI","SA"]],n,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sep.","oct.","nov.","dic."],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],n,[["a. C.","d. C."],n,["antes de Cristo","despu\xe9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,"{1} 'a' 'las' {0}",n],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","\xa4\xa0#,##0.00","#E0"],"ARS","$","peso argentino",{ARS:["$"],AUD:[n,"$"],BRL:[n,"R$"],CAD:[n,"$"],CNY:[n,"\xa5"],ESP:["\u20a7"],EUR:[n,"\u20ac"],FKP:[n,"FK\xa3"],GBP:[n,"\xa3"],HKD:[n,"$"],ILS:[n,"\u20aa"],INR:[n,"\u20b9"],JPY:[n,"\xa5"],KRW:[n,"\u20a9"],MXN:[n,"$"],NZD:[n,"$"],RON:[n,"L"],SSP:[n,"SD\xa3"],SYP:[n,"S\xa3"],TWD:[n,"NT$"],USD:["US$","$"],VEF:[n,"BsF"],VND:[n,"\u20ab"],XAF:[],XCD:[n,"$"],XOF:[]},"ltr",function(t){return 1===t?1:5}]})},3018:function(t,e,n){"use strict";n.d(e,{deG:function(){return dn},tb:function(){return Ou},AFp:function(){return Cu},ip1:function(){return Su},CZH:function(){return Tu},hGG:function(){return Tl},z2F:function(){return pl},QSY:function(){return ju},sBO:function(){return hc},Sil:function(){return Vu},_Vd:function(){return La},EJc:function(){return Pu},SBq:function(){return qa},qLn:function(){return Zi},vpe:function(){return tu},pfw:function(){return xu},gxx:function(){return As},tBr:function(){return Fn},XFs:function(){return P},OlP:function(){return hn},zs3:function(){return js},IIB:function(){return _u},ZZ4:function(){return rc},aQg:function(){return oc},soG:function(){return Nu},YKP:function(){return wc},v3s:function(){return ml},h0i:function(){return _c},PXZ:function(){return ul},R0b:function(){return Hu},FiY:function(){return Zn},r_U:function(){return wu},Lbi:function(){return ku},g9A:function(){return Iu},n_E:function(){return nu},Qsj:function(){return ja},FYo:function(){return Va},JOm:function(){return ji},Tiy:function(){return za},q3G:function(){return Ii},tp0:function(){return qn},EAV:function(){return bl},Rgc:function(){return mc},dDg:function(){return Ku},DyG:function(){return fn},q4F:function(){return Ga},GfV:function(){return Ha},s_b:function(){return Sc},ifc:function(){return q},eFA:function(){return ll},Ez6:function(){return T},G48:function(){return ol},Gpc:function(){return g},XfM:function(){return hl},f3M:function(){return Nn},X6Q:function(){return sl},_c5:function(){return xl},VLi:function(){return el},c2e:function(){return Du},zSh:function(){return ks},wAp:function(){return _a},vHH:function(){return y},EiD:function(){return Ei},mCW:function(){return li},qzn:function(){return Xn},JVY:function(){return ei},pB0:function(){return si},eBb:function(){return ii},L6k:function(){return ni},LAX:function(){return ri},cg1:function(){return va},Tjo:function(){return wl},kL8:function(){return ya},yhl:function(){return ti},dqk:function(){return B},sIi:function(){return Ks},CqO:function(){return Co},QGY:function(){return So},F4k:function(){return To},dwT:function(){return ma},RDi:function(){return It},AaK:function(){return d},z3N:function(){return Kn},qOj:function(){return zs},TTD:function(){return _t},_Bn:function(){return Da},xp6:function(){return kr},uIk:function(){return oo},Tol:function(){return Ho},Gre:function(){return ua},IyS:function(){return la},ekj:function(){return zo},Suo:function(){return pu},Xpm:function(){return tt},lG2:function(){return at},Yz7:function(){return S},cJS:function(){return C},oAB:function(){return rt},Yjl:function(){return ct},Y36:function(){return ho},_UZ:function(){return yo},GkF:function(){return wo},BQk:function(){return _o},ynx:function(){return bo},qZA:function(){return vo},TgZ:function(){return mo},EpF:function(){return xo},n5z:function(){return nn},Ikx:function(){return ha},LFG:function(){return Dn},$8M:function(){return sn},$Z:function(){return fo},NdJ:function(){return Eo},CRH:function(){return gu},O4$:function(){return we},oxw:function(){return Do},ALo:function(){return Gc},lcZ:function(){return Yc},xi3:function(){return Qc},Dn7:function(){return $c},G7q:function(){return Jc},Hsn:function(){return Ro},F$t:function(){return Po},Q6J:function(){return po},s9C:function(){return Lo},DdM:function(){return Zc},VKq:function(){return qc},kEZ:function(){return Uc},l5B:function(){return Vc},qbA:function(){return jc},iGM:function(){return du},MAs:function(){return lo},Jf7:function(){return Ui},CHM:function(){return Yt},oJD:function(){return ki},uOi:function(){return Di},LSH:function(){return Oi},kYT:function(){return st},Udp:function(){return Bo},WFA:function(){return Ao},d8E:function(){return da},YNc:function(){return uo},W1O:function(){return bu},_uU:function(){return ia},Oqu:function(){return ra},hij:function(){return sa},AsE:function(){return oa},lnq:function(){return aa},HOy:function(){return ca},Gf:function(){return fu}});var i=n(9765),r=n(5319),s=n(8891),o=n(6682),a=n(2441);var c=n(1307);function u(){return new i.xQ}function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function h(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function d(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(d).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 f(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const p=l({__forward_ref__:l});function g(t){return t.__forward_ref__=g,t.toString=function(){return d(this())},t}function m(t){return v(t)?t():t}function v(t){return"function"==typeof t&&t.hasOwnProperty(p)&&t.__forward_ref__===g}
1class y extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function _(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function w(t,e){const n=e?` in ${e}`:"";throw new y("201",`No provider for ${_(t)} found${n}`)}function x(t,e){null==t&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}(e,t,null,"!=")}function S(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const T=S;function C(t){return{providers:t.providers||[],imports:t.imports||[]}}function E(t){return A(t,k)||A(t,D)}function A(t,e){return t.hasOwnProperty(e)?t[e]:null}function I(t){return t&&(t.hasOwnProperty(O)||t.hasOwnProperty(N))?t[O]:null}const k=l({"\u0275prov":l}),O=l({"\u0275inj":l}),D=l({ngInjectableDef:l}),N=l({ngInjectorDef:l});var P=(()=>((P=P||{})[P.Default=0]="Default",P[P.Host=1]="Host",P[P.Self=2]="Self",P[P.SkipSelf=4]="SkipSelf",P[P.Optional=8]="Optional",P))();let R;function L(t){const e=R;return R=t,e}function M(t,e,n){const i=E(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&P.Optional?null:void 0!==e?e:void w(d(t),"Injector")}function F(t){return{toString:t}.toString()}var Z=(()=>((Z=Z||{})[Z.OnPush=0]="OnPush",Z[Z.Default=1]="Default",Z))(),q=(()=>((q=q||{})[q.Emulated=0]="Emulated",q[q.None=2]="None",q[q.ShadowDom=3]="ShadowDom",q))();const U="undefined"!=typeof globalThis&&globalThis,V="undefined"!=typeof window&&window,j="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B=U||"undefined"!=typeof global&&global||V||j,z={},H=[],G=l({"\u0275cmp":l}),Y=l({"\u0275dir":l}),Q=l({"\u0275pipe":l}),$=l({"\u0275mod":l}),J=l({"\u0275loc":l}),W=l({"\u0275fac":l}),K=l({__NG_ELEMENT_ID__:l});let X=0;function tt(t){return F(()=>{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===Z.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||H,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||q.Emulated,id:"c",styles:t.styles||H,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,s=t.pipes;return n.id+=X++,n.inputs=ot(t.inputs,e),n.outputs=ot(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(et):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(nt):null,n})}function et(t){return ut(t)||function(t){return t[Y]||null}(t)}function nt(t){return function(t){return t[Q]||null}(t)}const it={};function rt(t){return F(()=>{const e={type:t.type,bootstrap:t.bootstrap||H,declarations:t.declarations||H,imports:t.imports||H,exports:t.exports||H,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(it[t.id]=t.type),e})}function st(t,e){return F(()=>{const n=lt(t,!0);n.declarations=e.declarations||H,n.imports=e.imports||H,n.exports=e.exports||H})}function ot(t,e){if(null==t)return z;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const at=tt;function ct(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ut(t){return t[G]||null}function lt(t,e){const n=t[$]||null;if(!n&&!0===e)throw new Error(`Type ${d(t)} does not have '\u0275mod' property.`);return n}function ht(t){return Array.isArray(t)&&"object"==typeof t[1]}function dt(t){return Array.isArray(t)&&!0===t[1]}function ft(t){return 0!=(8&t.flags)}function pt(t){return 2==(2&t.flags)}function gt(t){return 1==(1&t.flags)}function mt(t){return null!==t.template}function vt(t){return 0!=(512&t[2])}function yt(t,e){return t.hasOwnProperty(W)?t[W]:null}class bt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function _t(){return wt}function wt(t){return t.type.prototype.ngOnChanges&&(t.setInput=St),xt}
vendor: 5,790 bytes, line 1
1function xt(){const t=Ct(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===z)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function St(t,e,n,i){const r=Ct(t)||function(t,e){return t[Tt]=e}(t,{previous:z,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],c=o[a];s[a]=new bt(c&&c.currentValue,e,o===z),t[i]=e}_t.ngInherit=!0;const Tt="__ngSimpleChanges__";function Ct(t){return t[Tt]||null}const Et="http://www.w3.org/2000/svg";let At;function It(t){At=t}function kt(){return void 0!==At?At:"undefined"!=typeof document?document:void 0}function Ot(t){return!!t.listen}const Dt={createRenderer:(t,e)=>kt()};function Nt(t){for(;Array.isArray(t);)t=t[0];return t}function Pt(t,e){return Nt(e[t])}function Rt(t,e){return Nt(e[t.index])}function Lt(t,e){return t.data[e]}function Mt(t,e){return t[e]}function Ft(t,e){const n=e[t];return ht(n)?n:n[0]}function Zt(t){return 4==(4&t[2])}function qt(t){return 128==(128&t[2])}function Ut(t,e){return null==e?null:t[e]}function Vt(t){t[18]=0}function jt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Bt={lFrame:pe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function zt(){return Bt.bindingsEnabled}function Ht(){return Bt.lFrame.lView}function Gt(){return Bt.lFrame.tView}function Yt(t){return Bt.lFrame.contextLView=t,t[8]}function Qt(){let t=$t();for(;null!==t&&64===t.type;)t=t.parent;return t}function $t(){return Bt.lFrame.currentTNode}function Jt(t,e){const n=Bt.lFrame;n.currentTNode=t,n.isParent=e}function Wt(){return Bt.lFrame.isParent}function Kt(){Bt.lFrame.isParent=!1}function Xt(){return Bt.isInCheckNoChangesMode}function te(t){Bt.isInCheckNoChangesMode=t}function ee(){const t=Bt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ne(){return Bt.lFrame.bindingIndex}function ie(){return Bt.lFrame.bindingIndex++}function re(t){const e=Bt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function se(t,e){const n=Bt.lFrame;n.bindingIndex=n.bindingRootIndex=t,oe(e)}function oe(t){Bt.lFrame.currentDirectiveIndex=t}function ae(t){const e=Bt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ce(){return Bt.lFrame.currentQueryIndex}function ue(t){Bt.lFrame.currentQueryIndex=t}function le(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function he(t,e,n){if(n&P.SkipSelf){let i=e,r=t;for(;!(i=i.parent,null!==i||n&P.Host||(i=le(r),null===i||(r=r[15],10&i.type))););if(null===i)return!1;e=i,t=r}const i=Bt.lFrame=fe();return i.currentTNode=e,i.lView=t,!0}function de(t){const e=fe(),n=t[1];Bt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function fe(){const t=Bt.lFrame,e=null===t?null:t.child;return null===e?pe(t):e}function pe(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ge(){const t=Bt.lFrame;return Bt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const me=ge;function ve(){const t=ge();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ye(){return Bt.lFrame.selectedIndex}function be(t){Bt.lFrame.selectedIndex=t}function _e(){const t=Bt.lFrame;return Lt(t.tView,t.selectedIndex)}function we(){Bt.lFrame.currentNamespace=Et}function xe(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:s,ngAfterViewChecked:o,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),r&&((t.contentHooks||(t.contentHooks=[])).push(n,r),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,r)),s&&(t.viewHooks||(t.viewHooks=[])).push(-n,s),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function Se(t,e,n){Ee(t,e,3,n)}function Te(t,e,n,i){(3&t[2])===n&&Ee(t,e,n,i)}function Ce(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Ee(t,e,n,i){const r=null!=i?i:-1,s=e.length-1;let o=0;for(let a=void 0!==i?65535&t[18]:0;a<s;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=i&&o>=i)break}else e[a]<0&&(t[18]+=65536),(o<r||-1==r)&&(Ae(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function Ae(t,e,n,i){const r=n[i]<0,s=n[i+1],o=t[r?-n[i]:n[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{s.call(o)}finally{}}}else try{s.call(o)}finally{}}class Ie{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function ke(t,e,n){const i=Ot(t);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],c=n[r++];i?t.setAttribute(e,a,c,o):e.setAttributeNS(o,a,c)}else{const o=s,a=n[++r];De(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Oe(t){return 3===t||4===t||6===t}function De(t){return 64===t.charCodeAt(0)}function Ne(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?n=r:0===n||Pe(t,n,r,null,-1===n||2===n?e[++i]:null)}}return t}function Pe(t,e,n,i,r){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const n=t[s++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=s-1;break}}}for(;s<t.length;){const e=t[s];if("number"==typeof e)break;
1if(e===n){if(null===i)return void(null!==r&&(t[s+1]=r));if(i===t[s+1])return void(t[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,n),null!==i&&t.splice(s++,0,i),null!==r&&t.splice(s++,0,r)}function Re(t){return-1!==t}function Le(t){return 32767&t}function Me(t,e){let n=function(t){return t>>16}(t),i=e;for(;n>0;)i=i[15],n--;return i}let Fe=!0;function Ze(t){const e=Fe;return Fe=t,e}let qe=0;function Ue(t,e){const n=je(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Ve(i.data,t),Ve(e,null),Ve(i.blueprint,null));const r=Be(t,e),s=t.injectorIndex;if(Re(r)){const t=Le(r),n=Me(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function Ve(t,e){t.push(0,0,0,0,0,0,0,0,e)}function je(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Be(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(i=2===e?t.declTNode:1===e?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ze(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(K)&&(i=n[K]),null==i&&(i=n[K]=qe++);const r=255&i;e.data[t+(r>>5)]|=1<<r}(t,e,n)}function He(t,e,n){if(n&P.Optional)return t;w(e,"NodeInjector")}function Ge(t,e,n,i){if(n&P.Optional&&void 0===i&&(i=null),0==(n&(P.Self|P.Host))){const r=t[9],s=L(void 0);try{return r?r.get(e,i,n&P.Optional):M(e,i,n&P.Optional)}finally{L(s)}}return He(i,e,n)}function Ye(t,e,n,i=P.Default,r){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(K)?t[K]:void 0;return"number"==typeof e?e>=0?255&e:$e:e}(n);if("function"==typeof s){if(!he(e,t,i))return i&P.Host?He(r,n,i):Ge(e,n,i,r);try{const t=s(i);if(null!=t||i&P.Optional)return t;w(n)}finally{me()}}else if("number"==typeof s){let r=null,o=je(t,e),a=-1,c=i&P.Host?e[16][6]:null;for((-1===o||i&P.SkipSelf)&&(a=-1===o?Be(t,e):e[o+8],-1!==a&&tn(i,!1)?(r=e[1],o=Le(a),e=Me(a,e)):o=-1);-1!==o;){const t=e[1];if(Xe(s,o,t.data)){const t=Je(o,e,n,r,i,c);if(t!==Qe)return t}a=e[o+8],-1!==a&&tn(i,e[1].data[o+8]===c)&&Xe(s,o,e)?(r=t,o=Le(a),e=Me(a,e)):o=-1}}}return Ge(e,n,i,r)}const Qe={};function $e(){return new en(Qt(),Ht())}function Je(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],c=We(a,o,n,null==i?pt(a)&&Fe:i!=o&&0!=(3&a.type),r&P.Host&&s===a);return null!==c?Ke(e,o,c,a):Qe}function We(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,c=t.directiveStart,u=s>>20,l=r?a+u:t.directiveEnd;for(let h=i?a:a+u;h<l;h++){const t=o[h];if(h<c&&n===t||h>=c&&t.type===n)return h}if(r){const t=o[c];if(t&&mt(t)&&t.type===n)return c}return null}function Ke(t,e,n,i){let r=t[n];const s=e.data;if(function(t){return t instanceof Ie}(r)){const o=r;o.resolving&&function(t,e){throw new y("200",`Circular dependency in DI detected for ${t}`)}(_(s[n]));const a=Ze(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?L(o.injectImpl):null;he(t,i,P.Default);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const i=wt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==c&&L(c),Ze(a),o.resolving=!1,me()}}return r}function Xe(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function tn(t,e){return!(t&P.Self||t&P.Host&&e)}class en{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return Ye(this._tNode,this._lView,t,n,e)}}function nn(t){return F(()=>{const e=t.prototype.constructor,n=e[W]||rn(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[W]||rn(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function rn(t){return v(t)?()=>{const e=rn(m(t));return e&&e()}:yt(t)}function sn(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 i=0;for(;i<t;){const r=n[i];if(Oe(r))break;if(0===r)i+=2;else if("number"==typeof r)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(r===e)return n[i+1];i+=2}}}return null}(Qt(),t)}const on="__parameters__",an="__prop__metadata__";function cn(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}function un(t,e,n){return F(()=>{const i=cn(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(on)?t[on]:Object.defineProperty(t,on,{value:[]})[on];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}function ln(t,e,n,i){return F(()=>{const r=cn(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return function(n,r){const s=n.constructor,o=s.hasOwnProperty(an)?s[an]:Object.defineProperty(s,an,{value:{}})[an];o[r]=o.hasOwnProperty(r)&&o[r]||[],o[r].unshift(e),i&&i(n,r,...t)}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class hn{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=S({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const dn=new hn("AnalyzeForEntryComponents"),fn=Function;function pn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let i=t[n];Array.isArray(i)?(e===t&&(e=t.slice(0,n)),pn(i,e)):e!==t&&e.push(i)}return e}function gn(t,e){t.forEach(t=>Array.isArray(t)?gn(t,e):e(t))}function mn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function vn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function yn(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function bn(t,e,n){let i=wn(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function _n(t,e){const n=wn(t,e);if(n>=0)return t[1|n]}function wn(t,e){return function(t,e,n){let i=0,r=t.length>>n;for(;r!==i;){const s=i+(r-i>>1),o=t[s<<n];if(e===o)return s<<n;o>e?r=s:i=s+1}return~(r<<n)}(t,e,1)}const xn={},Sn="__NG_DI_FLAG__",Tn="ngTempTokenPath",Cn=/\n/gm,En="__source",An=l({provide:String,useValue:l});let In;function kn(t){const e=In;return In=t,e}function On(t,e=P.Default){if(void 0===In)throw new Error("inject() must be called from an injection context");return null===In?M(t,void 0,e):In.get(t,e&P.Optional?null:void 0,e)}function Dn(t,e=P.Default){return(R||On)(m(t),e)}const Nn=Dn;function Pn(t){const e=[];for(let n=0;n<t.length;n++){const i=m(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t,n=P.Default;for(let e=0;e<i.length;e++){const r=i[e],s=Ln(r);"number"==typeof s?-1===s?t=r.token:n|=s:t=r}e.push(Dn(t,n))}else e.push(Dn(i))}return e}function Rn(t,e){return t[Sn]=e,t.prototype[Sn]=e,t}function Ln(t){return t[Sn]}function Mn(t,e,n,i){const r=t[Tn];throw e[En]&&r.unshift(e[En]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=d(e);if(Array.isArray(e))r=e.map(d).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];
1t.push(n+":"+("string"==typeof i?JSON.stringify(i):d(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(Cn,"\n  ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t[Tn]=null,t}const Fn=Rn(un("Inject",t=>({token:t})),-1),Zn=Rn(un("Optional"),8),qn=Rn(un("SkipSelf"),4);let Un,Vn;function jn(t){var e;return(null===(e=function(){if(void 0===Un&&(Un=null,B.trustedTypes))try{Un=B.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Un}())||void 0===e?void 0:e.createHTML(t))||t}function Bn(){if(void 0===Vn&&(Vn=null,B.trustedTypes))try{Vn=B.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Vn}function zn(t){var e;return(null===(e=Bn())||void 0===e?void 0:e.createHTML(t))||t}function Hn(t){var e;return(null===(e=Bn())||void 0===e?void 0:e.createScriptURL(t))||t}class Gn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Yn extends Gn{getTypeName(){return"HTML"}}class Qn extends Gn{getTypeName(){return"Style"}}class $n extends Gn{getTypeName(){return"Script"}}class Jn extends Gn{getTypeName(){return"URL"}}class Wn extends Gn{getTypeName(){return"ResourceURL"}}function Kn(t){return t instanceof Gn?t.changingThisBreaksApplicationSecurity:t}function Xn(t,e){const n=ti(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function ti(t){return t instanceof Gn&&t.getTypeName()||null}function ei(t){return new Yn(t)}function ni(t){return new Qn(t)}function ii(t){return new $n(t)}function ri(t){return new Jn(t)}function si(t){return new Wn(t)}class oi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(jn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ai{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=jn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=jn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).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 ci=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ui=/^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 li(t){return(t=String(t)).match(ci)||t.match(ui)?t:"unsafe:"+t}function hi(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function di(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const fi=hi("area,br,col,hr,img,wbr"),pi=hi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gi=hi("rp,rt"),mi=di(fi,di(pi,hi("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")),di(gi,hi("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")),di(gi,pi)),vi=hi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),yi=hi("srcset"),bi=di(vi,yi,hi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,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"),hi("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")),_i=hi("script,style,template");class wi{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(!mi.hasOwnProperty(e))return this.sanitizedSomething=!0,!_i.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,s=e.toLowerCase();if(!bi.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=t.value;vi[s]&&(o=li(o)),yi[s]&&(i=o,o=(i=String(i)).split(",").map(t=>li(t.trim())).join(", ")),this.buf.push(" ",e,'="',Ti(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();mi.hasOwnProperty(e)&&!fi.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Ti(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 xi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Si=/([^\#-~ |!])/g;function Ti(t){return t.replace(/&/g,"&amp;").replace(xi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Si,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ci;function Ei(t,e){let n=null;try{Ci=Ci||function(t){const e=new ai(t);return function(){try{return!!(new window.DOMParser).parseFromString(jn(""),"text/html")}catch(t){return!1}}()?new oi(e):e}(t);let i=e?String(e):"";n=Ci.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=Ci.getInertBodyElement(i)}while(i!==s);return jn((new wi).sanitizeChildren(Ai(n)||n))}finally{if(n){const t=Ai(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ai(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ii=(()=>((Ii=Ii||{})[Ii.NONE=0]="NONE",Ii[Ii.HTML=1]="HTML",Ii[Ii.STYLE=2]="STYLE",Ii[Ii.SCRIPT=3]="SCRIPT",Ii[Ii.URL=4]="URL",Ii[Ii.RESOURCE_URL=5]="RESOURCE_URL",Ii))();function ki(t){const e=Ni();return e?zn(e.sanitize(Ii.HTML,t)||""):Xn(t,"HTML")?zn(Kn(t)):Ei(kt(),b(t))}function Oi(t){const e=Ni();return e?e.sanitize(Ii.URL,t)||"":Xn(t,"URL")?Kn(t):li(b(t))}function Di(t){const e=Ni();if(e)return Hn(e.sanitize(Ii.RESOURCE_URL,t)||"");if(Xn(t,"ResourceURL"))return Hn(Kn(t));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Ni(){const t=Ht();return t&&t[12]}const Pi="__ngContext__";function Ri(t,e){t[Pi]=e}function Li(t){const e=function(t){return t[Pi]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Mi(t){return t.ngOriginalError}function Fi(t,...e){t.error(...e)}class Zi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=(r=t)&&r.ngErrorLogger||Fi;var r;i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?t.ngDebugContext||this._findContext(Mi(t)):null}_findOriginalError(t){let e=t&&Mi(t);for(;e&&Mi(e);)e=Mi(e);return e||null}}const qi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B))();function Ui(t){return t.ownerDocument.defaultView}function Vi(t){return t instanceof Function?t():t}var ji=(()=>((ji=ji||{})[ji.Important=1]="Important",ji[ji.DashCase=2]="DashCase",ji))();function Bi(t,e){return undefined(t,e)}function zi(t){const e=t[3];return dt(e)?e[3]:e}function Hi(t){return Yi(t[13])}function Gi(t){return Yi(t[4])}function Yi(t){for(;null!==t&&!dt(t);)t=t[4];return t}function Qi(t,e,n,i,r){if(null!=i){let s,o=!1;dt(i)?s=i:ht(i)&&(o=!0,i=i[0]);const a=Nt(i);0===t&&null!==n?null==r?nr(e,n,a):er(e,n,a,r||null,!0):1===t&&null!==n?er(e,n,a,r||null,!0):2===t?function(t,e,n){const i=rr(t,e);i&&function(t,e,n,i){Ot(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,i,r){const s=n[7];s!==Nt(n)&&Qi(e,t,i,s,r);for(let o=10;o<n.length;o++){const r=n[o];
vendor: 8,231 bytes, line 1
1dr(r[1],r,t,e,i,s)}}(e,t,s,n,r)}}function $i(t,e,n){return Ot(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Ji(t,e){const n=t[9],i=n.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,jt(r,-1)),n.splice(i,1)}function Wi(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const r=i[17];null!==r&&r!==t&&Ji(r,i),e>0&&(t[n-1][4]=i[4]);const s=vn(t,10+e);!function(t,e){dr(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Ki(t,e){if(!(256&e[2])){const n=e[11];Ot(n)&&n.destroyNode&&dr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Xi(t[1],t);for(;e;){let n=null;if(ht(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ht(e)&&Xi(e[1],e),e=e[3];null===e&&(e=t),ht(e)&&Xi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Xi(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 i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof Ie)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2){const i=t[e[n]],r=e[n+1];try{r.call(i)}finally{}}else try{e.call(t)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,i=e[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const t=n[s+1],o="function"==typeof t?t(e):Nt(e[t]),a=i[r=n[s+2]],c=n[s+3];"boolean"==typeof c?o.removeEventListener(n[s],a,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const t=i[r=n[s+1]];n[s].call(t)}if(null!==i){for(let t=r+1;t<i.length;t++)i[t]();e[7]=null}}(t,e),1===e[1].type&&Ot(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&dt(e[3])){n!==e[3]&&Ji(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function tr(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===q.None||e===q.Emulated)return null}return Rt(i,n)}(t,e.parent,n)}function er(t,e,n,i,r){Ot(t)?t.insertBefore(e,n,i,r):e.insertBefore(n,i,r)}function nr(t,e,n){Ot(t)?t.appendChild(e,n):e.appendChild(n)}function ir(t,e,n,i,r){null!==i?er(t,e,n,i,r):nr(t,e,n)}function rr(t,e){return Ot(t)?t.parentNode(e):e.parentNode}function sr(t,e,n){return or(t,e,n)}let or=function(t,e,n){return 40&t.type?Rt(t,n):null};function ar(t,e,n,i){const r=tr(t,i,e),s=e[11],o=sr(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(n))for(let a=0;a<n.length;a++)ir(s,r,n[a],o,!1);else ir(s,r,n,o,!1)}function cr(t,e){if(null!==e){const n=e.type;if(3&n)return Rt(e,t);if(4&n)return lr(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return cr(t,n);{const n=t[e.index];return dt(n)?lr(-1,n):Nt(n)}}if(32&n)return Bi(e,t)()||Nt(t[e.index]);{const n=ur(t,e);return null!==n?Array.isArray(n)?n[0]:cr(zi(t[16]),n):cr(t,e.next)}}return null}function ur(t,e){return null!==e?t[16][6].projection[e.projection]:null}function lr(t,e){const n=10+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return cr(t,i)}return e[7]}function hr(t,e,n,i,r,s,o){for(;null!=n;){const a=i[n.index],c=n.type;if(o&&0===e&&(a&&Ri(Nt(a),i),n.flags|=4),64!=(64&n.flags))if(8&c)hr(t,e,n.child,i,r,s,!1),Qi(e,t,r,a,s);else if(32&c){const o=Bi(n,i);let c;for(;c=o();)Qi(e,t,r,c,s);Qi(e,t,r,a,s)}else 16&c?fr(t,e,i,n,r,s):Qi(e,t,r,a,s);n=o?n.projectionNext:n.next}}function dr(t,e,n,i,r,s){hr(n,i,t.firstChild,e,r,s,!1)}function fr(t,e,n,i,r,s){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)Qi(e,t,r,a[c],s);else hr(t,e,a,o[3],r,s,!0)}function pr(t,e,n){Ot(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function gr(t,e,n){Ot(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function mr(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}const vr="ng-template";function yr(t,e,n){let i=0;for(;i<t.length;){let r=t[i++];if(n&&"class"===r){if(r=t[i],-1!==mr(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function br(t){return 4===t.type&&t.value!==vr}function _r(t,e,n){return e===(4!==t.type||n?t.value:vr)}function wr(t,e,n){let i=4;const r=t.attrs||[],s=function(t){for(let e=0;e<t.length;e++)if(Oe(t[e]))return e;return t.length}(r);let o=!1;for(let a=0;a<e.length;a++){const c=e[a];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!_r(t,c,n)||""===c&&1===e.length){if(xr(i))return!1;o=!0}}else{const u=8&i?c:e[++a];if(8&i&&null!==t.attrs){if(!yr(t.attrs,u,n)){if(xr(i))return!1;o=!0}continue}const l=Sr(8&i?"class":c,r,br(t),n);if(-1===l){if(xr(i))return!1;o=!0;continue}if(""!==u){let t;t=l>s?"":r[l+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==mr(e,u,0)||2&i&&u!==t){if(xr(i))return!1;o=!0}}}}else{if(!o&&!xr(i)&&!xr(c))return!1;if(o&&xr(c))continue;o=!1,i=c|1&i}}return xr(i)||o}function xr(t){return 0==(1&t)}function Sr(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r<e.length;){const i=e[r];if(i===t)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++r];for(;"string"==typeof t;)t=e[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function Tr(t,e,n=!1){for(let i=0;i<e.length;i++)if(wr(t,e[i],n))return!0;return!1}function Cr(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function Er(t,e){return t?":not("+e.trim()+")":e}function Ar(t){let e=t[0],n=1,i=2,r="",s=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];r+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!xr(o)&&(e+=Er(s,r),r=""),i=o,s=s||!xr(i);n++}return""!==r&&(e+=Er(s,r)),e}const Ir={};function kr(t){Or(Gt(),Ht(),ye()+t,Xt())}function Or(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Se(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Te(e,i,0,n)}be(n)}function Dr(t,e){return t<<17|e<<2}function Nr(t){return t>>17&32767}function Pr(t){return 2|t}function Rr(t){return(131068&t)>>2}function Lr(t,e){return-131069&t|e<<2}function Mr(t){return 1|t}function Fr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const n=t.data[s];ue(r),n.contentQueries(2,e[s],s)}}}function Zr(t,e,n,i,r,s,o,a,c,u){const l=e.blueprint.slice();return l[0]=r,l[2]=140|i,Vt(l),l[3]=l[15]=t,l[8]=n,l[10]=o||t&&t[10],l[11]=a||t&&t[11],l[12]=c||t&&t[12]||null,l[9]=u||t&&t[9]||null,l[6]=s,l[16]=2==e.type?t[16]:l,l}function qr(t,e,n,i,r){let s=t.data[e];if(null===s)s=function(t,e,n,i,r){const s=$t(),o=Wt(),a=t.data[e]=function(t,e,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,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,o?s:s&&s.parent,n,e,i,r);return null===t.firstChild&&(t.firstChild=a),null!==s&&(o?null==s.child&&null!==a.parent&&(s.child=a):null===s.next&&(s.next=a)),a}(t,e,n,i,r),Bt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const t=function(){const t=Bt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();s.injectorIndex=null===t?-1:t.injectorIndex}return Jt(s,!0),s}function Ur(t,e,n,i){if(0===n)return-1;const r=e.length;for(let s=0;s<n;s++)e.push(i),t.blueprint.push(i),t.data.push(null);return r}function Vr(t,e,n){de(e);try{const i=t.viewQuery;null!==i&&ys(1,i,n);const r=t.template;null!==r&&zr(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Fr(t,e),t.staticViewQueries&&ys(2,t.viewQuery,n);const s=t.components;null!==s&&function(t,e){for(let n=0;n<e.length;n++)fs(t,e[n])}(e,s)}
vendor: 21,711 bytes, line 1
1catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{e[2]&=-5,ve()}}function jr(t,e,n,i){const r=e[2];if(256==(256&r))return;de(e);const s=Xt();try{Vt(e),function(t){Bt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&zr(t,e,n,2,i);const o=3==(3&r);if(!s)if(o){const n=t.preOrderCheckHooks;null!==n&&Se(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Te(e,n,0,null),Ce(e,0)}if(function(t){for(let e=Hi(t);null!==e;e=Gi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&jt(i,1),n[2]|=1024}}}(e),function(t){for(let e=Hi(t);null!==e;e=Gi(e))for(let t=10;t<e.length;t++){const n=e[t],i=n[1];qt(n)&&jr(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&Fr(t,e),!s)if(o){const n=t.contentCheckHooks;null!==n&&Se(e,n)}else{const n=t.contentHooks;null!==n&&Te(e,n,1),Ce(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const i=n[t];if(i<0)be(~i);else{const r=i,s=n[++t],o=n[++t];se(s,r),o(2,e[r])}}}finally{be(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)hs(t,e[n])}(e,a);const c=t.viewQuery;if(null!==c&&ys(2,c,i),!s)if(o){const n=t.viewCheckHooks;null!==n&&Se(e,n)}else{const n=t.viewHooks;null!==n&&Te(e,n,2),Ce(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,jt(e[3],-1))}finally{ve()}}function Br(t,e,n,i){const r=e[10],s=!Xt(),o=Zt(e);try{s&&!o&&r.begin&&r.begin(),o&&Vr(t,e,i),jr(t,e,n,i)}finally{s&&!o&&r.end&&r.end()}}function zr(t,e,n,i,r){const s=ye(),o=2&i;try{be(-1),o&&e.length>20&&Or(t,e,20,Xt()),n(i,r)}finally{be(s)}}function Hr(t,e,n){if(ft(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r<i;r++){const e=t.data[r];e.contentQueries&&e.contentQueries(1,n[r],r)}}}function Gr(t,e,n){!zt()||(function(t,e,n,i){const r=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||Ue(n,e),Ri(i,e);const o=n.initialInputs;for(let a=r;a<s;a++){const i=t.data[a],s=mt(i);s&&os(e,n,i);const c=Ke(e,t,a,n);Ri(c,e),null!==o&&cs(0,a-r,c,i,0,o),s&&(Ft(n.index,e)[8]=c)}}(t,e,n,Rt(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,r=n.directiveEnd,s=n.index,o=Bt.lFrame.currentDirectiveIndex;try{be(s);for(let n=i;n<r;n++){const i=t.data[n],r=e[n];oe(n),(null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs)&&es(i,r)}}finally{be(-1),oe(o)}}(t,e,n))}function Yr(t,e,n=Rt){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(e,t):t[o];t[r++]=a}}}function Qr(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=$r(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function $r(t,e,n,i,r,s,o,a,c,u){const l=20+i,h=l+r,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:Ir);return n}(l,h),f="function"==typeof u?u():u;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,data:d.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:f,incompleteFirstPass:!1}}function Jr(t,e,n,i){const r=_s(e);null===n?r.push(i):(r.push(n),t.firstCreatePass&&ws(t).push(i,r.length-1))}function Wr(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,r):n[i]=[e,r]}return n}function Kr(t,e,n,i,r,s,o,a){const c=Rt(e,n);let u,l=e.inputs;!a&&null!=l&&(u=l[i])?(Ts(t,n,u,i,r),pt(e)&&function(t,e){const n=Ft(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(i=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=o?o(r,e.value||"",i):r,Ot(s)?s.setProperty(c,i,r):De(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function Xr(t,e,n,i){let r=!1;if(zt()){const s=function(t,e,n){const i=t.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Tr(n,o.selectors,!1)&&(r||(r=[]),ze(Ue(n,e),t,o.type),mt(o)?(ns(t,n),r.unshift(o)):r.push(o))}return r}(t,e,n),o=null===i?null:{"":-1};if(null!==s){r=!0,rs(n,t.data.length,s.length);for(let t=0;t<s.length;t++){const e=s[t];e.providersResolver&&e.providersResolver(e)}let i=!1,a=!1,c=Ur(t,e,s.length,null);for(let r=0;r<s.length;r++){const u=s[r];n.mergedAttrs=Ne(n.mergedAttrs,u.hostAttrs),ss(t,n,e,c,u),is(c,u,o),null!==u.contentQueries&&(n.flags|=8),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(n.flags|=128);const l=u.type.prototype;!i&&(l.ngOnChanges||l.ngOnInit||l.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),i=!0),!a&&(l.ngOnChanges||l.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),a=!0),c++}!function(t,e){const n=e.directiveEnd,i=t.data,r=e.attrs,s=[];let o=null,a=null;for(let c=e.directiveStart;c<n;c++){const t=i[c],n=t.inputs,u=null===r||br(e)?null:us(n,r);s.push(u),o=Wr(n,c,o),a=Wr(t.outputs,c,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=o,e.outputs=a}(t,n)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const r=n[e[t+1]];if(null==r)throw new y("301",`Export of name '${e[t+1]}' not found!`);i.push(e[t],r)}}}(n,i,o)}return n.mergedAttrs=Ne(n.mergedAttrs,n.attrs),r}function ts(t,e,n,i,r,s){const o=s.hostBindings;if(o){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const s=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(i,r,o)}}function es(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function ns(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function is(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;mt(e)&&(n[""]=t)}}function rs(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function ss(t,e,n,i,r){t.data[i]=r;const s=r.factory||(r.factory=yt(r.type)),o=new Ie(s,mt(r),null);t.blueprint[i]=o,n[i]=o,ts(t,e,0,i,Ur(t,n,r.hostVars,Ir),r)}function os(t,e,n){const i=Rt(e,t),r=Qr(n),s=t[10],o=ps(t,Zr(t,r,null,n.onPush?64:16,i,e,s,s.createRenderer(i,n),null,null));t[e.index]=o}function as(t,e,n,i,r,s){const o=Rt(t,e);!function(t,e,n,i,r,s,o){if(null==s)Ot(t)?t.removeAttribute(e,r,n):e.removeAttribute(r);else{const a=null==o?b(s):o(s,i||"",r);Ot(t)?t.setAttribute(e,r,a,n):n?e.setAttributeNS(n,r,a):e.setAttribute(r,a)}}(e[11],o,s,t.value,n,i,r)}function cs(t,e,n,i,r,s){const o=s[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const r=o[e++],s=o[e++],a=o[e++];null!==t?i.setInput(n,a,r,s):n[s]=a}}}function us(t,e){let n=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[i+1])),i+=2}else i+=2;else i+=4}return n}function ls(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function hs(t,e){const n=Ft(e,t);if(qt(n)){const t=n[1];80&n[2]?jr(t,n,t.template,n[8]):n[5]>0&&ds(n)}}function ds(t){for(let n=Hi(t);null!==n;n=Gi(n))for(let t=10;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];jr(t,e,t.template,e[8])}else e[5]>0&&ds(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const i=Ft(e[n],t);qt(i)&&i[5]>0&&ds(i)}}function fs(t,e){const n=Ft(e,t),i=n[1];(function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(i,n),Vr(i,n,n[8])}function ps(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function gs(t){for(;t;){t[2]|=64;const e=zi(t);if(vt(t)&&!e)return t;t=e}return null}function ms(t,e,n){const i=e[10];i.begin&&i.begin();try{jr(t,e,t.template,n)}catch(r){throw Ss(e,r),r}finally{i.end&&i.end()}}function vs(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Li(n),r=i[1];Br(r,i,r.template,n)}}(t[8])}function ys(t,e,n){ue(0),e(t,n)}const bs=(()=>Promise.resolve(null))();function _s(t){return t[7]||(t[7]=[])}function ws(t){return t.cleanup||(t.cleanup=[])}function xs(t,e,n){return(null===t||mt(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 Ss(t,e){const n=t[9],i=n?n.get(Zi,null):null;i&&i.handleError(e)}function Ts(t,e,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],c=e[o],u=t.data[o];null!==u.setInput?u.setInput(c,r,i,a):c[a]=r}}function Cs(t,e,n){const i=Pt(e,t);!function(t,e,n){Ot(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}function Es(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?s=t:1==s?r=f(r,t):2==s&&(i=f(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=r:t.classesWithoutHost=r}const As=new hn("INJECTOR",-1);class Is{get(t,e=xn){if(e===xn){const e=new Error(`NullInjectorError: No provider for ${d(t)}!`);throw e.name="NullInjectorError",e}return e}}const ks=new hn("Set Injector scope."),Os={},Ds={};let Ns;function Ps(){return void 0===Ns&&(Ns=new Is),Ns}function Rs(t,e=null,n=null,i){return new Ls(t,n,e||Ps(),i)}class Ls{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&gn(e,n=>this.processProvider(n,t,e)),gn([t],t=>this.processInjectorType(t,[],r)),this.records.set(As,Zs(void 0,this));const s=this.records.get(ks);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:d(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=xn,n=P.Default){this.assertNotDestroyed();const i=kn(this),r=L(void 0);try{if(!(n&P.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof hn)&&E(t);e=n&&this.injectableDefInScope(n)?Zs(Ms(t),Os):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&P.Self?Ps():this.parent).get(t,e=n&P.Optional&&e===xn?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Tn]=o[Tn]||[]).unshift(d(t)),i)throw o;return Mn(o,t,"R3InjectorError",this.source)}throw o}finally{L(r),kn(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(d(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=m(t)))return!1;let i=I(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=I(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{gn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];gn(i,t=>this.processProvider(t,n,i||H))}}this.injectorDefTypes.add(s);const a=yt(s)||(()=>new s);this.records.set(s,Zs(a,Os));const c=i.providers;if(null!=c&&!o){const e=t;gn(c,t=>this.processProvider(t,e,c))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=Us(t=m(t))?t:m(t&&t.provide);const r=qs(s=t)?Zs(void 0,s.useValue):Zs(Fs(s),Os);var s;if(Us(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Zs(void 0,Os,!0),e.factory=()=>Pn(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){return e.value===Os&&(e.value=Ds,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;var n}injectableDefInScope(t){if(!t.providedIn)return!1;const e=m(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Ms(t){const e=E(t),n=null!==e?e.factory:yt(t);if(null!==n)return n;if(t instanceof hn)throw new Error(`Token ${d(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=yn(e,"?");throw new Error(`Can't resolve all parameters for ${d(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[k]||t[D]);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 Fs(t,e,n){let i;if(Us(t)){const e=m(t);return yt(e)||Ms(e)}if(qs(t))i=()=>m(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Pn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Dn(m(t.useExisting));else{const e=m(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return yt(e)||Ms(e);i=()=>new e(...Pn(t.deps))}return i}function Zs(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function qs(t){return null!==t&&"object"==typeof t&&An in t}function Us(t){return"function"==typeof t}const Vs=function(t,e,n){return function(t,e=null,n=null,i){const r=Rs(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let js=(()=>{class t{static create(t,e){return Array.isArray(t)?Vs(t,e,""):Vs(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=xn,t.NULL=new Is,t.\u0275prov=S({token:t,providedIn:"any",factory:()=>Dn(As)}),t.__NG_ELEMENT_ID__=-1,t})();function Bs(t,e){xe(Li(t)[1],Qt())}function zs(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const i=[t];for(;e;){let r;if(mt(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);const e=t;e.inputs=Hs(t.inputs),e.declaredInputs=Hs(t.declaredInputs),e.outputs=Hs(t.outputs);const n=r.hostBindings;n&&Qs(t,n);const s=r.viewQuery,o=r.contentQueries;if(s&&Gs(t,s),o&&Ys(t,o),h(t.inputs,r.inputs),h(t.declaredInputs,r.declaredInputs),h(t.outputs,r.outputs),mt(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let i=0;i<e.length;i++){const r=e[i];r&&r.ngInherit&&r(t),r===zs&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Ne(r.hostAttrs,n=Ne(n,r.hostAttrs))}}(i)}function Hs(t){return t===z?{}:t===H?[]:t}function Gs(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Ys(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function Qs(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let $s=null;function Js(){if(!$s){const t=B.Symbol;if(t&&t.iterator)$s=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&&($s=n)}}}return $s}class Ws{constructor(t){this.wrapped=t}static wrap(t){return new Ws(t)}static unwrap(t){return Ws.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Ws}}function Ks(t){return!!Xs(t)&&(Array.isArray(t)||!(t instanceof Map)&&Js()in t)}function Xs(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function to(t,e,n){return t[e]=n}function eo(t,e){return t[e]}function no(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function io(t,e,n,i){const r=no(t,e,n);return no(t,e+1,i)||r}function ro(t,e,n,i,r){const s=io(t,e,n,i);return no(t,e+2,r)||s}function so(t,e,n,i,r,s){const o=io(t,e,n,i);return io(t,e+2,r,s)||o}function oo(t,e,n,i){const r=Ht();return no(r,ie(),e)&&(Gt(),as(_e(),r,t,e,n,i)),oo}function ao(t,e,n,i){return no(t,ie(),n)?e+b(n)+i:Ir}function co(t,e,n,i,r,s,o,a){const c=ro(t,ne(),n,r,o);return re(3),c?e+b(n)+i+b(r)+s+b(o)+a:Ir}function uo(t,e,n,i,r,s,o,a){const c=Ht(),u=Gt(),l=t+20,h=u.firstCreatePass?function(t,e,n,i,r,s,o,a,c){const u=e.consts,l=qr(e,t,4,o||null,Ut(u,a));Xr(e,n,l,Ut(u,c)),xe(e,l);const h=l.tViews=$r(2,l,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u);return null!==e.queries&&(e.queries.template(e,l),h.queries=e.queries.embeddedTView(l)),l}(l,u,c,e,n,i,r,s,o):u.data[l];Jt(h,!1);const d=c[11].createComment("");ar(u,c,d,h),Ri(d,c),ps(c,c[l]=ls(d,c,d,h)),gt(h)&&Gr(u,c,h),null!=o&&Yr(c,h,a)}function lo(t){return Mt(Bt.lFrame.contextLView,20+t)}function ho(t,e=P.Default){const n=Ht();return null===n?Dn(t,e):Ye(Qt(),n,m(t),e)}function fo(){throw new Error("invalid")}function po(t,e,n){const i=Ht();return no(i,ie(),e)&&Kr(Gt(),_e(),i,t,e,i[11],n,!1),po}function go(t,e,n,i,r){const s=r?"class":"style";Ts(t,n,e.inputs[s],s,i)}function mo(t,e,n,i){const r=Ht(),s=Gt(),o=20+t,a=r[11],c=r[o]=$i(a,e,Bt.lFrame.currentNamespace),u=s.firstCreatePass?function(t,e,n,i,r,s,o){const a=e.consts,c=qr(e,t,2,r,Ut(a,s));return Xr(e,n,c,Ut(a,o)),null!==c.attrs&&Es(c,c.attrs,!1),null!==c.mergedAttrs&&Es(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,n,i):s.data[o];Jt(u,!0);const l=u.mergedAttrs;null!==l&&ke(a,c,l);const h=u.classes;null!==h&&gr(a,c,h);const d=u.styles;null!==d&&pr(a,c,d),64!=(64&u.flags)&&ar(s,r,c,u),0===Bt.lFrame.elementDepthCount&&Ri(c,r),Bt.lFrame.elementDepthCount++,gt(u)&&(Gr(s,r,u),Hr(s,u,r)),null!==i&&Yr(r,u)}function vo(){let t=Qt();Wt()?Kt():(t=t.parent,Jt(t,!1));const e=t;Bt.lFrame.elementDepthCount--;const n=Gt();n.firstCreatePass&&(xe(n,t),ft(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&go(n,e,Ht(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&go(n,e,Ht(),e.stylesWithoutHost,!1)}function yo(t,e,n,i){mo(t,e,n,i),vo()}function bo(t,e,n){const i=Ht(),r=Gt(),s=t+20,o=r.firstCreatePass?function(t,e,n,i,r){const s=e.consts,o=Ut(s,i),a=qr(e,t,8,"ng-container",o);return null!==o&&Es(a,o,!0),Xr(e,n,a,Ut(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,n):r.data[s];Jt(o,!0);const a=i[s]=i[11].createComment("");ar(r,i,a,o),Ri(a,i),gt(o)&&(Gr(r,i,o),Hr(r,o,i)),null!=n&&Yr(i,o)}function _o(){let t=Qt();const e=Gt();Wt()?Kt():(t=t.parent,Jt(t,!1)),e.firstCreatePass&&(xe(e,t),ft(t)&&e.queries.elementEnd(t))}function wo(t,e,n){bo(t,e,n),_o()}function xo(){return Ht()}function So(t){return!!t&&"function"==typeof t.then}function To(t){return!!t&&"function"==typeof t.subscribe}const Co=To;function Eo(t,e,n,i){const r=Ht(),s=Gt(),o=Qt();return Io(s,r,r[11],o,t,e,!!n,i),Eo}function Ao(t,e){const n=Qt(),i=Ht(),r=Gt();return Io(r,i,xs(ae(r.data),n,i),n,t,e,!1),Ao}function Io(t,e,n,i,r,s,o,a){const c=gt(i),u=t.firstCreatePass&&ws(t),l=e[8],h=_s(e);let d=!0;if(3&i.type||a){const f=Rt(i,e),p=a?a(f):f,g=h.length,m=a?t=>a(Nt(t[i.index])):i.index;if(Ot(n)){let o=null;if(!a&&c&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const t=r[s];if(t===n&&r[s+1]===i){const t=e[7],n=r[s+2];return t.length>n?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,d=!1;else{s=Oo(i,e,l,s,!1);const t=n.listen(p,r,s);h.push(s,t),u&&u.push(r,m,g,g+1)}}else s=Oo(i,e,l,s,!0),p.addEventListener(r,s,o),h.push(s),u&&u.push(r,m,g,o)}else s=Oo(i,e,l,s,!1);const f=i.outputs;let p;if(d&&null!==f&&(p=f[r])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(s),o=h.length;h.push(s,t),u&&u.push(r,i.index,o,-(o+1))}}}function ko(t,e,n,i){try{return!1!==n(i)}catch(r){return Ss(t,r),!1}}function Oo(t,e,n,i,r){return function n(s){if(s===Function)return i;const o=2&t.flags?Ft(t.index,e):e;0==(32&e[2])&&gs(o);let a=ko(e,0,i,s),c=n.__ngNextListenerFn__;for(;c;)a=ko(e,0,c,s)&&a,c=c.__ngNextListenerFn__;return r&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function Do(t=1){return function(t){return(Bt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Bt.lFrame.contextLView))[8]}(t)}function No(t,e){let n=null;const i=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 r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?Tr(t,s,!0):Cr(i,s))return r}else n=r}return n}function Po(t){const e=Ht()[16][6];if(!e.projection){const n=e.projection=yn(t?t.length:1,null),i=n.slice();let r=e.child;for(;null!==r;){const e=t?No(r,t):0;null!==e&&(i[e]?i[e].projectionNext=r:n[e]=r,i[e]=r),r=r.next}}}function Ro(t,e=0,n){const i=Ht(),r=Gt(),s=qr(r,20+t,16,null,n||null);null===s.projection&&(s.projection=e),Kt(),64!=(64&s.flags)&&function(t,e,n){fr(e[11],0,e,n,tr(t,n,e),sr(n.parent||e[6],n,e))}(r,i,s)}function Lo(t,e,n){return Mo(t,"",e,"",n),Lo}function Mo(t,e,n,i,r){const s=Ht(),o=ao(s,e,n,i);return o!==Ir&&Kr(Gt(),_e(),s,t,o,s[11],r,!1),Mo}function Fo(t,e,n,i,r){const s=t[n+1],o=null===e;let a=i?Nr(s):Rr(s),c=!1;for(;0!==a&&(!1===c||o);){const n=t[a+1];Zo(t[a],e)&&(c=!0,t[a+1]=i?Mr(n):Pr(n)),a=i?Nr(n):Rr(n)}c&&(t[n+1]=i?Pr(s):Mr(s))}function Zo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&wn(t,e)>=0}const qo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0}
1;function Uo(t){return t.substring(qo.key,qo.keyEnd)}function Vo(t,e){const n=qo.textEnd;return n===e?-1:(e=qo.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,qo.key=e,n),jo(t,e,n))}function jo(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Bo(t,e,n){return Yo(t,e,n,!1),Bo}function zo(t,e){return Yo(t,e,null,!0),zo}function Ho(t){Qo(bn,Go,t,!0)}function Go(t,e){for(let n=function(t){return function(t){qo.key=0,qo.keyEnd=0,qo.value=0,qo.valueEnd=0,qo.textEnd=t.length}(t),Vo(t,jo(t,0,qo.textEnd))}(e);n>=0;n=Vo(e,n))bn(t,Uo(e),!0)}function Yo(t,e,n,i){const r=Ht(),s=Gt(),o=re(2);s.firstUpdatePass&&Jo(s,t,o,i),e!==Ir&&no(r,o,e)&&Xo(s,s.data[ye()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=d(Kn(t)))),t}(e,n),i,o)}function Qo(t,e,n,i){const r=Gt(),s=re(2);r.firstUpdatePass&&Jo(r,null,s,i);const o=Ht();if(n!==Ir&&no(o,s,n)){const a=r.data[ye()];if(na(a,i)&&!$o(r,s)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=f(t,n||"")),go(r,a,o,n,i)}else!function(t,e,n,i,r,s,o,a){r===Ir&&(r=H);let c=0,u=0,l=0<r.length?r[0]:null,h=0<s.length?s[0]:null;for(;null!==l||null!==h;){const d=c<r.length?r[c+1]:void 0,f=u<s.length?s[u+1]:void 0;let p,g=null;l===h?(c+=2,u+=2,d!==f&&(g=h,p=f)):null===h||null!==l&&l<h?(c+=2,g=l):(u+=2,g=h,p=f),null!==g&&Xo(t,e,n,i,g,p,o,a),l=c<r.length?r[c]:null,h=u<s.length?s[u]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function(t,e,n){if(null==n||""===n)return H;const i=[],r=Kn(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&t(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(t,e,n),i,s)}}function $o(t,e){return e>=t.expandoStartIndex}function Jo(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[ye()],o=$o(t,n);na(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=ae(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=Ko(n=Wo(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=Wo(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Rr(i))return t[Nr(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Wo(null,t,e,n[1],i),n=Ko(n,e.attrs,i),function(t,e,n,i){t[Nr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=Ko(i,t[s].hostAttrs,n);return Ko(i,e.attrs,n)}(t,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),n}(r,s,e,i),function(t,e,n,i,r,s){let o=s?e.classBindings:e.styleBindings,a=Nr(o),c=Rr(o);t[i]=n;let u,l=!1;if(Array.isArray(n)){const t=n;u=t[1],(null===u||wn(t,u)>0)&&(l=!0)}else u=n;if(r)if(0!==c){const e=Nr(t[a+1]);t[i+1]=Dr(e,a),0!==e&&(t[e+1]=Lr(t[e+1],i)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],i)}else t[i+1]=Dr(a,0),0!==a&&(t[a+1]=Lr(t[a+1],i)),a=i;else t[i+1]=Dr(c,0),0===a?a=i:t[c+1]=Lr(t[c+1],i),c=i;l&&(t[i+1]=Pr(t[i+1])),Fo(t,u,i,!0),Fo(t,u,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&wn(s,e)>=0&&(n[i+1]=Mr(n[i+1]))}(e,u,t,i,s),o=Dr(a,c),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}function Wo(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=e[a],i=Ko(i,s.hostAttrs,r),s!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function Ko(t,e,n){const i=n?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),bn(t,o,!!n||e[++s]))}return void 0===t?null:t}function Xo(t,e,n,i,r,s,o,a){if(!(3&e.type))return;const c=t.data,u=c[a+1];ea(function(t){return 1==(1&t)}(u)?ta(c,e,n,r,Rr(u),o):void 0)||(ea(s)||function(t){return 2==(2&t)}(u)&&(s=ta(c,null,n,r,a,o)),function(t,e,n,i,r){const s=Ot(t);if(e)r?s?t.addClass(n,i):n.classList.add(i):s?t.removeClass(n,i):n.classList.remove(i);else{let e=-1===i.indexOf("-")?void 0:ji.DashCase;if(null==r)s?t.removeStyle(n,i,e):n.style.removeProperty(i);else{const o="string"==typeof r&&r.endsWith("!important");o&&(r=r.slice(0,-10),e|=ji.Important),s?t.setStyle(n,i,r,e):n.style.setProperty(i,r,o?"important":"")}}}
1(i,o,Pt(ye(),n),r,s))}function ta(t,e,n,i,r,s){const o=null===e;let a;for(;r>0;){const e=t[r],s=Array.isArray(e),c=s?e[1]:e,u=null===c;let l=n[r+1];l===Ir&&(l=u?H:void 0);let h=u?_n(l,i):c===i?l:void 0;if(s&&!ea(h)&&(h=_n(e,i)),ea(h)&&(a=h,o))return a;const d=t[r+1];r=o?Nr(d):Rr(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=_n(t,i))}return a}function ea(t){return void 0!==t}function na(t,e){return 0!=(t.flags&(e?16:32))}function ia(t,e=""){const n=Ht(),i=Gt(),r=t+20,s=i.firstCreatePass?qr(i,r,1,e,null):i.data[r],o=n[r]=function(t,e){return Ot(t)?t.createText(e):t.createTextNode(e)}(n[11],e);ar(i,n,o,s),Jt(s,!1)}function ra(t){return sa("",t,""),ra}function sa(t,e,n){const i=Ht(),r=ao(i,t,e,n);return r!==Ir&&Cs(i,ye(),r),sa}function oa(t,e,n,i,r){const s=Ht(),o=function(t,e,n,i,r,s){const o=io(t,ne(),n,r);return re(2),o?e+b(n)+i+b(r)+s:Ir}(s,t,e,n,i,r);return o!==Ir&&Cs(s,ye(),o),oa}function aa(t,e,n,i,r,s,o){const a=Ht(),c=co(a,t,e,n,i,r,s,o);return c!==Ir&&Cs(a,ye(),c),aa}function ca(t,e,n,i,r,s,o,a,c){const u=Ht(),l=function(t,e,n,i,r,s,o,a,c,u){const l=so(t,ne(),n,r,o,c);return re(4),l?e+b(n)+i+b(r)+s+b(o)+a+b(c)+u:Ir}(u,t,e,n,i,r,s,o,a,c);return l!==Ir&&Cs(u,ye(),l),ca}function ua(t,e,n){Qo(bn,Go,ao(Ht(),t,e,n),!0)}function la(t,e,n,i,r,s,o){Qo(bn,Go,co(Ht(),t,e,n,i,r,s,o),!0)}function ha(t,e,n){const i=Ht();return no(i,ie(),e)&&Kr(Gt(),_e(),i,t,e,i[11],n,!0),ha}function da(t,e,n){const i=Ht();if(no(i,ie(),e)){const r=Gt(),s=_e();Kr(r,s,i,t,e,xs(ae(r.data),s,i),n,!0)}return da}const fa=void 0;var pa=["en",[["a","p"],["AM","PM"],fa],[["AM","PM"],fa,fa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],fa,[["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"]],fa,[["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}",fa,"{1} 'at' {0}",fa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ga={};function ma(t,e,n){"string"!=typeof e&&(n=e,e=t[_a.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),ga[e]=t,n&&(ga[e][_a.ExtraData]=n)}function va(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ba(e);if(n)return n;const i=e.split("-")[0];if(n=ba(i),n)return n;if("en"===i)return pa;throw new Error(`Missing locale data for the locale "${t}".`)}function ya(t){return va(t)[_a.PluralCase]}function ba(t){return t in ga||(ga[t]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[t]),ga[t]}var _a=(()=>((_a=_a||{})[_a.LocaleId=0]="LocaleId",_a[_a.DayPeriodsFormat=1]="DayPeriodsFormat",_a[_a.DayPeriodsStandalone=2]="DayPeriodsStandalone",_a[_a.DaysFormat=3]="DaysFormat",_a[_a.DaysStandalone=4]="DaysStandalone",_a[_a.MonthsFormat=5]="MonthsFormat",_a[_a.MonthsStandalone=6]="MonthsStandalone",_a[_a.Eras=7]="Eras",_a[_a.FirstDayOfWeek=8]="FirstDayOfWeek",_a[_a.WeekendRange=9]="WeekendRange",_a[_a.DateFormat=10]="DateFormat",_a[_a.TimeFormat=11]="TimeFormat",_a[_a.DateTimeFormat=12]="DateTimeFormat",_a[_a.NumberSymbols=13]="NumberSymbols",_a[_a.NumberFormats=14]="NumberFormats",_a[_a.CurrencyCode=15]="CurrencyCode",_a[_a.CurrencySymbol=16]="CurrencySymbol",_a[_a.CurrencyName=17]="CurrencyName",_a[_a.Currencies=18]="Currencies",_a[_a.Directionality=19]="Directionality",_a[_a.PluralCase=20]="PluralCase",_a[_a.ExtraData=21]="ExtraData",_a))();const wa="en-US";let xa=wa;function Sa(t){x(t,"Expected localeId to be defined"),"string"==typeof t&&(xa=t.toLowerCase().replace(/_/g,"-"))}function Ta(t,e,n,i,r){if(t=m(t),Array.isArray(t))for(let s=0;s<t.length;s++)Ta(t[s],e,n,i,r);else{const s=Gt(),o=Ht();let a=Us(t)?t:m(t.provide),c=Fs(t);const u=Qt(),l=1048575&u.providerIndexes,h=u.directiveStart,d=u.providerIndexes>>20;if(Us(t)||!t.multi){const i=new Ie(c,r,ho),f=Aa(a,e,r?l:l+d,h);-1===f?(ze(Ue(u,o),s,a),Ca(s,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(i),o.push(i)):(n[f]=i,o[f]=i)}else{const f=Aa(a,e,l+d,h),p=Aa(a,e,l,l+d),g=f>=0&&n[f],m=p>=0&&n[p];if(r&&!m||!r&&!g){ze(Ue(u,o),s,a);const l=function(t,e,n,i,r){const s=new Ie(t,n,ho);return s.multi=[],s.index=e,s.componentProviders=0,Ea(s,r,i&&!n),s}(r?ka:Ia,n.length,r,i,c);!r&&m&&(n[p].providerFactory=l),Ca(s,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(l),o.push(l)}else Ca(s,t,f>-1?f:p,Ea(n[r?p:f],c,!r&&i));!r&&i&&m&&n[p].componentProviders++}}}function Ca(t,e,n,i){const r=Us(e);if(r||function(t){return!!t.useClass}(e)){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,s]):o[t+1].push(i,s)}else o.push(n,s)}}}function Ea(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Aa(t,e,n,i){for(let r=n;r<i;r++)if(e[r]===t)return r;return-1}function Ia(t,e,n,i){return Oa(this.multi,[])}function ka(t,e,n,i){const r=this.multi;let s;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Ke(n,n[1],this.providerFactory.index,i);s=e.slice(0,t),Oa(r,s);for(let n=t;n<e.length;n++)s.push(e[n])}else s=[],Oa(r,s);return s}function Oa(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function Da(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=Gt();if(i.firstCreatePass){const r=mt(t);Ta(n,i.data,i.blueprint,r,!0),Ta(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class Na{}const Pa="ngComponent";
vendor: 13,822 bytes, line 1
1class Ra{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${d(t)}. Did you add it to @NgModule.entryComponents?`);return e[Pa]=t,e}(t)}}let La=(()=>{class t{}return t.NULL=new Ra,t})();function Ma(...t){}function Fa(t,e){return new qa(Rt(t,e))}const Za=function(){return Fa(Qt(),Ht())};let qa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Za,t})();function Ua(t){return t instanceof qa?t.nativeElement:t}class Va{}let ja=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ba(),t})();const Ba=function(){const t=Ht(),e=Ft(Qt().index,t);return function(t){return t[11]}(ht(e)?e:t)};let za=(()=>{class t{}return t.\u0275prov=S({token:t,providedIn:"root",factory:()=>null}),t})();class Ha{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ga=new Ha("12.2.15");class Ya{constructor(){}supports(t){return Ks(t)}create(t){return new $a(t)}}const Qa=(t,e)=>e;class $a{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||Qa}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const s=!n||e&&e.currentIndex<Xa(n,i,r)?e:n,o=Xa(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{r||(r=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<r.length?r[n]:r[n]=0,s=i+n;e<=s&&s<t&&(r[n]=i+1)}r[s.previousIndex]=e-t}}o!==a&&t(s,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Ks(t))throw new Error(`Error trying to diff '${d(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,r=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,n,i,e)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,e),s=!0),r=r._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[Js()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),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,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):t=this._addAfter(new Ja(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),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 i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,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 i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ka),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 Ka),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 Ja{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 Wa{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 Ka{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Wa,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 Xa(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+e+r}class tc{constructor(){}supports(t){return t instanceof Map||Xs(t)}create(){return new ec}}class ec{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Xs(t)))throw new Error(`Error trying to diff '${d(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 i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),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 i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new nc(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 nc{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function ic(){return new rc([new Ya])}let rc=(()=>{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=>t.create(e,n||ic()),deps:[[t,new qn,new Zn]]}}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 '${function(t){return t.name||typeof t}(t)}'`)}}return t.\u0275prov=S({token:t,providedIn:"root",factory:ic}),t})();function sc(){return new oc([new tc])}let oc=(()=>{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=>t.create(e,n||sc()),deps:[[t,new qn,new Zn]]}}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=S({token:t,providedIn:"root",factory:sc}),t})();function ac(t,e,n,i,r=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&i.push(Nt(s)),dt(s))for(let t=10;t<s.length;t++){const e=s[t],n=e[1].firstChild;null!==n&&ac(e[1],e,n,i)}const o=n.type;if(8&o)ac(t,e,n.child,i);else if(32&o){const t=Bi(n,e);let r;for(;r=t();)i.push(r)}else if(16&o){const t=ur(e,n);if(Array.isArray(t))i.push(...t);else{const n=zi(e[16]);ac(n[1],n,t,i,!0)}}n=r?n.projectionNext:n.next}return i}class cc{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return ac(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(dt(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(Wi(t,n),vn(e,n))}this._attachedToViewContainer=!1}Ki(this._lView[1],this._lView)}onDestroy(t){Jr(this._lView[1],this._lView,null,t)}markForCheck(){gs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ms(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){te(!0);try{ms(t,e,n)}finally{te(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,dr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a Vie
1wContainer!");this._appRef=t}}class uc extends cc{constructor(t){super(t),this._view=t}detectChanges(){vs(this._view)}checkNoChanges(){!function(t){te(!0);try{vs(t)}finally{te(!1)}}(this._view)}get context(){return null}}const lc=function(t){return function(t,e,n){if(pt(t)&&!n){const n=Ft(t.index,e);return new cc(n,n)}return 47&t.type?new cc(e[16],e):null}(Qt(),Ht(),16==(16&t))};let hc=(()=>{class t{}return t.__NG_ELEMENT_ID__=lc,t})();const dc=[new tc],fc=new rc([new Ya]),pc=new oc(dc),gc=function(){return bc(Qt(),Ht())};let mc=(()=>{class t{}return t.__NG_ELEMENT_ID__=gc,t})();const vc=mc,yc=class extends vc{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Zr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Vr(e,n,t),new cc(n)}};function bc(t,e){return 4&t.type?new yc(e,t,Fa(t,e)):null}class _c{}class wc{}const xc=function(){return Ic(Qt(),Ht())};let Sc=(()=>{class t{}return t.__NG_ELEMENT_ID__=xc,t})();const Tc=Sc,Cc=class extends Tc{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Fa(this._hostTNode,this._hostLView)}get injector(){return new en(this._hostTNode,this._hostLView)}get parentInjector(){const t=Be(this._hostTNode,this._hostLView);if(Re(t)){const e=Me(t,this._hostLView),n=Le(t);return new en(e[1].data[n+8],e)}return new en(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Ec(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(_c,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Cc(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=e),i<s-10?(e[4]=n[r],mn(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,s,r);const o=lr(r,s),a=n[11],c=rr(a,s[7]);return null!==c&&function(t,e,n,i,r,s){i[0]=r,i[6]=e,dr(t,i,n,1,r,s)}(i,s[6],a,n,c,o),t.attachToViewContainerRef(),mn(Ac(s),r,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Ec(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Wi(this._lContainer,e);n&&(vn(Ac(this._lContainer),e),Ki(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Wi(this._lContainer,e);return n&&null!=vn(Ac(this._lContainer),e)?new cc(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Ec(t){return t[8]}function Ac(t){return t[8]||(t[8]=[])}function Ic(t,e){let n;const i=e[t.index];if(dt(i))n=i;else{let r;if(8&t.type)r=Nt(i);else{const n=e[11];r=n.createComment("");const i=Rt(t,e);er(n,rr(n,i),r,function(t,e){return Ot(t)?t.nextSibling(e):e.nextSibling}(n,i),!1)}e[t.index]=n=ls(i,e,r,t),ps(e,n)}return new Cc(n,t,e)}const kc={};class Oc extends La{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=ut(t);return new Pc(e,this.ngModule)}}function Dc(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Nc=new hn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qi});class Pc extends Na{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ar).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Dc(this.componentDef.inputs)}get outputs(){return Dc(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,kc,r);return s!==kc||i===kc?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(Va,Dt),o=r.get(za,null),a=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=n?function(t,e,n){if(Ot(t))return t.selectRootElement(e,n===q.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):$i(s.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?Et:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h=function(t,e){return{components:[],scheduler:t||qi,clean:bs,playerHandler:e||null,flags:0}}(),d=$r(0,null,null,1,0,null,null,null,null,null),f=Zr(null,d,h,l,null,null,s,a,o,r);let p,g;de(f);try{const t=function(t,e,n,i,r,s){const o=n[1];n[20]=t;const a=qr(o,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(Es(a,c,!0),null!==t&&(ke(r,t,c),null!==a.classes&&gr(r,t,a.classes),null!==a.styles&&pr(r,t,a.styles)));const u=i.createRenderer(t,e),l=Zr(n,Qr(e),null,e.onPush?64:16,n[20],a,i,u,s||null,null);return o.firstCreatePass&&(ze(Ue(a,n),o,e.type),ns(o,a),rs(a,n.length,1)),ps(n,l),n[20]=l}(u,this.componentDef,f,s,a);if(u)if(n)ke(a,u,["ng-version",Ga.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i<t.length;){let s=t[i];if("string"==typeof s)2===r?""!==s&&e.push(s,t[++i]):8===r&&n.push(s);else{if(!xr(r))break;r=s}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&ke(a,u,t),e&&e.length>0&&gr(a,u,e.join(" "))}if(g=Lt(d,20),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}p=function(t,e,n,i,r){const s=n[1],o=function(t,e,n){const i=Qt();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ss(t,i,e,Ur(t,e,1,null),n));const r=Ke(e,t,i.directiveStart,i);Ri(r,e);const s=Rt(i,e);return s&&Ri(s,e),r}(s,n,e);if(i.components.push(o),t[8]=o,r&&r.forEach(t=>t(o,e)),e.contentQueries){const t=Qt();e.contentQueries(1,o,t.directiveStart)}const a=Qt();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(be(a.index),ts(n[1],a,0,a.directiveStart,a.directiveEnd,e),es(e,o)),o}(t,this.componentDef,f,h,[Bs]),Vr(d,f,null)}finally{ve()}return new Rc(this.componentType,p,Fa(g,f),f,g)}}class Rc extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new uc(i),this.componentType=t}get injector(){return new en(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Lc=new Map;class Mc extends _c{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Oc(this);const n=lt(t),i=t[J]||null;i&&Sa(i),this._bootstrapComponents=Vi(n.bootstrap),this._r3Injector=Rs(t,e,[{provide:_c,useValue:this},{provide:La,useValue:this.componentFactoryResolver}],d(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=js.THROW_IF_NOT_FOUND,n=P.Default){return t===js||t===_c||t===As?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;
1!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Fc extends wc{constructor(t){super(),this.moduleType=t,null!==lt(t)&&function(t){const e=new Set;!function t(n){const i=lt(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${d(e)} vs ${d(e.name)}`)}(r,Lc.get(r),n),Lc.set(r,n));const s=Vi(i.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Mc(this.moduleType,t)}}function Zc(t,e,n){const i=ee()+t,r=Ht();return r[i]===Ir?to(r,i,n?e.call(n):e()):eo(r,i)}function qc(t,e,n,i){return zc(Ht(),ee(),t,e,n,i)}function Uc(t,e,n,i,r,s){return Hc(Ht(),ee(),t,e,n,i,r,s)}function Vc(t,e,n,i,r,s,o){return function(t,e,n,i,r,s,o,a,c){const u=e+n;return so(t,u,r,s,o,a)?to(t,u+4,c?i.call(c,r,s,o,a):i(r,s,o,a)):Bc(t,u+4)}(Ht(),ee(),t,e,n,i,r,s,o)}function jc(t,e,n,i,r,s,o,a){const c=ee()+t,u=Ht(),l=so(u,c,n,i,r,s);return no(u,c+4,o)||l?to(u,c+5,a?e.call(a,n,i,r,s,o):e(n,i,r,s,o)):eo(u,c+5)}function Bc(t,e){const n=t[e];return n===Ir?void 0:n}function zc(t,e,n,i,r,s){const o=e+n;return no(t,o,r)?to(t,o+1,s?i.call(s,r):i(r)):Bc(t,o+1)}function Hc(t,e,n,i,r,s,o,a){const c=e+n;return ro(t,c,r,s,o)?to(t,c+3,a?i.call(a,r,s,o):i(r,s,o)):Bc(t,c+3)}function Gc(t,e){const n=Gt();let i;const r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new y("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=yt(i.type)),o=L(ho);try{const t=Ze(!1),e=s();return Ze(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Ht(),r,e),e}finally{L(o)}}function Yc(t,e,n){const i=t+20,r=Ht(),s=Mt(r,i);return Kc(r,Wc(r,i)?zc(r,ee(),e,s.transform,n,s):s.transform(n))}function Qc(t,e,n,i){const r=t+20,s=Ht(),o=Mt(s,r);return Kc(s,Wc(s,r)?function(t,e,n,i,r,s,o){const a=e+n;return io(t,a,r,s)?to(t,a+2,o?i.call(o,r,s):i(r,s)):Bc(t,a+2)}(s,ee(),e,o.transform,n,i,o):o.transform(n,i))}function $c(t,e,n,i,r){const s=t+20,o=Ht(),a=Mt(o,s);return Kc(o,Wc(o,s)?Hc(o,ee(),e,a.transform,n,i,r,a):a.transform(n,i,r))}function Jc(t,e,n){const i=t+20,r=Ht(),s=Mt(r,i);return Kc(r,Wc(r,i)?function(t,e,n,i,r,s){let o=e+n,a=!1;for(let c=0;c<r.length;c++)no(t,o++,r[c])&&(a=!0);return a?to(t,o,i.apply(s,r)):Bc(t,o)}(r,ee(),e,s.transform,n,s):s.transform.apply(s,n))}function Wc(t,e){return t[1].data[e].pure}function Kc(t,e){return Ws.isWrapped(e)&&(e=Ws.unwrap(e),t[ne()]=Ir),e}function Xc(t){return e=>{setTimeout(t,void 0,e)}}const tu=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,s,o;let a=t,c=e||(()=>null),u=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),c=null===(s=e.error)||void 0===s?void 0:s.bind(e),u=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(c=Xc(c),a&&(a=Xc(a)),u&&(u=Xc(u)));const l=super.subscribe({next:a,error:c,complete:u});return t instanceof r.w&&t.add(l),l}};function eu(){return this._results[Js()]()}class nu{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Js(),n=nu.prototype;n[e]||(n[e]=eu)}get changes(){return this._changes||(this._changes=new tu)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,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,e){const n=this;n.dirty=!1;const i=pn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],s=e[i];if(n&&(r=n(r),s=n(s)),s!==r)return!1}return!0}(n._results,i,e))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class iu{constructor(t){this.queryList=t,this.matches=null}clone(){return new iu(this.queryList)}setDirty(){this.queryList.setDirty()}}class ru{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new ru(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==yu(t,e).matches&&this.queries[e].setDirty()}}class su{constructor(t,e,n=null){this.predicate=t,this.flags=e,this.read=n}}class ou{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 i=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(t,i);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return null!==e?new ou(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 au{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 au(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}
1matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const r=n[i];this.matchTNodeWithReadOption(t,e,cu(e,r)),this.matchTNodeWithReadOption(t,e,We(e,t,r,!1,!1))}else n===mc?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,We(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===qa||i===Sc||i===mc&&4&e.type)this.addMatch(e.index,-2);else{const n=We(e,t,i,!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 cu(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function uu(t,e,n,i){return-1===n?function(t,e){return 11&t.type?Fa(t,e):4&t.type?bc(t,e):null}(e,t):-2===n?function(t,e,n){return n===qa?Fa(e,t):n===mc?bc(e,t):n===Sc?Ic(e,t):void 0}(t,e,i):Ke(t,t[1],n,e)}function lu(t,e,n,i){const r=e[19].queries[i];if(null===r.matches){const i=t.data,s=n.matches,o=[];for(let t=0;t<s.length;t+=2){const r=s[t];o.push(r<0?null:uu(e,i[r],s[t+1],n.metadata.read))}r.matches=o}return r.matches}function hu(t,e,n,i){const r=t.queries.getByIndex(n),s=r.matches;if(null!==s){const o=lu(t,e,r,n);for(let t=0;t<s.length;t+=2){const n=s[t];if(n>0)i.push(o[t/2]);else{const r=s[t+1],o=e[-n];for(let t=10;t<o.length;t++){const e=o[t];e[17]===e[3]&&hu(e[1],e,r,i)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];hu(n[1],n,r,i)}}}}}return i}function du(t){const e=Ht(),n=Gt(),i=ce();ue(i+1);const r=yu(n,i);if(t.dirty&&Zt(e)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?hu(n,e,i,[]):lu(n,e,r,i);t.reset(s,Ua),t.notifyOnChanges()}return!0}return!1}function fu(t,e,n){const i=Gt();i.firstCreatePass&&(vu(i,new su(t,e,n),-1),2==(2&e)&&(i.staticViewQueries=!0)),mu(i,Ht(),e)}function pu(t,e,n,i){const r=Gt();if(r.firstCreatePass){const s=Qt();vu(r,new su(e,n,i),s.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(r,t),2==(2&n)&&(r.staticContentQueries=!0)}mu(r,Ht(),n)}function gu(){return t=Ht(),e=ce(),t[19].queries[e].queryList;var t,e}function mu(t,e,n){const i=new nu(4==(4&n));Jr(t,e,i,i.destroy),null===e[19]&&(e[19]=new ru),e[19].queries.push(new iu(i))}function vu(t,e,n){null===t.queries&&(t.queries=new ou),t.queries.track(new au(e,n))}function yu(t,e){return t.queries.getByIndex(e)}function bu(t,e){return bc(t,e)}const _u=ln("Input",t=>({bindingPropertyName:t})),wu=ln("Output",t=>({bindingPropertyName:t})),xu=ln("HostBinding",t=>({hostPropertyName:t})),Su=new hn("Application Initializer");let Tu=(()=>{class t{constructor(t){this.appInits=t,this.resolve=Ma,this.reject=Ma,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]();if(So(e))t.push(e);else if(Co(e)){const n=new Promise((t,n)=>{e.subscribe({complete:t,error:n})});t.push(n)}}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)(Dn(Su,8))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();const Cu=new hn("AppId"),Eu={provide:Cu,useFactory:function(){return`${Au()}${Au()}${Au()}`},deps:[]};function Au(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Iu=new hn("Platform Initializer"),ku=new hn("Platform ID"),Ou=new hn("appBootstrapListener");let Du=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();const Nu=new hn("LocaleId"),Pu=new hn("DefaultCurrencyCode");class Ru{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Lu=function(t){return new Fc(t)},Mu=Lu,Fu=function(t){return Promise.resolve(Lu(t))},Zu=function(t){const e=Lu(t),n=Vi(lt(t).declarations).reduce((t,e)=>{const n=ut(e);
1return n&&t.push(new Pc(n)),t},[]);return new Ru(e,n)},qu=Zu,Uu=function(t){return Promise.resolve(Zu(t))};let Vu=(()=>{class t{constructor(){this.compileModuleSync=Mu,this.compileModuleAsync=Fu,this.compileModuleAndAllComponentsSync=qu,this.compileModuleAndAllComponentsAsync=Uu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();const ju=new hn("compilerOptions"),Bu=(()=>Promise.resolve(0))();function zu(t){"undefined"==typeof Zone?Bu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Hu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new tu(!1),this.onMicrotaskEmpty=new tu(!1),this.onStable=new tu(!1),this.onError=new tu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=B.requestAnimationFrame,e=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(B,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Qu(t),t.isCheckStableRunning=!0,Yu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Qu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return $u(t),n.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),Ju(t)}},onInvoke:(n,i,r,s,o,a,c)=>{try{return $u(t),n.invoke(r,s,o,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),Ju(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Qu(t),Yu(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Hu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Hu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,t,Gu,Ma,Ma);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Gu={};function Yu(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 Qu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function $u(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ju(t){t._nesting--,Yu(t)}class Wu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new tu,this.onMicrotaskEmpty=new tu,this.onStable=new tu,this.onError=ne
vendor: 4,521 bytes, line 1
1w tu}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,i){return t.apply(e,n)}}let Ku=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Hu.assertNotInAngularZone(),zu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())zu(()=>{for(;0!==this._callbacks.length;){let 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 i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,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/plugins/task-tracking" 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)(Dn(Hu))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})(),Xu=(()=>{class t{constructor(){this._applications=new Map,nl.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 nl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();class tl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function el(t){nl=t}let nl=new tl,il=!0,rl=!1;function sl(){return rl=!0,il}function ol(){if(rl)throw new Error("Cannot enable prod mode after platform setup.");il=!1}let al;const cl=new hn("AllowMultipleToken");class ul{constructor(t,e){this.name=t,this.token=e}}function ll(t,e,n=[]){const i=`Platform: ${e}`,r=new hn(i);return(e=[])=>{let s=hl();if(!s||s.injector.get(cl,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:ks,useValue:"platform"});!function(t){if(al&&!al.destroyed&&!al.injector.get(cl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");al=t.get(dl);const e=t.get(Iu,null);e&&e.forEach(t=>t())}(js.create({providers:t,name:i}))}return function(t){const e=hl();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}(r)}}function hl(){return al&&!al.destroyed?al:null}let dl=(()=>{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 Wu:("zone.js"===t?void 0:t)||new Hu({enableLongStackTrace:sl(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:Hu,useValue:n}];return n.run(()=>
1{const r=js.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(r),o=s.injector.get(Zi,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{gl(this._modules,s),t.unsubscribe()})}),function(t,n,i){try{const e=i();return So(e)?e.catch(e=>{throw n.runOutsideAngular(()=>t.handleError(e)),e}):e}catch(e){throw n.runOutsideAngular(()=>t.handleError(e)),e}}(o,n,()=>{const t=s.injector.get(Tu);return t.runInitializers(),t.donePromise.then(()=>(Sa(s.injector.get(Nu,wa)||wa),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=fl({},e);return function(t,e,n){const i=new Fc(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(pl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${d(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)(Dn(js))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();function fl(t,e){return Array.isArray(e)?e.reduce(fl,t):Object.assign(Object.assign({},t),e)}let pl=(()=>{class t{constructor(t,e,n,i,r){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new s.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),h=new s.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Hu.assertNotInAngularZone(),zu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Hu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(l,h.pipe(t=>(0,c.x)()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,a.N);return i.source=e,i.subjectFactory=n,i}}(u)(t))))}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 Na?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=function(t){return t.isBoundToModule}(n)?void 0:this._injector.get(_c),r=n.create(js.NULL,[],e||n.selector,i),s=r.location.nativeElement,o=r.injector.get(Ku,null),a=o&&r.injector.get(Xu);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),gl(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}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;gl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ou,[]).concat(this._bootstrapListeners).forEac
1h(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Dn(Hu),Dn(js),Dn(Zi),Dn(La),Dn(Tu))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();function gl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ml{}class vl{}const yl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let bl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||yl}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(8255)(e).then(t=>t[i]).then(t=>_l(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>_l(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(Dn(Vu),Dn(vl,8))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();function _l(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const wl=function(t){return null},xl=ll(null,"core",[{provide:ku,useValue:"unknown"},{provide:dl,deps:[js]},{provide:Xu,deps:[]},{provide:Du,deps:[]}]),Sl=[{provide:pl,useClass:pl,deps:[Hu,js,Zi,La,Tu]},{provide:Nc,deps:[Hu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Tu,useClass:Tu,deps:[[new Zn,Su]]},{provide:Vu,useClass:Vu,deps:[]},Eu,{provide:rc,useFactory:function(){return fc},deps:[]},{provide:oc,useFactory:function(){return pc},deps:[]},{provide:Nu,useFactory:function(t){return Sa(t=t||"undefined"!=typeof $localize&&$localize.locale||wa),t},deps:[[new Fn(Nu),new Zn,new qn]]},{provide:Pu,useValue:"USD"}];let Tl=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(Dn(pl))},t.\u0275mod=rt({type:t}),t.\u0275inj=C({providers:Sl}),t})()},57:function(t,e,n){"use strict";n.d(e,{hO:function(){return E},xv:function(){return b},Dh:function(){return y},HU:function(){return f},GT:function(){return v},sI:function(){return T},on:function(){return w},ss:function(){return p},pX:function(){return m},yq:function(){return x}});var i=n(7771),r=n(3637),s=n(3342),o=n(9673),a=n(9746),c=n(3018),u=n(2329);function l(){}t=n.hmd(t);class h{constructor(t,e=i.N){this.zone=t,this.delegate=e}now(){return this.delegate.now()}schedule(t,e,n){const i=this.zone;return this.delegate.schedule(function(e){i.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",l,{},l,l)),e.pipe((0,s.b)({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 f{constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new h(Zone.current)),this.insideAngular=t.run(()=>new h(Zone.current,r.z))}}function p(t){return function(e){return(e=e.lift(new d(t.ngZone))).pipe((0,o.R)(t.outsideAngular),(0,a.QV)(t.insideAngular))}}const g=["ngOnDestroy"],m=(t,e,n,i={})=>new Proxy(t,{get:(r,s)=>n.runOutsideAngular(()=>{var r;if(t[s])return(null===(r=null==i?void 0:i.spy)||void 0===r?void 0:r.get)&&i.spy.get(s,t[s]),t[s];if(g.indexOf(s)>-1)return()=>{};const o=e.toPromise().then(t=>{const e=t&&t[s];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)=>o[e],apply:(t,e,n)=>o.then(t=>{var e;const r=t&&t(...n);return(null===(e=null==i?void 0:i.spy)||void 0===e?void 0:e.apply)&&i.spy.apply(s,n,r),r})})})}),v=(t,e)=>{e.forEach(e=>{Object.getOwnPropertyNames(e.prototype||e).forEach(n=>{Object.defineProperty(t.prototype,n,Object.getOwnPropertyDescriptor(e.prototype||e,n))})})},y=new c.OlP("angularfire2.app.options"),b=new c.OlP("angularfire2.app.nameOrConfig"),_=new c.GfV("6.1.5");function w(e,n,i){const r="object"==typeof i&&i||{};r.name=r.name||"string"==typeof i&&i||"[DEFAULT]";const s=u.Z.apps.filter(t=>t&&t.name===r.name)[0]||n.runOutsideAngular(()=>u.Z.initializeApp(e,r));try{JSON.stringify(e)!==JSON.stringify(s.options)&&S("error",`${s.name} Firebase App already initialized with different options${t.hot?", you may 
1need to reload as Firebase is not HMR aware.":"."}`)}catch(o){}return s}const x=()=>{S("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")},S=(t,...e)=>{(0,c.X6Q)()&&"undefined"!=typeof console&&console[t](...e)};function T(e,n,i,r,s){const[o,...a]=globalThis.\u0275AngularfireInstanceCache.get(e)||[];if(o){try{s.some((t,e)=>{const n=a[e];return t&&"object"==typeof t?JSON.stringify(t)!==JSON.stringify(n):t!==n})&&S("error",`${n} was already initialized on the ${i.name} Firebase App instance with different settings.${t.hot?" You may need to reload as Firebase is not HMR aware.":""}`)}catch(c){}return o}{const t=r();return globalThis.\u0275AngularfireInstanceCache.set(e,[t,...s]),t}}globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=new Map);const C={provide:class{},useFactory:w,deps:[y,c.R0b,[new c.FiY,b]]};let E=(()=>{class t{constructor(t){u.Z.registerVersion("angularfire",_.full,t.toString()),u.Z.registerVersion("angular",c.q4F.full)}static initializeApp(e,n){return{ngModule:t,providers:[{provide:y,useValue:e},{provide:b,useValue:n}]}}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(c.Lbi))},t.\u0275mod=c.oAB({type:t}),t.\u0275inj=c.cJS({providers:[C]}),t})()},4278:function(t,e,n){"use strict";n.d(e,{Z:function(){return V},w:function(){return U}});var i=function(t,e){return(i=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)},r=function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function s(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,s=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o}function a(t,e,n){if(n||2===arguments.length)for(var i,r=0,s=e.length;r<s;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}function c(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)||!u(n)||(t[n]=c(t[n],e[n]));return t}function u(t){return"__proto__"!==t}var l=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,i){n?e.reject(n):e.resolve(i),"function"==typeof t&&(e.promise.catch(function(){}),1===t.length?t(n):t(n,i))}},t}();function h(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(q){return!1}}var d=function(t){function e(n,i,r){var s=t.call(this,i)||this;return s.code=n,s.customData=r,s.name="FirebaseError",Object.setPrototypeOf(s,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(s,f.prototype.create),s}return function(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}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e}(Error),f=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];var i=e[0]||{},r=this.service+"/"+t,s=this.errors[t],o=s?p(s,i):"Error",a=this.serviceName+": "+o+" ("+r+").",c=new d(r,a,i);return c},t}();function p(t,e){return t.replace(g,function(t,n){var i=e[n];return null!=i?String(i):"<"+n+"?>"})}var g=/\{\$([^}]+)}/g;function m(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function v(t,e){var n=new y(t,e);return n.subscribe.bind(n)}!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()}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 i=0;i<16;i++)n[i]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(i=0;i<16;i++)n[i]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(i=16;i<80;i++)n[i]=4294967295&((h=n[i-3]^n[i-8]^n[i-14]^n[i-16])<<1|h>>>31);var r,s,o=this.chain_[0],a=this.chain_[1],c=this.chain_[2],u=this.chain_[3],l=this.chain_[4];for(i=0;i<80;i++){i<40?i<20?(r=u^a&(c^u),s=1518500249):(r=a^c^u,s=1859775393):i<60?(r=a&c|u&(a|c),s=2400959708):(r=a^c^u,s=3395469782);var h=(o<<5|o>>>27)+r+l+s+n[i]&4294967295;l=u,u=c,c=4294967295&(a<<30|a>>>2),a=o,o=h}this.chain_[0]=this.chain_[0]+o&4294967295,this.chain_[1]=this.chain_[1]+a&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+u&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,i=0,r=this.buf_,s=this.inbuf_;i<e;){if(0===s)for(;i<=n;)this.compress_(t,i),i+=this.blockSize;if("string"==typeof t){for(;i<e;)if(r[s]=t.charCodeAt(i),++i,++s===this.blockSize){this.compress_(r),s=0;break}}else for(;i<e;)if(r[s]=t[i],++i,++s===this.blockSize){this.compress_(r),s=0;break}}this.inbuf_=s,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 i=0;for(n=0;n<5;n++)for(var r=24;r>=0;r-=8)t[i]=this.chain_[n]>>r&255,++i;return t}}();var y=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 i,r=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");void 0===(i=function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=0,i=["next","error","complete"];n<i.length;n++){var r=i[n];if(r in t&&"function"==typeof t[r])return!0}return!1}(t)?t:{next:t,error:e,complete:n}).next&&(i.next=b),void 0===i.error&&(i.error=b),void 0===i.complete&&(i.complete=b);var s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{r.finalError?i.error(r.finalError):i.complete()}catch(t){}}),this.observers.push(i),s},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(i){"undefined"!=typeof console&&console.error&&console.error(i)}})},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 b(){}var _=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}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.prototype.setInstanceCreatedCallback=function(t){return this.onInstanceCreated=t,this},t}(),w="[DEFAULT]",x=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.onInitCallbacks=new Map}return t.prototype.get=function(t){var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new l;if(this.instancesDeferred.set(e,n),this.isInitialized(e)||this.shouldAutoInitialize())try{var i=this.getOrInitializeService({instanceIdentifier:e});i&&n.resolve(i)}catch(r){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e,n=this.normalizeInstanceIdentifier(null==t?void 0:t.identifier),i=null!==(e=null==t?void 0:t.optional)&&void 0!==e&&e;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(i)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(r){if(i)return null;throw r}},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,this.shouldAutoInitialize()){if(function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService({instanceIdentifier:w})}catch(h){}try{for(var i=s(this.instancesDeferred.entries()),r=i.next();!r.done;r=i.next()){var a=o(r.value,2),c=a[1],u=this.normalizeInstanceIdentifier(a[0]);try{var l=this.getOrInitializeService({instanceIdentifier:u});c.resolve(l)}catch(h){}}}catch(h){e={error:h}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}},t.prototype.clearInstance=function(t){void 0===t&&(t=w),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return function(t,e,n,i){return new(n||(n=Prom
1ise))(function(r,s){function o(t){try{c(i.next(t))}catch(e){s(e)}}function a(t){try{c(i.throw(t))}catch(e){s(e)}}function c(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,a)}c((i=i.apply(t,e||[])).next())})}(this,void 0,void 0,function(){var t;return function(t,e){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(a){s=[6,a],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}(this,function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(a(a([],o(t.filter(function(t){return"INTERNAL"in t}).map(function(t){return t.INTERNAL.delete()}))),o(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.isInitialized=function(t){return void 0===t&&(t=w),this.instances.has(t)},t.prototype.initialize=function(t){var e,n;void 0===t&&(t={});var i=t.options,r=void 0===i?{}:i,a=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(a))throw Error(this.name+"("+a+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var c=this.getOrInitializeService({instanceIdentifier:a,options:r});try{for(var u=s(this.instancesDeferred.entries()),l=u.next();!l.done;l=u.next()){var h=o(l.value,2),d=h[1];a===this.normalizeInstanceIdentifier(h[0])&&d.resolve(c)}}catch(f){e={error:f}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}return c},t.prototype.onInit=function(t,e){var n,i=this.normalizeInstanceIdentifier(e),r=null!==(n=this.onInitCallbacks.get(i))&&void 0!==n?n:new Set;r.add(t),this.onInitCallbacks.set(i,r);var s=this.instances.get(i);return s&&t(s,i),function(){r.delete(t)}},t.prototype.invokeOnInitCallbacks=function(t,e){var n,i,r=this.onInitCallbacks.get(e);if(r)try{for(var o=s(r),a=o.next();!a.done;a=o.next()){var c=a.value;try{c(t,e)}catch(u){}}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.getOrInitializeService=function(t){var e=t.instanceIdentifier,n=t.options,i=void 0===n?{}:n,r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:S(e),options:i}),this.instances.set(e,r),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(s){}return r||null},t.prototype.normalizeInstanceIdentifier=function(t){return void 0===t&&(t=w),this.component?this.component.multipleInstances?t:w:t},t.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},t}();function S(t){return t===w?void 0:t}var T,C,E=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 x(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}(),A=n(300),I=((T={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",T["bad-app-name"]="Illegal App name: '{$appName}",T["duplicate-app"]="Firebase App named '{$appName}' already exists",T["app-deleted"]="Firebase App named '{$appName}
1' already deleted",T["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",T["invalid-log-argument"]="First argument to `onLog` must be null or a function.",T),k=new f("app","Firebase",I),O="@firebase/app",D="[DEFAULT]",N=((C={})[O]="fire-core",C["@firebase/analytics"]="fire-analytics",C["@firebase/app-check"]="fire-app-check",C["@firebase/auth"]="fire-auth",C["@firebase/database"]="fire-rtdb",C["@firebase/functions"]="fire-fn",C["@firebase/installations"]="fire-iid",C["@firebase/messaging"]="fire-fcm",C["@firebase/performance"]="fire-perf",C["@firebase/remote-config"]="fire-rc",C["@firebase/storage"]="fire-gcs",C["@firebase/firestore"]="fire-fst",C["fire-js"]="fire-js",C["firebase-wrapper"]="fire-js-all",C),P=new A.Yd("@firebase/app"),R=function(){function t(t,e,n){var i=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=function(t){return c(void 0,t)}(t),this.container=new E(e.name),this._addComponent(new _("app",function(){return i},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(t){return i._addComponent(t)})}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){var n;void 0===e&&(e=D),this.checkDestroyed_();var i=this.container.getProvider(t);return!i.isInitialized()&&"EXPLICIT"===(null===(n=i.getComponent())||void 0===n?void 0:n.instantiationMode)&&i.initialize(),i.getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e=D),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.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw k.create("app-deleted",{appName:this.name_})},t}();R.prototype.name&&R.prototype.options||R.prototype.delete||console.log("dc");var L=function t(){var e=function(t){var e={},n=new Map,i={__esModule:!0,initializeApp:function(n,r){void 0===r&&(r={}),("object"!=typeof r||null===r)&&(r={name:r});var s=r;void 0===s.name&&(s.name=D);var o=s.name;if("string"!=typeof o||!o)throw k.create("bad-app-name",{appName:String(o)});if(m(e,o))throw k.create("duplicate-app",{appName:o});var a=new t(n,s,i);return e[o]=a,a},app:r,registerVersion:function(t,e,n){var i,r=null!==(i=N[t])&&void 0!==i?i:t;n&&(r+="-"+n);var o=r.match(/\s|\//),a=e.match(/\s|\//);if(o||a){var c=['Unable to register library "'+r+'" with version "'+e+'":'];return o&&c.push('library name "'+r+'" contains illegal characters (whitespace or "/")'),o&&a&&c.push("and"),a&&c.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void P.warn(c.join(" "))}s(new _(r+"-version",function(){return{library:r,version:e}},"VERSION"))},setLogLevel:A.Ub,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw k.create("invalid-log-argument");(0,A.Am)(t,e)},apps:null,SDK_VERSION:"8.8.1",INTERNAL:{registerComponent:s,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){return"serverAuth"===e?null:e}}};function r(t){if(!m(e,t=t||D))throw k.create("no-app",{appName:t});return e[t]}function s(s){var o=s.name;if(n.has(o))return P.debug("There were multiple attempts to register component "+o+"."),"PUBLIC"===s.type?i[o]:null;if(n.set(o,s),"PUBLIC"===s.type){var a=function(t){if(void 0===t&&(t=r()),"function"!=typeof t[o])throw k.create("invalid-app-argument",{appName:o});return t[o]()};void 0!==s.serviceProps&&c(a,s.serviceProps),i[o]=a,t.prototype[o]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._getService.bind(this,o).apply(this,s.multipleInstances?t:[])}}for(var u=0,l=Object.keys(e);u<l.length;u++)e[l[u]]._addComponent(s);return"PUBLIC"===s.type?i[o]:null}return i.default=i,Object.defineProperty(i,"apps",{get:function(){return Object.keys(e).map(function(t){return e[t]})}}),r.App=t,i}(R);return e.INTERNAL=r(r({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){c(e,t)},createSubscribe:v,ErrorFactory:f,deepExtend:c}),e}(),M=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(t){if(function(t){var e=t.getComponent();return"VERSION"===(null==e?void 0:e.type)}(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null}).filter(function(t){return t}).join(" ")},t}();if("object"==typeof self&&self.self===self&&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 F=self.firebase.SDK_VERSION;F&&F.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 Z=L.initializeApp;L.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return h()&&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      '),Z.apply(void 0,t)};var q,U=L;(q=U).INTERNAL.registerComponent(new _("platform-logger",function(t){return new M(t)},"PRIVATE")),q.registerVersion(O,"0.6.29",undefined),q.registerVersion("fire-js","");var V=U},6423:function(t,e,n){"use strict";var i=n(4278);(function(){var t,e="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},n=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,t];for(var e=0;e<t.length;++e){var n=t[e];if(n&&n.Math==Math)return n}return globalThis}(this);function r(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function s(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:r(t)}
vendor: 2,291 bytes, line 1
1}!function(t,i){if(i){var r=n;t=t.split(".");for(var s=0;s<t.length-1;s++){var o=t[s];o in r||(r[o]={}),r=r[o]}(i=i(s=r[t=t[t.length-1]]))!=s&&null!=i&&e(r,t,{configurable:!0,writable:!0,value:i})}}("Promise",function(t){function e(t){this.b=0,this.c=void 0,this.a=[];var e=this.f();try{t(e.resolve,e.reject)}catch(n){e.reject(n)}}function i(){this.a=null}function r(t){return t instanceof e?t:new e(function(e){e(t)})}if(t)return t;i.prototype.b=function(t){if(null==this.a){this.a=[];var e=this;this.c(function(){e.g()})}this.a.push(t)};var o=n.setTimeout;i.prototype.c=function(t){o(t,0)},i.prototype.g=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var n=t[e];t[e]=null;try{n()}catch(i){this.f(i)}}}this.a=null},i.prototype.f=function(t){this.c(function(){throw t})},e.prototype.f=function(){function t(t){return function(i){n||(n=!0,t.call(e,i))}}var e=this,n=!1;return{resolve:t(this.m),reject:t(this.g)}},e.prototype.m=function(t){if(t===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.s(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.v(t):this.h(t)}},e.prototype.v=function(t){var e=void 0;try{e=t.then}catch(n){return void this.g(n)}"function"==typeof e?this.u(e,t):this.h(t)},e.prototype.g=function(t){this.i(2,t)},e.prototype.h=function(t){this.i(1,t)},e.prototype.i=function(t,e){if(0!=this.b)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.b);this.b=t,this.c=e,this.l()},e.prototype.l=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)a.b(this.a[t]);this.a=null}};var a=new i;return e.prototype.s=function(t){var e=this.f();t.Ra(e.resolve,e.reject)},e.prototype.u=function(t,e){var n=this.f();try{t.call(e,n.resolve,n.reject)}catch(i){n.reject(i)}},e.prototype.then=function(t,n){function i(t,e){return"function"==typeof t?function(e){try{r(t(e))}catch(n){s(n)}}:e}var r,s,o=new e(function(t,e){r=t,s=e});return this.Ra(i(t,r),i(n,s)),o},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Ra=function(t,e){function n(){switch(i.b){case 1:t(i.c);break;case 2:e(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?a.b(n):this.a.push(n)}
1,e.resolve=r,e.reject=function(t){return new e(function(e,n){n(t)})},e.race=function(t){return new e(function(e,n){for(var i=s(t),o=i.next();!o.done;o=i.next())r(o.value).Ra(e,n)})},e.all=function(t){var n=s(t),i=n.next();return i.done?r([]):new e(function(t,e){function s(e){return function(n){o[e]=n,0==--a&&t(o)}}var o=[],a=0;do{o.push(void 0),a++,r(i.value).Ra(s(o.length-1),e),i=n.next()}while(!i.done)})},e});var o=o||{},a=this||self,c=/^[\w+/_-]+[=]{0,2}$/,u=null;function l(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&c.test(t)?t:""}function h(){}function d(t){var e=typeof t;return"object"!=e?e:t?Array.isArray(t)?"array":e:"null"}function f(t){var e=d(t);return"array"==e||"object"==e&&"number"==typeof t.length}function p(t){return"function"==d(t)}function g(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function m(t){return Object.prototype.hasOwnProperty.call(t,v)&&t[v]||(t[v]=++y)}var v="closure_uid_"+(1e9*Math.random()>>>0),y=0;function b(t,e,n){return t.call.apply(t.bind,arguments)}function _(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function w(t,e,n){return(w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?b:_).apply(null,arguments)}function x(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 S=Date.now;function T(t,e){function n(){}n.prototype=e.prototype,t.bb=e.prototype,t.prototype=new n,t.prototype.constructor=t}function C(t){return t}
1function E(t,e,n){this.code=k+t,this.message=e||O[t]||"",this.a=n||null}function A(t){var e=t&&t.code;return e?new E(e.substring(k.length),t.message,t.serverResponse):null}T(E,Error),E.prototype.w=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},E.prototype.toJSON=function(){return this.w()};var I,k="auth/",O={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
1ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
1d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},D={ld:{Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",$a:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Xa:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},sd:{Ua:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",$a:"https://securetoken.googleapis.com/v1/token",Xa:"https://identitytoolkit.googleapis.com/v2/",id:"p"},ud:{Ua:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",$a:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Xa:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},vd:{Ua:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",$a:"https://test-securetoken.sandbox.googleapis.com/v1/token",Xa:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function N(t){for(var e in D)if(D[e].id===t)return{firebaseEndpoint:(t=D[e]).Ua,secureTokenEndpoint:t.$a,identityPlatformEndpoint:t.Xa};return null}function P(t){if(!t)return!1;
1try{return!!t.$goog_Thenable}catch(e){return!1}}function R(t){if(Error.captureStackTrace)Error.captureStackTrace(this,R);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function L(t,e){for(var n="",i=(t=t.split("%s")).length-1,r=0;r<i;r++)n+=t[r]+(r<e.length?e[r]:"%s");R.call(this,n+t[i])}function M(t,e){throw new L("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function F(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function Z(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function q(){this.b=this.a=null}I=N("__EID__")?"__EID__":void 0,T(R,Error),R.prototype.name="CustomError",T(L,R),L.prototype.name="AssertionError",F.prototype.get=function(){if(0<this.b){this.b--;var t=this.a;this.a=t.next,t.next=null}else t=this.c();return t};var U=new F(function(){return new j},function(t){t.reset()});function V(){var t=ye,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function j(){this.next=this.b=this.a=null}q.prototype.add=function(t,e){var n=U.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},j.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},j.prototype.reset=function(){this.next=this.b=this.a=null};var B=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},z=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var i=t.length,r="string"==typeof t?t.split(""):t,s=0;s<i;s++)s in r&&e.call(n,r[s],s,t)},H=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=[],r=0,s="string"==typeof t?t.split(""):t,o=0;o<n;o++)if(o in s){var a=s[o];e.call(void 0,a,o,t)&&(i[r++]=a)}return i},G=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=Array(n),r="string"==typeof t?t.split(""):t,s=0;s<n;s++)s in r&&(i[s]=e.call(void 0,r[s],s,t));return i},Y=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var n=t.length,i="string"==typeof t?t.split(""):t,r=0;r<n;r++)if(r in i&&e.call(void 0,i[r],r,t))return!0;return!1};function Q(t,e){return 0<=B(t,e)}function $(t,e){var n;return(n=0<=(e=B(t,e)))&&Array.prototype.splice.call(t,e,1),n}function J(t,e){!function(t,e){for(var n="string"==typeof t?t.split(""):t,i=t.length-1;0<=i;--i)i in n&&e.call(void 0,n[i],i,t)}(t,function(n,i){e.call(void 0,n,i,t)&&Array.prototype.splice.call(t,i,1)})}function W(t){return Array.prototype.concat.apply([],arguments)}function K(t){var e=t.length;if(0<e){for(var n=Array(e),i=0;i<e;i++)n[i]=t[i];return n}return[]}var X,tt=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},et=/&/g,nt=/</g,it=/>/g,rt=/"/g,st=/'/g,ot=/\x00/g,at=/[\x00&<>"']/;function ct(t,e){return-1!=t.indexOf(e)}function ut(t,e){return t<e?-1:t>e?1:0}t:{var lt=a.navigator;if(lt){var ht=lt.userAgent;if(ht){X=ht;break t}}X=""}function dt(t){return ct(X,t)}function ft(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function pt(t){for(var e in t)return!1;return!0}function gt(t){var e,n={};for(e in t)n[e]=t[e];return n}var mt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function vt(t,e){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])t[n]=i[n];for(var s=0;s<mt.length;s++)n=mt[s],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function yt(t,e){t:{try{var n=t&&t.ownerDocument,i=n&&(n.defaultView||n.parentWindow);if((i=i||a).Element&&i.Location){var r=i;break t}}catch(o){}r=null}if(r&&void 0!==r[e]&&(!t||!(t instanceof r[e])&&(t instanceof r.Location||t instanceof r.Element))){if(g(t))try{var s=t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch(o){s="<object could not be stringified>"}else s=void 0===t?"undefined":null===t?"null":typeof t;M("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,s)}}function bt(t,e){this.a=t===St&&e||"",this.b=xt}function _t(t){return t instanceof bt&&t.constructor===bt&&t.b===xt?t.a:(M("expected object of type Const, got '"+t+"'"),"type_error:Const")}bt.prototype.ta=!0,bt.prototype.sa=function(){return this.a},bt.prototype.toString=function(){return"Const{"+this.a+"}"};var wt,xt={},St={};
1function Tt(){if(void 0===wt){var t=null,e=a.trustedTypes;if(e&&e.createPolicy){try{t=e.createPolicy("goog#html",{createHTML:C,createScript:C,createScriptURL:C})}catch(n){a.console&&a.console.error(n.message)}wt=t}else wt=t}return wt}function Ct(t,e){this.a=e===Ot?t:""}function Et(t){return t instanceof Ct&&t.constructor===Ct?t.a:(M("expected object of type TrustedResourceUrl, got '"+t+"' of type "+d(t)),"type_error:TrustedResourceUrl")}function At(t,e){var n=_t(t);if(!kt.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return function(t){var e=Tt();return new Ct(t=e?e.createScriptURL(t):t,Ot)}(t=n.replace(It,function(t,i){if(!Object.prototype.hasOwnProperty.call(e,i))throw Error('Found marker, "'+i+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return(t=e[i])instanceof bt?_t(t):encodeURIComponent(String(t))}))}Ct.prototype.ta=!0,Ct.prototype.sa=function(){return this.a.toString()},Ct.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var It=/%{(\w+)}/g,kt=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Ot={};function Dt(t,e){this.a=e===Zt?t:""}function Nt(t){return t instanceof Dt&&t.constructor===Dt?t.a:(M("expected object of type SafeUrl, got '"+t+"' of type "+d(t)),"type_error:SafeUrl")}Dt.prototype.ta=!0,Dt.prototype.sa=function(){return this.a.toString()},Dt.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Pt=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,Rt=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Lt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Mt(t){if(t instanceof Dt)return t;if(t="object"==typeof t&&t.ta?t.sa():String(t),Lt.test(t))t=new Dt(t,Zt);else{var e=(t=(t=String(t)).replace(/(%0A|%0D)/g,"")).match(Rt);t=e&&Pt.test(e[1])?new Dt(t,Zt):null}return t}function Ft(t){return t instanceof Dt?t:(t="object"==typeof t&&t.ta?t.sa():String(t),Lt.test(t)||(t="about:invalid#zClosurez"),new Dt(t,Zt))}var Zt={},qt=new Dt("about:invalid#zClosurez",Zt);function Ut(t,e,n){this.a=n===Vt?t:""}Ut.prototype.ta=!0,Ut.prototype.sa=function(){return this.a.toString()},Ut.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Vt={};function jt(t,e,n,i){return t=t instanceof Dt?t:Ft(t),e=e||a,n=n instanceof bt?_t(n):n||"",e.open(Nt(t),n,i,void 0)}function Bt(t,e){for(var n=t.split("%s"),i="",r=Array.prototype.slice.call(arguments,1);r.length&&1<n.length;)i+=n.shift()+r.shift();return i+n.join("%s")}function zt(t){return at.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(et,"&amp;")),-1!=t.indexOf("<")&&(t=t.replace(nt,"&lt;")),-1!=t.indexOf(">")&&(t=t.replace(it,"&gt;")),-1!=t.indexOf('"')&&(t=t.replace(rt,"&quot;")),-1!=t.indexOf("'")&&(t=t.replace(st,"&#39;")),-1!=t.indexOf("\0")&&(t=t.replace(ot,"&#0;"))),t}function Ht(t){return Ht[" "](t),t}Ht[" "]=h;var Gt,Yt,Qt=dt("Opera"),$t=dt("Trident")||dt("MSIE"),Jt=dt("Edge"),Wt=Jt||$t,Kt=dt("Gecko")&&!(ct(X.toLowerCase(),"webkit")&&!dt("Edge"))&&!(dt("Trident")||dt("MSIE"))&&!dt("Edge"),Xt=ct(X.toLowerCase(),"webkit")&&!dt("Edge");function te(){var t=a.document;return t?t.documentMode:void 0}t:{var ee="",ne=(Yt=X,Kt?/rv:([^\);]+)(\)|;)/.exec(Yt):Jt?/Edge\/([\d\.]+)/.exec(Yt):$t?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Yt):Xt?/WebKit\/(\S+)/.exec(Yt):Qt?/(?:Version)[ \/]?(\S+)/.exec(Yt):void 0);if(ne&&(ee=ne?ne[1]:""),$t){var ie=te();if(null!=ie&&ie>parseFloat(ee)){Gt=String(ie);break t}}Gt=ee}var re={};function se(t){return function(t,e){var n=re;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,function(){for(var e=0,n=tt(String(Gt)).split("."),i=tt(String(t)).split("."),r=Math.max(n.length,i.length),s=0;0==e&&s<r;s++){var o=n[s]||"",a=i[s]||"";do{if(o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==o[0].length&&0==a[0].length)break;e=ut(0==o[1].length?0:parseInt(o[1],10),0==a[1].length?0:parseInt(a[1],10))||ut(0==o[2].length,0==a[2].length)||ut(o[2],a[2]),o=o[3],a=a[3]}while(0==e)}return 0<=e})}var oe=a.document&&$t&&(te()||parseInt(Gt,10))||void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(Yt){}var ae=!$t||9<=Number(oe);function ce(t){var e=document;return"string"==typeof t?e.getElementById(t):t}function ue(t,e){ft(e,function(e,n){e&&"object"==typeof e&&e.ta&&(e=e.sa()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:de.hasOwnProperty(n)?t.setAttribute(de[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e})}var le,he,de={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",
1nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function fe(t,e,n){function i(n){n&&e.appendChild("string"==typeof n?t.createTextNode(n):n)}for(var r=2;r<n.length;r++){var s=n[r];if(!f(s)||g(s)&&0<s.nodeType)i(s);else{t:{if(s&&"number"==typeof s.length){if(g(s)){var o="function"==typeof s.item||"string"==typeof s.item;break t}if(p(s)){o="function"==typeof s.item;break t}}o=!1}z(o?K(s):s,i)}}}function pe(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function ge(t){a.setTimeout(function(){throw t},0)}function me(t,e){he||function(){if(a.Promise&&a.Promise.resolve){var t=a.Promise.resolve(void 0);he=function(){t.then(be)}}else he=function(){var t=be;!p(a.setImmediate)||a.Window&&a.Window.prototype&&!dt("Edge")&&a.Window.prototype.setImmediate==a.setImmediate?(le||(le=function(){var t=a.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!dt("Presto")&&(t=function(){var t=pe(document,"IFRAME");t.style.display="none",document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.close();var n="callImmediate"+Math.random(),i="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=w(function(t){("*"==i||t.origin==i)&&t.data==n&&this.port1.onmessage()},this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,i)}}}),void 0!==t&&!dt("Trident")&&!dt("MSIE")){var e=new t,n={},i=n;return e.port1.onmessage=function(){if(void 0!==n.next){var t=(n=n.next).Hb;n.Hb=null,t()}},function(t){i.next={Hb:t},i=i.next,e.port2.postMessage(0)}}return function(t){a.setTimeout(t,0)}}()),le(t)):a.setImmediate(t)}}(),ve||(he(),ve=!0),ye.add(t,e)}var ve=!1,ye=new q;function be(){for(var t;t=V();){try{t.a.call(t.b)}catch(e){ge(e)}Z(U,t)}ve=!1}function _e(t,e){if(this.a=we,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=h)try{var n=this;t.call(e,function(t){Re(n,xe,t)},function(t){if(!(t instanceof Ve))try{throw t instanceof Error?t:Error("Promise rejected.")}catch(e){}Re(n,Se,t)})}catch(i){Re(this,Se,i)}}var we=0,xe=2,Se=3;function Te(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Te.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Ce=new F(function(){return new Te},function(t){t.reset()});function Ee(t,e,n){var i=Ce.get();return i.g=t,i.b=e,i.f=n,i}function Ae(t){if(t instanceof _e)return t;var e=new _e(h);return Re(e,xe,t),e}
1function Ie(t){return new _e(function(e,n){n(t)})}function ke(t,e,n){Le(t,e,n,null)||me(x(e,t))}function Oe(t){return new _e(function(e){var n=t.length,i=[];if(n)for(var r=function(t,r,s){n--,i[t]=r?{Qb:!0,value:s}:{Qb:!1,reason:s},0==n&&e(i)},s=0;s<t.length;s++)ke(t[s],x(r,s,!0),x(r,s,!1));else e(i)})}function De(t,e){if(t.a==we)if(t.c){var n=t.c;if(n.b){for(var i=0,r=null,s=null,o=n.b;o&&(o.c||(i++,o.a==t&&(r=o),!(r&&1<i)));o=o.next)r||(s=o);r&&(n.a==we&&1==i?De(n,e):(s?((i=s).next==n.f&&(n.f=i),i.next=i.next.next):Fe(n),Ze(n,r,Se,e)))}t.c=null}else Re(t,Se,e)}function Ne(t,e){t.b||t.a!=xe&&t.a!=Se||Me(t),t.f?t.f.next=e:t.b=e,t.f=e}function Pe(t,e,n,i){var r=Ee(null,null,null);return r.a=new _e(function(t,s){r.g=e?function(n){try{var r=e.call(i,n);t(r)}catch(o){s(o)}}:t,r.b=n?function(e){try{var r=n.call(i,e);void 0===r&&e instanceof Ve?s(e):t(r)}catch(o){s(o)}}:s}),r.a.c=t,Ne(t,r),r.a}function Re(t,e,n){t.a==we&&(t===n&&(e=Se,n=new TypeError("Promise cannot resolve to itself")),t.a=1,Le(n,t.$c,t.ad,t)||(t.i=n,t.a=e,t.c=null,Me(t),e!=Se||n instanceof Ve||function(t,e){t.g=!0,me(function(){t.g&&Ue.call(null,e)})}(t,n)))}function Le(t,e,n,i){if(t instanceof _e)return Ne(t,Ee(e||h,n||null,i)),!0;if(P(t))return t.then(e,n,i),!0;if(g(t))try{var r=t.then;if(p(r))return function(t,e,n,i,r){function s(t){o||(o=!0,i.call(r,t))}var o=!1;try{e.call(t,function(t){o||(o=!0,n.call(r,t))},s)}catch(a){s(a)}}(t,r,e,n,i),!0}catch(s){return n.call(i,s),!0}return!1}function Me(t){t.h||(t.h=!0,me(t.gc,t))}function Fe(t){var e=null;return t.b&&(t.b=(e=t.b).next,e.next=null),t.b||(t.f=null),e}function Ze(t,e,n,i){if(n==Se&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,qe(e,n,i);else try{e.c?e.g.call(e.f):qe(e,n,i)}catch(r){Ue.call(null,r)}Z(Ce,e)}function qe(t,e,n){e==xe?t.g.call(t.f,n):t.b&&t.b.call(t.f,n)}_e.prototype.then=function(t,e,n){return Pe(this,p(t)?t:null,p(e)?e:null,n)},_e.prototype.$goog_Thenable=!0,(t=_e.prototype).oa=function(t,e){return(t=Ee(t,t,e)).c=!0,Ne(this,t),this},t.o=function(t,e){return Pe(this,null,t,e)},t.cancel=function(t){if(this.a==we){var e=new Ve(t);me(function(){De(this,e)},this)}},t.$c=function(t){this.a=we,Re(this,xe,t)},t.ad=function(t){this.a=we,Re(this,Se,t)},t.gc=function(){for(var t;t=Fe(this);)Ze(this,t,this.a,this.i);this.h=!1};var Ue=ge;function Ve(t){R.call(this,t)}function je(){0!=Be&&(ze[m(this)]=this),this.ya=this.ya,this.pa=this.pa}T(Ve,R),Ve.prototype.name="cancel";var Be=0,ze={};function He(t){if(!t.ya&&(t.ya=!0,t.Da(),0!=Be)){var e=m(t);if(0!=Be&&t.pa&&0<t.pa.length)throw Error(t+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete ze[e]}}je.prototype.ya=!1,je.prototype.Da=function(){if(this.pa)for(;this.pa.length;)this.pa.shift()()};var Ge=Object.freeze||function(t){return t},Ye=!$t||9<=Number(oe),Qe=$t&&!se("9"),$e=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{a.addEventListener("test",h,e),a.removeEventListener("test",h,e)}catch(n){}return t}();function Je(t,e){this.type=t,this.b=this.target=e,this.defaultPrevented=!1}function We(t,e){if(Je.call(this,t?t.type:""),this.relatedTarget=this.b=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.a=null,t){var n=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.b=e,e=t.relatedTarget){if(Kt){t:{try{Ht(e.nodeName);var r=!0;break t}catch(s){}r=!1}r||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.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:Ke[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}Je.prototype.preventDefault=function(){this.defaultPrevented=!0},T(We,Je);var Ke=Ge({2:"touch",3:"pen",4:"mouse"});We.prototype.preventDefault=function(){We.bb.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,Qe)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}},We.prototype.g=function(){return this.a};var Xe="closure_listenable_"+(1e6*Math.random()|0),tn=0;function en(t,e,n,i,r){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.Wa=r,this.key=++tn,this.wa=this.Qa=!1}function nn(t){t.wa=!0,t.listener=null,t.proxy=null,t.src=null,t.Wa=null}function rn(t){this.src=t,this.a={},this.b=0}function sn(t,e){var n=e.type;n in t.a&&$(t.a[n],e)&&(nn(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function on(t,e,n,i){for(var r=0;r<t.length;++r){var s=t[r];
1if(!s.wa&&s.listener==e&&s.capture==!!n&&s.Wa==i)return r}return-1}rn.prototype.add=function(t,e,n,i,r){var s=t.toString();(t=this.a[s])||(t=this.a[s]=[],this.b++);var o=on(t,e,i,r);return-1<o?(e=t[o],n||(e.Qa=!1)):((e=new en(e,this.src,s,!!i,r)).Qa=n,t.push(e)),e};var an="closure_lm_"+(1e6*Math.random()|0),cn={};function un(t,e,n,i,r){if(i&&i.once)hn(t,e,n,i,r);else if(Array.isArray(e))for(var s=0;s<e.length;s++)un(t,e[s],n,i,r);else n=_n(n),t&&t[Xe]?xn(t,e,n,g(i)?!!i.capture:!!i,r):ln(t,e,n,!1,i,r)}function ln(t,e,n,i,r,s){if(!e)throw Error("Invalid event type");var o=g(r)?!!r.capture:!!r,a=yn(t);if(a||(t[an]=a=new rn(t)),!(n=a.add(e,n,i,o,s)).proxy)if(i=function(){var t=vn,e=Ye?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=i,i.src=t,i.listener=n,t.addEventListener)$e||(r=o),void 0===r&&(r=!1),t.addEventListener(e.toString(),i,r);else if(t.attachEvent)t.attachEvent(pn(e.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}}function hn(t,e,n,i,r){if(Array.isArray(e))for(var s=0;s<e.length;s++)hn(t,e[s],n,i,r);else n=_n(n),t&&t[Xe]?Sn(t,e,n,g(i)?!!i.capture:!!i,r):ln(t,e,n,!0,i,r)}function dn(t,e,n,i,r){if(Array.isArray(e))for(var s=0;s<e.length;s++)dn(t,e[s],n,i,r);else i=g(i)?!!i.capture:!!i,n=_n(n),t&&t[Xe]?(t=t.v,(e=String(e).toString())in t.a&&-1<(n=on(s=t.a[e],n,i,r))&&(nn(s[n]),Array.prototype.splice.call(s,n,1),0==s.length&&(delete t.a[e],t.b--))):t&&(t=yn(t))&&(e=t.a[e.toString()],t=-1,e&&(t=on(e,n,i,r)),(n=-1<t?e[t]:null)&&fn(n))}function fn(t){if("number"!=typeof t&&t&&!t.wa){var e=t.src;if(e&&e[Xe])sn(e.v,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(pn(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=yn(e))?(sn(n,t),0==n.b&&(n.src=null,e[an]=null)):nn(t)}}}function pn(t){return t in cn?cn[t]:cn[t]="on"+t}function gn(t,e,n,i){var r=!0;if((t=yn(t))&&(e=t.a[e.toString()]))for(e=e.concat(),t=0;t<e.length;t++){var s=e[t];s&&s.capture==n&&!s.wa&&(s=mn(s,i),r=r&&!1!==s)}return r}function mn(t,e){var n=t.listener,i=t.Wa||t.src;return t.Qa&&fn(t),n.call(i,e)}function vn(t,e){if(t.wa)return!0;if(!Ye){if(!e)t:{e=["window","event"];for(var n=a,i=0;i<e.length;i++)if(null==(n=n[e[i]])){e=null;break t}e=n}if(e=new We(i=e,this),n=!0,!(0>i.keyCode||null!=i.returnValue)){t:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(o){r=!0}(r||null==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=e.b;r;r=r.parentNode)i.push(r);for(t=t.type,r=i.length-1;0<=r;r--){e.b=i[r];var s=gn(i[r],t,!0,e);n=n&&s}for(r=0;r<i.length;r++)e.b=i[r],s=gn(i[r],t,!1,e),n=n&&s}return n}return mn(t,new We(e,this))}function yn(t){return(t=t[an])instanceof rn?t:null}var bn="__closure_events_fn_"+(1e9*Math.random()>>>0);function _n(t){return p(t)?t:(t[bn]||(t[bn]=function(e){return t.handleEvent(e)}),t[bn])}function wn(){je.call(this),this.v=new rn(this),this.bc=this,this.hb=null}function xn(t,e,n,i,r){t.v.add(String(e),n,!1,i,r)}function Sn(t,e,n,i,r){t.v.add(String(e),n,!0,i,r)}function Tn(t,e,n,i){if(!(e=t.v.a[String(e)]))return!0;e=e.concat();for(var r=!0,s=0;s<e.length;++s){var o=e[s];if(o&&!o.wa&&o.capture==n){var a=o.listener,c=o.Wa||o.src;o.Qa&&sn(t.v,o),r=!1!==a.call(c,i)&&r}}return r&&!i.defaultPrevented}function Cn(t,e,n){if(p(t))n&&(t=w(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=w(t.handleEvent,t)}return 2147483647<Number(e)?-1:a.setTimeout(t,e||0)}function En(t){var e=null;return new _e(function(n,i){-1==(e=Cn(function(){n(void 0)},t))&&i(Error("Failed to schedule timer."))}).o(function(t){throw a.clearTimeout(e),t})}function An(t){if(t.X&&"function"==typeof t.X)return t.X();if("string"==typeof t)return t.split("");if(f(t)){for(var e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e}for(i in e=[],n=0,t)e[n++]=t[i];return e}function In(t){if(t.Y&&"function"==typeof t.Y)return t.Y();if(!t.X||"function"!=typeof t.X){if(f(t)||"string"==typeof t){var e=[];t=t.length;for(var n=0;n<t;n++)e.push(n);return e}for(var i in e=[],n=0,t)e[n++]=i;return e}}function kn(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 i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(t)if(t instanceof kn)for(n=t.Y(),i=0;i<n.length;i++)this.set(n[i],t.get(n[i]));else for(i in t)this.set(i,t[i])}function On(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var i=t.a[e];Dn(t.b,i)&&(t.a[n++]=i),e++}t.a.length=n}if(t.c!=t.a.length){var r={};for(n=e=0;e<t.a.length;)Dn(r,i=t.a[e])||(t.a[n++]=i,r[i]=1),e++;t.a.length=n}}function Dn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}T(wn,je),wn.prototype[Xe]=!0,wn.prototype.addEventListener=function(t,e,n,i){un(this,t,e,n,i)},wn.prototype.removeEventListener=function(t,e,n,i){dn(this,t,e,n,i)},wn.prototype.dispatchEvent=function(t){var e,n=this.hb;if(n)for(e=[];n;n=n.hb)e.push(n);n=this.bc;var i=t.type||t;if("string"==typeof t)t=new Je(t,n);else if(t instanceof Je)t.target=t.target||n;else{var r=t;vt(t=new Je(i,n),r)}if(r=!0,e)for(var s=e.length-1;0<=s;s--){var o=t.b=e[s];r=Tn(o,i,!0,t)&&r}if(r=Tn(o=t.b=n,i,!0,t)&&r,r=Tn(o,i,!1,t)&&r,e)for(s=0;s<e.length;s++)r=Tn(o=t.b=e[s],i,!1,t)&&r;return r},wn.prototype.Da=function(){if(wn.bb.Da.call(this),this.v){var t,e=this.v;for(t in e.a){for(var n=e.a[t],i=0;i<n.length;i++)nn(n[i]);delete e.a[t],e.b--}}this.hb=null},(t=kn.prototype).X=function(){On(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},t.Y=function(){return On(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(t,e){return Dn(this.b,t)?this.b[t]:e},t.set=function(t,e){Dn(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},t.forEach=function(t,e){for(var n=this.Y(),i=0;i<n.length;i++){var r=n[i],s=this.get(r);t.call(e,s,r,this)}};var Nn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Pn(t,e){var n;this.a=this.l=this.c="",this.g=null,this.h=this.f="",this.i=!1,t instanceof Pn?(this.i=void 0!==e?e:t.i,Rn(this,t.c),this.l=t.l,this.a=t.a,Ln(this,t.g),this.f=t.f,Mn(this,ei(t.b)),this.h=t.h):t&&(n=String(t).match(Nn))?(this.i=!!e,Rn(this,n[1]||"",!0),this.l=Vn(n[2]||""),this.a=Vn(n[3]||"",!0),Ln(this,n[4]),this.f=Vn(n[5]||"",!0),Mn(this,n[6]||"",!0),this.h=Vn(n[7]||"")):(this.i=!!e,this.b=new $n(null,this.i))}function Rn(t,e,n){t.c=n?Vn(e,!0):e,t.c&&(t.c=t.c.replace(/:$/,""))}function Ln(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.g=e}else t.g=null}function Mn(t,e,n){e instanceof $n?(t.b=e,function(t,e){e&&!t.f&&(Jn(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(Kn(this,e),ti(this,n,t))},t)),t.f=e}(t.b,t.i)):(n||(e=jn(e,Yn)),t.b=new $n(e,t.i))}function Fn(t,e,n){t.b.set(e,n)}function Zn(t,e){return t.b.get(e)}function qn(t){return t instanceof Pn?new Pn(t):new Pn(t,void 0)}
1function Un(t,e,n,i){var r=new Pn(null,void 0);return t&&Rn(r,t),e&&(r.a=e),n&&Ln(r,n),i&&(r.f=i),r}function Vn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function jn(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Bn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Bn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Pn.prototype.toString=function(){var t=[],e=this.c;e&&t.push(jn(e,zn,!0),":");var n=this.a;return(n||"file"==e)&&(t.push("//"),(e=this.l)&&t.push(jn(e,zn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.g)&&t.push(":",String(n))),(n=this.f)&&(this.a&&"/"!=n.charAt(0)&&t.push("/"),t.push(jn(n,"/"==n.charAt(0)?Gn:Hn,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.h)&&t.push("#",jn(n,Qn)),t.join("")},Pn.prototype.resolve=function(t){var e=new Pn(this),n=!!t.c;n?Rn(e,t.c):n=!!t.l,n?e.l=t.l:n=!!t.a,n?e.a=t.a:n=null!=t.g;var i=t.f;if(n)Ln(e,t.g);else if(n=!!t.f){if("/"!=i.charAt(0))if(this.a&&!this.f)i="/"+i;else{var r=e.f.lastIndexOf("/");-1!=r&&(i=e.f.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(ct(r,"./")||ct(r,"/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var s=[],o=0;o<r.length;){var a=r[o++];"."==a?i&&o==r.length&&s.push(""):".."==a?((1<s.length||1==s.length&&""!=s[0])&&s.pop(),i&&o==r.length&&s.push("")):(s.push(a),i=!0)}i=s.join("/")}else i=r}return n?e.f=i:n=""!==t.b.toString(),n?Mn(e,ei(t.b)):n=!!t.h,n&&(e.h=t.h),e};var zn=/[#\/\?@]/g,Hn=/[#\?:]/g,Gn=/[#\?]/g,Yn=/[#\?@]/g,Qn=/#/g;function $n(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function Jn(t){t.a||(t.a=new kn,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var s=t[n].substring(0,i);r=t[n].substring(i+1)}else s=t[n];e(s,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(t.c,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function Wn(t){var e=In(t);if(void 0===e)throw Error("Keys are undefined");var n=new $n(null,void 0);t=An(t);for(var i=0;i<e.length;i++){var r=e[i],s=t[i];Array.isArray(s)?ti(n,r,s):n.add(r,s)}return n}function Kn(t,e){Jn(t),e=ni(t,e),Dn(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,Dn((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&On(t)))}function Xn(t,e){return Jn(t),e=ni(t,e),Dn(t.a.b,e)}function ti(t,e,n){Kn(t,e),0<n.length&&(t.c=null,t.a.set(ni(t,e),K(n)),t.b+=n.length)}function ei(t){var e=new $n;return e.c=t.c,t.a&&(e.a=new kn(t.a),e.b=t.b),e}function ni(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function ii(t){var e=[];return si(new ri,t,e),e.join("")}function ri(){}function si(t,e,n){if(null==e)n.push("null");else{if("object"==typeof e){if(Array.isArray(e)){var i=e;e=i.length,n.push("[");for(var r="",s=0;s<e;s++)n.push(r),si(t,i[s],n),r=",";return void n.push("]")}if(!(e instanceof String||e instanceof Number||e instanceof Boolean)){for(i in n.push("{"),r="",e)Object.prototype.hasOwnProperty.call(e,i)&&"function"!=typeof(s=e[i])&&(n.push(r),ci(i,n),n.push(":"),si(t,s,n),r=",");return void n.push("}")}e=e.valueOf()}switch(typeof e){case"string":ci(e,n);break;case"number":n.push(isFinite(e)&&!isNaN(e)?String(e):"null");break;case"boolean":n.push(String(e));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof e)}}}(t=$n.prototype).add=function(t,e){Jn(this),this.c=null,t=ni(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},t.clear=function(){this.a=this.c=null,this.b=0},t.forEach=function(t,e){Jn(this),this.a.forEach(function(n,i){z(n,function(n){t.call(e,n,i,this)},this)},this)},t.Y=function(){Jn(this);for(var t=this.a.X(),e=this.a.Y(),n=[],i=0;i<e.length;i++)for(var r=t[i],s=0;s<r.length;s++)n.push(e[i]);return n},t.X=function(t){Jn(this);var e=[];if("string"==typeof t)Xn(this,t)&&(e=W(e,this.a.get(ni(this,t))));else{t=this.a.X();for(var n=0;n<t.length;n++)e=W(e,t[n])}return e},t.set=function(t,e){return Jn(this),this.c=null,Xn(this,t=ni(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},t.get=function(t,e){return t&&0<(t=this.X(t)).length?String(t[0]):e},t.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.Y(),n=0;n<e.length;n++){var i=e[n],r=encodeURIComponent(String(i));i=this.X(i);for(var s=0;s<i.length;s++){var o=r;""!==i[s]&&(o+="="+encodeURIComponent(String(i[s]))),t.push(o)}}return this.c=t.join("&")};var oi={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ai=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ci(t,e){e.push('"',t.replace(ai,function(t){var e=oi[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),oi[t]=e),e}),'"')}function ui(){var t=Ii();return $t&&!!oe&&11==oe||/Edge\/\d+/.test(t)}function li(){return a.window&&a.window.location.href||self&&self.location&&self.location.href||""}function hi(t,e){e=e||a.window;var n="about:blank";t&&(n=Nt(Mt(t)||qt)),e.location.href=n}function di(t,e){var n,i=[];for(n in t)n in e?typeof t[n]!=typeof e[n]?i.push(n):"object"==typeof t[n]&&null!=t[n]&&null!=e[n]?0<di(t[n],e[n]).length&&i.push(n):t[n]!==e[n]&&i.push(n):i.push(n);for(n in e)n in t||i.push(n);return i}function fi(t){return!!((t=(t||Ii()).toLowerCase()).match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function pi(t){t=t||a.window;try{t.close()}catch(e){}}function gi(t,e,n){var i=Math.floor(1e9*Math.random()).toString();e=e||500,n=n||600;
1var r=(window.screen.availHeight-n)/2,s=(window.screen.availWidth-e)/2;for(o in e={width:e,height:n,top:0<r?r:0,left:0<s?s:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=Ii().toLowerCase(),i&&(e.target=i,ct(n,"crios/")&&(e.target="_blank")),Ci(Ii())==Ti&&(t=t||"http://localhost",e.scrollbars=!0),n=t||"",(t=e)||(t={}),i=window,e=n instanceof Dt?n:Mt(void 0!==n.href?n.href:String(n))||qt,n=t.target||n.target,r=[],t)switch(o){case"width":case"height":case"top":case"left":r.push(o+"="+t[o]);break;case"target":case"noopener":case"noreferrer":break;default:r.push(o+"="+(t[o]?1:0))}var o=r.join(",");if((dt("iPhone")&&!dt("iPod")&&!dt("iPad")||dt("iPad")||dt("iPod"))&&i.navigator&&i.navigator.standalone&&n&&"_self"!=n?(yt(o=pe(document,"A"),"HTMLAnchorElement"),e=e instanceof Dt?e:Ft(e),o.href=Nt(e),o.setAttribute("target",n),t.noreferrer&&o.setAttribute("rel","noreferrer"),(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,i,1),o.dispatchEvent(t),o={}):t.noreferrer?(o=jt("",i,n,o),t=Nt(e),o&&(Wt&&ct(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),o.opener=null,t='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+zt(t)+'">',t=new Ut(t=(i=Tt())?i.createHTML(t):t,null,Vt),i=o.document)&&(i.write(function(t){return t instanceof Ut&&t.constructor===Ut?t.a:(M("expected object of type SafeHtml, got '"+t+"' of type "+d(t)),"type_error:SafeHtml")}(t)),i.close())):(o=jt(e,i,n,o))&&t.noopener&&(o.opener=null),o)try{o.focus()}catch(a){}return o}var mi=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,vi=/^[^@]+@[^@]+$/;function yi(){var t=null;return new _e(function(e){"complete"==a.document.readyState?e():(t=function(){e()},hn(window,"load",t))}).o(function(e){throw dn(window,"load",t),e})}function bi(t){return t=t||Ii(),!("file:"!==Pi()&&"ionic:"!==Pi()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function _i(){var t=a.window;try{return!(!t||t==t.top)}catch(e){return!1}}function wi(){return void 0!==a.WorkerGlobalScope&&"function"==typeof a.importScripts}function xi(){return i.Z.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":i.Z.INTERNAL.hasOwnProperty("node")?"Node":wi()?"Worker":"Browser"}function Si(){var t=xi();return"ReactNative"===t||"Node"===t}var Ti="Firefox";function Ci(t){var e=t.toLowerCase();return ct(e,"opera/")||ct(e,"opr/")||ct(e,"opios/")?"Opera":ct(e,"iemobile")?"IEMobile":ct(e,"msie")||ct(e,"trident/")?"IE":ct(e,"edge/")?"Edge":ct(e,"firefox/")?Ti:ct(e,"silk/")?"Silk":ct(e,"blackberry")?"Blackberry":ct(e,"webos")?"Webos":!ct(e,"safari/")||ct(e,"chrome/")||ct(e,"crios/")||ct(e,"android")?!ct(e,"chrome/")&&!ct(e,"crios/")||ct(e,"edge/")?ct(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":"Chrome":"Safari"}var Ei={md:"FirebaseCore-web",od:"FirebaseUI-web"};function Ai(t,e){e=e||[];var n,i=[],r={};for(n in Ei)r[Ei[n]]=!0;for(n=0;n<e.length;n++)void 0!==r[e[n]]&&(delete r[e[n]],i.push(e[n]));return i.sort(),(e=i).length||(e=["FirebaseCore-web"]),"Browser"===(i=xi())?i=Ci(r=Ii()):"Worker"===i&&(i=Ci(r=Ii())+"-"+i),i+"/JsCore/"+t+"/"+e.join(",")}function Ii(){return a.navigator&&a.navigator.userAgent||""}function ki(t,e){t=t.split("."),e=e||a;for(var n=0;n<t.length&&"object"==typeof e&&null!=e;n++)e=e[t[n]];return n!=t.length&&(e=void 0),e}function Oi(){try{var t=a.localStorage,e=Zi();if(t)return t.setItem(e,"1"),t.removeItem(e),!ui()||!!a.indexedDB}catch(n){return wi()&&!!a.indexedDB}return!1}function Di(){return(Ni()||"chrome-extension:"===Pi()||bi())&&!Si()&&Oi()&&!wi()}function Ni(){return"http:"===Pi()||"https:"===Pi()}function Pi(){return a.location&&a.location.protocol||null}function Ri(t){return!(fi(t=t||Ii())||Ci(t)==Ti)}function Li(t){return void 0===t?null:ii(t)}function Mi(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&null!=t[e]&&(n[e]=t[e]);return n}function Fi(t){if(null!==t)return JSON.parse(t)}function Zi(t){return t||Math.floor(1e9*Math.random()).toString()}function qi(t){return!("Safari"==Ci(t=t||Ii())||t.toLowerCase().match(/iphone|ipad|ipod/))}function Ui(){var t=a.___jsl;if(t&&t.H)for(var e in t.H)if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=t.H[e].L.concat(),t.CP)for(var n=0;n<t.CP.length;n++)t.CP[n]=null}function Vi(t,e){if(t>
1e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=Ii(),e=xi(),this.b=fi(t)||"ReactNative"===e}function ji(){var t=a.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function Bi(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(n){}return null}function zi(){return!(!ki("fireauth.oauthhelper",a)&&!ki("fireauth.iframe",a))}Vi.prototype.get=function(){var t=a.navigator;return!t||"boolean"!=typeof t.onLine||!Ni()&&"chrome-extension:"!==Pi()&&void 0===t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Hi,Gi={};function Yi(t){Gi[t]||(Gi[t]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t))}try{var Qi={};Object.defineProperty(Qi,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Qi,"abcd",{configurable:!0,enumerable:!0,value:2}),Hi=2==Qi.abcd}catch(Yt){Hi=!1}function $i(t,e,n){Hi?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function Ji(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&$i(t,n,e[n])}function Wi(t){var e={};return Ji(e,t),e}function Ki(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)$i(e,n,Ki(t[n]));return e}function Xi(t){var e=t&&(t[rr]?"phone":null);if(!(e&&t&&t[ir]))throw new E("internal-error","Internal assert: invalid MultiFactorInfo object");$i(this,"uid",t[ir]),$i(this,"displayName",t[er]||null);var n=null;t[nr]&&(n=new Date(t[nr]).toUTCString()),$i(this,"enrollmentTime",n),$i(this,"factorId",e)}function tr(t){try{var e=new sr(t)}catch(n){e=null}return e}Xi.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var er="displayName",nr="enrolledAt",ir="mfaEnrollmentId",rr="phoneInfo";function sr(t){Xi.call(this,t),$i(this,"phoneNumber",t[rr])}function or(t){var e={},n=t[lr],i=t[dr],r=t[fr];if(t=tr(t[hr]),!r||r!=cr&&r!=ur&&!n||r==ur&&!i||r==ar&&!t)throw Error("Invalid checkActionCode response!");r==ur?(e[gr]=n||null,e[vr]=n||null,e[pr]=i):(e[gr]=i||null,e[vr]=i||null,e[pr]=n||null),e[mr]=t||null,$i(this,br,r),$i(this,yr,Ki(e))}T(sr,Xi),sr.prototype.w=function(){var t=sr.bb.w.call(this);return t.phoneNumber=this.phoneNumber,t};var ar="REVERT_SECOND_FACTOR_ADDITION",cr="EMAIL_SIGNIN",ur="VERIFY_AND_CHANGE_EMAIL",lr="email",hr="mfaInfo",dr="newEmail",fr="requestType",pr="email",gr="fromEmail",mr="multiFactorInfo",vr="previousEmail",yr="data",br="operation";function _r(t){var e=Zn(t=qn(t),wr)||null,n=Zn(t,xr)||null,i=Zn(t,Cr)||null;if(i=i&&Ar[i]||null,!e||!n||!i)throw new E("argument-error",wr+", "+xr+"and "+Cr+" are required in a valid action code URL.");Ji(this,{apiKey:e,operation:i,code:n,continueUrl:Zn(t,Sr)||null,languageCode:Zn(t,Tr)||null,tenantId:Zn(t,Er)||null})}var wr="apiKey",xr="oobCode",Sr="continueUrl",Tr="languageCode",Cr="mode",Er="tenantId",Ar={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:ar,signIn:cr,verifyAndChangeEmail:ur,verifyEmail:"VERIFY_EMAIL"};function Ir(t){try{return new _r(t)}catch(e){return null}}function kr(t){var e=t[Rr];if(void 0===e)throw new E("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new E("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[Or];if(n&&"object"==typeof n){e=n[Fr];var i=n[Lr];if(n=n[Mr],"string"==typeof e&&e.length){if(this.a=e,void 0!==i&&"boolean"!=typeof i)throw new E("argument-error",Lr+" property must be a boolean when specified.");if(this.g=!!i,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new E("argument-error",Mr+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==e)throw new E("argument-error",Fr+" property must be a non empty string when specified.");if(void 0!==i||void 0!==n)throw new E("missing-android-pkg-name")}}else if(void 0!==n)throw new E("argument-error",Or+" property must be a non null object when specified.");if(this.f=null,(e=t[Pr])&&"object"==typeof e){if("string"==typeof(e=e[Zr])&&e.length)this.f=e;else if(void 0!==e)throw new E("argument-error",Zr+" property must be a non empty string when specified.")}else if(void 0!==e)throw new E("argument-error",Pr+" property must be a non null object when specified.");if(void 0!==(e=t[Nr])&&"boolean"!=typeof e)throw new E("argument-error",Nr+" property must be a boolean when specified.");if(this.c=!!e,void 0!==(t=t[Dr])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new E("argument-error",Dr+" property must be a non empty string when specified.");this.i=t||null}var Or="android",Dr="dynamicLinkDomain",Nr="handleCodeInApp",Pr="iOS",Rr="url",Lr="installApp",Mr="minimumVersion",Fr="packageName",Zr="bundleId";function qr(t){var e={};for(var n in e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i,e)null===e[n]&&delete e[n];return e}var Ur=null;function Vr(t){var e=Br(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.h=t,this.a=e.exp,this.i=e.sub,t=Date.now()/1e3,this.g=e.iat||(t>this.a?this.a:t),this.b=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.c=!!e.is_anonymous||"anonymous"==this.b}function jr(t){try{return new Vr(t)}catch(e){return null}}function Br(t){if(!t||3!=(t=t.split(".")).length)return null;for(var e=(4-(t=t[1]).length%4)%4,n=0;n<e;n++)t+=".";try{var i=function(t){var e=[];return function(t,e){function n(e){for(;i<t.length;){var n=t.charAt(i++),r=Ur[n];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}!function(){if(!Ur){Ur={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var i=t.concat(e[n].split("")),r=0;r<i.length;r++){var s=i[r];void 0===Ur[s]&&(Ur[s]=r)}}}();for(var i=0;;){var r=n(-1),s=n(0),o=n(64),a=n(64);if(64===a&&-1===r)break;e(r<<2|s>>4),64!=o&&(e(s<<4&240|o>>2),64!=a&&e(o<<6&192|a))}}(t,function(t){e.push(t)}),e}(t);for(t=[],n=e=0;e<i.length;){var r=i[e++];if(128>r)t[n++]=String.fromCharCode(r);else if(191<r&&224>r){var s=i[e++];t[n++]=String.fromCharCode((31&r)<<6|63&s)}else if(239<r&&365>r){s=i[e++];var o=i[e++],a=((7&r)<<18|(63&s)<<12|(63&o)<<6|63&i[e++])-65536;t[n++]=String.fromCharCode(55296+(a>>10)),t[n++]=String.fromCharCode(56320+(1023&a))}
1else s=i[e++],o=i[e++],t[n++]=String.fromCharCode((15&r)<<12|(63&s)<<6|63&o)}return JSON.parse(t.join(""))}catch(c){}return null}Vr.prototype.T=function(){return this.f},Vr.prototype.l=function(){return this.c},Vr.prototype.toString=function(){return this.h};var zr="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Hr=["client_id","response_type","scope","redirect_uri","state"],Gr={nd:{Ja:"locale",va:700,ua:600,fa:"facebook.com",Ya:Hr},pd:{Ja:null,va:500,ua:750,fa:"github.com",Ya:Hr},qd:{Ja:"hl",va:515,ua:680,fa:"google.com",Ya:Hr},wd:{Ja:"lang",va:485,ua:705,fa:"twitter.com",Ya:zr},kd:{Ja:"locale",va:640,ua:600,fa:"apple.com",Ya:[]}};function Yr(t){for(var e in Gr)if(Gr[e].fa==t)return Gr[e];return null}function Qr(t){var e={};e["facebook.com"]=Xr,e["google.com"]=es,e["github.com"]=ts,e["twitter.com"]=ns;var n=t&&t[Jr];try{if(n)return e[n]?new e[n](t):new Kr(t);if(void 0!==t[$r])return new Wr(t)}catch(i){}return null}var $r="idToken",Jr="providerId";function Wr(t){var e=t[Jr];if(!e&&t[$r]){var n=jr(t[$r]);n&&n.b&&(e=n.b)}if(!e)throw Error("Invalid additional user info!");("anonymous"==e||"custom"==e)&&(e=null),n=!1,void 0!==t.isNewUser?n=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),$i(this,"providerId",e),$i(this,"isNewUser",n)}function Kr(t){Wr.call(this,t),$i(this,"profile",Ki((t=Fi(t.rawUserInfo||"{}"))||{}))}function Xr(t){if(Kr.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function ts(t){if(Kr.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");$i(this,"username",this.profile&&this.profile.login||null)}function es(t){if(Kr.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function ns(t){if(Kr.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");$i(this,"username",t.screenName||null)}function is(t){var e=qn(t),n=Zn(e,"link"),i=Zn(qn(n),"link");return e=Zn(e,"deep_link_id"),Zn(qn(e),"link")||e||i||n||t}function rs(t,e){if(!t&&!e)throw new E("internal-error","Internal assert: no raw session string available");if(t&&e)throw new E("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?ss:os}T(Kr,Wr),T(Xr,Kr),T(ts,Kr),T(es,Kr),T(ns,Kr);var ss="enroll",os="signin";function as(){}function cs(t,e){return t.then(function(t){if(t[$o]){var n=jr(t[$o]);if(!n||e!=n.i)throw new E("user-mismatch");return t}throw new E("user-mismatch")}).o(function(t){throw t&&t.code&&t.code==k+"user-not-found"?new E("user-mismatch"):t})}function us(t,e){if(!e)throw new E("internal-error","failed to construct a credential");this.a=e,$i(this,"providerId",t),$i(this,"signInMethod",t)}function ls(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function hs(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new us(t.providerId,t.pendingToken)}catch(e){}return null}function ds(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&$i(this,"idToken",e.idToken),e.accessToken&&$i(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&$i(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new E("internal-error","failed to construct a credential");$i(this,"accessToken",e.oauthToken),$i(this,"secret",e.oauthTokenSecret)}$i(this,"providerId",t),$i(this,"signInMethod",n)}function fs(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,t.nonce&&!t.a&&(e.nonce=t.nonce),e={postBody:Wn(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function ps(t){if(t&&t.providerId&&t.signInMethod){var e={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new ds(t.providerId,e,t.signInMethod)}catch(n){}}return null}function gs(t,e){this.Qc=e||[],Ji(this,{providerId:t,isOAuthProvider:!0}),this.Jb={},this.qb=(Yr(t)||{}).Ja||null,this.pb=null}function ms(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new E("argument-error",'SAML provider IDs must be prefixed with "saml."');gs.call(this,t,[])}function vs(t){gs.call(this,t,Hr),this.a=[]}function ys(){vs.call(this,"facebook.com")}function bs(t){if(!t)throw new E("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return g(t)&&(e=t.accessToken),(new ys).credential({accessToken:e})}function _s(){vs.call(this,"github.com")}function ws(t){if(!t)throw new E("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return g(t)&&(e=t.accessToken),(new _s).credential({accessToken:e})}function xs(){vs.call(this,"google.com"),this.Ca("profile")}function Ss(t,e){var n=t;return g(t)&&(n=t.idToken,e=t.accessToken),(new xs).credential({idToken:n,accessToken:e})}function Ts(){gs.call(this,"twitter.com",zr)}function Cs(t,e){var n=t;if(g(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new E("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new ds("twitter.com",n,"twitter.com")}function Es(t,e,n){this.a=t,this.f=e,$i(this,"providerId","password"),$i(this,"signInMethod",n===Is.EMAIL_LINK_SIGN_IN_METHOD?Is.EMAIL_LINK_SIGN_IN_METHOD:Is.EMAIL_PASSWORD_SIGN_IN_METHOD)}function As(t){return t&&t.email&&t.password?new Es(t.email,t.password,t.signInMethod):null}function Is(){Ji(this,{providerId:"password",isOAuthProvider:!1})}function ks(t,e){if(!(e=Os(e)))throw new E("argument-error","Invalid email link!");return new Es(t,e.code,Is.EMAIL_LINK_SIGN_IN_METHOD)}function Os(t){return(t=Ir(t=is(t)))&&t.operation===cr?t:null}function Ds(t){if(!(t.fb&&t.eb||t.La&&t.ea))throw new E("internal-error");this.a=t,$i(this,"providerId","phone"),this.fa="phone",$i(this,"signInMethod","phone")}function Ns(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return z(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(n){t[n]&&(e[n]=t[n])}),new Ds(e)}return null}function Ps(t){return t.a.La&&t.a.ea?{temporaryProof:t.a.La,phoneNumber:t.a.ea}:{sessionInfo:t.a.fb,code:t.a.eb}}function Rs(t){try{this.a=t||i.Z.auth()}catch(e){throw new E("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Ji(this,{providerId:"phone",isOAuthProvider:!1})}function Ls(t,e){if(!t)throw new E("missing-verification-id");if(!e)throw new E("missing-verification-code");return new Ds({fb:t,eb:e})}function Ms(t){if(t.temporaryProof&&t.phoneNumber)return new Ds({La:t.temporaryProof,ea:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,i=t&&t.oauthTokenSecret,r=t&&t.nonce,s=t&&t.oauthIdToken,o=t&&t.pendingToken;try{switch(e){case"google.com":return Ss(s,n);case"facebook.com":return bs(n);case"github.com":return ws(n);case"twitter.com":return Cs(n,i);default:return n||i||s||o?o?0==e.indexOf("saml.")?new us(e,o):new ds(e,{pendingToken:o,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new vs(e).credential({idToken:s,accessToken:n,rawNonce:r}):null}}catch(a){return null}}function Fs(t){if(!t.isOAuthProvider)throw new E("invalid-oauth-provider")}function Zs(t,e,n,i,r,s,o){if(this.c=t,this.b=e||null,this.g=n||null,this.f=i||null,this.i=s||null,this.h=o||null,this.a=r||null,!this.g&&!this.a)throw new E("invalid-auth-event");
1if(this.g&&this.a)throw new E("invalid-auth-event");if(this.g&&!this.f)throw new E("invalid-auth-event")}function qs(t){return(t=t||{}).type?new Zs(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&A(t.error),t.postBody,t.tenantId):null}function Us(){this.b=null,this.a=[]}rs.prototype.Ha=function(){return Ae(this.a?this.a:this.b)},rs.prototype.w=function(){return this.type==ss?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},as.prototype.ka=function(){},as.prototype.b=function(){},as.prototype.c=function(){},as.prototype.w=function(){},us.prototype.ka=function(t){return ma(t,ls(this))},us.prototype.b=function(t,e){var n=ls(this);return n.idToken=e,va(t,n)},us.prototype.c=function(t,e){return cs(ya(t,ls(this)),e)},us.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},ds.prototype.ka=function(t){return ma(t,fs(this))},ds.prototype.b=function(t,e){var n=fs(this);return n.idToken=e,va(t,n)},ds.prototype.c=function(t,e){return cs(ya(t,fs(this)),e)},ds.prototype.w=function(){var t={providerId:this.providerId,sign
1InMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},gs.prototype.Ka=function(t){return this.Jb=gt(t),this},T(ms,gs),T(vs,gs),vs.prototype.Ca=function(t){return Q(this.a,t)||this.a.push(t),this},vs.prototype.Rb=function(){return K(this.a)},vs.prototype.credential=function(t,e){var n;if(!(n=g(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null}).idToken&&!n.accessToken)throw new E("argument-error","credential failed: must provide the ID token and/or the access token.");return new ds(this.providerId,n,this.providerId)},T(ys,vs),$i(ys,"PROVIDER_ID","facebook.com"),$i(ys,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),T(_s,vs),$i(_s,"PROVIDER_ID","github.com"),$i(_s,"GITHUB_SIGN_IN_METHOD","github.com"),T(xs,vs),$i(xs,"PROVIDER_ID","google.com"),$i(xs,"GOOGLE_SIGN_IN_METHOD","google.com"),T(Ts,gs),$i(Ts,"PROVIDER_ID","twitter.com"),$i(Ts,"TWITTER_SIGN_IN_METHOD","twitter.com"),Es.prototype.ka=function(t){return this.signInMethod==Is.EMAIL_LINK_SIGN_IN_METHOD?Xa(t,Ea,{email:this.a,oobCode:this.f}):Xa(t,Qa,{email:this.a,password:this.f})},Es.prototype.b=function(t,e){return this.signInMethod==Is.EMAIL_LINK_SIGN_IN_METHOD?Xa(t,Aa,{idToken:e,email:this.a,oobCode:this.f}):Xa(t,Ua,{idToken:e,email:this.a,password:this.f})},Es.prototype.c=function(t,e){return cs(this.ka(t),e)},Es.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Ji(Is,{PROVIDER_ID:"password"}),Ji(Is,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Ji(Is,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Ds.prototype.ka=function(t){return t.gb(Ps(this))},Ds.prototype.b=function(t,e){var n=Ps(this);return n.idToken=e,Xa(t,Ja,n)},Ds.prototype.c=function(t,e){var n=Ps(this);return n.operation="REAUTH",cs(t=Xa(t,Wa,n),e)},Ds.prototype.w=function(){var t={providerId:"phone"};return this.a.fb&&(t.verificationId=this.a.fb),this.a.eb&&(t.verificationCode=this.a.eb),this.a.La&&(t.temporaryProof=this.a.La),this.a.ea&&(t.phoneNumber=this.a.ea),t},Rs.prototype.gb=function(t,e){var n=this.a.a;return Ae(e.verify()).then(function(i){if("string"!=typeof i)throw new E("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(e.type){case"recaptcha":var r=g(t)?t.session:null,s=g(t)?t.phoneNumber:t;return(r&&r.type==ss?r.Ha().then(function(t){return function(t,e){return Xa(t,ja,e).then(function(t){return t.phoneSessionInfo.sessionInfo})}(n,{idToken:t,phoneEnrollmentInfo:{phoneNumber:s,recaptchaToken:i}})}):r&&r.type==os?r.Ha().then(function(e){return function(t,e){return Xa(t,Ba,e).then(function(t){return t.phoneResponseInfo.sessionInfo})}(n,{mfaPendingCredential:e,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:i}})}):function(t,e){return Xa(t,Za,e)}(n,{phoneNumber:s,recaptchaToken:i})).then(function(t){return"function"==typeof e.reset&&e.reset(),t},function(t){throw"function"==typeof e.reset&&e.reset(),t});default:throw new E("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}})},Ji(Rs,{PROVIDER_ID:"phone"}),Ji(Rs,{PHONE_SIGN_IN_METHOD:"phone"}),Zs.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},Zs.prototype.T=function(){return this.h},Zs.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var Vs,js=null;function Bs(t){var e="unauthorized-domain",n=void 0,i=qn(t);t=i.a,"chrome-extension"==(i=i.c)?n=Bt("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):"http"==i||"https"==i?n=Bt("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",E.call(this,e,n)}function zs(t,e,n){E.call(this,t,n),(t=e||{}).Kb&&$i(this,"email",t.Kb),t.ea&&$i(this,"phoneNumber",t.ea),t.credential&&$i(this,"credential",t.credential),t.$b&&$i(this,"tenantId",t.$b)}function Hs(t){if(t.code){var e=t.code||"";0==e.indexOf(k)&&(e=e.substring(k.length));var n={credential:Ms(t),$b:t.tenantId};if(t.email)n.Kb=t.email;else if(t.phoneNumber)n.ea=t.phoneNumber;else if(!n.credential)return new E(e,t.message||void 0);return new zs(e,n,t.message)}return null}function Gs(){}function Ys(){}function Qs(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<e.length;n++){var i=e[n];try{return new ActiveXObject(i),t.f=i}catch(r){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function $s(){}function Js(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=w(this.qc,this),this.a.onerror=w(this.Tb,this),this.a.onprogress=w(this.rc,this),this.a.ontimeout=w(this.vc,this)}function Ws(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Ks(t,e,n){this.reset(t,e,n,void 0,void 0)}function Xs(t){this.f=t,this.b=this.c=this.a=null}function to(t,e){this.name=t,this.value=e}T(Bs,E),T(zs,E),zs.prototype.w=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber),this.tenantId&&(t.tenantId=this.tenantId);var e=this.credential&&this.credential.w();return e&&vt(t,e),t},zs.prototype.toJSON=function(){return this.w()},Gs.prototype.c=null,T(Ys,Gs),Ys.prototype.a=function(){var t=Qs(this);return t?new ActiveXObject(t):new XMLHttpRequest},Ys.prototype.b=function(){var t={};return Qs(this)&&(t[0]=!0,t[1]=!0),t},Vs=new Ys,T($s,Gs),$s.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new Js;throw Error("Unsupported browser")},$s.prototype.b=function(){return{}},(t=Js.prototype).open=function(t,e,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(t,e)},t.send=function(t){if(t){if("string"!=typeof t)throw Error("Only string data is supported");this.a.send(t)}else this.a.send()},t.abort=function(){this.a.abort()},t.setRequestHeader=function(){},t.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},t.qc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Ws(this,4)},t.Tb=function(){this.status=500,this.response=this.responseText="",Ws(this,4)},t.vc=function(){this.Tb()},t.rc=function(){this.status=200,Ws(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Ks.prototype.a=null,Ks.prototype.reset=function(t,e,n,i,r){i||S(),delete this.a},to.prototype.toString=function(){return this.name};var eo=new to("SEVERE",1e3),no=new to("WARNING",900),io=new to("CONFIG",700),ro=new to("FINE",500);function so(t){return t.c?t.c:t.a?so(t.a):(M("Root logger has no level set."),null)}Xs.prototype.log=function(t,e,n){if(t.value>=so(this).value)for(p(e)&&(e=e()),t=new Ks(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var oo={},ao=null;function co(t){var e;if(ao||(ao=new Xs(""),oo[""]=ao,ao.c=io),!(e=oo[t])){e=new Xs(t);var n=t.lastIndexOf("."),i=t.substr(n+1);(n=co(t.substr(0,n))).b||(n.b={}),n.b[i]=e,e.a=n,oo[t]=e}return e}function uo(t,e){t&&t.log(ro,e,void 0)}function lo(t){this.f=t}function ho(t){wn.call(this),this.u=t,this.h=void 0,this.readyState=fo,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.l=new Headers,this.b=null,this.s="GET",this.f="",this.a=!1,this.i=co("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}T(lo,Gs),lo.prototype.a=function(){return new ho(this.f)},lo.prototype.b=function(t){return function(){return t}}({}),T(ho,wn);var fo=0;function po(t){t.c.read().then(t.pc.bind(t)).catch(t.Va.bind(t))}function go(t){t.readyState=4,t.g=null,t.c=null,t.m=null,mo(t)}function mo(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function vo(t){wn.call(this),this.headers=new kn,this.D=t||null,this.c=!1,this.C=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.J=!1,this.g=0,this.s=null,this.m=yo,this.u=this.S=!1}(t=ho.prototype).open=function(t,e){if(this.readyState!=fo)throw this.abort(),Error("Error reopening a connection");this.s=t,this.f=e,this.readyState=1,mo(this)},t.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.l,method:this.s,credentials:this.h,cache:void 0};
1t&&(e.body=t),this.u.fetch(new Request(this.f,e)).then(this.uc.bind(this),this.Va.bind(this))},t.abort=function(){this.response=this.responseText="",this.l=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,go(this)),this.readyState=fo},t.uc=function(t){this.a&&(this.g=t,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=t.headers,this.readyState=2,mo(this)),this.a&&(this.readyState=3,mo(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.sc.bind(this),this.Va.bind(this)):void 0!==a.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.m=new TextDecoder,po(this)):t.text().then(this.tc.bind(this),this.Va.bind(this)))))},t.pc=function(t){if(this.a){var e=this.m.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?go(this):mo(this),3==this.readyState&&po(this)}},t.tc=function(t){this.a&&(this.response=this.responseText=t,go(this))},t.sc=function(t){this.a&&(this.response=t,go(this))},t.Va=function(t){var e=this.i;e&&e.log(no,"Failed to fetch url "+this.f,t instanceof Error?t:Error(t)),this.a&&go(this)},t.setRequestHeader=function(t,e){this.l.append(t,e)},t.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.i)&&t.log(no,"Attempting to get response header but no headers have been received for url: "+this.f,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var t=this.i;return t&&t.log(no,"Attempting to get all response headers but no headers have been received for url: "+this.f,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(ho.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(t){this.h=t?"include":"same-origin"}}),T(vo,wn);var yo="";vo.prototype.b=co("goog.net.XhrIo");var bo=/^https?$/i,_o=["POST","PUT"];function wo(t){return"content-type"==t.toLowerCase()}function xo(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,So(t),Co(t)}function So(t){t.J||(t.J=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function To(t){if(t.c&&void 0!==o)if(t.C[1]&&4==Ao(t)&&2==Io(t))uo(t.b,ko(t,"Local request error detected and ignored"));else if(t.i&&4==Ao(t))Cn(t.Wb,0,t);else if(t.dispatchEvent("readystatechange"),4==Ao(t)){uo(t.b,ko(t,"Request complete")),t.c=!1;try{var e,n=Io(t);t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break t;default:i=!1}if(!(e=i)){var r;if(r=0===n){var s=String(t.l).match(Nn)[1]||null;if(!s&&a.self&&a.self.location){var c=a.self.location.protocol;s=c.substr(0,c.length-1)}r=!bo.test(s?s.toLowerCase():"")}e=r}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var u=2<Ao(t)?t.a.statusText:""}catch(l){uo(t.b,"Can not get status: "+l.message),u=""}t.h=u+" ["+Io(t)+"]",So(t)}}finally{Co(t)}}}function Co(t,e){if(t.a){Eo(t);var n=t.a,i=t.C[0]?h:null;t.a=null,t.C=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=i}catch(r){(t=t.b)&&t.log(eo,"Problem encountered resetting onreadystatechange: "+r.message,void 0)}}}function Eo(t){t.a&&t.u&&(t.a.ontimeout=null),t.s&&(a.clearTimeout(t.s),t.s=null)}function Ao(t){return t.a?t.a.readyState:0}function Io(t){try{return 2<Ao(t)?t.a.status:-1}catch(e){return-1}}function ko(t,e){return e+" ["+t.P+" "+t.l+" "+Io(t)+"]"}function Oo(t){var e=Vo;this.g=[],this.u=e,this.s=t||null,this.f=this.a=!1,this.c=void 0,this.v=this.C=this.i=!1,this.h=0,this.b=null,this.l=0}function Do(t,e,n){t.a=!0,t.c=n,t.f=!e,Lo(t)}function No(t){if(t.a){if(!t.v)throw new Mo(t);t.v=!1}}function Po(t,e,n,i){t.g.push([e,n,i]),t.a&&Lo(t)}function Ro(t){return Y(t.g,function(t){return p(t[1])})}function Lo(t){if(t.h&&t.a&&Ro(t)){var e=t.h,n=qo[e];n&&(a.clearTimeout(n.a),delete qo[e]),t.h=0}t.b&&(t.b.l--,delete t.b),e=t.c;for(var i=n=!1;t.g.length&&!t.i;){var r=t.g.shift(),s=r[0],o=r[1];if(r=r[2],s=t.f?o:s)try{var c=s.call(r||t.s,e);void 0!==c&&(t.f=t.f&&(c==e||c instanceof Error),t.c=e=c),(P(e)||"function"==typeof a.Promise&&e instanceof a.Promise)&&(i=!0,t.i=!0)}catch(u){e=u,t.f=!0,Ro(t)||(n=!0)}}t.c=e,i&&(c=w(t.m,t,!0),i=w(t.m,t,!1),e instanceof Oo?(Po(e,c,i),e.C=!0):e.then(c,i)),n&&(e=new Zo(e),qo[e.a]=e,t.h=e.a)}function Mo(){R.call(this)}function Fo(){R.call(this)}function Zo(t){this.a=a.setTimeout(w(this.c,this),0),this.b=t}(t=vo.prototype).Ma=function(){void 0!==o&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",uo(this.b,ko(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(uo(this.b,ko(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Co(this))},t.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Co(this,!0)),vo.bb.Da.call(this)},t.Wb=function(){this.ya||(this.N||this.i||this.f?To(this):this.Jc())},t.Jc=function(){To(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case yo:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var t=this.b;return t&&t.log(eo,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return uo(this.b,"Can not get response: "+e.message),null}},Oo.prototype.cancel=function(t){if(this.a)this.c instanceof Oo&&this.c.cancel();else{if(this.b){var e=this.b;delete this.b,t?e.cancel(t):(e.l--,0>=e.l&&e.cancel())}this.u?this.u.call(this.s,this):this.v=!0,this.a||(t=new Fo(this),No(this),Do(this,!1,t))}},Oo.prototype.m=function(t,e){this.i=!1,Do(this,t,e)},Oo.prototype.then=function(t,e,n){var i,r,s=new _e(function(t,e){i=t,r=e});return Po(this,i,function(t){t instanceof Fo?s.cancel():r(t)}),s.then(t,e,n)}
1,Oo.prototype.$goog_Thenable=!0,T(Mo,R),Mo.prototype.message="Deferred has already fired",Mo.prototype.name="AlreadyCalledError",T(Fo,R),Fo.prototype.message="Deferred was canceled",Fo.prototype.name="CanceledError",Zo.prototype.c=function(){throw delete qo[this.a],this.b};var qo={};function Uo(t){var e={},n=e.document||document,i=Et(t).toString(),r=pe(document,"SCRIPT"),s={Xb:r,Ma:void 0},o=new Oo(s),c=null,h=null!=e.timeout?e.timeout:5e3;return 0<h&&(c=window.setTimeout(function(){jo(r,!0);var t=new Ho(zo,"Timeout reached for loading script "+i);No(o),Do(o,!1,t)},h),s.Ma=c),r.onload=r.onreadystatechange=function(){r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(jo(r,e.xd||!1,c),No(o),Do(o,!0,null))},r.onerror=function(){jo(r,!0,c);var t=new Ho(Bo,"Error while loading script "+i);No(o),Do(o,!1,t)},vt(s=e.attributes||{},{type:"text/javascript",charset:"UTF-8"}),ue(r,s),function(t,e){yt(t,"HTMLScriptElement"),t.src=Et(e),(e=t.ownerDocument&&t.ownerDocument.defaultView)&&e!=a?e=l(e.document):(null===u&&(u=l(a.document)),e=u),e&&t.setAttribute("nonce",e)}(r,t),function(t){var e;return(e=(t||document).getElementsByTagName("HEAD"))&&0!=e.length?e[0]:t.documentElement}(n).appendChild(r),o}function Vo(){if(this&&this.Xb){var t=this.Xb;t&&"SCRIPT"==t.tagName&&jo(t,!0,this.Ma)}}function jo(t,e,n){null!=n&&a.clearTimeout(n),t.onload=h,t.onerror=h,t.onreadystatechange=h,e&&window.setTimeout(function(){t&&t.parentNode&&t.parentNode.removeChild(t)},0)}var Bo=0,zo=1;function Ho(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),R.call(this,n),this.code=t}function Go(t){this.f=t}function Yo(t,e,n){if(this.c=t,this.l=(t=e||{}).secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=t.secureTokenTimeout||Jo,this.g=gt(t.secureTokenHeaders||Wo),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.v=t.firebaseTimeout||Ko,this.a=gt(t.firebaseHeaders||Xo),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==xi(),!(n=a.XMLHttpRequest||n&&i.Z.INTERNAL.node&&i.Z.INTERNAL.node.XMLHttpRequest)&&!wi())throw new E("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,this.f=wi()?new lo(self):Si()?new Go(n):new $s,this.b=null}T(Ho,R),T(Go,Gs),Go.prototype.a=function(){return new this.f},Go.prototype.b=function(){return{}};var Qo,$o="idToken",Jo=new Vi(3e4,6e4),Wo={"Content-Type":"application/x-www-form-urlencoded"},Ko=new Vi(3e4,6e4),Xo={"Content-Type":"application/json"};function ta(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function ea(t,e){e&&(t.l=na("https://securetoken.googleapis.com/v1/token",e),t.h=na("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",e),t.i=na("https://identitytoolkit.googleapis.com/v2/",e))}function na(t,e){return t=qn(t),e=qn(e.url),t.f=t.a+t.f,Rn(t,e.c),t.a=e.a,Ln(t,e.g),t.toString()}function ia(t,e){e?(t.a["X-Client-Version"]=e,t.g["X-Client-Version"]=e):(delete t.a["X-Client-Version"],delete t.g["X-Client-Version"])}function ra(t,e,n,i,r,s,o){(function(){var t=Ii();return!((t="Chrome"!=Ci(t)?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t||$t&&oe&&!(9<oe))})()||wi()?t=w(t.u,t):(Qo||(Qo=new _e(function(t,e){!function(t,e){((window.gapi||{}).client||{}).request?t():(a[oa]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))},function(t,e){Po(t,null,e,void 0)}(Uo(At(sa,{onload:oa})),function(){e(Error("CORS_UNSUPPORTED"))}))}(t,e)})),t=w(t.s,t)),t(e,n,i,r,s,o)}Yo.prototype.T=function(){return this.b},Yo.prototype.u=function(t,e,n,i,r,s){if(wi()&&(void 0===a.fetch||void 0===a.Headers||void 0===a.Request))throw new E("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var o=new vo(this.f);if(s){o.g=Math.max(0,s);var c=setTimeout(function(){o.dispatchEvent("timeout")},s)}xn(o,"complete",function(){c&&clearTimeout(c);var t=null;try{t=JSON.parse(function(t){try{return t.a?t.a.responseText:""}catch(e){return uo(t.b,"Can not get responseText: "+e.message),""}}(this))||null}catch(n){t=null}e&&e(t)}),Sn(o,"ready",function(){c&&clearTimeout(c),He(this)}),Sn(o,"timeout",function(){c&&clearTimeout(c),He(this),e&&e(null)}),function(t,e,n,i,r){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);n=n?n.toUpperCase():"GET",t.l=e,t.h="",t.P=n,t.J=!1,t.c=!0,t.a=t.D?t.D.a():Vs.a(),t.C=function(t){return t.c||(t.c=t.b())}(t.D?t.D:Vs),t.a.onreadystatechange=w(t.Wb,t);try{uo(t.b,ko(t,"Opening Xhr")),t.N=!0,t.a.open(n,String(e),!0),t.N=!1}catch(o){return uo(t.b,ko(t,"Error opening Xhr: "+o.message)),void xo(t,o)}e=i||"";var s=new kn(t.headers);r&&function(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(f(t)||"string"==typeof t)z(t,e,void 0);else for(var n=In(t),i=An(t),r=i.length,s=0;s<r;s++)e.call(void 0,i[s],n&&n[s],t)}(r,function(t,e){s.set(e,t)}),r=function(t){t:{for(var e=wo,n=t.length,i="string"==typeof t?t.split(""):t,r=0;r<n;r++)if(r in i&&e.call(void 0,i[r],r,t)){e=r;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}(s.Y()),i=a.FormData&&e instanceof a.FormData,!Q(_o,n)||r||i||s.set("Content-Type","application/x-www-form-urlencoded;
1charset=utf-8"),s.forEach(function(t,e){this.a.setRequestHeader(e,t)},t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.S&&(t.a.withCredentials=t.S);try{Eo(t),0<t.g&&(t.u=function(t){return $t&&se(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(t.a),uo(t.b,ko(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.u)),t.u?(t.a.timeout=t.g,t.a.ontimeout=w(t.Ma,t)):t.s=Cn(t.Ma,t.g,t)),uo(t.b,ko(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(o){uo(t.b,ko(t,"Send error: "+o.message)),xo(t,o)}}(o,t,n,i,r)};var sa=new bt(St,"https://apis.google.com/js/client.js?onload=%{onload}"),oa="__fcb"+Math.floor(1e6*Math.random()).toString();function aa(t){if("string"!=typeof(t=t.email)||!vi.test(t))throw new E("invalid-email")}function ca(t){"email"in t&&aa(t)}function ua(t){if(!t[$o])throw t.mfaPendingCredential?new E("multi-factor-auth-required",null,gt(t)):new E("internal-error")}function la(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new E("internal-error")}else{if(!t.sessionInfo)throw new E("missing-verification-id");if(!t.code)throw new E("missing-verification-code")}}Yo.prototype.s=function(t,e,n,i,r){var s=this;Qo.then(function(){window.gapi.client.setApiKey(s.c);var o=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:n,body:i,headers:r,authType:"none",callback:function(t){window.gapi.auth.setToken(o),e&&e(t)}})}).o(function(t){e&&e({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})})},Yo.prototype.Ab=function(){return Xa(this,Va,{})},Yo.prototype.Cb=function(t,e){return Xa(this,qa,{idToken:t,email:e})},Yo.prototype.Db=function(t,e){return Xa(this,Ua,{idToken:t,password:e})};var ha={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function da(t){if(!t.phoneVerificationInfo)throw new E("internal-error");if(!t.phoneVerificationInfo.sessionInfo)throw new E("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new E("missing-verification-code")}function fa(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new E("internal-error")}function pa(t,e){return e.oauthIdToken&&e.providerId&&0==e.providerId.indexOf("oidc.")&&!e.pendingToken&&(t.sessionId?e.nonce=t.sessionId:t.postBody&&Xn(t=new $n(t.postBody),"nonce")&&(e.nonce=t.get("nonce"))),e}function ga(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=Hs(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=Hs(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=Hs(t)):t.errorMessage&&(e=tc(t.errorMessage)),e)throw e;ua(t)}function ma(t,e){return e.returnIdpCredential=!0,Xa(t,za,e)}function va(t,e){return e.returnIdpCredential=!0,Xa(t,Ga,e)}function ya(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,Xa(t,Ha,e)}function ba(t){if(!t.oobCode)throw new E("invalid-action-code")}(t=Yo.prototype).Eb=function(t,e){var n={idToken:t},i=[];return ft(ha,function(t,r){var s=e[r];null===s?i.push(t):r in e&&(n[r]=s)}),i.length&&(n.deleteAttribute=i),Xa(this,qa,n)},t.wb=function(t,e){return vt(t={requestType:"PASSWORD_RESET",email:t},e),Xa(this,Ra,t)},t.xb=function(t,e){return vt(t={requestType:"EMAIL_SIGNIN",email:t},e),Xa(this,Da,t)},t.vb=function(t,e){return vt(t={requestType:"VERIFY_EMAIL",idToken:t},e),Xa(this,Na,t)},t.Fb=function(t,e,n){return vt(t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},n),Xa(this,Pa,t)},t.gb=function(t){return Xa(this,$a,t)},t.ob=function(t,e){return Xa(this,Fa,{oobCode:t,newPassword:e})},t.Sa=function(t){return Xa(this,wa,{oobCode:t})},t.kb=function(t){return Xa(this,_a,{oobCode:t})};var _a={endpoint:"setAccountInfo",A:ba,Z:"email",B:!0},wa={endpoint:"resetPassword",A:ba,G:function(t){var e=t.requestType;if(!e||!t.email&&"EMAIL_SIGNIN"!=e&&"VERIFY_AND_CHANGE_EMAIL"!=e)throw new E("internal-error")},B:!0},xa={endpoint:"signupNewUser",A:function(t){if(aa(t),!t.password)throw new E("weak-password")},G:ua,V:!0,B:!0},Sa={endpoint:"createAuthUri",B:!0},Ta={endpoint:"deleteAccount",O:["idToken"]},Ca={endpoint:"setAccountInfo",O:["idToken","deleteProvider"],A:function(t){if(!Array.isArray(t.deleteProvider))throw new E("internal-error")}},Ea={endpoint:"emailLinkSignin",O:["email","oobCode"],A:aa,G:ua,V:!0,B:!0},Aa={endpoint:"emailLinkSignin",O:["idToken","email","oobCode"],A:aa,G:ua,V:!0},Ia={endpoint:"accounts/mfaEnrollment:finalize",O:["idToken","phoneVerificationInfo"],A:da,G:ua,B:!0,Na:!0},ka={endpoint:"accounts/mfaSignIn:finalize",O:["mfaPendingCredential","phoneVerificationInfo"],A:da,G:ua,B:!0,Na:!0},Oa={endpoint:"getAccountInfo"},Da={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new E("internal-error");aa(t)},Z:"email",B:!0},Na={endpoint:"getOobConfirmationCode",O:["idToken","requestType"],A:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new E("internal-error")},Z:"email",B:!0},Pa={endpoint:"getOobConfirmationCode",O:["idToken","newEmail","requestType"],A:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new E("internal-error")},Z:"email",B:!0},Ra={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(t){if("PASSWORD_RESET"!=t.requestType)throw new E("internal-error");aa(t)},Z:"email",B:!0},La={mb:!0,endpoint:"getProjectConfig",Vb:"GET"},Ma={mb:!0,endpoint:"getRecaptchaParam",Vb:"GET",G:function(t){if(!t.recaptchaSiteKey)throw new E("internal-error")}},Fa={endpoint:"resetPassword",A:ba,Z:"email",B:!0},Za={endpoint:"sendVerificationCode",O:["phoneNumber","recaptchaToken"],Z:"sessionInfo",B:!0},qa={endpoint:"setAccountInfo",O:["idToken"],A:ca,V:!0},Ua={endpoint:"setAccountInfo",O:["idToken"],A:function(t){if(ca(t),!t.password)throw new E("weak-password")},G:ua,V:!0},Va={endpoint:"signupNewUser",G:ua,V:!0,B:!0},ja={endpoint:"accounts/mfaEnrollment:start",O:["idToken","phoneEnrollmentInfo"],A:function(t){if(!t.phone
1EnrollmentInfo)throw new E("internal-error");if(!t.phoneEnrollmentInfo.phoneNumber)throw new E("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new E("missing-app-credential")},G:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new E("internal-error")},B:!0,Na:!0},Ba={endpoint:"accounts/mfaSignIn:start",O:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(t){if(!t.phoneSignInInfo||!t.phoneSignInInfo.recaptchaToken)throw new E("missing-app-credential")},G:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new E("internal-error")},B:!0,Na:!0},za={endpoint:"verifyAssertion",A:fa,Za:pa,G:ga,V:!0,B:!0},Ha={endpoint:"verifyAssertion",A:fa,Za:pa,G:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new E("user-not-found");if(t.errorMessage)throw tc(t.errorMessage);ua(t)},V:!0,B:!0},Ga={endpoint:"verifyAssertion",A:function(t){if(fa(t),!t.idToken)throw new E("internal-error")},Za:pa,G:ga,V:!0},Ya={endpoint:"verifyCustomToken",A:function(t){if(!t.token)throw new E("invalid-custom-token")},G:ua,V:!0,B:!0},Qa={endpoint:"verifyPassword",A:function(t){if(aa(t),!t.password)throw new E("wrong-password")},G:ua,V:!0,B:!0},$a={endpoint:"verifyPhoneNumber",A:la,G:ua,B:!0},Ja={endpoint:"verifyPhoneNumber",A:function(t){if(!t.idToken)throw new E("internal-error");la(t)},G:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",Hs(t);ua(t)}},Wa={Ib:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:la,G:ua,B:!0},Ka={endpoint:"accounts/mfaEnrollment:withdraw",O:["idToken","mfaEnrollmentId"],G:function(t){if(!!t[$o]^!!t.refreshToken)throw new E("internal-error")},B:!0,Na:!0};function Xa(t,e,n){if(!function(t,e){if(!e||!e.length)return!0;if(!t)return!1;for(var n=0;n<e.length;n++){var i=t[e[n]];if(null==i||""===i)return!1}return!0}(n,e.O))return Ie(new E("internal-error"));var i,r=!!e.Na,s=e.Vb||"POST";return Ae(n).then(e.A).then(function(){return e.V&&(n.returnSecureToken=!0),e.B&&t.b&&void 0===n.tenantId&&(n.tenantId=t.b),function(t,e,n,i,r,s,o){var a=qn(e+n);Fn(a,"key",t.c),o&&Fn(a,"cb",Date.now().toString());var c="GET"==i;if(c)for(var u in r)r.hasOwnProperty(u)&&Fn(a,u,r[u]);return new _e(function(e,n){ra(t,a.toString(),function(t){t?t.error?n(ec(t,s||{})):e(t):n(new E("network-request-failed"))},i,c?void 0:ii(Mi(r)),t.a,t.v.get())})}(t,r?t.i:t.h,e.endpoint,s,n,e.Ib,e.mb||!1)}).then(function(t){return i=t,e.Za?e.Za(n,i):i}).then(e.G).then(function(){if(!e.Z)return i;if(!(e.Z in i))throw new E("internal-error");return i[e.Z]})}function tc(t){return ec({error:{errors:[{message:t}],code:400,message:t}})}function ec(t,e){var n=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",i={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=i[n]?new E(i[n]):null)return n;for(var r in n=t.error&&t.error.message||"",vt(i={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
1NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},e||{}),e=(e=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<e.length?e[1]:void 0,i)if(0===n.indexOf(r))return new E(i[r],e);return!e&&t&&(e=Li(t)),new E("internal-error",e)}function nc(t){this.b=t,this.a=null,this.sb=function(t){return(oc||(oc=new _e(function(t,e){function n(){Ui(),ki("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){Ui(),e(Error("Network Error"))},timeout:rc.get()})}if(ki("gapi.iframes.Iframe"))t();else if(ki("gapi.load"))n();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();a[i]=function(){ki("gapi.load")?n():e(Error("Network Error"))},Ae(Uo(i=At(ic,{onload:i}))).o(function(){e(Error("Network Error"))})}}).o(function(t){throw oc=null,t}))).then(function(){return new _e(function(e,n){ki("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:ki("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(i){function r(){clearTimeout(s),e()}t.a=i,t.a.restyle({setHideOnLeave:!1});var s=setTimeout(function(){n(Error("Network Error"))},sc.get());i.ping(r).then(r,function(){n(Error("Network Error"))})})})})}(this)}var ic=new bt(St,"https://apis.google.com/js/api.js?onload=%{onload}"),rc=new Vi(3e4,6e4),sc=new Vi(5e3,15e3),oc=null;function ac(t,e,n,i){this.l=t,this.h=e,this.i=n,this.g=i,this.f=null,t=this.g?Un((t=qn(this.g.url)).c,t.a,t.g,"/emulator/auth/iframe"):Un("https",this.l,null,"/__/auth/iframe"),this.a=t,Fn(this.a,"apiKey",this.h),Fn(this.a,"appName",this.i),this.b=null,this.c=[]}function cc(t,e,n,i,r,s){this.u=t,this.s=e,this.c=n,this.m=i,this.v=s,this.i=this.g=this.l=null,this.a=r,this.h=this.f=null}function uc(t){try{return i.Z.app(t).auth().Ga()}catch(e){return[]}}function lc(t,e,n,i,r,s){this.s=t,this.g=e,this.b=n,this.f=s,this.c=i||null,this.i=r||null,this.l=this.u=this.C=null,this.h=[],this.m=this.a=null}function hc(t){var e=li();return function(t){return Xa(t,La,{}).then(function(t){return t.authorizedDomains||[]})}(t).then(function(t){t:{var n=qn(e),i=n.c;n=n.a;for(var r=0;r<t.length;r++){var s=t[r],o=n,a=i;if(0==s.indexOf("chrome-extension://")?o=qn(s).a==o&&"chrome-extension"==a:"http"!=a&&"https"!=a?o=!1:mi.test(s)?o=o==s:(s=s.split(".").join("\\."),o=new RegExp("^(.+\\."+s+"|"+s+")$","i").test(o)),o){t=!0;break t}}t=!1}if(!t)throw new Bs(li())})}function dc(t){return t.m||(t.m=yi().then(function(){if(!t.u){var e=t.c,n=t.i,i=uc(t.b),r=new ac(t.s,t.g,t.b,t.f);r.f=e,r.b=n,r.c=K(i||[]),t.u=r.toString()}t.v=new nc(t.u),function(t){if(!t.v)throw Error("IfcHandler must be initialized!");!function(t,e){t.sb.then(function(){t.a.register("authEvent",e,ki("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}(t.v,function(e){var n={};if(e&&e.authEvent){var i=!1;for(e=qs(e.authEvent),n=0;n<t.h.length;n++)i=t.h[n](e)||i;return(n={}).status=i?"ACK":"ERROR",Ae(n)}return n.status="ERROR",Ae(n)})}(t)})),t.m}function fc(t){return t.l||(t.C=t.c?Ai(t.c,uc(t.b)):null,t.l=new Yo(t.g,N(t.i),t.C),t.f&&ea(t.l,t.f)),t.l}function pc(t,e,n,i,r,s,o,a,c,u,l,h){return(t=new cc(t,e,n,i,r,h)).l=s,t.g=o,t.i=a,t.b=gt(c||null),t.f=u,t.zb(l).toString()}function gc(t){if(this.a=t||i.Z.INTERNAL.reactNative&&i.Z.INTERNAL.reactNative.AsyncStorage,!this.a)throw new E("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function mc(t){this.b=t,this.a={},this.f=w(this.c,this)}ac.prototype.toString=function(){return this.f?Fn(this.a,"v",this.f):Kn(this.a.b,"v"),this.b?Fn(this.a,"eid",this.b):Kn(this.a.b,"eid"),this.c.length?Fn(this.a,"fw",this.c.join(",")):Kn(this.a.b,"fw"),this.a.toString()},cc.prototype.zb=function(t){return this.h=t,this},cc.prototype.toString=function(){if(this.v){var t=qn(this.v.url);t=Un(t.c,t.a,t.g,"/emulator/auth/handler")}else t=Un("https",this.u,null,"/__/auth/handler");if(Fn(t,"apiKey",this.s),Fn(t,"appName",this.c),Fn(t,"authType",this.m),this.a.isOAuthProvider){var e=this.a;try{var n=i.Z.app(this.c).auth().la()}catch(c){n=null}for(var r in e.pb=n,Fn(t,"providerId",this.a.providerId),e=Mi((n=this.a).Jb))e[r]=e[r].toString();r=n.Qc,e=gt(e);for(var s=0;s<r.length;s++){var o=r[s];o in e&&delete e[o]}
1n.qb&&n.pb&&!e[n.qb]&&(e[n.qb]=n.pb),pt(e)||Fn(t,"customParameters",Li(e))}if("function"==typeof this.a.Rb&&(n=this.a.Rb()).length&&Fn(t,"scopes",n.join(",")),this.l?Fn(t,"redirectUrl",this.l):Kn(t.b,"redirectUrl"),this.g?Fn(t,"eventId",this.g):Kn(t.b,"eventId"),this.i?Fn(t,"v",this.i):Kn(t.b,"v"),this.b)for(var a in this.b)this.b.hasOwnProperty(a)&&!Zn(t,a)&&Fn(t,a,this.b[a]);return this.h?Fn(t,"tid",this.h):Kn(t.b,"tid"),this.f?Fn(t,"eid",this.f):Kn(t.b,"eid"),(a=uc(this.c)).length&&Fn(t,"fw",a.join(",")),t.toString()},(t=lc.prototype).Pb=function(t,e,n){var i=new E("popup-closed-by-user"),r=new E("web-storage-unsupported"),s=this,o=!1;return this.ma().then(function(){(function(t){var e={type:"webStorageSupport"};return dc(t).then(function(){return function(t,e){return t.sb.then(function(){return new _e(function(n){t.a.send(e.type,e,n,ki("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}(t.v,e)}).then(function(t){if(t&&t.length&&void 0!==t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()})})(s).then(function(n){n||(t&&pi(t),e(r),o=!0)})}).o(function(){}).then(function(){if(!o)return function(t){return new _e(function(e){return function n(){En(2e3).then(function(){if(t&&!t.closed)return n();e()})}()})}(t)}).then(function(){if(!o)return En(n).then(function(){e(i)})})},t.Yb=function(){var t=Ii();return!Ri(t)&&!qi(t)},t.Ub=function(){return!1},t.Nb=function(t,e,n,i,r,s,o,a){if(!t)return Ie(new E("popup-blocked"));if(o&&!Ri())return this.ma().o(function(e){pi(t),r(e)}),i(),Ae();this.a||(this.a=hc(fc(this)));var c=this;return this.a.then(function(){var e=c.ma().o(function(e){throw pi(t),r(e),e});return i(),e}).then(function(){Fs(n),o||hi(pc(c.s,c.g,c.b,e,n,null,s,c.c,void 0,c.i,a,c.f),t)}).o(function(t){throw"auth/network-request-failed"==t.code&&(c.a=null),t})},t.Ob=function(t,e,n,i){this.a||(this.a=hc(fc(this)));var r=this;return this.a.then(function(){Fs(e),hi(pc(r.s,r.g,r.b,t,e,li(),n,r.c,void 0,r.i,i,r.f))}).o(function(t){throw"auth/network-request-failed"==t.code&&(r.a=null),t})},t.ma=function(){var t=this;return dc(this).then(function(){return t.v.sb}).o(function(){throw t.a=null,new E("network-request-failed")})},t.ac=function(){return!0},t.Ea=function(t){this.h.push(t)},t.Ta=function(t){J(this.h,function(e){return e==t})},(t=gc.prototype).get=function(t){return Ae(this.a.getItem(t)).then(function(t){return t&&Fi(t)})},t.set=function(t,e){return Ae(this.a.setItem(t,Li(e)))},t.U=function(t){return Ae(this.a.removeItem(t))},t.ca=function(){},t.ia=function(){};var vc,yc=[];function bc(t,e,n){pt(t.a)&&t.b.addEventListener("message",t.f),void 0===t.a[e]&&(t.a[e]=[]),t.a[e].push(n)}function _c(t){this.a=t}function wc(t){this.c=t,this.b=!1,this.a=[]}function xc(t,e,n,i){var r,s,o,a,c=n||{},u=null;if(t.b)return Ie(Error("connection_unavailable"));var l=i?800:50,h="undefined"!=typeof MessageChannel?new MessageChannel:null;return new _e(function(n,i){h?(r=Math.floor(Math.random()*Math.pow(10,20)).toString(),h.port1.start(),o=setTimeout(function(){i(Error("unsupported_event"))},l),t.a.push(u={messageChannel:h,onMessage:s=function(t){t.data.eventId===r&&("ack"===t.data.status?(clearTimeout(o),a=setTimeout(function(){i(Error("timeout"))},3e3)):"done"===t.data.status?(clearTimeout(a),void 0!==t.data.response?n(t.data.response):i(Error("unknown_error"))):(clearTimeout(o),clearTimeout(a),i(Error("invalid_response"))))}}),h.port1.addEventListener("message",s),t.c.postMessage({eventType:e,eventId:r,data:c},[h.port2])):i(Error("connection_unavailable"))}).then(function(e){return Sc(t,u),e}).o(function(e){throw Sc(t,u),e})}function Sc(t,e){if(e){var n=e.messageChannel;n&&(n.port1.removeEventListener("message",e.onMessage),n.port1.close()),J(t.a,function(t){return t==e})}}function Tc(){if(!Ic())throw new E("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=a.indexedDB,this.type="indexedDB",this.g=this.v=this.f=this.l=null,this.s=!1,this.h=null;var t=this;wi()&&self?(this.v=function(){var t=wi()?self:null;if(z(yc,function(n){n.b==t&&(e=n)}),!e){var e=new mc(t);yc.push(e)}return e}(),bc(this.v,"keyChanged",function(e,n){return Pc(t).then(function(e){return 0<e.length&&z(t.a,function(t){t(e)}),{keyProcessed:Q(e,n.key)}})}),bc(this.v,"ping",function(){return Ae(["keyChanged"])})):function(){var t=a.navigator;return t&&t.serviceWorker?Ae().then(function(){return t.serviceWorker.ready}).then(function(t){return t.active||null}).o(function(){return null}
1):Ae(null)}().then(function(e){(t.h=e)&&(t.g=new wc(new _c(e)),xc(t.g,"ping",null,!0).then(function(e){e[0].fulfilled&&Q(e[0].value,"keyChanged")&&(t.s=!0)}).o(function(){}))})}function Cc(t){return new _e(function(e,n){var i=t.m.open("firebaseLocalStorageDb",1);i.onerror=function(t){try{t.preventDefault()}catch(e){}n(Error(t.target.error))},i.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){n(e)}},i.onsuccess=function(i){(i=i.target.result).objectStoreNames.contains("firebaseLocalStorage")?e(i):function(t){return new _e(function(e,n){var i=t.m.deleteDatabase("firebaseLocalStorageDb");i.onsuccess=function(){e()},i.onerror=function(t){n(Error(t.target.error))}})}(t).then(function(){return Cc(t)}).then(function(t){e(t)}).o(function(t){n(t)})}})}function Ec(t){return t.i||(t.i=Cc(t)),t.i}function Ac(t,e){var n=0;return new _e(function i(r,s){Ec(t).then(e).then(r).o(function(e){if(!(3<++n))return Ec(t).then(function(e){return e.close(),t.i=void 0,i(r,s)}).o(function(t){s(t)});s(e)})})}function Ic(){try{return!!a.indexedDB}catch(Yt){return!1}}function kc(t){return t.objectStore("firebaseLocalStorage")}function Oc(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function Dc(t){return new _e(function(e,n){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){n(t.target.error)}})}function Nc(t,e){return t.g&&t.h&&function(){var t=a.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}()===t.h?xc(t.g,"keyChanged",{key:e},t.s).then(function(){}).o(function(){}):Ae()}function Pc(t){return Ec(t).then(function(t){var e=kc(Oc(t,!1));return e.getAll?Dc(e.getAll()):new _e(function(t,n){var i=[],r=e.openCursor();r.onsuccess=function(e){(e=e.target.result)?(i.push(e.value),e.continue()):t(i)},r.onerror=function(t){n(t.target.error)}})}).then(function(e){var n={},i=[];if(0==t.b){for(i=0;i<e.length;i++)n[e[i].fbase_key]=e[i].value;i=di(t.c,n),t.c=n}return i})}function Rc(t){t.l&&t.l.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function Lc(t){var e=this,n=null;this.a=[],this.type="indexedDB",this.c=t,this.b=Ae().then(function(){if(Ic()){var t=Zi(),i="__sak"+t;return vc||(vc=new Tc),(n=vc).set(i,t).then(function(){return n.get(i)}).then(function(e){if(e!==t)throw Error("indexedDB not supported!");return n.U(i)}).then(function(){return n}).o(function(){return e.c})}return e.c}).then(function(t){return e.type=t.type,t.ca(function(t){z(e.a,function(e){e(t)})}),t})}function Mc(){this.a={},this.type="inMemory"}function Fc(){if(!function(){var t="Node"==xi();if(!(t=Zc()||t&&i.Z.INTERNAL.node&&i.Z.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}())throw"Node"==xi()?new E("internal-error","The LocalStorage compatibility library was not found."):new E("web-storage-unsupported");this.a=Zc()||i.Z.INTERNAL.node.localStorage,this.type="localStorage"}function Zc(){try{var t=a.localStorage,e=Zi();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function qc(){this.type="nullStorage"}function Uc(){if(!function(){var t="Node"==xi();if(!(t=Vc()||t&&i.Z.INTERNAL.node&&i.Z.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}())throw"Node"==xi()?new E("internal-error","The SessionStorage compatibility library was not found."):new E("web-storage-unsupported");this.a=Vc()||i.Z.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Vc(){try{var t=a.sessionStorage,e=Zi();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function jc(){var t={};t.Browser=Hc,t.Node=Gc,t.ReactNative=Yc,t.Worker=Qc,this.a=t[xi()]}mc.prototype.c=function(t){var e=t.data.eventType,n=t.data.eventId,i=this.a[e];if(i&&0<i.length){t.ports[0].postMessage({status:"ack",eventId:n,eventType:e,response:null});var r=[];z(i,function(e){r.push(Ae().then(function(){return e(t.origin,t.data.data)}))}),Oe(r).then(function(i){var r=[];z(i,function(t){r.push({fulfilled:t.Qb,value:t.value,reason:t.reason?t.reason.message:void 0})}),z(r,function(t){for(var e in t)void 0===t[e]&&delete t[e]}),t.ports[0].postMessage({status:"done",eventId:n,eventType:e,response:r})})}},_c.prototype.postMessage=function(t,e){this.a.postMessage(t,e)},wc.prototype.close=function(){for(;0<this.a.length;)Sc(this,this.a[0]);this.b=!0},(t=Tc.prototype).set=function(t,e){var n=this,i=!1;
1return Ac(this,function(e){return Dc((e=kc(Oc(e,!0))).get(t))}).then(function(r){return Ac(n,function(s){if(s=kc(Oc(s,!0)),r)return r.value=e,Dc(s.put(r));n.b++,i=!0;var o={};return o.fbase_key=t,o.value=e,Dc(s.add(o))})}).then(function(){return n.c[t]=e,Nc(n,t)}).oa(function(){i&&n.b--})},t.get=function(t){return Ac(this,function(e){return Dc(kc(Oc(e,!1)).get(t))}).then(function(t){return t&&t.value})},t.U=function(t){var e=this,n=!1;return Ac(this,function(i){return n=!0,e.b++,Dc(kc(Oc(i,!0)).delete(t))}).then(function(){return delete e.c[t],Nc(e,t)}).oa(function(){n&&e.b--})},t.ca=function(t){0==this.a.length&&function(t){Rc(t),function e(){t.f=setTimeout(function(){t.l=Pc(t).then(function(e){0<e.length&&z(t.a,function(t){t(e)})}).then(function(){e()}).o(function(t){"STOP_EVENT"!=t.message&&e()})},800)}()}(this),this.a.push(t)},t.ia=function(t){J(this.a,function(e){return e==t}),0==this.a.length&&Rc(this)},(t=Lc.prototype).get=function(t){return this.b.then(function(e){return e.get(t)})},t.set=function(t,e){return this.b.then(function(n){return n.set(t,e)})},t.U=function(t){return this.b.then(function(e){return e.U(t)})},t.ca=function(t){this.a.push(t)},t.ia=function(t){J(this.a,function(e){return e==t})},(t=Mc.prototype).get=function(t){return Ae(this.a[t])},t.set=function(t,e){return this.a[t]=e,Ae()},t.U=function(t){return delete this.a[t],Ae()},t.ca=function(){},t.ia=function(){},(t=Fc.prototype).get=function(t){var e=this;return Ae().then(function(){return Fi(e.a.getItem(t))})},t.set=function(t,e){var n=this;return Ae().then(function(){var i=Li(e);null===i?n.U(t):n.a.setItem(t,i)})},t.U=function(t){var e=this;return Ae().then(function(){e.a.removeItem(t)})},t.ca=function(t){a.window&&un(a.window,"storage",t)},t.ia=function(t){a.window&&dn(a.window,"storage",t)},(t=qc.prototype).get=function(){return Ae(null)},t.set=function(){return Ae()},t.U=function(){return Ae()},t.ca=function(){},t.ia=function(){},(t=Uc.prototype).get=function(t){var e=this;return Ae().then(function(){return Fi(e.a.getItem(t))})},t.set=function(t,e){var n=this;return Ae().then(function(){var i=Li(e);null===i?n.U(t):n.a.setItem(t,i)})},t.U=function(t){var e=this;return Ae().then(function(){e.a.removeItem(t)})},t.ca=function(){},t.ia=function(){};var Bc,zc,Hc={F:Fc,cb:Uc},Gc={F:Fc,cb:Uc},Yc={F:gc,cb:qc},Qc={F:Fc,cb:qc},$c={rd:"local",NONE:"none",td:"session"};function Jc(){var t=!(qi(Ii())||!_i()),e=Ri(),n=Oi();this.m=t,this.h=e,this.l=n,this.a={},Bc||(Bc=new jc),t=Bc;try{this.g=!ui()&&zi()||!a.indexedDB?new t.a.F:new Lc(wi()?new Mc:new t.a.F)}catch(i){this.g=new Mc,this.h=!0}try{this.i=new t.a.cb}catch(i){this.i=new Mc}this.v=new Mc,this.f=w(this.Zb,this),this.b={}}function Wc(){return zc||(zc=new Jc),zc}function Kc(t,e){switch(e){case"session":return t.i;case"none":return t.v;default:return t.g}}function Xc(t,e){return"firebase:"+t.name+(e?":"+e:"")}function tu(t,e,n){return n=Xc(e,n),"local"==e.F&&(t.b[n]=null),Kc(t,e.F).U(n)}function eu(t){t.c&&(clearInterval(t.c),t.c=null)}function nu(t){this.a=t,this.b=Wc()}(t=Jc.prototype).get=function(t,e){return Kc(this,t.F).get(Xc(t,e))},t.set=function(t,e,n){var i=Xc(t,n),r=this,s=Kc(this,t.F);return s.set(i,e).then(function(){return s.get(i)}).then(function(e){"local"==t.F&&(r.b[i]=e)})},t.addListener=function(t,e,n){t=Xc(t,e),this.l&&(this.b[t]=a.localStorage.getItem(t)),pt(this.a)&&(Kc(this,"local").ca(this.f),this.h||(ui()||!zi())&&a.indexedDB||!this.l||function(t){eu(t),t.c=setInterval(function(){for(var e in t.a){var n=a.localStorage.getItem(e),i=t.b[e];n!=i&&(t.b[e]=n,n=new We({type:"storage",key:e,target:window,oldValue:i,newValue:n,a:!0}),t.Zb(n))}},1e3)}(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(n)},t.removeListener=function(t,e,n){t=Xc(t,e),this.a[t]&&(J(this.a[t],function(t){return t==n}),0==this.a[t].length&&delete this.a[t]),pt(this.a)&&(Kc(this,"local").ia(this.f),eu(this))},t.Zb=function(t){if(t&&t.g){var e=t.a.key;if(null==e)for(var n in this.a){var i=this.b[n];void 0===i&&(i=null);var r=a.localStorage.getItem(n);r!==i&&(this.b[n]=r,this.nb(n))}else if(0==e.indexOf("firebase:")&&this.a[e]){if(void 0!==t.a.a?Kc(this,"local").ia(this.f):eu(this),this.m)if(n=a.localStorage.getItem(e),(i=t.a.newValue)!==n)null!==i?a.localStorage.setItem(e,i):a.localStorage.removeItem(e);else if(this.b[e]===i&&void 0===t.a.a)return;var s=this;n=function(){(void 0!==t.a.a||s.b[e]!==a.localStorage.getItem(e))&&(s.b[e]=a.localStorage.getItem(e),s.nb(e))},$t&&oe&&10==oe&&a.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(n,10):n()}}
1else z(t,w(this.nb,this))},t.nb=function(t){this.a[t]&&z(this.a[t],function(t){t()})};var iu,ru={name:"authEvent",F:"local"};function su(){this.a=Wc()}function ou(t,e){this.b=au,this.f=a.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.l=a.Int32Array?new Int32Array(64):Array(64),void 0===iu&&(iu=a.Int32Array?new Int32Array(pu):pu),this.reset()}T(ou,function(){this.b=-1});for(var au=64,cu=au-1,uu=[],lu=0;lu<cu;lu++)uu[lu]=0;var hu=W(128,uu);function du(t){for(var e=t.f,n=t.l,i=0,r=0;r<e.length;)n[i++]=e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3],r=4*i;for(e=16;64>e;e++){var s=(0|n[e-16])+(((r=0|n[e-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3)|0,o=(0|n[e-7])+(((i=0|n[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;n[e]=s+o|0}i=0|t.a[0],r=0|t.a[1];var a=0|t.a[2],c=0|t.a[3],u=0|t.a[4],l=0|t.a[5],h=0|t.a[6];for(s=0|t.a[7],e=0;64>e;e++){var d=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r^i&a^r&a)|0;o=(s=s+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))|0)+((o=(o=u&l^~u&h)+(0|iu[e])|0)+(0|n[e])|0)|0,s=h,h=l,l=u,u=c+o|0,c=a,a=r,r=i,i=o+d|0}t.a[0]=t.a[0]+i|0,t.a[1]=t.a[1]+r|0,t.a[2]=t.a[2]+a|0,t.a[3]=t.a[3]+c|0,t.a[4]=t.a[4]+u|0,t.a[5]=t.a[5]+l|0,t.a[6]=t.a[6]+h|0,t.a[7]=t.a[7]+s|0}function fu(t,e,n){void 0===n&&(n=e.length);var i=0,r=t.c;if("string"==typeof e)for(;i<n;)t.f[r++]=e.charCodeAt(i++),r==t.b&&(du(t),r=0);else{if(!f(e))throw Error("message must be string or array");for(;i<n;){var s=e[i++];if(!("number"==typeof s&&0<=s&&255>=s&&s==(0|s)))throw Error("message must be a byte array");t.f[r++]=s,r==t.b&&(du(t),r=0)}}t.c=r,t.g+=n}ou.prototype.reset=function(){this.g=this.c=0,this.a=a.Int32Array?new Int32Array(this.h):K(this.h)};var pu=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function gu(){ou.call(this,8,mu)}T(gu,ou);var mu=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function vu(t,e,n,i,r,s){this.v=t,this.i=e,this.l=n,this.m=i||null,this.u=r||null,this.s=s,this.h=e+":"+n,this.C=new su,this.g=new nu(this.h),this.f=null,this.b=[],this.a=this.c=null}function yu(t){return new E("invalid-cordova-configuration",t)}function bu(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(i){}}function _u(t){return t.f||(t.f=t.ma().then(function(){return new _e(function(e){t.Ea(function n(i){return e(i),t.Ta(n),!1}),function(t){function e(e){i=!0,r&&r.cancel(),wu(t).then(function(i){var r=n;if(i&&e&&e.url){var s=null;-1!=(r=is(e.url)).indexOf("/__/auth/callback")&&(s=(s="object"==typeof(s=Fi(Zn(s=qn(r),"firebaseError")||null))?A(s):null)?new Zs(i.c,i.b,null,null,s,null,i.T()):new Zs(i.c,i.b,r,i.f,null,null,i.T())),r=s||n}bu(t,r)})}var n=new Zs("unknown",null,null,null,new E("no-auth-event")),i=!1,r=En(500).then(function(){return wu(t).then(function(){i||bu(t,n)})}),s=a.handleOpenURL;a.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(ki("BuildInfo.packageName",a).toLowerCase()+"://")&&e({url:t}),"function"==typeof s)try{s(t)}catch(n){console.error(n)}},js||(js=new Us),function(t){var e=js;e.a.push(t),e.b||(e.b=function(t){for(var n=0;n<e.a.length;n++)e.a[n](t)},"function"==typeof(t=ki("universalLinks.subscribe",a))&&t(null,e.b))}(e)}(t)})})),t.f}function wu(t){var e=null;return function(t){return t.b.get(ru,t.a).then(function(t){return qs(t)})}(t.g).then(function(n){return e=n,tu((n=t.g).b,ru,n.a)}).then(function(){return e})}function xu(t){this.a=t,this.b=Wc()}(t=vu.prototype).ma=function(){return this.Ia?this.Ia:this.Ia=(bi(void 0)?yi().then(function(){return new _e(function(t,e){var n=a.document,i=setTimeout(function(){e(Error("Cordova framework is not ready."))},1e3);n.addEventListener("deviceready",function(){clearTimeout(i),t()},!1)})}):Ie(Error("Cordova must run in an Android or iOS file scheme."))).then(function(){if("function"!=typeof ki("universalLinks.subscribe",a))throw yu("cordova-universal-links-plugin-fix is not installed");if(void 0===ki("BuildInfo.packageName",a))throw yu("cordova-plugin-buildinfo is not installed");
1if("function"!=typeof ki("cordova.plugins.browsertab.openUrl",a))throw yu("cordova-plugin-browsertab is not installed");if("function"!=typeof ki("cordova.InAppBrowser.open",a))throw yu("cordova-plugin-inappbrowser is not installed")},function(){throw new E("cordova-not-ready")})},t.Pb=function(t,e){return e(new E("operation-not-supported-in-this-environment")),Ae()},t.Nb=function(){return Ie(new E("operation-not-supported-in-this-environment"))},t.ac=function(){return!1},t.Yb=function(){return!0},t.Ub=function(){return!0},t.Ob=function(t,e,n,i){if(this.c)return Ie(new E("redirect-operation-pending"));var r=this,s=a.document,o=null,c=null,u=null,l=null;return this.c=Ae().then(function(){return Fs(e),_u(r)}).then(function(){return function(t,e,n,i,r){var s=function(){for(var t=20,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}(),o=new Zs(e,i,null,s,new E("no-auth-event"),null,r),c=ki("BuildInfo.packageName",a);if("string"!=typeof c)throw new E("invalid-cordova-configuration");var u=ki("BuildInfo.displayName",a),l={};if(Ii().toLowerCase().match(/iphone|ipad|ipod/))l.ibi=c;else{if(!Ii().toLowerCase().match(/android/))return Ie(new E("operation-not-supported-in-this-environment"));l.apn=c}u&&(l.appDisplayName=u),s=function(t){var e=new gu;fu(e,t),t=[];var n=8*e.g;fu(e,hu,56>e.c?56-e.c:e.b-(e.c-56));for(var i=63;56<=i;i--)e.f[i]=255&n,n/=256;for(du(e),i=n=0;i<e.i;i++)for(var r=24;0<=r;r-=8)t[n++]=e.a[i]>>r&255;return function(t){return G(t,function(t){return 1<(t=t.toString(16)).length?t:"0"+t}).join("")}(t)}(s),l.sessionId=s;var h=pc(t.v,t.i,t.l,e,n,null,i,t.m,l,t.u,r,t.s);return t.ma().then(function(){var e=t.h;return t.C.a.set(ru,o.w(),e)}).then(function(){var e=ki("cordova.plugins.browsertab.isAvailable",a);if("function"!=typeof e)throw new E("invalid-cordova-configuration");var n=null;e(function(e){if(e){if("function"!=typeof(n=ki("cordova.plugins.browsertab.openUrl",a)))throw new E("invalid-cordova-configuration");n(h)}else{if("function"!=typeof(n=ki("cordova.InAppBrowser.open",a)))throw new E("invalid-cordova-configuration");e=Ii(),t.a=n(h,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}})})}(r,t,e,n,i)}).then(function(){return new _e(function(t,e){c=function(){var e=ki("cordova.plugins.browsertab.close",a);return t(),"function"==typeof e&&e(),r.a&&"function"==typeof r.a.close&&(r.a.close(),r.a=null),!1},r.Ea(c),l=function(){ji()&&u()},s.addEventListener("resume",u=function(){o||(o=En(2e3).then(function(){e(new E("redirect-cancelled-by-user"))}))},!1),Ii().toLowerCase().match(/android/)||s.addEventListener("visibilitychange",l,!1)}).o(function(t){return wu(r).then(function(){throw t})})}).oa(function(){u&&s.removeEventListener("resume",u,!1),l&&s.removeEventListener("visibilitychange",l,!1),o&&o.cancel(),c&&r.Ta(c),r.c=null})},t.Ea=function(t){this.b.push(t),_u(this).o(function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new Zs("unknown",null,null,null,new E("no-auth-event")),t(e))})},t.Ta=function(t){J(this.b,function(e){return e==t})};var Su={name:"pendingRedirect",F:"session"};function Tu(t){return tu(t.b,Su,t.a)}function Cu(t,e,n,i){this.i={},this.u=0,this.D=t,this.v=e,this.m=n,this.J=i,this.h=[],this.f=!1,this.l=w(this.s,this),this.b=new Uu,this.C=new Hu,this.g=new xu(Zu(this.v,this.m)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.C,this.c.linkViaPopup=this.C,this.c.reauthViaPopup=this.C,this.a=Eu(this.D,this.v,this.m,I,this.J)}function Eu(t,e,n,r,s){var o=i.Z.SDK_VERSION||null;return bi()?new vu(t,e,n,o,r,s):new lc(t,e,n,o,r,s)}function Au(t){t.f||(t.f=!0,t.a.Ea(t.l));var e=t.a;return t.a.ma().o(function(n){throw t.a==e&&t.reset(),n})}function Iu(t){t.a.Yb()&&Au(t).o(function(e){var n=new Zs("unknown",null,null,null,new E("operation-not-supported-in-this-environment"));Ru(e)&&t.s(n)}),t.a.Ub()||Vu(t.b)}function ku(t,e){Q(t.h,e)||t.h.push(e),t.f||function(t){return t.b.get(Su,t.a).then(function(t){return"pending"==t})}(t.g).then(function(e){e?Tu(t.g).then(function(){Au(t).o(function(e){var n=new Zs("unknown",null,null,null,new E("operation-not-supported-in-this-environment"));Ru(e)&&t.s(n)})}):Iu(t)}).o(function(){Iu(t)})}function Ou(t,e){J(t.h,function(t){return t==e})}Cu.prototype.reset=function(){this.f=!1,this.a.Ta(this.l),this.a=Eu(this.D,this.v,this.m,null,this.J),this.i={}},Cu.prototype.s=function(t){if(!t)throw new E("invalid-auth-event");
1if(6e5<=Date.now()-this.u&&(this.i={},this.u=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,n=0;n<this.h.length;n++){var i=this.h[n];if(i.Gb(t.c,t.b)){(e=this.c[t.c])&&(e.h(t,i),t&&(t.f||t.b)&&(this.i[t.getUid()]=!0,this.u=Date.now())),e=!0;break}}return Vu(this.b),e};var Du=new Vi(2e3,1e4),Nu=new Vi(3e4,6e4);function Pu(t,e,n,i,r,s,o){return t.a.Nb(e,n,i,function(){t.f||(t.f=!0,t.a.Ea(t.l))},function(){t.reset()},r,s,o)}function Ru(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function Lu(t,e,n,i,r){var s;return function(t){return t.b.set(Su,"pending",t.a)}(t.g).then(function(){return t.a.Ob(e,n,i,r).o(function(e){if(Ru(e))throw new E("operation-not-supported-in-this-environment");return s=e,Tu(t.g).then(function(){throw s})}).then(function(){return t.a.ac()?new _e(function(){}):Tu(t.g).then(function(){return t.ra()}).then(function(){}).o(function(){})})})}function Mu(t,e,n,i,r){return t.a.Pb(i,function(t){e.na(n,null,t,r)},Du.get())}Cu.prototype.ra=function(){return this.b.ra()};var Fu={};function Zu(t,e,n){return t=t+":"+e,n&&(t=t+":"+n.url),t}function qu(t,e,n,i){var r=Zu(e,n,i);return Fu[r]||(Fu[r]=new Cu(t,e,n,i)),Fu[r]}function Uu(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Vu(t){t.g||(t.g=!0,zu(t,!1,null,null))}function ju(t){t.g&&!t.i&&zu(t,!1,null,null)}function Bu(t,e){if(t.b=function(){return Ae(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}function zu(t,e,n,i){e?i?function(t,e){if(t.b=function(){return Ie(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}(t,i):Bu(t,n):Bu(t,{user:null}),t.f=[],t.c=[]}function Hu(){}function Gu(){this.jb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.jb},set:function(t){this.jb=t},enumerable:!1})}function Yu(t,e){this.a=e,$i(this,"verificationId",t)}function Qu(t,e,n,i){return new Rs(t).gb(e,n).then(function(t){return new Yu(t,i)})}function $u(t){var e=Br(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new E("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Ji(this,{token:t,expirationTime:Bi(1e3*e.exp),authTime:Bi(1e3*e.auth_time),issuedAtTime:Bi(1e3*e.iat),signInProvider:e.firebase&&e.firebase.sign_in_provider?e.firebase.sign_in_provider:null,signInSecondFactor:e.firebase&&e.firebase.sign_in_second_factor?e.firebase.sign_in_second_factor:null,claims:e})}function Ju(t,e,n){var i=e&&e[Ku];if(!i)throw new E("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=gt(e),this.g=n,this.c=new rs(null,i),this.b=[];var r=this;z(e[Wu]||[],function(t){(t=tr(t))&&r.b.push(t)}),$i(this,"auth",this.a),$i(this,"session",this.c),$i(this,"hints",this.b)}Uu.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Uu.prototype.h=function(t,e){if(t){this.reset(),this.g=!0;var n=t.c,i=t.b,r=t.a&&"auth/web-storage-unsupported"==t.a.code,s=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;this.i=!(!r&&!s),"unknown"!=n||r||s?t.a?(zu(this,!0,null,t.a),Ae()):e.Fa(n,i)?function(t,e,n){n=n.Fa(e.c,e.b);var i=e.g,r=e.f,s=e.i,o=e.T(),a=!!e.c.match(/Redirect$/);n(i,r,o,s).then(function(e){zu(t,a,e,null)}).o(function(e){zu(t,a,null,e)})}(this,t,e):Ie(new E("invalid-auth-event")):(zu(this,!1,null,null),Ae())}else Ie(new E("invalid-auth-event"))},Uu.prototype.ra=function(){var t=this;return new _e(function(e,n){t.b?t.b().then(e,n):(t.f.push(e),t.c.push(n),function(t){var e=new E("timeout");t.a&&t.a.cancel(),t.a=En(Nu.get()).then(function(){t.b||(t.g=!0,zu(t,!0,null,e))})}(t))})},Hu.prototype.h=function(t,e){if(t){var n=t.c,i=t.b;t.a?(e.na(t.c,null,t.a,t.b),Ae()):e.Fa(n,i)?function(t,e){var n=t.b,i=t.c;e.Fa(i,n)(t.g,t.f,t.T(),t.i).then(function(t){e.na(i,t,null,n)}).o(function(t){e.na(i,null,t,n)})}(t,e):Ie(new E("invalid-auth-event"))}else Ie(new E("invalid-auth-event"))},Yu.prototype.confirm=function(t){return t=Ls(this.verificationId,t),this.a(t)};var Wu="mfaInfo",Ku="mfaPendingCredential";function Xu(t,e,n,i){E.call(this,"multi-factor-auth-required",i,e),this.b=new Ju(t,e,n),$i(this,"resolver",this.b)}function tl(t,e,n){if(t&&g(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new Xu(e,t.serverResponse,n,t.message)}catch(i){}return null}function el(){}function nl(t){$i(this,"factorId",t.fa),this.a=t}function il(t){if(nl.call(this,t),this.a.fa!=Rs.PROVIDER_ID)throw new E("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function rl(t,e){for(var n in Je.call(this,t),e)this[n]=e[n]}function sl(t,e){this.a=t,this.b=[],this.c=w(this.yc,this),un(this.a,"userReloaded",this.c);var n=[];e&&e.multiFactor&&e.multiFactor.enrolledFactors&&z(e.multiFactor.enrolledFactors,function(t){var e=null,i={};
1if(t){t.uid&&(i[ir]=t.uid),t.displayName&&(i[er]=t.displayName),t.enrollmentTime&&(i[nr]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(i[rr]=t.phoneNumber);try{e=new sr(i)}catch(r){}t=e}else t=null;t&&n.push(t)}),ol(this,n)}function ol(t,e){t.b=e,$i(t,"enrolledFactors",e)}function al(t,e,n){if(this.h=t,this.i=e,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function cl(t,e){t.stop(),t.b=En(function(t,e){return e?(t.a=t.c,t.g()):(e=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),e)}(t,e)).then(function(){return function(){var t=a.document,e=null;return ji()||!t?Ae():new _e(function(n){e=function(){ji()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)}).o(function(n){throw t.removeEventListener("visibilitychange",e,!1),n})}()}).then(function(){return t.h()}).then(function(){cl(t,!0)}).o(function(e){t.i(e)&&cl(t,!1)})}function ul(t){this.f=t,this.b=this.a=null,this.c=Date.now()}function ll(t,e){void 0===e&&(e=t.b?(e=t.b).a-e.g:0),t.c=Date.now()+1e3*e}function hl(t,e){t.b=jr(e[$o]||""),t.a=e.refreshToken,ll(t,void 0!==(e=e.expiresIn)?Number(e):void 0)}function dl(t,e){this.a=t||null,this.b=e||null,Ji(this,{lastSignInTime:Bi(e||null),creationTime:Bi(t||null)})}function fl(t,e,n,i,r,s){Ji(this,{uid:t,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:s||null,providerId:e})}function pl(t,e,n){this.N=[],this.l=t.apiKey,this.m=t.appName,this.s=t.authDomain||null;var r=i.Z.SDK_VERSION?Ai(i.Z.SDK_VERSION):null;this.a=new Yo(this.l,N(I),r),(this.u=t.emulatorConfig||null)&&ea(this.a,this.u),this.h=new ul(this.a),Sl(this,e[$o]),hl(this.h,e),$i(this,"refreshToken",this.h.a),El(this,n||{}),wn.call(this),this.P=!1,this.s&&Di()&&(this.b=qu(this.s,this.l,this.m,this.u)),this.W=[],this.i=null,this.D=function(t){return new al(function(){return t.I(!0)},function(t){return!(!t||"auth/network-request-failed"!=t.code)},function(){var e=t.h.c-Date.now()-3e5;return 0<e?e:0})}(this),this.ba=w(this.ib,this);var s=this;this.za=null,this.Pa=function(t){s.xa(t.h)},this.qa=null,this.Ba=function(t){gl(s,t.c)},this.$=null,this.aa=[],this.Oa=function(t){yl(s,t.f)},this.ja=null,this.S=new sl(this,n),$i(this,"multiFactor",this.S)}function gl(t,e){t.u=e,ea(t.a,e),t.b&&(e=t.b,t.b=qu(t.s,t.l,t.m,t.u),t.P&&(Ou(e,t),ku(t.b,t)))}function ml(t,e){t.qa&&dn(t.qa,"languageCodeChanged",t.Pa),(t.qa=e)&&un(e,"languageCodeChanged",t.Pa)}function vl(t,e){t.$&&dn(t.$,"emulatorConfigChanged",t.Ba),(t.$=e)&&un(e,"emulatorConfigChanged",t.Ba)}function yl(t,e){t.aa=e,ia(t.a,i.Z.SDK_VERSION?Ai(i.Z.SDK_VERSION,t.aa):null)}function bl(t,e){t.ja&&dn(t.ja,"frameworkChanged",t.Oa),(t.ja=e)&&un(e,"frameworkChanged",t.Oa)}function _l(t){try{return i.Z.app(t.m).auth()}catch(e){throw new E("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function wl(t){t.J||t.D.b||(t.D.start(),dn(t,"tokenChanged",t.ba),un(t,"tokenChanged",t.ba))}function xl(t){dn(t,"tokenChanged",t.ba),t.D.stop()}function Sl(t,e){t.Aa=e,$i(t,"_lat",e)}function Tl(t){for(var e=[],n=0;n<t.W.length;n++)e.push(t.W[n](t));return Oe(e).then(function(){return t})}function Cl(t){t.b&&!t.P&&(t.P=!0,ku(t.b,t))}function El(t,e){Ji(t,{uid:e.uid,displayName:e.displayName||null,photoURL:e.photoURL||null,email:e.email||null,emailVerified:e.emailVerified||!1,phoneNumber:e.phoneNumber||null,isAnonymous:e.isAnonymous||!1,tenantId:e.tenantId||null,metadata:new dl(e.createdAt,e.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function Al(){}function Il(t){return Ae().then(function(){if(t.J)throw new E("app-deleted")})}function kl(t){return G(t.providerData,function(t){return t.providerId})}function Ol(t,e){e&&(Dl(t,e.providerId),t.providerData.push(e))}function Dl(t,e){J(t.providerData,function(t){return t.providerId==e})}function Nl(t,e,n){("uid"!=e||n)&&t.hasOwnProperty(e)&&$i(t,e,n)}function Pl(t,e){t!=e&&(Ji(t,{uid:e.uid,displayName:e.displayName,photoURL:e.photoURL,email:e.email,emailVerified:e.emailVerified,phoneNumber:e.phoneNumber,isAnonymous:e.isAnonymous,tenantId:e.tenantId,providerData:[]}),$i(t,"metadata",e.metadata?function(t){return new dl(t.a,t.b)}(e.metadata):new dl),z(e.providerData,function(e){Ol(t,e)}),function(t,e){t.b=e.b,t.a=e.a,t.c=e.c}(t.h,e.h),$i(t,"refreshToken",t.h.a),ol(t.S,e.S.b))}function Rl(t){return t.I().then(function(e){var n=t.isAnonymous;return function(t,e){return Xa(t.a,Oa,{idToken:e}).then(w(t.Kc,t))}(t,e).then(function(){return n||Nl(t,"isAnonymous",!1),e})})}function Ll(t,e){e[$o]&&t.Aa!=e[$o]&&(hl(t.h,e),t.dispatchEvent(new rl("tokenChanged")),Sl(t,e[$o]),Nl(t,"refreshToken",t.h.a))}function Ml(t,e){return Rl(t).then(function(){if(Q(kl(t),e))return Tl(t).then(function(){throw new E("provider-already-linked")})})}function Fl(t,e,n){return Wi({user:t,credential:Ms(e),additionalUserInfo:e=Qr(e),operationType:n})}function Zl(t,e){return Ll(t,e),t.reload().then(function(){return t})}function ql(t,e,n,r,s){if(!Di())return Ie(new E("operation-not-supported-in-this-environment"));if(t.i&&!s)return Ie(t.i);var o=Yr(n.providerId),a=Zi(t.uid+":::"),c=null;
1(!Ri()||_i())&&t.s&&n.isOAuthProvider&&(c=pc(t.s,t.l,t.m,e,n,null,a,i.Z.SDK_VERSION||null,null,null,t.tenantId,t.u));var u=gi(c,o&&o.va,o&&o.ua);return r=r().then(function(){if(Vl(t),!s)return t.I().then(function(){})}).then(function(){return Pu(t.b,u,e,n,a,!!c,t.tenantId)}).then(function(){return new _e(function(n,i){t.na(e,null,new E("cancelled-popup-request"),t.g||null),t.f=n,t.C=i,t.g=a,t.c=Mu(t.b,t,e,u,a)})}).then(function(t){return u&&pi(u),t?Wi(t):null}).o(function(t){throw u&&pi(u),t}),jl(t,r,s)}function Ul(t,e,n,i,r){if(!Di())return Ie(new E("operation-not-supported-in-this-environment"));if(t.i&&!r)return Ie(t.i);var s=null,o=Zi(t.uid+":::");return i=i().then(function(){if(Vl(t),!r)return t.I().then(function(){})}).then(function(){return t.ga=o,Tl(t)}).then(function(e){return t.ha&&(e=(e=t.ha).b.set(Hl,t.w(),e.a)),e}).then(function(){return Lu(t.b,e,n,o,t.tenantId)}).o(function(e){if(s=e,t.ha)return Gl(t.ha);throw s}).then(function(){if(s)throw s}),jl(t,i,r)}function Vl(t){if(!t.b||!t.P)throw new E(t.b&&!t.P?"internal-error":"auth-domain-config-required")}function jl(t,e,n){var i=function(t,e,n){return t.i&&!n?(e.cancel(),Ie(t.i)):e.o(function(e){throw!e||"auth/user-disabled"!=e.code&&"auth/user-token-expired"!=e.code||(t.i||t.dispatchEvent(new rl("userInvalidated")),t.i=e),e})}(t,e,n);return t.N.push(i),i.oa(function(){$(t.N,i)}),i.o(function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=tl(e.w(),_l(t),w(t.jc,t))),n||e})}function Bl(t){if(!t.apiKey)return null;var e={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName,emulatorConfig:t.emulatorConfig},n={};if(!t.stsTokenManager||!t.stsTokenManager.accessToken)return null;n[$o]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null;var i=t.stsTokenManager.expirationTime;i&&(n.expiresIn=(i-Date.now())/1e3);var r=new pl(e,n,t);return t.providerData&&z(t.providerData,function(t){t&&Ol(r,Wi(t))}),t.redirectEventId&&(r.ga=t.redirectEventId),r}function zl(t){this.a=t,this.b=Wc()}Ju.prototype.Rc=function(t){var e=this;return t.tb(this.a.a,this.c).then(function(t){var n=gt(e.f);return delete n[Wu],delete n[Ku],vt(n,t),e.g(n)})},T(Xu,E),el.prototype.tb=function(t,e,n){return e.type==ss?function(t,e,n,i){return n.Ha().then(function(n){return n={idToken:n},void 0!==i&&(n.displayName=i),vt(n,{phoneVerificationInfo:Ps(t.a)}),Xa(e,Ia,n)})}(this,t,e,n):function(t,e,n){return n.Ha().then(function(n){return vt(n={mfaPendingCredential:n},{phoneVerificationInfo:Ps(t.a)}),Xa(e,ka,n)})}(this,t,e)},T(nl,el),T(il,nl),T(rl,Je),(t=sl.prototype).yc=function(t){ol(this,function(t){var e=[];return z(t.mfaInfo||[],function(t){(t=tr(t))&&e.push(t)}),e}(t.hd))},t.Sb=function(){return this.a.I().then(function(t){return new rs(t,null)})},t.fc=function(t,e){var n=this,i=this.a.a;return this.Sb().then(function(n){return t.tb(i,n,e)}).then(function(t){return Ll(n.a,t),n.a.reload()})},t.bd=function(t){var e=this,n="string"==typeof t?t:t.uid,i=this.a.a;return this.a.I().then(function(t){return Xa(i,Ka,{idToken:t,mfaEnrollmentId:n})}).then(function(t){var i=H(e.b,function(t){return t.uid!=n});return ol(e,i),Ll(e.a,t),e.a.reload().o(function(t){if("auth/user-token-expired"!=t.code)throw t})})},t.w=function(){return{multiFactor:{enrolledFactors:G(this.b,function(t){return t.w()})}}},al.prototype.start=function(){this.a=this.c,cl(this,!0)},al.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},ul.prototype.w=function(){return{apiKey:this.f.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:this.c}},ul.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?Ie(new E("user-token-expired")):t||!this.b||Date.now()>this.c-3e4?this.a?function(t,e){return function(t,e){return new _e(function(n,i){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?ra(t,t.l+"?key="+encodeURIComponent(t.c),function(t){t?t.error?i(ec(t)):t.access_token&&t.refresh_token?n(t):i(new E("internal-error")):i(new E("network-request-failed"))},"POST",Wn(e).toString(),t.g,t.m.get()):i(new E("internal-error"))})}(t.f,e).then(function(e){return t.b=jr(e.access_token),t.a=e.refresh_token,ll(t,e.expires_in),{accessToken:t.b.toString(),refreshToken:t.a}}).o(function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e})}(this,{grant_type:"refresh_token",refresh_token:this.a}):Ae(null):Ae({accessToken:this.b.toString(),refreshToken:this.a})},dl.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},T(pl,wn),pl.prototype.xa=function(t){this.za=t,ta(this.a,t)},pl.prototype.la=function(){return this.za},pl.prototype.Ga=function(){return K(this.aa)},pl.prototype.ib=function(){this.D.b&&(this.D.stop(),this.D.start())},$i(pl.prototype,"providerId","firebase"),(t=pl.prototype).reload=function(){var t=this;return jl(this,Il(this).then(function(){return Rl(t).then(function(){return Tl(t)}).then(Al)}))},t.oc=function(t){return this.I(t).then(function(t){return new $u(t)})},t.I=function(t){var e=this;return jl(this,Il(this).then(function(){return e.h.getToken(t)}).then(function(t){if(!t)throw new E("internal-error");return t.accessToken!=e.Aa&&(Sl(e,t.accessToken),e.dispatchEvent(new rl("tokenChanged"))),Nl(e,"refreshToken",t.refreshToken),t.accessToken}))},t.Kc=function(t){if(!(t=t.users)||!t.length)throw new E("internal-error");El(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=function(t){return(t=t.providerUserInfo)&&t.length?G(t,function(t){return new fl(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[]}(t),n=0;n<e.length;n++)Ol(this,e[n]);Nl(this,"isAnonymous",!(this.email&&t.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new rl("userReloaded",{hd:t}))},t.Lc=function(t){return Yi("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.ub(t)},t.ub=function(t){var e=this,n=null;return jl(this,t.c(this.a,this.uid).then(function(t){return Ll(e,t),n=Fl(e,t,"reauthenticate"),e.i=null,e.reload()}).then(function(){return n}),!0)},t.Cc=function(t){return Yi("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.rb(t)},t.rb=function(t){var e=this,n=null;return jl(this,Ml(this,t.providerId).then(function(){return e.I()}).then(function(n){return t.b(e.a,n)}).then(function(t){return n=Fl(e,t,"link"),Zl(e,t)}).then(function(){return n}))},t.Dc=function(t,e){var n=this;return jl(this,Ml(this,"phone").then(function(){return Qu(_l(n),t,e,w(n.rb,n))}))},t.Mc=function(t,e){var n=this;return jl(this,Ae().then(function(){return Qu(_l(n),t,e,w(n.ub,n))}),!0)},t.Cb=function(t){var e=this;return jl(this,this.I().then(function(n){return e.a.Cb(n,t)}).then(function(t){return Ll(e,t),e.reload()}))},t.ed=function(t){var e=this;return jl(this,this.I().then(function(n){return t.b(e.a,n)}).then(function(t){return Ll(e,t),e.reload()}))},t.Db=function(t){var e=this;return jl(this,this.I().then(function(n){return e.a.Db(n,t)}).then(function(t){return Ll(e,t),e.reload()}))},t.Eb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return Il(this);var e=this;return jl(this,this.I().then(function(n){return e.a.Eb(n,{displayName:t.displayName,photoUrl:t.photoURL})}).then(function(t){return Ll(e,t),Nl(e,"displayName",t.displayName||null),Nl(e,"photoURL",t.photoUrl||null),z(e.providerData,function(t){"password"===t.providerId&&($i(t,"displayName",e.displayName),$i(t,"photoURL",e.photoURL))}),Tl(e)}
1).then(Al))},t.cd=function(t){var e=this;return jl(this,Rl(this).then(function(n){return Q(kl(e),t)?function(t,e,n){return Xa(t,Ca,{idToken:e,deleteProvider:n})}(e.a,n,[t]).then(function(t){var n={};return z(t.providerUserInfo||[],function(t){n[t.providerId]=!0}),z(kl(e),function(t){n[t]||Dl(e,t)}),n[Rs.PROVIDER_ID]||$i(e,"phoneNumber",null),Tl(e)}):Tl(e).then(function(){throw new E("no-such-provider")})}))},t.delete=function(){var t=this;return jl(this,this.I().then(function(e){return Xa(t.a,Ta,{idToken:e})}).then(function(){t.dispatchEvent(new rl("userDeleted"))})).then(function(){for(var e=0;e<t.N.length;e++)t.N[e].cancel("app-deleted");ml(t,null),vl(t,null),bl(t,null),t.N=[],t.J=!0,xl(t),$i(t,"refreshToken",null),t.b&&Ou(t.b,t)})},t.Gb=function(t,e){return!!("linkViaPopup"==t&&(this.g||null)==e&&this.f||"reauthViaPopup"==t&&(this.g||null)==e&&this.f||"linkViaRedirect"==t&&(this.ga||null)==e||"reauthViaRedirect"==t&&(this.ga||null)==e)},t.na=function(t,e,n,i){"linkViaPopup"!=t&&"reauthViaPopup"!=t||i!=(this.g||null)||(n&&this.C?this.C(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},t.Fa=function(t,e){return"linkViaPopup"==t&&e==(this.g||null)?w(this.Lb,this):"reauthViaPopup"==t&&e==(this.g||null)?w(this.Mb,this):"linkViaRedirect"==t&&(this.ga||null)==e?w(this.Lb,this):"reauthViaRedirect"==t&&(this.ga||null)==e?w(this.Mb,this):null},t.Ec=function(t){var e=this;return ql(this,"linkViaPopup",t,function(){return Ml(e,t.providerId).then(function(){return Tl(e)})},!1)},t.Nc=function(t){return ql(this,"reauthViaPopup",t,function(){return Ae()},!0)},t.Fc=function(t){var e=this;return Ul(this,"linkViaRedirect",t,function(){return Ml(e,t.providerId)},!1)},t.Oc=function(t){return Ul(this,"reauthViaRedirect",t,function(){return Ae()},!0)},t.Lb=function(t,e,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var s=null;return jl(this,this.I().then(function(n){return va(r.a,{requestUri:t,postBody:i,sessionId:e,idToken:n})}).then(function(t){return s=Fl(r,t,"link"),Zl(r,t)}).then(function(){return s}))},t.Mb=function(t,e,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var s=null;return jl(this,Ae().then(function(){return cs(ya(r.a,{requestUri:t,sessionId:e,postBody:i,tenantId:n}),r.uid)}).then(function(t){return s=Fl(r,t,"reauthenticate"),Ll(r,t),r.i=null,r.reload()}).then(function(){return s}),!0)},t.vb=function(t){var e=this,n=null;return jl(this,this.I().then(function(e){return n=e,void 0===t||pt(t)?{}:qr(new kr(t))}).then(function(t){return e.a.vb(n,t)}).then(function(t){if(e.email!=t)return e.reload()}).then(function(){}))},t.Fb=function(t,e){var n=this,i=null;return jl(this,this.I().then(function(t){return i=t,void 0===e||pt(e)?{}:qr(new kr(e))}).then(function(e){return n.a.Fb(i,t,e)}).then(function(t){if(n.email!=t)return n.reload()}).then(function(){}))},t.jc=function(t){var e=null,n=this;
1return jl(this,t=cs(Ae(t),n.uid).then(function(t){return e=Fl(n,t,"reauthenticate"),Ll(n,t),n.i=null,n.reload()}).then(function(){return e}),!0)},t.toJSON=function(){return this.w()},t.w=function(){var t={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.s,stsTokenManager:this.h.w(),redirectEventId:this.ga||null};return this.metadata&&vt(t,this.metadata.w()),z(this.providerData,function(e){t.providerData.push(function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}(e))}),vt(t,this.S.w()),t};var Hl={name:"redirectUser",F:"session"};function Gl(t){return tu(t.b,Hl,t.a)}function Yl(t){this.a=t,this.b=Wc(),this.c=null,this.f=function(t){var e=Jl("local"),n=Jl("session"),i=Jl("none");return function(t,e,n){var i=Xc(e,n),r=Kc(t,e.F);return t.get(e,n).then(function(s){var o=null;try{o=Fi(a.localStorage.getItem(i))}catch(c){}if(o&&!s)return a.localStorage.removeItem(i),t.set(e,o,n);o&&s&&"localStorage"!=r.type&&a.localStorage.removeItem(i)})}(t.b,e,t.a).then(function(){return t.b.get(n,t.a)}).then(function(r){return r?n:t.b.get(i,t.a).then(function(n){return n?i:t.b.get(e,t.a).then(function(n){return n?e:t.b.get($l,t.a).then(function(t){return t?Jl(t):e})})})}).then(function(e){return t.c=e,Ql(t,e.F)}).o(function(){t.c||(t.c=e)})}(this),this.b.addListener(Jl("local"),this.a,w(this.g,this))}function Ql(t,e){var n,i=[];for(n in $c)$c[n]!==e&&i.push(tu(t.b,Jl($c[n]),t.a));return i.push(tu(t.b,$l,t.a)),function(t){return new _e(function(e,n){var i=t.length,r=[];if(i)for(var s=function(t,n){i--,r[t]=n,0==i&&e(r)},o=function(t){n(t)},a=0;a<t.length;a++)ke(t[a],x(s,a),o);else e(r)})}(i)}Yl.prototype.g=function(){var t=this,e=Jl("local");th(this,function(){return Ae().then(function(){return t.c&&"local"!=t.c.F?t.b.get(e,t.a):null}).then(function(n){if(n)return Ql(t,"local").then(function(){t.c=e})})})};var $l={name:"persistence",F:"session"};function Jl(t){return{name:"authUser",F:t}}function Wl(t,e){return th(t,function(){return t.b.set(t.c,e.w(),t.a)})}function Kl(t){return th(t,function(){return tu(t.b,t.c,t.a)})}function Xl(t,e,n){return th(t,function(){return t.b.get(t.c,t.a).then(function(t){return t&&e&&(t.authDomain=e),t&&n&&(t.emulatorConfig=n),Bl(t||{})})})}function th(t,e){return t.f=t.f.then(e,e),t.f}function eh(t){if(this.l=!1,$i(this,"settings",new Gu),$i(this,"app",t),!uh(this).options||!uh(this).options.apiKey)throw new E("invalid-api-key");t=i.Z.SDK_VERSION?Ai(i.Z.SDK_VERSION):null,this.a=new Yo(uh(this).options&&uh(this).options.apiKey,N(I),t),this.P=[],this.s=[],this.N=[],this.Pa=i.Z.INTERNAL.createSubscribe(w(this.zc,this)),this.W=void 0,this.ib=i.Z.INTERNAL.createSubscribe(w(this.Ac,this)),ah(this,null),this.i=new Yl(uh(this).options.apiKey+":"+uh(this).name),this.D=new zl(uh(this).options.apiKey+":"+uh(this).name),this.$=fh(this,function(t){var e=uh(t).options.authDomain,n=function(t){var e=function(t,e){return t.b.get(Hl,t.a).then(function(t){return t&&e&&(t.authDomain=e),Bl(t||{})})}(t.D,uh(t).options.authDomain).then(function(e){return(t.m=e)&&(e.ha=t.D),Gl(t.D)});return fh(t,e)}(t).then(function(){return Xl(t.i,e,t.R)}).then(function(e){return e?(e.ha=t.D,t.m&&(t.m.ga||null)==(e.ga||null)?e:e.reload().then(function(){return Wl(t.i,e).then(function(){return e})}).o(function(n){return"auth/network-request-failed"==n.code?e:Kl(t.i)})):null}).then(function(e){ah(t,e||null)});return fh(t,n)}(this)),this.h=fh(this,function(t){return t.$.then(function(){return oh(t)}).o(function(){}).then(function(){if(!t.l)return t.ja()}).o(function(){}).then(function(){if(!t.l){t.ba=!0;var e=t.i;e.b.addListener(Jl("local"),e.a,t.ja)}})}(this)),this.ba=!1,this.ja=w(this.Zc,this),this.Ba=w(this.da,this),this.qa=w(this.mc,this),this.za=w(this.wc,this),this.Aa=w(this.xc,this),this.b=null,function(t){var e=uh(t).options.authDomain,n=uh(t).options.apiKey;e&&Di()&&(t.Oa=t.$.then(function(){if(!t.l){if(t.b=qu(e,n,uh(t).name,t.R),ku(t.b,t),lh(t)&&Cl(lh(t)),t.m){Cl(t.m);var i=t.m;i.xa(t.la()),ml(i,t),yl(i=t.m,t.J),bl(i,t),gl(i=t.m,t.R),vl(i,t),t.m=null}return t.b}}))}(this),this.INTERNAL={},this.INTERNAL.delete=w(this.delete,this),this.INTERNAL.logFramework=w(this.Gc,this),this.u=0,wn.call(this),function(t){Object.defineProperty(t,"lc",{get:function(){return this.la()},set:function(t){this.xa(t)},enumerable:!1}),t.aa=null,Object.defineProperty(t,"ti",{get:function(){return this.T()},set:function(t){this.zb(t)},enumerable:!1}),t.S=null,Object.defineProperty(t,"emulatorConfig",{get:function(){if(this.R){var t=qn(this.R.url);t=Wi({protocol:t.c,host:t.a,port:t.g,options:Wi({disableWarnings:this.R.ec})})}else t=null;return t},enumerable:!1})}(this),this.J=[],this.R=null}function nh(t){Je.call(this,"languageCodeChanged"),this.h=t}function ih(t){Je.call(this,"emulatorConfigChanged"),this.c=t}function rh(t){Je.call(this,"frameworkChanged"),this.f=t}function sh(t){return t.Oa||Ie(new E("auth-domain-config-required"))}function oh(t){if(!Di())return Ie(new E("operation-not-supported-in-this-environment"));var e=sh(t).then(function(){return t.b.ra()}).then(function(t){return t?Wi(t):null});return fh(t,e)}function ah(t,e){lh(t)&&(function(t,e){J(t.W,function(t){return t==e})}(lh(t),t.Ba),dn(lh(t),"tokenChanged",t.qa),dn(lh(t),"userDeleted",t.za),dn(lh(t),"userInvalidated",t.Aa),xl(lh(t))),e&&(e.W.push(t.Ba),un(e,"tokenChanged",t.qa),un(e,"userDeleted",t.za),un(e,"userInvalidated",t.Aa),0<t.u&&wl(e)),$i(t,"currentUser",e),e&&(e.xa(t.la()),ml(e,t),yl(e,t.J),bl(e,t),gl(e,t.R),vl(e,t))}function ch(t,e){var n=null,i=null;return fh(t,e.then(function(e){return n=Ms(e),i=Qr(e),function(t,e){var n={};return n.apiKey=uh(t).options.apiKey,n.authDomain=uh(t).options.authDomain,n.appName=uh(t).name,t.R&&(n.emulatorConfig=t.R),t.$.then(function(){return function(t,e,n,i){var r=new pl(t,e);return n&&(r.ha=n),i&&yl(r,i),r.reload().then(function(){return r})}(n,e,t.D,t.Ga())}).then(function(e){return lh(t)&&e.uid==lh(t).uid?(Pl(lh(t),e),t.da(e)):(ah(t,e),Cl(e),t.da(e))}).then(function(){dh(t)})}(t,e)},function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=tl(e.w(),t,w(t.kc,t))),n||e}).then(function(){return Wi({user:lh(t),credential:n,additionalUserInfo:i,operationType:"signIn"})}))}function uh(t){return t.app}function lh(t){return t.currentUser}function hh(t){return lh(t)&&lh(t)._lat||null}function dh(t){if(t.ba){for(var e=0;e<t.s.length;e++)t.s[e]&&t.s[e](hh(t));if(t.W!==t.getUid()&&t.N.length)for(t.W=t.getUid(),e=0;e<t.N.length;e++)t.N[e]&&t.N[e](hh(t))}}function fh(t,e){return t.P.push(e),e.oa(function(){$(t.P,e)}),e}function ph(){}function gh(){this.a={},this.b=1e12}Yl.prototype.yb=function(t){var e=null,n=this;return function(t){var e=new E("invalid-persistence-type"),n=new E("unsupported-persistence-type");t:{for(i in $c)if($c[i]==t){var i=!0;break t}i=!1}if(!i||"string"!=typeof t)throw e;switch(xi()){case"ReactNative":if("session"===t)throw n;break;case"Node":if("none"!==t)throw n;break;case"Worker":if("session"===t||!Ic()&&"none"!==t)throw n;break;default:if(!Oi()&&"none"!==t)throw n}}(t),th(this,function(){return t!=n.c.F?n.b.get(n.c,n.a).then(function(i){return e=i,Ql(n,t)}).then(function(){if(n.c=Jl(t),e)return n.b.set(n.c,e,n.a)}):Ae()})},T(eh,wn),T(nh,Je),T(ih,Je),T(rh,Je),(t=eh.prototype).yb=function(t){return fh(this,t=this.i.yb(t))},t.xa=function(t){this.aa===t||this.l||(this.aa=t,ta(this.a,this.aa),this.dispatchEvent(new nh(this.la())))},t.la=function(){return this.aa},t.fd=function(){var t=a.navigator;this.xa(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)},t.gd=function(t,e){if(!this.R){if(!/^https?:\/\//.test(t))throw new E("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");(function(t){"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),a.document&&!t&&yi().then(function(){var t=a.document.createElement("div");t.innerText="Running in emulator mode. Do not use with production credentials.",t.style.position="fixed",t.style.width="100%",t.style.backgroundColor="#ffffff",t.style.border=".1em solid #000000",t.style.color="#b50000",t.style.bottom="0px",t.style.left="0px",t.style.margin="0px",t.style.zIndex=1e4,t.style.textAlign="center",t.classList.add("firebase-emulator-warning"),a.document.body.appendChild(t)})})(e=!!e&&!!e.disableWarnings),this.R={url:t,ec:e},this.settings.jb=!0,ea(this.a,this.R),this.dispatchEvent(new ih(this.R))}},t.Gc=function(t){this.J.push(t),ia(this.a,i.Z.SDK_VERSION?Ai(i.Z.SDK_VERSION,this.J):null),this.dispatchEvent(new rh(this.J))},t.Ga=function(){return K(this.J)},t.zb=function(t){this.S===t||this.l||(this.S=t,this.a.b=this.S)},t.T=function(){return this.S},t.toJSON=function(){return{apiKey:uh(this).options.apiKey,authDomain:uh(this).options.authDomain,appName:uh(this).name,currentUser:lh(this)&&lh(this).w()}},t.Gb=function(t,e){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==e&&!!this.f;default:return!1}},t.na=function(t,e,n,i){"signInViaPopup"==t&&this.g==i&&(n&&this.C?this.C(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},t.Fa=function(t,e){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.g==e&&this.f?w(this.ic,this):null},t.ic=function(t,e,n,i){var r=this,s={requestUri:t,postBody:i,sessionId:e,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),r.$.then(function(){return ch(r,ma(r.a,s))})},t.Xc=function(t){if(!Di())return Ie(new E("operation-not-supported-in-this-environment"));var e=this,n=Yr(t.providerId),r=Zi(),s=null;(!Ri()||_i())&&uh(this).options.authDomain&&t.isOAuthProvider&&(s=pc(uh(this).options.authDomain,uh(this).options.apiKey,uh(this).name,"signInViaPopup",t,null,r,i.Z.SDK_VERSION||null,null,null,this.T(),this.R));var o=gi(s,n&&n.va,n&&n.ua);return fh(this,n=sh(this).then(function(n){return Pu(n,o,"signInViaPopup",t,r,!!s,e.T())}).then(function(){return new _e(function(t,n){e.na("signInViaPopup",null,new E("cancelled-popup-request"),e.g),e.f=t,e.C=n,e.g=r,e.c=Mu(e.b,e,"signInViaPopup",o,r)})}).then(function(t){return o&&pi(o),t?Wi(t):null}).o(function(t){throw o&&pi(o),t}))},t.Yc=function(t){if(!Di())return Ie(new E("operation-not-supported-in-this-environment"));var e=this;return fh(this,sh(this).then(function(){return function(t){return th(t,function(){return t.b.set($l,t.c.F,t.a)})}(e.i)}).then(function(){return Lu(e.b,"signInViaRedirect",t,void 0,e.T())}))},t.ra=function(){var t=this;return oh(this).then(function(e){return t.b&&ju(t.b.b),e}).o(function(e){throw t.b&&ju(t.b.b),e})},t.dd=function(t){if(!t)return Ie(new E("null-user"));if(this.S!=t.tenantId)return Ie(new E("tenant-id-mismatch"));var e=this,n={};n.apiKey=uh(this).options.apiKey,n.authDomain=uh(this).options.authDomain,n.appName=uh(this).name;var i=function(t,e,n,i){var r=t.h,s={};return s[$o]=r.b&&r.b.toString(),s.refreshToken=r.a,e=new pl(e||{apiKey:t.l,authDomain:t.s,appName:t.m},s),n&&(e.ha=n),i&&yl(e,i),Pl(e,t),e}(t,n,e.D,e.Ga());return fh(this,this.h.then(function(){if(uh(e).options.apiKey!=t.l)return i.reload()}).then(function(){return lh(e)&&t.uid==lh(e).uid?(Pl(lh(e),t),e.da(t)):(ah(e,i),Cl(i),e.da(i))}).then(function(){dh(e)}))},t.Bb=function(){var t=this;return fh(this,this.h.then(function(){return t.b&&ju(t.b.b),lh(t)?(ah(t,null),Kl(t.i).then(function(){dh(t)})):Ae()}))},t.Zc=function(){var t=this;return Xl(this.i,uh(this).options.authDomain).then(function(e){if(!t.l){var n;if(n=lh(t)&&e){n=lh(t).uid;var i=e.uid;n=null!=n&&""!==n&&null!=i&&""!==i&&n==i}if(n)return Pl(lh(t),e),lh(t).I();(lh(t)||e)&&(ah(t,e),e&&(Cl(e),e.ha=t.D),t.b&&ku(t.b,t),dh(t))}})},t.da=function(t){return Wl(this.i,t)},t.mc=function(){dh(this),this.da(lh(this))},t.wc=function(){this.Bb()},t.xc=function(){this.Bb()},t.kc=function(t){var e=this;return this.h.then(function(){return ch(e,Ae(t))})},t.zc=function(t){var e=this;this.addAuthTokenListener(function(){t.next(lh(e))})},t.Ac=function(t){var e=this;!function(t,e){t.N.push(e),fh(t,t.h.then(function(){!t.l&&Q(t.N,e)&&t.W!==t.getUid()&&(t.W
1=t.getUid(),e(hh(t)))}))}(this,function(){t.next(lh(e))})},t.Ic=function(t,e,n){var i=this;return this.ba&&Promise.resolve().then(function(){"function"==typeof t?t(lh(i)):"function"==typeof t.next&&t.next(lh(i))}),this.Pa(t,e,n)},t.Hc=function(t,e,n){var i=this;return this.ba&&Promise.resolve().then(function(){i.W=i.getUid(),"function"==typeof t?t(lh(i)):"function"==typeof t.next&&t.next(lh(i))}),this.ib(t,e,n)},t.nc=function(t){var e=this;return fh(this,this.h.then(function(){return lh(e)?lh(e).I(t).then(function(t){return{accessToken:t}}):null}))},t.Tc=function(t){var e=this;return this.h.then(function(){return ch(e,Xa(e.a,Ya,{token:t}))}).then(function(t){var n=t.user;return Nl(n,"isAnonymous",!1),e.da(n),t})},t.Uc=function(t,e){var n=this;return this.h.then(function(){return ch(n,Xa(n.a,Qa,{email:t,password:e}))})},t.dc=function(t,e){var n=this;return this.h.then(function(){return ch(n,Xa(n.a,xa,{email:t,password:e}))})},t.ab=function(t){var e=this;return this.h.then(function(){return ch(e,t.ka(e.a))})},t.Sc=function(t){return Yi("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.ab(t)},t.Ab=function(){var t=this;return this.h.then(function(){var e=lh(t);if(e&&e.isAnonymous){var n=Wi({providerId:null,isNewUser:!1});return Wi({user:e,credential:null,additionalUserInfo:n,operationType:"signIn"})}return ch(t,t.a.Ab()).then(function(e){var n=e.user;return Nl(n,"isAnonymous",!0),t.da(n),e})})},t.getUid=function(){return lh(this)&&lh(this).uid||null},t.cc=function(t){this.addAuthTokenListener(t),this.u++,0<this.u&&lh(this)&&wl(lh(this))},t.Pc=function(t){var e=this;z(this.s,function(n){n==t&&e.u--}),0>this.u&&(this.u=0),0==this.u&&lh(this)&&xl(lh(this)),this.removeAuthTokenListener(t)},t.addAuthTokenListener=function(t){var e=this;this.s.push(t),fh(this,this.h.then(function(){e.l||Q(e.s,t)&&t(hh(e))}))},t.removeAuthTokenListener=function(t){J(this.s,function(e){return e==t})},t.delete=function(){this.l=!0;for(var t=0;t<this.P.length;t++)this.P[t].cancel("app-deleted");return this.P=[],this.i&&(t=this.i).b.removeListener(Jl("local"),t.a,this.ja),this.b&&(Ou(this.b,this),ju(this.b.b)),Promise.resolve()},t.hc=function(t){return fh(this,function(t,e){return Xa(t,Sa,{identifier:e,continueUri:Ni()?li():"http://localhost"}).then(function(t){return t.signinMethods||[]})}(this.a,t))},t.Bc=function(t){return!!Os(t)},t.xb=function(t,e){var n=this;return fh(this,Ae().then(function(){var t=new kr(e);if(!t.c)throw new E("argument-error",Nr+" must be true when sending sign in link to email");return qr(t)}).then(function(e){return n.a.xb(t,e)}).then(function(){}))},t.jd=function(t){return this.Sa(t).then(function(t){return t.data.email})},t.ob=function(t,e){return fh(this,this.a.ob(t,e).then(function(){}))},t.Sa=function(t){return fh(this,this.a.Sa(t).then(function(t){return new or(t)}))},t.kb=function(t){return fh(this,this.a.kb(t).then(function(){}))},t.wb=function(t,e){var n=this;return fh(this,Ae().then(function(){return void 0===e||pt(e)?{}:qr(new kr(e))}).then(function(e){return n.a.wb(t,e)}).then(function(){}))},t.Wc=function(t,e){return fh(this,Qu(this,t,e,w(this.ab,this)))},t.Vc=function(t,e){var n=this;return fh(this,Ae().then(function(){var i=e||li(),r=ks(t,i);if(!(i=Os(i)))throw new E("argument-error","Invalid email link!");if(i.tenantId!==n.T())throw new E("tenant-id-mismatch");return n.ab(r)}))},ph.prototype.render=function(){},ph.prototype.reset=function(){},ph.prototype.getResponse=function(){},ph.prototype.execute=function(){};var mh=null;function vh(t,e){return(e=yh(e))&&t.a[e]||null}function yh(t){return(t=void 0===t?1e12:t)?t.toString():null}function bh(t,e){this.g=!1,this.c=e,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=ce(t);var n=this;this.i=function(){n.execute()},this.h?this.execute():un(this.f,"click",this.i)}function _h(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function wh(){}function xh(){}gh.prototype.render=function(t,e){return this.a[this.b.toString()]=new bh(t,e),this.b++},gh.prototype.reset=function(t){var e=vh(this,t);t=yh(t),e&&t&&(e.delete(),delete this.a[t])},gh.prototype.getResponse=function(t){return(t=vh(this,t))?t.getResponse():null},gh.prototype.execute=function(t){(t=vh(this,t))&&t.execute()},bh.prototype.getResponse=function(){return _h(this),this.b},bh.prototype.execute=function(){_h(this);var t=this;this.a||(this.a=setTimeout(function(){t.b=function(){for(var t=50,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}();var e=t.c.callback,n=t.c["expired-callback"];if(e)try{e(t.b)}catch(i){}t.a=setTimeout(function(){if(t.a=null,t.b=null,n)try{n()}catch(i){}t.h&&t.execute()},6e4)},500))},bh.prototype.delete=function(){_h(this),this.g=!0,clearTimeout(this.a),this.a=null,dn(this.f,"click",this.i)},$i(wh,"FACTOR_ID","phone"),xh.prototype.g=function(){return mh||(mh=new gh),Ae(mh)},xh.prototype.c=function(){};var Sh=null;
1function Th(){this.b=a.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var Ch=new bt(St,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Eh=new Vi(3e4,6e4);Th.prototype.g=function(t){var e=this;return new _e(function(n,i){var r=setTimeout(function(){i(new E("network-request-failed"))},Eh.get());!a.grecaptcha||t!==e.f&&!e.b?(a[e.a]=function(){if(a.grecaptcha){e.f=t;var s=a.grecaptcha.render;a.grecaptcha.render=function(t,n){return t=s(t,n),e.b++,t},clearTimeout(r),n(a.grecaptcha)}else clearTimeout(r),i(new E("internal-error"));delete a[e.a]},Ae(Uo(At(Ch,{onload:e.a,hl:t||""}))).o(function(){clearTimeout(r),i(new E("internal-error","Unable to load external reCAPTCHA dependencies!"))})):(clearTimeout(r),n(a.grecaptcha))})},Th.prototype.c=function(){this.b--};var Ah=null;function Ih(t,e,n,i,r,s,o){if($i(this,"type","recaptcha"),this.c=this.f=null,this.J=!1,this.v=e,this.g=null,o?(Sh||(Sh=new xh),o=Sh):(Ah||(Ah=new Th),o=Ah),this.m=o,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Dh])throw new E("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Nh],!a.document)throw new E("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!ce(e)||!this.i&&ce(e).hasChildNodes())throw new E("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new Yo(t,s||null,r||null),this.u=i||function(){return null};var c=this;this.l=[];var u=this.a[kh];this.a[kh]=function(t){if(Ph(c,t),"function"==typeof u)u(t);else if("string"==typeof u){var e=ki(u,a);"function"==typeof e&&e(t)}};var l=this.a[Oh];this.a[Oh]=function(){if(Ph(c,null),"function"==typeof l)l();else if("string"==typeof l){var t=ki(l,a);"function"==typeof t&&t()}}}var kh="callback",Oh="expired-callback",Dh="sitekey",Nh="size";function Ph(t,e){for(var n=0;n<t.l.length;n++)try{t.l[n](e)}catch(i){}}function Rh(t,e){return t.h.push(e),e.oa(function(){$(t.h,e)}),e}function Lh(t){if(t.J)throw new E("internal-error","RecaptchaVerifier instance has been destroyed.")}function Mh(t,e,n){var r=!1;try{this.b=n||i.Z.app()}catch(a){throw new E("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new E("invalid-api-key");n=this.b.options.apiKey;var s=this,o=null;try{o=this.b.auth().Ga()}catch(a){}try{r=this.b.auth().settings.appVerificationDisabledForTesting}catch(a){}o=i.Z.SDK_VERSION?Ai(i.Z.SDK_VERSION,o):null,Ih.call(this,n,t,e,function(){try{var t=s.b.auth().la()}catch(e){t=null}return t},o,N(I),r)}function Fh(t,e,n,i){t:{n=Array.prototype.slice.call(n);for(var r=0,s=!1,o=0;o<e.length;o++)if(e[o].optional)s=!0;else{if(s)throw new E("internal-error","Argument validator encountered a required argument after an optional argument.");r++}if(s=e.length,n.length<r||s<n.length)i="Expected "+(r==s?1==r?"1 argument":r+" arguments":r+"-"+s+" arguments")+" but got "+n.length+".";else{for(r=0;r<n.length;r++)if(s=e[r].optional&&void 0===n[r],!e[r].M(n[r])&&!s){if(e=e[r],0>r||r>=Zh.length)throw new E("internal-error","Argument validator received an unsupported number of arguments.");n=Zh[r],i=(i?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.K+".";break t}i=null}}if(i)throw new E("argument-error",t+" failed: "+i)}(t=Ih.prototype).Ia=function(){var t=this;return this.f?this.f:this.f=Rh(this,Ae().then(function(){if(Ni()&&!wi())return yi();throw new E("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return t.m.g(t.u())}).then(function(e){return t.g=e,Xa(t.s,Ma,{})}).then(function(e){t.a[Dh]=e.recaptchaSiteKey}).o(function(e){throw t.f=null,e}))},t.render=function(){Lh(this);var t=this;return Rh(this,this.Ia().then(function(){if(null===t.c){var e=t.v;if(!t.i){var n=ce(e);e=function(t,e,n){var i=arguments,r=document,s=String(i[0]),o=i[1];if(!ae&&o&&(o.name||o.type)){if(s=["<",s],o.name&&s.push(' name="',zt(o.name),'"'),o.type){s.push(' type="',zt(o.type),'"');var a={};vt(a,o),delete a.type,o=a}s.push(">"),s=s.join("")}return s=pe(r,s),o&&("string"==typeof o?s.className=o:Array.isArray(o)?s.className=o.join(" "):ue(s,o)),2<i.length&&fe(r,s,i),s}("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c}))},t.verify=function(){Lh(this);var t=this;return Rh(this,this.render().then(function(e){return new _e(function(n){var i=t.g.getResponse(e);if(i)n(i);else{var r=function(e){e&&(function(t,e){J(t.l,function(t){return t==e})}(t,r),n(e))};t.l.push(r),t.i&&t.g.execute(t.c)}})}))},t.reset=function(){Lh(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){Lh(this),this.J=!0,this.m.c();for(var t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){t=ce(this.v);for(var e;e=t.firstChild;)t.removeChild(e)}},T(Mh,Ih);var Zh="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function qh(t,e){return{name:t||"",K:"a valid string",optional:!!e,M:function(t){return"string"==typeof t}}}function Uh(t,e){return{name:t||"",K:"a boolean",optional:!!e,M:function(t){return"boolean"==typeof t}}}function Vh(t,e){return{name:t||"",K:"a valid object",optional:!!e,M:g}}function jh(t,e){return{name:t||"",K:"a function",optional:!!e,M:function(t){return"function"==typeof t}}}function Bh(t,e){return{name:t||"",K:"null",optional:!!e,M:function(t){return null===t}}}function zh(t){return{name:t?t+"Credential":"credential",K:t?"a valid "+t+" credential":"a valid credential",optional:!1,M:function(e){return!!e&&!(!e.ka||t&&e.providerId!==t)}}}function Hh(t,e){return g(t)&&"string"==typeof t.type&&t.type===e&&"function"==typeof t.Ha}function Gh(t){return g(t)&&"string"==typeof t.uid}function Yh(t,e,n,i){return{name:n||"",K:t.K+" or "+e.K,optional:!!i,M:function(n){return t.M(n)||e.M(n)}}}function Qh(t,e){for(var n in e){var i=e[n].name;t[i]=Wh(i,t[n],e[n].j)}}function $h(t,e){for(var n in e){var i=e[n].name;i!==n&&Object.defineProperty(t,i,{get:x(function(t){return this[t]}
1,n),set:x(function(t,e,n,i){Fh(t,[n],[i],!0),this[e]=i},i,n,e[n].lb),enumerable:!0})}}function Jh(t,e,n,i){t[e]=Wh(e,n,i)}function Wh(t,e,n){function i(){var t=Array.prototype.slice.call(arguments);return Fh(s,n,t),e.apply(this,t)}if(!n)return e;var r,s=function(t){return(t=t.split("."))[t.length-1]}(t);for(r in e)i[r]=e[r];for(r in e.prototype)i.prototype[r]=e.prototype[r];return i}Qh(eh.prototype,{kb:{name:"applyActionCode",j:[qh("code")]},Sa:{name:"checkActionCode",j:[qh("code")]},ob:{name:"confirmPasswordReset",j:[qh("code"),qh("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[qh("email"),qh("password")]},hc:{name:"fetchSignInMethodsForEmail",j:[qh("email")]},ra:{name:"getRedirectResult",j:[]},Bc:{name:"isSignInWithEmailLink",j:[qh("emailLink")]},Hc:{name:"onAuthStateChanged",j:[Yh(Vh(),jh(),"nextOrObserver"),jh("opt_error",!0),jh("opt_completed",!0)]},Ic:{name:"onIdTokenChanged",j:[Yh(Vh(),jh(),"nextOrObserver"),jh("opt_error",!0),jh("opt_completed",!0)]},wb:{name:"sendPasswordResetEmail",j:[qh("email"),Yh(Vh("opt_actionCodeSettings",!0),Bh(null,!0),"opt_actionCodeSettings",!0)]},xb:{name:"sendSignInLinkToEmail",j:[qh("email"),Vh("actionCodeSettings")]},yb:{name:"setPersistence",j:[qh("persistence")]},Sc:{name:"signInAndRetrieveDataWithCredential",j:[zh()]},Ab:{name:"signInAnonymously",j:[]},ab:{name:"signInWithCredential",j:[zh()]},Tc:{name:"signInWithCustomToken",j:[qh("token")]},Uc:{name:"signInWithEmailAndPassword",j:[qh("email"),qh("password")]},Vc:{name:"signInWithEmailLink",j:[qh("email"),qh("emailLink",!0)]},Wc:{name:"signInWithPhoneNumber",j:[qh("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Xc:{name:"signInWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Yc:{name:"signInWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},dd:{name:"updateCurrentUser",j:[Yh({name:"user",K:"an instance of Firebase User",optional:!1,M:function(t){return!!(t&&t instanceof pl)}},Bh(),"user")]},Bb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[qh(null,!0)]},fd:{name:"useDeviceLanguage",j:[]},gd:{name:"useEmulator",j:[qh("url"),Vh("options",!0)]},jd:{name:"verifyPasswordResetCode",j:[qh("code")]}}),$h(eh.prototype,{lc:{name:"languageCode",lb:Yh(qh(),Bh(),"languageCode")},ti:{name:"tenantId",lb:Yh(qh(),Bh(),"tenantId")}}),(eh.Persistence=$c).LOCAL="local",eh.Persistence.SESSION="session",eh.Persistence.NONE="none",Qh(pl.prototype,{delete:{name:"delete",j:[]},oc:{name:"getIdTokenResult",j:[Uh("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Uh("opt_forceRefresh",!0)]},Cc:{name:"linkAndRetrieveDataWithCredential",j:[zh()]},rb:{name:"linkWithCredential",j:[zh()]},Dc:{name:"linkWithPhoneNumber",j:[qh("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Ec:{name:"linkWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Fc:{name:"linkWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Lc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[zh()]},ub:{name:"reauthenticateWithCredential",j:[zh()]},Mc:{name:"reauthenticateWithPhoneNumber",j:[qh("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Nc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Oc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},vb:{name:"sendEmailVerification",j:[Yh(Vh("opt_actionCodeSettings",!0),Bh(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[qh(null,!0)]},cd:{name:"unlink",j:[qh("provider")]},Cb:{name:"updateEmail",j:[qh("email")]},Db:{name:"updatePassword",j:[qh("password")]},ed:{name:"updatePhoneNumber",j:[zh("phone")]},Eb:{name:"updateProfile",j:[Vh("profile")]},Fb:{name:"verifyBeforeUpdateEmail",j:[qh("email"),Yh(Vh("opt_actionCodeSettings",!0),Bh(null,!0),"opt_actionCodeSettings",!0)]}}),Qh(gh.prototype,{execute:{name:"execute"},render:{name:"render"}
1,reset:{name:"reset"},getResponse:{name:"getResponse"}}),Qh(ph.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Qh(_e.prototype,{oa:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),$h(Gu.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",lb:Uh("appVerificationDisabledForTesting")}}),Qh(Yu.prototype,{confirm:{name:"confirm",j:[qh("verificationCode")]}}),Jh(as,"fromJSON",function(t){t="string"==typeof t?JSON.parse(t):t;for(var e,n=[ps,As,Ns,hs],i=0;i<n.length;i++)if(e=n[i](t))return e;return null},[Yh(qh(),Vh(),"json")]),Jh(Is,"credential",function(t,e){return new Es(t,e)},[qh("email"),qh("password")]),Qh(Es.prototype,{w:{name:"toJSON",j:[qh(null,!0)]}}),Qh(ys.prototype,{Ca:{name:"addScope",j:[qh("scope")]},Ka:{name:"setCustomParameters",j:[Vh("customOAuthParameters")]}}),Jh(ys,"credential",bs,[Yh(qh(),Vh(),"token")]),Jh(Is,"credentialWithLink",ks,[qh("email"),qh("emailLink")]),Qh(_s.prototype,{Ca:{name:"addScope",j:[qh("scope")]},Ka:{name:"setCustomParameters",j:[Vh("customOAuthParameters")]}}),Jh(_s,"credential",ws,[Yh(qh(),Vh(),"token")]),Qh(xs.prototype,{Ca:{name:"addScope",j:[qh("scope")]},Ka:{name:"setCustomParameters",j:[Vh("customOAuthParameters")]}}),Jh(xs,"credential",Ss,[Yh(qh(),Yh(Vh(),Bh()),"idToken"),Yh(qh(),Bh(),"accessToken",!0)]),Qh(Ts.prototype,{Ka:{name:"setCustomParameters",j:[Vh("customOAuthParameters")]}}),Jh(Ts,"credential",Cs,[Yh(qh(),Vh(),"token"),qh("secret",!0)]),Qh(vs.prototype,{Ca:{name:"addScope",j:[qh("scope")]},credential:{name:"credential",j:[Yh(qh(),Yh(Vh(),Bh()),"optionsOrIdToken"),Yh(qh(),Bh(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[Vh("customOAuthParameters")]}}),Qh(ds.prototype,{w:{name:"toJSON",j:[qh(null,!0)]}}),Qh(us.prototype,{w:{name:"toJSON",j:[qh(null,!0)]}}),Jh(Rs,"credential",Ls,[qh("verificationId"),qh("verificationCode")]),Qh(Rs.prototype,{gb:{name:"verifyPhoneNumber",j:[Yh(qh(),{name:"phoneInfoOptions",K:"valid phone info options",optional:!1,M:function(t){return!!t&&(t.session&&t.phoneNumber?Hh(t.session,ss)&&"string"==typeof t.phoneNumber:t.session&&t.multiFactorHint?Hh(t.session,os)&&Gh(t.multiFactorHint):t.session&&t.multiFactorUid?Hh(t.session,os)&&"string"==typeof t.multiFactorUid:!!t.phoneNumber&&"string"==typeof t.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]}}),Qh(Ds.prototype,{w:{name:"toJSON",j:[qh(null,!0)]}}),Qh(E.prototype,{toJSON:{name:"toJSON",j:[qh(null,!0)]}}),Qh(zs.prototype,{toJSON:{name:"toJSON",j:[qh(null,!0)]}}),Qh(Bs.prototype,{toJSON:{name:"toJSON",j:[qh(null,!0)]}}),Qh(Xu.prototype,{toJSON:{name:"toJSON",j:[qh(null,!0)]}}),Qh(Ju.prototype,{Rc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(t){return!!t&&!!t.tb}}]}}),Qh(sl.prototype,{Sb:{name:"getSession",j:[]},fc:{name:"enroll",j:[{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(t){return!!t&&!!t.tb}},qh("displayName",!0)]},bd:{name:"unenroll",j:[Yh({name:"multiFactorInfo",K:"a valid multiFactorInfo",optional:!1,M:Gh},qh(),"multiFactorInfoIdentifier")]}}),Qh(Mh.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Jh(_r,"parseLink",Ir,[qh("link")]),Jh(wh,"assertion",function(t){return new il(t)},[zh("phone")]),function(){if(void 0===i.Z||!i.Z.INTERNAL||!i.Z.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:cr,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:ar,VERIFY_AND_CHANGE_EMAIL:ur,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:eh,AuthCredential:as,Error:E};Jh(t,"EmailAuthProvider",Is,[]),Jh(t,"FacebookAuthProvider",ys,[]),Jh(t,"GithubAuthProvider",_s,[]),Jh(t,"GoogleAuthProvider",xs,[]),Jh(t,"TwitterAuthProvider",Ts,[]),Jh(t,"OAuthProvider",vs,[qh("providerId")]),Jh(t,"SAMLAuthProvider",ms,[qh("providerId")]),Jh(t,"PhoneAuthProvider",Rs,[{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(t){return!!(t&&t instanceof eh)}}]),Jh(t,"RecaptchaVerifier",Mh,[Yh(qh(),{name:"",K:"an HTML element",optional:!1,M:function(t){return!!(t&&t instanceof Element)}},"recaptchaContainer"),Vh("recaptchaParameters",!0),{name:"app",K:"an instance of Firebase App",optional:!0,M:function(t){return!!(t&&t instanceof i.Z.app.App)}}]),Jh(t,"ActionCodeURL",_r,[]),Jh(t,"PhoneMultiFactorGenerator",wh,[]),i.Z.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return new eh(t=t.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:t,instantiationMode:"LAZY",type:"PUBLIC",onInstanceCreated:function(t){t.getProvider("auth-internal").initialize()}}),i.Z.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(t){return{getUid:w((t=t.getProvider("auth").getImmediate()).getUid,t),getToken:w(t.nc,t),addAuthTokenListener:w(t.cc,t),removeAuthTokenListener:w(t.Pc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),i.Z.registerVersion("@firebase/auth","0.16.8"),i.Z.INTERNAL.extendNamespace({User:pl})}()}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},300:function(t,e,n){"use strict";function i(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i}n.d(e,{in:function(){return o},Yd:function(){return h},Ub:function(){return d},Am:function(){return f}});var r,s=[],o=(()=>{return(t=o||(o={}))[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",o;var t})(),a={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},c=o.INFO,u=((r={})[o.DEBUG]="log",r[o.VERBOSE]="log",r[o.INFO]="info",r[o.WARN]="warn",r[o.ERROR]="error",r),l=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(e<t.logLevel)){var s=(new Date).toISOString(),o=u[e];
1if(!o)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[o].apply(console,i(["["+s+"]  "+t.name+":"],n))}},h=function(){function t(t){this.name=t,this._logLevel=c,this._logHandler=l,this._userLogHandler=null,s.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in o))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,i([this,o.DEBUG],t)),this._logHandler.apply(this,i([this,o.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,i([this,o.VERBOSE],t)),this._logHandler.apply(this,i([this,o.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,i([this,o.INFO],t)),this._logHandler.apply(this,i([this,o.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,i([this,o.WARN],t)),this._logHandler.apply(this,i([this,o.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,i([this,o.ERROR],t)),this._logHandler.apply(this,i([this,o.ERROR],t))},t}();function d(t){s.forEach(function(e){e.setLogLevel(t)})}function f(t,e){for(var n=function(n){var i=null;e&&e.level&&(i=a[e.level]),n.userLogHandler=null===t?null:function(e,n){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];var a=r.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!=i?i:e.logLevel)&&t({level:o[n].toLowerCase(),message:a,args:r,type:e.name})}},i=0,r=s;i<r.length;i++)n(r[i])}},7521:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"facebook-f",icon:[320,512,[],"f39e","M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"]},e.AY=e.DF},1798:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"facebook-messenger",icon:[512,512,[],"f39f","M256.55 8C116.52 8 8 110.34 8 248.57c0 72.3 29.71 134.78 78.07 177.94 8.35 7.51 6.63 11.86 8.05 58.23A19.92 19.92 0 0 0 122 502.31c52.91-23.3 53.59-25.14 62.56-22.7C337.85 521.8 504 423.7 504 248.57 504 110.34 396.59 8 256.55 8zm149.24 185.13l-73 115.57a37.37 37.37 0 0 1-53.91 9.93l-58.08-43.47a15 15 0 0 0-18 0l-78.37 59.44c-10.46 7.93-24.16-4.6-17.11-15.67l73-115.57a37.36 37.36 0 0 1 53.91-9.93l58.06 43.46a15 15 0 0 0 18 0l78.41-59.38c10.44-7.98 24.14 4.54 17.09 15.62z"]},e.oJ=e.DF},2464:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"google-plus-g",icon:[640,512,[],"f0d5","M386.061 228.496c1.834 9.692 3.143 19.384 3.143 31.956C389.204 370.205 315.599 448 204.8 448c-106.084 0-192-85.915-192-192s85.916-192 192-192c51.864 0 95.083 18.859 128.611 50.292l-52.126 50.03c-14.145-13.621-39.028-29.599-76.485-29.599-65.484 0-118.92 54.221-118.92 121.277 0 67.056 53.436 121.277 118.92 121.277 75.961 0 104.513-54.745 108.965-82.773H204.8v-66.009h181.261zm185.406 6.437V179.2h-56.001v55.733h-55.733v56.001h55.733v55.733h56.001v-55.733H627.2v-56.001h-55.733z"]},e.cu=e.DF},2764:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"line",icon:[448,512,[],"f3c0","M272.1 204.2v71.1c0 1.8-1.4 3.2-3.2 3.2h-11.4c-1.1 0-2.1-.6-2.6-1.3l-32.6-44v42.2c0 1.8-1.4 3.2-3.2 3.2h-11.4c-1.8 0-3.2-1.4-3.2-3.2v-71.1c0-1.8 1.4-3.2 3.2-3.2H219c1 0 2.1.5 2.6 1.4l32.6 44v-42.2c0-1.8 1.4-3.2 3.2-3.2h11.4c1.8-.1 3.3 1.4 3.3 3.1zm-82-3.2h-11.4c-1.8 0-3.2 1.4-3.2 3.2v71.1c0 1.8 1.4 3.2 3.2 3.2h11.4c1.8 0 3.2-1.4 3.2-3.2v-71.1c0-1.7-1.4-3.2-3.2-3.2zm-27.5 59.6h-31.1v-56.4c0-1.8-1.4-3.2-3.2-3.2h-11.4c-1.8 0-3.2 1.4-3.2 3.2v71.1c0 .9.3 1.6.9 2.2.6.5 1.3.9 2.2.9h45.7c1.8 0 3.2-1.4 3.2-3.2v-11.4c0-1.7-1.4-3.2-3.1-3.2zM332.1 201h-45.7c-1.7 0-3.2 1.4-3.2 3.2v71.1c0 1.7 1.4 3.2 3.2 3.2h45.7c1.8 0 3.2-1.4 3.2-3.2v-11.4c0-1.8-1.4-3.2-3.2-3.2H301v-12h31.1c1.8 0 3.2-1.4 3.2-3.2V234c0-1.8-1.4-3.2-3.2-3.2H301v-12h31.1c1.8 0 3.2-1.4 3.2-3.2v-11.4c-.1-1.7-1.5-3.2-3.2-3.2zM448 113.7V399c-.1 44.8-36.8 81.1-81.7 81H81c-44.8-.1-81.1-36.9-81-81.7V113c.1-44.8 36.9-81.1 81.7-81H367c44.8.1 81.1 36.8 81 81.7zm-61.6 122.6c0-73-73.2-132.4-163.1-132.4-89.9 0-163.1 59.4
1-163.1 132.4 0 65.4 58 120.2 136.4 130.6 19.1 4.1 16.9 11.1 12.6 36.8-.7 4.1-3.3 16.1 14.1 8.8 17.4-7.3 93.9-55.3 128.2-94.7 23.6-26 34.9-52.3 34.9-81.5z"]},e.OP=e.DF},2391:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"linkedin-in",icon:[448,512,[],"f0e1","M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"]},e.hw=e.DF},9569:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"mix",icon:[448,512,[],"f3cb","M0 64v348.9c0 56.2 88 58.1 88 0V174.3c7.9-52.9 88-50.4 88 6.5v175.3c0 57.9 96 58 96 0V240c5.3-54.7 88-52.5 88 4.3v23.8c0 59.9 88 56.6 88 0V64H0z"]},e.hO=e.DF},5380:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"pinterest-p",icon:[384,512,[],"f231","M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"]},e.eG=e.DF},786:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"reddit-alien",icon:[512,512,[],"f281","M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"]},e.hH=e.DF},5025:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"telegram-plane",icon:[448,512,[],"f3fe","M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"]},e.IK=e.DF},933:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"tumblr",icon:[320,512,[],"f173","M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"]},e.yY=e.DF},5299:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]},e.md=e.DF},3319:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"vk",icon:[576,512,[],"f189","M545 117.7c3.7-12.5 0-21.7-17.8-21.7h-58.9c-15 0-21.9 7.9-25.6 16.7 0 0-30 73.1-72.4 120.5-13.7 13.7-20 18.1-27.5 18.1-3.7 0-9.4-4.4-9.4-16.9V117.7c0-15-4.2-21.7-16.6-21.7
1h-92.6c-9.4 0-15 7-15 13.5 0 14.2 21.2 17.5 23.4 57.5v86.8c0 19-3.4 22.5-10.9 22.5-20 0-68.6-73.4-97.4-157.4-5.8-16.3-11.5-22.9-26.6-22.9H38.8c-16.8 0-20.2 7.9-20.2 16.7 0 15.6 20 93.1 93.1 195.5C160.4 378.1 229 416 291.4 416c37.5 0 42.1-8.4 42.1-22.9 0-66.8-3.4-73.1 15.4-73.1 8.7 0 23.7 4.4 58.7 38.1 40 40 46.6 57.9 69 57.9h58.9c16.8 0 25.3-8.4 20.4-25-11.2-34.9-86.9-106.7-90.3-111.5-8.7-11.2-6.2-16.2 0-26.2.1-.1 72-101.3 79.4-135.6z"]},e.iD=e.DF},8458:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"whatsapp",icon:[448,512,[],"f232","M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"]},e.VH=e.DF},7993:function(t,e){"use strict";e.DF={prefix:"fab",iconName:"xing",icon:[384,512,[],"f168","M162.7 210c-1.8 3.3-25.2 44.4-70.1 123.5-4.9 8.3-10.8 12.5-17.7 12.5H9.8c-7.7 0-12.1-7.5-8.5-14.4l69-121.3c.2 0 .2-.1 0-.3l-43.9-75.6c-4.3-7.8.3-14.1 8.5-14.1H100c7.3 0 13.3 4.1 18 12.2l44.7 77.5zM382.6 46.1l-144 253v.3L330.2 466c3.9 7.1.2 14.1-8.5 14.1h-65.2c-7.6 0-13.6-4-18-12.2l-92.4-168.5c3.3-5.8 51.5-90.8 144.8-255.2 4.6-8.1 10.4-12.2 17.5-12.2h65.7c8 0 12.3 6.7 8.5 14.1z"]},e.Sc=e.DF},6258:function(t,e){"use strict";e.DF={prefix:"fas",iconName:"check",icon:[512,512,[],"f00c","M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"]},e.LE=e.DF},4296:function(t,e){"use strict";e.DF={prefix:"fas",iconName:"comment-alt",icon:[512,512,[],"f27a","M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"]},e.Eg=e.DF},9581:function(t,e){"use strict";e.DF={prefix:"fas",iconName:"ellipsis-h",icon:[512,512,[],"f141","M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"]},e.cN=e.DF},7655:function(t,e){"use strict";e.DF={prefix:"fas",iconName:"envelope",icon:[512,512,[],"f0e0","M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"]},e.FU=e.DF},4703:function(t,e){"use strict";e.DF={prefix:"fas",iconName:"exclamation",icon:[192,512,[],"f12a","M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"]},e.WV=e.DF},2038:function(t,e){"use strict";e.DF={prefix:"fas",iconName:"link",icon:[512,512,[],"f0c1","M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.8
106l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]},e.nN=e.DF},4239:function(t,e){"use strict";e.DF={prefix:"fas",iconName:"minus",icon:[448,512,[],"f068","M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},e.Kl=e.DF},3329:function(t,e){"use strict";e.DF={prefix:"fas",iconName:"print",icon:[512,512,[],"f02f","M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]},e.wf=e.DF},2329:function(t,e,n){"use strict";n.d(e,{Z:function(){return i.Z}});var i=n(4278);i.Z.registerVersion("firebase","8.9.1","app"),i.Z.SDK_VERSION="8.9.1"},3098:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(9193),r=n(5917),s=n(205);class o{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(0,r.of)(this.value);case"E":return(0,s._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new o("N",t):o.undefinedValueNotification}static createError(t){return new o("E",void 0,t)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},8891:function(t,e,n){"use strict";n.d(e,{y:function(){return u}});var i=n(7393),r=n(9181),s=n(6490),o=n(6554),a=n(4022),c=n(2494);let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[r.b])return t[r.b]()}return t||e||n?new i.L(t,e,n):new i.L(s.c)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=l(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.L](){return this}pipe(...t){return 0===t.length?this:(0,a.U)(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=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:function(t,e,n){"use strict";n.d(e,{c:function(){return s}});var i=n(2494),r=n(4449);const s={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,r.z)(t)},complete(){}}},9765:function(t,e,n){"use strict";n.d(e,{Yc:function(){return u},xQ:function(){return l}});var i=n(8891),r=n(7393),s=n(5319),o=n(7971),a=n(8858),c=n(9181);class u extends r.L{constructor(t){super(t),this.destination=t}}let l=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new u(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;r<n;r++)i[r].next(t)}}error(t){if(this.closed)throw new o.N;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;r<n;r++)i[r].error(t);this.observers.length=0}complete(){if(this.closed)throw new o.N;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new o.N;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new o.N;return this.hasError?(t.error(this.thrownError),s.w.EMPTY):this.isStopped?(t.complete(),s.w.EMPTY):(this.observers.push(t),new a.W(this,t))}asObservable(){const t=new i.y;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):s.w.EMPTY}}},8858:function(t,e,n){"use strict";n.d(e,{W:function(){return r}});var i=n(5319);class r extends i.w{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)}}},7393:function(t,e,n){"use strict";n.d(e,{L:function(){return u}});var i=n(9105),r=n(6490),s=n(5319),o=n(9181),a=n(2494),c=n(4449);class u extends s.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.c;break;case 1:if(!t){this.destination=r.c;break}if("object"==typeof t){t instanceof u?(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)}}[o.b](){return this}static create(t,e,n){const i=new u(t,e,n);return i.syncErrorThrowable=!1,i}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 u{constructor(t,e,n,s){super(),this._parentSubscriber=t;let o,a=this;(0,i.m)(e)?o=e:e&&(o=e.next,n=e.error,s=e.complete,e!==r.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.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.v;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):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.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.v.useDeprecatedSynchronousErrorHandling)throw n;(0,c.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):((0,c.z)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:function(t,e,n){"use strict";n.d(e,{w:function(){return a}});var i=n(9796),r=n(1555),s=n(9105);const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:c,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let i=0;i<e.length;++i)e[i].remove(this);if((0,s.m)(c)){n&&(this._unsubscribe=void 0);try{c.call(this)}catch(h){t=h instanceof o?u(h.errors):[h]}}if((0,i.k)(l)){let e=-1,n=l.length;for(;++e<n;){const n=l[e];
1if((0,r.K)(n))try{n.unsubscribe()}catch(d){t=t||[],d instanceof o?t=t.concat(u(d.errors)):t.push(d)}}}if(t)throw new o(t)}add(t){let e=t;if(!t)return a.EMPTY;switch(typeof t){case"function":e=new a(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof a)){const t=e;e=new a,e._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else if(n instanceof a){if(n===this)return e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[e]:i.push(e),e}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var c;function u(t){return t.reduce((t,e)=>t.concat(e instanceof o?e.errors:e),[])}a.EMPTY=((c=new a).closed=!0,c)},2494:function(t,e,n){"use strict";n.d(e,{v:function(){return r}});let i=!1;const r={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 i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},5345:function(t,e,n){"use strict";n.d(e,{IY:function(){return o},Ds:function(){return a},ft:function(){return c}});var i=n(7393),r=n(8891),s=n(7444);class o extends i.L{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 i.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function c(t,e){if(e.closed)return;if(t instanceof r.y)return t.subscribe(e);let n;try{n=(0,s.s)(t)(e)}catch(i){e.error(i)}return n}},2441:function(t,e,n){"use strict";n.d(e,{c:function(){return a},N:function(){return c}});var i=n(9765),r=n(8891),s=n(5319),o=n(1307);class a extends r.y{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.w,t.add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.w.EMPTY)),t}refCount(){return(0,o.x)()(this)}}const c=(()=>{const t=a.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 u extends i.Yc{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()}}}},9193:function(t,e,n){"use strict";n.d(e,{E:function(){return r},c:function(){return s}});var i=n(8891);const r=new i.y(t=>t.complete());function s(t){return t?function(t){return new i.y(e=>t.schedule(()=>e.complete()))}(t):r}},4402:function(t,e,n){"use strict";n.d(e,{D:function(){return h}});var i=n(8891),r=n(7444),s=n(5319),o=n(6554),a=n(4087),c=n(377),u=n(4072),l=n(9489);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new i.y(n=>{const i=new s.w;return i.add(e.schedule(()=>{const r=t[o.L]();i.add(r.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if((0,u.t)(t))return function(t,e){return new i.y(n=>{const i=new s.w;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if((0,l.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[c.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y(n=>{const i=new s.w;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[c.hZ](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,r.s)(t))}},6693:function(t,e,n){"use strict";n.d(e,{n:function(){return o}});var i=n(8891),r=n(5015),s=n(4087);function o(t,e){return e?(0,s.r)(t,e):new i.y((0,r.V)(t))}},6682:function(t,e,n){"use strict";n.d(e,{T:function(){return a}});var i=n(8891),r=n(4869),s=n(3282),o=n(6693);function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return(0,r.K)(a)?(n=t.pop(),t.length>
11&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,s.J)(e)((0,o.n)(t,n))}},5917:function(t,e,n){"use strict";n.d(e,{of:function(){return o}});var i=n(4869),r=n(6693),s=n(4087);function o(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,s.r)(t,e)):(0,r.n)(t)}},205:function(t,e,n){"use strict";n.d(e,{_:function(){return r}});var i=n(8891);function r(t,e){return new i.y(e?n=>e.schedule(s,0,{error:t,subscriber:n}):e=>e.error(t))}function s({error:t,subscriber:e}){e.error(t)}},8002:function(t,e,n){"use strict";n.d(e,{U:function(){return r}});var i=n(7393);function r(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 s(t,e))}}class s{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.L{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)}}},3282:function(t,e,n){"use strict";n.d(e,{J:function(){return s}});var i=n(9773),r=n(4487);function s(t=Number.POSITIVE_INFINITY){return(0,i.zg)(r.y,t)}},9773:function(t,e,n){"use strict";n.d(e,{zg:function(){return o}});var i=n(8002),r=n(4402),s=n(5345);function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(o((n,s)=>(0,r.D)(t(n,s)).pipe((0,i.U)((t,i)=>e(n,t,s,i))),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 c(t,this.project,this.concurrent))}}class c extends s.Ds{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(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new s.IY(this),n=this.destination;n.add(e);const i=(0,s.ft)(t,e);i!==e&&n.add(i)}_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()}}},9746:function(t,e,n){"use strict";n.d(e,{QV:function(){return s},ht:function(){return a}});var i=n(7393),r=n(3098);function s(t,e=0){return function(n){return n.lift(new o(t,e))}}class o{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 i.L{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 c(t,this.destination)))}_next(t){this.scheduleMessage(r.P.createNext(t))}_error(t){this.scheduleMessage(r.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(r.P.createComplete()),this.unsubscribe()}}class c{constructor(t,e){this.notification=t,this.destination=e}}},1307:function(t,e,n){"use strict";n.d(e,{x:function(){return r}});var i=n(7393);function r(){return function(t){return t.lift(new s(t))}}class s{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class o extends i.L{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,i=t._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}},9673:function(t,e,n){"use strict";n.d(e,{R:function(){return a}});var i=n(8891),r=n(4581),s=n(6561);class o extends i.y{constructor(t,e=0,n=r.e){super(),this.source=t,this.delayTime=e,this.scheduler
1=n,(!(0,s.k)(e)||e<0)&&(this.delayTime=0),(!n||"function"!=typeof n.schedule)&&(this.scheduler=r.e)}static create(t,e=0,n=r.e){return new o(t,e,n)}static dispatch(t){const{source:e,subscriber:n}=t;return this.add(e.subscribe(n))}_subscribe(t){return this.scheduler.schedule(o.dispatch,this.delayTime,{source:this.source,subscriber:t})}}function a(t,e=0){return function(n){return n.lift(new c(t,e))}}class c{constructor(t,e){this.scheduler=t,this.delay=e}call(t,e){return new o(e,this.delay,this.scheduler).subscribe(t)}}},3342:function(t,e,n){"use strict";n.d(e,{b:function(){return o}});var i=n(7393);function r(){}var s=n(9105);function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends i.L{constructor(t,e,n,i){super(t),this._tapNext=r,this._tapError=r,this._tapComplete=r,this._tapError=n||r,this._tapComplete=i||r,(0,s.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||r,this._tapError=e.error||r,this._tapComplete=e.complete||r)}_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(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:function(t,e,n){"use strict";n.d(e,{r:function(){return s}});var i=n(8891),r=n(5319);function s(t,e){return new i.y(n=>{const i=new r.w;let s=0;return i.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},6465:function(t,e,n){"use strict";n.d(e,{o:function(){return s}});var i=n(5319);class r extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class s extends r{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,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,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,i=!1;try{this.work(t)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:function(t,e,n){"use strict";n.d(e,{v:function(){return r}});let i=(()=>{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 r extends i{constructor(t,e=i.now){super(t,()=>r.delegate&&r.delegate!==this?r.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return r.delegate&&r.delegate!==this?r.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}}}},4581:function(t,e,n){"use strict";n.d(e,{e:function(){return h},E:function(){return l}});let i=1;const r=Promise.resolve(),s={};function o(t){return t in s&&(delete s[t],!0)}const a={setImmediate(t){const e=i++;return s[e]=!0,r.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var c=n(6465),u=n(6102);const l=new class extends u.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<r&&(t=e.shift()));if(this.active=!1,n){for(;++i<r&&(t=e.shift());)t.unsubscribe();throw n}}}
1(class extends c.o{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)}}),h=l},3637:function(t,e,n){"use strict";n.d(e,{z:function(){return r},P:function(){return s}});var i=n(6465);const r=new(n(6102).v)(i.o),s=r},7771:function(t,e,n){"use strict";n.d(e,{c:function(){return o},N:function(){return s}});var i=n(6465),r=n(6102);const s=new class extends r.v{}(class extends i.o{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)}}),o=s},377:function(t,e,n){"use strict";n.d(e,{hZ:function(){return i}});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7971:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,{z:function(){return i}})},4487:function(t,e,n){"use strict";function i(t){return t}n.d(e,{y:function(){return i}})},9796:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,{m:function(){return i}})},6561:function(t,e,n){"use strict";n.d(e,{k:function(){return r}});var i=n(9796);function r(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},1555:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:function(){return i}})},4072:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:function(){return i}})},4869:function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:function(){return i}})},4022:function(t,e,n){"use strict";n.d(e,{z:function(){return r},U:function(){return s}});var i=n(4487);function r(...t){return s(t)}function s(t){return 0===t.length?i.y:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},7444:function(t,e,n){"use strict";n.d(e,{s:function(){return l}});var i=n(5015),r=n(4449),s=n(377),o=n(6554),a=n(9489),c=n(4072),u=n(1555);const l=t=>{if(t&&"function"==typeof t[o.L])return(t=>e=>{const n=t[o.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if((0,a.z)(t))return(0,i.V)(t);if((0,c.t)(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,r.z),e))(t);if(t&&"function"==typeof t[s.hZ])return(t=>e=>{const n=t[s.hZ]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const e=`You provided ${(0,u.K)(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}}},5015:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});const i=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()}},187:function(t,e,n){"use strict";var i=n(3018);let r=null;function s(){return r}const o=new i.OlP("DocumentToken");let a=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:c,token:t,providedIn:"platform"}),t})();function c(){return(0,i.LFG)(l)}const u=new i.OlP("Location Initialized");let l=(()=>{class t extends a{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(t){const e=s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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){h()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){h()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o))},t.\u0275prov=(0,i.Yz7)({factory:d,token:t,providedIn:"platform"}),t})();function h(){return!!window.history.pushState}function d(){return new l((0,i.LFG)(o))}function f(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 p(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 g(t){return t&&"?"!==t[0]?"?"+t:t}let m=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:v,token:t,providedIn:"root"}),t})();function v(t){const e=(0,i.LFG)(o).location;return new b((0,i.LFG)(a),e&&e.origin||"")}const y=new i.OlP("appBaseHref");let b=(()=>{class t extends m{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],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}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.on
1HashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return f(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(a),i.LFG(y,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends m{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(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=f(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(a),i.LFG(y,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),w=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=p(S(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+g(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}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)(i.LFG(m),i.LFG(a))},t.normalizeQueryParams=g,t.joinWithSlash=f,t.stripTrailingSlash=p,t.\u0275prov=(0,i.Yz7)({factory:x,token:t,providedIn:"root"}),t})();function x(){return new w((0,i.LFG)(m),(0,i.LFG)(a))}function S(t){return t.replace(/\/index.html$/,"")}var T=(()=>((T=T||{})[T.Decimal=0]="Decimal",T[T.Percent=1]="Percent",T[T.Currency=2]="Currency",T[T.Scientific=3]="Scientific",T))(),C=(()=>((C=C||{})[C.Zero=0]="Zero",C[C.One=1]="One",C[C.Two=2]="Two",C[C.Few=3]="Few",C[C.Many=4]="Many",C[C.Other=5]="Other",C))(),E=(()=>((E=E||{})[E.Format=0]="Format",E[E.Standalone=1]="Standalone",E))(),A=(()=>((A=A||{})[A.Narrow=0]="Narrow",A[A.Abbreviated=1]="Abbreviated",A[A.Wide=2]="Wide",A[A.Short=3]="Short",A))(),I=(()=>((I=I||{})[I.Short=0]="Short",I[I.Medium=1]="Medium",I[I.Long=2]="Long",I[I.Full=3]="Full",I))(),k=(()=>((k=k||{})[k.Decimal=0]="Decimal",k[k.Group=1]="Group",k[k.List=2]="List",k[k.PercentSign=3]="PercentSign",k[k.PlusSign=4]="PlusSign",k[k.MinusSign=5]="MinusSign",k[k.Exponential=6]="Exponential",k[k.SuperscriptingExponent=7]="SuperscriptingExponent",k[k.PerMille=8]="PerMille",k[k.Infinity=9]="Infinity",k[k.NaN=10]="NaN",k[k.TimeSeparator=11]="TimeSeparator",k[k.CurrencyDecimal=12]="CurrencyDecimal",k[k.CurrencyGroup=13]="CurrencyGroup",k))();function O(t,e){return M((0,i.cg1)(t)[i.wAp.DateFormat],e)}function D(t,e){return M((0,i.cg1)(t)[i.wAp.TimeFormat],e)}function N(t,e){return M((0,i.cg1)(t)[i.wAp.DateTimeFormat],e)}function P(t,e){const n=(0,i.cg1)(t),r=n[i.wAp.NumberSymbols][e];if(void 0===r){if(e===k.CurrencyDecimal)return n[i.wAp.NumberSymbols][k.Decimal];if(e===k.CurrencyGroup)return n[i.wAp.NumberSymbols][k.Group]}return r}const R=i.kL8;function L(t){if(!t[i.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[i.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function M(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 F(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const Z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,q={},U=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var V=(()=>((V=V||{})[V.Short=0]="Short",V[V.ShortGMT=1]="ShortGMT",V[V.Long=2]="Long",V[V.Extended=3]="Extended",V)
vendor: 5,995 bytes, line 1
1)(),j=(()=>((j=j||{})[j.FullYear=0]="FullYear",j[j.Month=1]="Month",j[j.Date=2]="Date",j[j.Hours=3]="Hours",j[j.Minutes=4]="Minutes",j[j.Seconds=5]="Seconds",j[j.FractionalSeconds=6]="FractionalSeconds",j[j.Day=7]="Day",j))(),B=(()=>((B=B||{})[B.DayPeriods=0]="DayPeriods",B[B.Days=1]="Days",B[B.Months=2]="Months",B[B.Eras=3]="Eras",B))();function z(t,e,n,i){let r=function(t){if(it(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,n=1,i=1]=t.split("-").map(t=>+t);return H(e,n-1,i)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(Z))return function(t){const e=new Date(0);let n=0,i=0;const r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-i,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(e,o,a,c,u),e}(n)}const e=new Date(t);if(!it(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=G(n,e)||e;let s,o=[];for(;e;){if(s=U.exec(e),!s){o.push(e);break}{o=o.concat(s.slice(1));const t=o.pop();if(!t)break;e=t}}let a=r.getTimezoneOffset();i&&(a=nt(i,a),r=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,i)-i))}(r,i));let c="";return o.forEach(t=>{const e=function(t){if(et[t])return et[t];let e;switch(t){case"G":case"GG":case"GGG":e=J(B.Eras,A.Abbreviated);break;case"GGGG":e=J(B.Eras,A.Wide);break;case"GGGGG":e=J(B.Eras,A.Narrow);break;case"y":e=$(j.FullYear,1,0,!1,!0);break;case"yy":e=$(j.FullYear,2,0,!0,!0);break;case"yyy":e=$(j.FullYear,3,0,!1,!0);break;case"yyyy":e=$(j.FullYear,4,0,!1,!0);break;case"Y":e=tt(1);break;case"YY":e=tt(2,!0);break;case"YYY":e=tt(3);break;case"YYYY":e=tt(4);break;case"M":case"L":e=$(j.Month,1,1);break;case"MM":case"LL":e=$(j.Month,2,1);break;case"MMM":e=J(B.Months,A.Abbreviated);break;case"MMMM":e=J(B.Months,A.Wide);break;case"MMMMM":e=J(B.Months,A.Narrow);break;case"LLL":e=J(B.Months,A.Abbreviated,E.Standalone);break;case"LLLL":e=J(B.Months,A.Wide,E.Standalone);break;case"LLLLL":e=J(B.Months,A.Narrow,E.Standalone);break;case"w":e=X(1);break;case"ww":e=X(2);break;case"W":e=X(1,!0);break;case"d":e=$(j.Date,1);break;case"dd":e=$(j.Date,2);break;case"c":case"cc":e=$(j.Day,1);break;case"ccc":e=J(B.Days,A.Abbreviated,E.Standalone);break;case"cccc":e=J(B.Days,A.Wide,E.Standalone);break;case"ccccc":e=J(B.Days,A.Narrow,E.Standalone);break;case"cccccc":e=J(B.Days,A.Short,E.Standalone);break;case"E":case"EE":case"EEE":e=J(B.Days,A.Abbreviated);break;case"EEEE":e=J(B.Days,A.Wide);break;case"EEEEE":e=J(B.Days,A.Narrow);break;case"EEEEEE":e=J(B.Days,A.Short);break;case"a":case"aa":case"aaa":e=J(B.DayPeriods,A.Abbreviated);break;case"aaaa":e=J(B.DayPeriods,A.Wide);break;case"aaaaa":e=J(B.DayPeriods,A.Narrow);break;case"b":case"bb":case"bbb":e=J(B.DayPeriods,A.Abbreviated,E.Standalone,!0);break;case"bbbb":e=J(B.DayPeriods,A.Wide,E.Standalone,!0);break;case"bbbbb":e=J(B.DayPeriods,A.Narrow,E.Standalone,!0);break;case"B":case"BB":case"BBB":e=J(B.DayPeriods,A.Abbreviated,E.Format,!0);break;case"BBBB":e=J(B.DayPeriods,A.Wide,E.Format,!0);break;case"BBBBB":e=J(B.DayPeriods,A.Narrow,E.Format,!0);break;case"h":e=$(j.Hours,1,-12);break;case"hh":e=$(j.Hours,2,-12);break;case"H":e=$(j.Hours,1);break;case"HH":e=$(j.Hours,2);break;case"m":e=$(j.Minutes,1);break;case"mm":e=$(j.Minutes,2);break;case"s":e=$(j.Seconds,1);break;case"ss":e=$(j.Seconds,2);break;case"S":e=$(j.FractionalSeconds,1);break;case"SS":e=$(j.FractionalSeconds,2);break;case"SSS":e=$(j.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=W(V.Short);break;case"ZZZZZ":e=W(V.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=W(V.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=W(V.Long);break;default:return null}return et[t]=e,e}(t);c+=e?e(r,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function H(t,e,n){const i=new Date(0);return i.setFullYear(t,e,n),i.setHours(0,0,0),i}function G(t,e){const n=function(t){return(0,i.cg1)(t)[i.wAp.LocaleId]}(t);if(q[n]=q[n]||{},q[n][e])return q[n][e];let r="";switch(e){case"shortDate":r=O(t,I.Short);break;case"mediumDate":r=O(t,I.Medium);break;case"longDate":r=O(t,I.Long);break;case"fullDate":r=O(t,I.Full);break;case"shortTime":r=D(t,I.Short);break;case"mediumTime":r=D(t,I.Medium);break;case"longTime":r=D(t,I.Long);break;case"fullTime":r=D(t,I.Full);break;case"short":const e=G(t,"shortTime"),n=G(t,"shortDate");r=Y(N(t,I.Short),[e,n]);break;case"medium":const i=G(t,"mediumTime"),s=G(t,"mediumDate");r=Y(N(t,I.Medium),[i,s]);break;case"long":const o=G(t,"longTime"),a=G(t,"longDate");r=Y(N(t,I.Long),[o,a]);break;case"full":const c=G(t,"fullTime"),u=G(t,"fullDate");r=Y(N(t,I.Full),[c,u])}return r&&(q[n][e]=r),r}function Y(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Q(t,e,n="-",i,r){let s="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,s=n));let o=String(t);for(;o.length<e;)o="0"+o;return i&&(o=o.substr(o.length-e)),s+o}function $(t,e,n=0,i=!1,r=!1){return function(s,o){let a=function(t,e){switch(t){case j.FullYear:return e.getFullYear();case j.Month:return e.getMonth();case j.Date:return e.getDate();case j.Hours:return e.getHours();case j.Minutes:return e.getMinutes();case j.Seconds:return e.getSeconds();case j.FractionalSeconds:return e.getMilliseconds();case j.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,s);if((n>0||a>-n)&&(a+=n),t===j.Hours)0===a&&-12===n&&(a=12);else if(t===j.FractionalSeconds)return function(t,e){return Q(t,3).substr(0,e)}(a,e);const c=P(o,k.MinusSign);return Q(a,e,c,i,r)}}function J(t,e,n=E.Format,r=!1){return function(s,o){return function(t,e,n,r,s,o){switch(n){case B.Months:return function(t,e,n){const r=(0,i.cg1)(t),s=M([r[
1i.wAp.MonthsFormat],r[i.wAp.MonthsStandalone]],e);return M(s,n)}(e,s,r)[t.getMonth()];case B.Days:return function(t,e,n){const r=(0,i.cg1)(t),s=M([r[i.wAp.DaysFormat],r[i.wAp.DaysStandalone]],e);return M(s,n)}(e,s,r)[t.getDay()];case B.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(o){const t=function(t){const e=(0,i.cg1)(t);return L(e),(e[i.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?F(t):[F(t[0]),F(t[1])])}(e),n=function(t,e,n){const r=(0,i.cg1)(t);L(r);const s=M([r[i.wAp.ExtraData][0],r[i.wAp.ExtraData][1]],e)||[];return M(s,n)||[]}(e,s,r),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=a>=e.hours&&c>=e.minutes,r=a<n.hours||a===n.hours&&c<n.minutes;if(e.hours<n.hours){if(i&&r)return!0}else if(i||r)return!0}else if(t.hours===a&&t.minutes===c)return!0;return!1});if(-1!==o)return n[o]}return function(t,e,n){const r=(0,i.cg1)(t),s=M([r[i.wAp.DayPeriodsFormat],r[i.wAp.DayPeriodsStandalone]],e);return M(s,n)}(e,s,r)[a<12?0:1];case B.Eras:return function(t,e){return M((0,i.cg1)(t)[i.wAp.Eras],e)}(e,r)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,o,t,e,n,r)}}function W(t){return function(e,n,i){const r=-1*i,s=P(n,k.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case V.Short:return(r>=0?"+":"")+Q(o,2,s)+Q(Math.abs(r%60),2,s);case V.ShortGMT:return"GMT"+(r>=0?"+":"")+Q(o,1,s);case V.Long:return"GMT"+(r>=0?"+":"")+Q(o,2,s)+":"+Q(Math.abs(r%60),2,s);case V.Extended:return 0===i?"Z":(r>=0?"+":"")+Q(o,2,s)+":"+Q(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}function K(t){return H(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function X(t,e=!1){return function(n,i){let r;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();r=1+Math.floor((e+t)/7)}else{const t=K(n),e=function(t){const e=H(t,0,1).getDay();return H(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();r=1+Math.round(i/6048e5)}return Q(r,t,P(i,k.MinusSign))}}function tt(t,e=!1){return function(n,i){return Q(K(n).getFullYear(),t,P(i,k.MinusSign),e)}}const et={};function nt(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function it(t){return t instanceof Date&&!isNaN(t.valueOf())}const rt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function st(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class ot{}let at=(()=>{class t extends ot{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(R(e||this.locale)(t)){case C.Zero:return"zero";case C.One:return"one";case C.Two:return"two";case C.Few:return"few";case C.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.soG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function ct(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let ut=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,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&&((0,i.sIi)(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=>
vendor: 7,011 bytes, line 1
1{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(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)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class lt{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 ht=(()=>{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){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new lt(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new dt(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new dt(t,r);e.push(s)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,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)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class dt{constructor(t,e){this.record=t,this.view=e}}let ft=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new pt,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){gt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){gt("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)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class pt{constructor(){this.$implicit=null,this.ngIf=null}}function gt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class mt{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 vt=(()=>{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=i.lG2({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),yt=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new mt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(vt,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),bt=(()=>{class t{constructor(t,e,n){n._addDefault(new mt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(vt,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),_t=(()=>{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,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`: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)(i.Y36(i.SBq),i.Y36(i.aQg),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}
1),t})(),wt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.TTD]}),t})();function xt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}class St{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Tt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Ct=new Tt,Et=new St;let At=(()=>{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((0,i.QGY)(e))return Ct;if((0,i.F4k)(e))return Et;throw xt(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)(i.Y36(i.sBO,16))},t.\u0275pipe=i.Yjl({name:"async",type:t,pure:!1}),t})(),It=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw xt(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"lowercase",type:t,pure:!0}),t})(),kt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw xt(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"uppercase",type:t,pure:!0}),t})(),Ot=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",i,r){if(null==e||""===e||e!=e)return null;try{return z(e,n,r||this.locale,i)}catch(s){throw xt(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.soG,16))},t.\u0275pipe=i.Yjl({name:"date",type:t,pure:!0}),t})(),Dt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,r){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function(t,e,n){return function(t,e,n,i,r,s,o=!1){let a="",c=!1;if(isFinite(t)){let u=function(t){let e,n,i,r,s,o=Math.abs(t)+"",a=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;"0"===o.charAt(i);i++);if(i===(s=o.length))e=[0],n=1;else{for(s--;"0"===o.charAt(s);)s--;for(n-=i,e=[],r=0;i<=s;i++,r++)e[r]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(u=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}(u));let l=e.minInt,h=e.minFrac,d=e.maxFrac;if(s){const t=s.match(rt);if(null===t)throw new Error(`${s} is not a valid digit info`);const e=t[1],n=t[3],i=t[5];null!=e&&(l=st(e)),null!=n&&(h=st(n)),null!=i?d=st(i):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,r=i.length-t.integerLen;const s=Math.min(Math.max(e,r),n);let o=s+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let t=o;t<i.length;t++)i[t]=0}else{r=Math.max(0,r),t.integerLen=1,i.length=Math.max(1,o=s+1),i[0]=0;for(let t=1;t<o;t++)i[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;r<Math.max(0,s);r++)i.push(0);let c=0!==s;const u=e+t.integerLen,l=i.reduceRight(function(t,e,n,i){return i[n]=(e+=t)<10?e:e-10,c&&(0===i[n]&&n>=u?i.pop():c=!1),e>=10?1:0},0);l&&(i.unshift(l),t.integerLen++)}(u,h,d);let f=u.digits,p=u.integerLen;
1const g=u.exponent;let m=[];for(c=f.every(t=>!t);p<l;p++)f.unshift(0);for(;p<0;p++)f.unshift(0);p>0?m=f.splice(p,f.length):(m=f,f=[0]);const v=[];for(f.length>=e.lgSize&&v.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)v.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&v.unshift(f.join("")),a=v.join(P(n,i)),m.length&&(a+=P(n,r)+m.join("")),g&&(a+=P(n,k.Exponential)+"+"+g)}else a=P(n,k.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],c=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let l=0;l<c.length;l++){const t=c.charAt(l);"0"===t?n.minFrac=n.maxFrac=l+1:"#"===t?n.maxFrac=l+1:n.posSuf+=t}const u=a.split(",");if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,s){const t=r.length-n.posPre.length-n.posSuf.length,e=s.indexOf("#");n.negPre=s.substr(0,e).replace(/'/g,""),n.negSuf=s.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function(t,e){return(0,i.cg1)(t)[i.wAp.NumberFormats][e]}(e,T.Decimal),P(e,k.MinusSign)),e,k.Group,k.Decimal,n)}(function(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}(e),r,n)}catch(s){throw xt(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.soG,16))},t.\u0275pipe=i.Yjl({name:"number",type:t,pure:!0}),t})();let Nt=(()=>{class t{transform(e,n,i){if(null==e)return null;if(!this.supports(e))throw xt(t,e);return e.slice(n,i)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"slice",type:t,pure:!1}),t})(),Pt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:ot,useClass:at}]}),t})();function Rt(t){return"browser"===t}function Lt(t){return"server"===t}let Mt=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new Ft((0,i.LFG)(o),window)}),t})();class Ft{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(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,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Zt(this.window.history)||Zt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Zt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class qt{}class Ut extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new Ut,r||(r=t)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}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}getBaseHref(t){const e=(jt=jt||document.querySelector("base"),jt?jt.getAttribute("href"):null);return null==e?null:function(t){Vt=Vt||document.createElement("a"),Vt.setAttribute("href",t);const e=Vt.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){jt=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ct(document.cookie,t)}}let Vt,jt=null;const Bt=new i.OlP("TRANSITION_ID"),zt=[{provide:i.ip1,useFactory:function(t,e,n){return()=>{n.get(i.CZH).donePromise.then(()=>{const n=s(),i=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t<i.length;t++)n.remove(i[t])})}},deps:[Bt,o,i.zs3],multi:!0}];class Ht{static init(){(0,i.VLi)(new Ht)}addToWindow(t){i.dqk.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},i.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const e=i.dqk.getAllAngularTestabilities();let n=e.length,r=!1;const s=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?s().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let Gt=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const Yt=new i.OlP("EventManagerPlugins");let Qt=(()=>{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 i=0;i<n.length;i++){const e=n[i];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.LFG(Yt),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class $t{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=s().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let Jt=(()=>{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.Yz7({token:t,factory:t.\u0275fac}),t}
vendor: 6,282 bytes, line 1
1)(),Wt=(()=>{class t extends Jt{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(Kt),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Kt))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function Kt(t){s().remove(t)}const Xt={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/"},te=/%COMP%/g;function ee(t,e,n){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?ee(t,r,n):(r=r.replace(te,t),n.push(r))}return n}function ne(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let ie=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new re(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case i.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new se(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case i.ifc.ShadowDom:return new oe(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=ee(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.LFG(Qt),i.LFG(Wt),i.LFG(i.AFp))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class re{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Xt[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=Xt[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=Xt[n];i?t.removeAttributeNS(i,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.JOm.DashCase|i.JOm.Important)?t.style.setProperty(e,n,r&i.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&i.JOm.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,ne(n)):this.eventManager.addEventListener(t,e,ne(n))}}class se extends re{constructor(t,e,n,i){super(t),this.component=n;const r=ee(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(te,i+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(te,t)}(i+"-"+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 oe extends re{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=ee(i.id,i.styles,[]);for(let s=0;s<r.length;s++){const t=document.createElement("style");t.textContent=r[s],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let ae=(()=>{class t extends $t{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.LFG(o))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const ce=["alt","control","meta","shift"],ue={"\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"},le={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"},he={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let de=(()=>{class t extends $t{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const r=t.parseEventName(n),o=t.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>s().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let s="";if(ce.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&le.hasOwnProperty(e)&&(e=le[e]))}return ue[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),ce.forEach(i=>
1{i!=n&&he[i](t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),fe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:function(){return(0,i.LFG)(pe)},token:t,providedIn:"root"}),t})(),pe=(()=>{class t extends fe{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case i.q3G.NONE:return e;case i.q3G.HTML:return(0,i.qzn)(e,"HTML")?(0,i.z3N)(e):(0,i.EiD)(this._doc,String(e)).toString();case i.q3G.STYLE:return(0,i.qzn)(e,"Style")?(0,i.z3N)(e):e;case i.q3G.SCRIPT:if((0,i.qzn)(e,"Script"))return(0,i.z3N)(e);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(e),(0,i.qzn)(e,"URL")?(0,i.z3N)(e):(0,i.mCW)(String(e));case i.q3G.RESOURCE_URL:if((0,i.qzn)(e,"ResourceURL"))return(0,i.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,i.JVY)(t)}bypassSecurityTrustStyle(t){return(0,i.L6k)(t)}bypassSecurityTrustScript(t){return(0,i.eBb)(t)}bypassSecurityTrustUrl(t){return(0,i.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,i.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o))},t.\u0275prov=(0,i.Yz7)({factory:function(){return function(t){return new pe(t.get(o))}((0,i.LFG)(i.gxx))},token:t,providedIn:"root"}),t})();const ge=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:"browser"},{provide:i.g9A,useValue:function(){Ut.makeCurrent(),Ht.init()},multi:!0},{provide:o,useFactory:function(){return(0,i.RDi)(document),document},deps:[]}]),me=[[],{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function(){return new i.qLn},deps:[]},{provide:Yt,useClass:ae,multi:!0,deps:[o,i.R0b,i.Lbi]},{provide:Yt,useClass:de,multi:!0,deps:[o]},[],{provide:ie,useClass:ie,deps:[Qt,Wt,i.AFp]},{provide:i.FYo,useExisting:ie},{provide:Jt,useExisting:Wt},{provide:Wt,useClass:Wt,deps:[o]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:Qt,useClass:Qt,deps:[Yt,i.R0b]},{provide:qt,useClass:Gt,deps:[]},[]];let ve=(()=>{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.AFp,useValue:e.appId},{provide:Bt,useExisting:i.AFp},zt]}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(t,12))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:me,imports:[Pt,i.hGG]}),t})();function ye(){return new be((0,i.LFG)(o))}let be=(()=>{class t{constructor(t){this._doc=t,this._dom=s()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,n)=>(n&&t.push(this._getOrCreateElement(n,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),n=this.getTags(e).filter(e=>this._containsAttributes(t,e))[0];if(void 0!==n)return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(t,n),this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(n=>e.setAttribute(this._getMetaKeyMap(n),t[n])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(n=>e.getAttribute(this._getMetaKeyMap(n))===t[n])}_getMetaKeyMap(t){return _e[t]||t}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o))},t.\u0275prov=(0,i.Yz7)({factory:ye,token:t,providedIn:"root"}),t})();const _e={httpEquiv:"http-equiv"};function we(){return new xe((0,i.LFG)(o))}let xe=(()=>{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.LFG(o))},t.\u0275prov=(0,i.Yz7)({factory:we,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window;var Se=n(5917),Te=n(8891),Ce=n(9773);function Ee(t,e){return(0,Ce.zg)(t,e,1)}var Ae=n(7393);function Ie(t,e){return function(n){return n.lift(new ke(t,e))}}class ke{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Oe(t,this.predicate,this.thisArg))}}class Oe extends Ae.L{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)}}var De=n(8002);class Ne{}class Pe{}class Re{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),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>
1{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}: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 Re?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 Re;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Re?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 i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.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 Le{encodeKey(t){return Ze(t)}encodeValue(t){return Ze(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const Me=/%(\d[a-f0-9])/gi,Fe={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ze(t){return encodeURIComponent(t).replace(Me,(t,e)=>{var n;return null!==(n=Fe[e])&&void 0!==n?n:t})}function qe(t){return`${t}`}class Ue{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Le,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.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[r,s]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}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 Ue({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(qe(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(qe(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)}}class Ve{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}
1keys(){return this.map.keys()}}function je(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Be(t){return"undefined"!=typeof Blob&&t instanceof Blob}function ze(t){return"undefined"!=typeof FormData&&t instanceof FormData}class He{constructor(t,e,n,i){let r;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)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new Re),this.context||(this.context=new Ve),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 Ue,this.urlWithParams=e}serializeBody(){return null===this.body?null:je(this.body)||Be(this.body)||ze(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof Ue?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||ze(this.body)?null:Be(this.body)?this.body.type||null:je(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ue?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const l=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),u)),new He(n,i,s,{params:u,headers:c,context:l,reportProgress:a,responseType:r,withCredentials:o})}}var Ge=(()=>((Ge=Ge||{})[Ge.Sent=0]="Sent",Ge[Ge.UploadProgress=1]="UploadProgress",Ge[Ge.ResponseHeader=2]="ResponseHeader",Ge[Ge.DownloadProgress=3]="DownloadProgress",Ge[Ge.Response=4]="Response",Ge[Ge.User=5]="User",Ge))();class Ye{constructor(t,e=200,n="OK"){this.headers=t.headers||new Re,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 Qe extends Ye{constructor(t={}){super(t),this.type=Ge.ResponseHeader}clone(t={}){return new Qe({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class $e extends Ye{constructor(t={}){super(t),this.type=Ge.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new $e({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 Je extends Ye{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 We(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Ke=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof He)i=t;else{let r,s;r=n.headers instanceof Re?n.headers:new Re(n.headers),n.params&&(s=n.params instanceof Ue?n.params:new Ue({fromObject:n.params})),i=new He(t,e,void 0!==n.body?n.body:null,{headers:r,context:n.context,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=(0,Se.of)(i).pipe(Ee(t=>this.handler.handle(t)));if(t instanceof He||"events"===n.observe)return r;const s=r.pipe(Ie(t=>t instanceof $e));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe((0,De.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe((0,De.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe((0,De.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe((0,De.U)(t=>t.body))}case"response":return s;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 Ue).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,We(n,e))}post(t,e,n={}){return this.request("POST",t,We(n,e))}put(t,e,n={}){return this.request("PUT",t,We(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ne))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Xe{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const tn=new i.OlP("HTTP_INTERCEPTORS");let en=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const nn=/^\)\]\}',?\n/;let rn=(()=>{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 Te.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEac
vendor: 4,277 bytes, line 1
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 i=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=new Re(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new Qe({headers:s,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),c=null;204!==r&&(c=void 0===n.response?n.responseText:n.response),0===r&&(r=c?200:0);let u=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(nn,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new $e({body:c,headers:i,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new Je({error:c,headers:i,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=s(),r=new Je({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let c=!1;const u=i=>{c||(e.next(s()),c=!0);let r={type:Ge.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&!!n.responseText&&(r.partialText=n.responseText),e.next(r)},l=t=>{let n={type:Ge.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",u),null!==i&&n.upload&&n.upload.addEventListener("progress",l)),n.send(i),e.next({type:Ge.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",u),null!==i&&n.upload&&n.upload.removeEventListener("progress",l)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(qt))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const sn=new i.OlP("XSRF_COOKIE_NAME"),on=new i.OlP("XSRF_HEADER_NAME");class an{}let cn=(()=>{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=ct(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o),i.LFG(i.Lbi),i.LFG(sn))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),un=(()=>{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 i=this.tokenService.getToken();return null!==i&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(an),i.LFG(on))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),ln=(()=>{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(tn,[]);this.chain=t.reduceRight((t,e)=>new Xe(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Pe),i.LFG(i.zs3))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),hn=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:un,useClass:en}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:sn,useValue:e.cookieName}:[],e.headerName?{provide:on,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[un,{provide:tn,useExisting:un,multi:!0},{provide:an,useClass:cn},{provide:sn,useValue:"XSRF-TOKEN"},{provide:on,useValue:"X-XSRF-TOKEN"}
1]}),t})(),dn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[Ke,{provide:Ne,useClass:ln},rn,{provide:Pe,useExisting:rn}],imports:[[hn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();var fn=n(4402),pn=n(9765),gn=n(7971);class mn extends pn.xQ{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 gn.N;return this._value}next(t){super.next(this._value=t)}}var vn=n(4869),yn=n(9796);class bn extends Ae.L{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class _n extends Ae.L{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 wn=n(7444);function xn(t,e,n,i,r=new _n(t,n,i)){if(!r.closed)return e instanceof Te.y?e.subscribe(r):(0,wn.s)(e)(r)}var Sn=n(6693);const Tn={};class Cn{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new En(t,this.resultSelector))}}class En extends bn{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Tn),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++)this.add(xn(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,r=this.toRespond?i[n]===Tn?--this.toRespond:this.toRespond:0;i[n]=e,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const An=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var In=n(3282);function kn(...t){return(0,In.J)(1)((0,Se.of)(...t))}var On=n(9193);function Dn(t){return new Te.y(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,fn.D)(n):(0,On.c)()).subscribe(e)})}var Nn=n(2441),Pn=n(5345);function Rn(t,e){return"function"==typeof e?n=>n.pipe(Rn((n,i)=>(0,fn.D)(t(n,i)).pipe((0,De.U)((t,r)=>e(n,t,i,r))))):e=>e.lift(new Ln(t))}class Ln{constructor(t){this.project=t}call(t,e){return e.subscribe(new Mn(t,this.project))}}class Mn extends Pn.Ds{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(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new Pn.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,Pn.ft)(t,n),this.innerSubscription!==n&&i.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)}}const Fn=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Zn(t){return e=>0===t?(0,On.c)():e.lift(new qn(t))}class qn{constructor(t){if(this.total=t,this.total<0)throw new Fn}call(t,e){return e.subscribe(new Un(t,this.total))}}class Un extends Ae.L{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()))}}function Vn(...t){const e=t[t.length-1];return(0,vn.K)(e)?(t.pop(),n=>kn(t,n,e)):e=>kn(t,e)}function jn(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Bn(t,e,n))}}class Bn{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new zn(t,this.accumulator,this.seed,this.hasSeed))}}class zn extends Ae.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,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(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function Hn(t){return function(e){const n=new Gn(t),i=e.lift(n);return n.caught=i}}class Gn{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Yn(t,this.selector,this.caught))}}class Yn extends Pn.Ds{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 Pn.IY(this);this.add(i);const r=(0,Pn.ft)(n,i);r!==i&&this.add(r)}}}function Qn(t){return function(e){return 0===t?(0,On.c)():e.lift(new $n(t))}}class $n{constructor(t){if(this.total=t,this.total<0)throw new Fn}call(t,e){return e.subscribe(new Jn(t,this.total))}}class Jn extends Ae.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;r<n;r++){const r=e++%n;t.next(i[r])}}t.complete()}}function Wn(t=ti){return e=>e.lift(new Kn(t))}class Kn{constructor(t){this.errorFactory=t}
1call(t,e){return e.subscribe(new Xn(t,this.errorFactory))}}class Xn extends Ae.L{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 ti(){return new An}function ei(t=null){return e=>e.lift(new ni(t))}class ni{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new ii(t,this.defaultValue))}}class ii extends Ae.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var ri=n(4487);function si(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Ie((e,n)=>t(e,n,i)):ri.y,Zn(1),n?ei(e):Wn(()=>new An))}var oi=n(3342),ai=n(1307),ci=n(5319);class ui{constructor(t){this.callback=t}call(t,e){return e.subscribe(new li(t,this.callback))}}class li extends Ae.L{constructor(t,e){super(t),this.add(new ci.w(e))}}class hi{constructor(t,e){this.id=t,this.url=e}}class di extends hi{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class fi extends hi{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class pi extends hi{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class gi extends hi{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class mi extends hi{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vi extends hi{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yi extends hi{constructor(t,e,n,i,r){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class bi extends hi{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _i extends hi{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wi{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xi{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Si{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ti{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ci{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ei{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ai{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 Ii="primary";class ki{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 Oi(t){return new ki(t)}const Di="ngNavigationCancelingError";function Ni(t){const e=Error("NavigationCancelingError: "+t);return e[Di]=!0,e}function Pi(t,e,n){const i=n.path.split("/");if(i.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const r={};for(let s=0;s<i.length;s++){const e=i[s],n=t[s];if(e.startsWith(":"))r[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function Ri(t,e){const n=t?Object.keys(t):void 0,i=e?Object.keys(e):void 0;if(!n||!i||n.length!=i.length)return!1;let r;for(let s=0;s<n.length;s++)if(r=n[s],!Li(t[r],e[r]))return!1;return!0}function Li(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),i=[...e].sort();return n.every((t,e)=>i[e]===t)}return t===e}function Mi(t){return Array.prototype.concat.apply([],t)}function Fi(t){return t.length>0?t[t.length-1]:null}function Zi(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}
1function qi(t){return(0,i.CqO)(t)?t:(0,i.QGY)(t)?(0,fn.D)(Promise.resolve(t)):(0,Se.of)(t)}const Ui={exact:function t(e,n,i){if(!$i(e.segments,n.segments)||!Hi(e.segments,n.segments,i)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!t(e.children[r],n.children[r],i))return!1;return!0},subset:Bi},Vi={exact:function(t,e){return Ri(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Li(t[n],e[n]))},ignored:()=>!0};function ji(t,e,n){return Ui[n.paths](t.root,e.root,n.matrixParams)&&Vi[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Bi(t,e,n){return zi(t,e,e.segments,n)}function zi(t,e,n,i){if(t.segments.length>n.length){const r=t.segments.slice(0,n.length);return!(!$i(r,n)||e.hasChildren()||!Hi(r,n,i))}if(t.segments.length===n.length){if(!$i(t.segments,n)||!Hi(t.segments,n,i))return!1;for(const n in e.children)if(!t.children[n]||!Bi(t.children[n],e.children[n],i))return!1;return!0}{const r=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!($i(t.segments,r)&&Hi(t.segments,r,i)&&t.children[Ii])&&zi(t.children[Ii],e,s,i)}}function Hi(t,e,n){return e.every((e,i)=>Vi[n](t[i].parameters,e.parameters))}class Gi{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oi(this.queryParams)),this._queryParamMap}toString(){return Ki.serialize(this)}}class Yi{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Zi(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Xi(this)}}class Qi{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Oi(this.parameters)),this._parameterMap}toString(){return or(this)}}function $i(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Ji{}class Wi{parse(t){const e=new hr(t);return new Gi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${tr(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${nr(e)}=${nr(t)}`).join("&"):`${nr(e)}=${nr(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Ki=new Wi;function Xi(t){return t.segments.map(t=>or(t)).join("/")}function tr(t,e){if(!t.hasChildren())return Xi(t);if(e){const e=t.children[Ii]?tr(t.children[Ii],!1):"",n=[];return Zi(t.children,(t,e)=>{e!==Ii&&n.push(`${e}:${tr(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Zi(t.children,(t,i)=>{i===Ii&&(n=n.concat(e(t,i)))}),Zi(t.children,(t,i)=>{i!==Ii&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===Ii?[tr(t.children[Ii],!1)]:[`${n}:${tr(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ii]?`${Xi(t)}/${e[0]}`:`${Xi(t)}/(${e.join("//")})`}}function er(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nr(t){return er(t).replace(/%3B/gi,";")}function ir(t){return er(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rr(t){return decodeURIComponent(t)}function sr(t){return rr(t.replace(/\+/g,"%20"))}function or(t){return`${ir(t.path)}${function(t){return Object.keys(t).map(e=>`;${ir(e)}=${ir(t[e])}`).join("")}(t.parameters)}`}const ar=/^[^\/()?;=#]+/;function cr(t){const e=t.match(ar);return e?e[0]:""}const ur=/^[^=?&#]+/,lr=/^[^?&#]+/;class hr{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yi([],{}):new Yi([],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[Ii]=new Yi(t,e)),n}parseSegment(){const t=cr(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Qi(rr(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=cr(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=cr(this.remaining);t&&(n=t,this.capture(n))}t[rr(e)]=rr(n)}parseQueryParam(t){const e=function(t){const e=t.match(ur);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(lr);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=sr(e),r=sr(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=cr(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=Ii);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s[Ii]:new Yi([],s),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 dr{constructor(t){this._root=t}get root(){return this._root.value}
1parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=fr(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=fr(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=pr(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return pr(t,this._root).map(t=>t.value)}}function fr(t,e){if(t===e.value)return e;for(const n of e.children){const e=fr(t,n);if(e)return e}return null}function pr(t,e){if(t===e.value)return[e];for(const n of e.children){const i=pr(t,n);if(i.length)return i.unshift(e),i}return[]}class gr{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function mr(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class vr extends dr{constructor(t,e){super(t),this.snapshot=e,Sr(this,t)}toString(){return this.snapshot.toString()}}function yr(t,e){const n=function(t,e){const n=new wr([],{},{},"",{},Ii,e,null,t.root,-1,{});return new xr("",new gr(n,[]))}(t,e),i=new mn([new Qi("",{})]),r=new mn({}),s=new mn({}),o=new mn({}),a=new mn(""),c=new br(i,r,o,a,s,Ii,e,n.root);return c.snapshot=n.root,new vr(new gr(c,[]),n)}class br{constructor(t,e,n,i,r,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,De.U)(t=>Oi(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,De.U)(t=>Oi(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function _r(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}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(i))}class wr{constructor(t,e,n,i,r,s,o,a,c,u,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,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=Oi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xr extends dr{constructor(t,e){super(e),this.url=t,Sr(this,e)}toString(){return Tr(this._root)}}function Sr(t,e){e.value._routerState=t,e.children.forEach(e=>Sr(t,e))}function Tr(t){const e=t.children.length>0?` { ${t.children.map(Tr).join(", ")} } `:"";return`${t.value}${e}`}function Cr(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Ri(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Ri(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(!Ri(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Ri(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Er(t,e){return Ri(t.params,e.params)&&function(t,e){return $i(t,e)&&t.every((t,n)=>Ri(t.parameters,e[n].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||Er(t.parent,e.parent))}function Ar(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Ar(t,e,i);return Ar(t,e)})}(t,e,n);return new gr(i,r)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return Ir(e,t),t}}const n=function(t){return new br(new mn(t.url),new mn(t.params),new mn(t.queryParams),new mn(t.fragment),new mn(t.data),t.outlet,t.component,t)}(e.value),i=e.children.map(e=>Ar(t,e));return new gr(n,i)}}function Ir(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");
1if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)Ir(t.children[n],e.children[n])}function kr(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Or(t){return"object"==typeof t&&null!=t&&t.outlets}function Dr(t,e,n,i,r){let s={};return i&&Zi(i,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Gi(n.root===t?e:Nr(n.root,t,e),s,r)}function Nr(t,e,n){const i={};return Zi(t.children,(t,r)=>{i[r]=t===e?n:Nr(t,e,n)}),new Yi(t.segments,i)}class Pr{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&kr(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Or);if(i&&i!==Fi(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Rr{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Lr(t,e,n){if(t||(t=new Yi([],{})),0===t.segments.length&&t.hasChildren())return Mr(t,e,n);const i=function(t,e,n){let i=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=n.length)return s;const e=t.segments[r],o=n[i];if(Or(o))break;const a=`${o}`,c=i<n.length-1?n[i+1]:null;if(r>0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!Ur(a,c,e))return s;i+=2}else{if(!Ur(a,{},e))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new Yi(t.segments.slice(0,i.pathIndex),{});return e.children[Ii]=new Yi(t.segments.slice(i.pathIndex),t.children),Mr(e,0,r)}return i.match&&0===r.length?new Yi(t.segments,{}):i.match&&!t.hasChildren()?Fr(t,e,n):i.match?Mr(t,0,r):Fr(t,e,n)}function Mr(t,e,n){if(0===n.length)return new Yi(t.segments,{});{const i=function(t){return Or(t[0])?t[0].outlets:{[Ii]:t}}(n),r={};return Zi(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=Lr(t.children[i],e,n))}),Zi(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new Yi(t.segments,r)}}function Fr(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r<n.length;){const s=n[r];if(Or(s)){const t=Zr(s.outlets);return new Yi(i,t)}if(0===r&&kr(n[0])){i.push(new Qi(t.segments[e].path,qr(n[0]))),r++;continue}const o=Or(s)?s.outlets[Ii]:`${s}`,a=r<n.length-1?n[r+1]:null;o&&a&&kr(a)?(i.push(new Qi(o,qr(a))),r+=2):(i.push(new Qi(o,{})),r++)}return new Yi(i,{})}function Zr(t){const e={};return Zi(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Fr(new Yi([],{}),0,t))}),e}function qr(t){const e={};return Zi(t,(t,n)=>e[n]=`${t}`),e}function Ur(t,e,n){return t==n.path&&Ri(e,n.parameters)}class Vr{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Cr(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=mr(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Zi(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&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(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,r=mr(t);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=mr(e);
1t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Ei(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Ti(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(Cr(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),jr(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}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function jr(t){Cr(t.value),t.children.forEach(jr)}class Br{constructor(t,e){this.routes=t,this.module=e}}function zr(t){return"function"==typeof t}function Hr(t){return t instanceof Gi}const Gr=Symbol("INITIAL_VALUE");function Yr(){return Rn(t=>function(...t){let e,n;return(0,vn.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,yn.k)(t[0])&&(t=t[0]),(0,Sn.n)(t,n).lift(new Cn(e))}(t.map(t=>t.pipe(Zn(1),Vn(Gr)))).pipe(jn((t,e)=>{let n=!1;return e.reduce((t,i,r)=>t!==Gr?t:(i===Gr&&(n=!0),n||!1!==i&&r!==e.length-1&&!Hr(i)?t:i),t)},Gr),Ie(t=>t!==Gr),(0,De.U)(t=>Hr(t)?t:!0===t),Zn(1)))}let Qr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&i._UZ(0,"router-outlet")},directives:function(){return[Hs]},encapsulation:2}),t})();function $r(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];Jr(i,Wr(e,i))}}function Jr(t,e){t.children&&$r(t.children,e)}function Wr(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Kr(t){const e=t.children&&t.children.map(Kr),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==Ii&&(n.component=Qr),n}function Xr(t){return t.outlet||Ii}function ts(t,e){const n=t.filter(t=>Xr(t)===e);return n.push(...t.filter(t=>Xr(t)!==e)),n}const es={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ns(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},es):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||Pi)(n,t,e);if(!r)return Object.assign({},es);const s={};Zi(r.posParams,(t,e)=>{s[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function is(t,e,n,i,r="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>rs(t,e,n)&&Xr(n)!==Ii)}(t,n,i)){const r=new Yi(e,function(t,e,n,i){const r={};r[Ii]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&Xr(s)!==Ii){const n=new Yi([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[Xr(s)]=n}return r}(t,e,i,new Yi(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>rs(t,e,n))}(t,n,i)){const s=new Yi(t.segments,function(t,e,n,i,r,s){const o={};for(const a of i)if(rs(t,n,a)&&!r[Xr(a)]){const n=new Yi([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[Xr(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new Yi(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function rs(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function ss(t,e,n,i){return!!(Xr(t)===i||i!==Ii&&rs(e,n,t))&&("**"===t.path||ns(e,t,n).matched)}function os(t,e,n){return 0===e.length&&!t.children[n]}class as{constructor(t){this.segmentGroup=t||null}}class cs{constructor(t){this.urlTree=t}}function us(t){return new Te.y(e=>e.error(new as(t)))}function ls(t){return new Te.y(e=>e.error(new cs(t)))}function hs(t){return new Te.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class ds{constructor(t,e,n,r,s){this.configLoader=e,this.urlSerializer
1=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(i.h0i)}apply(){const t=is(this.urlTree.root,[],[],this.config).segmentGroup,e=new Yi(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Ii).pipe((0,De.U)(t=>this.createUrlTree(fs(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Hn(t=>{if(t instanceof cs)return this.allowRedirects=!1,this.match(t.urlTree);throw t instanceof as?this.noMatchError(t):t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Ii).pipe((0,De.U)(e=>this.createUrlTree(fs(e),t.queryParams,t.fragment))).pipe(Hn(t=>{throw t instanceof as?this.noMatchError(t):t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Yi([],{[Ii]:t}):t;return new Gi(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,De.U)(t=>new Yi([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return(0,fn.D)(i).pipe(Ee(i=>{const r=n.children[i],s=ts(e,i);return this.expandSegmentGroup(t,s,r,i).pipe((0,De.U)(t=>({segment:t,outlet:i})))}),jn((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Ie((e,n)=>t(e,n,i)):ri.y,Qn(1),n?ei(e):Wn(()=>new An))}())}expandSegment(t,e,n,i,r,s){return(0,fn.D)(n).pipe(Ee(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,r,s).pipe(Hn(t=>{if(t instanceof as)return(0,Se.of)(null);throw t}))),si(t=>!!t),Hn((t,n)=>{if(t instanceof An||"EmptyError"===t.name){if(os(e,i,r))return(0,Se.of)(new Yi([],{}));throw new as(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,r,s,o){return ss(i,e,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s):us(e):us(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ls(r):this.lineralizeSegments(n,r).pipe((0,Ce.zg)(n=>{const r=new Yi(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:u}=ns(e,i,r);if(!o)return us(e);const l=this.applyRedirectCommands(a,i.redirectTo,u);return i.redirectTo.startsWith("/")?ls(l):this.lineralizeSegments(i,l).pipe((0,Ce.zg)(i=>this.expandSegment(t,e,n,i.concat(r.slice(c)),s,!1)))}matchSegmentAgainstRoute(t,e,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,Se.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,De.U)(t=>(n._loadedConfig=t,new Yi(i,{})))):(0,Se.of)(new Yi(i,{}));const{matched:s,consumedSegments:o,lastChild:a}=ns(e,n,i);if(!s)return us(e);const c=i.slice(a);return this.getChildConfig(t,n,i).pipe((0,Ce.zg)(t=>{const i=t.module,s=t.routes,{segmentGroup:a,slicedSegments:u}=is(e,o,c,s),l=new Yi(a.segments,a.children);if(0===u.length&&l.hasChildren())return this.expandChildren(i,s,l).pipe((0,De.U)(t=>new Yi(o,t)));if(0===s.length&&0===u.length)return(0,Se.of)(new Yi(o,{}));const h=Xr(n)===r;return this.expandSegment(i,l,s,u,h?Ii:r,!0).pipe((0,De.U)(t=>new Yi(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,Se.of)(new Br(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,Se.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,Ce.zg)(n=>{return n?this.configLoader.load(t.injector,e).pipe((0,De.U)(t=>(e._loadedConfig=t,t))):(i=e,new Te.y(t=>t.error(Ni(`Cannot load children because the guard of the route "path: '${i.path}'" returned false`))));var i})):(0,Se.of)(new Br([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,Se.of)(!0);const r=i.map(i=>{const r=t.get(i);let s;if((o=r)&&zr(o.canLoad))s=r.canLoad(e,n);else{if(!zr(r))throw new Error("Invalid CanLoad guard");s=r(e,n)}var o;return qi(s)});return(0,Se.of)(r).pipe(Yr(),(0,oi.b)(t=>{if(!Hr(t))return;const e=Ni(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,De.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,Se.of)(n);if(i.numberOfChildren>1||!i.children[Ii])return hs(t.redirectTo);i=i.children[Ii]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new Gi(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Zi(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let s={};return Zi(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,n,i)}),new Yi(r,s)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function fs(t){const e={};for(const n of Object.keys(t.children)){const i=fs(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children[Ii]){const e=t.children[Ii];return new Yi(t.segments.concat(e.segments),e.children)}return t}(new Yi(t.segments,e))}class ps{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class gs{constructor(t,e){this.component=t,this.route=e}}function ms(t,e,n){const i=t._root;return ys(i,e?e._root:null,n,[i.value])}function vs(t,e,n){const i=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(i?i.module.injector:n).get(t)}function ys(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=mr(e);
1return t.children.forEach(t=>{(function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!$i(t.url,e.url);case"pathParamsOrQueryParamsChange":return!$i(t.url,e.url)||!Ri(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Er(t,e)||!Ri(t.queryParams,e.queryParams);case"paramsChange":default:return!Er(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new ps(i)):(s.data=o.data,s._resolvedData=o._resolvedData),ys(t,e,s.component?a?a.children:null:n,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new gs(a.outlet.component,o))}else o&&bs(e,a,r),r.canActivateChecks.push(new ps(i)),ys(t,null,s.component?a?a.children:null:n,i,r)})(t,s[t.value.outlet],n,i.concat([t.value]),r),delete s[t.value.outlet]}),Zi(s,(t,e)=>bs(t,n.getContext(e),r)),r}function bs(t,e,n){const i=mr(t),r=t.value;Zi(i,(t,i)=>{bs(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new gs(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class _s{}function ws(t){return new Te.y(e=>e.error(t))}class xs{constructor(t,e,n,i,r,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const t=is(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Ii);if(null===e)return null;const n=new wr([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ii,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new gr(n,e),r=new xr(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=_r(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=[];for(const r of Object.keys(e.children)){const i=e.children[r],s=ts(t,r),o=this.processSegmentGroup(s,i,r);if(null===o)return null;n.push(...o)}const i=Ts(n);return i.sort((t,e)=>t.value.outlet===Ii?-1:e.value.outlet===Ii?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,n,i);if(null!==t)return t}return os(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!ss(t,e,n,i))return null;let r,s=[],o=[];if("**"===t.path){const i=n.length>0?Fi(n).parameters:{};r=new wr(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,As(t),Xr(t),t.component,t,Cs(e),Es(e)+n.length,Is(t))}else{const i=ns(e,t,n);if(!i.matched)return null;s=i.consumedSegments,o=n.slice(i.lastChild),r=new wr(s,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,As(t),Xr(t),t.component,t,Cs(e),Es(e)+s.length,Is(t))}const a=(l=t).children?l.children:l.loadChildren?l._loadedConfig.routes:[],{segmentGroup:c,slicedSegments:u}=is(e,s,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);var l;if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new gr(r,t)]}if(0===a.length&&0===u.length)return[new gr(r,[])];const h=Xr(t)===i,d=this.processSegment(a,c,u,h?Ii:i);return null===d?null:[new gr(r,d)]}}function Ss(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Ts(t){const e=[],n=new Set;for(const i of t){if(!Ss(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=Ts(i.children);e.push(new gr(i.value,t))}return e.filter(t=>!n.has(t))}function Cs(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Es(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 As(t){return t.data||{}}function Is(t){return t.resolve||{}}function ks(t){return Rn(e=>{const n=t(e);return n?(0,fn.D)(n).pipe((0,De.U)(()=>e)):(0,Se.of)(e)})}class Os 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}}{}const Ds=new i.OlP("ROUTES");class Ns{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,De.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new Br(Mi(r.injector.get(Ds,void 0,i.XFs.Self|i.XFs.Optional)).map(Kr),r)}),Hn(t=>{throw e._loader$=void 0,t}));return e._loader$=new Nn.c(n,()=>new pn.xQ).pipe((0,ai.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,fn.D)(this.loader.load(t)):qi(t()).pipe((0,Ce.zg)(t=>t instanceof i.YKP?(0,Se.of)(t):(0,fn.D)(this.compiler.compileModuleAsync(t))))}}class Ps{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Rs,this.attachRef=null}}class Rs{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,e.attachRef=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 Ps,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Ls{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Ms(t){throw t}function Fs(t,e,n){return e.parse("/")}function Zs(t,e){return(0,Se.of)(null)}const qs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Us={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Vs=(()=>{class t{constructor(t,e,n,r,s,o,a,c){this.rootComponentType=t,this.urlSerializer
1=e,this.rootContexts=n,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new pn.xQ,this.errorHandler=Ms,this.malformedUriErrorHandler=Fs,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Zs,afterPreactivation:Zs},this.urlHandlingStrategy=new Ls,this.routeReuseStrategy=new Os,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(i.h0i),this.console=s.get(i.c2e);const u=s.get(i.R0b);this.isNgZoneEnabled=u instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Gi(new Yi([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ns(o,a,t=>this.triggerEvent(new wi(t)),t=>this.triggerEvent(new xi(t))),this.routerState=yr(this.currentUrlTree,this.rootComponentType),this.transitions=new mn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe(Ie(t=>0!==t.id),(0,De.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Rn(t=>{let n=!1,i=!1;return(0,Se.of)(t).pipe((0,oi.b)(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}}),Rn(t=>{const n=this.browserUrlTree.toString(),r=!this.navigated||t.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||r)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return js(t.source)&&(this.browserUrlTree=t.extractedUrl),(0,Se.of)(t).pipe(Rn(t=>{const n=this.transitions.getValue();return e.next(new di(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?On.E:Promise.resolve(t)}),function(t,e,n,i){return Rn(r=>function(t,e,n,i,r){return new ds(t,e,n,i,r).apply()}(t,e,n,r.extractedUrl,i).pipe((0,De.U)(t=>Object.assign(Object.assign({},r),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,oi.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return(0,Ce.zg)(o=>function(t,e,n,r,s="emptyOnly",o="legacy"){try{const i=new xs(t,e,n,r,s,o).recognize();return null===i?ws(new _s):(0,Se.of)(i)}catch(i){return ws(i)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),r,s).pipe((0,De.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,oi.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new mi(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(r&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:s,extras:o}=t,a=new di(n,this.serializeUrl(i),r,s);e.next(a);const c=yr(i,this.rootComponentType).snapshot;return(0,Se.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}
1))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),On.E}),ks(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),(0,oi.b)(t=>{const e=new vi(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,De.U)(t=>Object.assign(Object.assign({},t),{guards:ms(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,Ce.zg)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?(0,Se.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,fn.D)(t).pipe((0,Ce.zg)(t=>function(t,e,n,i,r){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||0===s.length)return(0,Se.of)(!0);const o=s.map(s=>{const o=vs(s,e,r);let a;if(function(t){return t&&zr(t.canDeactivate)}(o))a=qi(o.canDeactivate(t,e,n,i));else{if(!zr(o))throw new Error("Invalid CanDeactivate guard");a=qi(o(t,e,n,i))}return a.pipe(si())});return(0,Se.of)(o).pipe(Yr())}(t.component,t.route,n,e,i)),si(t=>!0!==t,!0))}(o,i,r,t).pipe((0,Ce.zg)(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,i){return(0,fn.D)(e).pipe(Ee(e=>kn(function(t,e){return null!==t&&e&&e(new Si(t)),(0,Se.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new Ci(t)),(0,Se.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],r=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=>Dn(()=>{const r=e.guards.map(r=>{const s=vs(r,e.node,n);let o;if(function(t){return t&&zr(t.canActivateChild)}(s))o=qi(s.canActivateChild(i,t));else{if(!zr(s))throw new Error("Invalid CanActivateChild guard");o=qi(s(i,t))}return o.pipe(si())});return(0,Se.of)(r).pipe(Yr())}));return(0,Se.of)(r).pipe(Yr())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,Se.of)(!0);const r=i.map(i=>Dn(()=>{const r=vs(i,e,n);let s;if(function(t){return t&&zr(t.canActivate)}(r))s=qi(r.canActivate(e,t));else{if(!zr(r))throw new Error("Invalid CanActivate guard");s=qi(r(e,t))}return s.pipe(si())}));return(0,Se.of)(r).pipe(Yr())}(t,e.route,n))),si(t=>!0!==t,!0))}(i,s,t,e):(0,Se.of)(n)),(0,De.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,oi.b)(t=>{if(Hr(t.guardsResult)){const e=Ni(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new yi(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Ie(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),ks(t=>{if(t.guards.canActivateChecks.length)return(0,Se.of)(t).pipe((0,oi.b)(t=>{const e=new bi(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Rn(t=>{let e=!1;return(0,Se.of)(t).pipe(function(t,e){return(0,Ce.zg)(n=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=n;if(!r.length)return(0,Se.of)(n);let s=0;return(0,fn.D)(r).pipe(Ee(n=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return(0,Se.of)({});const s={};return(0,fn.D)(r).pipe((0,Ce.zg)(r=>function(t,e,n,i){const r=vs(t,e,i);return qi(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe((0,oi.b)(t=>{s[r]=t}))),Qn(1),(0,Ce.zg)(()=>Object.keys(s).length===r.length?(0,Se.of)(s):On.E))}(t._resolve,t,e,i).pipe((0,De.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),_r(t,n).resolve),null)))}(n.route,i,t,e)),(0,oi.b)(()=>s++),Qn(1),(0,Ce.zg)(t=>s===r.length?(0,Se.of)(n):On.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,oi.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),(0,oi.b)(t=>{const e=new _i(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),ks(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),(0,De.U)(t=>{const e=function(t,e,n){const i=Ar(t,e._root,n?n._root:void 0);return new vr(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,oi.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(t.urlAfterRedirects,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),((t,e,n)=>(0,De.U)(i=>(new Vr(e,i.targetRouterState,i.currentRouterState,n).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,t=>
1this.triggerEvent(t)),(0,oi.b)({next(){n=!0},complete(){n=!0}}),function(t){return e=>e.lift(new ui(t))}(()=>{var e;if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}(null===(e=this.currentNavigation)||void 0===e?void 0:e.id)===t.id&&(this.currentNavigation=null)}),Hn(n=>{if(i=!0,function(t){return t&&t[Di]}(n)){const i=Hr(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const r=new pi(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||js(t.source)};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new gi(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}return On.E}))}))}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:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)},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){$r(t),this.config=t.map(Kr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:s,preserveFragment:o}=e,a=n||this.routerState.root,c=o?this.currentUrlTree.fragment:r;let u=null;switch(s){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,i,r){if(0===n.length)return Dr(e.root,e.root,e,i,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Pr(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Zi(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Pr(n,e,i)}(n);if(s.toRoot())return Dr(e.root,new Yi([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new Rr(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Rr(t,t===e.root,0)}const i=kr(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new Rr(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?Mr(o.segmentGroup,o.index,s.commands):Lr(o.segmentGroup,o.index,s.commands);return Dr(o.segmentGroup,a,e,i,r)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Hr(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"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){let n;if(n=!0===e?Object.assign({},qs):!1===e?Object.assign({},Us):e,Hr(t))return ji(this.currentUrlTree,t,n);const i=this.parseUrl(t);return ji(this.currentUrlTree,i,n)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new fi(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,e,n,i,r){var s,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),c=js(e)&&a&&!js(a.source),u=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(c&&u)return Promise.resolve(!0);let l,h,d;r?(l=r.resolve,h=r.reject,d=r.promise):d=new Promise((t,e)=>{l=t,h=e});const f=++this.navigationId;let p;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),p=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):p=0,this.setTransition({id:f,targetPageId:p,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
1),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new pi(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.DyG),i.LFG(Ji),i.LFG(Rs),i.LFG(w),i.LFG(i.zs3),i.LFG(i.v3s),i.LFG(i.Sil),i.LFG(void 0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function js(t){return"imperative"!==t}let Bs=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new pn.xQ,this.subscription=t.events.subscribe(t=>{t instanceof fi&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r||"string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:zs(this.skipLocationChange),replaceUrl:zs(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:zs(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Vs),i.Y36(br),i.Y36(m))},t.\u0275dir=i.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(i.Ikx("href",e.href,i.LSH),i.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i.TTD]}),t})();function zs(t){return""===t||!!t}let Hs=(()=>{class t{constructor(t,e,n,r,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.name=r||Ii,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),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Gs(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Rs),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},t.\u0275dir=i.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Gs{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===br?this.route:t===Rs?this.childContexts:this.parent.get(t,e)}}class Ys{}class Qs{preload(t,e){return(0,Se.of)(null)}}let $s=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new Ns(e,n,e=>t.triggerEvent(new wi(e)),e=>t.triggerEvent(new xi(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Ie(t=>t instanceof fi),Ee(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(i.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,fn.D)(n).pipe((0,In.J)(),(0,De.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,Se.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,Ce.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Vs),i.LFG(i.v3s),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(Ys))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),Js=(()=>{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 di?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof fi&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Ai&&(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 Ai(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.LFG(Vs),i.LFG(Mt),i.LFG(void 0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const Ws=new i.OlP("ROUTER_CONFIGURATION"),Ks=new i.OlP("ROUTER_FORROOT_GUARD"),Xs=[w,{provide:Ji,useClass:Wi},{provide:Vs,useFactory:function(t,e,n,i,r,s,o,a={},c,u){const l=new Vs(null,t,e,n,i,r,s,Mi(o));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,l),a.enableTracing&&l.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}
1),l},deps:[Ji,Rs,w,i.zs3,i.v3s,i.Sil,Ds,Ws,[class{},new i.FiY],[class{},new i.FiY]]},Rs,{provide:br,useFactory:function(t){return t.routerState.root},deps:[Vs]},{provide:i.v3s,useClass:i.EAV},$s,Qs,class{preload(t,e){return e().pipe(Hn(()=>(0,Se.of)(null)))}},{provide:Ws,useValue:{enableTracing:!1}}];function to(){return new i.PXZ("Router",Vs)}let eo=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Xs,so(e),{provide:Ks,useFactory:ro,deps:[[Vs,new i.FiY,new i.tp0]]},{provide:Ws,useValue:n||{}},{provide:m,useFactory:io,deps:[a,[new i.tBr(y),new i.FiY],Ws]},{provide:Js,useFactory:no,deps:[Vs,Mt,Ws]},{provide:Ys,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Qs},{provide:i.PXZ,multi:!0,useFactory:to},[oo,{provide:i.ip1,multi:!0,useFactory:ao,deps:[oo]},{provide:uo,useFactory:co,deps:[oo]},{provide:i.tb,multi:!0,useExisting:uo}]]}}static forChild(e){return{ngModule:t,providers:[so(e)]}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ks,8),i.LFG(Vs,8))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();function no(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Js(t,e,n)}function io(t,e,n={}){return n.useHash?new _(t,e):new b(t,e)}function ro(t){return"guarded"}function so(t){return[{provide:i.deG,multi:!0,useValue:t},{provide:Ds,multi:!0,useValue:t}]}let oo=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new pn.xQ}appInitializer(){return this.injector.get(u,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Vs),i=this.injector.get(Ws);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,Se.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Ws),n=this.injector.get($s),r=this.injector.get(Js),s=this.injector.get(Vs),o=this.injector.get(i.z2F);t===o.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&s.initialNavigation(),n.setUpPreloading(),r.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.zs3))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function ao(t){return t.appInitializer.bind(t)}function co(t){return t.bootstrapListener.bind(t)}const uo=new i.OlP("Router Initializer"),lo={production:!0,urlApiRest:"/api",urlApiRestLocal:"http://localhost:8080/api",localPort:"4200",tipoImagen:{home:"H",miniatura:"M",novedades:"F",file:"F",galeria:"G"},estadoPublicado:"Publicado",siteKey:"6LcIX5kUAAAAALTX2U9IbgfYIH5gFKRA-_dvEuWq",urlOpenstreetmap:"https://nominatim.openstreetmap.org/reverse?format=json&zoom=18&addressdetails=1",largoEventoCorto:300,httpGetRetry:5,stateNameCABA:"Ciudad de Buenos Aires",stateNameDefault:"Todas"};let ho=(()=>{class t{constructor(t){this.http=t}getInfo(t,e){let n=lo.urlOpenstreetmap.concat("&lat="+t+"&lon="+e);return this.http.get(n)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ke))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class fo{constructor(t,e){this.open=t,this.close=e||t}isManual(){return"manual"===this.open||"manual"===this.close}}const po={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};const go="undefined"!=typeof window&&window||{};let mo;function vo(){return void 0===go||(void 0===go.__theme?(mo||(mo=function(){if("undefined"==typeof document)return null;const t=document.createElement("span");t.innerText="test bs version",document.body.appendChild(t),t.classList.add("d-none");const e=t.getBoundingClientRect();return document.body.removeChild(t),e&&0===e.top?"bs4":"bs3"}()),"bs3"===mo):"bs4"!==go.__theme)}class yo{constructor(){this.length=0,this.asArray=[]}get(t){if(0===this.length||t<0||t>=this.length)return;let e=this.head;for(let n=0;n<t;n++)e=e.next;return e.value}add(t,e=this.length){if(e<0||e>this.length)throw new Error("Position is out of the list");const n={value:t,next:void 0,previous:void 0};if(0===this.length)this.head=n,this.tail=n,this.current=n;else if(0===e)n.next=this.head,this.head.previous=n,this.head=n;else if(e===this.length)this.tail.next=n,n.previous=this.tail,this.tail=n;else{const t=this.getNode(e-1),i=t.next;t.next=n,i.previous=n,n.previous=t,n.next=i}this.length++,this.createInternalArrayRepresentation()}remove(t=0){if(0===this.length||t<0||t>=this.length)throw new Error("Position is out of the list");if(0===t)this.head=this.head.next,this.head?this.head.previous=void 0:this.tail=void 0;else if(t===this.length-1)this.tail=this.tail.previous,this.tail.next=void 0;else{const e=this.getNode(t);e.next.previous=e.previous,e.previous.next=e.next}this.length--,this.createInternalArrayRepresentation()}set(t,e){if(0===this.length||t<0||t>=this.length)throw new Error("Position is out of the list");this.getNode(t).value=e,this.createInternalArrayRepresentation()}toArray(){return this.asArray}findAll(t){let e=this.head;const n=[];for(let i=0;i<this.length;i++)t(e.value,i)&&n.push({index:i,value:e.value}),e=e.next;return n}push(...t){return t.forEach(t=>{this.add(t)}),this.length}pop(){if(0===this.length)return;const t=this.tail;return this.remove(this.length-1),t.value}unshift(...t){return t.reverse(),t.forEach(t=>{this.add(t,0)}),this.length}shift(){if(0===this.length)return;const t=this.head.value;return this.remove(),t}forEach(t){let e=this.head;for(let n=0;n<this.length;n++)t(e.value,n),e=e.next}indexOf(t){let e=this.head,n=0;for(let i=0;i<this.length;i++){if(e.value===t){n=i;break}e=e.next}return n}some(t){let e=this.head,n=!1;for(;e&&!n;){if(t(e.value)){n=!0;break}e=e.next}return n}every(t){let e=this.head,n=!0;for(;e&&n;)t(e.value)||(n=!1),e=e.next;return n}toString(){return"[Linked List]"}find(t){let e,n=this.head;for(let i=0;i<this.length;i++){if(t(n.value,i)){e=n.value;break}n=n.next}return e}findIndex(t){let e,n=this.head;for(let i=0;i<this.length;i++){if(t(n.value,i)){e=i;break}n=n.next}return e}getNode(t){if(0===this.length||t<0||t>=this.length)throw new Error("Position is out of the list");let e=this.head;for(let n=0;n<t;n++)e=e.next;return e}createInternalArrayRepresentation(){const t=[];let e=this.head;for(;e;)t.push(e.value),e=e.next;this.asArray=t}}class bo{static reflow(t){}static getStyles(t){let e=t.ownerDocument.defaultView;return(!e||!e.opener)&&(e=go),e.getComputedStyle(t)}}function _o(t,e){if(1&t){const t=i.EpF();
1i.TgZ(0,"li",7),i.NdJ("click",function(){const e=i.CHM(t).index;return i.oxw(2).selectSlide(e)}),i.qZA()}2&t&&i.ekj("active",!0===e.$implicit.active)}function wo(t,e){if(1&t&&(i.TgZ(0,"ol",5),i.YNc(1,_o,1,2,"li",6),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngForOf",t.indicatorsSlides())}}function xo(t,e){1&t&&(i.TgZ(0,"span",11),i._uU(1,"Previous"),i.qZA())}function So(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",8),i.NdJ("click",function(){return i.CHM(t),i.oxw().previousSlide()}),i._UZ(1,"span",9),i.YNc(2,xo,2,0,"span",10),i.qZA()}if(2&t){const t=i.oxw();i.ekj("disabled",0===t.activeSlide&&t.noWrap),i.xp6(2),i.Q6J("ngIf",t.isBs4)}}function To(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",12),i.NdJ("click",function(){return i.CHM(t),i.oxw().nextSlide()}),i._UZ(1,"span",13),i.TgZ(2,"span",11),i._uU(3,"Next"),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.ekj("disabled",t.isLast(t.activeSlide)&&t.noWrap)}}"undefined"==typeof console||console;const Co=function(t){return{display:t}},Eo=["*"];let Ao=(()=>{class t{constructor(){this.interval=5e3,this.noPause=!1,this.noWrap=!1,this.showIndicators=!0,this.pauseOnFocus=!1,this.indicatorsByChunk=!1,this.itemsPerSlide=1,this.singleSlideOffset=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const Io={UNKNOWN:0,NEXT:1,PREV:2};Io[Io.UNKNOWN]="UNKNOWN",Io[Io.NEXT]="NEXT",Io[Io.PREV]="PREV";let ko=(()=>{class t{constructor(t,e){this.ngZone=e,this.indicatorsByChunk=!1,this.itemsPerSlide=1,this.singleSlideOffset=!1,this.isAnimated=!1,this.activeSlideChange=new i.vpe(!1),this.slideRangeChange=new i.vpe,this.startFromIndex=0,this._slides=new yo,this._currentVisibleSlidesIndex=0,this.destroyed=!1,this.getActive=t=>t.active,this.makeSlidesConsistent=t=>{t.forEach((t,e)=>t.item.order=e)},Object.assign(this,t)}set activeSlide(t){this.multilist||this._slides.length&&t!==this._currentActiveSlide&&this._select(t)}get activeSlide(){return this._currentActiveSlide}get interval(){return this._interval}set interval(t){this._interval=t,this.restartTimer()}get slides(){return this._slides.toArray()}get isBs4(){return!vo()}ngAfterViewInit(){setTimeout(()=>{this.singleSlideOffset&&(this.indicatorsByChunk=!1),this.multilist&&(this._chunkedSlides=function(t,e){const n=[],i=Math.ceil(t.length/e);let r=0;for(;r<i;){const s=t.splice(0,r===i-1&&e<t.length?t.length:e);n.push(s),r++}return n}(this.mapSlidesAndIndexes(),this.itemsPerSlide),this.selectInitialSlides())},0)}ngOnDestroy(){this.destroyed=!0}addSlide(t){this._slides.add(t),this.multilist&&this._slides.length<=this.itemsPerSlide&&(t.active=!0),!this.multilist&&this.isAnimated&&(t.isAnimated=!0),!this.multilist&&1===this._slides.length&&(this._currentActiveSlide=void 0,this.activeSlide=0,this.play()),this.multilist&&this._slides.length>this.itemsPerSlide&&this.play()}removeSlide(t){const e=this._slides.indexOf(t);if(this._currentActiveSlide===e){let t;this._slides.length>1&&(t=this.isLast(e)?this.noWrap?e-1:0:e),this._slides.remove(e),setTimeout(()=>{this._select(t)},0)}else{this._slides.remove(e);const t=this.getCurrentSlideIndex();setTimeout(()=>{this._currentActiveSlide=t,this.activeSlideChange.emit(this._currentActiveSlide)},0)}}nextSlideFromInterval(t=!1){this.move(Io.NEXT,t)}nextSlide(t=!1){this.isPlaying&&this.restartTimer(),this.move(Io.NEXT,t)}previousSlide(t=!1){this.isPlaying&&this.restartTimer(),this.move(Io.PREV,t)}getFirstVisibleIndex(){return this.slides.findIndex(this.getActive)}getLastVisibleIndex(){return function(t,e){let n=t.length;for(;n--;)if(e(t[n],n,t))return n;return-1}(this.slides,this.getActive)}move(t,e=!1){const n=this.getFirstVisibleIndex(),i=this.getLastVisibleIndex();this.noWrap&&(t===Io.NEXT&&this.isLast(i)||t===Io.PREV&&0===n)||(this.multilist?this.moveMultilist(t):this.activeSlide=this.findNextSlideIndex(t,e))}keydownPress(t){if(13===t.keyCode||"Enter"===t.key||32===t.keyCode||"Space"===t.key)return this.nextSlide(),void t.preventDefault();37!==t.keyCode&&"LeftArrow"!==t.key?39!==t.keyCode&&"RightArrow"!==t.key||this.nextSlide():this.previousSlide()}onMouseLeave(){this.pauseOnFocus||this.play()}onMouseUp(){this.pauseOnFocus||this.play()}pauseFocusIn(){this.pauseOnFocus&&(this.isPlaying=!1,this.resetTimer())}pauseFocusOut(){this.play()}selectSlide(t){this.isPlaying&&this.restartTimer(),this.multilist?this.selectSlideRange(this.indicatorsByChunk?t*this.itemsPerSlide:t):this.activeSlide=this.indicatorsByChunk?t*this.itemsPerSlide:t}play(){this.isPlaying||(this.isPlaying=!0,this.restartTimer())}pause(){this.noPause||(this.isPlaying=!1,this.resetTimer())}getCurrentSlideIndex(){return this._slides.findIndex(this.getActive)}isLast(t){return t+1>=this._slides.length}isFirst(t){return 0===t}indicatorsSlides(){return this.slides.filter((t,e)=>!this.indicatorsByChunk||e%this.itemsPerSlide==0)}selectInitialSlides(){const t=this.startFromIndex<=this._slides.length?this.startFromIndex:0;if(this.hideSlides(),this.singleSlideOffset){if(this._slidesWithIndexes=this.mapSlidesAndIndexes(),this._slides.length-t<this.itemsPerSlide){const e=this._slidesWithIndexes.slice(0,t);this._slidesWithIndexes=[...this._slidesWithIndexes,...e].slice(e.length).slice(0,this.itemsPerSlide)}else this._slidesWithIndexes=this._slidesWithIndexes.slice(t,t+this.itemsPerSlide);
1this._slidesWithIndexes.forEach(t=>t.item.active=!0),this.makeSlidesConsistent(this._slidesWithIndexes)}else this.selectRangeByNestedIndex(t);this.slideRangeChange.emit(this.getVisibleIndexes())}findNextSlideIndex(t,e){let n=0;if(e||!this.isLast(this.activeSlide)||t===Io.PREV||!this.noWrap){switch(t){case Io.NEXT:n=this.isLast(this._currentActiveSlide)?!e&&this.noWrap?this._currentActiveSlide:0:this._currentActiveSlide+1;break;case Io.PREV:n=this._currentActiveSlide>0?this._currentActiveSlide-1:!e&&this.noWrap?this._currentActiveSlide:this._slides.length-1;break;default:throw new Error("Unknown direction")}return n}}mapSlidesAndIndexes(){return this.slides.slice().map((t,e)=>({index:e,item:t}))}selectSlideRange(t){if(!this.isIndexInRange(t)){if(this.hideSlides(),this.singleSlideOffset){const e=this.isIndexOnTheEdges(t)?t:t-this.itemsPerSlide+1,n=this.isIndexOnTheEdges(t)?t+this.itemsPerSlide:t+1;this._slidesWithIndexes=this.mapSlidesAndIndexes().slice(e,n),this.makeSlidesConsistent(this._slidesWithIndexes),this._slidesWithIndexes.forEach(t=>t.item.active=!0)}else this.selectRangeByNestedIndex(t);this.slideRangeChange.emit(this.getVisibleIndexes())}}selectRangeByNestedIndex(t){const e=this._chunkedSlides.map((t,e)=>({index:e,list:t})).find(e=>void 0!==e.list.find(e=>e.index===t));this._currentVisibleSlidesIndex=e.index,this._chunkedSlides[e.index].forEach(t=>{t.item.active=!0})}isIndexOnTheEdges(t){return t+1-this.itemsPerSlide<=0||t+this.itemsPerSlide<=this._slides.length}isIndexInRange(t){return this.singleSlideOffset?this._slidesWithIndexes.map(t=>t.index).indexOf(t)>=0:t<=this.getLastVisibleIndex()&&t>=this.getFirstVisibleIndex()}hideSlides(){this.slides.forEach(t=>t.active=!1)}isVisibleSlideListLast(){return this._currentVisibleSlidesIndex===this._chunkedSlides.length-1}isVisibleSlideListFirst(){return 0===this._currentVisibleSlidesIndex}moveSliderByOneItem(t){let e,n,i,r;if(this.noWrap){e=this.getFirstVisibleIndex(),n=this.getLastVisibleIndex(),i=t===Io.NEXT?e:n,r=t!==Io.NEXT?e-1:this.isLast(n)?0:n+1,this._slides.get(i).active=!1,this._slides.get(r).active=!0;const s=this.mapSlidesAndIndexes().filter(t=>t.item.active);this.makeSlidesConsistent(s),this.slideRangeChange.emit(this.getVisibleIndexes())}else{let i;e=this._slidesWithIndexes[0].index,n=this._slidesWithIndexes[this._slidesWithIndexes.length-1].index,t===Io.NEXT?(this._slidesWithIndexes.shift(),i=this.isLast(n)?0:n+1,this._slidesWithIndexes.push({index:i,item:this._slides.get(i)})):(this._slidesWithIndexes.pop(),i=this.isFirst(e)?this._slides.length-1:e-1,this._slidesWithIndexes=[{index:i,item:this._slides.get(i)},...this._slidesWithIndexes]),this.hideSlides(),this._slidesWithIndexes.forEach(t=>t.item.active=!0),this.makeSlidesConsistent(this._slidesWithIndexes),this.slideRangeChange.emit(this._slidesWithIndexes.map(t=>t.index))}}moveMultilist(t){this.singleSlideOffset?this.moveSliderByOneItem(t):(this.hideSlides(),this._currentVisibleSlidesIndex=this.noWrap?t===Io.NEXT?this._currentVisibleSlidesIndex+1:this._currentVisibleSlidesIndex-1:t===Io.NEXT?this.isVisibleSlideListLast()?0:this._currentVisibleSlidesIndex+1:this.isVisibleSlideListFirst()?this._chunkedSlides.length-1:this._currentVisibleSlidesIndex-1,this._chunkedSlides[this._currentVisibleSlidesIndex].forEach(t=>t.item.active=!0),this.slideRangeChange.emit(this.getVisibleIndexes()))}getVisibleIndexes(){return this.singleSlideOffset?this._slidesWithIndexes.map(t=>t.index):this._chunkedSlides[this._currentVisibleSlidesIndex].map(t=>t.index)}_select(t){if(isNaN(t))return void this.pause();if(!this.multilist){const t=this._slides.get(this._currentActiveSlide);t&&(t.active=!1)}const e=this._slides.get(t);e&&(this._currentActiveSlide=t,e.active=!0,this.activeSlide=t,this.activeSlideChange.emit(t))}restartTimer(){this.resetTimer();const t=+this.interval;!isNaN(t)&&t>0&&(this.currentInterval=this.ngZone.runOutsideAngular(()=>setInterval(()=>{const t=+this.interval;this.ngZone.run(()=>{this.isPlaying&&!isNaN(this.interval)&&t>0&&this.slides.length?this.nextSlideFromInterval():this.pause()})},t)))}get multilist(){return this.itemsPerSlide>1}resetTimer(){this.currentInterval&&(clearInterval(this.currentInterval),this.currentInterval=void 0)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Ao),i.Y36(i.R0b))},t.\u0275cmp=i.Xpm({type:t,selectors:[["carousel"]],inputs:{indicatorsByChunk:"indicatorsByChunk",itemsPerSlide:"itemsPerSlide",singleSlideOffset:"singleSlideOffset",isAnimated:"isAnimated",startFromIndex:"startFromIndex",activeSlide:"activeSlide",interval:"interval",noWrap:"noWrap",noPause:"noPause",showIndicators:"showIndicators",pauseOnFocus:"pauseOnFocus"},outputs:{activeSlideChange:"activeSlideChange",slideRangeChange:"slideRangeChange"},ngContentSelectors:Eo,decls:6,vars:6,consts:[["tabindex","0",1,"carousel","slide",3,"mouseenter","mouseleave","mouseup","keydown","focusin","focusout"],["class","carousel-indicators",4,"ngIf"],[1,"carousel-inner",3,"ngStyle"],["class","left carousel-control carousel-control-prev","tabindex","0","role","button",3,"disabled","click",4,"ngIf"],["class","right carousel-control carousel-control-next","tabindex","0","role","button",3,"disabled","click",4,"ngIf"],[1,"carousel-indicators"],[3,"active","click",4,"ngFor","ngForOf"],[3,"click"],["tabindex","0","role","button",1,"left","carousel-control","carousel-control-prev",3,"click"],["aria-hidden","true",1,"icon-prev","carousel-control-prev-icon"],["class","sr-only",4,"ngIf"],[1,"sr-only"],["tabindex","0","role","button",1,"right","carousel-control","carousel-control-next",3,"click"],["aria-hidden","true",1,"icon-next","carousel-control-next-icon"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0),i.NdJ("mouseenter",function(){return e.pause()})("mouseleave",function(){return e.onMouseLeave()})("mouseup",function(){return e.onMouseUp()})("keydown",function(t){return e.keydownPress(t)})("focusin",function(){return e.pauseFocusIn()})("focusout",function(){return e.pauseFocusOut()}),i.YNc(1,wo,2,1,"ol",1),i.TgZ(2,"div",2),i.Hsn(3),i.qZA(),i.YNc(4,So,3,3,"a",3),i.YNc(5,To,4,2,"a",4),i.qZA()),2&t&&(i.xp6(1),i.Q6J("ngIf",e.showIndicators&&e.slides.length>1),i.xp6(1),i.Q6J("ngStyle",i.VKq(4,Co,e.multilist?"flex":"block")),i.xp6(2),i.Q6J("ngIf",e.slides.length>1),i.xp6(1),i.Q6J("ngIf",e.slides.length>1))},directives:[ft,_t,ht],encapsulation:2}),t})(),Oo=(()=>{class t{constructor(t){this.itemWidth="100%",this.order=0,this.addClass=!0,this.carousel=t}ngOnInit(){this.carousel.addSlide(this),this.itemWidth=100/this.carousel.itemsPerSlide+"%"}ngOnDestroy(){this.carousel.removeSlide(this)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ko))},t.\u0275cmp=i.Xpm({type:t,selectors:[["slide"]],hostVars:13,hostBindings:function(t,e){2&t&&(i.uIk("aria-hidden",!e.active),i.Udp("width",e.itemWidth)("order",e.order),i.ekj("item",e.addClass)("carousel-item",e.addClass)("active",e.active)("carousel-animation",e.isAnimated))},inputs:{active:"active"},ngContentSelectors:Eo,decls:2,vars:2,consts:[[1,"item"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA()),2&t&&i.ekj("active",e.active)},styles:[".carousel-animation[_nghost-%COMP%] {\n       transition: opacity 0.6s ease, visibility 0.6s ease;\n       float: left;\n    }\n    .carousel-animation.active[_nghost-%COMP%] {\n      opacity: 1;\n      visibility: visible;\n    }\n    .carousel-animation[_nghost-%COMP%]:not(.active) {\n      display: block;\n      position: absolute;\n      opacity: 0;\n      visibility: hidden;\n    }"]}),t})(),Do=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[Ao],imports:[[Pt]]}),t})(),No=(()=>{class t{constructor(){t.settings=window.config}fireConfig(){return t.settings.firebase}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Po{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new Ro(t,this.count,this.source))}}class Ro extends Ae.L{constructor(t,e,n){super(t),this.count=e,this.source=n}error(t){if(!this.isStopped){const{source:e,count:n}=this;if(0===n)return super.error(t);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}}}class Lo{constructor(t){this.http=t,this.urlApiRest="",this.urlApiRest=document.location.port==lo.localPort?lo.urlApiRestLocal:lo.urlApiRest}httpGet(t){return this.http.get(this.urlApiRest+t).pipe((0,oi.b)(()=>console.log("HTTP GET.:"+this.urlApiRest)),function(t=-1){return e=>e.lift(new Po(t,e))}(lo.httpGetRetry),Hn(t=>
1(console.log("catchError HTTP GET.:"+this.urlApiRest),(0,Se.of)(null))))}}let Mo=(()=>{class t extends Lo{constructor(t){super(t),this.http=t}getAll(){return this.httpGet("/events")}getAllImportant(){return this.httpGet("/events/important")}getById(t){return this.httpGet("/events/"+t)}getPreviewById(t){return this.httpGet("/events/preview/"+t)}find(t,e,n,i){return this.httpGet("/events/find/"+t+"/"+e+"/"+n+"/"+i)}findByTexto(t){return this.httpGet("/events/search/"+t)}getSections(){return this.httpGet("/sections")}getExpositorsById(t){return this.httpGet("/expositors/"+t)}getArtistaById(t){return this.httpGet("/artists/"+t)}getExpositors(){return this.httpGet("/expositors")}getArtists(){return this.httpGet("/artists")}suscribeEvent(t,e){const n={uuid:t,eventId:e};let i={headers:(new Re).set("Content-Type","application/json")};this.http.post(this.urlApiRest+"/events/suscribe",n,i).subscribe(t=>{console.log("respuesta suscribe: "+t)})}unsuscribeEvent(t,e){const n={uuid:t,eventId:e};let i={headers:(new Re).set("Content-Type","application/json")};return this.http.post(this.urlApiRest+"/events/unsuscribe",n,i)}getInscripciones(t){return this.httpGet("/events/suscribed/"+t)}getTitles(){return this.httpGet("/events/titles")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ke))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Fo=(()=>{class t{constructor(t){this.service=t}setInfoEvent(t,e){if(null!=t){null!=t.expositors&&null!=t.expositors.length&&t.expositors.forEach(e=>{t.expositor=null!=t.expositor?null!=e.lastName?t.expositor+" / "+e.name+" "+e.lastName:t.expositor+" / "+e.name:null!=e.lastName?e.name+" "+e.lastName:e.name});let n=No.settings.urlImagenes;if(null!=t.resourcesRefId){let i=t.resourcesRefId.resources.filter(t=>t.type.trim()==e);if(null!=i&&i.length>0){let e=n.concat(i[0].name);t.url=e}}}}getColor(t){let e=t.toLowerCase();return"innovaci\xf3n"==e?"light-blue":"promoci\xf3n de la salud"==e?"blue":"sociedad"==e||"cultura"==e?"coral":"cultura y arte"==e?"purple":"sustentabilidad"==e?"aqua":"blue"}getColor2(t){let e=t.toLowerCase();return"innovaci\xf3n"==e?"light-blue":"promoci\xf3n de la salud"==e?"blue":"sociedad"==e?"coral":"cultura y arte"==e?"purple":"sustentabilidad"==e?"aqua":void 0}getTextoHoras(t){let e=this.getTextoHoras2(t).trim();return e.length>0&&(e="- ".concat(e)),e.trim()}getTextoHoras2(t){let e="";return null!=t.time&&"00:00"!=t.time&&""!=t.time&&(e=null!=t.endtime&&"00:00"!=t.endtime&&""!=t.endtime&&t.endtime!=t.time?"De ".concat(t.time).concat(" a ").concat(t.endtime).concat(" horas"):e.concat(t.time).concat(" horas")),e.trim()}getTextoLugar(t){let e=null!=t.place&&null!=t.place.name?t.place.name:"",n=null!=t.place&&null!=t.place.adress?t.place.adress:"";e=""!=n?e.concat(", ").concat(n):e;let i=null!=t.stateId&&t.stateId.name?t.stateId.name:"",r=null!=t.locationId&&t.locationId.name?t.locationId.name:"";return i=""!=r&&"CABA"!=r?r.concat(", ").concat(i):i,""!=i?""!=e?e.trim().concat(", ").concat(i).trim():i:e}getTextoMedio(t){let e=null!=t.medium?t.medium:"",n=null!=t.stateId&&t.stateId.name?t.stateId.name:"",i=null!=t.locationId&&t.locationId.name?t.locationId.name:"";return n=""!=i&&"CABA"!=i?i.concat(", ").concat(n):n,""!=n?""!=e?e.trim().concat(", ").concat(n).trim():n:e}getTextoFechaFin(t){let e="";if(null!=t.endDate){var n=new Date(t.endDate);e=n.getDate().toString().padStart(2,"0")+"/"+(n.getMonth()+1).toString().padStart(2,"0")}return e}getTextoFechaInicio(t){let e="";if(null!=t.startDate){var n=new Date(t.startDate);e=n.getDate().toString().padStart(2,"0")+"/"+(n.getMonth()+1).toString().padStart(2,"0")}return e}getTextoObservacion(t){if(null!=t.observationsDate){let e=t.observationsDate.toString();return e.length>0&&(e="- ".concat(e)),e.trim()}}sortAZ(t,e){return t>e?1:-1}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Mo))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Zo(t,e){if(1&t&&(i.TgZ(0,"p",12),i._uU(1),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.Oqu(t.getTextoLugar(t.evento))}}function qo(t,e){if(1&t&&(i.TgZ(0,"p",12),i._uU(1),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.Oqu(t.getTextoMedio(t.evento))}}function Uo(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,Zo,2,1,"p",10),i.YNc(2,qo,2,1,"p",10),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",1==t.evento.eventAttendTypeId&&null!=t.evento.locationId),i.xp6(1),i.Q6J("ngIf",1!=t.evento.eventAttendTypeId&&null!=t.evento.medium)}}function Vo(t,e){if(1&t&&(i.TgZ(0,"p",12),i._uU(1),i.ALo(2,"date"),i._uU(3),i.ALo(4,"date"),i._UZ(5,"br"),i._uU(6),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.hij("",i.xi3(2,4,t.evento.startDate,"longDate")," al"),i.xp6(2),i.AsE(" ",i.xi3(4,7,t.evento.endDate,"longDate")," ",t.getTextoHoras(t.evento)," "),i.xp6(3),i.hij("",t.getObservacion(t.evento)," ")}}function jo(t,e){if(1&t&&(i.TgZ(0,"p",12),i._uU(1),i.ALo(2,"date"),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.AsE(" ",i.xi3(2,2,t.evento.startDate,"longDate")," ",t.getTextoHoras(t.evento)," ")}}function Bo(t,e){if(1&t){const t=i.EpF();
1i.TgZ(0,"div",1),i.TgZ(1,"a",2),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.irEvento(e.evento)}),i.TgZ(2,"div",3),i.TgZ(3,"div",4),i.TgZ(4,"div",5),i._UZ(5,"img",6),i.qZA(),i.qZA(),i.qZA(),i.TgZ(6,"div",7),i.TgZ(7,"div",4),i.TgZ(8,"p",8),i._uU(9),i.ALo(10,"uppercase"),i.qZA(),i.TgZ(11,"h2"),i._uU(12),i.ALo(13,"uppercase"),i.qZA(),i.YNc(14,Uo,3,2,"div",9),i.YNc(15,Vo,7,10,"p",10),i.YNc(16,jo,3,5,"p",10),i.TgZ(17,"div",11),i._uU(18),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(5),i.s9C("src",t.evento.url,i.LSH),i.xp6(4),i.Oqu(i.lcZ(10,10,t.evento.expositor)),i.xp6(2),i.Gre("",t.getColor()," text-left title-slider animated fadeInUp"),i.xp6(1),i.hij(" ",i.lcZ(13,12,t.evento.title),""),i.xp6(2),i.Q6J("ngIf",null!=t.evento.eventAttendTypeId),i.xp6(1),i.Q6J("ngIf",t.evento.startDate!=t.evento.endDate),i.xp6(1),i.Q6J("ngIf",t.evento.startDate==t.evento.endDate),i.xp6(2),i.hij(" ",t.evento.subtitle," ")}}let zo=(()=>{class t{constructor(t,e){this.router=t,this.fs=e}ngOnInit(){null!=this.evento.sectionId&&(this.nameSection=null!=this.evento.sectionId?this.evento.sectionId.name:null)}getTextoHoras(t){return this.fs.getTextoHoras(t)}getTextoLugar(t){return this.fs.getTextoLugar(t)}getTextoMedio(t){return this.fs.getTextoMedio(t)}getTextoFechaFin(t){return this.fs.getTextoFechaFin(t)}getTextoFechaInicio(t){return this.fs.getTextoFechaInicio(t)}getColor(){return null!=this.nameSection?this.fs.getColor(this.nameSection):""}irEvento(t){this.router.navigate(["event",t.id])}getObservacion(t){if(null!=t.observationsDate)return t.observationsDate}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Vs),i.Y36(Fo))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-slider-event"]],inputs:{evento:"evento"},decls:1,vars:1,consts:[["class","row row-carousel row-eq-height mr2",4,"ngIf"],[1,"row","row-carousel","row-eq-height","mr2"],[1,"cursor-pointer",3,"click"],[1,"col-md-6","float-right"],[1,"call-to-action"],[1,"content-media"],["alt","",1,"img-responsive",3,"src"],[1,"col-md-6"],[1,"text-left","slider-author","animated","fadeInUp"],[4,"ngIf"],["class","text-left subtitle-slider animated fadeInUp",4,"ngIf"],[1,"text-left","description-slider","animated","fadeInUp"],[1,"text-left","subtitle-slider","animated","fadeInUp"]],template:function(t,e){1&t&&i.YNc(0,Bo,19,14,"div",0),2&t&&i.Q6J("ngIf",null!=e.evento)},directives:[ft],pipes:[kt,Ot],styles:['.float-right[_ngcontent-%COMP%]{float:right!important}.slider-author[_ngcontent-%COMP%]{font-weight:300;color:#16202f;font-size:.9em}@media (max-width: 767px){.title-slider[_ngcontent-%COMP%]{font-size:30px;line-height:30px;font-weight:900;transition:.5s;font-family:"Nunito","Arial","Helvetica"!important}}.description-slider[_ngcontent-%COMP%]{max-height:130px;text-overflow:ellipsis;word-break:break-word}']}),t})();function Ho(t,e){if(1&t&&(i.TgZ(0,"slide"),i.TgZ(1,"div",3),i._UZ(2,"app-slider-event",4),i.qZA(),i.qZA()),2&t){const t=e.$implicit,n=e.index;i.xp6(1),i.Q6J("className",0==n?"item active":"item"),i.xp6(1),i.Q6J("evento",t)}}let Go=(()=>{class t{constructor(t,e,n){this.router=t,this.fs=e,this.service=n,this.eventos=null}ngOnInit(){this.service.getAllImportant().subscribe(t=>{this.eventos=t.filter(t=>t.statusId.name==lo.estadoPublicado),this.eventos.forEach(t=>{this.fs.setInfoEvent(t,lo.tipoImagen.home)})})}getTextoHoras(t){return this.fs.getTextoHoras(t)}getTextoLugar(t){return this.fs.getTextoLugar(t)}getColor(t){return this.fs.getColor(t)}irEvento(t){this.router.navigate(["event",t.id])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Vs),i.Y36(Fo),i.Y36(Mo))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-slider"]],features:[i._Bn([{provide:Ao,useValue:{interval:4500,noPause:!0,showIndicators:!0}}])],decls:4,vars:1,consts:[[1,"container","mb-5"],[1,"carousel-inner"],[4,"ngFor","ngForOf"],[3,"className"],[3,"evento"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"carousel"),i.TgZ(2,"div",1),i.YNc(3,Ho,3,2,"slide",2),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(3),i.Q6J("ngForOf",e.eventos))},directives:[ko,ht,Oo,zo],styles:[".cursor-pointer{cursor:pointer}\n"],encapsulation:2}),t})(),Yo=(()=>{class t extends Lo{constructor(t){super(t),this.http=t}getAll(){return this.httpGet("/videos")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ke))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Qo(t,e){if(1&t&&(i.TgZ(0,"section"),i.TgZ(1,"div",2),i.TgZ(2,"div",3),i.TgZ(3,"div",4),i.TgZ(4,"h2",5),i._uU(5),i.qZA(),i.TgZ(6,"p",6),i._uU(7),i.qZA(),i.TgZ(8,"div",7),i._UZ(9,"iframe",8),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(5),i.Oqu(t.video.title),i.xp6(2),i.Oqu(t.video.subtitle),i.xp6(2),i.Q6J("src",t.video.urlSafe,i.uOi)}}function $o(t,e){if(1&t&&(i.TgZ(0,"slide"),i.TgZ(1,"div",13),i.TgZ(2,"div",14),i.TgZ(3,"div",4),i.TgZ(4,"h2",15),i._uU(5),i.qZA(),i.TgZ(6,"p",16),i._uU(7),i.qZA(),i.TgZ(8,"div",7),i._UZ(9,"iframe",8),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t){const t=e.$implicit,n=e.index;i.xp6(1),i.Q6J("className",0==n?"item active":"item"),i.xp6(4),i.Oqu(t.title),i.xp6(2),i.Oqu(t.subtitle),i.xp6(2),i.Q6J("src",t.urlSafe,i.uOi)}}function Jo(t,e){if(1&t&&(i.TgZ(0,"div",9),i.TgZ(1,"carousel",10),i.TgZ(2,"div",11),i.YNc(3,$o,10,4,"slide",12),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(3),i.Q6J("ngForOf",t.videos)}}let Wo=(()=>{class t{constructor(t,e,n){this.sanitizer=t,this.service=e,this.fs=n,this.urlVideo="",this.urlSafe=null}ngOnInit(){null!=this.urlEvento?(this.urlVideo=this.urlEvento.replace("watch?v=","embed/"),this.urlSafe=this.sanitizer.bypassSecurityTrustResourceUrl(this.urlVideo)):(this.videos=[],this.service.getAll().subscribe(t=>{t.forEach(t=>{t.videoURL=t.url.replace("watch?v=","embed/"),t.urlSafe=this.sanitizer.bypassSecurityTrustResourceUrl(t.videoURL),this.videos.push(t)})}
1))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(fe),i.Y36(Yo),i.Y36(Fo))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-video"]],inputs:{urlEvento:"urlEvento",videoEvento:"videoEvento",title:"title",subtitle:"subtitle",eventURL:"eventURL",nameSection:"nameSection"},features:[i._Bn([{provide:Ao,useValue:{pauseOnFocus:!0,noPause:!1,interval:"3500",showIndicators:!0}}])],decls:2,vars:2,consts:[[4,"ngIf"],["class","container mb-5",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-md-8","col-md-push-2","headvideo"],[1,"text-center","tituloVideo","blue"],[1,"text-center","blue"],[1,"embed-responsive","embed-responsive-16by9"],[1,"embed-responsive-item",3,"src"],[1,"container","mb-5"],["id","videocarousel","data-pause","hover"],[1,"carousel-inner"],[4,"ngFor","ngForOf"],[3,"className"],[1,"row","row-carousel"],[1,"text-center","tituloVideo","light-blues"],[1,"text-center","light-blues"]],template:function(t,e){1&t&&(i.YNc(0,Qo,10,3,"section",0),i.YNc(1,Jo,4,1,"div",1)),2&t&&(i.Q6J("ngIf",null!=e.eventURL&&null!=e.urlSafe),i.xp6(1),i.Q6J("ngIf",null!=e.videos))},directives:[ft,ko,ht,Oo],styles:[".tituloVideo[_ngcontent-%COMP%]{font-weight:700}.row-carousel[_ngcontent-%COMP%]{padding-top:1%}iframe[_ngcontent-%COMP%]   .embed-podcast-ltr-9qi7pc[_ngcontent-%COMP%]{height:400px!important}"]}),t})(),Ko=(()=>{class t extends Lo{constructor(t){super(t),this.http=t}getAll(){return this.httpGet("/news")}getById(t){return this.httpGet("/news/"+t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ke))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Xo(t,e){if(1&t&&i._UZ(0,"img",9),2&t){const t=i.oxw(2);i.s9C("src",t.nov.url,i.LSH)}}const ta=function(t){return["/news",t]};function ea(t,e){if(1&t&&(i.TgZ(0,"div",1),i.TgZ(1,"a",2),i.TgZ(2,"div",3),i.TgZ(3,"figure",4),i.YNc(4,Xo,1,1,"img",5),i.qZA(),i.TgZ(5,"div",6),i.TgZ(6,"h4",7),i._uU(7),i.qZA(),i.TgZ(8,"h3"),i.TgZ(9,"a"),i._uU(10),i.qZA(),i.qZA(),i.TgZ(11,"p",8),i._uU(12),i.qZA(),i.TgZ(13,"a"),i._uU(14,"LEER ART\xcdCULO"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("routerLink",i.VKq(11,ta,t.nov.id)),i.xp6(3),i.Q6J("ngIf",null!=t.nov.url),i.xp6(3),i.Oqu(t.nov.sectionId.name),i.xp6(2),i.Gre("",t.getColor(t.nov.sectionId.name)," header-news"),i.xp6(1),i.hij("",t.nov.title," "),i.xp6(2),i.Oqu(t.nov.subtitle),i.xp6(1),i.Gre("text-article ",t.getColor(t.nov.sectionId.name),"")}}let na=(()=>{class t{constructor(t){this.fs=t}ngOnInit(){}getColor(t){return this.fs.getColor(t)}getColor2(t){return this.fs.getColor2(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Fo))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-novedad"]],inputs:{nov:"nov"},decls:1,vars:1,consts:[["class","card-border",4,"ngIf"],[1,"card-border"],[3,"routerLink"],[1,"profile-img"],[1,"container-image"],["alt","nuevas obras",3,"src",4,"ngIf"],[1,"description-inner"],[1,"text-left","text-news"],[1,"text-description"],["alt","nuevas obras",3,"src"]],template:function(t,e){1&t&&i.YNc(0,ea,15,13,"div",0),2&t&&i.Q6J("ngIf",null!=e.nov)},directives:[ft,Bs],styles:[".container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-weight:100}"]}),t})();function ia(t,e){1&t&&(i.TgZ(0,"section"),i.TgZ(1,"h2",3),i._uU(2,"NOTAS"),i.qZA(),i.qZA())}function ra(t,e){if(1&t&&(i.TgZ(0,"div",6),i._UZ(1,"app-novedad",7),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("nov",t)}}function sa(t,e){if(1&t&&(i.TgZ(0,"div",4),i.YNc(1,ra,2,1,"div",5),i.ALo(2,"slice"),i.qZA()),2&t){const t=e.$implicit,n=i.oxw();i.xp6(1),i.Q6J("ngForOf",i.Dn7(2,1,n.novedades,3*t,3*(t+1)))}}let oa=(()=>{class t{constructor(t){this.service=t,this.novedades=null,this.cantidadMaxima=15}ngOnInit(){this.service.getAll().subscribe(t=>{this.cantidadMaxima<t.length&&(this.cantidadMaxima=t.length),this.novedades=t.slice(0,this.cantidadMaxima),this.novedades.forEach(t=>{let e=lo.tipoImagen.miniatura,n=No.settings.urlImagenes;if(null!=t.resourcesRefId){let i=t.resourcesRefId.resources.filter(t=>t.type.trim()==e);if(null!=i&&i.length>0){let e=n.concat(i[0].name);t.url=e}}}),this.rows=Array.from(Array(Math.ceil(this.novedades.length/3)).keys())})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Ko))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-blog"]],decls:5,vars:2,consts:[[4,"ngIf"],[1,"container"],["class","row make-columns",4,"ngFor","ngForOf"],[1,"blue","text-center","news"],[1,"row","make-columns"],["class","col-xs-12 col-sm-6 col-md-4 d-none",4,"ngFor","ngForOf"],[1,"col-xs-12","col-sm-6","col-md-4","d-none"],[3,"nov"]],template:function(t,e){1&t&&(i.YNc(0,ia,3,0,"section",0),i.TgZ(1,"section"),i.TgZ(2,"div"),i.TgZ(3,"div",1),i.YNc(4,sa,3,5,"div",2),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.Q6J("ngIf",null!=e.novedades&&e.novedades.length>0),i.xp6(4),i.Q6J("ngForOf",e.rows))},directives:[ft,ht,na],pipes:[Nt],styles:[""]}),t})();function aa(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}function ca(t,e){return function(n,i){e(n,i,t)}}
1function ua(t,e,n,i){return new(n||(n=Promise))(function(r,s){function o(t){try{c(i.next(t))}catch(e){s(e)}}function a(t){try{c(i.throw(t))}catch(e){s(e)}}function c(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,a)}c((i=i.apply(t,e||[])).next())})}var la=n(1555);function ha(...t){if(1===t.length){const e=t[0];if((0,yn.k)(e))return da(e,null);if((0,la.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return da(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return da(t=1===t.length&&(0,yn.k)(t[0])?t[0]:t,null).pipe((0,De.U)(t=>e(...t)))}return da(t,null)}function da(t,e){return new Te.y(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const c=(0,fn.D)(t[a]);let u=!1;n.add(c.subscribe({next:t=>{u||(u=!0,o++),r[a]=t},error:t=>n.error(t),complete:()=>{s++,(s===i||!u)&&(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}let fa=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t}),t})(),pa=(()=>{class t extends fa{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();const ga=new i.OlP("NgValueAccessor"),ma={provide:ga,useExisting:(0,i.Gpc)(()=>ya),multi:!0},va=new i.OlP("CompositionEventMode");let ya=(()=>{class t extends fa{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=s()?s().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(va,8))},t.\u0275dir=i.lG2({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&&i.NdJ("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:[i._Bn([ma]),i.qOj]}),t})();function ba(t){return null==t||0===t.length}function _a(t){return null!=t&&"number"==typeof t.length}const wa=new i.OlP("NgValidators"),xa=new i.OlP("NgAsyncValidators"),Sa=/^(?=.{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 Ta{static min(t){return function(t){return e=>{if(ba(e.value)||ba(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}(t)}static max(t){return function(t){return e=>{if(ba(e.value)||ba(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return function(t){return ba(t.value)?{required:!0}:null}(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return ba(t.value)||Sa.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>ba(e.value)||!_a(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static maxLength(t){return function(t){return e=>_a(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return Ca;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(ba(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return Da(t)}static composeAsync(t){return Pa(t)}}function Ca(t){return null}function Ea(t){return null!=t}function Aa(t){const e=(0,i.QGY)(t)?(0,fn.D)(t):t;return(0,i.CqO)(e),e}function Ia(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 ka(t,e){return e.map(e=>e(t))}function Oa(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Da(t){if(!t)return null;const e=t.filter(Ea);return 0==e.length?null:function(t){return Ia(ka(t,e))}}function Na(t){return null!=t?Da(Oa(t)):null}function Pa(t){if(!t)return null;const e=t.filter(Ea);return 0==e.length?null:function(t){return ha(ka(t,e).map(Aa)).pipe((0,De.U)(Ia))}}function Ra(t){return null!=t?Pa(Oa(t)):null}function La(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Ma(t){return t._rawValidators}function Fa(t){return t._rawAsyncValidators}function Za(t){return t?Array.isArray(t)?t:[t]:[]}function qa(t,e){return Array.isArray(t)?t.includes(e):t===e}function Ua(t,e){const n=Za(e);return Za(t).forEach(t=>{qa(n,t)||n.push(t)}),n}function Va(t,e){return Za(e).filter(e=>!qa(t,e))}let ja=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Na(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ra(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}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=i.lG2({type:t}),t})(),Ba=(()=>{class t extends ja{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();class za extends ja{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ha{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}let Ga=(()=>{class t extends Ha{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(za,2))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.qOj]}),t})(),Ya=(()=>{class t extends Ha{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Ba,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function Qa(t,e){Wa(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Xa(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Xa(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function $a(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),Ka(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ja(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)}
1)}function Wa(t,e){const n=Ma(t);null!==e.validator?t.setValidators(La(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=Fa(t);null!==e.asyncValidator?t.setAsyncValidators(La(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();Ja(e._rawValidators,r),Ja(e._rawAsyncValidators,r)}function Ka(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=Ma(t);if(Array.isArray(i)&&i.length>0){const r=i.filter(t=>t!==e.validator);r.length!==i.length&&(n=!0,t.setValidators(r))}}if(null!==e.asyncValidator){const i=Fa(t);if(Array.isArray(i)&&i.length>0){const r=i.filter(t=>t!==e.asyncValidator);r.length!==i.length&&(n=!0,t.setAsyncValidators(r))}}}const i=()=>{};return Ja(e._rawValidators,i),Ja(e._rawAsyncValidators,i),n}function Xa(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ec="VALID",nc="INVALID",ic="PENDING",rc="DISABLED";function sc(t){return(uc(t)?t.validators:t)||null}function oc(t){return Array.isArray(t)?Na(t):t||null}function ac(t,e){return(uc(e)?e.asyncValidators:t)||null}function cc(t){return Array.isArray(t)?Ra(t):t||null}function uc(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class lc{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=oc(this._rawValidators),this._composedAsyncValidatorFn=cc(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===ec}get invalid(){return this.status===nc}get pending(){return this.status==ic}get disabled(){return this.status===rc}get enabled(){return this.status!==rc}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=oc(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=cc(t)}addValidators(t){this.setValidators(Ua(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ua(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Va(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Va(t,this._rawAsyncValidators))}hasValidator(t){return qa(this._rawValidators,t)}hasAsyncValidator(t){return qa(this._rawAsyncValidators,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=ic,!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=rc,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);
1this.status=ec,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===ec||this.status===ic)&&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()?rc:ec}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ic,this._hasOwnPendingAsyncValidator=!0;const e=Aa(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||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let i=t;return e.forEach(t=>{i=i instanceof dc?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof fc&&i.at(t)||null}),i}(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 i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?rc:this.errors?nc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ic)?ic:this._anyControlsHaveStatus(nc)?nc:ec}_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){uc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class hc extends lc{constructor(t=null,e,n){super(sc(e),ac(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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)}_unregisterOnChange(t){tc(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){tc(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pe
1ndingDirty&&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 dc extends lc{constructor(t,e,n){super(sc(e),ac(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),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={}){null!=t&&(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,i)=>{n.reset(t[i],{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 hc?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,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,i)=>{n=e(n,t,i)}),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 fc extends lc{constructor(t,e,n){super(sc(e),ac(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateV
1alueAndValidity({emitEvent:n.emitEvent}),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={}){null!=t&&(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,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof hc?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_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)}}let pc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),gc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const mc=new i.OlP("NgModelWithFormControlWarning"),vc={provide:Ba,useExisting:(0,i.Gpc)(()=>yc)};let yc=(()=>{class t extends Ba{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ka(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Qa(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}
1removeControl(t){$a(t.control||null,t,!1),tc(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(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,function(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}(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=t.control,n=this.form.get(t.path);e!==n&&($a(e||null,t),n instanceof hc&&(Qa(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);(function(t,e){Wa(t,e)})(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Ka(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wa(this.form,this),this._oldForm&&Ka(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(wa,10),i.Y36(xa,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([vc]),i.qOj,i.TTD]}),t})();const bc={provide:za,useExisting:(0,i.Gpc)(()=>_c)};let _c=(()=>{class t extends za{constructor(t,e,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,i,r;return Array.isArray(e),e.forEach(t=>{t.constructor===ya?n=t:function(t){return Object.getPrototypeOf(t.constructor)===pa}(t)?i=t:r=t}),r||i||n||null}(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(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 function(t,e){return[...e.path,t]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_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)(i.Y36(Ba,13),i.Y36(wa,10),i.Y36(xa,10),i.Y36(ga,10),i.Y36(mc,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([bc]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})(),wc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[gc]]}),t})(),xc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[wc]}),t})(),Sc=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:mc,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[wc]}),t})(),Tc=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i,r=null,s=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new dc(n,{asyncValidators:s,updateOn:i,validators:r})}control(t,e,n){return new hc(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new fc(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof hc||t instanceof dc||t instanceof fc?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=(0,i.Yz7)({factory:function(){return new t},token:t,providedIn:Sc}),t})();function Cc(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Ec=n(3637);function Ac(t,e=Ec.P){return n=>n.lift(new Ic(t,e))}
1class Ic{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new kc(t,this.dueTime,this.scheduler))}}class kc extends Ae.L{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(Oc,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 Oc(t){t.debouncedNext()}class Dc{constructor(t){this.total=t}call(t,e){return e.subscribe(new Nc(t,this.total))}}class Nc extends Ae.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function Pc(t,e){return n=>n.lift(new Rc(t,e))}class Rc{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Lc(t,this.compare,this.keySelector))}}class Lc extends Ae.L{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(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}function Mc(t){return e=>e.lift(new Fc(t))}class Fc{constructor(t){this.notifier=t}call(t,e){const n=new Zc(t),i=(0,Pn.ft)(this.notifier,new Pn.IY(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class Zc extends Pn.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function qc(t){return null!=t&&"false"!=`${t}`}function Uc(t){return Array.isArray(t)?t:[t]}function Vc(t){return null==t?"":"string"==typeof t?t:`${t}px`}function jc(t){return t instanceof i.SBq?t.nativeElement:t}let Bc;try{Bc="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(fb){Bc=!1}let zc,Hc,Gc,Yc=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Rt(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Bc)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.Lbi))},token:t,providedIn:"root"}),t})(),Qc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();function $c(t){return function(){if(null==zc&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>zc=!0}))}finally{zc=zc||!1}return zc}()?t:!!t.capture}function Jc(){if(null==Hc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Hc=!1,Hc;if("scrollBehavior"in document.documentElement.style)Hc=!0;else{const t=Element.prototype.scrollTo;Hc=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Hc}function Wc(t){return t.composedPath?t.composedPath()[0]:t.target}function Kc(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let Xc=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),tu=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}
1ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=jc(t);return new Te.y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new pn.xQ,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Xc))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(Xc))},token:t,providedIn:"root"}),t})(),eu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[Xc]}),t})();function nu(t){return 0===t.offsetX&&0===t.offsetY}function iu(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&&Element;const ru=new i.OlP("cdk-input-modality-detector-options"),su={ignoreKeys:[18,17,224,91,16]},ou=$c({passive:!0,capture:!0});let au=(()=>{class t{constructor(t,e,n,i){this._platform=t,this._mostRecentTarget=null,this._modality=new mn(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Wc(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(nu(t)?"keyboard":"mouse"),this._mostRecentTarget=Wc(t))},this._onTouchstart=t=>{iu(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Wc(t))},this._options=Object.assign(Object.assign({},su),i),this.modalityDetected=this._modality.pipe(t=>t.lift(new Dc(1))),this.modalityChanged=this.modalityDetected.pipe(Pc()),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,ou),n.addEventListener("mousedown",this._onMousedown,ou),n.addEventListener("touchstart",this._onTouchstart,ou)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ou),document.removeEventListener("mousedown",this._onMousedown,ou),document.removeEventListener("touchstart",this._onTouchstart,ou))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Yc),i.LFG(i.R0b),i.LFG(o),i.LFG(ru,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(Yc),i.LFG(i.R0b),i.LFG(o),i.LFG(ru,8))},token:t,providedIn:"root"}),t})();const cu=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),uu=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let lu=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,r;return 1===e.length&&"number"==typeof e[0]?r=e[0]:[i,r]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==r&&n&&(r=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i<e.length;i++)e[i].parentNode.removeChild(e[i]);return n.classList.add(t),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),n}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(cu,8),i.LFG(i.R0b),i.LFG(o),i.LFG(uu,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(cu,8),i.LFG(i.R0b),i.LFG(o),i.LFG(uu,8))},token:t,providedIn:"root"}),t})(),hu=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=i,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(lu),i.Y36(tu),i.Y36(i.R0b))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();const du=new i.OlP("cdk-focus-monitor-default-options"),fu=$c({passive:!0,capture:!0});let pu=(()=>{class t{constructor(t,e,n,i,r){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new pn.xQ,this._rootNodeFocusAndBlurListener=t=>{const e=Wc(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}monitor(t,e=!1){const n=jc(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,Se.of)(null);const i=function(t){if(function(){if(null==Gc){const t="undefined"!=typeof document?document.head:null;Gc=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Gc}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;
1const s={checkChildren:e,subject:new pn.xQ,rootNode:i};return this._elementInfo.set(n,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(t){const e=jc(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=jc(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,e){const n=this._elementInfo.get(e),i=Wc(t);!n||!n.checkChildren&&e!==i||this._originChanged(e,this._getFocusOrigin(i),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,fu),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,fu)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Mc(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,fu),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,fu),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.R0b),i.LFG(Yc),i.LFG(au),i.LFG(o,8),i.LFG(du,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.R0b),i.LFG(Yc),i.LFG(au),i.LFG(o,8),i.LFG(du,8))},token:t,providedIn:"root"}),t})(),gu=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new i.vpe}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(pu))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const mu="cdk-high-contrast-black-on-white",vu="cdk-high-contrast-white-on-black",yu="cdk-high-contrast-active";let bu=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}
1_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(yu),t.remove(mu),t.remove(vu),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(yu),t.add(mu)):2===e&&(t.add(yu),t.add(vu))}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Yc),i.LFG(o))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(Yc),i.LFG(o))},token:t,providedIn:"root"}),t})(),_u=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(bu))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Qc,eu]]}),t})();var wu=n(9105);function xu(t,e,n,i){return(0,wu.m)(n)&&(i=n,n=void 0),i?xu(t,e,n).pipe((0,De.U)(t=>(0,yn.k)(t)?i(...t):i(t))):new Te.y(i=>{Su(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function Su(t,e,n,i,r){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),s=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),s=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),s=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,o=t.length;s<o;s++)Su(t[s],e,n,i,r)}i.add(s)}var Tu=n(6465),Cu=n(6102);const Eu=new class extends Cu.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<r&&(t=e.shift()));if(this.active=!1,n){for(;++i<r&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends Tu.o{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=requestAnimationFrame(()=>t.flush(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&&(cancelAnimationFrame(e),t.scheduled=void 0)}});n(4581);function Au(t){return!!t&&(t instanceof Te.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}class Iu{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new ku(t,this.durationSelector))}}class ku extends Pn.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=(0,Pn.ft)(n,new Pn.IY(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var Ou=n(6561);function Du(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function Nu(t,e=Ec.P){return function(t){return function(e){return e.lift(new Iu(t))}}(()=>function(t=0,e,n){let i=-1;return(0,Ou.k)(e)?i=Number(e)<1?1:Number(e):(0,vn.K)(e)&&(n=e),(0,vn.K)(n)||(n=Ec.P),new Te.y(e=>{const r=(0,Ou.k)(t)?t:+t-n.now();return n.schedule(Du,r,{index:0,period:i,subscriber:e})})}(t,e))}function Pu(){return t=>t.lift(new Ru)}class Ru{call(t,e){return e.subscribe(new Lu(t))}}class Lu extends Ae.L{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)}}var Mu=n(7771),Fu=n(9746),Zu=n(8858);class qu extends pn.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=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 Uu(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let s;if(this.closed)throw new gn.N;if(this.isStopped||this.hasError?s=ci.w.EMPTY:(this.observers.push(t),s=new Zu.W(this,t)),i&&t.add(t=new Fu.ht(t,i)),e)for(let o=0;o<r&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<r&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),s}_getNow(){return(this.scheduler||Mu.c).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length;let s=0;for(;s<r&&!(t-i[s].time<n);)s++;return r>e&&(s=Math.max(s,r-e)),s>0&&i.splice(0,s),i}}class Uu{constructor(t,e){this.time=t,this.value=e}}function Vu(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}){let r,s,o=0,a=!1,c=!1;return function(u){let l;o++,!r||a?(a=!1,r=new qu(t,e,i),l=r.subscribe(this),s=u.subscribe({next(t){r.next(t)},error(t){a=!0,r.error(t)},complete(){c=!0,s=void 0,r.complete()}}),c&&(s=void 0)):l=r.subscribe(this),this.add(()=>{o--,l.unsubscribe(),l=void 0,s&&!c&&n&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}const ju=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,i.f3M)(o)}});let Bu=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.vpe,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(ju,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(ju,8))},token:t,providedIn:"root"}),t})(),zu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),Hu=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Gu=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new pn.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Te.y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Nu(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Se.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEac
1h((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Ie(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=jc(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>xu(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.R0b),i.LFG(Yc),i.LFG(o,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.R0b),i.LFG(Yc),i.LFG(o,8))},token:t,providedIn:"root"}),t})(),Yu=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new pn.xQ,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Nu(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Yc),i.LFG(i.R0b),i.LFG(o,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(Yc),i.LFG(i.R0b),i.LFG(o,8))},token:t,providedIn:"root"}),t})(),Qu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),$u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[zu,Qc,Qu],zu,Qu]}),t})();class Ju{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Wu extends Ju{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class Ku extends Ju{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Xu extends Ju{constructor(t){super(),this.element=t instanceof i.SBq?t.nativeElement:t}}class tl{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Wu?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ku?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Xu?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDis
1poseFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class el extends tl{constructor(t,e,n,i,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=r}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let nl=(()=>{class t extends tl{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(o))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),t})(),il=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();var rl=n(6682);const sl=Jc();class ol{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Vc(-this._previousScrollPosition.left),t.style.top=Vc(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),sl&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),sl&&(e.scrollBehavior=i,n.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class al{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler
1=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class cl{enable(){}disable(){}attach(){}}function ul(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function ll(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class hl{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();ul(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let dl=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new cl,this.close=t=>new al(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new ol(this._viewportRuler,this._document),this.reposition=t=>new hl(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Gu),i.LFG(Yu),i.LFG(i.R0b),i.LFG(o))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(Gu),i.LFG(Yu),i.LFG(i.R0b),i.LFG(o))},token:t,providedIn:"root"}),t})();class fl{constructor(t){if(this.scrollStrategy=new cl,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class pl{constructor(t,e,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class gl{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let ml=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(o))},token:t,providedIn:"root"}),t})(),vl=(()=>
1{class t extends ml{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(o))},token:t,providedIn:"root"}),t})(),yl=(()=>{class t extends ml{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._pointerDownListener=t=>{this._pointerDownEventTarget=Wc(t)},this._clickListener=t=>{const e=Wc(t),n="click"===t.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let r=i.length-1;r>-1;r--){const s=i[r];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e)||s.overlayElement.contains(n))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o),i.LFG(Yc))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(o),i.LFG(Yc))},token:t,providedIn:"root"}),t})(),bl=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Kc()){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const e=this._document.createElement("div");e.classList.add(t),Kc()?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o),i.LFG(Yc))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(o),i.LFG(Yc))},token:t,providedIn:"root"}),t})();class _l{constructor(t,e,n,i,r,s,o,a,c){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=s,this._document=o,this._location=a,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new pn.xQ,this._attachments=new pn.xQ,this._detachments=new pn.xQ,this._locationChanges=ci.w.EMPTY,this._backdropClickHandler=t=>
1this._backdropClick.next(t),this._keydownEvents=new pn.xQ,this._outsidePointerEvents=new pn.xQ,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Zn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Vc(this._config.width),t.height=Vc(this._config.height),t.minWidth=Vc(this._config.minWidth),t.minHeight=Vc(this._config.minHeight),t.maxWidth=Vc(this._config.maxWidth),t.maxHeight=Vc(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;Uc(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Mc((0,rl.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.parentNode&&t.parentNode.removeChild(t),this._backdropElement===t&&(this._backdropElement=null))}}const wl="cdk-overlay-connected-position-bounding-box",xl=/([A-Za-z%]+)$/;
1class Sl{constructor(t,e,n,i,r){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new pn.xQ,this._resizeSubscription=ci.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(wl),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(t,s),a=this._getOverlayPoint(o,e,s),c=this._getOverlayFit(a,e,n,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(c,a,n)?i.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleArea<c.visibleArea)&&(r={overlayFit:c,overlayPoint:a,originPoint:o,position:s,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Tl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wl),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}_getOverlayFit(t,e,n,i){const r=El(e);let{x:s,y:o}=t,a=this._getOffset(i,"x"),c=this._getOffset(i,"y");a&&(s+=a),c&&(o+=c);let u=0-o,l=o+r.height-n.height,h=this._subtractOverflows(r.width,0-s,s+r.width-n.width),d=this._subtractOverflows(r.height,u,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,r=n.right-e.x,s=Cl(this._overlayRef.getConfig().minHeight),o=Cl(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=s&&s<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=El(e),r=this._viewportRect,s=Math.max(t.x+i.width-r.width,0),o=Math.max(t.y+i.height-r.height,0),a=Math.max(r.top-n.top-t.y,0),c=Math.max(r.left-n.left-t.x,0);let u=0,l=0;return u=i.width<=r.width?c||-s:t.x<this._viewportMargin?r.left-n.left-t.x:0,l=i.height<=r.height?a||-o:t.y<this._viewportMargin?r.top-n.top-t.y:0,this._previousPushAmount={x:u,y:l},{x:t.x+u,y:t.y+l}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new gl(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let r,s,o,a,c,u;
1if("top"===e.overlayY)s=t.y,r=n.height-s+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,r=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;r=2*e,s=t.y-e,r>i&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)u=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)c=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-i/2)}return{top:s,left:c,bottom:o,right:u,width:a,height:r}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=Vc(n.height),i.top=Vc(n.top),i.bottom=Vc(n.bottom),i.width=Vc(n.width),i.left=Vc(n.left),i.right=Vc(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=Vc(t)),r&&(i.maxWidth=Vc(r))}this._lastBoundingBoxSize=n,Tl(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Tl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Tl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Tl(n,this._getExactOverlayY(e,t,i)),Tl(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=Vc(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=Vc(s.maxWidth):r&&(n.maxWidth="")),Tl(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Vc(r.y),i}_getExactOverlayX(t,e,n){let i,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Vc(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ll(t,n),isOriginOutsideView:ul(t,n),isOverlayClipped:ll(e,n),isOverlayOutsideView:ul(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Uc(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEac
1h(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof i.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Tl(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Cl(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(xl);return n&&"px"!==n?null:parseFloat(e)}return t||null}function El(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class Al{constructor(t,e,n,i,r,s,o){this._preferredPositions=[],this._positionStrategy=new Sl(n,i,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const r=new pl(t,e,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const Il="cdk-global-overlay-wrapper";class kl{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Il),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:s,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(Il),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Ol=(()=>
1{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new kl}connectedTo(t,e,n){return new Al(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Sl(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Yu),i.LFG(o),i.LFG(Yc),i.LFG(bl))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(Yu),i.LFG(o),i.LFG(Yc),i.LFG(bl))},token:t,providedIn:"root"}),t})(),Dl=0,Nl=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,u,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new fl(t);return r.direction=r.direction||this._directionality.value,new _l(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Dl++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new el(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(dl),i.LFG(bl),i.LFG(i._Vd),i.LFG(Ol),i.LFG(vl),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(o),i.LFG(Bu),i.LFG(w),i.LFG(yl))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const Pl={provide:new i.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Nl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Rl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[Nl,Pl],imports:[[zu,il,$u],$u]}),t})();const Ll=new i.GfV("12.2.13");class Ml{}const Fl="*";function Zl(t,e){return{type:7,name:t,definitions:e,options:{}}}function ql(t,e=null){return{type:4,styles:e,timings:t}}function Ul(t,e=null){return{type:2,steps:t,options:e}}function Vl(t){return{type:6,styles:t,offset:null}}function jl(t,e,n){return{type:0,name:t,styles:e,options:n}}function Bl(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function zl(t){Promise.resolve(null).then(t)}class Hl{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,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(){zl(()=>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(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Gl{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,i=0;const r=this.players.length;0==r?zl(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++i==r&&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=[])}
1init(){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(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}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}}function Yl(){return"undefined"!=typeof window&&void 0!==window.document}function Ql(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function $l(t){switch(t.length){case 0:return new Hl;case 1:return t[0];default:return new Gl(t)}}function Jl(t,e,n,i,r={},s={}){const o=[],a=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,l=i&&u||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=r[n];break;case Fl:a=s[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}l[i]=a}),i||a.push(l),u=l,c=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Wl(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&Kl(n,"start",t)));break;case"done":t.onDone(()=>i(n&&Kl(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&Kl(n,"destroy",t)))}}function Kl(t,e,n){const i=n.totalTime,r=Xl(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),s=t._data;return null!=s&&(r._data=s),r}function Xl(t,e,n,i,r="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function th(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function eh(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let nh=(t,e)=>!1,ih=(t,e)=>!1,rh=(t,e,n)=>[];const sh=Ql();(sh||"undefined"!=typeof Element)&&(nh=Yl()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),ih=(()=>{if(sh||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]):ih}})(),rh=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)i.push(n[t])}else{const n=t.querySelector(e);n&&i.push(n)}return i});let oh=null,ah=!1;function ch(t){oh||(oh=("undefined"!=typeof document?document.body:null)||{},ah=!!oh.style&&"WebkitAppearance"in oh.style);let e=!0;return oh.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in oh.style,!e&&ah&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in oh.style)),e}const uh=ih,lh=nh,hh=rh;function dh(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let fh=(()=>{class t{validateStyleProperty(t){return ch(t)}matchesElement(t,e){return uh(t,e)}containsElement(t,e){return lh(t,e)}query(t,e,n){return hh(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,r,s=[],o){return new Hl(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),ph=(()=>{class t{}return t.NOOP=new fh,t})();const gh="ng-enter",mh="ng-leave",vh="ng-trigger",yh=".ng-trigger",bh="ng-animating",_h=".ng-animating";function wh(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:xh(parseFloat(e[1]),e[2])}function xh(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Sh(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,s="";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}
1" is invalid.`),{duration:0,delay:0,easing:""};i=xh(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=xh(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=t;if(!n){let n=!1,s=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:r,easing:s}}(t,e,n)}function Th(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Ch(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else Th(t,n);return n}function Eh(t,e,n){return n?e+":"+n+";":""}function Ah(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=Eh(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Eh(0,Fh(n),t.style[n]));t.setAttribute("style",e)}function Ih(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const r=Mh(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),Ql()&&Ah(t))}function kh(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Mh(e);t.style[n]=""}),Ql()&&Ah(t))}function Oh(t){return Array.isArray(t)?1==t.length?t[0]:Ul(t):t}const Dh=new RegExp("{{\\s*(.+?)\\s*}}","g");function Nh(t){let e=[];
1if("string"==typeof t){let n;for(;n=Dh.exec(t);)e.push(n[1]);Dh.lastIndex=0}return e}function Ph(t,e,n){const i=t.toString(),r=i.replace(Dh,(t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()});return r==i?t:r}function Rh(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Lh=/-+([a-z0-9])/g;function Mh(t){return t.replace(Lh,(...t)=>t[1].toUpperCase())}function Fh(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Zh(t,e){return 0===t||0===e}function qh(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=n[t]}),o.length)for(var r=1;r<e.length;r++){let n=e[r];o.forEach(function(e){n[e]=Vh(t,e)})}}return e}function Uh(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 Vh(t,e){return window.getComputedStyle(t)[e]}function jh(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=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 i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=i[1],s=i[2],o=i[3];e.push(Hh(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(Hh(o,r))}(t,n,e)):n.push(t),n}const Bh=new Set(["true","1"]),zh=new Set(["false","0"]);function Hh(t,e){const n=Bh.has(t)||zh.has(t),i=Bh.has(e)||zh.has(e);return(r,s)=>{let o="*"==t||t==r,a="*"==e||e==s;return!o&&n&&"boolean"==typeof r&&(o=r?Bh.has(t):zh.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?Bh.has(e):zh.has(e)),o&&a}}const Gh=new RegExp("s*:selfs*,?","g");function Yh(t,e,n){return new Qh(t).build(e,n)}class Qh{constructor(t){this._driver=t}build(t,e){const n=new $h(e);return this._resetContextStyleTimingState(n),Uh(this,Oh(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],s=[];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,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,r.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,s.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};if(n.styles.forEach(t=>{if(Jh(t)){const e=t;Object.keys(e).forEach(t=>{Nh(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=Rh(r.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:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Uh(this,Oh(t.animation),e);return{type:1,matchers:jh(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Wh(t.o
1ptions)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Uh(this,t,e)),options:Wh(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map(t=>{e.currentTime=n;const r=Uh(this,t,e);return i=Math.max(i,e.currentTime),r});return e.currentTime=i,{type:3,steps:r,options:Wh(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 Kh(Sh(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Kh(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||Sh(i,e),Kh(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let i,r=t.styles?t.styles:Vl({});if(5==r.type)i=this.visitKeyframes(r,e);else{let r=t.styles,s=!1;if(!r){s=!0;const t={};n.easing&&(t.easing=n.easing),r=Vl(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,e);o.isEmptyStep=s,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,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==Fl?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,r=null;return n.forEach(t=>{if(Jh(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=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 s=e.collectedStyles[e.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=Nh(t);r.length&&r.forEach(t=>{i.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 i=0;const r=[];let s=!1,o=!1,a=0;const c=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Jh(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Jh(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),u=0;return null!=c&&(i++,u=n.offset=c),o=o||u<0||u>1,s=s||u<a,a=u,r.push(u),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&e.errors.push("Please ensure that all keyframe offsets are in order");const u=t.steps.length;let l=0;i>0&&i<u?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(l=1/(u-1));const h=u-1,d=e.currentTime,f=e.currentAnimateTimings,p=f.duration;return c.forEach((t,i)=>{const s=l>0?i==h?1:l*i:r[i],o=s*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=s,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Uh(this,Oh(t.animation),e),options:Wh(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Wh(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Wh(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Gh,"")),[t=t.replace(/@\*/g,yh).replace(/@\w+/g,t=>yh+"-"+t.substr(1)).replace(/:animating/g,_h),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,th(e.collectedStyles,e.currentQuerySelector,{});const o=Uh(this,Oh(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:Wh(t.o
1ptions)}}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"}:Sh(t.timings,e.errors,!0);return{type:12,animation:Uh(this,Oh(t.animation),e),timings:n,options:null}}}class $h{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 Jh(t){return!Array.isArray(t)&&"object"==typeof t}function Wh(t){return t?(t=Th(t)).params&&(t.params=function(t){return t?Th(t):null}(t.params)):t={},t}function Kh(t,e,n){return{duration:t,delay:e,easing:n}}function Xh(t,e,n,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class td{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 ed=new RegExp(":enter","g"),nd=new RegExp(":leave","g");function id(t,e,n,i,r,s={},o={},a,c,u=[]){return(new rd).buildKeyframes(t,e,n,i,r,s,o,a,c,u)}class rd{buildKeyframes(t,e,n,i,r,s,o,a,c,u=[]){c=c||new td;const l=new od(t,e,c,i,r,u,[]);l.options=a,l.currentTimeline.setStyles([s],null,l.errors,a),Uh(this,n,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Xh(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&e.transformIntoNewTimeline(s)}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 i=e.currentTimeline.currentTime;const r=null!=n.duration?wh(n.duration):null,s=null!=n.delay?wh(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Uh(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=sd);const t=wh(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Uh(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?wh(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),Uh(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Sh(e.params?Ph(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),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.o
1ptions),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?wh(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=sd);let s=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);r&&o.delayNextStep(r),n===e.element&&(a=o.currentTimeline),Uh(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;Uh(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}const sd={};class od{constructor(t,e,n,i,r,s,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=sd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ad(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=wh(n.duration)),null!=n.delay&&(i.delay=wh(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=Ph(r[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 i=e||this.element,r=new od(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=sd,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new cd(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,s){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ed,"."+this._enterClassName)).replace(nd,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return!r&&0==o.length&&s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class ad{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,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._pe
1ndingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new ad(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]||Fl,this._currentKeyframe[t]=Fl}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const r=i&&i.params||{},s=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=Fl})):Ch(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(s).forEach(t=>{const e=Ph(s[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Fl),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],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,s)=>{const o=Ch(r,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):i==Fl&&e.add(n)}),n||(o.offset=s/this.duration),i.push(o)});const r=t.size?Rh(t.values()):[],s=e.size?Rh(e.values()):[];if(n){const t=i[0],e=Th(t);t.offset=0,e.offset=1,i=[t,e]}return Xh(this.element,i,r,s,this.duration,this.startTime,this.easing,!1)}}class cd extends ad{constructor(t,e,n,i,r,s,o=!1){super(t,e,s.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=n+e,o=e/s,a=Ch(t[0],!1);a.offset=0,r.push(a);const c=Ch(t[0],!1);c.offset=ud(o),r.push(c);const u=t.length-1;for(let i=1;i<=u;i++){let o=Ch(t[i],!1);o.offset=ud((e+o.offset*n)/s),r.push(o)}n=s,e=0,i="",t=r}return Xh(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function ud(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class ld{}class hd extends ld{normalizePropertyName(t,e){return Mh(t)}normalizeStyleValue(t,e,n,i){let r="";const s=n.toString().trim();if(dd[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return s+r}}const dd=(()=>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 fd(t,e,n,i,r,s,o,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const pd={};class gd{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some(t=>t(e,n,i,r))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],s=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):s}build(t,e,n,i,r,s,o,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||pd,d=this.buildStyles(n,o&&o.params||pd,l),f=a&&a.params||pd,p=this.buildStyles(i,f,l),g=new Set,m=new Map,v=new Map,y="void"===i,b={params:Object.assign(Object.assign({},h),f)},_=u?[]:id(t,e,this.ast.animation,r,s,d,p,b,c,l);let w=0;if(_.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),l.length)return fd(e,this._triggerName,n,i,y,d,p,[],[],m,v,w,l);_.forEach(t=>{const n=t.element,i=th(m,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const r=th(v,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&g.add(n)});const x=Rh(g.values());return fd(e,this._triggerName,n,i,y,d,p,_,x,m,v,w)}}class md{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=Th(this.defaultParams);
1return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let s=r[t];s.length>1&&(s=Ph(s,i,e));const o=this.normalizer.normalizePropertyName(t,e);s=this.normalizer.normalizeStyleValue(t,o,s,e),n[o]=s})}}),n}}class vd{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new md(t.style,t.options&&t.options.params||{},n)}),yd(this.states,"true","1"),yd(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new gd(t,e,this.states))}),this.fallbackTransition=function(t,e,n){return new gd(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},e)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(r=>r.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function yd(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const bd=new td;class _d{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=Yh(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]=i}_buildPlayer(t,e,n){const i=t.element,r=Jl(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],r=this._animations[t];let s;const o=new Map;if(r?(s=id(this._driver,e,r,gh,mh,{},{},n,bd,i),s.forEach(t=>{const e=th(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),s=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Fl)})});const a=$l(s.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const r=Xl(e,"","","");return Wl(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const wd="ng-animate-queued",xd="ng-animate-disabled",Sd=".ng-animate-disabled",Td=[],Cd={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ed={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ad="__ng_removed";class Id{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=Th(t);delete e.value,this.options=e}else this.options={};var i;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 kd="void",Od=new Id(kd);class Dd{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,qd(e,this._hostClassName)}listen(t,e,n,i){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"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const s=th(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};s.push(o);const a=th(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(qd(t,vh),qd(t,vh+"-"+e),a[e]=Od),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.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,i=!0){const r=this._getTrigger(e),s=new Pd(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(qd(t,vh),qd(t,vh+"-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new Id(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=Od),c.value!==kd&&a.value===c.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,c.params)){const e=[],n=r.matchStyles(a.value,a.params,e),i=r.matchStyles(c.value,c.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{kh(t,n),Ih(t,i)})}return}const u=th(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=r.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!i)return;l=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:s,isFallbackTransition:h}),h||(qd(t,wd),s.onStart(()=>{Ud(t,wd)})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(s);t>=0&&n.splice(t,1)}}),this.players.push(s),u.push(s),s}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,yh,!0);n.forEach(t=>{if(t[Ad])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,i){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,kd,i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&$l(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const r=e.name;if(i.has(r))return;i.add(r);const s=this._triggers[r].fallbackTransition,o=n[r]||Od,a=new Id(kd),c=new Pd(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:s,fromState:o,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t[Ad];(!i||i===Cd)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){qd(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);
1s&&s.forEach(e=>{if(e.name==n.triggerName){const i=Xl(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,Wl(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i: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 Nd{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 Dd(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?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 i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||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 i=this._namespaceLookup[t];i&&i.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 i=0;i<t.length;i++){const r=n[t[i]].namespaceId;if(r){const t=this._fetchNamespace(r);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Rd(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Rd(e))return;const r=e[Ad];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),qd(t,xd)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ud(t,xd))}removeNode(t,e,n,i){if(Rd(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e[Ad]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return Rd(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,yh,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,_h,!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=>
1{if(this.players.length)return $l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Ad];if(e&&e.setForRemoval){if(t[Ad]=Cd,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Sd)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Sd,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)qd(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?$l(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 td,i=[],r=new Map,s=[],o=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)u.add(e[n])});const l=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=Fd(h,this.collectedEnterElements),f=new Map;let p=0;d.forEach((t,e)=>{const n=gh+p++;f.set(e,n),t.forEach(t=>qd(t,n))});const g=[],m=new Set,v=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const t=this.collectedLeaveElements[O],e=t[Ad];e&&e.setForRemoval&&(g.push(t),m.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>m.add(t)):v.add(t))}const y=new Map,b=Fd(h,Array.from(m));b.forEach((t,e)=>{const n=mh+p++;y.set(e,n),t.forEach(t=>qd(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=f.get(e);t.forEach(t=>Ud(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Ud(t,n))}),g.forEach(t=>{this.processLeaveNode(t)})});const _=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(_.push(e),this.collectedEnterElements.length){const t=r[Ad];if(t&&t.setForMove)return void e.destroy()}const u=!l||!this.driver.containsElement(l,r),h=y.get(r),d=f.get(r),p=this._buildInstruction(t,n,d,h,u);if(p.errors&&p.errors.length)w.push(p);else{if(u)return e.onStart(()=>kh(r,p.fromStyles)),e.onDestroy(()=>Ih(r,p.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>kh(r,p.fromStyles)),e.onDestroy(()=>Ih(r,p.toStyles)),void i.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,p.timelines),s.push({instruction:p,player:e,element:r}),p.queriedElements.forEach(t=>th(o,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 i=c.get(e);i||c.set(e,i=new Set),n.forEach(t=>i.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 x=new Map,S=new Map;s.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}
vendor: 1,102 bytes, line 1
1),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{th(x,e,[]).push(t),t.destroy()})});const T=g.filter(t=>Bd(t,a,c)),C=new Map;Md(C,this.driver,v,c,Fl).forEach(t=>{Bd(t,a,c)&&T.push(t)});const E=new Map;d.forEach((t,e)=>{Md(E,this.driver,new Set(t),a,"!")}),T.forEach(t=>{const e=C.get(t),n=E.get(t);C.set(t,Object.assign(Object.assign({},e),n))});const A=[],I=[],k={};s.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(n.has(e)){if(u.has(e))return s.onDestroy(()=>Ih(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let t=k;if(S.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>S.set(e,t))}const n=this._buildAnimation(s.namespaceId,o,x,r,E,C);if(s.setRealPlayer(n),t===k)A.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=$l(e)),i.push(s)}}else kh(e,o.fromStyles),s.onDestroy(()=>Ih(e,o.toStyles)),I.push(s),u.has(e)&&i.push(s)}),I.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=$l(e);t.setRealPlayer(n)}}
1),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let O=0;O<g.length;O++){const t=g[O],e=t[Ad];if(Ud(t,mh),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,_h,!0);for(let t=0;t<i.length;t++){let e=o.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?Vd(this,t,i):this.processLeaveNode(t)}return g.length=0,A.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),A}elementContainsData(t,e){let n=!1;const i=e[Ad];return i&&i.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,i,r){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==kd;e.forEach(e=>{e.queued||!t&&e.triggerName!=i||s.push(e)})}}return(n||i)&&(s=s.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),s}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,c=th(n,t,[]);this._getPreviousPlayers(t,a,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}kh(i,e.fromStyles)}_buildAnimation(t,e,n,i,r,s){const o=e.triggerName,a=e.element,c=[],u=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h[Ad];if(d&&d.removedBeforeQueried)return new Hl(e.duration,e.delay);const f=h!==a,p=function(t){const e=[];return jd(t,e),e}((n.get(h)||Td).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=r.get(h),m=s.get(h),v=Jl(0,this._normalizer,0,e.keyframes,g,m),y=this._buildPlayer(e,v,p);if(e.subTimeline&&i&&l.add(h),f){const e=new Pd(t,o,h);e.setRealPlayer(y),c.push(e)}return y});c.forEach(t=>{th(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>qd(t,bh));const d=$l(h);return d.onDestroy(()=>{u.forEach(t=>Ud(t,bh)),Ih(a,e.toStyles)}),l.forEach(t=>{th(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Hl(t.duration,t.delay)}}class Pd{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Hl,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=>Wl(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){th(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 Rd(t){return t&&1===t.nodeType}function Ld(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Md(t,e,n,i,r){const s=[];n.forEach(t=>s.push(Ld(t)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(t=>{const n=s[t]=e.computeStyle(i,t,r);(!n||0==n.length)&&(i[Ad]=Ed,o.push(i))}),t.set(i,s)});let a=0;return n.forEach(t=>Ld(t,s[a++])),o}function Fd(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),r=new Map;function s(t){if(!t)return 1;let e=r.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:s(o),r.set(t,e),e}return e.forEach(t=>{const e=s(t);1!==e&&n.get(e).push(t)}),n}const Zd="$$classes";function qd(t,e){if(t.classList)t.classList.add(e);else{let n=t[Zd];n||(n=t[Zd]={}),n[e]=!0}}function Ud(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Zd];n&&delete n[e]}}function Vd(t,e,n){$l(n).onDone(()=>t.processLeaveNode(e))}function jd(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof Gl?jd(i.players,e):e.push(i)}}function Bd(t,e,n){const i=n.get(t);if(!i)return!1;let r=e.get(t);return r?i.forEach(t=>r.add(t)):e.set(t,i),n.delete(t),!0}class zd{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Nd(t,e,n),this._timelineEngine=new _d(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const s=t+"-"+i;let o=this._triggerCache[s];if(!o){const t=[],e=Yh(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e,n){return new vd(t,e,n)}(i,e,this._normalizer),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=eh(n);this._timelineEngine.command(t,e,r,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=eh(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Hd(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Yd(e[0]),e.length>1&&(i=Yd(e[e.length-1]))):e&&(n=Yd(e)),n||i?new Gd(t,n,i):null}let Gd=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ih(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ih(this._element,this._initialStyles),this._endStyles&&(Ih(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(kh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(kh(this._element,this._endStyles),this._endStyles=null),Ih(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Yd(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];Qd(r)&&(e=e||{},e[r]=t[r])}return e}function Qd(t){return"display"===t||"position"===t}const $d="animation",Jd="animationend";class Wd{constructor(t,e,n,i,r,s,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=r,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){(function(t,e){const n=rf(t,"").trim();let i=0;n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++;return n}(n)+1,e=`${n}, ${e}`),nf(t,"",e)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),ef(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Kd(this._element,this._name,"paused")}resume(){Kd(this._element,this._name,"running")}setPosition(t){const e=Xd(this._element,this._name);this._position=t*this._duration,nf(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(),ef(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=rf(t,"").split(","),i=tf(n,e);i>=0&&(n.splice(i,1),nf(t,"",n.join(",")))}(this._element,this._name))}}function Kd(t,e,n){nf(t,"PlayState",n,Xd(t,e))}function Xd(t,e){const n=rf(t,"");return n.indexOf(",")>0?tf(n.split(","),e):tf([n],e)}function tf(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function ef(t,e,n){n?t.removeEventListener(Jd,e):t.addEventListener(Jd,e)}function nf(t,e,n,i){const r=$d+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function rf(t,e){return t.style[$d+e]||""}class sf{constructor(t,e,n,i,r,s,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,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>
1=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._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Wd(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]:Vh(this.element,n))})}this.currentSnapshot=t}}class of extends Hl{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=dh(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 af{constructor(){this._count=0}validateStyleProperty(t){return ch(t)}matchesElement(t,e){return uh(t,e)}containsElement(t,e){return lh(t,e)}query(t,e,n){return hh(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>dh(t));let i=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}}),i+=`${r}}\n`}),i+="}\n";const s=document.createElement("style");return s.textContent=i,s}animate(t,e,n,i,r,s=[],o){const a=s.filter(t=>t instanceof sf),c={};Zh(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=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=qh(t,e,c));if(0==n)return new of(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=Hd(t,e),f=new sf(t,e,l,n,i,r,u,d);return f.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),f}}class cf{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};
1this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Vh(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class uf{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(lf().toString()),this._cssKeyframesDriver=new af}validateStyleProperty(t){return ch(t)}matchesElement(t,e){return uh(t,e)}containsElement(t,e){return lh(t,e)}query(t,e,n){return hh(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const c={},u=s.filter(t=>t instanceof cf);Zh(n,i)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=Hd(t,e=qh(t,e=e.map(t=>Ch(t,!1)),c));return new cf(t,e,a,l)}}function lf(){return Yl()&&Element.prototype.animate||{}}let hf=(()=>{class t extends Ml{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Ul(t):t;return pf(this._renderer,null,e,"register",[n]),new df(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(o))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class df extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ff(this._id,t,e||{},this._renderer)}}class ff{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,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 pf(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function pf(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}const gf="@.disabled";let mf=(()=>{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 vf("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(s),new yf(this,r,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)(i.LFG(i.FYo),i.LFG(zd),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class vf{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)}
1appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}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,i){this.delegate.setAttribute(t,e,n,i)}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,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==gf?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 yf extends vf{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==gf?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),s="";return"@"!=r.charAt(0)&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let bf=(()=>{class t extends zd{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o),i.LFG(ph),i.LFG(ld))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const _f=new i.OlP("AnimationModuleType"),wf=[{provide:Ml,useClass:hf},{provide:ld,useFactory:function(){return new hd}},{provide:zd,useClass:bf},{provide:i.FYo,useFactory:function(t,e,n){return new mf(t,e,n)},deps:[ie,zd,i.R0b]}],xf=[{provide:ph,useFactory:function(){return"function"==typeof lf()?new uf:new af}},{provide:_f,useValue:"BrowserAnimations"},...wf],Sf=[{provide:ph,useClass:fh},{provide:_f,useValue:"NoopAnimations"},...wf];let Tf=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Sf:xf}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:xf,imports:[ve]}),t})();const Cf=new i.GfV("12.2.13"),Ef=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Af=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!(!(0,i.X6Q)()||Kc())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&Cf.full!==Ll.full&&console.warn("The Angular Material version ("+Cf.full+") does not match the Angular CDK version ("+Ll.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(bu),i.LFG(Ef,8),i.LFG(o))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[zu],zu]}),t})();function If(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=qc(t)}}}function kf(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function Of(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=qc(t)}}}function Df(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?function(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}(t):this.defaultTabIndex}}}const Nf=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,i.f3M)(i.soG)}});class Pf{constructor(){this._localeChanges=new pn.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const Rf=new i.OlP("mat-date-formats");let Lf;try{Lf="undefined"!=typeof Intl}catch(fb){Lf=!1}const Mf={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Ff=Uf(31,t=>String(t+1)),Zf={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},qf=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Uf(t,e){const n=Array(t);for(let i=0;i<t;i++)n[i]=e(i);return n}let Vf=(()=>{class t extends Pf{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(Lf){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Uf(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return Mf[t]}getDateNames(){if(Lf){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Uf(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return Ff}getDayOfWeekNames(t){if(Lf){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Uf(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Zf[t]}getYearName(t){if(Lf){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){let i=this._createDateWithOverflow(t,e,n);return i.getMonth(),i}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Lf){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(qf.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Nf,8),i.LFG(Yc))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),jf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:Pf,useClass:Vf}],imports:[[Qc]]}),t})();const Bf={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let zf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:Rf,useValue:Bf}],imports:[[jf]]}),t})(),Hf=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Gf{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Yf={enterDuration:225,exitDuration:150},Qf=$c({passive:!0}),$f=["mousedown","touchstart"],Jf=["mouseup","mouseleave","touchend","touchcancel"];class Wf{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=jc(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},Yf),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const s=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=M
1ath.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,i),o=t-i.left,a=e-i.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-s+"px",u.style.top=a-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=n.color&&(u.style.backgroundColor=n.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const l=new Gf(this,u,n);return l.state=0,this._activeRipples.add(l),n.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,!n.persistent&&(!t||!this._isPointerDown)&&l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},Yf),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=jc(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents($f))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Jf),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=nu(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!n&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!iu(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Qf)})})}_removeTriggerEvents(){this._triggerElement&&($f.forEach(t=>{this._triggerElement.removeEventListener(t,this,Qf)}),this._pointerUpEventsRegistered&&Jf.forEach(t=>{this._triggerElement.removeEventListener(t,this,Qf)}))}}const Kf=new i.OlP("mat-ripple-global-options");let Xf=(()=>{class t{constructor(t,e,n,i,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Wf(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Yc),i.Y36(Kf,8),i.Y36(_f,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("mat-ripple-unbounded",e.unbounded)}
1,inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),tp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Af,Qc],Af]}),t})();const ep=["mat-button",""],np=["*"],ip=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],rp=kf(If(Of(class{constructor(t){this._elementRef=t}})));let sp=(()=>{class t extends rp{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of ip)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(pu),i.Y36(_f,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&i.Gf(Xf,5),2&t){let t;i.iGM(t=i.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(i.uIk("disabled",e.disabled||null),i.e
1kj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:ep,ngContentSelectors:np,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1),i._UZ(3,"span",2)),2&t&&(i.xp6(2),i.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),i.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Xf],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),op=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[tp,Af],Af]}),t})(),ap=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Pt,Af,eu],Af]}),t})(),cp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Qc]]}),t})(),up=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[Hf],imports:[[cp,ap,Af],cp,ap]}),t})();const lp=["mat-calendar-body",""];function hp(t,e){if(1&t&&(i.TgZ(0,"tr",2),i.TgZ(1,"td",3),i._uU(2),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),i.uIk("colspan",t.numCols),i.xp6(1),i.hij(" ",t.label," ")}}function dp(t,e){if(1&t&&(i.TgZ(0,"td",3),i._uU(1),i.qZA()),2&t){const t=i.oxw(2);i.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),i.uIk("colspan",t._firstRowOffset),i.xp6(1),i.hij(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function fp(t,e){if(1&t){const t=i.EpF();
1i.TgZ(0,"td",7),i.NdJ("click",function(e){const n=i.CHM(t).$implicit;return i.oxw(2)._cellClicked(n,e)}),i.TgZ(1,"div",8),i._uU(2),i.qZA(),i._UZ(3,"div",9),i.qZA()}if(2&t){const t=e.$implicit,n=e.index,r=i.oxw().index,s=i.oxw();i.Udp("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),i.ekj("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(r,n))("mat-calendar-body-range-start",s._isRangeStart(t.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",s._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(t.compareValue,r,n))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,r,n))("mat-calendar-body-comparison-start",s._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",s._isInPreview(t.compareValue)),i.Q6J("ngClass",t.cssClasses)("tabindex",s._isActiveCell(r,n)?0:-1),i.uIk("data-mat-row",r)("data-mat-col",n)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s._isSelected(t.compareValue)),i.xp6(1),i.ekj("mat-calendar-body-selected",s._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",s.todayValue===t.compareValue),i.xp6(1),i.hij(" ",t.displayValue," ")}}function pp(t,e){if(1&t&&(i.TgZ(0,"tr",4),i.YNc(1,dp,2,6,"td",5),i.YNc(2,fp,4,46,"td",6),i.qZA()),2&t){const t=e.$implicit,n=e.index,r=i.oxw();i.xp6(1),i.Q6J("ngIf",0===n&&r._firstRowOffset),i.xp6(1),i.Q6J("ngForOf",t)}}function gp(t,e){if(1&t&&(i.TgZ(0,"th",5),i.TgZ(1,"abbr",6),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.uIk("aria-label",t.long),i.xp6(1),i.uIk("title",t.long),i.xp6(1),i.Oqu(t.narrow)}}const mp=["*"];function vp(t,e){}function yp(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"mat-month-view",5),i.NdJ("activeDateChange",function(e){return i.CHM(t),i.oxw().activeDate=e})("_userSelection",function(e){return i.CHM(t),i.oxw()._dateSelected(e)}),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function bp(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"mat-year-view",6),i.NdJ("activeDateChange",function(e){return i.CHM(t),i.oxw().activeDate=e})("monthSelected",function(e){return i.CHM(t),i.oxw()._monthSelectedInYearView(e)})("selectedChange",function(e){return i.CHM(t),i.oxw()._goToDateInView(e,"month")}),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function _p(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"mat-multi-year-view",7),i.NdJ("activeDateChange",function(e){return i.CHM(t),i.oxw().activeDate=e})("yearSelected",function(e){return i.CHM(t),i.oxw()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return i.CHM(t),i.oxw()._goToDateInView(e,"year")}),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}let wp=(()=>{class t{constructor(){this.changes=new pn.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class xp{constructor(t,e,n,i,r={},s=t,o){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=i,this.cssClasse
1s=r,this.compareValue=s,this.rawValue=o}}let Sp=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.vpe,this.previewChange=new i.vpe,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&Tp(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:n,numCols:i}=this;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),(e||!this._cellWidth)&&(this._cellWidth=100/i+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Zn(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return Cp(t,this.startValue,this.endValue)}_isRangeEnd(t){return Ep(t,this.startValue,this.endValue)}_isInRange(t){return Ap(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return Cp(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,n){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let i=this.rows[e][n-1];if(!i){const t=this.rows[e-1];i=t&&t[t.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(t,e,n){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let i=this.rows[e][n+1];if(!i){const t=this.rows[e+1];i=t&&t[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(t){return Ep(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return Ap(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return Cp(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return Ep(t,this.previewStart,this.previewEnd)}_isInPreview(t){return Ap(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(Tp(t)?e=t:Tp(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),n=e.getAttribute("data-mat-col");if(t&&n)return this.rows[parseInt(t)][parseInt(n)]}return null}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b))},t.\u0275cmp=i.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[i.TTD],attrs:lp,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-e
1nd","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(i.YNc(0,hp,3,6,"tr",0),i.YNc(1,pp,3,2,"tr",1)),2&t&&(i.Q6J("ngIf",e._firstRowOffset<e.labelMinRequiredCells),i.xp6(1),i.Q6J("ngForOf",e.rows))},directives:[ft,ht,ut],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}
1.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function Tp(t){return"TD"===t.nodeName}function Cp(t,e,n){return null!==n&&e!==n&&t<n&&t===e}function Ep(t,e,n){return null!==e&&e!==n&&t>=e&&t===n}function Ap(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}class Ip{constructor(t,e){this.start=t,this.end=e}}let kp=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new pn.xQ,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){const n=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:n})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(void 0),i.LFG(Pf))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),Op=(()=>{class t extends kp{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Pf))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const Dp={provide:kp,deps:[[new i.FiY,new i.tp0,kp],Pf],useFactory:function(t,e){return t||new Op(e)}},Np=new i.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let Pp=(()=>{class t{constructor(t,e,n,r,s){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=r,this._rangeStrategy=s,this._rerenderSubscription=ci.w.EMPTY,this.selectedChange=new i.vpe,this._userSelection=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof Ip?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vn(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,n=this._dateAdapter.getYear(this.activeDate),i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.createDate(n,i,e);let s,o;this._selected instanceof Ip?(s=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):s=o=this._getDateInCurrentMonth(this._selected),(s!==e||o!==e)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&t.preventDefault());case 27:return void(null!=this._previewEnd&&!Cc(t)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_handleCalendarBodyKeyup(t){(32===t.keyCode||13===t.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeek
1days(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const n=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let n=this._dateAdapter.getDayOfWeekNames("long").map((t,n)=>({long:t,narrow:e[n]}));this._weekdays=n.slice(t).concat(n.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let n=0,i=this._firstWeekOffset;n<t;n++,i++){7==i&&(this._weeks.push([]),i=0);const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),r=this._shouldEnableDate(t),s=this._dateAdapter.format(t,this._dateFormats.display.dateA11yLabel),o=this.dateClass?this.dateClass(t,"month"):void 0;this._weeks[this._weeks.length-1].push(new xp(n+1,e[n],s,r,o,this._getCellCompareValue(t),t))}}_shouldEnableDate(t){return!!t&&(!this.minDate||this._dateAdapter.compareDate(t,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),n=this._dateAdapter.getMonth(t),i=this._dateAdapter.getDate(t);return new Date(e,n,i).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof Ip?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(t){return!this.dateFilter||this.dateFilter(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(Rf,8),i.Y36(Pf,8),i.Y36(Bu,8),i.Y36(Np,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&i.Gf(Sp,5),2&t){let t;i.iGM(t=i.CRH())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[i.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(t,e){1&t&&(i.TgZ(0,"table",0),i.TgZ(1,"thead",1),i.TgZ(2,"tr"),i.YNc(3,gp,3,3,"th",2),i.qZA(),i.TgZ(4,"tr"),i._UZ(5,"th",3),i.qZA(),i.qZA(),i.TgZ(6,"tbody",4),i.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keyup",function(t){return e._handleCalendarBodyKeyup(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),i.qZA(),i.qZA()),2&t&&(i.xp6(3),i.Q6J("ngForOf",e._weekdays),i.xp6(3),i.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[ht,Sp],encapsulation:2,changeDetection:0}),t})(),Rp=(()=>{class t{constructor(t,e,n){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this._rerenderSubscription=ci.w.EMPTY,this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),Lp(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof Ip?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}
1get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-Mp(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,n=[];e<24;e++)n.push(t+e),4==n.length&&(this._years.push(n.map(t=>this._createCellForYear(t))),n=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));this.selectedChange.emit(this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Mp(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Mp(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_handleCalendarBodyKeyup(t){(32===t.keyCode||13===t.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_getActiveCell(){return Mp(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),n=this._dateAdapter.getYearName(e),i=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new xp(t,n,n,this._shouldEnableYear(t),i)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let e=this._dateAdapter.createDate(t,0,1);this._dateAdapter.getYear(e)==t;e=this._dateAdapter.addCalendarDays(e,1))if(this.dateFilter(e))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(t){if(this._selectedYear=null,t instanceof Ip){const e=t.start||t.end;e&&(this._selectedYear=this._dateAdapter.getYear(e))}else t&&(this._selectedYear=this._dateAdapter.getYear(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(Pf,8),i.Y36(Bu,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-multi-year-view"]],viewQuery:function(t,e){if(1&t&&i.Gf(Sp,5),2&t){let t;i.iGM(t=i.CRH())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","keyup","keydown"]],template:function(t,e){1&t&&(i.TgZ(0,"table",0),i.TgZ(1,"thead",1),i.TgZ(2,"tr"),i._UZ(3,"th",2),i.qZA(),i.qZA(),i.TgZ(4,"tbody",3),i.NdJ("selectedValueChange",function(t){return e._yearSelected(t)})("keyup",function(t){return e._handleCalendarBodyKeyup(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),i.qZA(),i.qZA()),2&t&&(i.xp6(4),i.Q6J("rows",e._years)("todayValue",e._todayYear)("startValue",e._selectedYear)("endValue",e._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",e._getActiveCell()))},directives:[Sp],encapsulation:2,changeDetection:0}),t})();function Lp(t,e,n,i,r){const s=t.getYear(e),o=t.getYear(n),a=Fp(t,i,r);return Math.floor((s-a)/24)===Math.floor((o-a)/24)}function Mp(t,e,n,i){return function(t,e){return(t%24+24)%24}(t.getYear(e)-Fp(t,n,i))}function Fp(t,e,n){let i=0;return n?i=t.getYear(n)-24+1:e&&(i=t.getYear(e)),i}let Zp=(()=>{class t{constructor(t,e,n,r){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=r,this._rerenderSubscription=ci.w.EMPTY,this.selectedChange=new i.vpe,this.monthSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof Ip?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}
1get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(n);const i=this._dateAdapter.getNumDaysInMonth(n);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_handleCalendarBodyKeyup(t){(32===t.keyCode||13===t.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),i=this._dateAdapter.format(n,this._dateFormats.display.monthYearA11yLabel),r=this.dateClass?this.dateClass(n,"year"):void 0;return new xp(t,e.toLocaleUpperCase(),i,this._shouldEnableMonth(t),r)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let n=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(n)==t;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const n=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return t>n||t===n&&e>i}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t<n||t===n&&e<i}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(t){this._selectedMonth=t instanceof Ip?this._getMonthInCurrentYear(t.start)||this._getMonthInCurrentYear(t.end):this._getMonthInCurrentYear(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(Rf,8),i.Y36(Pf,8),i.Y36(Bu,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-year-view"]],viewQuery:function(t,e){if(1&t&&i.Gf(Sp,5),2&t){let t;i.iGM(t=i.CRH())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","keyup","keydown"]],template:function(t,e){1&t&&(i.TgZ(0,"table",0),i.TgZ(1,"thead",1),i.TgZ(2,"tr"),i._UZ(3,"th",2),i.qZA(),i.qZA(),i.TgZ(4,"tbody",3),i.NdJ("selectedValueChange",function(t){return e._monthSelected(t)})("keyup",function(t){return e._handleCalendarBodyKeyup(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),i.qZA(),i.qZA()),2&t&&(i.xp6(4),i.Q6J("label",e._yearLabel)("rows",e._months)("todayValue",e._todayMonth)("startValue",e._selectedMonth)("endValue",e._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",e._dateAdapter.getMonth(e.activeDate)))},directives:[Sp],encapsulation:2,changeDetection:0}),t})(),qp=0,Up=(()=>{class t{constructor(t,e,n,i,r){this._intl=t,this.calendar=e,this._dateAdapter=n,this._dateFormats=i,this._buttonDescriptionId="mat-calendar-button-"+qp++,this.calendar.stateChanges.subscribe(()=>r.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-Mp(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),i=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1
1));return this._intl.formatYearRange(n,i)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):Lp(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(wp),i.Y36((0,i.Gpc)(()=>Vp)),i.Y36(Pf,8),i.Y36(Rf,8),i.Y36(i.sBO))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:mp,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"button",2),i.NdJ("click",function(){return e.currentPeriodClicked()}),i.TgZ(3,"span"),i._uU(4),i.qZA(),i._UZ(5,"div",3),i.qZA(),i._UZ(6,"div",4),i.Hsn(7),i.TgZ(8,"button",5),i.NdJ("click",function(){return e.previousClicked()}),i.qZA(),i.TgZ(9,"button",6),i.NdJ("click",function(){return e.nextClicked()}),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(2),i.uIk("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),i.xp6(1),i.uIk("id",e._buttonDescriptionId),i.xp6(1),i.Oqu(e.periodButtonText),i.xp6(1),i.ekj("mat-calendar-invert","month"!==e.calendar.currentView),i.xp6(3),i.Q6J("disabled",!e.previousEnabled()),i.uIk("aria-label",e.prevButtonLabel),i.xp6(1),i.Q6J("disabled",!e.nextEnabled()),i.uIk("aria-label",e.nextButtonLabel))},directives:[sp,hu],encapsulation:2,changeDetection:0}),t})(),Vp=(()=>{class t{constructor(t,e,n,r){this._dateAdapter=e,this._dateFormats=n,this._changeDetectorRef=r,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this._userSelection=new i.vpe,this.stateChanges=new pn.xQ,this._intlChanges=t.changes.subscribe(()=>{r.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof Ip?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new Wu(this.headerComponent||Up),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(t){const e=t.value;(this.selected instanceof Ip||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(wp),i.Y36(Pf,8),i.Y36(Rf,8),i.Y36(i.sBO))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(i.Gf(Pp,5),i.Gf(Zp,5),i.Gf(Rp,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.monthView=t.first),i.iGM(t=i.CRH())&&(e.year
1View=t.first),i.iGM(t=i.CRH())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[i._Bn([Dp]),i.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(i.YNc(0,vp,0,0,"ng-template",0),i.TgZ(1,"div",1),i.YNc(2,yp,1,8,"mat-month-view",2),i.YNc(3,bp,1,6,"mat-year-view",3),i.YNc(4,_p,1,6,"mat-multi-year-view",4),i.qZA()),2&t&&(i.Q6J("cdkPortalOutlet",e._calendarHeaderPortal),i.xp6(1),i.Q6J("ngSwitch",e.currentView),i.xp6(1),i.Q6J("ngSwitchCase","month"),i.xp6(1),i.Q6J("ngSwitchCase","year"),i.xp6(1),i.Q6J("ngSwitchCase","multi-year"))},directives:[nl,gu,vt,yt,Pp,Zp,Rp],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\n'],encapsulation:2,changeDetection:0}),t})();const jp={provide:new i.OlP("mat-datepicker-scroll-strategy"),deps:[Nl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Bp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[wp,jp],imports:[[Pt,op,Rl,_u,il,Af],Qu]}),t})(),zp=(()=>{class t extends Lo{constructor(t){super(t),this.http=t}getAll(){return this.httpGet("/states")}getProvincias(t){return this.httpGet("/states/locations/"+t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ke))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Hp=(()=>{class t extends Lo{constructor(t){super(t),this.http=t}getAll(){return this.httpGet("/parameters")}getById(t){return this.httpGet("/parameters/"+t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ke))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Gp=new i.OlP("CdkAccordion");let Yp=0,Qp=(()=>{class t{constructor(t,e,n){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=ci.w.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+Yp++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=qc(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit
1(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=qc(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Gp,12),i.Y36(i.sBO),i.Y36(Hu))},t.\u0275dir=i.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:Gp,useValue:void 0}])]}),t})(),$p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const Jp=["body"];function Wp(t,e){}const Kp=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Xp=["mat-expansion-panel-header","*","mat-action-row"];function tg(t,e){if(1&t&&i._UZ(0,"span",2),2&t){const t=i.oxw();i.Q6J("@indicatorRotate",t._getExpandedState())}}const eg=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ng=["mat-panel-title","mat-panel-description","*"],ig=new i.OlP("MAT_ACCORDION"),rg="225ms cubic-bezier(0.4,0.0,0.2,1)",sg={indicatorRotate:Zl("indicatorRotate",[jl("collapsed, void",Vl({transform:"rotate(0deg)"})),jl("expanded",Vl({transform:"rotate(180deg)"})),Bl("expanded <=> collapsed, void => collapsed",ql(rg))]),bodyExpansion:Zl("bodyExpansion",[jl("collapsed, void",Vl({height:"0px",visibility:"hidden"})),jl("expanded",Vl({height:"*",visibility:"visible"})),Bl("expanded <=> collapsed, void => collapsed",ql(rg))])};let og=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),ag=0;const cg=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ug=(()=>{class t extends Qp{constructor(t,e,n,r,s,o,a){super(t,e,n),this._viewContainerRef=r,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new pn.xQ,this._headerId="mat-expansion-panel-header-"+ag++,this._bodyAnimationDone=new pn.xQ,this.accordion=t,this._document=s,this._bodyAnimationDone.pipe(Pc((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),a&&(this.hideToggle=a.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=qc(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(Vn(null),Ie(()=>this.expanded&&!this._portal),Zn(1)).subscribe(()=>{this._portal=new Ku(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ig,12),i.Y36(i.sBO),i.Y36(Hu),i.Y36(i.s_b),i.Y36(o),i.Y36(_f,8),i.Y36(cg,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,og,5),2&t){let t;i.iGM(t=i.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&i.Gf(Jp,5),2&t){let t;i.iGM(t=i.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&i.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:ig,useValue:void 0}]),i.qOj,i.TTD],ngContentSelectors:Xp,decls:7,vars:4,consts:[["role","regi
1on",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(i.F$t(Kp),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,Wp,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&t&&(i.xp6(1),i.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),i.uIk("aria-labelledby",e._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",e._portal))},directives:[nl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[sg.bodyExpansion]},changeDetection:0}),t})();class lg{}const hg=Df(lg);let dg=(()=>{class t extends hg{constructor(t,e,n,i,r,s,o){super(),this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._animationMode=s,this._parentChangeSubscription=ci.w.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe(Ie(t=>!(!t.hideToggle&&!t.togglePosition))):On.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,rl.T)(t.opened,t.closed,a,t._inputChanges.pipe(Ie(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Ie(()=>t._containsFocus())).subscribe(()=>n.focusVia(e,"program")),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:Cc(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ug,1),i.Y36(i.SBq),i.Y36(pu),i.Y36(i.sBO),i.Y36(cg,8),i.Y36(_f,8),i.$8M("tabindex"))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&i.NdJ("
1click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(i.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),i.Udp("height",e._getHeaderHeight()),i.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:ng,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(i.F$t(eg),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,tg,1,1,"span",1)),2&t&&(i.xp6(4),i.Q6J("ngIf",e._showToggle()))},directives:[ft],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[sg.indicatorRotate]},changeDetection:0}),t})(),fg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),pg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Pt,Af,$p,il]]}),t})();function gg(t,e){if(1&t&&(i.TgZ(0,"div"),i.TgZ(1,"p"),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(2),i.AsE("",t.name," ",t.lastName,"")}}function mg(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,gg,3,2,"div",22),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",t.evento.expositors)}}function vg(t,e){if(1&t&&(i.TgZ(0,"p"),i._uU(1),i.qZA()),2&t){const t=i.oxw().$implicit;i.xp6(1),i.AsE("",t.name," ",t.lastName," ...")}}function yg(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,vg,2,2,"p",23),i.qZA()),2&t){const t=e.first;i.xp6(1),i.Q6J("ngIf",t)}}function bg(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,yg,2,1,"div",22),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",t.evento.expositors)}}function _g(t,e){if(1&t&&i.YNc(0,bg,2,1,"div",12),2&t){i.oxw();const t=i.MAs(18),e=i.oxw();i.Q6J("ngIf",e.evento.expositors.length>1)("ngIfElse",t)}}function wg(t,e){if(1&t&&(i.TgZ(0,"p"),i._uU(1),i.qZA()),2&t){const t=i.oxw().$implicit;i.xp6(1),i.AsE("",t.name," ",t.lastName," ")}}function xg(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,wg,2,2,"p",23),i.qZA()),2&t){const t=e.first;i.xp6(1),i.Q6J("ngIf",t)}}function Sg(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,xg,2,1,"div",22),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",t.evento.expositors)}}function Tg(t,e){if(1&t&&(i.TgZ(0,"p",24),i._uU(1),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Oqu(t.getTextoLugar(t.evento))}}const Cg=function(t){return{"mat-expanded":t}};function Eg(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"mat-expansion-panel",1,2),i.NdJ("opened",function(){return i.CHM(t),i.oxw().verMasFunction()})("closed",function(){return i.CHM(t),i.oxw().verMenosFunction()}),i.TgZ(2,"mat-expansion-panel-header",3),i.TgZ(3,"mat-panel-title",4),i.TgZ(4,"div",5),i.TgZ(5,"div",6),i.TgZ(6,"div",7),i.TgZ(7,"a",8),i.NdJ("
1click",function(){i.CHM(t);const e=i.oxw();return e.clickVerEvento(e.evento)}),i._UZ(8,"img",9),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"div",10),i.TgZ(10,"div",11),i.TgZ(11,"p"),i._uU(12),i.qZA(),i.TgZ(13,"div"),i.YNc(14,mg,2,1,"div",12),i.YNc(15,_g,1,2,"ng-template",null,13,i.W1O),i.YNc(17,Sg,2,1,"ng-template",null,14,i.W1O),i.qZA(),i.TgZ(19,"p",15),i._uU(20),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(21,"p",16),i._uU(22),i.qZA(),i.YNc(23,Tg,2,1,"p",17),i._UZ(24,"div",18),i.TgZ(25,"div",19),i.TgZ(26,"button",20),i.NdJ("click",function(){i.CHM(t);const e=i.oxw();return e.clickVerEvento(e.evento)}),i.TgZ(27,"span",21),i._uU(28,"add"),i.qZA(),i._uU(29," INFO"),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.MAs(1),e=i.MAs(16),n=i.oxw();i.Gre("",n.myTrim(n.nameSection),"BtnBGH cardEvento"),i.Q6J("ngClass",i.VKq(20,Cg,t.expanded)),i.xp6(8),i.s9C("src",n.evento.url,i.LSH),i.xp6(3),i.Gre("text-uppercase scheduleTitle ",n.getColor(),""),i.xp6(1),i.Oqu(n.evento.title),i.xp6(2),i.Q6J("ngIf",n.evento.expositors.length>1&&!0===n.verMas)("ngIfElse",e),i.xp6(6),i.AsE("",n.getTextoFecha(n.evento)," ",n.getTextoHoras(n.evento),""),i.xp6(2),i.Oqu(n.evento.subtitle),i.xp6(1),i.Q6J("ngIf",1==n.evento.eventAttendTypeId),i.xp6(3),i.IyS("btn-",n.myTrim(n.nameSection)," ",n.getColor()," ",n.myTrim(n.nameSection),"BtnBGH")}}let Ag=(()=>{class t{constructor(t,e,n){this.fs=t,this.router=e,this.service=n,this.verMas=!1}ngOnInit(){this.fs.setInfoEvent(this.evento,lo.tipoImagen.miniatura),null!=this.evento.sectionId&&(this.nameSection=this.evento.sectionId&&null!=this.evento.sectionId.name?this.evento.sectionId.name.toLowerCase():null)}clickVerEvento(t){this.router.navigate(["event",t.id])}verMasFunction(){this.verMas=!0}verMenosFunction(){this.verMas=!1}getTextoLugar(t){return this.fs.getTextoLugar(t)}getTextoMedio(t){return this.fs.getTextoMedio(t)}getColor(){return null!=this.nameSection?this.fs.getColor(this.nameSection):""}getSourceImage(){if(null==this.nameSection)return"";{let t=this.nameSection.toLowerCase();
1if("innovaci\xf3n"==t)return"assets/img/agenda_circulo_yellow.png";if("promoci\xf3n de la salud"==t)return"assets/img/agenda_circulo_blue.png";if("sociedad"==t)return"assets/img/agenda_circulo_pink.png";if("cultura y arte"==t)return"assets/img/agenda_circulo_purple.png";if("sustentabilidad"==t)return"assets/img/agenda_circulo_aqua.png"}}getTextoHoras(t){return this.fs.getTextoHoras2(t)}getTextoFecha(t){return this.fs.getTextoFechaInicio(t)===this.fs.getTextoFechaFin(t)?this.fs.getTextoFechaInicio(t):this.fs.getTextoFechaInicio(t)+" al "+this.fs.getTextoFechaFin(t)}myTrim(t){return t.replace(/\s/g,"").toLowerCase()}getObsevacion(t){if(null!=t.observationsDate)return t.observationsDate}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Fo),i.Y36(Vs),i.Y36(Mo))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-evento"]],inputs:{evento:"evento"},decls:1,vars:1,consts:[[3,"ngClass","class","opened","closed",4,"ngIf"],[3,"ngClass","opened","closed"],["panel",""],[1,"cardEventoHeader"],[2,"width","100%"],[1,"row","row-eq-height","vertical-align",2,"vertical-align","middle","width","inherit"],[1,"col-xs-12","col-sm-2"],[1,"author"],[1,"author-img","cursor-pointer",3,"click"],["alt","Titulo actividad agenda",1,"center-block",3,"src"],[1,"col-xs-12","col-sm-10"],[1,"schedule-info"],[4,"ngIf","ngIfElse"],["verMenos",""],["verUno",""],[1,"schedule-time"],[1,"subtitle","direccion"],["class","address direccion",4,"ngIf"],[1,"0"],[1,"row","text-center"],[3,"click"],[1,"material-icons",2,"vertical-align","bottom"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"address","direccion"]],template:function(t,e){1&t&&i.YNc(0,Eg,30,22,"mat-expansion-panel",0),2&t&&i.Q6J("ngIf",null!=e.evento)},directives:[ft,ug,ut,dg,fg,ht],styles:[".m-0[_ngcontent-%COMP%]{margin-top:0}.promoci\\f3ndelasaludBtnBGH[_ngcontent-%COMP%]:hover{background-color:#3528e8!important;color:#fff!important}.promoci\\f3ndelasaludBtnBGH[_ngcontent-%COMP%]:hover   p[_ngcontent-%COMP%]{background-color:#3528e8!important;color:#fff!important}.culturayarteBtnBGH[_ngcontent-%COMP%]:hover{background-color:#8e39e6!important;color:#fff!important}.culturayarteBtnBGH[_ngcontent-%COMP%]:hover   p[_ngcontent-%COMP%]{background-color:#8e39e6!important;color:#fff!important}.sociedadBtnBGH[_ngcontent-%COMP%]:hover{background-color:#e548a6!important;color:#fff!important}.sociedadBtnBGH[_ngcontent-%COMP%]:hover   p[_ngcontent-%COMP%]{background-color:#e548a6!important;color:#fff!important}.innovaci\\f3nBtnBGH[_ngcontent-%COMP%]:hover{background-color:#62c7f6!important;color:#fff!important}.innovaci\\f3nBtnBGH[_ngcontent-%COMP%]:hover   p[_ngcontent-%COMP%]{background-color:#62c7f6!important;color:#fff!important}.sustentabilidadBtnBGH[_ngcontent-%COMP%]:hover{background-color:#72cead!important;color:#fff!important}.sustentabilidadBtnBGH[_ngcontent-%COMP%]:hover   p[_ngcontent-%COMP%]{background-color:#72cead!important;color:#fff!important}.center[_ngcontent-%COMP%]{text-align:center;align-self:center}.scheduleTitle[_ngcontent-%COMP%]{font-size:17px;line-height:30px;font-weight:900;margin:0 0 5px}.aut-schedule[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:500}.schedule-time[_ngcontent-%COMP%]{font-weight:700;font-size:16px}.address[_ngcontent-%COMP%]{font-weight:700;font-size:16px}.description-schedule[_ngcontent-%COMP%]{font-weight:300}.schedule-info[_ngcontent-%COMP%]{color:#797979}.btn-schedule[_ngcontent-%COMP%]{font-weight:bold}.promoci\\f3ndelasaludBGH[_ngcontent-%COMP%]{background-repeat:repeat-y;background-position:100% 0;background-size:inherit;color:#797979}.promoci\\f3ndelasaludBGH[_ngcontent-%COMP%]:hover   div[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{background-color:#3528e8!important;color:#fff!important}.day[_ngcontent-%COMP%]{color:#797979}.lgx-single-tab[_ngcontent-%COMP%]:hover   p[_ngcontent-%COMP%]{color:#fff!important}.grey[_ngcontent-%COMP%]{color:#797979}.grey[_ngcontent-%COMP%]:hover{color:#fff}.promoci\\f3ndelasalud[_ngcontent-%COMP%]{color:#3528e8!important}.promoci\\f3ndelasalud[_ngcontent-%COMP%]:hover{color:#fff}.innovaci\\f3n[_ngcontent-%COMP%]{color:#3cb4e5!important}.innovaci\\f3n[_ngcontent-%COMP%]:hover{color:#fff}.arteycultura[_ngcontent-%COMP%]{color:#8e39e6!important}.arteycultura[_ngcontent-%COMP%]:hover{color:#fff}.sociedad[_ngcontent-%COMP%]{color:#e548a6!important}.sociedad[_ngcontent-%COMP%]:hover{color:#fff}.sustentabilidad[_ngcontent-%COMP%]{color:#72cead!important}.sustentabilidad[_ngcontent-%COMP%]:hover{color:#fff}.vertical-align[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:row}@media (max-width: 991px){.author-img[_ngcontent-%COMP%]{float:none}.author[_ngcontent-%COMP%]   .author-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:50%}}@media (max-width: 767px){.vertical-align[_ngcontent-%COMP%]{display:grid;align-items:center;justify-content:center;flex-direction:row;text-align:center}.author[_ngcontent-%COMP%]   .author-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:50%}.schedule-info[_ngcontent-%COMP%]{margin-left:0}}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.botonMas[_ngcontent-%COMP%]{background-color:#3528e8;color:#fff;text-align:center;font-size:26px;border-radius:50%;padding:9px 18px;font-weight:600;margin-top:25px}"]}),t})();const Ig=["*",[["mat-card-footer"]]],kg=["*","mat-card-footer"];let Og=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(_f,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:kg,decls:2,vars:0,template:function(t,e){1&t&&(i.F$t(Ig),i.Hsn(0),i.Hsn(1,1))}
1,styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}
1.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),Dg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Af],Af]}),t})(),Ng=(()=>{class t{transform(t,e,n,i,r){return n?t.slice(e,e+5):r?t.slice(e,e+5).reverse():t.slice(e,e+5)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"filtroEventos",type:t,pure:!0}),t})();function Pg(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"li"),i.TgZ(1,"a",23),i.NdJ("click",function(){const e=i.CHM(t).$implicit;return i.oxw(2).selectProvincia(e)}),i._uU(2),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit;i.xp6(2),i.Oqu(t.name)}}function Rg(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"li"),i.TgZ(1,"a",23),i.NdJ("click",function(){const e=i.CHM(t).$implicit;return i.oxw(2).selectSeccion(e)}),i._uU(2),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit;i.xp6(2),i.Oqu(t.name)}}function Lg(t,e){if(1&t&&(i.TgZ(0,"div",24),i._UZ(1,"app-evento",25),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("evento",t)}}function Mg(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"mat-card",26),i.TgZ(1,"mat-calendar",27,28),i.NdJ("selectedChange",function(e){return i.CHM(t),i.oxw(2).selectDate("input",e)}),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("dateFilter",t.myFilter)("dateClass",t.dateClass)}}const Fg=function(t,e,n,i,r){return[t,e,n,i,r]};function Zg(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",1),i.TgZ(1,"h1",2),i._uU(2,"AGENDA"),i.qZA(),i.TgZ(3,"p",3),i._uU(4),i.qZA(),i.TgZ(5,"div",4),i._uU(6,"Seleccion\xe1 tu provincia"),i.qZA(),i.TgZ(7,"div",5),i.TgZ(8,"div",6),i.TgZ(9,"button",7),i._uU(10),i._UZ(11,"span",8),i.qZA(),i.TgZ(12,"ul",9),i.YNc(13,Pg,3,1,"li",10),i.qZA(),i.qZA(),i.qZA(),i.TgZ(14,"div",4),i._uU(15,"Seleccion\xe1 el eje"),i.qZA(),i.TgZ(16,"div",5),i.TgZ(17,"div",6),i.TgZ(18,"button",7),i._uU(19),i._UZ(20,"span",8),i.qZA(),i.TgZ(21,"ul",9),i.YNc(22,Rg,3,1,"li",10),i.qZA(),i.qZA(),i.qZA(),i.TgZ(23,"div",11),i.TgZ(24,"div",12),i.TgZ(25,"div",13),i.TgZ(26,"div",11),i.TgZ(27,"div",14),i.TgZ(28,"button",15),i.NdJ("click",function(){return i.CHM(t),i.oxw().getPreviousActivities()}),i.TgZ(29,"span",16),i._uU(30,"arrow_back_ios"),i.qZA(),i._uU(31,"Actividades anteriores "),i.qZA(),i.TgZ(32,"button",15),i.NdJ("click",function(){return i.CHM(t),i.oxw().getNextActivities()}),i._uU(33," Actividades pr\xf3ximas"),i.TgZ(34,"span",16),i._uU(35,"arrow_forward_ios"),i.qZA(),i.qZA(),i.qZA(),i.YNc(36,Lg,2,1,"div",17),i.ALo(37,"filtroEventos"),i.qZA(),i.qZA(),i.TgZ(38,"div",18),i.TgZ(39,"form",19),i.YNc(40,Mg,3,2,"mat-card",20),i.qZA(),i.qZA(),i.qZA(),i.TgZ(41,"a",21),i._UZ(42,"i",22),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(4),i.Oqu(t.parameters.value),i.xp6(6),i.hij(" ",t.provinciaSeleccionad
1a.name," "),i.xp6(3),i.Q6J("ngForOf",t.states),i.xp6(6),i.hij(" ",t.seccionSelec.name," "),i.xp6(3),i.Q6J("ngForOf",t.sections),i.xp6(6),i.Q6J("disabled",0===t.page||0===t.eventosRevert.length),i.xp6(4),i.Q6J("disabled",t.page+5>=t.eventosRevert.length),i.xp6(4),i.Q6J("ngForOf",i.G7q(37,10,i.qbA(16,Fg,t.eventosRevert,t.page,t.eventoSeleccionado,t.events,t.isPreviewActivity))),i.xp6(3),i.Q6J("formGroup",t.datosFechaForm),i.xp6(1),i.Q6J("ngIf",null!=t.eventosFechas)}}let qg=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.stateService=e,this.service=n,this.fs=i,this.parameterservice=r,this.events=[],this.eventsSemana=[],this.eventsSemanaPrimeros=[],this.eventosRevert=[],this.eventsAux=[],this.states=[],this.sections=[],this.eventoSeleccionado=!1,this.isPreviewActivity=!1,this.p=1,this.startPage=0,this.paginationLimit=+No.settings.paginado,this.provinciaSeleccionada=null,this.seccionSelec=null,this.seccionesSeleccionadas=[],this.eventosFechas=null,this.myFilter=t=>{var e=t.getTime();return!!this.eventosFechas.find(t=>t.startDate.getTime()==e)},this.dateClass=t=>{const e=t.getTime();var n=0,i=this.eventosFechas.find(t=>t.startDate.getTime()==e);return i&&(n=1,this.eventosFechas.forEach(t=>{n=i.startDate==t.startDate&&t.sectionId.name.toLowerCase()!=i.sectionId.name.toLowerCase()?n++:n})),i?this.getColor(n>1?"fundacion":i.sectionId.name):void 0},this.datosFechaForm=new dc({fecha:new hc("")}),Promise.all([this.getState(),this.getSections()]).then(t=>ua(this,void 0,void 0,function*(){this.states=t[0],this.sections=t[1],this.provinciaSeleccionad
1a=this.states.find(t=>t.name==lo.stateNameDefault),this.seccionSelec=this.sections.find(t=>t.name==lo.stateNameDefault),yield this.cargarEventos(this.provinciaSeleccionada.id,this.seccionSelec.id,0)}))}ngOnInit(){this.datosFechaForm.get("fecha").valueChanges.subscribe(t=>{}),this.parameterservice.getAll().toPromise().then(t=>{let e=t.filter(t=>"subtitle_agenda"==t.key);this.parameters=e[0]})}getState(){return this.stateService.getAll().toPromise().then(t=>{t.sort(function(t,e){return t.name<e.name?-1:t.name>e.name?1:0});let e=[];return e.push({id:0,name:"Todas"}),t.forEach(t=>e.push(t)),e})}getSections(){return this.service.getSections().toPromise().then(t=>{let e;e=t.filter(t=>t.active&&"Nosotros"!=t.name&&"Patrocinio"!=t.name&&"Canal de contacto"!=t.name);let n=[];return n.push({id:0,name:"Todas",active:!0,events:[],pages:[],priority:0}),e.forEach(t=>{"Politica de privacidad"!=t.name&&"Acuerdo con el usuario"!=t.name&&n.push(t)}),n})}getCurrentPosition(){return new Promise(t=>{navigator.geolocation.getCurrentPosition(e=>{t({lng:e.coords.longitude,lat:e.coords.latitude})},e=>{t({lng:"",lat:""})})})}myTrim(t){return t.name.replace(/\s/g,"").toLowerCase()}isPromDeLaSalud(t){return"Promoci\xf3n de la salud"==t.name}selectSeccion(t){this.seccionSelec=t,this.refresh(this.provinciaSeleccionad
1a.id)}refresh(t){this.events=[],this.eventosFechas=[],this.eventsSemana=[],this.cargarEventos(t,0!=this.seccionSelec.id?this.seccionSelec.id:0,0)}selectProvincia(t){this.paginationLimit=+No.settings.paginado,this.events=[],this.eventosFechas=[],this.eventsSemana=[],this.provinciaSeleccionada=t,this.cargarEventos(this.provinciaSeleccionada.id,0!=this.seccionSelec.id?this.seccionSelec.id:0,0)}cargarEventos(t,e,n){0!=t?(this.eventoSeleccionado=!1,this.service.find(t,0,e,n).subscribe(t=>{let e=t.filter(t=>t.statusId.name==lo.estadoPublicado);this.events=this.events.concat(e),this.eventosRevert=this.events.reverse(),this.page=this.getFechaActualIndex(new Date(this.eventosRevert[0].startDate)),this.cargarFechasCalendario()}),this.service.getAll().subscribe(t=>{let n=t.filter(t=>null==t.place).filter(t=>t.statusId.name==lo.estadoPublicado&&t.stateId.name);0!=e&&(n=n.filter(t=>t.sectionId.id==e)),this.events=this.events.concat(n),this.eventosRevert=this.events.reverse(),this.page=this.getFechaActualIndex(new Date(this.eventosRevert[0].startDate)),this.cargarFechasCalendario()})):(this.eventoSeleccionado=!1,this.service.getAll().subscribe(t=>{let n=t.filter(t=>t.statusId.name==lo.estadoPublicado);0!=e&&(n=n.filter(t=>t.sectionId.id==e)),this.events=this.events.concat(n),this.eventosRevert=this.events.sort((t,e)=>new Date(t.endDate).getTime()-new Date(e.endDate).getTime()),this.eventsAux=this.eventosRevert,this.page=this.getFechaActualIndex(0!=e?new Date(this.eventosRevert[0].startDate):new Date);let i=n.filter(t=>new Date(t.endDate)>=new Date);0==i.length?(this.page=this.events.length-5,this.cargarFechasCalendario()):(this.eventsSemana=this.eventsSemana.concat(i),this.cargarFechasCalendario())}))}cargarFechasCalendario(){var t;this.eventosFechas=[],this.events.forEach(t=>{var e=new Date(t.startDate);e.setHours(0,0,0),t.startDate=e,this.eventosFechas.push(t)}),null===(t=this.calendar)||void 0===t||t.updateTodaysDate()}getColor(t){let e=t.toLowerCase();return"innovaci\xf3n"==e?"light-blueCalendario":"promoci\xf3n de la salud"==e?"blueCalendario":"sociedad"==e||"cultura"==e?"coralCalendario":"cultura y arte"==e?"purpleCalendario":"sustentabilidad"==e?"aquaCalendario":"blueCalendario"}selectDate(t,e){var n=new Date(e.toString());this.eventoSeleccionado=!0,this.eventosRevert=this.eventsAux;var i=[];i=(i=this.eventosRevert.filter(t=>{var e=new Date(t.startDate);return e.setHours(0,0,0),e.getTime()==n.getTime()})).sort((t,e)=>parseInt(t.time.split(":")[0])-parseInt(e.time.split(":")[0])),this.events=i,this.eventosRevert=i;let r=this.getFechaActualIndex(e);this.page=r}verAnteriores(){this.router.navigate(["previous"])}mostrarMasEventos(){this.paginationLimit=Number(this.paginationLimit)+ +No.settings.paginado}getSunday(t){var e=t.getDay(),n=t.getDate()-e;return new Date(t.setDate(n))}getSaturday(t){var e=t.getDay(),n=t.getDate()+(6-e);return new Date(t.setDate(n))}getNextActivities(){this.isPreviewActivity=!1,this.page+=5}getPreviousActivities(){this.isPreviewActivity=!0,this.page>0&&this.page-5>=0?this.page-=5:this.page<5&&(this.page=0)}getFechaActualIndex(t){let e;return e=this.eventosRevert.find(this.eventoSeleccionado?e=>new Date(e.startDate).getTime()==t.getTime():e=>
1new Date(e.endDate).getTime()>=t.getTime()),this.eventosRevert.indexOf(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Vs),i.Y36(zp),i.Y36(Mo),i.Y36(Fo),i.Y36(Hp))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-agenda"]],viewQuery:function(t,e){if(1&t&&i.Gf(Vp,5),2&t){let t;i.iGM(t=i.CRH())&&(e.calendar=t.first)}},decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"calendar-head","text-center","blue"],[1,"text-center","blue"],[1,"text-center","text-grey","little-text"],["id","option-selection"],[1,"dropdown"],["type","button","id","dropdownMenu1","data-toggle","dropdown","aria-haspopup","true","aria-expanded","true",1,"btn","btn-default","dropdown-toggle"],[1,"caret"],["aria-labelledby","dropdownMenu1",1,"dropdown-menu","dropdown-calendar"],[4,"ngFor","ngForOf"],[1,"row","text-center"],[1,"calendarioEventos"],[1,"cardsEventos"],[1,"btn-container"],["mat-button","","color","primary",3,"disabled","click"],[1,"material-icons"],["id","home","class","tab-pane fade in active",4,"ngFor","ngForOf"],[1,"calendario"],[3,"formGroup"],["class","demo-inline-calendar-card",4,"ngIf"],["id","back-to-top","href","#","role","button","data-toggle","tooltip","data-placement","left",1,"btn","btn-lg","back-to-top"],[1,"fas","fa-angle-up","fa-lg"],[1,"cursor-pointer",3,"click"],["id","home",1,"tab-pane","fade","in","active"],[3,"evento"],[1,"demo-inline-calendar-card"],[3,"dateFilter","dateClass","selectedChange"],["calendar",""]],template:function(t,e){1&t&&i.YNc(0,Zg,43,22,"div",0),2&t&&i.Q6J("ngIf",e.provinciaSeleccionad
1a)},directives:[ft,ht,sp,pc,Ya,yc,Ag,Og,Vp],pipes:[Ng],styles:[".culturabtnM[_ngcontent-%COMP%]{color:#fff!important;border:2px solid #FF8672!important;background-color:#ff8672!important;font-size:.8em;font-weight:900}.nav-pills[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-top:10px}.promoci\\f3ndelasaludbtnM[_ngcontent-%COMP%]{color:#fff!important;border:2px solid #3528e8!important;background-color:#3528e8!important;font-size:.5em!important;font-weight:900}.sociedadbtnM[_ngcontent-%COMP%]{color:#fff!important;border:3px solid #e548a6!important;background-color:#e548a6!important;font-size:.8em;font-weight:900}.culturayartebtnM[_ngcontent-%COMP%]{color:#fff!important;border:3px solid #8e39e6!important;background-color:#8e39e6!important;font-size:.8em;font-weight:900}.sustentabilidadbtnM[_ngcontent-%COMP%]{color:#fff!important;border:3px solid #72cead!important;background-color:#72cead!important;font-size:.8em;font-weight:900}.innovaci\\f3nbtnM[_ngcontent-%COMP%]{color:#fff!important;border:3px solid #62c7f6!important;background-color:#62c7f6!important;font-size:.8em;font-weight:900}.culturabtnD[_ngcontent-%COMP%]{color:#8e39e6!important;border:3px solid #8e39e6!important;background-color:#fff!important;font-size:.8em;font-weight:900}.promoci\\f3ndelasaludbtnD[_ngcontent-%COMP%]{color:#3528e8!important;border:3px solid #3528e8!important;background-color:#fff!important;font-size:.5em;font-weight:900}.sociedadbtnD[_ngcontent-%COMP%]{color:#e548a6!important;border:3px solid #e548a6!important;background-color:#fff!important;font-size:.8em;font-weight:900}.culturayartebtnD[_ngcontent-%COMP%]{color:#8e39e6!important;border:3px solid #8e39e6!important;background-color:#fff!important;font-size:.8em;font-weight:900}.sustentabilidadbtnD[_ngcontent-%COMP%]{color:#72cead!important;border:3px solid #72cead!important;background-color:#fff!important;font-size:.8em;font-weight:900}.innovaci\\f3nbtnD[_ngcontent-%COMP%]{color:#62c7f6!important;border:3px solid #62c7f6!important;background-color:#fff!important;font-size:.8em;font-weight:900}.anteriores-tag[_ngcontent-%COMP%]{border:2px solid #777777!important;color:#777;background-color:#fff;padding:10px 15px;margin:40px 0 20px;font-weight:900}.nav-pills[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-left:0}.paginacion[_ngcontent-%COMP%]{margin-top:10px}.botonMas[_ngcontent-%COMP%]{background-color:#3528e8;color:#fff;text-align:center;font-size:26px;border-radius:50%;padding:9px 18px;font-weight:600;margin-top:25px}.tamanio-celdas[_ngcontent-%COMP%]{padding:5px!important}.btn-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media (max-width: 767px){.mpills[_ngcontent-%COMP%]{margin:0 2px}}@media (max-width: 480px){.mpills[_ngcontent-%COMP%]{margin:0 2px}.promoci\\f3ndelasaludbtnM[_ngcontent-%COMP%]{color:#fff!important;border:2px solid #3528e8!important;background-color:#3528e8!important;font-size:.8em;font-weight:900}.promoci\\f3ndelasaludbtnD[_ngcontent-%COMP%]{color:#3528e8!important;border:2px solid #3528e8!important;background-color:#fff!important;font-size:.8em;font-weight:900}}@media (max-width: 993px){.promoci\\f3ndelasaludbtnM[_ngcontent-%COMP%]{color:#fff!important;border:2px solid #3528e8!important;background-color:#3528e8!important;font-size:.8em;font-weight:900}.promoci\\f3ndelasaludbtnD[_ngcontent-%COMP%]{color:#3528e8!important;border:2px solid #3528e8!important;background-color:#fff!important;font-size:.8em;font-weight:900}}@media (min-width: 992px){.col-md-3[_ngcontent-%COMP%]{width:25%!important}}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}@media (min-width: 768px){.col-sm-10[_ngcontent-%COMP%]{width:83.33333333%;margin-left:35px}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{margin-right:-115px}}@media (max-width: 450px){.btn-container[_ngcontent-%COMP%] > .mat-button[_ngcontent-%COMP%]{font-size:12px}.material-icons[_ngcontent-%COMP%]{font-size:14px}}"]}),t})(),Ug=(()=>{class t{constructor(t,e){this.geoService=t,this.route=e,this.state="",this.city=""}ngOnInit(){this.route.fragment.subscribe(t=>{this.scrollToAnchor(t)})}scrollToAnchor(t,e=2e3){const n=document.querySelector("#"+t);n&&setTimeout(()=>{n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ho),i.Y36(br))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-index"]],decls:4,vars:0,consts:[["id","AGENDA"]],template:function(t,e){1&t&&(i._UZ(0,"app-slider"),i._UZ(1,"app-video"),i._UZ(2,"app-blog"),i._UZ(3,"app-agenda",0))},directives:[Go,Wo,oa,qg],styles:[""]}),t})();function Vg(t,e){if(1&t){const t=i.EpF();
1i.TgZ(0,"div"),i.ALo(1,"lowercase"),i.TgZ(2,"a",4),i.NdJ("click",function(){const e=i.CHM(t).$implicit;return i.oxw(2).irEvento(e)}),i._UZ(3,"img",5),i.TgZ(4,"p"),i._uU(5),i.qZA(),i.TgZ(6,"p",6),i._uU(7),i.ALo(8,"date"),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(2);i.Gre("col-md-4 item-sugerido ",i.lcZ(1,9,n.nombreSeccionSinespacion),"BGH"),i.xp6(3),i.s9C("src",t.url,i.LSH),i.xp6(1),i.Gre("title-suggest ",n.getColor(t),""),i.xp6(1),i.hij(" ",t.title," "),i.xp6(2),i.Oqu(i.xi3(8,11,t.endDate,"longDate"))}}function jg(t,e){if(1&t&&(i.TgZ(0,"div",1),i.TgZ(1,"h3",2),i._uU(2,"Eventos sugeridos"),i.qZA(),i.YNc(3,Vg,9,14,"div",3),i.qZA()),2&t){const t=i.oxw();i.xp6(3),i.Q6J("ngForOf",t.datos)}}let Bg=(()=>{class t{constructor(t,e,n){this.router=t,this.fs=e,this.service=n,this.datos=null}ngOnInit(){this.cargarEventos(),this.nombreSeccionSinespacion=this.seccion.split(" ").join("")}getColor(t){return null!=t.sectionId.name?this.fs.getColor(t.sectionId.name):""}cargarEventos(){this.service.getAll().subscribe(t=>{let e=[];null!=t&&null!=this.seccion&&""!=this.seccion.trim()&&(e=t.filter(t=>t.sectionId.name.trim()==this.seccion),e=e.filter(t=>t.id!=this.idEvento),e=e.filter(t=>t.statusId.name==lo.estadoPublicado).slice(0,3),e=e.sort((t,e)=>new Date(e.startDate).getTime()-new Date(t.startDate).getTime()),this.datos=e,this.datos.forEach(t=>{this.fs.setInfoEvent(t,lo.tipoImagen.home)}))})}irEvento(t){this.router.navigate(["/event",t.id])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Vs),i.Y36(Fo),i.Y36(Mo))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-event-sugerido"]],inputs:{idEvento:"idEvento",seccion:"seccion"},decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"event-suggest","container"],[3,"class",4,"ngFor","ngForOf"],[3,"routerLink","click"],[1,"img-height",3,"src"],[1,"date-suggest","small"]],template:function(t,e){1&t&&i.YNc(0,jg,4,1,"div",0),2&t&&i.Q6J("ngIf",null!=e.datos&&e.datos.length>0)},directives:[ft,ht,Bs],pipes:[It,Ot],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.item-sugerido[_ngcontent-%COMP%]:hover   p[_ngcontent-%COMP%]{color:#fff!important}.date-suggest[_ngcontent-%COMP%]{color:#797979}.img-height[_ngcontent-%COMP%]{border-radius:50%;width:80%;margin:10%}@media (min-width: 1200px) and (max-width: 1400px){.img-height[_ngcontent-%COMP%]{min-height:200px;max-height:50%}}"]}),t})();var zg=n(377);
1class Hg{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Gg(t,this.resultSelector))}}class Gg extends Ae.L{constructor(t,e,n=Object.create(null)){super(t),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(t){const e=this.iterators;(0,yn.k)(t)?e.push(new Qg(t)):e.push("function"==typeof t[zg.hZ]?new Yg(t[zg.hZ]()):new $g(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let n=0;n<e;n++){let e=t[n];e.stillUnsubscribed?this.destination.add(e.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const t=this.iterators,e=t.length,n=this.destination;for(let s=0;s<e;s++){let e=t[s];if("function"==typeof e.hasValue&&!e.hasValue())return}let i=!1;const r=[];for(let s=0;s<e;s++){let e=t[s],o=e.next();if(e.hasCompleted()&&(i=!0),o.done)return void n.complete();r.push(o.value)}this.resultSelector?this._tryresultSelector(r):n.next(r),i&&n.complete()}_tryresultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class Yg{constructor(t){this.iterator=t,this.nextResult=t.next()}hasValue(){return!0}next(){const t=this.nextResult;return this.nextResult=this.iterator.next(),t}hasCompleted(){const t=this.nextResult;return Boolean(t&&t.done)}}class Qg{constructor(t){this.array=t,this.index=0,this.length=0,this.length=t.length}[zg.hZ](){return this}next(t){const e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class $g extends Pn.Ds{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[zg.hZ](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return(0,Pn.ft)(this.observable,new Pn.IY(this))}}var Jg=n(3098);function Wg(t,e=Ec.P){const n=function(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-e.now():Math.abs(t);return t=>t.lift(new Kg(n,e))}class Kg{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Xg(t,this.delay,this.scheduler))}}class Xg extends Ae.L{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,r=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Xg.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new tm(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Jg.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Jg.P.createComplete()),this.unsubscribe()}}class tm{constructor(t,e){this.time=t,this.notification=e}}const em=["*"],nm=["iframe"];function im(t,e){if(1&t&&i._UZ(0,"div",4),2&t){const t=i.oxw();i.Udp("background-image",t.imageUrl),i.Q6J("@fadeIn",void 0)}}function rm(t,e){if(1&t&&i._UZ(0,"div",8),2&t){const t=i.oxw(2);i.Q6J("innerHTML",t.errorTemplate,i.oJD)}}function sm(t,e){1&t&&(i.ynx(0),i.TgZ(1,"h4"),i._uU(2,"\u26a0"),i.qZA(),i.BQk())}function om(t,e){1&t&&(i.TgZ(0,"h2"),i._uU(1,"\u26a0"),i.qZA(),i.TgZ(2,"p"),i._uU(3,"Unable to load the image!"),i.qZA())}function am(t,e){if(1&t&&(i.YNc(0,sm,3,0,"ng-container",9),i.YNc(1,om,4,0,"ng-template",null,10,i.W1O)),2&t){const t=i.MAs(2),e=i.oxw(2);i.Q6J("ngIf",e.isThumbnail)("ngIfElse",t)}}function cm(t,e){if(1&t&&(i.TgZ(0,"div",5),i.YNc(1,rm,1,1,"div",6),i.YNc(2,am,3,2,"ng-template",null,7,i.W1O),i.qZA()),2&t){const t=i.MAs(3),e=i.oxw();i.xp6(1),i.Q6J("ngIf",e.errorTemplate)("ngIfElse",t)}}function um(t,e){if(1&t&&i._UZ(0,"div",13),2&t){const t=i.oxw(2);i.Q6J("innerHTML",t.loaderTemplate,i.oJD)}}function lm(t,e){1&t&&i._UZ(0,"div",16)}function hm(t,e){if(1&t&&i._UZ(0,"radial-progress",17),2&t){const t=i.oxw(3);i.Q6J("value",t.progress)("mode",t.mode)}}function dm(t,e){if(1&t&&(i.YNc(0,lm,1,0,"div",14),i.YNc(1,hm,1,2,"ng-template",null,15,i.W1O)),2&t){const t=i.MAs(2),e=i.oxw(2);i.Q6J("ngIf",e.isThumbnail)("ngIfElse",t)}}function fm(t,e){if(1&t&&(i.ynx(0),i.YNc(1,um,1,1,"div",11),i.YNc(2,dm,3,2,"ng-template",null,12,i.W1O),i.BQk()),2&t){const t=i.MAs(3),e=i.oxw();i.xp6(1),i.Q6J("ngIf",e.loaderTemplate)("ngIfElse",t)}}const pm=["video"];function gm(t,e){if(1&t&&i._UZ(0,"source",3),2&t){const t=e.$implicit;i.s9C("src",null==t?null:t.url,i.LSH),i.s9C("type",null==t?null:t.type)}}function mm(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"i",2),i.NdJ("tapClick",function(){return i.CHM(t),i.oxw().action.emit("prev")}),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("innerHtml",t.navIcon,i.oJD)}}function vm(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"i",3),i.NdJ("tapClick",function(){return i.CHM(t),i.oxw().action.emit("next")}),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("innerHtml",t.navIcon,i.oJD)}}function ym(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"gallery-thumbs",5),i.NdJ("action",function(e){return i.CHM(t),i.oxw().action.emit(e)})("thumbClick",function(e){return i.CHM(t),i.oxw().thumbClick.emit(e)}),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("state",t.state)("config",t.config)}}function bm(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"gallery-nav",6),i.NdJ("action",function(e){return i.CHM(t),i.oxw().action.emit(e)}),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("state",t.state)("config",t.config)}}function _m(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"gallery-dots",6),i.NdJ("action",function(e){return i.CHM(t),i.oxw().action.emit(e)}),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("state",t.state)("config",t.config)}}function wm(t,e){if(1&t&&i._UZ(0,"gallery-counter",7),2&t){const t=i.oxw();i.Q6J("state",t.state)}}function xm(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",1),i.NdJ("tapClick",function(){const e=i.CHM(t).index;return i.oxw().action.emit(e)}),i._UZ(1,"div",2),i.qZA()}if(2&t){const t=e.index,n=i.oxw();i.Udp("width",null==n.config?null:n.config.dotsSize,"px")("height",null==n.config?null:n.config.dotsSize,"px"),i.ekj("g-dot-active",t===n.state.currIndex)}}function Sm(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"gallery-thumb",4),i.NdJ("tapClick",function(){const e=i.CHM(t).index;return i.oxw(2).thumbClick.emit(e)})("error",function(e){const n=i.CHM(t).index;return i.oxw(2).error.emit({itemIndex:n,error:e})}),i.qZA()}if(2&t){const t=e.$implicit,n=e.index,r=i.oxw(2);i.Q6J("type",t.type)("config",r.config)("data",t.data)("currIndex",r.state.currIndex)("index",n)("tapClickDisabled",r.config.disableThumb)}}function Tm(t,e){if(1&t&&(i.TgZ(0,"div",1),i.TgZ(1,"div",2),i.YNc(2,Sm,1,6,"gallery-thumb",3),i.qZA(),i.qZA()),2&t){const t=e.$implicit,n=i.oxw();i.xp6(1),i.ekj("g-no-transition",t.active),i.Q6J("ngStyle",t.style),i.xp6(1),i.Q6J("ngForOf",n.state.items)}}function Cm(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"gallery-item",4),i.NdJ("tapClick",function(){const e=i.CHM(t).index;return i.oxw(2).itemClick.emit(e)})("error",function(e){const n=i.CHM(t).index;return i.oxw(2).error.emit({itemIndex:n,error:e})}),i.qZA()}if(2&t){const t=e.$implicit,n=e.index,r=i.oxw(2);i.Q6J("type",t.type)("config",r.config)("data",t.data)("currIndex",r.state.currIndex)("index",n)}}function Em(t,e){if(1&t&&(i.TgZ(0,"div",1),i.TgZ(1,"div",2),i.YNc(2,Cm,1,5,"gallery-item",3),i.qZA(),i.qZA()),2&t){const t=e.$implicit,n=i.oxw();i.Q6J("ngStyle",n.zoom),i.xp6(1),i.ekj("g-no-transition",t.active),i.Q6J("ngStyle",t.style),i.xp6(1),i.Q6J("ngForOf",n.state.items)}}function Am(t,e){1&t&&i.GkF(0)}const Im=function(t,e,n,i){return{index:t,currIndex:e,type:n,data:i}};function km(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"gallery-image",7),i.NdJ("error",function(e){return i.CHM(t),i.oxw(2).error.emit(e)}),i.qZA(),i.TgZ(2,"div",8),i.YNc(3,Am,1,0,"ng-container",9),i.qZA(),i.BQk()}if(2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("src",t.data.src)("mode",t.config.loadingMode)("loadingIcon",t.config.loadingIcon)("loadingError",t.config.loadingError),i.xp6(2),i.Q6J("ngTemplateOutlet",t.config.itemTemplate)("ngTemplateOutletContext",i.l5B(6,Im,t.index,t.currIndex,t.type,t.data))}}
1function Om(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"gallery-video",10),i.NdJ("error",function(e){return i.CHM(t),i.oxw(2).error.emit(e)}),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("src",t.data.src)("poster",t.data.poster)("pause",t.currIndex!==t.index)}}function Dm(t,e){if(1&t&&i._UZ(0,"gallery-iframe",11),2&t){const t=i.oxw(2);i.Q6J("src",t.data.src)("pause",t.currIndex!==t.index)}}function Nm(t,e){if(1&t&&i._UZ(0,"gallery-iframe",12),2&t){const t=i.oxw(2);i.Q6J("src",t.data.src)}}function Pm(t,e){1&t&&i.GkF(0)}function Rm(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"div",8),i.YNc(2,Pm,1,0,"ng-container",9),i.qZA(),i.BQk()),2&t){const t=i.oxw(2);i.xp6(2),i.Q6J("ngTemplateOutlet",t.config.itemTemplate)("ngTemplateOutletContext",i.l5B(2,Im,t.index,t.currIndex,t.type,t.data))}}function Lm(t,e){if(1&t&&(i.ynx(0,1),i.YNc(1,km,4,11,"ng-container",2),i.YNc(2,Om,1,3,"gallery-video",3),i.YNc(3,Dm,1,2,"gallery-iframe",4),i.YNc(4,Nm,1,1,"gallery-iframe",5),i.YNc(5,Rm,3,7,"ng-container",6),i.BQk()),2&t){const t=i.oxw();i.Q6J("ngSwitch",t.type),i.xp6(1),i.Q6J("ngSwitchCase",t.Types.Image),i.xp6(1),i.Q6J("ngSwitchCase",t.Types.Video),i.xp6(1),i.Q6J("ngSwitchCase",t.Types.Youtube),i.xp6(1),i.Q6J("ngSwitchCase",t.Types.Iframe)}}function Mm(t,e){1&t&&i.GkF(0)}const Fm=function(t,e,n){return{index:t,type:e,data:n}};function Zm(t,e){if(1&t&&(i.TgZ(0,"div",2),i.YNc(1,Mm,1,0,"ng-container",3),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",t.config.thumbTemplate)("ngTemplateOutletContext",i.kEZ(2,Fm,t.index,t.type,t.data))}}const qm={Image:"image",Video:"video",Youtube:"youtube",Iframe:"iframe"},Um={action:"initialized",isPlaying:!1,hasNext:!1,hasPrev:!1,currIndex:0,items:[]},Vm={nav:!0,loop:!0,zoomOut:0,dots:!1,thumb:!0,dotsSize:30,counter:!0,gestures:!0,autoPlay:!1,thumbWidth:120,thumbHeight:90,panSensitivity:25,disableThumb:!1,playerInterval:3e3,imageSize:"contain",thumbMode:"strict",dotsPosition:"bottom",counterPosition:"top",thumbPosition:"bottom",loadingMode:"determinate",loadingStrategy:"default",slidingDirection:"horizontal",navIcon:'<?xml version="1.0" encoding="UTF-8"?><svg width="512px" height="512px" enable-background="new 0 0 240.823 240.823" version="1.1" viewBox="0 0 240.823 240.823" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m183.19 111.82l-108.3-108.26c-4.752-4.74-12.451-4.74-17.215 0-4.752 4.74-4.752 12.439 0 17.179l99.707 99.671-99.695 99.671c-4.752 4.74-4.752 12.439 0 17.191 4.752 4.74 12.463 4.74 17.215 0l108.3-108.26c4.68-4.691 4.68-12.511-0.012-17.19z" fill="#fff"/></svg>'};class jm{constructor(t){this.data=t,this.type=qm.Image}}class Bm{constructor(t){this.data=t,this.type=qm.Video}}class zm{constructor(t){this.data=t,this.type=qm.Iframe}}class Hm{constructor(t){this.data={src:`//youtube.com/embed/${t.src}?wmode=transparent`,thumb:t.thumb?t.thumb:`//img.youtube.com/vi/${t.src}/default.jpg`},this.type=qm.Youtube}}const Gm=t=>Ie(e=>t.indexOf(e.action)>-1);class Ym{constructor(t,e){this.deleteInstance=e,this.itemClick=new pn.xQ,this.thumbClick=new pn.xQ,this.error=new pn.xQ,this._state=new mn(Um),this._config=new mn(t),this.state=this._state.asObservable(),this.config=this._config.asObservable()}get initialized(){return this.state.pipe(Gm(["initialized"]))}get itemsChanged(){return this.state.pipe(Gm(["itemsChanged"]))}get indexChanged(){return this.state.pipe(Gm(["indexChanged"]))}get playingChanged(){return this.state.pipe(Gm(["play","stop"]))}get playerActions(){return this.state.pipe(Gm(["play","stop","indexChanged"]))}activatePlayer(){return this.playerActions.pipe(Rn(t=>t.isPlaying?(0,Se.of)({}).pipe(Wg(this._config.value.playerInterval),(0,oi.b)(()=>this.next())):On.E))}setState(t){this._state.next(Object.assign({},this._state.value,t))}setConfig(t){this._config.next(Object.assign({},this._config.value,t))}add(t,e){const n=[...this._state.value.items,t];this.setState({action:"itemsChanged",items:n,hasNext:n.length>1,currIndex:e?n.length-1:this._state.value.currIndex})}addImage(t,e){this.add(new jm(t),e)}addVideo(t,e){this.add(new Bm(t),e)}addIframe(t,e){this.add(new zm(t),e)}addYoutube(t,e){this.add(new Hm(t),e)}remove(t){const e=[...this._state.value.items.slice(0,t),...this._state.value.items.slice(t+1,this._state.value.items.length)];this.setState({action:"itemsChanged",items:e,hasNext:e.length>1,hasPrev:t>0})}load(t){t&&this.setState({action:"itemsChanged",items:t,hasNext:t.length>1,hasPrev:!1})}set(t){t!==this._state.value.currIndex&&this.setState({action:"indexChanged",currIndex:t,hasNext:t<this._state.value.items.length-1,hasPrev:t>0})}next(){this._state.value.hasNext?this.set(this._state.value.currIndex+1):this._config.value.loop&&this.set(0)}prev(){this._state.value.hasPrev?this.set(this._state.value.currIndex-1):this._config.value.loop&&this.set(this._state.value.items.length-1)}play(t){t&&this.setConfig({playerInterval:t}),this.setState({action:"play",isPlaying:!0})}stop(){this.setState({action:"stop",isPlaying:!1})}reset(){this.setState(Um)}destroy(){this._state.complete(),this._config.complete(),this.itemClick.complete(),this.thumbClick.complete(),this.deleteInstance()}}const Qm=new i.OlP("galleryConfig");class $m{constructor(t){this._instances=new Map,this.config=t?Object.assign({},Vm,t):Vm}ref(t="root",e){if(this._instances.has(t)){const n=this._instances.get(t);return e&&n.setConfig(Object.assign({},this.config,e)),n}return this._instances.set(t,new Ym(Object.assign({},this.config,e),this.deleteInstance(t))).get(t)}
1destroyAll(){this._instances.forEach(t=>t.destroy())}resetAll(){this._instances.forEach(t=>t.reset())}deleteInstance(t){return()=>{this._instances.has(t)&&this._instances.delete(t)}}}$m.\u0275fac=function(t){return new(t||$m)(i.LFG(Qm,8))},$m.\u0275prov=i.Yz7({token:$m,factory:$m.\u0275fac,providedIn:"root"}),$m.ngInjectableDef=(0,i.Ez6)({factory:function(){return new $m((0,i.f3M)(Qm,8))},token:$m,providedIn:"root"});let Jm=(()=>{class t{constructor(t){this._gallery=t,this.nav=this._gallery.config.nav,this.dots=this._gallery.config.dots,this.loop=this._gallery.config.loop,this.thumb=this._gallery.config.thumb,this.zoomOut=this._gallery.config.zoomOut,this.counter=this._gallery.config.counter,this.dotsSize=this._gallery.config.dotsSize,this.autoPlay=this._gallery.config.autoPlay,this.gestures=this._gallery.config.gestures,this.thumbWidth=this._gallery.config.thumbWidth,this.thumbHeight=this._gallery.config.thumbHeight,this.disableThumb=this._gallery.config.disableThumb,this.panSensitivity=this._gallery.config.panSensitivity,this.playerInterval=this._gallery.config.playerInterval,this.itemTemplate=this._gallery.config.itemTemplate,this.thumbTemplate=this._gallery.config.thumbTemplate,this.thumbMode=this._gallery.config.thumbMode,this.imageSize=this._gallery.config.imageSize,this.dotsPosition=this._gallery.config.dotsPosition,this.counterPosition=this._gallery.config.counterPosition,this.slidingDirection=this._gallery.config.slidingDirection,this.loadingMode=this._gallery.config.loadingMode,this.loadingStrategy=this._gallery.config.loadingStrategy,this.thumbPosition=this._gallery.config.thumbPosition,this.destroyRef=!0,this.skipInitConfig=!1,this.itemClick=new i.vpe,this.thumbClick=new i.vpe,this.playingChange=new i.vpe,this.indexChange=new i.vpe,this.itemsChange=new i.vpe,this.error=new i.vpe,this._itemClick$=ci.w.EMPTY,this._thumbClick$=ci.w.EMPTY,this._itemChange$=ci.w.EMPTY,this._indexChange$=ci.w.EMPTY,this._playingChange$=ci.w.EMPTY,this._playerListener$=ci.w.EMPTY}getConfig(){return{nav:this.nav,dots:this.dots,loop:this.loop,thumb:this.thumb,zoomOut:this.zoomOut,counter:this.counter,autoPlay:this.autoPlay,gestures:this.gestures,dotsSize:this.dotsSize,imageSize:this.imageSize,thumbMode:this.thumbMode,thumbWidth:this.thumbWidth,thumbHeight:this.thumbHe
1ight,loadingMode:this.loadingMode,disableThumb:this.disableThumb,dotsPosition:this.dotsPosition,itemTemplate:this.itemTemplate,thumbTemplate:this.thumbTemplate,thumbPosition:this.thumbPosition,panSensitivity:this.panSensitivity,playerInterval:this.playerInterval,counterPosition:this.counterPosition,loadingStrategy:this.loadingStrategy,slidingDirection:this.slidingDirection}}onAction(t){switch(t){case"next":this.galleryRef.next();break;case"prev":this.galleryRef.prev();break;default:this.galleryRef.set(t)}}ngOnChanges(t){this.galleryRef&&(this.galleryRef.setConfig(this.getConfig()),t.items&&t.items.currentValue!==t.items.previousValue&&this.load(this.items))}ngOnInit(){this.galleryRef=this.skipInitConfig?this._gallery.ref(this.id):this._gallery.ref(this.id,this.getConfig()),this.load(this.items),this._playerListener$=this.galleryRef.activatePlayer().subscribe(),this.indexChange.observers.length&&(this._indexChange$=this.galleryRef.indexChanged.subscribe(t=>this.indexChange.emit(t))),this.itemsChange.observers.length&&(this._itemChange$=this.galleryRef.itemsChanged.subscribe(t=>this.itemsChange.emit(t))),this.playingChange.observers.length&&(this._playingChange$=this.galleryRef.playingChanged.subscribe(t=>this.playingChange.emit(t))),this.autoPlay&&this.play()}ngOnDestroy(){this._itemClick$.unsubscribe(),this._thumbClick$.unsubscribe(),this._itemChange$.unsubscribe(),this._indexChange$.unsubscribe(),this._playingChange$.unsubscribe(),this._playerListener$.unsubscribe(),this.destroyRef&&this.galleryRef.destroy()}onItemClick(t){this.itemClick.emit(t),this.galleryRef.itemClick.next(t)}onThumbClick(t){this.galleryRef.set(t),this.thumbClick.emit(t),this.galleryRef.thumbClick.next(t)}onError(t){this.error.emit(t),this.galleryRef.error.next(t)}load(t){this.galleryRef.load(t)}add(t,e){this.galleryRef.add(t,e)}addImage(t,e){this.add(new jm(t),e)}addVideo(t,e){this.add(new Bm(t),e)}addIframe(t,e){this.add(new zm(t),e)}addYoutube(t,e){this.add(new Hm(t),e)}remove(t){this.galleryRef.remove(t)}next(){this.galleryRef.next()}prev(){this.galleryRef.prev()}set(t){this.galleryRef.set(t)}reset(){this.galleryRef.reset()}play(t){this.galleryRef.play(t)}stop(){this.galleryRef.stop()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36($m))},t.\u0275cmp=i.Xpm({type:t,selectors:[["gallery"]],inputs:{nav:"nav",dots:"dots",loop:"loop",thumb:"thumb",zoomOut:"zoomOut",counter:"counter",dotsSize:"dotsSize",autoPlay:"autoPlay",gestures:"gestures",thumbWidth:"thumbWidth",thumbHeight:"thumbHe
1ight",disableThumb:"disableThumb",panSensitivity:"panSensitivity",playerInterval:"playerInterval",itemTemplate:"itemTemplate",thumbTemplate:"thumbTemplate",thumbMode:"thumbMode",imageSize:"imageSize",dotsPosition:"dotsPosition",counterPosition:"counterPosition",slidingDirection:"slidingDirection",loadingMode:"loadingMode",loadingStrategy:"loadingStrategy",thumbPosition:"thumbPosition",destroyRef:"destroyRef",skipInitConfig:"skipInitConfig",id:"id",items:"items"},outputs:{itemClick:"itemClick",thumbClick:"thumbClick",playingChange:"playingChange",indexChange:"indexChange",itemsChange:"itemsChange",error:"error"},features:[i.TTD],ngContentSelectors:em,decls:4,vars:6,consts:[[3,"state","config","action","itemClick","thumbClick","error"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"gallery-core",0),i.NdJ("action",function(t){return e.onAction(t)})("itemClick",function(t){return e.onItemClick(t)})("thumbClick",function(t){return e.onThumbClick(t)})("error",function(t){return e.onError(t)}),i.ALo(1,"async"),i.ALo(2,"async"),i.qZA(),i.Hsn(3)),2&t&&i.Q6J("state",i.lcZ(1,2,e.galleryRef.state))("config",i.lcZ(2,4,e.galleryRef.config))},directives:function(){return[ev]},pipes:function(){return[At]},styles:['gallery-core[dotsPosition=top] gallery-dots{top:0}  gallery-core[dotsPosition=bottom] gallery-dots{bottom:0}  gallery-dots{margin:7px;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}  .g-dot{cursor:pointer;z-index:20}  .g-dot:hover .g-dot-inner{opacity:1}  .g-dot-active .g-dot-inner{opacity:1;-webkit-transform:scale(1.5)!important;transform:scale(1.5)!important}  .g-dot-inner{background-color:#fff;opacity:.6;width:30%;height:30%;border-radius:50%;box-shadow:0 0 1px #000;transition:.2s}  .g-dot,   .g-dot-inner,   gallery-dots{display:flex;justify-content:center;align-items:center}  .g-nav-next,   .g-nav-prev{position:absolute;top:50%;width:30px;height:40px;cursor:pointer;z-index:999}  .g-nav-next{right:.5em;-webkit-transform:translateY(-50%) perspective(1px);transform:translateY(-50%) perspective(1px)}  .g-nav-prev{left:.5em;-webkit-transform:translateY(-50%) perspective(1px) scale(-1,-1);transform:translateY(-50%) perspective(1px) scale(-1,-1)}@media only screen and (max-width:480px){  .g-nav-next{right:.2em}  .g-nav-prev{left:.2em}}  .g-items-container{height:100%}  .g-slider{position:absolute;transition:transform .4s cubic-bezier(.5,0,.5,1);transition:transform .4s cubic-bezier(.5,0,.5,1),-webkit-transform .4s cubic-bezier(.5,0,.5,1)}  gallery-core[slidingDirection=horizontal] .g-slider{flex-direction:row}  gallery-core[slidingDirection=vertical] .g-slider{flex-direction:column}  gallery-thumbs{display:block;z-index:1;overflow:unset}  .g-thumbs-container{position:relative;z-index:206;width:100%;height:100%;left:0;top:0;display:flex;overflow:unset}  gallery-core[disableThumb=true] gallery-thumb{cursor:default}  gallery-core[thumbPosition=bottom] gallery-thumbs .g-slider,   gallery-core[thumbPosition=top] gallery-thumbs .g-slider{flex-direction:row;top:0;left:50%}  gallery-core[thumbPosition=bottom] gallery-thumb,   gallery-core[thumbPosition=top] gallery-thumb{padding:1px 0 1px 1px}  gallery-core[thumbPosition=left] gallery-thumbs .g-slider,   gallery-core[thumbPosition=right] gallery-thumbs .g-slider{flex-direction:column;top:50%;left:0}  gallery-core[thumbPosition=left] gallery-thumb,   gallery-core[thumbPosition=right] gallery-thumb{padding:0 1px 1px}  gallery-core[thumbPosition=top]{flex-direction:column}  gallery-core[thumbPosition=left]{flex-direction:row}  gallery-core[thumbPosition=right]{flex-direction:row-reverse}  gallery-core[thumbPosition=bottom]{flex-direction:column-reverse}  gallery-thumb.g-active-thumb .g-thumb-loading{background-color:#464646}  .g-thumb-loading{position:relative;overflow:hidden;height:100%;background-color:#262626}  .g-thumb-loading::before{content:"";position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;-webkit-animation:.8s linear infinite phAnimation;animation:.8s linear infinite phAnimation;background:linear-gradient(to right,rgba(255,255,255,0) 46%,rgba(255,255,255,.35) 50%,rgba(255,255,255,0) 54%) 50% 50%}@-webkit-keyframes phAnimation{0%{-webkit-transform:translate3d(-30%,0,0);transform:translate3d(-30%,0,0)}100%{-webkit-transform:translate3d(30%,0,0);transform:translate3d(30%,0,0)}}@keyframes phAnimation{0%{-webkit-transform:translate3d(-30%,0,0);transform:translate3d(-30%,0,0)}100%{-webkit-transform:translate3d(30%,0,0);transform:translate3d(30%,0,0)}}  gallery-core[counterPosition=top] .g-counter{top:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}  gallery-core[counterPosition=bottom] .g-counter{bottom:0;border-top-left-radius:4px;border-top-right-radius:4px}  .g-counter{z-index:50;position:absolute;
1left:50%;-webkit-transform:translateX(-50%) perspective(1px);transform:translateX(-50%) perspective(1px);font-size:12px;padding:4px 10px;color:#fff;background-color:rgba(0,0,0,.5)}  gallery[gallerize] gallery-item{cursor:pointer}  gallery-item,   gallery-thumb{position:relative;height:100%;width:100%;display:block;overflow:hidden}  gallery-item h2,   gallery-item h4,   gallery-thumb h2,   gallery-thumb h4{color:coral;margin:0}  gallery-item h2,   gallery-thumb h2{font-size:3.5em;margin-bottom:.3em}  gallery-item h4,   gallery-thumb h4{font-size:1.6em}  gallery-item{z-index:10}  gallery-item iframe,   gallery-item video{position:absolute;width:100%;height:100%}  gallery-thumb{opacity:.5;cursor:pointer;transition:opacity .3s cubic-bezier(.5,0,.5,1)}  gallery-thumb.g-active-thumb{opacity:1}  .g-image-item{background-position:center center;background-repeat:no-repeat;background-size:cover;width:100%;height:100%}  .g-image-error-message,   .g-loading,   .g-template{position:absolute;z-index:10;left:0;top:0;right:0;bottom:0;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column}  gallery-core[imageSize=contain] gallery-slider .g-image-item{background-size:contain}  gallery-image{display:flex;justify-content:center;align-items:center;height:100%}  gallery{position:relative;z-index:1;overflow:hidden;display:block;height:500px;background-color:#000}  gallery *{box-sizing:border-box}  gallery,   gallery-core{position:relative;overflow:hidden}  .g-box,   .g-slider,   gallery-core{display:flex;height:100%;width:100%}  gallery[fluid]{-webkit-transform:translateX(-50vw);transform:translateX(-50vw);width:100vw;left:50%}  gallery[fluid][fluid=false]{-webkit-transform:none;transform:none;width:initial;left:initial}  .g-no-transition{transition:unset!important}  .g-box,   gallery-slider{overflow:hidden;position:relative;display:flex;flex-direction:column;flex:1;order:1;height:100%}  .g-btn-close svg,   gallery-nav svg{width:100%;height:100%;-webkit-filter:drop-shadow(0 0 1px #000);filter:drop-shadow(0 0 1px #000);transition:opacity .2s linear;opacity:.6}  .g-btn-close svg:hover,   gallery-nav svg:hover{opacity:1}@-webkit-keyframes stroke-rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}25%{-webkit-transform:rotate(1170deg);transform:rotate(1170deg)}50%{-webkit-transform:rotate(2340deg);transform:rotate(2340deg)}75%{-webkit-transform:rotate(3510deg);transform:rotate(3510deg)}100%{-webkit-transform:rotate(4680deg);transform:rotate(4680deg)}}@keyframes stroke-rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}25%{-webkit-transform:rotate(1170deg);transform:rotate(1170deg)}50%{-webkit-transform:rotate(2340deg);transform:rotate(2340deg)}75%{-webkit-transform:rotate(3510deg);transform:rotate(3510deg)}100%{-webkit-transform:rotate(4680deg);transform:rotate(4680deg)}}  radial-progress{display:block;position:relative}  radial-progress svg{position:absolute;-webkit-transform:rotate(-90deg);transform:rotate(-90deg);top:0;left:0;-webkit-transform-origin:center;transform-origin:center;overflow:visible}  radial-progress circle{-webkit-transform-origin:center;transform-origin:center;stroke:#fff}  radial-progress .radial-progress-meter,   radial-progress .radial-progress-value{fill:none}  radial-progress .radial-progress-meter{opacity:.3}  radial-progress .radial-progress-value{transition:.2s linear;stroke-linecap:round}  radial-progress[mode=indeterminate] svg{-webkit-animation:7s cubic-bezier(.87,.03,.33,1) infinite stroke-rotate;animation:7s cubic-bezier(.87,.03,.33,1) infinite stroke-rotate}'],changeDetection:0}),t})(),Wm=(()=>{class t{constructor(t){this._sanitizer=t}set pauseVideo(t){const e=this.iframe.nativeElement;t&&(e.src=e.src)}ngOnInit(){this.iframeSrc=this._sanitizer.bypassSecurityTrustResourceUrl(this.src)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(fe))},t.\u0275cmp=i.Xpm({type:t,selectors:[["gallery-iframe"]],viewQuery:function(t,e){if(1&t&&i.Gf(nm,5),2&t){let t;i.iGM(t=i.CRH())&&(e.iframe=t.first)}},inputs:{pauseVideo:["pause","pauseVideo"],src:"src"},decls:2,vars:1,consts:[["frameborder","0","allowfullscreen","",3,"src"],["iframe",""]],template:function(t,e){1&t&&i._UZ(0,"iframe",0,1),2&t&&i.Q6J("src",e.iframeSrc,i.uOi)},encapsulation:2,changeDetection:0}),t})(),Km=(()=>{class t{constructor(t){this._sanitizer=t,this._state=new mn("loading"),this.state=this._state.asObservable(),this.progress=0,this.mode="determinate",this.error=new i.vpe}get imageLoadSuccess(){return!!this.imageUrl}get imageLoadFailed(){return!!this.loadError}ngOnInit(){this.loadingIcon&&(this.loaderTemplate=this._sanitizer.bypassSecurityTrustHtml(this.loadingIcon)),this.loadingError&&(this.errorTemplate=this._sanitizer.bypassSecurityTrustHtml(this.loadingError))}ngOnDestroy(){this._state.complete()}onProgress({loaded:t,total:e}){this.progress=100*t/e}onLoaded(t){this.imageUrl=this._sanitizer.bypassSecurityTrustStyle(`url(${t})`),this._state.next("success")}onError(t){this.loadError=t,this._state.next("failed"),this.error.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(fe))},t.\u0275cmp=i.Xpm({type:t,selectors:[["gallery-image"]],hostVars:4,hostBindings:function(t,e){2&t&&i.ekj("g-image-loaded",e.imageLoadSuccess)("g-image-error",e.imageLoadFailed)},inputs:{mode:"mode",isThumbnail:"isThumbnail",src:"src",loadingIcon:"loadingIcon",loadingError:"loadingError"},outputs:{error:"error"},decls:5,vars:8,consts:[[3,"lazyImage","mode","ngSwitch","progress","loaded","error"],["class","g-image-item",3,"backgroundImage",4,"ngSwitchCase"],["class","g-image-error-message",4,"ngSwitchCase"],[4,"ngSwitchCase"],[1,"g-image-item"],[1,"g-image-error-message"],[3,"innerHTML",4,"ngIf","ngIfElse"],["defaultError",""],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["isLarge",""],["class","g-loading",3,"innerHTML",4,"ngIf","ngIfElse"],["defaultLoader",""],[1,"g-loading",3,"innerHTML"],["class","g-thumb-loading",4,"ngIf","ngIfElse"],["progressLoader",""],[1,"g-thumb-loading"],[3,"value","mode"]],template:function(t,e){1&t&&(i.ynx(0,0),i.NdJ("progress",function(t){return e.onProgress(t)})("loaded",function(t){return e.onLoaded(t)})("error",function(t){return e.onError(t)}),i.ALo(1,"async"),i.YNc(2,im,1,3,"div",1),i.YNc(3,cm,4,2,"div",2),i.YNc(4,fm,4,2,"ng-container",3),i.BQk()),2&t&&(i.Q6J("lazyImage",e.src)("mode",e.mode)("ngSwitch",i.lcZ(1,6,e.state)),i.xp6(2),i.Q6J("ngSwitchCase","success"),i.xp6(1),i.Q6J("ngSwitchCase","failed"),i.xp6(1),i.Q6J("ngSwitchCase","loading"))},directives:function(){return[uv,vt,yt,ft,cv]},pipes:function(){return[At]},encapsulation:2,data:{animation:[Zl("fadeIn",[Bl(":enter",[Vl({opacity:0}
1),ql("300ms ease-in",Vl({opacity:1}))])])]},changeDetection:0}),t})(),Xm=(()=>{class t{constructor(){this.error=new i.vpe}set pauseVideo(t){const e=this.video.nativeElement;t&&!e.paused&&e.pause()}ngOnInit(){this.videoSources=this.src instanceof Array?[...this.src]:[{url:this.src}]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["gallery-video"]],viewQuery:function(t,e){if(1&t&&i.Gf(pm,5),2&t){let t;i.iGM(t=i.CRH())&&(e.video=t.first)}},inputs:{pauseVideo:["pause","pauseVideo"],src:"src",poster:"poster"},outputs:{error:"error"},decls:3,vars:2,consts:[["controls","",3,"poster","error"],["video",""],[3,"src","type",4,"ngFor","ngForOf"],[3,"src","type"]],template:function(t,e){1&t&&(i.TgZ(0,"video",0,1),i.NdJ("error",function(t){return e.error.emit(t)}),i.YNc(2,gm,1,2,"source",2),i.qZA()),2&t&&(i.s9C("poster",e.poster,i.LSH),i.xp6(2),i.Q6J("ngForOf",e.videoSources))},directives:[ht],encapsulation:2,changeDetection:0}),t})(),tv=(()=>{class t{constructor(t){this._sanitizer=t,this.action=new i.vpe}ngOnInit(){this.navIcon=this._sanitizer.bypassSecurityTrustHtml(this.config.navIcon)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(fe))},t.\u0275cmp=i.Xpm({type:t,selectors:[["gallery-nav"]],inputs:{state:"state",config:"config"},outputs:{action:"action"},decls:2,vars:2,consts:[["class","g-nav-prev","aria-label","Previous",3,"innerHtml","tapClick",4,"ngIf"],["class","g-nav-next","aria-label","Next",3,"innerHtml","tapClick",4,"ngIf"],["aria-label","Previous",1,"g-nav-prev",3,"innerHtml","tapClick"],["aria-label","Next",1,"g-nav-next",3,"innerHtml","tapClick"]],template:function(t,e){1&t&&(i.YNc(0,mm,1,1,"i",0),i.YNc(1,vm,1,1,"i",1)),2&t&&(i.Q6J("ngIf",e.config.loop||e.state.hasPrev),i.xp6(1),i.Q6J("ngIf",e.config.loop||e.state.hasNext))},directives:function(){return[ft,lv]},encapsulation:2,changeDetection:0}),t})(),ev=(()=>{class t{constructor(){this.action=new i.vpe,this.itemClick=new i.vpe,this.thumbClick=new i.vpe,this.error=new i.vpe}get thumbPosition(){return this.config.thumbPosition}get slidingDirection(){return this.config.slidingDirection}get disableThumb(){return this.config.disableThumb}get imageSize(){return this.config.imageSize}get dotsPosition(){return this.config.dotsPosition}get counterPosition(){return this.config.counterPosition}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["gallery-core"]],hostVars:6,hostBindings:function(t,e){2&t&&i.uIk("thumbPosition",e.thumbPosition)("slidingDirection",e.slidingDirection)("disableThumb",e.disableThumb)("imageSize",e.imageSize)("dotsPosition",e.dotsPosition)("counterPosition",e.counterPosition)},inputs:{state:"state",config:"config"},outputs:{action:"action",itemClick:"itemClick",thumbClick:"thumbClick",error:"error"},decls:6,vars:6,consts:[[3,"state","config","action","thumbClick",4,"ngIf"],[1,"g-box"],[3,"state","config","action","itemClick","error"],[3,"state","config","action",4,"ngIf"],[3,"state",4,"ngIf"],[3,"state","config","action","thumbClick"],[3,"state","config","action"],[3,"state"]],template:function(t,e){1&t&&(i.YNc(0,ym,1,2,"gallery-thumbs",0),i.TgZ(1,"div",1),i.TgZ(2,"gallery-slider",2),i.NdJ("action",function(t){return e.action.emit(t)})("itemClick",function(t){return e.itemClick.emit(t)})("error",function(t){return e.error.emit(t)}),i.YNc(3,bm,1,2,"gallery-nav",3),i.qZA(),i.YNc(4,_m,1,2,"gallery-dots",3),i.YNc(5,wm,1,1,"gallery-counter",4),i.qZA()),2&t&&(i.Q6J("ngIf",e.config.thumb),i.xp6(2),i.Q6J("state",e.state)("config",e.config),i.xp6(1),i.Q6J("ngIf",e.config.nav&&e.state.items.length>1),i.xp6(1),i.Q6J("ngIf",e.config.dots),i.xp6(1),i.Q6J("ngIf",e.config.counter))},directives:function(){return[ft,rv,iv,tv,nv,sv]},encapsulation:2,changeDetection:0}),t})(),nv=(()=>{class t{constructor(){this.action=new i.vpe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["gallery-dots"]],inputs:{state:"state",config:"config"},outputs:{action:"action"},decls:1,vars:1,consts:[["class","g-dot",3,"g-dot-active","width","height","tapClick",4,"ngFor","ngForOf"],[1,"g-dot",3,"tapClick"],[1,"g-dot-inner"]],template:function(t,e){1&t&&i.YNc(0,xm,2,6,"div",0),2&t&&i.Q6J("ngForOf",e.state.items)},directives:function(){return[ht,lv]},encapsulation:2,changeDetection:0}),t})(),iv=(()=>{class t{constructor(t,e){this._el=t,this._zone=e,this._slidingWorker$=new mn({value:0,active:!1}),this._freeModeCurrentOffset=0,this.action=new i.vpe,this.thumbClick=new i.vpe,this.error=new i.vpe,this.sliderState$=this._slidingWorker$.pipe((0,De.U)(t=>({style:this.getSliderStyles(t),active:t.active})))}ngOnChanges(){this.updateSlider({value:0,active:!1}),this._freeModeCurrentOffset=0}ngOnInit(){if(this.config.gestures&&!this.config.disableThumb&&"undefined"!=typeof Hammer){let t;switch(this.config.thumbPosition){case"right":case"left":t=Hammer.DIRECTION_VERTICAL;break;case"top":case"bottom":t=Hammer.DIRECTION_HORIZONTAL}this._hammer=new Hammer(this._el.nativeElement),this._hammer.get("pan").set({direction:t}),this._zone.runOutsideAngular(()=>{switch(this.config.thumbMode){case"strict":this._hammer.on("pan",t=>this.strictMode(t));break;case"free":this._hammer.on("pan",t=>this.freeMode(t))}})}}ngOnDestroy(){this._hammer&&this._hammer.destroy()}strictMode(t){switch(this.config.thumbPosition){case"right":case"left":this.updateSlider({value:t.deltaY,active:!0}),t.isFinal&&(this.updateSlider({value:0,active:!1}),this.verticalPan(t));break;case"top":case"bottom":this.updateSlider({value:t.deltaX,active:!0}),t.isFinal&&(this.updateSlider({value:0,active:!1}),this.horizontalPan(t))}}freeMode(t){switch(this.config.thumbPosition){case"right":case"left":this.updateSlider({value:this._freeModeCurrentOffset+t.deltaY,active:!0}),t.isFinal&&(this.minFreeScrollExceeded(t.deltaY,this.config.thumbWidth,this.config.thumbHeight)?this._freeModeCurrentOffset=-(this.state.items.length-1-this.state.currIndex)*this.config.thumbHeight:this.maxFreeScrollExceeded(t.deltaY,this.config.thumbHeight,this.config.thumbWidth)?this._freeModeCurrentOffset=this.state.currIndex*this.config.thumbHeight:this._freeModeCurrentOffset+=t.deltaY,this.updateSlider({value:this._freeModeCurrentOffset,active:!1}));break;case"top":case"bottom":this.updateSlider({value:this._freeModeCurrentOffset+t.deltaX,active:!0}),t.isFinal&&(this.minFreeScrollExceeded(t.deltaX,this.config.thumbHeight,this.config.thumbWidth)?this._freeModeCurrentOffset=-(this.state.items.length-1-this.state.currIndex)*this.config.thumbWidth:this.maxFreeScrollExceeded(t.deltaX,this.config.thumbWidth,this.config.thumbHeight)?this._freeModeCurrentOffset=this.state.currIndex*this.config.thumbWidth:this._freeModeCurrentOffset+=t.deltaX,this.updateSlider({value:this._freeModeCurrentOffset,active:!1}))}}minFreeScrollExceeded(t,e,n){return-(this._freeModeCurrentOffset+t-e/2)>(this.state.items.length-this.state.currIndex)*n}maxFreeScrollExceeded(t,e,n){return this._freeModeCurrentOffset+t>this.state.currIndex*e+n/2}getSliderStyles(t){let e;switch(this.config.thumbPosition){case"top":case"bottom":return this.width="100%",this.height=this.config.thumbHeight+"px",e=-this.state.currIndex*this.config.thumbWidth-(this.config.thumbWidth/2-t.value),{transform:`translate3d(${e}px, 0, 0)`,width:this.state.items.length*this.config.thumbWidth+"px",height:"100%"};case"left":case"right":return this.width=this.config.thumbWidth+"px",this.height="100%",e=-this.state.currIndex*this.config.thumbHeight-(this.config.thumbHeight/2-t.value),{transform:`translate3d(0, ${e}px, 0)`,width:"100%",height:this.state.items.length*this.config.thumbHeight+"px"}}}verticalPan(t){!(t.direction&Hammer.DIRECTION_UP&&t.offsetDirection&Hammer.DIRECTION_VERTICAL)||(t.velocityY>.3?this.prev():t.velocityY<-.3||t.deltaY/2<=-this.config.thumbHeight*this.state.items.length/this.config.panSensitivity?this.next():t.deltaY/2>=this.config.thumbHeight*this.state.items.length/this.config.panSensitivity?this.prev():this.action.emit(this.state.currIndex))}horizontalPan(t){!(t.direction&Hammer.DIRECTION_HORIZONTAL&&t.offsetDirection&Hammer.DIRECTION_HORIZONTAL)||(t.velocityX>.3?this.prev():t.velocityX<-.3||t.deltaX/2<=-this.config.thumbWidth*this.state.items.length/this.config.panSensitivity?this.next():t.deltaX/2>=this.config.thumbWidth*this.state.items.length/this.config.panSensitivity?this.prev():this.action.emit(this.state.currIndex))}next(){this.action.emit("next")}prev(){this.action.emit("prev")}updateSlider(t){const e=Object.assign({},this._slidingWorker$.value,t);this._slidingWorker$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b))},t.\u0275cmp=i.Xpm({type:t,selectors:[["gallery-thumbs"]],hostVars:4,hostBindings:function(t,e){2&t&&i.Udp("width",e.width)("height",e.height)},inputs:{state:"state",config:"config"},outputs:{action:"action",thumbClick:"thumbClick",error:"error"},features:[i.TTD],decls:2,vars:3,consts:[["class","g-thumbs-container",4,"ngIf"],[1,"g-thumbs-container"],[1,"g-slider",3,"ngStyle"],[3,"type","config","data","currIndex","index","tapClickDisabled","ta
1pClick","error",4,"ngFor","ngForOf"],[3,"type","config","data","currIndex","index","tapClickDisabled","tapClick","error"]],template:function(t,e){1&t&&(i.YNc(0,Tm,3,4,"div",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.sliderState$))},directives:function(){return[ft,_t,ht,av,lv]},pipes:function(){return[At]},encapsulation:2,changeDetection:0}),t})(),rv=(()=>{class t{constructor(t,e,n){this._el=t,this._zone=e,this.platform=n,this._slidingWorker$=new mn({value:0,active:!1}),this.action=new i.vpe,this.itemClick=new i.vpe,this.error=new i.vpe,this.sliderState$=this._slidingWorker$.pipe((0,De.U)(t=>({style:this.getSliderStyles(t),active:t.active})))}get zoom(){return{transform:`perspective(50px) translate3d(0, 0, ${-this.config.zoomOut}px)`}}ngOnChanges(){this.updateSlider({value:0,active:!1})}ngOnInit(){if(this.config.gestures&&"undefined"!=typeof Hammer){const t="horizontal"===this.config.slidingDirection?Hammer.DIRECTION_HORIZONTAL:Hammer.DIRECTION_VERTICAL;this._hammer=new Hammer(this._el.nativeElement),this._hammer.get("pan").set({direction:t}),this._zone.runOutsideAngular(()=>{this._hammer.on("pan",t=>{switch(this.config.slidingDirection){case"horizontal":this.updateSlider({value:t.deltaX,active:!0}),t.isFinal&&(this.updateSlider({value:0,active:!1}),this.horizontalPan(t));break;case"vertical":this.updateSlider({value:t.deltaY,active:!0}),t.isFinal&&(this.updateSlider({value:0,active:!1}),this.verticalPan(t))}})})}Rt(this.platform)&&(this._resizeSub$=xu(window,"resize").pipe(Ac(200),(0,oi.b)(()=>this.updateSlider(this._slidingWorker$.value))).subscribe()),setTimeout(()=>this.updateSlider({value:0,active:!1}))}ngOnDestroy(){this._hammer&&this._hammer.destroy(),this._resizeSub$&&this._resizeSub$.unsubscribe(),this._slidingWorker$.complete()}getSliderStyles(t){switch(this.config.slidingDirection){case"horizontal":return{transform:`translate3d(${-this.state.currIndex*this._el.nativeElement.offsetWidth+t.value}px, 0, 0)`,width:`calc(100% * ${this.state.items.length})`,height:"100%"};case"vertical":return{transform:`translate3d(0, ${-this.state.currIndex*this._el.nativeElement.offsetHeight+t.value}px, 0)`,width:"100%",height:`calc(100% * ${this.state.items.length})`}}}verticalPan(t){!(t.direction&Hammer.DIRECTION_UP&&t.offsetDirection&Hammer.DIRECTION_VERTICAL)||(t.velocityY>.3?this.prev():t.velocityY<-.3||t.deltaY/2<=-this._el.nativeElement.offsetHeight*this.state.items.length/this.config.panSensitivity?this.next():t.deltaY/2>=this._el.nativeElement.offsetHeight*this.state.items.length/this.config.panSensitivity?this.prev():this.action.emit(this.state.currIndex))}horizontalPan(t){!(t.direction&Hammer.DIRECTION_HORIZONTAL&&t.offsetDirection&Hammer.DIRECTION_HORIZONTAL)||(t.velocityX>.3?this.prev():t.velocityX<-.3||t.deltaX/2<=-this._el.nativeElement.offsetWidth*this.state.items.length/this.config.panSensitivity?this.next():t.deltaX/2>=this._el.nativeElement.offsetWidth*this.state.items.length/this.config.panSensitivity?this.prev():this.action.emit(this.state.currIndex))}next(){this.action.emit("next")}prev(){this.action.emit("prev")}updateSlider(t){const e=Object.assign({},this._slidingWorker$.value,t);this._slidingWorker$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.Lbi))},t.\u0275cmp=i.Xpm({type:t,selectors:[["gallery-slider"]],inputs:{state:"state",config:"config"},outputs:{action:"action",itemClick:"itemClick",error:"error"},features:[i.TTD],ngContentSelectors:em,decls:3,vars:3,consts:[["class","g-items-container",3,"ngStyle",4,"ngIf"],[1,"g-items-container",3,"ngStyle"],[1,"g-slider",3,"ngStyle"],[3,"type","config","data","currIndex","index","tapClick","error",4,"ngFor","ngForOf"],[3,"type","config","data","currIndex","index","tapClick","error"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,Em,3,5,"div",0),i.ALo(1,"async"),i.Hsn(2)),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.sliderState$))},directives:function(){return[ft,_t,ht,ov,lv]},pipes:function(){return[At]},encapsulation:2,changeDetection:0}),t})(),sv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["gallery-counter"]],inputs:{state:"state"},decls:2,vars:1,consts:[[1,"g-counter"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i._uU(1),i.qZA()),2&t&&(i.xp6(1),i.Oqu(e.state.currIndex+1+"/"+e.state.items.length))},encapsulation:2,changeDetection:0}),t})(),ov=(()=>{class t{constructor(){this.Types=qm,this.error=new i.vpe}get isActive(){return this.index===this.currIndex}get load(){switch(this.config.loadingStrategy){case"preload":return!0;case"lazy":return this.currIndex===this.index;default:return this.currIndex===this.index||this.currIndex===this.index-1||this.currIndex===this.index+1}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["gallery-item"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("g-active-item",e.isActive)},inputs:{config:"config",index:"index",currIndex:"currIndex",type:"type",data:"data"},outputs:{error:"error"},decls:1,vars:1,consts:[[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"src","poster","pause","error",4,"ngSwitchCase"],[3,"src","pause",4,"ngSwitchCase"],[3,"src",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"src","mode","loadingIcon","loadingError","error"],[1,"g-template","g-item-template"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"src","poster","pause","error"],[3,"src","pause"],[3,"src"]],template:function(t,e){1&t&&i.YNc(0,Lm,6,5,"ng-container",0),2&t&&i.Q6J("ngIf",e.load)},directives:[ft,vt,yt,bt,Km,wt,Xm,Wm],encapsulation:2,changeDetection:0}),t})(),av=(()=>{class t{constructor(){this.error=new i.vpe}get isActive(){return this.index===this.currIndex}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["gallery-thumb"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("g-active-thumb",e.isActive)},inputs:{config:"config",index:"index",currIndex:"currIndex",type:"type",data:"data"},outputs:{error:"error"},decls:2,vars:5,consts:[["mode","indeterminate",3,"src","isThumbnail","loadingIcon","loadingError","error"],["class","g-template g-thumb-template",4,"ngIf"],[1,"g-template","g-thumb-template"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(i.TgZ(0,"gallery-image",0),i.NdJ("error",function(t){return e.error.emit(t)}),i.qZA(),i.YNc(1,Zm,2,6,"div",1)),2&t&&(i.Q6J("src",e.data.thumb)("isThumbnail",!0)("loadingIcon",e.config.thumbLoadingIcon)("loadingError",e.config.thumbLoadingError),i.xp6(1),i.Q6J("ngIf",e.config.thumbTemplate))},directives:[Km,ft,wt],encapsulation:2,changeDetection:0}),t})(),cv=(()=>{class t{constructor(){this.mode="determinate",this.value=0,this.diameter=60,this.strokeWidth=3}get circleRadius(){return(this.diameter-this.strokeWidth)/2}get viewBox(){const t=2*this.circleRadius+this.strokeWidth;return`0 0 ${t} ${t}`}get strokeCircumference(){return 2*Math.PI*this.circleRadius}get strokeDashOffset(){return"determinate"===this.mode?this.strokeCircumference*(100-this.value)/100:"indeterminate"===this.mode?.4*this.strokeCircumference:null}get circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["radial-progress"]],hostVars:5,hostBindings:function(t,e){2&t&&(i.uIk("mode",e.mode),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"))},inputs:{mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},decls:3,vars:15,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",1,"radial-progress"],["cx","50%","cy","50%",1,"radial-progress-meter"],["cx","50%","cy","50%",1,"radial-progress-value"]],template:function(t,e){1&t&&(i.O4$(),i.TgZ(0,"svg",0),i._UZ(1,"circle",1),i._UZ(2,"circle",2),i.qZA()),2&t&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.uIk("viewBox",e.viewBox),i.xp6(1),i.Udp("stroke-width",e.circleStrokeWidth,"%"),i.uIk("r",e.circleRadius),i.xp6(1),i.Udp("stroke-dashoffset",e.strokeDashOffset,"px")("stroke-dasharray",e.strokeCircumference,"px")("stroke-width",e.circleStrokeWidth,"%"),i.uIk("r",e.circleRadius))},encapsulation:2,changeDetection:0}),t})(),uv=(()=>{class t{constructor(t,e){this.http=t,this.document=e,this._imageLoader$
1=new pn.xQ,this._loaderSub$=ci.w.EMPTY,this.progress=new i.vpe,this.loaded=new i.vpe,this.error=new i.vpe,this._loaderSub$=this._imageLoader$.pipe(Rn(t=>"determinate"===this.mode?this.progressiveLoader(t):this.nativeLoader(t))).subscribe()}ngOnChanges(t){t.src&&t.src.previousValue!==t.src.currentValue&&this.loadImage(this.src)}ngOnDestroy(){this._loaderSub$.unsubscribe(),this._imageLoader$.complete()}loadImage(t){this._imageLoader$.next(t)}progressiveLoader(t){const e=new He("GET",t,{reportProgress:!0,responseType:"blob",headers:new Re({CACHE_GALLERY_IMAGE:"true"})});return this.http.request(e).pipe((0,oi.b)(t=>{t.type===Ge.DownloadProgress&&this.progress.emit({loaded:t.loaded,total:t.total}),t.type===Ge.Response&&this.loaded.emit(URL.createObjectURL(t.body))}),Hn(t=>(this.error.emit(t),On.E)))}nativeLoader(t){const e=this.document.createElement("img");return e.src=t,function(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),(0,Sn.n)(t,void 0).lift(new Hg(e))}(xu(e,"load").pipe((0,oi.b)(()=>this.loaded.emit(t))),xu(e,"error").pipe((0,oi.b)(()=>this.error.emit(new Error(`[lazyImage]: The image ${t} did not load`)))))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Ke),i.Y36(o))},t.\u0275dir=i.lG2({type:t,selectors:[["","lazyImage",""]],inputs:{src:["lazyImage","src"],mode:"mode"},outputs:{progress:"progress",loaded:"loaded",error:"error"},features:[i.TTD]}),t})(),lv=(()=>{class t{constructor(t){this._el=t,this.clickListener=ci.w.EMPTY,this.tapClick=new i.vpe}ngOnInit(){this.activateClickEvent()}activateClickEvent(){"undefined"!=typeof Hammer?(this._hammer=new Hammer(this._el.nativeElement),this._hammer.on("tap",()=>{this.tapClickDisabled||this.tapClick.emit(null)})):this.clickListener=xu(this._el.nativeElement,"click").pipe(Ie(()=>!this.tapClickDisabled),(0,oi.b)(()=>this.tapClick.emit(null))).subscribe()}ngOnDestroy(){this._hammer&&this._hammer.destroy(),this.clickListener.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["","tapClick",""]],inputs:{tapClickDisabled:"tapClickDisabled"},outputs:{tapClick:"tapClick"}}),t})();class hv{}let dv=(()=>{class t{constructor(){this.cache=new Map}get(t){const e=this.cache.get(t.urlWithParams);if(e)return e.response}put(t,e){const n=t.urlWithParams,i={url:n,response:e,lastRead:Date.now()};this.cache.set(n,i);const r=Date.now()-3e4;this.cache.forEach(t=>{t.lastRead<r&&this.cache.delete(t.url)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),fv=(()=>{class t{constructor(t){this.cache=t}intercept(t,e){if(t.headers.has("CACHE_GALLERY_IMAGE")&&function(t){return"GET"===t.method}(t)){const n=this.cache.get(t);if(t.headers.get("x-refresh")){const i=pv(t,e,this.cache);return n?i.pipe(Vn(n)):i}return n?(0,Se.of)(n):pv(t,e,this.cache)}return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(hv))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function pv(t,e,n){const i=t.clone({headers:t.headers.delete("CACHE_GALLERY_IMAGE")});return e.handle(i).pipe((0,oi.b)(e=>{e instanceof $e&&n.put(t,e)}))}let gv=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Qm,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:hv,useClass:dv},{provide:tn,useClass:fv,multi:!0}],imports:[[Pt,dn]]}),t})();function mv(t,e){if(1&t&&(i.TgZ(0,"h3"),i._uU(1,"GALER\xcdA DE IM\xc1GENES"),i.qZA()),2&t){const t=i.oxw();i.Gre("",t.getColor()," event-title")}}function vv(t,e){if(1&t&&i._UZ(0,"gallery",3),2&t){const t=i.oxw();i.Q6J("loadingMode",t.indeterminate)("items",t.items)}}let yv=(()=>{class t{constructor(t,e){this.gallery=t,this.fs=e,this.evento=null,this.items=[]}ngOnInit(){this.items=[],this.nameSection=this.evento.sectionId&&null!=this.evento.sectionId.name?this.evento.sectionId.name:null;let t=No.settings.urlImagenes;null!=this.evento.resourcesRefId&&this.evento.resourcesRefId.resources.filter(t=>t.type==lo.tipoImagen.galeria).forEach(e=>{let n=t.concat(e.name);this.items.push(new jm({src:n,thumb:n}))})}getColor(){return null!=this.nameSection?this.fs.getColor(this.nameSection):""}}return t.\u0275fac=function(e){return new(e||t)(i.Y36($m),i.Y36(Fo))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-gallery"]],inputs:{evento:"evento"},decls:4,vars:2,consts:[[1,"container"],[3,"class",4,"ngIf"],["thumbPosition","left",3,"loadingMode","items",4,"ngIf"],["thumbPosition","left",3,"loadingMode","items"]],template:function(t,e){1&t&&(i._UZ(0,"BR"),i.TgZ(1,"div",0),i.YNc(2,mv,2,3,"h3",1),i.YNc(3,vv,1,2,"gallery",2),i.qZA()),2&t&&(i.xp6(2),i.Q6J("ngIf",e.items.length>0),i.xp6(1),i.Q6J("ngIf",e.items.length>0))},directives:[ft,Jm],styles:[""]}),t})();function bv(t,e){if(1!==t.nodeType)return[];const n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function _v(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function wv(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:e,overflowX:n,overflowY:i}=bv(t);return/(auto|scroll|overlay)/.test(String(e)+String(i)+String(n))?t:wv(_v(t))}const xv="undefined"!=typeof window&&"undefined"!=typeof document,Sv=xv&&!(!window.MSInputMethodContext||!document.documentMode),Tv=xv&&!(!window.MSInputMethodContext||!/MSIE 10/.test(navigator.userAgent));function Cv(t){return 11===t?Sv:10===t?Tv:Sv||Tv}function Ev(t){if(!t)return document.documentElement;const e=Cv(10)?document.body:null;let n,i=t.offsetParent||null;for(;i===e&&t.nextElementSibling&&n!==t.nextElementSibling;)n=t.nextElementSibling,i=n.offsetParent;const r=i&&i.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===bv(i,"position")?Ev(i):i:n?n.ownerDocument.documentElement:document.documentElement}function Av(t){return null!==t.parentNode?Av(t.parentNode):t}function Iv(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;const n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,s=document.createRange();s.setStart(i,0),s.setEnd(r,0);const{commonAncestorContainer:o}=s;
1if(t!==o&&e!==o||i.contains(r))return function(t){const{nodeName:e}=t;return"BODY"!==e&&("HTML"===e||Ev(t.firstElementChild)===t)}(o)?o:Ev(o);const a=Av(t);return a.host?Iv(a.host,e):Iv(t,Av(e).host)}function kv(t,e){const n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t[`border${n}Width`])+parseFloat(t[`border${i}Width`])}function Ov(t,e,n,i){return Math.max(e[`offset${t}`],e[`scroll${t}`],n[`client${t}`],n[`offset${t}`],n[`scroll${t}`],Cv(10)?parseInt(n[`offset${t}`],10)+parseInt(i["margin"+("Height"===t?"Top":"Left")],10)+parseInt(i["margin"+("Height"===t?"Bottom":"Right")],10):0)}function Dv(t){const e=t.body,n=t.documentElement,i=Cv(10)&&getComputedStyle(n);return{height:Ov("Height",e,n,i),width:Ov("Width",e,n,i)}}function Nv(t,e="top"){const n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){const e=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||e)[n]}return t[n]}function Pv(t){return Object.assign({},t,{right:t.left+t.width,bottom:t.top+t.height})}function Rv(t){let e={};try{if(Cv(10)){e=t.getBoundingClientRect();const n=Nv(t,"top"),i=Nv(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(o){return}const n={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i="HTML"===t.nodeName?Dv(t.ownerDocument):{};let r=t.offsetWidth-(i.width||t.clientWidth||n.right-n.left),s=t.offsetHeight-(i.height||t.clientHeight||n.bottom-n.top);if(r||s){const e=bv(t);r-=kv(e,"x"),s-=kv(e,"y"),n.width-=r,n.height-=s}return Pv(n)}function Lv(t,e,n=!1){const i=Cv(10),r="HTML"===e.nodeName,s=Rv(t),o=Rv(e),a=wv(t),c=bv(e),u=parseFloat(c.borderTopWidth),l=parseFloat(c.borderLeftWidth);n&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));let h=Pv({top:s.top-o.top-u,left:s.left-o.left-l,width:s.width,height:s.height});if(h.marginTop=0,h.marginLeft=0,!i&&r){const t=parseFloat(c.marginTop),e=parseFloat(c.marginLeft);h.top-=u-t,h.bottom-=u-t,h.left-=l-e,h.right-=l-e,h.marginTop=t,h.marginLeft=e}return(i&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(h=function(t,e,n=!1){const i=Nv(e,"top"),r=Nv(e,"left"),s=n?-1:1;return t.top+=i*s,t.bottom+=i*s,t.left+=r*s,t.right+=r*s,t}(h,e)),h}function Mv(t){const e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===bv(t,"position")||Mv(_v(t)))}function Fv(t){if(!t||!t.parentElement||Cv())return document.documentElement;let e=t.parentElement;for(;e&&"none"===bv(e,"transform");)e=e.parentElement;return e||document.documentElement}function Zv(t,e,n=0,i,r=!1){let s={top:0,left:0};const o=r?Fv(t):Iv(t,e);if("viewport"===i)s=function(t,e=!1){const n=t.ownerDocument.documentElement,i=Lv(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),o=e?0:Nv(n),a=e?0:Nv(n,"left");return Pv({top:o-Number(i.top)+Number(i.marginTop),left:a-Number(i.left)+Number(i.marginLeft),width:r,height:s})}(o,r);else{let n;"scrollParent"===i?(n=wv(_v(e)),"BODY"===n.nodeName&&(n=t.ownerDocument.documentElement)):n="window"===i?t.ownerDocument.documentElement:i;const a=Lv(n,o,r);if("HTML"!==n.nodeName||Mv(o))s=a;else{const{height:e,width:n}=Dv(t.ownerDocument);s.top+=a.top-a.marginTop,s.bottom=Number(e)+Number(a.top),s.left+=a.left-a.marginLeft,s.right=Number(n)+Number(a.left)}}return s.left+=n,s.top+=n,s.right-=n,s.bottom-=n,s}function qv({width:t,height:e}){return t*e}function Uv(t,e,n,i,r=["top","bottom","right","left"],s="viewport",o=0){if(-1===t.indexOf("auto"))return t;const a=Zv(n,i,o,s),c={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},u=Object.keys(c).map(t=>Object.assign({key:t},c[t],{area:qv(c[t])})).sort((t,e)=>e.area-t.area);let l=u.filter(({width:t,height:e})=>t>=n.clientWidth&&e>=n.clientHeight);l=l.filter(t=>r.some(e=>e===t.key));const h=l.length>0?l[0].key:u[0].key,d=t.split(" ")[1];return n.className=n.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${h}`),h+(d?`-${d}`:"")}function Vv(t){const e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:Number(t.offsetWidth)+i,height:Number(t.offsetHeight)+n}}function jv(t,e,n=null){return Lv(e,n?Fv(t):Iv(t,e),n)}function Bv(t,e,n){const i=n.split(" ")[0],r=Vv(t),s={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(i),a=o?"top":"left",c=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return s[a]=e[a]+e[u]/2-r[u]/2,s[c]=i===c?e[c]-r[l]:e[function(t){const e={left:"r
1ight",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,t=>e[t])}(c)],s}function zv(t,e){return t&&t.modifiers&&t.modifiers[e]&&t.modifiers[e].enabled}function Hv(t,e,n){Object.keys(e).forEach(i=>{let r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&function(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}(e[i])&&(r="px"),n?n.setStyle(t,i,`${String(e[i])}${r}`):t.style[i]=String(e[i])+r})}function Gv(t){let e=t.offsets.target;const n=t.instance.target.querySelector(".arrow");if(!n)return t;const i=-1!==["left","right"].indexOf(t.placement.split(" ")[0]),r=i?"height":"width",s=i?"Top":"Left",o=s.toLowerCase(),a=i?"left":"top",c=i?"bottom":"right",u=Vv(n)[r],l=t.placement.split(" ")[1];t.offsets.host[c]-u<e[o]&&(e[o]-=e[o]-(t.offsets.host[c]-u)),Number(t.offsets.host[o])+Number(u)>e[c]&&(e[o]+=Number(t.offsets.host[o])+Number(u)-Number(e[c])),e=Pv(e);const h=bv(t.instance.target),d=parseFloat(h[`margin${s}`]),f=parseFloat(h[`border${s}Width`]);let p;if(l){const e=parseFloat(h.borderRadius),n=Number(d+f+e);p=o===l?Number(t.offsets.host[o])+n:Number(t.offsets.host[o])+Number(t.offsets.host[r]-n)}else p=Number(t.offsets.host[o])+Number(t.offsets.host[r]/2-u/2);let g=p-e[o]-d-f;return g=Math.max(Math.min(e[r]-u,g),0),t.offsets.arrow={[o]:Math.round(g),[a]:""},t.instance.arrow=n,t}function Yv(t){if(t.offsets.target=Pv(t.offsets.target),!zv(t.options,"flip"))return t.offsets.target=Object.assign({},t.offsets.target,Bv(t.instance.target,t.offsets.host,t.placement)),t;const e=Zv(t.instance.target,t.instance.host,0,"viewport",!1);let n=t.placement.split(" ")[0],i=t.placement.split(" ")[1]||"";const r=Uv("auto",t.offsets.host,t.instance.target,t.instance.host,t.options.allowedPositions),s=[n,r];return s.forEach((r,o)=>{if(n!==r||s.length===o+1)return t;n=t.placement.split(" ")[0];const a="left"===n&&Math.floor(t.offsets.target.right)>Math.floor(t.offsets.host.left)||"right"===n&&Math.floor(t.offsets.target.left)<Math.floor(t.offsets.host.right)||"top"===n&&Math.floor(t.offsets.target.bottom)>Math.floor(t.offsets.host.top)||"bottom"===n&&Math.floor(t.offsets.target.top)<Math.floor(t.offsets.host.bottom),c=Math.floor(t.offsets.target.left)<Math.floor(e.left),u=Math.floor(t.offsets.target.right)>Math.floor(e.right),l=Math.floor(t.offsets.target.top)<Math.floor(e.top),h=Math.floor(t.offsets.target.bottom)>Math.floor(e.bottom),d="left"===n&&c||"right"===n&&u||"top"===n&&l||"bottom"===n&&h,f=-1!==["top","bottom"].indexOf(n),p=f&&"left"===i&&c||f&&"right"===i&&u||!f&&"left"===i&&l||!f&&"right"===i&&h;(a||d||p)&&((a||d)&&(n=s[o+1]),p&&(i=function(t){return"right"===t?"left":"left"===t?"right":t}(i)),t.placement=n+(i?` ${i}`:""),t.offsets.target=Object.assign({},t.offsets.target,Bv(t.instance.target,t.offsets.host,t.placement)))}),t}function Qv(t){if(!zv(t.options,"preventOverflow"))return t;const e="transform",n=t.instance.target.style,{top:i,left:r,[e]:s}=n;n.top="",n.left="",n[e]="";const o=Zv(t.instance.target,t.instance.host,0,"scrollParent",!1);n.top=i,n.left=r,n[e]=s;const a={primary(e){let n=t.offsets.target[e];return t.offsets.target[e]<o[e]&&(n=Math.max(t.offsets.target[e],o[e])),{[e]:n}},secondary(e){const n="right"===e?"left":"top";let i=t.offsets.target[n];return t.offsets.target[e]>o[e]&&(i=Math.min(t.offsets.target[n],o[e]-("right"===e?t.offsets.target.width:t.offsets.target.height))),{[n]:i}}};let c;return["left","right","top","bottom"].forEach(e=>{c=-1!==["left","top"].indexOf(e)?"primary":"secondary",t.offsets.target=Object.assign({},t.offsets.target,a[c](e))}),t}function $v(t){const e=t.placement,n=e.split(" ")[0],i=e.split(" ")[1];if(i){const{host:e,target:r}=t.offsets,s=-1!==["bottom","top"].indexOf(n),o=s?"left":"top",a=s?"width":"height",c={start:{[o]:e[o]},end:{[o]:e[o]+e[a]-r[a]}};t.offsets.target=Object.assign({},r,{[o]:o===i?c.start[o]:c.end[o]})}return t}const Jv=new class{position(t,e,n=!0){return this.offset(t,e,!1)}offset(t,e,n=!0){return jv(e,t)}positionElements(t,e,n,i,r){return[Yv,$v,Qv,Gv].reduce((t,e)=>e(t),function(t,e,n,i){const r=jv(t,e);
1!n.match(/^(auto)*\s*(left|right|top|bottom)*$/)&&!n.match(/^(left|right|top|bottom)*(?: (left|right|top|bottom))?\s*(start|end)*$/)&&(n="auto");const s=!!n.match(/auto/g);let o=n.match(/auto\s(left|right|top|bottom)/)?n.split(" ")[1]||"auto":n;const a=o.match(/^(left|right|top|bottom)* ?(?!\1)(left|right|top|bottom)?/);a&&(o=a[1]+(a[2]?` ${a[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(o)&&(o="auto");const c=Bv(t,r,o);return o=Uv(o,r,t,e,i?i.allowedPositions:void 0),{options:i,instance:{target:t,host:e,arrow:null},offsets:{target:c,host:r,arrow:null},positionFixed:!1,placement:o,placementAuto:s}}(e,t,n,r))}};let Wv=(()=>{class t{constructor(t,e,n){this.update$$=new pn.xQ,this.positionElements=new Map,this.isDisabled=!1,Rt(n)&&t.runOutsideAngular(()=>{this.triggerEvent$=(0,rl.T)(xu(window,"scroll",{passive:!0}),xu(window,"resize",{passive:!0}),(0,Se.of)(0,Eu),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(t=>{!function(t,e,n,i,r,s){const o=Jv.positionElements(t,e,n,i,r),a=function(t){return{width:t.offsets.target.width,height:t.offsets.target.height,left:Math.floor(t.offsets.target.left),top:Math.round(t.offsets.target.top),bottom:Math.round(t.offsets.target.bottom),right:Math.floor(t.offsets.target.right)}}(o);Hv(e,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${a.left}px, ${a.top}px, 0px)`},s),o.instance.arrow&&Hv(o.instance.arrow,o.offsets.arrow,s),function(t,e){const n=t.instance.target;let i=n.className;t.placementAuto&&(i=i.replace(/bs-popover-auto/g,`bs-popover-${t.placement}`),i=i.replace(/bs-tooltip-auto/g,`bs-tooltip-${t.placement}`),i=i.replace(/\sauto/g,` ${t.placement}`),-1!==i.indexOf("popover")&&-1===i.indexOf("popover-auto")&&(i+=" popover-auto"),-1!==i.indexOf("tooltip")&&-1===i.indexOf("tooltip-auto")&&(i+=" tooltip-auto")),i=i.replace(/left|right|top|bottom/g,`${t.placement.split(" ")[0]}`),e?e.setAttribute(n,"class",i):n.className=i}(o,s)}(Kv(t.target),Kv(t.element),t.attachment,t.appendToBody,this.options,e.createRenderer(null,null))})})})}position(t){this.addPositionElement(t)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(t){this.positionElements.set(Kv(t.element),t)}calcPosition(){this.update$$.next()}deletePositionElement(t){this.positionElements.delete(Kv(t))}setOptions(t){this.options=t}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.R0b),i.LFG(i.FYo),i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function Kv(t){return"string"==typeof t?document.querySelector(t):t instanceof i.SBq?t.nativeElement:t}class Xv{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class ty{constructor(t,e,n,r,s,o,a,c){this._viewContainerRef=t,this._renderer=e,this._elementRef=n,this._injector=r,this._componentFactoryResolver=s,this._ngZone=o,this._applicationRef=a,this._posService=c,this.onBeforeShow=new i.vpe,this.onShown=new i.vpe,this.onBeforeHide=new i.vpe,this.onHidden=new i.vpe,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(t){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(t),this}to(t){return this.container=t||this.container,this}position(t){return this.attachment=t.attachment||this.attachment,this._elementRef=t.target||this._elementRef,this}provide(t){return this._providers.push(t),this}show(t={}){if(this._subscribePositioning(),this._innerComponent=null,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(t.content,t.context,t.initialState);const e=i.zs3.create({providers:this._providers,parent:this._injector});this._componentRef=this._componentFactory.create(e,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,t),this.container instanceof i.SBq&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&"undefined"!=typeof document&&(document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector)).appendChild(this._componentRef.location.nativeElement),!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}
1hide(){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const t=this._componentRef.location.nativeElement;return t.parentNode.removeChild(t),this._contentRef.componentRef&&this._contentRef.componentRef.destroy(),this._componentRef.destroy(),this._viewContainerRef&&this._contentRef.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._contentRef=null,this._componentRef=null,this._removeGlobalListener(),this.onHidden.emit(),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(t){this.triggers=t.triggers||this.triggers,this._listenOpts.outsideClick=t.outsideClick,this._listenOpts.outsideEsc=t.outsideEsc,t.target=t.target||this._elementRef.nativeElement;const e=this._listenOpts.hide=()=>t.hide?t.hide():void this.hide(),n=this._listenOpts.show=e=>{t.show?t.show(e):this.show(e),e()};return this._unregisterListenersFn=function(t,e){const n=function(t,e=po){const n=(t||"").trim();if(0===n.length)return[];const i=n.split(/\s+/).map(t=>t.split(":")).map(t=>{const n=e[t[0]]||t;return new fo(n[0],n[1])}),r=i.filter(t=>t.isManual());if(r.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===r.length&&i.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return i}(e.triggers),i=e.target;if(1===n.length&&n[0].isManual())return Function.prototype;const r=[],s=[],o=()=>{s.forEach(t=>r.push(t())),s.length=0};return n.forEach(n=>{const a=n.open===n.close,c=a?e.toggle:e.show;a||s.push(()=>t.listen(i,n.close,e.hide)),r.push(t.listen(i,n.open,()=>c(o)))}),()=>{r.forEach(t=>t())}}(this._renderer,{target:t.target,triggers:t.triggers,show:n,hide:e,toggle:t=>{this.isShown?e():n(t)}}),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=null)}attachInline(t,e){return this._inlineViewRef=t.createEmbeddedView(e),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const t=this._componentRef.location.nativeElement;setTimeout(()=>{this._globalListener=function(t,e){return e.outsideClick?t.listen("document","click",t=>{e.target&&e.target.contains(t.target)||e.targets&&e.targets.some(e=>e.contains(t.target))||e.hide()}):Function.prototype}(this._renderer,{targets:[t,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide()})})}this._listenOpts.outsideEsc&&(this._globalListener=function(t,e){return e.outsideEsc?t.listen("document","keyup.esc",t=>{e.target&&e.target.contains(t.target)||e.targets&&e.targets.some(e=>e.contains(t.target))||e.hide()}):Function.prototype}(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide()}))}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{!this._componentRef||this._posService.calcPosition()}))}_unsubscribePositioning(){!this._zoneSubscription||(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)}_getContentRef(t,e,n){if(!t)return new Xv([]);if(t instanceof i.Rgc){if(this._viewContainerRef){const n=this._viewContainerRef.createEmbeddedView(t,e);return n.markForCheck(),new Xv([n.rootNodes],n)}const n=t.createEmbeddedView({});return this._applicationRef.attachView(n),new Xv([n.rootNodes],n)}if("function"==typeof t){const e=this._componentFactoryResolver.resolveComponentFactory(t),r=i.zs3.create({providers:this._providers,parent:this._injector}),s=e.create(r);return Object.assign(s.instance,n),this._applicationRef.attachView(s.hostView),new Xv([[s.location.nativeElement]],s.hostView,s)}return new Xv([[this._renderer.createText(`${t}`)]])}}let ey=(()=>{class t{constructor(t,e,n,i,r){this._componentFactoryResolver=t,this._ngZone=e,this._injector=n,this._posService=i,this._applicationRef=r}createLoader(t,e,n){return new ty(e,n,t,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i._Vd),i.LFG(i.R0b),i.LFG(i.zs3),i.LFG(Wv),i.LFG(i.z2F))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const ny=["*"];let iy=(()=>{class t{constructor(){this.hide=Function,this.setClass=Function}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),ry=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const sy={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",animated:!0,initialState:{}};let oy=(()=>{class t{constructor(t,e,n){this._element=e,this._renderer=n,this.isShown=!1,this.isModalHiding=!1,this.clickStartedInContent=!1,this.config=Object.assign({},t)}ngOnInit(){this.isAnimated&&this._renderer.addClass(this._element.nativeElement,"fade"),this._renderer.setStyle(this._element.nativeElement,"display","block"),setTimeout(()=>{this.isShown=!0,this._renderer.addClass(this._element.nativeElement,vo()?"in":"show")},this.isAnimated?150:0),document&&document.body&&(1===this.bsModalService.getModalsCount()&&(this.bsModalService.checkScrollbar(),this.bsModalService.setScrollbar()),this._renderer.addClass(document.body,"modal-open")),this._element.nativeElement&&this._element.nativeElement.focus()}onClickStarted(t){this.clickStartedInContent=t.target!==this._element.nativeElement}onClickStop(t){this.config.ignoreBackdropClick||"static"===this.config.backdrop||t.target!==this._element.nativeElement||this.clickStartedInContent?this.clickStartedInContent=!1:(this.bsModalService.setDismissReason("backdrop-click"),this.hide())}onEsc(t){!this.isShown||((27===t.keyCode||"Escape"===t.key)&&t.preventDefault(),this.config.keyboard&&this.level===this.bsModalService.getModalsCount()&&(this.bsModalService.setDismissReason("esc"),this.hide()))}ngOnDestroy(){this.isShown&&this.hide()}hide(){this.isModalHiding||!this.isShown||(this.isModalHiding=!0,this._renderer.removeClass(this._element.nativeElement,vo()?"in":"show"),setTimeout(()=>{this.isShown=!1,document&&document.body&&1===this.bsModalService.getModalsCount()&&this._renderer.removeClass(document.body,"modal-open"),this.bsModalService.hide(this.level),this.isModalHiding=!1},this.isAnimated?300:0))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ry),i.Y36(i.SBq),i.Y36(i.Qsj))}
1,t.\u0275cmp=i.Xpm({type:t,selectors:[["modal-container"]],hostAttrs:["role","dialog","tabindex","-1",1,"modal"],hostVars:3,hostBindings:function(t,e){1&t&&i.NdJ("mousedown",function(t){return e.onClickStarted(t)})("mouseup",function(t){return e.onClickStop(t)})("keydown.esc",function(t){return e.onEsc(t)},!1,i.Jf7),2&t&&i.uIk("aria-modal",!0)("aria-labelledby",e.config.ariaLabelledBy)("aria-describedby",e.config.ariaDescribedby)},ngContentSelectors:ny,decls:3,vars:2,consts:[["role","document"],[1,"modal-content"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.qZA()),2&t&&i.Tol("modal-dialog"+(e.config.class?" "+e.config.class:""))},encapsulation:2}),t})(),ay=(()=>{class t{constructor(t,e){this._isShown=!1,this.element=t,this.renderer=e}get isAnimated(){return this._isAnimated}set isAnimated(t){this._isAnimated=t}get isShown(){return this._isShown}set isShown(t){this._isShown=t,t?this.renderer.addClass(this.element.nativeElement,"in"):this.renderer.removeClass(this.element.nativeElement,"in"),vo()||(t?this.renderer.addClass(this.element.nativeElement,"show"):this.renderer.removeClass(this.element.nativeElement,"show"))}ngOnInit(){this.isAnimated&&(this.renderer.addClass(this.element.nativeElement,"fade"),bo.reflow(this.element.nativeElement)),this.isShown=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275cmp=i.Xpm({type:t,selectors:[["bs-modal-backdrop"]],hostAttrs:[1,"modal-backdrop"],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),cy=(()=>{class t{constructor(t,e){this.clf=e,this.config=sy,this.onShow=new i.vpe,this.onShown=new i.vpe,this.onHide=new i.vpe,this.onHidden=new i.vpe,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.lastDismissReason="",this.loaders=[],this._backdropLoader=this.clf.createLoader(null,null,null),this._renderer=t.createRenderer(null,null)}show(t,e){return this.modalsCount++,this._createLoaders(),this.config=Object.assign({},sy,e),this._showBackdrop(),this.lastDismissReason=null,this._showModal(t)}hide(t){1===this.modalsCount&&(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1?this.modalsCount-1:0,setTimeout(()=>{this._hideModal(t),this.removeLoaders(t)},this.config.animated?150:0)}_showBackdrop(){const t=this.config.backdrop||"static"===this.config.backdrop,e=!this.backdropRef||!this.backdropRef.instance.isShown;1===this.modalsCount&&(this.removeBackdrop(),t&&e&&(this._backdropLoader.attach(ay).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}_hideBackdrop(){this.backdropRef&&(this.backdropRef.instance.isShown=!1,setTimeout(()=>this.removeBackdrop(),this.config.animated?150:0))}_showModal(t){const e=this.loaders[this.loaders.length-1];if(this.config&&this.config.providers)for(const r of this.config.providers)e.provide(r);const n=new iy,i=e.provide({provide:ry,useValue:this.config}).provide({provide:iy,useValue:n}).attach(oy).to("body").show({content:t,isAnimated:this.config.animated,initialState:this.config.initialState,bsModalService:this});return i.instance.level=this.getModalsCount(),n.hide=()=>{setTimeout(()=>i.instance.hide(),this.config.animated?300:0)},n.content=e.getInnerComponent()||null,n.setClass=t=>{i.instance.config.class=t},n}_hideModal(t){const e=this.loaders[t-1];e&&e.hide()}getModalsCount(){return this.modalsCount}setDismissReason(t){this.lastDismissReason=t}removeBackdrop(){this._backdropLoader.hide(),this.backdropRef=null}checkScrollbar(){this.isBodyOverflowing=document.body.clientWidth<window.innerWidth,this.scrollbarWidth=this.getScrollbarWidth()}setScrollbar(){!document||(this.originalBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")||"0",10),this.isBodyOverflowing&&(document.body.style.paddingRight=`${this.originalBodyPadding+this.scrollbarWidth}px`))}resetScrollbar(){document.body.style.paddingRight=`${this.originalBodyPadding}px`}getScrollbarWidth(){const t=this._renderer.createElement("div");this._renderer.addClass(t,"modal-scrollbar-measure"),this._renderer.appendChild(document.body,t);const e=t.offsetWidth-t.clientWidth;return this._renderer.removeChild(document.body,t),e}_createLoaders(){const t=this.clf.createLoader(null,null,null);this.copyEvent(t.onBeforeShow,this.onShow),this.copyEvent(t.onShown,this.onShown),this.copyEvent(t.onBeforeHide,this.onHide),this.copyEvent(t.onHidden,this.onHidden
1),this.loaders.push(t)}removeLoaders(t){this.loaders.splice(t-1,1),this.loaders.forEach((t,e)=>{t.instance.level=e+1})}copyEvent(t,e){t.subscribe(()=>{e.emit(this.lastDismissReason)})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(ey))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),uy=(()=>{class t{static forRoot(){return{ngModule:t,providers:[cy,ey,Wv]}}static forChild(){return{ngModule:t,providers:[cy,ey,Wv]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();var ly=n(4278);n(6423);let hy=(()=>{class t extends Lo{constructor(t){super(t),this.http=t}getById(t){return this.http.get(this.urlApiRest+"/users/"+t)}add(t,e,n,i,r){const s={uuid:t,name:e,dni:n,empresa:i,email:r};let o={headers:(new Re).set("Content-Type","application/json")};return this.http.post(this.urlApiRest+"/users/add",s,o)}edit(t,e,n,i,r,s){const o={id:t,uuid:e,name:n,dni:i,empresa:r,email:s};let a={headers:(new Re).set("Content-Type","application/json")};return this.http.post(this.urlApiRest+"/users/edit",o,a)}getTags(){return this.http.get(this.urlApiRest+"/tags")}getMisTags(t){return this.http.get(this.urlApiRest+"/tags/user/"+t)}addTags(t,e){let n={headers:(new Re).set("Content-Type","application/json")};return this.http.post(this.urlApiRest+"/tags/user/"+t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ke))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var dy=n(57),fy=n(2329),py=function(t,e){return(py=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 gy(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}py(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var my=function(){return(my=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function vy(t,e,n,i){return new(n||(n=Promise))(function(r,s){function o(t){try{c(i.next(t))}catch(e){s(e)}}function a(t){try{c(i.throw(t))}catch(e){s(e)}}function c(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,a)}c((i=i.apply(t,e||[])).next())})}function yy(t,e){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(a){s=[6,a],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function by(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function _y(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,s=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o}function wy(t,e,n){if(n||2===arguments.length)for(var i,r=0,s=e.length;r<s;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var xy={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_,i=[],r=0;r<t.length;r+=3){var s=t[r],o=r+1<t.length,a=o?t[r+1]:0,c=r+2<t.length,u=c?t[r+2]:0,l=(15&a)<<2|u>>6,h=63&u;c||(h=64,o||(l=64)),i.push(n[s>>2],n[(3&s)<<4|a>>4],n[l],n[h])}return i.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(function(t){for(var e=[],n=0,i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?e[n++]=r:r<2048?(e[n++]=r>>6|192,e[n++]=63&r|128):55296==(64512&r)&&i+1<t.length&&56320==(64512&t.charCodeAt(i+1))?(r=65536+((1023&r)<<10)+(1023&t.charCodeAt(++i)),e[n++]=r>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=63&r|128):(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=63&r|128)}return e}(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,i=0;n<t.length;){var r=t[n++];if(r<128)e[i++]=String.fromCharCode(r);else if(r>191&&r<224){var s=t[n++];e[i++]=String.fromCharCode((31&r)<<6|63&s)}else if(r>239&&r<365){var o=((7&r)<<18|(63&(s=t[n++]))<<12|(63&(a=t[n++]))<<6|63&t[n++])-65536;e[i++]=String.fromCharCode(55296+(o>>10)),e[i++]=String.fromCharCode(56320+(1023&o))}else{s=t[n++];var a=t[n++];
1e[i++]=String.fromCharCode((15&r)<<12|(63&s)<<6|63&a)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,i=[],r=0;r<t.length;){var s=n[t.charAt(r++)],o=r<t.length?n[t.charAt(r)]:0,a=++r<t.length?n[t.charAt(r)]:64,c=++r<t.length?n[t.charAt(r)]:64;if(++r,null==s||null==o||null==a||null==c)throw Error();i.push(s<<2|o>>4),64!==a&&(i.push(o<<4&240|a>>2),64!==c&&i.push(a<<6&192|c))}return i},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)}}},Sy=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,i){n?e.reject(n):e.resolve(i),"function"==typeof t&&(e.promise.catch(function(){}),1===t.length?t(n):t(n,i))}},t}();function Ty(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}var Cy=function(t){function e(n,i,r){var s=t.call(this,i)||this;return s.code=n,s.customData=r,s.name="FirebaseError",Object.setPrototypeOf(s,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(s,Ey.prototype.create),s}return gy(e,t),e}(Error),Ey=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];var i=e[0]||{},r=this.service+"/"+t,s=this.errors[t],o=s?Ay(s,i):"Error",a=this.serviceName+": "+o+" ("+r+").",c=new Cy(r,a,i);return c},t}();function Ay(t,e){return t.replace(Iy,function(t,n){var i=e[n];return null!=i?String(i):"<"+n+"?>"})}var Iy=/\{\$([^}]+)}/g;function ky(){}function Oy(t){return t&&t._delegate?t._delegate:t}!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()}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 i=0;i<16;i++)n[i]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(i=0;i<16;i++)n[i]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(i=16;i<80;i++)n[i]=4294967295&((h=n[i-3]^n[i-8]^n[i-14]^n[i-16])<<1|h>>>31);var r,s,o=this.chain_[0],a=this.chain_[1],c=this.chain_[2],u=this.chain_[3],l=this.chain_[4];for(i=0;i<80;i++){i<40?i<20?(r=u^a&(c^u),s=1518500249):(r=a^c^u,s=1859775393):i<60?(r=a&c|u&(a|c),s=2400959708):(r=a^c^u,s=3395469782);var h=(o<<5|o>>>27)+r+l+s+n[i]&4294967295;l=u,u=c,c=4294967295&(a<<30|a>>>2),a=o,o=h}this.chain_[0]=this.chain_[0]+o&4294967295,this.chain_[1]=this.chain_[1]+a&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+u&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,i=0,r=this.buf_,s=this.inbuf_;i<e;){if(0===s)for(;i<=n;)this.compress_(t,i),i+=this.blockSize;if("string"==typeof t){for(;i<e;)if(r[s]=t.charCodeAt(i),++i,++s===this.blockSize){this.compress_(r),s=0;break}}else for(;i<e;)if(r[s]=t[i],++i,++s===this.blockSize){this.compress_(r),s=0;break}}this.inbuf_=s,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 i=0;for(n=0;n<5;n++)for(var r=24;r>=0;r-=8)t[i]=this.chain_[n]>>r&255,++i;return t}}(),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)})}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 i,r=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");void 0===(i=function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=0,i=["next","error","complete"];n<i.length;n++){var r=i[n];if(r in t&&"function"==typeof t[r])return!0}return!1}(t)?t:{next:t,error:e,complete:n}).next&&(i.next=ky),void 0===i.error&&(i.error=ky),void 0===i.complete&&(i.complete=ky);var s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{r.finalError?i.error(r.finalError):i.complete()}catch(t){}}),this.observers.push(i),s},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(i){"undefined"!=typeof console&&console.error&&console.error(i)}})},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}))}}();var Dy=n(300),Ny=function(t,e){return(Ny=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 Py(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var Ry,Ly="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},My=My||{},Fy=Ly||self;function Zy(){}function qy(t){var e=typeof t;return"array"==(e="object"!=e?e:t?Array.isArray(t)?"array":e:"null")||"object"==e&&"number"==typeof t.length}function Uy(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var Vy="closure_uid_"+(1e9*Math.random()>>>0),jy=0;function By(t,e,n){return t.call.apply(t.bind,arguments)}function zy(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function Hy(t,e,n){return(Hy=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?By:zy).apply(null,arguments)}function Gy(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)}}function Yy(t,e){function n(){}n.prototype=e.prototype,t.Z=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.Vb=function(t,n,i){for(var r=Array(arguments.length-2),s=2;s<arguments.length;s++)r[s-2]=arguments[s];return e.prototype[n].apply(t,r)}}function Qy(){this.s=this.s,this.o=this.o}var $y={};Qy.prototype.s=!1,Qy.prototype.na=function(){if(!this.s&&(this.s=!0,this.M(),0)){var t=function(t){return Object.prototype.hasOwnProperty.call(t,Vy)&&t[Vy]||(t[Vy]=++jy)}(this);delete $y[t]}},Qy.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var Jy=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},Wy=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var i=t.length,r="string"==typeof t?t.split(""):t,s=0;s<i;s++)s in r&&e.call(n,r[s],s,t)};function Ky(t){return Array.prototype.concat.apply([],arguments)}function Xy(t){var e=t.length;if(0<e){for(var n=Array(e),i=0;i<e;i++)n[i]=t[i];return n}return[]}function tb(t){return/^[\s\xa0]*$/.test(t)}var eb,nb=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function ib(t,e){return-1!=t.indexOf(e)}function rb(t,e){return t<e?-1:t>e?1:0}t:{var sb=Fy.navigator;if(sb){var ob=sb.userAgent;if(ob){eb=ob;break t}}eb=""}function ab(t,e,n){for(var i in t)e.call(n,t[i],i,t)}function cb(t){var e={};for(var n in t)e[n]=t[n];return e}var ub="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1ing toString valueOf".split(" ");function lb(t,e){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])t[n]=i[n];for(var s=0;s<ub.length;s++)n=ub[s],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function hb(t){return hb[" "](t),t}hb[" "]=Zy;var db,fb,pb=ib(eb,"Opera"),gb=ib(eb,"Trident")||ib(eb,"MSIE"),mb=ib(eb,"Edge"),vb=mb||gb,yb=ib(eb,"Gecko")&&!(ib(eb.toLowerCase(),"webkit")&&!ib(eb,"Edge"))&&!(ib(eb,"Trident")||ib(eb,"MSIE"))&&!ib(eb,"Edge"),bb=ib(eb.toLowerCase(),"webkit")&&!ib(eb,"Edge");function _b(){var t=Fy.document;return t?t.documentMode:void 0}t:{var wb="",xb=(fb=eb,yb?/rv:([^\);]+)(\)|;)/.exec(fb):mb?/Edge\/([\d\.]+)/.exec(fb):gb?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(fb):bb?/WebKit\/(\S+)/.exec(fb):pb?/(?:Version)[ \/]?(\S+)/.exec(fb):void 0);if(xb&&(wb=xb?xb[1]:""),gb){var Sb=_b();if(null!=Sb&&Sb>parseFloat(wb)){db=String(Sb);break t}}db=wb}var Tb={};function Cb(){return t=Tb,Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=function(){for(var t=0,e=nb(String(db)).split("."),n=nb("9").split("."),i=Math.max(e.length,n.length),r=0;0==t&&r<i;r++){var s=e[r]||"",o=n[r]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],0==s[0].length&&0==o[0].length)break;t=rb(0==s[1].length?0:parseInt(s[1],10),0==o[1].length?0:parseInt(o[1],10))||rb(0==s[2].length,0==o[2].length)||rb(s[2],o[2]),s=s[3],o=o[3]}while(0==t)}return 0<=t}();var t}var Eb=Fy.document&&gb&&(_b()||parseInt(db,10))||void 0,Ab=function(){if(!Fy.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{Fy.addEventListener("test",Zy,e),Fy.removeEventListener("test",Zy,e)}catch(n){}return t}();function Ib(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}function kb(t,e){if(Ib.call(this,t?t.type:""),this.relatedTarget=this.g=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.state=null,this.pointerId=0,this.pointerType="",this.i=null,t){var n=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(yb){t:{try{hb(e.nodeName);var r=!0;break t}catch(s){}r=!1}r||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.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:Ob[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&kb.Z.h.call(this)}}Ib.prototype.h=function(){this.defaultPrevented=!0},Yy(kb,Ib);var Ob={2:"touch",3:"pen",4:"mouse"};kb.prototype.h=function(){kb.Z.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var Db="closure_listenable_"+(1e6*Math.random()|0),Nb=0;function Pb(t,e,n,i,r){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.ia=r,this.key=++Nb,this.ca=this.fa=!1}function Rb(t){t.ca=!0,t.listener=null,t.proxy=null,t.src=null,t.ia=null}function Lb(t){this.src=t,this.g={},this.h=0}function Mb(t,e){var n=e.type;if(n in t.g){var i,r=t.g[n],s=Jy(r,e);(i=0<=s)&&Array.prototype.splice.call(r,s,1),i&&(Rb(e),0==t.g[n].length&&(delete t.g[n],t.h--))}}function Fb(t,e,n,i){for(var r=0;r<t.length;++r){var s=t[r];if(!s.ca&&s.listener==e&&s.capture==!!n&&s.ia==i)return r}return-1}Lb.prototype.add=function(t,e,n,i,r){var s=t.toString();(t=this.g[s])||(t=this.g[s]=[],this.h++);var o=Fb(t,e,i,r);return-1<o?(e=t[o],n||(e.fa=!1)):((e=new Pb(e,this.src,s,!!i,r)).fa=n,t.push(e)),e};var Zb="closure_lm_"+(1e6*Math.random()|0),qb={};function Ub(t,e,n,i,r){if(i&&i.once)return jb(t,e,n,i,r);if(Array.isArray(e)){for(var s=0;s<e.length;s++)Ub(t,e[s],n,i,r);return null}return n=$b(n),t&&t[Db]?t.N(e,n,Uy(i)?!!i.capture:!!i,r):Vb(t,e,n,!1,i,r)}function Vb(t,e,n,i,r,s){if(!e)throw Error("Invalid event type");var o=Uy(r)?!!r.capture:!!r,a=Yb(t);if(a||(t[Zb]=a=new Lb(t)),(n=a.add(e,n,i,o,s)).proxy)return n;if(i=function(){var t=Gb;return function e(n){return t.call(e.src,e.listener,n)}}(),n.proxy=i,i.src=t,i.listener=n,t.addEventListener)Ab||(r=o),void 0===r&&(r=!1),t.addEventListener(e.toString(),i,r);else if(t.attachEvent)t.attachEvent(Hb(e.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}return n}function jb(t,e,n,i,r){if(Array.isArray(e)){for(var s=0;s<e.length;s++)jb(t,e[s],n,i,r);return null}return n=$b(n),t&&t[Db]?t.O(e,n,Uy(i)?!!i.capture:!!i,r):Vb(t,e,n,!0,i,r)}function Bb(t,e,n,i,r){if(Array.isArray(e))for(var s=0;s<e.length;s++)Bb(t,e[s],n,i,r);else i=Uy(i)?!!i.capture:!!i,n=$b(n),t&&t[Db]?(t=t.i,(e=String(e).toString())in t.g&&-1<(n=Fb(s=t.g[e],n,i,r))&&(Rb(s[n]),Array.prototype.splice.call(s,n,1),0==s.length&&(delete t.g[e],t.h--))):t&&(t=Yb(t))&&(e=t.g[e.toString()],t=-1,e&&(t=Fb(e,n,i,r)),(n=-1<t?e[t]:null)&&zb(n))}function zb(t){if("number"!=typeof t&&t&&!t.ca){var e=t.src;if(e&&e[Db])Mb(e.i,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(Hb(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=Yb(e))?(Mb(n,t),0==n.h&&(n.src=null,e[Zb]=null)):Rb(t)}}}function Hb(t){return t in qb?qb[t]:qb[t]="on"+t}function Gb(t,e){if(t.ca)t=!0;else{e=new kb(e,this);var n=t.listener,i=t.ia||t.src;t.fa&&zb(t),t=n.call(i,e)}return t}function Yb(t){return(t=t[Zb])instanceof Lb?t:null}var Qb="__closure_events_fn_"+(1e9*Math.random()>>>0);function $b(t){return"function"==typeof t?t:(t[Qb]||(t[Qb]=function(e){return t.handleEvent(e)}),t[Qb])}function Jb(){Qy.call(this),this.i=new Lb(this),this.P=this,this.I=null}function Wb(t,e){var n,i=t.I;if(i)for(n=[];i;i=i.I)n.push(i);if(t=t.P,i=e.type||e,"string"==typeof e)e=new Ib(e,t);else if(e instanceof Ib)e.target=e.target||t;else{var r=e;lb(e=new Ib(i,t),r)}if(r=!0,n)for(var s=n.length-1;0<=s;s--){var o=e.g=n[s];r=Kb(o,i,!0,e)&&r}if(r=Kb(o=e.g=t,i,!0,e)&&r,r=Kb(o,i,!1,e)&&r,n)for(s=0;s<n.length;s++)r=Kb(o=e.g=n[s],i,!1,e)&&r}function Kb(t,e,n,i){if(!(e=t.i.g[String(e)]))return!0;e=e.concat();for(var r=!0,s=0;s<e.length;++s){var o=e[s];if(o&&!o.ca&&o.capture==n){var a=o.listener,c=o.ia||o.src;o.fa&&Mb(t.i,o),r=!1!==a.call(c,i)&&r}}return r&&!i.defaultPrevented}Yy(Jb,Qy),Jb.prototype[Db]=!0,Jb.prototype.removeEventListener=function(t,e,n,i){Bb(this,t,e,n,i)},Jb.prototype.M=function(){if(Jb.Z.M.call(this),this.i){var t,e=this.i;for(t in e.g){for(var n=e.g[t],i=0;i<n.length;i++)Rb(n[i]);delete e.g[t],e.h--}}this.I=null},Jb.prototype.N=function(t,e,n,i){return this.i.add(String(t),e,!1,n,i)},Jb.prototype.O=function(t,e,n,i){return this.i.add(String(t),e,!0,n,i)};var Xb=Fy.JSON.stringify;function t_(){var t=c_,e=null;return t.g&&(e=t.g,t.g=t.g.next,t.g||(t.h=null),e.next=null),e}var e_,n_=function(){function t(){this.h=this.g=null}return t.prototype.add=function(t,e){var n=i_.get();n.set(t,e),this.h?this.h.next=n:this.g=n,this.h=n},t}(),i_=new(function(){function t(t,e){this.i=t,this.j=e,this.h=0,this.g=null}return t.prototype.get=function(){var t;return 0<this.h?(this.h--,this.g=(t=this.g).next,t.next=null):t=this.i(),t},t}())(function(){return new r_},function(t){return t.reset()}),r_=function(){function t(){this.next=this.g=this.h=null}return t.prototype.set=function(t,e){this.h=t,this.g=e,this.next=null},t.prototype.reset=function(){this.next=this.g=this.h=null},t}();function s_(t){Fy.setTimeout(function(){throw t},0)}function o_(t,e){e_||function(){var t=Fy.Promise.resolve(void 0);e_=function(){t.then(u_)}}(),a_||(e_(),a_=!0),c_.add(t,e)}var a_=!1,c_=new n_;
vendor: 12,511 bytes, line 1
1function u_(){for(var t;t=t_();){try{t.h.call(t.g)}catch(n){s_(n)}var e=i_;e.j(t),100>e.h&&(e.h++,t.next=e.g,e.g=t)}a_=!1}function l_(t,e){Jb.call(this),this.h=t||1,this.g=e||Fy,this.j=Hy(this.kb,this),this.l=Date.now()}function h_(t){t.da=!1,t.S&&(t.g.clearTimeout(t.S),t.S=null)}function d_(t,e,n){if("function"==typeof t)n&&(t=Hy(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=Hy(t.handleEvent,t)}return 2147483647<Number(e)?-1:Fy.setTimeout(t,e||0)}function f_(t){t.g=d_(function(){t.g=null,t.i&&(t.i=!1,f_(t))},t.j);var e=t.h;t.h=null,t.m.apply(null,e)}Yy(l_,Jb),(Ry=l_.prototype).da=!1,Ry.S=null,Ry.kb=function(){if(this.da){var t=Date.now()-this.l;0<t&&t<.8*this.h?this.S=this.g.setTimeout(this.j,this.h-t):(this.S&&(this.g.clearTimeout(this.S),this.S=null),Wb(this,"tick"),this.da&&(h_(this),this.start()))}},Ry.start=function(){this.da=!0,this.S||(this.S=this.g.setTimeout(this.j,this.h),this.l=Date.now())},Ry.M=function(){l_.Z.M.call(this),h_(this),delete this.g};var p_=function(t){function e(e,n){var i=t.call(this)||this;return i.m=e,i.j=n,i.h=null,i.i=!1,i.g=null,i}return function(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}Ny(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.l=function(t){this.h=arguments,this.g?this.i=!0:f_(this)},e.prototype.M=function(){t.prototype.M.call(this),this.g&&(Fy.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)},e}(Qy);function g_(t){Qy.call(this),this.h=t,this.g={}}Yy(g_,Qy);var m_=[];function v_(t,e,n,i){Array.isArray(n)||(n&&(m_[0]=n.toString()),n=m_);for(var r=0;r<n.length;r++){var s=Ub(e,n[r],i||t.handleEvent,!1,t.h||t);if(!s)break;t.g[s.key]=s}}function y_(t){ab(t.g,function(t,e){this.g.hasOwnProperty(e)&&zb(t)},t),t.g={}}function b_(){this.g=!0}function __(t,e,n,i){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.g)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 i=n[t];if(!(2>i.length)){var r=i[1];if(Array.isArray(r)&&!(1>r.length)){var s=r[0];if("noop"!=s&&"stop"!=s&&"close"!=s)for(var o=1;o<r.length;o++)r[o]=""}}}return Xb(n)}catch(a){return e}}(t,n)+(i?" "+i:"")})}g_.prototype.M=function(){g_.Z.M.call(this),y_(this)},g_.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},b_.prototype.Aa=function(){this.g=!1},b_.prototype.info=function(){};var w_={},x_=null;function S_(){return x_=x_||new Jb}function T_(t){Ib.call(this,w_.Ma,t)}function C_(t){var e=S_();Wb(e,new T_(e,t))}function E_(t,e){Ib.call(this,w_.STAT_EVENT,t),this.stat=e}function A_(t){var e=S_();Wb(e,new E_(e,t))}function I_(t,e){Ib.call(this,w_.Na,t),this.size=e}function k_(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return Fy.setTimeout(function(){t()},e)}w_.Ma="serverreachability",Yy(T_,Ib),w_.STAT_EVENT="statevent",Yy(E_,Ib),w_.Na="timingevent",Yy(I_,Ib);var O_={NO_ERROR:0,lb:1,yb:2,xb:3,sb:4,wb:5,zb:6,Ja:7,TIMEOUT:8,Cb:9},D_={qb:"complete",Mb:"success",Ka:"error",Ja:"abort",Eb:"ready",Fb:"readystatechange",TIMEOUT:"timeout",Ab:"incrementaldata",Db:"progress",tb:"downloadprogress",Ub:"uploadprogress"};function N_(){}function P_(){}N_.prototype.h=null;var R_,L_={OPEN:"a",pb:"b",Ka:"c",Bb:"d"};function M_(){Ib.call(this,"d")}function F_(){Ib.call(this,"c")}function Z_(){}function q_(t,e,n,i){this.l=t,this.j=e,this.m=n,this.X=i||1,this.V=new g_(this),this.P=V_,this.W=new l_(t=vb?125:void 0),this.H=null,this.i=!1,this.s=this.A=this.v=this.K=this.F=this.Y=this.B=null,this.D=[],this.g=null,this.C=0,this.o=this.u=null,this.N=-1,this.I=!1,this.O=0,this.L=null,this.aa=this.J=this.$=this.U=!1,this.h=new U_}function U_(){this.i=null,this.g="",this.h=!1}Yy(M_,Ib),Yy(F_,Ib),Yy(Z_,N_),Z_.prototype.g=function(){return new XMLHttpRequest},Z_.prototype.i=function(){return{}},R_=new Z_;var V_=45e3,j_={},B_={};function z_(t,e,n){t.K=1,t.v=fw(aw(e)),t.s=n,t.U=!0,H_(t,null)}function H_(t,e){t.F=Date.now(),$_(t),t.A=aw(t.v);var n=t.A,i=t.X;Array.isArray(i)||(i=[String(i)]),Ew(n.h,"t",i),t.C=0,n=t.l.H,t.h=new U_,t.g=Ax(t.l,n?e:null,!t.s),0<t.O&&(t.L=new p_(Hy(t.Ia,t,t.g),t.O)),v_(t.V,t.g,"readystatechange",t.gb),e=t.H?cb(t.H):{},t.s?(t.u||(t.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.g.ea(t.A,t.u,t.s,e)):(t.u="GET",t.g.ea(t.A,t.u,null,e)),C_(1),function(t,e,n,i,r,s){t.info(function(){if(t.g)if(s)for(var o="",a=s.split("&"),c=0;c<a.length;c++){var u=a[c].split("=");if(1<u.length){var l=u[0];u=u[1];var h=l.split("_");o=2<=h.length&&"type"==h[1]?o+(l+"=")+u+"&":o+(l+"=redacted&")}}else o=null;else o=s;return"XMLHTTP REQ ("+i+") [attempt "+r+"]: "+e+"\n"+n+"\n"+o})}(t.j,t.u,t.A,t.m,t.X,t.s)}function G_(t){return!!t.g&&"GET"==t.u&&2!=t.K&&t.l.Ba}function Y_(t,e,n){for(var i,r=!0;!t.I&&t.C<n.length;){if((i=Q_(t,n))==B_){4==e&&(t.o=4,A_(14),r=!1),__(t.j,t.m,null,"[Incomplete Response]");break}if(i==j_){t.o=4,A_(15),__(t.j,t.m,n,"[Invalid Chunk]"),r=!1;break}__(t.j,t.m,i,null),tw(t,i)}G_(t)&&i!=B_&&i!=j_&&(t.h.g="",t.C=0),4!=e||0!=n.length||t.h.h||(t.o=1,A_(16),r=!1),t.i=t.i&&r,r?0<n.length&&!t.aa&&(t.aa=!0,(e=t.l).g==t&&e.$&&!e.L&&(e.h.info("Great, no buffering proxy detected. Bytes received: "+n.length),bx(e),e.L=!0,A_(11))):(__(t.j,t.m,n,"[Invalid Chunked Response]"),X_(t),K_(t))}function Q_(t,e){var n=t.C,i=e.indexOf("\n",n);return-1==i?B_:(n=Number(e.substring(n,i)),isNaN(n)?j_:(i+=1)+n>e.length?B_:(e=e.substr(i,n),t.C=i+n,e))}function $_(t){t.Y=Date.now()+t.P,J_(t,t.P)}function J_(t,e){if(null!=t.B)throw Error("WatchDog timer not null");t.B=k_(Hy(t.eb,t),e)}function W_(t){t.B&&(Fy.clearTimeout(t.B),t.B=null)}function K_(t){0==t.l.G||t.I||xx(t.l,t)}function X_(t){W_(t);var e=t.L;e&&"function"==typeof e.na&&e.na(),t.L=null,h_(t.W),y_(t.V),t.g&&(e=t.g,t.g=null,e.abort(),e.na())}function tw(t,e){try{var n=t.l;if(0!=n.G&&(n.g==t||Pw(n.i,t)))if(n.I=t.N,!t.J&&Pw(n.i,t)&&3==n.G){try{var i=n.Ca.g.parse(e)}catch(m){i=null}if(Array.isArray(i)&&3==i.length){var r=i;if(0==r[0])t:if(n.u)n.ta=r[1],0<n.ta-n.U&&37500>r[2]&&n.N&&0==n.A&&!n.v&&(n.v=k_(Hy(n.ab,n),6e3));else{if(n.g){if(!(n.g.F+3e3<t.F))break t;wx(n),lx(n)}yx(n),A_(18)}if(1>=Nw(n.i)&&n.ka){try{n.ka()}catch(m){}n.ka=void 0}}else Tx(n,11)}else if((t.J||n.g==t)&&wx(n),!tb(e))for(r=n.Ca.g.parse(e),e=0;e<r.length;e++){var s=r[e];if(n.U=s[0],s=s[1],2==n.G)if("c"==s[0]){n.J=s[1],n.la=s[2];var o=s[3];null!=o&&(n.ma=o,n.h.info("VER="+n.ma));var a=s[4];null!=a&&(n.za=a,n.h.info("SVER="+n.za));var c=s[5];null!=c&&"number"==typeof c&&0<c&&(n.K=i=1.5*c,n.h.info("backChannelRequestTimeoutMs_="+i)),i=n;var u=t.g;if(u){var l=u.g?u.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(l){var h=i.i;!h.g&&(ib(l,"spdy")||ib(l,"quic")||ib(l,"h2"))&&(h.j=h.l,h.g=new Set,h.h&&(Rw(h,h.h),h.h=null))}if(i.D){var d=u.g?u.g.getResponseHeader("X-HTTP-Session-Id"):null;d&&(i.sa=d,dw(i.F,i.D,d))}}n.G=3,n.j&&n.j.xa(),n.$&&(n.O=Date.now()-t.F,n.h.info("Handshake RTT: "+n.O+"ms"));var f=t;if((i=n).oa=Ex(i,i.H?i.la:null,i.W),f.J){Lw(i.i,f);var p=f,g=i.K;g&&p.setTimeout(g),p.B&&(W_(p),$_(p)),i.g=f}else vx(i);0<n.l.length&&fx(n)}else"stop"!=s[0]&&"close"!=s[0]||Tx(n,7);else 3==n.G&&("stop"==s[0]||"close"==s[0]?"stop"==s[0]?Tx(n,7):ux(n):"noop"!=s[0]&&n.j&&n.j.wa(s),n.A=0)}C_(4)}catch(m){}}function ew(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(qy(t)||"string"==typeof t)Wy(t,e,void 0);else{if(t.T&&"function"==typeof t.T)var n=t.T();else if(t.R&&"function"==typeof t.R)n=void 0;else if(qy(t)||"string"==typeof t){n=[];for(var i=t.length,r=0;r<i;r++)n.push(r)}else for(r in n=[],i=0,t)n[i++]=r;r=(i=function(t){if(t.R&&"function"==typeof t.R)return t.R();if("string"==typeof t)return t.split("");if(qy(t)){for(var e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e}for(i in e=[],n=0,t)e[n++]=t[i];return e}(t)).length;for(var s=0;s<r;s++)e.call(void 0,i[s],n&&n[s],t)}}function nw(t,e){this.h={},this.g=[],this.i=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(t)if(t instanceof nw)for(n=t.T(),i=0;i<n.length;i++)this.set(n[i],t.get(n[i]));else for(i in t)this.set(i,t[i])}function iw(t){if(t.i!=t.g.length){for(var e=0,n=0;e<t.g.length;){var i=t.g[e];rw(t.h,i)&&(t.g[n++]=i),e++}t.g.length=n}if(t.i!=t.g.length){var r={};for(n=e=0;e<t.g.length;)rw(r,i=t.g[e])||(t.g[n++]=i,r[i]=1),e++;t.g.length=n}}function rw(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(Ry=q_.prototype).setTimeout=function(t){this.P=t},Ry.gb=function(t){t=t.target;var e=this.L;e&&3==rx(t)?e.l():this.Ia(t)},Ry.Ia=function(t){try{if(t==this.g)t:{var e=rx(this.g),n=this.g.Da(),i=this.g.ba();if(!(3>e)&&(3!=e||vb||this.g&&(this.h.h||this.g.ga()||sx(this.g)))){this.I||4!=e||7==n||C_(8==n||0>=i?3:2),W_(this);var r=this.g.ba();this.N=r;e:if(G_(this)){var s=sx(this.g);t="";var o=s.length,a=4==rx(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){X_(this),K_(this);var c="";break e}this.h.i=new Fy.TextDecoder}for(n=0;n<o;n++)this.h.h=!0,t+=this.h.i.decode(s[n],{stream:a&&n==o-1});s.splice(0,o),this.h.g+=t,this.C=0,c=this.h.g}else c=this.g.ga();if(this.i=200==r,function(t,e,n,i,r,s,o){t.info(function(){return"XMLHTTP RESP ("+i+") [ attempt "+r+"]: "+e+"\n"+n+"\n"+s+" "+o})}(this.j,this.u,this.A,this.m,this.X,e,r),this.i){if(this.$&&!this.J){e:{if(this.g){var u,l=this.g;if((u=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!tb(u)){var h=u;break e}}h=null}if(!(r=h)){this.i=!1,this.o=3,A_(12),X_(this),K_(this);break t}__(this.j,this.m,r,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,tw(this,r)}this.U?(Y_(this,e,c),vb&&this.i&&3==e&&(v_(this.V,this.W,"tick",this.fb),this.W.start())):(__(this.j,this.m,c,null),tw(this,c)),4==e&&X_(this),this.i&&!this.I&&(4==e?xx(this.l,this):(this.i=!1,$_(this)))}else 400==r&&0<c.indexOf("Unknown SID")?(this.o=3,A_(12)):(this.o=0,A_(13)),X_(this),K_(this)}}}catch(d){}},Ry.fb=function(){if(this.g){var t=rx(this.g),e=this.g.ga();this.C<e.length&&(W_(this),Y_(this,t,e),this.i&&4!=t&&$_(this))}},Ry.cancel=function(){this.I=!0,X_(this)},Ry.eb=function(){this.B=null;var t=Date.now();0<=t-this.Y?(function(t,e){t.info(function(){return"TIMEOUT: "+e})}(this.j,this.A),2!=this.K&&(C_(3),A_(17)),X_(this),this.o=2,K_(this)):J_(this,this.Y-t)},(Ry=nw.prototype).R=function(){iw(this);for(var t=[],e=0;e<this.g.length;e++)t.push(this.h[this.g[e]]);return t},Ry.T=function(){return iw(this),this.g.concat()},Ry.get=function(t,e){return rw(this.h,t)?this.h[t]:e},Ry.set=function(t,e){rw(this.h,t)||(this.i++,this.g.push(t)),this.h[t]=e},Ry.forEach=function(t,e){for(var n=this.T(),i=0;i<n.length;i++){var r=n[i],s=this.get(r);t.call(e,s,r,this)}};var sw=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function ow(t,e){if(this.i=this.s=this.j="",this.m=null,this.o=this.l="",this.g=!1,t instanceof ow){this.g=void 0!==e?e:t.g,cw(this,t.j),this.s=t.s,uw(this,t.i),lw(this,t.m),this.l=t.l,e=t.h;var n=new xw;n.i=e.i,e.g&&(n.g=new nw(e.g),n.h=e.h),hw(this,n),this.o=t.o}else t&&(n=String(t).match(sw))?(this.g=!!e,cw(this,n[1]||"",!0),this.s=pw(n[2]||""),uw(this,n[3]||"",!0),lw(this,n[4]),this.l=pw(n[5]||"",!0),hw(this,n[6]||"",!0),this.o=pw(n[7]||"")):(this.g=!!e,this.h=new xw(null,this.g))}function aw(t){return new ow(t)}function cw(t,e,n){t.j=n?pw(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function uw(t,e,n){t.i=n?pw(e,!0):e}function lw(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.m=e}else t.m=null}function hw(t,e,n){e instanceof xw?(t.h=e,function(t,e){e&&!t.j&&(Sw(t),t.i=null,t.g.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(Tw(this,e),Ew(this,n,t))},t)),t.j=e}(t.h,t.g)):(n||(e=gw(e,_w)),t.h=new xw(e,t.g))}function dw(t,e,n){t.h.set(e,n)}function fw(t){return dw(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function pw(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function gw(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,mw),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function mw(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}ow.prototype.toString=function(){var t=[],e=this.j;e&&t.push(gw(e,vw,!0),":");var n=this.i;
1return(n||"file"==e)&&(t.push("//"),(e=this.s)&&t.push(gw(e,vw,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&t.push(":",String(n))),(n=this.l)&&(this.i&&"/"!=n.charAt(0)&&t.push("/"),t.push(gw(n,"/"==n.charAt(0)?bw:yw,!0))),(n=this.h.toString())&&t.push("?",n),(n=this.o)&&t.push("#",gw(n,ww)),t.join("")};var vw=/[#\/\?@]/g,yw=/[#\?:]/g,bw=/[#\?]/g,_w=/[#\?@]/g,ww=/#/g;function xw(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function Sw(t){t.g||(t.g=new nw,t.h=0,t.i&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var s=t[n].substring(0,i);r=t[n].substring(i+1)}else s=t[n];e(s,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(t.i,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function Tw(t,e){Sw(t),e=Aw(t,e),rw(t.g.h,e)&&(t.i=null,t.h-=t.g.get(e).length,rw((t=t.g).h,e)&&(delete t.h[e],t.i--,t.g.length>2*t.i&&iw(t)))}function Cw(t,e){return Sw(t),e=Aw(t,e),rw(t.g.h,e)}function Ew(t,e,n){Tw(t,e),0<n.length&&(t.i=null,t.g.set(Aw(t,e),Xy(n)),t.h+=n.length)}function Aw(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}(Ry=xw.prototype).add=function(t,e){Sw(this),this.i=null,t=Aw(this,t);var n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this},Ry.forEach=function(t,e){Sw(this),this.g.forEach(function(n,i){Wy(n,function(n){t.call(e,n,i,this)},this)},this)},Ry.T=function(){Sw(this);for(var t=this.g.R(),e=this.g.T(),n=[],i=0;i<e.length;i++)for(var r=t[i],s=0;s<r.length;s++)n.push(e[i]);return n},Ry.R=function(t){Sw(this);var e=[];if("string"==typeof t)Cw(this,t)&&(e=Ky(e,this.g.get(Aw(this,t))));else{t=this.g.R();for(var n=0;n<t.length;n++)e=Ky(e,t[n])}return e},Ry.set=function(t,e){return Sw(this),this.i=null,Cw(this,t=Aw(this,t))&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this},Ry.get=function(t,e){return t&&0<(t=this.R(t)).length?String(t[0]):e},Ry.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var t=[],e=this.g.T(),n=0;n<e.length;n++){var i=e[n],r=encodeURIComponent(String(i));i=this.R(i);for(var s=0;s<i.length;s++){var o=r;""!==i[s]&&(o+="="+encodeURIComponent(String(i[s]))),t.push(o)}}return this.i=t.join("&")};var Iw=function(t,e){this.h=t,this.g=e};function kw(t){this.l=t||Ow,t=Fy.PerformanceNavigationTiming?0<(t=Fy.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(Fy.g&&Fy.g.Ea&&Fy.g.Ea()&&Fy.g.Ea().Zb),this.j=t?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var Ow=10;function Dw(t){return!!t.h||!!t.g&&t.g.size>=t.j}function Nw(t){return t.h?1:t.g?t.g.size:0}function Pw(t,e){return t.h?t.h==e:!!t.g&&t.g.has(e)}function Rw(t,e){t.g?t.g.add(e):t.h=e}function Lw(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}function Mw(t){var e,n;if(null!=t.h)return t.i.concat(t.h.D);if(null!=t.g&&0!==t.g.size){var i=t.i;try{for(var r=Py(t.g.values()),s=r.next();!s.done;s=r.next())i=i.concat(s.value.D)}catch(o){e={error:o}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return i}return Xy(t.i)}function Fw(){}function Zw(){this.g=new Fw}function qw(t,e,n){var i=n||"";try{ew(t,function(t,n){var r=t;Uy(t)&&(r=Xb(t)),e.push(i+n+"="+encodeURIComponent(r))})}catch(r){throw e.push(i+"type="+encodeURIComponent("_badmap")),r}}function Uw(t,e,n,i,r){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,r(i)}catch(s){}}function Vw(t){this.l=t.$b||null,this.j=t.ib||!1}function jw(t,e){Jb.call(this),this.D=t,this.u=e,this.m=void 0,this.readyState=Bw,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}kw.prototype.cancel=function(){var t,e;if(this.i=Mw(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){try{for(var n=Py(this.g.values()),i=n.next();!i.done;i=n.next())i.value.cancel()}catch(r){t={error:r}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.g.clear()}},Fw.prototype.stringify=function(t){return Fy.JSON.stringify(t,void 0)},Fw.prototype.parse=function(t){return Fy.JSON.parse(t,void 0)},Yy(Vw,N_),Vw.prototype.g=function(){return new jw(this.l,this.j)},Vw.prototype.i=function(t){return function(){return t}}({}),Yy(jw,Jb);var Bw=0;function zw(t){t.j.read().then(t.Sa.bind(t)).catch(t.ha.bind(t))}function Hw(t){t.readyState=4,t.l=null,t.j=null,t.A=null,Gw(t)}function Gw(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(Ry=jw.prototype).open=function(t,e){if(this.readyState!=Bw)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=e,this.readyState=1,Gw(this)},Ry.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};
vendor: 5,461 bytes, line 1
1t&&(e.body=t),(this.D||Fy).fetch(new Request(this.B,e)).then(this.Va.bind(this),this.ha.bind(this))},Ry.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted."),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Hw(this)),this.readyState=Bw},Ry.Va=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,Gw(this)),this.g&&(this.readyState=3,Gw(this),this.g)))if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Ta.bind(this),this.ha.bind(this));else if(void 0!==Fy.ReadableStream&&"body"in t){if(this.j=t.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;zw(this)}else t.text().then(this.Ua.bind(this),this.ha.bind(this))},Ry.Sa=function(t){if(this.g){if(this.u&&t.value)this.response.push(t.value);else if(!this.u){var e=t.value?t.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?Hw(this):Gw(this),3==this.readyState&&zw(this)}},Ry.Ua=function(t){this.g&&(this.response=this.responseText=t,Hw(this))},Ry.Ta=function(t){this.g&&(this.response=t,Hw(this))},Ry.ha=function(){this.g&&Hw(this)},Ry.setRequestHeader=function(t,e){this.v.append(t,e)},Ry.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},Ry.getAllResponseHeaders=function(){if(!this.h)return"";for(var t=[],e=this.h.entries(),n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(jw.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var Yw=Fy.JSON.parse;function Qw(t){Jb.call(this),this.headers=new nw,this.u=t||null,this.h=!1,this.C=this.g=null,this.H="",this.m=0,this.j="",this.l=this.F=this.v=this.D=!1,this.B=0,this.A=null,this.J=$w,this.K=this.L=!1}Yy(Qw,Jb);var $w="",Jw=/^https?$/i,Ww=["POST","PUT"];function Kw(t){return"content-type"==t.toLowerCase()}function Xw(t,e){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=e,t.m=5,tx(t),nx(t)}function tx(t){t.D||(t.D=!0,Wb(t,"complete"),Wb(t,"error"))}function ex(t){if(t.h&&void 0!==My&&(!t.C[1]||4!=rx(t)||2!=t.ba()))if(t.v&&4==rx(t))d_(t.Fa,0,t);else if(Wb(t,"readystatechange"),4==rx(t)){t.h=!1;try{var e,n=t.ba();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break t;default:i=!1}if(!(e=i)){var r;if(r=0===n){var s=String(t.H).match(sw)[1]||null;if(!s&&Fy.self&&Fy.self.location){var o=Fy.self.location.protocol;s=o.substr(0,o.length-1)}r=!Jw.test(s?s.toLowerCase():"")}e=r}if(e)Wb(t,"complete"),Wb(t,"success");else{t.m=6;try{var a=2<rx(t)?t.g.statusText:""}catch(c){a=""}t.j=a+" ["+t.ba()+"]",tx(t)}}finally{nx(t)}}}function nx(t,e){if(t.g){ix(t);var n=t.g,i=t.C[0]?Zy:null;t.g=null,t.C=null,e||Wb(t,"ready");try{n.onreadystatechange=i}catch(r){}}}function ix(t){t.g&&t.K&&(t.g.ontimeout=null),t.A&&(Fy.clearTimeout(t.A),t.A=null)}function rx(t){return t.g?t.g.readyState:0}function sx(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.J){case $w:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch(e){return null}}function ox(t,e,n){t:{for(i in n){var i=!1;break t}i=!0}i||(n=function(t){var e="";return ab(t,function(t,n){e+=n,e+=":",e+=t,e+="\r\n"}),e}(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):dw(t,e,n))}function ax(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function cx(t){this.za=0,this.l=[],this.h=new b_,this.la=this.oa=this.F=this.W=this.g=this.sa=this.D=this.aa=this.o=this.P=this.s=null,this.Za=this.V=0,this.Xa=ax("failFast",!1,t),this.N=this.v=this.u=this.m=this.j=null,this.X=!0,this.I=this.ta=this.U=-1,this.Y=this.A=this.C=0,this.Pa=ax("baseRetryDelayMs",5e3,t),this.$a=ax("retryDelaySeedMs",1e4,t),this.Ya=ax("forwardChannelMaxRetries",2,t),this.ra=ax("forwardChannelRequestTimeoutMs",2e4,t),this.qa=t&&t.xmlHttpFactory||void 0,this.Ba=t&&t.Yb||!1,this.K=void 0,this.H=t&&t.supportsCrossDomainXhr||!1,this.J="",this.i=new kw(t&&t.concurrentRequestLimit),this.Ca=new Zw,this.ja=t&&t.fastHandshake||!1,this.Ra=t&&t.Wb||!1,t&&t.Aa&&this.h.Aa(),t&&t.forceLongPolling&&(this.X=!1),this.$=!this.ja&&this.X&&t&&t.detectBufferingProxy||!1,this.ka=void 0,this.O=0,this.L=!1,this.B=null,this.Wa=!t||!1!==t.Xb}function ux(t){if(hx(t),3==t.G){var e=t.V++,n=aw(t.F);dw(n,"SID",t.J),dw(n,"RID",e),dw(n,"TYPE","terminate"),gx(t,n),(e=new q_(t,t.h,e,void 0)).K=2,e.v=fw(aw(n)),n=!1,Fy.navigator&&Fy.navigator.sendBeacon&&(n=Fy.navigator.sendBeacon(e.v.toString(),"")),!n&&Fy.Image&&((new Image).src=e.v,n=!0),n||(e.g=Ax(e.l,null),e.g.ea(e.v)),e.F=Date.now(),$_(e)}Cx(t)}function lx(t){t.g&&(bx(t),t.g.cancel(),t.g=null)}function hx(t){lx(t),t.u&&(Fy.clearTimeout(t.u),t.u=null),wx(t),t.i.cancel(),t.m&&("number"==typeof t.m&&Fy.clearTimeout(t.m),t.m=null)}function dx(t,e){t.l.push(new Iw(t.Za++,e)),3==t.G&&fx(t)}function fx(t){Dw(t.i)||t.m||(t.m=!0,o_(t.Ha,t),t.C=0)}function px(t,e){var n;n=e?e.m:t.V++;var i=aw(t.F);dw(i,"SID",t.J),dw(i,"RID",n),dw(i,"AID",t.U),gx(t,i),t.o&&t.s&&ox(i,t.o,t.s),n=new q_(t,t.h,n,t.C+1),null===t.o&&(n.H=t.s),e&&(t.l=e.D.concat(t.l)),e=mx(t,n,1e3),n.setTimeout(
1Math.round(.5*t.ra)+Math.round(.5*t.ra*Math.random())),Rw(t.i,n),z_(n,i,e)}function gx(t,e){t.j&&ew({},function(t,n){dw(e,n,t)})}function mx(t,e,n){n=Math.min(t.l.length,n);var i=t.j?Hy(t.j.Oa,t.j,t):null;t:for(var r=t.l,s=-1;;){var o=["count="+n];-1==s?0<n?o.push("ofs="+(s=r[0].h)):s=0:o.push("ofs="+s);for(var a=!0,c=0;c<n;c++){var u=r[c].h,l=r[c].g;if(0>(u-=s))s=Math.max(0,r[c].h-100),a=!1;else try{qw(l,o,"req"+u+"_")}catch(h){i&&i(l)}}if(a){i=o.join("&");break t}}return t=t.l.splice(0,n),e.D=t,i}function vx(t){t.g||t.u||(t.Y=1,o_(t.Ga,t),t.A=0)}function yx(t){return!(t.g||t.u||3<=t.A||(t.Y++,t.u=k_(Hy(t.Ga,t),Sx(t,t.A)),t.A++,0))}function bx(t){null!=t.B&&(Fy.clearTimeout(t.B),t.B=null)}function _x(t){t.g=new q_(t,t.h,"rpc",t.Y),null===t.o&&(t.g.H=t.s),t.g.O=0;var e=aw(t.oa);dw(e,"RID","rpc"),dw(e,"SID",t.J),dw(e,"CI",t.N?"0":"1"),dw(e,"AID",t.U),gx(t,e),dw(e,"TYPE","xmlhttp"),t.o&&t.s&&ox(e,t.o,t.s),t.K&&t.g.setTimeout(t.K);var n=t.g;t=t.la,n.K=1,n.v=fw(aw(e)),n.s=null,n.U=!0,H_(n,t)}function wx(t){null!=t.v&&(Fy.clearTimeout(t.v),t.v=null)}function xx(t,e){var n=null;if(t.g==e){wx(t),bx(t),t.g=null;var i=2}else{if(!Pw(t.i,e))return;n=e.D,Lw(t.i,e),i=1}if(t.I=e.N,0!=t.G)if(e.i)if(1==i){n=e.s?e.s.length:0,e=Date.now()-e.F;var r=t.C;Wb(i=S_(),new I_(i,n,e,r)),fx(t)}else vx(t);else if(3==(r=e.o)||0==r&&0<t.I||!(1==i&&function(t,e){return!(Nw(t.i)>=t.i.j-(t.m?1:0)||(t.m?(t.l=e.D.concat(t.l),0):1==t.G||2==t.G||t.C>=(t.Xa?0:t.Ya)||(t.m=k_(Hy(t.Ha,t,e),Sx(t,t.C)),t.C++,0)))}(t,e)||2==i&&yx(t)))switch(n&&0<n.length&&(e=t.i,e.i=e.i.concat(n)),r){case 1:Tx(t,5);break;case 4:Tx(t,10);break;case 3:Tx(t,6);break;default:Tx(t,2)}}function Sx(t,e){var n=t.Pa+Math.floor(Math.random()*t.$a);return t.j||(n*=2),n*e}function Tx(t,e){if(t.h.info("Error code "+e),2==e){var n=null;t.j&&(n=null);var i=Hy(t.jb,t);n||(n=new ow("//www.google.com/images/cleardot.gif"),Fy.location&&"http"==Fy.location.protocol||cw(n,"https"),fw(n)),function(t,e){var n=new b_;if(Fy.Image){var i=new Image;i.onload=Gy(Uw,n,i,"TestLoadImage: loaded",!0,e),i.onerror=Gy(Uw,n,i,"TestLoadImage: error",!1,e),i.onabort=Gy(Uw,n,i,"TestLoadImage: abort",!1,e),i.ontimeout=Gy(Uw,n,i,"TestLoadImage: timeout",!1,e),Fy.setTimeout(function(){i.ontimeout&&i.ontimeout()},1e4),i.src=t}else e(!1)}(n.toString(),i)}else A_(2);t.G=0,t.j&&t.j.va(e),Cx(t),hx(t)}function Cx(t){t.G=0,t.I=-1,t.j&&((0!=Mw(t.i).length||0!=t.l.length)&&(t.i.i.length=0,Xy(t.l),t.l.length=0),t.j.ua())}function Ex(t,e,n){var i=function(t){return t instanceof ow?aw(t):new ow(t,void 0)}(n);if(""!=i.i)e&&uw(i,e+"."+i.i),lw(i,i.m);else{var r=Fy.location;i=function(t,e,n,i){var r=new ow(null,void 0);return t&&cw(r,t),e&&uw(r,e),n&&lw(r,n),i&&(r.l=i),r}(r.protocol,e?e+"."+r.hostname:r.hostname,+r.port,n)}return t.aa&&ab(t.aa,function(t,e){dw(i,e,t)}),n=t.sa,(e=t.D)&&n&&dw(i,e,n),dw(i,"VER",t.ma),gx(t,i),i}function Ax(t,e,n){if(e&&!t.H)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new Qw(n&&t.Ba&&!t.qa?new Vw({ib:!0}):t.qa)).L=t.H,e}function Ix(){}function kx(){if(gb&&!(10<=Number(Eb)))throw Error("Environmental error: no available transport.")}function Ox(t,e){Jb.call(this),this.g=new cx(e),this.l=t,this.h=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.g.s=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.ya&&(t?t["X-WebChannel-Client-Profile"]=e.ya:t={"X-WebChannel-Client-Profile":e.ya}),this.g.P=t,(t=e&&e.httpHeadersOverwriteParam)&&!tb(t)&&(this.g.o=t),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!tb(e)&&(this.g.D=e,null!==(t=this.h)&&e in t&&e in(t=this.h)&&delete t[e]),this.j=new Px(this)}function Dx(t){M_.call(this);var e=t.__sm__;if(e){t:{for(var n in e){t=n;break t}t=void 0}(this.i=t)&&(t=this.i,e=null!==e&&t in e?e[t]:void 0),this.data=e}else this.data=t}function Nx(){F_.call(this),this.status=1}function Px(t){this.g=t}(Ry=Qw.prototype).ea=function(t,e,n,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+t);e=e?e.toUpperCase():"GET",this.H=t,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=this.u?this.u.g():R_.g(),this.C=function(t){return t.h||(t.h=t.i())}(this.u?this.u:R_),this.g.onreadystatechange=Hy(this.Fa,this);try{this.F=!0,this.g.open(e,String(t),!0),this.F=!1}catch(s){return void Xw(this,s)}t=n||"";var r=new nw(this.headers);i&&ew(i,function(t,e){r.set(e,t)}),i=function(t){t:{for(var e=Kw,n=t.length,i="string"==typeof t?t.split(""):t,r=0;r<n;r++)if(r in i&&e.call(void 0,i[r],r,t)){e=r;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}(r.T()),n=Fy.FormData&&t instanceof Fy.FormData,!(0<=Jy(Ww,e))||i||n||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r.forEach(function(t,e){this.g.setRequestHeader(e,t)},this),this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{ix(this),0<this.B&&((this.K=function(t){return gb&&Cb()&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=Hy(this.pa,this)):this.A=d_(this.pa,this.B,this)),this.v=!0,this.g.send(t),this.v=!1}catch(s){Xw(this,s)}},Ry.pa=function(){void 0!==My&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,Wb(this,"timeout"),this.abort(8))},Ry.abort=function(t){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=t||7,Wb(this,"complete"),Wb(this,"abort"),nx(this))},Ry.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),nx(this,!0)),Qw.Z.M.call(this)},Ry.Fa=function(){this.s||(this.F||this.v||this.l?ex(this):this.cb())},Ry.cb=function(){ex(this)},Ry.ba=function(){try{return 2<rx(this)?this.g.status:-1}catch(fb){return-1}},Ry.ga=function(){try{return this.g?this.g.responseText:""}catch(fb){return""}},Ry.Qa=function(t){if(this.g){var e=this.g.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),Yw(e)}},Ry.Da=function(){return this.m},Ry.La=function(){return"string"==typeof this.j?this.j:String(this.j)},(Ry=cx.prototype).ma=8,Ry.G=1,Ry.hb=function(t){try{this.h.info("Origin Trials invoked: "+t)}catch(e){}},Ry.Ha=function(t){if(this.m)if(this.m=null,1==this.G){if(!t){this.V=Math.floor(1e5*Math.random()),t=this.V++;var e=new q_(this,this.h,t,void 0),n=this.s;if(this.P&&(n?lb(n=cb(n),this.P):n=this.P),null===this.o&&(e.H=n),this.ja)t:{for(var i=0,r=0;r<this.l.length;r++){var s=this.l[r];if(void 0===(s="__data__"in s.g&&"string"==typeof(s=s.g.__data__)?s.length:void 0))break;if(4096<(i+=s)){i=r;break t}if(4096===i||r===this.l.length-1){i=r+1;break t}}i=1e3}else i=1e3;i=mx(this,e,i),dw(r=aw(this.F),"RID",t),dw(r,"CVER",22),this.D&&dw(r,"X-HTTP-Session-Id",this.D),gx(this,r),this.o&&n&&ox(r,this.o,n),Rw(this.i,e),this.Ra&&dw(r,"TYPE","init"),this.ja?(dw(r,"$req",i),dw(r,"SID","null"),e.$=!0,z_(e,r,null)):z_(e,r,i),this.G=2}}else 3==this.G&&(t?px(this,t):0==this.l.length||Dw(this.i)||px(this))},Ry.Ga=function(){if(this.u=null,_x(this),this.$&&!(this.L||null==this.g||0>=this.O)){var t=2*this.O;this.h.info("BP detection timer enabled: "+t),this.B=k_(Hy(this.bb,this),t)}},Ry.bb=function(){this.B&&(this.B=null,this.h.info("BP detection timeout reached."),this.h.info("Buffering proxy detected and switch to long-polling!"),this.N=!1,this.L=!0,A_(10),lx(this),_x(this))},Ry.ab=function(){null!=this.v&&(this.v=null,lx(this),yx(this),A_(19))},Ry.jb=function(t){t?(this.h.info("Successfully pinged google.com"),A_(2)):(this.h.info("Failed to ping google.com"),A_(1))},(Ry=Ix.prototype).xa=function(){},Ry.wa=function(){},Ry.va=function(){},Ry.ua=function(){},Ry.Oa=function(){},kx.prototype.g=function(t,e){return new Ox(t,e)},Yy(Ox,Jb),Ox.prototype.m=function(){this.g.j=this.j,this.A&&(this.g.H=!0);var t=this.g,e=this.l,n=this.h||void 0;t.Wa&&(t.h.info("Origin Trials enabled."),o_(Hy(t.hb,t,e))),A_(0),t.W=e,t.aa=n||{},t.N=t.X,t.F=Ex(t,null,t.W),fx(t)},Ox.prototype.close=function(){ux(this.g)},Ox.prototype.u=function(t){if("string"==typeof t){var e={};e.__data__=t,dx(this.g,e)}else this.v?((e={}).__data__=Xb(t),dx(this.g,e)):dx(this.g,t)},Ox.prototype.M=function(){this.g.j=null,delete this.j,ux(this.g),delete this.g,Ox.Z.M.call(this)},Yy(Dx,M_),Yy(Nx,F_),Yy(Px,Ix),Px.prototype.xa=function(){Wb(this.g,"a")},Px.prototype.wa=function(t){Wb(this.g,new Dx(t))}
1,Px.prototype.va=function(t){Wb(this.g,new Nx(t))},Px.prototype.ua=function(){Wb(this.g,"b")},kx.prototype.createWebChannel=kx.prototype.g,Ox.prototype.send=Ox.prototype.u,Ox.prototype.open=Ox.prototype.m,Ox.prototype.close=Ox.prototype.close,O_.NO_ERROR=0,O_.TIMEOUT=8,O_.HTTP_ERROR=6,D_.COMPLETE="complete",P_.EventType=L_,L_.OPEN="a",L_.CLOSE="b",L_.ERROR="c",L_.MESSAGE="d",Jb.prototype.listen=Jb.prototype.N,Qw.prototype.listenOnce=Qw.prototype.O,Qw.prototype.getLastError=Qw.prototype.La,Qw.prototype.getLastErrorCode=Qw.prototype.Da,Qw.prototype.getStatus=Qw.prototype.ba,Qw.prototype.getResponseJson=Qw.prototype.Qa,Qw.prototype.getResponseText=Qw.prototype.ga,Qw.prototype.send=Qw.prototype.ea;var Rx=O_,Lx=D_,Mx=w_,Fx=10,Zx=11,qx=Vw,Ux=P_,Vx=Qw,jx=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.sequenceNumberHandler=function(t){return n.t(t)},this.i=function(t){return e.writeSequenceNumber(t)})}return t.prototype.t=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.i&&this.i(t),t},t}();jx.o=-1;var Bx={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"},zx=function(t){function e(e,n){var i=this;return(i=t.call(this,n)||this).code=e,i.message=n,i.name="FirebaseError",i.toString=function(){return i.name+": [code="+i.code+"]: "+i.message},i}return gy(e,t),e}(Error),Hx=new Dy.Yd("@firebase/firestore");function Gx(){return Hx.logLevel}function Yx(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Hx.logLevel<=Dy.in.DEBUG){var i=e.map(Jx);Hx.debug.apply(Hx,wy(["Firestore (8.8.1): "+t],i))}}function Qx(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Hx.logLevel<=Dy.in.ERROR){var i=e.map(Jx);Hx.error.apply(Hx,wy(["Firestore (8.8.1): "+t],i))}}function $x(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Hx.logLevel<=Dy.in.WARN){var i=e.map(Jx);Hx.warn.apply(Hx,wy(["Firestore (8.8.1): "+t],i))}}function Jx(t){if("string"==typeof t)return t;try{return JSON.stringify(t)}catch(e){return t}}function Wx(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE (8.8.1) INTERNAL ASSERTION FAILED: "+t;throw Qx(e),new Error(e)}function Kx(t,e){t||Wx()}function Xx(t,e){return t}function tS(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 i=0;i<t;i++)n[i]=Math.floor(256*Math.random());return n}var eS=function(){function t(){}return t.u=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var i=tS(40),r=0;r<i.length;++r)n.length<20&&i[r]<e&&(n+=t.charAt(i[r]%t.length));return n},t}();function nS(t,e){return t<e?-1:t>e?1:0}function iS(t,e,n){return t.length===e.length&&t.every(function(t,i){return n(t,e[i])})}function rS(t){return t+"\0"}var sS=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new zx(Bx.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new zx(Bx.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new zx(Bx.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new zx(Bx.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,Math.floor(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._compareTo=function(t){return this.seconds===t.seconds?nS(this.nanoseconds,t.nanoseconds):nS(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")}
1,t}(),oS=function(){function t(t){this.timestamp=t}return t.fromTimestamp=function(e){return new t(e)},t.min=function(){return new t(new sS(0,0))},t.prototype.compareTo=function(t){return this.timestamp._compareTo(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.toTimestamp=function(){return this.timestamp},t}();function aS(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function cS(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function uS(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}var lS=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&Wx(),void 0===n?n=t.length-e:n>t.length-e&&Wx(),this.segments=t,this.offset=e,this.len=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.len},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.comparator(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.construct(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.popFirst=function(t){return this.construct(this.segments,this.offset+(t=void 0===t?1:t),this.length-t)},t.prototype.popLast=function(){return this.construct(this.segments,this.offset,this.length-1)},t.prototype.firstSegment=function(){return this.segments[this.offset]},t.prototype.lastSegment=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.isEmpty=function(){return 0===this.length},t.prototype.isPrefixOf=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.isImmediateParentOf=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.toArray=function(){return this.segments.slice(this.offset,this.limit())},t.comparator=function(t,e){for(var n=Math.min(t.length,e.length),i=0;i<n;i++){var r=t.get(i),s=e.get(i);if(r<s)return-1;if(r>s)return 1}return t.length<e.length?-1:t.length>e.length?1:0},t}(),hS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gy(e,t),e.prototype.construct=function(t,n,i){return new e(t,n,i)},e.prototype.canonicalString=function(){return this.toArray().join("/")},e.prototype.toString=function(){return this.canonicalString()},e.fromString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=[],r=0,s=t;r<s.length;r++){var o=s[r];if(o.indexOf("//")>=0)throw new zx(Bx.INVALID_ARGUMENT,"Invalid segment ("+o+"). Paths must not contain // in them.");i.push.apply(i,o.split("/").filter(function(t){return t.length>0}))}return new e(i)},e.emptyPath=function(){return new e([])},e}(lS),dS=/^[_a-zA-Z][_a-zA-Z0-9]*$/,fS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gy(e,t),e.prototype.construct=function(t,n,i){return new e(t,n,i)},e.isValidIdentifier=function(t){return dS.test(t)},e.prototype.canonicalString=function(){return this.toArray().map(function(t){return t=t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),e.isValidIdentifier(t)||(t="`"+t+"`"),t}).join(".")},e.prototype.toString=function(){return this.canonicalString()},e.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},e.keyField=function(){return new e(["__name__"])},e.fromServerFormat=function(t){for(var n=[],i="",r=0,s=function(){if(0===i.length)throw new zx(Bx.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(i),i=""},o=!1;r<t.length;){var a=t[r];
1if("\\"===a){if(r+1===t.length)throw new zx(Bx.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var c=t[r+1];if("\\"!==c&&"."!==c&&"`"!==c)throw new zx(Bx.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);i+=c,r+=2}else"`"===a?(o=!o,r++):"."!==a||o?(i+=a,r++):(s(),r++)}if(s(),o)throw new zx(Bx.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e.emptyPath=function(){return new e([])},e}(lS),pS=function(){function t(t){this.fields=t,t.sort(fS.comparator)}return t.prototype.covers=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].isPrefixOf(t))return!0;return!1},t.prototype.isEqual=function(t){return iS(this.fields,t.fields,function(t,e){return t.isEqual(e)})},t}(),gS=function(){function t(t){this.binaryString=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.binaryString)},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.binaryString)},t.prototype.approximateByteSize=function(){return 2*this.binaryString.length},t.prototype.compareTo=function(t){return nS(this.binaryString,t.binaryString)},t.prototype.isEqual=function(t){return this.binaryString===t.binaryString},t}();gS.EMPTY_BYTE_STRING=new gS("");var mS=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function vS(t){if(Kx(!!t),"string"==typeof t){var e=0,n=mS.exec(t);if(Kx(!!n),n[1]){var i=n[1];i=(i+"000000000").substr(0,9),e=Number(i)}var r=new Date(t);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:yS(t.seconds),nanos:yS(t.nanos)}}function yS(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function bS(t){return"string"==typeof t?gS.fromBase64String(t):gS.fromUint8Array(t)}function _S(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 wS(t){var e=t.mapValue.fields.__previous_value__;return _S(e)?wS(e):e}function xS(t){var e=vS(t.mapValue.fields.__local_write_time__.timestampValue);return new sS(e.seconds,e.nanos)}function SS(t){return null==t}function TS(t){return 0===t&&1/t==-1/0}function CS(t){return"number"==typeof t&&Number.isInteger(t)&&!TS(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}var ES=function(){function t(t){this.path=t}return t.fromPath=function(e){return new t(hS.fromString(e))},t.fromName=function(e){return new t(hS.fromString(e).popFirst(5))},t.prototype.hasCollectionId=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===hS.comparator(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.comparator=function(t,e){return hS.comparator(t.path,e.path)},t.isDocumentKey=function(t){return t.length%2==0},t.fromSegments=function(e){return new t(new hS(e.slice()))},t}();function AS(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?_S(t)?4:10:Wx()}function IS(t,e){var n,i=AS(t);if(i!==AS(e))return!1;switch(i){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return xS(t).isEqual(xS(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=vS(t.timestampValue),i=vS(e.timestampValue);return n.seconds===i.seconds&&n.nanos===i.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return n=e,bS(t.bytesValue).isEqual(bS(n.bytesValue));case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return yS(t.geoPointValue.latitude)===yS(e.geoPointValue.latitude)&&yS(t.geoPointValue.longitude)===yS(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return yS(t.integerValue)===yS(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=yS(t.doubleValue),i=yS(e.doubleValue);return n===i?TS(n)===TS(i):isNaN(n)&&isNaN(i)}return!1}(t,e);case 9:return iS(t.arrayValue.values||[],e.arrayValue.values||[],IS);case 10:return function(t,e){var n=t.mapValue.fields||{},i=e.mapValue.fields||{};if(aS(n)!==aS(i))return!1;for(var r in n)if(n.hasOwnProperty(r)&&(void 0===i[r]||!IS(n[r],i[r])))return!1;return!0}(t,e);default:return Wx()}}function kS(t,e){return void 0!==(t.values||[]).find(function(t){return IS(t,e)})}function OS(t,e){var n,i,r,s,o=AS(t),a=AS(e);if(o!==a)return nS(o,a);switch(o){case 0:return 0;case 1:return nS(t.booleanValue,e.booleanValue);case 2:return i=e,(r=yS((n=t).integerValue||n.doubleValue))<(s=yS(i.integerValue||i.doubleValue))?-1:r>s?1:r===s?0:isNaN(r)?isNaN(s)?0:-1:1;
1case 3:return DS(t.timestampValue,e.timestampValue);case 4:return DS(xS(t),xS(e));case 5:return nS(t.stringValue,e.stringValue);case 6:return function(t,e){var n=bS(t),i=bS(e);return n.compareTo(i)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),i=e.split("/"),r=0;r<n.length&&r<i.length;r++){var s=nS(n[r],i[r]);if(0!==s)return s}return nS(n.length,i.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=nS(yS(t.latitude),yS(e.latitude));return 0!==n?n:nS(yS(t.longitude),yS(e.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(t,e){for(var n=t.values||[],i=e.values||[],r=0;r<n.length&&r<i.length;++r){var s=OS(n[r],i[r]);if(s)return s}return nS(n.length,i.length)}(t.arrayValue,e.arrayValue);case 10:return function(t,e){var n=t.fields||{},i=Object.keys(n),r=e.fields||{},s=Object.keys(r);i.sort(),s.sort();for(var o=0;o<i.length&&o<s.length;++o){var a=nS(i[o],s[o]);if(0!==a)return a;var c=OS(n[i[o]],r[s[o]]);if(0!==c)return c}return nS(i.length,s.length)}(t.mapValue,e.mapValue);default:throw Wx()}}function DS(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return nS(t,e);var n=vS(t),i=vS(e),r=nS(n.seconds,i.seconds);return 0!==r?r:nS(n.nanos,i.nanos)}function NS(t){return PS(t)}function PS(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?"time("+(e=vS(t.timestampValue)).seconds+","+e.nanos+")":"stringValue"in t?t.stringValue:"bytesValue"in t?bS(t.bytesValue).toBase64():"referenceValue"in t?ES.fromName(t.referenceValue).toString():"geoPointValue"in t?"geo("+(n=t.geoPointValue).latitude+","+n.longitude+")":"arrayValue"in t?function(t){for(var e="[",n=!0,i=0,r=t.values||[];i<r.length;i++)n?n=!1:e+=",",e+=PS(r[i]);return e+"]"}(t.arrayValue):"mapValue"in t?function(t){for(var e="{",n=!0,i=0,r=Object.keys(t.fields||{}).sort();i<r.length;i++){var s=r[i];n?n=!1:e+=",",e+=s+":"+PS(t.fields[s])}return e+"}"}(t.mapValue):Wx();var e,n}function RS(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.canonicalString()}}function LS(t){return!!t&&"integerValue"in t}function MS(t){return!!t&&"arrayValue"in t}function FS(t){return!!t&&"nullValue"in t}function ZS(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function qS(t){return!!t&&"mapValue"in t}function US(t){if(t.geoPointValue)return{geoPointValue:Object.assign({},t.geoPointValue)};if(t.timestampValue&&"object"==typeof t.timestampValue)return{timestampValue:Object.assign({},t.timestampValue)};if(t.mapValue){var e={mapValue:{fields:{}}};return cS(t.mapValue.fields,function(t,n){return e.mapValue.fields[t]=US(n)}),e}if(t.arrayValue){for(var n={arrayValue:{values:[]}},i=0;i<(t.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=US(t.arrayValue.values[i]);return n}return Object.assign({},t)}var VS=function(){function t(t){this.value=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(t){if(t.isEmpty())return this.value;for(var e=this.value,n=0;n<t.length-1;++n)if(!qS(e=(e.mapValue.fields||{})[t.get(n)]))return null;return(e=(e.mapValue.fields||{})[t.lastSegment()])||null},t.prototype.set=function(t,e){this.getFieldsMap(t.popLast())[t.lastSegment()]=US(e)},t.prototype.setAll=function(t){var e=this,n=fS.emptyPath(),i={},r=[];t.forEach(function(t,s){if(!n.isImmediateParentOf(s)){var o=e.getFieldsMap(n);e.applyChanges(o,i,r),i={},r=[],n=s.popLast()}t?i[s.lastSegment()]=US(t):r.push(s.lastSegment())});var s=this.getFieldsMap(n);this.applyChanges(s,i,r)},t.prototype.delete=function(t){var e=this.field(t.popLast());qS(e)&&e.mapValue.fields&&delete e.mapValue.fields[t.lastSegment()]},t.prototype.isEqual=function(t){return IS(this.value,t.value)},t.prototype.getFieldsMap=function(t){var e=this.value;e.mapValue.fields||(e.mapValue={fields:{}});for(var n=0;n<t.length;++n){var i=e.mapValue.fields[t.get(n)];qS(i)&&i.mapValue.fields||(i={mapValue:{fields:{}}},e.mapValue.fields[t.get(n)]=i),e=i}return e.mapValue.fields},t.prototype.applyChanges=function(t,e,n){cS(e,function(e,n){return t[e]=n});for(var i=0,r=n;i<r.length;i++)delete t[r[i]]},t.prototype.clone=function(){return new t(US(this.value))},t}();function jS(t){var e=[];return cS(t.fields,function(t,n){var i=new fS([t]);if(qS(n)){var r=jS(n.mapValue).fields;
1if(0===r.length)e.push(i);else for(var s=0,o=r;s<o.length;s++)e.push(i.child(o[s]))}else e.push(i)}),new pS(e)}var BS=function(){function t(t,e,n,i,r){this.key=t,this.documentType=e,this.version=n,this.data=i,this.documentState=r}return t.newInvalidDocument=function(e){return new t(e,0,oS.min(),VS.empty(),0)},t.newFoundDocument=function(e,n,i){return new t(e,1,n,i,0)},t.newNoDocument=function(e,n){return new t(e,2,n,VS.empty(),0)},t.newUnknownDocument=function(e,n){return new t(e,3,n,VS.empty(),2)},t.prototype.convertToFoundDocument=function(t,e){return this.version=t,this.documentType=1,this.data=e,this.documentState=0,this},t.prototype.convertToNoDocument=function(t){return this.version=t,this.documentType=2,this.data=VS.empty(),this.documentState=0,this},t.prototype.convertToUnknownDocument=function(t){return this.version=t,this.documentType=3,this.data=VS.empty(),this.documentState=2,this},t.prototype.setHasCommittedMutations=function(){return this.documentState=2,this},t.prototype.setHasLocalMutations=function(){return this.documentState=1,this},Object.defineProperty(t.prototype,"hasLocalMutations",{get:function(){return 1===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCommittedMutations",{get:function(){return 2===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.hasLocalMutations||this.hasCommittedMutations},enumerable:!1,configurable:!0}),t.prototype.isValidDocument=function(){return 0!==this.documentType},t.prototype.isFoundDocument=function(){return 1===this.documentType},t.prototype.isNoDocument=function(){return 2===this.documentType},t.prototype.isUnknownDocument=function(){return 3===this.documentType},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)},t.prototype.clone=function(){return new t(this.key,this.documentType,this.version,this.data.clone(),this.documentState)},t.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+JSON.stringify(this.data.value)+", {documentType: "+this.documentType+"}), {documentState: "+this.documentState+"})"},t}(),zS=function(t,e,n,i,r,s,o){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===r&&(r=null),void 0===s&&(s=null),void 0===o&&(o=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=i,this.limit=r,this.startAt=s,this.endAt=o,this.h=null};function HS(t,e,n,i,r,s,o){return void 0===e&&(e=null),void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===r&&(r=null),void 0===s&&(s=null),void 0===o&&(o=null),new zS(t,e,n,i,r,s,o)}function GS(t){var e=Xx(t);if(null===e.h){var n=e.path.canonicalString();null!==e.collectionGroup&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map(function(t){return(e=t).field.canonicalString()+e.op.toString()+NS(e.value);var e}).join(","),n+="|ob:",n+=e.orderBy.map(function(t){return(e=t).field.canonicalString()+e.dir;var e}).join(","),SS(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=sT(e.startAt)),e.endAt&&(n+="|ub:",n+=sT(e.endAt)),e.h=n}return e.h}function YS(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(var n=0;n<t.orderBy.length;n++)if(!aT(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(var i=0;i<t.filters.length;i++)if((r=t.filters[i]).op!==(s=e.filters[i]).op||!r.field.isEqual(s.field)||!IS(r.value,s.value))return!1;var r,s;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!uT(t.startAt,e.startAt)&&uT(t.endAt,e.endAt)}function QS(t){return ES.isDocumentKey(t.path)&&null===t.collectionGroup&&0===t.filters.length}var $S=function(t){function e(e,n,i){var r=this;return(r=t.call(this)||this).field=e,r.op=n,r.value=i,r}return gy(e,t),e.create=function(t,n,i){return t.isKeyField()?"in"===n||"not-in"===n?this.l(t,n,i):new JS(t,n,i):"array-contains"===n?new tT(t,i):"in"===n?new eT(t,i):"not-in"===n?new nT(t,i):"array-contains-any"===n?new iT(t,i):new e(t,n,i)},e.l=function(t,e,n){return"in"===e?new WS(t,n):new KS(t,n)},e.prototype.matches=function(t){var e=t.data.field(this.field);return"!="===this.op?null!==e&&this.m(OS(e,this.value)):null!==e&&AS(this.value)===AS(e)&&this.m(OS(e,this.value))},e.prototype.m=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 Wx()}},e.prototype.g=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},e}(function(){}),JS=function(t){function e(e,n,i){var r=this;
1return(r=t.call(this,e,n,i)||this).key=ES.fromName(i.referenceValue),r}return gy(e,t),e.prototype.matches=function(t){var e=ES.comparator(t.key,this.key);return this.m(e)},e}($S),WS=function(t){function e(e,n){var i=this;return(i=t.call(this,e,"in",n)||this).keys=XS(0,n),i}return gy(e,t),e.prototype.matches=function(t){return this.keys.some(function(e){return e.isEqual(t.key)})},e}($S),KS=function(t){function e(e,n){var i=this;return(i=t.call(this,e,"not-in",n)||this).keys=XS(0,n),i}return gy(e,t),e.prototype.matches=function(t){return!this.keys.some(function(e){return e.isEqual(t.key)})},e}($S);function XS(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map(function(t){return ES.fromName(t.referenceValue)})}var tT=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return gy(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return MS(e)&&kS(e.arrayValue,this.value)},e}($S),eT=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return gy(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return null!==e&&kS(this.value.arrayValue,e)},e}($S),nT=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return gy(e,t),e.prototype.matches=function(t){if(kS(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var e=t.data.field(this.field);return null!==e&&!kS(this.value.arrayValue,e)},e}($S),iT=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return gy(e,t),e.prototype.matches=function(t){var e=this,n=t.data.field(this.field);return!(!MS(n)||!n.arrayValue.values)&&n.arrayValue.values.some(function(t){return kS(e.value.arrayValue,t)})},e}($S),rT=function(t,e){this.position=t,this.before=e};function sT(t){return(t.before?"b":"a")+":"+t.position.map(function(t){return NS(t)}).join(",")}var oT=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function aT(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}function cT(t,e,n){for(var i=0,r=0;r<t.position.length;r++){var s=e[r],o=t.position[r];if(i=s.field.isKeyField()?ES.comparator(ES.fromName(o.referenceValue),n.key):OS(o,n.data.field(s.field)),"desc"===s.dir&&(i*=-1),0!==i)break}return t.before?i<=0:i<0}function uT(t,e){if(null===t)return null===e;if(null===e||t.before!==e.before||t.position.length!==e.position.length)return!1;for(var n=0;n<t.position.length;n++)if(!IS(t.position[n],e.position[n]))return!1;return!0}var lT=function(t,e,n,i,r,s,o,a){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===r&&(r=null),void 0===s&&(s="F"),void 0===o&&(o=null),void 0===a&&(a=null),this.path=t,this.collectionGroup=e,this.explicitOrderBy=n,this.filters=i,this.limit=r,this.limitType=s,this.startAt=o,this.endAt=a,this.p=null,this.T=null};function hT(t,e,n,i,r,s,o,a){return new lT(t,e,n,i,r,s,o,a)}function dT(t){return new lT(t)}function fT(t){return!SS(t.limit)&&"F"===t.limitType}function pT(t){return!SS(t.limit)&&"L"===t.limitType}function gT(t){return t.explicitOrderBy.length>0?t.explicitOrderBy[0].field:null}function mT(t){for(var e=0,n=t.filters;e<n.length;e++){var i=n[e];if(i.g())return i.field}return null}function vT(t){return null!==t.collectionGroup}function yT(t){var e=Xx(t);if(null===e.p){e.p=[];var n=mT(e),i=gT(e);if(null!==n&&null===i)n.isKeyField()||e.p.push(new oT(n)),e.p.push(new oT(fS.keyField(),"asc"));else{for(var r=!1,s=0,o=e.explicitOrderBy;s<o.length;s++){var a=o[s];e.p.push(a),a.field.isKeyField()&&(r=!0)}if(!r){var c=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e.p.push(new oT(fS.keyField(),c))}}}return e.p}function bT(t){var e=Xx(t);if(!e.T)if("F"===e.limitType)e.T=HS(e.path,e.collectionGroup,yT(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],i=0,r=yT(e);i<r.length;i++){var s=r[i];n.push(new oT(s.field,"desc"===s.dir?"asc":"desc"))}var o=e.endAt?new rT(e.endAt.position,!e.endAt.before):null,a=e.startAt?new rT(e.startAt.position,!e.startAt.before):null;e.T=HS(e.path,e.collectionGroup,n,e.filters,e.limit,o,a)}return e.T}function _T(t,e,n){return new lT(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function wT(t,e){return YS(bT(t),bT(e))&&t.limitType===e.limitType}function xT(t){return GS(bT(t))+"|lt:"+t.limitType}function ST(t){return"Query(target="+(n=(e=bT(t)).path.canonicalString(),null!==e.collectionGroup&&(n+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(n+=", filters: ["+e.filters.map(function(t){return(e=t).field.canonicalString()+" "+e.op+" "+NS(e.value);var e}).join(", ")+"]"),SS(e.limit)||(n+=", limit: "+e.limit),e.orderBy.length>0&&(n+=", orderBy: ["+e.orderBy.map(function(t){return(e=t).field.canonicalString()+" ("+e.dir+")";var e}).join(", ")+"]"),e.startAt&&(n+=", startAt: "+sT(e.startAt)),e.endAt&&(n+=", endAt: "+sT(e.endAt)),"Target("+n+"); limitType=")+t.limitType+")";var e,n}
1function TT(t,e){return e.isFoundDocument()&&(r=(i=e).key.path,null!==(n=t).collectionGroup?i.key.hasCollectionId(n.collectionGroup)&&n.path.isPrefixOf(r):ES.isDocumentKey(n.path)?n.path.isEqual(r):n.path.isImmediateParentOf(r))&&function(t,e){for(var n=0,i=t.explicitOrderBy;n<i.length;n++){var r=i[n];if(!r.field.isKeyField()&&null===e.data.field(r.field))return!1}return!0}(t,e)&&function(t,e){for(var n=0,i=t.filters;n<i.length;n++)if(!i[n].matches(e))return!1;return!0}(t,e)&&function(t,e){return!(t.startAt&&!cT(t.startAt,yT(t),e)||t.endAt&&cT(t.endAt,yT(t),e))}(t,e);var n,i,r}function CT(t){return function(e,n){for(var i=!1,r=0,s=yT(t);r<s.length;r++){var o=s[r],a=ET(o,e,n);if(0!==a)return a;i=i||o.field.isKeyField()}return 0}}function ET(t,e,n){var i,r,s,o,a=t.field.isKeyField()?ES.comparator(e.key,n.key):(r=n,s=e.data.field(i=t.field),o=r.data.field(i),null!==s&&null!==o?OS(s,o):Wx());switch(t.dir){case"asc":return a;case"desc":return-1*a;default:return Wx()}}function AT(t,e){if(t.I){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:TS(e)?"-0":e}}function IT(t){return{integerValue:""+t}}function kT(t,e){return CS(e)?IT(e):AT(t,e)}var OT=function(){this._=void 0};function DT(t,e,n){return t instanceof RT?(s={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:(i=n).seconds,nanos:i.nanoseconds}}}},(r=e)&&(s.fields.__previous_value__=r),{mapValue:s}):t instanceof LT?MT(t,e):t instanceof FT?ZT(t,e):function(t,e){var n=PT(t,e),i=UT(n)+UT(t.A);return LS(n)&&LS(t.A)?IT(i):AT(t.R,i)}(t,e);var i,r,s}function NT(t,e,n){return t instanceof LT?MT(t,e):t instanceof FT?ZT(t,e):n}function PT(t,e){return t instanceof qT?LS(i=e)||(n=i)&&"doubleValue"in n?e:{integerValue:0}:null;var n,i}var RT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gy(e,t),e}(OT),LT=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return gy(e,t),e}(OT);function MT(t,e){for(var n=VT(e),i=function(t){n.some(function(e){return IS(e,t)})||n.push(t)},r=0,s=t.elements;r<s.length;r++)i(s[r]);return{arrayValue:{values:n}}}var FT=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return gy(e,t),e}(OT);function ZT(t,e){for(var n=VT(e),i=function(t){n=n.filter(function(e){return!IS(e,t)})},r=0,s=t.elements;r<s.length;r++)i(s[r]);return{arrayValue:{values:n}}}var qT=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).R=e,i.A=n,i}return gy(e,t),e}(OT);function UT(t){return yS(t.integerValue||t.doubleValue)}function VT(t){return MS(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}var jT=function(t,e){this.field=t,this.transform=e},BT=function(t,e){this.version=t,this.transformResults=e},zT=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.none=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,"isNone",{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 HT(t,e){return void 0!==t.updateTime?e.isFoundDocument()&&e.version.isEqual(t.updateTime):void 0===t.exists||t.exists===e.isFoundDocument()}var GT=function(){};function YT(t,e,n){var i,r,s,o,a;t instanceof KT?(r=e,s=n,o=(i=t).value.clone(),a=eC(i.fieldTransforms,r,s.transformResults),o.setAll(a),r.convertToFoundDocument(s.version,o).setHasCommittedMutations()):t instanceof XT?function(t,e,n){if(HT(t.precondition,e)){var i=eC(t.fieldTransforms,e,n.transformResults),r=e.data;r.setAll(tC(t)),r.setAll(i),e.convertToFoundDocument(n.version,r).setHasCommittedMutations()}else e.convertToUnknownDocument(n.version)}(t,e,n):function(t,e,n){e.convertToNoDocument(n.version).setHasCommittedMutations()}(0,e,n)}function QT(t,e,n){var i;t instanceof KT?function(t,e,n){if(HT(t.precondition,e)){var i=t.value.clone(),r=nC(t.fieldTransforms,n,e);i.setAll(r),e.convertToFoundDocument(WT(e),i).setHasLocalMutations()}}(t,e,n):t instanceof XT?function(t,e,n){if(HT(t.precondition,e)){var i=nC(t.fieldTransforms,n,e),r=e.data;r.setAll(tC(t)),r.setAll(i),e.convertToFoundDocument(WT(e),r).setHasLocalMutations()}}(t,e,n):HT(t.precondition,i=e)&&i.convertToNoDocument(oS.min())}function $T(t,e){for(var n=null,i=0,r=t.fieldTransforms;i<r.length;i++){var s=r[i],o=e.data.field(s.field),a=PT(s.transform,o||null);null!=a&&(null==n&&(n=VS.empty()),n.set(s.field,a))}return n||null}function JT(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&(i=e.fieldTransforms,!!(void 0===(n=t.fieldTransforms)&&void 0===i||n&&i&&iS(n,i,function(t,e){return(n=t).field.isEqual((i=e).field)&&(s=i.transform,(r=n.transform)instanceof LT&&s instanceof LT||r instanceof FT&&s instanceof FT?iS(r.elements,s.elements,IS):r instanceof qT&&s instanceof qT?IS(r.A,s.A):r instanceof RT&&s instanceof RT);var n,i,r,s}
1)))&&(0===t.type?t.value.isEqual(e.value):1!==t.type||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask));var n,i}function WT(t){return t.isFoundDocument()?t.version:oS.min()}var KT=function(t){function e(e,n,i,r){void 0===r&&(r=[]);var s=this;return(s=t.call(this)||this).key=e,s.value=n,s.precondition=i,s.fieldTransforms=r,s.type=0,s}return gy(e,t),e}(GT),XT=function(t){function e(e,n,i,r,s){void 0===s&&(s=[]);var o=this;return(o=t.call(this)||this).key=e,o.data=n,o.fieldMask=i,o.precondition=r,o.fieldTransforms=s,o.type=1,o}return gy(e,t),e}(GT);function tC(t){var e=new Map;return t.fieldMask.fields.forEach(function(n){if(!n.isEmpty()){var i=t.data.field(n);e.set(n,i)}}),e}function eC(t,e,n){var i=new Map;Kx(t.length===n.length);for(var r=0;r<n.length;r++){var s=t[r],o=s.transform,a=e.data.field(s.field);i.set(s.field,NT(o,a,n[r]))}return i}function nC(t,e,n){for(var i=new Map,r=0,s=t;r<s.length;r++){var o=s[r],a=o.transform,c=n.data.field(o.field);i.set(o.field,DT(a,c,e))}return i}var iC,rC,sC=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).key=e,i.precondition=n,i.type=2,i.fieldTransforms=[],i}return gy(e,t),e}(GT),oC=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).key=e,i.precondition=n,i.type=3,i.fieldTransforms=[],i}return gy(e,t),e}(GT),aC=function(t){this.count=t};function cC(t){switch(t){case Bx.OK:return Wx();case Bx.CANCELLED:case Bx.UNKNOWN:case Bx.DEADLINE_EXCEEDED:case Bx.RESOURCE_EXHAUSTED:case Bx.INTERNAL:case Bx.UNAVAILABLE:case Bx.UNAUTHENTICATED:return!1;case Bx.INVALID_ARGUMENT:case Bx.NOT_FOUND:case Bx.ALREADY_EXISTS:case Bx.PERMISSION_DENIED:case Bx.FAILED_PRECONDITION:case Bx.ABORTED:case Bx.OUT_OF_RANGE:case Bx.UNIMPLEMENTED:case Bx.DATA_LOSS:return!0;default:return Wx()}}function uC(t){if(void 0===t)return Qx("GRPC error has no .code"),Bx.UNKNOWN;switch(t){case iC.OK:return Bx.OK;case iC.CANCELLED:return Bx.CANCELLED;case iC.UNKNOWN:return Bx.UNKNOWN;case iC.DEADLINE_EXCEEDED:return Bx.DEADLINE_EXCEEDED;case iC.RESOURCE_EXHAUSTED:return Bx.RESOURCE_EXHAUSTED;case iC.INTERNAL:return Bx.INTERNAL;case iC.UNAVAILABLE:return Bx.UNAVAILABLE;case iC.UNAUTHENTICATED:return Bx.UNAUTHENTICATED;case iC.INVALID_ARGUMENT:return Bx.INVALID_ARGUMENT;case iC.NOT_FOUND:return Bx.NOT_FOUND;case iC.ALREADY_EXISTS:return Bx.ALREADY_EXISTS;case iC.PERMISSION_DENIED:return Bx.PERMISSION_DENIED;case iC.FAILED_PRECONDITION:return Bx.FAILED_PRECONDITION;case iC.ABORTED:return Bx.ABORTED;case iC.OUT_OF_RANGE:return Bx.OUT_OF_RANGE;case iC.UNIMPLEMENTED:return Bx.UNIMPLEMENTED;case iC.DATA_LOSS:return Bx.DATA_LOSS;default:return Wx()}}(rC=iC||(iC={}))[rC.OK=0]="OK",rC[rC.CANCELLED=1]="CANCELLED",rC[rC.UNKNOWN=2]="UNKNOWN",rC[rC.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",rC[rC.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",rC[rC.NOT_FOUND=5]="NOT_FOUND",rC[rC.ALREADY_EXISTS=6]="ALREADY_EXISTS",rC[rC.PERMISSION_DENIED=7]="PERMISSION_DENIED",rC[rC.UNAUTHENTICATED=16]="UNAUTHENTICATED",rC[rC.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",rC[rC.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",rC[rC.ABORTED=10]="ABORTED",rC[rC.OUT_OF_RANGE=11]="OUT_OF_RANGE",rC[rC.UNIMPLEMENTED=12]="UNIMPLEMENTED",rC[rC.INTERNAL=13]="INTERNAL",rC[rC.UNAVAILABLE=14]="UNAVAILABLE",rC[rC.DATA_LOSS=15]="DATA_LOSS";var lC=function(){function t(t,e){this.comparator=t,this.root=e||dC.EMPTY}return t.prototype.insert=function(e,n){return new t(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,dC.BLACK,null,null))},t.prototype.remove=function(e){return new t(this.comparator,this.root.remove(e,this.comparator).copy(null,null,dC.BLACK,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.isEmpty();){var n=this.comparator(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.isEmpty();){var i=this.comparator(t,n.key);if(0===i)return e+n.left.size;i<0?n=n.left:(e+=n.left.size+1,n=n.right)}return-1},t.prototype.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size}
1,enumerable:!1,configurable:!0}),t.prototype.minKey=function(){return this.root.minKey()},t.prototype.maxKey=function(){return this.root.maxKey()},t.prototype.inorderTraversal=function(t){return this.root.inorderTraversal(t)},t.prototype.forEach=function(t){this.inorderTraversal(function(e,n){return t(e,n),!1})},t.prototype.toString=function(){var t=[];return this.inorderTraversal(function(e,n){return t.push(e+":"+n),!1}),"{"+t.join(", ")+"}"},t.prototype.reverseTraversal=function(t){return this.root.reverseTraversal(t)},t.prototype.getIterator=function(){return new hC(this.root,null,this.comparator,!1)},t.prototype.getIteratorFrom=function(t){return new hC(this.root,t,this.comparator,!1)},t.prototype.getReverseIterator=function(){return new hC(this.root,null,this.comparator,!0)},t.prototype.getReverseIteratorFrom=function(t){return new hC(this.root,t,this.comparator,!0)},t}(),hC=function(){function t(t,e,n,i){this.isReverse=i,this.nodeStack=[];for(var r=1;!t.isEmpty();)if(r=e?n(t.key,e):1,i&&(r*=-1),r<0)t=this.isReverse?t.left:t.right;else{if(0===r){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}return t.prototype.getNext=function(){var t=this.nodeStack.pop(),e={key:t.key,value:t.value};if(this.isReverse)for(t=t.left;!t.isEmpty();)this.nodeStack.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack.push(t),t=t.left;return e},t.prototype.hasNext=function(){return this.nodeStack.length>0},t.prototype.peek=function(){if(0===this.nodeStack.length)return null;var t=this.nodeStack[this.nodeStack.length-1];return{key:t.key,value:t.value}},t}(),dC=function(){function t(e,n,i,r,s){this.key=e,this.value=n,this.color=null!=i?i:t.RED,this.left=null!=r?r:t.EMPTY,this.right=null!=s?s:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.copy=function(e,n,i,r,s){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=i?i:this.color,null!=r?r:this.left,null!=s?s:this.right)},t.prototype.isEmpty=function(){return!1},t.prototype.inorderTraversal=function(t){return this.left.inorderTraversal(t)||t(this.key,this.value)||this.right.inorderTraversal(t)},t.prototype.reverseTraversal=function(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)},t.prototype.min=function(){return this.left.isEmpty()?this:this.left.min()},t.prototype.minKey=function(){return this.min().key},t.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},t.prototype.insert=function(t,e,n){var i=this,r=n(t,i.key);return(i=r<0?i.copy(null,null,null,i.left.insert(t,e,n),null):0===r?i.copy(null,e,null,null,null):i.copy(null,null,null,null,i.right.insert(t,e,n))).fixUp()},t.prototype.removeMin=function(){if(this.left.isEmpty())return t.EMPTY;var e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),(e=e.copy(null,null,null,e.left.removeMin(),null)).fixUp()},t.prototype.remove=function(e,n){var i,r=this;if(n(e,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(e,n),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===n(e,r.key)){if(r.right.isEmpty())return t.EMPTY;i=r.right.min(),r=r.copy(i.key,i.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(e,n))}return r.fixUp()},t.prototype.isRed=function(){return this.color},t.prototype.fixUp=function(){var t=this;return t.right.isRed()&&!t.left.isRed()&&(t=t.rotateLeft()),t.left.isRed()&&t.left.left.isRed()&&(t=t.rotateRight()),t.left.isRed()&&t.right.isRed()&&(t=t.colorFlip()),t},t.prototype.moveRedLeft=function(){var t=this.colorFlip();return t.right.left.isRed()&&(t=(t=(t=t.copy(null,null,null,null,t.right.rotateRight())).rotateLeft()).colorFlip()),t},t.prototype.moveRedRight=function(){var t=this.colorFlip();return t.left.left.isRed()&&(t=(t=t.rotateRight()).colorFlip()),t},t.prototype.rotateLeft=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.rotateRight=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.colorFlip=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.checkMaxDepth=function(){var t=this.check();return Math.pow(2,t)<=this.size+1},t.prototype.check=function(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw Wx();var t=this.left.check();if(t!==this.right.check())throw Wx();return t+(this.isRed()?0:1)},t}();
1dC.EMPTY=null,dC.RED=!0,dC.BLACK=!1,dC.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw Wx()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw Wx()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw Wx()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw Wx()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw Wx()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,i,r){return this},t.prototype.insert=function(t,e,n){return new dC(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.isEmpty=function(){return!0},t.prototype.inorderTraversal=function(t){return!1},t.prototype.reverseTraversal=function(t){return!1},t.prototype.minKey=function(){return null},t.prototype.maxKey=function(){return null},t.prototype.isRed=function(){return!1},t.prototype.checkMaxDepth=function(){return!0},t.prototype.check=function(){return 0},t}());var fC=function(){function t(t){this.comparator=t,this.data=new lC(this.comparator)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.minKey()},t.prototype.last=function(){return this.data.maxKey()},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.inorderTraversal(function(e,n){return t(e),!1})},t.prototype.forEachInRange=function(t,e){for(var n=this.data.getIteratorFrom(t[0]);n.hasNext();){var i=n.getNext();if(this.comparator(i.key,t[1])>=0)return;e(i.key)}},t.prototype.forEachWhile=function(t,e){var n;for(n=void 0!==e?this.data.getIteratorFrom(e):this.data.getIterator();n.hasNext();)if(!t(n.getNext().key))return},t.prototype.firstAfterOrEqual=function(t){var e=this.data.getIteratorFrom(t);return e.hasNext()?e.getNext().key:null},t.prototype.getIterator=function(){return new pC(this.data.getIterator())},t.prototype.getIteratorFrom=function(t){return new pC(this.data.getIteratorFrom(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).insert(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype.isEmpty=function(){return this.data.isEmpty()},t.prototype.unionWith=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)||this.size!==e.size)return!1;for(var n=this.data.getIterator(),i=e.data.getIterator();n.hasNext();){var r=n.getNext().key,s=i.getNext().key;if(0!==this.comparator(r,s))return!1}return!0},t.prototype.toArray=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.comparator);return n.data=e,n},t}(),pC=function(){function t(t){this.iter=t}return t.prototype.getNext=function(){return this.iter.getNext().key},t.prototype.hasNext=function(){return this.iter.hasNext()},t}(),gC=new lC(ES.comparator);function mC(){return gC}var vC=new lC(ES.comparator);function yC(){return vC}var bC=new lC(ES.comparator);function _C(){return bC}var wC=new fC(ES.comparator);function xC(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=wC,i=0,r=t;i<r.length;i++){var s=r[i];n=n.add(s)}return n}var SC=new fC(nS);function TC(){return SC}var CC=function(){function t(t,e,n,i,r){this.snapshotVersion=t,this.targetChanges=e,this.targetMismatches=n,this.documentUpdates=i,this.resolvedLimboDocuments=r}return t.createSynthesizedRemoteEventForCurrentChange=function(e,n){var i=new Map;return i.set(e,EC.createSynthesizedTargetChangeForCurrentChange(e,n)),new t(oS.min(),i,TC(),mC(),xC())},t}(),EC=function(){function t(t,e,n,i,r){this.resumeToken=t,this.current=e,this.addedDocuments=n,this.modifiedDocuments=i,this.removedDocuments=r}return t.createSynthesizedTargetChangeForCurrentChange=function(e,n){return new t(gS.EMPTY_BYTE_STRING,n,xC(),xC(),xC())},t}(),AC=function(t,e,n,i){this.v=t,this.removedTargetIds=e,this.key=n,this.P=i},IC=function(t,e){this.targetId=t,this.V=e},kC=function(t,e,n,i){void 0===n&&(n=gS.EMPTY_BYTE_STRING),void 0===i&&(i=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=i},OC=function(){function t(){this.S=0,this.D=PC(),this.C=gS.EMPTY_BYTE_STRING,this.N=!1,this.F=!0}return Object.defineProperty(t.prototype,"current",{get:function(){return this.N}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.C},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"k",{get:function(){return 0!==this.S},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"$",{get:function(){return this.F},enumerable:!1,configurable:!0}),t.prototype.O=function(t){t.approximateByteSize()>0&&(this.F=!0,this.C=t)},t.prototype.M=function(){var t=xC(),e=xC(),n=xC();return this.D.forEach(function(i,r){switch(r){case 0:t=t.add(i);break;case 2:e=e.add(i);break;case 1:n=n.add(i);break;default:Wx()}}),new EC(this.C,this.N,t,e,n)},t.prototype.L=function(){this.F=!1,this.D=PC()},t.prototype.B=function(t,e){this.F=!0,this.D=this.D.insert(t,e)},t.prototype.q=function(t){this.F=!0,this.D=this.D.remove(t)},t.prototype.U=function(){this.S+=1},t.prototype.K=function(){this.S-=1},t.prototype.j=function(){this.F=!0,this.N=!0},t}(),DC=function(){function t(t){this.W=t,this.G=new Map,this.H=mC(),this.J=NC(),this.Y=new fC(nS)}return t.prototype.X=function(t){for(var e=0,n=t.v;e<n.length;e++){var i=n[e];t.P&&t.P.isFoundDocument()?this.Z(i,t.P):this.tt(i,t.key,t.P)}for(var r=0,s=t.removedTargetIds;r<s.length;r++)this.tt(i=s[r],t.key,t.P)},t.prototype.et=function(t){var e=this;this.forEachTarget(t,function(n){var i=e.nt(n);switch(t.state){case 0:e.st(n)&&i.O(t.resumeToken);break;case 1:i.K(),i.k||i.L(),i.O(t.resumeToken);break;case 2:i.K(),i.k||e.removeTarget(n);break;case 3:e.st(n)&&(i.j(),i.O(t.resumeToken));break;case 4:e.st(n)&&(e.it(n),i.O(t.resumeToken));break;default:Wx()}})},t.prototype.forEachTarget=function(t,e){var n=this;t.targetIds.length>0?t.targetIds.forEach(e):this.G.forEach(function(t,i){n.st(i)&&e(i)})},t.prototype.rt=function(t){var e=t.targetId,n=t.V.count,i=this.ot(e);if(i){var r=i.target;if(QS(r))if(0===n){var s=new ES(r.path);this.tt(e,s,BS.newNoDocument(s,oS.min()))}else Kx(1===n);else this.ct(e)!==n&&(this.it(e),this.Y=this.Y.add(e))}},t.prototype.ut=function(t){var e=this,n=new Map;this.G.forEach(function(i,r){var s=e.ot(r);if(s){if(i.current&&QS(s.target)){var o=new ES(s.target.path);null!==e.H.get(o)||e.at(r,o)||e.tt(r,o,BS.newNoDocument(o,t))}i.$&&(n.set(r,i.M()),i.L())}});var i=xC();this.J.forEach(function(t,n){var r=!0;n.forEachWhile(function(t){var n=e.ot(t);return!n||2===n.purpose||(r=!1,!1)}),r&&(i=i.add(t))});var r=new CC(t,n,this.Y,this.H,i);return this.H=mC(),this.J=NC(),this.Y=new fC(nS),r},t.prototype.Z=function(t,e){if(this.st(t)){var n=this.at(t,e.key)?2:0;this.nt(t).B(e.key,n),this.H=this.H.insert(e.key,e),this.J=this.J.insert(e.key,this.ht(e.key).add(t))}},t.prototype.tt=function(t,e,n){if(this.st(t)){var i=this.nt(t);this.at(t,e)?i.B(e,1):i.q(e),this.J=this.J.insert(e,this.ht(e).delete(t)),n&&(this.H=this.H.insert(e,n))}},t.prototype.removeTarget=function(t){this.G.delete(t)},t.prototype.ct=function(t){var e=this.nt(t).M();return this.W.getRemoteKeysForTarget(t).size+e.addedDocuments.size-e.removedDocuments.size},t.prototype.U=function(t){this.nt(t).U()},t.prototype.nt=function(t){var e=this.G.get(t);return e||(e=new OC,this.G.set(t,e)),e},t.prototype.ht=function(t){var e=this.J.get(t);return e||(e=new fC(nS),this.J=this.J.insert(t,e)),e},t.prototype.st=function(t){var e=null!==this.ot(t);return e||Yx("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.ot=function(t){var e=this.G.get(t);return e&&e.k?null:this.W.lt(t)},t.prototype.it=function(t){var e=this;this.G.set(t,new OC),this.W.getRemoteKeysForTarget(t).forEach(function(n){e.tt(t,n,null)})},t.prototype.at=function(t,e){return this.W.getRemoteKeysForTarget(t).has(e)},t}();function NC(){return new lC(ES.comparator)}function PC(){return new lC(ES.comparator)}var RC={asc:"ASCENDING",desc:"DESCENDING"},LC={"<":"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"},MC=function(t,e){this.databaseId=t,this.I=e};function FC(t,e){return t.I?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function ZC(t,e){return t.I?e.toBase64():e.toUint8Array()}function qC(t,e){return FC(t,e.toTimestamp())}function UC(t){return Kx(!!t),oS.fromTimestamp((e=vS(t),new sS(e.seconds,e.nanos)));var e}function VC(t,e){return(n=t,new hS(["projects",n.projectId,"databases",n.database])).child("documents").child(e).canonicalString();var n}function jC(t){var e=hS.fromString(t);return Kx(dE(e)),e}function BC(t,e){return VC(t.databaseId,e.path)}function zC(t,e){var n=jC(e);
1if(n.get(1)!==t.databaseId.projectId)throw new zx(Bx.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new zx(Bx.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new ES(QC(n))}function HC(t,e){return VC(t.databaseId,e)}function GC(t){var e=jC(t);return 4===e.length?hS.emptyPath():QC(e)}function YC(t){return new hS(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function QC(t){return Kx(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function $C(t,e,n){return{name:BC(t,e),fields:n.value.mapValue.fields}}function JC(t,e,n){var i=zC(t,e.name),r=UC(e.updateTime),s=new VS({mapValue:{fields:e.fields}}),o=BS.newFoundDocument(i,r,s);return n&&o.setHasCommittedMutations(),n?o.setHasCommittedMutations():o}function WC(t,e){var n,i;if(e instanceof KT)n={update:$C(t,e.key,e.value)};else if(e instanceof sC)n={delete:BC(t,e.key)};else if(e instanceof XT)n={update:$C(t,e.key,e.data),updateMask:hE(e.fieldMask)};else{if(!(e instanceof oC))return Wx();n={verify:BC(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(function(t){return function(t,e){var n=e.transform;if(n instanceof RT)return{fieldPath:e.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof LT)return{fieldPath:e.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof FT)return{fieldPath:e.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof qT)return{fieldPath:e.field.canonicalString(),increment:n.A};throw Wx()}(0,t)})),e.precondition.isNone||(n.currentDocument=void 0!==(i=e.precondition).updateTime?{updateTime:qC(t,i.updateTime)}:void 0!==i.exists?{exists:i.exists}:Wx()),n}function KC(t,e){var n,i=e.currentDocument?void 0!==(n=e.currentDocument).updateTime?zT.updateTime(UC(n.updateTime)):void 0!==n.exists?zT.exists(n.exists):zT.none():zT.none(),r=e.updateTransforms?e.updateTransforms.map(function(e){return function(t,e){var n=null;"setToServerValue"in e?(Kx("REQUEST_TIME"===e.setToServerValue),n=new RT):"appendMissingElements"in e?n=new LT(e.appendMissingElements.values||[]):"removeAllFromArray"in e?n=new FT(e.removeAllFromArray.values||[]):"increment"in e?n=new qT(t,e.increment):Wx();var i=fS.fromServerFormat(e.fieldPath);return new jT(i,n)}(t,e)}):[];if(e.update){var s=zC(t,e.update.name),o=new VS({mapValue:{fields:e.update.fields}});if(e.updateMask){var a=function(t){return new pS((t.fieldPaths||[]).map(function(t){return fS.fromServerFormat(t)}))}(e.updateMask);return new XT(s,o,a,i,r)}return new KT(s,o,i,r)}if(e.delete){var c=zC(t,e.delete);return new sC(c,i)}if(e.verify){var u=zC(t,e.verify);return new oC(u,i)}return Wx()}function XC(t,e){return{documents:[HC(t,e.path)]}}function tE(t,e){var n={structuredQuery:{}},i=e.path;null!==e.collectionGroup?(n.parent=HC(t,i),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=HC(t,i.popLast()),n.structuredQuery.from=[{collectionId:i.lastSegment()}]);var r=function(t){if(0!==t.length){var e=t.map(function(t){return function(t){if("=="===t.op){if(ZS(t.value))return{unaryFilter:{field:aE(t.field),op:"IS_NAN"}};if(FS(t.value))return{unaryFilter:{field:aE(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(ZS(t.value))return{unaryFilter:{field:aE(t.field),op:"IS_NOT_NAN"}};if(FS(t.value))return{unaryFilter:{field:aE(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:aE(t.field),op:oE(t.op),value:t.value}}}(t)});return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);r&&(n.structuredQuery.where=r);var s=function(t){if(0!==t.length)return t.map(function(t){return{field:aE((e=t).field),direction:sE(e.dir)};var e})}(e.orderBy);s&&(n.structuredQuery.orderBy=s);var o,a=(o=e.limit,t.I||SS(o)?o:{value:o});return null!==a&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=iE(e.startAt)),e.endAt&&(n.structuredQuery.endAt=iE(e.endAt)),n}function eE(t){var e=GC(t.parent),n=t.structuredQuery,i=n.from?n.from.length:0,r=null;if(i>0){Kx(1===i);var s=n.from[0];s.allDescendants?r=s.collectionId:e=e.child(s.collectionId)}var o=[];n.where&&(o=nE(n.where));var a=[];n.orderBy&&(a=n.orderBy.map(function(t){return new oT(cE((e=t).field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction));var e}));var c,u,l=null;n.limit&&(l=SS(u="object"==typeof(c=n.limit)?c.value:c)?null:u);var h=null;n.startAt&&(h=rE(n.startAt));var d=null;return n.endAt&&(d=rE(n.endAt)),hT(e,r,a,o,l,"F",h,d)}function nE(t){return t?void 0!==t.unaryFilter?[lE(t)]:void 0!==t.fieldFilter?[uE(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map(function(t){return nE(t)}).reduce(function(t,e){return t.concat(e)}):Wx():[]}function iE(t){return{before:t.before,values:t.position}}function rE(t){return new rT(t.values||[],!!t.before)}function sE(t){return RC[t]}function oE(t){return LC[t]}function aE(t){return{fieldPath:t.canonicalString()}}function cE(t){return fS.fromServerFormat(t.fieldPath)}function uE(t){return $S.create(cE(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 Wx()}}(t.fieldFilter.op),t.fieldFilter.value)}function lE(t){switch(t.unaryFilter.op){case"IS_NAN":var e=cE(t.unaryFilter.field);return $S.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=cE(t.unaryFilter.field);return $S.create(n,"==",{nullValue:"NULL_VALUE"});
1case"IS_NOT_NAN":var i=cE(t.unaryFilter.field);return $S.create(i,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var r=cE(t.unaryFilter.field);return $S.create(r,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return Wx()}}function hE(t){var e=[];return t.fields.forEach(function(t){return e.push(t.canonicalString())}),{fieldPaths:e}}function dE(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}function fE(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=gE(e)),e=pE(t.get(n),e);return gE(e)}function pE(t,e){for(var n=e,i=t.length,r=0;r<i;r++){var s=t.charAt(r);switch(s){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=s}}return n}function gE(t){return t+"\x01\x01"}function mE(t){var e=t.length;if(Kx(e>=2),2===e)return Kx("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),hS.emptyPath();for(var n=e-2,i=[],r="",s=0;s<e;){var o=t.indexOf("\x01",s);switch((o<0||o>n)&&Wx(),t.charAt(o+1)){case"\x01":var a=t.substring(s,o),c=void 0;0===r.length?c=a:(c=r+=a,r=""),i.push(c);break;case"\x10":r+=t.substring(s,o),r+="\0";break;case"\x11":r+=t.substring(s,o+1);break;default:Wx()}s=o+2}return new hS(i)}var vE=function(t,e){this.seconds=t,this.nanoseconds=e},yE=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};yE.store="owner",yE.key="owner";var bE=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};bE.store="mutationQueues",bE.keyPath="userId";var _E=function(t,e,n,i,r){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=i,this.mutations=r};_E.store="mutations",_E.keyPath="batchId",_E.userMutationsIndex="userMutationsIndex",_E.userMutationsKeyPath=["userId","batchId"];var wE=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,fE(e)]},t.key=function(t,e,n){return[t,fE(e),n]},t}();wE.store="documentMutations",wE.PLACEHOLDER=new wE;var xE=function(t,e){this.path=t,this.readTime=e},SE=function(t,e){this.path=t,this.version=e},TE=function(t,e,n,i,r,s){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=i,this.readTime=r,this.parentPath=s};TE.store="remoteDocuments",TE.readTimeIndex="readTimeIndex",TE.readTimeIndexPath="readTime",TE.collectionReadTimeIndex="collectionReadTimeIndex",TE.collectionReadTimeIndexPath=["parentPath","readTime"];var CE=function(t){this.byteSize=t};CE.store="remoteDocumentGlobal",CE.key="remoteDocumentGlobalKey";var EE=function(t,e,n,i,r,s,o){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=i,this.lastListenSequenceNumber=r,this.lastLimboFreeSnapshotVersion=s,this.query=o};EE.store="targets",EE.keyPath="targetId",EE.queryTargetsIndexName="queryTargetsIndex",EE.queryTargetsKeyPath=["canonicalId","targetId"];var AE=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};AE.store="targetDocuments",AE.keyPath=["targetId","path"],AE.documentTargetsIndex="documentTargetsIndex",AE.documentTargetsKeyPath=["path","targetId"];var IE=function(t,e,n,i){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=i};IE.key="targetGlobalKey",IE.store="targetGlobal";var kE=function(t,e){this.collectionId=t,this.parent=e};kE.store="collectionParents",kE.keyPath=["collectionId","parent"];var OE=function(t,e,n,i){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=i};OE.store="clientMetadata",OE.keyPath="clientId";var DE=function(t,e,n){this.bundleId=t,this.createTime=e,this.version=n};DE.store="bundles",DE.keyPath="bundleId";var NE=function(t,e,n){this.name=t,this.readTime=e,this.bundledQuery=n};NE.store="namedQueries",NE.keyPath="name";var PE=wy(wy([],wy(wy([],wy(wy([],wy(wy([],[bE.store,_E.store,wE.store,TE.store,EE.store,yE.store,IE.store,AE.store]),[OE.store])),[CE.store])),[kE.store])),[DE.store,NE.store]),RE="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",LE=function(){function t(){this.onCommittedListeners=[]}return t.prototype.addOnCommittedListener=function(t){this.onCommittedListeners.push(t)},t.prototype.raiseOnCommittedEvent=function(){this.onCommittedListeners.forEac
1h(function(t){return t()})},t}(),ME=function(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})},FE=function(){function t(t){var e=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,t(function(t){e.isDone=!0,e.result=t,e.nextCallback&&e.nextCallback(t)},function(t){e.isDone=!0,e.error=t,e.catchCallback&&e.catchCallback(t)})}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var i=this;return this.callbackAttached&&Wx(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new t(function(t,r){i.nextCallback=function(n){i.wrapSuccess(e,n).next(t,r)},i.catchCallback=function(e){i.wrapFailure(n,e).next(t,r)}})},t.prototype.toPromise=function(){var t=this;return new Promise(function(e,n){t.next(e,n)})},t.prototype.wrapUserFunction=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(i){return t.reject(i)}},t.prototype.wrapSuccess=function(e,n){return e?this.wrapUserFunction(function(){return e(n)}):t.resolve(n)},t.prototype.wrapFailure=function(e,n){return e?this.wrapUserFunction(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.waitFor=function(e){return new t(function(t,n){var i=0,r=0,s=!1;e.forEach(function(e){++i,e.next(function(){++r,s&&r===i&&t()},function(t){return n(t)})}),s=!0,r===i&&t()})},t.or=function(e){for(var n=t.resolve(!1),i=function(e){n=n.next(function(n){return n?t.resolve(n):e()})},r=0,s=e;r<s.length;r++)i(s[r]);return n},t.forEach=function(t,e){var n=this,i=[];return t.forEach(function(t,r){i.push(e.call(n,t,r))}),this.waitFor(i)},t}(),ZE=function(){function t(t,e){var n=this;this.action=t,this.transaction=e,this.aborted=!1,this.ft=new ME,this.transaction.oncomplete=function(){n.ft.resolve()},this.transaction.onabort=function(){e.error?n.ft.reject(new VE(t,e.error)):n.ft.resolve()},this.transaction.onerror=function(e){var i=GE(e.target.error);n.ft.reject(new VE(t,i))}}return t.open=function(e,n,i,r){try{return new t(n,e.transaction(r,i))}catch(s){throw new VE(n,s)}},Object.defineProperty(t.prototype,"dt",{get:function(){return this.ft.promise},enumerable:!1,configurable:!0}),t.prototype.abort=function(t){t&&this.ft.reject(t),this.aborted||(Yx("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 BE(e)},t}(),qE=function(){function t(e,n,i){this.name=e,this.version=n,this.wt=i,12.2===t._t(Ty())&&Qx("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 Yx("SimpleDb","Removing database:",t),zE(window.indexedDB.deleteDatabase(t)).toPromise()},t.yt=function(){if("undefined"==typeof indexedDB)return!1;if(t.gt())return!0;var e=Ty(),n=t._t(e),i=0<n&&n<10,r=t.Et(e),s=0<r&&r<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||i||s)},t.gt=function(){var t;return"undefined"!=typeof process&&"YES"===(null===(t=process.env)||void 0===t?void 0:t.Tt)},t.It=function(t,e){return t.store(e)},t._t=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.Et=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.At=function(t){return vy(this,void 0,void 0,function(){var e,n=this;return yy(this,function(i){switch(i.label){case 0:return this.db?[3,2]:(Yx("SimpleDb","Opening database:",this.name),e=this,[4,new Promise(function(e,i){var r=indexedDB.open(n.name,n.version);r.onsuccess=function(t){e(t.target.result)},r.onblocked=function(){i(new VE(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},r.onerror=function(e){var n=e.target.error;
1i("VersionError"===n.name?new zx(Bx.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 VE(t,n))},r.onupgradeneeded=function(t){Yx("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',t.oldVersion),n.wt.Rt(t.target.result,r.transaction,t.oldVersion,n.version).next(function(){Yx("SimpleDb","Database upgrade to version "+n.version+" complete")})}})]);case 1:e.db=i.sent(),i.label=2;case 2:return[2,(this.bt&&(this.db.onversionchange=function(t){return n.bt(t)}),this.db)]}})})},t.prototype.vt=function(t){this.bt=t,this.db&&(this.db.onversionchange=function(e){return t(e)})},t.prototype.runTransaction=function(t,e,n,i){return vy(this,void 0,void 0,function(){var r,s,o,a,c;return yy(this,function(u){switch(u.label){case 0:r="readonly"===e,s=0,o=function(){var e,o,c,u,l;return yy(this,function(h){switch(h.label){case 0:++s,h.label=1;case 1:return h.trys.push([1,4,,5]),[4,a.At(t)];case 2:return a.db=h.sent(),e=ZE.open(a.db,t,r?"readonly":"readwrite",n),o=i(e).catch(function(t){return e.abort(t),FE.reject(t)}).toPromise(),c={},o.catch(function(){}),[4,e.dt];case 3:return[2,(c.value=(h.sent(),o),c)];case 4:return Yx("SimpleDb","Transaction failed with error:",(u=h.sent()).message,"Retrying:",l="FirebaseError"!==u.name&&s<3),a.close(),l?[3,5]:[2,{value:Promise.reject(u)}];case 5:return[2]}})},a=this,u.label=1;case 1:return[5,o()];case 2:if("object"==typeof(c=u.sent()))return[2,c.value];u.label=3;case 3:return[3,1];case 4:return[2]}})})},t.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},t}(),UE=function(){function t(t){this.Pt=t,this.Vt=!1,this.St=null}return Object.defineProperty(t.prototype,"isDone",{get:function(){return this.Vt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dt",{get:function(){return this.St},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.Pt=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.Vt=!0},t.prototype.Ct=function(t){this.St=t},t.prototype.delete=function(){return zE(this.Pt.delete())},t}(),VE=function(t){function e(e,n){var i=this;return(i=t.call(this,Bx.UNAVAILABLE,"IndexedDB transaction '"+e+"' failed: "+n)||this).name="IndexedDbTransactionError",i}return gy(e,t),e}(zx);function jE(t){return"IndexedDbTransactionError"===t.name}var BE=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(Yx("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(Yx("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),zE(n)},t.prototype.add=function(t){return Yx("SimpleDb","ADD",this.store.name,t,t),zE(this.store.add(t))},t.prototype.get=function(t){var e=this;return zE(this.store.get(t)).next(function(n){return void 0===n&&(n=null),Yx("SimpleDb","GET",e.store.name,t,n),n})},t.prototype.delete=function(t){return Yx("SimpleDb","DELETE",this.store.name,t),zE(this.store.delete(t))},t.prototype.count=function(){return Yx("SimpleDb","COUNT",this.store.name),zE(this.store.count())},t.prototype.Nt=function(t,e){var n=this.cursor(this.options(t,e)),i=[];return this.xt(n,function(t,e){i.push(e)}).next(function(){return i})},t.prototype.Ft=function(t,e){Yx("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.kt=!1;var i=this.cursor(n);return this.xt(i,function(t,e,n){return n.delete()})},t.prototype.$t=function(t,e){var n;e?n=t:(n={},e=t);var i=this.cursor(n);return this.xt(i,e)},t.prototype.Ot=function(t){var e=this.cursor({});return new FE(function(n,i){e.onerror=function(t){var e=GE(t.target.error);i(e)},e.onsuccess=function(e){var i=e.target.result;i?t(i.primaryKey,i.value).next(function(t){t?i.continue():n()}):n()}})},t.prototype.xt=function(t,e){var n=[];return new FE(function(i,r){t.onerror=function(t){r(t.target.error)},t.onsuccess=function(t){var r=t.target.result;if(r){var s=new UE(r),o=e(r.primaryKey,r.value,s);if(o instanceof FE){var a=o.catch(function(t){return s.done(),FE.reject(t)});n.push(a)}s.isDone?i():null===s.Dt?r.continue():r.continue(s.Dt)}else i()}}).next(function(){return FE.waitFor(n)})},t.prototype.options=function(t,e){var n;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.kt?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function zE(t){return new FE(function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){var e=GE(t.target.error);n(e)}})}var HE=!1;function GE(t){var e=qE._t(Ty());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 i=new zx("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 HE||(HE=!0,setTimeout(function(){throw i},0)),i}}return t}var YE=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).Mt=e,i.currentSequenceNumber=n,i}return gy(e,t),e}(LE);function QE(t,e){var n=Xx(t);return qE.It(n.Mt,e)}var $E=function(){function t(t,e,n,i){this.batchId=t,this.localWriteTime=e,this.baseMutations=n,this.mutations=i}return t.prototype.applyToRemoteDocument=function(t,e){for(var n=e.mutationResults,i=0;i<this.mutations.length;i++){var r=this.mutations[i];r.key.isEqual(t.key)&&YT(r,t,n[i])}},t.prototype.applyToLocalView=function(t){for(var e=0,n=this.baseMutations;e<n.length;e++)(s=n[e]).key.isEqual(t.key)&&QT(s,t,this.localWriteTime);for(var i=0,r=this.mutations;i<r.length;i++){var s;(s=r[i]).key.isEqual(t.key)&&QT(s,t,this.localWriteTime)}},t.prototype.applyToLocalDocumentSet=function(t){var e=this;this.mutations.forEach(function(n){var i=t.get(n.key),r=i;e.applyToLocalView(r),i.isValidDocument()||r.convertToNoDocument(oS.min())})},t.prototype.keys=function(){return this.mutations.reduce(function(t,e){return t.add(e.key)},xC())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&iS(this.mutations,t.mutations,function(t,e){return JT(t,e)})&&iS(this.baseMutations,t.baseMutations,function(t,e){return JT(t,e)})},t}(),JE=function(){function t(t,e,n,i){this.batch=t,this.commitVersion=e,this.mutationResults=n,this.docVersions=i}return t.from=function(e,n,i){Kx(e.mutations.length===i.length);for(var r=_C(),s=e.mutations,o=0;o<s.length;o++)r=r.insert(s[o].key,i[o].version);return new t(e,n,i,r)},t}(),WE=function(){function t(t,e,n,i,r,s,o){void 0===r&&(r=oS.min()),void 0===s&&(s=oS.min()),void 0===o&&(o=gS.EMPTY_BYTE_STRING),this.target=t,this.targetId=e,this.purpose=n,this.sequenceNumber=i,this.snapshotVersion=r,this.lastLimboFreeSnapshotVersion=s,this.resumeToken=o}return t.prototype.withSequenceNumber=function(e){return new t(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.withResumeToken=function(e,n){return new t(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.withLastLimboFreeSnapshotVersion=function(e){return new t(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken)},t}(),KE=function(t){this.Lt=t};function XE(t,e){if(e.document)return JC(t.Lt,e.document,!!e.hasCommittedMutations);if(e.noDocument){var n=ES.fromSegments(e.noDocument.path),i=rA(e.noDocument.readTime),r=BS.newNoDocument(n,i);return e.hasCommittedMutations?r.setHasCommittedMutations():r}if(e.unknownDocument){var s=ES.fromSegments(e.unknownDocument.path);return i=rA(e.unknownDocument.version),BS.newUnknownDocument(s,i)}return Wx()}function tA(t,e,n){var i,r,s=eA(n),o=e.key.path.popLast().toArray();if(e.isFoundDocument()){var a={name:BC(i=t.Lt,(r=e).key),fields:r.data.value.mapValue.fields,updateTime:FC(i,r.version.toTimestamp())},c=e.hasCommittedMutations;return new TE(null,null,a,c,s,o)}if(e.isNoDocument()){var u=e.key.path.toArray(),l=iA(e.version);return c=e.hasCommittedMutations,new TE(null,new xE(u,l),null,c,s,o)}
1if(e.isUnknownDocument()){var h=e.key.path.toArray(),d=iA(e.version);return new TE(new SE(h,d),null,null,!0,s,o)}return Wx()}function eA(t){var e=t.toTimestamp();return[e.seconds,e.nanoseconds]}function nA(t){var e=new sS(t[0],t[1]);return oS.fromTimestamp(e)}function iA(t){var e=t.toTimestamp();return new vE(e.seconds,e.nanoseconds)}function rA(t){var e=new sS(t.seconds,t.nanoseconds);return oS.fromTimestamp(e)}function sA(t,e){for(var n=(e.baseMutations||[]).map(function(e){return KC(t.Lt,e)}),i=0;i<e.mutations.length-1;++i)i+1<e.mutations.length&&void 0!==e.mutations[i+1].transform&&(e.mutations[i].updateTransforms=e.mutations[i+1].transform.fieldTransforms,e.mutations.splice(i+1,1),++i);var r=e.mutations.map(function(e){return KC(t.Lt,e)}),s=sS.fromMillis(e.localWriteTimeMs);return new $E(e.batchId,s,n,r)}function oA(t){var e,n,i=rA(t.readTime),r=void 0!==t.lastLimboFreeSnapshotVersion?rA(t.lastLimboFreeSnapshotVersion):oS.min();return void 0!==t.query.documents?(Kx(1===(n=t.query).documents.length),e=bT(dT(GC(n.documents[0])))):e=bT(eE(t.query)),new WE(e,t.targetId,0,t.lastListenSequenceNumber,i,r,gS.fromBase64String(t.resumeToken))}function aA(t,e){var n,i=iA(e.snapshotVersion),r=iA(e.lastLimboFreeSnapshotVersion);n=QS(e.target)?XC(t.Lt,e.target):tE(t.Lt,e.target);var s=e.resumeToken.toBase64();return new EE(e.targetId,GS(e.target),i,s,e.sequenceNumber,r,n)}function cA(t){var e=eE({parent:t.parent,structuredQuery:t.structuredQuery});return"LAST"===t.limitType?_T(e,e.limit,"L"):e}var uA=function(){function t(){}return t.prototype.getBundleMetadata=function(t,e){return lA(t).get(e).next(function(t){if(t)return{id:(e=t).bundleId,createTime:rA(e.createTime),version:e.version};var e})},t.prototype.saveBundleMetadata=function(t,e){return lA(t).put({bundleId:(n=e).id,createTime:iA(UC(n.createTime)),version:n.version});var n},t.prototype.getNamedQuery=function(t,e){return hA(t).get(e).next(function(t){if(t)return{name:(e=t).name,query:cA(e.bundledQuery),readTime:rA(e.readTime)};var e})},t.prototype.saveNamedQuery=function(t,e){return hA(t).put({name:(n=e).name,readTime:iA(UC(n.readTime)),bundledQuery:n.bundledQuery});var n},t}();function lA(t){return QE(t,DE.store)}function hA(t){return QE(t,NE.store)}var dA=function(){function t(){this.Bt=new fA}return t.prototype.addToCollectionParentIndex=function(t,e){return this.Bt.add(e),FE.resolve()},t.prototype.getCollectionParents=function(t,e){return FE.resolve(this.Bt.getEntries(e))},t}(),fA=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.lastSegment(),n=t.popLast(),i=this.index[e]||new fC(hS.comparator),r=!i.has(n);return this.index[e]=i.add(n),r},t.prototype.has=function(t){var e=t.lastSegment(),n=t.popLast(),i=this.index[e];return i&&i.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new fC(hS.comparator)).toArray()},t}(),pA=function(){function t(){this.qt=new fA}return t.prototype.addToCollectionParentIndex=function(t,e){var n=this;if(!this.qt.has(e)){var i=e.lastSegment(),r=e.popLast();t.addOnCommittedListener(function(){n.qt.add(e)});var s={collectionId:i,parent:fE(r)};return gA(t).put(s)}return FE.resolve()},t.prototype.getCollectionParents=function(t,e){var n=[],i=IDBKeyRange.bound([e,""],[rS(e),""],!1,!0);return gA(t).Nt(i).next(function(t){for(var i=0,r=t;i<r.length;i++){var s=r[i];if(s.collectionId!==e)break;n.push(mE(s.parent))}return n})},t}();function gA(t){return QE(t,kE.store)}var mA={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},vA=function(){function t(t,e,n){this.cacheSizeCollectionThreshold=t,this.percentileToCollect=e,this.maximumSequenceNumbersToCollect=n}return t.withCacheSize=function(e){return new t(e,t.DEFAULT_COLLECTION_PERCENTILE,t.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)},t}();function yA(t,e,n){var i=t.store(_E.store),r=t.store(wE.store),s=[],o=IDBKeyRange.only(n.batchId),a=0,c=i.$t({range:o},function(t,e,n){return a++,n.delete()});s.push(c.next(function(){Kx(1===a)}));for(var u=[],l=0,h=n.mutations;l<h.length;l++){var d=h[l],f=wE.key(e,d.key.path,n.batchId);s.push(r.delete(f)),u.push(d.key)}return FE.waitFor(s).next(function(){return u})}function bA(t){if(!t)return 0;var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw Wx();e=t.noDocument}return JSON.stringify(e).length}
1vA.DEFAULT_COLLECTION_PERCENTILE=10,vA.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,vA.DEFAULT=new vA(41943040,vA.DEFAULT_COLLECTION_PERCENTILE,vA.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),vA.DISABLED=new vA(-1,0,0);var _A=function(){function t(t,e,n,i){this.userId=t,this.R=e,this.Ut=n,this.referenceDelegate=i,this.Kt={}}return t.Qt=function(e,n,i,r){return Kx(""!==e.uid),new t(e.isAuthenticated()?e.uid:"",n,i,r)},t.prototype.checkEmpty=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return xA(t).$t({index:_E.userMutationsIndex,range:n},function(t,n,i){e=!1,i.done()}).next(function(){return e})},t.prototype.addMutationBatch=function(t,e,n,i){var r=this,s=SA(t),o=xA(t);return o.add({}).next(function(a){Kx("number"==typeof a);for(var c=new $E(a,e,n,i),u=function(t,e,n){var i=n.baseMutations.map(function(e){return WC(t.Lt,e)}),r=n.mutations.map(function(e){return WC(t.Lt,e)});return new _E(e,n.batchId,n.localWriteTime.toMillis(),i,r)}(r.R,r.userId,c),l=[],h=new fC(function(t,e){return nS(t.canonicalString(),e.canonicalString())}),d=0,f=i;d<f.length;d++){var p=f[d],g=wE.key(r.userId,p.key.path,a);h=h.add(p.key.path.popLast()),l.push(o.put(u)),l.push(s.put(g,wE.PLACEHOLDER))}return h.forEach(function(e){l.push(r.Ut.addToCollectionParentIndex(t,e))}),t.addOnCommittedListener(function(){r.Kt[a]=c.keys()}),FE.waitFor(l).next(function(){return c})})},t.prototype.lookupMutationBatch=function(t,e){var n=this;return xA(t).get(e).next(function(t){return t?(Kx(t.userId===n.userId),sA(n.R,t)):null})},t.prototype.jt=function(t,e){var n=this;return this.Kt[e]?FE.resolve(this.Kt[e]):this.lookupMutationBatch(t,e).next(function(t){if(t){var i=t.keys();return n.Kt[e]=i,i}return null})},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=this,i=e+1,r=IDBKeyRange.lowerBound([this.userId,i]),s=null;return xA(t).$t({index:_E.userMutationsIndex,range:r},function(t,e,r){e.userId===n.userId&&(Kx(e.batchId>=i),s=sA(n.R,e)),r.done()}).next(function(){return s})},t.prototype.getHighestUnacknowledgedBatchId=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return xA(t).$t({index:_E.userMutationsIndex,range:e,reverse:!0},function(t,e,i){n=e.batchId,i.done()}).next(function(){return n})},t.prototype.getAllMutationBatches=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return xA(t).Nt(_E.userMutationsIndex,n).next(function(t){return t.map(function(t){return sA(e.R,t)})})},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,i=wE.prefixForPath(this.userId,e.path),r=IDBKeyRange.lowerBound(i),s=[];return SA(t).$t({range:r},function(i,r,o){var a=i[0],c=i[2],u=mE(i[1]);if(a===n.userId&&e.path.isEqual(u))return xA(t).get(c).next(function(t){if(!t)throw Wx();Kx(t.userId===n.userId),s.push(sA(n.R,t))});o.done()}).next(function(){return s})},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,i=new fC(nS),r=[];return e.forEach(function(e){var s=wE.prefixForPath(n.userId,e.path),o=IDBKeyRange.lowerBound(s),a=SA(t).$t({range:o},function(t,r,s){var o=t[0],a=t[2],c=mE(t[1]);o===n.userId&&e.path.isEqual(c)?i=i.add(a):s.done()});r.push(a)}),FE.waitFor(r).next(function(){return n.Wt(t,i)})},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=this,i=e.path,r=i.length+1,s=wE.prefixForPath(this.userId,i),o=IDBKeyRange.lowerBound(s),a=new fC(nS);return SA(t).$t({range:o},function(t,e,s){var o=t[0],c=t[2],u=mE(t[1]);o===n.userId&&i.isPrefixOf(u)?u.length===r&&(a=a.add(c)):s.done()}).next(function(){return n.Wt(t,a)})},t.prototype.Wt=function(t,e){var n=this,i=[],r=[];return e.forEach(function(e){r.push(xA(t).get(e).next(function(t){if(null===t)throw Wx();Kx(t.userId===n.userId),i.push(sA(n.R,t))}))}),FE.waitFor(r).next(function(){return i})},t.prototype.removeMutationBatch=function(t,e){var n=this;return yA(t.Mt,this.userId,e).next(function(i){return t.addOnCommittedListener(function(){n.Gt(e.batchId)}),FE.forEach(i,function(e){return n.referenceDelegate.markPotentiallyOrphaned(t,e)})})},t.prototype.Gt=function(t){delete this.Kt[t]},t.prototype.performConsistencyCheck=function(t){var e=this;return this.checkEmpty(t).next(function(n){if(!n)return FE.resolve();
1var i=IDBKeyRange.lowerBound(wE.prefixForUser(e.userId)),r=[];return SA(t).$t({range:i},function(t,n,i){if(t[0]===e.userId){var s=mE(t[1]);r.push(s)}else i.done()}).next(function(){Kx(0===r.length)})})},t.prototype.containsKey=function(t,e){return wA(t,this.userId,e)},t.prototype.zt=function(t){var e=this;return TA(t).get(this.userId).next(function(t){return t||new bE(e.userId,-1,"")})},t}();function wA(t,e,n){var i=wE.prefixForPath(e,n.path),r=i[1],s=IDBKeyRange.lowerBound(i),o=!1;return SA(t).$t({range:s,kt:!0},function(t,n,i){t[0]===e&&t[1]===r&&(o=!0),i.done()}).next(function(){return o})}function xA(t){return QE(t,_E.store)}function SA(t){return QE(t,wE.store)}function TA(t){return QE(t,bE.store)}var CA=function(){function t(t){this.Ht=t}return t.prototype.next=function(){return this.Ht+=2,this.Ht},t.Jt=function(){return new t(0)},t.Yt=function(){return new t(-1)},t}(),EA=function(){function t(t,e){this.referenceDelegate=t,this.R=e}return t.prototype.allocateTargetId=function(t){var e=this;return this.Xt(t).next(function(n){var i=new CA(n.highestTargetId);return n.highestTargetId=i.next(),e.Zt(t,n).next(function(){return n.highestTargetId})})},t.prototype.getLastRemoteSnapshotVersion=function(t){return this.Xt(t).next(function(t){return oS.fromTimestamp(new sS(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))})},t.prototype.getHighestSequenceNumber=function(t){return this.Xt(t).next(function(t){return t.highestListenSequenceNumber})},t.prototype.setTargetsMetadata=function(t,e,n){var i=this;return this.Xt(t).next(function(r){return r.highestListenSequenceNumber=e,n&&(r.lastRemoteSnapshotVersion=n.toTimestamp()),e>r.highestListenSequenceNumber&&(r.highestListenSequenceNumber=e),i.Zt(t,r)})},t.prototype.addTargetData=function(t,e){var n=this;return this.te(t,e).next(function(){return n.Xt(t).next(function(i){return i.targetCount+=1,n.ee(e,i),n.Zt(t,i)})})},t.prototype.updateTargetData=function(t,e){return this.te(t,e)},t.prototype.removeTargetData=function(t,e){var n=this;return this.removeMatchingKeysForTargetId(t,e.targetId).next(function(){return AA(t).delete(e.targetId)}).next(function(){return n.Xt(t)}).next(function(e){return Kx(e.targetCount>0),e.targetCount-=1,n.Zt(t,e)})},t.prototype.removeTargets=function(t,e,n){var i=this,r=0,s=[];return AA(t).$t(function(o,a){var c=oA(a);c.sequenceNumber<=e&&null===n.get(c.targetId)&&(r++,s.push(i.removeTargetData(t,c)))}).next(function(){return FE.waitFor(s)}).next(function(){return r})},t.prototype.forEachTarget=function(t,e){return AA(t).$t(function(t,n){var i=oA(n);e(i)})},t.prototype.Xt=function(t){return IA(t).get(IE.key).next(function(t){return Kx(null!==t),t})},t.prototype.Zt=function(t,e){return IA(t).put(IE.key,e)},t.prototype.te=function(t,e){return AA(t).put(aA(this.R,e))},t.prototype.ee=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.getTargetCount=function(t){return this.Xt(t).next(function(t){return t.targetCount})},t.prototype.getTargetData=function(t,e){var n=GS(e),i=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),r=null;return AA(t).$t({range:i,index:EE.queryTargetsIndexName},function(t,n,i){var s=oA(n);YS(e,s.target)&&(r=s,i.done())}).next(function(){return r})},t.prototype.addMatchingKeys=function(t,e,n){var i=this,r=[],s=kA(t);return e.forEach(function(e){var o=fE(e.path);r.push(s.put(new AE(n,o))),r.push(i.referenceDelegate.addReference(t,n,e))}),FE.waitFor(r)},t.prototype.removeMatchingKeys=function(t,e,n){var i=this,r=kA(t);return FE.forEach(e,function(e){var s=fE(e.path);return FE.waitFor([r.delete([n,s]),i.referenceDelegate.removeReference(t,n,e)])})},t.prototype.removeMatchingKeysForTargetId=function(t,e){var n=kA(t),i=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(i)},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),i=kA(t),r=xC();return i.$t({range:n,kt:!0},function(t,e,n){var i=mE(t[1]),s=new ES(i);r=r.add(s)}).next(function(){return r})},t.prototype.containsKey=function(t,e){var n=fE(e.path),i=IDBKeyRange.bound([n],[rS(n)],!1,!0),r=0;return kA(t).$t({index:AE.documentTargetsIndex,kt:!0,range:i},function(t,e,n){0!==t[0]&&(r++,n.done())}).next(function(){return r>0})},t.prototype.lt=function(t,e){return AA(t).get(e).next(function(t){return t?oA(t):null})},t}();function AA(t){return QE(t,EE.store)}function IA(t){return QE(t,IE.store)}function kA(t){return QE(t,AE.store)}function OA(t){return vy(this,void 0,void 0,function(){return yy(this,function(e){if(t.code!==Bx.FAILED_PRECONDITION||t.message!==RE)throw t;return Yx("LocalStore","Unexpectedly lost primary lease"),[2]})})}function DA(t,e){var n=t[1],i=e[1],r=nS(t[0],e[0]);return 0===r?nS(n,i):r}var NA=function(){function t(t){this.ne=t,this.buffer=new fC(DA),this.se=0}return t.prototype.ie=function(){return++this.se},t.prototype.re=function(t){var e=[t,this.ie()];if(this.buffer.size<this.ne)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();DA(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]}
1,enumerable:!1,configurable:!0}),t}(),PA=function(){function t(t,e){this.garbageCollector=t,this.asyncQueue=e,this.oe=!1,this.ce=null}return t.prototype.start=function(t){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.ue(t)},t.prototype.stop=function(){this.ce&&(this.ce.cancel(),this.ce=null)},Object.defineProperty(t.prototype,"started",{get:function(){return null!==this.ce},enumerable:!1,configurable:!0}),t.prototype.ue=function(t){var e=this,n=this.oe?3e5:6e4;Yx("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.ce=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",n,function(){return vy(e,void 0,void 0,function(){var e;return yy(this,function(n){switch(n.label){case 0:this.ce=null,this.oe=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.collectGarbage(this.garbageCollector)];case 2:return n.sent(),[3,7];case 3:return jE(e=n.sent())?(Yx("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]):[3,4];case 4:return[4,OA(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.ue(t)];case 8:return n.sent(),[2]}})})})},t}(),RA=function(){function t(t,e){this.ae=t,this.params=e}return t.prototype.calculateTargetCount=function(t,e){return this.ae.he(t).next(function(t){return Math.floor(e/100*t)})},t.prototype.nthSequenceNumber=function(t,e){var n=this;if(0===e)return FE.resolve(jx.o);var i=new NA(e);return this.ae.forEachTarget(t,function(t){return i.re(t.sequenceNumber)}).next(function(){return n.ae.le(t,function(t){return i.re(t)})}).next(function(){return i.maxValue})},t.prototype.removeTargets=function(t,e,n){return this.ae.removeTargets(t,e,n)},t.prototype.removeOrphanedDocuments=function(t,e){return this.ae.removeOrphanedDocuments(t,e)},t.prototype.collect=function(t,e){var n=this;return-1===this.params.cacheSizeCollectionThreshold?(Yx("LruGarbageCollector","Garbage collection skipped; disabled"),FE.resolve(mA)):this.getCacheSize(t).next(function(i){return i<n.params.cacheSizeCollectionThreshold?(Yx("LruGarbageCollector","Garbage collection skipped; Cache size "+i+" is lower than threshold "+n.params.cacheSizeCollectionThreshold),mA):n.fe(t,e)})},t.prototype.getCacheSize=function(t){return this.ae.getCacheSize(t)},t.prototype.fe=function(t,e){var n,i,r,s,o,a,c,u=this,l=Date.now();return this.calculateTargetCount(t,this.params.percentileToCollect).next(function(e){return e>u.params.maximumSequenceNumbersToCollect?(Yx("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+u.params.maximumSequenceNumbersToCollect+" from "+e),i=u.params.maximumSequenceNumbersToCollect):i=e,s=Date.now(),u.nthSequenceNumber(t,i)}).next(function(i){return n=i,o=Date.now(),u.removeTargets(t,n,e)}).next(function(e){return r=e,a=Date.now(),u.removeOrphanedDocuments(t,n)}).next(function(t){return c=Date.now(),Gx()<=Dy.in.DEBUG&&Yx("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(s-l)+"ms\n\tDetermined least recently used "+i+" in "+(o-s)+"ms\n\tRemoved "+r+" targets in "+(a-o)+"ms\n\tRemoved "+t+" documents in "+(c-a)+"ms\nTotal Duration: "+(c-l)+"ms"),FE.resolve({didRun:!0,sequenceNumbersCollected:i,targetsRemoved:r,documentsRemoved:t})})},t}(),LA=function(){function t(t,e){this.db=t,this.garbageCollector=new RA(this,e)}return t.prototype.he=function(t){var e=this.de(t);return this.db.getTargetCache().getTargetCount(t).next(function(t){return e.next(function(e){return t+e})})},t.prototype.de=function(t){var e=0;return this.le(t,function(t){e++}).next(function(){return e})},t.prototype.forEachTarget=function(t,e){return this.db.getTargetCache().forEachTarget(t,e)},t.prototype.le=function(t,e){return this.we(t,function(t,n){return e(n)})},t.prototype.addReference=function(t,e,n){return MA(t,n)},t.prototype.removeReference=function(t,e,n){return MA(t,n)},t.prototype.removeTargets=function(t,e,n){return this.db.getTargetCache().removeTargets(t,e,n)},t.prototype.markPotentiallyOrphaned=function(t,e){return MA(t,e)},t.prototype._e=function(t,e){return i=e,r=!1,TA(n=t).Ot(function(t){return wA(n,t,i
1).next(function(t){return t&&(r=!0),FE.resolve(!t)})}).next(function(){return r});var n,i,r},t.prototype.removeOrphanedDocuments=function(t,e){var n=this,i=this.db.getRemoteDocumentCache().newChangeBuffer(),r=[],s=0;return this.we(t,function(o,a){if(a<=e){var c=n._e(t,o).next(function(e){if(!e)return s++,i.getEntry(t,o).next(function(){return i.removeEntry(o),kA(t).delete([0,fE(o.path)])})});r.push(c)}}).next(function(){return FE.waitFor(r)}).next(function(){return i.apply(t)}).next(function(){return s})},t.prototype.removeTarget=function(t,e){var n=e.withSequenceNumber(t.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(t,n)},t.prototype.updateLimboDocument=function(t,e){return MA(t,e)},t.prototype.we=function(t,e){var n,i=kA(t),r=jx.o;return i.$t({index:AE.documentTargetsIndex},function(t,i){var s=i.path,o=i.sequenceNumber;0===t[0]?(r!==jx.o&&e(new ES(mE(n)),r),r=o,n=s):r=jx.o}).next(function(){r!==jx.o&&e(new ES(mE(n)),r)})},t.prototype.getCacheSize=function(t){return this.db.getRemoteDocumentCache().getSize(t)},t}();function MA(t,e){return kA(t).put((n=t.currentSequenceNumber,new AE(0,fE(e.path),n)));var n}var FA=function(){function t(t,e){this.mapKeyFn=t,this.equalsFn=e,this.inner={}}return t.prototype.get=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0!==n)for(var i=0,r=n;i<r.length;i++){var s=r[i],o=s[1];if(this.equalsFn(s[0],t))return o}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.mapKeyFn(t),i=this.inner[n];if(void 0!==i){for(var r=0;r<i.length;r++)if(this.equalsFn(i[r][0],t))return void(i[r]=[t,e]);i.push([t,e])}else this.inner[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0===n)return!1;for(var i=0;i<n.length;i++)if(this.equalsFn(n[i][0],t))return 1===n.length?delete this.inner[e]:n.splice(i,1),!0;return!1},t.prototype.forEach=function(t){cS(this.inner,function(e,n){for(var i=0,r=n;i<r.length;i++){var s=r[i];t(s[0],s[1])}})},t.prototype.isEmpty=function(){return uS(this.inner)},t}(),ZA=function(){function t(){this.changes=new FA(function(t){return t.toString()},function(t,e){return t.isEqual(e)}),this.changesApplied=!1}return t.prototype.getReadTime=function(t){var e=this.changes.get(t);return e?e.readTime:oS.min()},t.prototype.addEntry=function(t,e){this.assertNotApplied(),this.changes.set(t.key,{document:t,readTime:e})},t.prototype.removeEntry=function(t,e){void 0===e&&(e=null),this.assertNotApplied(),this.changes.set(t,{document:BS.newInvalidDocument(t),readTime:e})},t.prototype.getEntry=function(t,e){this.assertNotApplied();var n=this.changes.get(e);return void 0!==n?FE.resolve(n.document):this.getFromCache(t,e)},t.prototype.getEntries=function(t,e){return this.getAllFromCache(t,e)},t.prototype.apply=function(t){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(t)},t.prototype.assertNotApplied=function(){},t}(),qA=function(){function t(t,e){this.R=t,this.Ut=e}return t.prototype.addEntry=function(t,e,n){return jA(t).put(BA(e),n)},t.prototype.removeEntry=function(t,e){var n=jA(t),i=BA(e);return n.delete(i)},t.prototype.updateMetadata=function(t,e){var n=this;return this.getMetadata(t).next(function(i){return i.byteSize+=e,n.me(t,i)})},t.prototype.getEntry=function(t,e){var n=this;return jA(t).get(BA(e)).next(function(t){return n.ye(e,t)})},t.prototype.ge=function(t,e){var n=this;return jA(t).get(BA(e)).next(function(t){return{document:n.ye(e,t),size:bA(t)}})},t.prototype.getEntries=function(t,e){var n=this,i=mC();return this.pe(t,e,function(t,e){var r=n.ye(t,e);i=i.insert(t,r)}).next(function(){return i})},t.prototype.Ee=function(t,e){var n=this,i=mC(),r=new lC(ES.comparator);return this.pe(t,e,function(t,e){var s=n.ye(t,e);i=i.insert(t,s),r=r.insert(t,bA(e))}).next(function(){return{documents:i,Te:r}})},t.prototype.pe=function(t,e,n){if(e.isEmpty())return FE.resolve();var i=IDBKeyRange.bound(e.first().path.toArray(),e.last().path.toArray()),r=e.getIterator(),s=r.getNext();return jA(t).$t({range:i},function(t,e,i){for(var o=ES.fromSegments(t);s&&ES.comparator(s,o)<0;)n(s,null),s=r.getNext();s&&s.isEqual(o)&&(n(s,e),s=r.hasNext()?r.getNext():null),s?i.Ct(s.path.toArray()):i.done()}).next(function(){for(;s;)n(s,null),s=r.hasNext()?r.getNext():null})},t.prototype.getDocumentsMatchingQuery=function(t,e,n){var i=this,r=mC(),s=e.path.length+1,o={};if(n.isEqual(oS.min())){var a=e.path.toArray();o.range=IDBKeyRange.lowerBound(a)}else{var c=e.path.toArray(),u=eA(n);o.range=IDBKeyRange.lowerBound([c,u],!0),o.index=TE.collectionReadTimeIndex}return jA(t).$t(o,function(t,n,o){if(t.length===s){var a=XE(i.R,n);
1e.path.isPrefixOf(a.key.path)?TT(e,a)&&(r=r.insert(a.key,a)):o.done()}}).next(function(){return r})},t.prototype.newChangeBuffer=function(t){return new UA(this,!!t&&t.trackRemovals)},t.prototype.getSize=function(t){return this.getMetadata(t).next(function(t){return t.byteSize})},t.prototype.getMetadata=function(t){return VA(t).get(CE.key).next(function(t){return Kx(!!t),t})},t.prototype.me=function(t,e){return VA(t).put(CE.key,e)},t.prototype.ye=function(t,e){if(e){var n=XE(this.R,e);if(!n.isNoDocument()||!n.version.isEqual(oS.min()))return n}return BS.newInvalidDocument(t)},t}(),UA=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).Ie=e,i.trackRemovals=n,i.Ae=new FA(function(t){return t.toString()},function(t,e){return t.isEqual(e)}),i}return gy(e,t),e.prototype.applyChanges=function(t){var e=this,n=[],i=0,r=new fC(function(t,e){return nS(t.canonicalString(),e.canonicalString())});return this.changes.forEach(function(s,o){var a=e.Ae.get(s);if(o.document.isValidDocument()){var c=tA(e.Ie.R,o.document,e.getReadTime(s));r=r.add(s.path.popLast());var u=bA(c);i+=u-a,n.push(e.Ie.addEntry(t,s,c))}else if(i-=a,e.trackRemovals){var l=tA(e.Ie.R,BS.newNoDocument(s,oS.min()),e.getReadTime(s));n.push(e.Ie.addEntry(t,s,l))}else n.push(e.Ie.removeEntry(t,s))}),r.forEach(function(i){n.push(e.Ie.Ut.addToCollectionParentIndex(t,i))}),n.push(this.Ie.updateMetadata(t,i)),FE.waitFor(n)},e.prototype.getFromCache=function(t,e){var n=this;return this.Ie.ge(t,e).next(function(t){return n.Ae.set(e,t.size),t.document})},e.prototype.getAllFromCache=function(t,e){var n=this;return this.Ie.Ee(t,e).next(function(t){var e=t.documents;return t.Te.forEach(function(t,e){n.Ae.set(t,e)}),e})},e}(ZA);function VA(t){return QE(t,CE.store)}function jA(t){return QE(t,TE.store)}function BA(t){return t.path.toArray()}var zA=function(){function t(t){this.R=t}return t.prototype.Rt=function(t,e,n,i){var r=this;Kx(n<i&&n>=0&&i<=11);var s,o=new ZE("createOrUpgrade",e);n<1&&i>=1&&(t.createObjectStore(yE.store),(s=t).createObjectStore(bE.store,{keyPath:bE.keyPath}),s.createObjectStore(_E.store,{keyPath:_E.keyPath,autoIncrement:!0}).createIndex(_E.userMutationsIndex,_E.userMutationsKeyPath,{unique:!0}),s.createObjectStore(wE.store),HA(t),function(t){t.createObjectStore(TE.store)}(t));var a=FE.resolve();return n<3&&i>=3&&(0!==n&&(function(t){t.deleteObjectStore(AE.store),t.deleteObjectStore(EE.store),t.deleteObjectStore(IE.store)}(t),HA(t)),a=a.next(function(){return function(t){var e=t.store(IE.store),n=new IE(0,0,oS.min().toTimestamp(),0);return e.put(IE.key,n)}(o)})),n<4&&i>=4&&(0!==n&&(a=a.next(function(){return function(t,e){return e.store(_E.store).Nt().next(function(n){t.deleteObjectStore(_E.store),t.createObjectStore(_E.store,{keyPath:_E.keyPath,autoIncrement:!0}).createIndex(_E.userMutationsIndex,_E.userMutationsKeyPath,{unique:!0});var i=e.store(_E.store),r=n.map(function(t){return i.put(t)});return FE.waitFor(r)})}(t,o)})),a=a.next(function(){!function(t){t.createObjectStore(OE.store,{keyPath:OE.keyPath})}(t)})),n<5&&i>=5&&(a=a.next(function(){return r.Re(o)})),n<6&&i>=6&&(a=a.next(function(){return function(t){t.createObjectStore(CE.store)}(t),r.be(o)})),n<7&&i>=7&&(a=a.next(function(){return r.ve(o)})),n<8&&i>=8&&(a=a.next(function(){return r.Pe(t,o)})),n<9&&i>=9&&(a=a.next(function(){(function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")})(t),function(t){var e=t.objectStore(TE.store);e.createIndex(TE.readTimeIndex,TE.readTimeIndexPath,{unique:!1}),e.createIndex(TE.collectionReadTimeIndex,TE.collectionReadTimeIndexPath,{unique:!1})}(e)})),n<10&&i>=10&&(a=a.next(function(){return r.Ve(o)})),n<11&&i>=11&&(a=a.next(function(){(function(t){t.createObjectStore(DE.store,{keyPath:DE.keyPath})})(t),function(t){t.createObjectStore(NE.store,{keyPath:NE.keyPath})}(t)})),a},t.prototype.be=function(t){var e=0;return t.store(TE.store).$t(function(t,n){e+=bA(n)}).next(function(){var n=new CE(e);return t.store(CE.store).put(CE.key,n)})},t.prototype.Re=function(t){var e=this,n=t.store(bE.store),i=t.store(_E.store);return n.Nt().next(function(n){return FE.forEach(n,function(n){var r=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return i.Nt(_E.userMutationsIndex,r).next(function(i){return FE.forEach(i,function(i){Kx(i.userId===n.userId);var r=sA(e.R,i);return yA(t,n.userId,r).next(function(){})})})})})},t.prototype.ve=function(t){var e=t.store(AE.store),n=t.store(TE.store);return t.store(IE.store).get(IE.key).next(function(t){var i=[];return n.$t(function(n,r){var s=new hS(n),o=[0,fE(s)];i.push(e.get(o).next(function(n){return n?FE.resolve():e.put(new AE(0,fE(s),t.highestListenSequenceNumber))}))}).next(function(){return FE.waitFor(i)})})},t.prototype.Pe=function(t,e){t.createObjectStore(kE.store,{keyPath:kE.keyPath});var n=e.store(kE.store),i=new fA,r=function(t){if(i.add(t)){var e=t.lastSegment(),r=t.popLast();return n.put({collectionId:e,parent:fE(r)})}};return e.store(TE.store).$t({kt:!0},function(t,e){var n=new hS(t);return r(n.popLast())}).next(function(){return e.store(wE.store).$t({kt:!0},function(t,e){var n=mE(t[1]);return r(n.popLast())})})},t.prototype.Ve=function(t){var e=this,n=t.store(EE.store);return n.$t(function(t,i){var r=oA(i),s=aA(e.R,r);return n.put(s)})},t}();function HA(t){t.createObjectStore(AE.store,{keyPath:AE.keyPath}).createIndex(AE.documentTargetsIndex,AE.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(EE.store,{keyPath:EE.keyPath}).createIndex(EE.queryTargetsIndexName,EE.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(IE.store)}var GA="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",YA=function(){function t(e,n,i,r,s,o,a,c,u,l){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=i,this.Se=s,this.window=o,this.document=a,this.De=u,this.Ce=l,this.Ne=null,this.xe=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Fe=null,this.inForeground=!1,this.ke=null,this.$e=null,this.Oe=Number.NEGATIVE_INFINITY,this.Me=function(t){return Promise.resolve()}
1,!t.yt())throw new zx(Bx.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new LA(this,r),this.Le=n+"main",this.R=new KE(c),this.Be=new qE(this.Le,11,new zA(this.R)),this.qe=new EA(this.referenceDelegate,this.R),this.Ut=new pA,this.Ue=new qA(this.R,this.Ut),this.Ke=new uA,this.window&&this.window.localStorage?this.Qe=this.window.localStorage:(this.Qe=null,!1===l&&Qx("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.prototype.start=function(){var t=this;return this.je().then(function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new zx(Bx.FAILED_PRECONDITION,GA);return t.We(),t.Ge(),t.ze(),t.runTransaction("getHighestListenSequenceNumber","readonly",function(e){return t.qe.getHighestSequenceNumber(e)})}).then(function(e){t.Ne=new jx(e,t.De)}).then(function(){t.xe=!0}).catch(function(e){return t.Be&&t.Be.close(),Promise.reject(e)})},t.prototype.He=function(t){var e=this;return this.Me=function(n){return vy(e,void 0,void 0,function(){return yy(this,function(e){return this.started?[2,t(n)]:[2]})})},t(this.isPrimary)},t.prototype.setDatabaseDeletedListener=function(t){var e=this;this.Be.vt(function(n){return vy(e,void 0,void 0,function(){return yy(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]}})})})},t.prototype.setNetworkEnabled=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Se.enqueueAndForget(function(){return vy(e,void 0,void 0,function(){return yy(this,function(t){switch(t.label){case 0:return this.started?[4,this.je()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})}))},t.prototype.je=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",function(e){return $A(e).put(new OE(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next(function(){if(t.isPrimary)return t.Je(e).next(function(e){e||(t.isPrimary=!1,t.Se.enqueueRetryable(function(){return t.Me(!1)}))})}).next(function(){return t.Ye(e)}).next(function(n){return t.isPrimary&&!n?t.Xe(e).next(function(){return!1}):!!n&&t.Ze(e).next(function(){return!0})})}).catch(function(e){if(jE(e))return Yx("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return Yx("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1}).then(function(e){t.isPrimary!==e&&t.Se.enqueueRetryable(function(){return t.Me(e)}),t.isPrimary=e})},t.prototype.Je=function(t){var e=this;return QA(t).get(yE.key).next(function(t){return FE.resolve(e.tn(t))})},t.prototype.en=function(t){return $A(t).delete(this.clientId)},t.prototype.nn=function(){return vy(this,void 0,void 0,function(){var t,e,n,i=this;return yy(this,function(r){switch(r.label){case 0:return!this.isPrimary||this.sn(this.Oe,18e5)?[3,2]:(this.Oe=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",function(t){var e=QE(t,OE.store);return e.Nt().next(function(t){var n=i.rn(t,18e5),r=t.filter(function(t){return-1===n.indexOf(t)});return FE.forEach(r,function(t){return e.delete(t.clientId)}).next(function(){return r})})}).catch(function(){return[]})]);case 1:if(t=r.sent(),this.Qe)for(e=0,n=t;e<n.length;e++)this.Qe.removeItem(this.on(n[e].clientId));r.label=2;case 2:return[2]}})})},t.prototype.ze=function(){var t=this;this.$e=this.Se.enqueueAfterDelay("client_metadata_refresh",4e3,function(){return t.je().then(function(){return t.nn()}).then(function(){return t.ze()})})},t.prototype.tn=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.Ye=function(t){var e=this;return this.Ce?FE.resolve(!0):QA(t).get(yE.key).next(function(n){if(null!==n&&e.sn(n.leaseTimestampMs,5e3)&&!e.cn(n.ownerId)){if(e.tn(n)&&e.networkEnabled)return!0;if(!e.tn(n)){if(!n.allowTabSynchronization)throw new zx(Bx.FAILED_PRECONDITION,GA);return!1}}return!(!e.networkEnabled||!e.inForeground)||$A(t).Nt().next(function(t){return void 0===e.rn(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&&Yx("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t})},t.prototype.shutdown=function(){return vy(this,void 0,void 0,function(){var t=this;return yy(this,function(e){switch(e.label){case 0:return this.xe=!1,this.un(),this.$e&&(this.$e.cancel(),this.$e=null),this.an(),this.hn(),[4,this.Be.runTransaction("shutdown","readwrite",[yE.store,OE.store],function(e){var n=new YE(e,jx.o);return t.Xe(n).next(function(){return t.en(n)})})];case 1:return e.sent(),this.Be.close(),this.ln(),[2]}})})},t.prototype.rn=function(t,e){var n=this;return t.filter(function(t){return n.sn(t.updateTimeMs,e)&&!n.cn(t.clientId)})},t.prototype.fn=function(){var t=this;return this.runTransaction("getActiveClients","readonly",function(e){return $A(e).Nt().next(function(e){return t.rn(e,18e5).map(function(t){return t.clientId})})})},Object.defineProperty(t.prototype,"started",{get:function(){return this.xe}
1,enumerable:!1,configurable:!0}),t.prototype.getMutationQueue=function(t){return _A.Qt(t,this.R,this.Ut,this.referenceDelegate)},t.prototype.getTargetCache=function(){return this.qe},t.prototype.getRemoteDocumentCache=function(){return this.Ue},t.prototype.getIndexManager=function(){return this.Ut},t.prototype.getBundleCache=function(){return this.Ke},t.prototype.runTransaction=function(t,e,n){var i,r=this;return Yx("IndexedDbPersistence","Starting transaction:",t),this.Be.runTransaction(t,"readonly"===e?"readonly":"readwrite",PE,function(s){return i=new YE(s,r.Ne?r.Ne.next():jx.o),"readwrite-primary"===e?r.Je(i).next(function(t){return!!t||r.Ye(i)}).next(function(e){if(!e)throw Qx("Failed to obtain primary lease for action '"+t+"'."),r.isPrimary=!1,r.Se.enqueueRetryable(function(){return r.Me(!1)}),new zx(Bx.FAILED_PRECONDITION,RE);return n(i)}).next(function(t){return r.Ze(i).next(function(){return t})}):r.dn(i).next(function(){return n(i)})}).then(function(t){return i.raiseOnCommittedEvent(),t})},t.prototype.dn=function(t){var e=this;return QA(t).get(yE.key).next(function(t){if(null!==t&&e.sn(t.leaseTimestampMs,5e3)&&!e.cn(t.ownerId)&&!e.tn(t)&&!(e.Ce||e.allowTabSynchronization&&t.allowTabSynchronization))throw new zx(Bx.FAILED_PRECONDITION,GA)})},t.prototype.Ze=function(t){var e=new yE(this.clientId,this.allowTabSynchronization,Date.now());return QA(t).put(yE.key,e)},t.yt=function(){return qE.yt()},t.prototype.Xe=function(t){var e=this,n=QA(t);return n.get(yE.key).next(function(t){return e.tn(t)?(Yx("IndexedDbPersistence","Releasing primary lease."),n.delete(yE.key)):FE.resolve()})},t.prototype.sn=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(Qx("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.We=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.ke=function(){t.Se.enqueueAndForget(function(){return t.inForeground="visible"===t.document.visibilityState,t.je()})},this.document.addEventListener("visibilitychange",this.ke),this.inForeground="visible"===this.document.visibilityState)},t.prototype.an=function(){this.ke&&(this.document.removeEventListener("visibilitychange",this.ke),this.ke=null)},t.prototype.Ge=function(){var e,n=this;"function"==typeof(null===(e=this.window)||void 0===e?void 0:e.addEventListener)&&(this.Fe=function(){n.un(),!function(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}}()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&navigator.appVersion.match("Version/14")&&n.Se.enterRestrictedMode(!0),n.Se.enqueueAndForget(function(){return n.shutdown()})},this.window.addEventListener("pagehide",this.Fe))},t.prototype.hn=function(){this.Fe&&(this.window.removeEventListener("pagehide",this.Fe),this.Fe=null)},t.prototype.cn=function(t){var e;try{var n=null!==(null===(e=this.Qe)||void 0===e?void 0:e.getItem(this.on(t)));return Yx("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(i){return Qx("IndexedDbPersistence","Failed to get zombied client id.",i),!1}},t.prototype.un=function(){if(this.Qe)try{this.Qe.setItem(this.on(this.clientId),String(Date.now()))}catch(t){Qx("Failed to set zombie client id.",t)}},t.prototype.ln=function(){if(this.Qe)try{this.Qe.removeItem(this.on(this.clientId))}catch(t){}},t.prototype.on=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function QA(t){return QE(t,yE.store)}function $A(t){return QE(t,OE.store)}function JA(t,e){var n=t.projectId;return t.isDefaultDatabase||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var WA=function(t,e){this.progress=t,this.wn=e},KA=function(){function t(t,e,n){this.Ue=t,this._n=e,this.Ut=n}return t.prototype.mn=function(t,e){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKey(t,e).next(function(i){return n.yn(t,e,i)})},t.prototype.yn=function(t,e,n){return this.Ue.getEntry(t,e).next(function(t){for(var e=0,i=n;e<i.length;e++)i[e].applyToLocalView(t);return t})},t.prototype.gn=function(t,e){t.forEach(function(t,n){for(var i=0,r=e;i<r.length;i++)r[i].applyToLocalView(n)})},t.prototype.pn=function(t,e){var n=this;return this.Ue.getEntries(t,e).next(function(e){return n.En(t,e).next(function(){return e})})},t.prototype.En=function(t,e){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKeys(t,e).next(function(t){return n.gn(e,t)})},t.prototype.getDocumentsMatchingQuery=function(t,e,n){return ES.isDocumentKey((i=e).path)&&null===i.collectionGroup&&0===i.filters.length?this.Tn(t,e.path):vT(e)?this.In(t,e,n):this.An(t,e,n);var i},t.prototype.Tn=function(t,e){return this.mn(t,new ES(e)).next(function(t){var e=yC();
1return t.isFoundDocument()&&(e=e.insert(t.key,t)),e})},t.prototype.In=function(t,e,n){var i=this,r=e.collectionGroup,s=yC();return this.Ut.getCollectionParents(t,r).next(function(o){return FE.forEach(o,function(o){var a,c,u=(a=e,c=o.child(r),new lT(c,null,a.explicitOrderBy.slice(),a.filters.slice(),a.limit,a.limitType,a.startAt,a.endAt));return i.An(t,u,n).next(function(t){t.forEach(function(t,e){s=s.insert(t,e)})})}).next(function(){return s})})},t.prototype.An=function(t,e,n){var i,r,s=this;return this.Ue.getDocumentsMatchingQuery(t,e,n).next(function(n){return i=n,s._n.getAllMutationBatchesAffectingQuery(t,e)}).next(function(e){return s.Rn(t,r=e,i).next(function(t){i=t;for(var e=0,n=r;e<n.length;e++)for(var s=n[e],o=0,a=s.mutations;o<a.length;o++){var c=a[o],u=c.key,l=i.get(u);null==l&&(l=BS.newInvalidDocument(u),i=i.insert(u,l)),QT(c,l,s.localWriteTime),l.isFoundDocument()||(i=i.remove(u))}})}).next(function(){return i.forEach(function(t,n){TT(e,n)||(i=i.remove(t))}),i})},t.prototype.Rn=function(t,e,n){for(var i=xC(),r=0,s=e;r<s.length;r++)for(var o=0,a=s[r].mutations;o<a.length;o++){var c=a[o];c instanceof XT&&null===n.get(c.key)&&(i=i.add(c.key))}var u=n;return this.Ue.getEntries(t,i).next(function(t){return t.forEach(function(t,e){e.isFoundDocument()&&(u=u.insert(t,e))}),u})},t}(),XA=function(){function t(t,e,n,i){this.targetId=t,this.fromCache=e,this.bn=n,this.vn=i}return t.Pn=function(e,n){for(var i=xC(),r=xC(),s=0,o=n.docChanges;s<o.length;s++){var a=o[s];switch(a.type){case 0:i=i.add(a.doc.key);break;case 1:r=r.add(a.doc.key)}}return new t(e,n.fromCache,i,r)},t}(),tI=function(){function t(){}return t.prototype.Vn=function(t){this.Sn=t},t.prototype.getDocumentsMatchingQuery=function(t,e,n,i){var r,s=this;return 0===(r=e).filters.length&&null===r.limit&&null==r.startAt&&null==r.endAt&&(0===r.explicitOrderBy.length||1===r.explicitOrderBy.length&&r.explicitOrderBy[0].field.isKeyField())||n.isEqual(oS.min())?this.Dn(t,e):this.Sn.pn(t,i).next(function(r){var o=s.Cn(e,r);return(fT(e)||pT(e))&&s.Nn(e.limitType,o,i,n)?s.Dn(t,e):(Gx()<=Dy.in.DEBUG&&Yx("QueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),ST(e)),s.Sn.getDocumentsMatchingQuery(t,e,n).next(function(t){return o.forEach(function(e){t=t.insert(e.key,e)}),t}))})},t.prototype.Cn=function(t,e){var n=new fC(CT(t));return e.forEach(function(e,i){TT(t,i)&&(n=n.add(i))}),n},t.prototype.Nn=function(t,e,n,i){if(n.size!==e.size)return!0;var r="F"===t?e.last():e.first();return!!r&&(r.hasPendingWrites||r.version.compareTo(i)>0)},t.prototype.Dn=function(t,e){return Gx()<=Dy.in.DEBUG&&Yx("QueryEngine","Using full collection scan to execute query:",ST(e)),this.Sn.getDocumentsMatchingQuery(t,e,oS.min())},t}(),eI=function(){function t(t,e,n,i){this.persistence=t,this.xn=e,this.R=i,this.Fn=new lC(nS),this.kn=new FA(function(t){return GS(t)},YS),this.$n=oS.min(),this._n=t.getMutationQueue(n),this.On=t.getRemoteDocumentCache(),this.qe=t.getTargetCache(),this.Mn=new KA(this.On,this._n,this.persistence.getIndexManager()),this.Ke=t.getBundleCache(),this.xn.Vn(this.Mn)}return t.prototype.collectGarbage=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",function(n){return t.collect(n,e.Fn)})},t}();function nI(t,e,n,i){return new eI(t,e,n,i)}function iI(t,e){return vy(this,void 0,void 0,function(){var n,i,r,s;return yy(this,function(o){switch(o.label){case 0:return n=Xx(t),i=n._n,r=n.Mn,[4,n.persistence.runTransaction("Handle user change","readonly",function(t){var s;return n._n.getAllMutationBatches(t).next(function(o){return s=o,i=n.persistence.getMutationQueue(e),r=new KA(n.On,i,n.persistence.getIndexManager()),i.getAllMutationBatches(t)}).next(function(e){for(var n=[],i=[],o=xC(),a=0,c=s;a<c.length;a++){var u=c[a];n.push(u.batchId);for(var l=0,h=u.mutations;l<h.length;l++)o=o.add(h[l].key)}for(var d=0,f=e;d<f.length;d++){var p=f[d];i.push(p.batchId);for(var g=0,m=p.mutations;g<m.length;g++)o=o.add(m[g].key)}return r.pn(t,o).next(function(t){return{Ln:t,removedBatchIds:n,addedBatchIds:i}})})})];case 1:return s=o.sent(),[2,(n._n=i,n.Mn=r,n.xn.Vn(n.Mn),s)]}})})}function rI(t,e){var n=Xx(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",function(t){var i,r,s,o,a,c,u,l=e.batch.keys(),h=n.On.newChangeBuffer({trackRemovals:!0});return(i=n,r=t,s=e,o=h,a=s.batch,c=a.keys(),u=FE.resolve(),c.forEac
1h(function(t){u=u.next(function(){return o.getEntry(r,t)}).next(function(e){var n=s.docVersions.get(t);Kx(null!==n),e.version.compareTo(n)<0&&(a.applyToRemoteDocument(e,s),e.isValidDocument()&&o.addEntry(e,s.commitVersion))})}),u.next(function(){return i._n.removeMutationBatch(r,a)})).next(function(){return h.apply(t)}).next(function(){return n._n.performConsistencyCheck(t)}).next(function(){return n.Mn.pn(t,l)})})}function sI(t){var e=Xx(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",function(t){return e.qe.getLastRemoteSnapshotVersion(t)})}function oI(t,e){var n=Xx(t),i=e.snapshotVersion,r=n.Fn;return n.persistence.runTransaction("Apply remote event","readwrite-primary",function(t){var s=n.On.newChangeBuffer({trackRemovals:!0});r=n.Fn;var o=[];e.targetChanges.forEach(function(e,s){var a,c,u,l=r.get(s);if(l){o.push(n.qe.removeMatchingKeys(t,e.removedDocuments,s).next(function(){return n.qe.addMatchingKeys(t,e.addedDocuments,s)}));var h=e.resumeToken;if(h.approximateByteSize()>0){var d=l.withResumeToken(h,i).withSequenceNumber(t.currentSequenceNumber);r=r.insert(s,d),a=l,u=e,Kx((c=d).resumeToken.approximateByteSize()>0),(0===a.resumeToken.approximateByteSize()||c.snapshotVersion.toMicroseconds()-a.snapshotVersion.toMicroseconds()>=3e8||u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size>0)&&o.push(n.qe.updateTargetData(t,d))}}});var a=mC();if(e.documentUpdates.forEach(function(i,r){e.resolvedLimboDocuments.has(i)&&o.push(n.persistence.referenceDelegate.updateLimboDocument(t,i))}),o.push(aI(t,s,e.documentUpdates,i,void 0).next(function(t){a=t})),!i.isEqual(oS.min())){var c=n.qe.getLastRemoteSnapshotVersion(t).next(function(e){return n.qe.setTargetsMetadata(t,t.currentSequenceNumber,i)});o.push(c)}return FE.waitFor(o).next(function(){return s.apply(t)}).next(function(){return n.Mn.En(t,a)}).next(function(){return a})}).then(function(t){return n.Fn=r,t})}function aI(t,e,n,i,r){var s=xC();return n.forEach(function(t){return s=s.add(t)}),e.getEntries(t,s).next(function(t){var s=mC();return n.forEach(function(n,o){var a=t.get(n),c=(null==r?void 0:r.get(n))||i;o.isNoDocument()&&o.version.isEqual(oS.min())?(e.removeEntry(n,c),s=s.insert(n,o)):!a.isValidDocument()||o.version.compareTo(a.version)>0||0===o.version.compareTo(a.version)&&a.hasPendingWrites?(e.addEntry(o,c),s=s.insert(n,o)):Yx("LocalStore","Ignoring outdated watch update for ",n,". Current version:",a.version," Watch version:",o.version)}),s})}function cI(t,e){var n=Xx(t);return n.persistence.runTransaction("Get next mutation batch","readonly",function(t){return void 0===e&&(e=-1),n._n.getNextMutationBatchAfterBatchId(t,e)})}function uI(t,e){var n=Xx(t);return n.persistence.runTransaction("Allocate target","readwrite",function(t){var i;return n.qe.getTargetData(t,e).next(function(r){return r?FE.resolve(i=r):n.qe.allocateTargetId(t).next(function(r){return i=new WE(e,r,0,t.currentSequenceNumber),n.qe.addTargetData(t,i).next(function(){return i})})})}).then(function(t){var i=n.Fn.get(t.targetId);return(null===i||t.snapshotVersion.compareTo(i.snapshotVersion)>0)&&(n.Fn=n.Fn.insert(t.targetId,t),n.kn.set(e,t.targetId)),t})}function lI(t,e,n){return vy(this,void 0,void 0,function(){var i,r,s,o;return yy(this,function(a){switch(a.label){case 0:i=Xx(t),r=i.Fn.get(e),s=n?"readwrite":"readwrite-primary",a.label=1;case 1:return a.trys.push([1,4,,5]),n?[3,3]:[4,i.persistence.runTransaction("Release target",s,function(t){return i.persistence.referenceDelegate.removeTarget(t,r)})];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:if(!jE(o=a.sent()))throw o;return Yx("LocalStore","Failed to update sequence numbers for target "+e+": "+o),[3,5];case 5:return i.Fn=i.Fn.remove(e),i.kn.delete(r.target),[2]}})})}function hI(t,e,n){var i=Xx(t),r=oS.min(),s=xC();return i.persistence.runTransaction("Execute query","readonly",function(t){return(o=i,a=t,c=bT(e),u=Xx(o),l=u.kn.get(c),void 0!==l?FE.resolve(u.Fn.get(l)):u.qe.getTargetData(a,c)).next(function(e){if(e)return r=e.lastLimboFreeSnapshotVersion,i.qe.getMatchingKeysForTargetId(t,e.targetId).next(function(t){s=t})}).next(function(){return i.xn.getDocumentsMatchingQuery(t,e,n?r:oS.min(),n?s:xC())}).next(function(t){return{documents:t,Bn:s}});var o,a,c,u,l})}function dI(t,e){var n=Xx(t),i=Xx(n.qe),r=n.Fn.get(e);return r?Promise.resolve(r.target):n.persistence.runTransaction("Get target data","readonly",function(t){return i.lt(t,e).next(function(t){return t?t.target:null})})}function fI(t){var e=Xx(t);return e.persistence.runTransaction("Get new document changes","readonly",function(t){return n=t,i=e.$
1n,r=Xx(e.On),s=mC(),o=eA(i),a=jA(n),c=IDBKeyRange.lowerBound(o,!0),a.$t({index:TE.readTimeIndex,range:c},function(t,e){var n=XE(r.R,e);s=s.insert(n.key,n),o=e.readTime}).next(function(){return{wn:s,readTime:nA(o)}});var n,i,r,s,o,a,c}).then(function(t){var n=t.wn;return e.$n=t.readTime,n})}function pI(t){return vy(this,void 0,void 0,function(){var e;return yy(this,function(n){return[2,(e=Xx(t)).persistence.runTransaction("Synchronize last document change read time","readonly",function(t){return e=jA(t),n=oS.min(),e.$t({index:TE.readTimeIndex,reverse:!0},function(t,e,i){e.readTime&&(n=nA(e.readTime)),i.done()}).next(function(){return n});var e,n}).then(function(t){e.$n=t})]})})}function gI(t,e,n,i){return vy(this,void 0,void 0,function(){var r,s,o,a,c,u,l,h,d,f;return yy(this,function(p){switch(p.label){case 0:for(r=Xx(t),s=xC(),o=mC(),a=_C(),c=0,u=n;c<u.length;c++)h=e.qn((l=u[c]).metadata.name),l.document&&(s=s.add(h)),o=o.insert(h,e.Un(l)),a=a.insert(h,e.Kn(l.metadata.readTime));return d=r.On.newChangeBuffer({trackRemovals:!0}),[4,uI(r,(g=i,bT(dT(hS.fromString("__bundle__/docs/"+g)))))];case 1:return f=p.sent(),[2,r.persistence.runTransaction("Apply bundle documents","readwrite",function(t){return aI(t,d,o,oS.min(),a).next(function(e){return d.apply(t),e}).next(function(e){return r.qe.removeMatchingKeysForTargetId(t,f.targetId).next(function(){return r.qe.addMatchingKeys(t,s,f.targetId)}).next(function(){return r.Mn.En(t,e)}).next(function(){return e})})})]}var g})})}function mI(t,e,n){return void 0===n&&(n=xC()),vy(this,void 0,void 0,function(){var i,r;return yy(this,function(s){switch(s.label){case 0:return[4,uI(t,bT(cA(e.bundledQuery)))];case 1:return i=s.sent(),[2,(r=Xx(t)).persistence.runTransaction("Save named query","readwrite",function(t){var s=UC(e.readTime);if(i.snapshotVersion.compareTo(s)>=0)return r.Ke.saveNamedQuery(t,e);var o=i.withResumeToken(gS.EMPTY_BYTE_STRING,s);return r.Fn=r.Fn.insert(o.targetId,o),r.qe.updateTargetData(t,o).next(function(){return r.qe.removeMatchingKeysForTargetId(t,i.targetId)}).next(function(){return r.qe.addMatchingKeys(t,n,i.targetId)}).next(function(){return r.Ke.saveNamedQuery(t,e)})})]}})})}var vI=function(){function t(t){this.R=t,this.Qn=new Map,this.jn=new Map}return t.prototype.getBundleMetadata=function(t,e){return FE.resolve(this.Qn.get(e))},t.prototype.saveBundleMetadata=function(t,e){var n;return this.Qn.set(e.id,{id:(n=e).id,version:n.version,createTime:UC(n.createTime)}),FE.resolve()},t.prototype.getNamedQuery=function(t,e){return FE.resolve(this.jn.get(e))},t.prototype.saveNamedQuery=function(t,e){return this.jn.set(e.name,{name:(n=e).name,query:cA(n.bundledQuery),readTime:UC(n.readTime)}),FE.resolve();var n},t}(),yI=function(){function t(){this.Wn=new fC(bI.Gn),this.zn=new fC(bI.Hn)}return t.prototype.isEmpty=function(){return this.Wn.isEmpty()},t.prototype.addReference=function(t,e){var n=new bI(t,e);this.Wn=this.Wn.add(n),this.zn=this.zn.add(n)},t.prototype.Jn=function(t,e){var n=this;t.forEach(function(t){return n.addReference(t,e)})},t.prototype.removeReference=function(t,e){this.Yn(new bI(t,e))},t.prototype.Xn=function(t,e){var n=this;t.forEach(function(t){return n.removeReference(t,e)})},t.prototype.Zn=function(t){var e=this,n=new ES(new hS([])),i=new bI(n,t),r=new bI(n,t+1),s=[];return this.zn.forEachInRange([i,r],function(t){e.Yn(t),s.push(t.key)}),s},t.prototype.ts=function(){var t=this;this.Wn.forEach(function(e){return t.Yn(e)})},t.prototype.Yn=function(t){this.Wn=this.Wn.delete(t),this.zn=this.zn.delete(t)},t.prototype.es=function(t){var e=new ES(new hS([])),n=new bI(e,t),i=new bI(e,t+1),r=xC();return this.zn.forEachInRange([n,i],function(t){r=r.add(t.key)}),r},t.prototype.containsKey=function(t){var e=new bI(t,0),n=this.Wn.firstAfterOrEqual(e);return null!==n&&t.isEqual(n.key)},t}(),bI=function(){function t(t,e){this.key=t,this.ns=e}return t.Gn=function(t,e){return ES.comparator(t.key,e.key)||nS(t.ns,e.ns)},t.Hn=function(t,e){return nS(t.ns,e.ns)||ES.comparator(t.key,e.key)},t}(),_I=function(){function t(t,e){this.Ut=t,this.referenceDelegate=e,this._n=[],this.ss=1,this.rs=new fC(bI.Gn)}return t.prototype.checkEmpty=function(t){return FE.resolve(0===this._n.length)},t.prototype.addMutationBatch=function(t,e,n,i){var r=this.ss;this.ss++;var s=new $E(r,e,n,i);this._n.push(s);for(var o=0,a=i;o<a.length;o++){var c=a[o];this.rs=this.rs.add(new bI(c.key,r)),this.Ut.addToCollectionParentIndex(t,c.key.path.popLast())}return FE.resolve(s)},t.prototype.lookupMutationBatch=function(t,e){return FE.resolve(this.os(e))},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=this.cs(e+1),i=n<0?0:n;return FE.resolve(this._n.length>i?this._n[i]:null)},t.prototype.getHighestUnacknowledgedBatchId=function(){return FE.resolve(0===this._n.length?-1:this.ss-1)},t.prototype.getAllMutationBatches=function(t){return FE.resolve(this._n.slice())},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,i=new bI(e,0),r
1=new bI(e,Number.POSITIVE_INFINITY),s=[];return this.rs.forEachInRange([i,r],function(t){var e=n.os(t.ns);s.push(e)}),FE.resolve(s)},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,i=new fC(nS);return e.forEach(function(t){var e=new bI(t,0),r=new bI(t,Number.POSITIVE_INFINITY);n.rs.forEachInRange([e,r],function(t){i=i.add(t.ns)})}),FE.resolve(this.us(i))},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=e.path,i=n.length+1,r=n;ES.isDocumentKey(r)||(r=r.child(""));var s=new bI(new ES(r),0),o=new fC(nS);return this.rs.forEachWhile(function(t){var e=t.key.path;return!!n.isPrefixOf(e)&&(e.length===i&&(o=o.add(t.ns)),!0)},s),FE.resolve(this.us(o))},t.prototype.us=function(t){var e=this,n=[];return t.forEach(function(t){var i=e.os(t);null!==i&&n.push(i)}),n},t.prototype.removeMutationBatch=function(t,e){var n=this;Kx(0===this.hs(e.batchId,"removed")),this._n.shift();var i=this.rs;return FE.forEach(e.mutations,function(r){var s=new bI(r.key,e.batchId);return i=i.delete(s),n.referenceDelegate.markPotentiallyOrphaned(t,r.key)}).next(function(){n.rs=i})},t.prototype.Gt=function(t){},t.prototype.containsKey=function(t,e){var n=new bI(e,0),i=this.rs.firstAfterOrEqual(n);return FE.resolve(e.isEqual(i&&i.key))},t.prototype.performConsistencyCheck=function(t){return FE.resolve()},t.prototype.hs=function(t,e){return this.cs(t)},t.prototype.cs=function(t){return 0===this._n.length?0:t-this._n[0].batchId},t.prototype.os=function(t){var e=this.cs(t);return e<0||e>=this._n.length?null:this._n[e]},t}(),wI=function(){function t(t,e){this.Ut=t,this.ls=e,this.docs=new lC(ES.comparator),this.size=0}return t.prototype.addEntry=function(t,e,n){var i=e.key,r=this.docs.get(i),s=r?r.size:0,o=this.ls(e);return this.docs=this.docs.insert(i,{document:e.clone(),size:o,readTime:n}),this.size+=o-s,this.Ut.addToCollectionParentIndex(t,i.path.popLast())},t.prototype.removeEntry=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.getEntry=function(t,e){var n=this.docs.get(e);return FE.resolve(n?n.document.clone():BS.newInvalidDocument(e))},t.prototype.getEntries=function(t,e){var n=this,i=mC();return e.forEach(function(t){var e=n.docs.get(t);i=i.insert(t,e?e.document.clone():BS.newInvalidDocument(t))}),FE.resolve(i)},t.prototype.getDocumentsMatchingQuery=function(t,e,n){for(var i=mC(),r=new ES(e.path.child("")),s=this.docs.getIteratorFrom(r);s.hasNext();){var o=s.getNext(),a=o.value,c=a.document,u=a.readTime;if(!e.path.isPrefixOf(o.key.path))break;u.compareTo(n)<=0||TT(e,c)&&(i=i.insert(c.key,c.clone()))}return FE.resolve(i)},t.prototype.fs=function(t,e){return FE.forEach(this.docs,function(t){return e(t)})},t.prototype.newChangeBuffer=function(t){return new xI(this)},t.prototype.getSize=function(t){return FE.resolve(this.size)},t}(),xI=function(t){function e(e){var n=this;return(n=t.call(this)||this).Ie=e,n}return gy(e,t),e.prototype.applyChanges=function(t){var e=this,n=[];
1return this.changes.forEach(function(i,r){r.document.isValidDocument()?n.push(e.Ie.addEntry(t,r.document,e.getReadTime(i))):e.Ie.removeEntry(i)}),FE.waitFor(n)},e.prototype.getFromCache=function(t,e){return this.Ie.getEntry(t,e)},e.prototype.getAllFromCache=function(t,e){return this.Ie.getEntries(t,e)},e}(ZA),SI=function(){function t(t){this.persistence=t,this.ds=new FA(function(t){return GS(t)},YS),this.lastRemoteSnapshotVersion=oS.min(),this.highestTargetId=0,this.ws=0,this._s=new yI,this.targetCount=0,this.ys=CA.Jt()}return t.prototype.forEachTarget=function(t,e){return this.ds.forEach(function(t,n){return e(n)}),FE.resolve()},t.prototype.getLastRemoteSnapshotVersion=function(t){return FE.resolve(this.lastRemoteSnapshotVersion)},t.prototype.getHighestSequenceNumber=function(t){return FE.resolve(this.ws)},t.prototype.allocateTargetId=function(t){return this.highestTargetId=this.ys.next(),FE.resolve(this.highestTargetId)},t.prototype.setTargetsMetadata=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.ws&&(this.ws=e),FE.resolve()},t.prototype.te=function(t){this.ds.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.ys=new CA(e),this.highestTargetId=e),t.sequenceNumber>this.ws&&(this.ws=t.sequenceNumber)},t.prototype.addTargetData=function(t,e){return this.te(e),this.targetCount+=1,FE.resolve()},t.prototype.updateTargetData=function(t,e){return this.te(e),FE.resolve()},t.prototype.removeTargetData=function(t,e){return this.ds.delete(e.target),this._s.Zn(e.targetId),this.targetCount-=1,FE.resolve()},t.prototype.removeTargets=function(t,e,n){var i=this,r=0,s=[];return this.ds.forEach(function(o,a){a.sequenceNumber<=e&&null===n.get(a.targetId)&&(i.ds.delete(o),s.push(i.removeMatchingKeysForTargetId(t,a.targetId)),r++)}),FE.waitFor(s).next(function(){return r})},t.prototype.getTargetCount=function(t){return FE.resolve(this.targetCount)},t.prototype.getTargetData=function(t,e){var n=this.ds.get(e)||null;return FE.resolve(n)},t.prototype.addMatchingKeys=function(t,e,n){return this._s.Jn(e,n),FE.resolve()},t.prototype.removeMatchingKeys=function(t,e,n){this._s.Xn(e,n);var i=this.persistence.referenceDelegate,r=[];return i&&e.forEach(function(e){r.push(i.markPotentiallyOrphaned(t,e))}),FE.waitFor(r)},t.prototype.removeMatchingKeysForTargetId=function(t,e){return this._s.Zn(e),FE.resolve()},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=this._s.es(e);return FE.resolve(n)},t.prototype.containsKey=function(t,e){return FE.resolve(this._s.containsKey(e))},t}(),TI=function(){function t(t,e){var n=this;this.gs={},this.Ne=new jx(0),this.xe=!1,this.xe=!0,this.referenceDelegate=t(this),this.qe=new SI(this),this.Ut=new dA,this.Ue=new wI(this.Ut,function(t){return n.referenceDelegate.ps(t)}),this.R=new KE(e),this.Ke=new vI(this.R)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.shutdown=function(){return this.xe=!1,Promise.resolve()},Object.defineProperty(t.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),t.prototype.setDatabaseDeletedListener=function(){},t.prototype.setNetworkEnabled=function(){},t.prototype.getIndexManager=function(){return this.Ut},t.prototype.getMutationQueue=function(t){var e=this.gs[t.toKey()];return e||(e=new _I(this.Ut,this.referenceDelegate),this.gs[t.toKey()]=e),e},t.prototype.getTargetCache=function(){return this.qe},t.prototype.getRemoteDocumentCache=function(){return this.Ue},t.prototype.getBundleCache=function(){return this.Ke},t.prototype.runTransaction=function(t,e,n){var i=this;Yx("MemoryPersistence","Starting transaction:",t);var r=new CI(this.Ne.next());return this.referenceDelegate.Es(),n(r).next(function(t){return i.referenceDelegate.Ts(r).next(function(){return t})}).toPromise().then(function(t){return r.raiseOnCommittedEvent(),t})},t.prototype.Is=function(t,e){return FE.or(Object.values(this.gs).map(function(n){return function(){return n.containsKey(t,e)}}))},t}(),CI=function(t){function e(e){var n=this;return(n=t.call(this)||this).currentSequenceNumber=e,n}return gy(e,t),e}(LE),EI=function(){function t(t){this.persistence=t,this.As=new yI,this.Rs=null}return t.bs=function(e){return new t(e)},Object.defineProperty(t.prototype,"vs",{get:function(){if(this.Rs)return this.Rs;throw Wx()}
1,enumerable:!1,configurable:!0}),t.prototype.addReference=function(t,e,n){return this.As.addReference(n,e),this.vs.delete(n.toString()),FE.resolve()},t.prototype.removeReference=function(t,e,n){return this.As.removeReference(n,e),this.vs.add(n.toString()),FE.resolve()},t.prototype.markPotentiallyOrphaned=function(t,e){return this.vs.add(e.toString()),FE.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.As.Zn(e.targetId).forEach(function(t){return n.vs.add(t.toString())});var i=this.persistence.getTargetCache();return i.getMatchingKeysForTargetId(t,e.targetId).next(function(t){t.forEach(function(t){return n.vs.add(t.toString())})}).next(function(){return i.removeTargetData(t,e)})},t.prototype.Es=function(){this.Rs=new Set},t.prototype.Ts=function(t){var e=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return FE.forEach(this.vs,function(i){var r=ES.fromPath(i);return e.Ps(t,r).next(function(t){t||n.removeEntry(r)})}).next(function(){return e.Rs=null,n.apply(t)})},t.prototype.updateLimboDocument=function(t,e){var n=this;return this.Ps(t,e).next(function(t){t?n.vs.delete(e.toString()):n.vs.add(e.toString())})},t.prototype.ps=function(t){return 0},t.prototype.Ps=function(t,e){var n=this;return FE.or([function(){return FE.resolve(n.As.containsKey(e))},function(){return n.persistence.getTargetCache().containsKey(t,e)},function(){return n.persistence.Is(t,e)}])},t}(),AI=function(){function t(t){this.uid=t}return t.prototype.isAuthenticated=function(){return null!=this.uid},t.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();function II(t,e){return"firestore_clients_"+t+"_"+e}function kI(t,e,n){var i="firestore_mutations_"+t+"_"+n;return e.isAuthenticated()&&(i+="_"+e.uid),i}function OI(t,e){return"firestore_targets_"+t+"_"+e}AI.UNAUTHENTICATED=new AI(null),AI.GOOGLE_CREDENTIALS=new AI("google-credentials-uid"),AI.FIRST_PARTY=new AI("first-party-uid");var DI=function(){function t(t,e,n,i){this.user=t,this.batchId=e,this.state=n,this.error=i}return t.Vs=function(e,n,i){var r,s=JSON.parse(i),o="object"==typeof s&&-1!==["pending","acknowledged","rejected"].indexOf(s.state)&&(void 0===s.error||"object"==typeof s.error);return o&&s.error&&(o="string"==typeof s.error.message&&"string"==typeof s.error.code)&&(r=new zx(s.error.code,s.error.message)),o?new t(e,n,s.state,r):(Qx("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+i),null)},t.prototype.Ss=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}(),NI=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.Vs=function(e,n){var i,r=JSON.parse(n),s="object"==typeof r&&-1!==["not-current","current","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error);return s&&r.error&&(s="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(i=new zx(r.error.code,r.error.message)),s?new t(e,r.state,i):(Qx("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.Ss=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}(),PI=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.Vs=function(e,n){for(var i=JSON.parse(n),r="object"==typeof i&&i.activeTargetIds instanceof Array,s=TC(),o=0;r&&o<i.activeTargetIds.length;++o)r=CS(i.activeTargetIds[o]),s=s.add(i.activeTargetIds[o]);return r?new t(e,s):(Qx("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),RI=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.Vs=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):(Qx("SharedClientState","Failed to parse online state: "+e),null)},t}(),LI=function(){function t(){this.activeTargetIds=TC()}return t.prototype.Ds=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.Cs=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.Ss=function(){var t={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),MI=function(){function t(t,e,n,i,r){this.window=t,this.Se=e,this.persistenceKey=n,this.Ns=i,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.xs=this.Fs.bind(this),this.ks=new lC(nS),this.started=!1,this.$s=[];var s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=r,this.Os=II(this.persistenceKey,this.Ns),this.Ms="firestore_sequence_number_"+this.persistenceKey,this.ks=this.ks.insert(this.Ns,new LI),this.Ls=new RegExp("^firestore_clients_"+s+"_([^_]*)$"),this.Bs=new RegExp("^firestore_mutations_"+s+"_(\\d+)(?:_(.*))?$"),this.qs=new RegExp("^firestore_targets_"+s+"_(\\d+)$"),this.Us="firestore_online_state_"+this.persistenceKey,this.Ks=function(t){return"firestore_bundle_loaded_"+t}(this.persistenceKey),this.window.addEventListener("storage",this.xs)}return t.yt=function(t){return!(!t||!t.localStorage)},t.prototype.start=function(){return vy(this,void 0,void 0,function(){var t,e,n,i,r,s,o,a,c,u,l=this;return yy(this,function(h){switch(h.label){case 0:return[4,this.syncEngine.fn()];case 1:for(t=h.sent(),e=0,n=t;e<n.length;e++)(i=n[e])!==this.Ns&&(r=this.getItem(II(this.persistenceKey,i)))&&
1(s=PI.Vs(i,r))&&(this.ks=this.ks.insert(s.clientId,s));for(this.Qs(),(o=this.storage.getItem(this.Us))&&(a=this.js(o))&&this.Ws(a),c=0,u=this.$s;c<u.length;c++)this.Fs(u[c]);return this.$s=[],this.window.addEventListener("pagehide",function(){return l.shutdown()}),this.started=!0,[2]}})})},t.prototype.writeSequenceNumber=function(t){this.setItem(this.Ms,JSON.stringify(t))},t.prototype.getAllActiveQueryTargets=function(){return this.Gs(this.ks)},t.prototype.isActiveQueryTarget=function(t){var e=!1;return this.ks.forEach(function(n,i){i.activeTargetIds.has(t)&&(e=!0)}),e},t.prototype.addPendingMutation=function(t){this.zs(t,"pending")},t.prototype.updateMutationState=function(t,e,n){this.zs(t,e,n),this.Hs(t)},t.prototype.addLocalQueryTarget=function(t){var e="not-current";if(this.isActiveQueryTarget(t)){var n=this.storage.getItem(OI(this.persistenceKey,t));if(n){var i=NI.Vs(t,n);i&&(e=i.state)}}return this.Js.Ds(t),this.Qs(),e},t.prototype.removeLocalQueryTarget=function(t){this.Js.Cs(t),this.Qs()},t.prototype.isLocalQueryTarget=function(t){return this.Js.activeTargetIds.has(t)},t.prototype.clearQueryState=function(t){this.removeItem(OI(this.persistenceKey,t))},t.prototype.updateQueryState=function(t,e,n){this.Ys(t,e,n)},t.prototype.handleUserChange=function(t,e,n){var i=this;e.forEach(function(t){i.Hs(t)}),this.currentUser=t,n.forEach(function(t){i.addPendingMutation(t)})},t.prototype.setOnlineState=function(t){this.Xs(t)},t.prototype.notifyBundleLoaded=function(){this.Zs()},t.prototype.shutdown=function(){this.started&&(this.window.removeEventListener("storage",this.xs),this.removeItem(this.Os),this.started=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return Yx("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){Yx("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){Yx("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.Fs=function(t){var e=this,n=t;if(n.storageArea===this.storage){if(Yx("SharedClientState","EVENT",n.key,n.newValue),n.key===this.Os)return void Qx("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Se.enqueueRetryable(function(){return vy(e,void 0,void 0,function(){var t,e,i,r,s,o;return yy(this,function(a){if(this.started){if(null!==n.key)if(this.Ls.test(n.key)){if(null==n.newValue)return t=this.ti(n.key),[2,this.ei(t,null)];if(e=this.ni(n.key,n.newValue))return[2,this.ei(e.clientId,e)]}else if(this.Bs.test(n.key)){if(null!==n.newValue&&(i=this.si(n.key,n.newValue)))return[2,this.ii(i)]}else if(this.qs.test(n.key)){if(null!==n.newValue&&(r=this.ri(n.key,n.newValue)))return[2,this.oi(r)]}else if(n.key===this.Us){if(null!==n.newValue&&(s=this.js(n.newValue)))return[2,this.Ws(s)]}else if(n.key===this.Ms)(o=function(t){var e=jx.o;if(null!=t)try{var n=JSON.parse(t);Kx("number"==typeof n),e=n}catch(i){Qx("SharedClientState","Failed to read sequence number from WebStorage",i)}return e}(n.newValue))!==jx.o&&this.sequenceNumberHandler(o);else if(n.key===this.Ks)return[2,this.syncEngine.ci()]}else this.$s.push(n);return[2]})})})}},Object.defineProperty(t.prototype,"Js",{get:function(){return this.ks.get(this.Ns)},enumerable:!1,configurable:!0}),t.prototype.Qs=function(){this.setItem(this.Os,this.Js.Ss())},t.prototype.zs=function(t,e,n){var i=new DI(this.currentUser,t,e,n),r=kI(this.persistenceKey,this.currentUser,t);this.setItem(r,i.Ss())},t.prototype.Hs=function(t){var e=kI(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.Xs=function(t){this.storage.setItem(this.Us,JSON.stringify({clientId:this.Ns,onlineState:t}))},t.prototype.Ys=function(t,e,n){var i=OI(this.persistenceKey,t),r=new NI(t,e,n);this.setItem(i,r.Ss())},t.prototype.Zs=function(){this.setItem(this.Ks,"value-not-used")},t.prototype.ti=function(t){var e=this.Ls.exec(t);return e?e[1]:null},t.prototype.ni=function(t,e){var n=this.ti(t);return PI.Vs(n,e)},t.prototype.si=function(t,e){var n=this.Bs.exec(t),i=Number(n[1]);return DI.Vs(new AI(void 0!==n[2]?n[2]:null),i,e)},t.prototype.ri=function(t,e){var n=this.qs.exec(t),i=Number(n[1]);return NI.Vs(i,e)},t.prototype.js=function(t){return RI.Vs(t)},t.prototype.ii=function(t){return vy(this,void 0,void 0,function(){return yy(this,function(e){return t.user.uid===this.currentUser.uid?[2,this.syncEngine.ui(t.batchId,t.state,t.error)]:(Yx("SharedCl
1ientState","Ignoring mutation for non-active user "+t.user.uid),[2])})})},t.prototype.oi=function(t){return this.syncEngine.ai(t.targetId,t.state,t.error)},t.prototype.ei=function(t,e){var n=this,i=e?this.ks.insert(t,e):this.ks.remove(t),r=this.Gs(this.ks),s=this.Gs(i),o=[],a=[];return s.forEach(function(t){r.has(t)||o.push(t)}),r.forEach(function(t){s.has(t)||a.push(t)}),this.syncEngine.hi(o,a).then(function(){n.ks=i})},t.prototype.Ws=function(t){this.ks.get(t.clientId)&&this.onlineStateHandler(t.onlineState)},t.prototype.Gs=function(t){var e=TC();return t.forEach(function(t,n){e=e.unionWith(n.activeTargetIds)}),e},t}(),FI=function(){function t(){this.li=new LI,this.fi={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}return t.prototype.addPendingMutation=function(t){},t.prototype.updateMutationState=function(t,e,n){},t.prototype.addLocalQueryTarget=function(t){return this.li.Ds(t),this.fi[t]||"not-current"},t.prototype.updateQueryState=function(t,e,n){this.fi[t]=e},t.prototype.removeLocalQueryTarget=function(t){this.li.Cs(t)},t.prototype.isLocalQueryTarget=function(t){return this.li.activeTargetIds.has(t)},t.prototype.clearQueryState=function(t){delete this.fi[t]},t.prototype.getAllActiveQueryTargets=function(){return this.li.activeTargetIds},t.prototype.isActiveQueryTarget=function(t){return this.li.activeTargetIds.has(t)},t.prototype.start=function(){return this.li=new LI,Promise.resolve()},t.prototype.handleUserChange=function(t,e,n){},t.prototype.setOnlineState=function(t){},t.prototype.shutdown=function(){},t.prototype.writeSequenceNumber=function(t){},t.prototype.notifyBundleLoaded=function(){},t}(),ZI=function(){function t(){}return t.prototype.di=function(t){},t.prototype.shutdown=function(){},t}(),qI=function(){function t(){var t=this;this.wi=function(){return t._i()},this.mi=function(){return t.yi()},this.gi=[],this.pi()}return t.prototype.di=function(t){this.gi.push(t)},t.prototype.shutdown=function(){window.removeEventListener("online",this.wi),window.removeEventListener("offline",this.mi)},t.prototype.pi=function(){window.addEventListener("online",this.wi),window.addEventListener("offline",this.mi)},t.prototype._i=function(){Yx("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.gi;t<e.length;t++)(0,e[t])(0)},t.prototype.yi=function(){Yx("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.gi;t<e.length;t++)(0,e[t])(1)},t.yt=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),UI={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},VI=function(){function t(t){this.Ei=t.Ei,this.Ti=t.Ti}return t.prototype.Ii=function(t){this.Ai=t},t.prototype.Ri=function(t){this.bi=t},t.prototype.onMessage=function(t){this.vi=t},t.prototype.close=function(){this.Ti()},t.prototype.send=function(t){this.Ei(t)},t.prototype.Pi=function(){this.Ai()},t.prototype.Vi=function(t){this.bi(t)},t.prototype.Si=function(t){this.vi(t)},t}(),jI=function(t){function e(e){var n=this;return(n=t.call(this,e)||this).forceLongPolling=e.forceLongPolling,n.autoDetectLongPolling=e.autoDetectLongPolling,n.useFetchStreams=e.useFetchStreams,n}return gy(e,t),e.prototype.ki=function(t,e,n,i){return new Promise(function(r,s){var o=new Vx;o.listenOnce(Lx.COMPLETE,function(){try{switch(o.getLastErrorCode()){case Rx.NO_ERROR:var e=o.getResponseJson();Yx("Connection","XHR received:",JSON.stringify(e)),r(e);break;case Rx.TIMEOUT:Yx("Connection",'RPC "'+t+'" timed out'),s(new zx(Bx.DEADLINE_EXCEEDED,"Request time out"));break;case Rx.HTTP_ERROR:var n=o.getStatus();if(Yx("Connection",'RPC "'+t+'" failed with status:',n,"response text:",o.getResponseText()),n>0){var i=o.getResponseJson().error;if(i&&i.status&&i.message){var a=(c=i.status.toLowerCase().replace(/_/g,"-"),Object.values(Bx).indexOf(c)>=0?c:Bx.UNKNOWN);s(new zx(a,i.message))}else s(new zx(Bx.UNKNOWN,"Server responded with status "+o.getStatus()))}else s(new zx(Bx.UNAVAILABLE,"Connection failed."));break;default:Wx()}}finally{Yx("Connection",'RPC "'+t+'" completed.')}var c});var a=JSON.stringify(i);o.send(e,"POST",a,n,15)})},e.prototype.Oi=function(t,e){var n=[this.Di,"/","google.firestore.v1.Firestore","/",t,"/channel"],i=new kx,r=S_(),s={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database}
1,sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(s.xmlHttpFactory=new qx({})),this.Fi(s.initMessageHeaders,e),"undefined"!=typeof window&&(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ty())||"object"==typeof navigator&&"ReactNative"===navigator.product||Ty().indexOf("Electron/")>=0||function(){var t=Ty();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}()||Ty().indexOf("MSAppHost/")>=0||function(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}()||(s.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");Yx("Connection","Creating WebChannel: "+o,s);var a=i.createWebChannel(o,s),c=!1,u=!1,l=new VI({Ei:function(t){u?Yx("Connection","Not sending because WebChannel is closed:",t):(c||(Yx("Connection","Opening WebChannel transport."),a.open(),c=!0),Yx("Connection","WebChannel sending:",t),a.send(t))},Ti:function(){return a.close()}}),h=function(t,e,n){t.listen(e,function(t){try{n(t)}catch(e){setTimeout(function(){throw e},0)}})};return h(a,Ux.EventType.OPEN,function(){u||Yx("Connection","WebChannel transport opened.")}),h(a,Ux.EventType.CLOSE,function(){u||(u=!0,Yx("Connection","WebChannel transport closed"),l.Vi())}),h(a,Ux.EventType.ERROR,function(t){u||(u=!0,$x("Connection","WebChannel transport errored:",t),l.Vi(new zx(Bx.UNAVAILABLE,"The operation could not be completed")))}),h(a,Ux.EventType.MESSAGE,function(t){var e;if(!u){var n=t.data[0];Kx(!!n);var i=n.error||(null===(e=n[0])||void 0===e?void 0:e.error);if(i){Yx("Connection","WebChannel received error:",i);var r=i.status,s=function(t){var e=iC[t];if(void 0!==e)return uC(e)}(r),o=i.message;void 0===s&&(s=Bx.INTERNAL,o="Unknown error status: "+r+" with message "+i.message),u=!0,l.Vi(new zx(s,o)),a.close()}else Yx("Connection","WebChannel received:",n),l.Si(n)}}),h(r,Mx.STAT_EVENT,function(t){t.stat===Fx?Yx("Connection","Detected buffering proxy"):t.stat===Zx&&Yx("Connection","Detected no buffering proxy")}),setTimeout(function(){l.Pi()},0),l},e}(function(){function t(t){this.databaseInfo=t,this.databaseId=t.databaseId,this.Di=(t.ssl?"https":"http")+"://"+t.host,this.Ci="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return t.prototype.Ni=function(t,e,n,i){var r=this.xi(t,e);Yx("RestConnection","Sending: ",r,n);var s={};return this.Fi(s,i),this.ki(t,r,s,n).then(function(t){return Yx("RestConnection","Received: ",t),t},function(e){throw $x("RestConnection",t+" failed with error: ",e,"url: ",r,"request:",n),e})},t.prototype.$i=function(t,e,n,i){return this.Ni(t,e,n,i)},t.prototype.Fi=function(t,e){if(t["X-Goog-Api-Client"]="gl-js/ fire/8.8.1",t["Content-Type"]="text/plain",this.databaseInfo.appId&&(t["X-Firebase-GMPID"]=this.databaseInfo.appId),e)for(var n in e.authHeaders)e.authHeaders.hasOwnProperty(n)&&(t[n]=e.authHeaders[n])},t.prototype.xi=function(t,e){return this.Di+"/v1/"+e+":"+UI[t]},t}());function BI(){return"undefined"!=typeof window?window:null}function zI(){return"undefined"!=typeof document?document:null}function HI(t){return new MC(t,!0)}var GI=function(){function t(t,e,n,i,r){void 0===n&&(n=1e3),void 0===i&&(i=1.5),void 0===r&&(r=6e4),this.Se=t,this.timerId=e,this.Mi=n,this.Li=i,this.Bi=r,this.qi=0,this.Ui=null,this.Ki=Date.now(),this.reset()}return t.prototype.reset=function(){this.qi=0},t.prototype.Qi=function(){this.qi=this.Bi},t.prototype.ji=function(t){var e=this;this.cancel();var n=Math.floor(this.qi+this.Wi()),i=Math.max(0,Date.now()-this.Ki),r=Math.max(0,n-i);r>0&&Yx("ExponentialBackoff","Backing off for "+r+" ms (base delay: "+this.qi+" ms, delay with jitter: "+n+" ms, last attempt: "+i+" ms ago)"),this.Ui=this.Se.enqueueAfterDelay(this.timerId,r,function(){return e.Ki=Date.now(),t()}),this.qi*=this.Li,this.qi<this.Mi&&(this.qi=this.Mi),this.qi>this.Bi&&(this.qi=this.Bi)},t.prototype.Gi=function(){null!==this.Ui&&(this.Ui.skipDelay(),this.Ui=null)},t.prototype.cancel=function(){null!==this.Ui&&(this.Ui.cancel(),this.Ui=null)},t.prototype.Wi=function(){return(Math.random()-.5)*this.qi},t}(),YI=function(){function t(t,e,n,i,r,s){this.Se=t,this.zi=n,this.Hi=i,this.Ji=r,this.listener=s,this.state=0,this.Yi=0,this.Xi=null,this.stream=null,this.Zi=new GI(t,e)}return t.prototype.tr=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.er=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.nr()},t.prototype.stop=function(){return vy(this,void 0,void 0,function(){return yy(this,function(t){switch(t.label){case 0:return this.tr()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},t.prototype.sr=function(){this.state=0,this.Zi.reset()},t.prototype.ir=function(){var t=this;this.er()&&null===this.Xi&&(this.Xi=this.Se.enqueueAfterDelay(this.zi,6e4,function(){return t.rr()}))},t.prototype.cr=function(t){this.ur(),this.stream.send(t)},t.prototype.rr=function(){return vy(this,void 0,void 0,function(){return yy(this,function(t){return this.er()?[2,this.close(0)]:[2]})})},t.prototype.ur=function(){this.Xi&&(this.Xi.cancel(),this.Xi=null)},t.prototype.close=function(t,e){return vy(this,void 0,void 0,function(){return yy(this,function(n){switch(n.label){case 0:return this.ur(),this.Zi.cancel(),this.Yi++,3!==t?this.Zi.reset():e&&e.code===Bx.RESOURCE_EXHAUSTED?(Qx(e.toString()),Qx("Using maximum backoff delay to prevent overloading the backend."),this.Zi.Qi()):e&&e.code===Bx.UNAUTHENTICATED&&this.Ji.invalidateToken(),null!==this.stream&&(this.ar(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Ri(e)];case 1:return n.sent(),[2]}})})},t.prototype.ar=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.hr(this.Yi),n=this.Yi;this.Ji.getToken().then(function(e){t.Yi===n&&t.lr(e)},function(n){e(function(){var e=new zx(Bx.UNKNOWN,"Fetching auth token failed: "+n.message);return t.dr(e)})})},t.prototype.lr=function(t){var e=this,n=this.hr(this.Yi);this.stream=this.wr(t),this.stream.Ii(function(){n(function(){return e.state=2,e.listener.Ii()})}),this.stream.Ri(function(t){n(function(){return e.dr(t)})}),this.stream.onMessage(function(t){n(function(){return e.onMessage(t)})})},t.prototype.nr=function(){var t=this;this.state=4,this.Zi.ji(function(){return vy(t,void 0,void 0,function(){return yy(this,function(t){return this.state=0,this.start(),[2]})})})},t.prototype.dr=function(t){return Yx("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.hr=function(t){var e=this;return function(n){e.Se.enqueueAndForget(function(){return e.Yi===t?n():(Yx("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())})}},t}(),QI=function(t){function e(e,n,i,r,s){var o=this;return(o=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,i,s)||this).R=r,o}return gy(e,t),e.prototype.wr=function(t){return this.Hi.Oi("Listen",t)},e.prototype.onMessage=function(t){this.Zi.reset();var e=function(t,e){var n,i;if("targetChange"in e){var r="NO_CHANGE"===(i=e.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===i?1:"REMOVE"===i?2:"CURRENT"===i?3:"RESET"===i?4:Wx(),s=e.targetChange.targetIds||[],o=function(t,e){return t.I?(Kx(void 0===e||"string"==typeof e),gS.fromBase64String(e||"")):(Kx(void 0===e||e instanceof Uint8Array),gS.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),a=(c=e.targetChange.cause)&&function(t){var e=void 0===t.code?Bx.UNKNOWN:uC(t.code);return new zx(e,t.message||"")}(c);n=new kC(r,s,o,a||null)}else if("documentChange"in e){s=zC(t,(r=e.documentChange).document.name),o=UC(r.document.updateTime);var c=new VS({mapValue:{fields:r.document.fields}}),u=(a=BS.newFoundDocument(s,o,c),r.targetIds||[]);n=new AC(u,r.removedTargetIds||[],a.key,a)}else if("documentDelete"in e)s=zC(t,(r=e.documentDelete).document),o=r.readTime?UC(r.readTime):oS.min(),c=BS.newNoDocument(s,o),n=new AC([],a=r.removedTargetIds||[],c.key,c);else if("documentRemove"in e)s=zC(t,(r=e.documentRemove).document),n=new AC([],o=r.removedTargetIds||[],s,null);else{if(!("filter"in e))return Wx();var l=e.filter;s=new aC(r=l.count||0),n=new IC(o=l.targetId,s)}return n}(this.R,t),n=function(t){if(!("targetChange"in t))return oS.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?oS.min():e.readTime?UC(e.readTime):oS.min()}(t);return this.listener._r(e,n)},e.prototype.mr=function(t){var e,n,i,r,s={};s.database=YC(this.R),s.addTarget=(e=this.R,(i=QS(r=(n=t).target)?{documents:XC(e,r)}:{query:tE(e,r)}).targetId=n.targetId,n.resumeToken.approximateByteSize()>0?i.resumeToken=ZC(e,n.resumeToken):n.snapshotVersion.compareTo(oS.min())>0&&(i.readTime=FC(e,n.snapshotVersion.toTimestamp())),i);var o=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 Wx()}}(0,e.purpose);return null==n?null:{"goog-listen-tags":n}}(0,t);o&&(s.labels=o),this.cr(s)},e.prototype.yr=function(t){var e={};e.database=YC(this.R),e.removeTarget=t,this.cr(e)},e}(YI),$I=function(t){function e(e,n,i,r,s){var o=this;return(o=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,i,s)||this).R=r,o.gr=!1,o}
1return gy(e,t),Object.defineProperty(e.prototype,"pr",{get:function(){return this.gr},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.gr=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.ar=function(){this.gr&&this.Er([])},e.prototype.wr=function(t){return this.Hi.Oi("Write",t)},e.prototype.onMessage=function(t){if(Kx(!!t.streamToken),this.lastStreamToken=t.streamToken,this.gr){this.Zi.reset();var e=(r=t.commitTime,(i=t.writeResults)&&i.length>0?(Kx(void 0!==r),i.map(function(t){return n=r,(i=UC((e=t).updateTime?e.updateTime:n)).isEqual(oS.min())&&(i=UC(n)),new BT(i,e.transformResults||[]);var e,n,i})):[]),n=UC(t.commitTime);return this.listener.Tr(n,e)}var i,r;return Kx(!t.writeResults||0===t.writeResults.length),this.gr=!0,this.listener.Ir()},e.prototype.Ar=function(){var t={};t.database=YC(this.R),this.cr(t)},e.prototype.Er=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map(function(t){return WC(e.R,t)})};this.cr(n)},e}(YI),JI=function(t){function e(e,n,i){var r=this;return(r=t.call(this)||this).credentials=e,r.Hi=n,r.R=i,r.Rr=!1,r}return gy(e,t),e.prototype.br=function(){if(this.Rr)throw new zx(Bx.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.Ni=function(t,e,n){var i=this;return this.br(),this.credentials.getToken().then(function(r){return i.Hi.Ni(t,e,n,r)}).catch(function(t){throw"FirebaseError"===t.name?(t.code===Bx.UNAUTHENTICATED&&i.credentials.invalidateToken(),t):new zx(Bx.UNKNOWN,t.toString())})},e.prototype.$i=function(t,e,n){var i=this;return this.br(),this.credentials.getToken().then(function(r){return i.Hi.$i(t,e,n,r)}).catch(function(t){throw"FirebaseError"===t.name?(t.code===Bx.UNAUTHENTICATED&&i.credentials.invalidateToken(),t):new zx(Bx.UNKNOWN,t.toString())})},e.prototype.terminate=function(){this.Rr=!0},e}(function(){}),WI=function(){function t(t,e){this.asyncQueue=t,this.onlineStateHandler=e,this.state="Unknown",this.vr=0,this.Pr=null,this.Vr=!0}return t.prototype.Sr=function(){var t=this;0===this.vr&&(this.Dr("Unknown"),this.Pr=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,function(){return t.Pr=null,t.Cr("Backend didn't respond within 10 seconds."),t.Dr("Offline"),Promise.resolve()}))},t.prototype.Nr=function(t){"Online"===this.state?this.Dr("Unknown"):(this.vr++,this.vr>=1&&(this.Fr(),this.Cr("Connection failed 1 times. Most recent error: "+t.toString()),this.Dr("Offline")))},t.prototype.set=function(t){this.Fr(),this.vr=0,"Online"===t&&(this.Vr=!1),this.Dr(t)},t.prototype.Dr=function(t){t!==this.state&&(this.state=t,this.onlineStateHandler(t))},t.prototype.Cr=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.Vr?(Qx(e),this.Vr=!1):Yx("OnlineStateTracker",e)},t.prototype.Fr=function(){null!==this.Pr&&(this.Pr.cancel(),this.Pr=null)},t}(),KI=function(t,e,n,i,r){var s=this;this.localStore=t,this.datastore=e,this.asyncQueue=n,this.remoteSyncer={},this.kr=[],this.$r=new Map,this.Or=new Set,this.Mr=[],this.Lr=r,this.Lr.di(function(t){n.enqueueAndForget(function(){return vy(s,void 0,void 0,function(){return yy(this,function(t){switch(t.label){case 0:return ak(this)?(Yx("RemoteStore","Restarting streams for network reachability change."),[4,function(t){return vy(this,void 0,void 0,function(){var e;return yy(this,function(n){switch(n.label){case 0:return(e=Xx(t)).Or.add(4),[4,tk(e)];case 1:return n.sent(),e.Br.set("Unknown"),e.Or.delete(4),[4,XI(e)];case 2:return n.sent(),[2]}})})}(this)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})})}),this.Br=new WI(n,i)};function XI(t){return vy(this,void 0,void 0,function(){var e,n;return yy(this,function(i){switch(i.label){case 0:if(!ak(t))return[3,4];e=0,n=t.Mr,i.label=1;case 1:return e<n.length?[4,(0,n[e])(!0)]:[3,4];case 2:i.sent(),i.label=3;case 3:return e++,[3,1];case 4:return[2]}})})}function tk(t){return vy(this,void 0,void 0,function(){var e,n;return yy(this,function(i){switch(i.label){case 0:e=0,n=t.Mr,i.label=1;case 1:return e<n.length?[4,(0,n[e])(!1)]:[3,4];case 2:i.sent(),i.label=3;case 3:return e++,[3,1];case 4:return[2]}})})}function ek(t,e){var n=Xx(t);n.$r.has(e.targetId)||(n.$r.set(e.targetId,e),ok(n)?sk(n):xk(n).er()&&ik(n,e))}function nk(t,e){var n=Xx(t),i=xk(n);n.$r.delete(e),i.er()&&rk(n,e),0===n.$r.size&&(i.er()?i.ir():ak(n)&&n.Br.set("Unknown"))}function ik(t,e){t.qr.U(e.targetId),xk(t).mr(e)}function rk(t,e){t.qr.U(e),xk(t).yr(e)}function sk(t){t.qr=new DC({getRemoteKeysForTarget:function(e){return t.remoteSyncer.getRemoteKeysForTarget(e)},lt:function(e){return t.$r.get(e)||null}}),xk(t).start(),t.Br.Sr()}function ok(t){return ak(t)&&!xk(t).tr()&&t.$r.size>0}function ak(t){return 0===Xx(t).Or.size}function ck(t){t.qr=void 0}function uk(t){return vy(this,void 0,void 0,function(){return yy(this,function(e){return t.$r.forEach(function(e,n){ik(t,e)}),[2]})})}function lk(t,e){return vy(this,void 0,void 0,function(){return yy(this,function(n){return ck(t),ok(t)?(t.Br.Nr(e),sk(t)):t.Br.set("Unknown"),[2]})})}function hk(t,e,n){return vy(this,void 0,void 0,function(){var i,r,s;return yy(this,function(o){switch(o.label){case 0:if(t.Br.set("Online"),!(e instanceof kC&&2===e.state&&e.cause))return[3,6];o.label=1;case 1:return o.trys.push([1,3,,5]),[4,function(t,e){return vy(this,void 0,void 0,function(){var n,i,r,s;return yy(this,function(o){switch(o.label){case 0:n=e.cause,i=0,r=e.targetIds,o.label=1;case 1:return i<r.length?t.$r.has(s=r[i])?[4,t.remoteSyncer.rejectListen(s,n)]:[3,3]:[3,5];case 2:o.sent(),t.$r.delete(s),t.qr.removeTarget(s),o.label=3;case 3:o.label=4;case 4:return i++,[3,1];case 5:return[2]}})})}(t,e)];case 2:return o.sent(),[3,5];case 3:return i=o.sent(),Yx("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),i),[4,dk(t,i)];case 4:return o.sent(),[3,5];case 5:return[3,13];case 6:if(e instanceof AC?t.qr.X(e):e instanceof IC?t.qr.rt(e):t.qr.et(e),n.isEqual(oS.min()))return[3,13];o.label=7;case 7:return o.trys.push([7,11,,13]),[4,sI(t.localStore)];case 8:return r=o.sent(),n.compareTo(r)>
1=0?[4,(a=t,c=n,u=a.qr.ut(c),u.targetChanges.forEach(function(t,e){if(t.resumeToken.approximateByteSize()>0){var n=a.$r.get(e);n&&a.$r.set(e,n.withResumeToken(t.resumeToken,c))}}),u.targetMismatches.forEach(function(t){var e=a.$r.get(t);if(e){a.$r.set(t,e.withResumeToken(gS.EMPTY_BYTE_STRING,e.snapshotVersion)),rk(a,t);var n=new WE(e.target,t,1,e.sequenceNumber);ik(a,n)}}),a.remoteSyncer.applyRemoteEvent(u))]:[3,10];case 9:o.sent(),o.label=10;case 10:return[3,13];case 11:return Yx("RemoteStore","Failed to raise snapshot:",s=o.sent()),[4,dk(t,s)];case 12:return o.sent(),[3,13];case 13:return[2]}var a,c,u})})}function dk(t,e,n){return vy(this,void 0,void 0,function(){var i=this;return yy(this,function(r){switch(r.label){case 0:if(!jE(e))throw e;return t.Or.add(1),[4,tk(t)];case 1:return r.sent(),t.Br.set("Offline"),n||(n=function(){return sI(t.localStore)}),t.asyncQueue.enqueueRetryable(function(){return vy(i,void 0,void 0,function(){return yy(this,function(e){switch(e.label){case 0:return Yx("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return e.sent(),t.Or.delete(1),[4,XI(t)];case 2:return e.sent(),[2]}})})}),[2]}})})}function fk(t,e){return e().catch(function(n){return dk(t,n,e)})}function pk(t){return vy(this,void 0,void 0,function(){var e,n,i,r,s;return yy(this,function(o){switch(o.label){case 0:e=Xx(t),n=Sk(e),i=e.kr.length>0?e.kr[e.kr.length-1].batchId:-1,o.label=1;case 1:if(!(ak(a=e)&&a.kr.length<10))return[3,7];o.label=2;case 2:return o.trys.push([2,4,,6]),[4,cI(e.localStore,i)];case 3:return null===(r=o.sent())?(0===e.kr.length&&n.ir(),[3,7]):(i=r.batchId,function(t,e){t.kr.push(e);var n=Sk(t);n.er()&&n.pr&&n.Er(e.mutations)}(e,r),[3,6]);case 4:return s=o.sent(),[4,dk(e,s)];case 5:return o.sent(),[3,6];case 6:return[3,1];case 7:return gk(e)&&mk(e),[2]}var a})})}function gk(t){return ak(t)&&!Sk(t).tr()&&t.kr.length>0}function mk(t){Sk(t).start()}function vk(t){return vy(this,void 0,void 0,function(){return yy(this,function(e){return Sk(t).Ar(),[2]})})}function yk(t){return vy(this,void 0,void 0,function(){var e,n,i;return yy(this,function(r){for(e=Sk(t),n=0,i=t.kr;n<i.length;n++)e.Er(i[n].mutations);return[2]})})}function bk(t,e,n){return vy(this,void 0,void 0,function(){var i,r;return yy(this,function(s){switch(s.label){case 0:return i=t.kr.shift(),r=JE.from(i,e,n),[4,fk(t,function(){return t.remoteSyncer.applySuccessfulWrite(r)})];case 1:return s.sent(),[4,pk(t)];case 2:return s.sent(),[2]}})})}function _k(t,e){return vy(this,void 0,void 0,function(){return yy(this,function(n){switch(n.label){case 0:return e&&Sk(t).pr?[4,function(t,e){return vy(this,void 0,void 0,function(){var n,i;return yy(this,function(r){switch(r.label){case 0:return cC(i=e.code)&&i!==Bx.ABORTED?(n=t.kr.shift(),Sk(t).sr(),[4,fk(t,function(){return t.remoteSyncer.rejectFailedWrite(n.batchId,e)})]):[3,3];case 1:return r.sent(),[4,pk(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})}(t,e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return gk(t)&&mk(t),[2]}})})}function wk(t,e){return vy(this,void 0,void 0,function(){var n;return yy(this,function(i){switch(i.label){case 0:return n=Xx(t),e?(n.Or.delete(2),[4,XI(n)]):[3,2];case 1:return i.sent(),[3,5];case 2:return e?[3,4]:(n.Or.add(2),[4,tk(n)]);case 3:i.sent(),n.Br.set("Unknown"),i.label=4;case 4:i.label=5;case 5:return[2]}})})}function xk(t){var e,n,i,r,s=this;return t.Ur||(t.Ur=(e=t.datastore,n=t.asyncQueue,i={Ii:uk.bind(null,t),Ri:lk.bind(null,t),_r:hk.bind(null,t)},(r=Xx(e)).br(),new QI(n,r.Hi,r.credentials,r.R,i)),t.Mr.push(function(e){return vy(s,void 0,void 0,function(){return yy(this,function(n){switch(n.label){case 0:return e?(t.Ur.sr(),ok(t)?sk(t):t.Br.set("Unknown"),[3,3]):[3,1];case 1:return[4,t.Ur.stop()];case 2:n.sent(),ck(t),n.label=3;case 3:return[2]}})})})),t.Ur}function Sk(t){var e,n,i,r,s=this;return t.Kr||(t.Kr=(e=t.datastore,n=t.asyncQueue,i={Ii:vk.bind(null,t),Ri:_k.bind(null,t),Ir:yk.bind(null,t),Tr:bk.bind(null,t)},(r=Xx(e)).br(),new $I(n,r.Hi,r.credentials,r.R,i)),t.Mr.push(function(e){return vy(s,void 0,void 0,function(){return yy(this,function(n){switch(n.label){case 0:return e?(t.Kr.sr(),[4,pk(t)]):[3,2];case 1:return n.sent(),[3,4];case 2:return[4,t.Kr.stop()];case 3:n.sent(),t.kr.length>0&&(Yx("RemoteStore","Stopping write stream with "+t.kr.length+" pending writes"),t.kr=[]),n.label=4;case 4:return[2]}})})})),t.Kr}var Tk=function(){function t(t,e,n,i,r){this.asyncQueue=t,this.timerId=e,this.targetTimeMs=n,this.op=i,this.removalCallback=r,this.deferred=new ME,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(function(t){})}return t.createAndSchedule=function(e,n,i,r,s){var o=new t(e,n,Date.now()+i,r,s);return o.start(i),o},t.prototype.start=function(t){var e=this;this.timerHandle=setTimeout(function(){return e.handleDelayElapsed()},t)},t.prototype.skipDelay=function(){return this.handleDelayElapsed()},t.prototype.cancel=function(t){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new zx(Bx.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
1)},t.prototype.handleDelayElapsed=function(){var t=this;this.asyncQueue.enqueueAndForget(function(){return null!==t.timerHandle?(t.clearTimeout(),t.op().then(function(e){return t.deferred.resolve(e)})):Promise.resolve()})},t.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},t}();function Ck(t,e){if(Qx("AsyncQueue",e+": "+t),jE(t))return new zx(Bx.UNAVAILABLE,e+": "+t);throw t}var Ek=function(){function t(t){this.comparator=t?function(e,n){return t(e,n)||ES.comparator(e.key,n.key)}:function(t,e){return ES.comparator(t.key,e.key)},this.keyedMap=yC(),this.sortedSet=new lC(this.comparator)}return t.emptySet=function(e){return new t(e.comparator)},t.prototype.has=function(t){return null!=this.keyedMap.get(t)},t.prototype.get=function(t){return this.keyedMap.get(t)},t.prototype.first=function(){return this.sortedSet.minKey()},t.prototype.last=function(){return this.sortedSet.maxKey()},t.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},t.prototype.indexOf=function(t){var e=this.keyedMap.get(t);return e?this.sortedSet.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t){this.sortedSet.inorderTraversal(function(e,n){return t(e),!1})},t.prototype.add=function(t){var e=this.delete(t.key);return e.copy(e.keyedMap.insert(t.key,t),e.sortedSet.insert(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.copy(this.keyedMap.remove(t),this.sortedSet.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t)||this.size!==e.size)return!1;for(var n=this.sortedSet.getIterator(),i=e.sortedSet.getIterator();n.hasNext();){var r=n.getNext().key,s=i.getNext().key;if(!r.isEqual(s))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 i=new t;return i.comparator=this.comparator,i.keyedMap=e,i.sortedSet=n,i},t}(),Ak=function(){function t(){this.Qr=new lC(ES.comparator)}return t.prototype.track=function(t){var e=t.doc.key,n=this.Qr.get(e);n?0!==t.type&&3===n.type?this.Qr=this.Qr.insert(e,t):3===t.type&&1!==n.type?this.Qr=this.Qr.insert(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.Qr=this.Qr.insert(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.Qr=this.Qr.insert(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.Qr=this.Qr.remove(e):1===t.type&&2===n.type?this.Qr=this.Qr.insert(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.Qr=this.Qr.insert(e,{type:2,doc:t.doc}):Wx():this.Qr=this.Qr.insert(e,t)},t.prototype.jr=function(){var t=[];return this.Qr.inorderTraversal(function(e,n){t.push(n)}),t},t}(),Ik=function(){function t(t,e,n,i,r,s,o,a){this.query=t,this.docs=e,this.oldDocs=n,this.docChanges=i,this.mutatedKeys=r,this.fromCache=s,this.syncStateChanged=o,this.excludesMetadataChanges=a}return t.fromInitialDocuments=function(e,n,i,r){var s=[];return n.forEach(function(t){s.push({type:0,doc:t})}),new t(e,n,Ek.emptySet(n),s,i,r,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.syncStateChanged===t.syncStateChanged&&this.mutatedKeys.isEqual(t.mutatedKeys)&&wT(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.oldDocs.isEqual(t.oldDocs)))return!1;var e=this.docChanges,n=t.docChanges;if(e.length!==n.length)return!1;for(var i=0;i<e.length;i++)if(e[i].type!==n[i].type||!e[i].doc.isEqual(n[i].doc))return!1;return!0},t}(),kk=function(){this.Wr=void 0,this.listeners=[]},Ok=function(){this.queries=new FA(function(t){return xT(t)},wT),this.onlineState="Unknown",this.Gr=new Set};function Dk(t,e){return vy(this,void 0,void 0,function(){var n,i,r,s,o,a,c;return yy(this,function(u){switch(u.label){case 0:if(n=Xx(t),r=!1,(s=n.queries.get(i=e.query))||(r=!0,s=new kk),!r)return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),o=s,[4,n.onListen(i)];case 2:return o.Wr=u.sent(),[3,4];case 3:return a=u.sent(),c=Ck(a,"Initialization of query '"+ST(e.query)+"' failed"),[2,void e.onError(c)];case 4:return n.queries.set(i,s),s.listeners.push(e),e.zr(n.onlineState),s.Wr&&e.Hr(s.Wr)&&Lk(n),[2]}})})}function Nk(t,e){return vy(this,void 0,void 0,function(){var n,i,r,s,o;return yy(this,function(a){return n=Xx(t),r=!1,(s=n.queries.get(i=e.query))&&
1(o=s.listeners.indexOf(e))>=0&&(s.listeners.splice(o,1),r=0===s.listeners.length),r?[2,(n.queries.delete(i),n.onUnlisten(i))]:[2]})})}function Pk(t,e){for(var n=Xx(t),i=!1,r=0,s=e;r<s.length;r++){var o=s[r],a=n.queries.get(o.query);if(a){for(var c=0,u=a.listeners;c<u.length;c++)u[c].Hr(o)&&(i=!0);a.Wr=o}}i&&Lk(n)}function Rk(t,e,n){var i=Xx(t),r=i.queries.get(e);if(r)for(var s=0,o=r.listeners;s<o.length;s++)o[s].onError(n);i.queries.delete(e)}function Lk(t){t.Gr.forEach(function(t){t.next()})}var Mk=function(){function t(t,e,n){this.query=t,this.Jr=e,this.Yr=!1,this.Xr=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.Hr=function(t){if(!this.options.includeMetadataChanges){for(var e=[],n=0,i=t.docChanges;n<i.length;n++){var r=i[n];3!==r.type&&e.push(r)}t=new Ik(t.query,t.docs,t.oldDocs,e,t.mutatedKeys,t.fromCache,t.syncStateChanged,!0)}var s=!1;return this.Yr?this.Zr(t)&&(this.Jr.next(t),s=!0):this.eo(t,this.onlineState)&&(this.no(t),s=!0),this.Xr=t,s},t.prototype.onError=function(t){this.Jr.error(t)},t.prototype.zr=function(t){this.onlineState=t;var e=!1;return this.Xr&&!this.Yr&&this.eo(this.Xr,t)&&(this.no(this.Xr),e=!0),e},t.prototype.eo=function(t,e){return!t.fromCache||!(this.options.so&&"Offline"!==e||t.docs.isEmpty()&&"Offline"!==e)},t.prototype.Zr=function(t){return t.docChanges.length>0||!!(t.syncStateChanged||this.Xr&&this.Xr.hasPendingWrites!==t.hasPendingWrites)&&!0===this.options.includeMetadataChanges},t.prototype.no=function(t){t=Ik.fromInitialDocuments(t.query,t.docs,t.mutatedKeys,t.fromCache),this.Yr=!0,this.Jr.next(t)},t}(),Fk=function(){function t(t,e){this.payload=t,this.byteLength=e}return t.prototype.io=function(){return"metadata"in this.payload},t}(),Zk=function(){function t(t){this.R=t}return t.prototype.qn=function(t){return zC(this.R,t)},t.prototype.Un=function(t){return t.metadata.exists?JC(this.R,t.document,!1):BS.newNoDocument(this.qn(t.metadata.name),this.Kn(t.metadata.readTime))},t.prototype.Kn=function(t){return UC(t)},t}();!function(){function t(t,e,n){this.ro=t,this.localStore=e,this.R=n,this.queries=[],this.documents=[],this.progress=function(t){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:t.totalDocuments,totalBytes:t.totalBytes}}(t)}t.prototype.oo=function(t){this.progress.bytesLoaded+=t.byteLength;var e=this.progress.documentsLoaded;return t.payload.namedQuery?this.queries.push(t.payload.namedQuery):t.payload.documentMetadata?(this.documents.push({metadata:t.payload.documentMetadata}),t.payload.documentMetadata.exists||++e):t.payload.document&&(this.documents[this.documents.length-1].document=t.payload.document,++e),e!==this.progress.documentsLoaded?(this.progress.documentsLoaded=e,Object.assign({},this.progress)):null},t.prototype.co=function(t){for(var e=new Map,n=new Zk(this.R),i=0,r=t;i<r.length;i++){var s=r[i];if(s.metadata.queries)for(var o=n.qn(s.metadata.name),a=0,c=s.metadata.queries;a<c.length;a++){var u=c[a],l=(e.get(u)||xC()).add(o);e.set(u,l)}}return e},t.prototype.complete=function(){return vy(this,void 0,void 0,function(){var t,e,n,i,r;return yy(this,function(s){switch(s.label){case 0:return[4,gI(this.localStore,new Zk(this.R),this.documents,this.ro.id)];case 1:t=s.sent(),e=this.co(this.documents),n=0,i=this.queries,s.label=2;case 2:return n<i.length?[4,mI(this.localStore,r=i[n],e.get(r.name))]:[3,5];case 3:s.sent(),s.label=4;case 4:return n++,[3,2];case 5:return[2,(this.progress.taskState="Success",new WA(Object.assign({},this.progress),t))]}})})}}();var qk=function(t){this.key=t},Uk=function(t){this.key=t},Vk=function(){function t(t,e){this.query=t,this.uo=e,this.ao=null,this.current=!1,this.ho=xC(),this.mutatedKeys=xC(),this.lo=CT(t),this.fo=new Ek(this.lo)}return Object.defineProperty(t.prototype,"wo",{get:function(){return this.uo},enumerable:!1,configurable:!0}),t.prototype._o=function(t,e){var n=this,i=e?e.mo:new Ak,r=e?e.fo:this.fo,s=e?e.mutatedKeys:this.mutatedKeys,o=r,a=!1,c=fT(this.query)&&r.size===this.query.limit?r.last():null,u=pT(this.query)&&r.size===this.query.limit?r.first():null;if(t.inorderTraversal(function(t,e){var l=r.get(t),h=TT(n.query,e)?e:null,d=!!l&&n.mutatedKeys.has(l.key),f=!!h&&(h.hasLocalMutations||n.mutatedKeys.has(h.key)&&h.hasCommittedMutations),p=!1;l&&h?l.data.isEqual(h.data)?d!==f&&(i.track({type:3,doc:h}),p=!0):n.yo(l,h)||(i.track({type:2,doc:h}),p=!0,(c&&n.lo(h,c)>0||u&&n.lo(h,u)<0)&&(a=!0)):!l&&h?(i.track({type:0,doc:h}),p=!0):l&&!h&&(i.track({type:1,doc:l}),p=!0,(c||u)&&(a=!0)),p&&(h?(o=o.add(h),s=f?s.add(t):s.delete(t)):(o=o.delete(t),s=s.delete(t)))}),fT(this.query)||pT(this.query))for(;o.size>this.query.limit;){var l=fT(this.query)?o.last():o.first();o=o.delete(l.key),s=s.delete(l.key),i.track({type:1,doc:l})}return{fo:o,mo:i,Nn:a,mutatedKeys:s}},t.prototype.yo=function(t,e){return t.hasLocalMutations&&e.hasCommittedMutations&&!e.hasLocalMutations},t.prototype.applyChanges=function(t,e,n){var i=this,r=this.fo;this.fo=t.fo,this.mutatedKeys=t.mutatedKeys;var s=t.mo.jr();s.sort(function(t,e){return n=e.type,(r=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Wx()}})(t.type)-r(n)||i.lo(t.doc,e.doc);var n,r}),this.po(n);var o=e?this.Eo():[],a=0===this.ho.size&&this.current?1:0,c=a!==this.ao;return this.ao=a,0!==s.length||c?{snapshot:new Ik(this.query,t.fo,r,s,t.mutatedKeys,0===a,c,!1),To:o}:{To:o}},t.prototype.zr=function(t){return this.current&&"Offline"===t?(this.current=!1,this.applyChanges({fo:this.fo,mo:new Ak,mutatedKeys:this.mutatedKeys,Nn:!1},!1)):{To:[]}},t.prototype.Io=function(t){return!this.uo.has(t)&&!!this.fo.has(t)&&!this.fo.get(t).hasLocalMutations},t.prototype.po=function(t){var e=this;
1t&&(t.addedDocuments.forEach(function(t){return e.uo=e.uo.add(t)}),t.modifiedDocuments.forEach(function(t){}),t.removedDocuments.forEach(function(t){return e.uo=e.uo.delete(t)}),this.current=t.current)},t.prototype.Eo=function(){var t=this;if(!this.current)return[];var e=this.ho;this.ho=xC(),this.fo.forEach(function(e){t.Io(e.key)&&(t.ho=t.ho.add(e.key))});var n=[];return e.forEach(function(e){t.ho.has(e)||n.push(new Uk(e))}),this.ho.forEach(function(t){e.has(t)||n.push(new qk(t))}),n},t.prototype.Ao=function(t){this.uo=t.Bn,this.ho=xC();var e=this._o(t.documents);return this.applyChanges(e,!0)},t.prototype.Ro=function(){return Ik.fromInitialDocuments(this.query,this.fo,this.mutatedKeys,0===this.ao)},t}(),jk=function(t,e,n){this.query=t,this.targetId=e,this.view=n},Bk=function(t){this.key=t,this.bo=!1},zk=function(){function t(t,e,n,i,r,s){this.localStore=t,this.remoteStore=e,this.eventManager=n,this.sharedClientState=i,this.currentUser=r,this.maxConcurrentLimboResolutions=s,this.vo={},this.Po=new FA(function(t){return xT(t)},wT),this.Vo=new Map,this.So=new Set,this.Do=new lC(ES.comparator),this.Co=new Map,this.No=new yI,this.xo={},this.Fo=new Map,this.ko=CA.Yt(),this.onlineState="Unknown",this.$o=void 0}return Object.defineProperty(t.prototype,"isPrimaryClient",{get:function(){return!0===this.$o},enumerable:!1,configurable:!0}),t}();function Hk(t,e){return vy(this,void 0,void 0,function(){var n,i,r,s,o;return yy(this,function(a){switch(a.label){case 0:return n=_O(t),(r=n.Po.get(e))?(n.sharedClientState.addLocalQueryTarget(r.targetId),i=r.view.Ro(),[3,4]):[3,1];case 1:return[4,uI(n.localStore,bT(e))];case 2:return s=a.sent(),o=n.sharedClientState.addLocalQueryTarget(s.targetId),[4,Gk(n,e,s.targetId,"current"===o)];case 3:i=a.sent(),n.isPrimaryClient&&ek(n.remoteStore,s),a.label=4;case 4:return[2,i]}})})}function Gk(t,e,n,i){return vy(this,void 0,void 0,function(){var r,s,o,a,c,u;return yy(this,function(l){switch(l.label){case 0:return t.Oo=function(e,n,i){return function(t,e,n,i){return vy(this,void 0,void 0,function(){var r,s,o;return yy(this,function(a){switch(a.label){case 0:return(r=e.view._o(n)).Nn?[4,hI(t.localStore,e.query,!1).then(function(t){return e.view._o(t.documents,r)})]:[3,2];case 1:r=a.sent(),a.label=2;case 2:return s=i&&i.targetChanges.get(e.targetId),o=e.view.applyChanges(r,t.isPrimaryClient,s),[2,(sO(t,e.targetId,o.To),o.snapshot)]}})})}(t,e,n,i)},[4,hI(t.localStore,e,!0)];case 1:return r=l.sent(),s=new Vk(e,r.Bn),o=s._o(r.documents),a=EC.createSynthesizedTargetChangeForCurrentChange(n,i&&"Offline"!==t.onlineState),c=s.applyChanges(o,t.isPrimaryClient,a),sO(t,n,c.To),u=new jk(e,n,s),[2,(t.Po.set(e,u),t.Vo.has(n)?t.Vo.get(n).push(e):t.Vo.set(n,[e]),c.snapshot)]}})})}function Yk(t,e){return vy(this,void 0,void 0,function(){var n,i,r;return yy(this,function(s){switch(s.label){case 0:return n=Xx(t),i=n.Po.get(e),(r=n.Vo.get(i.targetId)).length>1?[2,(n.Vo.set(i.targetId,r.filter(function(t){return!wT(t,e)})),void n.Po.delete(e))]:n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(i.targetId),n.sharedClientState.isActiveQueryTarget(i.targetId)?[3,2]:[4,lI(n.localStore,i.targetId,!1).then(function(){n.sharedClientState.clearQueryState(i.targetId),nk(n.remoteStore,i.targetId),iO(n,i.targetId)}).catch(OA)]):[3,3];case 1:s.sent(),s.label=2;case 2:return[3,5];case 3:return iO(n,i.targetId),[4,lI(n.localStore,i.targetId,!0)];case 4:s.sent(),s.label=5;case 5:return[2]}})})}function Qk(t,e,n){return vy(this,void 0,void 0,function(){var i,r,s,o;return yy(this,function(a){switch(a.label){case 0:i=wO(t),a.label=1;case 1:return a.trys.push([1,5,,6]),[4,(c=i.localStore,u=e,h=Xx(c),d=sS.now(),f=u.reduce(function(t,e){return t.add(e.key)},xC()),h.persistence.runTransaction("Locally write mutations","readwrite",function(t){return h.Mn.pn(t,f).next(function(e){l=e;for(var n=[],i=0,r=u;i<r.length;i++){var s=r[i],o=$T(s,l.get(s.key));null!=o&&n.push(new XT(s.key,o,jS(o.value.mapValue),zT.exists(!0)))}return h._n.addMutationBatch(t,d,n,u)})}).then(function(t){return t.applyToLocalDocumentSet(l),{batchId:t.batchId,changes:l}}))];
1case 2:return r=a.sent(),i.sharedClientState.addPendingMutation(r.batchId),function(t,e,n){var i=t.xo[t.currentUser.toKey()];i||(i=new lC(nS)),i=i.insert(e,n),t.xo[t.currentUser.toKey()]=i}(i,r.batchId,n),[4,cO(i,r.changes)];case 3:return a.sent(),[4,pk(i.remoteStore)];case 4:return a.sent(),[3,6];case 5:return s=a.sent(),o=Ck(s,"Failed to persist write"),n.reject(o),[3,6];case 6:return[2]}var c,u,l,h,d,f})})}function $k(t,e){return vy(this,void 0,void 0,function(){var n,i;return yy(this,function(r){switch(r.label){case 0:n=Xx(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,oI(n.localStore,e)];case 2:return i=r.sent(),e.targetChanges.forEach(function(t,e){var i=n.Co.get(e);i&&(Kx(t.addedDocuments.size+t.modifiedDocuments.size+t.removedDocuments.size<=1),t.addedDocuments.size>0?i.bo=!0:t.modifiedDocuments.size>0?Kx(i.bo):t.removedDocuments.size>0&&(Kx(i.bo),i.bo=!1))}),[4,cO(n,i,e)];case 3:return r.sent(),[3,6];case 4:return[4,OA(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}})})}function Jk(t,e,n){var i=Xx(t);if(i.isPrimaryClient&&0===n||!i.isPrimaryClient&&1===n){var r=[];i.Po.forEach(function(t,n){var i=n.view.zr(e);i.snapshot&&r.push(i.snapshot)}),function(t,e){var n=Xx(t);n.onlineState=e;var i=!1;n.queries.forEach(function(t,n){for(var r=0,s=n.listeners;r<s.length;r++)s[r].zr(e)&&(i=!0)}),i&&Lk(n)}(i.eventManager,e),r.length&&i.vo._r(r),i.onlineState=e,i.isPrimaryClient&&i.sharedClientState.setOnlineState(e)}}function Wk(t,e,n){return vy(this,void 0,void 0,function(){var i,r,s,o,a,c;return yy(this,function(u){switch(u.label){case 0:return(i=Xx(t)).sharedClientState.updateQueryState(e,"rejected",n),r=i.Co.get(e),(s=r&&r.key)?(o=(o=new lC(ES.comparator)).insert(s,BS.newNoDocument(s,oS.min())),a=xC().add(s),c=new CC(oS.min(),new Map,new fC(nS),o,a),[4,$k(i,c)]):[3,2];case 1:return u.sent(),i.Do=i.Do.remove(s),i.Co.delete(e),aO(i),[3,4];case 2:return[4,lI(i.localStore,e,!1).then(function(){return iO(i,e,n)}).catch(OA)];case 3:u.sent(),u.label=4;case 4:return[2]}})})}function Kk(t,e){return vy(this,void 0,void 0,function(){var n,i,r;return yy(this,function(s){switch(s.label){case 0:n=Xx(t),i=e.batch.batchId,s.label=1;case 1:return s.trys.push([1,4,,6]),[4,rI(n.localStore,e)];case 2:return r=s.sent(),nO(n,i,null),eO(n,i),n.sharedClientState.updateMutationState(i,"acknowledged"),[4,cO(n,r)];case 3:return s.sent(),[3,6];case 4:return[4,OA(s.sent())];case 5:return s.sent(),[3,6];case 6:return[2]}})})}function Xk(t,e,n){return vy(this,void 0,void 0,function(){var i,r;return yy(this,function(s){switch(s.label){case 0:i=Xx(t),s.label=1;case 1:return s.trys.push([1,4,,6]),[4,(o=i.localStore,a=e,c=Xx(o),c.persistence.runTransaction("Reject batch","readwrite-primary",function(t){var e;return c._n.lookupMutationBatch(t,a).next(function(n){return Kx(null!==n),e=n.keys(),c._n.removeMutationBatch(t,n)}).next(function(){return c._n.performConsistencyCheck(t)}).next(function(){return c.Mn.pn(t,e)})}))];case 2:return r=s.sent(),nO(i,e,n),eO(i,e),i.sharedClientState.updateMutationState(e,"rejected",n),[4,cO(i,r)];case 3:return s.sent(),[3,6];case 4:return[4,OA(s.sent())];case 5:return s.sent(),[3,6];case 6:return[2]}var o,a,c})})}function tO(t,e){return vy(this,void 0,void 0,function(){var n,i,r,s,o;return yy(this,function(a){switch(a.label){case 0:ak((n=Xx(t)).remoteStore)||Yx("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,(c=n.localStore,u=Xx(c),u.persistence.runTransaction("Get highest unacknowledged batch id","readonly",function(t){return u._n.getHighestUnacknowledgedBatchId(t)}))];case 2:return-1===(i=a.sent())?[2,void e.resolve()]:((r=n.Fo.get(i)||[]).push(e),n.Fo.set(i,r),[3,4]);case 3:return s=a.sent(),o=Ck(s,"Initialization of waitForPendingWrites() operation failed"),e.reject(o),[3,4];case 4:return[2]}var c,u})})}function eO(t,e){(t.Fo.get(e)||[]).forEach(function(t){t.resolve()}),t.Fo.delete(e)}function nO(t,e,n){var i=Xx(t),r=i.xo[i.currentUser.toKey()];if(r){var s=r.get(e);s&&(n?s.reject(n):s.resolve(),r=r.remove(e)),i.xo[i.currentUser.toKey()]=r}}
1function iO(t,e,n){void 0===n&&(n=null),t.sharedClientState.removeLocalQueryTarget(e);for(var i=0,r=t.Vo.get(e);i<r.length;i++){var s=r[i];t.Po.delete(s),n&&t.vo.Mo(s,n)}t.Vo.delete(e),t.isPrimaryClient&&t.No.Zn(e).forEach(function(e){t.No.containsKey(e)||rO(t,e)})}function rO(t,e){t.So.delete(e.path.canonicalString());var n=t.Do.get(e);null!==n&&(nk(t.remoteStore,n),t.Do=t.Do.remove(e),t.Co.delete(n),aO(t))}function sO(t,e,n){for(var i=0,r=n;i<r.length;i++){var s=r[i];s instanceof qk?(t.No.addReference(s.key,e),oO(t,s)):s instanceof Uk?(Yx("SyncEngine","Document no longer in limbo: "+s.key),t.No.removeReference(s.key,e),t.No.containsKey(s.key)||rO(t,s.key)):Wx()}}function oO(t,e){var n=e.key,i=n.path.canonicalString();t.Do.get(n)||t.So.has(i)||(Yx("SyncEngine","New document in limbo: "+n),t.So.add(i),aO(t))}function aO(t){for(;t.So.size>0&&t.Do.size<t.maxConcurrentLimboResolutions;){var e=t.So.values().next().value;t.So.delete(e);var n=new ES(hS.fromString(e)),i=t.ko.next();t.Co.set(i,new Bk(n)),t.Do=t.Do.insert(n,i),ek(t.remoteStore,new WE(bT(dT(n.path)),i,2,jx.o))}}function cO(t,e,n){return vy(this,void 0,void 0,function(){var i,r,s,o;return yy(this,function(a){switch(a.label){case 0:return i=Xx(t),r=[],s=[],o=[],i.Po.isEmpty()?[3,3]:(i.Po.forEach(function(t,a){o.push(i.Oo(a,e,n).then(function(t){if(t){i.isPrimaryClient&&i.sharedClientState.updateQueryState(a.targetId,t.fromCache?"not-current":"current"),r.push(t);var e=XA.Pn(a.targetId,t);s.push(e)}}))}),[4,Promise.all(o)]);case 1:return a.sent(),i.vo._r(r),[4,function(t,e){return vy(this,void 0,void 0,function(){var n,i,r,s,o,a,c,u;return yy(this,function(l){switch(l.label){case 0:n=Xx(t),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",function(t){return FE.forEach(e,function(e){return FE.forEach(e.bn,function(i){return n.persistence.referenceDelegate.addReference(t,e.targetId,i)}).next(function(){return FE.forEach(e.vn,function(i){return n.persistence.referenceDelegate.removeReference(t,e.targetId,i)})})})})];case 2:return l.sent(),[3,4];case 3:if(!jE(i=l.sent()))throw i;return Yx("LocalStore","Failed to update sequence numbers: "+i),[3,4];case 4:for(r=0,s=e;r<s.length;r++)a=(o=s[r]).targetId,o.fromCache||(c=n.Fn.get(a),u=c.withLastLimboFreeSnapshotVersion(c.snapshotVersion),n.Fn=n.Fn.insert(a,u));return[2]}})})}(i.localStore,s)];case 2:a.sent(),a.label=3;case 3:return[2]}})})}function uO(t,e){return vy(this,void 0,void 0,function(){var n,i;return yy(this,function(r){switch(r.label){case 0:return(n=Xx(t)).currentUser.isEqual(e)?[3,3]:(Yx("SyncEngine","User change. New user:",e.toKey()),[4,iI(n.localStore,e)]);
1case 1:return i=r.sent(),n.currentUser=e,(s=n).Fo.forEach(function(t){t.forEach(function(t){t.reject(new zx(Bx.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),s.Fo.clear(),n.sharedClientState.handleUserChange(e,i.removedBatchIds,i.addedBatchIds),[4,cO(n,i.Ln)];case 2:r.sent(),r.label=3;case 3:return[2]}var s})})}function lO(t,e){var n=Xx(t),i=n.Co.get(e);if(i&&i.bo)return xC().add(i.key);var r=xC(),s=n.Vo.get(e);if(!s)return r;for(var o=0,a=s;o<a.length;o++){var c=n.Po.get(a[o]);r=r.unionWith(c.view.wo)}return r}function hO(t,e){return vy(this,void 0,void 0,function(){var n,i,r;return yy(this,function(s){switch(s.label){case 0:return[4,hI((n=Xx(t)).localStore,e.query,!0)];case 1:return i=s.sent(),r=e.view.Ao(i),[2,(n.isPrimaryClient&&sO(n,e.targetId,r.To),r)]}})})}function dO(t){return vy(this,void 0,void 0,function(){var e;return yy(this,function(n){return[2,fI((e=Xx(t)).localStore).then(function(t){return cO(e,t)})]})})}function fO(t,e,n,i){return vy(this,void 0,void 0,function(){var r,s;return yy(this,function(o){switch(o.label){case 0:return[4,(a=(r=Xx(t)).localStore,c=e,u=Xx(a),l=Xx(u._n),u.persistence.runTransaction("Lookup mutation documents","readonly",function(t){return l.jt(t,c).next(function(e){return e?u.Mn.pn(t,e):FE.resolve(null)})}))];case 1:return null===(s=o.sent())?[3,6]:"pending"!==n?[3,3]:[4,pk(r.remoteStore)];case 2:return o.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(nO(r,e,i||null),eO(r,e),function(t,e){Xx(Xx(t)._n).Gt(e)}(r.localStore,e)):Wx(),o.label=4;case 4:return[4,cO(r,s)];case 5:return o.sent(),[3,7];case 6:Yx("SyncEngine","Cannot apply mutation batch with id: "+e),o.label=7;case 7:return[2]}var a,c,u,l})})}function pO(t,e){return vy(this,void 0,void 0,function(){var n,i,r,s,o,a,c;return yy(this,function(u){switch(u.label){case 0:return _O(n=Xx(t)),wO(n),!0!==e||!0===n.$o?[3,3]:(i=n.sharedClientState.getAllActiveQueryTargets(),[4,gO(n,i.toArray())]);case 1:return r=u.sent(),n.$o=!0,[4,wk(n.remoteStore,!0)];case 2:for(u.sent(),s=0,o=r;s<o.length;s++)ek(n.remoteStore,o[s]);return[3,7];case 3:return!1!==e||!1===n.$o?[3,7]:(a=[],c=Promise.resolve(),n.Vo.forEach(function(t,e){n.sharedClientState.isLocalQueryTarget(e)?a.push(e):c=c.then(function(){return iO(n,e),lI(n.localStore,e,!0)}),nk(n.remoteStore,e)}),[4,c]);case 4:return u.sent(),[4,gO(n,a)];case 5:return u.sent(),(l=Xx(n)).Co.forEach(function(t,e){nk(l.remoteStore,e)}),l.No.ts(),l.Co=new Map,l.Do=new lC(ES.comparator),n.$o=!1,[4,wk(n.remoteStore,!1)];case 6:u.sent(),u.label=7;case 7:return[2]}var l})})}function gO(t,e,n){return vy(this,void 0,void 0,function(){var n,i,r,s,o,a,c,u,l,h,d,f,p;return yy(this,function(g){switch(g.label){case 0:n=Xx(t),i=[],r=[],s=0,o=e,g.label=1;case 1:return s<o.length?(c=void 0,(u=n.Vo.get(a=o[s]))&&0!==u.length?[4,uI(n.localStore,bT(u[0]))]:[3,7]):[3,13];case 2:c=g.sent(),l=0,h=u,g.label=3;case 3:return l<h.length?(d=n.Po.get(h[l]),[4,hO(n,d)]):[3,6];case 4:(f=g.sent()).snapshot&&r.push(f.snapshot),g.label=5;case 5:return l++,[3,3];case 6:return[3,11];case 7:return[4,dI(n.localStore,a)];case 8:return p=g.sent(),[4,uI(n.localStore,p)];case 9:return c=g.sent(),[4,Gk(n,mO(p),a,!1)];case 10:g.sent(),g.label=11;case 11:i.push(c),g.label=12;case 12:return s++,[3,1];case 13:return[2,(n.vo._r(r),i)]}})})}function mO(t){return hT(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)}function vO(t){var e=Xx(t);return Xx(Xx(e.localStore).persistence).fn()}function yO(t,e,n,i){return vy(this,void 0,void 0,function(){var r,s,o;return yy(this,function(a){switch(a.label){case 0:return(r=Xx(t)).$o?(Yx("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!r.Vo.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,fI(r.localStore)];case 3:return s=a.sent(),o=CC.createSynthesizedRemoteEventForCurrentChange(e,"current"===n),[4,cO(r,s,o)];case 4:return a.sent(),[3,8];case 5:return[4,lI(r.localStore,e,!0)];case 6:return a.sent(),iO(r,e,i),[3,8];case 7:Wx(),a.label=8;case 8:return[2]}})})}function bO(t,e,n){return vy(this,void 0,void 0,function(){var i,r,s,o,a,c,u,l,h;return yy(this,function(d){switch(d.label){case 0:if(!(i=_O(t)).$o)return[3,10];r=0,s=e,d.label=1;case 1:return r<s.length?i.Vo.has(o=s[r])?(Yx("SyncEngine","Adding an already active target "+o),[3,5]):[4,dI(i.localStore,o)]:[3,6];case 2:return a=d.sent(),[4,uI(i.localStore,a)];case 3:return c=d.sent(),[4,Gk(i,mO(a),c.targetId,!1)];case 4:d.sent(),ek(i.remoteStore,c),d.label=5;case 5:return r++,[3,1];case 6:u=function(t){return yy(this,function(e){switch(e.label){case 0:return i.Vo.has(t)?[4,lI(i.localStore,t,!1).then(function(){nk(i.remoteStore,t),iO(i,t)}).catch(OA)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})},l=0,h=n,d.label=7;case 7:return l<h.length?[5,u(h[l])]:[3,10];case 8:d.sent(),d.label=9;case 9:return l++,[3,7];case 10:return[2]}})})}function _O(t){var e=Xx(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=$k.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=lO.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=Wk.bind(null,e),e.vo._r=Pk.bind(null,e.eventManager),e.vo.Mo=Rk.bind(null,e.eventManager),e}function wO(t){var e=Xx(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=Kk.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=Xk.bind(null,e),e}var xO=function(){function t(){this.synchronizeTabs=!1}return t.prototype.initialize=function(t){return vy(this,void 0,void 0,function(){return yy(this,function(e){switch(e.label){case 0:return this.R=HI(t.databaseInfo.databaseId),this.sharedCl
1ientState=this.Bo(t),this.persistence=this.qo(t),[4,this.persistence.start()];case 1:return e.sent(),this.gcScheduler=this.Uo(t),this.localStore=this.Ko(t),[2]}})})},t.prototype.Uo=function(t){return null},t.prototype.Ko=function(t){return nI(this.persistence,new tI,t.initialUser,this.R)},t.prototype.qo=function(t){return new TI(EI.bs,this.R)},t.prototype.Bo=function(t){return new FI},t.prototype.terminate=function(){return vy(this,void 0,void 0,function(){return yy(this,function(t){switch(t.label){case 0:return this.gcScheduler&&this.gcScheduler.stop(),[4,this.sharedClientState.shutdown()];case 1:return t.sent(),[4,this.persistence.shutdown()];case 2:return t.sent(),[2]}})})},t}(),SO=function(t){function e(e,n,i){var r=this;return(r=t.call(this)||this).Qo=e,r.cacheSizeBytes=n,r.forceOwnership=i,r.synchronizeTabs=!1,r}return gy(e,t),e.prototype.initialize=function(e){return vy(this,void 0,void 0,function(){return yy(this,function(n){switch(n.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return n.sent(),[4,pI(this.localStore)];case 2:return n.sent(),[4,this.Qo.initialize(this,e)];case 3:return n.sent(),[4,wO(this.Qo.syncEngine)];case 4:return n.sent(),[4,pk(this.Qo.remoteStore)];case 5:return n.sent(),[2]}})})},e.prototype.Ko=function(t){return nI(this.persistence,new tI,t.initialUser,this.R)},e.prototype.Uo=function(t){return new PA(this.persistence.referenceDelegate.garbageCollector,t.asyncQueue)},e.prototype.qo=function(t){var e=JA(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?vA.withCacheSize(this.cacheSizeBytes):vA.DEFAULT;return new YA(this.synchronizeTabs,e,t.clientId,n,t.asyncQueue,BI(),zI(),this.R,this.sharedClientState,!!this.forceOwnership)},e.prototype.Bo=function(t){return new FI},e}(xO),TO=function(t){function e(e,n){var i=this;return(i=t.call(this,e,n,!1)||this).Qo=e,i.cacheSizeBytes=n,i.synchronizeTabs=!0,i}return gy(e,t),e.prototype.initialize=function(e){return vy(this,void 0,void 0,function(){var n,i=this;return yy(this,function(r){switch(r.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return r.sent(),n=this.Qo.syncEngine,this.sharedClientState instanceof MI?(this.sharedClientState.syncEngine={ui:fO.bind(null,n),ai:yO.bind(null,n),hi:bO.bind(null,n),fn:vO.bind(null,n),ci:dO.bind(null,n)},[4,this.sharedClientState.start()]):[3,3];case 2:r.sent(),r.label=3;case 3:return[4,this.persistence.He(function(t){return vy(i,void 0,void 0,function(){return yy(this,function(e){switch(e.label){case 0:return[4,pO(this.Qo.syncEngine,t)];case 1:return e.sent(),this.gcScheduler&&(t&&!this.gcScheduler.started?this.gcScheduler.start(this.localStore):t||this.gcScheduler.stop()),[2]}})})})];case 4:return r.sent(),[2]}})})},e.prototype.Bo=function(t){var e=BI();if(!MI.yt(e))throw new zx(Bx.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=JA(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey);return new MI(e,t.asyncQueue,n,t.clientId,t.initialUser)},e}(SO),CO=function(){function t(){}return t.prototype.initialize=function(t,e){return vy(this,void 0,void 0,function(){var n=this;return yy(this,function(i){switch(i.label){case 0:return this.localStore?[3,2]:(this.localStore=t.localStore,this.sharedClientState=t.sharedClientState,this.datastore=this.createDatastore(e),this.remoteStore=this.createRemoteStore(e),this.eventManager=this.createEventManager(e),this.syncEngine=this.createSyncEngine(e,!t.synchronizeTabs),this.sharedClientState.onlineStateHandler=function(t){return Jk(n.syncEngine,t,1)},this.remoteStore.remoteSyncer.handleCredentialChange=uO.bind(null,this.syncEngine),[4,wk(this.remoteStore,this.syncEngine.isPrimaryClient)]);case 1:i.sent(),i.label=2;case 2:return[2]}})})},t.prototype.createEventManager=function(t){return new Ok},t.prototype.createDatastore=function(t){var e=HI(t.databaseInfo.databaseId),n=new jI(t.databaseInfo);return new JI(t.credentials,n,e)},t.prototype.createRemoteStore=function(t){var e,n,i,r,s,o=this;return e=this.localStore,n=this.datastore,i=t.asyncQueue,r=function(t){return Jk(o.syncEngine,t,0)},s=qI.yt()?new qI:new ZI,new KI(e,n,i,r,s)},t.prototype.createSyncEngine=function(t,e){return n=e,i=new zk(this.localStore,this.remoteStore,this.eventManager,this.sharedCl
1ientState,t.initialUser,t.maxConcurrentLimboResolutions),n&&(i.$o=!0),i;var n,i},t.prototype.terminate=function(){return function(t){return vy(this,void 0,void 0,function(){var e;return yy(this,function(n){switch(n.label){case 0:return e=Xx(t),Yx("RemoteStore","RemoteStore shutting down."),e.Or.add(5),[4,tk(e)];case 1:return n.sent(),e.Lr.shutdown(),e.Br.set("Unknown"),[2]}})})}(this.remoteStore)},t}(),EO=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.observer.next&&this.jo(this.observer.next,t)},t.prototype.error=function(t){this.observer.error?this.jo(this.observer.error,t):console.error("Uncaught Error in snapshot listener:",t)},t.prototype.Wo=function(){this.muted=!0},t.prototype.jo=function(t,e){var n=this;this.muted||setTimeout(function(){n.muted||t(e)},0)},t}(),AO=(function(){function t(t,e){var n=this;this.Go=t,this.R=e,this.metadata=new ME,this.buffer=new Uint8Array,this.zo=new TextDecoder("utf-8"),this.Ho().then(function(t){t&&t.io()?n.metadata.resolve(t.payload.metadata):n.metadata.reject(new Error("The first element of the bundle is not a metadata, it is\n             "+JSON.stringify(null==t?void 0:t.payload)))},function(t){return n.metadata.reject(t)})}t.prototype.close=function(){return this.Go.cancel()},t.prototype.getMetadata=function(){return vy(this,void 0,void 0,function(){return yy(this,function(t){return[2,this.metadata.promise]})})},t.prototype.Lo=function(){return vy(this,void 0,void 0,function(){return yy(this,function(t){switch(t.label){case 0:return[4,this.getMetadata()];case 1:return[2,(t.sent(),this.Ho())]}})})},t.prototype.Ho=function(){return vy(this,void 0,void 0,function(){var t,e,n,i;return yy(this,function(r){switch(r.label){case 0:return[4,this.Jo()];case 1:return null===(t=r.sent())?[2,null]:(e=this.zo.decode(t),n=Number(e),isNaN(n)&&this.Yo("length string ("+e+") is not valid number"),[4,this.Xo(n)]);case 2:return i=r.sent(),[2,new Fk(JSON.parse(i),t.length+n)]}})})},t.prototype.Zo=function(){return this.buffer.findIndex(function(t){return t==="{".charCodeAt(0)})},t.prototype.Jo=function(){return vy(this,void 0,void 0,function(){var t,e;return yy(this,function(n){switch(n.label){case 0:return this.Zo()<0?[4,this.tc()]:[3,3];case 1:if(n.sent())return[3,3];n.label=2;case 2:return[3,0];case 3:return 0===this.buffer.length?[2,null]:((t=this.Zo())<0&&this.Yo("Reached the end of bundle when a length string is expected."),e=this.buffer.slice(0,t),[2,(this.buffer=this.buffer.slice(t),e)])}})})},t.prototype.Xo=function(t){return vy(this,void 0,void 0,function(){var e;return yy(this,function(n){switch(n.label){case 0:return this.buffer.length<t?[4,this.tc()]:[3,3];case 1:n.sent()&&this.Yo("Reached the end of bundle when more is expected."),n.label=2;case 2:return[3,0];case 3:return e=this.zo.decode(this.buffer.slice(0,t)),[2,(this.buffer=this.buffer.slice(t),e)]}})})},t.prototype.Yo=function(t){throw this.Go.cancel(),new Error("Invalid bundle format: "+t)},t.prototype.tc=function(){return vy(this,void 0,void 0,function(){var t,e;return yy(this,function(n){switch(n.label){case 0:return[4,this.Go.read()];case 1:return(t=n.sent()).done||((e=new Uint8Array(this.buffer.length+t.value.length)).set(this.buffer),e.set(t.value,this.buffer.length),this.buffer=e),[2,t.done]}})})}}(),function(){function t(t){this.datastore=t,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}return t.prototype.lookup=function(t){return vy(this,void 0,void 0,function(){var e,n=this;return yy(this,function(i){switch(i.label){case 0:if(this.ensureCommitNotCalled(),this.mutations.length>0)throw new zx(Bx.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return vy(this,void 0,void 0,function(){var n,i,r,s,o,a;return yy(this,function(c){switch(c.label){case 0:return n=Xx(t),i=YC(n.R)+"/documents",r={documents:e.map(function(t){return BC(n.R,t)})},[4,n.$i("BatchGetDocuments",i,r)];
1case 1:return s=c.sent(),o=new Map,s.forEach(function(t){var e,i,r=(e=n.R,"found"in(i=t)?function(t,e){Kx(!!e.found);var n=zC(t,e.found.name),i=UC(e.found.updateTime),r=new VS({mapValue:{fields:e.found.fields}});return BS.newFoundDocument(n,i,r)}(e,i):"missing"in i?function(t,e){Kx(!!e.missing),Kx(!!e.readTime);var n=zC(t,e.missing),i=UC(e.readTime);return BS.newNoDocument(n,i)}(e,i):Wx());o.set(r.key.toString(),r)}),a=[],[2,(e.forEach(function(t){var e=o.get(t.toString());Kx(!!e),a.push(e)}),a)]}})})}(this.datastore,t)];case 1:return[2,((e=i.sent()).forEach(function(t){return n.recordVersion(t)}),e)]}})})},t.prototype.set=function(t,e){this.write(e.toMutation(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.update=function(t,e){try{this.write(e.toMutation(t,this.preconditionForUpdate(t)))}catch(n){this.lastWriteError=n}this.writtenDocs.add(t.toString())},t.prototype.delete=function(t){this.write(new sC(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.commit=function(){return vy(this,void 0,void 0,function(){var t,e=this;return yy(this,function(n){switch(n.label){case 0:if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;return t=this.readVersions,this.mutations.forEach(function(e){t.delete(e.key.toString())}),t.forEach(function(t,n){var i=ES.fromPath(n);e.mutations.push(new oC(i,e.precondition(i)))}),[4,function(t,e){return vy(this,void 0,void 0,function(){var n,i,r;return yy(this,function(s){switch(s.label){case 0:return n=Xx(t),i=YC(n.R)+"/documents",r={writes:e.map(function(t){return WC(n.R,t)})},[4,n.Ni("Commit",i,r)];case 1:return s.sent(),[2]}})})}(this.datastore,this.mutations)];case 1:return n.sent(),this.committed=!0,[2]}})})},t.prototype.recordVersion=function(t){var e;if(t.isFoundDocument())e=t.version;else{if(!t.isNoDocument())throw Wx();e=oS.min()}var n=this.readVersions.get(t.key.toString());if(n){if(!e.isEqual(n))throw new zx(Bx.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(t.key.toString(),e)},t.prototype.precondition=function(t){var e=this.readVersions.get(t.toString());return!this.writtenDocs.has(t.toString())&&e?zT.updateTime(e):zT.none()},t.prototype.preconditionForUpdate=function(t){var e=this.readVersions.get(t.toString());if(!this.writtenDocs.has(t.toString())&&e){if(e.isEqual(oS.min()))throw new zx(Bx.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return zT.updateTime(e)}return zT.exists(!0)},t.prototype.write=function(t){this.ensureCommitNotCalled(),this.mutations.push(t)},t.prototype.ensureCommitNotCalled=function(){},t}()),IO=function(){function t(t,e,n,i){this.asyncQueue=t,this.datastore=e,this.updateFunction=n,this.deferred=i,this.ec=5,this.Zi=new GI(this.asyncQueue,"transaction_retry")}return t.prototype.run=function(){this.ec-=1,this.nc()},t.prototype.nc=function(){var t=this;this.Zi.ji(function(){return vy(t,void 0,void 0,function(){var t,e,n=this;return yy(this,function(i){return t=new AO(this.datastore),(e=this.sc(t))&&e.then(function(e){n.asyncQueue.enqueueAndForget(function(){return t.commit().then(function(){n.deferred.resolve(e)}).catch(function(t){n.ic(t)})})}).catch(function(t){n.ic(t)}),[2]})})})},t.prototype.sc=function(t){try{var e=this.updateFunction(t);return!SS(e)&&e.catch&&e.then?e:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(n){return this.deferred.reject(n),null}},t.prototype.ic=function(t){var e=this;this.ec>0&&this.rc(t)?(this.ec-=1,this.asyncQueue.enqueueAndForget(function(){return e.nc(),Promise.resolve()})):this.deferred.reject(t)},t.prototype.rc=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!cC(e)}return!1},t}(),kO=function(){function t(t,e,n){var i=this;this.credentials=t,this.asyncQueue=e,this.databaseInfo=n,this.user=AI.UNAUTHENTICATED,this.clientId=eS.u(),this.credentialListener=function(){return Promise.resolve()},this.credentials.setChangeListener(e,function(t){return vy(i,void 0,void 0,function(){return yy(this,function(e){switch(e.label){case 0:return Yx("FirestoreClient","Received user=",t.uid),[4,this.credentialListener(t)];case 1:return e.sent(),this.user=t,[2]}})})})}return t.prototype.getConfiguration=function(){return vy(this,void 0,void 0,function(){return yy(this,function(t){return[2,{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,credentials:this.credentials,initialUser:this.user,maxConcurrentLimboResolutions:100}]})})},t.prototype.setCredentialChangeListener=function(t){this.credentialListener=t},t.prototype.verifyNotTerminated=function(){if(this.asyncQueue.isShuttingDown)throw new zx(B
1x.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.terminate=function(){var t=this;this.asyncQueue.enterRestrictedMode();var e=new ME;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(function(){return vy(t,void 0,void 0,function(){var t,n;return yy(this,function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),this.onlineComponents?[4,this.onlineComponents.terminate()]:[3,2];case 1:i.sent(),i.label=2;case 2:return this.offlineComponents?[4,this.offlineComponents.terminate()]:[3,4];case 3:i.sent(),i.label=4;case 4:return this.credentials.removeChangeListener(),e.resolve(),[3,6];case 5:return t=i.sent(),n=Ck(t,"Failed to shutdown persistence"),e.reject(n),[3,6];case 6:return[2]}})})}),e.promise},t}();function OO(t,e){return vy(this,void 0,void 0,function(){var n,i,r=this;return yy(this,function(s){switch(s.label){case 0:return t.asyncQueue.verifyOperationInProgress(),Yx("FirestoreClient","Initializing OfflineComponentProvider"),[4,t.getConfiguration()];case 1:return n=s.sent(),[4,e.initialize(n)];case 2:return s.sent(),i=n.initialUser,t.setCredentialChangeListener(function(t){return vy(r,void 0,void 0,function(){return yy(this,function(n){switch(n.label){case 0:return i.isEqual(t)?[3,2]:[4,iI(e.localStore,t)];case 1:n.sent(),i=t,n.label=2;case 2:return[2]}})})}),e.persistence.setDatabaseDeletedListener(function(){return t.terminate()}),t.offlineComponents=e,[2]}})})}function DO(t,e){return vy(this,void 0,void 0,function(){var n,i;return yy(this,function(r){switch(r.label){case 0:return t.asyncQueue.verifyOperationInProgress(),[4,NO(t)];case 1:return n=r.sent(),Yx("FirestoreClient","Initializing OnlineComponentProvider"),[4,t.getConfiguration()];case 2:return i=r.sent(),[4,e.initialize(n,i)];case 3:return r.sent(),t.setCredentialChangeListener(function(t){return function(t,e){return vy(this,void 0,void 0,function(){var n,i;return yy(this,function(r){switch(r.label){case 0:return(n=Xx(t)).asyncQueue.verifyOperationInProgress(),Yx("RemoteStore","RemoteStore received new credentials"),i=ak(n),n.Or.add(3),[4,tk(n)];case 1:return r.sent(),i&&n.Br.set("Unknown"),[4,n.remoteSyncer.handleCredentialChange(e)];case 2:return r.sent(),n.Or.delete(3),[4,XI(n)];case 3:return r.sent(),[2]}})})}(e.remoteStore,t)}),t.onlineComponents=e,[2]}})})}function NO(t){return vy(this,void 0,void 0,function(){return yy(this,function(e){switch(e.label){case 0:return t.offlineComponents?[3,2]:(Yx("FirestoreClient","Using default OfflineComponentProvider"),[4,OO(t,new xO)]);case 1:e.sent(),e.label=2;case 2:return[2,t.offlineComponents]}})})}function PO(t){return vy(this,void 0,void 0,function(){return yy(this,function(e){switch(e.label){case 0:return t.onlineComponents?[3,2]:(Yx("FirestoreClient","Using default OnlineComponentProvider"),[4,DO(t,new CO)]);case 1:e.sent(),e.label=2;case 2:return[2,t.onlineComponents]}})})}function RO(t){return NO(t).then(function(t){return t.persistence})}function LO(t){return NO(t).then(function(t){return t.localStore})}function MO(t){return PO(t).then(function(t){return t.remoteStore})}function FO(t){return PO(t).then(function(t){return t.syncEngine})}function ZO(t){return vy(this,void 0,void 0,function(){var e,n;return yy(this,function(i){switch(i.label){case 0:return[4,PO(t)];case 1:return e=i.sent(),[2,((n=e.eventManager).onListen=Hk.bind(null,e.syncEngine),n.onUnlisten=Yk.bind(null,e.syncEngine),n)]}})})}function qO(t,e,n){var i=this;void 0===n&&(n={});var r=new ME;return t.asyncQueue.enqueueAndForget(function(){return vy(i,void 0,void 0,function(){var i;return yy(this,function(s){switch(s.label){case 0:return i=function(t,e,n,i,r){var s=new EO({next:function(s){e.enqueueAndForget(function(){return Nk(t,o)});var a=s.docs.has(n);!a&&s.fromCache?r.reject(new zx(Bx.UNAVAILABLE,"Failed to get document because the client is offline.")):a&&s.fromCache&&i&&"server"===i.source?r.reject(new zx(Bx.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.)')):r.resolve(s)},error:function(t){return r.reject(t)}}),o=new Mk(dT(n.path),s,{includeMetadataChanges:!0,so:!0});return Dk(t,o)},[4,ZO(t)];case 1:return[2,i.apply(void 0,[s.sent(),t.asyncQueue,e,n,r])]}})})}),r.promise}function UO(t,e,n){var i=this;void 0===n&&(n={});var r=new ME;return t.asyncQueue.enqueueAndForget(function(){return vy(i,void 0,void 0,function(){var i;return yy(this,function(s){switch(s.label){case 0:return i=function(t,e,n,i,r){var s=new EO({next:function(n){e.enqueueAndForget(function(){return Nk(t,o)}),n.fromCache&&"server"===i.source?r.reject(new zx(Bx.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.)')):r.resolve(n)},error:function(t){return r.reject(t)}}),o=new Mk(n,s,{includeMetadataChanges:!0,so:!0});return Dk(t,o)},[4,ZO(t)];case 1:return[2,i.apply(void 0,[s.sent(),t.asyncQueue,e,n,r])]}})})}),r.promise}var VO=function(t,e,n,i,r,s,o,a){this.databaseId=t,this.appId=e,this.persistenceKey=n,this.host=i,this.ssl=r,this.forceLongPolling=s,this.autoDetectLongPolling=o,this.useFetchStreams=a},jO=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"isDefaultDatabase",{get:function(){return"(default)"===this.database}
1,enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t}(),BO=new Map,zO=function(t,e){this.user=e,this.type="OAuth",this.authHeaders={},this.authHeaders.Authorization="Bearer "+t},HO=function(){function t(){this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t,e){this.changeListener=e,t.enqueueRetryable(function(){return e(AI.UNAUTHENTICATED)})},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),GO=function(){function t(t){this.token=t,this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(this.token)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t,e){var n=this;this.changeListener=e,t.enqueueRetryable(function(){return e(n.token.user)})},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),YO=function(){function t(t){var e=this;this.currentUser=AI.UNAUTHENTICATED,this.oc=new ME,this.cc=0,this.forceRefresh=!1,this.auth=null,this.asyncQueue=null,this.uc=function(){e.cc++,e.currentUser=e.ac(),e.oc.resolve(),e.changeListener&&e.asyncQueue.enqueueRetryable(function(){return e.changeListener(e.currentUser)})};var n=function(t){Yx("FirebaseCredentialsProvider","Auth detected"),e.auth=t,e.auth.addAuthTokenListener(e.uc)};t.onInit(function(t){return n(t)}),setTimeout(function(){if(!e.auth){var i=t.getImmediate({optional:!0});i?n(i):(Yx("FirebaseCredentialsProvider","Auth not yet detected"),e.oc.resolve())}},0)}return t.prototype.getToken=function(){var t=this,e=this.cc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(function(n){return t.cc!==e?(Yx("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(Kx("string"==typeof n.accessToken),new zO(n.accessToken,t.currentUser)):null}):Promise.resolve(null)},t.prototype.invalidateToken=function(){this.forceRefresh=!0},t.prototype.setChangeListener=function(t,e){var n=this;this.asyncQueue=t,this.asyncQueue.enqueueRetryable(function(){return vy(n,void 0,void 0,function(){return yy(this,function(t){switch(t.label){case 0:return[4,this.oc.promise];case 1:return t.sent(),[4,e(this.currentUser)];case 2:return t.sent(),this.changeListener=e,[2]}})})})},t.prototype.removeChangeListener=function(){this.auth&&this.auth.removeAuthTokenListener(this.uc),this.changeListener=function(){return Promise.resolve()}},t.prototype.ac=function(){var t=this.auth&&this.auth.getUid();return Kx(null===t||"string"==typeof t),new AI(t)},t}(),QO=function(){function t(t,e,n){this.hc=t,this.lc=e,this.fc=n,this.type="FirstParty",this.user=AI.FIRST_PARTY}return Object.defineProperty(t.prototype,"authHeaders",{get:function(){var t={"X-Goog-AuthUser":this.lc},e=this.hc.auth.getAuthHeaderValueForFirstParty([]);return e&&(t.Authorization=e),this.fc&&(t["X-Goog-Iam-Authorization-Token"]=this.fc),t},enumerable:!1,configurable:!0}),t}(),$O=function(){function t(t,e,n){this.hc=t,this.lc=e,this.fc=n}return t.prototype.getToken=function(){return Promise.resolve(new QO(this.hc,this.lc,this.fc))},t.prototype.setChangeListener=function(t,e){t.enqueueRetryable(function(){return e(AI.FIRST_PARTY)})},t.prototype.removeChangeListener=function(){},t.prototype.invalidateToken=function(){},t}();function JO(t,e,n){if(!n)throw new zx(Bx.INVALID_ARGUMENT,"Function "+t+"() cannot be called with an empty "+e+".")}function WO(t,e){if(void 0===e)return{merge:!1};if(void 0!==e.mergeFields&&void 0!==e.merge)throw new zx(Bx.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function KO(t,e,n,i){if(!0===e&&!0===i)throw new zx(Bx.INVALID_ARGUMENT,t+" and "+n+" cannot be used together.")}function XO(t){if(!ES.isDocumentKey(t))throw new zx(Bx.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t+" has "+t.length+".")}
1function tD(t){if(ES.isDocumentKey(t))throw new zx(Bx.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t+" has "+t.length+".")}function eD(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":Wx()}function nD(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new zx(Bx.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=eD(t);throw new zx(Bx.INVALID_ARGUMENT,"Expected type '"+e.name+"', but it was: "+n)}return t}function iD(t,e){if(e<=0)throw new zx(Bx.INVALID_ARGUMENT,"Function "+t+"() requires a positive number, but it was: "+e+".")}var rD=function(){function t(t){var e;if(void 0===t.host){if(void 0!==t.ssl)throw new zx(Bx.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=t.host,this.ssl=null===(e=t.ssl)||void 0===e||e;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,void 0===t.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==t.cacheSizeBytes&&t.cacheSizeBytes<1048576)throw new zx(Bx.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,this.useFetchStreams=!!t.useFetchStreams,KO("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling)}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties&&this.useFetchStreams===t.useFetchStreams},t}(),sD=function(){function t(t,e){this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new rD({}),this._settingsFrozen=!1,t instanceof jO?(this._databaseId=t,this._credentials=new HO):(this._app=t,this._databaseId=function(t){if(!Object.prototype.hasOwnProperty.apply(t.options,["projectId"]))throw new zx(Bx.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new jO(t.options.projectId)}(t),this._credentials=new YO(e))}return Object.defineProperty(t.prototype,"app",{get:function(){if(!this._app)throw new zx(Bx.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initialized",{get:function(){return this._settingsFrozen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_terminated",{get:function(){return void 0!==this._terminateTask},enumerable:!1,configurable:!0}),t.prototype._setSettings=function(t){if(this._settingsFrozen)throw new zx(Bx.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new rD(t),void 0!==t.credentials&&(this._credentials=function(t){if(!t)return new HO;switch(t.type){case"gapi":var e=t.client;return Kx(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new $O(e,t.sessionIndex||"0",t.iamToken||null);case"provider":return t.client;default:throw new zx(Bx.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invali
1d credential type")}}(t.credentials))},t.prototype._getSettings=function(){return this._settings},t.prototype._freezeSettings=function(){return this._settingsFrozen=!0,this._settings},t.prototype._delete=function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask},t.prototype.toJSON=function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}},t.prototype._terminate=function(){return(t=BO.get(this))&&(Yx("ComponentProvider","Removing Datastore"),BO.delete(this),t.terminate()),Promise.resolve();var t},t}(),oD=function(){function t(t,e,n){this.converter=e,this._key=n,this.type="document",this.firestore=t}return Object.defineProperty(t.prototype,"_path",{get:function(){return this._key.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new cD(this.firestore,this.converter,this._key.path.popLast())},enumerable:!1,configurable:!0}),t.prototype.withConverter=function(e){return new t(this.firestore,e,this._key)},t}(),aD=function(){function t(t,e,n){this.converter=e,this._query=n,this.type="query",this.firestore=t}return t.prototype.withConverter=function(e){return new t(this.firestore,e,this._query)},t}(),cD=function(t){function e(e,n,i){var r=this;return(r=t.call(this,e,n,dT(i))||this)._path=i,r.type="collection",r}return gy(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._path.popLast();return t.isEmpty()?null:new oD(this.firestore,null,new ES(t))},enumerable:!1,configurable:!0}),e.prototype.withConverter=function(t){return new e(this.firestore,t,this._path)},e}(aD);function uD(t,e){for(var n,i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];if(t=Oy(t),JO("collection","path",e),t instanceof sD)return tD(n=hS.fromString.apply(hS,wy([e],i))),new cD(t,null,n);if(!(t instanceof oD||t instanceof cD))throw new zx(Bx.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return tD(n=hS.fromString.apply(hS,wy([t.path],i)).child(hS.fromString(e))),new cD(t.firestore,null,n)}function lD(t,e){for(var n,i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];if(t=Oy(t),1===arguments.length&&(e=eS.u()),JO("doc","path",e),t instanceof sD)return XO(n=hS.fromString.apply(hS,wy([e],i))),new oD(t,null,new ES(n));if(!(t instanceof oD||t instanceof cD))throw new zx(Bx.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return XO(n=t._path.child(hS.fromString.apply(hS,wy([e],i)))),new oD(t.firestore,t instanceof cD?t.converter:null,new ES(n))}function hD(t,e){return t=Oy(t),e=Oy(e),(t instanceof oD||t instanceof cD)&&(e instanceof oD||e instanceof cD)&&t.firestore===e.firestore&&t.path===e.path&&t.converter===e.converter}function dD(t,e){return t=Oy(t),e=Oy(e),t instanceof aD&&e instanceof aD&&t.firestore===e.firestore&&wT(t._query,e._query)&&t.converter===e.converter}var fD=function(){function t(){var t=this;this.dc=Promise.resolve(),this.wc=[],this._c=!1,this.mc=[],this.yc=null,this.gc=!1,this.Ec=!1,this.Tc=[],this.Zi=new GI(this,"async_queue_retry"),this.Ic=function(){var e=zI();e&&Yx("AsyncQueue","Visibility state changed to "+e.visibilityState),t.Zi.Gi()};var e=zI();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Ic)}return Object.defineProperty(t.prototype,"isShuttingDown",{get:function(){return this._c},enumerable:!1,configurable:!0}),t.prototype.enqueueAndForget=function(t){this.enqueue(t)},t.prototype.enqueueAndForgetEvenWhileRestricted=function(t){this.Ac(),this.Rc(t)},t.prototype.enterRestrictedMode=function(t){if(!this._c){this._c=!0,this.Ec=t||!1;var e=zI();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("visibilitychange",this.Ic)}},t.prototype.enqueue=function(t){var e=this;if(this.Ac(),this._c)return new Promise(function(){});var n=new ME;return this.Rc(function(){return e._c&&e.Ec?Promise.resolve():(t().then(n.resolve,n.reject),n.promise)}).then(function(){return n.promise})},t.prototype.enqueueRetryable=function(t){var e=this;this.enqueueAndForget(function(){return e.wc.push(t),e.bc()})},t.prototype.bc=function(){return vy(this,void 0,void 0,function(){var t,e=this;return yy(this,function(n){switch(n.label){case 0:if(0===this.wc.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.wc[0]()];case 2:return n.sent(),this.wc.shift(),this.Zi.reset(),[3,4];case 3:if(!jE(t=n.sent()))throw t;return Yx("AsyncQueue","Operation failed with retryable error: "+t),[3,4];case 4:this.wc.length>0&&this.Zi.ji(function(){return e.bc()}),n.label=5;case 5:return[2]}})})},t.prototype.Rc=function(t){var e=this,n=this.dc.then(function(){return e.gc=!0,t().catch(function(t){throw e.yc=t,e.gc=!1,Qx("INTERNAL UNHANDLED ERROR: ",(i=(n=t).message||"",n.stack&&(i=n.stack.includes(n.message)?n.stack:n.message+"\n"+n.stack),i)),t;var n,i}).then(function(t){return e.gc=!1,t})});return this.dc=n,n},t.prototype.enqueueAfterDelay=function(t,e,n){var i=this;this.Ac(),this.Tc.indexOf(t)>-1&&(e=0);var r=Tk.createAndSchedule(this,t,e,n,function(t){return i.vc(t)});return this.mc.push(r),r},t.prototype.Ac=function(){this.yc&&Wx()},t.prototype.verifyOperationInProgress=function(){},t.prototype.Pc=function(){return vy(this,void 0,void 0,function(){var t;return yy(this,function(e){switch(e.label){case 0:return[4,t=this.dc];case 1:e.sent(),e.label=2;case 2:if(t!==this.dc)return[3,0];e.label=3;case 3:return[2]}})})},t.prototype.Vc=function(t){for(var e=0,n=this.mc;e<n.length;e++)if(n[e].timerId===t)return!0;return!1},t.prototype.Sc=function(t){var e=this;return this.Pc().then(function(){e.mc.sort(function(t,e){return t.targetTimeMs-e.targetTimeMs});for(var n=0,i=e.mc;n<i.length;n++){var r=i[n];if(r.skipDelay(),"all"!==t&&r.timerId===t)break}return e.Pc()})},t.prototype.Dc=function(t){this.Tc.push(t)},t.prototype.vc=function(t){var e=this.mc.indexOf(t);this.mc.splice(e,1)},t}();function pD(t){return function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=t,i=0,r=["next","error","complete"];i<r.length;i++){var s=r[i];if(s in n&&"function"==typeof n[s])return!0}return!1}(t)}!function(){function t(){this._progressObserver={},this._taskCompletionResolver=new ME,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}t.prototype.onProgress=function(t,e,n){this._progressObserver={next:t,error:e,complete:n}},t.prototype.catch=function(t){return this._taskCompletionResolver.promise.catch(t)},t.prototype.then=function(t,e){return this._taskCompletionResolver.promise.then(t,e)},t.prototype._completeWith=function(t){this._updateProgress(t),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(t)},t.prototype._failWith=function(t){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(t),this._taskCompletionResolver.reject(t)},t.prototype._updateProgress=function(t){this._lastProgress=t,this._progressObserver.next&&this._progressObserver.next(t)}}();var gD=function(t){function e(e,n){var i=this;return(i=t.call(this,e,n)||this).type="firestore",i._queue=new fD,i._persistenceKey="name"in e?e.name:"[DEFAULT]",i}return gy(e,t),e.prototype._terminate=function(){return this._firestoreClient||vD(this),this._firestoreClient.terminate()},e}(sD);function mD(t){return t._firestoreClient||vD(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function vD(t){var e,n,i,r=t._freezeSettings(),s=(n=(null===(e=t._app)||void 0===e?void 0:e.options.appId)||"",new VO(t._databaseId,n,t._persistenceKey,(i=r).host,i.ssl,i.experimentalForceLongPolling,i.experimentalAutoDetectLongPolling,i.useFetchStreams));t._firestoreClient=new kO(t._credentials,t._queue,s)}function yD(t,e,n){var i=this,r=new ME;return t.asyncQueue.enqueue(function(){return vy(i,void 0,void 0,function(){var i;return yy(this,function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),[4,OO(t,n)];case 1:return s.sent(),[4,DO(t,e)];case 2:return s.sent(),r.resolve(),[3,4];case 3:if(!("FirebaseError"===(o=i=s.sent()).name?o.code===Bx.FAILED_PRECONDITION||o.code===Bx.UNIMPLEMENT
1ED:!("undefined"!=typeof DOMException&&o instanceof DOMException)||22===o.code||20===o.code||11===o.code))throw i;return console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+i),r.reject(i),[3,4];case 4:return[2]}var o})})}).then(function(){return r.promise})}function bD(t){if(t._initialized||t._terminated)throw new zx(Bx.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}var _D=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;++n)if(0===t[n].length)throw new zx(Bx.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new fS(t)}return t.prototype.isEqual=function(t){return this._internalPath.isEqual(t._internalPath)},t}(),wD=function(){function t(t){this._byteString=t}return t.fromBase64String=function(e){try{return new t(gS.fromBase64String(e))}catch(n){throw new zx(Bx.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}},t.fromUint8Array=function(e){return new t(gS.fromUint8Array(e))},t.prototype.toBase64=function(){return this._byteString.toBase64()},t.prototype.toUint8Array=function(){return this._byteString.toUint8Array()},t.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this._byteString.isEqual(t._byteString)},t}(),xD=function(t){this._methodName=t},SD=function(){function t(t,e){if(!isFinite(t)||t<-90||t>90)throw new zx(Bx.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new zx(Bx.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this._lat=t,this._long=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this._lat},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this._long},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this._lat===t._lat&&this._long===t._long},t.prototype.toJSON=function(){return{latitude:this._lat,longitude:this._long}},t.prototype._compareTo=function(t){return nS(this._lat,t._lat)||nS(this._long,t._long)},t}(),TD=/^__.*__$/,CD=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return null!==this.fieldMask?new XT(t,this.data,this.fieldMask,e,this.fieldTransforms):new KT(t,this.data,e,this.fieldTransforms)},t}(),ED=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return new XT(t,this.data,this.fieldMask,e,this.fieldTransforms)},t}();function AD(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Wx()}}var ID=function(){function t(t,e,n,i,r,s){this.settings=t,this.databaseId=e,this.R=n,this.ignoreUndefinedProperties=i,void 0===r&&this.Cc(),this.fieldTransforms=r||[],this.fieldMask=s||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Nc",{get:function(){return this.settings.Nc},enumerable:!1,configurable:!0}),t.prototype.xc=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.R,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)},t.prototype.Fc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),i=this.xc({path:n,kc:!1});return i.$c(t),i},t.prototype.Oc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),i=this.xc({path:n,kc:!1});return i.Cc(),i},t.prototype.Mc=function(t){return this.xc({path:void 0,kc:!0})},t.prototype.Lc=function(t){return QD(t,this.settings.methodName,this.settings.Bc||!1,this.path,this.settings.qc)},t.prototype.contains=function(t){return void 0!==this.fieldMask.find(function(e){return t.isPrefixOf(e)})||void 0!==this.fieldTransforms.find(function(e){return t.isPrefixOf(e.field)})},t.prototype.Cc=function(){if(this.path)for(var t=0;t<this.path.length;t++)this.$c(this.path.get(t))},t.prototype.$c=function(t){if(0===t.length)throw this.Lc("Document fields must not be empty");if(AD(this.Nc)&&TD.test(t))throw this.Lc('Document fields cannot begin and end with "__"')},t}(),kD=function(){function t(t,e,n){this.databaseId=t,this.ignoreUndefinedProperties=e,this.R=n||HI(t)}return t.prototype.Uc=function(t,e,n,i){return void 0===i&&(i=!1),new ID({Nc:t,methodName:e,qc:n,path:fS.emptyPath(),kc:!1,Bc:i},this.databaseId,this.R,this.ignoreUndefinedProperties)},t}();function OD(t){var e=t._freezeSettings(),n=HI(t._databaseId);return new kD(t._databaseId,!!e.ignoreUndefinedProperties,n)}function DD(t,e,n,i,r,s){void 0===s&&(s={});var o=t.Uc(s.merge||s.mergeFields?2:0,e,n,r);zD("Data must be an object, but it was:",o,i);var a,c,u=jD(i,o);if(s.merge)a=new pS(o.fieldMask),c=o.fieldTransforms;else if(s.mergeFields){for(var l=[],h=0,d=s.mergeFields;h<d.length;h++){var f=HD(e,d[h],n);
1if(!o.contains(f))throw new zx(Bx.INVALID_ARGUMENT,"Field '"+f+"' is specified in your field mask but missing from your input data.");$D(l,f)||l.push(f)}a=new pS(l),c=o.fieldTransforms.filter(function(t){return a.covers(t.field)})}else a=null,c=o.fieldTransforms;return new CD(new VS(u),a,c)}var ND=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gy(e,t),e.prototype._toFieldTransform=function(t){if(2!==t.Nc)throw t.Lc(1===t.Nc?this._methodName+"() can only appear at the top level of your update data":this._methodName+"() cannot be used with set() unless you pass {merge:true}");return t.fieldMask.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(xD);function PD(t,e,n){return new ID({Nc:3,qc:e.settings.qc,methodName:t._methodName,kc:n},e.databaseId,e.R,e.ignoreUndefinedProperties)}var RD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gy(e,t),e.prototype._toFieldTransform=function(t){return new jT(t.path,new RT)},e.prototype.isEqual=function(t){return t instanceof e},e}(xD),LD=function(t){function e(e,n){var i=this;return(i=t.call(this,e)||this).Kc=n,i}return gy(e,t),e.prototype._toFieldTransform=function(t){var e=PD(this,t,!0),n=this.Kc.map(function(t){return VD(t,e)}),i=new LT(n);return new jT(t.path,i)},e.prototype.isEqual=function(t){return this===t},e}(xD),MD=function(t){function e(e,n){var i=this;return(i=t.call(this,e)||this).Kc=n,i}return gy(e,t),e.prototype._toFieldTransform=function(t){var e=PD(this,t,!0),n=this.Kc.map(function(t){return VD(t,e)}),i=new FT(n);return new jT(t.path,i)},e.prototype.isEqual=function(t){return this===t},e}(xD),FD=function(t){function e(e,n){var i=this;return(i=t.call(this,e)||this).Qc=n,i}return gy(e,t),e.prototype._toFieldTransform=function(t){var e=new qT(t.R,kT(t.R,this.Qc));return new jT(t.path,e)},e.prototype.isEqual=function(t){return this===t},e}(xD);function ZD(t,e,n,i){var r=t.Uc(1,e,n);zD("Data must be an object, but it was:",r,i);var s=[],o=VS.empty();cS(i,function(t,i){var a=YD(e,t,n);i=Oy(i);var c=r.Oc(a);if(i instanceof ND)s.push(a);else{var u=VD(i,c);null!=u&&(s.push(a),o.set(a,u))}});var a=new pS(s);return new ED(o,a,r.fieldTransforms)}function qD(t,e,n,i,r,s){var o=t.Uc(1,e,n),a=[HD(e,i,n)],c=[r];if(s.length%2!=0)throw new zx(Bx.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var u=0;u<s.length;u+=2)a.push(HD(e,s[u])),c.push(s[u+1]);for(var l=[],h=VS.empty(),d=a.length-1;d>=0;--d)if(!$D(l,a[d])){var f=a[d],p=c[d];p=Oy(p);var g=o.Oc(f);if(p instanceof ND)l.push(f);else{var m=VD(p,g);null!=m&&(l.push(f),h.set(f,m))}}var v=new pS(l);return new ED(h,v,o.fieldTransforms)}function UD(t,e,n,i){return void 0===i&&(i=!1),VD(n,t.Uc(i?4:3,e))}function VD(t,e){if(BD(t=Oy(t)))return zD("Unsupported field value:",e,t),jD(t,e);if(t instanceof xD)return function(t,e){if(!AD(e.Nc))throw e.Lc(t._methodName+"() can only be used with update() and set()");if(!e.path)throw e.Lc(t._methodName+"() is not currently supported inside arrays");var n=t._toFieldTransform(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(void 0===t&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.kc&&4!==e.Nc)throw e.Lc("Nested arrays are not supported");return function(t,e){for(var n=[],i=0,r=0,s=t;r<s.length;r++){var o=VD(s[r],e.Mc(i));null==o&&(o={nullValue:"NULL_VALUE"}),n.push(o),i++}return{arrayValue:{values:n}}}(t,e)}return function(t,e){if(null===(t=Oy(t)))return{nullValue:"NULL_VALUE"};if("number"==typeof t)return kT(e.R,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=sS.fromDate(t);return{timestampValue:FC(e.R,n)}}if(t instanceof sS)return n=new sS(t.seconds,1e3*Math.floor(t.nanoseconds/1e3)),{timestampValue:FC(e.R,n)};if(t instanceof SD)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof wD)return{bytesValue:ZC(e.R,t._byteString)};if(t instanceof oD){var i=t.firestore._databaseId;if(!i.isEqual(n=e.databaseId))throw e.Lc("Document reference is for database "+i.projectId+"/"+i.database+" but should be for database "+n.projectId+"/"+n.database);return{referenceValue:VC(t.firestore._databaseId||e.databaseId,t._key.path)}}throw e.Lc("Unsupported field value: "+eD(t))}(t,e)}function jD(t,e){var n={};return uS(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):cS(t,function(t,i){var r=VD(i,e.Fc(t));null!=r&&(n[t]=r)}),{mapValue:{fields:n}}}function BD(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof sS||t instanceof SD||t instanceof wD||t instanceof oD||t instanceof xD)}function zD(t,e,n){if(!BD(n)||"object"!=typeof(r=n)||null===r||Object.getPrototypeOf(r)!==Object.prototype&&null!==Object.getPrototypeOf(r)){var i=eD(n);throw e.Lc("an object"===i?t+" a custom object":t+" "+i)}var r}
1function HD(t,e,n){if((e=Oy(e))instanceof _D)return e._internalPath;if("string"==typeof e)return YD(t,e);throw QD("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}var GD=new RegExp("[~\\*/\\[\\]]");function YD(t,e,n){if(e.search(GD)>=0)throw QD("Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'",t,!1,void 0,n);try{return(new(_D.bind.apply(_D,wy([void 0],e.split(".")))))._internalPath}catch(i){throw QD("Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'",t,!1,void 0,n)}}function QD(t,e,n,i,r){var s=i&&!i.isEmpty(),o=void 0!==r,a="Function "+e+"() called with invalid data";n&&(a+=" (via `toFirestore()`)");var c="";return(s||o)&&(c+=" (found",s&&(c+=" in field "+i),o&&(c+=" in document "+r),c+=")"),new zx(Bx.INVALID_ARGUMENT,(a+=". ")+t+c)}function $D(t,e){return t.some(function(t){return t.isEqual(e)})}var JD=function(){function t(t,e,n,i,r){this._firestore=t,this._userDataWriter=e,this._key=n,this._document=i,this._converter=r}return Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new oD(this._firestore,this._converter,this._key)},enumerable:!1,configurable:!0}),t.prototype.exists=function(){return null!==this._document},t.prototype.data=function(){if(this._document){if(this._converter){var t=new WD(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(t)}return this._userDataWriter.convertValue(this._document.data.value)}},t.prototype.get=function(t){if(this._document){var e=this._document.data.field(KD("DocumentSnapshot.get",t));if(null!==e)return this._userDataWriter.convertValue(e)}},t}(),WD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gy(e,t),e.prototype.data=function(){return t.prototype.data.call(this)},e}(JD);function KD(t,e){return"string"==typeof e?YD(t,e):e instanceof _D?e._internalPath:e._delegate._internalPath}var XD=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}(),tN=function(t){function e(e,n,i,r,s,o){var a=this;return(a=t.call(this,e,n,i,r,o)||this)._firestore=e,a._firestoreImpl=e,a.metadata=s,a}return gy(e,t),e.prototype.exists=function(){return t.prototype.exists.call(this)},e.prototype.data=function(t){if(void 0===t&&(t={}),this._document){if(this._converter){var e=new eN(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(e,t)}return this._userDataWriter.convertValue(this._document.data.value,t.serverTimestamps)}},e.prototype.get=function(t,e){if(void 0===e&&(e={}),this._document){var n=this._document.data.field(KD("DocumentSnapshot.get",t));if(null!==n)return this._userDataWriter.convertValue(n,e.serverTimestamps)}},e}(JD),eN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gy(e,t),e.prototype.data=function(e){return void 0===e&&(e={}),t.prototype.data.call(this,e)},e}(tN),nN=function(){function t(t,e,n,i){this._firestore=t,this._userDataWriter=e,this._snapshot=i,this.metadata=new XD(i.hasPendingWrites,i.fromCache),this.query=n}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,"size",{get:function(){return this._snapshot.docs.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;this._snapshot.docs.forEach(function(i){t.call(e,new eN(n._firestore,n._userDataWriter,i.key,i,new XD(n._snapshot.mutatedKeys.has(i.key),n._snapshot.fromCache),n.query.converter))})},t.prototype.docChanges=function(t){void 0===t&&(t={});var e=!!t.includeMetadataChanges;
1if(e&&this._snapshot.excludesMetadataChanges)throw new zx(Bx.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(t,e){if(t._snapshot.oldDocs.isEmpty()){var n=0;return t._snapshot.docChanges.map(function(e){return{type:"added",doc:new eN(t._firestore,t._userDataWriter,e.doc.key,e.doc,new XD(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),oldIndex:-1,newIndex:n++}})}var i=t._snapshot.oldDocs;return t._snapshot.docChanges.filter(function(t){return e||3!==t.type}).map(function(e){var n=new eN(t._firestore,t._userDataWriter,e.doc.key,e.doc,new XD(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),r=-1,s=-1;return 0!==e.type&&(r=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:iN(e.type),doc:n,oldIndex:r,newIndex:s}})}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges},t}();function iN(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Wx()}}function rN(t,e){return t instanceof tN&&e instanceof tN?t._firestore===e._firestore&&t._key.isEqual(e._key)&&(null===t._document?null===e._document:t._document.isEqual(e._document))&&t._converter===e._converter:t instanceof nN&&e instanceof nN&&t._firestore===e._firestore&&dD(t.query,e.query)&&t.metadata.isEqual(e.metadata)&&t._snapshot.isEqual(e._snapshot)}function sN(t){if(pT(t)&&0===t.explicitOrderBy.length)throw new zx(Bx.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var oN=function(){};function aN(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,r=e;i<r.length;i++){var s=r[i];t=s._apply(t)}return t}var cN=function(t){function e(e,n,i){var r=this;return(r=t.call(this)||this).jc=e,r.Wc=n,r.Gc=i,r.type="where",r}return gy(e,t),e.prototype._apply=function(t){var e,n,i=OD(t.firestore),r=function(t,e,n,i,r,s,o){var a;if(r.isKeyField()){if("array-contains"===s||"array-contains-any"===s)throw new zx(Bx.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+s+"' queries on FieldPath.documentId().");if("in"===s||"not-in"===s){gN(o,s);for(var c=[],u=0,l=o;u<l.length;u++)c.push(pN(i,t,l[u]));a={arrayValue:{values:c}}}else a=pN(i,t,o)}else"in"!==s&&"not-in"!==s&&"array-contains-any"!==s||gN(o,s),a=UD(n,"where",o,"in"===s||"not-in"===s);var h=$S.create(r,s,a);return function(t,e){if(e.g()){var n=mT(t);if(null!==n&&!n.isEqual(e.field))throw new zx(Bx.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+e.field.toString()+"'");var i=gT(t);null!==i&&mN(0,e.field,i)}var r=function(t,e){for(var n=0,i=t.filters;n<i.length;n++){var r=i[n];if(e.indexOf(r.op)>=0)return r.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!==r)throw new zx(Bx.INVALID_ARGUMENT,r===e.op?"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter.":"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+r.toString()+"' filters.")}(t,h),h}(t._query,0,i,t.firestore._databaseId,this.jc,this.Wc,this.Gc);return new aD(t.firestore,t.converter,(n=(e=t._query).filters.concat([r]),new lT(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)))},e}(oN),uN=function(t){function e(e,n){var i=this;return(i=t.call(this)||this).jc=e,i.zc=n,i.type="orderBy",i}return gy(e,t),e.prototype._apply=function(t){var e,n,i=function(t,e,n){if(null!==t.startAt)throw new zx(Bx.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");
1if(null!==t.endAt)throw new zx(Bx.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var i=new oT(e,n);return function(t,e){if(null===gT(t)){var n=mT(t);null!==n&&mN(0,n,e.field)}}(t,i),i}(t._query,this.jc,this.zc);return new aD(t.firestore,t.converter,(n=(e=t._query).explicitOrderBy.concat([i]),new lT(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)))},e}(oN),lN=function(t){function e(e,n,i){var r=this;return(r=t.call(this)||this).type=e,r.Hc=n,r.Jc=i,r}return gy(e,t),e.prototype._apply=function(t){return new aD(t.firestore,t.converter,_T(t._query,this.Hc,this.Jc))},e}(oN),hN=function(t){function e(e,n,i){var r=this;return(r=t.call(this)||this).type=e,r.Yc=n,r.Xc=i,r}return gy(e,t),e.prototype._apply=function(t){var e,n,i=fN(t,this.type,this.Yc,this.Xc);return new aD(t.firestore,t.converter,(n=i,new lT((e=t._query).path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,n,e.endAt)))},e}(oN),dN=function(t){function e(e,n,i){var r=this;return(r=t.call(this)||this).type=e,r.Yc=n,r.Xc=i,r}return gy(e,t),e.prototype._apply=function(t){var e,n,i=fN(t,this.type,this.Yc,this.Xc);return new aD(t.firestore,t.converter,(n=i,new lT((e=t._query).path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,n)))},e}(oN);function fN(t,e,n,i){if(n[0]=Oy(n[0]),n[0]instanceof JD)return function(t,e,n,i,r){if(!i)throw new zx(Bx.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var s=[],o=0,a=yT(t);o<a.length;o++){var c=a[o];if(c.field.isKeyField())s.push(RS(e,i.key));else{var u=i.data.field(c.field);if(_S(u))throw new zx(Bx.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+c.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===u){var l=c.field.canonicalString();throw new zx(Bx.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+l+"' (used as the orderBy) does not exist.")}s.push(u)}}return new rT(s,r)}(t._query,t.firestore._databaseId,e,n[0]._document,i);var r=OD(t.firestore);return function(t,e,n,i,r,s){var o=t.explicitOrderBy;if(r.length>o.length)throw new zx(Bx.INVALID_ARGUMENT,"Too many arguments provided to "+i+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var a=[],c=0;c<r.length;c++){var u=r[c];if(o[c].field.isKeyField()){if("string"!=typeof u)throw new zx(Bx.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+i+"(), but got a "+typeof u);if(!vT(t)&&-1!==u.indexOf("/"))throw new zx(Bx.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+i+"() must be a plain document ID, but '"+u+"' contains a slash.");var l=t.path.child(hS.fromString(u));if(!ES.isDocumentKey(l))throw new zx(Bx.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+i+"() must result in a valid document path, but '"+l+"' is not because it contains an odd number of segments.");var h=new ES(l);a.push(RS(e,h))}else{var d=UD(n,i,u);a.push(d)}}return new rT(a,s)}(t._query,t.firestore._databaseId,r,e,n,i)}function pN(t,e,n){if("string"==typeof(n=Oy(n))){if(""===n)throw new zx(Bx.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!vT(e)&&-1!==n.indexOf("/"))throw new zx(Bx.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var i=e.path.child(hS.fromString(n));if(!ES.isDocumentKey(i))throw new zx(Bx.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+i+"' is not because it has an odd number of segments ("+i.length+").");return RS(t,new ES(i))}if(n instanceof oD)return RS(t,n._key);
1throw new zx(Bx.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+eD(n)+".")}function gN(t,e){if(!Array.isArray(t)||0===t.length)throw new zx(Bx.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new zx(Bx.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.")}function mN(t,e,n){if(!n.isEqual(e))throw new zx(Bx.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first argument to orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}var vN=function(){function t(){}return t.prototype.convertValue=function(t,e){switch(void 0===e&&(e="none"),AS(t)){case 0:return null;case 1:return t.booleanValue;case 2:return yS(t.integerValue||t.doubleValue);case 3:return this.convertTimestamp(t.timestampValue);case 4:return this.convertServerTimestamp(t,e);case 5:return t.stringValue;case 6:return this.convertBytes(bS(t.bytesValue));case 7:return this.convertReference(t.referenceValue);case 8:return this.convertGeoPoint(t.geoPointValue);case 9:return this.convertArray(t.arrayValue,e);case 10:return this.convertObject(t.mapValue,e);default:throw Wx()}},t.prototype.convertObject=function(t,e){var n=this,i={};return cS(t.fields,function(t,r){i[t]=n.convertValue(r,e)}),i},t.prototype.convertGeoPoint=function(t){return new SD(yS(t.latitude),yS(t.longitude))},t.prototype.convertArray=function(t,e){var n=this;return(t.values||[]).map(function(t){return n.convertValue(t,e)})},t.prototype.convertServerTimestamp=function(t,e){switch(e){case"previous":var n=wS(t);return null==n?null:this.convertValue(n,e);case"estimate":return this.convertTimestamp(xS(t));default:return null}},t.prototype.convertTimestamp=function(t){var e=vS(t);return new sS(e.seconds,e.nanos)},t.prototype.convertDocumentKey=function(t,e){var n=hS.fromString(t);Kx(dE(n));var i=new jO(n.get(1),n.get(3)),r=new ES(n.popFirst(5));return i.isEqual(e)||Qx("Document "+r+" contains a document reference within a different database ("+i.projectId+"/"+i.database+") which is not supported. It will be treated as a reference in the current database ("+e.projectId+"/"+e.database+") instead."),r},t}();function yN(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}var bN=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return gy(e,t),e.prototype.convertBytes=function(t){return new wD(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new oD(this.firestore,null,e)},e}(vN),_N=function(){function t(t,e){this._firestore=t,this._commitHandler=e,this._mutations=[],this._committed=!1,this._dataReader=OD(t)}return t.prototype.set=function(t,e,n){this._verifyNotCommitted();var i=wN(t,this._firestore),r=yN(i.converter,e,n),s=DD(this._dataReader,"WriteBatch.set",i._key,r,null!==i.converter,n);return this._mutations.push(s.toMutation(i._key,zT.none())),this},t.prototype.update=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];this._verifyNotCommitted();var s,o=wN(t,this._firestore);return s="string"==typeof(e=Oy(e))||e instanceof _D?qD(this._dataReader,"WriteBatch.update",o._key,e,n,i):ZD(this._dataReader,"WriteBatch.update",o._key,e),this._mutations.push(s.toMutation(o._key,zT.exists(!0))),this},t.prototype.delete=function(t){this._verifyNotCommitted();var e=wN(t,this._firestore);return this._mutations=this._mutations.concat(new sC(e._key,zT.none())),this},t.prototype.commit=function(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()},t.prototype._verifyNotCommitted=function(){if(this._committed)throw new zx(Bx.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}();
1function wN(t,e){if((t=Oy(t)).firestore!==e)throw new zx(Bx.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}var xN=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return gy(e,t),e.prototype.convertBytes=function(t){return new wD(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new oD(this.firestore,null,e)},e}(vN);function SN(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];t=nD(t,oD);var s=nD(t.firestore,gD),o=OD(s);return CN(s,[("string"==typeof(e=Oy(e))||e instanceof _D?qD(o,"updateDoc",t._key,e,n,i):ZD(o,"updateDoc",t._key,e)).toMutation(t._key,zT.exists(!0))])}function TN(t){for(var e,n,i,r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];t=Oy(t);var o={includeMetadataChanges:!1},a=0;"object"!=typeof r[a]||pD(r[a])||(o=r[a],a++);var c,u,l,h={includeMetadataChanges:o.includeMetadataChanges};if(pD(r[a])){var d=r[a];r[a]=null===(e=d.next)||void 0===e?void 0:e.bind(d),r[a+1]=null===(n=d.error)||void 0===n?void 0:n.bind(d),r[a+2]=null===(i=d.complete)||void 0===i?void 0:i.bind(d)}if(t instanceof oD)u=nD(t.firestore,gD),l=dT(t._key.path),c={next:function(e){r[a]&&r[a](EN(u,t,e))},error:r[a+1],complete:r[a+2]};else{var f=nD(t,aD);u=nD(f.firestore,gD),l=f._query;var p=new xN(u);c={next:function(t){r[a]&&r[a](new nN(u,p,f,t))},error:r[a+1],complete:r[a+2]},sN(t._query)}return function(t,e,n,i){var r=this,s=new EO(i),o=new Mk(e,s,n);return t.asyncQueue.enqueueAndForget(function(){return vy(r,void 0,void 0,function(){var e;return yy(this,function(n){switch(n.label){case 0:return e=Dk,[4,ZO(t)];case 1:return[2,e.apply(void 0,[n.sent(),o])]}})})}),function(){s.Wo(),t.asyncQueue.enqueueAndForget(function(){return vy(r,void 0,void 0,function(){var e;return yy(this,function(n){switch(n.label){case 0:return e=Nk,[4,ZO(t)];case 1:return[2,e.apply(void 0,[n.sent(),o])]}})})})}}(mD(u),l,h,c)}function CN(t,e){return function(t,e){var n=this,i=new ME;return t.asyncQueue.enqueueAndForget(function(){return vy(n,void 0,void 0,function(){var n;return yy(this,function(r){switch(r.label){case 0:return n=Qk,[4,FO(t)];case 1:return[2,n.apply(void 0,[r.sent(),e,i])]}})})}),i.promise}(mD(t),e)}function EN(t,e,n){var i=n.docs.get(e._key),r=new xN(t);return new tN(t,r,e._key,i,new XD(n.hasPendingWrites,n.fromCache),e.converter)}var AN=function(t){function e(e,n){var i=this;return(i=t.call(this,e,n)||this)._firestore=e,i}return gy(e,t),e.prototype.get=function(e){var n=this,i=wN(e,this._firestore),r=new xN(this._firestore);return t.prototype.get.call(this,e).then(function(t){return new tN(n._firestore,r,i._key,t._document,new XD(!1,!1),i.converter)})},e}(function(){function t(t,e){this._firestore=t,this._transaction=e,this._dataReader=OD(t)}return t.prototype.get=function(t){var e=this,n=wN(t,this._firestore),i=new bN(this._firestore);return this._transaction.lookup([n._key]).then(function(t){if(!t||1!==t.length)return Wx();var r=t[0];if(r.isFoundDocument())return new JD(e._firestore,i,r.key,r,n.converter);if(r.isNoDocument())return new JD(e._firestore,i,n._key,null,n.converter);throw Wx()})},t.prototype.set=function(t,e,n){var i=wN(t,this._firestore),r=yN(i.converter,e,n),s=DD(this._dataReader,"Transaction.set",i._key,r,null!==i.converter,n);return this._transaction.set(i._key,s),this},t.prototype.update=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];var s,o=wN(t,this._firestore);return s="string"==typeof(e=Oy(e))||e instanceof _D?qD(this._dataReader,"Transaction.update",o._key,e,n,i):ZD(this._dataReader,"Transaction.update",o._key,e),this._transaction.update(o._key,s),this},t.prototype.delete=function(t){var e=wN(t,this._firestore);return this._transaction.delete(e._key),this},t}());function IN(){if("undefined"==typeof Uint8Array)throw new zx(Bx.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function kN(){if("undefined"==typeof atob)throw new zx(Bx.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var ON=function(){function t(t){this._delegate=t}return t.fromBase64String=function(e){return kN(),new t(wD.fromBase64String(e))},t.fromUint8Array=function(e){return IN(),new t(wD.fromUint8Array(e))},t.prototype.toBase64=function(){return kN(),this._delegate.toBase64()},t.prototype.toUint8Array=function(){return IN(),this._delegate.toUint8Array()},t.prototype.isEqual=function(t){return this._delegate.isEqual(t._delegate)},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t}(),DN=function(){function t(){}return t.prototype.enableIndexedDbPersistence=function(t,e){return function(t,e){bD(t=nD(t,gD));var n=mD(t),i=t._freezeSettings(),r=new CO;
1return yD(n,r,new SO(r,i.cacheSizeBytes,null==e?void 0:e.forceOwnership))}(t._delegate,{forceOwnership:e})},t.prototype.enableMultiTabIndexedDbPersistence=function(t){return function(t){bD(t=nD(t,gD));var e=mD(t),n=t._freezeSettings(),i=new CO;return yD(e,i,new TO(i,n.cacheSizeBytes))}(t._delegate)},t.prototype.clearIndexedDbPersistence=function(t){return function(t){var e=this;if(t._initialized&&!t._terminated)throw new zx(Bx.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");var n=new ME;return t._queue.enqueueAndForgetEvenWhileRestricted(function(){return vy(e,void 0,void 0,function(){var e;return yy(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,function(t){return vy(this,void 0,void 0,function(){return yy(this,function(e){switch(e.label){case 0:return qE.yt()?[4,qE.delete(t+"main")]:[2,Promise.resolve()];case 1:return e.sent(),[2]}})})}(JA(t._databaseId,t._persistenceKey))];case 1:return i.sent(),n.resolve(),[3,3];case 2:return e=i.sent(),n.reject(e),[3,3];case 3:return[2]}})})}),n.promise}(t._delegate)},t}(),NN=function(){function t(t,e,n){var i=this;this._delegate=e,this.Zc=n,this.INTERNAL={delete:function(){return i.terminate()}},t instanceof jO||(this.tu=t)}return Object.defineProperty(t.prototype,"_databaseId",{get:function(){return this._delegate._databaseId},enumerable:!1,configurable:!0}),t.prototype.settings=function(t){var e=this._delegate._getSettings();t.merge||e.host===t.host||$x("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),t.merge&&delete(t=Object.assign(Object.assign({},e),t)).merge,this._delegate._setSettings(t)},t.prototype.useEmulator=function(t,e,n){void 0===n&&(n={}),function(t,e,n,i){void 0===i&&(i={});var r=(t=nD(t,sD))._getSettings();if("firestore.googleapis.com"!==r.host&&r.host!==e&&$x("Host has been set in both settings() and useEmulator(), emulator host will be used"),t._setSettings(Object.assign(Object.assign({},r),{host:e+":"+n,ssl:!1})),i.mockUserToken){var s=function(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
1var n="demo-project",i=t.iat||0,r=t.sub||t.user_id;if(!r)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var s=my({iss:"https://securetoken.google.com/"+n,aud:n,iat:i,exp:i+3600,auth_time:i,sub:r,user_id:r,firebase:{sign_in_provider:"custom",identities:{}}},t);return[xy.encodeString(JSON.stringify({alg:"none",type:"JWT"}),!1),xy.encodeString(JSON.stringify(s),!1),""].join(".")}(i.mockUserToken),o=i.mockUserToken.sub||i.mockUserToken.user_id;if(!o)throw new zx(Bx.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");t._credentials=new GO(new zO(s,new AI(o)))}}(this._delegate,t,e,n)},t.prototype.enableNetwork=function(){return function(t){var e=this;return t.asyncQueue.enqueue(function(){return vy(e,void 0,void 0,function(){var e,n;return yy(this,function(i){switch(i.label){case 0:return[4,RO(t)];case 1:return e=i.sent(),[4,MO(t)];case 2:return n=i.sent(),[2,(e.setNetworkEnabled(!0),r=n,s=Xx(r),s.Or.delete(0),XI(s))]}var r,s})})})}(mD(nD(this._delegate,gD)))},t.prototype.disableNetwork=function(){return function(t){var e=this;return t.asyncQueue.enqueue(function(){return vy(e,void 0,void 0,function(){var e,n;return yy(this,function(i){switch(i.label){case 0:return[4,RO(t)];case 1:return e=i.sent(),[4,MO(t)];case 2:return n=i.sent(),[2,(e.setNetworkEnabled(!1),function(t){return vy(this,void 0,void 0,function(){var e;return yy(this,function(n){switch(n.label){case 0:return(e=Xx(t)).Or.add(0),[4,tk(e)];case 1:return n.sent(),e.Br.set("Offline"),[2]}})})}(n))]}})})})}(mD(nD(this._delegate,gD)))},t.prototype.enablePersistence=function(t){var e=!1,n=!1;return t&&KO("synchronizeTabs",e=!!t.synchronizeTabs,"experimentalForceOwningTab",n=!!t.experimentalForceOwningTab),e?this.Zc.enableMultiTabIndexedDbPersistence(this):this.Zc.enableIndexedDbPersistence(this,n)},t.prototype.clearPersistence=function(){return this.Zc.clearIndexedDbPersistence(this)},t.prototype.terminate=function(){return this.tu&&(this.tu._removeServiceInstance("firestore"),this.tu._removeServiceInstance("firestore-exp")),this._delegate._delete()},t.prototype.waitForPendingWrites=function(){return function(t){var e=this,n=new ME;return t.asyncQueue.enqueueAndForget(function(){return vy(e,void 0,void 0,function(){var e;return yy(this,function(i){switch(i.label){case 0:return e=tO,[4,FO(t)];case 1:return[2,e.apply(void 0,[i.sent(),n])]}})})}),n.promise}(mD(nD(this._delegate,gD)))},t.prototype.onSnapshotsInSync=function(t){return e=t,function(t,e){var n=this,i=new EO(e);return t.asyncQueue.enqueueAndForget(function(){return vy(n,void 0,void 0,function(){var e;return yy(this,function(n){switch(n.label){case 0:return e=function(t,e){Xx(t).Gr.add(e),e.next()},[4,ZO(t)];case 1:return[2,e.apply(void 0,[n.sent(),i])]}})})}),function(){i.Wo(),t.asyncQueue.enqueueAndForget(function(){return vy(n,void 0,void 0,function(){var e;return yy(this,function(n){switch(n.label){case 0:return e=function(t,e){Xx(t).Gr.delete(e)},[4,ZO(t)];case 1:return[2,e.apply(void 0,[n.sent(),i])]}})})})}}(mD(nD(this._delegate,gD)),pD(e)?e:{next:e});var e},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.tu)throw new zx(Bx.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.tu},enumerable:!1,configurable:!0}),t.prototype.collection=function(t){try{return new GN(this,uD(this._delegate,t))}catch(e){throw ZN(e,"collection()","Firestore.collection()")}},t.prototype.doc=function(t){try{return new FN(this,lD(this._delegate,t))}catch(e){throw ZN(e,"doc()","Firestore.doc()")}},t.prototype.collectionGroup=function(t){try{return new BN(this,function(t,e){if(t=nD(t,sD),JO("collectionGroup","collection id",e),e.indexOf("/")>=0)throw new zx(Bx.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function collectionGroup(). Collection IDs must not contain '/'.");return new aD(t,null,(n=e,new lT(hS.emptyPath(),n)));var n}(this._delegate,t))}catch(e){throw ZN(e,"collectionGroup()","Firestore.collectionGroup()")}},t.prototype.runTransaction=function(t){var e,n=this;return function(t,e){var n=this,i=new ME;return t.asyncQueue.enqueueAndForget(function(){return vy(n,void 0,void 0,function(){var n;return yy(this,function(r){switch(r.label){case 0:return[4,(s=t,PO(s).then(function(t){return t.datastore}))];case 1:return n=r.sent(),new IO(t.asyncQueue,n,e,i).run(),[2]}var s})})}),i.promise}(mD(e=this._delegate),function(i){return function(e){return t(new RN(n,e))}(new AN(e,i))})},t.prototype.batch=function(){var t=this;return mD(this._delegate),new LN(new _N(this._delegate,function(e){return CN(t._delegate,e)}))}
1,t.prototype.loadBundle=function(t){throw new zx(Bx.FAILED_PRECONDITION,'"loadBundle()" does not exist, have you imported "firebase/firestore/bundle"?')},t.prototype.namedQuery=function(t){throw new zx(Bx.FAILED_PRECONDITION,'"namedQuery()" does not exist, have you imported "firebase/firestore/bundle"?')},t}(),PN=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return gy(e,t),e.prototype.convertBytes=function(t){return new ON(new wD(t))},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return FN.eu(e,this.firestore,null)},e}(vN),RN=function(){function t(t,e){this._firestore=t,this._delegate=e,this._userDataWriter=new PN(t)}return t.prototype.get=function(t){var e=this,n=YN(t);return this._delegate.get(n).then(function(t){return new VN(e._firestore,new tN(e._firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,n.converter))})},t.prototype.set=function(t,e,n){var i=YN(t);return n?(WO("Transaction.set",n),this._delegate.set(i,e,n)):this._delegate.set(i,e),this},t.prototype.update=function(t,e,n){for(var i,r=[],s=3;s<arguments.length;s++)r[s-3]=arguments[s];var o=YN(t);return 2===arguments.length?this._delegate.update(o,e):(i=this._delegate).update.apply(i,wy([o,e,n],r)),this},t.prototype.delete=function(t){var e=YN(t);return this._delegate.delete(e),this},t}(),LN=function(){function t(t){this._delegate=t}return t.prototype.set=function(t,e,n){var i=YN(t);return n?(WO("WriteBatch.set",n),this._delegate.set(i,e,n)):this._delegate.set(i,e),this},t.prototype.update=function(t,e,n){for(var i,r=[],s=3;s<arguments.length;s++)r[s-3]=arguments[s];var o=YN(t);return 2===arguments.length?this._delegate.update(o,e):(i=this._delegate).update.apply(i,wy([o,e,n],r)),this},t.prototype.delete=function(t){var e=YN(t);return this._delegate.delete(e),this},t.prototype.commit=function(){return this._delegate.commit()},t}(),MN=function(){function t(t,e,n){this._firestore=t,this._userDataWriter=e,this._delegate=n}return t.prototype.fromFirestore=function(t,e){var n=new eN(this._firestore._delegate,this._userDataWriter,t._key,t._document,t.metadata,null);return this._delegate.fromFirestore(new jN(this._firestore,n),null!=e?e:{})},t.prototype.toFirestore=function(t,e){return e?this._delegate.toFirestore(t,e):this._delegate.toFirestore(t)},t.nu=function(e,n){var i=t.su,r=i.get(e);r||(r=new WeakMap,i.set(e,r));var s=r.get(n);return s||(s=new t(e,new PN(e),n),r.set(n,s)),s},t}();MN.su=new WeakMap;var FN=function(){function t(t,e){this.firestore=t,this._delegate=e,this._userDataWriter=new PN(t)}return t.iu=function(e,n,i){if(e.length%2!=0)throw new zx(Bx.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e.canonicalString()+" has "+e.length);return new t(n,new oD(n._delegate,i,new ES(e)))},t.eu=function(e,n,i){return new t(n,new oD(n._delegate,i,e))},Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new GN(this.firestore,this._delegate.parent)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),t.prototype.collection=function(t){try{return new GN(this.firestore,uD(this._delegate,t))}catch(e){throw ZN(e,"collection()","DocumentReference.collection()")}},t.prototype.isEqual=function(t){return(t=Oy(t))instanceof oD&&hD(this._delegate,t)},t.prototype.set=function(t,e){e=WO("DocumentReference.set",e);try{return function(t,e,n){t=nD(t,oD);var i=nD(t.firestore,gD),r=yN(t.converter,e,n);return CN(i,[DD(OD(i),"setDoc",t._key,r,null!==t.converter,n).toMutation(t._key,zT.none())])}(this._delegate,t,e)}catch(n){throw ZN(n,"setDoc()","DocumentReference.set()")}},t.prototype.update=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];try{return 1===arguments.length?SN(this._delegate,t):SN.apply(void 0,wy([this._delegate,t,e],n))}
1catch(r){throw ZN(r,"updateDoc()","DocumentReference.update()")}},t.prototype.delete=function(){return CN(nD((t=this._delegate).firestore,gD),[new sC(t._key,zT.none())]);var t},t.prototype.onSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=qN(e),r=UN(e,function(e){return new VN(t.firestore,new tN(t.firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,t._delegate.converter))});return TN(this._delegate,i,r)},t.prototype.get=function(t){var e=this;return("cache"===(null==t?void 0:t.source)?function(t){t=nD(t,oD);var e=nD(t.firestore,gD),n=mD(e),i=new xN(e);return function(t,e){var n=this,i=new ME;return t.asyncQueue.enqueueAndForget(function(){return vy(n,void 0,void 0,function(){var n;return yy(this,function(r){switch(r.label){case 0:return n=function(t,e,n){return vy(this,void 0,void 0,function(){var i,r;return yy(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,(o=t,a=e,c=Xx(o),c.persistence.runTransaction("read document","readonly",function(t){return c.Mn.mn(t,a)}))];case 1:return(r=s.sent()).isFoundDocument()?n.resolve(r):r.isNoDocument()?n.resolve(null):n.reject(new zx(Bx.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 i=s.sent(),r=Ck(i,"Failed to get document '"+e+" from cache"),n.reject(r),[3,3];case 3:return[2]}var o,a,c})})},[4,LO(t)];case 1:return[2,n.apply(void 0,[r.sent(),e,i])]}})})}),i.promise}(n,t._key).then(function(n){return new tN(e,i,t._key,n,new XD(null!==n&&n.hasLocalMutations,!0),t.converter)})}(this._delegate):"server"===(null==t?void 0:t.source)?function(t){t=nD(t,oD);var e=nD(t.firestore,gD);return qO(mD(e),t._key,{source:"server"}).then(function(n){return EN(e,t,n)})}(this._delegate):function(t){t=nD(t,oD);var e=nD(t.firestore,gD);return qO(mD(e),t._key).then(function(n){return EN(e,t,n)})}(this._delegate)).then(function(t){return new VN(e.firestore,new tN(e.firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,e._delegate.converter))})},t.prototype.withConverter=function(e){return new t(this.firestore,this._delegate.withConverter(e?MN.nu(this.firestore,e):null))},t}();function ZN(t,e,n){return t.message=t.message.replace(e,n),t}function qN(t){for(var e=0,n=t;e<n.length;e++){var i=n[e];if("object"==typeof i&&!pD(i))return i}return{}}function UN(t,e){var n,i,r;return{next:function(t){r.next&&r.next(e(t))},error:null===(n=(r=pD(t[0])?t[0]:pD(t[1])?t[1]:"function"==typeof t[0]?{next:t[0],error:t[1],complete:t[2]}:{next:t[1],error:t[2],complete:t[3]}).error)||void 0===n?void 0:n.bind(r),complete:null===(i=r.complete)||void 0===i?void 0:i.bind(r)}}var VN=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"ref",{get:function(){return new FN(this._firestore,this._delegate.ref)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return this._delegate.exists()},enumerable:!1,configurable:!0}),t.prototype.data=function(t){return this._delegate.data(t)},t.prototype.get=function(t,e){return this._delegate.get(t,e)},t.prototype.isEqual=function(t){return rN(this._delegate,t._delegate)},t}(),jN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gy(e,t),e.prototype.data=function(t){return this._delegate.data(t)},e}(VN),BN=function(){function t(t,e){this.firestore=t,this._delegate=e,this._userDataWriter=new PN(t)}return t.prototype.where=function(e,n,i){try{return new t(this.firestore,aN(this._delegate,(s=i,o=n,a=KD("where",r=e),new cN(a,o,s))))}catch(r){throw ZN(r,/(orderBy|where)\(\)/,"Query.$1()")}var r,s,o,a},t.prototype.orderBy=function(e,n){try{return new t(this.firestore,aN(this._delegate,function(t,e){void 0===e&&(e="asc");var n=e,i=KD("orderBy",t);return new uN(i,n)}
1(e,n)))}catch(i){throw ZN(i,/(orderBy|where)\(\)/,"Query.$1()")}},t.prototype.limit=function(e){try{return new t(this.firestore,aN(this._delegate,(iD("limit",n=e),new lN("limit",n,"F"))))}catch(n){throw ZN(n,"limit()","Query.limit()")}var n},t.prototype.limitToLast=function(e){try{return new t(this.firestore,aN(this._delegate,(iD("limitToLast",n=e),new lN("limitToLast",n,"L"))))}catch(n){throw ZN(n,"limitToLast()","Query.limitToLast()")}var n},t.prototype.startAt=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,aN(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new hN("startAt",t,!0)}).apply(void 0,e)))}catch(i){throw ZN(i,"startAt()","Query.startAt()")}},t.prototype.startAfter=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,aN(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new hN("startAfter",t,!1)}).apply(void 0,e)))}catch(i){throw ZN(i,"startAfter()","Query.startAfter()")}},t.prototype.endBefore=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,aN(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new dN("endBefore",t,!0)}).apply(void 0,e)))}catch(i){throw ZN(i,"endBefore()","Query.endBefore()")}},t.prototype.endAt=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,aN(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new dN("endAt",t,!1)}).apply(void 0,e)))}catch(i){throw ZN(i,"endAt()","Query.endAt()")}},t.prototype.isEqual=function(t){return dD(this._delegate,t._delegate)},t.prototype.get=function(t){var e=this;return("cache"===(null==t?void 0:t.source)?function(t){t=nD(t,aD);var e=nD(t.firestore,gD),n=mD(e),i=new xN(e);return function(t,e){var n=this,i=new ME;return t.asyncQueue.enqueueAndForget(function(){return vy(n,void 0,void 0,function(){var n;return yy(this,function(r){switch(r.label){case 0:return n=function(t,e,n){return vy(this,void 0,void 0,function(){var i,r,s,o,a;return yy(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,hI(t,e,!0)];case 1:return a=c.sent(),i=new Vk(e,a.Bn),r=i._o(a.documents),s=i.applyChanges(r,!1),n.resolve(s.snapshot),[3,3];case 2:return o=c.sent(),a=Ck(o,"Failed to execute query '"+e+" against cache"),n.reject(a),[3,3];case 3:return[2]}})})},[4,LO(t)];case 1:return[2,n.apply(void 0,[r.sent(),e,i])]}})})}),i.promise}(n,t._query).then(function(n){return new nN(e,i,t,n)})}(this._delegate):"server"===(null==t?void 0:t.source)?function(t){t=nD(t,aD);var e=nD(t.firestore,gD),n=mD(e),i=new xN(e);return UO(n,t._query,{source:"server"}).then(function(n){return new nN(e,i,t,n)})}(this._delegate):function(t){t=nD(t,aD);var e=nD(t.firestore,gD),n=mD(e),i=new xN(e);return sN(t._query),UO(n,t._query).then(function(n){return new nN(e,i,t,n)})}(this._delegate)).then(function(t){return new HN(e.firestore,new nN(e.firestore._delegate,e._userDataWriter,e._delegate,t._snapshot))})},t.prototype.onSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=qN(e),r=UN(e,function(e){return new HN(t.firestore,new nN(t.firestore._delegate,t._userDataWriter,t._delegate,e._snapshot))});return TN(this._delegate,i,r)},t.prototype.withConverter=function(e){return new t(this.firestore,this._delegate.withConverter(e?MN.nu(this.firestore,e):null))},t}(),zN=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"type",{get:function(){return this._delegate.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"doc",{get:function(){return new jN(this._firestore,this._delegate.doc)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"oldIndex",{get:function(){return this._delegate.oldIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newIndex",{get:function(){return this._delegate.newIndex}
1,enumerable:!1,configurable:!0}),t}(),HN=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"query",{get:function(){return new BN(this._firestore,this._delegate.query)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._delegate.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this._delegate.empty},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"docs",{get:function(){var t=this;return this._delegate.docs.map(function(e){return new jN(t._firestore,e)})},enumerable:!1,configurable:!0}),t.prototype.docChanges=function(t){var e=this;return this._delegate.docChanges(t).map(function(t){return new zN(e._firestore,t)})},t.prototype.forEach=function(t,e){var n=this;this._delegate.forEach(function(i){t.call(e,new jN(n._firestore,i))})},t.prototype.isEqual=function(t){return rN(this._delegate,t._delegate)},t}(),GN=function(t){function e(e,n){var i=this;return(i=t.call(this,e,n)||this).firestore=e,i._delegate=n,i}return gy(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._delegate.parent;return t?new FN(this.firestore,t):null},enumerable:!1,configurable:!0}),e.prototype.doc=function(t){try{return new FN(this.firestore,void 0===t?lD(this._delegate):lD(this._delegate,t))}catch(e){throw ZN(e,"doc()","CollectionReference.doc()")}},e.prototype.add=function(t){var e,n,i,r,s,o=this;return(e=this._delegate,n=t,i=nD(e.firestore,gD),r=lD(e),s=yN(e.converter,n),CN(i,[DD(OD(e.firestore),"addDoc",r._key,s,null!==e.converter,{}).toMutation(r._key,zT.exists(!1))]).then(function(){return r})).then(function(t){return new FN(o.firestore,t)})},e.prototype.isEqual=function(t){return hD(this._delegate,t._delegate)},e.prototype.withConverter=function(t){return new e(this.firestore,this._delegate.withConverter(t?MN.nu(this.firestore,t):null))},e}(BN);function YN(t){return nD(t,oD)}var QN=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._delegate=new(_D.bind.apply(_D,wy([void 0],t)))}return t.documentId=function(){return new t(fS.keyField().canonicalString())},t.prototype.isEqual=function(t){return(t=Oy(t))instanceof _D&&this._delegate._internalPath.isEqual(t._internalPath)},t}(),$N=function(){function t(t){this._delegate=t}return t.serverTimestamp=function(){var e=new RD("serverTimestamp");return e._methodName="FieldValue.serverTimestamp",new t(e)},t.delete=function(){var e=new ND("deleteField");return e._methodName="FieldValue.delete",new t(e)},t.arrayUnion=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new LD("arrayUnion",t)}).apply(void 0,e);return i._methodName="FieldValue.arrayUnion",new t(i)},t.arrayRemove=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new MD("arrayRemove",t)}).apply(void 0,e);return i._methodName="FieldValue.arrayRemove",new t(i)},t.increment=function(e){var n=new FD("increment",e);return n._methodName="FieldValue.increment",new t(n)},t.prototype.isEqual=function(t){return this._delegate.isEqual(t._delegate)},t}(),JN=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}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.prototype.setInstanceCreatedCallback=function(t){return this.onInstanceCreated=t,this},t}(),WN="[DEFAULT]",KN=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.onInitCallbacks=new Map}return t.prototype.get=function(t){var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new Sy;if(this.instancesDeferred.set(e,n),this.isInitialized(e)||this.shouldAutoInitialize())try{var i=this.getOrInitializeService({instanceIdentifier:e});i&&n.resolve(i)}catch(r){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e,n=this.normalizeInstanceIdentifier(null==t?void 0:t.identifier),i=null!==(e=null==t?void 0:t.optional)&&void 0!==e&&e;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(i)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(r){if(i)return null;throw r}},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");
1if(this.component=t,this.shouldAutoInitialize()){if(function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService({instanceIdentifier:WN})}catch(u){}try{for(var i=by(this.instancesDeferred.entries()),r=i.next();!r.done;r=i.next()){var s=_y(r.value,2),o=s[1],a=this.normalizeInstanceIdentifier(s[0]);try{var c=this.getOrInitializeService({instanceIdentifier:a});o.resolve(c)}catch(u){}}}catch(u){e={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}},t.prototype.clearInstance=function(t){void 0===t&&(t=WN),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return vy(this,void 0,void 0,function(){var t;return yy(this,function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(wy(wy([],_y(t.filter(function(t){return"INTERNAL"in t}).map(function(t){return t.INTERNAL.delete()}))),_y(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.isInitialized=function(t){return void 0===t&&(t=WN),this.instances.has(t)},t.prototype.initialize=function(t){var e,n;void 0===t&&(t={});var i=t.options,r=void 0===i?{}:i,s=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(s))throw Error(this.name+"("+s+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var o=this.getOrInitializeService({instanceIdentifier:s,options:r});try{for(var a=by(this.instancesDeferred.entries()),c=a.next();!c.done;c=a.next()){var u=_y(c.value,2),l=u[1];s===this.normalizeInstanceIdentifier(u[0])&&l.resolve(o)}}catch(h){e={error:h}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return o},t.prototype.onInit=function(t,e){var n,i=this.normalizeInstanceIdentifier(e),r=null!==(n=this.onInitCallbacks.get(i))&&void 0!==n?n:new Set;r.add(t),this.onInitCallbacks.set(i,r);var s=this.instances.get(i);return s&&t(s,i),function(){r.delete(t)}},t.prototype.invokeOnInitCallbacks=function(t,e){var n,i,r=this.onInitCallbacks.get(e);if(r)try{for(var s=by(r),o=s.next();!o.done;o=s.next()){var a=o.value;try{a(t,e)}catch(c){}}}catch(c){n={error:c}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},t.prototype.getOrInitializeService=function(t){var e=t.instanceIdentifier,n=t.options,i=void 0===n?{}:n,r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:XN(e),options:i}),this.instances.set(e,r),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(s){}return r||null},t.prototype.normalizeInstanceIdentifier=function(t){return void 0===t&&(t=WN),this.component?this.component.multipleInstances?t:WN:t},t.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},t}();function XN(t){return t===WN?void 0:t}!function(){function t(t){this.name=t,this.providers=new Map}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 KN(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())}}();var tP={Firestore:NN,GeoPoint:SD,Timestamp:sS,Blob:ON,Transaction:RN,WriteBatch:LN,DocumentReference:FN,DocumentSnapshot:VN,Query:BN,QueryDocumentSnapshot:jN,QuerySnapshot:HN,CollectionReference:GN,FieldPath:QN,FieldValue:$N,setLogLevel:function(t){Hx.setLogLevel(t)},CACHE_SIZE_UNLIMITED:-1};function eP(t,e){return e?Rn(()=>t,e):Rn(()=>t)}!function(t){t.INTERNAL.registerComponent(new JN("firestore",function(t){return e=t.getProvider("app").getImmediate(),n=t.getProvider("auth-internal"),new NN(e,new gD(e,n),new DN);var e,n},"PUBLIC").setServiceProps(Object.assign({},tP))),t.registerVersion("@firebase/firestore","2.3.10")}(ly.Z);var nP=n(9673);
1const iP=new i.OlP("angularfire2.auth.use-emulator"),rP=new i.OlP("angularfire2.auth.settings"),sP=new i.OlP("angularfire2.auth.tenant-id"),oP=new i.OlP("angularfire2.auth.langugage-code"),aP=new i.OlP("angularfire2.auth.use-device-language"),cP=new i.OlP("angularfire.auth.persistence");let uP=(()=>{class t{constructor(t,e,i,r,s,o,a,c,u,l){const h=new dy.HU(r),d=(0,dy.ss)(h),f=new pn.xQ,p=(0,Se.of)(void 0).pipe((0,Fu.QV)(h.outsideAngular),Rn(()=>r.runOutsideAngular(()=>n.e(952).then(n.bind(n,1952)))),(0,De.U)(()=>(0,dy.on)(t,r,e)),(0,De.U)(t=>r.runOutsideAngular(()=>{const e=s,n=o;return(0,dy.sI)(`${t.name}.auth`,"AngularFireAuth",t,()=>{const i=r.runOutsideAngular(()=>t.auth());if(e&&i.useEmulator(`http://${e.join(":")}`),a&&(i.tenantId=a),i.languageCode=c,u&&i.useDeviceLanguage(),n)for(const[t,e]of Object.entries(n))i.settings[t]=e;return l&&i.setPersistence(l),i},[e,a,c,u,n,l])})),Vu({bufferSize:1,refCount:!1}));if(Lt(i))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,Se.of)(null);else{p.pipe(si()).subscribe();const t=p.pipe(Rn(t=>t.getRedirectResult().then(t=>t,()=>null)),d,Vu({bufferSize:1,refCount:!1})),e=t=>new Te.y(e=>({unsubscribe:r.runOutsideAngular(()=>t(e))})),n=p.pipe(Rn(t=>e(t.onAuthStateChanged.bind(t)))),i=p.pipe(Rn(t=>e(t.onIdTokenChanged.bind(t))));this.authState=t.pipe(eP(n),(0,nP.R)(h.outsideAngular),(0,Fu.QV)(h.insideAngular)),this.user=t.pipe(eP(i),(0,nP.R)(h.outsideAngular),(0,Fu.QV)(h.insideAngular)),this.idToken=this.user.pipe(Rn(t=>t?(0,fn.D)(t.getIdToken()):(0,Se.of)(null))),this.idTokenResult=this.user.pipe(Rn(t=>t?(0,fn.D)(t.getIdTokenResult()):(0,Se.of)(null))),this.credential=(0,rl.T)(t,f,this.authState.pipe(Ie(t=>!t))).pipe((0,De.U)(t=>(null==t?void 0:t.user)?t:null),(0,nP.R)(h.outsideAngular),(0,Fu.QV)(h.insideAngular))}return(0,dy.pX)(this,p,r,{spy:{apply:(t,e,n)=>{(t.startsWith("signIn")||t.startsWith("createUser"))&&n.then(t=>f.next(t))}}})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(dy.Dh),i.LFG(dy.xv,8),i.LFG(i.Lbi),i.LFG(i.R0b),i.LFG(iP,8),i.LFG(rP,8),i.LFG(sP,8),i.LFG(oP,8),i.LFG(aP,8),i.LFG(cP,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(dy.Dh),i.LFG(dy.xv,8),i.LFG(i.Lbi),i.LFG(i.R0b),i.LFG(iP,8),i.LFG(rP,8),i.LFG(sP,8),i.LFG(oP,8),i.LFG(aP,8),i.LFG(cP,8))},token:t,providedIn:"any"}),t})(),lP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[uP]}),t})();function hP(t,e){return function(t,e=Ec.z){return new Te.y(n=>{let i;return null!=e?e.schedule(()=>{i=t.onSnapshot({includeMetadataChanges:!0},n)}):i=t.onSnapshot({includeMetadataChanges:!0},n),()=>{null!=i&&i()}})}(t,e)}function dP(t,e){return hP(t,e).pipe((0,De.U)(t=>({payload:t,type:"query"})))}function fP(t,e){return dP(t,e).pipe(Vn(void 0),Pu(),(0,De.U)(([t,e])=>{const n=e.payload.docChanges(),i=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,r)=>{const s=n.find(t=>t.doc.ref.isEqual(e.ref)),o=null==t?void 0:t.payload.docs.find(t=>t.ref.isEqual(e.ref));s&&JSON.stringify(s.doc.metadata)===JSON.stringify(e.metadata)||!s&&o&&JSON.stringify(o.metadata)===JSON.stringify(e.metadata)||i.push({type:"modified",payload:{oldIndex:r,newIndex:r,type:"modified",doc:e}})}),i}))}function pP(t,e,n){return fP(t,n).pipe(jn((t,n)=>function(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 gP(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 gP(t,e.newIndex,1,e)}break;case"removed":if(t[e.oldIndex]&&t[e.oldIndex].doc.ref.isEqual(e.doc.ref))return gP(t,e.oldIndex,1)}return t}(t,e))}),t}(t,n.map(t=>t.payload),e),[]),Pc(),(0,De.U)(t=>t.map(t=>({type:t.type,payload:t}))))}function gP(t,e,n,...i){const r=t.slice();return r.splice(e,n,...i),r}function mP(t){return(!t||0===t.length)&&(t=["added","removed","modified"]),t}class vP{constructor(t,e,n){this.ref=t,this.query=e,this.afs=n}stateChanges(t){let e=fP(this.query,this.afs.schedulers.outsideAngular);return t&&t.length>0&&(e=e.pipe((0,De.U)(e=>e.filter(e=>t.indexOf(e.type)>-1)))),e.pipe(Vn(void 0),Pu(),Ie(([t,e])=>e.length>0||!t),(0,De.U)(([t,e])=>e),this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(jn((t,e)=>[...t,...e],[]))}
1snapshotChanges(t){const e=mP(t);return pP(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return dP(this.query,this.afs.schedulers.outsideAngular).pipe((0,De.U)(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(0,fn.D)(this.query.get(t)).pipe((0,Fu.QV)(this.afs.schedulers.insideAngular))}add(t){return this.ref.add(t)}doc(t){return new yP(this.ref.doc(t),this.afs)}}class yP{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:i,query:r}=TP(n,e);return new vP(i,r,this.afs)}snapshotChanges(){return function(t,e){return hP(t,e).pipe(Vn(void 0),Pu(),(0,De.U)(([t,e])=>e.exists?(null==t?void 0:t.exists)?{payload:e,type:"modified"}:{payload:e,type:"added"}:{payload:e,type:"removed"}))}(this.ref,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return this.snapshotChanges().pipe((0,De.U)(({payload:e})=>t.idField?Object.assign(Object.assign({},e.data()),{[t.idField]:e.id}):e.data()))}get(t){return(0,fn.D)(this.ref.get(t)).pipe((0,Fu.QV)(this.afs.schedulers.insideAngular))}}class bP{constructor(t,e){this.query=t,this.afs=e}stateChanges(t){return t&&0!==t.length?fP(this.query,this.afs.schedulers.outsideAngular).pipe((0,De.U)(e=>e.filter(e=>t.indexOf(e.type)>-1)),Ie(t=>t.length>0),this.afs.keepUnstableUntilFirst):fP(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(jn((t,e)=>[...t,...e],[]))}snapshotChanges(t){const e=mP(t);return pP(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return dP(this.query,this.afs.schedulers.outsideAngular).pipe((0,De.U)(e=>e.payload.docs.map(e=>t.idField?Object.assign({[t.idField]:e.id},e.data()):e.data())),this.afs.keepUnstableUntilFirst)}get(t){return(0,fn.D)(this.query.get(t)).pipe((0,Fu.QV)(this.afs.schedulers.insideAngular))}}const _P=new i.OlP("angularfire2.enableFirestorePersistence"),wP=new i.OlP("angularfire2.firestore.persistenceSettings"),xP=new i.OlP("angularfire2.firestore.settings"),SP=new i.OlP("angularfire2.firestore.use-emulator");function TP(t,e=(t=>t)){return{query:e(t),ref:t}}let CP=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c){this.schedulers=new dy.HU(s),this.keepUnstableUntilFirst=(0,dy.ss)(this.schedulers);const u=(0,dy.on)(t,s,e);!fy.Z.auth&&c&&(0,dy.yq)();const l=a;[this.firestore,this.persistenceEnabled$]=(0,dy.sI)(`${u.name}.firestore`,"AngularFirestore",u,()=>{const t=s.runOutsideAngular(()=>u.firestore());if(i&&t.settings(i),l&&t.useEmulator(...l),n&&!Lt(r)){const e=()=>{try{return(0,fn.D)(t.enablePersistence(o||void 0).then(()=>!0,()=>!1))}catch(e){return"undefined"!=typeof console&&console.warn(e),(0,Se.of)(!1)}};return[t,s.runOutsideAngular(e)]}return[t,(0,Se.of)(!1)]},[i,l,n])}collection(t,e){let n;n="string"==typeof t?this.firestore.collection(t):t;const{ref:i,query:r}=TP(n,e),s=this.schedulers.ngZone.run(()=>i);return new vP(s,r,this)}collectionGroup(t,e){const n=e||(t=>t),i=this.firestore.collectionGroup(t);return new bP(n(i),this)}doc(t){let e;e="string"==typeof t?this.firestore.doc(t):t;const n=this.schedulers.ngZone.run(()=>e);return new yP(n,this)}createId(){return this.firestore.collection("_").doc().id}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(dy.Dh),i.LFG(dy.xv,8),i.LFG(_P,8),i.LFG(xP,8),i.LFG(i.Lbi),i.LFG(i.R0b),i.LFG(wP,8),i.LFG(SP,8),i.LFG(iP,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(dy.Dh),i.LFG(dy.xv,8),i.LFG(_P,8),i.LFG(xP,8),i.LFG(i.Lbi),i.LFG(i.R0b),i.LFG(wP,8),i.LFG(SP,8),i.LFG(iP,8))},token:t,providedIn:"any"}),t})(),EP=(()=>{class t{static enablePersistence(e){return{ngModule:t,providers:[{provide:_P,useValue:!0},{provide:wP,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[CP]}),t})(),AP=(()=>{class t{constructor(t,e,n,r,s){this.userService=t,this.afs=e,this.afAuth=n,this.router=r,this.ngZone=s,this.getLoggedInName=new i.vpe,this.registrado=new i.vpe,this.afAuth.authState.subscribe(t=>{t?(this.userData=t,this.getLoggedInName.emit(t),localStorage.setItem("user",JSON.stringify(this.userData)),this.userService.getById(t.uid).subscribe(e=>{null!=e?r.events.subscribe(()=>{null!=this.loc&&""!=this.loc.path()&&(this.loc.path().startsWith("/event/unsubcribe")||this.router.navigate(["index"]))}):this.router.navigate(["registration",t.uid])})):(localStorage.setItem("user",null),this.getLoggedInName.emit(null))})}googleAuth(){return ua(this,void 0,void 0,function*(){return this.authLogin(new ly.w.auth.GoogleAuthProvider)})}facebookAuth(){return ua(this,void 0,void 0,function*(){return this.authLogin(new ly.w.auth.FacebookAuthProvider)})}authLogin(t){this.afAuth.signInWithRedirect(t),this.afAuth.getRedirectResult().then(t=>(this.setUserData(t.user),t)).catch(t=>{console.error(t)})}signIn(t,e){return this.afAuth.signInWithEmailAndPassword(t,e).then(t=>(this.setUserData(t.user),t)).catch(t=>{window.alert("Los datos ingresados no son correctos")})}getRedirectResult(){return this.afAuth.getRedirectResult()}signUp(t,e){return this.afAuth.createUserWithEmailAndPassword(t,e).then(t=>{this.sendVerificationMail(),this.setUserData(t.user),this.userData=t.user}).catch(t=>{window.alert(t.message)})}editName(t){this.afAuth.currentUser.then(e=>{e.updateProfile({displayName:t}).then(t=>{this.setUserData(t)}).catch(function(t){console.log(t)})},t=>{console.error(t)})}checkProvider(){return ua(this,void 0,void 0,function*(){return yield this.afAuth.currentUser.then(t=>{let e=null;return null!=t&&t.providerData.forEach(function(t){e=t.providerId}),e})})}sendVerificationMail(){this.afAuth.currentUser.then(t=>{null!=t&&t.sendEmailVerification().then(()=>this.router.navigate(["mailVerification"]))})}forgotPassword(t){return this.afAuth.sendPasswordResetEmail(t).then(()=>{window.alert("Password reset email sent, check your inbox.")}).catch(t=>{window.alert(t)})}get isLoggedIn(){return null!==JSON.parse(localStorage.getItem("user"))}get isLogged(){return null!==JSON.parse(localStorage.getItem("user"))}loadUserData(){let t=JSON.parse(localStorage.getItem("user"));null!==t&&(this.userData=t)}setUserData(t,e=!0){const n=this.afs.doc(`users/${t.uid}`),i={uid:t.uid,email:t.email,displayName:t.displayName,photoURL:t.photoURL,emailVerified:t.emailVerified};return this.userData=i,this.getLoggedInName.emit(t),localStorage.setItem("user",JSON.stringify(this.userData)),this.userService.getById(t.uid).subscribe(n=>{null!=n?e&&window.location.reload():this.router.navigate(["registration",t.uid])}),n.set(i,{merge:!0})}signOut(){return this.afAuth.signOut().then(()=>{this.userData=null,localStorage.removeItem("user"),this.router.navigate(["index"])})}meRegistre(t){this.registrado.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(hy),i.Y36(CP),i.Y36(uP),i.Y36(Vs),i.Y36(i.R0b))},t.\u0275dir=i.lG2({type:t,outputs:{getLoggedInName:"getLoggedInName",registrado:"registrado"}}),t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function IP(t,e){1&t&&(i.TgZ(0,"p",22),i._uU(1,"El e-mail es requerido"),i.qZA())}function kP(t,e){1&t&&(i.TgZ(0,"p",22),i._uU(1,"El e-mail ingresado no es v\xe1lido"),i.qZA())}function OP(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,IP,2,0,"p",21),i.YNc(2,kP,2,0,"p",21),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.correo.errors.required&&t.submitted),i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.correo.errors.email&&t.submitted)}}function DP(t,e){1&t&&(i.TgZ(0,"p",22),i._uU(1,"La contrase\xf1a es requerida"),i.qZA())}function NP(t,e){1&t&&(i.TgZ(0,"p",22),i._uU(1,"La contrase\xf1a no es correcta"),i.qZA())}function PP(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,DP,2,0,"p",21),i.YNc(2,NP,2,0,"p",21),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.clave.errors.required&&t.submitted),i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.clave.errors.minlength&&t.submitted)}}let RP=(()=>{class t{constructor(t,e,n){this.formBuilder=t,this.authService=e,this.router=n,this.submitted=!1,this.eventCerrar=new i.vpe,this.a
1FormGroup=this.formBuilder.group({correo:["",[Ta.required,Ta.email]],clave:["",[Ta.required,Ta.minLength(6)]]})}ngOnInit(){this.authService.getRedirectResult().then(function(t){})}googleAuth(){this.authService.googleAuth()}facebookAuth(){this.authService.facebookAuth()}onSubmit(){this.submitted=!0,this.aFormGroup.valid&&this.login()}login(){this.authService.signIn(this.aFormGroup.controls.correo.value,this.aFormGroup.controls.clave.value).then(t=>{this.authService.loadUserData(),null!=t&&(window.location.reload(),this.cerrar())}).catch(t=>{window.alert(t.message)})}clickRegistrate(){this.cerrar(),this.router.navigate(["registration"])}cerrar(){this.eventCerrar.emit()}recuperarPassword(){this.cerrar(),this.router.navigate(["passRecovery"])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Tc),i.Y36(AP),i.Y36(Vs))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-ingreso"]],outputs:{eventCerrar:"eventCerrar"},decls:41,vars:3,consts:[[1,"lgx-contactform",3,"formGroup","ngSubmit"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["id","exampleModalLabel",1,"modal-title","black"],[1,"modal-body"],[1,"row","p-modal"],["type","button",1,"social-gmail",3,"click"],["aria-hidden","true",1,"fab","fa-google"],[1,"or-seperator"],[1,"form-group"],["for","message-text",1,"control-label","text-grey"],["type","text","formControlName","correo","name","correo","id","correo",1,"form-control"],[4,"ngIf"],["type","password","formControlName","clave","name","clave","id","clave",1,"form-control"],[1,"text-center"],[1,"cursor-pointer",3,"click"],["type","submit",1,"col-md-12","col-xs-12","btn-sign","clearfix"],[1,"modal-footer"],["type","button",1,"col-md-12","col-xs-12","btn-registration",3,"click"],["aria-hidden","true",1,"fas","fa-lock"],["style","color:red;font-size:13px;",4,"ngIf"],[2,"color","red","font-size","13px"]],template:function(t,e){1&t&&(i.TgZ(0,"form",0),i.NdJ("ngSubmit",function(){return e.onSubmit()}),i.TgZ(1,"div",1),i.TgZ(2,"button",2),i.NdJ("click",function(){return e.cerrar()}),i.TgZ(3,"span",3),i._uU(4,"\xd7"),i.qZA(),i.qZA(),i.TgZ(5,"h4",4),i._uU(6,"Ingres\xe1 a tu cuenta"),i.qZA(),i.qZA(),i.TgZ(7,"div",5),i.TgZ(8,"div",6),i.TgZ(9,"button",7),i.NdJ("click",function(){return e.googleAuth()}),i.TgZ(10,"span"),i._UZ(11,"i",8),i._uU(12,"con Google"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(13,"div",9),i.TgZ(14,"b"),i._uU(15,"o con tu e-mail"),i.qZA(),i.qZA(),i.TgZ(16,"div",10),i.TgZ(17,"label",11),i._uU(18,"E-mail *"),i.qZA(),i._UZ(19,"input",12),i.YNc(20,OP,3,2,"div",13),i.qZA(),i.TgZ(21,"div",10),i.TgZ(22,"label",11),i._uU(23,"Contrase\xf1a *"),i.qZA(),i._UZ(24,"input",14),i.YNc(25,PP,3,2,"div",13),i.qZA(),i.TgZ(26,"p",15),i.TgZ(27,"a",16),i.NdJ("click",function(){return e.recuperarPassword()}),i._uU(28,"\xbfHas olvidado tu contrase\xf1a?"),i.qZA(),i.qZA(),i.TgZ(29,"div",6),i.TgZ(30,"button",17),i._uU(31,"ingresar"),i.qZA(),i.qZA(),i.TgZ(32,"div",9),i.TgZ(33,"b"),i._uU(34,"O"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(35,"div",18),i.TgZ(36,"p",15),i._uU(37,"\xbfA\xfan no ten\xe9s cuenta?"),i.qZA(),i.TgZ(38,"button",19),i.NdJ("click",function(){return e.clickRegistrate()}),i._UZ(39,"i",20),i._uU(40,"Registrate con tu e-mail "),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.Q6J("formGroup",e.aFormGroup),i.xp6(20),i.Q6J("ngIf",e.aFormGroup.controls.correo.errors),i.xp6(5),i.Q6J("ngIf",e.aFormGroup.controls.clave.errors))},directives:[pc,Ya,yc,ya,Ga,_c,ft],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();const LP=["login"];function MP(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"app-ingreso",1),i.NdJ("eventCerrar",function(){return i.CHM(t),i.oxw().closeModal()}),i.qZA()}}let FP=(()=>{class t{constructor(t){this.modalService=t,this.config={animated:!0,keyboard:!0,backdrop:!0,ignoreBackdropClick:!0}}ngOnInit(){}openModal(){this.modalRef=this.modalService.show(this.login,this.config)}closeModal(){this.modalRef.hide()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(cy))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-ingreso-modal"]],viewQuery:function(t,e){if(1&t&&i.Gf(LP,7),2&t){let t;i.iGM(t=i.CRH())&&(e.login=t.first)}},decls:2,vars:0,consts:[["login",""],[3,"eventCerrar"]],template:function(t,e){1&t&&i.YNc(0,MP,1,0,"ng-template",null,0,i.W1O)},directives:[RP],styles:[""]}),t})();class ZP{constructor(t,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),i=n.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",n.setAttribute("aria-hidden","true"),n.value=t,this._document.body.appendChild(n)}copy(){const t=this._textarea;let e=!1;try{if(t){const n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let qP=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),n=e.copy();return e.destroy(),n}beginCopy(t){return new ZP(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(o))},token:t,providedIn:"root"}),t})(),UP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const VP=new i.OlP("shareButtonsConfig");var jP=(()=>(function(t){t.Anchor="anchor",t.Window="window"}(jP||(jP={})),jP))();function BP(t){return t&&"object"==typeof t&&!Array.isArray(t)}function zP(t,...e){if(!e.length)return t;const n=e.shift();if(BP(t)&&BP(n))for(const i in n)BP(n[i])?(t[i]||Object.assign(t,{[i]:{}}),zP(t[i],n[i])):Object.assign(t,{[i]:n[i]});return zP(t,...e)}const HP={description:t=>t.description?`${t.description}\r\n${t.url}`:t.url},GP={facebook:{type:"facebook",text:"Facebook",ariaLabel:"Share on Facebook",icon:["fab","facebook-f"],color:"#4267B2",share:{desktop:"https://www.facebook.com/sharer/sharer.php?"},params:{url:"u"}},twitter:{type:"twitter",text:"Twitter",ariaLabel:"Share on Twitter",icon:["fab","twitter"],color:"#00acee",share:{desktop:"https://twitter.com/intent/tweet?"},params:{url:"url",description:"text",tags:"hashtags",via:"via"}},linkedin:{type:"linkedin",text:"LinkedIn",ariaLabel:"Share on LinkedIn",icon:["fab","linkedin-in"],color:"#006fa6",share:{desktop:"https://www.linkedin.com/shareArticle?"},params:{url:"url",title:"title",description:"summary"}},pinterest:{type:"pinterest",text:"Pinterest",ariaLabel:"Share on Pinterest",icon:["fab","pinterest-p"],color:"#BD091D",share:{desktop:"https://pinterest.com/pin/create/button/?"},params:{url:"url",description:"description",image:"media"}},reddit:{type:"reddit",text:"Reddit",ariaLabel:"Share on Reddit",icon:["fab","reddit-alien"],color:"#FF4006",share:{desktop:"https://www.reddit.com/submit?"},params:{url:"url",title:"title"}},tumblr:{type:"tumblr",text:"Tumblr",ariaLabel:"Share on Tumblr",icon:["fab","tumblr"],color:"#36465D",share:{desktop:"https://tumblr.com/widgets/share/tool?"},params:{url:"canonicalUrl",description:"caption",tags:"tags"}},mix:{type:"mix",text:"Mix",ariaLabel:"Share on Mix",icon:["fab","mix"],color:"#eb4924",share:{desktop:"https://mix.com/add?"},params:{url:"url"}},viber:{type:"viber",text:"Viber",ariaLabel:"Share on Viber",icon:["fab","viber"],color:"#665ca7",share:{android:"viber:
1//forward?",ios:"viber://forward?"},params:{description:"text"},paramsFunc:HP},vk:{type:"vk",text:"VKontakte",ariaLabel:"Share on VKontakte",icon:["fab","vk"],color:"#4C75A3",share:{desktop:"https://vk.com/share.php?"},params:{url:"url"}},telegram:{type:"telegram",text:"Telegram",ariaLabel:"Share on Telegram",icon:["fab","telegram-plane"],color:"#0088cc",share:{desktop:"https://t.me/share/url?"},params:{url:"url",description:"text"}},messenger:{type:"messenger",text:"Messenger",ariaLabel:"Share on Messenger",icon:["fab","facebook-messenger"],color:"#0080FF",share:{android:"fb-messenger://share/?",ios:"fb-messenger://share/?"},params:{url:"link"}},whatsapp:{type:"whatsapp",text:"WhatsApp",ariaLabel:"Share on WhatsApp",icon:["fab","whatsapp"],color:"#25D366",share:{desktop:"https://web.whatsapp.com/send?",android:"whatsapp://send?",ios:"https://api.whatsapp.com/send?"},params:{description:"text"},paramsFunc:HP},xing:{type:"xing",text:"Xing",ariaLabel:"Share on Xing",icon:["fab","xing"],color:"#006567",share:{desktop:"https://www.xing.com/spi/shares/new?"},params:{url:"url"}},line:{type:"line",text:"Line",ariaLabel:"Share on Line",icon:["fab","line"],color:"#00b900",share:{desktop:"https://social-plugins.line.me/lineit/share?"},params:{url:"url"}},sms:{type:"sms",text:"SMS",ariaLabel:"Share link via SMS",icon:["fas","sms"],color:"#20c16c",share:{desktop:"sms:?",ios:"sms:&"},params:{description:"body"},paramsFunc:HP},email:{type:"email",text:"Email",ariaLabel:"Share link via email",icon:["fas","envelope"],color:"#FF961C",share:{desktop:"mailto:?"},params:{title:"subject",description:"body"},paramsFunc:HP},print:{type:"print",text:"Print",ariaLabel:"Print page",icon:["fas","print"],color:"#765AA2",func:function(){return new Te.y(t=>document.defaultView.print())}},copy:{type:"copy",text:"Copy link",ariaLabel:"Copy link",icon:["fas","link"],color:"#607D8B",data:{text:"Copy link",icon:["fas","link"],successText:"Copied",successIcon:["fas","check"],delay:2e3},func:function({params:t,data:e,clipboard:n,updater:i}){return(0,Se.of)(null).pipe((0,oi.b)(()=>{n.copy(t.url),i.next({icon:e.successIcon,text:e.successText,disabled:!0})}),Wg(e.delay),(0,oi.b)(()=>i.next({icon:e.icon,text:e.text,disabled:!1})),Zn(1))}}};let YP=(()=>{class t{constructor(t,e){this._document=e,this.config={sharerMethod:jP.Anchor,sharerTarget:"_blank",windowObj:this._document.defaultView,windowFuncName:"open",prop:GP,theme:"default",include:[],exclude:[],size:0,autoSetMeta:!0,windowWidth:800,windowHeight:500,moreButtonIcon:"ellipsis-h",lessButtonIcon:"minus",moreButtonAriaLabel:"Show more share buttons",lessButtonAriaLabel:"Show less share buttons"},this.config$=new mn(this.config),t&&this.setConfig(t)}get prop(){return this.config.prop}get windowSize(){return`width=${this.config.windowWidth}, height=${this.config.windowHeight}`}setConfig(t){this.config=zP(this.config,t),this.config$.next(this.config)}addButton(t,e){this.setConfig({prop:{[t]:e}})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(VP,8),i.LFG(o))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QP=(()=>{class t{constructor(t,e,n,r,s,o,a){this._meta=e,this._platform=n,this._clipboard=r,this._share=s,this._cd=o,this._document=a,this._destroyed=new pn.xQ,this._updater=new pn.xQ,this.autoSetMeta=this._share.config.autoSetMeta,this.url=this._share.config.url,this.title=this._share.config.title,this.description=this._share.config.description,this.image=this._share.config.image,this.tags=this._share.config.tags,this.opened=new i.vpe,this.closed=new i.vpe,this._el=t.nativeElement}share(){if(this._platform.isBrowser&&this.shareButton){const t=this.autoSetMeta?this.getParamsFromMetaTags():this.getParamsFromInputs();(this.shareButton.share?this.open(t):this.shareButton.func({params:t,data:this.shareButton.data,clipboard:this._clipboard,updater:this._updater})).pipe(Mc(this._destroyed)).subscribe()}else console.warn(`${this.text} button is not compatible on this Platform`)}ngOnInit(){this._updater.pipe((0,oi.b)(t=>{this.icon=t.icon,this.text=t.text,this._el.style.pointerEvents=t.disabled?"none":"auto",this._cd.markForCheck()}),Mc(this._destroyed)).subscribe()}ngOnChanges(t){this._platform.isBrowser&&(this._shareButtonChanged(t.shareButtonName)&&this._createShareButton(),this._urlChanged(t.url)&&(this.url=function(t,e){if(t){if(/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(t))return t;console.warn(`[ShareButtons]: Sharing link '${t}
1' is invalid!`)}return e}(this.autoSetMeta?this.url||this._getMetaTagContent("og:url"):this.url,this._document.defaultView.location.href)))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createShareButton(){const t=this._share.config.prop[this.shareButtonName];t?(this.shareButton=t,this._el.classList.remove(`sb-${this._buttonClass}`),this._el.classList.add(`sb-${this.shareButtonName}`),this._el.style.setProperty("--button-color",this.shareButton.color),this._buttonClass=this.shareButtonName,this.color=this.shareButton.color,this.text=this.shareButton.text,this.icon=this.shareButton.icon,this._el.setAttribute("aria-label",t.ariaLabel)):console.error(`[ShareButtons]: The share button '${this.shareButtonName}' does not exist!`)}_getMetaTagContent(t){const e=this._meta.getTag(`property="${t}"`);if(e)return e.getAttribute("content");const n=this._meta.getTag(`name="${t}"`);return n?n.getAttribute("content"):void 0}_shareButtonChanged(t){return t&&(t.firstChange||t.previousValue!==t.currentValue)}_urlChanged(t){return!this.url||t&&t.previousValue!==t.currentValue}getParamsFromMetaTags(){return{url:this.url,title:this.title||this._getMetaTagContent("og:title"),description:this.description||this._getMetaTagContent("og:description"),image:this.image||this._getMetaTagContent("og:image"),via:this._share.config.twitterAccount,tags:this.tags}}getParamsFromInputs(){return{url:this.url,title:this.title,description:this.description,image:this.image,tags:this.tags,via:this._share.config.twitterAccount}}open(t){let e;if(e=this._platform.IOS&&this.shareButton.share.ios?this.shareButton.share.ios:this._platform.ANDROID&&this.shareButton.share.android?this.shareButton.share.android:this.shareButton.share.desktop,e){this._finalUrl=e+this._serializeParams(t),this._share.config.debug&&console.log("[DEBUG SHARE BUTTON]: ",this._finalUrl);const n=this.shareButton.target||this._share.config.sharerTarget;switch(this.shareButton.method||this._share.config.sharerMethod){case jP.Anchor:const t=this._document.createElement("a");t.setAttribute("target",n),t.setAttribute("rel","noopener noreferrer"),t.href=this._finalUrl,t.click(),t.remove();break;case jP.Window:const e=this._share.config.windowObj[this._share.config.windowFuncName](this._finalUrl,n,this._share.windowSize);if(this._share.config.windowObj.opener=null,e)return new Te.y(t=>{const n=this._document.defaultView.setInterval(()=>{e.closed&&(this._document.defaultView.clearInterval(n),this.closed.emit(this.shareButtonName),t.next(),t.complete())},200)})}this.opened.emit(this.shareButtonName)}return On.E}_serializeParams(t){return Object.entries(this.shareButton.params).map(([e,n])=>{const i=this.shareButton.paramsFunc?this.shareButton.paramsFunc[e]:null;if(t[e]||i){const r=i?i(t):t[e];return`${n}=${encodeURIComponent(r)}`}return""}).filter(t=>""!==t).join("&")}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(be),i.Y36(Yc),i.Y36(qP),i.Y36(YP),i.Y36(i.sBO),i.Y36(o))},t.\u0275dir=i.lG2({type:t,selectors:[["","shareButton",""]],hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e.share()})},inputs:{shareButtonName:["shareButton","shareButtonName"],autoSetMeta:"autoSetMeta",url:"url",title:"title",description:"description",image:"image",tags:"tags"},outputs:{opened:"opened",closed:"closed"},exportAs:["shareButton"],features:[i.TTD]}),t})(),$P=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:VP,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Qc,UP]]}),t})();function JP(t){return(JP="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 WP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function KP(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function XP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}
1))),i.forEach(function(e){KP(t,e,n[e])})}return t}function tR(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],i=!0,r=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(c){r=!0,s=c}finally{try{!i&&null!=a.return&&a.return()}finally{if(r)throw s}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var eR={},nR={};try{"undefined"!=typeof window&&(eR=window),"undefined"!=typeof document&&(nR=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&performance}catch(fb){}var iR=(eR.navigator||{}).userAgent,rR=void 0===iR?"":iR,sR=eR,oR=nR,aR=!!oR.documentElement&&!!oR.head&&"function"==typeof oR.addEventListener&&"function"==typeof oR.createElement,cR=(~rR.indexOf("MSIE")||rR.indexOf("Trident/"),"___FONT_AWESOME___"),uR="svg-inline--fa",lR=[1,2,3,4,5,6,7,8,9,10],hR=lR.concat([11,12,13,14,15,16,17,18,19,20]),dR={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},fR=(["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",dR.GROUP,dR.SWAP_OPACITY,dR.PRIMARY,dR.SECONDARY].concat(lR.map(function(t){return"".concat(t,"x")})).concat(hR.map(function(t){return"w-".concat(t)})),sR.FontAwesomeConfig||{});oR&&"function"==typeof oR.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=tR(t,2),n=e[1],i=function(t){return""===t||"false"!==t&&("true"===t||t)}(function(t){var e=oR.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(e[0]));null!=i&&(fR[n]=i)});var pR=XP({},{familyPrefix:"fa",replacementClass:uR,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},fR);pR.autoReplaceSvg||(pR.observeMutations=!1);var gR=XP({},pR);sR.FontAwesomeConfig=gR;var mR=sR||{};mR[cR]||(mR[cR]={}),mR[cR].styles||(mR[cR].styles={}),mR[cR].hooks||(mR[cR].hooks={}),mR[cR].shims||(mR[cR].shims=[]);var vR=mR[cR],yR=[];aR&&((oR.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(oR.readyState)||oR.addEventListener("DOMContentLoaded",function t(){oR.removeEventListener("DOMContentLoaded",t),yR.map(function(t){return t()})}));var bR,_R="pending",wR="settled",xR="fulfilled",SR="rejected",TR=function(){},CR="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,ER="undefined"==typeof setImmediate?setTimeout:setImmediate,AR=[];function IR(){for(var t=0;t<AR.length;t++)AR[t][0](AR[t][1]);AR=[],bR=!1}function kR(t,e){AR.push([t,e]),bR||(bR=!0,ER(IR,0))}function OR(t){var e=t.owner,n=e._state,i=e._data,r=t[n],s=t.then;if("function"==typeof r){n=xR;try{i=r(i)}catch(o){RR(s,o)}}DR(s,i)||(n===xR&&NR(s,i),n===SR&&RR(s,i))}function DR(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"===JP(e))){var i=e.then;if("function"==typeof i)return i.call(e,function(i){n||(n=!0,e===i?PR(t,i):NR(t,i))},function(e){n||(n=!0,RR(t,e))}),!0}}catch(r){return n||RR(t,r),!0}return!1}function NR(t,e){(t===e||!DR(t,e))&&PR(t,e)}function PR(t,e){t._state===_R&&(t._state=wR,t._data=e,kR(MR,t))}function RR(t,e){t._state===_R&&(t._state=wR,t._data=e,kR(FR,t))}function LR(t){t._then=t._then.forEach(OR)}function MR(t){t._state=xR,LR(t)}function FR(t){t._state=SR,LR(t),!t._handled&&CR&&global.process.emit("unhandledRejection",t._data,t)}function ZR(t){global.process.emit("rejectionHandled",t)}function qR(t){if("function"!=typeof t)throw new TypeError("Promise resolver "+t+" is not a function");if(!(this instanceof qR))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){RR(e,t)}try{t(function(t){NR(e,t)},n)}catch(i){n(i)}}(t,this)}qR.prototype={constructor:qR,_state:_R,_then:null,_data:void 0,_handled:!1,then:function(t,e){var n={owner:this,then:new this.constructor(TR),fulfilled:t,rejected:e};return(e||t)&&!this._handled&&(this._handled=!0,this._state===SR&&CR&&kR(ZR,this)),this._state===xR||this._state===SR?kR(OR,n):this._then.push(n),n.then},catch:function(t){return this.then(null,t)}},qR.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new qR(function(e,n){var i=[],r=0;function s(t){return r++,function(n){i[t]=n,--r||e(i)}}for(var o,a=0;a<t.length;a++)(o=t[a])&&"function"==typeof o.then?o.then(s(a),n):i[a]=o;r||e(i)})},qR.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.race().");return new qR(function(e,n){for(var i,r=0;r<t.length;r++)(i=t[r])&&"function"==typeof i.then?i.then(e,n):e(i)})},qR.resolve=function(t){return t&&"object"===JP(t)&&t.constructor===qR?t:new qR(function(e){e(t)})}
1,qR.reject=function(t){return new qR(function(e,n){n(t)})};var UR={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function VR(){for(var t=12,e="";t-- >0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function jR(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function BR(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(t[n],";")},"")}function zR(t){return t.size!==UR.size||t.x!==UR.x||t.y!==UR.y||t.rotate!==UR.rotate||t.flipX||t.flipY}function HR(t){var e=t.transform,n=t.iconWidth,i={transform:"translate(".concat(t.containerWidth/2," 256)")},r="translate(".concat(32*e.x,", ").concat(32*e.y,") "),s="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),o="rotate(".concat(e.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(r," ").concat(s," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var GR={x:0,y:0,width:"100%",height:"100%"};function YR(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 QR(t){return"g"===t.tag?t.children:[t]}function $R(t){var e=t.icons,n=e.main,i=e.mask,r=t.prefix,s=t.iconName,o=t.transform,a=t.symbol,c=t.title,u=t.maskId,l=t.titleId,h=t.extra,d=t.watchable,f=void 0!==d&&d,p=i.found?i:n,g=p.width,m=p.height,v="fak"===r,y=v?"":"fa-w-".concat(Math.ceil(g/m*16)),b=[gR.replacementClass,s?"".concat(gR.familyPrefix,"-").concat(s):"",y].filter(function(t){return-1===h.classes.indexOf(t)}).filter(function(t){return""!==t||!!t}).concat(h.classes).join(" "),_={children:[],attributes:XP({},h.attributes,{"data-prefix":r,"data-icon":s,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(m)})},w=v&&!~h.classes.indexOf("fa-fw")?{width:"".concat(g/m*16*.0625,"em")}:{};f&&(_.attributes["data-fa-i2svg"]=""),c&&_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(l||VR())},children:[c]});var x=XP({},_,{prefix:r,iconName:s,main:n,mask:i,maskId:u,transform:o,symbol:a,styles:XP({},w,h.styles)}),S=i.found&&n.found?function(t){var e=t.children,n=t.attributes,i=t.main,r=t.mask,s=t.maskId,o=i.icon,a=r.icon,c=HR({transform:t.transform,containerWidth:r.width,iconWidth:i.width}),u={tag:"rect",attributes:XP({},GR,{fill:"white"})},l=o.children?{children:o.children.map(YR)}:{},h={tag:"g",attributes:XP({},c.inner),children:[YR(XP({tag:o.tag,attributes:XP({},o.attributes,c.path)},l))]},d={tag:"g",attributes:XP({},c.outer),children:[h]},f="mask-".concat(s||VR()),p="clip-".concat(s||VR()),g={tag:"mask",attributes:XP({},GR,{id:f,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[u,d]},m={tag:"defs",children:[{tag:"clipPath",attributes:{id:p},children:QR(a)},g]};return e.push(m,{tag:"rect",attributes:XP({fill:"currentColor","clip-path":"url(#".concat(p,")"),mask:"url(#".concat(f,")")},GR)}),{children:e,attributes:n}}(x):function(t){var e=t.children,n=t.attributes,i=t.main,r=t.transform,s=BR(t.styles);if(s.length>0&&(n.style=s),zR(r)){var o=HR({transform:r,containerWidth:i.width,iconWidth:i.width});e.push({tag:"g",attributes:XP({},o.outer),children:[{tag:"g",attributes:XP({},o.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:XP({},i.icon.attributes,o.path)}]}]})}else e.push(i.icon);return{children:e,attributes:n}}(x),T=S.attributes;return x.children=S.children,x.attributes=T,a?function(t){var e=t.iconName,n=t.children,i=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:XP({},t.attributes,{id:!0===i?"".concat(t.prefix,"-").concat(gR.familyPrefix,"-").concat(e):i}),children:n}]}]}(x):function(t){var e=t.children,n=t.main,i=t.mask,r=t.attributes,s=t.styles,o=t.transform;if(zR(o)&&n.found&&!i.found){var a={x:n.width/n.height/2,y:.5};r.style=BR(XP({},s,{"transform-origin":"".concat(a.x+o.x/16,"em ").concat(a.y+o.y/16,"em")}))}return[{tag:"svg",attributes:r,children:e}]}(x)}var JR=function(t,e,n,i){var r,s,o,a=Object.keys(t),c=a.length,u=void 0!==i?function(t,e){return function(n,i,r,s){return t.call(e,n,i,r,s)}}(e,i):e;for(void 0===n?(r=1,o=t[a[0]]):(r=0,o=n);r<c;r++)o=u(o,t[s=a[r]],s,t);return o};function WR(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.skipHooks,r=void 0!==i&&i,s=Object.keys(e).reduce(function(t,n){var i=e[n];return i.icon?t[i.iconName]=i.icon:t[n]=i,t},{});"function"!=typeof vR.hooks.addPack||r?vR.styles[t]=XP({},vR.styles[t]||{},s):vR.hooks.addPack(t,s),"fas"===t&&WR("fa",e)}var KR=vR.styles,XR=vR.shims,tL=function(){var t=function(t){return JR(KR,function(e,n,i){return e[i]=JR(n,t,{}),e},{})};t(function(t,e,n){return e[3]&&(t[e[3]]=n),t}),t(function(t,e,n){var i=e[2];
1return t[n]=n,i.forEach(function(e){t[e]=n}),t});var e="far"in KR;JR(XR,function(t,n){var i=n[1];return"far"===i&&!e&&(i="fas"),t[n[0]]={prefix:i,iconName:n[2]},t},{})};function eL(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function nL(t){var e=t.tag,n=t.attributes,i=void 0===n?{}:n,r=t.children,s=void 0===r?[]:r;return"string"==typeof t?jR(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(jR(t[n]),'" ')},"").trim()}(i),">").concat(s.map(nL).join(""),"</").concat(e,">")}tL();function iL(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}(iL.prototype=Object.create(Error.prototype)).constructor=iL;var rL={fill:"currentColor"},sL={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},oL=(XP({},rL,{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"}),XP({},sL,{attributeName:"opacity"}));function aL(t){var e=t[0],n=t[1],i=tR(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(i)?{tag:"g",attributes:{class:"".concat(gR.familyPrefix,"-").concat(dR.GROUP)},children:[{tag:"path",attributes:{class:"".concat(gR.familyPrefix,"-").concat(dR.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(gR.familyPrefix,"-").concat(dR.PRIMARY),fill:"currentColor",d:i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:i}}}}function cL(){gR.autoAddCss&&!dL&&(function(t){if(t&&aR){var e=oR.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=oR.head.childNodes,i=null,r=n.length-1;r>-1;r--){var s=n[r],o=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=s)}oR.head.insertBefore(e,i)}}(function(){var t="fa",e=uR,n=gR.familyPrefix,i=gR.replacementClass,r='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||i!==e){var s=new RegExp("\\.".concat(t,"\\-"),"g"),o=new RegExp("\\--".concat(t,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");r=r.replace(s,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(a,".".concat(i))}return r}()),dL=!0)}function uL(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return nL(t)})}}),Object.defineProperty(t,"node",{get:function(){if(aR){var e=oR.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function lL(t){var e=t.prefix,n=void 0===e?"fa":e,i=t.iconName;if(i)return eL(hL.definitions,n,i)||eL(vR.styles,n,i)}XP({},rL,{cx:"256",cy:"364",r:"28"}),XP({},sL,{attributeName:"r",values:"28;14;28;28;14;28;"}),XP({},oL,{values:"1;0;1;1;0;1;"}),XP({},rL,{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"}),XP({},oL,{values:"1;0;0;0;0;1;"}),XP({},rL,{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"}),XP({},oL,{values:"0;0;1;1;0;0;"});var hL=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={}}return function(t,e,n){e&&WP(t.prototype,e)}
1(t,[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach(function(e){t.definitions[e]=XP({},t.definitions[e]||{},r[e]),WR(e,r[e]),tL()})}},{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 i=n[e],r=i.prefix,s=i.iconName,o=i.icon;t[r]||(t[r]={}),t[r][s]=o}),t}}]),t}()),dL=!1,fL=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("-"),i=n[0],r=n.slice(1).join("-");if(i&&"h"===r)return t.flipX=!0,t;if(i&&"v"===r)return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(i){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r}return t},e):e}(t)},pL=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(e||{}).icon?e:lL(e||{}),r=n.mask;return r&&(r=(r||{}).icon?r:lL(r||{})),t(i,XP({},n,{mask:r}))}}(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?UR:n,r=e.symbol,s=void 0!==r&&r,o=e.mask,a=void 0===o?null:o,c=e.maskId,u=void 0===c?null:c,l=e.title,h=void 0===l?null:l,d=e.titleId,f=void 0===d?null:d,p=e.classes,g=void 0===p?[]:p,m=e.attributes,v=void 0===m?{}:m,y=e.styles,b=void 0===y?{}:y;if(t){var _=t.prefix,w=t.iconName,x=t.icon;return uL(XP({type:"icon"},t),function(){return cL(),gR.autoA11y&&(h?v["aria-labelledby"]="".concat(gR.replacementClass,"-title-").concat(f||VR()):(v["aria-hidden"]="true",v.focusable="false")),$R({icons:{main:aL(x),mask:a?aL(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:w,transform:XP({},UR,i),symbol:s,title:h,maskId:u,titleId:f,extra:{attributes:v,styles:b,classes:g}})})}});let gL=(()=>{let t=class{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),mL=(()=>{let t=class{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=(0,i.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const vL=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 yL=(()=>{let t=class{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=i.lG2({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[i.TTD]}),aa([(0,i.IIB)()],t.prototype,"stackItemSize",void 0),aa([(0,i.IIB)()],t.prototype,"size",void 0),t})(),bL=(()=>{let t=class{constructor(t,e,n,i){this.sanitizer=t,this.config=e,this.iconLibrary=n,this.stackItem=i,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)=>(t=>void 0!==t.prefix&&void 0!==t.iconName)(t)?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:e,iconName:t}:void 0)(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 i=lL(e);if(null!=i){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 i}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?fL(this.transform):this.transform;return{title:this.title,transform:e,classes:[...vL(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=pL(t,e);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))}};return t.\u0275fac=function(e){return new(e||t)(i.Y36(fe),i.Y36(gL),i.Y36(mL),i.Y36(yL,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,e){2&t&&(i.Ikx("innerHTML",e.renderedIconHTML,i.oJD),i.uIk("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:[i.TTD],decls:0,vars:0,template:function(t,e){},encapsulation:2}),aa([(0,i.IIB)()],t.prototype,"icon",void 0),aa([(0,i.IIB)()],t.prototype,"title",void 0),aa([(0,i.IIB)()],t.prototype,"spin",void 0),aa([(0,i.IIB)()],t.prototype,"pulse",void 0),aa([(0,i.IIB)()],t.prototype,"mask",void 0),aa([(0,i.IIB)()],t.prototype,"styles",void 0),aa([(0,i.IIB)()],t.prototype,"flip",void 0),aa([(0,i.IIB)()],t.prototype,"size",void 0),aa([(0,i.IIB)()],t.prototype,"pull",void 0),aa([(0,i.IIB)()],t.prototype,"border",void 0),aa([(0,i.IIB)()],t.prototype,"inverse",void 0),aa([(0,i.IIB)()],t.prototype,"symbol",void 0),aa([(0,i.IIB)()],t.prototype,"rotate",void 0),aa([(0,i.IIB)()],t.prototype,"fixedWidth",void 0),aa([(0,i.IIB)()],t.prototype,"classes",void 0),aa([(0,i.IIB)()],t.prototype,"transform",void 0),aa([(0,i.IIB)()],t.prototype,"a11yRole",void 0),aa([(0,i.pfw)("innerHTML")],t.prototype,"renderedIconHTML",void 0),t=aa([ca(3,(0,i.FiY)())],t),t})(),_L=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();function wL(t,e){if(1&t&&(i.TgZ(0,"div",6),i._UZ(1,"fa-icon",7),i.qZA()),2&t){const t=i.oxw(2),e=i.MAs(1);i.xp6(1),i.Q6J("icon",t.icon||e.icon)("fixedWidth",!0)}}function xL(t,e){if(1&t&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&t){const t=i.oxw(2),e=i.MAs(1);i.xp6(1),i.hij(" ",t.text||e.text," ")}}function SL(t,e){if(1&t&&(i.TgZ(0,"div",3),i.YNc(1,wL,2,2,"div",4),i.YNc(2,xL,2,1,"div",5),i.qZA()),2&t){const t=i.oxw(),e=i.MAs(1);i.xp6(1),i.Q6J("ngIf",t.showIcon&&e.icon),i.xp6(1),i.Q6J("ngIf",t.showText)}}let TL=(()=>{class t{constructor(t){this._share=t,this.showIcon=!0,this.showText=!1,this.size=this._share.config.size,this.theme=this._share.config.theme,this.opened=new i.vpe,this.closed=new i.vpe}get buttonClass(){return`sb-button sb-${this.theme}`}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(YP))},t.\u0275cmp=i.Xpm({type:t,selectors:[["share-button"]],hostVars:2,hostBindings:function(t,e){2&t&&i.Tol(e.buttonClass)},inputs:{button:"button",url:"url",title:"title",description:"description",image:"image",tags:"tags",autoSetMeta:"autoSetMeta",showIcon:"showIcon",showText:"showText",text:"text",icon:"icon",size:"size",theme:"theme",disabled:"disabled"},outputs:{opened:"opened",closed:"closed"},decls:3,vars:15,consts:[["type","button",1,"sb-wrapper",3,"shareButton","url","image","title","description","tags","autoSetMeta","disabled","opened","closed"],["btn","shareButton"],["class","sb-content",4,"ngIf"],[1,"sb-content"],["class","sb-icon",4,"ngIf"],["class","sb-text",4,"ngIf"],[1,"sb-icon"],[3,"icon","fixedWidth"],[1,"sb-text"]],template:function(t,e){if(1&t&&(i.TgZ(0,"button",0,1),i.NdJ("opened",function(t){return e.opened.emit(t)})("closed",function(t){return e.closed.emit(t)}),i.YNc(2,SL,3,2,"div",2),i.qZA()),2&t){const t=i.MAs(1);i.Udp("font-size",14*(1+e.size/20),"px"),i.ekj("sb-show-icon",e.showIcon)("sb-show-text",e.showText),i.Q6J("shareButton",e.button)("url",e.url)("image",e.image)("title",e.title)("description",e.description)("tags",e.tags)("autoSetMeta",e.autoSetMeta)("disabled",e.disabled),i.xp6(2),i.Q6J("ngIf",t)}},directives:[QP,ft,bL],styles:["[_nghost-%COMP%]{--sb-margin: .3125em}"],changeDetection:0}),t})(),CL=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:VP,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[$P,_L,Pt],$P,_L]}),t})();function EL(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"share-button",3),i.NdJ("opened",function(e){return i.CHM(t),i.oxw(2).opened.emit(e)})("closed",function(e){return i.CHM(t),i.oxw(2).closed.emit(e)}),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(2);i.Q6J("button",t)("theme",n.theme)("url",n.url)("title",n.title)("description",n.description)("image",n.image)("tags",n.tags)("autoSetMeta",n.autoSetMeta)("showIcon",n.showIcon)("showText",n.showText)("size",n.size)("disabled",n.disabled)}}function AL(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"expand-button",4),i.NdJ("toggle",function(e){return i.CHM(t),i.oxw(2).updateState({expanded:e})}),i.qZA()}if(2&t){const t=i.oxw().$implicit,e=i.oxw();i.Gre("sb-button sb-",e.theme,""),i.Q6J("expanded",t.expanded)("moreIcon",t.moreIcon)("lessIcon",t.lessIcon)("size",14*(1+e.size/20))("moreAriaLabel",t.moreAriaLabel)("lessAriaLabel",t.lessAriaLabel)}}function IL(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,EL,1,12,"share-button",1),i.YNc(2,AL,1,9,"expand-button",2),i.qZA()),2&t){const t=e.$implicit,n=i.oxw();i.Gre("sb-group sb-",n.theme,""),i.xp6(1),i.Q6J("ngForOf",t.selectedButtons),i.xp6(1),i.Q6J("ngIf",t.shownCount<t.userButtons.length)}}let kL=(()=>{class t{constructor(t){this.toggle=new i.vpe,t.nativeElement.style.setProperty("--button-color","#FF6651")}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq))},t.\u0275cmp=i.Xpm({type:t,selectors:[["expand-button"]],inputs:{moreIcon:"moreIcon",lessIcon:"lessIcon",expanded:"expanded",size:"size",moreAriaLabel:"moreAriaLabel",lessAriaLabel:"lessAriaLabel"},outputs:{toggle:"toggle"},decls:4,vars:4,consts:[[1,"sb-wrapper","sb-expand","sb-show-icon",3,"click"],[1,"sb-content"],[1,"sb-icon"],[3,"icon"]],template:function(t,e){1&t&&(i.TgZ(0,"button",0),i.NdJ("
1click",function(){return e.toggle.emit(!e.expanded)}),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i._UZ(3,"fa-icon",3),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.Udp("font-size",e.size,"px"),i.uIk("aria-label",e.expanded?e.lessAriaLabel:e.moreAriaLabel),i.xp6(3),i.Q6J("icon",e.expanded?e.lessIcon:e.moreIcon))},directives:[bL],encapsulation:2,changeDetection:0}),t})(),OL=(()=>{class t{constructor(t){this._share=t,this._state$=new mn({includedButtons:[],excludedButtons:[],userButtons:[],selectedButtons:[],expanded:!0,shownCount:Object.keys(GP).length}),this._configSub$=ci.w.EMPTY,this.theme=this._share.config.theme,this.showIcon=!0,this.showText=!1,this.size=0,this.opened=new i.vpe,this.closed=new i.vpe}ngOnInit(){this.state$=this._state$.pipe((0,De.U)(t=>{const e=t.includedButtons&&t.includedButtons.length?t.includedButtons:t.userButtons,n=t.excludedButtons?e.filter(e=>t.excludedButtons.indexOf(e)<0):e,i=n.slice(0,t.expanded?n.length:t.shownCount);return{userButtons:n,selectedButtons:i,expanded:t.expanded,shownCount:t.shownCount,moreIcon:t.moreIcon,lessIcon:t.lessIcon,moreAriaLabel:t.moreAriaLabel,lessAriaLabel:t.lessAriaLabel}})),this._configSub$=this._share.config$.subscribe(t=>{const e=(t.include.length?t.include:Object.keys(GP)).filter(e=>t.exclude.indexOf(e)<0);this.updateState({userButtons:e,expanded:!1,moreIcon:t.moreButtonIcon,lessIcon:t.lessButtonIcon,moreAriaLabel:t.moreButtonAriaLabel,lessAriaLabel:t.lessButtonAriaLabel})})}ngOnChanges(t){(t.include&&t.include.currentValue!==t.include.previousValue||t.exclude&&t.exclude.currentValue!==t.exclude.previousValue||t.show&&t.show.currentValue!==t.show.previousValue)&&this.updateState({includedButtons:this.include,excludedButtons:this.exclude,shownCount:this.show})}ngOnDestroy(){this._configSub$.unsubscribe(),this._state$.complete()}updateState(t){this._state$.next(Object.assign(Object.assign({},this._state$.value),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(YP))},t.\u0275cmp=i.Xpm({type:t,selectors:[["share-buttons"]],inputs:{theme:"theme",include:"include",exclude:"exclude",show:"show",url:"url",title:"title",description:"description",image:"image",tags:"tags",autoSetMeta:"autoSetMeta",showIcon:"showIcon",showText:"showText",size:"size",disabled:"disabled"},outputs:{opened:"opened",closed:"closed"},features:[i.TTD],decls:2,vars:3,consts:[[3,"class",4,"ngIf"],[3,"button","theme","url","title","description","image","tags","autoSetMeta","showIcon","showText","size","disabled","opened","closed",4,"ngFor","ngForOf"],[3,"class","expanded","moreIcon","lessIcon","size","moreAriaLabel","lessAriaLabel","toggle",4,"ngIf"],[3,"button","theme","url","title","description","image","tags","autoSetMeta","showIcon","showText","size","disabled","opened","closed"],[3,"expanded","moreIcon","lessIcon","size","moreAriaLabel","lessAriaLabel","toggle"]],template:function(t,e){1&t&&(i.YNc(0,IL,3,5,"div",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.state$))},directives:[ft,ht,TL,kL],pipes:[At],styles:["[_nghost-%COMP%]{display:inherit;--sb-margin: .3125em}"],changeDetection:0}),t})(),DL=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:VP,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[CL,Pt],CL]}),t})(),NL=(()=>{class t{constructor(t){this.router=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Vs))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-share-redes"]],inputs:{image:"image"},decls:3,vars:0,consts:[["show","5","image","image"]],template:function(t,e){1&t&&(i._UZ(0,"hr"),i._UZ(1,"share-buttons",0),i._UZ(2,"hr"))},directives:[OL],styles:['@import"https://fonts.googleapis.com/css?family=Spectral+SC:700";body[_ngcontent-%COMP%]{background-color:#f9f9f9;font-family:"Spectral SC",serif;margin:0}h1[_ngcontent-%COMP%]{color:#1e90ff;text-align:center}h3[_ngcontent-%COMP%]{text-align:center;background-color:#ededed;padding:0;margin-bottom:1em}h4[_ngcontent-%COMP%]{margin-top:.5em}ul[_ngcontent-%COMP%]{padding:0;margin:0;display:flex;list-style-type:none;background-color:#1e90ff}li[_ngcontent-%COMP%]{flex:1;background-color:#1e90ff;margin:0 1em;overflow:hidden}a[_ngcontent-%COMP%]{box-sizing:border-box;text-decoration:none;padding:.3em;display:inline-block;text-align:center;width:100%;height:100%;color:#fff;font-weight:bold;transition:background-color ease-in-out .2s}.active[_ngcontent-%COMP%]{background-color:#00000040}']}),t})();function PL(t,e){if(1&t){const t=i.EpF();
1i.TgZ(0,"button",3),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).clickInscribime()}),i._uU(1),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("disabled",t.estoyInscripto),i.xp6(1),i.Oqu(t.estoyInscripto?"inscripto":"inscribirme")}}function RL(t,e){if(1&t&&(i.TgZ(0,"div",1),i.YNc(1,PL,2,2,"button",2),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngIf",null!=t.userCheck)}}let LL=(()=>{class t{constructor(t,e,n,r){this.router=t,this.authService=e,this.service=n,this.userService=r,this.cancel=new i.vpe,this.estoyInscripto=!1,this.allowSubscriptions=!1,this.userCheck=null}ngOnInit(){this.allowSubscriptions=this.evento.allowSubscriptions,this.authService.isLogged?(this.authService.loadUserData(),this.loadUserBack(this.authService.userData.uid)):this.authService.afAuth.authState.subscribe(t=>{null!=t?(this.authService.setUserData(t,!1),this.loadUserBack(this.authService.userData.uid),this.userCheck=!0):this.userCheck=!1})}loadUserBack(t){null!=t&&this.userService.getById(t).subscribe(t=>{this.user=t,this.estoyRegistrado=null!=t,this.service.getInscripciones(this.user.id).subscribe(t=>{null!=t.find(t=>t.id==this.evento.id)&&(this.estoyInscripto=!0),this.userCheck=!0})})}clickInscribime(){this.authService.isLogged&&this.estoyRegistrado?this.router.navigate(["/inscription",this.evento.id]):this.authService.isLogged?this.router.navigate(["registration",this.authService.userData.uid]):this.ingresoModal.openModal()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Vs),i.Y36(AP),i.Y36(Mo),i.Y36(hy))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-event-inscribime"]],viewQuery:function(t,e){if(1&t&&i.Gf(FP,7),2&t){let t;i.iGM(t=i.CRH())&&(e.ingresoModal=t.first)}},inputs:{evento:"evento"},outputs:{cancel:"cancel"},decls:2,vars:1,consts:[["class","row text-center",4,"ngIf"],[1,"row","text-center"],["class","enroll",3,"disabled","click",4,"ngIf"],[1,"enroll",3,"disabled","click"]],template:function(t,e){1&t&&(i.YNc(0,RL,2,1,"div",0),i._UZ(1,"app-ingreso-modal")),2&t&&i.Q6J("ngIf",e.allowSubscriptions)},directives:[ft,FP],styles:[""]}),t})();function ML(t,e){if(1&t&&(i.TgZ(0,"p",19),i._UZ(1,"i",20),i._uU(2),i.qZA()),2&t){const t=i.oxw(3);i.xp6(2),i.hij("",t.getTextoLugar(t.evento)," ")}}function FL(t,e){if(1&t&&(i.TgZ(0,"p",19),i._UZ(1,"i",20),i._uU(2),i.qZA()),2&t){const t=i.oxw(3);i.xp6(2),i.hij("",t.getTextoMedio(t.evento)," ")}}function ZL(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,ML,3,1,"p",12),i.YNc(2,FL,3,1,"p",12),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",1==t.evento.eventAttendTypeId&&null!=t.evento.locationId),i.xp6(1),i.Q6J("ngIf",1!=t.evento.eventAttendTypeId&&null!=t.evento.medium)}}function qL(t,e){if(1&t&&(i.TgZ(0,"p",19),i._UZ(1,"i",21),i._uU(2),i.ALo(3,"date"),i._uU(4),i.ALo(5,"date"),i.qZA()),2&t){const t=i.oxw(3);i.xp6(2),i.hij(" ",i.xi3(3,4,t.evento.startDate,"longDate")," "),i.xp6(2),i.lnq(" al ",i.xi3(5,7,t.evento.endDate,"longDate")," ",t.getObservacion(t.evento)," ",t.getTextoHoras(t.evento)," ")}}function UL(t,e){if(1&t&&(i.TgZ(0,"p",19),i._UZ(1,"i",21),i._uU(2),i.ALo(3,"date"),i.qZA()),2&t){const t=i.oxw(3);i.xp6(2),i.AsE("",i.xi3(3,2,t.evento.startDate,"longDate")," ",t.getTextoHoras(t.evento)," ")}}function VL(t,e){if(1&t&&(i.TgZ(0,"div",19),i.YNc(1,qL,6,10,"p",12),i.YNc(2,UL,4,5,"p",12),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.evento.startDate!=t.evento.endDate),i.xp6(1),i.Q6J("ngIf",t.evento.startDate==t.evento.endDate)}}function jL(t,e){if(1&t&&i._UZ(0,"p",22),2&t){const t=i.oxw(2);i.Q6J("innerHTML",t.urlSafe,i.oJD)}}function BL(t,e){if(1&t&&i._UZ(0,"app-video",23),2&t){const t=i.oxw(2);i.Q6J("urlEvento",t.evento.videoURL)("videoEvento",!0)}}function zL(t,e){if(1&t&&i._UZ(0,"app-gallery",16),2&t){const t=i.oxw(3);i.Q6J("evento",t.evento)}}function HL(t,e){if(1&t&&(i.TgZ(0,"div",1),i.YNc(1,zL,1,1,"app-gallery",24),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",null!=t.evento)}}function GL(t,e){if(1&t&&i._UZ(0,"app-event-sugerido",25),2&t){const t=i.oxw(2);i.Q6J("seccion",t.nameSection)("idEvento",t.evento.id)}}function YL(t,e){if(1&t&&(i.TgZ(0,"div",1),i.TgZ(1,"div",2),i.TgZ(2,"div",3),i.TgZ(3,"div",4),i.TgZ(4,"div",5),i._UZ(5,"img",6),i.qZA(),i.qZA(),i.TgZ(6,"div",7),i._UZ(7,"app-share-redes",8),i.qZA(),i.qZA(),i.TgZ(8,"div",9),i.TgZ(9,"div",4),i.TgZ(10,"p",10),i._uU(11),i.ALo(12,"uppercase"),i.qZA(),i.TgZ(13,"h2"),i._uU(14),i.ALo(15,"uppercase"),i.qZA(),i.YNc(16,ZL,3,2,"div",11),i.YNc(17,VL,3,2,"div",12),i.TgZ(18,"div",13),i._uU(19),i.qZA(),i.YNc(20,jL,1,1,"p",14),i.TgZ(21,"div",2),i.TgZ(22,"div",15),i.TgZ(23,"div"),i._UZ(24,"app-share-redes",8),i.qZA(),i.qZA(),i._UZ(25,"app-event-inscribime",16),i.qZA(),i.qZA(),i.qZA(),i.TgZ(26,"div",2),i.TgZ(27,"div",2),i.YNc(28,BL,1,2,"app-video",17),i.qZA(),i.YNc(29,HL,2,1,"div",0),i.TgZ(30,"div"),i.YNc(31,GL,1,2,"app-event-sugerido",18),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(5),i.s9C("src",t.evento.url,i.LSH),i.xp6(2),i.Q6J("image",t.evento.url),i.xp6(4),i.Oqu(i.lcZ(12,16,t.evento.expositor)),i.xp6(2),i.Gre("",t.getColor()," title-eshort animated fadeInUp"),i.xp6(1),i.hij(" ",i.lcZ(15,18,t.evento.title)," "),i.xp6(2),i.Q6J("ngIf",null!=t.evento.eventAttendTypeId),i.xp6(1),i.Q6J("ngIf",null!=t.evento.startDate),i.xp6(2),i.hij(" ",t.evento.subtitle," "),i.xp6(1),i.Q6J("ngIf",null!=t.evento.content),i.xp6(4),i.Q6J("image",t.evento.url),i.xp6(1),i.Q6J("evento",t.evento),i.xp6(3),i.Q6J("ngIf",null!=t.evento&&null!=t.evento.videoURL),i.xp6(1),i.Q6J("ngIf",null!=t.evento&&0==t.getGaleria()),i.xp6(2),i.Q6J("ngIf",null!=t.nameSection)}}let QL=(()=>{class t{constructor(t,e,n,i,r){this.fs=t,this.service=e,this.route=n,this.sanitizer=i,this.router=r,this.evento=null}ngOnInit(){this.route.params.subscribe(t=>{this.evento=null,this.service.getById(t.id).subscribe(t=>
1{if(t){if(this.evento=t,this.fs.setInfoEvent(this.evento,lo.tipoImagen.home),null!=this.evento.sectionId&&(this.nameSection=this.evento.sectionId&&null!=this.evento.sectionId.name?this.evento.sectionId.name:null),null!=this.evento.content){let t=this.evento.content;t=t.split("&lt;").join("<");let e=t.split("&gt;").join(">");e=e.replace("<p>","").replace("</p>",""),e=e.split("&quot;").join(""),this.urlSafe=this.sanitizer.bypassSecurityTrustHtml(e)}}else this.router.navigate(["index"])})})}getColor(){return null!=this.nameSection?this.fs.getColor(this.nameSection):""}getTextoHoras(t){return this.fs.getTextoHoras(t)}getTextoLugar(t){return this.fs.getTextoLugar(t)}getTextoMedio(t){return this.fs.getTextoMedio(t)}getTextoFechaFin(t){return this.fs.getTextoFechaFin(t)}getTextoFechaInicio(t){return this.fs.getTextoFechaInicio(t)}getObservacion(t){return this.fs.getTextoObservacion(t)}getGaleria(){var t=0;return null!=this.evento.resourcesRefId&&null!=this.evento.resourcesRefId.resources&&(t=this.evento.resourcesRefId.resources.filter(t=>t.type.includes(lo.tipoImagen.galeria)).length),0==t}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Fo),i.Y36(Mo),i.Y36(br),i.Y36(fe),i.Y36(Vs))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-event"]],viewQuery:function(t,e){if(1&t&&(i.Gf(Bg,5),i.Gf(yv,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.eventoSugerido=t.first),i.iGM(t=i.CRH())&&(e.galeria=t.first)}},decls:2,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-md-6","float-right"],[1,"short-event"],[1,"content-media"],["alt","",1,"img-responsive",3,"src"],[1,"col-md-12","text-center","redesMed"],[3,"image"],[1,"col-md-6"],[1,"animated","fadeInUp"],[4,"ngIf"],["class","subtitle-event",4,"ngIf"],[1,"text-left","description-slider","animated","fadeInUp"],["class","description-short animated fadeInUp",3,"innerHTML",4,"ngIf"],[1,"col-md-12","text-center","redesSmall"],[3,"evento"],[3,"urlEvento","videoEvento",4,"ngIf"],[3,"seccion","idEvento",4,"ngIf"],[1,"subtitle-event"],[1,"fas","fa-map-marker-alt","icons"],[1,"fas","fa-calendar-alt","icons"],[1,"description-short","animated","fadeInUp",3,"innerHTML"],[3,"urlEvento","videoEvento"],[3,"evento",4,"ngIf"],[3,"seccion","idEvento"]],template:function(t,e){1&t&&(i.YNc(0,YL,32,20,"div",0),i._UZ(1,"app-ingreso-modal")),2&t&&i.Q6J("ngIf",null!=e.evento)},directives:[ft,FP,NL,LL,Wo,yv,Bg],pipes:[kt,Ot],styles:['.float-right[_ngcontent-%COMP%]{float:right!important}.break[_ngcontent-%COMP%]{word-break:break-all}.subtitle-event[_ngcontent-%COMP%]{font-size:1.1em;line-height:24px;font-weight:500;color:#555;padding-bottom:0;font-family:"Nunito","Arial","Helvetica"!important}.redesMed[_ngcontent-%COMP%]{display:block}.redesSmall[_ngcontent-%COMP%]{display:none}@media (max-width: 767px){.title-eshort[_ngcontent-%COMP%]{font-size:30px;line-height:40px;font-weight:900;transition:.5s}.redesMed[_ngcontent-%COMP%]{display:none}.redesSmall[_ngcontent-%COMP%]{display:block}}@media (min-width: 1200px) and (max-width: 1400px){.img-height[_ngcontent-%COMP%]{min-height:200px;max-height:200px}}']}),t})();const $L=new i.OlP("config"),JL=new i.OlP("NEW_CONFIG"),WL=new i.OlP("INITIAL_CONFIG"),KL={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},XL=["Hh:m0:s0","Hh:m0","m0:s0"],tM=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let eM=(()=>{class t{constructor(t){this._config=t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(t,e,n,i)=>{const r=t.split(n),s=r.length>1?`${n}${r[1]}`:"";let o=r[0];const a=this.separatorLimit.replace(/\s/g,"");a&&+a&&(o="-"===o[0]?`-${o.slice(1,o.length).slice(0,a.length)}`:o.slice(0,a.length));const c=/(\d+)(\d{3})/;for(;c.test(o);)o=o.replace(c,"$1"+e+"$2");return void 0===i?o+s:0===i?o:o+s.substr(0,i+1)},this.percentage=t=>Number(t)>
1=0&&Number(t)<=100,this.getPrecision=t=>{const e=t.split(".");return e.length>1?Number(e[e.length-1]):1/0},this.checkInputPrecision=(t,e,n)=>{if(e<1/0){const i=new RegExp(this._charToRegExpExpression(n)+`\\d{${e}}.*$`),r=t.match(i);(r&&r[0].length-1>e||0===e&&t.endsWith(n))&&(t=t.substring(0,t.length-1))}return t},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers}applyMaskWithPattern(t,e){const[n,i]=e;return this.customPattern=i,this.applyMask(t,n)}applyMask(t,e,n=0,i=(()=>{})){if(null==t||void 0===e)return"";let r=0,s="",o=!1,a=!1,c=1,u=!1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&t.endsWith(this.suffix)&&(t=t.slice(0,t.length-this.suffix.length));const l=t.toString().split("");if("IP"===e&&(this.ipError=l.filter(t=>"."===t).length<3&&l.length<7,e="099.099.099.099"),e.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/]/)){t=this._stripToDecimal(t);const n=this.getPrecision(e);t=this.checkInputPrecision(t,n,".")}t.indexOf(".")>0&&!this.percentage(t.substring(0,t.indexOf(".")))&&(t=`${t.substring(0,t.indexOf(".")-1)}${t.substring(t.indexOf("."),t.length)}`),s=this.percentage(t)?t:t.substring(0,t.length-1)}else if(e.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t=t.length>1&&"0"===t[0]&&t[1]!==this.decimalMarker?t.slice(1,t.length):t;const i=this._charToRegExpExpression(this.thousandSeparator),r=this._charToRegExpExpression(this.decimalMarker),o='@#!$%^&*()_+|~=`{}\\[\\]:\\s,";<>?\\/'.replace(i,"").replace(r,""),u=new RegExp("["+o+"]");t.match(u)&&(t=t.substring(0,t.length-1));const l=this.getPrecision(e),h=(t=this.checkInputPrecision(t,l,this.decimalMarker)).replace(new RegExp(i,"g"),"");s=this._formatWithSeparators(h,this.thousandSeparator,this.decimalMarker,l);const d=s.indexOf(",")-t.indexOf(","),f=s.length-t.length;if(f>0&&","!==s[n]){a=!0;let t=0;do{this._shift.add(n+t),t++}while(t<f)}else 0!==d&&n>0&&!(s.indexOf(",")>=n&&n>3)||!(s.indexOf(".")>=n&&n>3)&&f<=0?(this._shift.clear(),a=!0,c=f,this._shift.add(n+=f)):this._shift.clear()}else for(let p=0,g=l[0];p<l.length&&r!==e.length;p++,g=l[p])if(this._checkSymbolMask(g,e[r])&&"?"===e[r+1])s+=g,r+=2;else if("*"===e[r+1]&&o&&this._checkSymbolMask(g,e[r+2]))s+=g,r+=3,o=!1;else if(this._checkSymbolMask(g,e[r])&&"*"===e[r+1])s+=g,o=!0;else if("?"===e[r+1]&&this._checkSymbolMask(g,e[r+2]))s+=g,r+=3;else if(this._checkSymbolMask(g,e[r])||this.hiddenInput&&this.maskAvailablePatterns[e[r]]&&this.maskAvailablePatterns[e[r]].symbol===g){if("H"===e[r]&&Number(g)>2){r+=1;const t=/[*?]/g.test(e.slice(0,r))?l.length:r;this._shift.add(t+this.prefix.length||0),p--;continue}if("h"===e[r]&&"2"===s&&Number(g)>3){r+=1,p--;continue}if("m"===e[r]&&Number(g)>5){r+=1;const t=/[*?]/g.test(e.slice(0,r))?l.length:r;this._shift.add(t+this.prefix.length||0),p--;continue}if("s"===e[r]&&Number(g)>5){r+=1;const t=/[*?]/g.test(e.slice(0,r))?l.length:r;this._shift.add(t+this.prefix.length||0),p--;continue}const n=31;if("d"===e[r]&&(Number(t.slice(r,r+2))>n||"/"===t[r+1])){r+=1;const t=/[*?]/g.test(e.slice(0,r))?l.length:r;this._shift.add(t+this.prefix.length||0),p--;continue}if("M"===e[r]){const i=12,s=0===r&&(Number(g)>2||Number(t.slice(r,r+2))>i||"/"===t[r+1]),o=t.slice(r-3,r-1).includes("/")&&("/"===t[r-2]&&Number(t.slice(r-1,r+1))>i&&"/"!==t[r]||"/"===t[r]||"/"===t[r-3]&&Number(t.slice(r-2,r))>i&&"/"!==t[r-1]||"/"===t[r-1]),a=Number(t.slice(r-3,r-1))<=n&&!t.slice(r-3,r-1).includes("/")&&"/"===t[r-1]&&
1(Number(t.slice(r,r+2))>i||"/"===t[r+1]),c=Number(t.slice(r-3,r-1))>n&&!t.slice(r-3,r-1).includes("/")&&!t.slice(r-2,r).includes("/")&&Number(t.slice(r-2,r))>i,u=Number(t.slice(r-3,r-1))<=n&&!t.slice(r-3,r-1).includes("/")&&"/"!==t[r-1]&&Number(t.slice(r-1,r+1))>i;if(s||o||a||c||u){r+=1;const t=/[*?]/g.test(e.slice(0,r))?l.length:r;this._shift.add(t+this.prefix.length||0),p--;continue}}s+=g,r++}else if(-1!==this.maskSpecialCharacters.indexOf(e[r])){s+=e[r],r++;const t=/[*?]/g.test(e.slice(0,r))?l.length:r;this._shift.add(t+this.prefix.length||0),p--}else this.maskSpecialCharacters.indexOf(g)>-1&&this.maskAvailablePatterns[e[r]]&&this.maskAvailablePatterns[e[r]].optional?(!!l[r]&&"099.099.099.099"!==e&&(s+=l[r]),r++,p--):"*"===this.maskExpression[r+1]&&this._findSpecialChar(this.maskExpression[r+2])&&this._findSpecialChar(g)===this.maskExpression[r+2]&&o||"?"===this.maskExpression[r+1]&&this._findSpecialChar(this.maskExpression[r+2])&&this._findSpecialChar(g)===this.maskExpression[r+2]&&o?(r+=3,s+=g):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(g)<0&&g!==this.placeHolderCharacter&&(u=!0);s.length+1===e.length&&-1!==this.maskSpecialCharacters.indexOf(e[e.length-1])&&(s+=e[e.length-1]);let h=n+1;for(;this._shift.has(h);)c++,h++;let d=this._shift.has(n)?c:0;u&&d--,i(d,a),c<0&&this._shift.clear();let f=`${this.prefix}${s}${this.suffix}`;return 0===s.length&&(f=`${this.prefix}${s}`),f}_findSpecialChar(t){return this.maskSpecialCharacters.find(e=>e===t)}_checkSymbolMask(t,e){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[e]&&this.maskAvailablePatterns[e].pattern&&this.maskAvailablePatterns[e].pattern.test(t)}_stripToDecimal(t){return t.split("").filter((t,e)=>t.match("^-?\\d")||"."===t||","===t||"-"===t&&0===e).join("")}_charToRegExpExpression(t){return" "===t?"\\s":"[\\^$.|?*+()".indexOf(t)>=0?"\\"+t:t}}return t.\u0275fac=function(e){return new(e||t)(i.LFG($L))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),nM=(()=>{class t extends eM{constructor(t,e,n,i){super(e),this.document=t,this._config=e,this._elementRef=n,this._renderer=i,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.onChange=t=>{},this._formElement=this._elementRef.nativeElement}applyMask(t,e,n=0,i=(()=>{})){if(!e)return t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const r=t&&"number"==typeof this.selStart?t[this.selStart]:"";let s="";if(void 0!==this.hiddenInput){let e=this.actualValue.split("");""!==t&&e.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>e.length?e.splice(this.selStart,0,r):t.length<e.length&&(e.length-t.length==1?e.splice(this.selStart-1,1):e.splice(this.selStart,this.selEnd-this.selStart))):e=[],s=this.actualValue.length?this.shiftTypedSymbols(e.join("")):t}s=Boolean(s)&&s.length?s:t;const o=super.applyMask(s,e,n,i);if(this.actualValue=this.getActualValue(o),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(t=>t!==this.decimalMarker)),this.formControlResult(o),!this.showMaskTyped)return this.hiddenInput&&o&&o.length?this.hideInput(o,this.maskExpression):o;const a=this.prefix+this.maskIsShown;return o+("IP"===this.maskExpression?a:a.slice(o.length))}applyValueChanges(t=0,e=(()=>{})){this._formElement.value=this.applyMask(this._formElement.value,this.maskExpression,t,e),this._formElement!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(t,e){return t.split("").map((t,n)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[e[n]]&&this.maskAvailablePatterns[e[n]].symbol?this.maskAvailablePatterns[e[n]].symbol:t).join("")}getActualValue(t){const e=t.split("").filter((t,e)=>this._checkSymbolMask(t,this.maskExpression[e])||this.maskSpecialCharacters.includes(this.maskExpression[e])&&t===this.maskExpression[e]);return e.join("")===t?e.join(""):t}
1shiftTypedSymbols(t){let e="";return(t&&t.split("").map((n,i)=>{if(this.maskSpecialCharacters.includes(t[i+1])&&t[i+1]!==this.maskExpression[i+1])return e=n,t[i+1];if(e.length){const t=e;return e="",t}return n})||[]).join("")}showMaskInInput(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}return this.showMaskTyped?t?this._checkForIp(t):this.maskExpression.replace(/\w/g,this.placeHolderCharacter):""}clearIfNotMatchFn(){this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==this._formElement.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(this._formElement.value,this.maskExpression))}set formElementProperty([t,e]){this._renderer.setProperty(this._formElement,t,e)}checkSpecialCharAmount(t){return t.split("").filter(t=>this._findSpecialChar(t)).length}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const e=[];for(let n=0;n<t.length;n++)t[n].match("\\d")&&e.push(t[n]);return e.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:e.length>3&&e.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:e.length>6&&e.length<=9?this.placeHolderCharacter:""}formControlResult(t){Array.isArray(this.dropSpecialCharacters)?this.onChange(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters)):this.onChange(this.dropSpecialCharacters?this._checkSymbols(t):this._removeSuffix(this._removePrefix(t)))}_removeMask(t,e){return t&&t.replace(this._regExpForRemove(e),"")}_removePrefix(t){return this.prefix?t&&t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix?t&&t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)}_regExpForRemove(t){return new RegExp(t.map(t=>`\\${t}`).join("|"),"gi")}_checkSymbols(t){if(""===t)return t;const e=this._retrieveSeparatorPrecision(this.maskExpression);let n=this._retrieveSeparatorValue(t);return"."!==this.decimalMarker&&(n=n.replace(this.decimalMarker,".")),this.isNumberValue?e?t===this.decimalMarker?null:this._checkPrecision(this.maskExpression,n):Number(n):n}_retrieveSeparatorPrecision(t){const e=t.match(new RegExp("^separator\\.([^d]*)"));return e?Number(e[1]):null}_checkPrecision(t,e){return t.indexOf("2")>0?Number(e).toFixed(2):Number(e)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(o),i.LFG($L),i.LFG(i.SBq),i.LFG(i.Qsj))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),iM=(()=>{class t{constructor(t,e,n){this.document=t,this._maskService=e,this._config=n,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this._maskValue="",this._position=null,this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:e,specialCharacters:n,patterns:i,prefix:r,suffix:s,thousandSeparator:o,decimalMarker:a,dropSpecialCharacters:c,hiddenInput:u,showMaskTyped:l,placeHolderCharacter:h,shownMaskExpression:d,showTemplate:f,clearIfNotMatch:p,validation:g,separatorLimit:m,allowNegativeNumbers:v}=t;if(e&&(this._maskValue=t.maskExpression.currentValue||""),n){if(!n.currentValue||!Array.isArray(n.currentValue))return;this._maskService.maskSpecialCharacters=t.specialCharacters.currentValue||[]}i&&i.currentValue&&(this._maskService.maskAvailablePatterns=i.currentValue),r&&(this._maskService.prefix=r.currentValue),s&&(this._maskService.suffix=s.currentValue),o&&(this._maskService.thousandSeparator=o.currentValue),a&&(this._maskService.decimalMarker=a.currentValue),c&&(this._maskService.dropSpecialCharacters=c.currentValue),u&&(this._maskService.hiddenInput=u.currentValue),l&&(this._maskService.showMaskTyped=l.currentValue),h&&(this._maskService.placeHolderCharacter=h.currentValue),d&&(this._maskService.shownMaskExpression=d.currentValue),f&&(this._maskService.showTemplate=f.currentValue),p&&(this._maskService.clearIfNotMatch=p.currentValue),g&&(this._maskService.validation=g.currentValue),m&&(this._maskService.separatorLimit=m.currentValue),v&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(t=>"-"!==t)),this._applyMask()}validate({value:t}
1){if(!this._maskService.validation)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskValue.startsWith("separator")||tM.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(XL.includes(this._maskValue))return this._validateTime(t);if(t&&t.toString().length>=1){let e=0;for(const n in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[n].optional&&!0===this._maskService.maskAvailablePatterns[n].optional&&(this._maskValue.indexOf(n)!==this._maskValue.lastIndexOf(n)?e+=this._maskValue.split("").filter(t=>t===n).join("").length:-1!==this._maskValue.indexOf(n)&&e++,-1!==this._maskValue.indexOf(n)&&t.toString().length>=this._maskValue.indexOf(n)||e===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&t.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4||1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&t.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&t.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(t);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const n=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-e:this._maskValue.length-e;if(t.toString().length<n)return this._createValidationError(t)}}return null}onInput(t){const e=t.target;if(this._inputValue=e.value,!this._maskValue)return void this.onChange(e.value);const n=1===e.selectionStart?e.selectionStart+this._maskService.prefix.length:e.selectionStart;let i=0,r=!1;if(this._maskService.applyValueChanges(n,(t,e)=>{i=t,r=e}),this.document.activeElement!==e)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let s=this._position?this._inputValue.length+n+i:n+("Backspace"!==this._code||r?i:0);s>this._getActualInputLength()&&(s=this._getActualInputLength()),e.setSelectionRange(s,s),(this.maskExpression.includes("H")||this.maskExpression.includes("M"))&&0===i&&e.setSelectionRange(e.selectionStart+1,e.selectionStart+1),this._position=null}onBlur(){this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(t){const e=t.target;null!==e&&null!==e.selectionStart&&e.selectionStart===e.selectionEnd&&e.selectionStart>this._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),e.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===e.value?(e.focus(),e.setSelectionRange(0,0)):e.selectionStart>this._maskService.actualValue.length&&e.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const n=e.value&&e.value!==this._maskService.prefix?e.value:this._maskService.prefix+this._maskService.maskIsShown;e.value!==n&&(e.value=n),(e.selectionStart||e.selectionEnd)<=this._maskService.prefix.length?e.selectionStart=this._maskService.prefix.length:e.selectionEnd>this._getActualInputLength()&&(e.selectionEnd=this._getActualInputLength())}onKeyDown(t){this._code=t.code?t.code:t.key;const e=t.target;if(this._inputValue=e.value,38===t.keyCode&&t.preventDefault(),37===t.keyCode||8===t.keyCode||46===t.keyCode){if(8===t.keyCode&&0===e.value.length&&(e.selectionStart=e.selectionEnd),8===t.keyCode&&0!==e.selectionStart)if(this.specialCharacters=this.specialCharacters||this._config.specialCharacters,this.prefix.length>1&&e.selectionStart<=this.prefix.length)e.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==e.selectionStart&&1!==e.selectionStart)for(;this.specialCharacters.includes(this._inputValue[e.selectionStart-1].toString())&&(this.prefix.length>=1&&e.selectionStart>this.prefix.length||0===this.prefix.length);)e.setSelectionRange(e.selectionStart-1,e.selectionStart-1);this.suffixCheckOnPressDelete(t.keyCode,e)}this.suffixCheckOnPressDelete(t.keyCode,e),this._maskService.prefix.length&&e.selectionStart<=this._maskService.prefix.length&&e.selectionEnd<=this._maskService.prefix.length&&t.preventDefault();const n=e.selectionStart;8===t.keyCode&&!e.readOnly&&0===n&&e.selectionEnd===e.value.length&&0!==e.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyM
1ask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<e.selectionStart?e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===t.keyCode&&!0===t.ctrlKey||65===t.keyCode&&!0===t.metaKey)&&(e.setSelectionRange(0,this._getActualInputLength()),t.preventDefault()),this._maskService.selStart=e.selectionStart,this._maskService.selEnd=e.selectionEnd}writeValue(t){return function(t,e,n,i){return new(n||(n=Promise))(function(r,s){function o(t){try{c(i.next(t))}catch(e){s(e)}}function a(t){try{c(i.throw(t))}catch(e){s(e)}}function c(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(o,a)}c((i=i.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){void 0===t&&(t=""),"number"==typeof t&&(t=String(t),t="."!==this.decimalMarker?t.replace(".",this.decimalMarker):t,this._maskService.isNumberValue=!0),this._maskService.formElementProperty=t&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?["value",this._maskService.applyMask(t,this._maskService.maskExpression)]:["value",t],this._inputValue=t})}registerOnChange(t){this.onChange=t,this._maskService.onChange=this.onChange}registerOnTouched(t){this.onTouch=t}suffixCheckOnPressDelete(t,e){46===t&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=e.selectionStart&&e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===t&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length<e.selectionStart&&e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),1===this.suffix.length&&this._inputValue.length===e.selectionStart&&e.setSelectionRange(e.selectionStart-1,e.selectionStart-1))}setDisabledState(t){this._maskService.formElementProperty=["disabled",t]}onModelChange(t){t||(this._maskService.actualValue="")}_repeatPatternSymbols(t){return t.match(/{[0-9]+}/)&&t.split("").reduce((e,n,i)=>{if(this._start="{"===n?i:this._start,"}"!==n)return this._maskService._findSpecialChar(n)?e+n:e;this._end=i;const r=Number(t.slice(this._start+1,this._end));return e+new Array(r+1).join(t[this._start-1])},"")||t}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const e=this._maskValue.split("").filter(t=>":"!==t).length;return null===t||0===t.length?null:0==+t[t.length-1]&&t.length<e||t.length<=e-2?this._createValidationError(t):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(t){return{mask:{requiredMask:this._maskValue,actualValue:t}}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(o),i.Y36(nM),i.Y36($L))},t.\u0275dir=i.lG2({type:t,selectors:[["","mask",""]],hostBindings:function(t,e){1&t&&i.NdJ("input",function(t){return e.onInput(t)})("blur",function(){return e.onBlur()})("click",function(t){return e.onFocus(t)})("keydown",function(t){return e.onKeyDown(t)})("ngModelChange",function(t){return e.onModelChange(t)})},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers"},features:[i._Bn([{provide:ga,useExisting:(0,i.Gpc)(()=>t),multi:!0},{provide:wa,useExisting:(0,i.Gpc)(()=>t),multi:!0},nM]),i.TTD]}),t})(),rM=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:JL,useValue:e},{provide:WL,useValue:KL},{provide:$L,useFactory:sM,deps:[WL,JL]},eM]}}static forChild(e){return{ngModule:t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();function sM(t,e){return Object.assign({},t,e instanceof Function?e():e)}var oM="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};oM.KeyboardEvent||(oM.KeyboardEvent=function(t,e){});const aM=["captchaWrapperElem"];let cM=(()=>{class t{constructor(t,e,n,r){this.renderer=t,this.zone=e,this.injector=n,this.scriptService=r,this.captchaElemPrefix="ngx_captcha_id_",this.setupCaptcha=!0,this.useGlobalDomain=!1,this.type="image",this.tabIndex=0,this.success=new i.vpe,this.load=new i.vpe,this.reset=new i.vpe,this.ready=new i.vpe,this.error=new i.vpe,this.expire=new i.vpe,this.setupAfterLoad=!1,this.resetCaptchaAfterSuccess=!1,this.isLoaded=!1}ngAfterViewInit(){this.control=this.injector.get(za).control}ngAfterViewChecked(){this.setupCaptcha&&(this.setupCaptcha=!1,this.setupComponent())}ngOnChanges(t){t&&t.hl&&!t.hl.firstChange&&t.hl.currentValue!==t.hl.previousValue&&this.scriptService.cleanup(),t&&t.useGlobalDomain&&!t.useGlobalDomain.firstChange&&t.useGlobalDomain.currentValue!==t.useGlobalDomain.previousValue&&this.scriptService.cleanup(),this.setupCaptcha=!0}getResponse(){return this.reCaptchaApi.getResponse(this.captchaId)}getCaptchaId(){return this.captchaId}resetCaptcha(){this.zone.run(()=>{this.reCaptchaApi.reset(),this.onChange(void 0),this.onTouched(void 0),this.reset.next()})}getCurrentResponse(){return this.currentResponse}reloadCaptcha(){this.setupComponent()}
1ensureCaptchaElem(t){const e=document.getElementById(t);if(!e)throw Error(`Captcha element with id '${t}' was not found`);this.captchaElem=e}renderReCaptcha(){this.zone.runOutsideAngular(()=>{this.captchaId=this.reCaptchaApi.render(this.captchaElemId,this.getCaptchaProperties()),this.ready.next()})}handleCallback(t){this.currentResponse=t,this.success.next(t),this.zone.run(()=>{this.onChange(t),this.onTouched(t)}),this.resetCaptchaAfterSuccess&&this.resetCaptcha()}getPseudoUniqueNumber(){return(new Date).getUTCMilliseconds()+Math.floor(9999*Math.random())}setupComponent(){this.captchaSpecificSetup(),this.createAndSetCaptchaElem(),this.scriptService.registerCaptchaScript(this.useGlobalDomain,"explicit",t=>{this.onloadCallback(t)},this.hl)}onloadCallback(t){if(this.reCaptchaApi=t,!this.reCaptchaApi)throw Error("ReCaptcha Api was not initialized correctly");this.isLoaded=!0,this.load.next(),this.renderReCaptcha(),this.setupAfterLoad&&(this.setupAfterLoad=!1,this.setupComponent())}generateNewElemId(){return this.captchaElemPrefix+this.getPseudoUniqueNumber()}createAndSetCaptchaElem(){if(this.captchaElemId=this.generateNewElemId(),!this.captchaElemId)throw Error("Captcha elem Id is not set");if(!this.captchaWrapperElem)throw Error("Captcha DOM element is not initialized");this.captchaWrapperElem.nativeElement.innerHTML="";const t=this.renderer.createElement("div");t.id=this.captchaElemId,this.renderer.appendChild(this.captchaWrapperElem.nativeElement,t),this.ensureCaptchaElem(this.captchaElemId)}writeValue(t){}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}handleErrorCallback(){this.zone.run(()=>{this.onChange(void 0),this.onTouched(void 0)}),this.error.next()}handleExpireCallback(){this.expire.next(),this.resetCaptcha()}}return t.\u0275fac=function(t){i.$Z()},t.\u0275dir=i.lG2({type:t,inputs:{useGlobalDomain:"useGlobalDomain",type:"type",tabIndex:"tabIndex",siteKey:"siteKey",hl:"hl"},outputs:{success:"success",load:"load",reset:"reset",ready:"ready",error:"error",expire:"expire"},features:[i.TTD]}),t})();const uM={InvisibleReCaptcha:0,ReCaptcha2:1};uM[uM.InvisibleReCaptcha]="InvisibleReCaptcha",uM[uM.ReCaptcha2]="ReCaptcha2";let lM=(()=>{class t{constructor(t){this.zone=t,this.windowGrecaptcha="grecaptcha",this.windowOnLoadCallbackProperty="ngx_captcha_onload_callback",this.globalDomain="recaptcha.net",this.defaultDomain="google.com"}registerCaptchaScript(t,e,n,i){if(this.grecaptchaScriptLoaded())return void this.zone.run(()=>{n(window[this.windowGrecaptcha])});window[this.windowOnLoadCallbackProperty]=()=>this.zone.run(n.bind(this,window[this.windowGrecaptcha]));const r=document.createElement("script");r.innerHTML="",r.src=this.getCaptchaScriptUrl(t,e,i),r.async=!0,r.defer=!0,document.getElementsByTagName("head")[0].appendChild(r)}cleanup(){window[this.windowOnLoadCallbackProperty]=void 0,window[this.windowGrecaptcha]=void 0}grecaptchaScriptLoaded(){return!(!window[this.windowOnLoadCallbackProperty]||!window[this.windowGrecaptcha])}getLanguageParam(t){return t?`&hl=${t}`:""}getCaptchaScriptUrl(t,e,n){return`https://www.${t?this.globalDomain:this.defaultDomain}/recaptcha/api.js?onload=${this.windowOnLoadCallbackProperty}&render=${e}${this.getLanguageParam(n)}`}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),hM=(()=>{class t extends cM{constructor(t,e,n,i){super(t,e,n,i),this.renderer=t,this.zone=e,this.injector=n,this.scriptService=i,this.windowOnErrorCallbackProperty="ngx_captcha_error_callback",this.windowOnExpire
1CallbackProperty="ngx_captcha_expire_callback",this.theme="light",this.size="normal",this.recaptchaType=uM.ReCaptcha2}ngOnChanges(t){super.ngOnChanges(t)}ngOnDestroy(){window[this.windowOnErrorCallbackProperty]={},window[this.windowOnExpireCallbackProperty]={}}captchaSpecificSetup(){this.registerCallbacks()}getCaptchaProperties(){return{sitekey:this.siteKey,callback:t=>this.zone.run(()=>this.handleCallback(t)),"expired-callback":()=>this.zone.run(()=>this.handleExpireCallback()),"error-callback":()=>this.zone.run(()=>this.handleErrorCallback()),theme:this.theme,type:this.type,size:this.size,tabindex:this.tabIndex}}registerCallbacks(){window[this.windowOnErrorCallbackProperty]=super.handleErrorCallback.bind(this),window[this.windowOnExpireCallbackProperty]=super.handleExpireCallback.bind(this)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.R0b),i.Y36(i.zs3),i.Y36(lM))},t.\u0275cmp=i.Xpm({type:t,selectors:[["ngx-recaptcha2"]],viewQuery:function(t,e){if(1&t&&i.Gf(aM,5),2&t){let t;i.iGM(t=i.CRH())&&(e.captchaWrapperElem=t.first)}},inputs:{theme:"theme",size:"size",hl:"hl"},features:[i._Bn([{provide:ga,useExisting:(0,i.Gpc)(()=>t),multi:!0}]),i.qOj,i.TTD],decls:2,vars:0,consts:[["captchaWrapperElem",""]],template:function(t,e){1&t&&i._UZ(0,"div",null,0)},encapsulation:2}),t})(),dM=(()=>{class t{constructor(t,e){this.scriptService=t,this.zone=e}execute(t,e,n,i){this.executeAsPromise(t,e,i).then(n)}executeAsPromise(t,e,n){return new Promise((i,r)=>{this.scriptService.registerCaptchaScript(!(!n||!n.useGlobalDomain),t,n=>{this.zone.runOutsideAngular(()=>{try{n.execute(t,{action:e}).then(t=>this.zone.run(()=>i(t)))}catch(s){r(s)}})})})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(lM),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),fM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[lM,dM],imports:[[Pt]]}),t})();function pM(t,e){1&t&&(i.TgZ(0,"p",25),i._uU(1," El nombre y el apellido son requeridos"),i.qZA())}function gM(t,e){if(1&t&&(i.TgZ(0,"div",15),i._UZ(1,"div",19),i.YNc(2,pM,2,0,"p",22),i.qZA()),2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngIf",t.aFormGroup.controls.nombre.errors.required&&t.submitted)}}function mM(t,e){1&t&&(i.TgZ(0,"p",25),i._uU(1,"El n\xfamero de documento es requerido"),i.qZA())}function vM(t,e){1&t&&(i.TgZ(0,"p",25),i._uU(1,"El n\xfamero de documento debe tener entre 5 y 8 d\xedgitos"),i.qZA())}function yM(t,e){1&t&&(i.TgZ(0,"p",25),i._uU(1,"El n\xfamero de documento no debe comenzar con 0"),i.qZA())}function bM(t,e){if(1&t&&(i.TgZ(0,"div",15),i._UZ(1,"div",19),i.YNc(2,mM,2,0,"p",22),i.YNc(3,vM,2,0,"p",22),i.YNc(4,yM,2,0,"p",22),i.qZA()),2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngIf",t.aFormGroup.controls.nrodocumento.errors.required&&t.submitted),i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.nrodocumento.errors.minlength&&t.submitted),i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.nrodocumento.errors.pattern&&t.submitted)}}function _M(t,e){1&t&&(i.TgZ(0,"p",25),i._uU(1," El e-mail es requerido"),i.qZA())}function wM(t,e){1&t&&(i.TgZ(0,"p",25),i._uU(1,"El e-mail ingresado no es v\xe1lido"),i.qZA())}function xM(t,e){if(1&t&&(i.TgZ(0,"div",15),i._UZ(1,"div",19),i.YNc(2,_M,2,0,"p",22),i.YNc(3,wM,2,0,"p",22),i.qZA()),2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngIf",t.aFormGroup.controls.correo.errors.required&&t.submitted),i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.correo.errors.email&&t.submitted)}}function SM(t,e){1&t&&(i.TgZ(0,"p",25),i._uU(1,"La contrase\xf1a es requerida"),i.qZA())}function TM(t,e){1&t&&(i.TgZ(0,"p",25),i._uU(1," La contrase\xf1a deben tener 6 caracteres como m\xednimo"),i.qZA())}function CM(t,e){if(1&t&&(i.TgZ(0,"div",15),i._UZ(1,"div",19),i.YNc(2,SM,2,0,"p",22),i.YNc(3,TM,2,0,"p",22),i.qZA()),2&t){const t=i.oxw(2);i.xp6(2),i.Q6J("ngIf",t.aFormGroup.hasError("pwRequerida")&&t.submitted),i.xp6(1),i.Q6J("ngIf",t.aFormGroup.hasError("pwCorta")&&t.submitted&&t.submitted)}}function EM(t,e){if(1&t&&(i.TgZ(0,"div",8),i.TgZ(1,"label",12),i._uU(2,"Contrase\xf1a *"),i.qZA(),i._UZ(3,"input",26),i.YNc(4,CM,4,2,"div",11),i.qZA()),2&t){const t=i.oxw();i.xp6(4),i.Q6J("ngIf",null!=t.aFormGroup.hasError)}}function AM(t,e){1&t&&(i.TgZ(0,"div",15),i._UZ(1,"div",19),i.TgZ(2,"p",25),i._uU(3," Confirme la contrase\xf1a"),i.qZA(),i.qZA())}function IM(t,e){if(1&t&&(i.TgZ(0,"div",8),i.TgZ(1,"label",12),i._uU(2,"Repetir Contrase\xf1a *"),i.qZA(),i._UZ(3,"input",27),i.YNc(4,AM,4,0,"div",11),i.qZA()),2&t){const t=i.oxw();i.xp6(4),i.Q6J("ngIf",t.aFormGroup.hasError("notSame"))}}function kM(t,e){1&t&&(i.TgZ(0,"p",25),i._uU(1," Seleccione No soy robot"),i.qZA())}function OM(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",28),i.TgZ(1,"div",29),i.TgZ(2,"div",30),i.TgZ(3,"b"),i._uU(4,"Registrate"),i.qZA(),i.qZA(),i.TgZ(5,"div",31),i.TgZ(6,"button",32),i.NdJ("
1click",function(){return i.CHM(t),i.oxw().facebookAuth()}),i.TgZ(7,"span"),i._UZ(8,"i",33),i.qZA(),i._uU(9," con Facebook "),i.qZA(),i.qZA(),i.TgZ(10,"div",34),i.TgZ(11,"button",35),i.NdJ("click",function(){return i.CHM(t),i.oxw().googleAuth()}),i.TgZ(12,"span"),i._UZ(13,"i",36),i.qZA(),i._uU(14," con Google "),i.qZA(),i.qZA(),i.TgZ(15,"div",37),i.TgZ(16,"h3",38),i._uU(17,"BENEFICIOS DE ESTAR REGISTRADO "),i.qZA(),i.TgZ(18,"ul",39),i.TgZ(19,"li",40),i._uU(20," \xb7 Recibir novedades"),i.qZA(),i.TgZ(21,"li",40),i._uU(22," \xb7 Invitaci\xf3n a eventos"),i.qZA(),i.TgZ(23,"li",40),i._uU(24," \xb7 Noticias seg\xfan inter\xe9s seleccionado"),i.qZA(),i.TgZ(25,"li",40),i._uU(26," \xb7 Enviar sugerencias y comentarios"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()}}let DM=(()=>{class t{constructor(t,e,n,i){this.router=t,this.userService=e,this.formBuilder=n,this.authService=i,this.submitted=!1,this.habilitarBoton=!1,this.usuarioLoguedo=!1}ngOnInit(){if(this.aFormGroup=this.formBuilder.group({recaptcha:["",Ta.required],nombre:["",Ta.required],nrodocumento:["",[Ta.required,Ta.minLength(5),Ta.maxLength(8),Ta.pattern("^[1-9][0-9]*")]],correo:["",[Ta.required,Ta.email]],empresa:[""],clave:["xxxxxx"],clave2:["xxxxxx"]},{validator:this.checkPasswords}),this.authService.isLogged){this.usuarioLoguedo=!0;let t=this.authService.userData.displayName;null!=t&&(this.aFormGroup.controls.nombre.setValue(t),this.aFormGroup.controls.nombre.disable()),this.aFormGroup.controls.correo.setValue(this.authService.userData.email),this.aFormGroup.controls.correo.disable()}else this.usuarioLoguedo=!1,this.aFormGroup.controls.nombre.setValue(""),this.aFormGroup.controls.correo.setValue(""),this.aFormGroup.controls.clave.setValue(""),this.aFormGroup.controls.clave2.setValue("")}checkMailEdit(){return this.aFormGroup.controls.correo!=this.authService.userData.email}checkPasswords(t){let e=t.controls.clave.value,n=t.controls.clave2.value;return null==e||""===e.trim()?{pwRequerida:!0}:e.trim().length<6?{pwCorta:!0}:e===n?null:{notSame:!0}}onSubmit(){this.submitted=!0,this.aFormGroup.valid&&this.addUser()}addUser(){this.authService.isLogged?this.addUserBack():this.authService.signUp(this.aFormGroup.controls.correo.value,this.aFormGroup.controls.clave.value).then(t=>{this.addUserBack()}).catch(t=>{console.log("error: "+t)})}addUserBack(){let t=this.authService.userData.uid;null!=t&&this.userService.add(t,this.aFormGroup.controls.nombre.value,this.aFormGroup.controls.nrodocumento.value,this.aFormGroup.controls.empresa.value,this.aFormGroup.controls.correo.value).subscribe(t=>{this.authService.meRegistre(!0),this.router.navigate(["/index"]).then(()=>{window.location.reload()})})}registrar(){this.ingreseModal.openModal()}getKey(){return lo.siteKey}handleSuccess(t){this.habilitarBoton=!0}googleAuth(){this.authService.googleAuth()}facebookAuth(){this.authService.facebookAuth()}handleReset(){}handleExpire(){}handleError(){}handleLoad(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Vs),i.Y36(hy),i.Y36(Tc),i.Y36(AP))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-registro"]],viewQuery:function(t,e){if(1&t&&i.Gf(FP,7),2&t){let t;i.iGM(t=i.CRH())&&(e.ingreseModal=t.first)}},decls:46,vars:10,consts:[[1,"lgx-contactform",3,"formGroup","ngSubmit"],[1,"container","justify-content-center","contenedor","mt"],[1,"row"],[1,"col-md-8","col-xs-12","col-md-offset-2","border-registration"],[1,"register-tittle"],[3,"click"],[1,"col-xs-12","col-md-7"],[1,"form-registration"],[1,"form-group"],["for","message-text","for","nombre",1,"control-label","text-grey","col-sm-4"],["type","text","formControlName","nombre","name","nombre","id","nombre",1,"form-control"],["class","col-sm-12",4,"ngIf"],["for","message-text",1,"control-label","text-grey","col-sm-4"],["mask","99999999","type","text","formControlName","nrodocumento","name","nrodocumento","id","nrodocumento",1,"form-control"],["type","text","formControlName","empresa","name","empresa","id","empresa",1,"form-control"],[1,"col-sm-12"],["type","text","formControlName","correo","name","correo","id","correo",1,"form-control"],["class","form-group",4,"ngIf"],[1,"form-group",2,"transform","scale(0.87)","transform-origin","0 0"],[1,"col-sm-4"],["formControlName","recaptcha",1,"form-group",3,"siteKey","useGlobalDomain","reset","expire","error","load","success"],["recaptcha",""],["style","color:red;font-size:13px;",4,"ngIf"],["type","submit",1,"btn","btn-block","btn-create"],["class","col-xs-12 col-md-5",4,"ngIf"],[2,"color","red","font-size","13px"],["type","password","formControlName","clave","name","clave","id","clave",1,"form-control"],["type","password","formControlName","clave2","name","clave2","id","clave2",1,"form-control"],[1,"col-xs-12","col-md-5"],[1,"benefits"],[1,"or-registration","pb-5"],[1,"text-center"],[1,"social-facebook","mb-btn",3,"click"],[1,"fab","fa-facebook-f"],[1,"row","text-center"],[1,"social-gmail","mb-btn",3,"click"],[1,"fab","fa-google"],[1,"benefits-details"],[1,"text-center","blue"],[1,"list-unstyled","text-left",2,"line-height","2"],[1,"blue"]],template:function(t,e){1&t&&(i.TgZ(0,"form",0),i.NdJ("ngSubmit",function(){return e.onSubmit()}),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i.TgZ(5,"h4"),i._uU(6,"REGISTRATE"),i.qZA(),i.TgZ(7,"h5"),i._uU(8,"\xbfYa ten\xe9s una cuenta? "),i.TgZ(9,"a",5),i.NdJ("
1click",function(){return e.registrar()}),i._uU(10,"Ingres\xe1"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(11,"div",2),i.TgZ(12,"div",6),i.TgZ(13,"div",7),i.TgZ(14,"div",8),i.TgZ(15,"label",9),i._uU(16,"Nombre y Apellido*"),i.qZA(),i._UZ(17,"input",10),i.YNc(18,gM,3,1,"div",11),i.qZA(),i.TgZ(19,"div",8),i.TgZ(20,"label",12),i._uU(21,"N\xfamero de documento *"),i.qZA(),i._UZ(22,"input",13),i.YNc(23,bM,5,3,"div",11),i.qZA(),i.TgZ(24,"div",8),i.TgZ(25,"label",12),i._uU(26,"Empresa / Instituci\xf3n"),i.qZA(),i._UZ(27,"input",14),i._UZ(28,"div",15),i.qZA(),i.TgZ(29,"div",8),i.TgZ(30,"label",12),i._uU(31,"E-mail *"),i.qZA(),i._UZ(32,"input",16),i.YNc(33,xM,4,2,"div",11),i.qZA(),i.YNc(34,EM,5,1,"div",17),i.YNc(35,IM,5,1,"div",17),i.TgZ(36,"div",18),i.TgZ(37,"div",19),i._uU(38,"\xa0"),i.qZA(),i.TgZ(39,"ngx-recaptcha2",20,21),i.NdJ("reset",function(){return e.handleReset()})("expire",function(){return e.handleExpire()})("error",function(){return e.handleError()})("load",function(){return e.handleLoad()})("success",function(t){return e.handleSuccess(t)}),i.qZA(),i.YNc(41,kM,2,0,"p",22),i.qZA(),i.TgZ(42,"button",23),i._uU(43,"CREAR CUENTA"),i.qZA(),i.qZA(),i.qZA(),i.YNc(44,OM,27,0,"div",24),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i._UZ(45,"app-ingreso-modal")),2&t&&(i.Q6J("formGroup",e.aFormGroup),i.xp6(18),i.Q6J("ngIf",e.aFormGroup.controls.nombre.errors),i.xp6(5),i.Q6J("ngIf",e.aFormGroup.controls.nrodocumento.errors),i.xp6(10),i.Q6J("ngIf",e.aFormGroup.controls.correo.errors),i.xp6(1),i.Q6J("ngIf",!e.usuarioLoguedo),i.xp6(1),i.Q6J("ngIf",!e.usuarioLoguedo),i.xp6(4),i.Q6J("siteKey",e.getKey())("useGlobalDomain",!1),i.xp6(2),i.Q6J("ngIf",e.aFormGroup.controls.recaptcha.errors&&e.submitted),i.xp6(3),i.Q6J("ngIf",!e.usuarioLoguedo))},directives:[pc,Ya,yc,ya,Ga,_c,ft,iM,hM,FP],styles:[".capthaRequerido[_ngcontent-%COMP%]{border:1px solid#d74b3e}.form-control[_ngcontent-%COMP%]{width:65%}.text-grey[_ngcontent-%COMP%]{font-size:14px;height:45px;margin-top:2%;line-height:15px;font-weight:300}.form-group[_ngcontent-%COMP%]{width:100%}.mb-btn[_ngcontent-%COMP%]{margin-top:15px}.benefits-details[_ngcontent-%COMP%]   .list-unstyled[_ngcontent-%COMP%]{font-weight:300;font-size:15px}.benefits-details[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-weight:700}@media (max-width: 767px){.form-control[_ngcontent-%COMP%]{width:100%}.text-grey[_ngcontent-%COMP%]{height:auto}}"]}),t})();const NM=["resumen"];function PM(t,e){if(1&t&&(i.TgZ(0,"p"),i._UZ(1,"i",18),i._uU(2),i.ALo(3,"date"),i.qZA()),2&t){const t=i.oxw(2);i.xp6(2),i.AsE("",i.xi3(3,2,t.evento.startDate,"longDate")," ",t.getTextoHoras(t.evento),"")}}function RM(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",1),i.TgZ(1,"div",2),i.TgZ(2,"div",3),i.TgZ(3,"button",4),i.NdJ("click",function(){return i.CHM(t),i.oxw().closeModalFin()}),i.TgZ(4,"span",5),i._uU(5,"\xd7"),i.qZA(),i.qZA(),i.TgZ(6,"div",6),i.TgZ(7,"h3"),i._uU(8,"Inscripci\xf3n Online"),i.qZA(),i.qZA(),i.TgZ(9,"div",2),i.TgZ(10,"div",7),i.TgZ(11,"div",8),i.TgZ(12,"h4"),i.TgZ(13,"span"),i._uU(14),i.qZA(),i.TgZ(15,"span"),i._uU(16,"-"),i.qZA(),i.TgZ(17,"span"),i._uU(18),i.qZA(),i.qZA(),i.TgZ(19,"div",9),i.TgZ(20,"b"),i._uU(21,"Agenda"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(22,"div",7),i.TgZ(23,"div",10),i.TgZ(24,"div",11),i._UZ(25,"img",12),i.qZA(),i.TgZ(26,"div",13),i.TgZ(27,"p"),i._UZ(28,"i",14),i._uU(29),i.qZA(),i.YNc(30,PM,4,5,"p",15),i.TgZ(31,"div"),i.TgZ(32,"h2",16),i._uU(33,"\xa1Tu inscripci\xf3n se realiz\xf3 con \xe9xito! "),i.qZA(),i.TgZ(34,"p",16),i._uU(35,"Recibir\xe1s por e-email un recordatorio"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(36,"button",17),i.NdJ("click",function(){return i.CHM(t),i.oxw().closeModalFin()}),i._uU(37,"Salir"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(14),i.Oqu(t.evento.expositor),i.xp6(4),i.Oqu(t.evento.title),i.xp6(7),i.s9C("src",t.evento.url,i.LSH),i.xp6(4),i.Oqu(t.getTextoLugar(t.evento)),i.xp6(1),i.Q6J("ngIf",null!=t.evento.startDate)}}let LM=(()=>{class t{constructor(t,e,n){this.fs=t,this.router=e,this.modalService=n,this.config={animated:!0,keyboard:!0,backdrop:!0,ignoreBackdropClick:!0}}ngOnInit(){}openModal(){this.modalRef=this.modalService.show(this.resumen,this.config)}closeModalFin(){this.modalRef.hide(),this.router.navigate(["index"],{fragment:"AGENDA"})}getTextoHoras(t){return this.fs.getTextoHoras(t)}getTextoLugar(t){return this.fs.getTextoLugar(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Fo),i.Y36(Vs),i.Y36(cy))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-ins-resumen"]],viewQuery:function(t,e){if(1&t&&i.Gf(NM,7),2&t){let t;i.iGM(t=i.CRH())&&(e.resumen=t.first)}},inputs:{evento:"evento"},decls:2,vars:0,consts:[["resumen",""],[1,"modal-body"],[1,"row"],[1,"col-md-12","col-xs-12","margin-registration"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"register-tittle","text-center"],[1,"col-xs-12","col-md-12"],[1,"form-registration","text-center"],[1,"or-registration","pb-5"],[1,"benefits"],[1,"text-center"],[1,"img-registration",3,"src"],[1,"event-details"],[1,"fas","fa-map-marker-alt","icons"],[4,"ngIf"],[1,"blue"],[1,"btn","btn-block","btn-create",3,"click"],[1,"fas","fa-calendar-alt","icons"]],template:function(t,e){1&t&&i.YNc(0,RM,38,5,"ng-template",null,0,i.W1O)},directives:[ft],pipes:[Ot],styles:[".or-registration[_ngcontent-%COMP%]{margin-top:30px;text-align:center;border-top:1px solid #e0e0e0}.form-registration[_ngcontent-%COMP%]{padding:0 40px}
1.benefits[_ngcontent-%COMP%]{margin-top:10px}.img-registration[_ngcontent-%COMP%]{width:40%}.btn-create[_ngcontent-%COMP%]{background-color:#00467a;height:45px;text-transform:uppercase;color:#fff;margin-top:31px;margin-bottom:30px}"]}),t})();function MM(t,e){if(1&t&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.hij("",t.evento.expositor," - ")}}function FM(t,e){1&t&&(i.TgZ(0,"p",29),i._uU(1," Seleccione No soy robot"),i.qZA())}function ZM(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).clickInscripcion()}),i._uU(1,"inscribirme"),i.qZA()}}function qM(t,e){if(1&t&&(i.TgZ(0,"p"),i._UZ(1,"i",31),i._uU(2),i.qZA()),2&t){const t=i.oxw(2);i.xp6(2),i.HOy("",t.evento.place.name," / ",t.evento.place.adress,", ",t.evento.stateId.name,", ",t.evento.locationId.name,"")}}function UM(t,e){if(1&t&&(i.TgZ(0,"p"),i._UZ(1,"i",31),i._uU(2),i.qZA()),2&t){const t=i.oxw(2);i.xp6(2),i.AsE(" ",t.evento.stateId.name,", ",t.evento.locationId.name,"")}}function VM(t,e){if(1&t&&(i.TgZ(0,"p"),i._UZ(1,"i",32),i._uU(2),i.qZA()),2&t){const t=i.oxw(2);i.xp6(2),i.Oqu(t.getTextoHoras())}}function jM(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",3),i.TgZ(1,"div",4),i.TgZ(2,"div",5),i.TgZ(3,"div",6),i.TgZ(4,"h4"),i._uU(5,"Inscripci\xf3n Online| "),i.YNc(6,MM,2,1,"span",7),i.TgZ(7,"span"),i._uU(8),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"div",4),i.TgZ(10,"div",8),i.TgZ(11,"div",9),i.TgZ(12,"div",10),i.TgZ(13,"label",11),i._uU(14,"Nombre"),i.qZA(),i._UZ(15,"input",12),i._UZ(16,"span",13),i.qZA(),i.TgZ(17,"div",10),i.TgZ(18,"label",14),i._uU(19,"N\xfamero de documento"),i.qZA(),i._UZ(20,"input",15),i._UZ(21,"span",13),i.qZA(),i.TgZ(22,"div",10),i.TgZ(23,"label",14),i._uU(24,"Empresa/Instituci\xf3n"),i.qZA(),i._UZ(25,"input",16),i._UZ(26,"span",13),i.qZA(),i.TgZ(27,"div",10),i.TgZ(28,"label",17),i._uU(29,"Email"),i.qZA(),i._UZ(30,"input",18),i._UZ(31,"span",13),i.qZA(),i.TgZ(32,"div",19),i.TgZ(33,"ngx-recaptcha2",20,21),i.NdJ("reset",function(){return i.CHM(t),i.oxw().handleReset()})("expire",function(){return i.CHM(t),i.oxw().handleExpire()})("error",function(){return i.CHM(t),i.oxw().handleError()})("load",function(){return i.CHM(t),i.oxw().handleLoad()})("success",function(e){return i.CHM(t),i.oxw().handleSuccess(e)}),i.qZA(),i.YNc(35,FM,2,0,"p",22),i.qZA(),i.YNc(36,ZM,2,0,"button",23),i.qZA(),i.qZA(),i.TgZ(37,"div",8),i.TgZ(38,"div",24),i.TgZ(39,"div",25),i.TgZ(40,"b"),i._uU(41,"Agenda"),i.qZA(),i.qZA(),i.TgZ(42,"div",26),i._UZ(43,"img",27),i.qZA(),i.TgZ(44,"div",28),i.YNc(45,qM,3,4,"p",7),i.YNc(46,UM,3,2,"p",7),i.YNc(47,VM,3,1,"p",7),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(6),i.Q6J("ngIf",null!=t.evento.expositor),i.xp6(2),i.Oqu(t.evento.title),i.xp6(7),i.s9C("value",t.user.name),i.Q6J("disabled",!0),i.xp6(5),i.s9C("value",t.user.dni),i.Q6J("disabled",!0),i.xp6(5),i.s9C("value",t.user.empresa),i.Q6J("disabled",!0),i.xp6(5),i.s9C("value",t.user.email),i.Q6J("disabled",!0),i.xp6(2),i.Q6J("hidden",t.estoyInscripto),i.xp6(1),i.Q6J("siteKey",t.getKey())("useGlobalDomain",!1),i.xp6(2),i.Q6J("ngIf",t.aFormGroup.controls.recaptcha.errors&&t.submitted),i.xp6(1),i.Q6J("ngIf",t.habilitarBoton&&!t.estoyInscripto),i.xp6(7),i.s9C("src",t.evento.url,i.LSH),i.xp6(2),i.Q6J("ngIf",null!=t.evento&&null!=t.evento.place&&null!=t.evento.locationId),i.xp6(1),i.Q6J("ngIf",null!=t.evento&&null==t.evento.place&&null!=t.evento.locationId),i.xp6(1),i.Q6J("ngIf",null!=t.evento&&(null!=t.evento.time||null!=t.evento.startDate))}}let BM=(()=>{class t{constructor(t,e,n,i,r,s){this.fs=t,this.formBuilder=e,this.userService=n,this.authenticationService=i,this.service=r,this.route=s,this.evento=null,this.habilitarBoton=!1,this.estoyInscripto=!1}ngOnInit(){this.aFormGroup=this.formBuilder.group({recaptcha:["",Ta.required]}),this.route.params.subscribe(t=>{this.service.getById(t.id).subscribe(t=>{this.evento=t,this.fs.setInfoEvent(this.evento,lo.tipoImagen.home)})}),this.authenticationService.isLoggedIn&&(this.authenticationService.loadUserData(),this.userService.getById(this.authenticationService.userData.uid).subscribe(t=>{this.user=t}))}onSubmit(){this.clickInscripcion()}clickInscripcion(){this.service.suscribeEvent(this.user.uuid,this.evento.id),this.estoyInscripto=!0,this.resumen.openModal()}getColor(t){this.fs.getColor(t)}getTextoHoras(){return null!=this.evento.startDate?this.evento.startDate.toString().substring(0,10)+this.fs.getTextoHoras(this.evento):this.fs.getTextoHoras(this.evento)}getKey(){return lo.siteKey}handleSuccess(t){this.habilitarBoton=!0}googleAuth(){this.authenticationService.googleAuth()}facebookAuth(){this.authenticationService.facebookAuth()}handleReset(){}handleExpire(){}handleError(){}handleLoad(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Fo),i.Y36(Tc),i.Y36(hy),i.Y36(AP),i.Y36(Mo),i.Y36(br))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-inscripcion"]],viewQuery:function(t,e){if(1&t&&i.Gf(LM,7),2&t){let t;i.iGM(t=i.CRH())&&(e.resumen=t.first)}},decls:3,vars:3,consts:[[1,"lgx-contactform",3,"formGroup","ngSubmit"],["class","container justify-content-center",4,"ngIf"],[3,"evento"],[1,"container","justify-content-center"],[1,"row"],[1,"col-md-6","col-xs-12","col-md-offset-3","border-registration"],[1,"register-tittle"],[4,"ngIf"],[1,"col-xs-12","col-md-6"],[1,"form-registration"],[1,"form-group"],["for","username",1,"control-label","text-grey"],["type","text","id","username","name","username",1,"form-control",3,"disabled","value"],[1,"help-block"],["for","text",1,"control-label","text-grey"],["type","texto","id","password","name","password",1,"form-control",3,"disabled","value"],["type","text","id","company","name","company",1,"form-control",3,"disabled","value"],["for","email",1,"control-label","text-grey"],["type","email","id","email","name","email",1,"form-control",3,"disabled","value"],[1,"form-group",2,"transform","scale(0.87)","transform-origin","0 0",3,"hidden"],["formControlName","recaptcha",1,"form-group",3,"siteKey","useGlobalDomain","reset","expire","error","load","success"],["recaptcha",""],["style","color:red;font-size:13px;",4,"ngIf"],["class","btn btn-block btn-create",3,"click",4,"ngIf"],[1,"benefits"],[1,"or-registration","pb-5"],[1,"text-center"],[1,"img-registration",3,"src"],[1,"event-details"],[2,"color","red","font-size","13px"],[1,"btn","btn-block","btn-create",3,"click"],[1,"fas","fa-map-marker-alt","icons"],[1,"fas","fa-calendar-alt","icons"]],template:function(t,e){1&t&&(i.TgZ(0,"form",0),i.NdJ("ngSubmit",function(){return e.onSubmit()}),i.YNc(1,jM,48,19,"div",1),i.qZA(),i._UZ(2,"app-ins-resumen",2)),2&t&&(i.Q6J("formGroup",e.aFormGroup),i.xp6(1),i.Q6J("ngIf",null!=e.user&&null!=e.evento),i.xp6(1),i.Q6J("evento",e.evento))},directives:[pc,Ya,yc,ft,LM,hM,Ga,_c],styles:[""]}),t})();function zM(t,e){if(1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"label",1),i._uU(2,"Empresa:"),i.qZA(),i.TgZ(3,"div",2),i.TgZ(4,"p",3),i._uU(5),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(5),i.Oqu(t.user.empresa)}}let HM=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-mp-user"]],inputs:{user:"user"},decls:13,vars:3,consts:[[1,"form-group"],[1,"col-sm-2","control-label"],[1,"col-sm-10"],[1,"form-control-static"],["class","form-group",4,"ngIf"],[1,"col-sm-2","control-label","text-left"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"label",1),i._uU(2,"Nombre:"),i.qZA(),i.TgZ(3,"div",2),i.TgZ(4,"p",3),i._uU(5),i.qZA(),i.qZA(),i.qZA(),i.YNc(6,zM,6,1,"div",4),i.TgZ(7,"div",0),i.TgZ(8,"label",5),i._uU(9,"Email:"),i.qZA(),i.TgZ(10,"div",2),i.TgZ(11,"p",3),i._uU(12),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(5),i.Oqu(e.user.name),i.xp6(1),i.Q6J("ngIf",null!=e.user.empresa),i.xp6(6),i.Oqu(e.user.email))},directives:[ft],styles:[""]}),t})();function GM(t,e){if(1&t&&(i.TgZ(0,"h4",15),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.AsE(" De ",t.evento.time," horas a ",t.evento.endtime," horas ")}}function YM(t,e){if(1&t&&(i.TgZ(0,"h5"),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.HOy(" ",t.evento.place.name," / ",t.evento.place.adress,", ",t.evento.stateId.name,", ",t.evento.locationId.name," ")}}function QM(t,e){if(1&t&&(i.TgZ(0,"h5"),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.AsE(" ",t.evento.stateId.name,", ",t.evento.locationId.name," ")}}let $M=(()=>{class t{constructor(t,e,n,r,s){this.service=t,this.authenticationService=e,this.router=n,this.fs=r,this.userService=s,this.eventCancel=ne
1w i.vpe}ngOnInit(){this.userService.getById(this.authenticationService.userData.uid).subscribe(t=>{this.user=t}),this.colorSection=this.fs.getColor(this.evento.sectionId.name)}getColor(){return this.colorSection}clickVerEvento(t){this.router.navigate(["/event",t])}unsuscribeEvent(){this.router.navigate(["event/unsubcribe",this.user.uuid+"-"+this.evento.id])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Mo),i.Y36(AP),i.Y36(Vs),i.Y36(Fo),i.Y36(hy))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-mp-event"]],inputs:{evento:"evento"},outputs:{eventCancel:"eventCancel"},decls:26,vars:24,consts:[[1,"row","container-list","vertical-align"],[1,"time-area","text-center"],[1,"time"],[1,"text-center","day","text-uppercase"],[1,"col-md-2","col-sm-2"],[1,"author-event"],[1,"author-img","cursor-pointer",3,"click"],[1,"center-block",3,"src"],[1,"col-xs-8","col-sm-8"],[1,"schedule-info"],[1,"text-uppercase"],["class","schedule-time",4,"ngIf"],[4,"ngIf"],[1,"description-schedule"],[3,"click"],[1,"schedule-time"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div"),i.TgZ(2,"div",1),i.TgZ(3,"h4",2),i._uU(4),i.ALo(5,"date"),i.qZA(),i.TgZ(6,"h5",3),i._uU(7),i.ALo(8,"date"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"div",4),i.TgZ(10,"div",5),i.TgZ(11,"a",6),i.NdJ("click",function(){return e.clickVerEvento(e.evento.id)}),i._UZ(12,"img",7),i.qZA(),i.qZA(),i.qZA(),i.TgZ(13,"div",8),i.TgZ(14,"div",9),i.TgZ(15,"h2"),i._uU(16),i.qZA(),i.TgZ(17,"p",10),i._uU(18),i.qZA(),i.YNc(19,GM,2,2,"h4",11),i.YNc(20,YM,2,4,"h5",12),i.YNc(21,QM,2,2,"h5",12),i.TgZ(22,"p",13),i._uU(23),i.qZA(),i.qZA(),i.TgZ(24,"button",14),i.NdJ("click",function(){return e.unsuscribeEvent()}),i._uU(25," cancelar inscripci\xf3n "),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(1),i.Gre("col-md-2 col-sm-2 text-center ",e.getColor(),""),i.xp6(3),i.Oqu(i.xi3(5,18,e.evento.startDate,"dd.MM")),i.xp6(3),i.hij(" ",i.xi3(8,21,e.evento.startDate,"EEEE")," "),i.xp6(5),i.s9C("src",e.evento.url,i.LSH),i.xp6(3),i.Gre("text-uppercase bold ",e.getColor(),""),i.xp6(1),i.hij(" ",e.evento.title," "),i.xp6(2),i.Oqu(e.evento.expositor),i.xp6(1),i.Q6J("ngIf",null!=e.evento.time&&null!=e.evento.endtime),i.xp6(1),i.Q6J("ngIf",null!=e.evento.place&&null!=e.evento.locationId),i.xp6(1),i.Q6J("ngIf",null==e.evento.place&&null!=e.evento.locationId),i.xp6(2),i.Oqu(e.evento.subtitle),i.xp6(1),i.Gre("text-uppercase btn-cancel btn mt-3 ",e.getColor(),""))},directives:[ft],pipes:[Ot],styles:[".btn-cancel[_ngcontent-%COMP%]{border:2px solid;background-color:#fff}.vertical-align[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:row}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function JM(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",11),i.NdJ("click",function(){const e=i.CHM(t).$implicit;return i.oxw().selectPreferencia(e.id)}),i._uU(1),i.ALo(2,"lowercase"),i._UZ(3,"i",12),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,2,t.name)," "),i.xp6(2),i.Q6J("className",n.seleccionado(t.id)?"fas fa-check":"fas fa-plus")}}let WM=(()=>{class t{constructor(t){this.userService=t,this.ids=[],this.ok=!1,this.modificado=!1,this.addedTags=[]}ngOnInit(){this.userService.getMisTags(this.uid).subscribe(t=>{null!=t&&t.forEach(t=>{this.ids.push(t.id)})}),this.userService.getTags().subscribe(t=>{null!=t&&(this.tags=t)})}confirmar(){this.addedTags=this.addedTags.filter(t=>!this.ids.includes(t.id)),this.addedTags.length>0&&this.userService.addTags(this.id,this.addedTags).subscribe(t=>{this.ok=!0}),this.ok=!0,this.modificado=!1}seleccionado(t){return!!this.ids.includes(t)||null!=this.addedTags.find(e=>e.id==t)}selectPreferencia(t){if(this.seleccionado(t))this.addedTags=this.addedTags.filter(e=>e.id!=t);else{let e=this.tags.find(e=>e.id==t);this.addedTags.push(e)}this.ok=!1,this.modificado=!0}selectAll(t){this.modificado=!0,this.ok=!1,t?this.addedTags=this.tags.filter(t=>!this.ids.includes(t.id)):(this.ids=[],this.addedTags=[])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(hy))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-mp-preference"]],inputs:{uid:"uid",id:"id"},decls:24,vars:3,consts:[[1,"col-md-6"],[1,"black","text-uppercase"],[1,"col-md-6","text-right"],[1,"radio-inline"],["type","radio","name","optradio",3,"click"],["type","radio","name","optradio","checked","",1,"btn-prefer",3,"click"],["type","button",1,"btn-prefer",3,"hidden","click"],[1,"btn-group"],["type","button","class","btn-tags sociedad-tag",3,"click",4,"ngFor","ngForOf"],[3,"hidden"],[1,"blue"],["type","button",1,"btn-tags","sociedad-tag",3,"click"],[3,"className"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"p",1),i._uU(2,"Seleccion\xe1 tus etiquetas preferidas"),i.qZA(),i.qZA(),i.TgZ(3,"div",2),i.TgZ(4,"span"),i._uU(5,"\xa0\xa0"),i.qZA(),i.TgZ(6,"label",3),i.TgZ(7,"input",4),i.NdJ("
1click",function(){return e.selectAll(!0)}),i.qZA(),i._uU(8," TODAS "),i.qZA(),i.TgZ(9,"span"),i._uU(10,"\xa0\xa0"),i.qZA(),i.TgZ(11,"label",3),i.TgZ(12,"input",5),i.NdJ("click",function(){return e.selectAll(!1)}),i.qZA(),i._uU(13," NINGUNA "),i.qZA(),i.TgZ(14,"span"),i._uU(15,"\xa0\xa0"),i.qZA(),i.TgZ(16,"button",6),i.NdJ("click",function(){return e.confirmar()}),i._uU(17," confirmar "),i.qZA(),i.qZA(),i.TgZ(18,"div",7),i.YNc(19,JM,4,4,"button",8),i.qZA(),i.TgZ(20,"div",9),i._UZ(21,"br"),i.TgZ(22,"h4",10),i._uU(23,"\xa1Tus preferencias se actualizaron con \xe9xito!"),i.qZA(),i.qZA()),2&t&&(i.xp6(16),i.Q6J("hidden",e.ok||!e.modificado),i.xp6(3),i.Q6J("ngForOf",e.tags),i.xp6(1),i.Q6J("hidden",!e.ok))},directives:[ht],pipes:[It],styles:["i[_ngcontent-%COMP%]{vertical-align:middle;float:right;margin:3px}p[_ngcontent-%COMP%]{font-size:14px}.btn-group[_ngcontent-%COMP%]{margin:25px 0}.btn-prefer[_ngcontent-%COMP%]{text-transform:uppercase;color:#fff;font-size:12px;background-color:#777;border:1px solid #fff}.radio-inline[_ngcontent-%COMP%]{font-size:12px}.sociedad-tag[_ngcontent-%COMP%]{border:2px solid #777777!important;color:#777}"]}),t})();function KM(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",18),i._UZ(1,"app-mp-user",19),i.TgZ(2,"button",20),i.NdJ("click",function(){return i.CHM(t),i.oxw().clickEditar()}),i._UZ(3,"i",21),i._uU(4,"EDITAR PERFIL "),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("user",t.user)}}function XM(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"app-mp-event",22),i.NdJ("eventCancel",function(e){return i.CHM(t),i.oxw().unsubscribe(e)}),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit;i.xp6(1),i.Q6J("evento",t)}}function tF(t,e){if(1&t&&(i.TgZ(0,"div",23),i._UZ(1,"app-mp-preference",24),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("uid",t.uid)("id",t.id)}}let eF=(()=>{class t{constructor(t,e,n,i,r){this.fs=t,this.service=e,this.router=n,this.userService=i,this.authenticationService=r,this.eventos=null}ngOnInit(){this.authenticationService.isLogged&&(this.authenticationService.loadUserData(),this.uid=this.authenticationService.userData.uid,null!=this.uid&&this.userService.getById(this.uid).subscribe(t=>{this.id=t.id,this.user=t,this.getInscripciones()}))}getInscripciones(){this.eventos=[],this.service.getInscripciones(this.id).subscribe(t=>{this.eventos=t,this.eventos.forEach(t=>{this.fs.setInfoEvent(t,lo.tipoImagen.miniatura)})})}unsubscribe(t){this.eventos=this.eventos.filter(e=>e.id!=t),this.recargaPerfil()}irAgenda(){this.router.navigate(["index"],{fragment:"AGENDA"})}clickEditar(){this.router.navigate(["edit"])}recargaPerfil(){this.router.navigate(["myProfile"])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Fo),i.Y36(Mo),i.Y36(Vs),i.Y36(hy),i.Y36(AP))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-miperfil"]],decls:24,vars:5,consts:[[1,"container"],[1,"margin-tab"],[1,"nav","nav-tabs","row","col-md-8"],[1,"active","col-xs-4"],["data-toggle","tab","href","#miperfil"],[1,"fas","fa-user"],[1,"col-xs-4"],["data-toggle","tab","href","#miseventos"],[1,"far","fa-calendar-check"],["data-toggle","tab","href","#preferences"],[1,"far","fa-heart"],[1,"tab-content"],["class","form-horizontal col-md-10 border-form tab-pane active","id","miperfil",4,"ngIf"],["id","miseventos",3,"className"],[4,"ngFor","ngForOf"],[3,"hidden"],[1,"cursor-pointer",3,"click"],["class","tab-preference tab-pane col-md-8","id","preferences",4,"ngIf"],["id","miperfil",1,"form-horizontal","col-md-10","border-form","tab-pane","active"],[3,"user"],["type","button",1,"text-uppercase","btn","btn-create","mt-12","btn-blockEdit",3,"click"],["aria-hidden","true"],[3,"evento","eventCancel"],["id","preferences",1,"tab-preference","tab-pane","col-md-8"],[3,"uid","id"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"ul",2),i.TgZ(3,"li",3),i.TgZ(4,"a",4),i._UZ(5,"i",5),i._uU(6,"Mis datos"),i.qZA(),i.qZA(),i.TgZ(7,"li",6),i.TgZ(8,"a",7),i._UZ(9,"i",8),i._uU(10,"Mis eventos"),i.qZA(),i.qZA(),i.TgZ(11,"li",6),i.TgZ(12,"a",9),i._UZ(13,"i",10),i._uU(14,"Mis preferencias"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(15,"div",11),i.YNc(16,KM,5,1,"div",12),i.TgZ(17,"div",13),i.YNc(18,XM,2,1,"div",14),i._UZ(19,"br"),i.TgZ(20,"p",15),i.TgZ(21,"a",16),i.NdJ("
1click",function(){return e.irAgenda()}),i._uU(22,"A\xfan no te inscribiste a ning\xfan evento. Te invitamos a navegar las propuestas que tiene la Fundaci\xf3n OSDE para vos"),i.qZA(),i.qZA(),i.qZA(),i.YNc(23,tF,2,2,"div",17),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(16),i.Q6J("ngIf",null!=e.user),i.xp6(1),i.Q6J("className",null!=e.eventos&&e.eventos.length>0?"tab-event tab-pane col-md-8":"tab-preference tab-pane col-md-12"),i.xp6(1),i.Q6J("ngForOf",e.eventos),i.xp6(2),i.Q6J("hidden",null!=e.eventos&&e.eventos.length>0),i.xp6(3),i.Q6J("ngIf",null!=e.uid&&null!=e.id))},directives:[ft,ht,HM,$M,WM],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.btn-blockEdit[_ngcontent-%COMP%]{width:100%}.margin-tab[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]}),t})();function nF(t,e){if(1&t&&(i.TgZ(0,"div",6),i.TgZ(1,"p",9),i._uU(2,"Hemos enviado un email de confirmaci\xf3n a "),i.TgZ(3,"strong"),i._uU(4),i.qZA(),i._uU(5,"."),i.qZA(),i.TgZ(6,"p",9),i._uU(7,"Por favor chequea tu email y haga click en el link de verificaci\xf3n."),i.qZA(),i.qZA()),2&t){const t=e.ngIf;i.xp6(4),i.Oqu(t.email)}}let iF=(()=>{class t{constructor(t){this.authService=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(AP))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-verificar"]],decls:13,vars:1,consts:[["id","lgx-contact",1,"lgx-contact"],[1,"lgx-inner"],[1,"container"],[1,"row"],[1,"col-sm-12","col-md-6"],["class","formGroup",4,"ngIf"],[1,"formGroup"],["type","button",1,"lgx-btn",3,"click"],[1,"fas","fa-redo-alt"],[1,"text-center"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i.TgZ(5,"h3"),i._uU(6,"Gracias por registrarse"),i.qZA(),i.YNc(7,nF,8,1,"div",5),i._UZ(8,"BR"),i.TgZ(9,"div",6),i.TgZ(10,"button",7),i.NdJ("click",function(){return e.authService.sendVerificationMail()}),i._UZ(11,"i",8),i._uU(12," Reenvia verificaci\xf3n de email "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(7),i.Q6J("ngIf",e.authService.userData))},directives:[ft],styles:[""]}),t})();const rF=function(t){return{"background-image":t}};function sF(t,e){if(1&t&&(i.TgZ(0,"div",2),i.TgZ(1,"div",3),i._UZ(2,"div",4),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngStyle",i.VKq(1,rF,"url("+t.evento.url+")"))}}function oF(t,e){if(1&t&&(i.TgZ(0,"div",5),i.TgZ(1,"div",3),i.TgZ(2,"div",12),i._UZ(3,"app-share-redes",13),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw(2);i.xp6(3),i.Q6J("image",t.evento.url)}}function aF(t,e){if(1&t&&i._UZ(0,"div",14),2&t){const t=i.oxw(2);i.Q6J("innerHTML",t.evento.content,i.oJD)}}function cF(t,e){if(1&t&&(i.TgZ(0,"li",26),i._uU(1),i.ALo(2,"date"),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.Oqu(i.xi3(2,1,t.evento.startDate,"longDate"))}}function uF(t,e){if(1&t&&(i.TgZ(0,"li",26),i._uU(1),i.ALo(2,"date"),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.Oqu(i.xi3(2,1,t.evento.endDate,"longDate"))}}function lF(t,e){if(1&t&&(i.TgZ(0,"li",26),i._uU(1),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.Oqu(t.nameSection)}}function hF(t,e){if(1&t&&(i.TgZ(0,"li",26),i._uU(1),i.qZA()),2&t){const t=i.oxw(4);i.xp6(1),i.Oqu(t.evento.locality.contactInformation)}}function dF(t,e){if(1&t&&(i.TgZ(0,"div",19),i.TgZ(1,"ul",20),i.TgZ(2,"li",26),i._uU(3),i.qZA(),i.TgZ(4,"li",26),i._uU(5),i.qZA(),i.YNc(6,hF,2,1,"li",22),i.qZA(),i.qZA()),2&t){const t=i.oxw(3);i.xp6(3),i.Oqu(t.evento.place.name),i.xp6(2),i.Oqu(t.evento.place.adress),i.xp6(1),i.Q6J("ngIf",null!=t.evento.locality)}}function fF(t,e){if(1&t&&(i.TgZ(0,"div",16),i.TgZ(1,"div",17),i.TgZ(2,"h3",18),i._uU(3,"expositores"),i.qZA(),i.TgZ(4,"div",19),i.TgZ(5,"ul",20),i.TgZ(6,"li",21),i._uU(7,"Nombre:"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(8,"div",19),i.TgZ(9,"ul",20),i.TgZ(10,"li",26),i._uU(11),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw(3);i.xp6(11),i.Oqu(t.evento.expositor)}}function pF(t,e){if(1&t&&i._UZ(0,"app-event-inscribime",27),2&t){const t=i.oxw(3);i.Q6J("evento",t.evento)}}function gF(t,e){if(1&t&&(i.TgZ(0,"div",5),i.TgZ(1,"div",15),i.TgZ(2,"div",16),i.TgZ(3,"div",17),i.TgZ(4,"h3",18),i._uU(5,"Detalles"),i.qZA(),i.TgZ(6,"div",19),i.TgZ(7,"ul",20),i.TgZ(8,"li",21),i._uU(9,"Empieza:"),i.qZA(),i.TgZ(10,"li",21),i._uU(11,"Termina:"),i.qZA(),i.TgZ(12,"li",21),i._uU(13,"Categor\xeda:"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(14,"div",19),i.TgZ(15,"ul",20),i.YNc(16,cF,3,4,"li",22),i.YNc(17,uF,3,4,"li",22),i.YNc(18,lF,2,1,"li",22),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(19,"div",16),i.TgZ(20,"div",17),i.TgZ(21,"h3",18),i._uU(22,"locaci\xf3n"),i.qZA(),i.TgZ(23,"div",19),i.TgZ(24,"ul",20),i.TgZ(25,"li",21),i._uU(26,"Nombre del lugar:"),i.qZA(),i.TgZ(27,"li",21),i._uU(28,"Direcci\xf3n:"),i.qZA(),i.TgZ(29,"li",21),i._uU(30,"Tel\xe9fono:"),i.qZA(),i.qZA(),i.qZA(),i.YNc(31,dF,7,3,"div",23),i.qZA(),i.qZA(),i.YNc(32,fF,12,1,"div",24),i.qZA(),i.YNc(33,pF,1,1,"app-event-inscribime",25),i.qZA()),2&t){const t=i.oxw(2);i.xp6(16),i.Q6J("ngIf",null!=t.evento.startDate),i.xp6(1),i.Q6J("ngIf",null!=t.evento.endDate),i.xp6(1),i.Q6J("ngIf",null!=t.nameSection),i.xp6(13),i.Q6J("ngIf",null!=t.evento.place),i.xp6(1),i.Q6J("ngIf",null!=t.evento),i.xp6(1),i.Q6J("ngIf",null!=t.evento)}}function mF(t,e){if(1&t&&(i.TgZ(0,"div",5),i._UZ(1,"app-gallery",27),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("evento",t.evento)}}function vF(t,e){if(1&t&&(i.TgZ(0,"div",5),i.TgZ(1,"div",6),i.TgZ(2,"h2"),i._uU(3),i.qZA(),i.TgZ(4,"div",5),i.TgZ(5,"div",3),i.TgZ(6,"div",7),i.TgZ(7,"span"),i._UZ(8,"i",8),i._uU(9),i.qZA(),i._UZ(10,"br"),i.TgZ(11,"span"),i._UZ(12,"i",9),i._uU(13),i.ALo(14,"date"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.YNc(15,oF,4,1,"div",1),i.YNc(16,aF,1,1,"div",10),i.YNc(17,gF,34,6,"div",1),i.YNc(18,mF,2,1,"div",1),i._UZ(19,"app-event-sugerido",11),i.qZA()),2&t){const t=i.oxw();i.xp6(2),i.Gre("",t.getColor()," event-title"),i.xp6(1),i.AsE("",t.getTextExpositor()," ",t.evento.title,""),i.xp6(6),i.Oqu(t.getTextoLugar(t.evento)),i.xp6(4),i.AsE("",i.xi3(14,14,t.evento.startDate,"longDate")," ",t.getTextoHoras(t.evento),""),i.xp6(2),i.Q6J("ngIf",null!=t.evento),i.xp6(1),i.Q6J("ngIf",null!=t.evento),i.xp6(1),i.Q6J("ngIf",null!=t.evento),i.xp6(1),i.Q6J("ngIf",null!=t.evento),i.xp6(1),i.Q6J("seccion",t.nameSection)("idEvento",t.evento.id)}}let yF=(()=>{class t{constructor(t,e,n){this.fs=t,this.service=e,this.route=n,this.evento=null}ngOnInit(){this.route.params.subscribe(t=>{this.service.getById(t.id).subscribe(t=>{this.evento=t,this.fs.setInfoEvent(this.evento,lo.tipoImagen.file),null!=this.evento.sectionId&&(this.nameSection=this.evento.sectionId&&null!=this.evento.sectionId.name?this.evento.sectionId.name:null)})})}getColor(){return null!=this.nameSection?this.fs.getColor(this.nameSection):""}getTextoHoras(t){return this.fs.getTextoHoras(t)}getTextoLugar(t){return this.fs.getTextoLugar(t)}getTextExpositor(){return null!=this.evento.expositor?this.evento.expositor.concat(" :"):""}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Fo),i.Y36(Mo),i.Y36(br))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-event-largo"]],decls:3,vars:2,consts:[["class","container-fluid",4,"ngIf"],["class","container",4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-md-12","back-event2",3,"ngStyle"],[1,"container"],[1,"event-container"],[1,"info-right","col-md-6","col-xs-12"],[1,"fas","fa-map-marker-alt"],[1,"fas","fa-calendar-alt"],[3,"innerHTML",4,"ngIf"],["ngif","nameSection != null",3,"seccion","idEvento"],[1,"social-container"],[3,"image"],[3,"innerHTML"],[1,"row","border-bottom"],[1,"col-md-4"],[1,"row","details"],[1,"aqua"],[1,"col-md-6","p-0"],[1,"list-unstyled","black"],[1,"details-list"],["class","details-results",4,"ngIf"],["class","col-md-6 p-0",4,"ngIf"],["class","col-md-4",4,"ngIf"],[3,"evento",4,"ngIf"],[1,"details-results"],[3,"evento"]],template:function(t,e){1&t&&(i.YNc(0,sF,3,3,"div",0),i.YNc(1,vF,20,17,"div",1),i._UZ(2,"app-ingreso-modal")),2&t&&(i.Q6J("ngIf",null!=e.evento),i.xp6(1),i.Q6J("ngIf",null!=e.evento))},directives:[ft,FP,_t,Bg,NL,LL,yv],pipes:[Ot],styles:[".back-event2[_ngcontent-%COMP%]{margin-top:80px;background-size:cover;height:315px}@media (max-width: 991px){.back-event2[_ngcontent-%COMP%]{margin-top:102px}}.p-0[_ngcontent-%COMP%]{padding:0}"]}),t})();const bF=function(t){return{"background-image":t}};function _F(t,e){if(1&t&&(i.TgZ(0,"div",10),i.TgZ(1,"div",4),i._UZ(2,"div",11),i.qZA(),i.qZA()),2&t){const t=i.oxw(2);i.xp6(2),i.Q6J("ngStyle",i.VKq(1,bF,"url("+t.nov.url+")"))}}function wF(t,e){if(1&t&&i._UZ(0,"img",16),2&t){const t=i.oxw(3);i.s9C("src",t.urlevento,i.LSH)}}function xF(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h3",12),i._uU(2,"Evento Relacionado"),i.qZA(),i.TgZ(3,"div",13),i.TgZ(4,"a",14),i.NdJ("
1click",function(){i.CHM(t);const e=i.oxw(2);return e.irEvento(e.idevento)}),i.YNc(5,wF,1,1,"img",15),i.TgZ(6,"p"),i._uU(7),i.qZA(),i.TgZ(8,"p"),i._uU(9),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(2);i.xp6(5),i.Q6J("ngIf",null!=t.urlevento),i.xp6(1),i.Gre("title-relacionado ",t.getColor(t.nombreSeccion),""),i.xp6(1),i.hij(" ",t.tituloevento," "),i.xp6(2),i.Oqu(t.subtituloevento)}}function SF(t,e){if(1&t&&(i.TgZ(0,"div",1),i.YNc(1,_F,3,3,"div",2),i.TgZ(2,"div",3),i.TgZ(3,"h2"),i._uU(4),i.qZA(),i.TgZ(5,"div"),i.TgZ(6,"div",4),i.TgZ(7,"h4",5),i._uU(8),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"div"),i.TgZ(10,"div",4),i.TgZ(11,"div",6),i._UZ(12,"app-share-redes",7),i.qZA(),i.qZA(),i.qZA(),i._UZ(13,"div",8),i.YNc(14,xF,10,6,"div",9),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngIf",null!=t.nov.url),i.xp6(2),i.Gre("",t.getColor(t.nov.sectionId.name)," event-title"),i.xp6(1),i.Oqu(t.nov.title),i.xp6(4),i.Oqu(t.nov.subtitle),i.xp6(4),i.Q6J("image",t.nov.url),i.xp6(1),i.Q6J("innerHTML",t.urlSafe,i.oJD),i.xp6(1),i.Q6J("ngIf",null!=t.nov.theEvent)}}let TF=(()=>{class t{constructor(t,e,n,i,r,s){this.router=t,this.fs=e,this.route=n,this.service=i,this.sanitizer=r,this.eventService=s}ngOnInit(){this.route.params.subscribe(t=>{this.service.getById(t.id).subscribe(t=>{if(t){let e=lo.tipoImagen.novedades,n=No.settings.urlImagenes,i=t.resourcesRefId.resources.filter(t=>t.type==e);if(null!=i&&i.length>0){let e=n.concat(i[0].name);t.url=e}this.nov=t;let r=this.nov.content;r=r.split("&lt;").join("<");let s=r.split("&gt;").join(">");s=s.replace("<p>","").replace("</p>",""),s=s.split("&quot;").join(""),this.urlSafe=this.sanitizer.bypassSecurityTrustHtml(s),(null!=this.nov.eventId||0!=this.nov.eventId)&&this.eventoRelacionado()}else this.router.navigate(["index"])})})}eventoRelacionado(){this.eventService.getById(this.nov.eventId).subscribe(t=>{this.nov.theEvent=t,this.idevento=this.nov.theEvent.id,this.tituloevento=this.nov.theEvent.title,this.subtituloevento=this.nov.theEvent.subtitle;let e=No.settings.urlImagenes,n=this.nov.theEvent.resourcesRefId.resources.filter(t=>t.type==lo.tipoImagen.miniatura);if(null!=n&&n.length>0){let t=e.concat(n[0].name);this.urlevento=t}else this.urlevento=null}),this.nombreSeccion=this.nov.sectionId.name}getColor(t){return this.fs.getColor(t)}getColor2(t){return this.fs.getColor2(t)}irEvento(t){this.router.navigate(["/event",t])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Vs),i.Y36(Fo),i.Y36(br),i.Y36(Ko),i.Y36(fe),i.Y36(Mo))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-novedad-largo"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],["class","container-fluid",4,"ngIf"],[1,"event-container"],[1,"row"],[1,"text-left","text-news","container"],[1,"social-container"],[3,"image"],[3,"innerHTML"],[4,"ngIf"],[1,"container-fluid"],[1,"col-md-12","back-event2",3,"ngStyle"],[1,"event-relacionada"],[1,"col-md-4","item-sugerido"],[3,"routerLink","click"],["class","img-relacionado",3,"src",4,"ngIf"],[1,"img-relacionado",3,"src"]],template:function(t,e){1&t&&i.YNc(0,SF,15,9,"div",0),2&t&&i.Q6J("ngIf",null!=e.nov)},directives:[ft,NL,_t,Bs],styles:[".back-event2[_ngcontent-%COMP%]{margin-top:19px;background-size:cover;height:315px}.title-relacionado[_ngcontent-%COMP%]{padding-top:10px;font-size:20px;font-weight:600;text-transform:uppercase}@media (min-width: 1200px) and (max-width: 1400px){.img-relacionado[_ngcontent-%COMP%]{min-height:150px;max-height:150px}}"]}),t})();function CF(t,e){if(1&t&&(i.TgZ(0,"h3"),i._uU(1,"Vista previa del evento"),i.qZA()),2&t){const t=i.oxw();i.Tol(t.getColor())}}function EF(t,e){if(1&t&&(i.TgZ(0,"div",15),i.TgZ(1,"div",16),i._UZ(2,"app-event"),i.qZA(),i.TgZ(3,"div",17),i._UZ(4,"app-event-largo"),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"app-slider-event",19),i.qZA(),i.TgZ(7,"div",20),i._UZ(8,"a
1pp-evento",19),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(6),i.Q6J("evento",t.evento),i.xp6(2),i.Q6J("evento",t.evento)}}let AF=(()=>{class t{constructor(t,e,n){this.fs=t,this.service=e,this.route=n}ngOnInit(){this.route.params.subscribe(t=>{this.getEvent(t.id)})}getEvent(t){this.service.getPreviewById(t).subscribe(t=>{null!=t&&(this.fs.setInfoEvent(t,lo.tipoImagen.novedades),this.evento=t,this.nameSection=null!=this.evento.sectionId?this.evento.sectionId.name:null)})}getColor(){return null!=this.nameSection?this.fs.getColor(this.nameSection):""}getTextoHoras(t){return this.fs.getTextoHoras(t)}getTextoLugar(t){return this.fs.getTextoLugar(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Fo),i.Y36(Mo),i.Y36(br))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-event-preview"]],decls:21,vars:2,consts:[[1,"container"],[1,"margin-tab"],[3,"class",4,"ngIf"],[1,"nav","nav-tabs","row","col-md-12"],[1,"col-xs-3","active"],["data-toggle","tab","href","#corto"],[1,"fas","fa-minus"],[1,"col-xs-3"],["data-toggle","tab","href","#largo"],[1,"fas","fa-plus"],["data-toggle","tab","href","#slider"],[1,"fab","fa-slideshare"],["data-toggle","tab","href","#agenda"],[1,"far","fa-calendar"],["class","disabled tab-content",4,"ngIf"],[1,"disabled","tab-content"],["id","corto",1,"tab-preference","tab-pane","col-md-12",2,"border","solid 1px #dfdbdb"],["id","largo",1,"tab-preference","tab-pane","col-md-12",2,"border","solid 1px #dfdbdb"],["id","slider",1,"tab-pane","col-md-12","active",2,"border","solid 1px #dfdbdb"],[3,"evento"],["id","agenda",1,"tab-preference","tab-pane","col-md-12",2,"border","solid 1px #dfdbdb"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,CF,2,3,"h3",2),i.TgZ(3,"ul",3),i.TgZ(4,"li",4),i.TgZ(5,"a",5),i._UZ(6,"i",6),i._uU(7,"Reducido"),i.qZA(),i.qZA(),i.TgZ(8,"li",7),i.TgZ(9,"a",8),i._UZ(10,"i",9),i._uU(11,"Extendido"),i.qZA(),i.qZA(),i.TgZ(12,"li",7),i.TgZ(13,"a",10),i._UZ(14,"i",11),i._uU(15,"Carrusel"),i.qZA(),i.qZA(),i.TgZ(16,"li",7),i.TgZ(17,"a",12),i._UZ(18,"i",13),i._uU(19,"Agenda"),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,EF,9,2,"div",14),i.qZA(),i.qZA()),2&t&&(i.xp6(2),i.Q6J("ngIf",null!=e.evento),i.xp6(18),i.Q6J("ngIf",null!=e.evento))},directives:[ft,QL,yF,zo,Ag],styles:[".disabled[_ngcontent-%COMP%]{pointer-events:none}"]}),t})();function IF(t,e){return t===e}function kF(t,e,n){if(null===e||null===n||e.length!==n.length)return!1;const i=e.length;for(let r=0;r<i;r++)if(!t(e[r],n[r]))return!1;return!0}function OF(t,e=IF){let n=null,i=null;function r(){return kF(e,n,arguments)||(i=t.apply(null,arguments)),n=arguments,i}return r.reset=function(){n=null,i=null},r}const DF=OF(function(){const t=(0,i.XfM)();if(!t)return!1;const e=t.injector.get(i.QSY,null);return!!e&&e.some(t=>(t&&t.providers||[]).some(t=>t&&t.provide&&"MockNgModuleResolver"===t.provide.name||!1))});let NF=(()=>{class t{constructor(){this.bootstrap$=new qu(1)}get appBootstrapped$(){return this.bootstrap$.asObservable()}bootstrap(){this.bootstrap$.next(!0),this.bootstrap$.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const PF=new i.OlP("INITIAL_STATE_TOKEN");let RF=(()=>{class t{static set(t){this.value=t}static pop(){const t=this.value;return this.value={},t}}return t.value={},t})();const LF=new i.OlP("Internals.StateContextFactory"),MF=new i.OlP("Internals.StateFactory");var FF=n(205);function ZF(t,e){return e?n=>n.pipe(ZF((n,i)=>(0,fn.D)(t(n,i)).pipe((0,De.U)((t,r)=>e(n,t,i,r))))):e=>e.lift(new qF(t))}class qF{constructor(t){this.project=t}call(t,e){return e.subscribe(new UF(t,this.project))}}class UF extends Pn.Ds{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e)}_innerSub(t){const e=new Pn.IY(this),n=this.destination;n.add(e);const i=(0,Pn.ft)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}const VF={STATE_NAME:t=>`${t} is not a valid state name. It needs to be a valid object property name.`,STATE_NAME_PROPERTY:()=>"States must register a 'name' property",STATE_UNIQUE:(t,e,n)=>`State name '${t}' from ${e} already exists in ${n}`,STATE_DECORATOR:()=>"States must be decorated with @State() decorator",INCORRECT_PRODUCTION:()=>"Angular is running in production mode but NGXS is still running in the development mode!\nPlease set developmentMode to false on the NgxsModule options when in production mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })",INCORRECT_DEVELOPMENT:()=>"RECOMMENDATION: Set developmentMode to true on the NgxsModule when Angular is running in development mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })",SELECT_FACTORY_NOT_CONNECTED:()=>"You have forgotten to import the NGXS module!",ACTION_DECORATOR:()=>"@Action() decorator cannot be used with static methods",SELECTOR_DECORATOR:()=>
1"Selectors only work on methods",ZONE_WARNING:()=>"Your application was bootstrapped with nooped zone and your execution strategy requires an actual NgZone!\nPlease set the value of the executionStrategy property to NoopNgxsExecutionStrategy.\nNgxsModule.forRoot(states, { executionStrategy: NoopNgxsExecutionStrategy })",PATCHING_ARRAY:()=>"Patching arrays is not supported.",PATCHING_PRIMITIVE:()=>"Patching primitives is not supported.",UNDECORATED_STATE_IN_IVY:t=>`'${t}' class should be decorated with @Injectable() right after the @State() decorator`};let jF=(()=>{class t{constructor(t,e){this._ngZone=t,this._platformId=e,this.verifyZoneIsNotNooped(this._ngZone)}enter(t){return Lt(this._platformId)?this.runInsideAngular(t):this.runOutsideAngular(t)}leave(t){return this.runInsideAngular(t)}runInsideAngular(t){return i.R0b.isInAngularZone()?t():this._ngZone.run(t)}runOutsideAngular(t){return i.R0b.isInAngularZone()?this._ngZone.runOutsideAngular(t):t()}verifyZoneIsNotNooped(t){t instanceof i.R0b||console.warn(VF.ZONE_WARNING())}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.R0b),i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const BF=new i.OlP("ROOT_STATE_TOKEN"),zF=new i.OlP("FEATURE_STATE_TOKEN"),HF=new i.OlP("NGXS_PLUGINS"),GF=new i.OlP("NG_TEST_MODE"),YF=new i.OlP("NG_DEV_MODE"),QF="NGXS_META",$F="NGXS_OPTIONS_META";let JF=(()=>{class t{constructor(){this.defaultsState={},this.selectorOptions={injectContainerState:!0,suppressErrors:!0},this.compatibility={strictContentSecurityPolicy:!1},this.executionStrategy=jF}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class WF{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}}const KF=new i.OlP("NGXS_EXECUTION_STRATEGY");function XF(t){return t.constructor&&t.constructor.type?t.constructor.type:t.type}const tZ=(t,e,n)=>{t=Object.assign({},t);const i=e.split("."),r=i.length-1;return i.reduce((t,e,i)=>(t[e]=i===r?n:Array.isArray(t[e])?t[e].slice():Object.assign({},t[e]),t&&t[e]),t),t},eZ=(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t),nZ=t=>t&&"object"==typeof t&&!Array.isArray(t),iZ=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(nZ(t)&&nZ(n))for(const i in n)nZ(n[i])?(t[i]||Object.assign(t,{[i]:{}}),iZ(t[i],n[i])):Object.assign(t,{[i]:n[i]});return iZ(t,...e)};function rZ(t){if(!t.hasOwnProperty(QF)){const e={name:null,actions:{},defaults:{},path:null,makeRootSelector:t=>t.getStateGetter(e.name),children:[]};Object.defineProperty(t,QF,{value:e})}return sZ(t)}function sZ(t){return t[QF]}function oZ(t,e){return e&&e.compatibility&&e.compatibility.strictContentSecurityPolicy?function(t){const e=t.slice();return t=>e.reduce((t,e)=>t&&t[e],t)}(t):function(t){const e=t;let n="store."+e[0],i=0;const r=e.length;let s=n;for(;++i<r;)s=s+" && "+(n=n+"."+e[i]);return new Function("store","return "+s+";")}(t)}function aZ(t,e){const n=eZ(e.currentAppState,t.path),i=eZ(e.newAppState,t.path);return new WF(n,i,!t.isInitialised)}function cZ(...t){return function(t,e,n=uZ){const i=function(t){return t.reduce((t,e)=>(t[XF(e)]=!0,t),{})}(t),r=e&&function(t){return t.reduce((t,e)=>(t[e]=!0,t),{})}(e);return function(t){return t.pipe(function(t,e){return Ie(n=>{const i=XF(n.action);return t[i]&&(!e||e[n.status])})}(i,r),n())}}(t,["DISPATCHED"])}function uZ(){return(0,De.U)(t=>t.action)}function lZ(t){return e=>new Te.y(n=>e.subscribe({next(e){t.leave(()=>n.next(e))},error(e){t.leave(()=>n.error(e))},complete(){t.leave(()=>n.complete())}}))}let hZ=(()=>{class t{constructor(t){this._executionStrategy=t}enter(t){return this._executionStrategy.enter(t)}leave(t){return this._executionStrategy.leave(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(KF))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class dZ extends pn.xQ{constructor(){super(...arguments),this._itemQueue=[],this._busyPushingNext=!1}next(t){if(this._busyPushingNext)this._itemQueue.unshift(t);else{for(this._busyPushingNext=!0,super.next(t);this._itemQueue.length>0;){const t=this._itemQueue.pop();super.next(t)}this._busyPushingNext=!1}}}let fZ=(()=>{class t extends dZ{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),pZ=(()=>{class t extends Te.y{constructor(t,e){super(n=>{const i=t.pipe(lZ(e)).subscribe({next:t=>n.next(t),error:t=>n.error(t),complete:()=>n.complete()});n.add(i)})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(fZ),i.LFG(hZ))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const gZ=t=>(...e)=>t.shift()(...e,(...e)=>gZ(t)(...e));let mZ=(()=>{class t extends mn{constructor(){super({})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),vZ=(()=>{class t{constructor(t,e){this._parentManager=t,this._pluginHandlers=e,this.plugins=[],this.registerHandlers()}get rootPlugins(){return this._parentManager&&this._parentManager.plugins||this.plugins}registerHandlers(){const t=this.getPluginHandlers();this.rootPlugins.push(...t)}getPluginHandlers(){return(this._pluginHandlers||[]).map(t=>t.handle?t.handle.bind(t):t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(t,12),i.LFG(HF,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),yZ=(()=>{class t extends pn.xQ{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),bZ=(()=>{class t{constructor(t,e,n,i,r,s){this._injector=t,this._actions=e,this._actionResults=n,this._pluginManager=i,this._stateStream=r,this._ngxsExecutionStrategy=s}
1dispatch(t){const e=this._ngxsExecutionStrategy.enter(()=>this.dispatchByEvents(t));return e.subscribe({error:t=>this._ngxsExecutionStrategy.leave(()=>{try{this._errorHandler=this._errorHandler||this._injector.get(i.qLn),this._errorHandler.handleError(t)}catch(e){}})}),e.pipe(lZ(this._ngxsExecutionStrategy))}dispatchByEvents(t){return Array.isArray(t)?0===t.length?(0,Se.of)(this._stateStream.getValue()):ha(t.map(t=>this.dispatchSingle(t))):this.dispatchSingle(t)}dispatchSingle(t){if(!XF(t)){const e=new Error(`This action doesn't have a type property: ${t.constructor.name}`);return(0,FF._)(e)}const e=this._stateStream.getValue();return gZ([...this._pluginManager.plugins,(t,n)=>{t!==e&&this._stateStream.next(t);const i=this.getActionResultStream(n);return i.subscribe(t=>this._actions.next(t)),this._actions.next({action:n,status:"DISPATCHED"}),this.createDispatchObservable(i)}])(e,t).pipe(Vu())}getActionResultStream(t){return this._actionResults.pipe(Ie(e=>e.action===t&&"DISPATCHED"!==e.status),Zn(1),Vu())}createDispatchObservable(t){return t.pipe(ZF(t=>{switch(t.status){case"SUCCESSFUL":return(0,Se.of)(this._stateStream.getValue());case"ERRORED":return(0,FF._)(t.error);default:return On.E}})).pipe(Vu())}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.zs3),i.LFG(fZ),i.LFG(yZ),i.LFG(vZ),i.LFG(mZ),i.LFG(hZ))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const _Z=t=>{Object.freeze(t);const e="function"==typeof t,n=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(i){n.call(t,i)&&(!e||"caller"!==i&&"callee"!==i&&"arguments"!==i)&&null!==t[i]&&("object"==typeof t[i]||"function"==typeof t[i])&&!Object.isFrozen(t[i])&&_Z(t[i])}),t};let wZ=(()=>{class t{constructor(t,e){this.isDevMode=t,this.isTestMode=e}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(YF),i.LFG(GF))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),xZ=(()=>{class t{constructor(t,e){this._host=t,this._config=e}get isIncorrectProduction(){return!this._host.isDevMode()&&this._config.developmentMode}get isIncorrectDevelopment(){return this._host.isDevMode()&&!this._config.developmentMode}verifyDevMode(){this._host.isTestMode()||(this.isIncorrectProduction?console.warn(VF.INCORRECT_PRODUCTION()):this.isIncorrectDevelopment&&console.warn(VF.INCORRECT_DEVELOPMENT()))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(wZ),i.LFG(JF))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),SZ=(()=>{class t{constructor(t,e,n,i){this._stateStream=t,this._dispatcher=e,this._config=n,i.verifyDevMode()}getRootStateOperations(){const t={getState:()=>this._stateStream.getValue(),setState:t=>this._stateStream.next(t),dispatch:t=>this._dispatcher.dispatch(t)};return this._config.developmentMode?this.ensureStateAndActionsAreImmutable(t):t}ensureStateAndActionsAreImmutable(t){return{getState:()=>t.getState(),setState:e=>{const n=_Z(e);return t.setState(n)},dispatch:e=>t.dispatch(e)}}setStateToTheCurrentWithNew(t){const e=this.getRootStateOperations(),n=e.getState();e.setState(Object.assign({},n,t.defaults))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(mZ),i.LFG(bZ),i.LFG(JF),i.LFG(xZ))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),TZ=(()=>{class t{constructor(t){this._internalStateOperations=t}createStateContext(t){const e=this._internalStateOperations.getRootStateOperations();function n(e){return eZ(e,t.path)}function i(n,i){const r=tZ(n,t.path,i),s=t.instance;if(s.ngxsOnChanges){const e=aZ(t,{currentAppState:n,newAppState:r});s.ngxsOnChanges(e)}return e.setState(r),r}function r(t,e){return i(t,e(n(t)))}return{getState:()=>n(e.getState()),patchState:t=>r(e.getState(),function(t){return e=>{if(Array.isArray(t))throw new Error(VF.PATCHING_ARRAY());if("object"!=typeof t)throw new Error(VF.PATCHING_PRIMITIVE());const n=Object.assign({},e);for(const i in t)n[i]=t[i];return n}}(t)),setState(t){const n=e.getState();return function(t){return"function"==typeof t}(t)?r(n,t):i(n,t)},dispatch:t=>e.dispatch(t)}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(SZ))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class CZ{static stateNameErrorMessage(t){return VF.STATE_NAME(t)}static checkCorrectStateName(t){if(!t)throw new Error(VF.STATE_NAME_PROPERTY());if(!this.stateNameRegex.test(t))throw new Error(this.stateNameErrorMessage(t))}static checkStateNameIsUnique(t,e){const n=this.getValidStateMeta(t).name,i=e[n];if(i&&i!==t)throw new Error(VF.STATE_UNIQUE(n,t.name,i.name));return n}static getValidStateMeta(t){const e=sZ(t);if(!e)throw new Error(VF.STATE_DECORATOR());return e}}CZ.stateNameRegex=new RegExp("^[a-zA-Z0-9_]+$");let EZ=(()=>{class t{constructor(t,e,n,i,r,s,o){this._injector=t,this._config=e,this._parentFactory=n,this._actions=i,this._actionResults=r,this._stateContextFactory=s,this._initialState=o,this._actionsSubscription=null,this._states=[],this._statesByName={},this._statePaths={},this.getRuntimeSelectorContext=OF(()=>{const t=this;function e(e){const n=t.statePaths[e];
1return n?oZ(n.split("."),t._config):null}return this._parentFactory?this._parentFactory.getRuntimeSelectorContext():{getStateGetter(t){let n=e(t);return n||((...i)=>(n||(n=e(t)),n?n(...i):void 0))},getSelectorOptions:e=>Object.assign({},t._config.selectorOptions,e||{})}})}get states(){return this._parentFactory?this._parentFactory.states:this._states}get statesByName(){return this._parentFactory?this._parentFactory.statesByName:this._statesByName}get statePaths(){return this._parentFactory?this._parentFactory.statePaths:this._statePaths}static cloneDefaults(t){let e={};return e=Array.isArray(t)?t.slice():function(t){return"object"==typeof t&&null!==t||"function"==typeof t}(t)?Object.assign({},t):void 0===t?{}:t,e}static checkStatesAreValid(t){t.forEach(CZ.getValidStateMeta)}ngOnDestroy(){this._actionsSubscription.unsubscribe()}add(e){t.checkStatesAreValid(e);const{newStates:n}=this.addToStatesMap(e);if(!n.length)return[];const i=function(t){const e=e=>{const n=t.find(t=>t===e);if(!n)throw new Error(`Child state not found: ${e}. \r\nYou may have forgotten to add states to module`);return n[QF].name};return t.reduce((t,n)=>{const{name:i,children:r}=n[QF];return t[i]=(r||[]).map(e),t},{})}(n),r=function(t){const e=[],n={},i=(r,s=[])=>{Array.isArray(s)||(s=[]),s.push(r),n[r]=!0,t[r].forEach(t=>{if(s.indexOf(t)>=0)throw new Error(`Circular dependency '${t}' is required by '${r}': ${s.join(" -> ")}`);n[t]||i(t,s.slice(0))}),e.indexOf(r)<0&&e.push(r)};return Object.keys(t).forEach(t=>i(t)),e.reverse()}(i),s=function(t,e={}){const n=(t,e)=>{for(const i in t)if(t.hasOwnProperty(i)&&t[i].indexOf(e)>=0){const e=n(t,i);return null!==e?`${e}.${i}`:i}return null};for(const i in t)if(t.hasOwnProperty(i)){const r=n(t,i);e[i]=r?`${r}.${i}`:i}return e}(i),o=function(t){return t.reduce((t,e)=>(t[e[QF].name]=e,t),{})}(n),a=[];for(const c of r){const e=o[c],n=s[c],i=e[QF];this.addRuntimeInfoToMeta(i,n);const r={name:c,path:n,isInitialised:!1,actions:i.actions,instance:this._injector.get(e),defaults:t.cloneDefaults(i.defaults)};this.hasBeenMountedAndBootstrapped(c,n)||a.push(r),this.states.push(r)}return a}
1addAndReturnDefaults(t){const e=this.add(t||[]);return{defaults:e.reduce((t,e)=>tZ(t,e.path,e.defaults),{}),states:e}}connectActionHandlers(){null===this._actionsSubscription&&(this._actionsSubscription=this._actions.pipe(Ie(t=>"DISPATCHED"===t.status),(0,Ce.zg)(({action:t})=>this.invokeActions(this._actions,t).pipe((0,De.U)(()=>({action:t,status:"SUCCESSFUL"})),ei({action:t,status:"CANCELED"}),Hn(e=>(0,Se.of)({action:t,status:"ERRORED",error:e}))))).subscribe(t=>this._actionResults.next(t)))}invokeActions(t,e){const n=XF(e),i=[];for(const s of this.states){const o=s.actions[n];if(o)for(const n of o){const o=this._stateContextFactory.createStateContext(s);try{let r=s.instance[n.fn](o,e);r instanceof Promise&&(r=(0,fn.D)(r)),r instanceof Te.y?(r=r.pipe(ei({})),n.options.cancelUncompleted&&(r=r.pipe(Mc(t.pipe(cZ(e)))))):r=(0,Se.of)({}).pipe(Vu()),i.push(r)}catch(r){i.push((0,FF._)(r))}}}return i.length||i.push((0,Se.of)({})),ha(i)}addToStatesMap(t){const e=[],n=this.statesByName;for(const i of t){const t=CZ.checkStateNameIsUnique(i,n);!n[t]&&(e.push(i),n[t]=i)}return{newStates:e}}addRuntimeInfoToMeta(t,e){this.statePaths[t.name]=e,t.path=e}hasBeenMountedAndBootstrapped(t,e){const n=void 0!==eZ(this._initialState,e);return this.statesByName[t]&&n}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.zs3),i.LFG(JF),i.LFG(t,12),i.LFG(fZ),i.LFG(yZ),i.LFG(TZ),i.LFG(PF,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),AZ=(()=>{class t{constructor(t,e,n){this.internalStateOperations=t,this.stateContextFactory=e,this.bootstrapper=n}ngxsBootstrap(t,e){this.internalStateOperations.getRootStateOperations().dispatch(t).pipe(Ie(()=>!!e),(0,oi.b)(()=>this.invokeInit(e.states)),(0,Ce.zg)(()=>this.bootstrapper.appBootstrapped$),Ie(t=>!!t)).subscribe(()=>this.invokeBootstrap(e.states))}invokeInit(t){for(const e of t){const t=e.instance;if(t.ngxsOnChanges){const n=aZ(e,{currentAppState:{},newAppState:this.internalStateOperations.getRootStateOperations().getState()});t.ngxsOnChanges(n)}t.ngxsOnInit&&t.ngxsOnInit(this.getStateContext(e)),e.isInitialised=!0}}invokeBootstrap(t){for(const e of t){const t=e.instance;t.ngxsAfterBootstrap&&t.ngxsAfterBootstrap(this.getStateContext(e))}}getStateContext(t){return this.stateContextFactory.createStateContext(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(SZ),i.LFG(TZ),i.LFG(NF))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();let IZ=(()=>{class t{constructor(t,e,n,i,r,s){this._stateStream=t,this._internalStateOperations=e,this._config=n,this._internalExecutionStrategy=i,this._stateFactory=r,this.initStateStream(s)}dispatch(t){return this._internalStateOperations.getRootStateOperations().dispatch(t)}select(t){const e=this.getStoreBoundSelectorFn(t);return this._stateStream.pipe((0,De.U)(e),Hn(t=>{const{suppressErrors:e}=this._config.selectorOptions;return t instanceof TypeError&&e?(0,Se.of)(void 0):(0,FF._)(t)}),Pc(),lZ(this._internalExecutionStrategy))}selectOnce(t){return this.select(t).pipe(Zn(1))}selectSnapshot(t){return this.getStoreBoundSelectorFn(t)(this._stateStream.getValue())}subscribe(t){return this._stateStream.pipe(lZ(this._internalExecutionStrategy)).subscribe(t)}snapshot(){return this._internalStateOperations.getRootStateOperations().getState()}reset(t){return this._internalStateOperations.getRootStateOperations().setState(t)}getStoreBoundSelectorFn(t){return function(t){const e=function(t){return t.NGXS_SELECTOR_META}(t)||sZ(t);return e&&e.makeRootSelector||(()=>t)}(t)(this._stateFactory.getRuntimeSelectorContext())}initStateStream(t){const e=this._stateStream.value;if(!e||0===Object.keys(e).length){const e=Object.keys(this._config.defaultsState).length>0?Object.assign({},this._config.defaultsState,t):t;this._stateStream.next(e)}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(mZ),i.LFG(SZ),i.LFG(JF),i.LFG(hZ),i.LFG(EZ),i.LFG(PF,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),kZ=(()=>{class t{constructor(e,n){t.store=e,t.config=n}ngOnDestroy(){t.store=null,t.config=null}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(IZ),i.LFG(JF))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t.store=null,t.config=null,t})();class OZ{static get type(){return"@@INIT"}}class DZ{constructor(t){this.addedStates=t}static get type(){return"@@UPDATE_STATE"}}const NZ=new qu(1);let PZ=(()=>{class t{constructor(e,n,r,s,o=[],a){!function(){try{const t=window.ng,e=!(t.probe&&t.coreTokens)&&(0,i.X6Q)();NZ.next(e)}
1catch(t){NZ.next(!1)}finally{NZ.complete()}}();const c=e.addAndReturnDefaults(o);n.setStateToTheCurrentWithNew(c),e.connectActionHandlers(),a.ngxsBootstrap(new OZ,c)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(EZ),i.LFG(SZ),i.LFG(IZ),i.LFG(kZ),i.LFG(BF,8),i.LFG(AZ))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),RZ=(()=>{class t{constructor(e,n,i,r=[],s){const o=t.flattenStates(r),a=i.addAndReturnDefaults(o);a.states.length&&(n.setStateToTheCurrentWithNew(a),s.ngxsBootstrap(new DZ(a.defaults),a))}static flattenStates(t=[]){return t.reduce((t,e)=>t.concat(e),[])}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(IZ),i.LFG(SZ),i.LFG(EZ),i.LFG(zF,8),i.LFG(AZ))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();class LZ{static forRoot(t=[],e={}){return{ngModule:PZ,providers:[EZ,TZ,pZ,fZ,NF,xZ,wZ,AZ,bZ,yZ,SZ,hZ,IZ,mZ,kZ,vZ,...t,...LZ.ngxsTokenProviders(t,e)]}}static forFeature(t=[]){return{ngModule:RZ,providers:[EZ,vZ,...t,{provide:zF,multi:!0,useValue:t}]}}static ngxsTokenProviders(t,e){return[{provide:GF,useValue:DF},{provide:YF,useValue:i.X6Q},{provide:KF,useClass:e.executionStrategy||jF},{provide:BF,useValue:t},{provide:LZ.ROOT_OPTIONS,useValue:e},{provide:JF,useFactory:LZ.ngxsConfigFactory,deps:[LZ.ROOT_OPTIONS]},{provide:i.tb,useFactory:LZ.appBootstrapListenerFactory,multi:!0,deps:[NF]},{provide:PF,useFactory:LZ.getInitialState},{provide:LF,useExisting:TZ},{provide:MF,useExisting:EZ}]}static ngxsConfigFactory(t){return iZ(new JF,t)}static appBootstrapListenerFactory(t){return()=>t.bootstrap()}static getInitialState(){return RF.pop()}}function MZ(t,e){return(n,i)=>{if(n.hasOwnProperty("prototype"))throw new Error(VF.ACTION_DECORATOR());const r=rZ(n.constructor);Array.isArray(t)||(t=[t]);for(const s of t){const t=s.type;r.actions[t]||(r.actions[t]=[]),r.actions[t].push({fn:i,options:e||{},type:t})}}}function FZ(t){return e=>{!function(t){NZ.subscribe(e=>{e&&(t.\u0275prov||console.warn(VF.UNDECORATED_STATE_IN_IVY(t.name)))})}(e);const n=e,i=rZ(n),r=Object.getPrototypeOf(n),s=function(e){return Object.assign({},e[$F]||{},t)}(r);(function(t){const{meta:e,inheritedStateClass:n,optionsWithInheritance:i}=t,{children:r,defaults:s,name:o}=i,a="string"==typeof o?o:o&&o.getName()||null;CZ.checkCorrectStateName(a),n.hasOwnProperty(QF)&&(e.actions=Object.assign({},e.actions,(n[QF]||{}).actions)),e.children=r,e.defaults=s,e.name=a})({meta:i,inheritedStateClass:r,optionsWithInheritance:s}),n[$F]=s}}function ZZ(t,...e){return function(n,i){const r=i.toString(),s=`__${r}__selector`,o=function(t,e,n=[]){return"string"==typeof(e=e||function(t){const e=t.length-1;return 36===t.charCodeAt(e)?t.slice(0,e):t}(t))?oZ(n.length?[e,...n]:e.split("."),kZ.config):e}(r,t,e);Object.defineProperties(n,{[s]:{writable:!0,enumerable:!1,configurable:!0},[r]:{enumerable:!0,configurable:!0,get(){return this[s]||(this[s]=function(t){if(!kZ.store)throw new Error(VF.SELECT_FACTORY_NOT_CONNECTED());return kZ.store.select(t)}(o))}}})}}LZ.\u0275fac=function(t){return new(t||LZ)},LZ.\u0275mod=i.oAB({type:LZ}),LZ.\u0275inj=i.cJS({}),LZ.ROOT_OPTIONS=new i.OlP("ROOT_OPTIONS");let qZ=(()=>{class t extends Lo{constructor(t){super(t),this.http=t}getAll(){return this.httpGet("/pages")}getById(t){return this.httpGet("/pages/"+t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ke))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),UZ=(()=>{class t extends Lo{constructor(t){super(t),this.http=t}getAll(){return this.httpGet("/materials")}getById(t){return this.httpGet("/materials/"+t)}getPersons(){return this.httpGet("/persons")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ke))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function VZ(t,e){if(1&t&&i._UZ(0,"p",9),2&t){const t=i.oxw().$implicit;i.Q6J("innerHTML",t.summary,i.oJD)}}function jZ(t,e){if(1&t&&(i.TgZ(0,"a",10),i._uU(1,"Descargar"),i.qZA()),2&t){const t=i.oxw().$implicit;i.s9C("href",t.url,i.LSH)}}function BZ(t,e){if(1&t&&(i.TgZ(0,"div",5),i.TgZ(1,"p"),i._uU(2),i.qZA(),i.TgZ(3,"p",6),i.TgZ(4,"b"),i._uU(5),i.qZA(),i.qZA(),i.YNc(6,VZ,1,1,"p",7),i.YNc(7,jZ,2,1,"a",8),i.qZA()),2&t){const t=e.$implicit,n=i.oxw(2);i.xp6(1),i.Gre("mat-author ",n.color,""),i.xp6(1),i.Oqu(t.author),i.xp6(3),i.Oqu(t.title),i.xp6(1),i.Q6J("ngIf",""!=t.summary),i.xp6(1),i.Q6J("ngIf",""!=t.url)}}function zZ(t,e){if(1&t&&(i.TgZ(0,"div",1),i.TgZ(1,"h3",2),i._uU(2,"materiales de consulta online "),i.qZA(),i.TgZ(3,"div",3),i.YNc(4,BZ,8,7,"div",4),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(4),i.Q6J("ngForOf",t.materials)}}let HZ=(()=>{class t{constructor(t,e){this.service=t,this.fs=e,this.materials=null,this.color=""}ngOnInit(){}ngOnChanges(t){this.color=this.fs.getColor(t.seccion.currentValue)}getMaterials(){let t=lo.tipoImagen.file;this.service.getAll().subscribe(e=>
1{this.materials=e.filter(t=>t.section.name==this.seccion),this.materials.forEach(e=>{let n=No.settings.urlImagenes;if(null!=e.resourcesReference){let i=e.resourcesReference.resources.filter(e=>e.type==t);if(null!=i&&i.length>0){let t=n.concat(i[0].name);e.url=t}else e.url=""}})})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(UZ),i.Y36(Fo))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-sp-materials"]],inputs:{seccion:"seccion"},features:[i.TTD],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"text-uppercase"],[1,"mat-container"],["class","mat-list",4,"ngFor","ngForOf"],[1,"mat-list"],[1,"mat-description"],["class","mat-author",3,"innerHTML",4,"ngIf"],[3,"href",4,"ngIf"],[1,"mat-author",3,"innerHTML"],[3,"href"]],template:function(t,e){1&t&&i.YNc(0,zZ,5,1,"div",0),2&t&&i.Q6J("ngIf",null!=e.materials&&e.materials.length>0)},directives:[ft,ht],styles:[".mat-author[_ngcontent-%COMP%]{color:#ff8672;font-size:16px;font-weight:300}.mat-description[_ngcontent-%COMP%]{font-weight:500;color:gray;font-size:16px;text-transform:uppercase}"]}),t})(),GZ=(()=>{class t extends Lo{constructor(t){super(t),this.http=t}getAll(){return this.httpGet("/books")}getById(t){return this.httpGet("/books/"+t)}getClasses(){return this.httpGet("/books/classes")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ke))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function YZ(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"li",6),i.TgZ(1,"a",7),i.NdJ("click",function(){const e=i.CHM(t).$implicit;return i.oxw(2).filtrar(e.name)}),i._uU(2),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit;i.xp6(2),i.Oqu(t.name)}}function QZ(t,e){if(1&t&&(i.TgZ(0,"a",16),i._UZ(1,"img",17),i.qZA()),2&t){const t=i.oxw().$implicit;i.s9C("href",t.file,i.LSH),i.xp6(1),i.s9C("src",t.url,i.LSH)}}function $Z(t,e){if(1&t&&(i.TgZ(0,"div",10),i.TgZ(1,"div",11),i.YNc(2,QZ,2,2,"a",12),i.qZA(),i.TgZ(3,"div",13),i.TgZ(4,"h3"),i._uU(5),i.qZA(),i._UZ(6,"p",14),i.TgZ(7,"p",15),i._uU(8),i.qZA(),i.TgZ(9,"p",15),i._uU(10),i.qZA(),i.TgZ(11,"p",15),i._uU(12),i.qZA(),i.qZA(),i.qZA()),2&t){const t=e.$implicit,n=i.oxw(2);i.xp6(2),i.Q6J("ngIf",""!=t.url),i.xp6(2),i.Gre("list-heading ",n.color,""),i.xp6(1),i.Oqu(t.title),i.xp6(1),i.Q6J("innerHTML",t.summary,i.oJD),i.xp6(2),i.Oqu(t.publisher),i.xp6(2),i.Oqu(t.edition),i.xp6(2),i.hij("",t.pages,"\xa0p\xe1ginas")}}function JZ(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",1),i.TgZ(1,"h3",2),i._uU(2,"Libros publicados"),i.qZA(),i.TgZ(3,"div",3),i.TgZ(4,"ul",4),i.YNc(5,YZ,3,1,"li",5),i.TgZ(6,"li",6),i.TgZ(7,"a",7),i.NdJ("click",function(){return i.CHM(t),i.oxw().getBooks()}),i._uU(8,"TODOS"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"div",8),i.YNc(10,$Z,13,9,"div",9),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(5),i.Q6J("ngForOf",t.classes),i.xp6(5),i.Q6J("ngForOf",t.booksFilter)}}let WZ=(()=>{class t{constructor(t,e){this.service=t,this.fs=e,this.books=null,this.booksFilter=null,this.classes=null,this.color=""}ngOnInit(){}setClases(){this.service.getClasses().subscribe(t=>{this.classes=t.filter(t=>this.mostrarClase(t.name))})}ngOnChanges(t){this.color=this.fs.getColor(t.seccion.currentValue)}filtrar(t){this.booksFilter=this.books.filter(e=>e.clase.name==t)}getBooks(){this.service.getAll().subscribe(t=>{this.books=t.filter(t=>t.section.name==this.seccion),this.books.forEach(t=>{let e=No.settings.urlImagenes,n=lo.tipoImagen.miniatura;if(null!=t.resourcesReference){let i=t.resourcesReference.resources.filter(t=>t.type==n);if(null!=i&&i.length>0){let n=e.concat(i[0].name);t.url=n}else t.url=""}if(e=No.settings.urlImagenes,n=lo.tipoImagen.file,null!=t.resourcesReference){let i=t.resourcesReference.resources.filter(t=>t.type==n);if(null!=i&&i.length>0){let n=e.concat(i[0].name);t.file=n}else t.file=""}}),this.booksFilter=this.books,this.setClases()})}mostrarClase(t){return this.books.filter(e=>e.clase.name==t).length>=1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(GZ),i.Y36(Fo))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-sp-books"]],inputs:{seccion:"seccion"},features:[i.TTD],decls:1,vars:1,consts:[["class","container","id","LIBROS",4,"ngIf"],["id","LIBROS",1,"container"],[1,"text-uppercase"],[1,"container-book"],[1,"list-inline"],["class","list-book",4,"ngFor","ngForOf"],[1,"list-book"],[3,"click"],[1,"mat-container"],["class","row row-eq-height  box-article",4,"ngFor","ngForOf"],[1,"row","row-eq-height","box-article"],[1,"col-xs-12","col-sm-4","img-culture"],[3,"href",4,"ngIf"],[1,"col-xs-12","col-sm-6"],[1,"culture-text",3,"innerHTML"],[1,"culture-text"],[3,"href"],[3,"src"]],template:function(t,e){1&t&&i.YNc(0,JZ,11,2,"div",0),2&t&&i.Q6J("ngIf",null!=e.books&&e.books.length>0)},directives:[ft,ht],styles:[""]}),t})(),KZ=(()=>{class t extends Lo{constructor(t){super(t),this.http=t}getAll(){return this.httpGet("/press")}getById(t){return this.httpGet("/press/"+t)}
1}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ke))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function XZ(t,e){if(1&t&&(i.TgZ(0,"a",13),i._UZ(1,"img",14),i.qZA()),2&t){const t=i.oxw().$implicit;i.s9C("href",t.file,i.LSH),i.xp6(1),i.s9C("src",t.url,i.LSH)}}function tq(t,e){if(1&t&&(i.TgZ(0,"div",6),i.TgZ(1,"div",7),i.YNc(2,XZ,2,2,"a",8),i.qZA(),i.TgZ(3,"div",9),i.TgZ(4,"p"),i._uU(5),i.qZA(),i._UZ(6,"p",10),i.TgZ(7,"p",11),i._uU(8),i.qZA(),i._UZ(9,"p",12),i.qZA(),i.qZA()),2&t){const t=e.$implicit,n=i.oxw(2);i.xp6(2),i.Q6J("ngIf",""!=t.url),i.xp6(2),i.Gre("list-heading ",n.color,""),i.xp6(1),i.Oqu(t.title),i.xp6(1),i.Q6J("innerHTML",t.summary,i.oJD),i.xp6(2),i.Oqu(t.subtitle),i.xp6(1),i.Q6J("innerHTML",t.content,i.oJD)}}function eq(t,e){if(1&t&&(i.TgZ(0,"div",1),i.TgZ(1,"h3",2),i._uU(2,"Prensa"),i.qZA(),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i.YNc(5,tq,10,8,"div",5),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(5),i.Q6J("ngForOf",t.datos)}}let nq=(()=>{class t{constructor(t,e){this.service=t,this.fs=e,this.datos=null,this.color=""}ngOnInit(){}ngOnChanges(t){this.color=this.fs.getColor(t.seccion.currentValue)}getBooks(){let t=lo.tipoImagen.miniatura;this.service.getAll().subscribe(e=>{this.datos=e.filter(t=>t.section.name==this.seccion),this.datos.forEach(e=>{let n=No.settings.urlImagenes;if(null!=e.resourcesReference){let i=e.resourcesReference.resources.filter(e=>e.type==t);if(null!=i&&i.length>0){let t=n.concat(i[0].name);e.url=t}else e.url=""}if(t=lo.tipoImagen.file,null!=e.resourcesReference){let i=e.resourcesReference.resources.filter(e=>e.type==t);if(null!=i&&i.length>0){let t=n.concat(i[0].name);e.file=t}else e.file=""}})})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(KZ),i.Y36(Fo))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-sp-news"]],inputs:{seccion:"seccion"},features:[i.TTD],decls:1,vars:1,consts:[["class","container","id","PRENSA",4,"ngIf"],["id","PRENSA",1,"container"],[1,"text-uppercase"],[1,"container-book"],[1,"mat-container"],["class","row row-eq-height  box-article",4,"ngFor","ngForOf"],[1,"row","row-eq-height","box-article"],[1,"col-xs-12","col-sm-4","img-culture"],[3,"href",4,"ngIf"],[1,"col-xs-12","col-sm-6"],[1,"culture-text",3,"innerHTML"],[1,"culture-text"],[1,"culture-text2",3,"innerHTML"],[3,"href"],[3,"src"]],template:function(t,e){1&t&&i.YNc(0,eq,6,1,"div",0),2&t&&i.Q6J("ngIf",null!=e.datos&&e.datos.length>0)},directives:[ft,ht],styles:[""]}),t})();function iq(t,e){if(1&t&&(i.TgZ(0,"div",4),i.TgZ(1,"p",5),i._uU(2),i.qZA(),i.TgZ(3,"p",6),i._uU(4),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(2),i.Oqu(t.position.name),i.xp6(2),i.Oqu(t.fullname)}}let rq=(()=>{class t{constructor(t){this.service=t,this.persons=[]}ngOnInit(){this.service.getPersons().subscribe(t=>{this.persons=t})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(UZ))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-staff"]],decls:5,vars:1,consts:[[1,"container","contenedor"],[1,"tittle"],[1,"health-heading"],["class","staff-list",4,"ngFor","ngForOf"],[1,"staff-list"],[1,"black"],[1,"blue"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"h2",2),i._uU(3,"Consejo de Administraci\xf3n"),i.qZA(),i.qZA(),i.YNc(4,iq,5,2,"div",3),i.qZA()),2&t&&(i.xp6(4),i.Q6J("ngForOf",e.persons))},directives:[ht],styles:['.staff-list[_ngcontent-%COMP%]{border-bottom:1px solid rgb(197,197,197);padding:10px 0}.tittle[_ngcontent-%COMP%]{margin-right:5%;margin-left:5%;height:110px}.health-heading[_ngcontent-%COMP%]{font-weight:900;font-size:45px;font-family:"Nunito","Arial","Helvetica";text-align:center;text-transform:uppercase;line-height:5.6rem;color:#797979;outline-color:#797979;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}@media (max-width:480px){.health-heading[_ngcontent-%COMP%]{font-size:35px}}']}),t})();function sq(t,e){if(1&t&&i._UZ(0,"div",8),2&t){const t=i.oxw(2);i.Q6J("innerHTML",t.urlSafe,i.oJD)}}function oq(t,e){if(1&t&&(i.TgZ(0,"div",6),i.TgZ(1,"h2"),i._uU(2),i.qZA(),i.YNc(3,sq,1,1,"div",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Gre("",t.getColor(t.page.sectionId.name)," health-heading"),i.xp6(1),i.Oqu(t.page.title),i.xp6(1),i.Q6J("ngIf",null!=t.page.content)}}function aq(t,e){if(1&t&&i._UZ(0,"app-sp-materials",9),2&t){const t=i.oxw();i.Q6J("seccion",t.page.sectionId.name)}}function cq(t,e){if(1&t&&i._UZ(0,"app-sp-books",9),2&t){const t=i.oxw();i.Q6J("seccion",t.page.sectionId.name)}}function uq(t,e){if(1&t&&i._UZ(0,"app-sp-news",9),2&t){const t=i.oxw();i.Q6J("seccion",t.page.sectionId.name)}}function lq(t,e){1&t&&i._UZ(0,"app-staff")}function hq(t,e){if(1&t&&(i.TgZ(0,"div",10),i.YNc(1,lq,1,0,"app-staff",11),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngIf",t.isShown)}}class dq{constructor(t,e,n,i,r){this.ps=t,this.fs=e,this.route=n,this.sanitizer=i,this.router=r,this.alive=!0,this.isShown=!1}ngOnInit(){this.route.params.subscribe(t=>{t.id?(this.paramId=t.id,this.loadPage(this.paramId)):t.section&&this.ps.getAll().subscribe(e=>{let n=e.find(e=>e.url==t.section);this.loadPage(null==n?void 0:n.id),n||("diagnosis"===t.section?this.parametersState$.subscribe(t=>{let e=t.parameters.find(t=>"ps_diagnosis_id"==t.key);this.paramId=e?Number.parseInt(e.value):null,this.loadPage(this.paramId)}):"todavia"===t.section?this.ps.getAll().subscribe(t=>{let e=t.find(t=>"Revista Todavia"==t.menuTitle);this.loadPage(null==e?void 0:e.id)}):this.router.navigate(["index"]))})}),this.route.fragment.subscribe(t=>{this.scrollToAnchor(t)})}loadPage(t){t&&this.ps.getById(t).subscribe(t=>{t?(this.page=t,this.urlSafe=null!=this.page.content?this.sanitizer.bypassSecurityTrustHtml(this.unescapeHTML(this.page.content)):this.page.content):this.router.navigate(["index"])})}getColor(t){return this.fs.getColor(t)}scrollToAnchor(t,e=2e3){document.querySelector("#"+t),this.isShown="STAFF"==t}ngOnDestroy(){this.alive=!1}getSourceImage(t){let e=t.toLowerCase();return"sustentabilidad"==e?"assets/img/sustentabilidad.svg":"promoci\xf3n de la salud"==e?"assets/img/promocion_de_salud.svg":"sociedad"==e?"assets/img/sociedad.svg":"cultura y arte"==e?"assets/img/arteycultura.svg":"innovaci\xf3n"==e?"assets/img/innovacion.svg":void 0}unescapeHTML(t){return t.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/(&quot\;)/g,'"').replace(/&nbsp;/g," ").replace(/&amp;/g,"&")}}dq.\u0275fac=function(t){return new(t||dq)(i.Y36(qZ),i.Y36(Fo),i.Y36(br),i.Y36(fe),i.Y36(Vs))},dq.\u0275cmp=i.Xpm({type:dq,selectors:[["app-static-page"]],decls:8,vars:5,consts:[["class","container contenedor",4,"ngIf"],["id","MATERIALES"],[3,"seccion",4,"ngIf"],["id","LIBROS"],["id","PRENSA"],["id","STAFF",4,"ngIf"],[1,"container","contenedor"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"seccion"],["id","STAFF"],[4,"ngIf"]],template:function(t,e){1&t&&(i.YNc(0,oq,4,5,"div",0),i.TgZ(1,"div",1),i.YNc(2,aq,1,1,"app-sp-materials",2),i.qZA(),i.TgZ(3,"div",3),i.YNc(4,cq,1,1,"app-sp-books",2),i.qZA(),i.TgZ(5,"div",4),i.YNc(6,uq,1,1,"app-sp-news",2),i.qZA(),i.YNc(7,hq,2,1,"div",5)),2&t&&(i.Q6J("ngIf",null!=e.page&&!e.isShown),i.xp6(2),i.Q6J("ngIf",null!=e.page),i.xp6(2),i.Q6J("ngIf",null!=e.page),i.xp6(2),i.Q6J("ngIf",null!=e.page),i.xp6(1),i.Q6J("ngIf",null!=e.page&&"Nosotros"==e.page.sectionId.name))},directives:[ft,HZ,WZ,nq,rq],styles:[".heightMin[_ngcontent-%COMP%]{min-height:59vh}"]}),aa([ZZ(t=>t.parameters)],dq.prototype,"parametersState$",void 0);let fq=(()=>{class t{constructor(){this.urlApiRest="",this.urlImagenes="",this.version=""}ngOnInit(){this.urlApiRest=lo.urlApiRest,this.urlImagenes=No.settings.urlImagenes,this.version=No.settings.version}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-info"]],decls:13,vars:3,consts:[[2,"color","rgb(109, 99, 99)","font-size","13px"]],template:function(t,e){1&t&&(i.TgZ(0,"div"),i._UZ(1,"br"),i._UZ(2,"br"),i._UZ(3,"br"),i._UZ(4,"br"),i._UZ(5,"br"),i._UZ(6,"br"),i.TgZ(7,"p",0),i._uU(8),i.qZA(),i.TgZ(9,"p",0),i._uU(10),i.qZA(),i.TgZ(11,"p",0),i._uU(12),i.qZA(),i.qZA()),2&t&&(i.xp6(8),i.hij(" \xa0\xa0\xa0URL API REST: ",e.urlApiRest,"\n"),i.xp6(2),i.hij(" \xa0\xa0\xa0URL IMAGENES: ",e.urlImagenes,"\n"),i.xp6(2),i.hij(" \xa0\xa0\xa0VERSION FRONTEND: ",e.version,"\n"))},styles:[""]}),t})();function pq(t,e){1&t&&(i.TgZ(0,"p",13),i._uU(1," El e-mail es requerido "),i.qZA())}function gq(t,e){1&t&&(i.TgZ(0,"p",13),i._uU(1," El e-mail ingresado no es v\xe1lido "),i.qZA())}function mq(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,pq,2,0,"p",12),i.YNc(2,gq,2,0,"p",12),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.correo.errors.required&&t.submitted),i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.correo.errors.email&&t.submitted)}}let vq=(()=>{class t{constructor(t,e){this.authService=t,this.formBuilder=e,this.submitted=!1}ngOnInit(){this.aFormGroup=this.formBuilder.group({correo:["",[Ta.required,Ta.email]]})}onSubmit(){this.submitted=!0,this.aFormGroup.valid&&this.authService.forgotPassword(this.aFormGroup.controls.correo.value)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(AP),i.Y36(Tc))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-recuperar-pass"]],decls:17,vars:2,consts:[[1,"lgx-contactform",3,"formGroup","ngSubmit"],[1,"container","justify-content-center","mt"],[1,"row"],[1,"col-md-6","col-xs-12","col-md-offset-3","border-registration"],[1,"register-tittle"],[1,"col-xs-12","col-md-6","col-md-offset-3"],[1,"form-registration"],[1,"form-group"],["for","message-text",1,"control-label","text-grey"],["type","text","formControlName","correo","name","correo","id","correo",1,"form-control"],[4,"ngIf"],["type","submit",1,"btn","btn-block","btn-create"],["style","color: red; font-size: 13px",4,"ngIf"],[2,"color","red","font-size","13px"]],template:function(t,e){1&t&&(i.TgZ(0,"form",0),i.NdJ("ngSubmit",function(){return e.onSubmit()}),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i.TgZ(5,"h4"),i._uU(6,"Recuperar contrase\xf1a"),i.qZA(),i.qZA(),i.TgZ(7,"div",2),i.TgZ(8,"div",5),i.TgZ(9,"div",6),i.TgZ(10,"div",7),i.TgZ(11,"label",8),i._uU(12,"E-mail *"),i.qZA(),i._UZ(13,"input",9),i.YNc(14,mq,3,2,"div",10),i.qZA(),i.TgZ(15,"button",11),i._uU(16," RECUPERAR "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.Q6J("formGroup",e.aFormGroup),i.xp6(14),i.Q6J("ngIf",e.aFormGroup.controls.correo.errors))},directives:[pc,Ya,yc,ya,Ga,_c,ft],styles:[""]}),t})();function yq(t,e){if(1&t){var n=i.EpF();i.TgZ(0,"a",11),i.NdJ("keyup.enter",function(){return i.CHM(n),i.oxw(3),i.MAs(1).previous()})("click",function(){return i.CHM(n),i.oxw(3),i.MAs(1).previous()}),i._uU(1),i.TgZ(2,"span",12),i._uU(3),i.qZA(),i.qZA()}if(2&t){var r=i.oxw(3);i.uIk("aria-label",r.previousLabel+" "+r.screenReaderPageLabel),i.xp6(1),i.hij(" ",r.previousLabel," "),i.xp6(2),i.Oqu(r.screenReaderPageLabel)}}function bq(t,e){if(1&t&&(i.TgZ(0,"span"),i._uU(1),i.TgZ(2,"span",12),i._uU(3),i.qZA(),i.qZA()),2&t){var n=i.oxw(3);i.xp6(1),i.hij(" ",n.previousLabel," "),i.xp6(2),i.Oqu(n.screenReaderPageLabel)}}function _q(t,e){if(1&t&&(i.TgZ(0,"li",8),i.YNc(1,yq,4,3,"a",9),i.YNc(2,bq,4,2,"span",10),i.qZA()),2&t){i.oxw(2);var n=i.MAs(1);i.ekj("disabled",n.isFirstPage()),i.xp6(1),i.Q6J("ngIf",1<n.getCurrent()),i.xp6(1),i.Q6J("ngIf",n.isFirstPage())}}function wq(t,e){if(1&t){var n=i.EpF();i.TgZ(0,"a",11),i.NdJ("keyup.enter",function(){i.CHM(n);var t=i.oxw().$implicit;return i.oxw(2),i.MAs(1).setCurrent(t.value)})("click",function(){i.CHM(n);var t=i.oxw().$implicit;return i.oxw(2),i.MAs(1).setCurrent(t.value)}),i.TgZ(1,"span",12),i._uU(2),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"number"),i.qZA(),i.qZA()}if(2&t){var r=i.oxw().$implicit,s=i.oxw(2);i.xp6(2),i.hij("",s.screenReaderPageLabel," "),i.xp6(2),i.Oqu("..."===r.label?r.label:i.xi3(5,2,r.label,""))}}function xq(t,e){if(1&t&&(i.ynx(0),i.TgZ(1,"span",12),i._uU(2),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"number"),i.qZA(),i.BQk()),2&t){var n=i.oxw().$implicit,r=i.oxw(2);i.xp6(2),i.hij("",r.screenReaderCurrentLabel," "),i.xp6(2),i.Oqu("..."===n.label?n.label:i.xi3(5,2,n.label,""))}}function Sq(t,e){if(1&t&&(i.TgZ(0,"li"),i.YNc(1,wq,6,5,"a",9),i.YNc(2,xq,6,5,"ng-container",10),i.qZA()),2&t){var n=e.$implicit;i.oxw(2);var r=i.MAs(1);i.ekj("current",r.getCurrent()===n.value)("ellipsis","..."===n.label),i.xp6(1),i.Q6J("ngIf",r.getCurrent()!==n.value),i.xp6(1),i.Q6J("ngIf",r.getCurrent()===n.value)}}function Tq(t,e){if(1&t){var n=i.EpF();i.TgZ(0,"a",11),i.NdJ("keyup.enter",function(){return i.CHM(n),i.oxw(3),i.MAs(1).next()})("click",function(){return i.CHM(n),i.oxw(3),i.MAs(1).next()}),i._uU(1),i.TgZ(2,"span",12),i._uU(3),i.qZA(),i.qZA()}if(2&t){var r=i.oxw(3);i.uIk("aria-label",r.nextLabel+" "+r.screenReaderPageLabel),i.xp6(1),i.hij(" ",r.nextLabel," "),i.xp6(2),i.Oqu(r.screenReaderPageLabel)}}function Cq(t,e){if(1&t&&(i.TgZ(0,"span"),i._uU(1),i.TgZ(2,"span",12),i._uU(3),i.qZA(),i.qZA()),2&t){var n=i.oxw(3);i.xp6(1),i.hij(" ",n.nextLabel," "),i.xp6(2),i.Oqu(n.screenReaderPageLabel)}}function Eq(t,e){if(1&t&&(i.TgZ(0,"li",13),i.YNc(1,Tq,4,3,"a",9),i.YNc(2,Cq,4,2,"span",10),i.qZA()),2&t){i.oxw(2);var n=i.MAs(1);i.ekj("disabled",n.isLastPage()),i.xp6(1),i.Q6J("ngIf",!n.isLastPage()),i.xp6(1),i.Q6J("ngIf",n.isLastPage())}}function Aq(t,e){if(1&t&&(i.TgZ(0,"ul",3),i.YNc(1,_q,3,4,"li",4),i.TgZ(2,"li",5),i._uU(3),i.qZA(),i.YNc(4,Sq,3,6,"li",6),i.YNc(5,Eq,3,4,"li",7),i.qZA()),2&t){var n=i.oxw(),r=i.MAs(1);i.ekj("responsive",n.responsive),i.uIk("aria-label",n.screenReaderPaginationLabel),i.xp6(1),i.Q6J("ngIf",n.directionLinks),i.xp6(2),i.AsE(" ",r.getCurrent()," / ",r.getLastPage()," "),i.xp6(1),i.Q6J("ngForOf",r.pages),i.xp6(1),i.Q6J("ngIf",n.directionLinks)}}var Iq=function(){function t(){this.change=new i.vpe,this.instances={},this.DEFAULT_ID="DEFAULT_PAGINATION_ID"}return t.prototype.defaultId=function(){return this.DEFAULT_ID},t.prototype.register=function(t){null==t.id&&(t.id=this.DEFAULT_ID),this.instances[t.id]?this.updateInstance(t)&&this.change.emit(t.id):(this.instances[t.id]=t,this.change.emit(t.id))},t.prototype.updateInstance=function(t){var e=!1;for(var n in this.instances[t.id])t[n]!==this.instances[t.id][n]&&(this.instances[t.id][n]=t[n],e=!0);return e},t.prototype.getCurrentPage=function(t){if(this.instances[t])return this.instances[t].currentPage},t.prototype.setCurrentPage=function(t,e){if(this.instances[t]){var n=this.instances[t];e<=Math.ceil(n.totalItems/n.itemsPerPage)&&1<=e&&(this.instances[t].currentPage=e,this.change.emit(t))}},t.prototype.setTotalItems=function(t,e){this.instances[t]&&0<=e&&(this.instances[t].totalItems=e,this.change.emit(t))},t.prototype.setItemsPerPage=function(t,e){this.instances[t]&&(this.instances[t].itemsPerPage=e,this.change.emit(t))},t.prototype.getInstance=function(t){return void 0===t&&(t=this.DEFAULT_ID),this.instances[t]?this.clone(this.instances[t]):{}},t.prototype.clone=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),kq=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Oq=Number.MAX_SAFE_INTEGER,Dq=function(){function t(t){this.service=t,this.state={}}return t.prototype.transform=function(t,e){if(!(t instanceof Array)){var n=e.id||this.service.defaultId();return this.state[n]?this.state[n].slice:t}var i,r,s=e.totalItems&&e.totalItems!==t.length,o=this.createInstance(t,e),a=o.id,c=o.itemsPerPage;if(this.service.register(o),!s&&t instanceof Array){if(this.stateIsIdentical(a,t,i=(o.currentPage-1)*(c=+c||Oq),r=i+c))return this.state[a].slice;var u=t.slice(i,r);return this.saveState(a,t,u,i,r),this.service.change.emit(a),u}return this.saveState(a,t,t,i,r),t},t.prototype.createInstance=function(t,e){return this.checkConfig(e),{id:null!=e.id?e.id:this.service.defaultId(),itemsPerPage:+e.itemsPerPage||0,currentPage:+e.currentPage||1,totalItems:+e.totalItems||t.length}},t.prototype.checkConfig=function(t){var e=["itemsPerPage","currentPage"].filter(function(e){return!(e in t)});if(0<e.length)throw new Error("PaginatePipe: Argument is missing the following required properties: "+e.join(", "))},t.prototype.saveState=function(t,e,n,i,r){this.state[t]={collection:e,size:e.length,slice:n,start:i,end:r}},t.prototype.stateIsIdentical=function(t,e,n,i){var r=this.state[t];return!!r&&!(r.size!==e.leng
1th||r.start!==n||r.end!==i)&&r.slice.every(function(t,i){return t===e[n+i]})},(t=function(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}([kq("design:paramtypes",[Iq])],t)).\u0275fac=function(e){return new(e||t)(i.Y36(Iq,16))},t.\u0275pipe=i.Yjl({name:"paginate",type:t,pure:!1}),t}(),Nq=function(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o},Pq=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};function Rq(t){return!!t&&"false"!==t}var Lq=function(){function t(){this.maxSize=7,this.previousLabel="Previous",this.nextLabel="Next",this.screenReaderPaginationLabel="Pagination",this.screenReaderPageLabel="page",this.screenReaderCurrentLabel="You're on page",this.pageChange=new i.vpe,this._directionLinks=!0,this._autoHide=!1,this._responsive=!1}return Object.defineProperty(t.prototype,"directionLinks",{get:function(){return this._directionLinks},set:function(t){this._directionLinks=Rq(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoHide",{get:function(){return this._autoHide},set:function(t){this._autoHide=Rq(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"responsive",{get:function(){return this._responsive},set:function(t){this._responsive=Rq(t)},enumerable:!0,configurable:!0}),Nq([(0,i.IIB)(),Pq("design:type",String)],t.prototype,"id",void 0),Nq([(0,i.IIB)(),Pq("design:type",Number)],t.prototype,"maxSize",void 0),Nq([(0,i.IIB)(),Pq("design:type",Boolean),Pq("design:paramtypes",[Boolean])],t.prototype,"directionLinks",null),Nq([(0,i.IIB)(),Pq("design:type",Boolean),Pq("design:paramtypes",[Boolean])],t.prototype,"autoHide",null),Nq([(0,i.IIB)(),Pq("design:type",Boolean),Pq("design:paramtypes",[Boolean])],t.prototype,"responsive",null),Nq([(0,i.IIB)(),Pq("design:type",String)],t.prototype,"previousLabel",void 0),Nq([(0,i.IIB)(),Pq("design:type",String)],t.prototype,"nextLabel",void 0),Nq([(0,i.IIB)(),Pq("design:type",String)],t.prototype,"screenReaderPaginationLabel",void 0),Nq([(0,i.IIB)(),Pq("design:type",String)],t.prototype,"screenReaderPageLabel",void 0),Nq([(0,i.IIB)(),Pq("design:type",String)],t.prototype,"screenReaderCurrentLabel",void 0),Nq([(0,i.r_U)(),Pq("design:type",i.vpe)],t.prototype,"pageChange",void 0),t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["pagination-controls"]],inputs:{maxSize:"maxSize",previousLabel:"previousLabel",nextLabel:"nextLabel",screenReaderPaginationLabel:"screenReaderPaginationLabel",screenReaderPageLabel:"screenReaderPageLabel",screenReaderCurrentLabel:"screenReaderCurrentLabel",directionLinks:"directionLinks",autoHide:"autoHide",responsive:"responsive",id:"id"},outputs:{pageChange:"pageChange"},decls:3,vars:3,consts:[[3,"id","maxSize","pageChange"],["p","paginationApi"],["class","ngx-pagination","role","navigation",3,"responsive",4,"ngIf"],["role","navigation",1,"ngx-pagination"],["class","pagination-previous",3,"disabled",4,"ngIf"],[1,"small-screen"],[3,"current","ellipsis",4,"ngFor","ngForOf"],["class","pagination-next",3,"disabled",4,"ngIf"],[1,"pagination-previous"],["tabindex","0",3,"keyup.enter","click",4,"ngIf"],[4,"ngIf"],["tabindex","0",3,"keyup.enter","click"],[1,"show-for-sr"],[1,"pagination-next"]],template:function(t,e){if(1&t&&(i.TgZ(0,"pagination-template",0,1),i.NdJ("pageChange",function(t){return e.pageChange.emit(t)}),i.YNc(2,Aq,6,8,"ul",2),i.qZA()),2&t){var n=i.MAs(1);i.Q6J("id",e.id)("maxSize",e.maxSize),i.xp6(2),i.Q6J("ngIf",!(e.autoHide&&n.pages.length<=1))}},directives:function(){return[Zq,ft,ht]},pipes:function(){return[Dt]},styles:["\n.ngx-pagination {\n  margin-left: 0;\n  margin-bottom: 1rem; }\n  .ngx-pagination::before, .ngx-pagination::after {\n    content: ' ';\n    display: table; }\n  .ngx-pagination::after {\n    clear: both; }
1\n  .ngx-pagination li {\n    -moz-user-select: none;\n    -webkit-user-select: none;\n    -ms-user-select: none;\n    margin-right: 0.0625rem;\n    border-radius: 0; }\n  .ngx-pagination li {\n    display: inline-block; }\n  .ngx-pagination a,\n  .ngx-pagination button {\n    color: #0a0a0a; \n    display: block;\n    padding: 0.1875rem 0.625rem;\n    border-radius: 0; }\n    .ngx-pagination a:hover,\n    .ngx-pagination button:hover {\n      background: #e6e6e6; }\n  .ngx-pagination .current {\n    padding: 0.1875rem 0.625rem;\n    background: #2199e8;\n    color: #fefefe;\n    cursor: default; }\n  .ngx-pagination .disabled {\n    padding: 0.1875rem 0.625rem;\n    color: #cacaca;\n    cursor: default; } \n    .ngx-pagination .disabled:hover {\n      background: transparent; }\n  .ngx-pagination a, .ngx-pagination button {\n    cursor: pointer; }\n\n.ngx-pagination .pagination-previous a::before,\n.ngx-pagination .pagination-previous.disabled::before { \n  content: '\xab';\n  display: inline-block;\n  margin-right: 0.5rem; }\n\n.ngx-pagination .pagination-next a::after,\n.ngx-pagination .pagination-next.disabled::after {\n  content: '\xbb';\n  display: inline-block;\n  margin-left: 0.5rem; }\n\n.ngx-pagination .show-for-sr {\n  position: absolute !important;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0); }\n.ngx-pagination .small-screen {\n  display: none; }\n@media screen and (max-width: 601px) {\n  .ngx-pagination.responsive .small-screen {\n    display: inline-block; } \n  .ngx-pagination.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next) {\n    display: none; }\n}\n  "],encapsulation:2,changeDetection:0}),t}(),Mq=function(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o},Fq=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Zq=function(){function t(t,e){var n=this;this.service=t,this.changeDetectorRef=e,this.maxSize=7,this.pageChange=new i.vpe,this.pages=[],this.changeSub=this.service.change.subscribe(function(t){n.id===t&&(n.updatePageLinks(),n.changeDetectorRef.markForCheck(),n.changeDetectorRef.detectChanges())})}return t.prototype.ngOnInit=function(){void 0===this.id&&(this.id=this.service.defaultId()),this.updatePageLinks()},t.prototype.ngOnChanges=function(t){this.updatePageLinks()},t.prototype.ngOnDestroy=function(){this.changeSub.unsubscribe()},t.prototype.previous=function(){this.checkValidId(),this.setCurrent(this.getCurrent()-1)},t.prototype.next=function(){this.checkValidId(),this.setCurrent(this.getCurrent()+1)},t.prototype.isFirstPage=function(){return 1===this.getCurrent()},t.prototype.isLastPage=function(){return this.getLastPage()===this.getCurrent()},t.prototype.setCurrent=function(t){this.pageChange.emit(t)},t.prototype.getCurrent=function(){return this.service.getCurrentPage(this.id)},t.prototype.getLastPage=function(){var t=this.service.getInstance(this.id);return t.totalItems<1?1:Math.ceil(t.totalItems/t.itemsPerPage)},t.prototype.getTotalItems=function(){return this.service.getInstance(this.id).totalItems},t.prototype.checkValidId=function(){null==this.service.getInstance(this.id).id&&console.warn('PaginationControlsDirective: the specified id "'+this.id+'" does not match any registered PaginationInstance')},t.prototype.updatePageLinks=function(){var t=this,e=this.service.getInstance(this.id),n=this.outOfBoundCorrection(e);n!==e.currentPage?setTimeout(function(){t.setCurrent(n),t.pages=t.createPageArray(e.currentPage,e.itemsPerPage,e.totalItems,t.maxSize)}):this.pages=this.createPageArray(e.currentPage,e.itemsPerPage,e.totalItems,this.maxSize)},t.prototype.outOfBoundCorrection=function(t){var e=Math.ceil(t.totalItems/t.itemsPerPage);return e<t.currentPage&&0<e?e:t.currentPage<1?1:t.currentPage},t.prototype.createPageArray=function(t,e,n,i){i=+i;for(var r=[],s=Math.ceil(n/e),o=Math.ceil(i/2),a=t<=o,c=s-o<t,u=!a&&!c,l=i<s,h=1;h<=s&&h<=i;){var d=this.calculatePageNumber(h,t,i,s);r.push({label:l&&(2===h&&(u||c)||h===i-1&&(u||a))?"...":d,value:d}),h++}return r},t.prototype.calculatePageNumber=function(t,e,n,i){var r=Math.ceil(n/2);return t===n?i:1===t?t:n<i?i-r<e?i-n+t:r<e?e-r+t:t:t},Mq([(0,i.IIB)(),Fq("design:type",String)],t.prototype,"id",void 0),Mq([(0,i.IIB)(),Fq("design:type",Number)],t.prototype,"maxSize",void 0),Mq([(0,i.r_U)(),Fq("design:type",i.vpe)],t.prototype,"pageChange",void 0),(t=Mq([Fq("design:paramtypes",[Iq,i.sBO])],t)).\u0275fac=function(e){return new(e||t)(i.Y36(Iq),i.Y36(i.sBO))},t.\u0275dir=i.lG2({type:t,selectors:[["pagination-template"],["","pagination-template",""]],inputs:{maxSize:"maxSize",id:"id"},outputs:{pageChange:"pageChange"},exportAs:["paginationApi"],features:[i.TTD]}),t}(),qq=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[Iq],imports:[[Pt]]}),t}();function Uq(t,e){1&t&&(i.TgZ(0,"div"),i.TgZ(1,"h3",8),i._uU(2,"No se han encontrado eventos"),i.qZA(),i.qZA())}function Vq(t,e){1&t&&(i.TgZ(0,"div",9),i._UZ(1,"div",10),i._UZ(2,"div",11),i._UZ(3,"div",12),i._UZ(4,"div",13),i._UZ(5,"div",14),i._UZ(6,"div",15),i._UZ(7,"div",16),i._UZ(8,"div",17),i._UZ(9,"div",18),i.qZA())}function jq(t,e){if(1&t&&i._UZ(0,"p",24),2&t){const t=i.oxw().$implicit;i.Q6J("innerHTML",t.urlSafe,i.oJD)}}function Bq(t,e){if(1&t){const t=i.EpF();
1i.TgZ(0,"div",19),i.TgZ(1,"a",20),i.NdJ("click",function(){const e=i.CHM(t).$implicit;return i.oxw(2).clickVerEvento(e.id)}),i.TgZ(2,"p"),i._uU(3),i.ALo(4,"uppercase"),i.qZA(),i.TgZ(5,"p",21),i._uU(6),i.qZA(),i.TgZ(7,"p",22),i.TgZ(8,"b"),i._uU(9),i.qZA(),i.qZA(),i.YNc(10,jq,1,1,"p",23),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(2);i.xp6(2),i.Gre("mat-author ",n.getColor(t.sectionId.name),""),i.xp6(1),i.Oqu(i.lcZ(4,7,t.expositor)),i.xp6(3),i.Oqu(t.title),i.xp6(3),i.Oqu(t.subtitle),i.xp6(1),i.Q6J("ngIf",""!=t.content)}}const zq=function(t){return{itemsPerPage:3,currentPage:t}};function Hq(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",1),i.TgZ(1,"h3",2),i._uU(2,"Eventos encontrados "),i.qZA(),i.YNc(3,Uq,3,0,"div",3),i.YNc(4,Vq,10,0,"div",4),i.TgZ(5,"div",5),i.YNc(6,Bq,11,9,"div",6),i.ALo(7,"paginate"),i.TgZ(8,"pagination-controls",7),i.NdJ("pageChange",function(e){return i.CHM(t),i.oxw().p=e}),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(3),i.Q6J("ngIf",!t.loading&&null!=t.eventos&&0==t.eventos.length),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(2),i.Q6J("ngForOf",i.xi3(7,3,t.eventos,i.VKq(6,zq,t.p)))}}let Gq=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.fs=n,this.service=i,this.sanitizer=r,this.eventos=[],this.loading=!0}ngOnInit(){this.route.params.subscribe(t=>{let e=t.text;this.loading=!0,this.service.findByTexto(e).subscribe(t=>{this.loading=!1,(t=t.filter(t=>t.statusId.name==lo.estadoPublicado)).forEach(t=>{if(this.fs.setInfoEvent(t,lo.tipoImagen.home),null!=t.content){let e=t.content;e=e.split("&lt;").join("<");let n=e.split("&gt;").join(">");n=n.replace("<p>","").replace("</p>",""),n=n.split("&quot;").join(""),t.urlSafe=this.sanitizer.bypassSecurityTrustHtml(n)}}),this.eventos=t},t=>{console.log(t),this.loading=!1})})}getColor(t){return this.fs.getColor(t)}clickVerEvento(t){this.router.navigate(["/event",t])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Vs),i.Y36(br),i.Y36(Fo),i.Y36(Mo),i.Y36(fe))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-event-result"]],features:[i._Bn([])],decls:5,vars:1,consts:[["class","container contenedor",4,"ngIf"],[1,"container","contenedor"],[1,"text-uppercase"],[4,"ngIf"],["class","sk-cube-grid",4,"ngIf"],[1,"mat-container"],["class","mat-list",4,"ngFor","ngForOf"],["maxSize","5","directionLinks","true","autoHide","true","responsive","true","previousLabel","Anterior","nextLabel","Siguiente",1,"my-pagination","text-center",3,"pageChange"],[1,"blue"],[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"],[1,"mat-list"],[1,"author-img",3,"routerLink","click"],[1,"mat-description}"],[1,"mat-description"],["class","mat-description",3,"innerHTML",4,"ngIf"],[1,"mat-description",3,"innerHTML"]],template:function(t,e){1&t&&(i._UZ(0,"br"),i._UZ(1,"br"),i._UZ(2,"br"),i._UZ(3,"br"),i.YNc(4,Hq,9,8,"div",0)),2&t&&(i.xp6(4),i.Q6J("ngIf",null!=e.eventos))},directives:[ft,ht,Lq,Bs],pipes:[Dq,kt],styles:[".my-pagination[_ngcontent-%COMP%]     .ngx-pagination .current{background:#5887DA}.mat-container[_ngcontent-%COMP%]{min-height:10.2em}.sk-cube-grid[_ngcontent-%COMP%]{width:50px;height:50px;margin:100px auto}.sk-cube-grid[_ngcontent-%COMP%]   .sk-cube[_ngcontent-%COMP%]{width:33%;height:33%;background-color:#3528e8;float:left;-webkit-animation:sk-cubeGridScaleDelay 1.3s infinite ease-in-out;animation:sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%]   .sk-cube1[_ngcontent-%COMP%]{-webkit-animation-delay:.2s;animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%]   .sk-cube2[_ngcontent-%COMP%]{-webkit-animation-delay:.3s;animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%]   .sk-cube3[_ngcontent-%COMP%]{-webkit-animation-delay:.4s;animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%]   .sk-cube4[_ngcontent-%COMP%]{-webkit-animation-delay:.1s;animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%]   .sk-cube5[_ngcontent-%COMP%]{-webkit-animation-delay:.2s;animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%]   .sk-cube6[_ngcontent-%COMP%]{-webkit-animation-delay:.3s;animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%]   .sk-cube7[_ngcontent-%COMP%]{-webkit-animation-delay:0s;animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%]   .sk-cube8[_ngcontent-%COMP%]{-webkit-animation-delay:.1s;animation-delay:.1s}
1.sk-cube-grid[_ngcontent-%COMP%]   .sk-cube9[_ngcontent-%COMP%]{-webkit-animation-delay:.2s;animation-delay:.2s}@-webkit-keyframes sk-cubeGridScaleDelay{0%,70%,to{transform:scale(1)}35%{transform:scale(0)}}@keyframes sk-cubeGridScaleDelay{0%,70%,to{transform:scale(1)}35%{transform:scale(0)}}"]}),t})(),Yq=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-anteriores"]],decls:8,vars:0,consts:[[1,"container"],[1,"calendar-head","text-center","blue"],[1,"row","text-center"],["id","option-selection"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i._UZ(1,"br"),i._UZ(2,"br"),i._UZ(3,"br"),i.TgZ(4,"h2",1),i._uU(5,"EVENTOS ANTERIORES"),i.qZA(),i.TgZ(6,"div",2),i._UZ(7,"div",3),i.qZA(),i.qZA())},styles:[""]}),t})();function Qq(t,e){1&t&&(i.TgZ(0,"p",22),i._uU(1," El nombre y el apellido son requeridos"),i.qZA())}function $q(t,e){if(1&t&&(i.TgZ(0,"div",14),i._UZ(1,"div",20),i.YNc(2,Qq,2,0,"p",21),i.qZA()),2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngIf",t.aFormGroup.controls.nombre.errors.required&&t.submitted)}}function Jq(t,e){1&t&&(i.TgZ(0,"p",22),i._uU(1,"El n\xfamero de documento es requerido"),i.qZA())}function Wq(t,e){1&t&&(i.TgZ(0,"p",22),i._uU(1,"El n\xfamero de documento debe tener entre 5 y 8 d\xedgitos"),i.qZA())}function Kq(t,e){1&t&&(i.TgZ(0,"p",22),i._uU(1,"El n\xfamero de documento no debe comenzar con 0"),i.qZA())}function Xq(t,e){if(1&t&&(i.TgZ(0,"div",14),i._UZ(1,"div",20),i.YNc(2,Jq,2,0,"p",21),i.YNc(3,Wq,2,0,"p",21),i.YNc(4,Kq,2,0,"p",21),i.qZA()),2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngIf",t.aFormGroup.controls.nrodocumento.errors.required&&t.submitted),i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.nrodocumento.errors.minlength&&t.submitted),i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.nrodocumento.errors.pattern&&t.submitted)}}function tU(t,e){1&t&&(i.TgZ(0,"p",22),i._uU(1," El e-mail es requerido"),i.qZA())}function eU(t,e){1&t&&(i.TgZ(0,"p",22),i._uU(1,"El e-mail ingresado no es v\xe1lido"),i.qZA())}function nU(t,e){if(1&t&&(i.TgZ(0,"div",14),i._UZ(1,"div",20),i.YNc(2,tU,2,0,"p",21),i.YNc(3,eU,2,0,"p",21),i.qZA()),2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngIf",t.aFormGroup.controls.correo.errors.required&&t.submitted),i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.correo.errors.email&&t.submitted)}}function iU(t,e){1&t&&(i.TgZ(0,"p",22),i._uU(1," Seleccione No soy robot"),i.qZA())}function rU(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",23),i.TgZ(1,"div",20),i._uU(2,"\xa0"),i.qZA(),i.TgZ(3,"ngx-recaptcha2",24,25),i.NdJ("reset",function(){return i.CHM(t),i.oxw().handleReset()})("expire",function(){return i.CHM(t),i.oxw().handleExpire()})("error",function(){return i.CHM(t),i.oxw().handleError()})("load",function(){return i.CHM(t),i.oxw().handleLoad()})("success",function(e){return i.CHM(t),i.oxw().handleSuccess(e)}),i.qZA(),i.YNc(5,iU,2,0,"p",21),i.qZA()}if(2&t){const t=i.oxw();i.xp6(3),i.Q6J("siteKey",t.getKey)("useGlobalDomain",!1),i.xp6(2),i.Q6J("ngIf",t.aFormGroup.controls.recaptcha.errors&&t.submitted)}}let sU=(()=>{class t{constructor(t,e,n,i){this.router=t,this.userService=e,this.formBuilder=n,this.authService=i,this.submitted=!1,this.habilitarBoton=!0,this.usuarioLoguedo=!0,this.getKey=lo.siteKey}ngOnInit(){this.aFormGroup=this.formBuilder.group({recaptcha:["",Ta.required],nombre:["",Ta.required],nrodocumento:["",[Ta.required,Ta.minLength(5),Ta.maxLength(8),Ta.pattern("^[1-9][0-9]*")]],correo:["",[Ta.required,Ta.email]],empresa:[""]}),this.authService.isLogged&&(this.uid=this.authService.userData.uid,null!=this.uid&&this.userService.getById(this.uid).subscribe(t=>ua(this,void 0,void 0,function*(){this.id=t.id,this.user=t,this.aFormGroup.controls.nombre.setValue(this.user.name),this.aFormGroup.controls.nrodocumento.setValue(this.user.dni),this.aFormGroup.controls.empresa.setValue(this.user.empresa);var e=yield this.checkProvidermail().then(t=>t);"google.com"!=e&&"facebook.com"!=e?this.aFormGroup.controls.correo.setValue(this.user.email):(this.aFormGroup.controls.correo.setValue(this.user.email),this.aFormGroup.controls.correo.disable())})))}
1checkMailEdit(){return this.aFormGroup.controls.correo.value!=this.authService.userData.email}checkProvidermail(){return this.authService.checkProvider()}onSubmit(){this.submitted=!0,this.aFormGroup.valid&&this.editUser()}editUser(){if(this.editarNombre(),this.user.email!=this.aFormGroup.controls.correo.value){let t=this.aFormGroup.controls.correo.value;this.authService.afAuth.currentUser.then(e=>{e.updateEmail(t).then(()=>{this.edirUserBack()}).catch(t=>{console.log("error: ",t),"auth/requires-recent-login"==t.code&&window.alert("Esta operaci\xf3n es sensible y requiere autenticaci\xf3n reciente."),"auth/email-already-in-use"==t.code&&window.alert("La direcci\xf3n de correo electr\xf3nico ya est\xe1 siendo utilizada por otra cuenta. Por favor ingrese otra")})})}else this.edirUserBack()}editarNombre(){var t=this.aFormGroup.controls.nombre.value;t!=this.user.name&&this.authService.editName(t)}edirUserBack(){let t=this.authService.userData.uid;null!=t&&this.userService.edit(this.id,t,this.aFormGroup.controls.nombre.value,this.aFormGroup.controls.nrodocumento.value,this.aFormGroup.controls.empresa.value,this.aFormGroup.controls.correo.value).subscribe(t=>{this.user=t,window.alert("El perfil se modifico correctamente."),this.router.navigate(["myProfile"]).then(t=>{window.location.reload()})})}registrar(){this.ingreseModal.openModal()}handleSuccess(t){this.habilitarBoton=!0}googleAuth(){this.authService.googleAuth()}facebookAuth(){this.authService.facebookAuth()}handleReset(){}handleExpire(){}handleError(){}handleLoad(){}recuperarPassword(){this.router.navigate(["passRecovery"])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Vs),i.Y36(hy),i.Y36(Tc),i.Y36(AP))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-editar"]],viewQuery:function(t,e){if(1&t&&i.Gf(FP,7),2&t){let t;i.iGM(t=i.CRH())&&(e.ingreseModal=t.first)}},decls:37,vars:5,consts:[[1,"lgx-contactform",3,"formGroup","ngSubmit"],[1,"container","justify-content-center","mt"],[1,"row"],[1,"col-md-8","col-xs-12","col-md-offset-2","border-registration"],[1,"register-tittle"],[1,"col-xs-12","col-md-7"],[1,"form-registration"],[1,"form-group"],["for","message-text","for","nombre",1,"control-label","text-grey","col-sm-4"],["type","text","formControlName","nombre","name","nombre","id","nombre",1,"form-control"],["class","col-sm-12",4,"ngIf"],["for","message-text",1,"control-label","text-grey","col-sm-4"],["mask","99999999","type","text","formControlName","nrodocumento","name","nrodocumento","id","nrodocumento",1,"form-control"],["type","text","formControlName","empresa","name","empresa","id","empresa",1,"form-control"],[1,"col-sm-12"],["type","text","formControlName","correo","name","correo","id","correo",1,"form-control"],[1,"text-center"],[1,"cursor-pointer",3,"click"],["class","form-group","style","transform:scale(0.87);transform-origin:0 0;",4,"ngIf"],["type","submit",1,"btn","btn-blockedit","btn-create"],[1,"col-sm-4"],["style","color:red;font-size:13px;",4,"ngIf"],[2,"color","red","font-size","13px"],[1,"form-group",2,"transform","scale(0.87)","transform-origin","0 0"],["formControlName","recaptcha",1,"form-group",3,"siteKey","useGlobalDomain","reset","expire","error","load","success"],["recaptcha",""]],template:function(t,e){1&t&&(i.TgZ(0,"form",0),i.NdJ("ngSubmit",function(){return e.onSubmit()}),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i.TgZ(5,"h4"),i._uU(6,"EDITAR PERFIL"),i.qZA(),i.qZA(),i.TgZ(7,"div",2),i.TgZ(8,"div",5),i.TgZ(9,"div",6),i.TgZ(10,"div",7),i.TgZ(11,"label",8),i._uU(12,"Nombre y Apellido *"),i.qZA(),i._UZ(13,"input",9),i.YNc(14,$q,3,1,"div",10),i.qZA(),i.TgZ(15,"div",7),i.TgZ(16,"label",11),i._uU(17,"N\xfamero de documento *"),i.qZA(),i._UZ(18,"input",12),i.YNc(19,Xq,5,3,"div",10),i.qZA(),i.TgZ(20,"div",7),i.TgZ(21,"label",11),i._uU(22,"Empresa / Instituci\xf3n"),i.qZA(),i._UZ(23,"input",13),i._UZ(24,"div",14),i.qZA(),i.TgZ(25,"div",7),i.TgZ(26,"label",11),i._uU(27,"E-mail *"),i.qZA(),i._UZ(28,"input",15),i.YNc(29,nU,4,2,"div",10),i.qZA(),i.TgZ(30,"p",16),i.TgZ(31,"a",17),i.NdJ("click",function(){return e.recuperarPassword()}),i._uU(32,"Desea cambiar la contrase\xf1a"),i.qZA(),i.qZA(),i.YNc(33,r
1U,6,3,"div",18),i.TgZ(34,"button",19),i._uU(35,"EDITAR CUENTA"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i._UZ(36,"app-ingreso-modal")),2&t&&(i.Q6J("formGroup",e.aFormGroup),i.xp6(14),i.Q6J("ngIf",e.aFormGroup.controls.nombre.errors),i.xp6(5),i.Q6J("ngIf",e.aFormGroup.controls.nrodocumento.errors),i.xp6(10),i.Q6J("ngIf",e.aFormGroup.controls.correo.errors),i.xp6(4),i.Q6J("ngIf",null!=e.getKey))},directives:[pc,Ya,yc,ya,Ga,_c,ft,iM,FP,hM],styles:[".capthaRequerido[_ngcontent-%COMP%]{border:1px solid#d74b3e}.form-control[_ngcontent-%COMP%]{width:65%}.text-grey[_ngcontent-%COMP%]{font-size:14px;height:45px;margin-top:2%;line-height:15px;font-weight:300}.form-group[_ngcontent-%COMP%]{width:100%}.mb-btn[_ngcontent-%COMP%]{margin-top:15px}.benefits-details[_ngcontent-%COMP%]   .list-unstyled[_ngcontent-%COMP%]{font-weight:300;font-size:15px}.benefits-details[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-weight:700}@media (max-width: 767px){.form-control[_ngcontent-%COMP%]{width:100%}.text-grey[_ngcontent-%COMP%]{height:auto}}.btn-blockedit[_ngcontent-%COMP%]{display:block}"]}),t})();const oU=function(){return["/"]},aU=[{path:"",component:Ug},{path:"index",component:Ug},{path:"event/:id",component:QL},{path:"registration",component:DM},{path:"registration/:id",component:DM},{path:"inscription/:id",component:BM},{path:"myProfile",component:eF},{path:"mailVerification",component:iF},{path:"largeEvent/:id",component:yF},{path:"news/:id",component:TF},{path:"event/preview/:id",component:AF},{path:"page/:section/:id",component:dq},{path:"agenda",component:(()=>{class t{constructor(t,e){this.service=t,this.route=e,this.persons=[]}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(UZ),i.Y36(br))},t.\u0275cmp=i.Xpm({type:t,selectors:[["page-agenda"]],decls:1,vars:0,template:function(t,e){1&t&&i._UZ(0,"app-agenda")},directives:[qg],styles:[""]}),t})()},{path:":section",component:dq},{path:"espaciodearte",component:(()=>{class t{constructor(t){this.activatedroute=t}ngOnInit(){this.activatedroute.data.subscribe(t=>{this.url=t.externalUrl}),window.location.href=this.url}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(br))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-redirect"]],decls:1,vars:0,template:function(t,e){1&t&&i._uU(0,"redireccionando...")},encapsulation:2}),t})(),data:{externalUrl:"https://artefundacionosde.com.ar"}},{path:"info",component:fq},{path:"passRecovery",component:vq},{path:"search/:text",component:Gq},{path:"staff",component:rq},{path:"previous",component:Yq},{path:"edit",component:sU},{path:"event/unsubcribe/:token",component:(()=>{class t{constructor(t,e){this.route=t,this.service=e,this.token="",this.ok=!1,this.errors=!1}ngOnInit(){this.route.params.subscribe(t=>{this.token=t.token;let e=this.token.split("-");if(2==e.length){let t=e[0].trim(),n=e[1].trim();this.service.unsuscribeEvent(t,n).subscribe(t=>{this.ok=!0},t=>{this.errors=!0,console.log(t)})}})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(br),i.Y36(Mo))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-event-unsubscribe"]],decls:16,vars:6,consts:[["id","lgx-contact",1,"lgx-contact"],[1,"lgx-inner"],[1,"container"],[1,"row"],[1,"col-sm-12","col-md-6",3,"hidden"],["href","#",3,"routerLink"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i.TgZ(5,"h3"),i._uU(6,"Hemos cancelado su inscripci\xf3n al evento."),i.qZA(),i.TgZ(7,"h5"),i._uU(8," Gracias por avisarnos, si desea ir al sitio de la Fundaci\xf3n OSDE haga clic "),i.TgZ(9,"a",5),i._uU(10,"aqu\xed"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(11,"div",4),i.TgZ(12,"h5"),i._uU(13,"Hubo un error al realizar la desuscripci\xf3n al evento. "),i.TgZ(14,"a",5),i._uU(15,"Volver al sitio"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.xp6(4),i.Q6J("hidden",!e.ok),i.xp6(5),i.Q6J("routerLink",i.DdM(4,oU)),i.xp6(2),i.Q6J("hidden",!e.errors),i.xp6(3),i.Q6J("routerLink",i.DdM(5,oU)))},directives:[Bs],styles:[""]}),t})()},{path:":section",component:dq},{path:"diagnosis",component:dq},{path:"**",component:Ug}];let cU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[eo.forRoot(aU,{useHash:!1,anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],eo]}),t})();var uU=n(4022);function lU(t,e,n){return 0===n?[e]:(t.push(e),t)}const hU=["ulElement"],dU=["liElements"];function fU(t,e){}function pU(t,e){if(1&t&&i._UZ(0,"span",4),2&t){const t=e.match,n=e.query,r=i.oxw();i.Q6J("innerHtml",r.highlight(t,n),i.oJD)}}function gU(t,e){if(1&t&&(i.TgZ(0,"li",10,11),i._uU(2),i.qZA()),2&t){const t=i.oxw().$implicit;i.xp6(2),i.Oqu(t)}}function mU(t,e){}
1const vU=function(t,e,n,i){return{item:t,index:e,match:n,query:i}};function yU(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"li",12,11),i.NdJ("mouseenter",function(){i.CHM(t);const e=i.oxw().$implicit;return i.oxw(2).selectActive(e)}),i.TgZ(2,"a",13),i.NdJ("click",function(e){i.CHM(t);const n=i.oxw().$implicit;return i.oxw(2).selectMatch(n,e)}),i.YNc(3,mU,0,0,"ng-template",0),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(),e=t.$implicit,n=t.index,r=i.oxw(2),s=i.MAs(2);i.ekj("active",r.isActive(e)),i.Q6J("id",r.popupId+"-"+n)("@typeaheadAnimation",r.animationState),i.xp6(3),i.Q6J("ngTemplateOutlet",r.itemTemplate||s)("ngTemplateOutletContext",i.l5B(6,vU,e.item,n,e,r.query))}}function bU(t,e){if(1&t&&(i.YNc(0,gU,3,1,"li",8),i.YNc(1,yU,4,11,"li",9)),2&t){const t=e.$implicit;i.Q6J("ngIf",t.isHeader()),i.xp6(1),i.Q6J("ngIf",!t.isHeader())}}function _U(t,e){if(1&t&&(i.TgZ(0,"ul",5,6),i.YNc(2,bU,2,2,"ng-template",7),i.qZA()),2&t){const t=i.oxw();i.Udp("overflow-y",t.needScrollbar?"scroll":"auto")("height",t.needScrollbar?t.guiHeight:"auto"),i.xp6(2),i.Q6J("ngForOf",t.matches)}}function wU(t,e){if(1&t&&(i.TgZ(0,"h6",10),i._uU(1),i.qZA()),2&t){const t=i.oxw().$implicit;i.xp6(1),i.Oqu(t)}}function xU(t,e){}function SU(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",15,11),i.NdJ("click",function(e){i.CHM(t);const n=i.oxw().$implicit;return i.oxw(2).selectMatch(n,e)})("mouseenter",function(){i.CHM(t);const e=i.oxw().$implicit;return i.oxw(2).selectActive(e)}),i.YNc(2,xU,0,0,"ng-template",0),i.qZA()}if(2&t){const t=i.oxw(),e=t.$implicit,n=t.index,r=i.oxw(2),s=i.MAs(2);i.ekj("active",r.isActive(e)),i.Q6J("id",r.popupId+"-"+n)("@typeaheadAnimation",r.animationState),i.xp6(2),i.Q6J("ngTemplateOutlet",r.itemTemplate||s)("ngTemplateOutletContext",i.l5B(6,vU,e.item,n,e,r.query))}}function TU(t,e){if(1&t&&(i.YNc(0,wU,2,1,"h6",8),i.YNc(1,SU,3,11,"ng-template",14)),2&t){const t=e.$implicit;i.Q6J("ngIf",t.isHeader()),i.xp6(1),i.Q6J("ngIf",!t.isHeader())}}function CU(t,e){if(1&t&&i.YNc(0,TU,2,2,"ng-template",7),2&t){const t=i.oxw();i.Q6J("ngForOf",t.matches)}}const EU=function(t,e,n,i){return{matches:t,itemTemplate:e,query:n,$implicit:i}},AU={"\xc1":"A","\u0102":"A","\u1eae":"A","\u1eb6":"A","\u1eb0":"A","\u1eb2":"A","\u1eb4":"A","\u01cd":"A","\xc2":"A","\u1ea4":"A","\u1eac":"A","\u1ea6":"A","\u1ea8":"A","\u1eaa":"A","\xc4":"A","\u01de":"A","\u0226":"A","\u01e0":"A","\u1ea0":"A","\u0200":"A","\xc0":"A","\u1ea2":"A","\u0202":"A","\u0100":"A","\u0104":"A","\xc5":"A","\u01fa":"A","\u1e00":"A","\u023a":"A","\xc3":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u1e02":"B","\u1e04":"B","\u0181":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0106":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0108":"C","\u010a":"C","\u0187":"C","\u023b":"C","\u010e":"D","\u1e10":"D","\u1e12":"D","\u1e0a":"D","\u1e0c":"D","\u018a":"D","\u1e0e":"D","\u01f2":"D","\u01c5":"D","\u0110":"D","\u018b":"D","\u01f1":"DZ","\u01c4":"DZ","\xc9":"E","\u0114":"E","\u011a":"E","\u0228":"E","\u1e1c":"E","\xca":"E","\u1ebe":"E","\u1ec6":"E","\u1ec0":"E","\u1ec2":"E","\u1ec4":"E","\u1e18":"E","\xcb":"E","\u0116":"E","\u1eb8":"E","\u0204":"E","\xc8":"E","\u1eba":"E","\u0206":"E","\u0112":"E","\u1e16":"E","\u1e14":"E","\u0118":"E","\u0246":"E","\u1ebc":"E","\u1e1a":"E","\ua76a":"ET","\u1e1e":"F","\u0191":"F","\u01f4":"G","\u011e":"G","\u01e6":"G","\u0122":"G","\u011c":"G","\u0120":"G","\u0193":"G","\u1e20":"G","\u01e4":"G","\u1e2a":"H","\u021e":"H","\u1e28":"H","\u0124":"H","\u2c67":"H","\u1e26":"H","\u1e22":"H","\u1e24":"H","\u0126":"H","\xcd":"I","\u012c":"I","\u01cf":"I","\xce":"I","\xcf":"I","\u1e2e":"I","\u0130":"I","\u1eca":"I","\u0208":"I","\xcc":"I","\u1ec8":"I","\u020a":"I","\u012a":"I","\u012e":"I","\u0197":"I","\u0128":"I","\u1e2c":"I","\ua779":"D","\ua77b":"F","\ua77d":"G","\ua782":"R","\ua784":"S","\ua786":"T","\ua76c":"IS","\u0134":"J","\u0248":"J","\u1e30":"K","\u01e8":"K","\u0136":"K","\u2c69":"K","\ua742":"K","\u1e32":"K","\u0198":"K","\u1e34":"K","\ua740":"K","\ua744":"K","\u0139":"L","\u023d":"L","\u013d":"L","\u013b":"L","\u1e3c":"L","\u1e36":"L","\u1e38":"L","\u2c60":"L","\ua748":"L","\u1e3a":"L","\u013f"
1:"L","\u2c62":"L","\u01c8":"L","\u0141":"L","\u01c7":"LJ","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u0143":"N","\u0147":"N","\u0145":"N","\u1e4a":"N","\u1e44":"N","\u1e46":"N","\u01f8":"N","\u019d":"N","\u1e48":"N","\u0220":"N","\u01cb":"N","\xd1":"N","\u01ca":"NJ","\xd3":"O","\u014e":"O","\u01d1":"O","\xd4":"O","\u1ed0":"O","\u1ed8":"O","\u1ed2":"O","\u1ed4":"O","\u1ed6":"O","\xd6":"O","\u022a":"O","\u022e":"O","\u0230":"O","\u1ecc":"O","\u0150":"O","\u020c":"O","\xd2":"O","\u1ece":"O","\u01a0":"O","\u1eda":"O","\u1ee2":"O","\u1edc":"O","\u1ede":"O","\u1ee0":"O","\u020e":"O","\ua74a":"O","\ua74c":"O","\u014c":"O","\u1e52":"O","\u1e50":"O","\u019f":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\xd5":"O","\u1e4c":"O","\u1e4e":"O","\u022c":"O","\u01a2":"OI","\ua74e":"OO","\u0190":"E","\u0186":"O","\u0222":"OU","\u1e54":"P","\u1e56":"P","\ua752":"P","\u01a4":"P","\ua754":"P","\u2c63":"P","\ua750":"P","\ua758":"Q","\ua756":"Q","\u0154":"R","\u0158":"R","\u0156":"R","\u1e58":"R","\u1e5a":"R","\u1e5c":"R","\u0210":"R","\u0212":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua73e":"C","\u018e":"E","\u015a":"S","\u1e64":"S","\u0160":"S","\u1e66":"S","\u015e":"S","\u015c":"S","\u0218":"S","\u1e60":"S","\u1e62":"S","\u1e68":"S","\u0164":"T","\u0162":"T","\u1e70":"T","\u021a":"T","\u023e":"T","\u1e6a":"T","\u1e6c":"T","\u01ac":"T","\u1e6e":"T","\u01ae":"T","\u0166":"T","\u2c6f":"A","\ua780":"L","\u019c":"M","\u0245":"V","\ua728":"TZ","\xda":"U","\u016c":"U","\u01d3":"U","\xdb":"U","\u1e76":"U","\xdc":"U","\u01d7":"U","\u01d9":"U","\u01db":"U","\u01d5":"U","\u1e72":"U","\u1ee4":"U","\u0170":"U","\u0214":"U","\xd9":"U","\u1ee6":"U","\u01af":"U","\u1ee8":"U","\u1ef0":"U","\u1eea":"U","\u1eec":"U","\u1eee":"U","\u0216":"U","\u016a":"U","\u1e7a":"U","\u0172":"U","\u016e":"U","\u0168":"U","\u1e78":"U","\u1e74":"U","\ua75e":"V","\u1e7e":"V","\u01b2":"V","\u1e7c":"V","\ua760":"VY","\u1e82":"W","\u0174":"W","\u1e84":"W","\u1e86":"W","\u1e88":"W","\u1e80":"W","\u2c72":"W","\u1e8c":"X","\u1e8a":"X","\xdd":"Y","\u0176":"Y","\u0178":"Y","\u1e8e":"Y","\u1ef4":"Y","\u1ef2":"Y","\u01b3":"Y","\u1ef6":"Y","\u1efe":"Y","\u0232":"Y","\u024e":"Y","\u1ef8":"Y","\u0179":"Z","\u017d":"Z","\u1e90":"Z","\u2c6b":"Z","\u017b":"Z","\u1e92":"Z","\u0224":"Z","\u1e94":"Z","\u01b5":"Z","\u0132":"IJ","\u0152":"OE","\u1d00":"A","\u1d01":"AE","\u0299":"B","\u1d03":"B","\u1d04":"C","\u1d05":"D","\u1d07":"E","\ua730":"F","\u0262":"G","\u029b":"G","\u029c":"H","\u026a":"I","\u0281":"R","\u1d0a":"J","\u1d0b":"K","\u029f":"L","\u1d0c":"L","\u1d0d":"M","\u0274":"N","\u1d0f":"O","\u0276":"OE","\u1d10":"O","\u1d15":"OU","\u1d18":"P","\u0280":"R","\u1d0e":"N","\u1d19":"R","\ua731":"S","\u1d1b":"T","\u2c7b":"E","\u1d1a":"R","\u1d1c":"U","\u1d20":"V","\u1d21":"W","\u028f":"Y","\u1d22":"Z","\xe1":"a","\u0103":"a","\u1eaf":"a","\u1eb7":"a","\u1eb1":"a","\u1eb3":"a","\u1eb5":"a","\u01ce":"a","\xe2":"a","\u1ea5":"a","\u1ead":"a","\u1ea7":"a","\u1ea9":"a","\u1eab":"a","\xe4":"a","\u01df":"a","\u0227":"a","\u01e1":"a","\u1ea1":"a","\u0201":"a","\xe0":"a","\u1ea3":"a","\u0203":"a","\u0101":"a","\u0105":"a","\u1d8f":"a","\u1e9a":"a","\xe5":"a","\u01fb":"a","\u1e01":"a","\u2c65":"a","\xe3":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u1e03":"b","\u1e05":"b","\u0253":"b","\u1e07":"b","\u1d6c":"b","\u1d80":"b","\u0180":"b","\u0183":"b","\u0275":"o","\u0107":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0109":"c","\u0255":"c","\u010b":"c","\u0188":"c","\u023c":"c","\u010f":"d","\u1e11":"d","\u1e13":"d","\u0221":"d","\u1e0b":"d","\u1e0d":"d","\u0257":"d","\u1d91":"d","\u1e0f":"d","\u1d6d":"d","\u1d81":"d","\u0111":"d","\u0256":"d","\u018c":"d","\u0131":"i","\u0237":"j","\u025f":"j","\u0284":"j","\u01f3":"dz","\u01c6":"dz","\xe9":"e","\u0115":"e","\u011b":"e","\u0229":"e","\u1e1d":"e","\xea":"e","\u1ebf":"e","\u1ec7":"e","\u1ec1":"e","\u1ec3":"e","\u1ec5":"e","\u1e19":"e","\xeb":"e","\u0117":"e","\u1eb9":"e","\u0205":"e","\xe8":"e","\u1ebb":"e","\u0207":"e","\u0113":"e","\u1e17":"e","\u1e15":"e","\u2c78":"e","\u0119":"e","\u1d92":"e","\u0247":"e","\u1ebd":"e","\u1e1b":"e","\ua76b":"et","\u1e1f":"f","\u0192":"f","\u1d6e":"f","\u1d82":"f","\u01f5":"g","\u011f":"g","\u01e7":"g","\u0123":"g","\u011d":"g","\u0121":"g","\u0260":"g","\u1e21":"g","\u1d83":"g","\u01e5":"g","\u1e2b":"h","\u021f":"h","\u1e29":"h","\u0125":"h","\u2c68":"h","\u1e27":"h","\u1e23":"h","\u1e25":"h","\u0266":"h","\u1e96":"h","\u0127":"h","\u0195":"hv","\xed":"i","\u012d":"i","\u01d0":"i","\xee":"i","\xef":"i","\u1e2f"
1:"i","\u1ecb":"i","\u0209":"i","\xec":"i","\u1ec9":"i","\u020b":"i","\u012b":"i","\u012f":"i","\u1d96":"i","\u0268":"i","\u0129":"i","\u1e2d":"i","\ua77a":"d","\ua77c":"f","\u1d79":"g","\ua783":"r","\ua785":"s","\ua787":"t","\ua76d":"is","\u01f0":"j","\u0135":"j","\u029d":"j","\u0249":"j","\u1e31":"k","\u01e9":"k","\u0137":"k","\u2c6a":"k","\ua743":"k","\u1e33":"k","\u0199":"k","\u1e35":"k","\u1d84":"k","\ua741":"k","\ua745":"k","\u013a":"l","\u019a":"l","\u026c":"l","\u013e":"l","\u013c":"l","\u1e3d":"l","\u0234":"l","\u1e37":"l","\u1e39":"l","\u2c61":"l","\ua749":"l","\u1e3b":"l","\u0140":"l","\u026b":"l","\u1d85":"l","\u026d":"l","\u0142":"l","\u01c9":"lj","\u017f":"s","\u1e9c":"s","\u1e9b":"s","\u1e9d":"s","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u1d6f":"m","\u1d86":"m","\u0144":"n","\u0148":"n","\u0146":"n","\u1e4b":"n","\u0235":"n","\u1e45":"n","\u1e47":"n","\u01f9":"n","\u0272":"n","\u1e49":"n","\u019e":"n","\u1d70":"n","\u1d87":"n","\u0273":"n","\xf1":"n","\u01cc":"nj","\xf3":"o","\u014f":"o","\u01d2":"o","\xf4":"o","\u1ed1":"o","\u1ed9":"o","\u1ed3":"o","\u1ed5":"o","\u1ed7":"o","\xf6":"o","\u022b":"o","\u022f":"o","\u0231":"o","\u1ecd":"o","\u0151":"o","\u020d":"o","\xf2":"o","\u1ecf":"o","\u01a1":"o","\u1edb":"o","\u1ee3":"o","\u1edd":"o","\u1edf":"o","\u1ee1":"o","\u020f":"o","\ua74b":"o","\ua74d":"o","\u2c7a":"o","\u014d":"o","\u1e53":"o","\u1e51":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\xf5":"o","\u1e4d":"o","\u1e4f":"o","\u022d":"o","\u01a3":"oi","\ua74f":"oo","\u025b":"e","\u1d93":"e","\u0254":"o","\u1d97":"o","\u0223":"ou","\u1e55":"p","\u1e57":"p","\ua753":"p","\u01a5":"p","\u1d71":"p","\u1d88":"p","\ua755":"p","\u1d7d":"p","\ua751":"p","\ua759":"q","\u02a0":"q","\u024b":"q","\ua757":"q","\u0155":"r","\u0159":"r","\u0157":"r","\u1e59":"r","\u1e5b":"r","\u1e5d":"r","\u0211":"r","\u027e":"r","\u1d73":"r","\u0213":"r","\u1e5f":"r","\u027c":"r","\u1d72":"r","\u1d89":"r","\u024d":"r","\u027d":"r","\u2184":"c","\ua73f":"c","\u0258":"e","\u027f":"r","\u015b":"s","\u1e65":"s","\u0161":"s","\u1e67":"s","\u015f":"s","\u015d":"s","\u0219":"s","\u1e61":"s","\u1e63":"s","\u1e69":"s","\u0282":"s","\u1d74":"s","\u1d8a":"s","\u023f":"s","\u0261":"g","\u1d11":"o","\u1d13":"o","\u1d1d":"u","\u0165":"t","\u0163":"t","\u1e71":"t","\u021b":"t","\u0236":"t","\u1e97":"t","\u2c66":"t","\u1e6b":"t","\u1e6d":"t","\u01ad":"t","\u1e6f":"t","\u1d75":"t","\u01ab":"t","\u0288":"t","\u0167":"t","\u1d7a":"th","\u0250":"a","\u1d02":"ae","\u01dd":"e","\u1d77":"g","\u0265":"h","\u02ae":"h","\u02af":"h","\u1d09":"i","\u029e":"k","\ua781":"l","\u026f":"m","\u0270":"m","\u1d14":"oe","\u0279":"r","\u027b":"r","\u027a":"r","\u2c79":"r","\u0287":"t","\u028c":"v","\u028d":"w","\u028e":"y","\ua729":"tz","\xfa":"u","\u016d":"u","\u01d4":"u","\xfb":"u","\u1e77":"u","\xfc":"u","\u01d8":"u","\u01da":"u","\u01dc":"u","\u01d6":"u","\u1e73":"u","\u1ee5":"u","\u0171":"u","\u0215":"u","\xf9":"u","\u1ee7":"u","\u01b0":"u","\u1ee9":"u","\u1ef1":"u","\u1eeb":"u","\u1eed":"u","\u1eef":"u","\u0217":"u","\u016b":"u","\u1e7b":"u","\u0173":"u","\u1d99":"u","\u016f":"u","\u0169":"u","\u1e79":"u","\u1e75":"u","\u1d6b":"ue","\ua778":"um","\u2c74":"v","\ua75f":"v","\u1e7f":"v","\u028b":"v","\u1d8c":"v","\u2c71":"v","\u1e7d":"v","\ua761":"vy","\u1e83":"w","\u0175":"w","\u1e85":"w","\u1e87":"w","\u1e89":"w","\u1e81":"w","\u2c73":"w","\u1e98":"w","\u1e8d":"x","\u1e8b":"x","\u1d8d":"x","\xfd":"y","\u0177":"y","\xff":"y","\u1e8f":"y","\u1ef5":"y","\u1ef3":"y","\u01b4":"y","\u1ef7":"y","\u1eff":"y","\u0233":"y","\u1e99":"y","\u024f":"y","\u1ef9":"y","\u017a":"z","\u017e":"z","\u1e91":"z","\u0291":"z","\u2c6c":"z","\u017c":"z","\u1e93":"z","\u0225":"z","\u1e95":"z","\u1d76":"z","\u1d8e":"z","\u0290":"z","\u01b6":"z","\u0240":"z","\ufb00":"ff","\ufb03":"ffi","\ufb04":"ffl","\ufb01":"fi","\ufb02":"fl","\u0133":"ij","\u0153":"oe","\ufb06":"st","\u2090":"a","\u2091":"e","\u1d62":"i","\u2c7c":"j","\u2092":"o","\u1d63":"r","\u1d64":"u","\u1d65":"v","\u2093":"x"};class IU{constructor(t,e=t,n=!1){this.item=t,this.value=e,this.header=n}isHeader(){return this.header}toString(){return this.value}}function kU(t){return t?t.replace(/[^A-Za-z0-9\[\] ]/g,function(t){return AU[t]||t}):""}function OU(t,e=" ",n=""){const i=t.split(new RegExp(`(?:[${n}])([^${n}]+)(?:[${n}])|([^${e}]+)`,"g")),r=[],s=i.length;let o;const a=new RegExp(`[${n}]+`,"g");for(let c=0;c<s;c+=1)o=i[c],o&&o.length&&o!==e&&r.push(o.replace(a,""));return r}function DU(t,e){if(!e||"object"!=typeof t)return t.toString();
1if(e.endsWith("()"))return t[e.slice(0,e.length-2)]().toString();const n=e.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");for(const i of n)i in t&&(t=t[i]);return t?t.toString():""}const NU="220ms cubic-bezier(0, 0, 0.2, 1)",PU=Zl("typeaheadAnimation",[jl("animated-down",Vl({height:"*",overflow:"hidden"})),Bl("* => animated-down",[Vl({height:0,overflow:"hidden"}),ql(NU)]),jl("animated-up",Vl({height:"*",overflow:"hidden"})),Bl("* => animated-up",[Vl({height:"*",overflow:"hidden"}),ql(NU)]),Bl("* => unanimated",ql("0s"))]);let RU=0,LU=(()=>{class t{constructor(t,e,n,r){this.positionService=t,this.renderer=e,this.element=n,this.changeDetectorRef=r,this.activeChangeEvent=new i.vpe,this.isFocused=!1,this.height=0,this.popupId="ngb-typeahead-"+RU++,this._matches=[],this.isScrolledIntoView=function(t){const e=this.ulElement.nativeElement.scrollTop,n=e+Number(this.ulElement.nativeElement.offsetHeight),i=t.offsetTop;return i+t.offsetHeight<=n&&i>=e},this.renderer.setAttribute(this.element.nativeElement,"id",this.popupId),this.positionServiceSubscription=this.positionService.event$.subscribe(()=>{if(this.isAnimated)return this.animationState=this.isTopPosition?"animated-up":"animated-down",void this.changeDetectorRef.detectChanges();this.animationState="unanimated",this.changeDetectorRef.detectChanges()})}get isBs4(){return!vo()}get typeaheadTemplateMethods(){const t=this;return{selectMatch:this.selectMatch.bind(t),selectActive:this.selectActive.bind(t),isActive:this.isActive.bind(t)}}get active(){return this._active}set active(t){this._active=t,this.activeChanged()}get matches(){return this._matches}set matches(t){if(this.positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition}},allowedPositions:["top","bottom"]}),this._matches=t,this.needScrollbar=this.typeaheadScrollable&&this.typeaheadOptionsInScrollableView<this.matches.length,this.typeaheadScrollable&&setTimeout(()=>{this.setScrollableMode()}),this.typeaheadIsFirstItemActive&&this._matches.length>0&&(this.active=this._matches[0],this._active.isHeader()&&this.nextActiveMatch()),this._active&&!this.typeaheadIsFirstItemActive){const t=this._matches.find(t=>t.value===this._active.value);if(t)return void this.selectActive(t);this.active=null}}get isTopPosition(){return this.element.nativeElement.classList.contains("top")}get optionsListTemplate(){return this.parent?this.parent.optionsListTemplate:void 0}get isAnimated(){return!!this.parent&&this.parent.isAnimated}get adaptivePosition(){return!!this.parent&&this.parent.adaptivePosition}get typeaheadScrollable(){return!!this.parent&&this.parent.typeaheadScrollable}get typeaheadOptionsInScrollableView(){return this.parent?this.parent.typeaheadOptionsInScrollableView:5}get typeaheadIsFirstItemActive(){return!this.parent||this.parent.typeaheadIsFirstItemActive}get itemTemplate(){return this.parent?this.parent.typeaheadItemTemplate:void 0}selectActiveMatch(t){this._active&&this.parent.typeaheadSelectFirstItem&&this.selectMatch(this._active),!this.parent.typeaheadSelectFirstItem&&t&&this.selectMatch(this._active)}activeChanged(){const t=this.matches.indexOf(this._active);this.activeChangeEvent.emit(`${this.popupId}-${t}`)}prevActiveMatch(){const t=this.matches.indexOf(this._active);this.active=this.matches[t-1<0?this.matches.length-1:t-1],this._active.isHeader()&&this.prevActiveMatch(),this.typeaheadScrollable&&this.scrollPrevious(t)}nextActiveMatch(){const t=this.matches.indexOf(this._active);this.active=this.matches[t+1>this.matches.length-1?0:t+1],this._active.isHeader()&&this.nextActiveMatch(),this.typeaheadScrollable&&this.scrollNext(t)}selectActive(t){this.isFocused=!0,this.active=t}highlight(t,e){let n,i,r=t.value,s=(this.parent&&this.parent.typeaheadLatinize?kU(r):r).toLowerCase();if("object"==typeof e){const t=e.length;for(let o=0;o<t;o+=1)n=s.indexOf(e[o]),i=e[o].length,n>=0&&i>0&&(r=`${r.substring(0,n)}<strong>${r.substring(n,n+i)}</strong>${r.substring(n+i)}`,s=`${s.substring(0,n)}        ${" ".repeat(i)}         ${s.substring(n+i)}`)}else e&&(n=s.indexOf(e),i=e.length,n>=0&&i>0&&(r=`${r.substring(0,n)}<strong>${r.substring(n,n+i)}</strong>${r.substring(n+i)}`));return r}focusLost(){this.isFocused=!1}isActive(t){return this.active===t}selectMatch(t,e){return e&&(e.stopPropagation(),e.preventDefault()),this.parent.changeModel(t),setTimeout(()=>this.parent.typeaheadOnSelect.emit(t),0),!1}setScrollableMode(){if(this.ulElement||(this.ulElement=this.element),this.liElements.first){const t=bo.getStyles(this.ulElement.nativeElement),e=bo.getStyles(this.liElements.first.
1nativeElement),n=parseFloat((t["padding-bottom"]?t["padding-bottom"]:"").replace("px","")),i=parseFloat((t["padding-top"]?t["padding-top"]:"0").replace("px","")),r=parseFloat((e.height?e.height:"0").replace("px",""));this.guiHeight=`${this.typeaheadOptionsInScrollableView*r+i+n}px`}this.renderer.setStyle(this.element.nativeElement,"visibility","visible")}scrollPrevious(t){if(0!==t){if(this.liElements){const e=this.liElements.toArray()[t-1];e&&!this.isScrolledIntoView(e.nativeElement)&&(this.ulElement.nativeElement.scrollTop=e.nativeElement.offsetTop)}}else this.scrollToBottom()}scrollNext(t){if(t+1>this.matches.length-1)this.scrollToTop();else if(this.liElements){const e=this.liElements.toArray()[t+1];e&&!this.isScrolledIntoView(e.nativeElement)&&(this.ulElement.nativeElement.scrollTop=e.nativeElement.offsetTop-Number(this.ulElement.nativeElement.offsetHeight)+Number(e.nativeElement.offsetHeight))}}ngOnDestroy(){this.positionServiceSubscription.unsubscribe()}scrollToBottom(){this.ulElement.nativeElement.scrollTop=this.ulElement.nativeElement.scrollHeight}scrollToTop(){this.ulElement.nativeElement.scrollTop=0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Wv),i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(i.sBO))},t.\u0275cmp=i.Xpm({type:t,selectors:[["typeahead-container"]],viewQuery:function(t,e){if(1&t&&(i.Gf(hU,5),i.Gf(dU,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.ulElement=t.first),i.iGM(t=i.CRH())&&(e.liElements=t)}},hostAttrs:[1,"dropdown","open","bottom",2,"position","absolute","display","block"],hostVars:9,hostBindings:function(t,e){1&t&&i.NdJ("mouseleave",function(){return e.focusLost()})("blur",function(){return e.focusLost()}),2&t&&(i.uIk("role",e.isBs4?"listbox":null),i.Udp("height",e.isBs4&&e.needScrollbar?e.guiHeight:"auto")("visibility","inherit"),i.ekj("dropdown-menu",e.isBs4)("dropup",e.dropup))},outputs:{activeChangeEvent:"activeChange"},decls:7,vars:7,consts:[[3,"ngTemplateOutlet","ngTemplateOutletContext"],["bsItemTemplate",""],["bs3Template",""],["bs4Template",""],[3,"innerHtml"],["role","listbox",1,"dropdown-menu"],["ulElement",""],["ngFor","",3,"ngForOf"],["class","dropdown-header",4,"ngIf"],["role","option",3,"id","active","mouseenter",4,"ngIf"],[1,"dropdown-header"],["liElements",""],["role","option",3,"id","mouseenter"],["href","#","tabindex","-1",3,"click"],[3,"ngIf"],["role","option",1,"dropdown-item",3,"id","click","mouseenter"]],template:function(t,e){if(1&t&&(i.YNc(0,fU,0,0,"ng-template",0),i.YNc(1,pU,1,1,"ng-template",null,1,i.W1O),i.YNc(3,_U,3,5,"ng-template",null,2,i.W1O),i.YNc(5,CU,1,1,"ng-template",null,3,i.W1O)),2&t){const t=i.MAs(2),n=i.MAs(4),r=i.MAs(6);i.Q6J("ngTemplateOutlet",e.optionsListTemplate||(e.isBs4?r:n))("ngTemplateOutletContext",i.l5B(2,EU,e.matches,e.itemTemplate||t,e.query,e.typeaheadTemplateMethods))}},directives:[wt,ht,ft],styles:[".dropdown[_nghost-%COMP%] {\n      z-index: 1000;\n    }\n\n    .dropdown-menu[_nghost-%COMP%], .dropdown-menu[_ngcontent-%COMP%] {\n      overflow-y: auto;\n      height: 100px;\n    }"],data:{animation:[PU]}}),t})(),MU=(()=>{class t{constructor(){this.adaptivePosition=!1,this.isAnimated=!1,this.hideResultsOnBlur=!0,this.cancelRequestOnFocusLost=!1,this.selectFirstItem=!0,this.isFirstItemActive=!0,this.minLength=1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),FU=(()=>{class t{constructor(t,e,n,r,s,o,a){this.changeDetection=n,this.element=r,this.ngControl=s,this.renderer=o,this.typeaheadMinLength=void 0,this.isAnimated=!1,this.typeaheadAsync=void 0,this.typeaheadLatinize=!0,this.typeaheadSingleWords=!0,this.typeaheadWordDelimiters=" ",this.typeaheadPhraseDelimiters="'\"",this.typeaheadScrollable=!1,this.typeaheadOptionsInScrollableView=5,this.typeaheadSelectFirstItem=!0,this.typeaheadIsFirstItemActive=!0,this.typeaheadLoading=new i.vpe,this.typeaheadNoResults=new i.vpe,this.typeaheadOnSelect=new i.vpe,this.typeaheadOnBlur=new i.vpe,this.dropup=!1,this.isOpen=!1,this.list="list",this.isActiveItemChanged=!1,this.isFocused=!1,this.cancelRequestOnFocusLost=!1,this.keyUpEventEmitter=new i.vpe,this.placement="bottom left",this._subscriptions=[],this._typeahead=t.createLoader(r,a,o).provide({provide:MU,useValue:e}),Object.assign(this,{typeaheadHideResultsOnBlur:e.hideResultsOnBlur,typeaheadCancelRequestOnFocusLost:e.cancelRequestOnFocusLost,typeaheadSelectFirstItem:e.selectFirstItem,typeaheadIsFirstItemActive:e.isFirstItemActive,typeaheadMinLength:e.minLength,adaptivePosition:e.adaptivePosition,isAnimated:e.isAnimated})}ngOnInit(){this.typeaheadOptionsLimit=this.typeaheadOptionsLimit||20,this.typeaheadMinLength=void 0===this.typeaheadMinLength?1:this.typeaheadMinLength,this.typeaheadWaitMs=this.typeaheadWaitMs||0,void 0===this.typeaheadAsync&&!Au(this.t
1ypeahead)&&(this.typeaheadAsync=!1),Au(this.typeahead)&&(this.typeaheadAsync=!0),this.typeaheadAsync?this.asyncActions():this.syncActions()}onInput(t){const e=void 0!==t.target.value?t.target.value:void 0!==t.target.textContent?t.target.textContent:t.target.innerText;null!=e&&e.trim().length>=this.typeaheadMinLength?(this.typeaheadLoading.emit(!0),this.keyUpEventEmitter.emit(t.target.value)):(this.typeaheadLoading.emit(!1),this.typeaheadNoResults.emit(!1),this.hide())}onChange(t){if(this._container){if(27===t.keyCode||"Escape"===t.key)return void this.hide();if(38===t.keyCode||"ArrowUp"===t.key)return this.isActiveItemChanged=!0,void this._container.prevActiveMatch();if(40===t.keyCode||"ArrowDown"===t.key)return this.isActiveItemChanged=!0,void this._container.nextActiveMatch();if(13===t.keyCode||"Enter"===t.key)return void this._container.selectActiveMatch()}}onFocus(){this.isFocused=!0,setTimeout(()=>{0===this.typeaheadMinLength&&(this.typeaheadLoading.emit(!0),this.keyUpEventEmitter.emit(this.element.nativeElement.value||""))},0)}onBlur(){this.isFocused=!1,this._container&&!this._container.isFocused&&this.typeaheadOnBlur.emit(this._container.active),!this.container&&0===this._matches.length&&this.typeaheadOnBlur.emit(new IU(this.element.nativeElement.value,this.element.nativeElement.value,!1))}onKeydown(t){if(this._container&&((9===t.keyCode||"Tab"===t.key)&&this.onBlur(),9===t.keyCode||"Tab"===t.key||13===t.keyCode||"Enter"===t.key)){if(t.preventDefault(),this.typeaheadSelectFirstItem)return void this._container.selectActiveMatch();this.typeaheadSelectFirstItem||(this._container.selectActiveMatch(this.isActiveItemChanged),this.isActiveItemChanged=!1,this.hide())}}changeModel(t){const e=t.value;this.ngControl.viewToModelUpdate(e),this.ngControl.control.setValue(e),this.changeDetection.markForCheck(),this.hide()}get matches(){return this._matches}show(){this._typeahead.attach(LU).to(this.container).position({attachment:(this.dropup?"top":"bottom")+" left"}).show({typeaheadRef:this,placement:this.placement,animation:!1,dropup:this.dropup}),this._outsideClickListener=this.renderer.listen("document","click",t=>{0===this.typeaheadMinLength&&this.element.nativeElement.contains(t.target)||!this.typeaheadHideResultsOnBlur||this.element.nativeElement.contains(t.target)||this.onOutsideClick()}),this._container=this._typeahead.instance,this._container.parent=this;const t=(this.typeaheadLatinize?kU(this.ngControl.control.value):this.ngControl.control.value).toString().toLowerCase();this._container.query=this.typeaheadSingleWords?OU(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters):t,this._container.matches=this._matches,this.element.nativeElement.focus(),this._container.activeChangeEvent.subscribe(t=>{this.activeDescendant=t,this.changeDetection.markForCheck()}),this.isOpen=!0}hide(){this._typeahead.isShown&&(this._typeahead.hide(),this._outsideClickListener(),this._container=null,this.isOpen=!1,this.changeDetection.markForCheck())}onOutsideClick(){this._container&&!this._container.isFocused&&this.hide()}ngOnDestroy(){for(const t of this._subscriptions)t.unsubscribe();this._typeahead.dispose()}asyncActions(){this._subscriptions.push(this.keyUpEventEmitter.pipe(Ac(this.typeaheadWaitMs),Rn(()=>
1this.typeahead)).subscribe(t=>{this.finalizeAsyncCall(t)}))}syncActions(){this._subscriptions.push(this.keyUpEventEmitter.pipe(Ac(this.typeaheadWaitMs),(0,Ce.zg)(t=>{const e=this.normalizeQuery(t);return(0,fn.D)(this.typeahead).pipe(Ie(t=>t&&this.testMatch(this.normalizeOption(t),e)),function(t,e){return arguments.length>=2?function(n){return(0,uU.z)(jn(t,e),Qn(1),ei(e))(n)}:function(e){return(0,uU.z)(jn((e,n,i)=>t(e,n,i+1)),Qn(1))(e)}}(lU,[]))})).subscribe(t=>{this.finalizeAsyncCall(t)}))}normalizeOption(t){const e=DU(t,this.typeaheadOptionField);return(this.typeaheadLatinize?kU(e):e).toLowerCase()}normalizeQuery(t){let e=(this.typeaheadLatinize?kU(t):t).toString().toLowerCase();return e=this.typeaheadSingleWords?OU(e,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters):e,e}testMatch(t,e){let n;if("object"==typeof e){n=e.length;for(let i=0;i<n;i+=1)if(e[i].length>0&&t.indexOf(e[i])<0)return!1;return!0}return t.indexOf(e)>=0}finalizeAsyncCall(t){if(this.prepareMatches(t||[]),this.typeaheadLoading.emit(!1),this.typeaheadNoResults.emit(!this.hasMatches()),this.hasMatches()){if(this.isFocused||!this.cancelRequestOnFocusLost)if(this._container){const t=((this.typeaheadLatinize?kU(this.ngControl.control.value):this.ngControl.control.value)||"").toString().toLowerCase();this._container.query=this.typeaheadSingleWords?OU(t,this.typeaheadWordDelimiters,this.typeaheadPhraseDelimiters):t,this._container.matches=this._matches}else this.show()}else this.hide()}prepareMatches(t){const e=t.slice(0,this.typeaheadOptionsLimit),n=this.typeaheadOrderBy?this.orderMatches(e):e;if(this.typeaheadGroupField){let t=[];n.map(t=>DU(t,this.typeaheadGroupField)).filter((t,e,n)=>n.indexOf(t)===e).forEach(e=>{t.push(new IU(e,e,!0)),t=t.concat(n.filter(t=>DU(t,this.typeaheadGroupField)===e).map(t=>new IU(t,DU(t,this.typeaheadOptionField))))}),this._matches=t}else this._matches=n.map(t=>new IU(t,DU(t,this.typeaheadOptionField)))}orderMatches(t){if(!t.length)return t;if(null!=this.typeaheadOrderBy&&"object"==typeof this.typeaheadOrderBy&&0===Object.keys(this.typeaheadOrderBy).length)return console.error("Field and direction properties for typeaheadOrderBy have to be set according to documentation!"),t;const{field:e,direction:n}=this.typeaheadOrderBy;return!n||"asc"!==n&&"desc"!==n?(console.error('typeaheadOrderBy direction has to equal "asc" or "desc". Please follow the documentation.'),t):"string"==typeof t[0]?"asc"===n?t.sort():t.sort().reverse():e&&"string"==typeof e?t.sort((t,i)=>{const r=DU(t,e),s=DU(i,e);return r<s?"asc"===n?-1:1:r>s?"asc"===n?1:-1:0}):(console.error("typeaheadOrderBy field has to set according to the documentation."),t)}hasMatches(){return this._matches.length>0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ey),i.Y36(MU),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(za),i.Y36(i.Qsj),i.Y36(i.s_b))},t.\u0275dir=i.lG2({type:t,selectors:[["","typeahead",""]],hostVars:4,hostBindings:function(t,e){1&t&&i.NdJ("input",function(t){return e.onInput(t)})("keyup",function(t){return e.onChange(t)})("click",function(){return e.onFocus()})("focus",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("keydown",function(t){return e.onKeydown(t)}),2&t&&i.uIk("aria-activedescendant",e.activeDescendant)("aria-aria-owns",e.isOpen?e._container.popupId:null)("aria-aria-expanded",e.isOpen)("aria-autocomplete",e.list)},inputs:{isAnimated:"isAnimated",typeaheadLatinize:"typeaheadLatinize",typeaheadSingleWords:"typeaheadSingleWords",typeaheadWordDelimiters:"typeaheadWordDelimiters",typeaheadPhraseDelimiters:"typeaheadPhraseDelimiters",typeaheadScrollable:"typeaheadScrollable",typeaheadOptionsInScrollableView:"typeaheadOptionsInScrollableView",typeaheadSelectFirstItem:"typeaheadSelectFirstItem",typeaheadIsFirstItemActive:"typeaheadIsFirstItemActive",dropup:"dropup",typeaheadOptionsLimit:"typeaheadOptionsLimit",typeaheadMinLength:"typeaheadMinLength",typeaheadWaitMs:"typeaheadWaitMs",typeaheadAsync:"typeaheadAsync",typeahead:"typeahead",adaptivePosition:"adaptivePosition",typeaheadOptionField:"typeaheadOptionField",typeaheadGroupField:"typeaheadGroupField",typeaheadOrderBy:"typeaheadOrderBy",typeaheadItemTemplate:"typeaheadItemTemplate",optionsListTemplate:"optionsListTemplate",typeaheadHideResultsOnBlur:"typeaheadHideResultsOnBlur",container:"container"},outputs:{typeaheadLoading:"typeaheadLoading",typeaheadNoResults:"typeaheadNoResults",typeaheadOnSelect:"typeaheadOnSelect",typeaheadOnBlur:"typeaheadOnBlur"},exportAs:["bs-typeahead"]}),t})(),ZU=(()=>{class t{static forRoot(){return{ngModule:t,providers:[ey,Wv,MU]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Pt]]}),t})();const qU=new i.OlP("NGXS_DEVTOOLS_OPTIONS");let UU=(()=>{class t{constructor(t,e){this._options=t,this._injector=e,this.devtoolsExtension=null,this.windowObj="undefined"!=typeof window?window:{};const n=this.windowObj.__REDUX_DEVTOOLS_EXTENSION__||this.windowObj.devToolsExtension;n&&(this.devtoolsExtension=n.connect(t),this.devtoolsExtension.subscribe(t=>this.dispatched(t)))}
1get store(){return this._injector.get(IZ)}handle(t,e,n){return!this.devtoolsExtension||this._options&&this._options.disabled?n(t,e):n(t,e).pipe(Hn(n=>{const i=this.store.snapshot();throw this.sendToDevTools(t,e,i),n}),(0,oi.b)(n=>{this.sendToDevTools(t,e,n)}))}sendToDevTools(t,e,n){const i=XF(e);"@@INIT"===i?this.devtoolsExtension.init(t):this.devtoolsExtension.send(Object.assign({},e,{action:null,type:i}),n)}dispatched(t){if("DISPATCH"===t.type){if("JUMP_TO_ACTION"===t.payload.type||"JUMP_TO_STATE"===t.payload.type){const e=JSON.parse(t.state);this.store.reset(e)}else if("TOGGLE_ACTION"===t.payload.type)console.warn("Skip is not supported at this time.");else if("IMPORT_STATE"===t.payload.type){const{actionsById:e,computedStates:n,currentStateIndex:i}=t.payload.nextLiftedState;this.devtoolsExtension.init(n[0].state),Object.keys(e).filter(t=>"0"!==t).forEach(t=>this.devtoolsExtension.send(e[t],n[t].state)),this.store.reset(n[i].state)}}else if("ACTION"===t.type){const e=JSON.parse(t.payload);this.store.dispatch(e)}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(qU),i.LFG(i.zs3))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function VU(t){return Object.assign({name:"NGXS"},t)}const jU=new i.OlP("USER_OPTIONS");let BU=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:HF,useClass:UU,multi:!0},{provide:jU,useValue:e},{provide:qU,useFactory:VU,deps:[jU]}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const zU=(t,e)=>((t,e)=>new Array(e+1).join("0"))(0,e-t.toString().length)+t;class HU{constructor(t,e,n){this.action=t,this.store=e,this.logWriter=n}dispatched(t){const e=XF(this.action),n=function(t){return zU(t.getHours(),2)+":"+zU(t.getMinutes(),2)+":"+zU(t.getSeconds(),2)+"."+zU(t.getMilliseconds(),3)}(new Date);this.logWriter.startGroup(`action ${e} @ ${n}`),this._hasPayload(this.action)&&this.logWriter.logGrey("payload",Object.assign({},this.action)),this.logWriter.logGrey("prev state",t)}completed(t){this.logWriter.logGreen("next state",t),this.logWriter.endGroup()}errored(t){this.logWriter.logRedish("next state after error",this.store.snapshot()),this.logWriter.logRedish("error",t),this.logWriter.endGroup()}_hasPayload(t){return this._getNonEmptyProperties(t).length>0}_getNonEmptyProperties(t){return Object.keys(t).map(e=>t[e]).filter(t=>void 0!==t)}}class GU{constructor(t){this.options=t,this.options=this.options||{},this.logger=t.logger||console}startGroup(t){const e=this.options.collapsed?this.logger.groupCollapsed:this.logger.group;try{e.call(this.logger,t)}catch(n){console.log(t)}}endGroup(){try{this.logger.groupEnd()}catch(t){this.logger.log("\u2014\u2014 log end \u2014\u2014")}}logGrey(t,e){this.log(t,"color: #9E9E9E; font-weight: bold",e)}logGreen(t,e){this.log(t,"color: #4CAF50; font-weight: bold",e)}logRedish(t,e){this.log(t,"color: #FD8182; font-weight: bold",e)}log(t,e,n){this.isIE()?this.logger.log(t,n):this.logger.log("%c "+t,e,n)}isIE(){const t="undefined"!=typeof window&&window.navigator.userAgent?window.navigator.userAgent:"";let e=!1;const n=t.indexOf("MSIE "),i=t.indexOf("Trident/");return(n>-1||i>-1)&&(e=!0),e}}const YU=new i.OlP("NGXS_LOGGER_PLUGIN_OPTIONS");let QU=(()=>{class t{constructor(t,e){this._options=t,this._injector=e}handle(t,e,n){if(this._options.disabled||!this._options.filter(e,t))return n(t,e);this._logWriter=this._logWriter||new GU(this._options),this._store=this._store||this._injector.get(IZ);const i=new HU(e,this._store,this._logWriter);return i.dispatched(t),n(t,e).pipe((0,oi.b)(t=>{i.completed(t)}),Hn(t=>{throw i.errored(t),t}))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(YU),i.LFG(i.zs3))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const $U=new i.OlP("LOGGER_USER_OPTIONS");function JU(t){return Object.assign({},{logger:console,collapsed:!1,disabled:!1,filter:()=>!0},t)}let WU=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:HF,useClass:QU,multi:!0},{provide:$U,useValue:e},{provide:YU,useFactory:JU,deps:[$U]}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const KU=[{prefix:"fab",iconName:"facebook-f",icon:[320,512,[],"f39e","M279.14 288l14.22-92.66h-88.91v
1-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"]},{prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]},{prefix:"fab",iconName:"linkedin-in",icon:[448,512,[],"f0e1","M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"]},{prefix:"fab",iconName:"pinterest-p",icon:[384,512,[],"f231","M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"]},{prefix:"fab",iconName:"reddit-alien",icon:[512,512,[],"f281","M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"]},{prefix:"fab",iconName:"tumblr",icon:[320,512,[],"f173","M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"]},{prefix:"fab",iconName:"whatsapp",icon:[448,512,[],"f232","M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"]},{prefix:"fab",iconName:"viber",icon:[512,512,[],"f409","M444 49.9C431.3 38.2 379.9.9 265.3.4c0 0-135.1-8.1-200.9 52.3C27.8 89.3 14.9 143 13.5 209.5c-1.4 66.5-3.1 191.1 117 224.9h.1l-.1 51.6s-.8 20.9 13 25.1c16.6 5.2 26.4-10.7 42.3-27.8 8.7-9.4 20.7-23.2 29.8-33.7 82.2 6.9 145.3-8.9 152.5-11.2 16.6-
15.4 110.5-17.4 125.7-142 15.8-128.6-7.6-209.8-49.8-246.5zM457.9 287c-12.9 104-89 110.6-103 115.1-6 1.9-61.5 15.7-131.2 11.2 0 0-52 62.7-68.2 79-5.3 5.3-11.1 4.8-11-5.7 0-6.9.4-85.7.4-85.7-.1 0-.1 0 0 0-101.8-28.2-95.8-134.3-94.7-189.8 1.1-55.5 11.6-101 42.6-131.6 55.7-50.5 170.4-43 170.4-43 96.9.4 143.3 29.6 154.1 39.4 35.7 30.6 53.9 103.8 40.6 211.1zm-139-80.8c.4 8.6-12.5 9.2-12.9.6-1.1-22-11.4-32.7-32.6-33.9-8.6-.5-7.8-13.4.7-12.9 27.9 1.5 43.4 17.5 44.8 46.2zm20.3 11.3c1-42.4-25.5-75.6-75.8-79.3-8.5-.6-7.6-13.5.9-12.9 58 4.2 88.9 44.1 87.8 92.5-.1 8.6-13.1 8.2-12.9-.3zm47 13.4c.1 8.6-12.9 8.7-12.9.1-.6-81.5-54.9-125.9-120.8-126.4-8.5-.1-8.5-12.9 0-12.9 73.7.5 133 51.4 133.7 139.2zM374.9 329v.2c-10.8 19-31 40-51.8 33.3l-.2-.3c-21.1-5.9-70.8-31.5-102.2-56.5-16.2-12.8-31-27.9-42.4-42.4-10.3-12.9-20.7-28.2-30.8-46.6-21.3-38.5-26-55.7-26-55.7-6.7-20.8 14.2-41 33.3-51.8h.2c9.2-4.8 18-3.2 23.9 3.9 0 0 12.4 14.8 17.7 22.1 5 6.8 11.7 17.7 15.2 23.8 6.1 10.9 2.3 22-3.7 26.6l-12 9.6c-6.1 4.9-5.3 14-5.3 14s17.8 67.3 84.3 84.3c0 0 9.1.8 14-5.3l9.6-12c4.6-6 15.7-9.8 26.6-3.7 14.7 8.3 33.4 21.2 45.8 32.9 7 5.7 8.6 14.4 3.8 23.6z"]},{prefix:"fab",iconName:"vk",icon:[576,512,[],"f189","M545 117.7c3.7-12.5 0-21.7-17.8-21.7h-58.9c-15 0-21.9 7.9-25.6 16.7 0 0-30 73.1-72.4 120.5-13.7 13.7-20 18.1-27.5 18.1-3.7 0-9.4-4.4-9.4-16.9V117.7c0-15-4.2-21.7-16.6-21.7h-92.6c-9.4 0-15 7-15 13.5 0 14.2 21.2 17.5 23.4 57.5v86.8c0 19-3.4 22.5-10.9 22.5-20 0-68.6-73.4-97.4-157.4-5.8-16.3-11.5-22.9-26.6-22.9H38.8c-16.8 0-20.2 7.9-20.2 16.7 0 15.6 20 93.1 93.1 195.5C160.4 378.1 229 416 291.4 416c37.5 0 42.1-8.4 42.1-22.9 0-66.8-3.4-73.1 15.4-73.1 8.7 0 23.7 4.4 58.7 38.1 40 40 46.6 57.9 69 57.9h58.9c16.8 0 25.3-8.4 20.4-25-11.2-34.9-86.9-106.7-90.3-111.5-8.7-11.2-6.2-16.2 0-26.2.1-.1 72-101.3 79.4-135.6z"]},{prefix:"fab",iconName:"facebook-messenger",icon:[512,512,[],"f39f","M256.55 8C116.52 8 8 110.34 8 248.57c0 72.3 29.71 134.78 78.07 177.94 8.35 7.51 6.63 11.86 8.05 58.23A19.92 19.92 0 0 0 122 502.31c52.91-23.3 53.59-25.14 62.56-22.7C337.85 521.8 504 423.7 504 248.57 504 110.34 396.59 8 256.55 8zm149.24 185.13l-73 115.57a37.37 37.37 0 0 1-53.91 9.93l-58.08-43.47a15 15 0 0 0-18 0l-78.37 59.44c-10.46 7.93-24.16-4.6-17.11-15.67l73-115.57a37.36 37.36 0 0 1 53.91-9.93l58.06 43.46a15 15 0 0 0 18 0l78.41-59.38c10.44-7.98 24.14 4.54 17.09 15.62z"]},{prefix:"fab",iconName:"telegram-plane",icon:[448,512,[],"f3fe","M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"]},{prefix:"fab",iconName:"mix",icon:[448,512,[],"f3cb","M0 64v348.9c0 56.2 88 58.1 88 0V174.3c7.9-52.9 88-50.4 88 6.5v175.3c0 57.9 96 58 96 0V240c5.3-54.7 88-52.5 88 4.3v23.8c0 59.9 88 56.6 88 0V64H0z"]},{prefix:"fab",iconName:"xing",icon:[384,512,[],"f168","M162.7 210c-1.8 3.3-25.2 44.4-70.1 123.5-4.9 8.3-10.8 12.5-17.7 12.5H9.8c-7.7 0-12.1-7.5-8.5-14.4l69-121.3c.2 0 .2-.1 0-.3l-43.9-75.6c-4.3-7.8.3-14.1 8.5-14.1H100c7.3 0 13.3 4.1 18 12.2l44.7 77.5zM382.6 46.1l-144 253v.3L330.2 466c3.9 7.1.2 14.1-8.5 14.1h-65.2c-7.6 0-13.6-4-18-12.2l-92.4-168.5c3.3-5.8 51.5-90.8 144.8-255.2 4.6-8.1 10.4-12.2 17.5-12.2h65.7c8 0 12.3 6.7 8.5 14.1z"]},{prefix:"fas",iconName:"sms",icon:[512,512,[],"f7cd","M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7 1.3 3 4.1 4.8 7.3 4.8 66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128.2 304H116c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h12.3c6 0 10.4-3.5 10.4-6.6 0-1.3-.8-2.7-2.1-3.8l-21.9-18.8c-8.5-7.2-13.3-17.5-13.3-28.1 0-21.3 19-38.6 42.4-38.6H156c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8h-12.3c-6 0-10.4 3.5-10.4 6.6 0 1.3.8 2.7 2.1 3.8l21.9 18.8c8.5 7.2 13.3 17.5 13.3 28.1.1 21.3-19 38.6-42.4 38.6zm191.8-8c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8v-68.2l-24.8 55.8c-2.9 5.9-11.4 5.9-14.3 0L224 227.8V296c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V192c0-8.8 7.2-16 16-16h16c6.1 0 11.6 3.4 14.3 8.8l17.7 35.4 17.7-35.4c2.7-5.4 8.3-8.8 14.3-8.8h16c8.8 0 16 7.2 16 16v104zm48.3 8H356c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h12.3c6 0 10.4-3.5 10.4-6.6 0-1.3-.8-2.7-2.1-3.8l-21.9-18.8c-8.5-7.2-13.3-17.5-13.3-28.1 0-21.3 19-38.6 42.4-38.6H396c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8h-12.3c-6 0-10.4 3.5-10.4 6.6 0 1.3.8 2.7 2.1 3.8l21.9 18.8c8.5 7.2 13.3 17.5 13.3 28.1.1 21.3-18.9 38.6-42.3 38.6z"]},{prefix:"fas",iconName:"envelope",icon:[512,512,[],"f0e0","M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.
16-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"]},{prefix:"fas",iconName:"check",icon:[512,512,[],"f00c","M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"]},{prefix:"fas",iconName:"print",icon:[512,512,[],"f02f","M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]},{prefix:"fas",iconName:"exclamation",icon:[192,512,[],"f12a","M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"]},{prefix:"fas",iconName:"link",icon:[512,512,[],"f0c1","M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]},{prefix:"fas",iconName:"ellipsis-h",icon:[512,512,[],"f141","M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"]},{prefix:"fas",iconName:"minus",icon:[448,512,[],"f068","M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},{prefix:"fab",iconName:"line",icon:[448,512,[],"f3c0","M272.1 204.2v71.1c0 1.8-1.4 3.2-3.2 3.2h-11.4c-1.1 0-2.1-.6-2.6-1.3l-32.6-44v42.2c0 1.8-1.4 3.2-3.2 3.2h-11.4c-1.8 0-3.2-1.4-3.2-3.2v-71.1c0-1.8 1.4-3.2 3.2-3.2H219c1 0 2.1.5 2.6 1.4l32.6 44v-42.2c0-1.8 1.4-3.2 3.2-3.2h11.4c1.8-.1 3.3 1.4 3.3 3.1zm-82-3.2h-11.4c-1.8 0-3.2 1.4-3.2 3.2v71.1c0 1.8 1.4 3.2 3.2 3.2h11.4c1.8 0 3.2-1.4 3.2-3.2v-71.1c0-1.7-1.4-3.2-3.2-3.2zm-27.5 59.6h-31.1v-56.4c0-1.8-1.4-3.2-3.2-3.2h-11.4c-1.8 0-3.2 1.4-3.2 3.2v71.1c0 .9.3 1.6.9 2.2.6.5 1.3.9 2.2.9h45.7c1.8 0 3.2-1.4 3.2-3.2v-11.4c0-1.7-1.4-3.2-3.1-3.2zM332.1 201h-45.7c-1.7 0-3.2 1.4-3.2 3.2v71.1c0 1.7 1.4 3.2 3.2 3.2h45.7c1.8 0 3.2-1.4 3.2-3.2v-11.4c0-1.8-1.4-3.2-3.2-3.2H301v-12h31.1c1.8 0 3.2-1.4 3.2-3.2V234c0-1.8-1.4-3.2-3.2-3.2H301v-12h31.1c1.8 0 3.2-1.4 3.2-3.2v-11.4c-.1-1.7-1.5-3.2-3.2-3.2zM448 113.7V399c-.1 44.8-36.8 81.1-81.7 81H81c-44.8-.1-81.1-36.9-81-81.7V113c.1-44.8 36.9-81.1 81.7-81H367c44.8.1 81.1 36.8 81 81.7zm-61.6 122.6c0-73-73.2-132.4-163.1-132.4-89.9 0-163.1 59.4
1-163.1 132.4 0 65.4 58 120.2 136.4 130.6 19.1 4.1 16.9 11.1 12.6 36.8-.7 4.1-3.3 16.1 14.1 8.8 17.4-7.3 93.9-55.3 128.2-94.7 23.6-26 34.9-52.3 34.9-81.5z"]}];let XU=(()=>{class t{constructor(t){t.addIcons(...KU)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(mL))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[_L]]}),t})(),tV=(()=>{class t{constructor(){}}return t.type="[Event] Request Attempt",t})(),eV=(()=>{class t{constructor(t){this.events=t}}return t.type="[Event] Request Success",t})(),nV=(()=>{class t{constructor(t){this.error=t}}return t.type="[Event] Request Failure",t})(),iV=class{constructor(t,e){this.store=t,this.service=e}EventRequestAttempt(){return ua(this,void 0,void 0,function*(){this.service.getAll().subscribe(t=>{this.store.dispatch(new eV(t))},t=>{this.store.dispatch(new nV(t))})})}EventRequestSuccess(t,e){t.patchState({events:e.events})}EventRequestFailure(t,e){console.error("Error al obtener los eventos.",e.error)}};iV.\u0275fac=function(t){return new(t||iV)(i.LFG(IZ),i.LFG(Mo))},iV.\u0275prov=i.Yz7({token:iV,factory:iV.\u0275fac}),aa([MZ(tV)],iV.prototype,"EventRequestAttempt",null),aa([MZ(eV)],iV.prototype,"EventRequestSuccess",null),aa([MZ(nV)],iV.prototype,"EventRequestFailure",null),iV=aa([FZ({name:"events",defaults:{events:[]}})],iV);let rV=(()=>{class t{constructor(){}}return t.type="[Parameter] Request Attempt",t})(),sV=(()=>{class t{constructor(t){this.parameters=t}}return t.type="[Parameter] Request Success",t})(),oV=(()=>{class t{constructor(t){this.error=t}}return t.type="[Parameter] Request Failure",t})(),aV=class{constructor(t,e){this.store=t,this.service=e}ParameterRequestAttempt(){return ua(this,void 0,void 0,function*(){this.service.getAll().subscribe(t=>{this.store.dispatch(new sV(t))},t=>{this.store.dispatch(new oV(t))})})}ParameterRequestSuccess(t,e){t.patchState({parameters:e.parameters})}ParameterRequestFailure(t,e){console.error("Error al obtener los parameteros.",e.error)}};aV.\u0275fac=function(t){return new(t||aV)(i.LFG(IZ),i.LFG(Hp))},aV.\u0275prov=i.Yz7({token:aV,factory:aV.\u0275fac}),aa([MZ(rV)],aV.prototype,"ParameterRequestAttempt",null),aa([MZ(sV)],aV.prototype,"ParameterRequestSuccess",null),aa([MZ(oV)],aV.prototype,"ParameterRequestFailure",null),aV=aa([FZ({name:"parameters",defaults:{parameters:[]}})],aV);var cV=n(248),uV=n.n(cV);let lV=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.activeRoute=e,this.title=n,this.serviceEvent=i,this.serviceNews=r,this.default_title="Fundaci\xf3n OSDE",this.pag_estatica="Pagina estatica",this.evento="Evento",this.nota="Nota"}boot(){return ua(this,void 0,void 0,function*(){this.router.events.pipe(Ie(t=>t instanceof fi),(0,De.U)(()=>this.activeRoute),(0,De.U)(t=>t.firstChild),Rn(t=>t.url),(0,De.U)(t=>ua(this,void 0,void 0,function*(){return null!=t[0]&&null!=t[0].path&&"index"==t[0].path?this.default_title:null!=t[0]&&null!=t[0].path&&"page"==t[0].path?`${t[1].path}`:null!=t[0]&&null!=t[0].path&&"event"==t[0].path?(yield this.serviceEvent.getById(Number(t[1].path)).toPromise().then(t=>this.titulo=t.title),`${this.evento} \u2022 ${this.titulo}`):null!=t[0]&&null!=t[0].path&&"news"==t[0].path?(yield this.serviceNews.getById(Number(t[1].path)).toPromise().then(t=>this.titulo=t.title),`${this.nota} \u2022 ${this.titulo}`):t&&t[0]?`${t[0].path} \u2022 ${t[0].path}`:this.default_title}))).subscribe(t=>ua(this,void 0,void 0,function*(){return this.title.setTitle(yield t)}))})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Vs),i.LFG(br),i.LFG(xe),i.LFG(Mo),i.LFG(Ko))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const hV=["search"];function dV(t,e){1&t&&(i.TgZ(0,"p",14),i._uU(1,"Debe ingresar un texto a buscar"),i.qZA())}function fV(t,e){1&t&&(i.TgZ(0,"p",14),i._uU(1,"Debe ingresar al menos tres caracteres"),i.qZA())}function pV(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,dV,2,0,"p",13),i.YNc(2,fV,2,0,"p",13),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.criterio.errors.required&&t.submitted),i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.criterio.errors.minlength&&t.submitted)}}function gV(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"form",1),i.NdJ("ngSubmit",function(){return i.CHM(t),i.oxw().onSubmit()}
1),i.TgZ(1,"div",2),i.TgZ(2,"button",3),i.NdJ("click",function(){return i.CHM(t),i.oxw().cerrar()}),i.TgZ(3,"span",4),i._uU(4,"\xd7"),i.qZA(),i.qZA(),i.TgZ(5,"h4",5),i._uU(6,"Buscar eventos"),i.qZA(),i.qZA(),i.TgZ(7,"div",6),i.TgZ(8,"div",7),i._UZ(9,"input",8),i.YNc(10,pV,3,2,"div",9),i.qZA(),i.qZA(),i.TgZ(11,"div",10),i.TgZ(12,"button",11),i._UZ(13,"i",12),i._uU(14,"Buscar "),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("formGroup",t.aFormGroup),i.xp6(9),i.Q6J("typeahead",t.titles)("isAnimated",!0),i.xp6(1),i.Q6J("ngIf",t.aFormGroup.controls.criterio.errors)}}let mV=(()=>{class t{constructor(t,e,n,i){this.service=t,this.formBuilder=e,this.router=n,this.modalService=i,this.titles=[],this.config={animated:!0,keyboard:!0,backdrop:!0,ignoreBackdropClick:!0},this.aFormGroup=this.formBuilder.group({criterio:["",[Ta.required,Ta.minLength(3)]]})}ngOnInit(){this.titles=[];let t=[];this.service.getTitles().subscribe(e=>{e.forEach(e=>{t.push(e)}),this.service.getArtists().subscribe(e=>{e.forEach(e=>{t.push(e.name+" "+e.lastName)}),t=t.reduce((t,e)=>t.includes(e)?t:[...t,e],[]),this.titles=t})})}openModal(){this.modalRef=this.modalService.show(this.search,this.config)}closeModal(){this.modalRef.hide()}cerrar(){this.submitted=!1,this.aFormGroup.controls.criterio.setValue(""),this.closeModal()}buscar(){this.router.navigate(["search",this.aFormGroup.controls.criterio.value]),this.aFormGroup.controls.criterio.setValue(""),this.cerrar()}onSubmit(){this.submitted=!0,this.aFormGroup.valid&&this.buscar()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Mo),i.Y36(Tc),i.Y36(Vs),i.Y36(cy))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-event-search"]],viewQuery:function(t,e){if(1&t&&i.Gf(hV,7),2&t){let t;i.iGM(t=i.CRH())&&(e.search=t.first)}},decls:2,vars:0,consts:[["search",""],[1,"lgx-contactform",3,"formGroup","ngSubmit"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["id","exampleModalLabel",1,"modal-title","black"],[1,"modal-body"],[1,"form-group"],["type","text","autocomplete","off","formControlName","criterio","name","criterio","id","criterio",1,"form-control",3,"typeahead","isAnimated"],[4,"ngIf"],[1,"modal-footer"],["type","submit",1,"col-md-12","col-xs-12","btn-registration"],["aria-hidden","true",1,"fas","fa-search"],["style","color:red;font-size:13px;",4,"ngIf"],[2,"color","red","font-size","13px"]],template:function(t,e){1&t&&i.YNc(0,gV,15,4,"ng-template",null,0,i.W1O)},directives:[pc,Ya,yc,ya,Ga,_c,FU,ft],styles:[""]}),t})();function vV(t,e){if(1&t&&(i.TgZ(0,"div",1),i.TgZ(1,"ul",2),i.TgZ(2,"li"),i.TgZ(3,"a",3),i._UZ(4,"i",4),i.qZA(),i.qZA(),i.TgZ(5,"li"),i.TgZ(6,"a",3),i._UZ(7,"i",5),i.qZA(),i.qZA(),i.TgZ(8,"li"),i.TgZ(9,"a",3),i._UZ(10,"i",6),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(3),i.s9C("href",t.urlFacebook,i.LSH),i.xp6(3),i.s9C("href",t.urlYoutube,i.LSH),i.xp6(3),i.s9C("href",t.urlInstagram,i.LSH)}}class yV{constructor(t,e){this.router=t,this.urlInstagram="",this.urlFacebook="",this.urlYoutube="",this.vistaPrevia=!1,t.events.subscribe(t=>{this.vistaPrevia=!1,""!=e.path()&&(this.vistaPrevia=!!e.path().startsWith("/event/preview"))})}ngOnInit(){this.parametersState$.subscribe(t=>{let e=t.parameters.filter(t=>t.key.startsWith("url")),n=e.find(t=>"url_facebook"==t.key);null!=n&&(this.urlFacebook=n.value);let i=e.find(t=>"url_instagram"==t.key);null!=i&&(this.urlInstagram=i.value);let r=e.find(t=>"url_youtube"==t.key);null!=r&&(this.urlYoutube=r.value)})}}yV.\u0275fac=function(t){return new(t||yV)(i.Y36(Vs),i.Y36(w))},yV.\u0275cmp=i.Xpm({type:yV,selectors:[["app-hd-social-icons"]],decls:1,vars:1,consts:[["class","socialicons text-right",4,"ngIf"],[1,"socialicons","text-right"],[1,"list-inline"],[3,"href"],[1,"fab","fa-facebook-f","fa-sm"],[1,"fab","fa-youtube","fa-sm"],[1,"fab","fa-instagram","fa-sm"]],template:function(t,e){1&t&&i.YNc(0,vV,11,3,"div",0),2&t&&i.Q6J("ngIf",!e.vistaPrevia)},directives:[ft],styles:[""]}),aa([ZZ(t=>t.parameters)],yV.prototype,"parametersState$",void 0);const bV=function(){return["index"]};function _V(t,e){1&t&&(i.TgZ(0,"div",18),i.TgZ(1,"a",19),i._UZ(2,"img",20),i.qZA(),i.qZA()),2&t&&(i.xp6(1),i.Q6J("routerLink",i.DdM(1,bV)))}function wV(t,e){if(1&t){const t=i.EpF();
1i.TgZ(0,"img",40),i.NdJ("click",function(){i.CHM(t);const e=i.oxw().$implicit;return i.oxw(3).clickSectionPage(e)}),i.qZA()}if(2&t){const t=i.oxw().$implicit,e=i.oxw(3);i.s9C("src",e.getSourceImage(t.sectionId.name),i.LSH)}}function xV(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",41),i.TgZ(1,"span",42),i.NdJ("click",function(){i.CHM(t);const e=i.oxw().$implicit;return i.oxw(3).clickSectionPage(e)}),i._uU(2),i.qZA(),i.TgZ(3,"div",43),i._UZ(4,"b",30),i.qZA(),i.qZA()}if(2&t){const t=i.oxw().$implicit;i.xp6(2),i.Oqu(t.menuTitle),i.xp6(2),i.Q6J("className",t.pages.length>0?"caret":"")}}function SV(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",44),i.TgZ(1,"span",42),i.NdJ("click",function(){i.CHM(t);const e=i.oxw().$implicit;return i.oxw(3).clickSectionPage(e)}),i._uU(2),i.qZA(),i.TgZ(3,"div",43),i._UZ(4,"b",30),i.qZA(),i.qZA()}if(2&t){const t=i.oxw().$implicit;i.xp6(2),i.Oqu(t.menuTitle),i.xp6(2),i.Q6J("className",t.pages.length>0?"caret":"")}}function TV(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",45),i.TgZ(1,"span",42),i.NdJ("click",function(){i.CHM(t);const e=i.oxw().$implicit;return i.oxw(3).clickSectionPage(e)}
1),i._uU(2),i.qZA(),i.TgZ(3,"div",43),i._UZ(4,"b",30),i.qZA(),i.qZA()}if(2&t){const t=i.oxw().$implicit;i.xp6(2),i.Oqu(t.menuTitle),i.xp6(2),i.Q6J("className",t.pages.length>0?"caret":"")}}function CV(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",46),i.TgZ(1,"span",42),i.NdJ("click",function(){i.CHM(t);const e=i.oxw().$implicit;return i.oxw(3).clickSectionPage(e)}),i._uU(2),i.qZA(),i.TgZ(3,"div",43),i._UZ(4,"b",30),i.qZA(),i.qZA()}if(2&t){const t=i.oxw().$implicit;i.xp6(2),i.Oqu(t.menuTitle),i.xp6(2),i.Q6J("className",t.pages.length>0?"caret":"")}}function EV(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",47),i.TgZ(1,"span",42),i.NdJ("click",function(){i.CHM(t);const e=i.oxw().$implicit;return i.oxw(3).clickSectionPage(e)}),i._uU(2),i.qZA(),i._uU(3," \xa0 "),i._UZ(4,"b",30),i.qZA()}if(2&t){const t=i.oxw().$implicit,e=i.oxw(3);i.Gre("",e.getColor2(t.sectionId.name)," cursor-pointer padding-navbar "),i.xp6(2),i.Oqu(t.menuTitle),i.xp6(2),i.Q6J("className",t.pages.length>0?"caret":"")}}function AV(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",48),i.TgZ(1,"span",42),i.NdJ("click",function(){i.CHM(t);const e=i.oxw().$implicit;return i.oxw(3).clickSectionPage(e)}
1),i._UZ(2,"img",49),i.qZA(),i._uU(3," \xa0 "),i.qZA()}if(2&t){const t=i.oxw().$implicit,e=i.oxw(3);i.xp6(2),i.s9C("src",e.getSourceImage(t.sectionId.name),i.LSH),i.s9C("alt",t.sectionId.name)}}function IV(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"li"),i.TgZ(1,"a",50),i.NdJ("click",function(){const e=i.CHM(t).$implicit,n=i.oxw().$implicit;return i.oxw(3).clickPage(n,e)}),i._uU(2),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit;i.xp6(2),i.Oqu(t.menuTitle)}}function kV(t,e){if(1&t&&(i.TgZ(0,"li",30),i.TgZ(1,"a",31),i.YNc(2,wV,1,1,"img",32),i.YNc(3,xV,5,2,"div",33),i.YNc(4,SV,5,2,"div",34),i.YNc(5,TV,5,2,"div",35),i.YNc(6,CV,5,2,"div",36),i.qZA(),i.YNc(7,EV,5,5,"a",37),i.YNc(8,AV,4,2,"a",38),i.TgZ(9,"ul",30),i.YNc(10,IV,3,1,"li",39),i.qZA(),i.qZA()),2&t){const t=e.$implicit,n=i.oxw(3);i.Q6J("className",n.dropdown),i.xp6(1),i.Gre("",n.getColor2(t.sectionId.name)," cursor-pointer padding-navbar "),i.xp6(1),i.Q6J("ngIf","Nosotros"!=t.sectionId.name&&"Patrocinio"!=t.sectionId.name),i.xp6(1),i.Q6J("ngIf","Sociedad"==t.menuTitle||"Sustentabilidad"==t.menuTitle),i.xp6(1),i.Q6J("ngIf","Cultura y Arte"==t.menuTitle),i.xp6(1),i.Q6J("ngIf","Nosotros"==t.menuTitle),i.xp6(1),i.Q6J("ngIf","Sustentabilidad"!=t.menuTitle&&"Sociedad"!=t.menuTitle&&"Cultura y Arte"!=t.menuTitle&&"Nosotros"!=t.menuTitle),i.xp6(1),i.Q6J("ngIf","Nosotros"===t.sectionId.name||"Patrocinio"===t.sectionId.name),i.xp6(1),i.Q6J("ngIf","Nosotros"!==t.sectionId.name&&"Patrocinio"!==t.sectionId.name),i.xp6(1),i.Q6J("className",t.pages.length>0?"dropdown-menu multi-level":""),i.xp6(1),i.Q6J("ngForOf",t.pages)}}function OV(t,e){if(1&t&&(i.TgZ(0,"a",51),i._UZ(1,"i",52),i._uU(2),i.qZA()),2&t){const t=i.oxw(3);i.xp6(2),i.hij("",null!=t.user.name?t.user.name.split(" ")[0]:"MI CUENTA"," ")}}function DV(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",53),i.NdJ("click",function(){return i.CHM(t),i.oxw(3).clickCuenta()}),i._uU(1,"MI CUENTA"),i.qZA()}}const NV=function(){return["myProfile"]};function PV(t,e){1&t&&(i.TgZ(0,"a",57),i._UZ(1,"i",58),i._uU(2,"MI PERFIL"),i.qZA()),2&t&&i.Q6J("routerLink",i.DdM(1,NV))}function RV(t,e){if(1&t&&(i.TgZ(0,"li"),i.YNc(1,PV,3,2,"a",56),i.qZA()),2&t){const t=i.oxw(4);i.xp6(1),i.Q6J("ngIf",t.registrado)}}function LV(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"li"),i.TgZ(1,"a",59),i.NdJ("click",function(){return i.CHM(t),i.oxw(4).signOut()}),i._UZ(2,"i",60),i._uU(3,"SALIR"),i.qZA(),i.qZA()}}function MV(t,e){if(1&t&&(i.TgZ(0,"ul",54),i.YNc(1,RV,2,1,"li",55),i.YNc(2,LV,4,0,"li",55),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",null!=t.user&&t.registrado),i.xp6(1),i.Q6J("ngIf",null!=t.user)}}function FV(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"ul",23),i.YNc(1,kV,11,13,"li",24),i.TgZ(2,"li"),i.YNc(3,OV,3,1,"a",25),i.YNc(4,DV,2,0,"a",26),i.YNc(5,MV,3,2,"ul",27),i.qZA(),i.TgZ(6,"li"),i.TgZ(7,"a",28),i.TgZ(8,"span"),i.TgZ(9,"i",29),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).buscar()}),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",t.sections),i.xp6(2),i.Q6J("ngIf",null!=t.user&&t.registrado),i.xp6(1),i.Q6J("ngIf",!t.registrado||null==t.user),i.xp6(1),i.Q6J("ngIf",null!=t.user)}}function ZV(t,e){if(1&t&&(i.TgZ(0,"div",21),i.YNc(1,FV,10,4,"ul",22),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngIf",null!=t.sections)}}let qV=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c){this.el=t,this.renderer=e,this.fs=n,this.userService=i,this.authenticationService=r,this.ps=s,this.router=o,this.route=c,this.user=null,this.registrado=!1,this.vistaPrevia=!1,this.collpaseMenu=!1,r.getLoggedInName.subscribe(t=>this.changeName(t)),r.registrado.subscribe(t=>this.changeRegistrado(t)),o.events.subscribe(()=>{this.vistaPrevia=!1,""!=a.path()&&(this.path=a.path(),this.vistaPrevia=!(!this.path.startsWith("/event/preview")&&!this.path.startsWith("/event/unsubcribe")))})}ngOnInit(){this.ps.getAll().subscribe(t=>{let e=t.filter(t=>t.main),n=t.filter(t=>!t.main);e.forEach(t=>{t.pages=[],n.filter(e=>e.sectionId.name==t.sectionId.name).forEach(e=>{t.pages.push(e)})});let i=e.sort((t,e)=>t.sectionId.priority>e.sectionId.priority?1:-1);this.sections=i}),this.route.data.subscribe(t=>{})}clickCuenta(){this.ingresoModal.openModal()}changeName(t){null!=t&&null!=this.authenticationService.userData&&this.userService.getById(this.authenticationService.userData.uid).subscribe(t=>{null!=t?(this.user=t,this.registrado=!0):this.registrado=!1})}changeRegistrado(t){this.registrado=t}signOut(){this.user=null,this.registrado=!1,this.authenticationService.signOut()}getColor(t){return this.fs.getColor(t)}getColor2(t){switch(t.toLowerCase()){case"sustentabilidad":return"color-sustentabilidad";case"promoci\xf3n de la salud":return"color-promocion";case"sociedad":return"color-sociedad";case"cultura y arte":return"color-arte";case"innovaci\xf3n":return"color-innovacion"}}clickSectionPage(t){this.closeNavBar(),"revistadiagnosis"!=t.menuTitle.trim().toLowerCase().replace(/\s+/g,"")?(this.router.navigate(["page",t.menuTitle.trim().toLowerCase().replace(/\s+/g,""),t.id]),"revistatodavia"==t.menuTitle.trim().toLowerCase().replace(/\s+/g,"")&&this.router.navigate(["todavia"])):"revistadiagnosis"==t.menuTitle.trim().toLowerCase().replace(/\s+/g,"")&&this.router.navigate(["diagnosis"])}clickPage(t,e){this.closeNavBar(),null==e.url?this.clickSectionPage(e):this.redirectURL(t,e)}
1redirectURL(t,e){e.url.startsWith("#")?this.router.navigate(["page",e.menuTitle.trim().toLowerCase(),t.id],{fragment:e.url.replace("#","")}):e.url.trim().toLowerCase().startsWith("http")&&window.open(e.url,"_blank")}buscar(){this.closeNavBar(),this.searchModal.openModal()}closeNavBar(){this.el.nativeElement.querySelector(".navbar-collapse").setAttribute("aria-expanded",!1),this.el.nativeElement.querySelector(".navbar-collapse").setAttribute("class","navbar-collapse collapse")}getbg(){return null==this.path?"background-header":this.path.startsWith("/page/arte")?"background-arte":this.path.startsWith("/page/sociedad")?"background-sociedad":this.path.startsWith("/page/promoci\xf3n")?"background-promocion":this.path.startsWith("/page/innovaci\xf3n")?"background-innovacion":this.path.startsWith("/page/sustentabilidad")?"background-sustentabilidad":"background-header"}getSourceImage(t){let e=t.toLowerCase();return"sustentabilidad"==e?"assets/img/sustentabilidad2.png":"promoci\xf3n de la salud"==e?"assets/img/promocion_de_salud2.png":"sociedad"==e?"assets/img/sociedad2.png":"cultura y arte"==e?"assets/img/arteycultura2.png":"innovaci\xf3n"==e?"assets/img/innovacion2.png":null}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(Fo),i.Y36(hy),i.Y36(AP),i.Y36(qZ),i.Y36(Vs),i.Y36(w),i.Y36(br))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-header"]],viewQuery:function(t,e){if(1&t&&(i.Gf(FP,7),i.Gf(mV,7)),2&t){let t;i.iGM(t=i.CRH())&&(e.ingresoModal=t.first),i.iGM(t=i.CRH())&&(e.searchModal=t.first)}},decls:25,vars:2,consts:[[1,"lgx-header"],[1,"background-header"],[1,"background-header-left"],["src","../../assets/img/Header_izq.png"],[1,"background-header-right"],["src","../../assets/img/Header_der.png"],[1,"col-md-12","pl-0"],["data-spy","affix","data-offset-top","200",1,"lgx-header-inner"],[1,"container-navbar"],[1,"row"],[1,"col-md-12"],[1,"navbar","navbar-default","lgx-navbar","flex-column","flex-md-row","bd-navbar"],[1,"navbar-header"],["type","button","data-toggle","collapse","data-target",".navbar-collapse",1,"navbar-toggle"],[1,"sr-only"],[1,"icon-bar"],["class","lgx-logo",4,"ngIf"],["class","collapse navbar-collapse",4,"ngIf"],[1,"lgx-logo"],[1,"lgx-scroll",3,"routerLink"],["src","assets/img/Logo-FO_Web3.png","alt","Logo"],[1,"collapse","navbar-collapse"],["class","nav navbar-nav lgx-nav",4,"ngIf"],[1,"nav","navbar-nav","lgx-nav"],[3,"className",4,"ngFor","ngForOf"],["class","lgx-scroll blue cursor-pointer pages","data-toggle","modal","data-target","#myModal",4,"ngIf"],["class","lgx-scroll cursor-pointer padding-navbar pages",3,"click",4,"ngIf"],["class","dropdown-menu multi-level",4,"ngIf"],[1,"lgx-scroll","border-left","padding-navbar","pages"],[1,"fas","fa-search",3,"click"],[3,"className"],["id","tituloclass"],["style","vertical-align: middle; padding-right: 3px","class","rounded","alt","",3,"src","click",4,"ngIf"],["class","navbar-sustentabilidad-sociedad",4,"ngIf"],["class","navbar-culturayarte",4,"ngIf"],["class","navbar-nosotros",4,"ngIf"],["class","navbar-texts",4,"ngIf"],["id","iconosclass2",3,"class",4,"ngIf"],["id","iconosclass","class","cursor-pointer padding-navbar",4,"ngIf"],[4,"ngFor","ngForOf"],["alt","",1,"rounded",2,"vertical-align","middle","padding-right","3px",3,"src","click"],[1,"navbar-sustentabilidad-sociedad"],[3,"click"],[1,"navbar-arrow"],[1,"navbar-culturayarte"],[1,"navbar-nosotros"],[1,"navbar-texts"],["id","iconosclass2"],["id","iconosclass",1,"cursor-pointer","padding-navbar"],[1,"rounded",2,"vertical-align","middle",3,"src","alt"],[1,"cursor-pointer",3,"click"],["data-toggle","modal","data-target","#myModal",1,"lgx-scroll","blue","cursor-pointer","pages"],[1,"far","fa-user","blue","mr"],[1,"lgx-scroll","cursor-pointer","padding-navbar","pages",3,"click"],[1,"dropdown-menu","multi-level"],[4,"ngIf"],["class","blue cursor-pointer",3,"routerLink",4,"ngIf"],[1,"blue","cursor-pointer",3,"routerLink"],[1,"far","fa-user","blue","mr","pages",2,"margin-top","4px"],[1,"blue",3,"click"],[1,"fas","fa-file-export","blue","mr","pages",2,"margin-top","4px"]],template:function(t,e){1&t&&(i.TgZ(0,"header"),i.TgZ(1,"div",0),i.TgZ(2,"div",1),i.TgZ(3,"div",2),i._UZ(4,"img",3),i.qZA(),i.TgZ(5,"div",4),i._UZ(6,"img",5),i.qZA(),i.qZA(),i.TgZ(7,"div",6),i._UZ(8,"a
1pp-hd-social-icons"),i.qZA(),i.TgZ(9,"div",7),i.TgZ(10,"div",8),i.TgZ(11,"div",9),i.TgZ(12,"div",10),i.TgZ(13,"nav",11),i.TgZ(14,"div",12),i.TgZ(15,"button",13),i.TgZ(16,"span",14),i._uU(17,"Toggle navigation"),i.qZA(),i._UZ(18,"span",15),i._UZ(19,"span",15),i._UZ(20,"span",15),i.qZA(),i.YNc(21,_V,3,2,"div",16),i.qZA(),i.YNc(22,ZV,2,1,"div",17),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i._UZ(23,"app-ingreso-modal"),i._UZ(24,"app-event-search")),2&t&&(i.xp6(21),i.Q6J("ngIf",!e.vistaPrevia),i.xp6(1),i.Q6J("ngIf",!e.vistaPrevia))},directives:[yV,ft,FP,mV,Bs,ht],styles:[".socialicons[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background-color:#5da3f9}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function UV(t,e){if(1&t&&(i.TgZ(0,"li"),i.TgZ(1,"a",10),i._uU(2),i.qZA(),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.s9C("href",t.value,i.LSH),i.xp6(1),i.hij("",t.description,"\xa0 |")}}function VV(t,e){if(1&t&&(i.TgZ(0,"ul",8),i.YNc(1,UV,3,2,"li",9),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngForOf",t.parameters)}}const jV=function(t){return[t]};function BV(t,e){if(1&t&&(i.TgZ(0,"div",11),i.TgZ(1,"p"),i._uU(2,"\xae Fundaci\xf3n OSDE 2012 - Av. Leandro N. Alem 1067 - Piso 9 - Ciudad Aut\xf3noma de Buenos Aires - Tel. 0810 333 36733 - CUIT: 30-63767704-3"),i.qZA(),i.TgZ(3,"p"),i.TgZ(4,"a",12),i._uU(5,"Acuerdo con el Usuario"),i.qZA(),i._uU(6," - "),i.TgZ(7,"a",12),i._uU(8,"Pol\xedtica de privacidad"),i.qZA(),i._uU(9," - \xae FUNDACI\xd3N OSDE 2008 - Todos los derechos reservados."),i.qZA(),i.TgZ(10,"p"),i._uU(11),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.xp6(4),i.Q6J("routerLink",i.VKq(3,jV,null==t.sections[0]?null:t.sections[0].url)),i.xp6(3),i.Q6J("routerLink",i.VKq(5,jV,null==t.sections[1]?null:t.sections[1].url)),i.xp6(4),i.hij("Versi\xf3n ",t.version,"")}}class zV{constructor(t,e,n){this.router=t,this.ps=n,this.sections=[],this.vistaPrevia=!1,this.hidden=!1,t.events.subscribe(t=>{this.vistaPrevia=!1,""!=e.path()&&(this.ruta=e.path(),this.vistaPrevia=!!this.ruta.startsWith("/event/preview"),this.hidden=!!this.ruta.startsWith("/event/unsubcribe"))})}ngOnInit(){this.parametersState$.subscribe(t=>{let e=t.parameters.filter(t=>t.key.startsWith("footer_url"));this.parameters=e}),this.ps.getAll().subscribe(t=>{let e=t.filter(t=>!t.main&&("Acuerdo con el usuario"==t.sectionId.name||"Politica de privacidad"==t.sectionId.name)).sort((t,e)=>t.sectionId.priority>e.sectionId.priority?1:-1);this.sections=e}),this.version=No.settings.version}}function HV(t,e){1&t&&i._UZ(0,"app-header")}function GV(t,e){1&t&&i._UZ(0,"app-footer")}zV.\u0275fac=function(t){return new(t||zV)(i.Y36(Vs),i.Y36(w),i.Y36(qZ))},zV.\u0275cmp=i.Xpm({type:zV,selectors:[["app-footer"]],decls:8,vars:3,consts:[[3,"hidden"],[1,"footer-in"],[1,"footer-border1"],["src","../../assets/img/FooterL.png"],["class","list-inline text-center",4,"ngIf"],["class","text-center copyright",4,"ngIf"],[1,"footer-border2"],["src","../../assets/img/FooterR.png"],[1,"list-inline","text-center"],[4,"ngFor","ngForOf"],["target","_blank",1,"light-blue",3,"href"],[1,"text-center","copyright"],[1,"blue",3,"routerLink"]],template:function(t,e){1&t&&(i.TgZ(0,"footer",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i._UZ(3,"img",3),i.qZA(),i.YNc(4,VV,2,1,"ul",4),i.YNc(5,BV,12,7,"div",5),i.TgZ(6,"div",6),i._UZ(7,"img",7),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.Q6J("hidden",e.hidden),i.xp6(4),i.Q6J("ngIf",!e.vistaPrevia),i.xp6(1),i.Q6J("ngIf",!e.vistaPrevia))},directives:[ft,ht,Bs],styles:[""]}),aa([ZZ(t=>t.parameters)],zV.prototype,"parametersState$",void 0);let YV=(()=>{class t{constructor(t,e,n){this.store=t,this.router=e,this.titleService=n,this.isLoading=!0,this.router.events.subscribe(t=>{})}ngOnInit(){this.titleService.boot(),this.store.dispatch(new tV),this.store.dispatch(new rV)}ngAfterViewChecked(){setTimeout(()=>this.isLoading=!1,1e3)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(IZ),i.Y36(Vs),i.Y36(lV))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-root"]],decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(i.YNc(0,HV,
11,0,"app-header",0),i._UZ(1,"router-outlet"),i.YNc(2,GV,1,0,"app-footer",0)),2&t&&(i.Q6J("ngIf","/espaciodearte"!==e.router.url),i.xp6(2),i.Q6J("ngIf","/espaciodearte"!==e.router.url&&!e.isLoading))},directives:[ft,Hs,qV,zV],styles:[""]}),t})();function QV(t){return t.fireConfig()}!function(t,e,n){(0,i.dwT)(t,"es-Ar",void 0)}(uV());let $V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t,bootstrap:[YV]}),t.\u0275inj=i.cJS({providers:[{provide:i.soG,useValue:"es-Ar"},No,{provide:dy.Dh,deps:[No],useFactory:QV},[lV]],imports:[[gv,Tf,qq,ZU.forRoot(),Do.forRoot(),rM.forRoot(),_L,ve,dn,cU,LZ.forRoot([iV,aV],{developmentMode:!0}),BU.forRoot(),WU.forRoot(),uy.forRoot(),xc,Sc,fM,dy.hO,lP,EP,DL.withConfig({debug:!1,include:["facebook","linkedin","twitter","whatsapp","copy"]}),XU,Bp,zf,up,ap,Dg,pg,op]]}),t})();var JV=n(7521),WV=n(5299),KV=n(786),XV=n(2391),tj=n(2464),ej=n(933),nj=n(5380),ij=n(8458),rj=n(3319),sj=n(1798),oj=n(5025),aj=n(9569),cj=n(7993),uj=n(2764),lj=n(4296),hj=n(4239),dj=n(9581),fj=n(2038),pj=n(4703),gj=n(3329),mj=n(6258),vj=n(7655);hL.add(JV.AY,WV.md,XV.hw,tj.cu,nj.eG,KV.hH,ej.yY,ij.VH,rj.iD,sj.oJ,oj.IK,aj.hO,cj.Sc,lj.Eg,vj.FU,mj.LE,gj.wf,pj.WV,fj.nN,dj.cN,hj.Kl,uj.OP),lo.production&&(0,i.G48)();let yj="/api/info";"4200"==document.location.port&&(yj=lo.urlApiRestLocal+"/info"),fetch(yj).then(t=>t.json()).then(t=>{fetch("/assets/config/environment."+t.environment+".json").then(t=>t.json()).then(t=>{window.config=t,ge().bootstrapModule($V)})})}},function(t){t(t.s=187)}]);

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.