(()=>{"use strict";var e,v={},s={};function a(e){var n=s[e];if(void 0!==n)return n.exports;var r=s[e]={exports:{}};return v[e](r,r.exports,a),r.exports}a.m=v,e=[],a.O=(n,r,o,f)=>{if(!r){var c=1/0;for(t=0;t<e.length;t++){for(var[r,o,f]=e[t],d=!0,l=0;l<r.length;l++)(!1&f||c>=f)&&Object.keys(a.O).every(h=>a.O[h](r[l]))?r.splice(l--,1):(d=!1,f<c&&(c=f));if(d){e.splice(t--,1);var u=o();void 0!==u&&(n=u)}}return n}f=f||0;for(var t=e.length;t>0&&e[t-1][2]>f;t--)e[t]=e[t-1];e[t]=[r,o,f]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={666:0};a.O.j=o=>0===e[o];var n=(o,f)=>{var l,u,[t,c,d]=f,i=0;if(t.some(b=>0!==e[b])){for(l in c)a.o(c,l)&&(a.m[l]=c[l]);if(d)var _=d(a)}for(o&&o(f);i<t.length;i++)a.o(e,u=t[i])&&e[u]&&e[u][0](),e[u]=0;return a.O(_)},r=self.webpackChunkchat_widget=self.webpackChunkchat_widget||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})()})();
"use strict";(self.webpackChunkchat_widget=self.webpackChunkchat_widget||[]).push([[429],{435:(we,ue,he)=>{he(583)},583:()=>{!function(e){const n=e.performance;function i(I){n&&n.mark&&n.mark(I)}function r(I,p){n&&n.measure&&n.measure(I,p)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function u(I){return c+I}const f=!0===e[u("forceDuplicateZoneCheck")];if(e.Zone){if(f||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let _=(()=>{class I{constructor(t,o){this._parent=t,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new T(this,this._parent&&this._parent._zoneDelegate,o)}static assertZonePatched(){if(e.Promise!==J.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=I.current;for(;t.parent;)t=t.parent;return t}static get current(){return G.zone}static get currentTask(){return te}static __load_patch(t,o,g=!1){if(J.hasOwnProperty(t)){if(!g&&f)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const P="Zone:"+t;i(P),J[t]=o(e,I,le),r(P,P)}}get parent(){return this._parent}get name(){return this._name}get(t){const o=this.getZoneWith(t);if(o)return o._properties[t]}getZoneWith(t){let o=this;for(;o;){if(o._properties.hasOwnProperty(t))return o;o=o._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,o){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const g=this._zoneDelegate.intercept(this,t,o),P=this;return function(){return P.runGuarded(g,this,arguments,o)}}run(t,o,g,P){G={parent:G,zone:this};try{return this._zoneDelegate.invoke(this,t,o,g,P)}finally{G=G.parent}}runGuarded(t,o=null,g,P){G={parent:G,zone:this};try{try{return this._zoneDelegate.invoke(this,t,o,g,P)}catch(K){if(this._zoneDelegate.handleError(this,K))throw K}}finally{G=G.parent}}runTask(t,o,g){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||z).name+"; Execution: "+this.name+")");if(t.state===j&&(t.type===R||t.type===M))return;const P=t.state!=X;P&&t._transitionTo(X,O),t.runCount++;const K=te;te=t,G={parent:G,zone:this};try{t.type==M&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,o,g)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==j&&t.state!==Y&&(t.type==R||t.data&&t.data.isPeriodic?P&&t._transitionTo(O,X):(t.runCount=0,this._updateTaskCount(t,-1),P&&t._transitionTo(j,X,j))),G=G.parent,te=K}}scheduleTask(t){if(t.zone&&t.zone!==this){let g=this;for(;g;){if(g===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);g=g.parent}}t._transitionTo(q,j);const o=[];t._zoneDelegates=o,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(g){throw t._transitionTo(Y,q,j),this._zoneDelegate.handleError(this,g),g}return t._zoneDelegates===o&&this._updateTaskCount(t,1),t.state==q&&t._transitionTo(O,q),t}scheduleMicroTask(t,o,g,P){return this.scheduleTask(new m(v,t,o,g,P,void 0))}scheduleMacroTask(t,o,g,P,K){return this.scheduleTask(new m(M,t,o,g,P,K))}scheduleEventTask(t,o,g,P,K){return this.scheduleTask(new m(R,t,o,g,P,K))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||z).name+"; Execution: "+this.name+")");t._transitionTo(A,O,X);try{this._zoneDelegate.cancelTask(this,t)}catch(o){throw t._transitionTo(Y,A),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(t,-1),t._transitionTo(j,A),t.runCount=0,t}_updateTaskCount(t,o){const g=t._zoneDelegates;-1==o&&(t._zoneDelegates=null);for(let P=0;P<g.length;P++)g[P]._updateTaskCount(t.type,o)}}return I.__symbol__=u,I})();const y={name:"",onHasTask:(I,p,t,o)=>I.hasTask(t,o),onScheduleTask:(I,p,t,o)=>I.scheduleTask(t,o),onInvokeTask:(I,p,t,o,g,P)=>I.invokeTask(t,o,g,P),onCancelTask:(I,p,t,o)=>I.cancelTask(t,o)};class T{constructor(p,t,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=p,this._parentDelegate=t,this._forkZS=o&&(o&&o.onFork?o:t._forkZS),this._forkDlgt=o&&(o.onFork?t:t._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:t._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:t._interceptZS),this._interceptDlgt=o&&(o.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:t._invokeZS),this._invokeDlgt=o&&(o.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:t._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:t._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:t._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:t._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const g=o&&o.onHasTask;(g||t&&t._hasTaskZS)&&(this._hasTaskZS=g?o:y,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=p,o.onScheduleTask||(this._scheduleTaskZS=y,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=y,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=y,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(p,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,p,t):new _(p,t)}intercept(p,t,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,p,t,o):t}invoke(p,t,o,g,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,p,t,o,g,P):t.apply(o,g)}handleError(p,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,p,t)}scheduleTask(p,t){let o=t;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,p,t),o||(o=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=v)throw new Error("Task is missing scheduleFn.");d(t)}return o}invokeTask(p,t,o,g){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,p,t,o,g):t.callback.apply(o,g)}cancelTask(p,t){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,p,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");o=t.cancelFn(t)}return o}hasTask(p,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,p,t)}catch(o){this.handleError(p,o)}}_updateTaskCount(p,t){const o=this._taskCounts,g=o[p],P=o[p]=g+t;if(P<0)throw new Error("More tasks executed then were scheduled.");0!=g&&0!=P||this.hasTask(this.zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:p})}}class m{constructor(p,t,o,g,P,K){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=p,this.source=t,this.data=g,this.scheduleFn=P,this.cancelFn=K,!o)throw new Error("callback is not defined");this.callback=o;const l=this;this.invoke=p===R&&g&&g.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(p,t,o){p||(p=this),re++;try{return p.runCount++,p.zone.runTask(p,t,o)}finally{1==re&&L(),re--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(j,q)}_transitionTo(p,t,o){if(this._state!==t&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${p}', expecting state '${t}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=p,p==j&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const S=u("setTimeout"),D=u("Promise"),Z=u("then");let E,B=[],V=!1;function d(I){if(0===re&&0===B.length)if(E||e[D]&&(E=e[D].resolve(0)),E){let p=E[Z];p||(p=E.then),p.call(E,L)}else e[S](L,0);I&&B.push(I)}function L(){if(!V){for(V=!0;B.length;){const I=B;B=[];for(let p=0;p<I.length;p++){const t=I[p];try{t.zone.runTask(t,null,null)}catch(o){le.onUnhandledError(o)}}}le.microtaskDrainDone(),V=!1}}const z={name:"NO ZONE"},j="notScheduled",q="scheduling",O="scheduled",X="running",A="canceling",Y="unknown",v="microTask",M="macroTask",R="eventTask",J={},le={symbol:u,currentZoneFrame:()=>G,onUnhandledError:F,microtaskDrainDone:F,scheduleMicroTask:d,showUncaughtError:()=>!_[u("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:F,patchMethod:()=>F,bindArguments:()=>[],patchThen:()=>F,patchMacroTask:()=>F,patchEventPrototype:()=>F,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>F,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>F,wrapWithCurrentZone:()=>F,filterProperties:()=>[],attachOriginToPatched:()=>F,_redefineProperty:()=>F,patchCallbacks:()=>F};let G={parent:null,zone:new _(null,null)},te=null,re=0;function F(){}r("Zone","Zone"),e.Zone=_}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ue=Object.getOwnPropertyDescriptor,he=Object.defineProperty,de=Object.getPrototypeOf,Be=Object.create,ut=Array.prototype.slice,Se="addEventListener",Oe="removeEventListener",Ze=Zone.__symbol__(Se),Ie=Zone.__symbol__(Oe),se="true",ie="false",ke=Zone.__symbol__("");function Le(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,r,c){return Zone.current.scheduleMacroTask(e,n,i,r,c)}const x=Zone.__symbol__,Pe=typeof window<"u",pe=Pe?window:void 0,$=Pe&&pe||"object"==typeof self&&self||global,ht=[null];function Ae(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Le(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Ue=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in $)&&typeof $.process<"u"&&"[object process]"==={}.toString.call($.process),je=!Re&&!Ue&&!(!Pe||!pe.HTMLElement),We=typeof $.process<"u"&&"[object process]"==={}.toString.call($.process)&&!Ue&&!(!Pe||!pe.HTMLElement),Ce={},qe=function(e){if(!(e=e||$.event))return;let n=Ce[e.type];n||(n=Ce[e.type]=x("ON_PROPERTY"+e.type));const i=this||e.target||$,r=i[n];let c;if(je&&i===pe&&"error"===e.type){const u=e;c=r&&r.call(this,u.message,u.filename,u.lineno,u.colno,u.error),!0===c&&e.preventDefault()}else c=r&&r.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function Xe(e,n,i){let r=ue(e,n);if(!r&&i&&ue(i,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const c=x("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete r.writable,delete r.value;const u=r.get,f=r.set,_=n.substr(2);let y=Ce[_];y||(y=Ce[_]=x("ON_PROPERTY"+_)),r.set=function(T){let m=this;!m&&e===$&&(m=$),m&&(m[y]&&m.removeEventListener(_,qe),f&&f.apply(m,ht),"function"==typeof T?(m[y]=T,m.addEventListener(_,qe,!1)):m[y]=null)},r.get=function(){let T=this;if(!T&&e===$&&(T=$),!T)return null;const m=T[y];if(m)return m;if(u){let S=u&&u.call(this);if(S)return r.set.call(this,S),"function"==typeof T.removeAttribute&&T.removeAttribute(n),S}return null},he(e,n,r),e[c]=!0}function Ye(e,n,i){if(n)for(let r=0;r<n.length;r++)Xe(e,"on"+n[r],i);else{const r=[];for(const c in e)"on"==c.substr(0,2)&&r.push(c);for(let c=0;c<r.length;c++)Xe(e,r[c],i)}}const ne=x("originalInstance");function ve(e){const n=$[e];if(!n)return;$[x(e)]=n,$[e]=function(){const c=Ae(arguments,e);switch(c.length){case 0:this[ne]=new n;break;case 1:this[ne]=new n(c[0]);break;case 2:this[ne]=new n(c[0],c[1]);break;case 3:this[ne]=new n(c[0],c[1],c[2]);break;case 4:this[ne]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},ae($[e],n);const i=new n(function(){});let r;for(r in i)"XMLHttpRequest"===e&&"responseBlob"===r||function(c){"function"==typeof i[c]?$[e].prototype[c]=function(){return this[ne][c].apply(this[ne],arguments)}:he($[e].prototype,c,{set:function(u){"function"==typeof u?(this[ne][c]=Le(u,e+"."+c),ae(this[ne][c],u)):this[ne][c]=u},get:function(){return this[ne][c]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&($[e][r]=n[r])}function ce(e,n,i){let r=e;for(;r&&!r.hasOwnProperty(n);)r=de(r);!r&&e[n]&&(r=e);const c=x(n);let u=null;if(r&&(!(u=r[c])||!r.hasOwnProperty(c))&&(u=r[c]=r[n],Fe(r&&ue(r,n)))){const _=i(u,c,n);r[n]=function(){return _(this,arguments)},ae(r[n],u)}return u}function _t(e,n,i){let r=null;function c(u){const f=u.data;return f.args[f.cbIdx]=function(){u.invoke.apply(this,arguments)},r.apply(f.target,f.args),u}r=ce(e,n,u=>function(f,_){const y=i(f,_);return y.cbIdx>=0&&"function"==typeof _[y.cbIdx]?Me(y.name,_[y.cbIdx],y,c):u.apply(f,_)})}function ae(e,n){e[x("OriginalDelegate")]=n}let $e=!1,He=!1;function mt(){if($e)return He;$e=!0;try{const e=pe.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(He=!0)}catch{}return He}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const r=Object.getOwnPropertyDescriptor,c=Object.defineProperty,f=i.symbol,_=[],y=!0===e[f("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],T=f("Promise"),m=f("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const s=l&&l.rejection;s?console.error("Unhandled Promise rejection:",s instanceof Error?s.message:s,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",s,s instanceof Error?s.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;_.length;){const l=_.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(s){Z(s)}}};const D=f("unhandledPromiseRejectionHandler");function Z(l){i.onUnhandledError(l);try{const s=n[D];"function"==typeof s&&s.call(this,l)}catch{}}function B(l){return l&&l.then}function V(l){return l}function E(l){return t.reject(l)}const d=f("state"),L=f("value"),z=f("finally"),j=f("parentPromiseValue"),q=f("parentPromiseState"),X=null,A=!0,Y=!1;function M(l,s){return a=>{try{G(l,s,a)}catch(h){G(l,!1,h)}}}const le=f("currentTaskTrace");function G(l,s,a){const h=function(){let l=!1;return function(a){return function(){l||(l=!0,a.apply(null,arguments))}}}();if(l===a)throw new TypeError("Promise resolved with itself");if(l[d]===X){let w=null;try{("object"==typeof a||"function"==typeof a)&&(w=a&&a.then)}catch(C){return h(()=>{G(l,!1,C)})(),l}if(s!==Y&&a instanceof t&&a.hasOwnProperty(d)&&a.hasOwnProperty(L)&&a[d]!==X)re(a),G(l,a[d],a[L]);else if(s!==Y&&"function"==typeof w)try{w.call(a,h(M(l,s)),h(M(l,!1)))}catch(C){h(()=>{G(l,!1,C)})()}else{l[d]=s;const C=l[L];if(l[L]=a,l[z]===z&&s===A&&(l[d]=l[q],l[L]=l[j]),s===Y&&a instanceof Error){const k=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;k&&c(a,le,{configurable:!0,enumerable:!1,writable:!0,value:k})}for(let k=0;k<C.length;)F(l,C[k++],C[k++],C[k++],C[k++]);if(0==C.length&&s==Y){l[d]=0;let k=a;try{throw new Error("Uncaught (in promise): "+function u(l){return l&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l)}(a)+(a&&a.stack?"\n"+a.stack:""))}catch(b){k=b}y&&(k.throwOriginal=!0),k.rejection=a,k.promise=l,k.zone=n.current,k.task=n.currentTask,_.push(k),i.scheduleMicroTask()}}}return l}const te=f("rejectionHandledHandler");function re(l){if(0===l[d]){try{const s=n[te];s&&"function"==typeof s&&s.call(this,{rejection:l[L],promise:l})}catch{}l[d]=Y;for(let s=0;s<_.length;s++)l===_[s].promise&&_.splice(s,1)}}function F(l,s,a,h,w){re(l);const C=l[d],k=C?"function"==typeof h?h:V:"function"==typeof w?w:E;s.scheduleMicroTask("Promise.then",()=>{try{const b=l[L],N=!!a&&z===a[z];N&&(a[j]=b,a[q]=C);const H=s.run(k,void 0,N&&k!==E&&k!==V?[]:[b]);G(a,!0,H)}catch(b){G(a,!1,b)}},a)}const p=function(){};class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(s){return G(new this(null),A,s)}static reject(s){return G(new this(null),Y,s)}static race(s){let a,h,w=new this((b,N)=>{a=b,h=N});function C(b){a(b)}function k(b){h(b)}for(let b of s)B(b)||(b=this.resolve(b)),b.then(C,k);return w}static all(s){return t.allWithCallback(s)}static allSettled(s){return(this&&this.prototype instanceof t?this:t).allWithCallback(s,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(s,a){let h,w,C=new this((H,U)=>{h=H,w=U}),k=2,b=0;const N=[];for(let H of s){B(H)||(H=this.resolve(H));const U=b;try{H.then(Q=>{N[U]=a?a.thenCallback(Q):Q,k--,0===k&&h(N)},Q=>{a?(N[U]=a.errorCallback(Q),k--,0===k&&h(N)):w(Q)})}catch(Q){w(Q)}k++,b++}return k-=2,0===k&&h(N),C}constructor(s){const a=this;if(!(a instanceof t))throw new Error("Must be an instanceof Promise.");a[d]=X,a[L]=[];try{s&&s(M(a,A),M(a,Y))}catch(h){G(a,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(s,a){let h=this.constructor[Symbol.species];(!h||"function"!=typeof h)&&(h=this.constructor||t);const w=new h(p),C=n.current;return this[d]==X?this[L].push(C,w,s,a):F(this,C,w,s,a),w}catch(s){return this.then(null,s)}finally(s){let a=this.constructor[Symbol.species];(!a||"function"!=typeof a)&&(a=t);const h=new a(p);h[z]=z;const w=n.current;return this[d]==X?this[L].push(w,h,s,s):F(this,w,h,s,s),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const o=e[T]=e.Promise;e.Promise=t;const g=f("thenPatched");function P(l){const s=l.prototype,a=r(s,"then");if(a&&(!1===a.writable||!a.configurable))return;const h=s.then;s[m]=h,l.prototype.then=function(w,C){return new t((b,N)=>{h.call(this,b,N)}).then(w,C)},l[g]=!0}return i.patchThen=P,o&&(P(o),ce(e,"fetch",l=>function K(l){return function(s,a){let h=l.apply(s,a);if(h instanceof t)return h;let w=h.constructor;return w[g]||P(w),h}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=_,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=x("OriginalDelegate"),r=x("Promise"),c=x("Error"),u=function(){if("function"==typeof this){const T=this[i];if(T)return"function"==typeof T?n.call(T):Object.prototype.toString.call(T);if(this===Promise){const m=e[r];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};u[i]=n,Function.prototype.toString=u;const f=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":f.call(this)}});let me=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{me=!1}const Et={useG:!0},ee={},Ke={},Je=new RegExp("^"+ke+"(\\w+)(true|false)$"),xe=x("propagationStopped");function Qe(e,n){const i=(n?n(e):e)+ie,r=(n?n(e):e)+se,c=ke+i,u=ke+r;ee[e]={},ee[e][ie]=c,ee[e][se]=u}function Tt(e,n,i){const r=i&&i.add||Se,c=i&&i.rm||Oe,u=i&&i.listeners||"eventListeners",f=i&&i.rmAll||"removeAllListeners",_=x(r),y="."+r+":",S=function(E,d,L){if(E.isRemoved)return;const z=E.callback;"object"==typeof z&&z.handleEvent&&(E.callback=q=>z.handleEvent(q),E.originalDelegate=z),E.invoke(E,d,[L]);const j=E.options;j&&"object"==typeof j&&j.once&&d[c].call(d,L.type,E.originalDelegate?E.originalDelegate:E.callback,j)},D=function(E){if(!(E=E||e.event))return;const d=this||E.target||e,L=d[ee[E.type][ie]];if(L)if(1===L.length)S(L[0],d,E);else{const z=L.slice();for(let j=0;j<z.length&&(!E||!0!==E[xe]);j++)S(z[j],d,E)}},Z=function(E){if(!(E=E||e.event))return;const d=this||E.target||e,L=d[ee[E.type][se]];if(L)if(1===L.length)S(L[0],d,E);else{const z=L.slice();for(let j=0;j<z.length&&(!E||!0!==E[xe]);j++)S(z[j],d,E)}};function B(E,d){if(!E)return!1;let L=!0;d&&void 0!==d.useG&&(L=d.useG);const z=d&&d.vh;let j=!0;d&&void 0!==d.chkDup&&(j=d.chkDup);let q=!1;d&&void 0!==d.rt&&(q=d.rt);let O=E;for(;O&&!O.hasOwnProperty(r);)O=de(O);if(!O&&E[r]&&(O=E),!O||O[_])return!1;const X=d&&d.eventNameToString,A={},Y=O[_]=O[r],v=O[x(c)]=O[c],M=O[x(u)]=O[u],R=O[x(f)]=O[f];let J;function le(s,a){return!me&&"object"==typeof s&&s?!!s.capture:me&&a?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}d&&d.prepend&&(J=O[x(d.prepend)]=O[d.prepend]);const p=L?function(s){if(!A.isExisting)return Y.call(A.target,A.eventName,A.capture?Z:D,A.options)}:function(s){return Y.call(A.target,A.eventName,s.invoke,A.options)},t=L?function(s){if(!s.isRemoved){const a=ee[s.eventName];let h;a&&(h=a[s.capture?se:ie]);const w=h&&s.target[h];if(w)for(let C=0;C<w.length;C++)if(w[C]===s){w.splice(C,1),s.isRemoved=!0,0===w.length&&(s.allRemoved=!0,s.target[h]=null);break}}if(s.allRemoved)return v.call(s.target,s.eventName,s.capture?Z:D,s.options)}:function(s){return v.call(s.target,s.eventName,s.invoke,s.options)},g=d&&d.diff?d.diff:function(s,a){const h=typeof a;return"function"===h&&s.callback===a||"object"===h&&s.originalDelegate===a},P=Zone[x("UNPATCHED_EVENTS")],K=e[x("PASSIVE_EVENTS")],l=function(s,a,h,w,C=!1,k=!1){return function(){const b=this||e;let N=arguments[0];d&&d.transferEventName&&(N=d.transferEventName(N));let H=arguments[1];if(!H)return s.apply(this,arguments);if(Re&&"uncaughtException"===N)return s.apply(this,arguments);let U=!1;if("function"!=typeof H){if(!H.handleEvent)return s.apply(this,arguments);U=!0}if(z&&!z(s,H,b,arguments))return;const Q=me&&!!K&&-1!==K.indexOf(N),oe=le(arguments[2],Q);if(P)for(let _e=0;_e<P.length;_e++)if(N===P[_e])return Q?s.call(b,N,H,oe):s.apply(this,arguments);const Ge=!!oe&&("boolean"==typeof oe||oe.capture),st=!(!oe||"object"!=typeof oe)&&oe.once,At=Zone.current;let ze=ee[N];ze||(Qe(N,X),ze=ee[N]);const it=ze[Ge?se:ie];let De,ye=b[it],ct=!1;if(ye){if(ct=!0,j)for(let _e=0;_e<ye.length;_e++)if(g(ye[_e],H))return}else ye=b[it]=[];const at=b.constructor.name,lt=Ke[at];lt&&(De=lt[N]),De||(De=at+a+(X?X(N):N)),A.options=oe,st&&(A.options.once=!1),A.target=b,A.capture=Ge,A.eventName=N,A.isExisting=ct;const be=L?Et:void 0;be&&(be.taskData=A);const fe=At.scheduleEventTask(De,H,be,h,w);return A.target=null,be&&(be.taskData=null),st&&(oe.once=!0),!me&&"boolean"==typeof fe.options||(fe.options=oe),fe.target=b,fe.capture=Ge,fe.eventName=N,U&&(fe.originalDelegate=H),k?ye.unshift(fe):ye.push(fe),C?b:void 0}};return O[r]=l(Y,y,p,t,q),J&&(O.prependListener=l(J,".prependListener:",function(s){return J.call(A.target,A.eventName,s.invoke,A.options)},t,q,!0)),O[c]=function(){const s=this||e;let a=arguments[0];d&&d.transferEventName&&(a=d.transferEventName(a));const h=arguments[2],w=!!h&&("boolean"==typeof h||h.capture),C=arguments[1];if(!C)return v.apply(this,arguments);if(z&&!z(v,C,s,arguments))return;const k=ee[a];let b;k&&(b=k[w?se:ie]);const N=b&&s[b];if(N)for(let H=0;H<N.length;H++){const U=N[H];if(g(U,C))return N.splice(H,1),U.isRemoved=!0,0===N.length&&(U.allRemoved=!0,s[b]=null,"string"==typeof a)&&(s[ke+"ON_PROPERTY"+a]=null),U.zone.cancelTask(U),q?s:void 0}return v.apply(this,arguments)},O[u]=function(){const s=this||e;let a=arguments[0];d&&d.transferEventName&&(a=d.transferEventName(a));const h=[],w=et(s,X?X(a):a);for(let C=0;C<w.length;C++){const k=w[C];h.push(k.originalDelegate?k.originalDelegate:k.callback)}return h},O[f]=function(){const s=this||e;let a=arguments[0];if(a){d&&d.transferEventName&&(a=d.transferEventName(a));const h=ee[a];if(h){const k=s[h[ie]],b=s[h[se]];if(k){const N=k.slice();for(let H=0;H<N.length;H++){const U=N[H];this[c].call(this,a,U.originalDelegate?U.originalDelegate:U.callback,U.options)}}if(b){const N=b.slice();for(let H=0;H<N.length;H++){const U=N[H];this[c].call(this,a,U.originalDelegate?U.originalDelegate:U.callback,U.options)}}}}else{const h=Object.keys(s);for(let w=0;w<h.length;w++){const k=Je.exec(h[w]);let b=k&&k[1];b&&"removeListener"!==b&&this[f].call(this,b)}this[f].call(this,"removeListener")}if(q)return this},ae(O[r],Y),ae(O[c],v),R&&ae(O[f],R),M&&ae(O[u],M),!0}let V=[];for(let E=0;E<n.length;E++)V[E]=B(n[E],i);return V}function et(e,n){if(!n){const u=[];for(let f in e){const _=Je.exec(f);let y=_&&_[1];if(y&&(!n||y===n)){const T=e[f];if(T)for(let m=0;m<T.length;m++)u.push(T[m])}}return u}let i=ee[n];i||(Qe(n),i=ee[n]);const r=e[i[ie]],c=e[i[se]];return r?c?r.concat(c):r.slice():c?c.slice():[]}function gt(e,n){const i=e.Event;i&&i.prototype&&n.patchMethod(i.prototype,"stopImmediatePropagation",r=>function(c,u){c[xe]=!0,r&&r.apply(c,u)})}function yt(e,n,i,r,c){const u=Zone.__symbol__(r);if(n[u])return;const f=n[u]=n[r];n[r]=function(_,y,T){return y&&y.prototype&&c.forEach(function(m){const S=`${i}.${r}::`+m,D=y.prototype;if(D.hasOwnProperty(m)){const Z=e.ObjectGetOwnPropertyDescriptor(D,m);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,S),e._redefineProperty(y.prototype,m,Z)):D[m]&&(D[m]=e.wrapWithCurrentZone(D[m],S))}else D[m]&&(D[m]=e.wrapWithCurrentZone(D[m],S))}),f.call(n,_,y,T)},e.attachOriginToPatched(n[r],f)}const Ve=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],wt=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],tt=["load"],nt=["blur","error","focus","load","resize","scroll","messageerror"],Dt=["bounce","finish","start"],rt=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Ee=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],St=["close","error","open","message"],Ot=["error","message"],Te=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Ve,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function ot(e,n,i){if(!i||0===i.length)return n;const r=i.filter(u=>u.target===e);if(!r||0===r.length)return n;const c=r[0].ignoreProperties;return n.filter(u=>-1===c.indexOf(u))}function W(e,n,i,r){e&&Ye(e,ot(e,n,i),r)}Zone.__load_patch("util",(e,n,i)=>{i.patchOnProperties=Ye,i.patchMethod=ce,i.bindArguments=Ae,i.patchMacroTask=_t;const r=n.__symbol__("BLACK_LISTED_EVENTS"),c=n.__symbol__("UNPATCHED_EVENTS");e[c]&&(e[r]=e[c]),e[r]&&(n[r]=n[c]=e[r]),i.patchEventPrototype=gt,i.patchEventTarget=Tt,i.isIEOrEdge=mt,i.ObjectDefineProperty=he,i.ObjectGetOwnPropertyDescriptor=ue,i.ObjectCreate=Be,i.ArraySlice=ut,i.patchClass=ve,i.wrapWithCurrentZone=Le,i.filterProperties=ot,i.attachOriginToPatched=ae,i._redefineProperty=Object.defineProperty,i.patchCallbacks=yt,i.getGlobalObjects=()=>({globalSources:Ke,zoneSymbolEventNames:ee,eventNames:Te,isBrowser:je,isMix:We,isNode:Re,TRUE_STR:se,FALSE_STR:ie,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Se,REMOVE_EVENT_LISTENER_STR:Oe})});const Ne=x("zoneTask");function ge(e,n,i,r){let c=null,u=null;i+=r;const f={};function _(T){const m=T.data;return m.args[0]=function(){return T.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),T}function y(T){return u.call(e,T.data.handleId)}c=ce(e,n+=r,T=>function(m,S){if("function"==typeof S[0]){const D={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?S[1]||0:void 0,args:S},Z=S[0];S[0]=function(){try{return Z.apply(this,arguments)}finally{D.isPeriodic||("number"==typeof D.handleId?delete f[D.handleId]:D.handleId&&(D.handleId[Ne]=null))}};const B=Me(n,S[0],D,_,y);if(!B)return B;const V=B.data.handleId;return"number"==typeof V?f[V]=B:V&&(V[Ne]=B),V&&V.ref&&V.unref&&"function"==typeof V.ref&&"function"==typeof V.unref&&(B.ref=V.ref.bind(V),B.unref=V.unref.bind(V)),"number"==typeof V||V?V:B}return T.apply(e,S)}),u=ce(e,i,T=>function(m,S){const D=S[0];let Z;"number"==typeof D?Z=f[D]:(Z=D&&D[Ne],Z||(Z=D)),Z&&"string"==typeof Z.type?"notScheduled"!==Z.state&&(Z.cancelFn&&Z.data.isPeriodic||0===Z.runCount)&&("number"==typeof D?delete f[D]:D&&(D[Ne]=null),Z.zone.cancelTask(Z)):T.apply(e,S)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",r=>function(c,u){n.current.scheduleMicroTask("queueMicrotask",u[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";ge(e,n,i,"Timeout"),ge(e,n,i,"Interval"),ge(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{ge(e,"request","cancel","AnimationFrame"),ge(e,"mozRequest","mozCancel","AnimationFrame"),ge(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let r=0;r<i.length;r++)ce(e,i[r],(u,f,_)=>function(y,T){return n.current.run(u,e,T,_)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function Mt(e,n){n.patchEventPrototype(e,n)})(e,i),function Lt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:r,TRUE_STR:c,FALSE_STR:u,ZONE_SYMBOL_PREFIX:f}=n.getGlobalObjects();for(let y=0;y<i.length;y++){const T=i[y],D=f+(T+u),Z=f+(T+c);r[T]={},r[T][u]=D,r[T][c]=Z}const _=e.EventTarget;_&&_.prototype&&n.patchEventTarget(e,[_&&_.prototype])}(e,i);const r=e.XMLHttpRequestEventTarget;r&&r.prototype&&i.patchEventTarget(e,[r.prototype])}),Zone.__load_patch("MutationObserver",(e,n,i)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Zt(e,n){if(Re&&!We||Zone[e.symbol("patchEvents")])return;const i=typeof WebSocket<"u",r=n.__Zone_ignore_on_properties;if(je){const f=window,_=function pt(){try{const e=pe.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:f,ignoreProperties:["error"]}]:[];W(f,Te.concat(["messageerror"]),r&&r.concat(_),de(f)),W(Document.prototype,Te,r),typeof f.SVGElement<"u"&&W(f.SVGElement.prototype,Te,r),W(Element.prototype,Te,r),W(HTMLElement.prototype,Te,r),W(HTMLMediaElement.prototype,wt,r),W(HTMLFrameSetElement.prototype,Ve.concat(nt),r),W(HTMLBodyElement.prototype,Ve.concat(nt),r),W(HTMLFrameElement.prototype,tt,r),W(HTMLIFrameElement.prototype,tt,r);const y=f.HTMLMarqueeElement;y&&W(y.prototype,Dt,r);const T=f.Worker;T&&W(T.prototype,Ot,r)}const c=n.XMLHttpRequest;c&&W(c.prototype,rt,r);const u=n.XMLHttpRequestEventTarget;u&&W(u&&u.prototype,rt,r),typeof IDBIndex<"u"&&(W(IDBIndex.prototype,Ee,r),W(IDBRequest.prototype,Ee,r),W(IDBOpenDBRequest.prototype,Ee,r),W(IDBDatabase.prototype,Ee,r),W(IDBTransaction.prototype,Ee,r),W(IDBCursor.prototype,Ee,r)),i&&W(WebSocket.prototype,St,r)}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function It(e,n){const{isBrowser:i,isMix:r}=n.getGlobalObjects();(i||r)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function y(T){const m=T.XMLHttpRequest;if(!m)return;const S=m.prototype;let Z=S[Ze],B=S[Ie];if(!Z){const v=T.XMLHttpRequestEventTarget;if(v){const M=v.prototype;Z=M[Ze],B=M[Ie]}}const V="readystatechange",E="scheduled";function d(v){const M=v.data,R=M.target;R[u]=!1,R[_]=!1;const J=R[c];Z||(Z=R[Ze],B=R[Ie]),J&&B.call(R,V,J);const le=R[c]=()=>{if(R.readyState===R.DONE)if(!M.aborted&&R[u]&&v.state===E){const te=R[n.__symbol__("loadfalse")];if(0!==R.status&&te&&te.length>0){const re=v.invoke;v.invoke=function(){const F=R[n.__symbol__("loadfalse")];for(let I=0;I<F.length;I++)F[I]===v&&F.splice(I,1);!M.aborted&&v.state===E&&re.call(v)},te.push(v)}else v.invoke()}else!M.aborted&&!1===R[u]&&(R[_]=!0)};return Z.call(R,V,le),R[i]||(R[i]=v),A.apply(R,M.args),R[u]=!0,v}function L(){}function z(v){const M=v.data;return M.aborted=!0,Y.apply(M.target,M.args)}const j=ce(S,"open",()=>function(v,M){return v[r]=0==M[2],v[f]=M[1],j.apply(v,M)}),O=x("fetchTaskAborting"),X=x("fetchTaskScheduling"),A=ce(S,"send",()=>function(v,M){if(!0===n.current[X]||v[r])return A.apply(v,M);{const R={target:v,url:v[f],isPeriodic:!1,args:M,aborted:!1},J=Me("XMLHttpRequest.send",L,R,d,z);v&&!0===v[_]&&!R.aborted&&J.state===E&&J.invoke()}}),Y=ce(S,"abort",()=>function(v,M){const R=function D(v){return v[i]}(v);if(R&&"string"==typeof R.type){if(null==R.cancelFn||R.data&&R.data.aborted)return;R.zone.cancelTask(R)}else if(!0===n.current[O])return Y.apply(v,M)})}(e);const i=x("xhrTask"),r=x("xhrSync"),c=x("xhrListener"),u=x("xhrScheduled"),f=x("xhrURL"),_=x("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function dt(e,n){const i=e.constructor.name;for(let r=0;r<n.length;r++){const c=n[r],u=e[c];if(u){if(!Fe(ue(e,c)))continue;e[c]=(_=>{const y=function(){return _.apply(this,Ae(arguments,i+"."+c))};return ae(y,_),y})(u)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(r){return function(c){et(e,r).forEach(f=>{const _=e.PromiseRejectionEvent;if(_){const y=new _(r,{promise:c.promise,reason:c.rejection});f.invoke(y)}})}}e.PromiseRejectionEvent&&(n[x("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[x("rejectionHandledHandler")]=i("rejectionhandled"))})}},we=>{we(we.s=435)}]);
!function(){"use strict";var a,i=!1,s=[],l=!1;function c(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}function m(){window.customElements&&customElements.polyfillWrapFlushCallback&&customElements.polyfillWrapFlushCallback(function(e){a=e,l&&a()})}function o(){window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(window.document),i=!0,u().then(c)}function u(){l=!1;var e=s.map(function(n){return n instanceof Function?n():n});return s=[],Promise.all(e).then(function(){l=!0,a&&a()}).catch(function(n){console.error(n)})}window.WebComponents=window.WebComponents||{},window.WebComponents.ready=window.WebComponents.ready||!1,window.WebComponents.waitFor=window.WebComponents.waitFor||function(e){!e||(s.push(e),i&&u())},window.WebComponents._batchCustomElements=m;var w="webcomponents-loader.js",d=[];(!("attachShadow"in Element.prototype&&"getRootNode"in Element.prototype)||window.ShadyDOM&&window.ShadyDOM.force)&&d.push("sd"),(!window.customElements||window.customElements.forcePolyfill)&&d.push("ce");var b=function(){var e=document.createElement("template");if(!("content"in e&&e.content.cloneNode()instanceof DocumentFragment))return!0;var n=document.createElement("template");n.content.appendChild(document.createElement("div")),e.content.appendChild(n);var p=e.cloneNode(!0);return 0===p.content.childNodes.length||0===p.content.firstChild.content.childNodes.length}();if((!window.Promise||!Array.from||!window.URL||!window.Symbol||b)&&(d=["sd-ce-pf"]),d.length){var r,f="bundles/webcomponents-"+d.join("-")+".js";if(window.WebComponents.root)r=window.WebComponents.root+f;else{var E=document.querySelector('script[src*="'+w+'"]');r=E.src.replace(w,f)}var t=document.createElement("script");t.src=r,"loading"===document.readyState?(t.setAttribute("onload","window.WebComponents._batchCustomElements()"),document.write(t.outerHTML),document.addEventListener("DOMContentLoaded",o)):(t.addEventListener("load",function(){!function h(){m(),o()}()}),t.addEventListener("error",function(){throw new Error("Could not load polyfill bundle"+r)}),document.head.appendChild(t))}else"complete"===document.readyState?(i=!0,c()):(window.addEventListener("load",o),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",o),o()}))}();
"use strict";(self.webpackChunkchat_widget=self.webpackChunkchat_widget||[]).push([[179],{361:(I_,QA,D_)=>{var Hc={};function bz(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function XA(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function pt(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?XA(Object(t),!0).forEach(function(r){bz(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):XA(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Ih(n){return"function"==typeof n}D_.r(Hc),D_.d(Hc,{Decoder:()=>sA,Encoder:()=>gbe,PacketType:()=>Ue,protocol:()=>pbe});let A_=!1;const gi={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else A_&&console.log("RxJS: Back to a better error behavior. Thank you. <3");A_=n},get useDeprecatedSynchronousErrorHandling(){return A_}};function Ga(n){setTimeout(()=>{throw n},0)}const Dh={closed:!0,next(n){},error(n){if(gi.useDeprecatedSynchronousErrorHandling)throw n;Ga(n)},complete(){}},zc=Array.isArray||(n=>n&&"number"==typeof n.length);function M_(n){return null!==n&&"object"==typeof n}const Ah=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,r)=>`${r+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class Dt{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof Dt)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(Ih(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(o){e=o instanceof Ah?ZA(o.errors):[o]}}if(zc(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(M_(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof Ah?e=e.concat(ZA(c.errors)):e.push(c)}}}if(e)throw new Ah(e)}add(e){let t=e;if(!e)return Dt.EMPTY;switch(typeof e){case"function":t=new Dt(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof Dt)){const s=t;t=new Dt,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=t;if(null===r)t._parentOrParents=this;else if(r instanceof Dt){if(r===this)return t;t._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return t;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[t]:i.push(t),t}remove(e){const t=this._subscriptions;if(t){const r=t.indexOf(e);-1!==r&&t.splice(r,1)}}}var n;function ZA(n){return n.reduce((e,t)=>e.concat(t instanceof Ah?t.errors:t),[])}Dt.EMPTY=((n=new Dt).closed=!0,n);const Mh="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class sn extends Dt{constructor(e,t,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Dh;break;case 1:if(!e){this.destination=Dh;break}if("object"==typeof e){e instanceof sn?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new JA(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new JA(this,e,t,r)}}[Mh](){return this}static create(e,t,r){const i=new sn(e,t,r);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class JA extends sn{constructor(e,t,r,i){super(),this._parentSubscriber=e;let s,o=this;Ih(t)?s=t:t&&(s=t.next,r=t.error,i=t.complete,t!==Dh&&(o=Object.create(t),Ih(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=r,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;gi.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:r}=gi;if(this._error)r&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)r?(t.syncErrorValue=e,t.syncErrorThrown=!0):Ga(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;Ga(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);gi.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(r){if(this.unsubscribe(),gi.useDeprecatedSynchronousErrorHandling)throw r;Ga(r)}}__tryOrSetError(e,t,r){if(!gi.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,r)}catch(i){return gi.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(Ga(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const jc="function"==typeof Symbol&&Symbol.observable||"@@observable";function eM(n){return n}let et=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const r=new n;return r.source=this,r.operator=t,r}subscribe(t,r,i){const{operator:s}=this,o=function Cz(n,e,t){if(n){if(n instanceof sn)return n;if(n[Mh])return n[Mh]()}return n||e||t?new sn(n,e,t):new sn(Dh)}(t,r,i);if(o.add(s?s.call(o,this.source):this.source||gi.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),gi.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){gi.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=r),function wz(n){for(;n;){const{closed:e,destination:t,isStopped:r}=n;if(e||r)return!1;n=t&&t instanceof sn?t:null}return!0}(t)?t.error(r):console.warn(r)}}forEach(t,r){return new(r=nM(r))((i,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,i)})}_subscribe(t){const{source:r}=this;return r&&r.subscribe(t)}[jc](){return this}pipe(...t){return 0===t.length?this:function tM(n){return 0===n.length?eM:1===n.length?n[0]:function(t){return n.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=nM(t))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return n.create=e=>new n(e),n})();function nM(n){if(n||(n=gi.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Mo=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class rM extends Dt{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}class iM extends sn{constructor(e){super(e),this.destination=e}}let cs=(()=>{class n extends et{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Mh](){return new iM(this)}lift(t){const r=new sM(this,this);return r.operator=t,r}next(t){if(this.closed)throw new Mo;if(!this.isStopped){const{observers:r}=this,i=r.length,s=r.slice();for(let o=0;o<i;o++)s[o].next(t)}}error(t){if(this.closed)throw new Mo;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:r}=this,i=r.length,s=r.slice();for(let o=0;o<i;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new Mo;this.isStopped=!0;const{observers:t}=this,r=t.length,i=t.slice();for(let s=0;s<r;s++)i[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new Mo;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Mo;return this.hasError?(t.error(this.thrownError),Dt.EMPTY):this.isStopped?(t.complete(),Dt.EMPTY):(this.observers.push(t),new rM(this,t))}asObservable(){const t=new et;return t.source=this,t}}return n.create=(e,t)=>new sM(e,t),n})();class sM extends cs{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):Dt.EMPTY}}function Wa(n){return n&&"function"==typeof n.schedule}function on(n,e){return function(r){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Sz(n,e))}}class Sz{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new Ez(e,this.project,this.thisArg))}}class Ez extends sn{constructor(e,t,r){super(e),this.project=t,this.count=0,this.thisArg=r||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(t)}}const oM=n=>e=>{for(let t=0,r=n.length;t<r&&!e.closed;t++)e.next(n[t]);e.complete()},kh=function xz(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),aM=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function lM(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const k_=n=>{if(n&&"function"==typeof n[jc])return(n=>e=>{const t=n[jc]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(aM(n))return oM(n);if(lM(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Ga),e))(n);if(n&&"function"==typeof n[kh])return(n=>e=>{const t=n[kh]();for(;;){let r;try{r=t.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${M_(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function P_(n,e){return new et(t=>{const r=new Dt;let i=0;return r.add(e.schedule(function(){i!==n.length?(t.next(n[i++]),t.closed||r.add(this.schedule())):t.complete()})),r})}function Gc(n,e){return e?function Nz(n,e){if(null!=n){if(function Pz(n){return n&&"function"==typeof n[jc]}(n))return function Az(n,e){return new et(t=>{const r=new Dt;return r.add(e.schedule(()=>{const i=n[jc]();r.add(i.subscribe({next(s){r.add(e.schedule(()=>t.next(s)))},error(s){r.add(e.schedule(()=>t.error(s)))},complete(){r.add(e.schedule(()=>t.complete()))}}))})),r})}(n,e);if(lM(n))return function Mz(n,e){return new et(t=>{const r=new Dt;return r.add(e.schedule(()=>n.then(i=>{r.add(e.schedule(()=>{t.next(i),r.add(e.schedule(()=>t.complete()))}))},i=>{r.add(e.schedule(()=>t.error(i)))}))),r})}(n,e);if(aM(n))return P_(n,e);if(function Oz(n){return n&&"function"==typeof n[kh]}(n)||"string"==typeof n)return function kz(n,e){if(!n)throw new Error("Iterable cannot be null");return new et(t=>{const r=new Dt;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=n[kh](),r.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=i.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),r})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof et?n:new et(k_(n))}class cM extends sn{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class uM extends sn{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function dM(n,e){if(e.closed)return;if(n instanceof et)return n.subscribe(e);let t;try{t=k_(n)(e)}catch(r){e.error(r)}return t}function O_(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(O_((i,s)=>Gc(n(i,s)).pipe(on((o,a)=>e(i,o,s,a))),t)):("number"==typeof e&&(t=e),r=>r.lift(new Rz(n,t)))}class Rz{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Lz(e,this.project,this.concurrent))}}class Lz extends uM{constructor(e,t,r=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const r=this.index++;try{t=this.project(e,r)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}_innerSub(e){const t=new cM(this),r=this.destination;r.add(t);const i=dM(e,t);i!==t&&r.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function hM(n=Number.POSITIVE_INFINITY){return O_(eM,n)}function N_(n,e){return e?P_(n,e):new et(oM(n))}function fM(...n){let e=Number.POSITIVE_INFINITY,t=null,r=n[n.length-1];return Wa(r)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof r&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof et?n[0]:hM(e)(N_(n,t))}function pM(){return function(e){return e.lift(new Fz(e))}}class Fz{constructor(e){this.connectable=e}call(e,t){const{connectable:r}=this;r._refCount++;const i=new Vz(e,r),s=t.subscribe(i);return i.closed||(i.connection=r.connect()),s}}class Vz extends sn{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:r}=this,i=e._connection;this.connection=null,i&&(!r||i===r)&&i.unsubscribe()}}class Bz extends et{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new Dt,e.add(this.source.subscribe(new Uz(this.getSubject(),this))),e.closed&&(this._connection=null,e=Dt.EMPTY)),e}refCount(){return pM()(this)}}const $z=(()=>{const n=Bz.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class Uz extends iM{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class jz{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:r}=this,i=this.subjectFactory(),s=r(i).subscribe(e);return s.add(t.subscribe(i)),s}}function Gz(){return new cs}function ct(n){for(let e in n)if(n[e]===ct)return e;throw Error("Could not find renamed property on target object.")}function R_(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function ut(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ut).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function L_(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const qz=ct({__forward_ref__:ct});function dt(n){return n.__forward_ref__=dt,n.toString=function(){return ut(this())},n}function xe(n){return F_(n)?n():n}function F_(n){return"function"==typeof n&&n.hasOwnProperty(qz)&&n.__forward_ref__===dt}class J extends Error{constructor(e,t){super(function Ph(n,e){return`NG0${Math.abs(n)}${e?": "+e.trim():""}`}(e,t)),this.code=e}}function ke(n){return"string"==typeof n?n:null==n?"":String(n)}function Oh(n,e){throw new J(-201,!1)}function xr(n,e){null==n&&function tt(n,e,t,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${t} ${r} ${e} <=Actual]`))}(e,n,null,"!=")}function ve(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Pt(n){return{providers:n.providers||[],imports:n.imports||[]}}function Nh(n){return gM(n,Rh)||gM(n,yM)}function gM(n,e){return n.hasOwnProperty(e)?n[e]:null}function mM(n){return n&&(n.hasOwnProperty(V_)||n.hasOwnProperty(tj))?n[V_]:null}const Rh=ct({\u0275prov:ct}),V_=ct({\u0275inj:ct}),yM=ct({ngInjectableDef:ct}),tj=ct({ngInjectorDef:ct});var Ie=(()=>((Ie=Ie||{})[Ie.Default=0]="Default",Ie[Ie.Host=1]="Host",Ie[Ie.Self=2]="Self",Ie[Ie.SkipSelf=4]="SkipSelf",Ie[Ie.Optional=8]="Optional",Ie))();let B_;function Wr(n){const e=B_;return B_=n,e}function _M(n,e,t){const r=Nh(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&Ie.Optional?null:void 0!==e?e:void Oh(ut(n))}function Us(n){return{toString:n}.toString()}var mi=(()=>((mi=mi||{})[mi.OnPush=0]="OnPush",mi[mi.Default=1]="Default",mi))(),yi=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(yi||(yi={})),yi))();const gt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),qa={},Xe=[],Lh=ct({\u0275cmp:ct}),$_=ct({\u0275dir:ct}),U_=ct({\u0275pipe:ct}),vM=ct({\u0275mod:ct}),ds=ct({\u0275fac:ct}),Wc=ct({__NG_ELEMENT_ID__:ct});let rj=0;function Ut(n){return Us(()=>{const t=!0===n.standalone,r={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===mi.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Xe,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||yi.Emulated,id:"c"+rj++,styles:n.styles||Xe,_:null,setInput:null,schemas:n.schemas||null,tView:null},s=n.dependencies,o=n.features;return i.inputs=CM(n.inputs,r),i.outputs=CM(n.outputs),o&&o.forEach(a=>a(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(bM).filter(wM):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(Xn).filter(wM):null,i})}function bM(n){return rt(n)||Qn(n)}function wM(n){return null!==n}function Ht(n){return Us(()=>({type:n.type,bootstrap:n.bootstrap||Xe,declarations:n.declarations||Xe,imports:n.imports||Xe,exports:n.exports||Xe,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function CM(n,e){if(null==n)return qa;const t={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),t[i]=r,e&&(e[i]=s)}return t}const Ce=Ut;function Tn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function rt(n){return n[Lh]||null}function Qn(n){return n[$_]||null}function Xn(n){return n[U_]||null}function dr(n){return Array.isArray(n)&&"object"==typeof n[1]}function vi(n){return Array.isArray(n)&&!0===n[1]}function j_(n){return 0!=(8&n.flags)}function $h(n){return 2==(2&n.flags)}function Uh(n){return 1==(1&n.flags)}function bi(n){return null!==n.template}function cj(n){return 0!=(256&n[2])}function Ro(n,e){return n.hasOwnProperty(ds)?n[ds]:null}class TM{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Li(){return xM}function xM(n){return n.type.prototype.ngOnChanges&&(n.setInput=fj),hj}function hj(){const n=DM(this),e=n?.current;if(e){const t=n.previous;if(t===qa)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function fj(n,e,t,r){const i=DM(n)||function pj(n,e){return n[IM]=e}(n,{previous:qa,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[t],l=o[a];s[a]=new TM(l&&l.currentValue,e,o===qa),n[r]=e}Li.ngInherit=!0;const IM="__ngSimpleChanges__";function DM(n){return n[IM]||null}function Qt(n){for(;Array.isArray(n);)n=n[0];return n}function Hh(n,e){return Qt(e[n])}function Kr(n,e){return Qt(e[n.index])}function K_(n,e){return n.data[e]}function Xa(n,e){return n[e]}function Ar(n,e){const t=e[n];return dr(t)?t:t[0]}function zh(n){return 64==(64&n[2])}function Hs(n,e){return null==e?null:n[e]}function AM(n){n[18]=0}function Q_(n,e){n[5]+=e;let t=n,r=n[3];for(;null!==r&&(1===e&&1===t[5]||-1===e&&0===t[5]);)r[5]+=e,t=r,r=r[3]}const De={lFrame:BM(null),bindingsEnabled:!0};function kM(){return De.bindingsEnabled}function W(){return De.lFrame.lView}function ze(){return De.lFrame.tView}function F(n){return De.lFrame.contextLView=n,n[8]}function V(n){return De.lFrame.contextLView=null,n}function an(){let n=PM();for(;null!==n&&64===n.type;)n=n.parent;return n}function PM(){return De.lFrame.currentTNode}function Fi(n,e){const t=De.lFrame;t.currentTNode=n,t.isParent=e}function X_(){return De.lFrame.isParent}function Z_(){De.lFrame.isParent=!1}function Zn(){const n=De.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function Za(){return De.lFrame.bindingIndex++}function fs(n){const e=De.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function Aj(n,e){const t=De.lFrame;t.bindingIndex=t.bindingRootIndex=n,J_(e)}function J_(n){De.lFrame.currentDirectiveIndex=n}function LM(){return De.lFrame.currentQueryIndex}function tv(n){De.lFrame.currentQueryIndex=n}function kj(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function FM(n,e,t){if(t&Ie.SkipSelf){let i=e,s=n;for(;!(i=i.parent,null!==i||t&Ie.Host||(i=kj(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;e=i,n=s}const r=De.lFrame=VM();return r.currentTNode=e,r.lView=n,!0}function nv(n){const e=VM(),t=n[1];De.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function VM(){const n=De.lFrame,e=null===n?null:n.child;return null===e?BM(n):e}function BM(n){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:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function $M(){const n=De.lFrame;return De.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const UM=$M;function rv(){const n=$M();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Jn(){return De.lFrame.selectedIndex}function zs(n){De.lFrame.selectedIndex=n}function Nt(){const n=De.lFrame;return K_(n.tView,n.selectedIndex)}function ue(){De.lFrame.currentNamespace="svg"}function yt(){!function Rj(){De.lFrame.currentNamespace=null}()}function jh(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t<r;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function Gh(n,e,t){HM(n,e,3,t)}function Wh(n,e,t,r){(3&n[2])===t&&HM(n,e,t,r)}function iv(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function HM(n,e,t,r){const s=r??-1,o=e.length-1;let a=0;for(let l=void 0!==r?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=r&&a>=r)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(Vj(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function Vj(n,e,t,r){const i=t[r]<0,s=t[r+1],a=n[i?-t[r]:t[r]];if(i){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Jc{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function qh(n,e,t){let r=0;for(;r<t.length;){const i=t[r];if("number"==typeof i){if(0!==i)break;r++;const s=t[r++],o=t[r++],a=t[r++];n.setAttribute(e,o,a,s)}else{const s=i,o=t[++r];jM(s)?n.setProperty(e,s,o):n.setAttribute(e,s,o),r++}}return r}function zM(n){return 3===n||4===n||6===n}function jM(n){return 64===n.charCodeAt(0)}function Yh(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?t=i:0===t||GM(n,t,i,null,-1===t||2===t?e[++r]:null)}}return n}function GM(n,e,t,r,i){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===r)return void(null!==i&&(n[s+1]=i));if(r===n[s+1])return void(n[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==r&&n.splice(s++,0,r),null!==i&&n.splice(s++,0,i)}function WM(n){return-1!==n}function Ja(n){return 32767&n}function el(n,e){let t=function zj(n){return n>>16}(n),r=e;for(;t>0;)r=r[15],t--;return r}let ov=!0;function Kh(n){const e=ov;return ov=n,e}let jj=0;const Vi={};function tu(n,e){const t=lv(n,e);if(-1!==t)return t;const r=e[1];r.firstCreatePass&&(n.injectorIndex=e.length,av(r.data,n),av(e,null),av(r.blueprint,null));const i=Qh(n,e),s=n.injectorIndex;if(WM(i)){const o=Ja(i),a=el(i,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=i,s}function av(n,e){n.push(0,0,0,0,0,0,0,0,e)}function lv(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Qh(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,i=e;for(;null!==i;){if(r=tk(i),null===r)return-1;if(t++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function Xh(n,e,t){!function Gj(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Wc)&&(r=t[Wc]),null==r&&(r=t[Wc]=jj++);const i=255&r;e.data[n+(i>>5)]|=1<<i}(n,e,t)}function KM(n,e,t){if(t&Ie.Optional||void 0!==n)return n;Oh()}function QM(n,e,t,r){if(t&Ie.Optional&&void 0===r&&(r=null),0==(t&(Ie.Self|Ie.Host))){const i=n[9],s=Wr(void 0);try{return i?i.get(e,r,t&Ie.Optional):_M(e,r,t&Ie.Optional)}finally{Wr(s)}}return KM(r,0,t)}function XM(n,e,t,r=Ie.Default,i){if(null!==n){if(1024&e[2]){const o=function Qj(n,e,t,r,i){let s=n,o=e;for(;null!==s&&null!==o&&1024&o[2]&&!(256&o[2]);){const a=ZM(s,o,t,r|Ie.Self,Vi);if(a!==Vi)return a;let l=s.parent;if(!l){const c=o[21];if(c){const u=c.get(t,Vi,r);if(u!==Vi)return u}l=tk(o),o=o[15]}s=l}return i}(n,e,t,r,Vi);if(o!==Vi)return o}const s=ZM(n,e,t,r,Vi);if(s!==Vi)return s}return QM(e,t,r,i)}function ZM(n,e,t,r,i){const s=function Yj(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Wc)?n[Wc]:void 0;return"number"==typeof e?e>=0?255&e:Kj:e}(t);if("function"==typeof s){if(!FM(e,n,r))return r&Ie.Host?KM(i,0,r):QM(e,t,r,i);try{const o=s(r);if(null!=o||r&Ie.Optional)return o;Oh()}finally{UM()}}else if("number"==typeof s){let o=null,a=lv(n,e),l=-1,c=r&Ie.Host?e[16][6]:null;for((-1===a||r&Ie.SkipSelf)&&(l=-1===a?Qh(n,e):e[a+8],-1!==l&&ek(r,!1)?(o=e[1],a=Ja(l),e=el(l,e)):a=-1);-1!==a;){const u=e[1];if(JM(s,a,u.data)){const d=qj(a,e,t,o,r,c);if(d!==Vi)return d}l=e[a+8],-1!==l&&ek(r,e[1].data[a+8]===c)&&JM(s,a,e)?(o=u,a=Ja(l),e=el(l,e)):a=-1}}return i}function qj(n,e,t,r,i,s){const o=e[1],a=o.data[n+8],u=Zh(a,o,t,null==r?$h(a)&&ov:r!=o&&0!=(3&a.type),i&Ie.Host&&s===a);return null!==u?nu(e,o,u,a):Vi}function Zh(n,e,t,r,i){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=i?a+u:n.directiveEnd;for(let f=r?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(i){const f=o[l];if(f&&bi(f)&&f.type===t)return l}return null}function nu(n,e,t,r){let i=n[t];const s=e.data;if(function Bj(n){return n instanceof Jc}(i)){const o=i;o.resolving&&function Yz(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new J(-200,`Circular dependency in DI detected for ${n}${t}`)}(function Qe(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():ke(n)}(s[t]));const a=Kh(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Wr(o.injectImpl):null;FM(n,r,Ie.Default);try{i=n[t]=o.factory(void 0,s,n,r),e.firstCreatePass&&t>=r.directiveStart&&function Fj(n,e,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=e.type.prototype;if(r){const o=xM(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}i&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,i),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&Wr(l),Kh(a),o.resolving=!1,UM()}}return i}function JM(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function ek(n,e){return!(n&Ie.Self||n&Ie.Host&&e)}class tl{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,r){return XM(this._tNode,this._lView,e,r,t)}}function Kj(){return new tl(an(),W())}function ln(n){return Us(()=>{const e=n.prototype.constructor,t=e[ds]||cv(e),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const s=i[ds]||cv(i);if(s&&s!==t)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function cv(n){return F_(n)?()=>{const e=cv(xe(n));return e&&e()}:Ro(n)}function tk(n){const e=n[1],t=e.type;return 2===t?e.declTNode:1===t?n[6]:null}const rl="__parameters__";function sl(n,e,t){return Us(()=>{const r=function dv(n){return function(...t){if(n){const r=n(...t);for(const i in r)this[i]=r[i]}}}(e);function i(...s){if(this instanceof i)return r.apply(this,s),this;const o=new i(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(rl)?l[rl]:Object.defineProperty(l,rl,{value:[]})[rl];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class ye{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ve({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Mr(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let r=n[t];Array.isArray(r)?(e===n&&(e=n.slice(0,t)),Mr(r,e)):e!==n&&e.push(r)}return e}function ps(n,e){n.forEach(t=>Array.isArray(t)?ps(t,e):e(t))}function rk(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Jh(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function su(n,e){const t=[];for(let r=0;r<n;r++)t.push(e);return t}function kr(n,e,t){let r=ol(n,e);return r>=0?n[1|r]=t:(r=~r,function e7(n,e,t,r){let i=n.length;if(i==e)n.push(t,r);else if(1===i)n.push(r,n[0]),n[0]=t;else{for(i--,n.push(n[i-1],n[i]);i>e;)n[i]=n[i-2],i--;n[e]=t,n[e+1]=r}}(n,r,e,t)),r}function fv(n,e){const t=ol(n,e);if(t>=0)return n[1|t]}function ol(n,e){return function ok(n,e,t){let r=0,i=n.length>>t;for(;i!==r;){const s=r+(i-r>>1),o=n[s<<t];if(e===o)return s<<t;o>e?i=s:r=s+1}return~(i<<t)}(n,e,1)}const ou={},gv="__NG_DI_FLAG__",tf="ngTempTokenPath",l7=/\n/gm,ak="__source";let au;function al(n){const e=au;return au=n,e}function u7(n,e=Ie.Default){if(void 0===au)throw new J(-203,!1);return null===au?_M(n,void 0,e):au.get(n,e&Ie.Optional?null:void 0,e)}function ae(n,e=Ie.Default){return(function nj(){return B_}()||u7)(xe(n),e)}function mv(n){const e=[];for(let t=0;t<n.length;t++){const r=xe(n[t]);if(Array.isArray(r)){if(0===r.length)throw new J(900,!1);let i,s=Ie.Default;for(let o=0;o<r.length;o++){const a=r[o],l=h7(a);"number"==typeof l?-1===l?i=a.token:s|=l:i=a}e.push(ae(i,s))}else e.push(ae(r))}return e}function lu(n,e){return n[gv]=e,n.prototype[gv]=e,n}function h7(n){return n[gv]}const hr=lu(sl("Optional"),8),nf=lu(sl("SkipSelf"),4);let _v,of,af;function cl(n){var e;return(null===(e=function vv(){if(void 0===of&&(of=null,gt.trustedTypes))try{of=gt.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return of}())||void 0===e?void 0:e.createHTML(n))||n}function yk(n){var e;return(null===(e=function bv(){if(void 0===af&&(af=null,gt.trustedTypes))try{af=gt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return af}())||void 0===e?void 0:e.createHTML(n))||n}class Lo{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class I7 extends Lo{getTypeName(){return"HTML"}}class D7 extends Lo{getTypeName(){return"Style"}}class A7 extends Lo{getTypeName(){return"Script"}}class M7 extends Lo{getTypeName(){return"URL"}}class k7 extends Lo{getTypeName(){return"ResourceURL"}}function Pr(n){return n instanceof Lo?n.changingThisBreaksApplicationSecurity:n}function Bi(n,e){const t=function P7(n){return n instanceof Lo&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}class V7{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(cl(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class B7{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const r=this.inertDocument.createElement("body");t.appendChild(r)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=cl(e),t;const r=this.inertDocument.createElement("body");return r.innerHTML=cl(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0<i;i--){const o=t.item(i).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let r=e.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const U7=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function lf(n){return(n=String(n)).match(U7)?n:"unsafe:"+n}function gs(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function du(...n){const e={};for(const t of n)for(const r in t)t.hasOwnProperty(r)&&(e[r]=!0);return e}const wk=gs("area,br,col,hr,img,wbr"),Ck=gs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sk=gs("rp,rt"),wv=du(wk,du(Ck,gs("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")),du(Sk,gs("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")),du(Sk,Ck)),Cv=gs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ek=du(Cv,gs("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),gs("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")),H7=gs("script,style,template");class z7{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,r=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!wv.hasOwnProperty(t))return this.sanitizedSomething=!0,!H7.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=e.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),o=s.name,a=o.toLowerCase();if(!Ek.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;Cv[a]&&(l=lf(l)),this.buf.push(" ",o,'="',Tk(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();wv.hasOwnProperty(t)&&!wk.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Tk(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const j7=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,G7=/([^\#-~ |!])/g;function Tk(n){return n.replace(/&/g,"&amp;").replace(j7,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(G7,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let cf;function xk(n,e){let t=null;try{cf=cf||function bk(n){const e=new B7(n);return function $7(){try{return!!(new window.DOMParser).parseFromString(cl(""),"text/html")}catch{return!1}}()?new V7(e):e}(n);let r=e?String(e):"";t=cf.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=t.innerHTML,t=cf.getInertBodyElement(r)}while(r!==s);return cl((new z7).sanitizeChildren(Sv(t)||t))}finally{if(t){const r=Sv(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Sv(n){return"content"in n&&function W7(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var _t=(()=>((_t=_t||{})[_t.NONE=0]="NONE",_t[_t.HTML=1]="HTML",_t[_t.STYLE=2]="STYLE",_t[_t.SCRIPT=3]="SCRIPT",_t[_t.URL=4]="URL",_t[_t.RESOURCE_URL=5]="RESOURCE_URL",_t))();function uf(n){const e=hu();return e?yk(e.sanitize(_t.HTML,n)||""):Bi(n,"HTML")?yk(Pr(n)):xk(function mk(){return void 0!==_v?_v:typeof document<"u"?document:void 0}(),ke(n))}function fr(n){const e=hu();return e?e.sanitize(_t.URL,n)||"":Bi(n,"URL")?Pr(n):lf(ke(n))}function hu(){const n=W();return n&&n[12]}const Dk=new ye("ENVIRONMENT_INITIALIZER"),Ak=new ye("INJECTOR",-1),Mk=new ye("INJECTOR_DEF_TYPES");class kk{get(e,t=ou){if(t===ou){const r=new Error(`NullInjectorError: No provider for ${ut(e)}!`);throw r.name="NullInjectorError",r}return t}}function J7(...n){return{\u0275providers:Pk(0,n)}}function Pk(n,...e){const t=[],r=new Set;let i;return ps(e,s=>{const o=s;Ev(o,t,[],r)&&(i||(i=[]),i.push(o))}),void 0!==i&&Ok(i,t),t}function Ok(n,e){for(let t=0;t<n.length;t++){const{providers:i}=n[t];ps(i,s=>{e.push(s)})}}function Ev(n,e,t,r){if(!(n=xe(n)))return!1;let i=null,s=mM(n);const o=!s&&rt(n);if(s||o){if(o&&!o.standalone)return!1;i=n}else{const l=n.ngModule;if(s=mM(l),!s)return!1;i=l}const a=r.has(i);if(o){if(a)return!1;if(r.add(i),o.dependencies){const l="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const c of l)Ev(c,e,t,r)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;r.add(i);try{ps(s.imports,u=>{Ev(u,e,t,r)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&Ok(c,e)}if(!a){const c=Ro(i)||(()=>new i);e.push({provide:i,useFactory:c,deps:Xe},{provide:Mk,useValue:i,multi:!0},{provide:Dk,useValue:()=>ae(i),multi:!0})}const l=s.providers;null==l||a||ps(l,u=>{e.push(u)})}}return i!==n&&void 0!==n.providers}const e9=ct({provide:String,useValue:ct});function Tv(n){return null!==n&&"object"==typeof n&&e9 in n}function Fo(n){return"function"==typeof n}const xv=new ye("Set Injector scope."),df={},n9={};let Iv;function hf(){return void 0===Iv&&(Iv=new kk),Iv}class ul{}class Lk extends ul{constructor(e,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Av(e,o=>this.processProvider(o)),this.records.set(Ak,dl(void 0,this)),i.has("environment")&&this.records.set(ul,dl(void 0,this));const s=this.records.get(xv);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Mk.multi,Xe,Ie.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const t=al(this),r=Wr(void 0);try{return e()}finally{al(t),Wr(r)}}get(e,t=ou,r=Ie.Default){this.assertNotDestroyed();const i=al(this),s=Wr(void 0);try{if(!(r&Ie.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function a9(n){return"function"==typeof n||"object"==typeof n&&n instanceof ye}(e)&&Nh(e);a=l&&this.injectableDefInScope(l)?dl(Dv(e),df):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&Ie.Self?hf():this.parent).get(e,t=r&Ie.Optional&&t===ou?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[tf]=o[tf]||[]).unshift(ut(e)),i)throw o;return function f7(n,e,t,r){const i=n[tf];throw e[ak]&&i.unshift(e[ak]),n.message=function p7(n,e,t,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let i=ut(e);if(Array.isArray(e))i=e.map(ut).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ut(a)))}i=`{${s.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${n.replace(l7,"\n  ")}`}("\n"+n.message,i,t,r),n.ngTokenPath=i,n[tf]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{Wr(s),al(i)}}resolveInjectorInitializers(){const e=al(this),t=Wr(void 0);try{const r=this.get(Dk.multi,Xe,Ie.Self);for(const i of r)i()}finally{al(e),Wr(t)}}toString(){const e=[],t=this.records;for(const r of t.keys())e.push(ut(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new J(205,!1)}processProvider(e){let t=Fo(e=xe(e))?e:xe(e&&e.provide);const r=function i9(n){return Tv(n)?dl(void 0,n.useValue):dl(Fk(n),df)}(e);if(Fo(e)||!0!==e.multi)this.records.get(t);else{let i=this.records.get(t);i||(i=dl(void 0,df,!0),i.factory=()=>mv(i.multi),this.records.set(t,i)),t=e,i.multi.push(e)}this.records.set(t,r)}hydrate(e,t){return t.value===df&&(t.value=n9,t.value=t.factory()),"object"==typeof t.value&&t.value&&function o9(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=xe(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function Dv(n){const e=Nh(n),t=null!==e?e.factory:Ro(n);if(null!==t)return t;if(n instanceof ye)throw new J(204,!1);if(n instanceof Function)return function r9(n){const e=n.length;if(e>0)throw su(e,"?"),new J(204,!1);const t=function Jz(n){const e=n&&(n[Rh]||n[yM]);if(e){const t=function ej(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new J(204,!1)}function Fk(n,e,t){let r;if(Fo(n)){const i=xe(n);return Ro(i)||Dv(i)}if(Tv(n))r=()=>xe(n.useValue);else if(function Rk(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...mv(n.deps||[]));else if(function Nk(n){return!(!n||!n.useExisting)}(n))r=()=>ae(xe(n.useExisting));else{const i=xe(n&&(n.useClass||n.provide));if(!function s9(n){return!!n.deps}(n))return Ro(i)||Dv(i);r=()=>new i(...mv(n.deps))}return r}function dl(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function l9(n){return!!n.\u0275providers}function Av(n,e){for(const t of n)Array.isArray(t)?Av(t,e):l9(t)?Av(t.\u0275providers,e):e(t)}class Vk{}class d9{resolveComponentFactory(e){throw function u9(n){const e=Error(`No component factory found for ${ut(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let hl=(()=>{class n{}return n.NULL=new d9,n})();function h9(){return fl(an(),W())}function fl(n,e){return new Fn(Kr(n,e))}let Fn=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=h9,n})();function f9(n){return n instanceof Fn?n.nativeElement:n}class fu{}let Gs=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function p9(){const n=W(),t=Ar(an().index,n);return(dr(t)?t:n)[11]}(),n})(),g9=(()=>{class n{}return n.\u0275prov=ve({token:n,providedIn:"root",factory:()=>null}),n})();class pl{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const $k=new pl("14.2.6"),Mv={};function Rv(n){return n.ngOriginalError}class gl{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Rv(e);for(;t&&Rv(t);)t=Rv(t);return t||null}}const Lv=new Map;let I9=0;const Vv="__ngContext__";function Vn(n,e){dr(e)?(n[Vv]=e[20],function A9(n){Lv.set(n[20],n)}(e)):n[Vv]=e}function ml(n){return n.ownerDocument}var pr=(()=>((pr=pr||{})[pr.Important=1]="Important",pr[pr.DashCase=2]="DashCase",pr))();function $v(n,e){return undefined(n,e)}function gu(n){const e=n[3];return vi(e)?e[3]:e}function Uv(n){return eP(n[13])}function Hv(n){return eP(n[4])}function eP(n){for(;null!==n&&!vi(n);)n=n[4];return n}function _l(n,e,t,r,i){if(null!=r){let s,o=!1;vi(r)?s=r:dr(r)&&(o=!0,r=r[0]);const a=Qt(r);0===n&&null!==t?null==i?oP(e,t,a):Vo(e,t,a,i||null,!0):1===n&&null!==t?Vo(e,t,a,i||null,!0):2===n?function fP(n,e,t){const r=ff(n,e);r&&function tG(n,e,t,r){n.removeChild(e,t,r)}(n,r,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function iG(n,e,t,r,i){const s=t[7];s!==Qt(t)&&_l(e,n,r,s,i);for(let a=10;a<t.length;a++){const l=t[a];mu(l[1],l,n,e,r,s)}}(e,n,s,t,i)}}function jv(n,e,t){return n.createElement(e,t)}function nP(n,e){const t=n[9],r=t.indexOf(e),i=e[3];512&e[2]&&(e[2]&=-513,Q_(i,-1)),t.splice(r,1)}function Gv(n,e){if(n.length<=10)return;const t=10+e,r=n[t];if(r){const i=r[17];null!==i&&i!==n&&nP(i,r),e>0&&(n[t-1][4]=r[4]);const s=Jh(n,10+e);!function q9(n,e){mu(n,e,e[11],2,null,null),e[0]=null,e[6]=null}(r[1],r);const o=s[19];null!==o&&o.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function rP(n,e){if(!(128&e[2])){const t=e[11];t.destroyNode&&mu(n,e,t,3,null,null),function Q9(n){let e=n[13];if(!e)return Wv(n[1],n);for(;e;){let t=null;if(dr(e))t=e[13];else{const r=e[10];r&&(t=r)}if(!t){for(;e&&!e[4]&&e!==n;)dr(e)&&Wv(e[1],e),e=e[3];null===e&&(e=n),dr(e)&&Wv(e[1],e),t=e&&e[4]}e=t}}(e)}}function Wv(n,e){if(!(128&e[2])){e[2]&=-65,e[2]|=128,function eG(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r<t.length;r+=2){const i=e[t[r]];if(!(i instanceof Jc)){const s=t[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(i)}finally{}}}}(n,e),function J9(n,e){const t=n.cleanup,r=e[7];let i=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Qt(e[o]),l=r[i=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?r[i=c]():r[i=-c].unsubscribe(),s+=2}else{const o=r[i=t[s+1]];t[s].call(o)}if(null!==r){for(let s=i+1;s<r.length;s++)(0,r[s])();e[7]=null}}(n,e),1===e[1].type&&e[11].destroy();const t=e[17];if(null!==t&&vi(e[3])){t!==e[3]&&nP(t,e);const r=e[19];null!==r&&r.detachView(n)}!function M9(n){Lv.delete(n[20])}(e)}}function iP(n,e,t){return function sP(n,e,t){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return t[0];if(2&r.flags){const i=n.data[r.directiveStart].encapsulation;if(i===yi.None||i===yi.Emulated)return null}return Kr(r,t)}(n,e.parent,t)}function Vo(n,e,t,r,i){n.insertBefore(e,t,r,i)}function oP(n,e,t){n.appendChild(e,t)}function aP(n,e,t,r,i){null!==r?Vo(n,e,t,r,i):oP(n,e,t)}function ff(n,e){return n.parentNode(e)}function lP(n,e,t){return uP(n,e,t)}let uP=function cP(n,e,t){return 40&n.type?Kr(n,t):null};function pf(n,e,t,r){const i=iP(n,r,e),s=e[11],a=lP(r.parent||e[6],r,e);if(null!=i)if(Array.isArray(t))for(let l=0;l<t.length;l++)aP(s,i,t[l],a,!1);else aP(s,i,t,a,!1)}function gf(n,e){if(null!==e){const t=e.type;if(3&t)return Kr(e,n);if(4&t)return Yv(-1,n[e.index]);if(8&t){const r=e.child;if(null!==r)return gf(n,r);{const i=n[e.index];return vi(i)?Yv(-1,i):Qt(i)}}if(32&t)return $v(e,n)()||Qt(n[e.index]);{const r=hP(n,e);return null!==r?Array.isArray(r)?r[0]:gf(gu(n[16]),r):gf(n,e.next)}}return null}function hP(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Yv(n,e){const t=10+n+1;if(t<e.length){const r=e[t],i=r[1].firstChild;if(null!==i)return gf(r,i)}return e[7]}function Kv(n,e,t,r,i,s,o){for(;null!=t;){const a=r[t.index],l=t.type;if(o&&0===e&&(a&&Vn(Qt(a),r),t.flags|=4),64!=(64&t.flags))if(8&l)Kv(n,e,t.child,r,i,s,!1),_l(e,n,i,a,s);else if(32&l){const c=$v(t,r);let u;for(;u=c();)_l(e,n,i,u,s);_l(e,n,i,a,s)}else 16&l?pP(n,e,r,t,i,s):_l(e,n,i,a,s);t=o?t.projectionNext:t.next}}function mu(n,e,t,r,i,s){Kv(t,r,n.firstChild,e,i,s,!1)}function pP(n,e,t,r,i,s){const o=t[16],l=o[6].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)_l(e,n,i,l[c],s);else Kv(n,e,l,o[3],i,s,!0)}function gP(n,e,t){n.setAttribute(e,"style",t)}function Qv(n,e,t){""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t)}function mP(n,e,t){let r=n.length;for(;;){const i=n.indexOf(e,t);if(-1===i)return i;if(0===i||n.charCodeAt(i-1)<=32){const s=e.length;if(i+s===r||n.charCodeAt(i+s)<=32)return i}t=i+1}}const yP="ng-template";function oG(n,e,t){let r=0;for(;r<n.length;){let i=n[r++];if(t&&"class"===i){if(i=n[r],-1!==mP(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<n.length&&"string"==typeof(i=n[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function _P(n){return 4===n.type&&n.value!==yP}function aG(n,e,t){return e===(4!==n.type||t?n.value:yP)}function lG(n,e,t){let r=4;const i=n.attrs||[],s=function dG(n){for(let e=0;e<n.length;e++)if(zM(n[e]))return e;return n.length}(i);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!aG(n,l,t)||""===l&&1===e.length){if(wi(r))return!1;o=!0}}else{const c=8&r?l:e[++a];if(8&r&&null!==n.attrs){if(!oG(n.attrs,c,t)){if(wi(r))return!1;o=!0}continue}const d=cG(8&r?"class":l,i,_P(n),t);if(-1===d){if(wi(r))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":i[d+1].toLowerCase();const f=8&r?h:null;if(f&&-1!==mP(f,c,0)||2&r&&c!==h){if(wi(r))return!1;o=!0}}}}else{if(!o&&!wi(r)&&!wi(l))return!1;if(o&&wi(l))continue;o=!1,r=l|1&r}}return wi(r)||o}function wi(n){return 0==(1&n)}function cG(n,e,t,r){if(null===e)return-1;let i=0;if(r||!t){let s=!1;for(;i<e.length;){const o=e[i];if(o===n)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++i];for(;"string"==typeof a;)a=e[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function hG(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const r=n[t];if("number"==typeof r)return-1;if(r===e)return t;t++}return-1}(e,n)}function vP(n,e,t=!1){for(let r=0;r<e.length;r++)if(lG(n,e[r],t))return!0;return!1}function fG(n,e){e:for(let t=0;t<e.length;t++){const r=e[t];if(n.length===r.length){for(let i=0;i<n.length;i++)if(n[i]!==r[i])continue e;return!0}}return!1}function bP(n,e){return n?":not("+e.trim()+")":e}function pG(n){let e=n[0],t=1,r=2,i="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&r){const a=n[++t];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!wi(o)&&(e+=bP(s,i),i=""),r=o,s=s||!wi(r);t++}return""!==i&&(e+=bP(s,i)),e}const Pe={};function v(n){wP(ze(),W(),Jn()+n,!1)}function wP(n,e,t,r){if(!r)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&Gh(e,s,t)}else{const s=n.preOrderHooks;null!==s&&Wh(e,s,0,t)}zs(t)}function TP(n,e=null,t=null,r){const i=xP(n,e,t,r);return i.resolveInjectorInitializers(),i}function xP(n,e=null,t=null,r,i=new Set){const s=[t||Xe,J7(n)];return r=r||("object"==typeof n?void 0:ut(n)),new Lk(s,e||hf(),r||null,i)}let gr=(()=>{class n{static create(t,r){if(Array.isArray(t))return TP({name:""},r,t,"");{var i;const s=null!==(i=t.name)&&void 0!==i?i:"";return TP({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=ou,n.NULL=new kk,n.\u0275prov=ve({token:n,providedIn:"any",factory:()=>ae(Ak)}),n.__NG_ELEMENT_ID__=-1,n})();function R(n,e=Ie.Default){const t=W();return null===t?ae(n,e):XM(an(),t,xe(n),e)}function yf(n,e){return n<<17|e<<2}function Ci(n){return n>>17&32767}function tb(n){return 2|n}function ys(n){return(131068&n)>>2}function nb(n,e){return-131069&n|e<<2}function rb(n){return 1|n}function zP(n,e){const t=n.contentQueries;if(null!==t)for(let r=0;r<t.length;r+=2){const i=t[r],s=t[r+1];if(-1!==s){const o=n.data[s];tv(i),o.contentQueries(2,e[s],s)}}}function bf(n,e,t,r,i,s,o,a,l,c,u){const d=e.blueprint.slice();return d[0]=i,d[2]=76|r,(null!==u||n&&1024&n[2])&&(d[2]|=1024),AM(d),d[3]=d[15]=n,d[8]=t,d[10]=o||n&&n[10],d[11]=a||n&&n[11],d[12]=l||n&&n[12]||null,d[9]=c||n&&n[9]||null,d[6]=s,d[20]=function D9(){return I9++}(),d[21]=u,d[16]=2==e.type?n[16]:d,d}function bl(n,e,t,r,i){let s=n.data[e];if(null===s)s=function db(n,e,t,r,i){const s=PM(),o=X_(),l=n.data[e]=function XG(n,e,t,r,i,s){return{type:t,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,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,t,e,r,i);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,r,i),function Dj(){return De.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=r,s.attrs=i;const o=function Zc(){const n=De.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Fi(s,!0),s}function wl(n,e,t,r){if(0===t)return-1;const i=e.length;for(let s=0;s<t;s++)e.push(r),n.blueprint.push(r),n.data.push(null);return i}function hb(n,e,t){nv(e);try{const r=n.viewQuery;null!==r&&bb(1,r,t);const i=n.template;null!==i&&jP(n,e,i,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&zP(n,e),n.staticViewQueries&&bb(2,n.viewQuery,t);const s=n.components;null!==s&&function YG(n,e){for(let t=0;t<e.length;t++)fW(n,e[t])}(e,s)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{e[2]&=-5,rv()}}function wf(n,e,t,r){const i=e[2];if(128!=(128&i)){nv(e);try{AM(e),function NM(n){return De.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&jP(n,e,t,2,r);const o=3==(3&i);if(o){const c=n.preOrderCheckHooks;null!==c&&Gh(e,c,null)}else{const c=n.preOrderHooks;null!==c&&Wh(e,c,0,null),iv(e,0)}if(function dW(n){for(let e=Uv(n);null!==e;e=Hv(e)){if(!e[2])continue;const t=e[9];for(let r=0;r<t.length;r++){const i=t[r],s=i[3];0==(512&i[2])&&Q_(s,1),i[2]|=512}}}(e),function uW(n){for(let e=Uv(n);null!==e;e=Hv(e))for(let t=10;t<e.length;t++){const r=e[t],i=r[1];zh(r)&&wf(i,r,i.template,r[8])}}(e),null!==n.contentQueries&&zP(n,e),o){const c=n.contentCheckHooks;null!==c&&Gh(e,c)}else{const c=n.contentHooks;null!==c&&Wh(e,c,1),iv(e,1)}!function WG(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const i=t[r];if(i<0)zs(~i);else{const s=i,o=t[++r],a=t[++r];Aj(o,s),a(2,e[s])}}}finally{zs(-1)}}(n,e);const a=n.components;null!==a&&function qG(n,e){for(let t=0;t<e.length;t++)hW(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&bb(2,l,r),o){const c=n.viewCheckHooks;null!==c&&Gh(e,c)}else{const c=n.viewHooks;null!==c&&Wh(e,c,2),iv(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-41,512&e[2]&&(e[2]&=-513,Q_(e[3],-1))}finally{rv()}}}function jP(n,e,t,r,i){const s=Jn(),o=2&r;try{zs(-1),o&&e.length>22&&wP(n,e,22,!1),t(r,i)}finally{zs(s)}}function GP(n,e,t){if(j_(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function fb(n,e,t){!kM()||(function nW(n,e,t,r){const i=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||tu(t,e),Vn(r,e);const o=t.initialInputs;for(let a=i;a<s;a++){const l=n.data[a],c=bi(l);c&&aW(e,t,l);const u=nu(e,n,a,t);Vn(u,e),null!==o&&lW(0,a-i,u,l,0,o),c&&(Ar(t.index,e)[8]=u)}}(n,e,t,Kr(t,e)),128==(128&t.flags)&&function rW(n,e,t){const r=t.directiveStart,i=t.directiveEnd,s=t.index,o=function Mj(){return De.lFrame.currentDirectiveIndex}();try{zs(s);for(let a=r;a<i;a++){const l=n.data[a],c=e[a];J_(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&ZP(l,c)}}finally{zs(-1),J_(o)}}(n,e,t))}function pb(n,e,t=Kr){const r=e.localNames;if(null!==r){let i=e.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?t(e,n):n[o];n[i++]=a}}}function WP(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=gb(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function gb(n,e,t,r,i,s,o,a,l,c){const u=22+r,d=u+i,h=function KG(n,e){const t=[];for(let r=0;r<e;r++)t.push(r<n?null:Pe);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,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:l,consts:f,incompleteFirstPass:!1}}function qP(n,e,t,r){const i=rO(e);null===t?i.push(r):(i.push(t),n.firstCreatePass&&iO(n).push(r,i.length-1))}function YP(n,e,t){for(let r in n)if(n.hasOwnProperty(r)){const i=n[r];(t=null===t?{}:t).hasOwnProperty(r)?t[r].push(e,i):t[r]=[e,i]}return t}function KP(n,e){const r=e.directiveEnd,i=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<r;c++){const u=i[c],d=u.inputs,h=null===s||_P(e)?null:cW(d,s);o.push(h),a=YP(d,c,a),l=YP(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}function QP(n,e){const t=Ar(e,n);16&t[2]||(t[2]|=32)}function mb(n,e,t,r){let i=!1;if(kM()){const s=function iW(n,e,t){const r=n.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const o=r[s];vP(t,o.selectors,!1)&&(i||(i=[]),Xh(tu(t,e),n,o.type),bi(o)?(JP(n,t),i.unshift(o)):i.push(o))}return i}(n,e,t),o=null===r?null:{"":-1};if(null!==s){i=!0,eO(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=wl(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=Yh(t.mergedAttrs,d.hostAttrs),tO(n,t,e,c,d),oW(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}KP(n,t)}o&&function sW(n,e,t){if(e){const r=n.localNames=[];for(let i=0;i<e.length;i+=2){const s=t[e[i+1]];if(null==s)throw new J(-301,!1);r.push(e[i],s)}}}(t,r,o)}return t.mergedAttrs=Yh(t.mergedAttrs,t.attrs),i}function XP(n,e,t,r,i,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function tW(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(r,i,o)}}function ZP(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function JP(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function oW(n,e,t){if(t){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)t[e.exportAs[r]]=n;bi(e)&&(t[""]=n)}}function eO(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function tO(n,e,t,r,i){n.data[r]=i;const s=i.factory||(i.factory=Ro(i.type)),o=new Jc(s,bi(i),R);n.blueprint[r]=o,t[r]=o,XP(n,e,0,r,wl(n,t,i.hostVars,Pe),i)}function aW(n,e,t){const r=Kr(e,n),i=WP(t),s=n[10],o=Cf(n,bf(n,i,null,t.onPush?32:16,r,e,s,s.createRenderer(r,t),null,null,null));n[e.index]=o}function $i(n,e,t,r,i,s){const o=Kr(n,e);!function yb(n,e,t,r,i,s,o){if(null==s)n.removeAttribute(e,i,t);else{const a=null==o?ke(s):o(s,r||"",i);n.setAttribute(e,i,a,t)}}(e[11],o,s,n.value,t,r,i)}function lW(n,e,t,r,i,s){const o=s[e];if(null!==o){const a=r.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?r.setInput(t,d,c,u):t[u]=d}}}function cW(n,e){let t=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;n.hasOwnProperty(i)&&(null===t&&(t=[]),t.push(i,n[i],e[r+1])),r+=2}else r+=2;else r+=4}return t}function nO(n,e,t,r){return new Array(n,!0,!1,e,null,0,r,t,null,null)}function hW(n,e){const t=Ar(e,n);if(zh(t)){const r=t[1];48&t[2]?wf(r,t,r.template,t[8]):t[5]>0&&_b(t)}}function _b(n){for(let r=Uv(n);null!==r;r=Hv(r))for(let i=10;i<r.length;i++){const s=r[i];if(zh(s))if(512&s[2]){const o=s[1];wf(o,s,o.template,s[8])}else s[5]>0&&_b(s)}const t=n[1].components;if(null!==t)for(let r=0;r<t.length;r++){const i=Ar(t[r],n);zh(i)&&i[5]>0&&_b(i)}}function fW(n,e){const t=Ar(e,n),r=t[1];(function pW(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(r,t),hb(r,t,t[8])}function Cf(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function vb(n){for(;n;){n[2]|=32;const e=gu(n);if(cj(n)&&!e)return n;n=e}return null}function Sf(n,e,t,r=!0){const i=e[10];i.begin&&i.begin();try{wf(n,e,n.template,t)}catch(o){throw r&&oO(e,o),o}finally{i.end&&i.end()}}function bb(n,e,t){tv(0),e(n,t)}function rO(n){return n[7]||(n[7]=[])}function iO(n){return n.cleanup||(n.cleanup=[])}function oO(n,e){const t=n[9],r=t?t.get(gl,null):null;r&&r.handleError(e)}function wb(n,e,t,r,i){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}function _s(n,e,t){const r=Hh(e,n);!function tP(n,e,t){n.setValue(e,t)}(n[11],r,t)}function Ef(n,e,t){let r=t?n.styles:null,i=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?i=L_(i,a):2==s&&(r=L_(r,a+": "+e[++o]+";"))}t?n.styles=r:n.stylesWithoutHost=r,t?n.classes=i:n.classesWithoutHost=i}function Tf(n,e,t,r,i=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&r.push(Qt(s)),vi(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Tf(l[1],l,c,r)}const o=t.type;if(8&o)Tf(n,e,t.child,r);else if(32&o){const a=$v(t,e);let l;for(;l=a();)r.push(l)}else if(16&o){const a=hP(e,t);if(Array.isArray(a))r.push(...a);else{const l=gu(e[16]);Tf(l[1],l,a,r,!0)}}t=i?t.projectionNext:t.next}return r}class yu{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Tf(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(vi(e)){const t=e[8],r=t?t.indexOf(this):-1;r>-1&&(Gv(e,r),Jh(t,r))}this._attachedToViewContainer=!1}rP(this._lView[1],this._lView)}onDestroy(e){qP(this._lView[1],this._lView,null,e)}markForCheck(){vb(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Sf(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new J(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function K9(n,e){mu(n,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new J(902,!1);this._appRef=e}}class gW extends yu{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;Sf(e[1],e,e[8],!1)}checkNoChanges(){}get context(){return null}}class Cb extends hl{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=rt(e);return new _u(t,this.ngModule)}}function aO(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class yW{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,r){const i=this.injector.get(e,Mv,r);return i!==Mv||t===Mv?i:this.parentInjector.get(e,t,r)}}class _u extends Vk{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function gG(n){return n.map(pG).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return aO(this.componentDef.inputs)}get outputs(){return aO(this.componentDef.outputs)}create(e,t,r,i){var s;let o=(i=i||this.ngModule)instanceof ul?i:null===(s=i)||void 0===s?void 0:s.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new yW(e,o):e,l=a.get(fu,null);if(null===l)throw new J(407,!1);const c=a.get(g9,null),u=l.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",h=r?function QG(n,e,t){return n.selectRootElement(e,t===yi.ShadowDom)}(u,r,this.componentDef.encapsulation):jv(l.createRenderer(null,this.componentDef),d,function mW(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(d)),f=this.componentDef.onPush?288:272,p=gb(0,null,null,1,0,null,null,null,null,null),g=bf(null,p,null,f,null,null,l,u,c,a,null);let m,_;nv(g);try{const b=function bW(n,e,t,r,i,s){const o=t[1];t[22]=n;const l=bl(o,22,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Ef(l,c,!0),null!==n&&(qh(i,n,c),null!==l.classes&&Qv(i,n,l.classes),null!==l.styles&&gP(i,n,l.styles)));const u=r.createRenderer(n,e),d=bf(t,WP(e),null,e.onPush?32:16,t[22],l,r,u,s||null,null,null);return o.firstCreatePass&&(Xh(tu(l,t),o,e.type),JP(o,l),eO(l,t.length,1)),Cf(t,d),t[22]=d}(h,this.componentDef,g,l,u);if(h)if(r)qh(u,h,["ng-version",$k.full]);else{const{attrs:y,classes:T}=function mG(n){const e=[],t=[];let r=1,i=2;for(;r<n.length;){let s=n[r];if("string"==typeof s)2===i?""!==s&&e.push(s,n[++r]):8===i&&t.push(s);else{if(!wi(i))break;i=s}r++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);y&&qh(u,h,y),T&&T.length>0&&Qv(u,h,T.join(" "))}if(_=K_(p,22),void 0!==t){const y=_.projection=[];for(let T=0;T<this.ngContentSelectors.length;T++){const D=t[T];y.push(null!=D?Array.from(D):null)}}m=function wW(n,e,t,r){const i=t[1],s=function eW(n,e,t){const r=an();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),tO(n,r,e,wl(n,e,1,null),t),KP(n,r));const i=nu(e,n,r.directiveStart,r);Vn(i,e);const s=Kr(r,e);return s&&Vn(s,e),i}(i,t,e);if(n[8]=t[8]=s,null!==r)for(const a of r)a(s,e);if(e.contentQueries){const a=an();e.contentQueries(1,s,a.directiveStart)}const o=an();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(zs(o.index),XP(t[1],o,0,o.directiveStart,o.directiveEnd,e),ZP(e,s)),s}(b,this.componentDef,g,[CW]),hb(p,g,null)}finally{rv()}return new vW(this.componentType,m,fl(_,g),g,_)}}class vW extends class c9{}{constructor(e,t,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new gW(i),this.componentType=e}setInput(e,t){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[e])){const s=this._rootLView;wb(s[1],s,i,e,t),QP(s,this._tNode.index)}}get injector(){return new tl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}function CW(){const n=an();jh(W()[1],n)}function it(n){let e=function lO(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const r=[n];for(;e;){let i;if(bi(n))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new J(903,!1);i=e.\u0275dir}if(i){if(t){r.push(i);const o=n;o.inputs=Sb(n.inputs),o.declaredInputs=Sb(n.declaredInputs),o.outputs=Sb(n.outputs);const a=i.hostBindings;a&&xW(n,a);const l=i.viewQuery,c=i.contentQueries;if(l&&EW(n,l),c&&TW(n,c),R_(n.inputs,i.inputs),R_(n.declaredInputs,i.declaredInputs),R_(n.outputs,i.outputs),bi(i)&&i.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===it&&(t=!1)}}e=Object.getPrototypeOf(e)}!function SW(n){let e=0,t=null;for(let r=n.length-1;r>=0;r--){const i=n[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Yh(i.hostAttrs,t=Yh(t,i.hostAttrs))}}(r)}function Sb(n){return n===qa?{}:n===Xe?[]:n}function EW(n,e){const t=n.viewQuery;n.viewQuery=t?(r,i)=>{e(r,i),t(r,i)}:e}function TW(n,e){const t=n.contentQueries;n.contentQueries=t?(r,i,s)=>{e(r,i,s),t(r,i,s)}:e}function xW(n,e){const t=n.hostBindings;n.hostBindings=t?(r,i)=>{e(r,i),t(r,i)}:e}let xf=null;function Bo(){if(!xf){const n=gt.Symbol;if(n&&n.iterator)xf=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const r=e[t];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(xf=r)}}}return xf}function vu(n){return!!Eb(n)&&(Array.isArray(n)||!(n instanceof Map)&&Bo()in n)}function Eb(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Ui(n,e,t){return n[e]=t}function Bn(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function $o(n,e,t,r){const i=Bn(n,e,t);return Bn(n,e+1,r)||i}function Qr(n,e,t,r,i,s){const o=$o(n,e,t,r);return $o(n,e+2,i,s)||o}function Nr(n,e,t,r){const i=W();return Bn(i,Za(),e)&&(ze(),$i(Nt(),i,n,e,t,r)),Nr}function El(n,e,t,r,i,s){const a=$o(n,function hs(){return De.lFrame.bindingIndex}(),t,i);return fs(2),a?e+ke(t)+r+ke(i)+s:Pe}function I(n,e,t,r,i,s,o,a){const l=W(),c=ze(),u=n+22,d=c.firstCreatePass?function NW(n,e,t,r,i,s,o,a,l){const c=e.consts,u=bl(e,n,4,o||null,Hs(c,a));mb(e,t,u,Hs(c,l)),jh(e,u);const d=u.tViews=gb(2,u,r,i,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,r,i,s,o):c.data[u];Fi(d,!1);const h=l[11].createComment("");pf(c,l,h,d),Vn(h,l),Cf(l,l[u]=nO(h,l,h,d)),Uh(d)&&fb(c,l,d),null!=o&&pb(l,d,a)}function wu(n){return Xa(function Ij(){return De.lFrame.contextLView}(),22+n)}function w(n,e,t){const r=W();return Bn(r,Za(),e)&&function Or(n,e,t,r,i,s,o,a){const l=Kr(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[r])?(wb(n,t,u,r,i),$h(e)&&QP(t,e.index)):3&e.type&&(r=function ZG(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=o?o(i,e.value||"",r):i,s.setProperty(l,r,i))}(ze(),Nt(),r,n,e,r[11],t,!1),w}function Tb(n,e,t,r,i){const o=i?"class":"style";wb(n,t,e.inputs[o],o,r)}function C(n,e,t,r){const i=W(),s=ze(),o=22+n,a=i[11],l=i[o]=jv(a,e,function Lj(){return De.lFrame.currentNamespace}()),c=s.firstCreatePass?function LW(n,e,t,r,i,s,o){const a=e.consts,c=bl(e,n,2,i,Hs(a,s));return mb(e,t,c,Hs(a,o)),null!==c.attrs&&Ef(c,c.attrs,!1),null!==c.mergedAttrs&&Ef(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,i,0,e,t,r):s.data[o];Fi(c,!0);const u=c.mergedAttrs;null!==u&&qh(a,l,u);const d=c.classes;null!==d&&Qv(a,l,d);const h=c.styles;return null!==h&&gP(a,l,h),64!=(64&c.flags)&&pf(s,i,l,c),0===function Cj(){return De.lFrame.elementDepthCount}()&&Vn(l,i),function Sj(){De.lFrame.elementDepthCount++}(),Uh(c)&&(fb(s,i,c),GP(s,c,i)),null!==r&&pb(i,c),C}function E(){let n=an();X_()?Z_():(n=n.parent,Fi(n,!1));const e=n;!function Ej(){De.lFrame.elementDepthCount--}();const t=ze();return t.firstCreatePass&&(jh(t,n),j_(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function Uj(n){return 0!=(16&n.flags)}(e)&&Tb(t,e,W(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function Hj(n){return 0!=(32&n.flags)}(e)&&Tb(t,e,W(),e.stylesWithoutHost,!1),E}function K(n,e,t,r){return C(n,e,t,r),E(),K}function Xr(n,e,t){const r=W(),i=ze(),s=n+22,o=i.firstCreatePass?function FW(n,e,t,r,i){const s=e.consts,o=Hs(s,r),a=bl(e,n,8,"ng-container",o);return null!==o&&Ef(a,o,!0),mb(e,t,a,Hs(s,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,i,r,e,t):i.data[s];Fi(o,!0);const a=r[s]=r[11].createComment("");return pf(i,r,a,o),Vn(a,r),Uh(o)&&(fb(i,r,o),GP(i,o,r)),null!=t&&pb(r,o),Xr}function Zr(){let n=an();const e=ze();return X_()?Z_():(n=n.parent,Fi(n,!1)),e.firstCreatePass&&(jh(e,n),j_(n)&&e.queries.elementEnd(n)),Zr}function kl(n,e,t){return Xr(n,e,t),Zr(),kl}function he(){return W()}function Df(n){return!!n&&"function"==typeof n.then}function _O(n){return!!n&&"function"==typeof n.subscribe}const vO=_O;function q(n,e,t,r){const i=W(),s=ze(),o=an();return function wO(n,e,t,r,i,s,o,a){const l=Uh(r),u=n.firstCreatePass&&iO(n),d=e[8],h=rO(e);let f=!0;if(3&r.type||a){const m=Kr(r,e),_=a?a(m):m,b=h.length,y=a?D=>a(Qt(D[r.index])):r.index;let T=null;if(!a&&l&&(T=function VW(n,e,t,r){const i=n.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const o=i[s];if(o===t&&i[s+1]===r){const a=e[7],l=i[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,i,r.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=s,T.__ngLastListenerFn__=s,f=!1;else{s=SO(r,e,d,s,!1);const D=t.listen(_,i,s);h.push(s,D),u&&u.push(i,y,b,b+1)}}else s=SO(r,e,d,s,!1);const p=r.outputs;let g;if(f&&null!==p&&(g=p[i])){const m=g.length;if(m)for(let _=0;_<m;_+=2){const A=e[g[_]][g[_+1]].subscribe(s),P=h.length;h.push(s,A),u&&u.push(i,r.index,P,-(P+1))}}}(s,i,i[11],o,n,e,0,r),q}function CO(n,e,t,r){try{return!1!==t(r)}catch(i){return oO(n,i),!1}}function SO(n,e,t,r,i){return function s(o){if(o===Function)return r;vb(2&n.flags?Ar(n.index,e):e);let l=CO(e,0,r,o),c=s.__ngNextListenerFn__;for(;c;)l=CO(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function S(n=1){return function Pj(n){return(De.lFrame.contextLView=function Oj(n,e){for(;n>0;)e=e[15],n--;return e}(n,De.lFrame.contextLView))[8]}(n)}function BW(n,e){let t=null;const r=function uG(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let i=0;i<e.length;i++){const s=e[i];if("*"!==s){if(null===r?vP(n,s,!0):fG(r,s))return i}else t=i}return t}function xb(n){const e=W()[16][6];if(!e.projection){const r=e.projection=su(n?n.length:1,null),i=r.slice();let s=e.child;for(;null!==s;){const o=n?BW(s,n):0;null!==o&&(i[o]?i[o].projectionNext=s:r[o]=s,i[o]=s),s=s.next}}}function Uo(n,e=0,t){const r=W(),i=ze(),s=bl(i,22+n,16,null,t||null);null===s.projection&&(s.projection=e),Z_(),64!=(64&s.flags)&&function rG(n,e,t){pP(e[11],0,e,t,iP(n,t,e),lP(t.parent||e[6],t,e))}(i,r,s)}function OO(n,e,t,r,i){const s=n[t+1],o=null===e;let a=r?Ci(s):ys(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];HW(n[a],e)&&(l=!0,n[a+1]=r?rb(u):tb(u)),a=r?Ci(u):ys(u)}l&&(n[t+1]=r?tb(s):rb(s))}function HW(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&ol(n,e)>=0}const un={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function NO(n){return n.substring(un.key,un.keyEnd)}function zW(n){return n.substring(un.value,un.valueEnd)}function RO(n,e){const t=un.textEnd;return t===e?-1:(e=un.keyEnd=function WW(n,e,t){for(;e<t&&n.charCodeAt(e)>32;)e++;return e}(n,un.key=e,t),Pl(n,e,t))}function LO(n,e){const t=un.textEnd;let r=un.key=Pl(n,e,t);return t===r?-1:(r=un.keyEnd=function qW(n,e,t){let r;for(;e<t&&(45===(r=n.charCodeAt(e))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)e++;return e}(n,r,t),r=VO(n,r,t),r=un.value=Pl(n,r,t),r=un.valueEnd=function YW(n,e,t){let r=-1,i=-1,s=-1,o=e,a=o;for(;o<t;){const l=n.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=BO(n,l,o,t):e===o-4&&85===s&&82===i&&76===r&&40===l?a=o=BO(n,41,o,t):l>32&&(a=o),s=i,i=r,r=-33&l}return a}(n,r,t),VO(n,r,t))}function FO(n){un.key=0,un.keyEnd=0,un.value=0,un.valueEnd=0,un.textEnd=n.length}function Pl(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function VO(n,e,t,r){return(e=Pl(n,e,t))<t&&e++,e}function BO(n,e,t,r){let i=-1,s=t;for(;s<r;){const o=n.charCodeAt(s++);if(o==e&&92!==i)return s;i=92==o&&92===i?0:o}throw new Error}function $n(n,e,t){return Ei(n,e,t,!1),$n}function Cu(n,e){return Ei(n,e,null,!0),Cu}function KW(n,e){for(let t=function GW(n){return FO(n),LO(n,Pl(n,0,un.textEnd))}(e);t>=0;t=LO(e,t))HO(n,NO(e),zW(e))}function Su(n){Ti(kr,Hi,n,!0)}function Hi(n,e){for(let t=function jW(n){return FO(n),RO(n,Pl(n,0,un.textEnd))}(e);t>=0;t=RO(e,t))kr(n,NO(e),!0)}function Ei(n,e,t,r){const i=W(),s=ze(),o=fs(2);s.firstUpdatePass&&UO(s,n,o,r),e!==Pe&&Bn(i,o,e)&&zO(s,s.data[Jn()],i,i[11],n,i[o+1]=function nq(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=ut(Pr(n)))),n}(e,t),r,o)}function Ti(n,e,t,r){const i=ze(),s=fs(2);i.firstUpdatePass&&UO(i,null,s,r);const o=W();if(t!==Pe&&Bn(o,s,t)){const a=i.data[Jn()];if(GO(a,r)&&!$O(i,s)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=L_(l,t||"")),Tb(i,a,o,t,r)}else!function tq(n,e,t,r,i,s,o,a){i===Pe&&(i=Xe);let l=0,c=0,u=0<i.length?i[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<i.length?i[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let g,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,g=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,g=f),null!==p&&zO(n,e,t,r,p,g,o,a),u=l<i.length?i[l]:null,d=c<s.length?s[c]:null}}(i,a,o,o[11],o[s+1],o[s+1]=function eq(n,e,t){if(null==t||""===t)return Xe;const r=[],i=Pr(t);if(Array.isArray(i))for(let s=0;s<i.length;s++)n(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&n(r,s,i[s]);else"string"==typeof i&&e(r,i);return r}(n,e,t),r,s)}}function $O(n,e){return e>=n.expandoStartIndex}function UO(n,e,t,r){const i=n.data;if(null===i[t+1]){const s=i[Jn()],o=$O(n,t);GO(s,r)&&null===e&&!o&&(e=!1),e=function QW(n,e,t,r){const i=function ev(n){const e=De.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(t=Eu(t=Db(null,n,e,t,r),e.attrs,r),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==i)if(t=Db(i,n,e,t,r),null===s){let l=function XW(n,e,t){const r=t?e.classBindings:e.styleBindings;if(0!==ys(r))return n[Ci(r)]}(n,e,r);void 0!==l&&Array.isArray(l)&&(l=Db(null,n,e,l[1],r),l=Eu(l,e.attrs,r),function ZW(n,e,t,r){n[Ci(t?e.classBindings:e.styleBindings)]=r}(n,e,r,l))}else s=function JW(n,e,t){let r;const i=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<i;s++)r=Eu(r,n[s].hostAttrs,t);return Eu(r,e.attrs,t)}(n,e,r)}return void 0!==s&&(r?e.residualClasses=s:e.residualStyles=s),t}(i,s,e,r),function $W(n,e,t,r,i,s){let o=s?e.classBindings:e.styleBindings,a=Ci(o),l=ys(o);n[r]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||ol(d,u)>0)&&(c=!0)}else u=t;if(i)if(0!==l){const h=Ci(n[a+1]);n[r+1]=yf(h,a),0!==h&&(n[h+1]=nb(n[h+1],r)),n[a+1]=function LG(n,e){return 131071&n|e<<17}(n[a+1],r)}else n[r+1]=yf(a,0),0!==a&&(n[a+1]=nb(n[a+1],r)),a=r;else n[r+1]=yf(l,0),0===a?a=r:n[l+1]=nb(n[l+1],r),l=r;c&&(n[r+1]=tb(n[r+1])),OO(n,u,r,!0),OO(n,u,r,!1),function UW(n,e,t,r,i){const s=i?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&ol(s,e)>=0&&(t[r+1]=rb(t[r+1]))}(e,u,n,r,s),o=yf(a,l),s?e.classBindings=o:e.styleBindings=o}(i,s,e,t,o,r)}}function Db(n,e,t,r,i){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],r=Eu(r,s.hostAttrs,i),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),r}function Eu(n,e,t){const r=t?1:2;let i=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?i=o:i===r&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),kr(n,o,!!t||e[++s]))}return void 0===n?null:n}function HO(n,e,t){kr(n,e,Pr(t))}function zO(n,e,t,r,i,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Af(function RP(n){return 1==(1&n)}(c)?jO(l,e,t,i,ys(c),o):void 0)||(Af(s)||function NP(n){return 2==(2&n)}(c)&&(s=jO(l,null,t,i,a,o)),function sG(n,e,t,r,i){if(e)i?n.addClass(t,r):n.removeClass(t,r);else{let s=-1===r.indexOf("-")?void 0:pr.DashCase;null==i?n.removeStyle(t,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=pr.Important),n.setStyle(t,r,i,s))}}(r,o,Hh(Jn(),t),i,s))}function jO(n,e,t,r,i,s){const o=null===e;let a;for(;i>0;){const l=n[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[i+1];h===Pe&&(h=d?Xe:void 0);let f=d?fv(h,r):u===r?h:void 0;if(c&&!Af(f)&&(f=fv(l,r)),Af(f)&&(a=f,o))return a;const p=n[i+1];i=o?Ci(p):ys(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=fv(l,r))}return a}function Af(n){return void 0!==n}function GO(n,e){return 0!=(n.flags&(e?16:32))}function X(n,e=""){const t=W(),r=ze(),i=n+22,s=r.firstCreatePass?bl(r,i,1,e,null):r.data[i],o=t[i]=function zv(n,e){return n.createText(e)}(t[11],e);pf(r,t,o,s),Fi(s,!1)}function be(n){return Be("",n,""),be}function Be(n,e,t){const r=W(),i=function Sl(n,e,t,r){return Bn(n,Za(),t)?e+ke(t)+r:Pe}(r,n,e,t);return i!==Pe&&_s(r,Jn(),i),Be}function Ho(n,e,t,r,i){const s=W(),o=El(s,n,e,t,r,i);return o!==Pe&&_s(s,Jn(),o),Ho}const zo=void 0;var Cq=["en",[["a","p"],["AM","PM"],zo],[["AM","PM"],zo,zo],[["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"]],zo,[["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"]],zo,[["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}",zo,"{1} 'at' {0}",zo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function wq(n){const t=Math.floor(Math.abs(n)),r=n.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let Ol={};function tr(n){const e=function Sq(n){return n.toLowerCase().replace(/_/g,"-")}(n);let t=h2(e);if(t)return t;const r=e.split("-")[0];if(t=h2(r),t)return t;if("en"===r)return Cq;throw new J(701,!1)}function h2(n){return n in Ol||(Ol[n]=gt.ng&&gt.ng.common&&gt.ng.common.locales&&gt.ng.common.locales[n]),Ol[n]}var le=(()=>((le=le||{})[le.LocaleId=0]="LocaleId",le[le.DayPeriodsFormat=1]="DayPeriodsFormat",le[le.DayPeriodsStandalone=2]="DayPeriodsStandalone",le[le.DaysFormat=3]="DaysFormat",le[le.DaysStandalone=4]="DaysStandalone",le[le.MonthsFormat=5]="MonthsFormat",le[le.MonthsStandalone=6]="MonthsStandalone",le[le.Eras=7]="Eras",le[le.FirstDayOfWeek=8]="FirstDayOfWeek",le[le.WeekendRange=9]="WeekendRange",le[le.DateFormat=10]="DateFormat",le[le.TimeFormat=11]="TimeFormat",le[le.DateTimeFormat=12]="DateTimeFormat",le[le.NumberSymbols=13]="NumberSymbols",le[le.NumberFormats=14]="NumberFormats",le[le.CurrencyCode=15]="CurrencyCode",le[le.CurrencySymbol=16]="CurrencySymbol",le[le.CurrencyName=17]="CurrencyName",le[le.Currencies=18]="Currencies",le[le.Directionality=19]="Directionality",le[le.PluralCase=20]="PluralCase",le[le.ExtraData=21]="ExtraData",le))();const Nl="en-US";let f2=Nl;function kb(n,e,t,r,i){if(n=xe(n),Array.isArray(n))for(let s=0;s<n.length;s++)kb(n[s],e,t,r,i);else{const s=ze(),o=W();let a=Fo(n)?n:xe(n.provide),l=Fk(n);const c=an(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(Fo(n)||!n.multi){const f=new Jc(l,i,R),p=Ob(a,e,i?u:u+h,d);-1===p?(Xh(tu(c,o),s,a),Pb(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(f),o.push(f)):(t[p]=f,o[p]=f)}else{const f=Ob(a,e,u+h,d),p=Ob(a,e,u,u+h),g=f>=0&&t[f],m=p>=0&&t[p];if(i&&!m||!i&&!g){Xh(tu(c,o),s,a);const _=function bY(n,e,t,r,i){const s=new Jc(n,t,R);return s.multi=[],s.index=e,s.componentProviders=0,V2(s,i,r&&!t),s}(i?vY:_Y,t.length,i,r,l);!i&&m&&(t[p].providerFactory=_),Pb(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(_),o.push(_)}else Pb(s,n,f>-1?f:p,V2(t[i?p:f],l,!i&&r));!i&&r&&m&&t[p].componentProviders++}}}function Pb(n,e,t,r){const i=Fo(e),s=function t9(n){return!!n.useClass}(e);if(i||s){const l=(s?xe(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!i&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[r,l]):c[u+1].push(r,l)}else c.push(t,l)}}}function V2(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function Ob(n,e,t,r){for(let i=t;i<r;i++)if(e[i]===n)return i;return-1}function _Y(n,e,t,r){return Nb(this.multi,[])}function vY(n,e,t,r){const i=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=nu(t,t[1],this.providerFactory.index,r);s=a.slice(0,o),Nb(i,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],Nb(i,s);return s}function Nb(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function Ct(n,e=[]){return t=>{t.providersResolver=(r,i)=>function yY(n,e,t){const r=ze();if(r.firstCreatePass){const i=bi(n);kb(t,r.data,r.blueprint,i,!0),kb(e,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,e)}}class Rl{}class B2 extends Rl{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Cb(this);const r=function Ir(n,e){const t=n[vM]||null;if(!t&&!0===e)throw new Error(`Type ${ut(n)} does not have '\u0275mod' property.`);return t}(e);this._bootstrapComponents=function ms(n){return n instanceof Function?n():n}(r.bootstrap),this._r3Injector=xP(e,t,[{provide:Rl,useValue:this},{provide:hl,useValue:this.componentFactoryResolver}],ut(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Rb extends class wY{}{constructor(e){super(),this.moduleType=e}create(e){return new B2(this.moduleType,e)}}function pe(n,e,t,r){return K2(W(),Zn(),n,e,t,r)}function Ys(n,e,t,r,i){return Q2(W(),Zn(),n,e,t,r,i)}function Ll(n,e,t,r,i,s,o){return Z2(W(),Zn(),n,e,t,r,i,s,o)}function Mu(n,e){const t=n[e];return t===Pe?void 0:t}function K2(n,e,t,r,i,s){const o=e+t;return Bn(n,o,i)?Ui(n,o+1,s?r.call(s,i):r(i)):Mu(n,o+1)}function Q2(n,e,t,r,i,s,o){const a=e+t;return $o(n,a,i,s)?Ui(n,a+2,o?r.call(o,i,s):r(i,s)):Mu(n,a+2)}function X2(n,e,t,r,i,s,o,a){const l=e+t;return function If(n,e,t,r,i){const s=$o(n,e,t,r);return Bn(n,e+2,i)||s}(n,l,i,s,o)?Ui(n,l+3,a?r.call(a,i,s,o):r(i,s,o)):Mu(n,l+3)}function Z2(n,e,t,r,i,s,o,a,l){const c=e+t;return Qr(n,c,i,s,o,a)?Ui(n,c+4,l?r.call(l,i,s,o,a):r(i,s,o,a)):Mu(n,c+4)}function ge(n,e){const t=ze();let r;const i=n+22;t.firstCreatePass?(r=function BY(n,e){if(e)for(let t=e.length-1;t>=0;t--){const r=e[t];if(n===r.name)return r}}(e,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(i,r.onDestroy)):r=t.data[i];const s=r.factory||(r.factory=Ro(r.type)),o=Wr(R);try{const a=Kh(!1),l=s();return Kh(a),function RW(n,e,t,r){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=r}(t,W(),i,l),l}finally{Wr(o)}}function _e(n,e,t){const r=n+22,i=W(),s=Xa(i,r);return ku(i,r)?K2(i,Zn(),e,s.transform,t,s):s.transform(t)}function Fb(n,e,t,r){const i=n+22,s=W(),o=Xa(s,i);return ku(s,i)?Q2(s,Zn(),e,o.transform,t,r,o):o.transform(t,r)}function ku(n,e){return n[1].data[e].pure}function Vb(n){return e=>{setTimeout(n,void 0,e)}}const G=class UY extends cs{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){let i=e,s=t||(()=>null),o=r;if(e&&"object"==typeof e){var a,l,c;const d=e;i=null===(a=d.next)||void 0===a?void 0:a.bind(d),s=null===(l=d.error)||void 0===l?void 0:l.bind(d),o=null===(c=d.complete)||void 0===c?void 0:c.bind(d)}this.__isAsync&&(s=Vb(s),i&&(i=Vb(i)),o&&(o=Vb(o)));const u=super.subscribe({next:i,error:s,complete:o});return e instanceof Dt&&e.add(u),u}};function HY(){return this._results[Bo()]()}class Bb{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Bo(),r=Bb.prototype;r[t]||(r[t]=HY)}get changes(){return this._changes||(this._changes=new G)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const r=this;r.dirty=!1;const i=Mr(e);(this._changesDetected=!function Zj(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r<n.length;r++){let i=n[r],s=e[r];if(t&&(i=t(i),s=t(s)),s!==i)return!1}return!0}(r._results,i,t))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.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()}}let xi=(()=>{class n{}return n.__NG_ELEMENT_ID__=GY,n})();const zY=xi,jY=class extends zY{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(e,t){const r=this._declarationTContainer.tViews,i=bf(this._declarationLView,r,e,16,null,r.declTNode,null,null,null,null,t||null);i[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(i[19]=o.createEmbeddedView(r)),hb(r,i,e),new yu(i)}};function GY(){return Nf(an(),W())}function Nf(n,e){return 4&n.type?new jY(e,n,fl(n,e)):null}let zi=(()=>{class n{}return n.__NG_ELEMENT_ID__=WY,n})();function WY(){return iN(an(),W())}const qY=zi,nN=class extends qY{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return fl(this._hostTNode,this._hostLView)}get injector(){return new tl(this._hostTNode,this._hostLView)}get parentInjector(){const e=Qh(this._hostTNode,this._hostLView);if(WM(e)){const t=el(e,this._hostLView),r=Ja(e);return new tl(t[1].data[r+8],t)}return new tl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=rN(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const o=e.createEmbeddedView(t||{},s);return this.insert(o,i),o}createComponent(e,t,r,i,s){const o=e&&!function iu(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,r=d.injector,i=d.projectableNodes,s=d.environmentInjector||d.ngModuleRef}const l=o?e:new _u(rt(e)),c=r||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(ul,null);h&&(s=h)}const u=l.create(c,i,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const r=e._lView,i=r[1];if(function wj(n){return vi(n[3])}(r)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=r[3],h=new nN(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function X9(n,e,t,r){const i=10+r,s=t.length;r>0&&(t[i-1][4]=e),r<s-10?(e[4]=t[i],rk(t,10+r,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function Z9(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=64}(i,r,o,s);const a=Yv(s,o),l=r[11],c=ff(l,o[7]);return null!==c&&function Y9(n,e,t,r,i,s){r[0]=i,r[6]=e,mu(n,r,t,1,i,s)}(i,o[6],l,r,c,a),e.attachToViewContainerRef(),rk($b(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=rN(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),r=Gv(this._lContainer,t);r&&(Jh($b(this._lContainer),t),rP(r[1],r))}detach(e){const t=this._adjustIndex(e,-1),r=Gv(this._lContainer,t);return r&&null!=Jh($b(this._lContainer),t)?new yu(r):null}_adjustIndex(e,t=0){return e??this.length+t}};function rN(n){return n[8]}function $b(n){return n[8]||(n[8]=[])}function iN(n,e){let t;const r=e[n.index];if(vi(r))t=r;else{let i;if(8&n.type)i=Qt(r);else{const s=e[11];i=s.createComment("");const o=Kr(n,e);Vo(s,ff(s,o),i,function nG(n,e){return n.nextSibling(e)}(s,o),!1)}e[n.index]=t=nO(r,e,i,n),Cf(e,t)}return new nN(t,n,e)}class Ub{constructor(e){this.queryList=e,this.matches=null}clone(){return new Ub(this.queryList)}setDirty(){this.queryList.setDirty()}}class Hb{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const r=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let s=0;s<r;s++){const o=t.getByIndex(s);i.push(this.queries[o.indexInDeclarationView].clone())}return new Hb(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==cN(e,t).matches&&this.queries[t].setDirty()}}class sN{constructor(e,t,r=null){this.predicate=e,this.flags=t,this.read=r}}class zb{constructor(e=[]){this.queries=e}elementStart(e,t){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let r=0;r<this.length;r++){const i=null!==t?t.length:0,s=this.getByIndex(r).embeddedTView(e,i);s&&(s.indexInDeclarationView=r,null!==t?t.push(s):t=[s])}return null!==t?new zb(t):null}template(e,t){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class jb{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new jb(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let r=e.parent;for(;null!==r&&8&r.type&&r.index!==t;)r=r.parent;return t===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const s=r[i];this.matchTNodeWithReadOption(e,t,QY(t,s)),this.matchTNodeWithReadOption(e,t,Zh(t,e,s,!1,!1))}else r===xi?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Zh(t,e,r,!1,!1))}matchTNodeWithReadOption(e,t,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===Fn||i===zi||i===xi&&4&t.type)this.addMatch(t.index,-2);else{const s=Zh(t,e,i,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,r)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function QY(n,e){const t=n.localNames;if(null!==t)for(let r=0;r<t.length;r+=2)if(t[r]===e)return t[r+1];return null}function ZY(n,e,t,r){return-1===t?function XY(n,e){return 11&n.type?fl(n,e):4&n.type?Nf(n,e):null}(e,n):-2===t?function JY(n,e,t){return t===Fn?fl(e,n):t===xi?Nf(e,n):t===zi?iN(e,n):void 0}(n,e,r):nu(n,n[1],t,e)}function oN(n,e,t,r){const i=e[19].queries[r];if(null===i.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:ZY(e,s[c],o[l+1],t.metadata.read))}i.matches=a}return i.matches}function Gb(n,e,t,r){const i=n.queries.getByIndex(t),s=i.matches;if(null!==s){const o=oN(n,e,i,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)r.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Gb(h[1],h,c,r)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];Gb(f[1],f,c,r)}}}}}return r}function Jr(n){const e=W(),t=ze(),r=LM();tv(r+1);const i=cN(t,r);if(n.dirty&&function bj(n){return 4==(4&n[2])}(e)===(2==(2&i.metadata.flags))){if(null===i.matches)n.reset([]);else{const s=i.crossesNgTemplate?Gb(t,e,r,[]):oN(t,e,i,r);n.reset(s,f9),n.notifyOnChanges()}return!0}return!1}function ji(n,e,t){const r=ze();r.firstCreatePass&&(lN(r,new sN(n,e,t),-1),2==(2&e)&&(r.staticViewQueries=!0)),aN(r,W(),e)}function Wb(n,e,t,r){const i=ze();if(i.firstCreatePass){const s=an();lN(i,new sN(e,t,r),s.index),function tK(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(i,n),2==(2&t)&&(i.staticContentQueries=!0)}aN(i,W(),t)}function ei(){return function eK(n,e){return n[19].queries[e].queryList}(W(),LM())}function aN(n,e,t){const r=new Bb(4==(4&t));qP(n,e,r,r.destroy),null===e[19]&&(e[19]=new Hb),e[19].queries.push(new Ub(r))}function lN(n,e,t){null===n.queries&&(n.queries=new zb),n.queries.track(new jb(e,t))}function cN(n,e){return n.queries.getByIndex(e)}function uN(n,e){return Nf(n,e)}function Lf(...n){}const AN=new ye("Application Initializer");let Ff=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Lf,this.reject=Lf,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const s=this.appInits[i]();if(Df(s))t.push(s);else if(vO(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(ae(AN,8))},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ou=new ye("AppId",{providedIn:"root",factory:function MN(){return`${Xb()}${Xb()}${Xb()}`}});function Xb(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const kN=new ye("Platform Initializer"),Bl=new ye("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),wK=new ye("appBootstrapListener"),PN=new ye("AnimationModuleType"),vs=new ye("LocaleId",{providedIn:"root",factory:()=>function d7(n,e=Ie.Default){return"number"!=typeof e&&(e=0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)),ae(n,e)}(vs,Ie.Optional|Ie.SkipSelf)||function CK(){return typeof $localize<"u"&&$localize.locale||Nl}()}),SK=new ye("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),IK=(()=>Promise.resolve(0))();function Zb(n){typeof Zone>"u"?IK.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class vt{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new G(!1),this.onMicrotaskEmpty=new G(!1),this.onStable=new G(!1),this.onError=new G(!1),typeof Zone>"u")throw new J(908,!1);Zone.assertZonePatched();const i=this;if(i._nesting=0,i._outer=i._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const s=Zone.AsyncStackTaggingZoneSpec;i._inner=i._inner.fork(new s("Angular"))}Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function DK(){let n=gt.requestAnimationFrame,e=gt.cancelAnimationFrame;if(typeof Zone<"u"&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function kK(n){const e=()=>{!function MK(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(gt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,e0(n),n.isCheckStableRunning=!0,Jb(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),e0(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,s,o,a)=>{try{return RN(n),t.invokeTask(i,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),LN(n)}},onInvoke:(t,r,i,s,o,a,l)=>{try{return RN(n),t.invoke(i,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),LN(n)}},onHasTask:(t,r,i,s)=>{t.hasTask(i,s),r===i&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,e0(n),Jb(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,r,i,s)=>(t.handleError(i,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!vt.isInAngularZone())throw new J(909,!1)}static assertNotInAngularZone(){if(vt.isInAngularZone())throw new J(909,!1)}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,i){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,e,AK,Lf,Lf);try{return s.runTask(o,t,r)}finally{s.cancelTask(o)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const AK={};function Jb(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function e0(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function RN(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function LN(n){n._nesting--,Jb(n)}class PK{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new G,this.onMicrotaskEmpty=new G,this.onStable=new G,this.onError=new G}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,i){return e.apply(t,r)}}const FN=new ye(""),Vf=new ye("");let r0,t0=(()=>{class n{constructor(t,r,i){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,r0||(function OK(n){r0=n}(i),i.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{vt.assertNotInAngularZone(),Zb(()=>{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())Zb(()=>{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(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.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,r,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:i})}whenStable(t,r,i){if(i&&!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,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}}return n.\u0275fac=function(t){return new(t||n)(ae(vt),ae(n0),ae(Vf))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})(),n0=(()=>{class n{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}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,r=!0){var i,s;return null!==(i=null===(s=r0)||void 0===s?void 0:s.findTestabilityInTree(this,t,r))&&void 0!==i?i:null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Ks=null;const VN=new ye("AllowMultipleToken"),s0=new ye("PlatformDestroyListeners");function $N(n,e,t=[]){const r=`Platform: ${e}`,i=new ye(r);return(s=[])=>{let o=o0();if(!o||o.injector.get(VN,!1)){const a=[...t,...s,{provide:i,useValue:!0}];n?n(a):function LK(n){if(Ks&&!Ks.get(VN,!1))throw new J(400,!1);Ks=n;const e=n.get(HN);(function BN(n){const e=n.get(kN,null);e&&e.forEach(t=>t())})(n)}(function UN(n=[],e){return gr.create({name:e,providers:[{provide:xv,useValue:"platform"},{provide:s0,useValue:new Set([()=>Ks=null])},...n]})}(a,r))}return function VK(n){const e=o0();if(!e)throw new J(401,!1);return e}()}}function o0(){var n,e;return null!==(n=null===(e=Ks)||void 0===e?void 0:e.get(HN))&&void 0!==n?n:null}let HN=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=function jN(n,e){let t;return t="noop"===n?new PK:("zone.js"===n?void 0:n)||new vt(e),t}(r?.ngZone,function zN(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(r)),s=[{provide:vt,useValue:i}];return i.run(()=>{const o=gr.create({providers:s,parent:this.injector,name:t.moduleType.name}),a=t.create(o),l=a.injector.get(gl,null);if(!l)throw new J(402,!1);return i.runOutsideAngular(()=>{const c=i.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Bf(this._modules,a),c.unsubscribe()})}),function GN(n,e,t){try{const r=t();return Df(r)?r.catch(i=>{throw e.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}(l,i,()=>{const c=a.injector.get(Ff);return c.runInitializers(),c.donePromise.then(()=>(function p2(n){xr(n,"Expected localeId to be defined"),"string"==typeof n&&(f2=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(vs,Nl)||Nl),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,r=[]){const i=WN({},r);return function NK(n,e,t){const r=new Rb(t);return Promise.resolve(r)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(t){const r=t.injector.get(Nu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new J(403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new J(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(s0,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(ae(gr))},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function WN(n,e){return Array.isArray(e)?e.reduce(WN,n):pt(pt({},n),e)}let Nu=(()=>{class n{constructor(t,r,i){this._zone=t,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new et(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),o=new et(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{vt.assertNotInAngularZone(),Zb(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{vt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=fM(s,o.pipe(function Wz(){return n=>pM()(function zz(n,e){return function(r){let i;if(i="function"==typeof n?n:function(){return n},"function"==typeof e)return r.lift(new jz(i,e));const s=Object.create(r,$z);return s.source=r,s.subjectFactory=i,s}}(Gz)(n))}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof Vk;if(!this._injector.get(Ff).done)throw!i&&function qc(n){const e=rt(n)||Qn(n)||Xn(n);return null!==e&&e.standalone}(t),new J(405,false);let o;o=i?t:this._injector.get(hl).resolveComponentFactory(t),this.componentTypes.push(o.componentType);const a=function RK(n){return n.isBoundToModule}(o)?void 0:this._injector.get(Rl),c=o.create(gr.NULL,[],r||o.selector,a),u=c.location.nativeElement,d=c.injector.get(FN,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Bf(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new J(101,!1);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 r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Bf(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(wK,[]).concat(this._bootstrapListeners).forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Bf(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new J(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(t){return new(t||n)(ae(vt),ae(ul),ae(gl))},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Bf(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let YN=!0,$l=(()=>{class n{}return n.__NG_ELEMENT_ID__=UK,n})();function UK(n){return function HK(n,e,t){if($h(n)&&!t){const r=Ar(n.index,e);return new yu(r,r)}return 47&n.type?new yu(e[16],e):null}(an(),W(),16==(16&n))}class JN{constructor(){}supports(e){return vu(e)}create(e){return new YK(e)}}const qK=(n,e)=>e;class YK{constructor(e){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=e||qK}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,r=this._removalsHead,i=0,s=null;for(;t||r;){const o=!r||t&&t.currentIndex<tR(r,i,s)?t:r,a=tR(o,i,s),l=o.currentIndex;if(o===r)i--,r=r._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{s||(s=[]);const c=a-i,u=l-i;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!vu(e))throw new J(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i,s,o,t=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(r&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),r=!0),t=t._next}else i=0,function kW(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[Bo()]();let r;for(;!(r=t.next()).done;)e(r.value)}}(e,a=>{o=this._trackByFn(i,a),null!==t&&Object.is(t.trackById,o)?(r&&(t=this._verifyReinsertion(t,a,o,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,r,i){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,i)):e=this._addAfter(new KK(t,r),s,i),e}_verifyReinsertion(e,t,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?e=this._reinsertAfter(s,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,s=e._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(e,t,r),this._addToMoves(e,r),e}_moveAfter(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e}_addAfter(e,t,r){return this._insertAfter(e,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,r){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new eR),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new eR),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class KK{constructor(e,t){this.item=e,this.trackById=t,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 QK{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class eR{constructor(){this.map=new Map}put(e){const t=e.trackById;let r=this.map.get(t);r||(r=new QK,this.map.set(t,r)),r.add(e)}get(e,t){const i=this.map.get(e);return i?i.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function tR(n,e,t){const r=n.previousIndex;if(null===r)return r;let i=0;return t&&r<t.length&&(i=t[r]),r+e+i}class nR{constructor(){}supports(e){return e instanceof Map||Eb(e)}create(){return new XK}}class XK{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(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Eb(e)))throw new J(900,!1)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(r,i)=>{if(t&&t.key===i)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(i,r);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const r=e._prev;return t._next=e,t._prev=r,e._prev=t,r&&(r._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const i=this._records.get(e);this._maybeAddToChanges(i,t);const s=i._prev,o=i._next;return s&&(s._next=o),o&&(o._prev=s),i._next=null,i._prev=null,i}const r=new ZK(e);return this._records.set(e,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(r=>t(e[r],r))}}class ZK{constructor(e){this.key=e,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 rR(){return new Hf([new JN])}let Hf=(()=>{class n{constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||rR()),deps:[[n,new nf,new hr]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new J(901,!1)}}return n.\u0275prov=ve({token:n,providedIn:"root",factory:rR}),n})();function iR(){return new Ru([new nR])}let Ru=(()=>{class n{constructor(t){this.factories=t}static create(t,r){if(r){const i=r.factories.slice();t=t.concat(i)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||iR()),deps:[[n,new nf,new hr]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(r)return r;throw new J(901,!1)}}return n.\u0275prov=ve({token:n,providedIn:"root",factory:iR}),n})();const tQ=$N(null,"core",[]);let nQ=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(ae(Nu))},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({}),n})();function d0(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let zf=null;function Go(){return zf}const mr=new ye("DocumentToken"),oR={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var yr=(()=>((yr=yr||{})[yr.Decimal=0]="Decimal",yr[yr.Percent=1]="Percent",yr[yr.Currency=2]="Currency",yr[yr.Scientific=3]="Scientific",yr))(),we=(()=>((we=we||{})[we.Decimal=0]="Decimal",we[we.Group=1]="Group",we[we.List=2]="List",we[we.PercentSign=3]="PercentSign",we[we.PlusSign=4]="PlusSign",we[we.MinusSign=5]="MinusSign",we[we.Exponential=6]="Exponential",we[we.SuperscriptingExponent=7]="SuperscriptingExponent",we[we.PerMille=8]="PerMille",we[we.Infinity=9]="Infinity",we[we.NaN=10]="NaN",we[we.TimeSeparator=11]="TimeSeparator",we[we.CurrencyDecimal=12]="CurrencyDecimal",we[we.CurrencyGroup=13]="CurrencyGroup",we))();function ti(n,e){const t=tr(n),r=t[le.NumberSymbols][e];if(typeof r>"u"){if(e===we.CurrencyDecimal)return t[le.NumberSymbols][we.Decimal];if(e===we.CurrencyGroup)return t[le.NumberSymbols][we.Group]}return r}const OQ=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function FQ(n,e,t,r,i){const o=function _0(n,e="-"){const t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=n.split(";"),i=r[0],s=r[1],o=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";t.posPre=a.substring(0,a.indexOf("#"));for(let u=0;u<l.length;u++){const d=l.charAt(u);"0"===d?t.minFrac=t.maxFrac=u+1:"#"===d?t.maxFrac=u+1:t.posSuf+=d}const c=a.split(",");if(t.gSize=c[1]?c[1].length:0,t.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,s){const u=i.length-t.posPre.length-t.posSuf.length,d=s.indexOf("#");t.negPre=s.substring(0,d).replace(/'/g,""),t.negSuf=s.slice(d+u).replace(/'/g,"")}else t.negPre=e+t.posPre,t.negSuf=t.posSuf;return t}(function h0(n,e){return tr(n)[le.NumberFormats][e]}(e,yr.Currency),ti(e,we.MinusSign));return o.minFrac=function vQ(n){let e;const t=oR[n];return t&&(e=t[2]),"number"==typeof e?e:2}(r),o.maxFrac=o.minFrac,function y0(n,e,t,r,i,s,o=!1){let a="",l=!1;if(isFinite(n)){let c=function UQ(n){let r,i,s,o,a,e=Math.abs(n)+"",t=0;for((i=e.indexOf("."))>-1&&(e=e.replace(".","")),(s=e.search(/e/i))>0?(i<0&&(i=s),i+=+e.slice(s+1),e=e.substring(0,s)):i<0&&(i=e.length),s=0;"0"===e.charAt(s);s++);if(s===(a=e.length))r=[0],i=1;else{for(a--;"0"===e.charAt(a);)a--;for(i-=s,r=[],o=0;s<=a;s++,o++)r[o]=Number(e.charAt(s))}return i>22&&(r=r.splice(0,21),t=i-1,i=1),{digits:r,exponent:t,integerLen:i}}(n);o&&(c=function $Q(n){if(0===n.digits[0])return n;const e=n.digits.length-n.integerLen;return n.exponent?n.exponent+=2:(0===e?n.digits.push(0,0):1===e&&n.digits.push(0),n.integerLen+=2),n}(c));let u=e.minInt,d=e.minFrac,h=e.maxFrac;if(s){const b=s.match(OQ);if(null===b)throw new Error(`${s} is not a valid digit info`);const y=b[1],T=b[3],D=b[5];null!=y&&(u=v0(y)),null!=T&&(d=v0(T)),null!=D?h=v0(D):null!=T&&d>h&&(h=d)}!function HQ(n,e,t){if(e>t)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${t}).`);let r=n.digits,i=r.length-n.integerLen;const s=Math.min(Math.max(e,i),t);let o=s+n.integerLen,a=r[o];if(o>0){r.splice(Math.max(n.integerLen,o));for(let d=o;d<r.length;d++)r[d]=0}else{i=Math.max(0,i),n.integerLen=1,r.length=Math.max(1,o=s+1),r[0]=0;for(let d=1;d<o;d++)r[d]=0}if(a>=5)if(o-1<0){for(let d=0;d>o;d--)r.unshift(0),n.integerLen++;r.unshift(1),n.integerLen++}else r[o-1]++;for(;i<Math.max(0,s);i++)r.push(0);let l=0!==s;const c=e+n.integerLen,u=r.reduceRight(function(d,h,f,p){return p[f]=(h+=d)<10?h:h-10,l&&(0===p[f]&&f>=c?p.pop():l=!1),h>=10?1:0},0);u&&(r.unshift(u),n.integerLen++)}(c,d,h);let f=c.digits,p=c.integerLen;const g=c.exponent;let m=[];for(l=f.every(b=>!b);p<u;p++)f.unshift(0);for(;p<0;p++)f.unshift(0);p>0?m=f.splice(p,f.length):(m=f,f=[0]);const _=[];for(f.length>=e.lgSize&&_.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)_.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&_.unshift(f.join("")),a=_.join(ti(t,r)),m.length&&(a+=ti(t,i)+m.join("")),g&&(a+=ti(t,we.Exponential)+"+"+g)}else a=ti(t,we.Infinity);return a=n<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(n,o,e,we.CurrencyGroup,we.CurrencyDecimal,i).replace("\xa4",t).replace("\xa4","").trim()}function v0(n){const e=parseInt(n);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+n);return e}function pR(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const r=t.indexOf("="),[i,s]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let ri=(()=>{class n{constructor(t,r,i,s){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=i,this._renderer=s,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&&(vu(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(r=>this._toggleClass(r.key,r.currentValue)),t.forEachChangedItem(r=>this._toggleClass(r.key,r.currentValue)),t.forEachRemovedItem(r=>{r.previousValue&&this._toggleClass(r.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(r=>{if("string"!=typeof r.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ut(r.item)}`);this._toggleClass(r.item,!0)}),t.forEachRemovedItem(r=>this._toggleClass(r.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(r=>this._toggleClass(r,!0)):Object.keys(t).forEach(r=>this._toggleClass(r,!!t[r])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(r=>this._toggleClass(r,!1)):Object.keys(t).forEach(r=>this._toggleClass(r,!1)))}_toggleClass(t,r){(t=t.trim())&&t.split(/\s+/g).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}}return n.\u0275fac=function(t){return new(t||n)(R(Hf),R(Ru),R(Fn),R(Gs))},n.\u0275dir=Ce({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class GQ{constructor(e,t,r,i){this.$implicit=e,this.ngForOf=t,this.index=r,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 ii=(()=>{class n{constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,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 t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,s,o)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new GQ(i.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)r.remove(null===s?void 0:s);else if(null!==s){const a=r.get(s);r.move(a,o),yR(a,i)}});for(let i=0,s=r.length;i<s;i++){const a=r.get(i).context;a.index=i,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(i=>{yR(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}}return n.\u0275fac=function(t){return new(t||n)(R(zi),R(xi),R(Hf))},n.\u0275dir=Ce({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function yR(n,e){n.context.$implicit=e.item}let xn=(()=>{class n{constructor(t,r){this._viewContainer=t,this._context=new qQ,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){_R("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){_R("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,r){return!0}}return n.\u0275fac=function(t){return new(t||n)(R(zi),R(xi))},n.\u0275dir=Ce({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class qQ{constructor(){this.$implicit=null,this.ngIf=null}}function _R(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ut(e)}'.`)}class w0{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Wo=(()=>{class n{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 r=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let r=0;r<this._defaultViews.length;r++)this._defaultViews[r].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Ce({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),Vu=(()=>{class n{constructor(t,r,i){this.ngSwitch=i,i._addCase(),this._view=new w0(t,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(R(zi),R(xi),R(Wo,9))},n.\u0275dir=Ce({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),C0=(()=>{class n{constructor(t,r,i){i._addDefault(new w0(t,r))}}return n.\u0275fac=function(t){return new(t||n)(R(zi),R(xi),R(Wo,9))},n.\u0275dir=Ce({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),rr=(()=>{class n{constructor(t,r,i){this._ngEl=t,this._differs=r,this._renderer=i,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,r){const[i,s]=t.split("."),o=-1===i.indexOf("-")?void 0:pr.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,i,s?`${r}${s}`:r,o):this._renderer.removeStyle(this._ngEl.nativeElement,i,o)}_applyChanges(t){t.forEachRemovedItem(r=>this._setStyle(r.key,null)),t.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),t.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(R(Fn),R(Ru),R(Gs))},n.\u0275dir=Ce({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),S0=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(t.ngTemplateOutlet||t.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:i,ngTemplateOutletContext:s,ngTemplateOutletInjector:o}=this;this._viewRef=r.createEmbeddedView(i,s,o?{injector:o}:void 0)}else this._viewRef=null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(R(zi))},n.\u0275dir=Ce({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Li]}),n})();function Ai(n,e){return new J(2100,!1)}class KQ{createSubscription(e,t){return e.subscribe({next:t,error:r=>{throw r}})}dispose(e){e.unsubscribe()}}class QQ{createSubscription(e,t){return e.then(t,r=>{throw r})}dispose(e){}}const XQ=new QQ,ZQ=new KQ;let qo=(()=>{class n{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}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,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(Df(t))return XQ;if(_O(t))return ZQ;throw Ai()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(R($l,16))},n.\u0275pipe=Tn({name:"async",type:n,pure:!1,standalone:!0}),n})(),bR=(()=>{class n{transform(t){if(null==t)return null;if("string"!=typeof t)throw Ai();return t.toUpperCase()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=Tn({name:"uppercase",type:n,pure:!0,standalone:!0}),n})(),CR=(()=>{class n{constructor(t,r="USD"){this._locale=t,this._defaultCurrencyCode=r}transform(t,r=this._defaultCurrencyCode,i="symbol",s,o){if(!function E0(n){return!(null==n||""===n||n!=n)}(t))return null;o=o||this._locale,"boolean"==typeof i&&(i=i?"symbol":"code");let a=r||this._defaultCurrencyCode;"code"!==i&&(a="symbol"===i||"symbol-narrow"===i?function yQ(n,e,t="en"){const r=function fQ(n){return tr(n)[le.Currencies]}(t)[n]||oR[n]||[],i=r[1];return"narrow"===e&&"string"==typeof i?i:r[0]||n}(a,"symbol"===i?"wide":"narrow",o):i);try{return FQ(function T0(n){if("string"==typeof n&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if("number"!=typeof n)throw new Error(`${n} is not a number`);return n}(t),o,a,r,s)}catch(l){throw Ai()}}}return n.\u0275fac=function(t){return new(t||n)(R(vs,16),R(SK,16))},n.\u0275pipe=Tn({name:"currency",type:n,pure:!0,standalone:!0}),n})();let SR=(()=>{class n{transform(t,r,i){if(null==t)return null;if(!this.supports(t))throw Ai();return t.slice(r,i)}supports(t){return"string"==typeof t||Array.isArray(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=Tn({name:"slice",type:n,pure:!1,standalone:!0}),n})(),Ul=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({}),n})();const ER="browser";class xR{}class D0 extends class NX extends class sQ{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function iQ(n){zf||(zf=n)}(new D0)}onAndCancel(e,t,r){return e.addEventListener(t,r,!1),()=>{e.removeEventListener(t,r,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function RX(){return $u=$u||document.querySelector("base"),$u?$u.getAttribute("href"):null}();return null==t?null:function LX(n){ep=ep||document.createElement("a"),ep.setAttribute("href",n);const e=ep.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){$u=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return pR(document.cookie,e)}}let ep,$u=null;const MR=new ye("TRANSITION_ID"),VX=[{provide:AN,useFactory:function FX(n,e,t){return()=>{t.get(Ff).donePromise.then(()=>{const r=Go(),i=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<i.length;s++)r.remove(i[s])})}},deps:[MR,mr,gr],multi:!0}];let $X=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();const tp=new ye("EventManagerPlugins");let np=(()=>{class n{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>i.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}addGlobalEventListener(t,r,i){return this._findPluginFor(r).addGlobalEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const i=this._plugins;for(let s=0;s<i.length;s++){const o=i[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(ae(tp),ae(vt))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();class kR{constructor(e){this._doc=e}addGlobalEventListener(e,t,r){const i=Go().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,r)}}let PR=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const r=new Set;t.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})(),Uu=(()=>{class n extends PR{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,r,i){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,i.push(r.appendChild(o))})}addHost(t){const r=[];this._addStylesToHost(this._stylesSet,t,r),this._hostNodes.set(t,r)}removeHost(t){const r=this._hostNodes.get(t);r&&r.forEach(OR),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(t,i,r)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(OR))}}return n.\u0275fac=function(t){return new(t||n)(ae(mr))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();function OR(n){Go().remove(n)}const A0={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/",math:"http://www.w3.org/1998/MathML/"},M0=/%COMP%/g;function rp(n,e,t){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?rp(n,i,t):(i=i.replace(M0,n),t.push(i))}return t}function LR(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let ip=(()=>{class n{constructor(t,r,i){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new k0(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;switch(r.encapsulation){case yi.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new WX(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(t),i}case 1:case yi.ShadowDom:return new qX(this.eventManager,this.sharedStylesHost,t,r);default:if(!this.rendererByCompId.has(r.id)){const i=rp(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(ae(np),ae(Uu),ae(Ou))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();class k0{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(A0[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){(VR(e)?e.content:e).appendChild(t)}insertBefore(e,t,r){e&&(VR(e)?e.content:e).insertBefore(t,r)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,i){if(i){t=i+":"+t;const s=A0[i];s?e.setAttributeNS(s,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const i=A0[r];i?e.removeAttributeNS(i,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,i){i&(pr.DashCase|pr.Important)?e.style.setProperty(t,r,i&pr.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&pr.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){e[t]=r}setValue(e,t){e.nodeValue=t}listen(e,t,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,LR(r)):this.eventManager.addEventListener(e,t,LR(r))}}function VR(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class WX extends k0{constructor(e,t,r,i){super(e),this.component=r;const s=rp(i+"-"+r.id,r.styles,[]);t.addStyles(s),this.contentAttr=function zX(n){return"_ngcontent-%COMP%".replace(M0,n)}(i+"-"+r.id),this.hostAttr=function jX(n){return"_nghost-%COMP%".replace(M0,n)}(i+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}class qX extends k0{constructor(e,t,r,i){super(e),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=rp(i.id,i.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,r){return super.insertBefore(this.nodeOrShadowRoot(e),t,r)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let YX=(()=>{class n extends kR{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}}return n.\u0275fac=function(t){return new(t||n)(ae(mr))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();const BR=["alt","control","meta","shift"],KX={"\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"},QX={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let XX=(()=>{class n extends kR{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,r,i){const s=n.parseEventName(r),o=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Go().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const s=n._normalizeKey(r.pop());let o="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),o="code."),BR.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),o+=c+".")}),o+=s,0!=r.length||0===s.length)return null;const l={};return l.domEventName=i,l.fullKey=o,l}static matchEventFullKeyCode(t,r){let i=KX[t.key]||t.key,s="";return r.indexOf("code.")>-1&&(i=t.code,s="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),BR.forEach(o=>{o!==i&&(0,QX[o])(t)&&(s+=o+".")}),s+=i,s===r)}static eventCallback(t,r,i){return s=>{n.matchEventFullKeyCode(s,t)&&i.runGuarded(()=>r(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(ae(mr))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();const UR=[{provide:Bl,useValue:ER},{provide:kN,useValue:function ZX(){D0.makeCurrent()},multi:!0},{provide:mr,useFactory:function eZ(){return function E7(n){_v=n}(document),document},deps:[]}],tZ=$N(tQ,"browser",UR),HR=new ye(""),zR=[{provide:Vf,useClass:class BX{addToWindow(e){gt.getAngularTestability=(r,i=!0)=>{const s=e.findTestabilityInTree(r,i);if(null==s)throw new Error("Could not find testability for element.");return s},gt.getAllAngularTestabilities=()=>e.getAllTestabilities(),gt.getAllAngularRootElements=()=>e.getAllRootElements(),gt.frameworkStabilizers||(gt.frameworkStabilizers=[]),gt.frameworkStabilizers.push(r=>{const i=gt.getAllAngularTestabilities();let s=i.length,o=!1;const a=function(l){o=o||l,s--,0==s&&r(o)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,r){return null==t?null:e.getTestability(t)??(r?Go().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:FN,useClass:t0,deps:[vt,n0,Vf]},{provide:t0,useClass:t0,deps:[vt,n0,Vf]}],jR=[{provide:xv,useValue:"root"},{provide:gl,useFactory:function JX(){return new gl},deps:[]},{provide:tp,useClass:YX,multi:!0,deps:[mr,vt,Bl]},{provide:tp,useClass:XX,multi:!0,deps:[mr]},{provide:ip,useClass:ip,deps:[np,Uu,Ou]},{provide:fu,useExisting:ip},{provide:PR,useExisting:Uu},{provide:Uu,useClass:Uu,deps:[mr]},{provide:np,useClass:np,deps:[tp,vt]},{provide:xR,useClass:$X,deps:[]},[]];let GR=(()=>{class n{constructor(t){}static withServerTransition(t){return{ngModule:n,providers:[{provide:Ou,useValue:t.appId},{provide:MR,useExisting:Ou},VX]}}}return n.\u0275fac=function(t){return new(t||n)(ae(HR,12))},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({providers:[...jR,...zR],imports:[Ul,nQ]}),n})();typeof window<"u"&&window;let YR=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=ve({token:n,factory:function(t){let r=null;return r=t?new(t||n):ae(KR),r},providedIn:"root"}),n})(),KR=(()=>{class n extends YR{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case _t.NONE:return r;case _t.HTML:return Bi(r,"HTML")?Pr(r):xk(this._doc,String(r)).toString();case _t.STYLE:return Bi(r,"Style")?Pr(r):r;case _t.SCRIPT:if(Bi(r,"Script"))return Pr(r);throw new Error("unsafe value used in a script context");case _t.URL:return Bi(r,"URL")?Pr(r):lf(String(r));case _t.RESOURCE_URL:if(Bi(r,"ResourceURL"))return Pr(r);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 function O7(n){return new I7(n)}(t)}bypassSecurityTrustStyle(t){return function N7(n){return new D7(n)}(t)}bypassSecurityTrustScript(t){return function R7(n){return new A7(n)}(t)}bypassSecurityTrustUrl(t){return function L7(n){return new M7(n)}(t)}bypassSecurityTrustResourceUrl(t){return function F7(n){return new k7(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(ae(mr))},n.\u0275prov=ve({token:n,factory:function(t){let r=null;return r=t?new t:function uZ(n){return new KR(n.get(mr))}(ae(gr)),r},providedIn:"root"}),n})();const QR_firebase={apiKey:"AIzaSyBH_otRfIHrLr_aNFnHMG_zliroswKgxI4",authDomain:"guestchat-live.firebaseapp.com",databaseURL:"https://guestchat-live.firebaseio.com",projectId:"guestchat-live",storageBucket:'"https://guestchat-live.firebaseio.com"'};function Hn(...n){let e=n[n.length-1];return Wa(e)?(n.pop(),P_(n,e)):N_(n)}function XR(n,e){return O_(n,e,1)}class hZ{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new fZ(e,this.predicate,this.thisArg))}}class fZ extends sn{constructor(e,t,r){super(e),this.predicate=t,this.thisArg=r,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}t&&this.destination.next(e)}}class ZR{}class JR{}class Mi{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),s=i.toLowerCase(),o=t.slice(r+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let r=e[t];const i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Mi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Mi;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Mi?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const s=e.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class pZ{encodeKey(e){return eL(e)}encodeValue(e){return eL(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const mZ=/%(\d[a-f0-9])/gi,yZ={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function eL(n){return encodeURIComponent(n).replace(mZ,(e,t)=>{var r;return null!==(r=yZ[t])&&void 0!==r?r:e})}function sp(n){return`${n}`}class Xs{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new pZ,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function gZ(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const s=i.indexOf("="),[o,a]=-1==s?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,s)),e.decodeValue(i.slice(s+1))],l=t.get(o)||[];l.push(a),t.set(o,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const r=e.fromObject[t],i=Array.isArray(r)?r.map(sp):[sp(r)];this.map.set(t,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)?i.forEach(s=>{t.push({param:r,value:s,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Xs({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(sp(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const i=r.indexOf(sp(e.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class _Z{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function tL(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function nL(n){return typeof Blob<"u"&&n instanceof Blob}function rL(n){return typeof FormData<"u"&&n instanceof FormData}class Hu{constructor(e,t,r,i){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function vZ(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,s=i):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Mi),this.context||(this.context=new _Z),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new Xs,this.urlWithParams=t}serializeBody(){return null===this.body?null:tL(this.body)||nL(this.body)||rL(this.body)||function bZ(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Xs?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||rL(this.body)?null:nL(this.body)?this.body.type||null:tL(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Xs?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const r=e.method||this.method,i=e.url||this.url,s=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new Hu(r,i,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var Jt=(()=>((Jt=Jt||{})[Jt.Sent=0]="Sent",Jt[Jt.UploadProgress=1]="UploadProgress",Jt[Jt.ResponseHeader=2]="ResponseHeader",Jt[Jt.DownloadProgress=3]="DownloadProgress",Jt[Jt.Response=4]="Response",Jt[Jt.User=5]="User",Jt))();class N0{constructor(e,t=200,r="OK"){this.headers=e.headers||new Mi,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class R0 extends N0{constructor(e={}){super(e),this.type=Jt.ResponseHeader}clone(e={}){return new R0({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class op extends N0{constructor(e={}){super(e),this.type=Jt.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new op({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class iL extends N0{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function L0(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let F0=(()=>{class n{constructor(t){this.handler=t}request(t,r,i={}){let s;if(t instanceof Hu)s=t;else{let l,c;l=i.headers instanceof Mi?i.headers:new Mi(i.headers),i.params&&(c=i.params instanceof Xs?i.params:new Xs({fromObject:i.params})),s=new Hu(t,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const o=Hn(s).pipe(XR(l=>this.handler.handle(l)));if(t instanceof Hu||"events"===i.observe)return o;const a=o.pipe(function dZ(n,e){return function(r){return r.lift(new hZ(n,e))}}(l=>l instanceof op));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(on(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(on(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(on(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(on(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Xs).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,L0(i,r))}post(t,r,i={}){return this.request("POST",t,L0(i,r))}put(t,r,i={}){return this.request("PUT",t,L0(i,r))}}return n.\u0275fac=function(t){return new(t||n)(ae(ZR))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();class sL{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const oL=new ye("HTTP_INTERCEPTORS");let wZ=(()=>{class n{intercept(t,r){return r.handle(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();const CZ=/^\)\]\}',?\n/;let aL=(()=>{class n{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new et(r=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((f,p)=>i.setRequestHeader(f,p.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const f=t.detectContentTypeHeader();null!==f&&i.setRequestHeader("Content-Type",f)}if(t.responseType){const f=t.responseType.toLowerCase();i.responseType="json"!==f?f:"text"}const s=t.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const f=i.statusText||"OK",p=new Mi(i.getAllResponseHeaders()),g=function SZ(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(i)||t.url;return o=new R0({headers:p,status:i.status,statusText:f,url:g}),o},l=()=>{let{headers:f,status:p,statusText:g,url:m}=a(),_=null;204!==p&&(_=typeof i.response>"u"?i.responseText:i.response),0===p&&(p=_?200:0);let b=p>=200&&p<300;if("json"===t.responseType&&"string"==typeof _){const y=_;_=_.replace(CZ,"");try{_=""!==_?JSON.parse(_):null}catch(T){_=y,b&&(b=!1,_={error:T,text:_})}}b?(r.next(new op({body:_,headers:f,status:p,statusText:g,url:m||void 0})),r.complete()):r.error(new iL({error:_,headers:f,status:p,statusText:g,url:m||void 0}))},c=f=>{const{url:p}=a(),g=new iL({error:f,status:i.status||0,statusText:i.statusText||"Unknown Error",url:p||void 0});r.error(g)};let u=!1;const d=f=>{u||(r.next(a()),u=!0);let p={type:Jt.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===t.responseType&&!!i.responseText&&(p.partialText=i.responseText),r.next(p)},h=f=>{let p={type:Jt.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),r.next(p)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),t.reportProgress&&(i.addEventListener("progress",d),null!==s&&i.upload&&i.upload.addEventListener("progress",h)),i.send(s),r.next({type:Jt.Sent}),()=>{i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),t.reportProgress&&(i.removeEventListener("progress",d),null!==s&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})}}return n.\u0275fac=function(t){return new(t||n)(ae(xR))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();const V0=new ye("XSRF_COOKIE_NAME"),B0=new ye("XSRF_HEADER_NAME");class lL{}let EZ=(()=>{class n{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,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=pR(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return n.\u0275fac=function(t){return new(t||n)(ae(mr),ae(Bl),ae(V0))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})(),$0=(()=>{class n{constructor(t,r){this.tokenService=t,this.headerName=r}intercept(t,r){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return r.handle(t);const s=this.tokenService.getToken();return null!==s&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,s)})),r.handle(t)}}return n.\u0275fac=function(t){return new(t||n)(ae(lL),ae(B0))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})(),TZ=(()=>{class n{constructor(t,r){this.backend=t,this.injector=r,this.chain=null}handle(t){if(null===this.chain){const r=this.injector.get(oL,[]);this.chain=r.reduceRight((i,s)=>new sL(i,s),this.backend)}return this.chain.handle(t)}}return n.\u0275fac=function(t){return new(t||n)(ae(JR),ae(gr))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})(),xZ=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:$0,useClass:wZ}]}}static withOptions(t={}){return{ngModule:n,providers:[t.cookieName?{provide:V0,useValue:t.cookieName}:[],t.headerName?{provide:B0,useValue:t.headerName}:[]]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({providers:[$0,{provide:oL,useExisting:$0,multi:!0},{provide:lL,useClass:EZ},{provide:V0,useValue:"XSRF-TOKEN"},{provide:B0,useValue:"X-XSRF-TOKEN"}]}),n})(),IZ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({providers:[F0,{provide:ZR,useClass:TZ},aL,{provide:JR,useExisting:aL}],imports:[xZ.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();class cL{}const Cs="*";function uL(n,e){return{type:7,name:n,definitions:e,options:{}}}function zu(n,e=null){return{type:4,styles:e,timings:n}}function dL(n,e=null){return{type:2,steps:n,options:e}}function Gi(n){return{type:6,styles:n,offset:null}}function U0(n,e,t){return{type:0,name:n,styles:e,options:t}}function ju(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function hL(n){Promise.resolve().then(n)}class Gu{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){hL(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class fL{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,r=0,i=0;const s=this.players.length;0==s?hL(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++r==s&&this._onDestroy()}),o.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const e=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}function pL(n){return new J(3e3,!1)}function cJ(){return typeof window<"u"&&typeof window.document<"u"}function z0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Zs(n){switch(n.length){case 0:return new Gu;case 1:return n[0];default:return new fL(n)}}function gL(n,e,t,r,i=new Map,s=new Map){const o=[],a=[];let l=-1,c=null;if(r.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,g)=>{let m=g,_=p;if("offset"!==g)switch(m=e.normalizePropertyName(m,o),_){case"!":_=i.get(g);break;case Cs:_=s.get(g);break;default:_=e.normalizeStyleValue(g,m,_,o)}f.set(m,_)}),h||a.push(f),c=f,l=d}),o.length)throw function XZ(n){return new J(3502,!1)}();return a}function j0(n,e,t,r){switch(e){case"start":n.onStart(()=>r(t&&G0(t,"start",n)));break;case"done":n.onDone(()=>r(t&&G0(t,"done",n)));break;case"destroy":n.onDestroy(()=>r(t&&G0(t,"destroy",n)))}}function G0(n,e,t){const s=W0(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t.totalTime??n.totalTime,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function W0(n,e,t,r,i="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function Rr(n,e,t){let r=n.get(e);return r||n.set(e,r=t),r}function mL(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}let q0=(n,e)=>!1,yL=(n,e,t)=>[],_L=null;function Y0(n){const e=n.parentNode||n.host;return e===_L?null:e}(z0()||typeof Element<"u")&&(cJ()?(_L=(()=>document.documentElement)(),q0=(n,e)=>{for(;e;){if(e===n)return!0;e=Y0(e)}return!1}):q0=(n,e)=>n.contains(e),yL=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const r=n.querySelector(e);return r?[r]:[]});let Yo=null,vL=!1;const bL=q0,wL=yL;let CL=(()=>{class n{validateStyleProperty(t){return function dJ(n){Yo||(Yo=function hJ(){return typeof document<"u"?document.body:null}()||{},vL=!!Yo.style&&"WebkitAppearance"in Yo.style);let e=!0;return Yo.style&&!function uJ(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Yo.style,!e&&vL&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Yo.style)),e}(t)}matchesElement(t,r){return!1}containsElement(t,r){return bL(t,r)}getParentElement(t){return Y0(t)}query(t,r,i){return wL(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,s,o,a=[],l){return new Gu(i,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})(),K0=(()=>{class n{}return n.NOOP=new CL,n})();const Q0="ng-enter",ap="ng-leave",lp="ng-trigger",cp=".ng-trigger",EL="ng-animating",X0=".ng-animating";function Ss(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Z0(parseFloat(e[1]),e[2])}function Z0(n,e){return"s"===e?1e3*n:n}function up(n,e,t){return n.hasOwnProperty("duration")?n:function gJ(n,e,t){let i,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(pL()),{duration:0,delay:0,easing:""};i=Z0(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Z0(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else i=n;if(!t){let a=!1,l=e.length;i<0&&(e.push(function AZ(){return new J(3100,!1)}()),a=!0),s<0&&(e.push(function MZ(){return new J(3101,!1)}()),a=!0),a&&e.splice(l,0,pL())}return{duration:i,delay:s,easing:o}}(n,e,t)}function Wu(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function TL(n){const e=new Map;return Object.keys(n).forEach(t=>{e.set(t,n[t])}),e}function Js(n,e=new Map,t){if(t)for(let[r,i]of t)e.set(r,i);for(let[r,i]of n)e.set(r,i);return e}function IL(n,e,t){return t?e+":"+t+";":""}function DL(n){let e="";for(let t=0;t<n.style.length;t++){const r=n.style.item(t);e+=IL(0,r,n.style.getPropertyValue(r))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=IL(0,vJ(t),n.style[t]));n.setAttribute("style",e)}function Wi(n,e,t){n.style&&(e.forEach((r,i)=>{const s=ew(i);t&&!t.has(i)&&t.set(i,n.style[s]),n.style[s]=r}),z0()&&DL(n))}function Ko(n,e){n.style&&(e.forEach((t,r)=>{const i=ew(r);n.style[i]=""}),z0()&&DL(n))}function qu(n){return Array.isArray(n)?1==n.length?n[0]:dL(n):n}const J0=new RegExp("{{\\s*(.+?)\\s*}}","g");function AL(n){let e=[];if("string"==typeof n){let t;for(;t=J0.exec(n);)e.push(t[1]);J0.lastIndex=0}return e}function Yu(n,e,t){const r=n.toString(),i=r.replace(J0,(s,o)=>{let a=e[o];return null==a&&(t.push(function PZ(n){return new J(3003,!1)}()),a=""),a.toString()});return i==r?n:i}function dp(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const _J=/-+([a-z0-9])/g;function ew(n){return n.replace(_J,(...e)=>e[1].toUpperCase())}function vJ(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Lr(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function OZ(n){return new J(3004,!1)}()}}function ML(n,e){return window.getComputedStyle(n)[e]}function TJ(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function xJ(n,e,t){if(":"==n[0]){const l=function IJ(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r)<parseFloat(t);default:return e.push(function qZ(n){return new J(3016,!1)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const r=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function WZ(n){return new J(3015,!1)}()),e;const i=r[1],s=r[2],o=r[3];e.push(kL(i,o));"<"==s[0]&&!("*"==i&&"*"==o)&&e.push(kL(o,i))}(r,t,e)):t.push(n),t}const gp=new Set(["true","1"]),mp=new Set(["false","0"]);function kL(n,e){const t=gp.has(n)||mp.has(n),r=gp.has(e)||mp.has(e);return(i,s)=>{let o="*"==n||n==i,a="*"==e||e==s;return!o&&t&&"boolean"==typeof i&&(o=i?gp.has(n):mp.has(n)),!a&&r&&"boolean"==typeof s&&(a=s?gp.has(e):mp.has(e)),o&&a}}const DJ=new RegExp("s*:selfs*,?","g");function tw(n,e,t,r){return new AJ(n).build(e,t,r)}class AJ{constructor(e){this._driver=e}build(e,t,r){const i=new PJ(t);return this._resetContextStyleTimingState(i),Lr(this,qu(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,i=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function RZ(){return new J(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);r+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(function LZ(){return new J(3007,!1)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:r,depCount:i,options:null}}visitState(e,t){const r=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){const s=new Set,o=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{AL(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&(dp(s.values()),t.errors.push(function FZ(n,e){return new J(3008,!1)}()))}return{type:0,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const r=Lr(this,qu(e.animation),t);return{type:1,matchers:TJ(e.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:Qo(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(r=>Lr(this,r,t)),options:Qo(e.options)}}visitGroup(e,t){const r=t.currentTime;let i=0;const s=e.steps.map(o=>{t.currentTime=r;const a=Lr(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:3,steps:s,options:Qo(e.options)}}visitAnimate(e,t){const r=function NJ(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return nw(up(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=nw(0,0,"");return s.dynamic=!0,s.strValue=t,s}const i=up(t,e);return nw(i.duration,i.delay,i.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;let i,s=e.styles?e.styles:Gi({});if(5==s.type)i=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};r.easing&&(c.easing=r.easing),o=Gi(c)}t.currentTime+=r.duration+r.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(e,t){const r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){const r=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)"string"==typeof a?a===Cs?r.push(a):t.errors.push(new J(3002,!1)):r.push(TL(a));let s=!1,o=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:r,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const r=t.currentAnimateTimings;let i=t.currentTime,s=t.currentTime;r&&s>0&&(s-=r.duration+r.delay),e.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let d=!0;u&&(s!=i&&s>=u.startTime&&i<=u.endTime&&(t.errors.push(function BZ(n,e,t,r,i){return new J(3010,!1)}()),d=!1),s=u.startTime),d&&c.set(l,{startTime:s,endTime:i}),t.options&&function yJ(n,e,t){const r=e.params||{},i=AL(n);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||t.push(function kZ(n){return new J(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(e,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function $Z(){return new J(3011,!1)}()),r;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(_=>{const b=this._makeStyleAst(_,t);let y=null!=b.offset?b.offset:function OJ(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const r=t;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(b.styles),T=0;return null!=y&&(s++,T=b.offset=y),l=l||T<0||T>1,a=a||T<c,c=T,o.push(T),b});l&&t.errors.push(function UZ(){return new J(3012,!1)}()),a&&t.errors.push(function HZ(){return new J(3200,!1)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function zZ(){return new J(3202,!1)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,g=t.currentAnimateTimings,m=g.duration;return u.forEach((_,b)=>{const y=h>0?b==f?1:h*b:o[b],T=y*m;t.currentTime=p+g.delay+T,g.duration=T,this._validateStyleAst(_,t),_.offset=y,r.styles.push(_)}),r}visitReference(e,t){return{type:8,animation:Lr(this,qu(e.animation),t),options:Qo(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Qo(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Qo(e.options)}}visitQuery(e,t){const r=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function MJ(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(DJ,"")),n=n.replace(/@\*/g,cp).replace(/@\w+/g,t=>cp+"-"+t.slice(1)).replace(/:animating/g,X0),[n,e]}(e.selector);t.currentQuerySelector=r.length?r+" "+s:s,Rr(t.collectedStyles,t.currentQuerySelector,new Map);const a=Lr(this,qu(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Qo(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function jZ(){return new J(3013,!1)}());const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:up(e.timings,t.errors,!0);return{type:12,animation:Lr(this,qu(e.animation),t),timings:r,options:null}}}class PJ{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Qo(n){return n?(n=Wu(n)).params&&(n.params=function kJ(n){return n?Wu(n):null}(n.params)):n={},n}function nw(n,e,t){return{duration:n,delay:e,easing:t}}function rw(n,e,t,r,i,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class yp{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const FJ=new RegExp(":enter","g"),BJ=new RegExp(":leave","g");function iw(n,e,t,r,i,s=new Map,o=new Map,a,l,c=[]){return(new $J).buildKeyframes(n,e,t,r,i,s,o,a,l,c)}class $J{buildKeyframes(e,t,r,i,s,o,a,l,c,u=[]){c=c||new yp;const d=new sw(e,t,c,i,s,u,[]);d.options=l;const h=l.delay?Ss(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([o],null,d.errors,l),Lr(this,r,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let g=f.length-1;g>=0;g--){const m=f[g];if(m.element===t){p=m;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[rw(t,[],[],[],0,h,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(r,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,r),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,r){for(const s of e){const o=s?.delay;if(o){var i;const a="number"==typeof o?o:Ss(Yu(o,null!==(i=s?.params)&&void 0!==i?i:{},t.errors));r.delayNextStep(a)}}}_visitSubInstructions(e,t,r){let s=t.currentTimeline.currentTime;const o=null!=r.duration?Ss(r.duration):null,a=null!=r.delay?Ss(r.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Lr(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const r=t.subContextCount;let i=t;const s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=_p);const o=Ss(s.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Lr(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const r=[];let i=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Ss(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Lr(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const r=e.strValue;return up(t.params?Yu(r,t.params,t.errors):r,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const r=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(r.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const s=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(s):r.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,s=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){const r=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?Ss(i.delay):0;s&&(6===t.previousNode.type||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=_p);let o=r;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Lr(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const r=t.parentContext,i=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Lr(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const _p={};class sw{constructor(e,t,r,i,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=_p,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new vp(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const r=e;let i=this.options;null!=r.duration&&(i.duration=Ss(r.duration)),null!=r.delay&&(i.delay=Ss(r.delay));const s=r.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Yu(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const r=e.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return e}createSubContext(e=null,t,r){const i=t||this.element,s=new sw(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=_p,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){const i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},s=new UJ(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,i,s,o){let a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(FJ,"."+this._enterClassName)).replace(BJ,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=r);0!==r&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!s&&0==a.length&&o.push(function GZ(n){return new J(3014,!1)}()),a}}class vp{constructor(e,t,r,i){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new vp(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||Cs),this._currentKeyframe.set(t,Cs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,i){t&&this._previousKeyframe.set("easing",t);const s=i&&i.params||{},o=function HJ(n,e){const t=new Map;let r;return n.forEach(i=>{if("*"===i){r=r||e.keys();for(let s of r)t.set(s,Cs)}else Js(i,t)}),t}(e,this._globalTimelineStyles);for(let[l,c]of o){const u=Yu(c,s,r);var a;this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,null!==(a=this._globalTimelineStyles.get(l))&&void 0!==a?a:Cs),this._updateStyle(l,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,r)=>{const i=this._styleSummary.get(r);(!i||t.time>i.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const c=Js(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?e.add(d):u===Cs&&t.add(d)}),r||c.set("offset",l/this.duration),i.push(c)});const s=e.size?dp(e.values()):[],o=t.size?dp(t.values()):[];if(r){const a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return rw(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class UJ extends vp{constructor(e,t,r,i,s,o,a=!1){super(e,t,o.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=r+t,a=t/o,l=Js(e[0]);l.set("offset",0),s.push(l);const c=Js(e[0]);c.set("offset",NL(a)),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Js(e[d]);const f=h.get("offset");h.set("offset",NL((t+f*r)/o)),s.push(h)}r=o,t=0,i="",e=s}return rw(this.element,e,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function NL(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class ow{}const zJ=new Set(["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"]);class jJ extends ow{normalizePropertyName(e,t){return ew(e)}normalizeStyleValue(e,t,r,i){let s="";const o=r.toString().trim();if(zJ.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)s="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function NZ(n,e){return new J(3005,!1)}())}return o+s}}function RL(n,e,t,r,i,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const aw={};class LL{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,i){return function GJ(n,e,t,r,i){return n.some(s=>s(e,t,r,i))}(this.ast.matchers,e,t,r,i)}buildStyles(e,t,r){let i=this._stateStyles.get("*");return void 0!==e&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,r):new Map}build(e,t,r,i,s,o,a,l,c,u){var d;const h=[],f=this.ast.options&&this.ast.options.params||aw,g=this.buildStyles(r,a&&a.params||aw,h),m=l&&l.params||aw,_=this.buildStyles(i,m,h),b=new Set,y=new Map,T=new Map,D="void"===i,A={params:WJ(m,f),delay:null===(d=this.ast.options)||void 0===d?void 0:d.delay},P=u?[]:iw(e,t,this.ast.animation,s,o,g,_,A,c,h);let j=0;if(P.forEach(z=>{j=Math.max(z.duration+z.delay,j)}),h.length)return RL(t,this._triggerName,r,i,D,g,_,[],[],y,T,j,h);P.forEach(z=>{const O=z.element,k=Rr(y,O,new Set);z.preStyleProps.forEach(ee=>k.add(ee));const L=Rr(T,O,new Set);z.postStyleProps.forEach(ee=>L.add(ee)),O!==t&&b.add(O)});const Y=dp(b.values());return RL(t,this._triggerName,r,i,D,g,_,P,Y,y,T,j)}}function WJ(n,e){const t=Wu(e);for(const r in n)n.hasOwnProperty(r)&&null!=n[r]&&(t[r]=n[r]);return t}class qJ{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){const r=new Map,i=Wu(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!==o&&(i[s]=o)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=Yu(o,i,t));const l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),r.set(l,o)})}),r}}class KJ{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{this.states.set(i.name,new qJ(i.style,i.options&&i.options.params||{},r))}),FL(this.states,"true","1"),FL(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new LL(e,i,this.states))}),this.fallbackTransition=function QJ(n,e,t){return new LL(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,i){return this.transitionFactories.find(o=>o.match(e,t,r,i))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}}function FL(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const XJ=new yp;class ZJ{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const r=[],s=tw(this._driver,t,r,[]);if(r.length)throw function ZZ(n){return new J(3503,!1)}();this._animations.set(e,s)}_buildPlayer(e,t,r){const i=e.element,s=gL(0,this._normalizer,0,e.keyframes,t,r);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){const i=[],s=this._animations.get(e);let o;const a=new Map;if(s?(o=iw(this._driver,t,s,Q0,ap,new Map,new Map,r,XJ,i),o.forEach(u=>{const d=Rr(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(i.push(function JZ(){return new J(3300,!1)}()),o=[]),i.length)throw function eJ(n){return new J(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Cs))})});const c=Zs(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function tJ(n){return new J(3301,!1)}();return t}listen(e,t,r,i){const s=W0(t,"","","");return j0(this._getPlayer(e),r,s,i),()=>{}}command(e,t,r,i){if("register"==r)return void this.register(e,i[0]);if("create"==r)return void this.create(e,t,i[0]||{});const s=this._getPlayer(e);switch(r){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const VL="ng-animate-queued",lw="ng-animate-disabled",ree=[],BL={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},iee={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},si="__ng_removed";class cw{constructor(e,t=""){this.namespaceId=t;const r=e&&e.hasOwnProperty("value");if(this.value=function lee(n){return n??null}(r?e.value:e),r){const s=Wu(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const Ku="void",uw=new cw(Ku);class see{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,oi(t,this._hostClassName)}listen(e,t,r,i){if(!this._triggers.has(t))throw function nJ(n,e){return new J(3302,!1)}();if(null==r||0==r.length)throw function rJ(n){return new J(3303,!1)}();if(!function cee(n){return"start"==n||"done"==n}(r))throw function iJ(n,e){return new J(3400,!1)}();const s=Rr(this._elementListeners,e,[]),o={name:t,phase:r,callback:i};s.push(o);const a=Rr(this._engine.statesByElement,e,new Map);return a.has(t)||(oi(e,lp),oi(e,lp+"-"+t),a.set(t,uw)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function sJ(n){return new J(3401,!1)}();return t}trigger(e,t,r,i=!0){const s=this._getTrigger(t),o=new dw(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(oi(e,lp),oi(e,lp+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t);const c=new cw(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=uw),c.value!==Ku&&l.value===c.value){if(!function hee(n,e){const t=Object.keys(n),r=Object.keys(e);if(t.length!=r.length)return!1;for(let i=0;i<t.length;i++){const s=t[i];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const g=[],m=s.matchStyles(l.value,l.params,g),_=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{Ko(e,m),Wi(e,_)})}return}const h=Rr(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!i)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(oi(e,VL),o.onStart(()=>{Hl(e,VL)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const m=this._engine.playersByElement.get(e);if(m){let _=m.indexOf(o);_>=0&&m.splice(_,1)}}),this.players.push(o),h.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const r=this._engine.driver.query(e,cp,!0);r.forEach(i=>{if(i[si])return;const s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,r,i){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){const u=this.trigger(e,c,Ku,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),r&&Zs(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){const i=new Set;t.forEach(s=>{const o=s.name;if(i.has(o))return;i.add(o);const l=this._triggers.get(o).fallbackTransition,c=r.get(o)||uw,u=new cw(Ku),d=new dw(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(r.totalAnimations){const s=r.players.length?r.playersByQueriedElement.get(e):[];if(s&&s.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,t);else{const s=e[si];(!s||s===BL)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){oi(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const s=r.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==r.triggerName){const l=W0(s,r.triggerName,r.fromState.value,r.toState.value);l._data=e,j0(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const s=r.transition.ast.depCount,o=i.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(r=>r.element===e)||t,t}}class oee{constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,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=(i,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){const r=new see(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){const l=i.get(a);if(l){const c=r.indexOf(l);r.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||r.unshift(e)}else r.push(e);return i.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let i=this._namespaceLookup[e];i&&i.register(t,r)&&this.totalAnimations++}destroy(e,t){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,r=this.statesByElement.get(e);if(r)for(let i of r.values())if(i.namespaceId){const s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}return t}trigger(e,t,r,i){if(bp(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,r,i),!0}return!1}insertNode(e,t,r,i){if(!bp(t))return;const s=t[si];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,r)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),oi(e,lw)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Hl(e,lw))}removeNode(e,t,r,i){if(bp(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),r){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,r,i,s){this.collectedLeaveElements.push(t),t[si]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,r,i,s){return bp(t)?this._fetchNamespace(e).listen(t,r,i,s):()=>{}}_buildInstruction(e,t,r,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,cp,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,X0,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Zs(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const r=e[si];if(r&&r.setForRemoval){if(e[si]=BL,r.namespaceId){this.destroyInnerAnimations(e);const i=this._fetchNamespace(r.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}null!==(t=e.classList)&&void 0!==t&&t.contains(lw)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)oi(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{t=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?Zs(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw function oJ(n){return new J(3402,!1)}()}_flushAnimations(e,t){const r=new yp,i=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(x=>{u.add(x);const U=this.driver.query(x,".ng-animate-queued",!0);for(let H=0;H<U.length;H++)u.add(U[H])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=HL(h,this.collectedEnterElements),p=new Map;let g=0;f.forEach((x,U)=>{const H=Q0+g++;p.set(U,H),x.forEach(se=>oi(se,H))});const m=[],_=new Set,b=new Set;for(let x=0;x<this.collectedLeaveElements.length;x++){const U=this.collectedLeaveElements[x],H=U[si];H&&H.setForRemoval&&(m.push(U),_.add(U),H.hasAnimation?this.driver.query(U,".ng-star-inserted",!0).forEach(se=>_.add(se)):b.add(U))}const y=new Map,T=HL(h,Array.from(_));T.forEach((x,U)=>{const H=ap+g++;y.set(U,H),x.forEach(se=>oi(se,H))}),e.push(()=>{f.forEach((x,U)=>{const H=p.get(U);x.forEach(se=>Hl(se,H))}),T.forEach((x,U)=>{const H=y.get(U);x.forEach(se=>Hl(se,H))}),m.forEach(x=>{this.processLeaveNode(x)})});const D=[],A=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach(H=>{const se=H.player,me=H.element;if(D.push(se),this.collectedEnterElements.length){const It=me[si];if(It&&It.setForMove){if(It.previousTriggersValues&&It.previousTriggersValues.has(H.triggerName)){const at=It.previousTriggersValues.get(H.triggerName),Le=this.statesByElement.get(H.element);if(Le&&Le.has(H.triggerName)){const rn=Le.get(H.triggerName);rn.value=at,Le.set(H.triggerName,rn)}}return void se.destroy()}}const ot=!d||!this.driver.containsElement(d,me),ft=y.get(me),Kn=p.get(me),Ke=this._buildInstruction(H,r,Kn,ft,ot);if(Ke.errors&&Ke.errors.length)return void A.push(Ke);if(ot)return se.onStart(()=>Ko(me,Ke.fromStyles)),se.onDestroy(()=>Wi(me,Ke.toStyles)),void i.push(se);if(H.isFallbackTransition)return se.onStart(()=>Ko(me,Ke.fromStyles)),se.onDestroy(()=>Wi(me,Ke.toStyles)),void i.push(se);const ur=[];Ke.timelines.forEach(It=>{It.stretchStartingKeyframe=!0,this.disabledNodes.has(It.element)||ur.push(It)}),Ke.timelines=ur,r.append(me,Ke.timelines),o.push({instruction:Ke,player:se,element:me}),Ke.queriedElements.forEach(It=>Rr(a,It,[]).push(se)),Ke.preStyleProps.forEach((It,at)=>{if(It.size){let Le=l.get(at);Le||l.set(at,Le=new Set),It.forEach((rn,Gr)=>Le.add(Gr))}}),Ke.postStyleProps.forEach((It,at)=>{let Le=c.get(at);Le||c.set(at,Le=new Set),It.forEach((rn,Gr)=>Le.add(Gr))})});if(A.length){const x=[];A.forEach(U=>{x.push(function aJ(n,e){return new J(3505,!1)}())}),D.forEach(U=>U.destroy()),this.reportError(x)}const P=new Map,j=new Map;o.forEach(x=>{const U=x.element;r.has(U)&&(j.set(U,U),this._beforeAnimationBuild(x.player.namespaceId,x.instruction,P))}),i.forEach(x=>{const U=x.element;this._getPreviousPlayers(U,!1,x.namespaceId,x.triggerName,null).forEach(se=>{Rr(P,U,[]).push(se),se.destroy()})});const Y=m.filter(x=>jL(x,l,c)),z=new Map;UL(z,this.driver,b,c,Cs).forEach(x=>{jL(x,l,c)&&Y.push(x)});const k=new Map;f.forEach((x,U)=>{UL(k,this.driver,new Set(x),l,"!")}),Y.forEach(x=>{var U,H;const se=z.get(x),me=k.get(x);z.set(x,new Map([...Array.from(null!==(U=se?.entries())&&void 0!==U?U:[]),...Array.from(null!==(H=me?.entries())&&void 0!==H?H:[])]))});const L=[],ee=[],ie={};o.forEach(x=>{const{element:U,player:H,instruction:se}=x;if(r.has(U)){if(u.has(U))return H.onDestroy(()=>Wi(U,se.toStyles)),H.disabled=!0,H.overrideTotalTime(se.totalTime),void i.push(H);let me=ie;if(j.size>1){let ft=U;const Kn=[];for(;ft=ft.parentNode;){const Ke=j.get(ft);if(Ke){me=Ke;break}Kn.push(ft)}Kn.forEach(Ke=>j.set(Ke,me))}const ot=this._buildAnimation(H.namespaceId,se,P,s,k,z);if(H.setRealPlayer(ot),me===ie)L.push(H);else{const ft=this.playersByElement.get(me);ft&&ft.length&&(H.parentPlayer=Zs(ft)),i.push(H)}}else Ko(U,se.fromStyles),H.onDestroy(()=>Wi(U,se.toStyles)),ee.push(H),u.has(U)&&i.push(H)}),ee.forEach(x=>{const U=s.get(x.element);if(U&&U.length){const H=Zs(U);x.setRealPlayer(H)}}),i.forEach(x=>{x.parentPlayer?x.syncPlayerEvents(x.parentPlayer):x.destroy()});for(let x=0;x<m.length;x++){const U=m[x],H=U[si];if(Hl(U,ap),H&&H.hasAnimation)continue;let se=[];if(a.size){let ot=a.get(U);ot&&ot.length&&se.push(...ot);let ft=this.driver.query(U,X0,!0);for(let Kn=0;Kn<ft.length;Kn++){let Ke=a.get(ft[Kn]);Ke&&Ke.length&&se.push(...Ke)}}const me=se.filter(ot=>!ot.destroyed);me.length?uee(this,U,me):this.processLeaveNode(U)}return m.length=0,L.forEach(x=>{this.players.push(x),x.onDone(()=>{x.destroy();const U=this.players.indexOf(x);this.players.splice(U,1)}),x.play()}),L}elementContainsData(e,t){let r=!1;const i=t[si];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(t)&&(r=!0),this.playersByQueriedElement.has(t)&&(r=!0),this.statesByElement.has(t)&&(r=!0),this._fetchNamespace(e).elementContainsData(t)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,i,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==Ku;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||o.push(c)})}}return(r||i)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,r){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=Rr(r,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Ko(s,t.fromStyles)}_buildAnimation(e,t,r,i,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const g=p.element;u.add(g);const m=g[si];if(m&&m.removedBeforeQueried)return new Gu(p.duration,p.delay);const _=g!==l,b=function dee(n){const e=[];return zL(n,e),e}((r.get(g)||ree).map(P=>P.getRealPlayer())).filter(P=>!!P.element&&P.element===g),y=s.get(g),T=o.get(g),D=gL(0,this._normalizer,0,p.keyframes,y,T),A=this._buildPlayer(p,D,b);if(p.subTimeline&&i&&d.add(g),_){const P=new dw(e,a,g);P.setRealPlayer(A),c.push(P)}return A});c.forEach(p=>{Rr(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function aee(n,e,t){let r=n.get(e);if(r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&n.delete(e)}return r}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>oi(p,EL));const f=Zs(h);return f.onDestroy(()=>{u.forEach(p=>Hl(p,EL)),Wi(l,t.toStyles)}),d.forEach(p=>{Rr(i,p,[]).push(f)}),f}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new Gu(e.duration,e.delay)}}class dw{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new Gu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,r)=>{t.forEach(i=>j0(e,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Rr(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function bp(n){return n&&1===n.nodeType}function $L(n,e){const t=n.style.display;return n.style.display=e??"none",t}function UL(n,e,t,r,i){const s=[];t.forEach(l=>s.push($L(l)));const o=[];r.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=e.computeStyle(c,d,i);u.set(d,h),(!h||0==h.length)&&(c[si]=iee,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>$L(l,s[a++])),o}function HL(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const i=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:i.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function oi(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function Hl(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function uee(n,e,t){Zs(t).onDone(()=>n.processLeaveNode(e))}function zL(n,e){for(let t=0;t<n.length;t++){const r=n[t];r instanceof fL?zL(r.players,e):e.push(r)}}function jL(n,e,t){const r=t.get(n);if(!r)return!1;let i=e.get(n);return i?r.forEach(s=>i.add(s)):e.set(n,r),t.delete(n),!0}class wp{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new oee(e,t,r),this._timelineEngine=new ZJ(e,t,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(e,t,r,i,s){const o=e+"-"+i;let a=this._triggerCache[o];if(!a){const l=[],u=tw(this._driver,s,l,[]);if(l.length)throw function QZ(n,e){return new J(3404,!1)}();a=function YJ(n,e,t){return new KJ(n,e,t)}(i,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,i){this._transitionEngine.insertNode(e,t,r,i)}onRemove(e,t,r,i){this._transitionEngine.removeNode(e,t,i||!1,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,i){if("@"==r.charAt(0)){const[s,o]=mL(r);this._timelineEngine.command(s,t,o,i)}else this._transitionEngine.trigger(e,t,r,i)}listen(e,t,r,i,s){if("@"==r.charAt(0)){const[o,a]=mL(r);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,r,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let pee=(()=>{class n{constructor(t,r,i){this._element=t,this._startStyles=r,this._endStyles=i,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Wi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Wi(this._element,this._initialStyles),this._endStyles&&(Wi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ko(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ko(this._element,this._endStyles),this._endStyles=null),Wi(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function hw(n){let e=null;return n.forEach((t,r)=>{(function gee(n){return"display"===n||"position"===n})(r)&&(e=e||new Map,e.set(r,t))}),e}class GL{constructor(e,t,r,i){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(e,t,r){return e.animate(this._convertKeyframesToObject(t),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&e.set(i,this._finished?r:ML(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class mee{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return bL(e,t)}getParentElement(e){return Y0(e)}query(e,t,r){return wL(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}animate(e,t,r,i,s,o=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=o.filter(f=>f instanceof GL);(function bJ(n,e){return 0===n||0===e})(r,i)&&u.forEach(f=>{f.currentSnapshot.forEach((p,g)=>c.set(g,p))});let d=function mJ(n){return n.length?n[0]instanceof Map?n:n.map(e=>TL(e)):[]}(t).map(f=>Js(f));d=function wJ(n,e,t){if(t.size&&e.length){let r=e[0],i=[];if(t.forEach((s,o)=>{r.has(o)||i.push(o),r.set(o,s)}),i.length)for(let s=1;s<e.length;s++){let o=e[s];i.forEach(a=>o.set(a,ML(n,a)))}}return e}(e,d,c);const h=function fee(n,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=hw(e[0]),e.length>1&&(r=hw(e[e.length-1]))):e instanceof Map&&(t=hw(e)),t||r?new pee(n,t,r):null}(e,d);return new GL(e,d,l,h)}}let yee=(()=>{class n extends cL{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:yi.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?dL(t):t;return WL(this._renderer,null,r,"register",[i]),new _ee(r,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(ae(fu),ae(mr))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();class _ee extends class DZ{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new vee(this._id,e,t||{},this._renderer)}}class vee{constructor(e,t,r,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return WL(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function WL(n,e,t,r,i){return n.setProperty(e,`@@${t}:${r}`,i)}const qL="@.disabled";let bee=(()=>{class n{constructor(t,r,i){this.delegate=t,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(s,o)=>{const a=o?.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,r){const s=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(s);return u||(u=new YL("",s,this.engine),this._rendererCache.set(s,u)),u}const o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return r.data.animation.forEach(l),new wee(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,i){t>=0&&t<this._microtaskId?this._zone.run(()=>r(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}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 n.\u0275fac=function(t){return new(t||n)(ae(fu),ae(wp),ae(vt))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();class YL{constructor(e,t,r){this.namespaceId=e,this.delegate=t,this.engine=r,this.destroyNode=this.delegate.destroyNode?i=>t.destroyNode(i):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,i=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate,r)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,i){this.delegate.setAttribute(e,t,r,i)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,i){this.delegate.setStyle(e,t,r,i)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){"@"==t.charAt(0)&&t==qL?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class wee extends YL{constructor(e,t,r,i){super(t,r,i),this.factory=e,this.namespaceId=t}setProperty(e,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==qL?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,t.slice(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if("@"==t.charAt(0)){const i=function Cee(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function See(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(e,t,r)}}let Eee=(()=>{class n extends wp{constructor(t,r,i,s){super(t.body,r,i)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(ae(mr),ae(K0),ae(ow),ae(Nu))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();const KL=[{provide:cL,useClass:yee},{provide:ow,useFactory:function Tee(){return new jJ}},{provide:wp,useClass:Eee},{provide:fu,useFactory:function xee(n,e,t){return new bee(n,e,t)},deps:[ip,wp,vt]}],fw=[{provide:K0,useFactory:()=>new mee},{provide:PN,useValue:"BrowserAnimations"},...KL],QL=[{provide:K0,useClass:CL},{provide:PN,useValue:"NoopAnimations"},...KL];let Iee=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?QL:fw}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({providers:fw,imports:[GR]}),n})();function XL(n,e,t,r,i,s,o){try{var a=n[s](o),l=a.value}catch(c){return void t(c)}a.done?e(l):Promise.resolve(l).then(r,i)}function M(n){return function(){var e=this,t=arguments;return new Promise(function(r,i){var s=n.apply(e,t);function o(l){XL(s,r,i,o,a,"next",l)}function a(l){XL(s,r,i,o,a,"throw",l)}o(void 0)})}}const ZL=function(n){const e=[];let t=0;for(let r=0;r<n.length;r++){let i=n.charCodeAt(r);i<128?e[t++]=i:i<2048?(e[t++]=i>>6|192,e[t++]=63&i|128):55296==(64512&i)&&r+1<n.length&&56320==(64512&n.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&n.charCodeAt(++r)),e[t++]=i>>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=63&i|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=63&i|128)}return e},gw={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(n,e){if(!Array.isArray(n))throw Error("encodeByteArray takes an array as a parameter");this.init_();const t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<n.length;i+=3){const s=n[i],o=i+1<n.length,a=o?n[i+1]:0,l=i+2<n.length,c=l?n[i+2]:0;let h=(15&a)<<2|c>>6,f=63&c;l||(f=64,o||(h=64)),r.push(t[s>>2],t[(3&s)<<4|a>>4],t[h],t[f])}return r.join("")},encodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(n):this.encodeByteArray(ZL(n),e)},decodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(n):function(n){const e=[];let t=0,r=0;for(;t<n.length;){const i=n[t++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const s=n[t++];e[r++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){const l=((7&i)<<18|(63&n[t++])<<12|(63&n[t++])<<6|63&n[t++])-65536;e[r++]=String.fromCharCode(55296+(l>>10)),e[r++]=String.fromCharCode(56320+(1023&l))}else{const s=n[t++],o=n[t++];e[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&o)}}return e.join("")}(this.decodeStringToByteArray(n,e))},decodeStringToByteArray(n,e){this.init_();const t=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<n.length;){const s=t[n.charAt(i++)],a=i<n.length?t[n.charAt(i)]:0;++i;const c=i<n.length?t[n.charAt(i)]:64;++i;const d=i<n.length?t[n.charAt(i)]:64;if(++i,null==s||null==a||null==c||null==d)throw Error();r.push(s<<2|a>>4),64!==c&&(r.push(a<<4&240|c>>2),64!==d&&r.push(c<<6&192|d))}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let n=0;n<this.ENCODED_VALS.length;n++)this.byteToCharMap_[n]=this.ENCODED_VALS.charAt(n),this.charToByteMap_[this.byteToCharMap_[n]]=n,this.byteToCharMapWebSafe_[n]=this.ENCODED_VALS_WEBSAFE.charAt(n),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[n]]=n,n>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(n)]=n,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(n)]=n)}}},Sp=function(n){return function(n){const e=ZL(n);return gw.encodeByteArray(e,!0)}(n).replace(/\./g,"")},Ep=function(n){try{return gw.decodeString(n,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function Fr(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function mw(){const n="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof n&&void 0!==n.id}function Xo(){return"object"==typeof indexedDB}function Qu(){return new Promise((n,e)=>{try{let t=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),t||self.indexedDB.deleteDatabase(r),n(!0)},i.onupgradeneeded=()=>{t=!1},i.onerror=()=>{var s;e((null===(s=i.error)||void 0===s?void 0:s.message)||"")}}catch(t){e(t)}})}function yw(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}const _w=()=>{try{return function Lee(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const n=process.env.__FIREBASE_DEFAULTS__;return n?JSON.parse(n):void 0})()||(()=>{if(typeof document>"u")return;let n;try{n=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=n&&Ep(n[1]);return e&&JSON.parse(e)})()}catch(n){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`)}};class Tp{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}class ki extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,ki.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,qi.prototype.create)}}class qi{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){const r=t[0]||{},i=`${this.service}/${e}`,s=this.errors[e],o=s?function Wee(n,e){return n.replace(qee,(t,r)=>{const i=e[r];return null!=i?String(i):`<${r}?>`})}(s,r):"Error";return new ki(i,`${this.serviceName}: ${o} (${i}).`,r)}}const qee=/\{\$([^}]+)}/g;function vw(n,e){if(n===e)return!0;const t=Object.keys(n),r=Object.keys(e);for(const i of t){if(!r.includes(i))return!1;const s=n[i],o=e[i];if(tF(s)&&tF(o)){if(!vw(s,o))return!1}else if(s!==o)return!1}for(const i of r)if(!t.includes(i))return!1;return!0}function tF(n){return null!==n&&"object"==typeof n}function nF(n){const e=[];for(const[t,r]of Object.entries(n))Array.isArray(r)?r.forEach(i=>{e.push(encodeURIComponent(t)+"="+encodeURIComponent(i))}):e.push(encodeURIComponent(t)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}class Kee{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,r){let i;if(void 0===e&&void 0===t&&void 0===r)throw new Error("Missing Observer.");i=function Qee(n,e){if("object"!=typeof n||null===n)return!1;for(const t of e)if(t in n&&"function"==typeof n[t])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:r},void 0===i.next&&(i.next=bw),void 0===i.error&&(i.error=bw),void 0===i.complete&&(i.complete=bw);const s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),s}unsubscribeOne(e){void 0===this.observers||void 0===this.observers[e]||(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function bw(){}function Cw(n,e=1e3,t=2){const r=e*Math.pow(t,n),i=Math.round(.5*r*(Math.random()-.5)*2);return Math.min(144e5,r+i)}function ai(n){return n&&n._delegate?n._delegate:n}class zn{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const Zo="[DEFAULT]";class nte{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const r=new Tp;if(this.instancesDeferred.set(t,r),this.isInitialized(t)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:t});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const r=this.normalizeInstanceIdentifier(e?.identifier),i=null!==(t=e?.optional)&&void 0!==t&&t;if(!this.isInitialized(r)&&!this.shouldAutoInitialize()){if(i)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:r})}catch(s){if(i)return null;throw s}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function ite(n){return"EAGER"===n.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:Zo})}catch{}for(const[t,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(t);try{const s=this.getOrInitializeService({instanceIdentifier:i});r.resolve(s)}catch{}}}}clearInstance(e=Zo){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}delete(){var e=this;return M(function*(){const t=Array.from(e.instances.values());yield Promise.all([...t.filter(r=>"INTERNAL"in r).map(r=>r.INTERNAL.delete()),...t.filter(r=>"_delete"in r).map(r=>r._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(e=Zo){return this.instances.has(e)}getOptions(e=Zo){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:t});for(const[s,o]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(s)&&o.resolve(i);return i}onInit(e,t){var r;const i=this.normalizeInstanceIdentifier(t),s=null!==(r=this.onInitCallbacks.get(i))&&void 0!==r?r:new Set;s.add(e),this.onInitCallbacks.set(i,s);const o=this.instances.get(i);return o&&e(o,i),()=>{s.delete(e)}}invokeOnInitCallbacks(e,t){const r=this.onInitCallbacks.get(t);if(r)for(const i of r)try{i(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:rte(e),options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=Zo){return this.component?this.component.multipleInstances?e:Zo:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}function rte(n){return n===Zo?void 0:n}class ste{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new nte(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const Sw=[];var je=(()=>(function(n){n[n.DEBUG=0]="DEBUG",n[n.VERBOSE=1]="VERBOSE",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.SILENT=5]="SILENT"}(je||(je={})),je))();const rF={debug:je.DEBUG,verbose:je.VERBOSE,info:je.INFO,warn:je.WARN,error:je.ERROR,silent:je.SILENT},ote=je.INFO,ate={[je.DEBUG]:"log",[je.VERBOSE]:"log",[je.INFO]:"info",[je.WARN]:"warn",[je.ERROR]:"error"},lte=(n,e,...t)=>{if(e<n.logLevel)return;const r=(new Date).toISOString(),i=ate[e];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);console[i](`[${r}]  ${n.name}:`,...t)};class zl{constructor(e){this.name=e,this._logLevel=ote,this._logHandler=lte,this._userLogHandler=null,Sw.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in je))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?rF[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,je.DEBUG,...e),this._logHandler(this,je.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,je.VERBOSE,...e),this._logHandler(this,je.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,je.INFO,...e),this._logHandler(this,je.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,je.WARN,...e),this._logHandler(this,je.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,je.ERROR,...e),this._logHandler(this,je.ERROR,...e)}}let iF,sF;const oF=new WeakMap,Ew=new WeakMap,aF=new WeakMap,Tw=new WeakMap,xw=new WeakMap;let Iw={get(n,e,t){if(n instanceof IDBTransaction){if("done"===e)return Ew.get(n);if("objectStoreNames"===e)return n.objectStoreNames||aF.get(n);if("store"===e)return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return Es(n[e])},set:(n,e,t)=>(n[e]=t,!0),has:(n,e)=>n instanceof IDBTransaction&&("done"===e||"store"===e)||e in n};function mte(n){return"function"==typeof n?function gte(n){return n!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function dte(){return sF||(sF=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(n)?function(...e){return n.apply(Dw(this),e),Es(oF.get(this))}:function(...e){return Es(n.apply(Dw(this),e))}:function(e,...t){const r=n.call(Dw(this),e,...t);return aF.set(r,e.sort?e.sort():[e]),Es(r)}}(n):(n instanceof IDBTransaction&&function fte(n){if(Ew.has(n))return;const e=new Promise((t,r)=>{const i=()=>{n.removeEventListener("complete",s),n.removeEventListener("error",o),n.removeEventListener("abort",o)},s=()=>{t(),i()},o=()=>{r(n.error||new DOMException("AbortError","AbortError")),i()};n.addEventListener("complete",s),n.addEventListener("error",o),n.addEventListener("abort",o)});Ew.set(n,e)}(n),((n,e)=>e.some(t=>n instanceof t))(n,function ute(){return iF||(iF=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(n,Iw):n)}function Es(n){if(n instanceof IDBRequest)return function hte(n){const e=new Promise((t,r)=>{const i=()=>{n.removeEventListener("success",s),n.removeEventListener("error",o)},s=()=>{t(Es(n.result)),i()},o=()=>{r(n.error),i()};n.addEventListener("success",s),n.addEventListener("error",o)});return e.then(t=>{t instanceof IDBCursor&&oF.set(t,n)}).catch(()=>{}),xw.set(e,n),e}(n);if(Tw.has(n))return Tw.get(n);const e=mte(n);return e!==n&&(Tw.set(n,e),xw.set(e,n)),e}const Dw=n=>xw.get(n);function Ip(n,e,{blocked:t,upgrade:r,blocking:i,terminated:s}={}){const o=indexedDB.open(n,e),a=Es(o);return r&&o.addEventListener("upgradeneeded",l=>{r(Es(o.result),l.oldVersion,l.newVersion,Es(o.transaction))}),t&&o.addEventListener("blocked",()=>t()),a.then(l=>{s&&l.addEventListener("close",()=>s()),i&&l.addEventListener("versionchange",()=>i())}).catch(()=>{}),a}function Aw(n,{blocked:e}={}){const t=indexedDB.deleteDatabase(n);return e&&t.addEventListener("blocked",()=>e()),Es(t).then(()=>{})}const yte=["get","getKey","getAll","getAllKeys","count"],_te=["put","add","delete","clear"],Mw=new Map;function lF(n,e){if(!(n instanceof IDBDatabase)||e in n||"string"!=typeof e)return;if(Mw.get(e))return Mw.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,i=_te.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!yte.includes(t))return;const s=function(){var o=M(function*(a,...l){const c=this.transaction(a,i?"readwrite":"readonly");let u=c.store;return r&&(u=u.index(l.shift())),(yield Promise.all([u[t](...l),i&&c.done]))[0]});return function(l){return o.apply(this,arguments)}}();return Mw.set(e,s),s}!function pte(n){Iw=n(Iw)}(n=>pt(pt({},n),{},{get:(e,t,r)=>lF(e,t)||n.get(e,t,r),has:(e,t)=>!!lF(e,t)||n.has(e,t)}));class vte{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(function bte(n){return"VERSION"===n.getComponent()?.type}(t)){const r=t.getImmediate();return`${r.library}/${r.version}`}return null}).filter(t=>t).join(" ")}}const kw="@firebase/app",Jo=new zl("@firebase/app"),Dp="[DEFAULT]",Wte={[kw]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},ea=new Map,Ap=new Map;function qte(n,e){try{n.container.addComponent(e)}catch(t){Jo.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`,t)}}function ir(n){const e=n.name;if(Ap.has(e))return Jo.debug(`There were multiple attempts to register component ${e}.`),!1;Ap.set(e,n);for(const t of ea.values())qte(t,n);return!0}function Mp(n,e){const t=n.container.getProvider("heartbeat").getImmediate({optional:!0});return t&&t.triggerHeartbeat(),n.container.getProvider(e)}const Ts=new qi("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class Kte{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new zn("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Ts.create("app-deleted",{appName:this._name})}}const kp="9.12.1";function uF(n,e={}){let t=n;"object"!=typeof e&&(e={name:e});const r=Object.assign({name:Dp,automaticDataCollectionEnabled:!1},e),i=r.name;if("string"!=typeof i||!i)throw Ts.create("bad-app-name",{appName:String(i)});if(t||(t=(()=>{var n;return null===(n=_w())||void 0===n?void 0:n.config})()),!t)throw Ts.create("no-options");const s=ea.get(i);if(s){if(vw(t,s.options)&&vw(r,s.config))return s;throw Ts.create("duplicate-app",{appName:i})}const o=new ste(i);for(const l of Ap.values())o.addComponent(l);const a=new Kte(t,r,o);return ea.set(i,a),a}function dF(n=Dp){const e=ea.get(n);if(!e&&n===Dp)return uF();if(!e)throw Ts.create("no-app",{appName:n});return e}function hF(){return Array.from(ea.values())}function jt(n,e,t){var r;let i=null!==(r=Wte[n])&&void 0!==r?r:n;t&&(i+=`-${t}`);const s=i.match(/\s|\//),o=e.match(/\s|\//);if(s||o){const a=[`Unable to register library "${i}" with version "${e}":`];return s&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&&o&&a.push("and"),o&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),void Jo.warn(a.join(" "))}ir(new zn(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}const Xu="firebase-heartbeat-store";let Ow=null;function fF(){return Ow||(Ow=Ip("firebase-heartbeat-database",1,{upgrade:(n,e)=>{0===e&&n.createObjectStore(Xu)}}).catch(n=>{throw Ts.create("idb-open",{originalErrorMessage:n.message})})),Ow}function Nw(){return Nw=M(function*(n){var e;try{return(yield fF()).transaction(Xu).objectStore(Xu).get(gF(n))}catch(t){if(t instanceof ki)Jo.warn(t.message);else{const r=Ts.create("idb-get",{originalErrorMessage:null===(e=t)||void 0===e?void 0:e.message});Jo.warn(r.message)}}}),Nw.apply(this,arguments)}function pF(n,e){return Rw.apply(this,arguments)}function Rw(){return Rw=M(function*(n,e){var t;try{const i=(yield fF()).transaction(Xu,"readwrite");return yield i.objectStore(Xu).put(e,gF(n)),i.done}catch(r){if(r instanceof ki)Jo.warn(r.message);else{const i=Ts.create("idb-set",{originalErrorMessage:null===(t=r)||void 0===t?void 0:t.message});Jo.warn(i.message)}}}),Rw.apply(this,arguments)}function gF(n){return`${n.name}!${n.options.appId}`}class tne{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new rne(t),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}triggerHeartbeat(){var e=this;return M(function*(){const r=e.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),i=mF();if(null===e._heartbeatsCache&&(e._heartbeatsCache=yield e._heartbeatsCachePromise),e._heartbeatsCache.lastSentHeartbeatDate!==i&&!e._heartbeatsCache.heartbeats.some(s=>s.date===i))return e._heartbeatsCache.heartbeats.push({date:i,agent:r}),e._heartbeatsCache.heartbeats=e._heartbeatsCache.heartbeats.filter(s=>{const o=new Date(s.date).valueOf();return Date.now()-o<=2592e6}),e._storage.overwrite(e._heartbeatsCache)})()}getHeartbeatsHeader(){var e=this;return M(function*(){if(null===e._heartbeatsCache&&(yield e._heartbeatsCachePromise),null===e._heartbeatsCache||0===e._heartbeatsCache.heartbeats.length)return"";const t=mF(),{heartbeatsToSend:r,unsentEntries:i}=function nne(n,e=1024){const t=[];let r=n.slice();for(const i of n){const s=t.find(o=>o.agent===i.agent);if(s){if(s.dates.push(i.date),yF(t)>e){s.dates.pop();break}}else if(t.push({agent:i.agent,dates:[i.date]}),yF(t)>e){t.pop();break}r=r.slice(1)}return{heartbeatsToSend:t,unsentEntries:r}}(e._heartbeatsCache.heartbeats),s=Sp(JSON.stringify({version:2,heartbeats:r}));return e._heartbeatsCache.lastSentHeartbeatDate=t,i.length>0?(e._heartbeatsCache.heartbeats=i,yield e._storage.overwrite(e._heartbeatsCache)):(e._heartbeatsCache.heartbeats=[],e._storage.overwrite(e._heartbeatsCache)),s})()}}function mF(){return(new Date).toISOString().substring(0,10)}class rne{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return M(function*(){return!!Xo()&&Qu().then(()=>!0).catch(()=>!1)})()}read(){var e=this;return M(function*(){return(yield e._canUseIndexedDBPromise)&&(yield function Zte(n){return Nw.apply(this,arguments)}(e.app))||{heartbeats:[]}})()}overwrite(e){var t=this;return M(function*(){var r;if(yield t._canUseIndexedDBPromise){const s=yield t.read();return pF(t.app,{lastSentHeartbeatDate:null!==(r=e.lastSentHeartbeatDate)&&void 0!==r?r:s.lastSentHeartbeatDate,heartbeats:e.heartbeats})}})()}add(e){var t=this;return M(function*(){var r;if(yield t._canUseIndexedDBPromise){const s=yield t.read();return pF(t.app,{lastSentHeartbeatDate:null!==(r=e.lastSentHeartbeatDate)&&void 0!==r?r:s.lastSentHeartbeatDate,heartbeats:[...s.heartbeats,...e.heartbeats]})}})()}}function yF(n){return Sp(JSON.stringify({version:2,heartbeats:n})).length}!function ine(n){ir(new zn("platform-logger",e=>new vte(e),"PRIVATE")),ir(new zn("heartbeat",e=>new tne(e),"PRIVATE")),jt(kw,"0.8.2",n),jt(kw,"0.8.2","esm2017"),jt("fire-js","")}(""),jt("firebase","9.12.1","app");const _F="@firebase/installations",Lw="0.5.15",bF=`w:${Lw}`,wF="FIS_v2",xs=new qi("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function CF(n){return n instanceof ki&&n.code.includes("request-failed")}function Fw({projectId:n}){return`https://firebaseinstallations.googleapis.com/v1/projects/${n}/installations`}function SF(n){return{token:n.token,requestStatus:2,expiresIn:hne(n.expiresIn),creationTime:Date.now()}}function Vw(n,e){return Bw.apply(this,arguments)}function Bw(){return Bw=M(function*(n,e){const r=(yield e.json()).error;return xs.create("request-failed",{requestName:n,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}),Bw.apply(this,arguments)}function EF({apiKey:n}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":n})}function TF(n,{refreshToken:e}){const t=EF(n);return t.append("Authorization",function fne(n){return`${wF} ${n}`}(e)),t}function $w(n){return Uw.apply(this,arguments)}function Uw(){return Uw=M(function*(n){const e=yield n();return e.status>=500&&e.status<600?n():e}),Uw.apply(this,arguments)}function hne(n){return Number(n.replace("s","000"))}function pne(n,e){return Hw.apply(this,arguments)}function Hw(){return Hw=M(function*({appConfig:n,heartbeatServiceProvider:e},{fid:t}){const r=Fw(n),i=EF(n),s=e.getImmediate({optional:!0});if(s){const c=yield s.getHeartbeatsHeader();c&&i.append("x-firebase-client",c)}const a={method:"POST",headers:i,body:JSON.stringify({fid:t,authVersion:wF,appId:n.appId,sdkVersion:bF})},l=yield $w(()=>fetch(r,a));if(l.ok){const c=yield l.json();return{fid:c.fid||t,registrationStatus:2,refreshToken:c.refreshToken,authToken:SF(c.authToken)}}throw yield Vw("Create Installation",l)}),Hw.apply(this,arguments)}function xF(n){return new Promise(e=>{setTimeout(e,n)})}const mne=/^[cdef][\w-]{21}$/;function yne(){try{const n=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(n),n[0]=112+n[0]%16;const t=function _ne(n){return function gne(n){return btoa(String.fromCharCode(...n)).replace(/\+/g,"-").replace(/\//g,"_")}(n).substr(0,22)}(n);return mne.test(t)?t:""}catch{return""}}function jl(n){return`${n.appName}!${n.appId}`}const Gl=new Map;function IF(n,e){const t=jl(n);DF(t,e),function wne(n,e){const t=function AF(){return!ta&&"BroadcastChannel"in self&&(ta=new BroadcastChannel("[Firebase] FID Change"),ta.onmessage=n=>{DF(n.data.key,n.data.fid)}),ta}();t&&t.postMessage({key:n,fid:e}),function MF(){0===Gl.size&&ta&&(ta.close(),ta=null)}()}(t,e)}function DF(n,e){const t=Gl.get(n);if(t)for(const r of t)r(e)}let ta=null;const na="firebase-installations-store";let jw=null;function Gw(){return jw||(jw=Ip("firebase-installations-database",1,{upgrade:(n,e)=>{0===e&&n.createObjectStore(na)}})),jw}function Pp(n,e){return Ww.apply(this,arguments)}function Ww(){return Ww=M(function*(n,e){const t=jl(n),i=(yield Gw()).transaction(na,"readwrite"),s=i.objectStore(na),o=yield s.get(t);return yield s.put(e,t),yield i.done,(!o||o.fid!==e.fid)&&IF(n,e.fid),e}),Ww.apply(this,arguments)}function qw(n){return Yw.apply(this,arguments)}function Yw(){return Yw=M(function*(n){const e=jl(n),r=(yield Gw()).transaction(na,"readwrite");yield r.objectStore(na).delete(e),yield r.done}),Yw.apply(this,arguments)}function Zu(n,e){return Kw.apply(this,arguments)}function Kw(){return Kw=M(function*(n,e){const t=jl(n),i=(yield Gw()).transaction(na,"readwrite"),s=i.objectStore(na),o=yield s.get(t),a=e(o);return void 0===a?yield s.delete(t):yield s.put(a,t),yield i.done,a&&(!o||o.fid!==a.fid)&&IF(n,a.fid),a}),Kw.apply(this,arguments)}function Qw(n){return Xw.apply(this,arguments)}function Xw(){return Xw=M(function*(n){let e;const t=yield Zu(n.appConfig,r=>{const i=Ene(r),s=Tne(n,i);return e=s.registrationPromise,s.installationEntry});return""===t.fid?{installationEntry:yield e}:{installationEntry:t,registrationPromise:e}}),Xw.apply(this,arguments)}function Ene(n){return PF(n||{fid:yne(),registrationStatus:0})}function Tne(n,e){if(0===e.registrationStatus){if(!navigator.onLine)return{installationEntry:e,registrationPromise:Promise.reject(xs.create("app-offline"))};const t={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=function xne(n,e){return Zw.apply(this,arguments)}(n,t);return{installationEntry:t,registrationPromise:r}}return 1===e.registrationStatus?{installationEntry:e,registrationPromise:Ine(n)}:{installationEntry:e}}function Zw(){return Zw=M(function*(n,e){try{const t=yield pne(n,e);return Pp(n.appConfig,t)}catch(t){throw CF(t)&&409===t.customData.serverCode?yield qw(n.appConfig):yield Pp(n.appConfig,{fid:e.fid,registrationStatus:0}),t}}),Zw.apply(this,arguments)}function Ine(n){return Jw.apply(this,arguments)}function Jw(){return Jw=M(function*(n){let e=yield kF(n.appConfig);for(;1===e.registrationStatus;)yield xF(100),e=yield kF(n.appConfig);if(0===e.registrationStatus){const{installationEntry:t,registrationPromise:r}=yield Qw(n);return r||t}return e}),Jw.apply(this,arguments)}function kF(n){return Zu(n,e=>{if(!e)throw xs.create("installation-not-found");return PF(e)})}function PF(n){return function Dne(n){return 1===n.registrationStatus&&n.registrationTime+1e4<Date.now()}(n)?{fid:n.fid,registrationStatus:0}:n}function Ane(n,e){return e1.apply(this,arguments)}function e1(){return e1=M(function*({appConfig:n,heartbeatServiceProvider:e},t){const r=Mne(n,t),i=TF(n,t),s=e.getImmediate({optional:!0});if(s){const c=yield s.getHeartbeatsHeader();c&&i.append("x-firebase-client",c)}const a={method:"POST",headers:i,body:JSON.stringify({installation:{sdkVersion:bF,appId:n.appId}})},l=yield $w(()=>fetch(r,a));if(l.ok)return SF(yield l.json());throw yield Vw("Generate Auth Token",l)}),e1.apply(this,arguments)}function Mne(n,{fid:e}){return`${Fw(n)}/${e}/authTokens:generate`}function t1(n){return n1.apply(this,arguments)}function n1(){return n1=M(function*(n,e=!1){let t;const r=yield Zu(n.appConfig,s=>{if(!NF(s))throw xs.create("not-registered");const o=s.authToken;if(!e&&One(o))return s;if(1===o.requestStatus)return t=kne(n,e),s;{if(!navigator.onLine)throw xs.create("app-offline");const a=Rne(s);return t=Pne(n,a),a}});return t?yield t:r.authToken}),n1.apply(this,arguments)}function kne(n,e){return r1.apply(this,arguments)}function r1(){return r1=M(function*(n,e){let t=yield OF(n.appConfig);for(;1===t.authToken.requestStatus;)yield xF(100),t=yield OF(n.appConfig);const r=t.authToken;return 0===r.requestStatus?t1(n,e):r}),r1.apply(this,arguments)}function OF(n){return Zu(n,e=>{if(!NF(e))throw xs.create("not-registered");return function Lne(n){return 1===n.requestStatus&&n.requestTime+1e4<Date.now()}(e.authToken)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}function Pne(n,e){return s1.apply(this,arguments)}function s1(){return s1=M(function*(n,e){try{const t=yield Ane(n,e),r=Object.assign(Object.assign({},e),{authToken:t});return yield Pp(n.appConfig,r),t}catch(t){if(!CF(t)||401!==t.customData.serverCode&&404!==t.customData.serverCode){const r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});yield Pp(n.appConfig,r)}else yield qw(n.appConfig);throw t}}),s1.apply(this,arguments)}function NF(n){return void 0!==n&&2===n.registrationStatus}function One(n){return 2===n.requestStatus&&!function Nne(n){const e=Date.now();return e<n.creationTime||n.creationTime+n.expiresIn<e+36e5}(n)}function Rne(n){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},n),{authToken:e})}function o1(){return o1=M(function*(n){const e=n,{installationEntry:t,registrationPromise:r}=yield Qw(e);return r?r.catch(console.error):t1(e).catch(console.error),t.fid}),o1.apply(this,arguments)}function a1(){return a1=M(function*(n,e=!1){const t=n;return yield Bne(t),(yield t1(t,e)).token}),a1.apply(this,arguments)}function Bne(n){return l1.apply(this,arguments)}function l1(){return l1=M(function*(n){const{registrationPromise:e}=yield Qw(n);e&&(yield e)}),l1.apply(this,arguments)}function d1(n){return xs.create("missing-app-config-values",{valueName:n})}const RF="installations",jne=n=>{const e=n.getProvider("app").getImmediate(),t=function Hne(n){if(!n||!n.options)throw d1("App Configuration");if(!n.name)throw d1("App Name");const e=["projectId","apiKey","appId"];for(const t of e)if(!n.options[t])throw d1(t);return{appName:n.name,projectId:n.options.projectId,apiKey:n.options.apiKey,appId:n.options.appId}}(e);return{app:e,appConfig:t,heartbeatServiceProvider:Mp(e,"heartbeat"),_delete:()=>Promise.resolve()}},Gne=n=>{const t=Mp(n.getProvider("app").getImmediate(),RF).getImmediate();return{getId:()=>function Fne(n){return o1.apply(this,arguments)}(t),getToken:i=>function Vne(n){return a1.apply(this,arguments)}(t,i)}};(function Wne(){ir(new zn(RF,jne,"PUBLIC")),ir(new zn("installations-internal",Gne,"PRIVATE"))})(),jt(_F,Lw),jt(_F,Lw,"esm2017");const h1="@firebase/remote-config",_r=new qi("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"});class rre{constructor(e,t,r,i){this.client=e,this.storage=t,this.storageCache=r,this.logger=i}isCachedDataFresh(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const r=Date.now()-t,i=r<=e;return this.logger.debug(`Config fetch cache check. Cache age millis: ${r}. Cache max age millis (minimumFetchIntervalMillis setting): ${e}. Is cache hit: ${i}.`),i}fetch(e){var t=this;return M(function*(){const[r,i]=yield Promise.all([t.storage.getLastSuccessfulFetchTimestampMillis(),t.storage.getLastSuccessfulFetchResponse()]);if(i&&t.isCachedDataFresh(e.cacheMaxAgeMillis,r))return i;e.eTag=i&&i.eTag;const s=yield t.client.fetch(e),o=[t.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===s.status&&o.push(t.storage.setLastSuccessfulFetchResponse(s)),yield Promise.all(o),s})()}}function ire(n=navigator){return n.languages&&n.languages[0]||n.language}class sre{constructor(e,t,r,i,s,o){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=r,this.projectId=i,this.apiKey=s,this.appId=o}fetch(e){var t=this;return M(function*(){var r,i,s;const[o,a]=yield Promise.all([t.firebaseInstallations.getId(),t.firebaseInstallations.getToken()]),c=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${t.projectId}/namespaces/${t.namespace}:fetch?key=${t.apiKey}`,u={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},d={sdk_version:t.sdkVersion,app_instance_id:o,app_instance_id_token:a,app_id:t.appId,language_code:ire()},h={method:"POST",headers:u,body:JSON.stringify(d)},f=fetch(c,h),p=new Promise((T,D)=>{e.signal.addEventListener(()=>{const A=new Error("The operation was aborted.");A.name="AbortError",D(A)})});let g;try{yield Promise.race([f,p]),g=yield f}catch(T){let D="fetch-client-network";throw"AbortError"===(null===(r=T)||void 0===r?void 0:r.name)&&(D="fetch-timeout"),_r.create(D,{originalErrorMessage:null===(i=T)||void 0===i?void 0:i.message})}let m=g.status;const _=g.headers.get("ETag")||void 0;let b,y;if(200===g.status){let T;try{T=yield g.json()}catch(D){throw _r.create("fetch-client-parse",{originalErrorMessage:null===(s=D)||void 0===s?void 0:s.message})}b=T.entries,y=T.state}if("INSTANCE_STATE_UNSPECIFIED"===y?m=500:"NO_CHANGE"===y?m=304:("NO_TEMPLATE"===y||"EMPTY_CONFIG"===y)&&(b={}),304!==m&&200!==m)throw _r.create("fetch-status",{httpStatus:m});return{status:m,eTag:_,config:b}})()}}class lre{constructor(e,t){this.client=e,this.storage=t}fetch(e){var t=this;return M(function*(){const r=(yield t.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return t.attemptFetch(e,r)})()}attemptFetch(e,{throttleEndTimeMillis:t,backoffCount:r}){var i=this;return M(function*(){yield function ore(n,e){return new Promise((t,r)=>{const i=Math.max(e-Date.now(),0),s=setTimeout(t,i);n.addEventListener(()=>{clearTimeout(s),r(_r.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}(e.signal,t);try{const s=yield i.client.fetch(e);return yield i.storage.deleteThrottleMetadata(),s}catch(s){if(!function are(n){if(!(n instanceof ki&&n.customData))return!1;const e=Number(n.customData.httpStatus);return 429===e||500===e||503===e||504===e}(s))throw s;const o={throttleEndTimeMillis:Date.now()+Cw(r),backoffCount:r+1};return yield i.storage.setThrottleMetadata(o),i.attemptFetch(e,o)}})()}}class dre{constructor(e,t,r,i,s){this.app=e,this._client=t,this._storageCache=r,this._storage=i,this._logger=s,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function Np(n,e){var t;const r=n.target.error||void 0;return _r.create(e,{originalErrorMessage:r&&(null===(t=r)||void 0===t?void 0:t.message)})}const ra="app_namespace_store";class gre{constructor(e,t,r,i=function pre(){return new Promise((n,e)=>{var t;try{const r=indexedDB.open("firebase_remote_config",1);r.onerror=i=>{e(Np(i,"storage-open"))},r.onsuccess=i=>{n(i.target.result)},r.onupgradeneeded=i=>{0===i.oldVersion&&i.target.result.createObjectStore(ra,{keyPath:"compositeKey"})}}catch(r){e(_r.create("storage-open",{originalErrorMessage:null===(t=r)||void 0===t?void 0:t.message}))}})}()){this.appId=e,this.appName=t,this.namespace=r,this.openDbPromise=i}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(e){return this.set("last_fetch_status",e)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(e){return this.set("last_successful_fetch_timestamp_millis",e)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(e){return this.set("last_successful_fetch_response",e)}getActiveConfig(){return this.get("active_config")}setActiveConfig(e){return this.set("active_config",e)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(e){return this.set("active_config_etag",e)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(e){return this.set("throttle_metadata",e)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(e){var t=this;return M(function*(){const r=yield t.openDbPromise;return new Promise((i,s)=>{var o;const l=r.transaction([ra],"readonly").objectStore(ra),c=t.createCompositeKey(e);try{const u=l.get(c);u.onerror=d=>{s(Np(d,"storage-get"))},u.onsuccess=d=>{const h=d.target.result;i(h?h.value:void 0)}}catch(u){s(_r.create("storage-get",{originalErrorMessage:null===(o=u)||void 0===o?void 0:o.message}))}})})()}set(e,t){var r=this;return M(function*(){const i=yield r.openDbPromise;return new Promise((s,o)=>{var a;const c=i.transaction([ra],"readwrite").objectStore(ra),u=r.createCompositeKey(e);try{const d=c.put({compositeKey:u,value:t});d.onerror=h=>{o(Np(h,"storage-set"))},d.onsuccess=()=>{s()}}catch(d){o(_r.create("storage-set",{originalErrorMessage:null===(a=d)||void 0===a?void 0:a.message}))}})})()}delete(e){var t=this;return M(function*(){const r=yield t.openDbPromise;return new Promise((i,s)=>{var o;const l=r.transaction([ra],"readwrite").objectStore(ra),c=t.createCompositeKey(e);try{const u=l.delete(c);u.onerror=d=>{s(Np(d,"storage-delete"))},u.onsuccess=()=>{i()}}catch(u){s(_r.create("storage-delete",{originalErrorMessage:null===(o=u)||void 0===o?void 0:o.message}))}})})()}createCompositeKey(e){return[this.appId,this.appName,this.namespace,e].join()}}class mre{constructor(e){this.storage=e}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var e=this;return M(function*(){const t=e.storage.getLastFetchStatus(),r=e.storage.getLastSuccessfulFetchTimestampMillis(),i=e.storage.getActiveConfig(),s=yield t;s&&(e.lastFetchStatus=s);const o=yield r;o&&(e.lastSuccessfulFetchTimestampMillis=o);const a=yield i;a&&(e.activeConfig=a)})()}setLastFetchStatus(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)}setLastSuccessfulFetchTimestampMillis(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)}setActiveConfig(e){return this.activeConfig=e,this.storage.setActiveConfig(e)}}function _re(){return y1.apply(this,arguments)}function y1(){return(y1=M(function*(){if(!Xo())return!1;try{return yield Qu()}catch{return!1}})).apply(this,arguments)}!function yre(){ir(new zn("remote-config",function n(e,{instanceIdentifier:t}){const r=e.getProvider("app").getImmediate(),i=e.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw _r.create("registration-window");if(!Xo())throw _r.create("indexed-db-unavailable");const{projectId:s,apiKey:o,appId:a}=r.options;if(!s)throw _r.create("registration-project-id");if(!o)throw _r.create("registration-api-key");if(!a)throw _r.create("registration-app-id");const l=new gre(a,r.name,t=t||"firebase"),c=new mre(l),u=new zl(h1);u.logLevel=je.ERROR;const d=new sre(i,kp,t,s,o,a),h=new lre(d,l),f=new rre(h,l,c,u),p=new dre(r,f,c,l,u);return function ere(n){const e=ai(n);e._initializePromise||(e._initializePromise=e._storageCache.loadFromStorage().then(()=>{e._isInitializationComplete=!0}))}(p),p},"PUBLIC").setMultipleInstances(!0)),jt(h1,"0.3.14"),jt(h1,"0.3.14","esm2017")}();const vre="/firebase-messaging-sw.js",bre="/firebase-cloud-messaging-push-scope",BF="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",$F="google.c.a.c_id",Cre="google.c.a.c_l",Sre="google.c.a.ts",Ere="google.c.a.e";var Wl=(()=>(function(n){n.PUSH_RECEIVED="push-received",n.NOTIFICATION_CLICKED="notification-clicked"}(Wl||(Wl={})),Wl))();function Is(n){const e=new Uint8Array(n);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Tre(n){const t=(n+"=".repeat((4-n.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(t),i=new Uint8Array(r.length);for(let s=0;s<r.length;++s)i[s]=r.charCodeAt(s);return i}const _1="fcm_token_details_db",UF="fcm_token_object_Store";function Ire(n){return v1.apply(this,arguments)}function v1(){return v1=M(function*(n){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(s=>s.name).includes(_1))return null;let e=null;return(yield Ip(_1,5,{upgrade:(r=M(function*(i,s,o,a){var l;if(s<2||!i.objectStoreNames.contains(UF))return;const c=a.objectStore(UF),u=yield c.index("fcmSenderId").get(n);if(yield c.clear(),u)if(2===s){const d=u;if(!d.auth||!d.p256dh||!d.endpoint)return;e={token:d.fcmToken,createTime:null!==(l=d.createTime)&&void 0!==l?l:Date.now(),subscriptionOptions:{auth:d.auth,p256dh:d.p256dh,endpoint:d.endpoint,swScope:d.swScope,vapidKey:"string"==typeof d.vapidKey?d.vapidKey:Is(d.vapidKey)}}}else if(3===s){const d=u;e={token:d.fcmToken,createTime:d.createTime,subscriptionOptions:{auth:Is(d.auth),p256dh:Is(d.p256dh),endpoint:d.endpoint,swScope:d.swScope,vapidKey:Is(d.vapidKey)}}}else if(4===s){const d=u;e={token:d.fcmToken,createTime:d.createTime,subscriptionOptions:{auth:Is(d.auth),p256dh:Is(d.p256dh),endpoint:d.endpoint,swScope:d.swScope,vapidKey:Is(d.vapidKey)}}}}),function(s,o,a,l){return r.apply(this,arguments)})})).close(),yield Aw(_1),yield Aw("fcm_vapid_details_db"),yield Aw("undefined"),Dre(e)?e:null;var r}),v1.apply(this,arguments)}function Dre(n){if(!n||!n.subscriptionOptions)return!1;const{subscriptionOptions:e}=n;return"number"==typeof n.createTime&&n.createTime>0&&"string"==typeof n.token&&n.token.length>0&&"string"==typeof e.auth&&e.auth.length>0&&"string"==typeof e.p256dh&&e.p256dh.length>0&&"string"==typeof e.endpoint&&e.endpoint.length>0&&"string"==typeof e.swScope&&e.swScope.length>0&&"string"==typeof e.vapidKey&&e.vapidKey.length>0}const ia="firebase-messaging-store";let b1=null;function w1(){return b1||(b1=Ip("firebase-messaging-database",1,{upgrade:(n,e)=>{0===e&&n.createObjectStore(ia)}})),b1}function HF(n){return C1.apply(this,arguments)}function C1(){return C1=M(function*(n){const e=x1(n),r=yield(yield w1()).transaction(ia).objectStore(ia).get(e);if(r)return r;{const i=yield Ire(n.appConfig.senderId);if(i)return yield S1(n,i),i}}),C1.apply(this,arguments)}function S1(n,e){return E1.apply(this,arguments)}function E1(){return E1=M(function*(n,e){const t=x1(n),i=(yield w1()).transaction(ia,"readwrite");return yield i.objectStore(ia).put(e,t),yield i.done,e}),E1.apply(this,arguments)}function kre(n){return T1.apply(this,arguments)}function T1(){return T1=M(function*(n){const e=x1(n),r=(yield w1()).transaction(ia,"readwrite");yield r.objectStore(ia).delete(e),yield r.done}),T1.apply(this,arguments)}function x1({appConfig:n}){return n.appId}const In=new qi("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});function Ore(n,e){return I1.apply(this,arguments)}function I1(){return I1=M(function*(n,e){var t;const r=yield k1(n),i=jF(e),s={method:"POST",headers:r,body:JSON.stringify(i)};let o;try{o=yield(yield fetch(M1(n.appConfig),s)).json()}catch(a){throw In.create("token-subscribe-failed",{errorInfo:null===(t=a)||void 0===t?void 0:t.toString()})}if(o.error)throw In.create("token-subscribe-failed",{errorInfo:o.error.message});if(!o.token)throw In.create("token-subscribe-no-token");return o.token}),I1.apply(this,arguments)}function Nre(n,e){return D1.apply(this,arguments)}function D1(){return D1=M(function*(n,e){var t;const r=yield k1(n),i=jF(e.subscriptionOptions),s={method:"PATCH",headers:r,body:JSON.stringify(i)};let o;try{o=yield(yield fetch(`${M1(n.appConfig)}/${e.token}`,s)).json()}catch(a){throw In.create("token-update-failed",{errorInfo:null===(t=a)||void 0===t?void 0:t.toString()})}if(o.error)throw In.create("token-update-failed",{errorInfo:o.error.message});if(!o.token)throw In.create("token-update-no-token");return o.token}),D1.apply(this,arguments)}function zF(n,e){return A1.apply(this,arguments)}function A1(){return A1=M(function*(n,e){var t;const i={method:"DELETE",headers:yield k1(n)};try{const o=yield(yield fetch(`${M1(n.appConfig)}/${e}`,i)).json();if(o.error)throw In.create("token-unsubscribe-failed",{errorInfo:o.error.message})}catch(s){throw In.create("token-unsubscribe-failed",{errorInfo:null===(t=s)||void 0===t?void 0:t.toString()})}}),A1.apply(this,arguments)}function M1({projectId:n}){return`https://fcmregistrations.googleapis.com/v1/projects/${n}/registrations`}function k1(n){return P1.apply(this,arguments)}function P1(){return P1=M(function*({appConfig:n,installations:e}){const t=yield e.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":n.apiKey,"x-goog-firebase-installations-auth":`FIS ${t}`})}),P1.apply(this,arguments)}function jF({p256dh:n,auth:e,endpoint:t,vapidKey:r}){const i={web:{endpoint:t,auth:e,p256dh:n}};return r!==BF&&(i.web.applicationPubKey=r),i}function Lre(n){return O1.apply(this,arguments)}function O1(){return O1=M(function*(n){const e=yield Vre(n.swRegistration,n.vapidKey),t={vapidKey:n.vapidKey,swScope:n.swRegistration.scope,endpoint:e.endpoint,auth:Is(e.getKey("auth")),p256dh:Is(e.getKey("p256dh"))},r=yield HF(n.firebaseDependencies);if(r){if(Bre(r.subscriptionOptions,t))return Date.now()>=r.createTime+6048e5?Fre(n,{token:r.token,createTime:Date.now(),subscriptionOptions:t}):r.token;try{yield zF(n.firebaseDependencies,r.token)}catch(i){console.warn(i)}return WF(n.firebaseDependencies,t)}return WF(n.firebaseDependencies,t)}),O1.apply(this,arguments)}function GF(n){return N1.apply(this,arguments)}function N1(){return N1=M(function*(n){const e=yield HF(n.firebaseDependencies);e&&(yield zF(n.firebaseDependencies,e.token),yield kre(n.firebaseDependencies));const t=yield n.swRegistration.pushManager.getSubscription();return!t||t.unsubscribe()}),N1.apply(this,arguments)}function Fre(n,e){return R1.apply(this,arguments)}function R1(){return R1=M(function*(n,e){try{const t=yield Nre(n.firebaseDependencies,e),r=Object.assign(Object.assign({},e),{token:t,createTime:Date.now()});return yield S1(n.firebaseDependencies,r),t}catch(t){throw yield GF(n),t}}),R1.apply(this,arguments)}function WF(n,e){return L1.apply(this,arguments)}function L1(){return L1=M(function*(n,e){const r={token:yield Ore(n,e),createTime:Date.now(),subscriptionOptions:e};return yield S1(n,r),r.token}),L1.apply(this,arguments)}function Vre(n,e){return F1.apply(this,arguments)}function F1(){return F1=M(function*(n,e){return(yield n.pushManager.getSubscription())||n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Tre(e)})}),F1.apply(this,arguments)}function Bre(n,e){return e.vapidKey===n.vapidKey&&e.endpoint===n.endpoint&&e.auth===n.auth&&e.p256dh===n.p256dh}function qF(n){const e={from:n.from,collapseKey:n.collapse_key,messageId:n.fcmMessageId};return function $re(n,e){if(!e.notification)return;n.notification={};const t=e.notification.title;t&&(n.notification.title=t);const r=e.notification.body;r&&(n.notification.body=r);const i=e.notification.image;i&&(n.notification.image=i)}(e,n),function Ure(n,e){!e.data||(n.data=e.data)}(e,n),function Hre(n,e){var t,r,i,s,o;if(!(e.fcmOptions||null!==(t=e.notification)&&void 0!==t&&t.click_action))return;n.fcmOptions={};const a=null!==(i=null===(r=e.fcmOptions)||void 0===r?void 0:r.link)&&void 0!==i?i:null===(s=e.notification)||void 0===s?void 0:s.click_action;a&&(n.fcmOptions.link=a);const l=null===(o=e.fcmOptions)||void 0===o?void 0:o.analytics_label;l&&(n.fcmOptions.analyticsLabel=l)}(e,n),e}function zre(n){return"object"==typeof n&&!!n&&$F in n}function YF(n,e){const t=[];for(let r=0;r<n.length;r++)t.push(n.charAt(r)),r<e.length&&t.push(e.charAt(r));return t.join("")}function V1(n){return In.create("missing-app-config-values",{valueName:n})}YF("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),YF("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Gre{constructor(e,t,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=function jre(n){if(!n||!n.options)throw V1("App Configuration Object");if(!n.name)throw V1("App Name");const e=["projectId","apiKey","appId","messagingSenderId"],{options:t}=n;for(const r of e)if(!t[r])throw V1(r);return{appName:n.name,projectId:t.projectId,apiKey:t.apiKey,appId:t.appId,senderId:t.messagingSenderId}}(e);this.firebaseDependencies={app:e,appConfig:i,installations:t,analyticsProvider:r}}_delete(){return Promise.resolve()}}function KF(n){return B1.apply(this,arguments)}function B1(){return B1=M(function*(n){var e;try{n.swRegistration=yield navigator.serviceWorker.register(vre,{scope:bre}),n.swRegistration.update().catch(()=>{})}catch(t){throw In.create("failed-service-worker-registration",{browserErrorMessage:null===(e=t)||void 0===e?void 0:e.message})}}),B1.apply(this,arguments)}function Wre(n,e){return $1.apply(this,arguments)}function $1(){return $1=M(function*(n,e){if(!e&&!n.swRegistration&&(yield KF(n)),e||!n.swRegistration){if(!(e instanceof ServiceWorkerRegistration))throw In.create("invalid-sw-registration");n.swRegistration=e}}),$1.apply(this,arguments)}function qre(n,e){return U1.apply(this,arguments)}function U1(){return U1=M(function*(n,e){e?n.vapidKey=e:n.vapidKey||(n.vapidKey=BF)}),U1.apply(this,arguments)}function H1(){return H1=M(function*(n,e){if(!navigator)throw In.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw In.create("permission-blocked");return yield qre(n,e?.vapidKey),yield Wre(n,e?.serviceWorkerRegistration),Lre(n)}),H1.apply(this,arguments)}function Yre(n,e,t){return z1.apply(this,arguments)}function z1(){return z1=M(function*(n,e,t){const r=Kre(e);(yield n.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:t[$F],message_name:t[Cre],message_time:t[Sre],message_device_time:Math.floor(Date.now()/1e3)})}),z1.apply(this,arguments)}function Kre(n){switch(n){case Wl.NOTIFICATION_CLICKED:return"notification_open";case Wl.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function j1(){return j1=M(function*(n,e){const t=e.data;if(!t.isFirebaseMessaging)return;n.onMessageHandler&&t.messageType===Wl.PUSH_RECEIVED&&("function"==typeof n.onMessageHandler?n.onMessageHandler(qF(t)):n.onMessageHandler.next(qF(t)));const r=t.data;zre(r)&&"1"===r[Ere]&&(yield Yre(n,t.messageType,r))}),j1.apply(this,arguments)}const XF="@firebase/messaging",Xre=n=>{const e=new Gre(n.getProvider("app").getImmediate(),n.getProvider("installations-internal").getImmediate(),n.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",t=>function Qre(n,e){return j1.apply(this,arguments)}(e,t)),e},Zre=n=>{const e=n.getProvider("messaging").getImmediate();return{getToken:r=>function QF(n,e){return H1.apply(this,arguments)}(e,r)}};function JF(){return G1.apply(this,arguments)}function G1(){return(G1=M(function*(){try{yield Qu()}catch{return!1}return typeof window<"u"&&Xo()&&yw()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}!function Jre(){ir(new zn("messaging",Xre,"PUBLIC")),ir(new zn("messaging-internal",Zre,"PRIVATE")),jt(XF,"0.9.19"),jt(XF,"0.9.19","esm2017")}();const Rp="analytics",nie="firebase_id",sie="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",e3="https://www.googletagmanager.com/gtag/js",Dn=new zl("@firebase/analytics");function t3(n){return Promise.all(n.map(e=>e.catch(t=>t)))}function oie(n,e){const t=document.createElement("script");t.src=`${e3}?l=${n}&id=${e}`,t.async=!0,document.head.appendChild(t)}function lie(n,e,t,r,i,s){return Y1.apply(this,arguments)}function Y1(){return Y1=M(function*(n,e,t,r,i,s){const o=r[i];try{if(o)yield e[o];else{const l=(yield t3(t)).find(c=>c.measurementId===i);l&&(yield e[l.appId])}}catch(a){Dn.error(a)}n("config",i,s)}),Y1.apply(this,arguments)}function cie(n,e,t,r,i){return K1.apply(this,arguments)}function K1(){return K1=M(function*(n,e,t,r,i){try{let s=[];if(i&&i.send_to){let o=i.send_to;Array.isArray(o)||(o=[o]);const a=yield t3(t);for(const l of o){const c=a.find(d=>d.measurementId===l),u=c&&e[c.appId];if(!u){s=[];break}s.push(u)}}0===s.length&&(s=Object.values(e)),yield Promise.all(s),n("event",r,i||{})}catch(s){Dn.error(s)}}),K1.apply(this,arguments)}function hie(n){const e=window.document.getElementsByTagName("script");for(const t of Object.values(e))if(t.src&&t.src.includes(e3)&&t.src.includes(n))return t;return null}const Vr=new qi("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.'}),n3=new class mie{constructor(e={},t=1e3){this.throttleMetadata=e,this.intervalMillis=t}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,t){this.throttleMetadata[e]=t}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}};function yie(n){return new Headers({Accept:"application/json","x-goog-api-key":n})}function _ie(n){return Q1.apply(this,arguments)}function Q1(){return Q1=M(function*(n){var e;const{appId:t,apiKey:r}=n,i={method:"GET",headers:yie(r)},s=sie.replace("{app-id}",t),o=yield fetch(s,i);if(200!==o.status&&304!==o.status){let a="";try{const l=yield o.json();null!==(e=l.error)&&void 0!==e&&e.message&&(a=l.error.message)}catch{}throw Vr.create("config-fetch-failed",{httpStatus:o.status,responseMessage:a})}return o.json()}),Q1.apply(this,arguments)}function vie(n){return X1.apply(this,arguments)}function X1(){return X1=M(function*(n,e=n3,t){const{appId:r,apiKey:i,measurementId:s}=n.options;if(!r)throw Vr.create("no-app-id");if(!i){if(s)return{measurementId:s,appId:r};throw Vr.create("no-api-key")}const o=e.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},a=new Cie;return setTimeout(M(function*(){a.abort()}),void 0!==t?t:6e4),r3({appId:r,apiKey:i,measurementId:s},o,a,e)}),X1.apply(this,arguments)}function r3(n,e,t){return Z1.apply(this,arguments)}function Z1(){return Z1=M(function*(n,{throttleEndTimeMillis:e,backoffCount:t},r,i=n3){var s,o;const{appId:a,measurementId:l}=n;try{yield bie(r,e)}catch(c){if(l)return Dn.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${l} provided in the "measurementId" field in the local Firebase config. [${null===(s=c)||void 0===s?void 0:s.message}]`),{appId:a,measurementId:l};throw c}try{const c=yield _ie(n);return i.deleteThrottleMetadata(a),c}catch(c){const u=c;if(!wie(u)){if(i.deleteThrottleMetadata(a),l)return Dn.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${l} provided in the "measurementId" field in the local Firebase config. [${u?.message}]`),{appId:a,measurementId:l};throw c}const d=503===Number(null===(o=u?.customData)||void 0===o?void 0:o.httpStatus)?Cw(t,i.intervalMillis,30):Cw(t,i.intervalMillis),h={throttleEndTimeMillis:Date.now()+d,backoffCount:t+1};return i.setThrottleMetadata(a,h),Dn.debug(`Calling attemptFetch again in ${d} millis`),r3(n,h,r,i)}}),Z1.apply(this,arguments)}function bie(n,e){return new Promise((t,r)=>{const i=Math.max(e-Date.now(),0),s=setTimeout(t,i);n.addEventListener(()=>{clearTimeout(s),r(Vr.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}function wie(n){if(!(n instanceof ki&&n.customData))return!1;const e=Number(n.customData.httpStatus);return 429===e||500===e||503===e||504===e}class Cie{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}let J1,sC;function eC(){return eC=M(function*(n,e,t,r,i){if(i&&i.global)n("event",t,r);else{const s=yield e;n("event",t,Object.assign(Object.assign({},r),{send_to:s}))}}),eC.apply(this,arguments)}function i3(n){sC=n}function s3(n){J1=n}function Die(){return oC.apply(this,arguments)}function oC(){return oC=M(function*(){var n;if(!Xo())return Dn.warn(Vr.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield Qu()}catch(e){return Dn.warn(Vr.create("indexeddb-unavailable",{errorInfo:null===(n=e)||void 0===n?void 0:n.toString()}).message),!1}return!0}),oC.apply(this,arguments)}function aC(){return aC=M(function*(n,e,t,r,i,s,o){var a;const l=vie(n);l.then(f=>{t[f.measurementId]=f.appId,n.options.measurementId&&f.measurementId!==n.options.measurementId&&Dn.warn(`The measurement ID in the local Firebase config (${n.options.measurementId}) does not match the measurement ID fetched from the server (${f.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(f=>Dn.error(f)),e.push(l);const c=Die().then(f=>{if(f)return r.getId()}),[u,d]=yield Promise.all([l,c]);hie(s)||oie(s,u.measurementId),sC&&(i("consent","default",sC),i3(void 0)),i("js",new Date);const h=null!==(a=o?.config)&&void 0!==a?a:{};return h.origin="firebase",h.update=!0,null!=d&&(h[nie]=d),i("config",u.measurementId,h),J1&&(i("set",J1),s3(void 0)),u.measurementId}),aC.apply(this,arguments)}class Mie{constructor(e){this.app=e}_delete(){return delete Ds[this.app.options.appId],Promise.resolve()}}let Ds={},o3=[];const a3={};let c3,As,Lp="dataLayer",lC=!1;function Pie(n,e,t){!function kie(){const n=[];if(mw()&&n.push("This is a browser extension environment."),yw()||n.push("Cookies are not available."),n.length>0){const e=n.map((r,i)=>`(${i+1}) ${r}`).join(" "),t=Vr.create("invalid-analytics-context",{errorInfo:e});Dn.warn(t.message)}}();const r=n.options.appId;if(!r)throw Vr.create("no-app-id");if(!n.options.apiKey){if(!n.options.measurementId)throw Vr.create("no-api-key");Dn.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${n.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=Ds[r])throw Vr.create("already-exists",{id:r});if(!lC){!function aie(n){let e=[];Array.isArray(window[n])?e=window[n]:window[n]=e}(Lp);const{wrappedGtag:s,gtagCore:o}=function die(n,e,t,r,i){let s=function(...o){window[r].push(arguments)};return window[i]&&"function"==typeof window[i]&&(s=window[i]),window[i]=function uie(n,e,t,r){function s(){return(s=M(function*(o,a,l){try{"event"===o?yield cie(n,e,t,a,l):"config"===o?yield lie(n,e,t,r,a,l):"consent"===o?n("consent","update",l):n("set",a)}catch(c){Dn.error(c)}})).apply(this,arguments)}return function i(o,a,l){return s.apply(this,arguments)}}(s,n,e,t),{gtagCore:s,wrappedGtag:window[i]}}(Ds,o3,a3,Lp,"gtag");As=s,c3=o,lC=!0}return Ds[r]=function Aie(n,e,t,r,i,s,o){return aC.apply(this,arguments)}(n,o3,a3,e,c3,Lp,t),new Mie(n)}function Nie(){return cC.apply(this,arguments)}function cC(){return(cC=M(function*(){if(mw()||!yw()||!Xo())return!1;try{return yield Qu()}catch{return!1}})).apply(this,arguments)}const u3="@firebase/analytics";!function Lie(){ir(new zn(Rp,(e,{options:t})=>Pie(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),t),"PUBLIC")),ir(new zn("analytics-internal",function n(e){try{const t=e.getProvider(Rp).getImmediate();return{logEvent:(r,i,s)=>function Rie(n,e,t,r){n=ai(n),function Sie(n,e,t,r,i){return eC.apply(this,arguments)}(As,Ds[n.app.options.appId],e,t,r).catch(i=>Dn.error(i))}(t,r,i,s)}}catch(t){throw Vr.create("interop-component-reg-failed",{reason:t})}},"PRIVATE")),jt(u3,"0.8.3"),jt(u3,"0.8.3","esm2017")}();class Fie extends Dt{constructor(e,t){super()}schedule(e,t=0){return this}}class uC extends Fie{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,r=0){return setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let i,r=!1;try{this.work(e)}catch(s){r=!0,i=!!s&&s||new Error(s)}if(r)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,t=this.scheduler,r=t.actions,i=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&r.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let h3=(()=>{class n{constructor(t,r=n.now){this.SchedulerAction=t,this.now=r}schedule(t,r=0,i){return new this.SchedulerAction(this,t).schedule(i,r)}}return n.now=()=>Date.now(),n})();class Yi extends h3{constructor(e,t=h3.now){super(e,()=>Yi.delegate&&Yi.delegate!==this?Yi.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,r){return Yi.delegate&&Yi.delegate!==this?Yi.delegate.schedule(e,t,r):super.schedule(e,t,r)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}const f3=new class Bie extends Yi{}(class Vie extends uC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,r=0){return null!==r&&r>0||null===r&&this.delay>0?super.requestAsyncId(e,t,r):e.flush(this)}}),$ie=f3,p3=new Yi(uC),Uie=p3;function eo(){}function Ju(n,e,t){return function(i){return i.lift(new Hie(n,e,t))}}class Hie{constructor(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}call(e,t){return t.subscribe(new zie(e,this.nextOrObserver,this.error,this.complete))}}class zie extends sn{constructor(e,t,r,i){super(e),this._tapNext=eo,this._tapError=eo,this._tapComplete=eo,this._tapError=r||eo,this._tapComplete=i||eo,Ih(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||eo,this._tapError=t.error||eo,this._tapComplete=t.complete||eo)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}let jie=1;const Gie=Promise.resolve(),Fp={};function g3(n){return n in Fp&&(delete Fp[n],!0)}const m3={setImmediate(n){const e=jie++;return Fp[e]=!0,Gie.then(()=>g3(e)&&n()),e},clearImmediate(n){g3(n)}},dC=new class qie extends Yi{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let r,i=-1,s=t.length;e=e||t.shift();do{if(r=e.execute(e.state,e.delay))break}while(++i<s&&(e=t.shift()));if(this.active=!1,r){for(;++i<s&&(e=t.shift());)e.unsubscribe();throw r}}}(class Wie extends uC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,r=0){return null!==r&&r>0?super.requestAsyncId(e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=m3.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,r=0){if(null!==r&&r>0||null===r&&this.delay>0)return super.recycleAsyncId(e,t,r);0===e.actions.length&&(m3.clearImmediate(t),e.scheduled=void 0)}});function hC(n){return!zc(n)&&n-parseFloat(n)+1>=0}class Vp extends et{constructor(e,t=0,r=dC){super(),this.source=e,this.delayTime=t,this.scheduler=r,(!hC(t)||t<0)&&(this.delayTime=0),(!r||"function"!=typeof r.schedule)&&(this.scheduler=dC)}static create(e,t=0,r=dC){return new Vp(e,t,r)}static dispatch(e){const{source:t,subscriber:r}=e;return this.add(t.subscribe(r))}_subscribe(e){return this.scheduler.schedule(Vp.dispatch,this.delayTime,{source:this.source,subscriber:e})}}function y3(n,e=0){return function(r){return r.lift(new Yie(n,e))}}class Yie{constructor(e,t){this.scheduler=e,this.delay=t}call(e,t){return new Vp(t,this.delay,this.scheduler).subscribe(e)}}const Kie=new et(n=>n.complete());function fC(n){return n?function Qie(n){return new et(e=>n.schedule(()=>e.complete()))}(n):Kie}function Zie({error:n,subscriber:e}){e.error(n)}class li{constructor(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}}accept(e,t,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,r)}toObservable(){switch(this.kind){case"N":return Hn(this.value);case"E":return function Xie(n,e){return new et(e?t=>e.schedule(Zie,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return fC()}throw new Error("unexpected notification kind value")}static createNext(e){return typeof e<"u"?new li("N",e):li.undefinedValueNotification}static createError(e){return new li("E",void 0,e)}static createComplete(){return li.completeNotification}}function _3(n,e=0){return function(r){return r.lift(new Jie(n,e))}}li.completeNotification=new li("C"),li.undefinedValueNotification=new li("N",void 0);class Jie{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new Bp(e,this.scheduler,this.delay))}}class Bp extends sn{constructor(e,t,r=0){super(e),this.scheduler=t,this.delay=r}static dispatch(e){const{notification:t,destination:r}=e;t.observe(r),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Bp.dispatch,this.delay,new ese(e,this.destination)))}_next(e){this.scheduleMessage(li.createNext(e))}_error(e){this.scheduleMessage(li.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(li.createComplete()),this.unsubscribe()}}class ese{constructor(e,t){this.notification=e,this.destination=t}}const pC=new pl("7.4.1"),gC="__angularfire_symbol__analyticsIsSupportedValue",mC="__angularfire_symbol__analyticsIsSupported",yC="__angularfire_symbol__remoteConfigIsSupportedValue",_C="__angularfire_symbol__remoteConfigIsSupported",vC="__angularfire_symbol__messagingIsSupportedValue",bC="__angularfire_symbol__messagingIsSupported";globalThis[mC]||(globalThis[mC]=Nie().then(n=>globalThis[gC]=n).catch(()=>globalThis[gC]=!1)),globalThis[bC]||(globalThis[bC]=JF().then(n=>globalThis[vC]=n).catch(()=>globalThis[vC]=!1)),globalThis[_C]||(globalThis[_C]=_re().then(n=>globalThis[yC]=n).catch(()=>globalThis[yC]=!1));const SC=(n,e)=>{const t=e?[e]:hF(),r=[];return t.forEach(i=>{i.container.getProvider(n).instances.forEach(o=>{r.includes(o)||r.push(o)})}),r};function ql(){}class v3{constructor(e,t=f3){this.zone=e,this.delegate=t}now(){return this.delegate.now()}schedule(e,t,r){const i=this.zone;return this.delegate.schedule(function(o){i.runGuarded(()=>{e.apply(this,[o])})},t,r)}}class tse{constructor(e){this.zone=e,this.task=null}call(e,t){const r=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",ql,{},ql,ql)),t.pipe(Ju({next:r,complete:r,error:r})).subscribe(e).add(r)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let b3=(()=>{class n{constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new v3(Zone.current)),this.insideAngular=t.run(()=>new v3(Zone.current,p3)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return n.\u0275fac=function(t){return new(t||n)(ae(vt))},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sa(){const n=globalThis.\u0275AngularFireScheduler;if(!n)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return n}function nse(n){return sa().ngZone.runOutsideAngular(()=>n())}function oa(n){return sa().ngZone.run(()=>n())}function rse(n){return sa(),function ise(n){return function(t){return(t=t.lift(new tse(n.ngZone))).pipe(y3(n.outsideAngular),_3(n.insideAngular))}}(sa())(n)}const sse=(n,e)=>function(){const r=arguments;return e&&setTimeout(()=>{"scheduled"===e.state&&e.invoke()},10),oa(()=>n.apply(void 0,r))},ci=(n,e)=>function(){let t;const r=arguments;for(let s=0;s<arguments.length;s++)"function"==typeof r[s]&&(e&&(t||(t=oa(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",ql,{},ql,ql)))),r[s]=sse(r[s],t));const i=nse(()=>n.apply(this,r));if(!e){if(i instanceof et){const s=sa();return i.pipe(y3(s.outsideAngular),_3(s.insideAngular))}return oa(()=>i)}return i instanceof et?i.pipe(rse):i instanceof Promise?oa(()=>new Promise((s,o)=>i.then(a=>oa(()=>s(a)),a=>oa(()=>o(a))))):"function"==typeof i&&t?function(){return setTimeout(()=>{t&&"scheduled"===t.state&&t.invoke()},10),i.apply(this,arguments)}:oa(()=>i)};class Yl{constructor(e){return e}}class w3{constructor(){return hF()}}const EC=new ye("angularfire2._apps"),ase={provide:Yl,useFactory:function ose(n){return n&&1===n.length?n[0]:new Yl(dF())},deps:[[new hr,EC]]},lse={provide:w3,deps:[[new hr,EC]]};function cse(n){return(e,t)=>{const r=e.runOutsideAngular(()=>n(t));return new Yl(r)}}let use=(()=>{class n{constructor(t){jt("angularfire",pC.full,"core"),jt("angularfire",pC.full,"app"),jt("angular",$k.full,t.toString())}}return n.\u0275fac=function(t){return new(t||n)(ae(Bl))},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({providers:[ase,lse]}),n})();function dse(n,...e){return{ngModule:use,providers:[{provide:EC,useFactory:cse(n),multi:!0,deps:[vt,gr,b3,...e]}]}}const hse=ci(uF,!0);function S3(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]])}return t}const gse=function x3(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},I3=new qi("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),D3=new zl("@firebase/auth");function Up(n,...e){D3.logLevel<=je.ERROR&&D3.error(`Auth (${kp}): ${n}`,...e)}function vr(n,...e){throw xC(n,...e)}function Ki(n,...e){return xC(n,...e)}function A3(n,e,t){const r=Object.assign(Object.assign({},gse()),{[e]:t});return new qi("auth","Firebase",r).create(e,{appName:n.name})}function xC(n,...e){if("string"!=typeof n){const t=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=n.name),n._errorFactory.create(t,...r)}return I3.create(n,...e)}function te(n,e,...t){if(!n)throw xC(e,...t)}function Qi(n){const e="INTERNAL ASSERTION FAILED: "+n;throw Up(e),new Error(e)}function to(n,e){n||Qi(e)}const M3=new Map;function Ms(n){to(n instanceof Function,"Expected a class definition");let e=M3.get(n);return e?(to(e instanceof n,"Instance stored in cache mismatched with class"),e):(e=new n,M3.set(n,e),e)}function k3(){var n;return typeof self<"u"&&(null===(n=self.location)||void 0===n?void 0:n.protocol)||null}class td{constructor(e,t){this.shortDelay=e,this.longDelay=t,to(t>e,"Short delay should be less than long delay!"),this.isMobile=function Oee(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Fr())}()||function Ree(){return"object"==typeof navigator&&"ReactNative"===navigator.product}()}get(){return function _se(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function IC(){return"http:"===k3()||"https:"===k3()}()||mw()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}class P3{static initialize(e,t,r){this.fetchImpl=e,t&&(this.headersImpl=t),r&&(this.responseImpl=r)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:void Qi("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:void Qi("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:void Qi("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const bse={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",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_REQ_TYPE:"internal-error",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",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",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",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_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error"},wse=new td(3e4,6e4);function yn(n,e,t,r){return AC.apply(this,arguments)}function AC(){return AC=M(function*(n,e,t,r,i={}){return O3(n,i,M(function*(){let s={},o={};r&&("GET"===e?o=r:s={body:JSON.stringify(r)});const a=nF(Object.assign({key:n.config.apiKey},o)).slice(1),l=yield n._getAdditionalHeaders();return l["Content-Type"]="application/json",n.languageCode&&(l["X-Firebase-Locale"]=n.languageCode),P3.fetch()(N3(n,n.config.apiHost,t,a),Object.assign({method:e,headers:l,referrerPolicy:"no-referrer"},s))}))}),AC.apply(this,arguments)}function O3(n,e,t){return MC.apply(this,arguments)}function MC(){return MC=M(function*(n,e,t){n._canInitEmulator=!1;const r=Object.assign(Object.assign({},bse),e);try{const i=new Cse(n),s=yield Promise.race([t(),i.promise]);i.clearNetworkTimeout();const o=yield s.json();if("needConfirmation"in o)throw nd(n,"account-exists-with-different-credential",o);if(s.ok&&!("errorMessage"in o))return o;{const a=s.ok?o.errorMessage:o.error.message,[l,c]=a.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===l)throw nd(n,"credential-already-in-use",o);if("EMAIL_EXISTS"===l)throw nd(n,"email-already-in-use",o);if("USER_DISABLED"===l)throw nd(n,"user-disabled",o);const u=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw A3(n,u,c);vr(n,u)}}catch(i){if(i instanceof ki)throw i;vr(n,"network-request-failed")}}),MC.apply(this,arguments)}function N3(n,e,t,r){const i=`${e}${t}?${r}`;return n.config.emulator?function DC(n,e){to(n.emulator,"Emulator should always be set here");const{url:t}=n.emulator;return e?`${t}${e.startsWith("/")?e.slice(1):e}`:t}(n.config,i):`${n.config.apiScheme}://${i}`}class Cse{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((t,r)=>{this.timer=setTimeout(()=>r(Ki(this.auth,"network-request-failed")),wse.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function nd(n,e,t){const r={appName:n.name};t.email&&(r.email=t.email),t.phoneNumber&&(r.phoneNumber=t.phoneNumber);const i=Ki(n,e,r);return i.customData._tokenResponse=t,i}function PC(){return PC=M(function*(n,e){return yn(n,"POST","/v1/accounts:delete",e)}),PC.apply(this,arguments)}function Tse(n,e){return NC.apply(this,arguments)}function NC(){return NC=M(function*(n,e){return yn(n,"POST","/v1/accounts:lookup",e)}),NC.apply(this,arguments)}function rd(n){if(n)try{const e=new Date(Number(n));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}function RC(){return RC=M(function*(n,e=!1){const t=ai(n),r=yield t.getIdToken(e),i=Hp(r);te(i&&i.exp&&i.auth_time&&i.iat,t.auth,"internal-error");const s="object"==typeof i.firebase?i.firebase:void 0,o=s?.sign_in_provider;return{claims:i,token:r,authTime:rd(LC(i.auth_time)),issuedAtTime:rd(LC(i.iat)),expirationTime:rd(LC(i.exp)),signInProvider:o||null,signInSecondFactor:s?.sign_in_second_factor||null}}),RC.apply(this,arguments)}function LC(n){return 1e3*Number(n)}function Hp(n){var e;const[t,r,i]=n.split(".");if(void 0===t||void 0===r||void 0===i)return Up("JWT malformed, contained fewer than 3 sections"),null;try{const s=Ep(r);return s?JSON.parse(s):(Up("Failed to decode base64 JWT payload"),null)}catch(s){return Up("Caught error parsing JWT payload as JSON",null===(e=s)||void 0===e?void 0:e.toString()),null}}function Ps(n,e){return FC.apply(this,arguments)}function FC(){return FC=M(function*(n,e,t=!1){if(t)return e;try{return yield e}catch(r){throw r instanceof ki&&Dse(r)&&n.auth.currentUser===n&&(yield n.auth.signOut()),r}}),FC.apply(this,arguments)}function Dse({code:n}){return"auth/user-disabled"===n||"auth/user-token-expired"===n}class Ase{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){!this.isRunning||(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),r}{this.errorBackoff=3e4;const i=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,i)}}schedule(e=!1){var t=this;if(!this.isRunning)return;const r=this.getInterval(e);this.timerId=setTimeout(M(function*(){yield t.iteration()}),r)}iteration(){var e=this;return M(function*(){var t;try{yield e.user.getIdToken(!0)}catch(r){return void("auth/network-request-failed"===(null===(t=r)||void 0===t?void 0:t.code)&&e.schedule(!0))}e.schedule()})()}}class R3{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=rd(this.lastLoginAt),this.creationTime=rd(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function id(n){return VC.apply(this,arguments)}function VC(){return VC=M(function*(n){var e;const t=n.auth,r=yield n.getIdToken(),i=yield Ps(n,Tse(t,{idToken:r}));te(i?.users.length,t,"internal-error");const s=i.users[0];n._notifyReloadListener(s);const o=null!==(e=s.providerUserInfo)&&void 0!==e&&e.length?Pse(s.providerUserInfo):[],a=kse(n.providerData,o),u=!!n.isAnonymous&&!(n.email&&s.passwordHash||a?.length),d={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:a,metadata:new R3(s.createdAt,s.lastLoginAt),isAnonymous:u};Object.assign(n,d)}),VC.apply(this,arguments)}function BC(){return BC=M(function*(n){const e=ai(n);yield id(e),yield e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}),BC.apply(this,arguments)}function kse(n,e){return[...n.filter(r=>!e.some(i=>i.providerId===r.providerId)),...e]}function Pse(n){return n.map(e=>{var{providerId:t}=e,r=S3(e,["providerId"]);return{providerId:t,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}function $C(){return $C=M(function*(n,e){const t=yield O3(n,{},M(function*(){const r=nF({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:s}=n.config,o=N3(n,i,"/v1/token",`key=${s}`),a=yield n._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",P3.fetch()(o,{method:"POST",headers:a,body:r})}));return{accessToken:t.access_token,expiresIn:t.expires_in,refreshToken:t.refresh_token}}),$C.apply(this,arguments)}class sd{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){te(e.idToken,"internal-error"),te(typeof e.idToken<"u","internal-error"),te(typeof e.refreshToken<"u","internal-error");const t="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):function Ise(n){const e=Hp(n);return te(e,"internal-error"),te(typeof e.exp<"u","internal-error"),te(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}getToken(e,t=!1){var r=this;return M(function*(){return te(!r.accessToken||r.refreshToken,e,"user-token-expired"),t||!r.accessToken||r.isExpired?r.refreshToken?(yield r.refresh(e,r.refreshToken),r.accessToken):null:r.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(e,t){var r=this;return M(function*(){const{accessToken:i,refreshToken:s,expiresIn:o}=yield function Ose(n,e){return $C.apply(this,arguments)}(e,t);r.updateTokensAndExpiration(i,s,Number(o))})()}updateTokensAndExpiration(e,t,r){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*r}static fromJSON(e,t){const{refreshToken:r,accessToken:i,expirationTime:s}=t,o=new sd;return r&&(te("string"==typeof r,"internal-error",{appName:e}),o.refreshToken=r),i&&(te("string"==typeof i,"internal-error",{appName:e}),o.accessToken=i),s&&(te("number"==typeof s,"internal-error",{appName:e}),o.expirationTime=s),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new sd,this.toJSON())}_performRefresh(){return Qi("not implemented")}}function no(n,e){te("string"==typeof n||typeof n>"u","internal-error",{appName:e})}class aa{constructor(e){var{uid:t,auth:r,stsTokenManager:i}=e,s=S3(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Ase(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=s.displayName||null,this.email=s.email||null,this.emailVerified=s.emailVerified||!1,this.phoneNumber=s.phoneNumber||null,this.photoURL=s.photoURL||null,this.isAnonymous=s.isAnonymous||!1,this.tenantId=s.tenantId||null,this.providerData=s.providerData?[...s.providerData]:[],this.metadata=new R3(s.createdAt||void 0,s.lastLoginAt||void 0)}getIdToken(e){var t=this;return M(function*(){const r=yield Ps(t,t.stsTokenManager.getToken(t.auth,e));return te(r,t.auth,"internal-error"),t.accessToken!==r&&(t.accessToken=r,yield t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)),r})()}getIdTokenResult(e){return function xse(n){return RC.apply(this,arguments)}(this,e)}reload(){return function Mse(n){return BC.apply(this,arguments)}(this)}_assign(e){this!==e&&(te(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(t=>Object.assign({},t)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){return new aa(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}))}_onReload(e){te(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(e,t=!1){var r=this;return M(function*(){let i=!1;e.idToken&&e.idToken!==r.stsTokenManager.accessToken&&(r.stsTokenManager.updateFromServerResponse(e),i=!0),t&&(yield id(r)),yield r.auth._persistUserIfCurrent(r),i&&r.auth._notifyListenersIfCurrent(r)})()}delete(){var e=this;return M(function*(){const t=yield e.getIdToken();return yield Ps(e,function Sse(n,e){return PC.apply(this,arguments)}(e.auth,{idToken:t})),e.stsTokenManager.clearRefreshToken(),e.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var r,i,s,o,a,l,c,u;const d=null!==(r=t.displayName)&&void 0!==r?r:void 0,h=null!==(i=t.email)&&void 0!==i?i:void 0,f=null!==(s=t.phoneNumber)&&void 0!==s?s:void 0,p=null!==(o=t.photoURL)&&void 0!==o?o:void 0,g=null!==(a=t.tenantId)&&void 0!==a?a:void 0,m=null!==(l=t._redirectEventId)&&void 0!==l?l:void 0,_=null!==(c=t.createdAt)&&void 0!==c?c:void 0,b=null!==(u=t.lastLoginAt)&&void 0!==u?u:void 0,{uid:y,emailVerified:T,isAnonymous:D,providerData:A,stsTokenManager:P}=t;te(y&&P,e,"internal-error");const j=sd.fromJSON(this.name,P);te("string"==typeof y,e,"internal-error"),no(d,e.name),no(h,e.name),te("boolean"==typeof T,e,"internal-error"),te("boolean"==typeof D,e,"internal-error"),no(f,e.name),no(p,e.name),no(g,e.name),no(m,e.name),no(_,e.name),no(b,e.name);const Y=new aa({uid:y,auth:e,email:h,emailVerified:T,displayName:d,isAnonymous:D,photoURL:p,phoneNumber:f,tenantId:g,stsTokenManager:j,createdAt:_,lastLoginAt:b});return A&&Array.isArray(A)&&(Y.providerData=A.map(z=>Object.assign({},z))),m&&(Y._redirectEventId=m),Y}static _fromIdTokenResponse(e,t,r=!1){return M(function*(){const i=new sd;i.updateFromServerResponse(t);const s=new aa({uid:t.localId,auth:e,stsTokenManager:i,isAnonymous:r});return yield id(s),s})()}}const L3=(()=>{class n{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return M(function*(){return!0})()}_set(t,r){var i=this;return M(function*(){i.storage[t]=r})()}_get(t){var r=this;return M(function*(){const i=r.storage[t];return void 0===i?null:i})()}_remove(t){var r=this;return M(function*(){delete r.storage[t]})()}_addListener(t,r){}_removeListener(t,r){}}return n.type="NONE",n})();function zp(n,e,t){return`firebase:${n}:${e}:${t}`}class Ql{constructor(e,t,r){this.persistence=e,this.auth=t,this.userKey=r;const{config:i,name:s}=this.auth;this.fullUserKey=zp(this.userKey,i.apiKey,s),this.fullPersistenceKey=zp("persistence",i.apiKey,s),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}getCurrentUser(){var e=this;return M(function*(){const t=yield e.persistence._get(e.fullUserKey);return t?aa._fromJSON(e.auth,t):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(e){var t=this;return M(function*(){if(t.persistence===e)return;const r=yield t.getCurrentUser();return yield t.removeCurrentUser(),t.persistence=e,r?t.setCurrentUser(r):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(e,t,r="authUser"){return M(function*(){if(!t.length)return new Ql(Ms(L3),e,r);const i=(yield Promise.all(t.map(function(){var c=M(function*(u){if(yield u._isAvailable())return u});return function(u){return c.apply(this,arguments)}}()))).filter(c=>c);let s=i[0]||Ms(L3);const o=zp(r,e.config.apiKey,e.name);let a=null;for(const c of t)try{const u=yield c._get(o);if(u){const d=aa._fromJSON(e,u);c!==s&&(a=d),s=c;break}}catch{}const l=i.filter(c=>c._shouldAllowMigration);return s._shouldAllowMigration&&l.length?(s=l[0],a&&(yield s._set(o,a.toJSON())),yield Promise.all(t.map(function(){var c=M(function*(u){if(u!==s)try{yield u._remove(o)}catch{}});return function(u){return c.apply(this,arguments)}}())),new Ql(s,e,r)):new Ql(s,e,r)})()}}function F3(n){const e=n.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(function $3(n=Fr()){return/iemobile/i.test(n)}(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(function V3(n=Fr()){return/firefox\//i.test(n)}(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(function H3(n=Fr()){return/blackberry/i.test(n)}(e))return"Blackberry";if(function z3(n=Fr()){return/webos/i.test(n)}(e))return"Webos";if(function UC(n=Fr()){const e=n.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}(e))return"Safari";if((e.includes("chrome/")||function B3(n=Fr()){return/crios\//i.test(n)}(e))&&!e.includes("edge/"))return"Chrome";if(function U3(n=Fr()){return/android/i.test(n)}(e))return"Android";{const r=n.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===r?.length)return r[1]}return"Other"}function j3(n,e=[]){let t;switch(n){case"Browser":t=F3(Fr());break;case"Worker":t=`${F3(Fr())}-${n}`;break;default:t=n}const r=e.length?e.join(","):"FirebaseCore-web";return`${t}/JsCore/${kp}/${r}`}class Lse{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const r=s=>new Promise((o,a)=>{try{o(e(s))}catch(l){a(l)}});r.onAbort=t,this.queue.push(r);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}runMiddleware(e){var t=this;return M(function*(){var r;if(t.auth.currentUser===e)return;const i=[];try{for(const s of t.queue)yield s(e),s.onAbort&&i.push(s.onAbort)}catch(s){i.reverse();for(const o of i)try{o()}catch{}throw t.auth._errorFactory.create("login-blocked",{originalMessage:null===(r=s)||void 0===r?void 0:r.message})}})()}}class Fse{constructor(e,t,r){this.app=e,this.heartbeatServiceProvider=t,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new G3(this),this.idTokenSubscription=new G3(this),this.beforeStateQueue=new Lse(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=I3,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,t){var r=this;return t&&(this._popupRedirectResolver=Ms(t)),this._initializationPromise=this.queue(M(function*(){var i,s;if(!r._deleted&&(r.persistenceManager=yield Ql.create(r,e),!r._deleted)){if(null!==(i=r._popupRedirectResolver)&&void 0!==i&&i._shouldInitProactively)try{yield r._popupRedirectResolver._initialize(r)}catch{}yield r.initializeCurrentUser(t),r.lastNotifiedUid=(null===(s=r.currentUser)||void 0===s?void 0:s.uid)||null,!r._deleted&&(r._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var e=this;return M(function*(){if(e._deleted)return;const t=yield e.assertedPersistence.getCurrentUser();if(e.currentUser||t){if(e.currentUser&&t&&e.currentUser.uid===t.uid)return e._currentUser._assign(t),void(yield e.currentUser.getIdToken());yield e._updateCurrentUser(t,!0)}})()}initializeCurrentUser(e){var t=this;return M(function*(){var r;const i=yield t.assertedPersistence.getCurrentUser();let s=i,o=!1;if(e&&t.config.authDomain){yield t.getOrInitRedirectPersistenceManager();const a=null===(r=t.redirectUser)||void 0===r?void 0:r._redirectEventId,l=s?._redirectEventId,c=yield t.tryRedirectSignIn(e);(!a||a===l)&&c?.user&&(s=c.user,o=!0)}if(!s)return t.directlySetCurrentUser(null);if(!s._redirectEventId){if(o)try{yield t.beforeStateQueue.runMiddleware(s)}catch(a){s=i,t._popupRedirectResolver._overrideRedirectResult(t,()=>Promise.reject(a))}return s?t.reloadAndSetCurrentUserOrClear(s):t.directlySetCurrentUser(null)}return te(t._popupRedirectResolver,t,"argument-error"),yield t.getOrInitRedirectPersistenceManager(),t.redirectUser&&t.redirectUser._redirectEventId===s._redirectEventId?t.directlySetCurrentUser(s):t.reloadAndSetCurrentUserOrClear(s)})()}tryRedirectSignIn(e){var t=this;return M(function*(){let r=null;try{r=yield t._popupRedirectResolver._completeRedirectFn(t,e,!0)}catch{yield t._setRedirectUser(null)}return r})()}reloadAndSetCurrentUserOrClear(e){var t=this;return M(function*(){var r;try{yield id(e)}catch(i){if("auth/network-request-failed"!==(null===(r=i)||void 0===r?void 0:r.code))return t.directlySetCurrentUser(null)}return t.directlySetCurrentUser(e)})()}useDeviceLanguage(){this.languageCode=function vse(){if(typeof navigator>"u")return null;const n=navigator;return n.languages&&n.languages[0]||n.language||null}()}_delete(){var e=this;return M(function*(){e._deleted=!0})()}updateCurrentUser(e){var t=this;return M(function*(){const r=e?ai(e):null;return r&&te(r.auth.config.apiKey===t.config.apiKey,t,"invalid-user-token"),t._updateCurrentUser(r&&r._clone(t))})()}_updateCurrentUser(e,t=!1){var r=this;return M(function*(){if(!r._deleted)return e&&te(r.tenantId===e.tenantId,r,"tenant-id-mismatch"),t||(yield r.beforeStateQueue.runMiddleware(e)),r.queue(M(function*(){yield r.directlySetCurrentUser(e),r.notifyAuthListeners()}))})()}signOut(){var e=this;return M(function*(){return yield e.beforeStateQueue.runMiddleware(null),(e.redirectPersistenceManager||e._popupRedirectResolver)&&(yield e._setRedirectUser(null)),e._updateCurrentUser(null,!0)})()}setPersistence(e){var t=this;return this.queue(M(function*(){yield t.assertedPersistence.setPersistence(Ms(e))}))}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new qi("auth","Firebase",e())}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}_setRedirectUser(e,t){var r=this;return M(function*(){const i=yield r.getOrInitRedirectPersistenceManager(t);return null===e?i.removeCurrentUser():i.setCurrentUser(e)})()}getOrInitRedirectPersistenceManager(e){var t=this;return M(function*(){if(!t.redirectPersistenceManager){const r=e&&Ms(e)||t._popupRedirectResolver;te(r,t,"argument-error"),t.redirectPersistenceManager=yield Ql.create(t,[Ms(r._redirectPersistence)],"redirectUser"),t.redirectUser=yield t.redirectPersistenceManager.getCurrentUser()}return t.redirectPersistenceManager})()}_redirectUserForId(e){var t=this;return M(function*(){var r,i;return t._isInitialized&&(yield t.queue(M(function*(){}))),(null===(r=t._currentUser)||void 0===r?void 0:r._redirectEventId)===e?t._currentUser:(null===(i=t.redirectUser)||void 0===i?void 0:i._redirectEventId)===e?t.redirectUser:null})()}_persistUserIfCurrent(e){var t=this;return M(function*(){if(e===t.currentUser)return t.queue(M(function*(){return t.directlySetCurrentUser(e)}))})()}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,r,i){if(this._deleted)return()=>{};const s="function"==typeof t?t:t.next.bind(t),o=this._isInitialized?Promise.resolve():this._initializationPromise;return te(o,this,"internal-error"),o.then(()=>s(this.currentUser)),"function"==typeof t?e.addObserver(t,r,i):e.addObserver(t)}directlySetCurrentUser(e){var t=this;return M(function*(){t.currentUser&&t.currentUser!==e&&t._currentUser._stopProactiveRefresh(),e&&t.isProactiveRefreshEnabled&&e._startProactiveRefresh(),t.currentUser=e,e?yield t.assertedPersistence.setCurrentUser(e):yield t.assertedPersistence.removeCurrentUser()})()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return te(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=j3(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var e=this;return M(function*(){var t;const r={"X-Client-Version":e.clientVersion};e.app.options.appId&&(r["X-Firebase-gmpid"]=e.app.options.appId);const i=yield null===(t=e.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getHeartbeatsHeader();return i&&(r["X-Firebase-Client"]=i),r})()}}class G3{constructor(e){this.auth=e,this.observer=null,this.addObserver=function Yee(n,e){const t=new Kee(n,e);return t.subscribe.bind(t)}(t=>this.observer=t)}get next(){return te(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}(function u4(n){return`__${n}${Math.floor(1e6*Math.random())}`})("rcb"),new td(3e4,6e4),new td(2e3,1e4),new td(3e4,6e4),new td(5e3,15e3);var C4="@firebase/auth",S4="0.20.10";class Aae{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}getToken(e){var t=this;return M(function*(){return t.assertAuthConfigured(),yield t.auth._initializationPromise,t.auth.currentUser?{accessToken:yield t.auth.currentUser.getIdToken(e)}:null})()}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged(r=>{var i;e((null===(i=r)||void 0===i?void 0:i.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);!t||(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){te(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}_w(),function kae(n){ir(new zn("auth",(e,{options:t})=>{const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),{apiKey:s,authDomain:o}=r.options;return((a,l)=>{te(s&&!s.includes(":"),"invalid-api-key",{appName:a.name}),te(!o?.includes(":"),"argument-error",{appName:a.name});const c={apiKey:s,authDomain:o,clientPlatform:n,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:j3(n)},u=new Fse(a,l,c);return function yse(n,e){const t=e?.persistence||[],r=(Array.isArray(t)?t:[t]).map(Ms);e?.errorMap&&n._updateErrorMap(e.errorMap),n._initializeWithPersistence(r,e?.popupRedirectResolver)}(u,t),u})(r,i)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,r)=>{e.getProvider("auth-internal").initialize()})),ir(new zn("auth-internal",e=>{const t=function br(n){return ai(n)}(e.getProvider("auth").getImmediate());return new Aae(t)},"PRIVATE").setInstantiationMode("EXPLICIT")),jt(C4,S4,function Mae(n){switch(n){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(n)),jt(C4,S4,"esm2017")}("Browser");class x4{constructor(){return SC("auth")}}const I4=new Map,Vae={activated:!1,tokenObservers:[]},Bae={initialized:!1,enabled:!1};function _n(n){return I4.get(n)||Vae}function di(n,e){I4.set(n,e)}function tg(){return Bae}class jae{constructor(e,t,r,i,s){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=r,this.lowerBound=i,this.upperBound=s,this.pending=null,this.nextErrorWaitInterval=i,i>s)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(e){var t=this;return M(function*(){t.stop();try{t.pending=new Tp,yield function Gae(n){return new Promise(e=>{setTimeout(e,n)})}(t.getNextRun(e)),t.pending.resolve(),yield t.pending.promise,t.pending=new Tp,yield t.operation(),t.pending.resolve(),yield t.pending.promise,t.process(!0).catch(()=>{})}catch(r){t.retryPolicy(r)?t.process(!1).catch(()=>{}):t.stop()}})()}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const t=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),t}}}const sr=new qi("appCheck","AppCheck",{"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"});function A4(n){if(!_n(n).activated)throw sr.create("use-before-activation",{appName:n.name})}function TE(n,e){return xE.apply(this,arguments)}function xE(){return xE=M(function*({url:n,body:e},t){var r,i;const s={"Content-Type":"application/json"},o=t.getImmediate({optional:!0});if(o){const f=yield o.getHeartbeatsHeader();f&&(s["X-Firebase-Client"]=f)}const a={method:"POST",body:JSON.stringify(e),headers:s};let l,c;try{l=yield fetch(n,a)}catch(f){throw sr.create("fetch-network-error",{originalErrorMessage:null===(r=f)||void 0===r?void 0:r.message})}if(200!==l.status)throw sr.create("fetch-status-error",{httpStatus:l.status});try{c=yield l.json()}catch(f){throw sr.create("fetch-parse-error",{originalErrorMessage:null===(i=f)||void 0===i?void 0:i.message})}const u=c.ttl.match(/^([\d.]+)(s)$/);if(!u||!u[2]||isNaN(Number(u[1])))throw sr.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${c.ttl}`});const d=1e3*Number(u[1]),h=Date.now();return{token:c.token,expireTimeMillis:h+d,issuedAtTimeMillis:h}}),xE.apply(this,arguments)}function Kae(n,e){const{projectId:t,appId:r,apiKey:i}=n.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${t}/apps/${r}:exchangeDebugToken?key=${i}`,body:{debug_token:e}}}const ud="firebase-app-check-store";let sg=null;function k4(){return sg||(sg=new Promise((n,e)=>{var t;try{const r=indexedDB.open("firebase-app-check-database",1);r.onsuccess=i=>{n(i.target.result)},r.onerror=i=>{var s;e(sr.create("storage-open",{originalErrorMessage:null===(s=i.target.error)||void 0===s?void 0:s.message}))},r.onupgradeneeded=i=>{0===i.oldVersion&&i.target.result.createObjectStore(ud,{keyPath:"compositeKey"})}}catch(r){e(sr.create("storage-open",{originalErrorMessage:null===(t=r)||void 0===t?void 0:t.message}))}}),sg)}function IE(){return IE=M(function*(n,e){const r=(yield k4()).transaction(ud,"readwrite"),s=r.objectStore(ud).put({compositeKey:n,value:e});return new Promise((o,a)=>{s.onsuccess=l=>{o()},r.onerror=l=>{var c;a(sr.create("storage-set",{originalErrorMessage:null===(c=l.target.error)||void 0===c?void 0:c.message}))}})}),IE.apply(this,arguments)}const dd=new zl("@firebase/app-check");function ME(n,e){return Xo()?function Jae(n,e){return function P4(n,e){return IE.apply(this,arguments)}(function N4(n){return`${n.options.appId}-${n.name}`}(n),e)}(n,e).catch(t=>{dd.warn(`Failed to write token to IndexedDB. Error: ${t}`)}):Promise.resolve()}function R4(){return tg().enabled}function L4(){return PE.apply(this,arguments)}function PE(){return PE=M(function*(){const n=tg();if(n.enabled&&n.token)return n.token.promise;throw Error("\n            Can't get debug token in production mode.\n        ")}),PE.apply(this,arguments)}const sle={error:"UNKNOWN_ERROR"};function ole(n){return gw.encodeString(JSON.stringify(n),!1)}function og(n){return OE.apply(this,arguments)}function OE(){return OE=M(function*(n,e=!1){const t=n.app;A4(t);const r=_n(t);let s,i=r.token;if(i&&!Xl(i)&&(di(t,Object.assign(Object.assign({},r),{token:void 0})),i=void 0),!i){const l=yield r.cachedTokenPromise;l&&(Xl(l)?i=l:yield ME(t,void 0))}if(!e&&i&&Xl(i))return{token:i.token};let a,o=!1;if(R4()){r.exchangeTokenPromise||(r.exchangeTokenPromise=TE(Kae(t,yield L4()),n.heartbeatServiceProvider).finally(()=>{r.exchangeTokenPromise=void 0}),o=!0);const l=yield r.exchangeTokenPromise;return yield ME(t,l),di(t,Object.assign(Object.assign({},r),{token:l})),{token:l.token}}try{r.exchangeTokenPromise||(r.exchangeTokenPromise=r.provider.getToken().finally(()=>{r.exchangeTokenPromise=void 0}),o=!0),i=yield r.exchangeTokenPromise}catch(l){"appCheck/throttled"===l.code?dd.warn(l.message):dd.error(l),s=l}return i?s?a=Xl(i)?{token:i.token,internalError:s}:B4(s):(a={token:i.token},di(t,Object.assign(Object.assign({},r),{token:i})),yield ME(t,i)):a=B4(s),o&&V4(t,a),a}),OE.apply(this,arguments)}function RE(n,e){const t=_n(n),r=t.tokenObservers.filter(i=>i.next!==e);0===r.length&&t.tokenRefresher&&t.tokenRefresher.isRunning()&&t.tokenRefresher.stop(),di(n,Object.assign(Object.assign({},t),{tokenObservers:r}))}function F4(n){const{app:e}=n,t=_n(e);let r=t.tokenRefresher;r||(r=function ale(n){const{app:e}=n;return new jae(M(function*(){let r;if(r=_n(e).token?yield og(n,!0):yield og(n),r.error)throw r.error;if(r.internalError)throw r.internalError}),()=>!0,()=>{const t=_n(e);if(t.token){let r=t.token.issuedAtTimeMillis+.5*(t.token.expireTimeMillis-t.token.issuedAtTimeMillis)+3e5;return r=Math.min(r,t.token.expireTimeMillis-3e5),Math.max(0,r-Date.now())}return 0},3e4,96e4)}(n),di(e,Object.assign(Object.assign({},t),{tokenRefresher:r}))),!r.isRunning()&&t.isTokenAutoRefreshEnabled&&r.start()}function V4(n,e){const t=_n(n).tokenObservers;for(const r of t)try{"EXTERNAL"===r.type&&null!=e.error?r.error(e.error):r.next(e)}catch{}}function Xl(n){return n.expireTimeMillis-Date.now()>0}function B4(n){return{token:ole(sle),error:n}}class lle{constructor(e,t){this.app=e,this.heartbeatServiceProvider=t}_delete(){const{tokenObservers:e}=_n(this.app);for(const t of e)RE(this.app,t.next);return Promise.resolve()}}const q4="app-check-internal";!function Cle(){ir(new zn("app-check",n=>function cle(n,e){return new lle(n,e)}(n.getProvider("app").getImmediate(),n.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((n,e,t)=>{n.getProvider(q4).initialize()})),ir(new zn(q4,n=>function ule(n){return{getToken:e=>og(n,e),addTokenListener:e=>function NE(n,e,t,r){const{app:i}=n,s=_n(i),o={next:t,error:r,type:e};if(di(i,Object.assign(Object.assign({},s),{tokenObservers:[...s.tokenObservers,o]})),s.token&&Xl(s.token)){const a=s.token;Promise.resolve().then(()=>{t({token:a.token}),F4(n)}).catch(()=>{})}s.cachedTokenPromise.then(()=>F4(n))}(n,"INTERNAL",e),removeTokenListener:e=>RE(n.app,e)}}(n.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),jt("@firebase/app-check","0.5.15")}();class K4{constructor(){return SC("app-check")}}typeof window<"u"&&window;var fe,Ile=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ns={},$E=$E||{},Ae=Ile||self;function lg(){}function cg(n){var e=typeof n;return"array"==(e="object"!=e?e:n?Array.isArray(n)?"array":e:"null")||"object"==e&&"number"==typeof n.length}function hd(n){var e=typeof n;return"object"==e&&null!=n||"function"==e}var UE="closure_uid_"+(1e9*Math.random()>>>0),Ale=0;function Mle(n,e,t){return n.call.apply(n.bind,arguments)}function kle(n,e,t){if(!n)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var i=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(i,r),n.apply(e,i)}}return function(){return n.apply(e,arguments)}}function jn(n,e,t){return(jn=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Mle:kle).apply(null,arguments)}function ug(n,e){var t=Array.prototype.slice.call(arguments,1);return function(){var r=t.slice();return r.push.apply(r,arguments),n.apply(this,r)}}function An(n,e){function t(){}t.prototype=e.prototype,n.X=e.prototype,n.prototype=new t,n.prototype.constructor=n,n.Wb=function(r,i,s){for(var o=Array(arguments.length-2),a=2;a<arguments.length;a++)o[a-2]=arguments[a];return e.prototype[i].apply(r,o)}}function ro(){this.s=this.s,this.o=this.o}var Ole={};ro.prototype.s=!1,ro.prototype.na=function(){if(!this.s&&(this.s=!0,this.M(),0)){var n=function Dle(n){return Object.prototype.hasOwnProperty.call(n,UE)&&n[UE]||(n[UE]=++Ale)}(this);delete Ole[n]}},ro.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};const Q4=Array.prototype.indexOf?function(n,e){return Array.prototype.indexOf.call(n,e,void 0)}:function(n,e){if("string"==typeof n)return"string"!=typeof e||1!=e.length?-1:n.indexOf(e,0);for(let t=0;t<n.length;t++)if(t in n&&n[t]===e)return t;return-1};function HE(n){const e=n.length;if(0<e){const t=Array(e);for(let r=0;r<e;r++)t[r]=n[r];return t}return[]}function X4(n,e){for(let t=1;t<arguments.length;t++){const r=arguments[t];if(cg(r)){const i=n.length||0,s=r.length||0;n.length=i+s;for(let o=0;o<s;o++)n[i+o]=r[o]}else n.push(r)}}function Gn(n,e){this.type=n,this.g=this.target=e,this.defaultPrevented=!1}Gn.prototype.h=function(){this.defaultPrevented=!0};var Nle=function(){if(!Ae.addEventListener||!Object.defineProperty)return!1;var n=!1,e=Object.defineProperty({},"passive",{get:function(){n=!0}});try{Ae.addEventListener("test",lg,e),Ae.removeEventListener("test",lg,e)}catch{}return n}();function dg(n){return/^[\s\xa0]*$/.test(n)}var Z4=String.prototype.trim?function(n){return n.trim()}:function(n){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(n)[1]};function zE(n,e){return n<e?-1:n>e?1:0}function hg(){var n=Ae.navigator;return n&&(n=n.userAgent)?n:""}function Xi(n){return-1!=hg().indexOf(n)}function jE(n){return jE[" "](n),n}jE[" "]=lg;var fg,Lle=Xi("Opera"),Zl=Xi("Trident")||Xi("MSIE"),J4=Xi("Edge"),GE=J4||Zl,eV=Xi("Gecko")&&!(-1!=hg().toLowerCase().indexOf("webkit")&&!Xi("Edge"))&&!(Xi("Trident")||Xi("MSIE"))&&!Xi("Edge"),Fle=-1!=hg().toLowerCase().indexOf("webkit")&&!Xi("Edge");function tV(){var n=Ae.document;return n?n.documentMode:void 0}e:{var WE="",qE=function(){var n=hg();return eV?/rv:([^\);]+)(\)|;)/.exec(n):J4?/Edge\/([\d\.]+)/.exec(n):Zl?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(n):Fle?/WebKit\/(\S+)/.exec(n):Lle?/(?:Version)[ \/]?(\S+)/.exec(n):void 0}();if(qE&&(WE=qE?qE[1]:""),Zl){var YE=tV();if(null!=YE&&YE>parseFloat(WE)){fg=String(YE);break e}}fg=WE}var Vle={};var $le=Ae.document&&Zl&&(tV()||parseInt(fg,10))||void 0;function fd(n,e){if(Gn.call(this,n?n.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,n){var t=this.type=n.type,r=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:null;if(this.target=n.target||n.srcElement,this.g=e,e=n.relatedTarget){if(eV){e:{try{jE(e.nodeName);var i=!0;break e}catch{}i=!1}i||(e=null)}}else"mouseover"==t?e=n.fromElement:"mouseout"==t&&(e=n.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==n.clientX?n.clientX:n.pageX,this.clientY=void 0!==n.clientY?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0),this.button=n.button,this.key=n.key||"",this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.pointerId=n.pointerId||0,this.pointerType="string"==typeof n.pointerType?n.pointerType:Ule[n.pointerType]||"",this.state=n.state,this.i=n,n.defaultPrevented&&fd.X.h.call(this)}}An(fd,Gn);var Ule={2:"touch",3:"pen",4:"mouse"};fd.prototype.h=function(){fd.X.h.call(this);var n=this.i;n.preventDefault?n.preventDefault():n.returnValue=!1};var pd="closure_listenable_"+(1e6*Math.random()|0),Hle=0;function zle(n,e,t,r,i){this.listener=n,this.proxy=null,this.src=e,this.type=t,this.capture=!!r,this.ha=i,this.key=++Hle,this.ba=this.ea=!1}function pg(n){n.ba=!0,n.listener=null,n.proxy=null,n.src=null,n.ha=null}function QE(n,e,t){for(const r in n)e.call(t,n[r],r,n)}function rV(n){const e={};for(const t in n)e[t]=n[t];return e}const iV="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function sV(n,e){let t,r;for(let i=1;i<arguments.length;i++){for(t in r=arguments[i],r)n[t]=r[t];for(let s=0;s<iV.length;s++)t=iV[s],Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t])}}function gg(n){this.src=n,this.g={},this.h=0}function XE(n,e){var t=e.type;if(t in n.g){var s,r=n.g[t],i=Q4(r,e);(s=0<=i)&&Array.prototype.splice.call(r,i,1),s&&(pg(e),0==n.g[t].length&&(delete n.g[t],n.h--))}}function ZE(n,e,t,r){for(var i=0;i<n.length;++i){var s=n[i];if(!s.ba&&s.listener==e&&s.capture==!!t&&s.ha==r)return i}return-1}gg.prototype.add=function(n,e,t,r,i){var s=n.toString();(n=this.g[s])||(n=this.g[s]=[],this.h++);var o=ZE(n,e,r,i);return-1<o?(e=n[o],t||(e.ea=!1)):((e=new zle(e,this.src,s,!!r,i)).ea=t,n.push(e)),e};var JE="closure_lm_"+(1e6*Math.random()|0),eT={};function oV(n,e,t,r,i){if(r&&r.once)return lV(n,e,t,r,i);if(Array.isArray(e)){for(var s=0;s<e.length;s++)oV(n,e[s],t,r,i);return null}return t=iT(t),n&&n[pd]?n.N(e,t,hd(r)?!!r.capture:!!r,i):aV(n,e,t,!1,r,i)}function aV(n,e,t,r,i,s){if(!e)throw Error("Invalid event type");var o=hd(i)?!!i.capture:!!i,a=nT(n);if(a||(n[JE]=a=new gg(n)),(t=a.add(e,t,r,o,s)).proxy)return t;if(r=function jle(){const e=Gle;return function n(t){return e.call(n.src,n.listener,t)}}(),t.proxy=r,r.src=n,r.listener=t,n.addEventListener)Nle||(i=o),void 0===i&&(i=!1),n.addEventListener(e.toString(),r,i);else if(n.attachEvent)n.attachEvent(uV(e.toString()),r);else{if(!n.addListener||!n.removeListener)throw Error("addEventListener and attachEvent are unavailable.");n.addListener(r)}return t}function lV(n,e,t,r,i){if(Array.isArray(e)){for(var s=0;s<e.length;s++)lV(n,e[s],t,r,i);return null}return t=iT(t),n&&n[pd]?n.O(e,t,hd(r)?!!r.capture:!!r,i):aV(n,e,t,!0,r,i)}function cV(n,e,t,r,i){if(Array.isArray(e))for(var s=0;s<e.length;s++)cV(n,e[s],t,r,i);else r=hd(r)?!!r.capture:!!r,t=iT(t),n&&n[pd]?(n=n.i,(e=String(e).toString())in n.g&&-1<(t=ZE(s=n.g[e],t,r,i))&&(pg(s[t]),Array.prototype.splice.call(s,t,1),0==s.length&&(delete n.g[e],n.h--))):n&&(n=nT(n))&&(e=n.g[e.toString()],n=-1,e&&(n=ZE(e,t,r,i)),(t=-1<n?e[n]:null)&&tT(t))}function tT(n){if("number"!=typeof n&&n&&!n.ba){var e=n.src;if(e&&e[pd])XE(e.i,n);else{var t=n.type,r=n.proxy;e.removeEventListener?e.removeEventListener(t,r,n.capture):e.detachEvent?e.detachEvent(uV(t),r):e.addListener&&e.removeListener&&e.removeListener(r),(t=nT(e))?(XE(t,n),0==t.h&&(t.src=null,e[JE]=null)):pg(n)}}}function uV(n){return n in eT?eT[n]:eT[n]="on"+n}function Gle(n,e){if(n.ba)n=!0;else{e=new fd(e,this);var t=n.listener,r=n.ha||n.src;n.ea&&tT(n),n=t.call(r,e)}return n}function nT(n){return(n=n[JE])instanceof gg?n:null}var rT="__closure_events_fn_"+(1e9*Math.random()>>>0);function iT(n){return"function"==typeof n?n:(n[rT]||(n[rT]=function(e){return n.handleEvent(e)}),n[rT])}function vn(){ro.call(this),this.i=new gg(this),this.P=this,this.I=null}function Mn(n,e){var t,r=n.I;if(r)for(t=[];r;r=r.I)t.push(r);if(n=n.P,r=e.type||e,"string"==typeof e)e=new Gn(e,n);else if(e instanceof Gn)e.target=e.target||n;else{var i=e;sV(e=new Gn(r,n),i)}if(i=!0,t)for(var s=t.length-1;0<=s;s--){var o=e.g=t[s];i=mg(o,r,!0,e)&&i}if(i=mg(o=e.g=n,r,!0,e)&&i,i=mg(o,r,!1,e)&&i,t)for(s=0;s<t.length;s++)i=mg(o=e.g=t[s],r,!1,e)&&i}function mg(n,e,t,r){if(!(e=n.i.g[String(e)]))return!0;e=e.concat();for(var i=!0,s=0;s<e.length;++s){var o=e[s];if(o&&!o.ba&&o.capture==t){var a=o.listener,l=o.ha||o.src;o.ea&&XE(n.i,o),i=!1!==a.call(l,r)&&i}}return i&&!r.defaultPrevented}An(vn,ro),vn.prototype[pd]=!0,vn.prototype.removeEventListener=function(n,e,t,r){cV(this,n,e,t,r)},vn.prototype.M=function(){if(vn.X.M.call(this),this.i){var e,n=this.i;for(e in n.g){for(var t=n.g[e],r=0;r<t.length;r++)pg(t[r]);delete n.g[e],n.h--}}this.I=null},vn.prototype.N=function(n,e,t,r){return this.i.add(String(n),e,!1,t,r)},vn.prototype.O=function(n,e,t,r){return this.i.add(String(n),e,!0,t,r)};var sT=Ae.JSON.stringify;function Wle(){var n=fV;let e=null;return n.g&&(e=n.g,n.g=n.g.next,n.g||(n.h=null),e.next=null),e}var oT,dV=new class{constructor(n,e){this.i=n,this.j=e,this.h=0,this.g=null}get(){let n;return 0<this.h?(this.h--,n=this.g,this.g=n.next,n.next=null):n=this.i(),n}}(()=>new Yle,n=>n.reset());class Yle{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}function Kle(n){Ae.setTimeout(()=>{throw n},0)}function hV(n,e){oT||function Qle(){var n=Ae.Promise.resolve(void 0);oT=function(){n.then(Xle)}}(),aT||(oT(),aT=!0),fV.add(n,e)}var aT=!1,fV=new class qle{constructor(){this.h=this.g=null}add(e,t){const r=dV.get();r.set(e,t),this.h?this.h.next=r:this.g=r,this.h=r}};function Xle(){for(var n;n=Wle();){try{n.h.call(n.g)}catch(t){Kle(t)}var e=dV;e.j(n),100>e.h&&(e.h++,n.next=e.g,e.g=n)}aT=!1}function yg(n,e){vn.call(this),this.h=n||1,this.g=e||Ae,this.j=jn(this.lb,this),this.l=Date.now()}function lT(n){n.ca=!1,n.R&&(n.g.clearTimeout(n.R),n.R=null)}function cT(n,e,t){if("function"==typeof n)t&&(n=jn(n,t));else{if(!n||"function"!=typeof n.handleEvent)throw Error("Invalid listener argument");n=jn(n.handleEvent,n)}return 2147483647<Number(e)?-1:Ae.setTimeout(n,e||0)}function pV(n){n.g=cT(()=>{n.g=null,n.i&&(n.i=!1,pV(n))},n.j);const e=n.h;n.h=null,n.m.apply(null,e)}An(yg,vn),(fe=yg.prototype).ca=!1,fe.R=null,fe.lb=function(){if(this.ca){var n=Date.now()-this.l;0<n&&n<.8*this.h?this.R=this.g.setTimeout(this.j,this.h-n):(this.R&&(this.g.clearTimeout(this.R),this.R=null),Mn(this,"tick"),this.ca&&(lT(this),this.start()))}},fe.start=function(){this.ca=!0,this.R||(this.R=this.g.setTimeout(this.j,this.h),this.l=Date.now())},fe.M=function(){yg.X.M.call(this),lT(this),delete this.g};class Zle extends ro{constructor(e,t){super(),this.m=e,this.j=t,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:pV(this)}M(){super.M(),this.g&&(Ae.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function gd(n){ro.call(this),this.h=n,this.g={}}An(gd,ro);var gV=[];function mV(n,e,t,r){Array.isArray(t)||(t&&(gV[0]=t.toString()),t=gV);for(var i=0;i<t.length;i++){var s=oV(e,t[i],r||n.handleEvent,!1,n.h||n);if(!s)break;n.g[s.key]=s}}function yV(n){QE(n.g,function(e,t){this.g.hasOwnProperty(t)&&tT(e)},n),n.g={}}function _g(){this.g=!0}function Jl(n,e,t,r){n.info(function(){return"XMLHTTP TEXT ("+e+"): "+function nce(n,e){if(!n.g)return e;if(!e)return null;try{var t=JSON.parse(e);if(t)for(n=0;n<t.length;n++)if(Array.isArray(t[n])){var r=t[n];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var s=i[0];if("noop"!=s&&"stop"!=s&&"close"!=s)for(var o=1;o<i.length;o++)i[o]=""}}}return sT(t)}catch{return e}}(n,t)+(r?" "+r:"")})}gd.prototype.M=function(){gd.X.M.call(this),yV(this)},gd.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},_g.prototype.Aa=function(){this.g=!1},_g.prototype.info=function(){};var da={},_V=null;function vg(){return _V=_V||new vn}function vV(n){Gn.call(this,da.Pa,n)}function md(n){const e=vg();Mn(e,new vV(e,n))}function bV(n,e){Gn.call(this,da.STAT_EVENT,n),this.stat=e}function or(n){const e=vg();Mn(e,new bV(e,n))}function wV(n,e){Gn.call(this,da.Qa,n),this.size=e}function yd(n,e){if("function"!=typeof n)throw Error("Fn must not be null and must be a function");return Ae.setTimeout(function(){n()},e)}da.Pa="serverreachability",An(vV,Gn),da.STAT_EVENT="statevent",An(bV,Gn),da.Qa="timingevent",An(wV,Gn);var bg={NO_ERROR:0,mb:1,zb:2,yb:3,tb:4,xb:5,Ab:6,Ma:7,TIMEOUT:8,Db:9},CV={rb:"complete",Nb:"success",Na:"error",Ma:"abort",Fb:"ready",Gb:"readystatechange",TIMEOUT:"timeout",Bb:"incrementaldata",Eb:"progress",ub:"downloadprogress",Vb:"uploadprogress"};function uT(){}function EV(){}uT.prototype.h=null;var fT,_d={OPEN:"a",qb:"b",Na:"c",Cb:"d"};function dT(){Gn.call(this,"d")}function hT(){Gn.call(this,"c")}function wg(){}function vd(n,e,t,r){this.l=n,this.j=e,this.m=t,this.U=r||1,this.S=new gd(this),this.O=rce,this.T=new yg(n=GE?125:void 0),this.H=null,this.i=!1,this.s=this.A=this.v=this.K=this.F=this.V=this.B=null,this.D=[],this.g=null,this.C=0,this.o=this.u=null,this.Y=-1,this.I=!1,this.N=0,this.L=null,this.$=this.J=this.Z=this.P=!1,this.h=new TV}function TV(){this.i=null,this.g="",this.h=!1}An(dT,Gn),An(hT,Gn),An(wg,uT),wg.prototype.g=function(){return new XMLHttpRequest},wg.prototype.i=function(){return{}},fT=new wg;var rce=45e3,pT={},Cg={};function gT(n,e,t){n.K=1,n.v=xg(Rs(e)),n.s=t,n.P=!0,xV(n,null)}function xV(n,e){n.F=Date.now(),bd(n),n.A=Rs(n.v);var t=n.A,r=n.U;Array.isArray(r)||(r=[String(r)]),LV(t.i,"t",r),n.C=0,t=n.l.H,n.h=new TV,n.g=oB(n.l,t?e:null,!n.s),0<n.N&&(n.L=new Zle(jn(n.La,n,n.g),n.N)),mV(n.S,n.g,"readystatechange",n.ib),e=n.H?rV(n.H):{},n.s?(n.u||(n.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",n.g.da(n.A,n.u,n.s,e)):(n.u="GET",n.g.da(n.A,n.u,null,e)),md(1),function Jle(n,e,t,r,i,s){n.info(function(){if(n.g)if(s)for(var o="",a=s.split("&"),l=0;l<a.length;l++){var c=a[l].split("=");if(1<c.length){var u=c[0];c=c[1];var d=u.split("_");o=2<=d.length&&"type"==d[1]?o+(u+"=")+c+"&":o+(u+"=redacted&")}}else o=null;else o=s;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+e+"\n"+t+"\n"+o})}(n.j,n.u,n.A,n.m,n.U,n.s)}function IV(n){return!!n.g&&"GET"==n.u&&2!=n.K&&n.l.Da}function DV(n,e,t){let i,r=!0;for(;!n.I&&n.C<t.length;){if(i=ice(n,t),i==Cg){4==e&&(n.o=4,or(14),r=!1),Jl(n.j,n.m,null,"[Incomplete Response]");break}if(i==pT){n.o=4,or(15),Jl(n.j,n.m,t,"[Invalid Chunk]"),r=!1;break}Jl(n.j,n.m,i,null),mT(n,i)}IV(n)&&i!=Cg&&i!=pT&&(n.h.g="",n.C=0),4!=e||0!=t.length||n.h.h||(n.o=1,or(16),r=!1),n.i=n.i&&r,r?0<t.length&&!n.$&&(n.$=!0,(e=n.l).g==n&&e.$&&!e.K&&(e.j.info("Great, no buffering proxy detected. Bytes received: "+t.length),ET(e),e.K=!0,or(11))):(Jl(n.j,n.m,t,"[Invalid Chunked Response]"),ha(n),wd(n))}function ice(n,e){var t=n.C,r=e.indexOf("\n",t);return-1==r?Cg:(t=Number(e.substring(t,r)),isNaN(t)?pT:(r+=1)+t>e.length?Cg:(e=e.substr(r,t),n.C=r+t,e))}function bd(n){n.V=Date.now()+n.O,AV(n,n.O)}function AV(n,e){if(null!=n.B)throw Error("WatchDog timer not null");n.B=yd(jn(n.gb,n),e)}function Sg(n){n.B&&(Ae.clearTimeout(n.B),n.B=null)}function wd(n){0==n.l.G||n.I||nB(n.l,n)}function ha(n){Sg(n);var e=n.L;e&&"function"==typeof e.na&&e.na(),n.L=null,lT(n.T),yV(n.S),n.g&&(e=n.g,n.g=null,e.abort(),e.na())}function mT(n,e){try{var t=n.l;if(0!=t.G&&(t.g==n||yT(t.h,n)))if(!n.J&&yT(t.h,n)&&3==t.G){try{var r=t.Fa.g.parse(e)}catch{r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!t.u){if(t.g){if(!(t.g.F+3e3<n.F))break e;Pg(t),Mg(t)}ST(t),or(18)}}else t.Ba=i[1],0<t.Ba-t.T&&37500>i[2]&&t.L&&0==t.A&&!t.v&&(t.v=yd(jn(t.cb,t),6e3));if(1>=BV(t.h)&&t.ja){try{t.ja()}catch{}t.ja=void 0}}else pa(t,11)}else if((n.J||t.g==n)&&Pg(t),!dg(e))for(i=t.Fa.g.parse(e),e=0;e<i.length;e++){let c=i[e];if(t.T=c[0],c=c[1],2==t.G)if("c"==c[0]){t.I=c[1],t.ka=c[2];const u=c[3];null!=u&&(t.ma=u,t.j.info("VER="+t.ma));const d=c[4];null!=d&&(t.Ca=d,t.j.info("SVER="+t.Ca));const h=c[5];null!=h&&"number"==typeof h&&0<h&&(t.J=r=1.5*h,t.j.info("backChannelRequestTimeoutMs_="+r)),r=t;const f=n.g;if(f){const p=f.g?f.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(p){var s=r.h;s.g||-1==p.indexOf("spdy")&&-1==p.indexOf("quic")&&-1==p.indexOf("h2")||(s.j=s.l,s.g=new Set,s.h&&(_T(s,s.h),s.h=null))}if(r.D){const g=f.g?f.g.getResponseHeader("X-HTTP-Session-Id"):null;g&&(r.za=g,Tt(r.F,r.D,g))}}t.G=3,t.l&&t.l.xa(),t.$&&(t.P=Date.now()-n.F,t.j.info("Handshake RTT: "+t.P+"ms"));var o=n;if((r=t).sa=sB(r,r.H?r.ka:null,r.V),o.J){$V(r.h,o);var a=o,l=r.J;l&&a.setTimeout(l),a.B&&(Sg(a),bd(a)),r.g=o}else eB(r);0<t.i.length&&kg(t)}else"stop"!=c[0]&&"close"!=c[0]||pa(t,7);else 3==t.G&&("stop"==c[0]||"close"==c[0]?"stop"==c[0]?pa(t,7):CT(t):"noop"!=c[0]&&t.l&&t.l.wa(c),t.A=0)}md(4)}catch{}}function MV(n,e){if(n.forEach&&"function"==typeof n.forEach)n.forEach(e,void 0);else if(cg(n)||"string"==typeof n)Array.prototype.forEach.call(n,e,void 0);else for(var t=function oce(n){if(n.oa&&"function"==typeof n.oa)return n.oa();if(!n.W||"function"!=typeof n.W){if(typeof Map<"u"&&n instanceof Map)return Array.from(n.keys());if(!(typeof Set<"u"&&n instanceof Set)){if(cg(n)||"string"==typeof n){var e=[];n=n.length;for(var t=0;t<n;t++)e.push(t);return e}e=[],t=0;for(const r in n)e[t++]=r;return e}}}(n),r=function sce(n){if(n.W&&"function"==typeof n.W)return n.W();if(typeof Map<"u"&&n instanceof Map||typeof Set<"u"&&n instanceof Set)return Array.from(n.values());if("string"==typeof n)return n.split("");if(cg(n)){for(var e=[],t=n.length,r=0;r<t;r++)e.push(n[r]);return e}for(r in e=[],t=0,n)e[t++]=n[r];return e}(n),i=r.length,s=0;s<i;s++)e.call(void 0,r[s],t&&t[s],n)}(fe=vd.prototype).setTimeout=function(n){this.O=n},fe.ib=function(n){n=n.target;const e=this.L;e&&3==Ls(n)?e.l():this.La(n)},fe.La=function(n){try{if(n==this.g)e:{const u=Ls(this.g);var e=this.g.Ea();const d=this.g.aa();if(!(3>u)&&(3!=u||GE||this.g&&(this.h.h||this.g.fa()||YV(this.g)))){this.I||4!=u||7==e||md(8==e||0>=d?3:2),Sg(this);var t=this.g.aa();this.Y=t;t:if(IV(this)){var r=YV(this.g);n="";var i=r.length,s=4==Ls(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){ha(this),wd(this);var o="";break t}this.h.i=new Ae.TextDecoder}for(e=0;e<i;e++)this.h.h=!0,n+=this.h.i.decode(r[e],{stream:s&&e==i-1});r.splice(0,i),this.h.g+=n,this.C=0,o=this.h.g}else o=this.g.fa();if(this.i=200==t,function ece(n,e,t,r,i,s,o){n.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+e+"\n"+t+"\n"+s+" "+o})}(this.j,this.u,this.A,this.m,this.U,u,t),this.i){if(this.Z&&!this.J){t:{if(this.g){var a,l=this.g;if((a=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!dg(a)){var c=a;break t}}c=null}if(!(t=c)){this.i=!1,this.o=3,or(12),ha(this),wd(this);break e}Jl(this.j,this.m,t,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,mT(this,t)}this.P?(DV(this,u,o),GE&&this.i&&3==u&&(mV(this.S,this.T,"tick",this.hb),this.T.start())):(Jl(this.j,this.m,o,null),mT(this,o)),4==u&&ha(this),this.i&&!this.I&&(4==u?nB(this.l,this):(this.i=!1,bd(this)))}else 400==t&&0<o.indexOf("Unknown SID")?(this.o=3,or(12)):(this.o=0,or(13)),ha(this),wd(this)}}}catch{}},fe.hb=function(){if(this.g){var n=Ls(this.g),e=this.g.fa();this.C<e.length&&(Sg(this),DV(this,n,e),this.i&&4!=n&&bd(this))}},fe.cancel=function(){this.I=!0,ha(this)},fe.gb=function(){this.B=null;const n=Date.now();0<=n-this.V?(function tce(n,e){n.info(function(){return"TIMEOUT: "+e})}(this.j,this.A),2!=this.K&&(md(3),or(17)),ha(this),this.o=2,wd(this)):AV(this,this.V-n)};var kV=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function fa(n,e){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,n instanceof fa){this.h=void 0!==e?e:n.h,Eg(this,n.j),this.s=n.s,this.g=n.g,Tg(this,n.m),this.l=n.l,e=n.i;var t=new Ed;t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),PV(this,t),this.o=n.o}else n&&(t=String(n).match(kV))?(this.h=!!e,Eg(this,t[1]||"",!0),this.s=Cd(t[2]||""),this.g=Cd(t[3]||"",!0),Tg(this,t[4]),this.l=Cd(t[5]||"",!0),PV(this,t[6]||"",!0),this.o=Cd(t[7]||"")):(this.h=!!e,this.i=new Ed(null,this.h))}function Rs(n){return new fa(n)}function Eg(n,e,t){n.j=t?Cd(e,!0):e,n.j&&(n.j=n.j.replace(/:$/,""))}function Tg(n,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);n.m=e}else n.m=null}function PV(n,e,t){e instanceof Ed?(n.i=e,function fce(n,e){e&&!n.j&&(io(n),n.i=null,n.g.forEach(function(t,r){var i=r.toLowerCase();r!=i&&(NV(this,r),LV(this,i,t))},n)),n.j=e}(n.i,n.h)):(t||(e=Sd(e,dce)),n.i=new Ed(e,n.h))}function Tt(n,e,t){n.i.set(e,t)}function xg(n){return Tt(n,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),n}function Cd(n,e){return n?e?decodeURI(n.replace(/%25/g,"%2525")):decodeURIComponent(n):""}function Sd(n,e,t){return"string"==typeof n?(n=encodeURI(n).replace(e,lce),t&&(n=n.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n):null}function lce(n){return"%"+((n=n.charCodeAt(0))>>4&15).toString(16)+(15&n).toString(16)}fa.prototype.toString=function(){var n=[],e=this.j;e&&n.push(Sd(e,OV,!0),":");var t=this.g;return(t||"file"==e)&&(n.push("//"),(e=this.s)&&n.push(Sd(e,OV,!0),"@"),n.push(encodeURIComponent(String(t)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.m)&&n.push(":",String(t))),(t=this.l)&&(this.g&&"/"!=t.charAt(0)&&n.push("/"),n.push(Sd(t,"/"==t.charAt(0)?uce:cce,!0))),(t=this.i.toString())&&n.push("?",t),(t=this.o)&&n.push("#",Sd(t,hce)),n.join("")};var OV=/[#\/\?@]/g,cce=/[#\?:]/g,uce=/[#\?]/g,dce=/[#\?@]/g,hce=/#/g;function Ed(n,e){this.h=this.g=null,this.i=n||null,this.j=!!e}function io(n){n.g||(n.g=new Map,n.h=0,n.i&&function ace(n,e){if(n){n=n.split("&");for(var t=0;t<n.length;t++){var r=n[t].indexOf("="),i=null;if(0<=r){var s=n[t].substring(0,r);i=n[t].substring(r+1)}else s=n[t];e(s,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(n.i,function(e,t){n.add(decodeURIComponent(e.replace(/\+/g," ")),t)}))}function NV(n,e){io(n),e=ec(n,e),n.g.has(e)&&(n.i=null,n.h-=n.g.get(e).length,n.g.delete(e))}function RV(n,e){return io(n),e=ec(n,e),n.g.has(e)}function LV(n,e,t){NV(n,e),0<t.length&&(n.i=null,n.g.set(ec(n,e),HE(t)),n.h+=t.length)}function ec(n,e){return e=String(e),n.j&&(e=e.toLowerCase()),e}function FV(n){this.l=n||gce,n=Ae.PerformanceNavigationTiming?0<(n=Ae.performance.getEntriesByType("navigation")).length&&("hq"==n[0].nextHopProtocol||"h2"==n[0].nextHopProtocol):!!(Ae.g&&Ae.g.Ga&&Ae.g.Ga()&&Ae.g.Ga().$b),this.j=n?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}(fe=Ed.prototype).add=function(n,e){io(this),this.i=null,n=ec(this,n);var t=this.g.get(n);return t||this.g.set(n,t=[]),t.push(e),this.h+=1,this},fe.forEach=function(n,e){io(this),this.g.forEach(function(t,r){t.forEach(function(i){n.call(e,i,r,this)},this)},this)},fe.oa=function(){io(this);const n=Array.from(this.g.values()),e=Array.from(this.g.keys()),t=[];for(let r=0;r<e.length;r++){const i=n[r];for(let s=0;s<i.length;s++)t.push(e[r])}return t},fe.W=function(n){io(this);let e=[];if("string"==typeof n)RV(this,n)&&(e=e.concat(this.g.get(ec(this,n))));else{n=Array.from(this.g.values());for(let t=0;t<n.length;t++)e=e.concat(n[t])}return e},fe.set=function(n,e){return io(this),this.i=null,RV(this,n=ec(this,n))&&(this.h-=this.g.get(n).length),this.g.set(n,[e]),this.h+=1,this},fe.get=function(n,e){return n&&0<(n=this.W(n)).length?String(n[0]):e},fe.toString=function(){if(this.i)return this.i;if(!this.g)return"";const n=[],e=Array.from(this.g.keys());for(var t=0;t<e.length;t++){var r=e[t];const s=encodeURIComponent(String(r)),o=this.W(r);for(r=0;r<o.length;r++){var i=s;""!==o[r]&&(i+="="+encodeURIComponent(String(o[r]))),n.push(i)}}return this.i=n.join("&")};var gce=10;function VV(n){return!!n.h||!!n.g&&n.g.size>=n.j}function BV(n){return n.h?1:n.g?n.g.size:0}function yT(n,e){return n.h?n.h==e:!!n.g&&n.g.has(e)}function _T(n,e){n.g?n.g.add(e):n.h=e}function $V(n,e){n.h&&n.h==e?n.h=null:n.g&&n.g.has(e)&&n.g.delete(e)}function UV(n){if(null!=n.h)return n.i.concat(n.h.D);if(null!=n.g&&0!==n.g.size){let e=n.i;for(const t of n.g.values())e=e.concat(t.D);return e}return HE(n.i)}function vT(){}function mce(){this.g=new vT}function yce(n,e,t){const r=t||"";try{MV(n,function(i,s){let o=i;hd(i)&&(o=sT(i)),e.push(r+s+"="+encodeURIComponent(o))})}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function Ig(n,e,t,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch{}}function Td(n){this.l=n.ac||null,this.j=n.jb||!1}function Dg(n,e){vn.call(this),this.D=n,this.u=e,this.m=void 0,this.readyState=bT,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}FV.prototype.cancel=function(){if(this.i=UV(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const n of this.g.values())n.cancel();this.g.clear()}},vT.prototype.stringify=function(n){return Ae.JSON.stringify(n,void 0)},vT.prototype.parse=function(n){return Ae.JSON.parse(n,void 0)},An(Td,uT),Td.prototype.g=function(){return new Dg(this.l,this.j)},Td.prototype.i=function(n){return function(){return n}}({}),An(Dg,vn);var bT=0;function HV(n){n.j.read().then(n.Ta.bind(n)).catch(n.ga.bind(n))}function xd(n){n.readyState=4,n.l=null,n.j=null,n.A=null,Id(n)}function Id(n){n.onreadystatechange&&n.onreadystatechange.call(n)}(fe=Dg.prototype).open=function(n,e){if(this.readyState!=bT)throw this.abort(),Error("Error reopening a connection");this.C=n,this.B=e,this.readyState=1,Id(this)},fe.send=function(n){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};n&&(e.body=n),(this.D||Ae).fetch(new Request(this.B,e)).then(this.Wa.bind(this),this.ga.bind(this))},fe.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,xd(this)),this.readyState=bT},fe.Wa=function(n){if(this.g&&(this.l=n,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=n.headers,this.readyState=2,Id(this)),this.g&&(this.readyState=3,Id(this),this.g)))if("arraybuffer"===this.responseType)n.arrayBuffer().then(this.Ua.bind(this),this.ga.bind(this));else if(typeof Ae.ReadableStream<"u"&&"body"in n){if(this.j=n.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;HV(this)}else n.text().then(this.Va.bind(this),this.ga.bind(this))},fe.Ta=function(n){if(this.g){if(this.u&&n.value)this.response.push(n.value);else if(!this.u){var e=n.value?n.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!n.done}))&&(this.response=this.responseText+=e)}n.done?xd(this):Id(this),3==this.readyState&&HV(this)}},fe.Va=function(n){this.g&&(this.response=this.responseText=n,xd(this))},fe.Ua=function(n){this.g&&(this.response=n,xd(this))},fe.ga=function(){this.g&&xd(this)},fe.setRequestHeader=function(n,e){this.v.append(n,e)},fe.getResponseHeader=function(n){return this.h&&this.h.get(n.toLowerCase())||""},fe.getAllResponseHeaders=function(){if(!this.h)return"";const n=[],e=this.h.entries();for(var t=e.next();!t.done;)n.push((t=t.value)[0]+": "+t[1]),t=e.next();return n.join("\r\n")},Object.defineProperty(Dg.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(n){this.m=n?"include":"same-origin"}});var vce=Ae.JSON.parse;function Lt(n){vn.call(this),this.headers=new Map,this.u=n||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=zV,this.K=this.L=!1}An(Lt,vn);var zV="",bce=/^https?$/i,wce=["POST","PUT"];function jV(n,e){n.h=!1,n.g&&(n.l=!0,n.g.abort(),n.l=!1),n.j=e,n.m=5,GV(n),Ag(n)}function GV(n){n.D||(n.D=!0,Mn(n,"complete"),Mn(n,"error"))}function WV(n){if(n.h&&typeof $E<"u"&&(!n.C[1]||4!=Ls(n)||2!=n.aa()))if(n.v&&4==Ls(n))cT(n.Ha,0,n);else if(Mn(n,"readystatechange"),4==Ls(n)){n.h=!1;try{const a=n.aa();e:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var e=!0;break e;default:e=!1}var t;if(!(t=e)){var r;if(r=0===a){var i=String(n.H).match(kV)[1]||null;if(!i&&Ae.self&&Ae.self.location){var s=Ae.self.location.protocol;i=s.substr(0,s.length-1)}r=!bce.test(i?i.toLowerCase():"")}t=r}if(t)Mn(n,"complete"),Mn(n,"success");else{n.m=6;try{var o=2<Ls(n)?n.g.statusText:""}catch{o=""}n.j=o+" ["+n.aa()+"]",GV(n)}}finally{Ag(n)}}}function Ag(n,e){if(n.g){qV(n);const t=n.g,r=n.C[0]?lg:null;n.g=null,n.C=null,e||Mn(n,"ready");try{t.onreadystatechange=r}catch{}}}function qV(n){n.g&&n.K&&(n.g.ontimeout=null),n.A&&(Ae.clearTimeout(n.A),n.A=null)}function Ls(n){return n.g?n.g.readyState:0}function YV(n){try{if(!n.g)return null;if("response"in n.g)return n.g.response;switch(n.J){case zV:case"text":return n.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in n.g)return n.g.mozResponseArrayBuffer}return null}catch{return null}}function KV(n){let e="";return QE(n,function(t,r){e+=r,e+=":",e+=t,e+="\r\n"}),e}function wT(n,e,t){e:{for(r in t){var r=!1;break e}r=!0}r||(t=KV(t),"string"==typeof n?null!=t&&encodeURIComponent(String(t)):Tt(n,e,t))}function Dd(n,e,t){return t&&t.internalChannelParams&&t.internalChannelParams[n]||e}function QV(n){this.Ca=0,this.i=[],this.j=new _g,this.ka=this.sa=this.F=this.V=this.g=this.za=this.D=this.ia=this.o=this.S=this.s=null,this.ab=this.U=0,this.Za=Dd("failFast",!1,n),this.L=this.v=this.u=this.m=this.l=null,this.Y=!0,this.pa=this.Ba=this.T=-1,this.Z=this.A=this.C=0,this.Xa=Dd("baseRetryDelayMs",5e3,n),this.bb=Dd("retryDelaySeedMs",1e4,n),this.$a=Dd("forwardChannelMaxRetries",2,n),this.ta=Dd("forwardChannelRequestTimeoutMs",2e4,n),this.ra=n&&n.xmlHttpFactory||void 0,this.Da=n&&n.Zb||!1,this.J=void 0,this.H=n&&n.supportsCrossDomainXhr||!1,this.I="",this.h=new FV(n&&n.concurrentRequestLimit),this.Fa=new mce,this.O=n&&n.fastHandshake||!1,this.N=n&&n.encodeInitMessageHeaders||!1,this.O&&this.N&&(this.N=!1),this.Ya=n&&n.Xb||!1,n&&n.Aa&&this.j.Aa(),n&&n.forceLongPolling&&(this.Y=!1),this.$=!this.O&&this.Y&&n&&n.detectBufferingProxy||!1,this.ja=void 0,this.P=0,this.K=!1,this.la=this.B=null}function CT(n){if(XV(n),3==n.G){var e=n.U++,t=Rs(n.F);Tt(t,"SID",n.I),Tt(t,"RID",e),Tt(t,"TYPE","terminate"),Ad(n,t),(e=new vd(n,n.j,e,void 0)).K=2,e.v=xg(Rs(t)),t=!1,Ae.navigator&&Ae.navigator.sendBeacon&&(t=Ae.navigator.sendBeacon(e.v.toString(),"")),!t&&Ae.Image&&((new Image).src=e.v,t=!0),t||(e.g=oB(e.l,null),e.g.da(e.v)),e.F=Date.now(),bd(e)}iB(n)}function Mg(n){n.g&&(ET(n),n.g.cancel(),n.g=null)}function XV(n){Mg(n),n.u&&(Ae.clearTimeout(n.u),n.u=null),Pg(n),n.h.cancel(),n.m&&("number"==typeof n.m&&Ae.clearTimeout(n.m),n.m=null)}function kg(n){VV(n.h)||n.m||(n.m=!0,hV(n.Ja,n),n.C=0)}function ZV(n,e){var t;t=e?e.m:n.U++;const r=Rs(n.F);Tt(r,"SID",n.I),Tt(r,"RID",t),Tt(r,"AID",n.T),Ad(n,r),n.o&&n.s&&wT(r,n.o,n.s),t=new vd(n,n.j,t,n.C+1),null===n.o&&(t.H=n.s),e&&(n.i=e.D.concat(n.i)),e=JV(n,t,1e3),t.setTimeout(Math.round(.5*n.ta)+Math.round(.5*n.ta*Math.random())),_T(n.h,t),gT(t,r,e)}function Ad(n,e){n.ia&&QE(n.ia,function(t,r){Tt(e,r,t)}),n.l&&MV({},function(t,r){Tt(e,r,t)})}function JV(n,e,t){t=Math.min(n.i.length,t);var r=n.l?jn(n.l.Ra,n.l,n):null;e:{var i=n.i;let s=-1;for(;;){const o=["count="+t];-1==s?0<t?(s=i[0].h,o.push("ofs="+s)):s=0:o.push("ofs="+s);let a=!0;for(let l=0;l<t;l++){let c=i[l].h;const u=i[l].g;if(c-=s,0>c)s=Math.max(0,i[l].h-100),a=!1;else try{yce(u,o,"req"+c+"_")}catch{r&&r(u)}}if(a){r=o.join("&");break e}}}return n=n.i.splice(0,t),e.D=n,r}function eB(n){n.g||n.u||(n.Z=1,hV(n.Ia,n),n.A=0)}function ST(n){return!(n.g||n.u||3<=n.A||(n.Z++,n.u=yd(jn(n.Ia,n),rB(n,n.A)),n.A++,0))}function ET(n){null!=n.B&&(Ae.clearTimeout(n.B),n.B=null)}function tB(n){n.g=new vd(n,n.j,"rpc",n.Z),null===n.o&&(n.g.H=n.s),n.g.N=0;var e=Rs(n.sa);Tt(e,"RID","rpc"),Tt(e,"SID",n.I),Tt(e,"CI",n.L?"0":"1"),Tt(e,"AID",n.T),Tt(e,"TYPE","xmlhttp"),Ad(n,e),n.o&&n.s&&wT(e,n.o,n.s),n.J&&n.g.setTimeout(n.J);var t=n.g;n=n.ka,t.K=1,t.v=xg(Rs(e)),t.s=null,t.P=!0,xV(t,n)}function Pg(n){null!=n.v&&(Ae.clearTimeout(n.v),n.v=null)}function nB(n,e){var t=null;if(n.g==e){Pg(n),ET(n),n.g=null;var r=2}else{if(!yT(n.h,e))return;t=e.D,$V(n.h,e),r=1}if(0!=n.G)if(n.pa=e.Y,e.i)if(1==r){t=e.s?e.s.length:0,e=Date.now()-e.F;var i=n.C;Mn(r=vg(),new wV(r,t,e,i)),kg(n)}else eB(n);else if(3==(i=e.o)||0==i&&0<n.pa||!(1==r&&function Sce(n,e){return!(BV(n.h)>=n.h.j-(n.m?1:0)||(n.m?(n.i=e.D.concat(n.i),0):1==n.G||2==n.G||n.C>=(n.Za?0:n.$a)||(n.m=yd(jn(n.Ja,n,e),rB(n,n.C)),n.C++,0)))}(n,e)||2==r&&ST(n)))switch(t&&0<t.length&&(e=n.h,e.i=e.i.concat(t)),i){case 1:pa(n,5);break;case 4:pa(n,10);break;case 3:pa(n,6);break;default:pa(n,2)}}function rB(n,e){let t=n.Xa+Math.floor(Math.random()*n.bb);return n.l||(t*=2),t*e}function pa(n,e){if(n.j.info("Error code "+e),2==e){var t=null;n.l&&(t=null);var r=jn(n.kb,n);t||(t=new fa("//www.google.com/images/cleardot.gif"),Ae.location&&"http"==Ae.location.protocol||Eg(t,"https"),xg(t)),function _ce(n,e){const t=new _g;if(Ae.Image){const r=new Image;r.onload=ug(Ig,t,r,"TestLoadImage: loaded",!0,e),r.onerror=ug(Ig,t,r,"TestLoadImage: error",!1,e),r.onabort=ug(Ig,t,r,"TestLoadImage: abort",!1,e),r.ontimeout=ug(Ig,t,r,"TestLoadImage: timeout",!1,e),Ae.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=n}else e(!1)}(t.toString(),r)}else or(2);n.G=0,n.l&&n.l.va(e),iB(n),XV(n)}function iB(n){if(n.G=0,n.la=[],n.l){const e=UV(n.h);(0!=e.length||0!=n.i.length)&&(X4(n.la,e),X4(n.la,n.i),n.h.i.length=0,HE(n.i),n.i.length=0),n.l.ua()}}function sB(n,e,t){var r=t instanceof fa?Rs(t):new fa(t,void 0);if(""!=r.g)e&&(r.g=e+"."+r.g),Tg(r,r.m);else{var i=Ae.location;r=i.protocol,e=e?e+"."+i.hostname:i.hostname,i=+i.port;var s=new fa(null,void 0);r&&Eg(s,r),e&&(s.g=e),i&&Tg(s,i),t&&(s.l=t),r=s}return e=n.za,(t=n.D)&&e&&Tt(r,t,e),Tt(r,"VER",n.ma),Ad(n,r),r}function oB(n,e,t){if(e&&!n.H)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new Lt(t&&n.Da&&!n.ra?new Td({jb:!0}):n.ra)).Ka(n.H),e}function aB(){}function Og(){if(Zl&&!(10<=Number($le)))throw Error("Environmental error: no available transport.")}function Br(n,e){vn.call(this),this.g=new QV(e),this.l=n,this.h=e&&e.messageUrlParams||null,n=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(n?n["X-Client-Protocol"]="webchannel":n={"X-Client-Protocol":"webchannel"}),this.g.s=n,n=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(n?n["X-WebChannel-Content-Type"]=e.messageContentType:n={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.ya&&(n?n["X-WebChannel-Client-Profile"]=e.ya:n={"X-WebChannel-Client-Profile":e.ya}),this.g.S=n,(n=e&&e.Yb)&&!dg(n)&&(this.g.o=n),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!dg(e)&&(this.g.D=e,null!==(n=this.h)&&e in n&&e in(n=this.h)&&delete n[e]),this.j=new tc(this)}function lB(n){dT.call(this);var e=n.__sm__;if(e){e:{for(const t in e){n=t;break e}n=void 0}(this.i=n)&&(n=this.i,e=null!==e&&n in e?e[n]:void 0),this.data=e}else this.data=n}function cB(){hT.call(this),this.status=1}function tc(n){this.g=n}(fe=Lt.prototype).Ka=function(n){this.L=n},fe.da=function(n,e,t,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+n);e=e?e.toUpperCase():"GET",this.H=n,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=this.u?this.u.g():fT.g(),this.C=function SV(n){return n.h||(n.h=n.i())}(this.u?this.u:fT),this.g.onreadystatechange=jn(this.Ha,this);try{this.F=!0,this.g.open(e,String(n),!0),this.F=!1}catch(s){return void jV(this,s)}if(n=t||"",t=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var i in r)t.set(i,r[i]);else{if("function"!=typeof r.keys||"function"!=typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));for(const s of r.keys())t.set(s,r.get(s))}r=Array.from(t.keys()).find(s=>"content-type"==s.toLowerCase()),i=Ae.FormData&&n instanceof Ae.FormData,!(0<=Q4(wce,e))||r||i||t.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[s,o]of t)this.g.setRequestHeader(s,o);this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{qV(this),0<this.B&&((this.K=function Cce(n){return Zl&&function Ble(){return function Rle(n){var e=Vle;return Object.prototype.hasOwnProperty.call(e,9)?e[9]:e[9]=n(9)}(function(){let n=0;const e=Z4(String(fg)).split("."),t=Z4("9").split("."),r=Math.max(e.length,t.length);for(let o=0;0==n&&o<r;o++){var i=e[o]||"",s=t[o]||"";do{if(i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==i[0].length&&0==s[0].length)break;n=zE(0==i[1].length?0:parseInt(i[1],10),0==s[1].length?0:parseInt(s[1],10))||zE(0==i[2].length,0==s[2].length)||zE(i[2],s[2]),i=i[3],s=s[3]}while(0==n)}return 0<=n})}()&&"number"==typeof n.timeout&&void 0!==n.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=jn(this.qa,this)):this.A=cT(this.qa,this.B,this)),this.v=!0,this.g.send(n),this.v=!1}catch(s){jV(this,s)}},fe.qa=function(){typeof $E<"u"&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,Mn(this,"timeout"),this.abort(8))},fe.abort=function(n){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=n||7,Mn(this,"complete"),Mn(this,"abort"),Ag(this))},fe.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Ag(this,!0)),Lt.X.M.call(this)},fe.Ha=function(){this.s||(this.F||this.v||this.l?WV(this):this.fb())},fe.fb=function(){WV(this)},fe.aa=function(){try{return 2<Ls(this)?this.g.status:-1}catch{return-1}},fe.fa=function(){try{return this.g?this.g.responseText:""}catch{return""}},fe.Sa=function(n){if(this.g){var e=this.g.responseText;return n&&0==e.indexOf(n)&&(e=e.substring(n.length)),vce(e)}},fe.Ea=function(){return this.m},fe.Oa=function(){return"string"==typeof this.j?this.j:String(this.j)},(fe=QV.prototype).ma=8,fe.G=1,fe.Ja=function(n){if(this.m)if(this.m=null,1==this.G){if(!n){this.U=Math.floor(1e5*Math.random()),n=this.U++;const i=new vd(this,this.j,n,void 0);let s=this.s;if(this.S&&(s?(s=rV(s),sV(s,this.S)):s=this.S),null!==this.o||this.N||(i.H=s,s=null),this.O)e:{for(var e=0,t=0;t<this.i.length;t++){var r=this.i[t];if(void 0===(r="__data__"in r.g&&"string"==typeof(r=r.g.__data__)?r.length:void 0))break;if(4096<(e+=r)){e=t;break e}if(4096===e||t===this.i.length-1){e=t+1;break e}}e=1e3}else e=1e3;e=JV(this,i,e),Tt(t=Rs(this.F),"RID",n),Tt(t,"CVER",22),this.D&&Tt(t,"X-HTTP-Session-Id",this.D),Ad(this,t),s&&(this.N?e="headers="+encodeURIComponent(String(KV(s)))+"&"+e:this.o&&wT(t,this.o,s)),_T(this.h,i),this.Ya&&Tt(t,"TYPE","init"),this.O?(Tt(t,"$req",e),Tt(t,"SID","null"),i.Z=!0,gT(i,t,null)):gT(i,t,e),this.G=2}}else 3==this.G&&(n?ZV(this,n):0==this.i.length||VV(this.h)||ZV(this))},fe.Ia=function(){if(this.u=null,tB(this),this.$&&!(this.K||null==this.g||0>=this.P)){var n=2*this.P;this.j.info("BP detection timer enabled: "+n),this.B=yd(jn(this.eb,this),n)}},fe.eb=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.L=!1,this.K=!0,or(10),Mg(this),tB(this))},fe.cb=function(){null!=this.v&&(this.v=null,Mg(this),ST(this),or(19))},fe.kb=function(n){n?(this.j.info("Successfully pinged google.com"),or(2)):(this.j.info("Failed to ping google.com"),or(1))},(fe=aB.prototype).xa=function(){},fe.wa=function(){},fe.va=function(){},fe.ua=function(){},fe.Ra=function(){},Og.prototype.g=function(n,e){return new Br(n,e)},An(Br,vn),Br.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.H=!0);var n=this.g,e=this.l,t=this.h||void 0;or(0),n.V=e,n.ia=t||{},n.L=n.Y,n.F=sB(n,null,n.V),kg(n)},Br.prototype.close=function(){CT(this.g)},Br.prototype.u=function(n){var e=this.g;if("string"==typeof n){var t={};t.__data__=n,n=t}else this.v&&((t={}).__data__=sT(n),n=t);e.i.push(new class{constructor(n,e){this.h=n,this.g=e}}(e.ab++,n)),3==e.G&&kg(e)},Br.prototype.M=function(){this.g.l=null,delete this.j,CT(this.g),delete this.g,Br.X.M.call(this)},An(lB,dT),An(cB,hT),An(tc,aB),tc.prototype.xa=function(){Mn(this.g,"a")},tc.prototype.wa=function(n){Mn(this.g,new lB(n))},tc.prototype.va=function(n){Mn(this.g,new cB(n))},tc.prototype.ua=function(){Mn(this.g,"b")},Og.prototype.createWebChannel=Og.prototype.g,Br.prototype.send=Br.prototype.u,Br.prototype.open=Br.prototype.m,Br.prototype.close=Br.prototype.close,bg.NO_ERROR=0,bg.TIMEOUT=8,bg.HTTP_ERROR=6,CV.COMPLETE="complete",EV.EventType=_d,_d.OPEN="a",_d.CLOSE="b",_d.ERROR="c",_d.MESSAGE="d",vn.prototype.listen=vn.prototype.N,Lt.prototype.listenOnce=Lt.prototype.O,Lt.prototype.getLastError=Lt.prototype.Oa,Lt.prototype.getLastErrorCode=Lt.prototype.Ea,Lt.prototype.getStatus=Lt.prototype.aa,Lt.prototype.getResponseJson=Lt.prototype.Sa,Lt.prototype.getResponseText=Lt.prototype.fa,Lt.prototype.send=Lt.prototype.da,Lt.prototype.setWithCredentials=Lt.prototype.Ka;var Ece=Ns.createWebChannelTransport=function(){return new Og},Tce=Ns.getStatEventTarget=function(){return vg()},TT=Ns.ErrorCode=bg,xce=Ns.EventType=CV,Ice=Ns.Event=da,uB=Ns.Stat={sb:0,vb:1,wb:2,Pb:3,Ub:4,Rb:5,Sb:6,Qb:7,Ob:8,Tb:9,PROXY:10,NOPROXY:11,Mb:12,Ib:13,Jb:14,Hb:15,Kb:16,Lb:17,ob:18,nb:19,pb:20},Dce=Ns.FetchXmlHttpFactory=Td,Ng=Ns.WebChannel=EV,Ace=Ns.XhrIo=Lt;const dB="@firebase/firestore";class bn{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}bn.UNAUTHENTICATED=new bn(null),bn.GOOGLE_CREDENTIALS=new bn("google-credentials-uid"),bn.FIRST_PARTY=new bn("first-party-uid"),bn.MOCK_USER=new bn("mock-user");let nc="9.12.1";const so=new zl("@firebase/firestore");function xT(){return so.logLevel}function Z(n,...e){if(so.logLevel<=je.DEBUG){const t=e.map(IT);so.debug(`Firestore (${nc}): ${n}`,...t)}}function Gt(n,...e){if(so.logLevel<=je.ERROR){const t=e.map(IT);so.error(`Firestore (${nc}): ${n}`,...t)}}function rc(n,...e){if(so.logLevel<=je.WARN){const t=e.map(IT);so.warn(`Firestore (${nc}): ${n}`,...t)}}function IT(n){if("string"==typeof n)return n;try{return JSON.stringify(n)}catch{return n}}function de(n="Unexpected state"){const e=`FIRESTORE (${nc}) INTERNAL ASSERTION FAILED: `+n;throw Gt(e),new Error(e)}function Se(n,e){n||de()}function re(n,e){return n}const B={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"};class Q extends ki{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class pn{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}class hB{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class Mce{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(bn.UNAUTHENTICATED))}shutdown(){}}class kce{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable(()=>t(this.token.user))}shutdown(){this.changeListener=null}}class Pce{constructor(e){this.t=e,this.currentUser=bn.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){var r=this;let i=this.i;const s=c=>this.i!==i?(i=this.i,t(c)):Promise.resolve();let o=new pn;this.o=()=>{this.i++,this.currentUser=this.u(),o.resolve(),o=new pn,e.enqueueRetryable(()=>s(this.currentUser))};const a=()=>{const c=o;e.enqueueRetryable(M(function*(){yield c.promise,yield s(r.currentUser)}))},l=c=>{Z("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=c,this.auth.addAuthTokenListener(this.o),a()};this.t.onInit(c=>l(c)),setTimeout(()=>{if(!this.auth){const c=this.t.getImmediate({optional:!0});c?l(c):(Z("FirebaseAuthCredentialsProvider","Auth not yet detected"),o.resolve(),o=new pn)}},0),a()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(r=>this.i!==e?(Z("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(Se("string"==typeof r.accessToken),new hB(r.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const e=this.auth&&this.auth.getUid();return Se(null===e||"string"==typeof e),new bn(e)}}class Oce{constructor(e,t,r,i){this.h=e,this.l=t,this.m=r,this.g=i,this.type="FirstParty",this.user=bn.FIRST_PARTY,this.p=new Map}I(){return this.g?this.g():(Se(!("object"!=typeof this.h||null===this.h||!this.h.auth||!this.h.auth.getAuthHeaderValueForFirstParty)),this.h.auth.getAuthHeaderValueForFirstParty([]))}get headers(){this.p.set("X-Goog-AuthUser",this.l);const e=this.I();return e&&this.p.set("Authorization",e),this.m&&this.p.set("X-Goog-Iam-Authorization-Token",this.m),this.p}}class Nce{constructor(e,t,r,i){this.h=e,this.l=t,this.m=r,this.g=i}getToken(){return Promise.resolve(new Oce(this.h,this.l,this.m,this.g))}start(e,t){e.enqueueRetryable(()=>t(bn.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class fB{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class Rce{constructor(e){this.T=e,this.forceRefresh=!1,this.appCheck=null,this.A=null}start(e,t){const r=s=>{null!=s.error&&Z("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${s.error.message}`);const o=s.token!==this.A;return this.A=s.token,Z("FirebaseAppCheckTokenProvider",`Received ${o?"new":"existing"} token.`),o?t(s.token):Promise.resolve()};this.o=s=>{e.enqueueRetryable(()=>r(s))};const i=s=>{Z("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=s,this.appCheck.addTokenListener(this.o)};this.T.onInit(s=>i(s)),setTimeout(()=>{if(!this.appCheck){const s=this.T.getImmediate({optional:!0});s?i(s):Z("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(t=>t?(Se("string"==typeof t.token),this.A=t.token,new fB(t.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function Lce(n){const e=typeof self<"u"&&(self.crypto||self.msCrypto),t=new Uint8Array(n);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(t);else for(let r=0;r<n;r++)t[r]=Math.floor(256*Math.random());return t}class pB{static R(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(256/e.length)*e.length;let r="";for(;r.length<20;){const i=Lce(40);for(let s=0;s<i.length;++s)r.length<20&&i[s]<t&&(r+=e.charAt(i[s]%e.length))}return r}}function Me(n,e){return n<e?-1:n>e?1:0}function ic(n,e,t){return n.length===e.length&&n.every((r,i)=>t(r,e[i]))}class Mt{constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new Q(B.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new Q(B.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new Q(B.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Q(B.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return Mt.fromMillis(Date.now())}static fromDate(e){return Mt.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),r=Math.floor(1e6*(e-1e3*t));return new Mt(t,r)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?Me(this.nanoseconds,e.nanoseconds):Me(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class Ee{constructor(e){this.timestamp=e}static fromTimestamp(e){return new Ee(e)}static min(){return new Ee(new Mt(0,0))}static max(){return new Ee(new Mt(253402300799,999999999))}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Md{constructor(e,t,r){void 0===t?t=0:t>e.length&&de(),void 0===r?r=e.length-t:r>e.length-t&&de(),this.segments=e,this.offset=t,this.len=r}get length(){return this.len}isEqual(e){return 0===Md.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof Md?e.forEach(r=>{t.push(r)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return this.construct(this.segments,this.offset+(e=void 0===e?1:e),this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,r=this.limit();t<r;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const r=Math.min(e.length,t.length);for(let i=0;i<r;i++){const s=e.get(i),o=t.get(i);if(s<o)return-1;if(s>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}class Ge extends Md{construct(e,t,r){return new Ge(e,t,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}static fromString(...e){const t=[];for(const r of e){if(r.indexOf("//")>=0)throw new Q(B.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);t.push(...r.split("/").filter(i=>i.length>0))}return new Ge(t)}static emptyPath(){return new Ge([])}}const Fce=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Wt extends Md{construct(e,t,r){return new Wt(e,t,r)}static isValidIdentifier(e){return Fce.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Wt.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Wt(["__name__"])}static fromServerFormat(e){const t=[];let r="",i=0;const s=()=>{if(0===r.length)throw new Q(B.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(r),r=""};let o=!1;for(;i<e.length;){const a=e[i];if("\\"===a){if(i+1===e.length)throw new Q(B.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const l=e[i+1];if("\\"!==l&&"."!==l&&"`"!==l)throw new Q(B.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=l,i+=2}else"`"===a?(o=!o,i++):"."!==a||o?(r+=a,i++):(s(),i++)}if(s(),o)throw new Q(B.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new Wt(t)}static emptyPath(){return new Wt([])}}class ne{constructor(e){this.path=e}static fromPath(e){return new ne(Ge.fromString(e))}static fromName(e){return new ne(Ge.fromString(e).popFirst(5))}static empty(){return new ne(Ge.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===Ge.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return Ge.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new ne(new Ge(e.slice()))}}function yB(n){return new $r(n.readTime,n.key,-1)}class $r{constructor(e,t,r){this.readTime=e,this.documentKey=t,this.largestBatchId=r}static min(){return new $r(Ee.min(),ne.empty(),-1)}static max(){return new $r(Ee.max(),ne.empty(),-1)}}function AT(n,e){let t=n.readTime.compareTo(e.readTime);return 0!==t?t:(t=ne.comparator(n.documentKey,e.documentKey),0!==t?t:Me(n.largestBatchId,e.largestBatchId))}const _B="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";function oo(n){return MT.apply(this,arguments)}function MT(){return MT=M(function*(n){if(n.code!==B.FAILED_PRECONDITION||n.message!==_B)throw n;Z("LocalStore","Unexpectedly lost primary lease")}),MT.apply(this,arguments)}class N{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(t=>{this.isDone=!0,this.result=t,this.nextCallback&&this.nextCallback(t)},t=>{this.isDone=!0,this.error=t,this.catchCallback&&this.catchCallback(t)})}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&de(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new N((r,i)=>{this.nextCallback=s=>{this.wrapSuccess(e,s).next(r,i)},this.catchCallback=s=>{this.wrapFailure(t,s).next(r,i)}})}toPromise(){return new Promise((e,t)=>{this.next(e,t)})}wrapUserFunction(e){try{const t=e();return t instanceof N?t:N.resolve(t)}catch(t){return N.reject(t)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):N.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):N.reject(t)}static resolve(e){return new N((t,r)=>{t(e)})}static reject(e){return new N((t,r)=>{r(e)})}static waitFor(e){return new N((t,r)=>{let i=0,s=0,o=!1;e.forEach(a=>{++i,a.next(()=>{++s,o&&s===i&&t()},l=>r(l))}),o=!0,s===i&&t()})}static or(e){let t=N.resolve(!1);for(const r of e)t=t.next(i=>i?N.resolve(i):r());return t}static forEach(e,t){const r=[];return e.forEach((i,s)=>{r.push(t.call(this,i,s))}),this.waitFor(r)}static mapArray(e,t){return new N((r,i)=>{const s=e.length,o=new Array(s);let a=0;for(let l=0;l<s;l++){const c=l;t(e[c]).next(u=>{o[c]=u,++a,a===s&&r(o)},u=>i(u))}})}static doWhile(e,t){return new N((r,i)=>{const s=()=>{!0===e()?t().next(()=>{s()},i):r()};s()})}}function ao(n){return"IndexedDbTransactionError"===n.name}class wr{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=r=>this.ut(r),this.ct=r=>t.writeSequenceNumber(r))}ut(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.ct&&this.ct(e),e}}function bB(n){let e=0;for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&e++;return e}function ya(n,e){for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&e(t,n[t])}function wB(n){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e))return!1;return!0}wr.at=-1;class Ft{constructor(e,t){this.comparator=e,this.root=t||kn.EMPTY}insert(e,t){return new Ft(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,kn.BLACK,null,null))}remove(e){return new Ft(this.comparator,this.root.remove(e,this.comparator).copy(null,null,kn.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const r=this.comparator(e,t.key);if(0===r)return t.value;r<0?t=t.left:r>0&&(t=t.right)}return null}indexOf(e){let t=0,r=this.root;for(;!r.isEmpty();){const i=this.comparator(e,r.key);if(0===i)return t+r.left.size;i<0?r=r.left:(t+=r.left.size+1,r=r.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,r)=>(e(t,r),!1))}toString(){const e=[];return this.inorderTraversal((t,r)=>(e.push(`${t}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Vg(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Vg(this.root,e,this.comparator,!1)}getReverseIterator(){return new Vg(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Vg(this.root,e,this.comparator,!0)}}class Vg{constructor(e,t,r,i){this.isReverse=i,this.nodeStack=[];let s=1;for(;!e.isEmpty();)if(s=t?r(e.key,t):1,t&&i&&(s*=-1),s<0)e=this.isReverse?e.left:e.right;else{if(0===s){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class kn{constructor(e,t,r,i,s){this.key=e,this.value=t,this.color=r??kn.RED,this.left=i??kn.EMPTY,this.right=s??kn.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,r,i,s){return new kn(e??this.key,t??this.value,r??this.color,i??this.left,s??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,r){let i=this;const s=r(e,i.key);return i=s<0?i.copy(null,null,null,i.left.insert(e,t,r),null):0===s?i.copy(null,t,null,null,null):i.copy(null,null,null,null,i.right.insert(e,t,r)),i.fixUp()}removeMin(){if(this.left.isEmpty())return kn.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let r,i=this;if(t(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,t),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===t(e,i.key)){if(i.right.isEmpty())return kn.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,t))}return i.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,kn.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,kn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw de();const e=this.left.check();if(e!==this.right.check())throw de();return e+(this.isRed()?0:1)}}kn.EMPTY=null,kn.RED=!0,kn.BLACK=!1,kn.EMPTY=new class{constructor(){this.size=0}get key(){throw de()}get value(){throw de()}get color(){throw de()}get left(){throw de()}get right(){throw de()}copy(n,e,t,r,i){return this}insert(n,e,t){return new kn(n,e)}remove(n,e){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class lt{constructor(e){this.comparator=e,this.data=new Ft(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,r)=>(e(t),!1))}forEachInRange(e,t){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const i=r.getNext();if(this.comparator(i.key,e[1])>=0)return;t(i.key)}}forEachWhile(e,t){let r;for(r=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new CB(this.data.getIterator())}getIteratorFrom(e){return new CB(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach(r=>{t=t.add(r)}),t}isEqual(e){if(!(e instanceof lt)||this.size!==e.size)return!1;const t=this.data.getIterator(),r=e.data.getIterator();for(;t.hasNext();){const i=t.getNext().key,s=r.getNext().key;if(0!==this.comparator(i,s))return!1}return!0}toArray(){const e=[];return this.forEach(t=>{e.push(t)}),e}toString(){const e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){const t=new lt(this.comparator);return t.data=e,t}}class CB{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Ur{constructor(e){this.fields=e,e.sort(Wt.comparator)}static empty(){return new Ur([])}unionWith(e){let t=new lt(Wt.comparator);for(const r of this.fields)t=t.add(r);for(const r of e)t=t.add(r);return new Ur(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return ic(this.fields,e.fields,(t,r)=>t.isEqual(r))}}class gn{constructor(e){this.binaryString=e}static fromBase64String(e){const t=atob(e);return new gn(t)}static fromUint8Array(e){const t=function(r){let i="";for(let s=0;s<r.length;++s)i+=String.fromCharCode(r[s]);return i}(e);return new gn(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return btoa(this.binaryString)}toUint8Array(){return function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Me(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}gn.EMPTY_BYTE_STRING=new gn("");const Gce=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function lo(n){if(Se(!!n),"string"==typeof n){let e=0;const t=Gce.exec(n);if(Se(!!t),t[1]){let i=t[1];i=(i+"000000000").substr(0,9),e=Number(i)}const r=new Date(n);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:Vt(n.seconds),nanos:Vt(n.nanos)}}function Vt(n){return"number"==typeof n?n:"string"==typeof n?Number(n):0}function _a(n){return"string"==typeof n?gn.fromBase64String(n):gn.fromUint8Array(n)}function PT(n){var e,t;return"server_timestamp"===(null===(t=((null===(e=n?.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===t?void 0:t.stringValue)}function SB(n){const e=n.mapValue.fields.__previous_value__;return PT(e)?SB(e):e}function Od(n){const e=lo(n.mapValue.fields.__local_write_time__.timestampValue);return new Mt(e.seconds,e.nanos)}class Wce{constructor(e,t,r,i,s,o,a,l){this.databaseId=e,this.appId=t,this.persistenceKey=r,this.host=i,this.ssl=s,this.forceLongPolling=o,this.autoDetectLongPolling=a,this.useFetchStreams=l}}class va{constructor(e,t){this.projectId=e,this.database=t||"(default)"}static empty(){return new va("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof va&&e.projectId===this.projectId&&e.database===this.database}}function Nd(n){return null==n}function Rd(n){return 0===n&&1/n==-1/0}const co_mapValue={fields:{__type__:{stringValue:"__max__"}}};function ba(n){return"nullValue"in n?0:"booleanValue"in n?1:"integerValue"in n||"doubleValue"in n?2:"timestampValue"in n?3:"stringValue"in n?5:"bytesValue"in n?6:"referenceValue"in n?7:"geoPointValue"in n?8:"arrayValue"in n?9:"mapValue"in n?PT(n)?4:DB(n)?9007199254740991:10:de()}function Zi(n,e){if(n===e)return!0;const t=ba(n);if(t!==ba(e))return!1;switch(t){case 0:case 9007199254740991:return!0;case 1:return n.booleanValue===e.booleanValue;case 4:return Od(n).isEqual(Od(e));case 3:return function(r,i){if("string"==typeof r.timestampValue&&"string"==typeof i.timestampValue&&r.timestampValue.length===i.timestampValue.length)return r.timestampValue===i.timestampValue;const s=lo(r.timestampValue),o=lo(i.timestampValue);return s.seconds===o.seconds&&s.nanos===o.nanos}(n,e);case 5:return n.stringValue===e.stringValue;case 6:return i=e,_a(n.bytesValue).isEqual(_a(i.bytesValue));case 7:return n.referenceValue===e.referenceValue;case 8:return function(r,i){return Vt(r.geoPointValue.latitude)===Vt(i.geoPointValue.latitude)&&Vt(r.geoPointValue.longitude)===Vt(i.geoPointValue.longitude)}(n,e);case 2:return function(r,i){if("integerValue"in r&&"integerValue"in i)return Vt(r.integerValue)===Vt(i.integerValue);if("doubleValue"in r&&"doubleValue"in i){const s=Vt(r.doubleValue),o=Vt(i.doubleValue);return s===o?Rd(s)===Rd(o):isNaN(s)&&isNaN(o)}return!1}(n,e);case 9:return ic(n.arrayValue.values||[],e.arrayValue.values||[],Zi);case 10:return function(r,i){const s=r.mapValue.fields||{},o=i.mapValue.fields||{};if(bB(s)!==bB(o))return!1;for(const a in s)if(s.hasOwnProperty(a)&&(void 0===o[a]||!Zi(s[a],o[a])))return!1;return!0}(n,e);default:return de()}var i}function Ld(n,e){return void 0!==(n.values||[]).find(t=>Zi(t,e))}function uo(n,e){if(n===e)return 0;const t=ba(n),r=ba(e);if(t!==r)return Me(t,r);switch(t){case 0:case 9007199254740991:return 0;case 1:return Me(n.booleanValue,e.booleanValue);case 2:return function(i,s){const o=Vt(i.integerValue||i.doubleValue),a=Vt(s.integerValue||s.doubleValue);return o<a?-1:o>a?1:o===a?0:isNaN(o)?isNaN(a)?0:-1:1}(n,e);case 3:return TB(n.timestampValue,e.timestampValue);case 4:return TB(Od(n),Od(e));case 5:return Me(n.stringValue,e.stringValue);case 6:return function(i,s){const o=_a(i),a=_a(s);return o.compareTo(a)}(n.bytesValue,e.bytesValue);case 7:return function(i,s){const o=i.split("/"),a=s.split("/");for(let l=0;l<o.length&&l<a.length;l++){const c=Me(o[l],a[l]);if(0!==c)return c}return Me(o.length,a.length)}(n.referenceValue,e.referenceValue);case 8:return function(i,s){const o=Me(Vt(i.latitude),Vt(s.latitude));return 0!==o?o:Me(Vt(i.longitude),Vt(s.longitude))}(n.geoPointValue,e.geoPointValue);case 9:return function(i,s){const o=i.values||[],a=s.values||[];for(let l=0;l<o.length&&l<a.length;++l){const c=uo(o[l],a[l]);if(c)return c}return Me(o.length,a.length)}(n.arrayValue,e.arrayValue);case 10:return function(i,s){if(i===co_mapValue&&s===co_mapValue)return 0;if(i===co_mapValue)return 1;if(s===co_mapValue)return-1;const o=i.fields||{},a=Object.keys(o),l=s.fields||{},c=Object.keys(l);a.sort(),c.sort();for(let u=0;u<a.length&&u<c.length;++u){const d=Me(a[u],c[u]);if(0!==d)return d;const h=uo(o[a[u]],l[c[u]]);if(0!==h)return h}return Me(a.length,c.length)}(n.mapValue,e.mapValue);default:throw de()}}function TB(n,e){if("string"==typeof n&&"string"==typeof e&&n.length===e.length)return Me(n,e);const t=lo(n),r=lo(e),i=Me(t.seconds,r.seconds);return 0!==i?i:Me(t.nanos,r.nanos)}function oc(n){return OT(n)}function OT(n){return"nullValue"in n?"null":"booleanValue"in n?""+n.booleanValue:"integerValue"in n?""+n.integerValue:"doubleValue"in n?""+n.doubleValue:"timestampValue"in n?function(r){const i=lo(r);return`time(${i.seconds},${i.nanos})`}(n.timestampValue):"stringValue"in n?n.stringValue:"bytesValue"in n?_a(n.bytesValue).toBase64():"referenceValue"in n?ne.fromName(n.referenceValue).toString():"geoPointValue"in n?`geo(${(e=n.geoPointValue).latitude},${e.longitude})`:"arrayValue"in n?function(r){let i="[",s=!0;for(const o of r.values||[])s?s=!1:i+=",",i+=OT(o);return i+"]"}(n.arrayValue):"mapValue"in n?function(r){const i=Object.keys(r.fields||{}).sort();let s="{",o=!0;for(const a of i)o?o=!1:s+=",",s+=`${a}:${OT(r.fields[a])}`;return s+"}"}(n.mapValue):de();var e}function NT(n){return!!n&&"integerValue"in n}function Fd(n){return!!n&&"arrayValue"in n}function xB(n){return!!n&&"nullValue"in n}function IB(n){return!!n&&"doubleValue"in n&&isNaN(Number(n.doubleValue))}function $g(n){return!!n&&"mapValue"in n}function Vd(n){if(n.geoPointValue)return{geoPointValue:Object.assign({},n.geoPointValue)};if(n.timestampValue&&"object"==typeof n.timestampValue)return{timestampValue:Object.assign({},n.timestampValue)};if(n.mapValue){const e={mapValue:{fields:{}}};return ya(n.mapValue.fields,(t,r)=>e.mapValue.fields[t]=Vd(r)),e}if(n.arrayValue){const e={arrayValue:{values:[]}};for(let t=0;t<(n.arrayValue.values||[]).length;++t)e.arrayValue.values[t]=Vd(n.arrayValue.values[t]);return e}return Object.assign({},n)}function DB(n){return"__max__"===(((n.mapValue||{}).fields||{}).__type__||{}).stringValue}class Pn{constructor(e){this.value=e}static empty(){return new Pn({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let r=0;r<e.length-1;++r)if(t=(t.mapValue.fields||{})[e.get(r)],!$g(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=Vd(t)}setAll(e){let t=Wt.emptyPath(),r={},i=[];e.forEach((o,a)=>{if(!t.isImmediateParentOf(a)){const l=this.getFieldsMap(t);this.applyChanges(l,r,i),r={},i=[],t=a.popLast()}o?r[a.lastSegment()]=Vd(o):i.push(a.lastSegment())});const s=this.getFieldsMap(t);this.applyChanges(s,r,i)}delete(e){const t=this.field(e.popLast());$g(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return Zi(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let r=0;r<e.length;++r){let i=t.mapValue.fields[e.get(r)];$g(i)&&i.mapValue.fields||(i={mapValue:{fields:{}}},t.mapValue.fields[e.get(r)]=i),t=i}return t.mapValue.fields}applyChanges(e,t,r){ya(t,(i,s)=>e[i]=s);for(const i of r)delete e[i]}clone(){return new Pn(Vd(this.value))}}function kB(n){const e=[];return ya(n.fields,(t,r)=>{const i=new Wt([t]);if($g(r)){const s=kB(r.mapValue).fields;if(0===s.length)e.push(i);else for(const o of s)e.push(i.child(o))}else e.push(i)}),new Ur(e)}class wt{constructor(e,t,r,i,s,o){this.key=e,this.documentType=t,this.version=r,this.readTime=i,this.data=s,this.documentState=o}static newInvalidDocument(e){return new wt(e,0,Ee.min(),Ee.min(),Pn.empty(),0)}static newFoundDocument(e,t,r){return new wt(e,1,t,Ee.min(),r,0)}static newNoDocument(e,t){return new wt(e,2,t,Ee.min(),Pn.empty(),0)}static newUnknownDocument(e,t){return new wt(e,3,t,Ee.min(),Pn.empty(),2)}convertToFoundDocument(e,t){return this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=Pn.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=Pn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Ee.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof wt&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new wt(this.key,this.documentType,this.version,this.readTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class Kce{constructor(e,t=null,r=[],i=[],s=null,o=null,a=null){this.path=e,this.collectionGroup=t,this.orderBy=r,this.filters=i,this.limit=s,this.startAt=o,this.endAt=a,this.ht=null}}function PB(n,e=null,t=[],r=[],i=null,s=null,o=null){return new Kce(n,e,t,r,i,s,o)}function Ca(n){const e=re(n);if(null===e.ht){let t=e.path.canonicalString();null!==e.collectionGroup&&(t+="|cg:"+e.collectionGroup),t+="|f:",t+=e.filters.map(r=>{return(i=r).field.canonicalString()+i.op.toString()+oc(i.value);var i}).join(","),t+="|ob:",t+=e.orderBy.map(r=>{return(i=r).field.canonicalString()+i.dir;var i}).join(","),Nd(e.limit)||(t+="|l:",t+=e.limit),e.startAt&&(t+="|lb:",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(r=>oc(r)).join(",")),e.endAt&&(t+="|ub:",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(r=>oc(r)).join(",")),e.ht=t}return e.ht}function Bd(n,e){if(n.limit!==e.limit||n.orderBy.length!==e.orderBy.length)return!1;for(let i=0;i<n.orderBy.length;i++)if(!iue(n.orderBy[i],e.orderBy[i]))return!1;if(n.filters.length!==e.filters.length)return!1;for(let i=0;i<n.filters.length;i++)if((t=n.filters[i]).op!==(r=e.filters[i]).op||!t.field.isEqual(r.field)||!Zi(t.value,r.value))return!1;var t,r;return n.collectionGroup===e.collectionGroup&&!!n.path.isEqual(e.path)&&!!FB(n.startAt,e.startAt)&&FB(n.endAt,e.endAt)}function Ug(n){return ne.isDocumentKey(n.path)&&null===n.collectionGroup&&0===n.filters.length}class On extends class{}{constructor(e,t,r){super(),this.field=e,this.op=t,this.value=r}static create(e,t,r){return e.isKeyField()?"in"===t||"not-in"===t?this.lt(e,t,r):new Xce(e,t,r):"array-contains"===t?new eue(e,r):"in"===t?new tue(e,r):"not-in"===t?new nue(e,r):"array-contains-any"===t?new rue(e,r):new On(e,t,r)}static lt(e,t,r){return"in"===t?new Zce(e,r):new Jce(e,r)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&this.ft(uo(t,this.value)):null!==t&&ba(this.value)===ba(t)&&this.ft(uo(t,this.value))}ft(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return de()}}dt(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}}class Xce extends On{constructor(e,t,r){super(e,t,r),this.key=ne.fromName(r.referenceValue)}matches(e){const t=ne.comparator(e.key,this.key);return this.ft(t)}}class Zce extends On{constructor(e,t){super(e,"in",t),this.keys=RB(0,t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class Jce extends On{constructor(e,t){super(e,"not-in",t),this.keys=RB(0,t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function RB(n,e){var t;return((null===(t=e.arrayValue)||void 0===t?void 0:t.values)||[]).map(r=>ne.fromName(r.referenceValue))}class eue extends On{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return Fd(t)&&Ld(t.arrayValue,this.value)}}class tue extends On{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&Ld(this.value.arrayValue,t)}}class nue extends On{constructor(e,t){super(e,"not-in",t)}matches(e){if(Ld(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&!Ld(this.value.arrayValue,t)}}class rue extends On{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!Fd(t)||!t.arrayValue.values)&&t.arrayValue.values.some(r=>Ld(this.value.arrayValue,r))}}class ho{constructor(e,t){this.position=e,this.inclusive=t}}class ac{constructor(e,t="asc"){this.field=e,this.dir=t}}function iue(n,e){return n.dir===e.dir&&n.field.isEqual(e.field)}function LB(n,e,t){let r=0;for(let i=0;i<n.position.length;i++){const s=e[i],o=n.position[i];if(r=s.field.isKeyField()?ne.comparator(ne.fromName(o.referenceValue),t.key):uo(o,t.data.field(s.field)),"desc"===s.dir&&(r*=-1),0!==r)break}return r}function FB(n,e){if(null===n)return null===e;if(null===e||n.inclusive!==e.inclusive||n.position.length!==e.position.length)return!1;for(let t=0;t<n.position.length;t++)if(!Zi(n.position[t],e.position[t]))return!1;return!0}class Fs{constructor(e,t=null,r=[],i=[],s=null,o="F",a=null,l=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=r,this.filters=i,this.limit=s,this.limitType=o,this.startAt=a,this.endAt=l,this._t=null,this.wt=null}}function lc(n){return new Fs(n)}function BB(n){return 0===n.filters.length&&null===n.limit&&null==n.startAt&&null==n.endAt&&(0===n.explicitOrderBy.length||1===n.explicitOrderBy.length&&n.explicitOrderBy[0].field.isKeyField())}function RT(n){return n.explicitOrderBy.length>0?n.explicitOrderBy[0].field:null}function LT(n){for(const e of n.filters)if(e.dt())return e.field;return null}function cc(n){const e=re(n);if(null===e._t){e._t=[];const t=LT(e),r=RT(e);if(null!==t&&null===r)t.isKeyField()||e._t.push(new ac(t)),e._t.push(new ac(Wt.keyField(),"asc"));else{let i=!1;for(const s of e.explicitOrderBy)e._t.push(s),s.field.isKeyField()&&(i=!0);if(!i){const s=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e._t.push(new ac(Wt.keyField(),s))}}}return e._t}function ar(n){const e=re(n);if(!e.wt)if("F"===e.limitType)e.wt=PB(e.path,e.collectionGroup,cc(e),e.filters,e.limit,e.startAt,e.endAt);else{const t=[];for(const s of cc(e))t.push(new ac(s.field,"desc"===s.dir?"asc":"desc"));const r=e.endAt?new ho(e.endAt.position,e.endAt.inclusive):null,i=e.startAt?new ho(e.startAt.position,e.startAt.inclusive):null;e.wt=PB(e.path,e.collectionGroup,t,e.filters,e.limit,r,i)}return e.wt}function zg(n,e,t){return new Fs(n.path,n.collectionGroup,n.explicitOrderBy.slice(),n.filters.slice(),e,t,n.startAt,n.endAt)}function $d(n,e){return Bd(ar(n),ar(e))&&n.limitType===e.limitType}function $B(n){return`${Ca(ar(n))}|lt:${n.limitType}`}function VT(n){return`Query(target=${function Qce(n){let e=n.path.canonicalString();return null!==n.collectionGroup&&(e+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(e+=`, filters: [${n.filters.map(t=>{return`${(r=t).field.canonicalString()} ${r.op} ${oc(r.value)}`;var r}).join(", ")}]`),Nd(n.limit)||(e+=", limit: "+n.limit),n.orderBy.length>0&&(e+=`, orderBy: [${n.orderBy.map(t=>{return`${(r=t).field.canonicalString()} (${r.dir})`;var r}).join(", ")}]`),n.startAt&&(e+=", startAt: ",e+=n.startAt.inclusive?"b:":"a:",e+=n.startAt.position.map(t=>oc(t)).join(",")),n.endAt&&(e+=", endAt: ",e+=n.endAt.inclusive?"a:":"b:",e+=n.endAt.position.map(t=>oc(t)).join(",")),`Target(${e})`}(ar(n))}; limitType=${n.limitType})`}function BT(n,e){return e.isFoundDocument()&&function(t,r){const i=r.key.path;return null!==t.collectionGroup?r.key.hasCollectionId(t.collectionGroup)&&t.path.isPrefixOf(i):ne.isDocumentKey(t.path)?t.path.isEqual(i):t.path.isImmediateParentOf(i)}(n,e)&&function(t,r){for(const i of t.explicitOrderBy)if(!i.field.isKeyField()&&null===r.data.field(i.field))return!1;return!0}(n,e)&&function(t,r){for(const i of t.filters)if(!i.matches(r))return!1;return!0}(n,e)&&(r=e,!((t=n).startAt&&!function(i,s,o){const a=LB(i,s,o);return i.inclusive?a<=0:a<0}(t.startAt,cc(t),r)||t.endAt&&!function(i,s,o){const a=LB(i,s,o);return i.inclusive?a>=0:a>0}(t.endAt,cc(t),r)));var t,r}function HB(n){return(e,t)=>{let r=!1;for(const i of cc(n)){const s=sue(i,e,t);if(0!==s)return s;r=r||i.field.isKeyField()}return 0}}function sue(n,e,t){const r=n.field.isKeyField()?ne.comparator(e.key,t.key):function(i,s,o){const a=s.data.field(i),l=o.data.field(i);return null!==a&&null!==l?uo(a,l):de()}(n.field,e,t);switch(n.dir){case"asc":return r;case"desc":return-1*r;default:return de()}}function zB(n,e){if(n.gt){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Rd(e)?"-0":e}}function jB(n){return{integerValue:""+n}}function GB(n,e){return function EB(n){return"number"==typeof n&&Number.isInteger(n)&&!Rd(n)&&n<=Number.MAX_SAFE_INTEGER&&n>=Number.MIN_SAFE_INTEGER}(e)?jB(e):zB(n,e)}class jg{constructor(){this._=void 0}}function oue(n,e,t){return n instanceof uc?function(r,i){const s={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:r.seconds,nanos:r.nanoseconds}}}};return i&&(s.fields.__previous_value__=i),{mapValue:s}}(t,e):n instanceof Sa?qB(n,e):n instanceof Ea?YB(n,e):function(r,i){const s=WB(r,i),o=KB(s)+KB(r.yt);return NT(s)&&NT(r.yt)?jB(o):zB(r.It,o)}(n,e)}function aue(n,e,t){return n instanceof Sa?qB(n,e):n instanceof Ea?YB(n,e):t}function WB(n,e){return n instanceof dc?NT(t=e)||(r=t)&&"doubleValue"in r?e:{integerValue:0}:null;var r,t}class uc extends jg{}class Sa extends jg{constructor(e){super(),this.elements=e}}function qB(n,e){const t=QB(e);for(const r of n.elements)t.some(i=>Zi(i,r))||t.push(r);return{arrayValue:{values:t}}}class Ea extends jg{constructor(e){super(),this.elements=e}}function YB(n,e){let t=QB(e);for(const r of n.elements)t=t.filter(i=>!Zi(i,r));return{arrayValue:{values:t}}}class dc extends jg{constructor(e,t){super(),this.It=e,this.yt=t}}function KB(n){return Vt(n.integerValue||n.doubleValue)}function QB(n){return Fd(n)&&n.arrayValue.values?n.arrayValue.values.slice():[]}class Ud{constructor(e,t){this.field=e,this.transform=t}}class cue{constructor(e,t){this.version=e,this.transformResults=t}}class xt{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new xt}static exists(e){return new xt(void 0,e)}static updateTime(e){return new xt(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function Gg(n,e){return void 0!==n.updateTime?e.isFoundDocument()&&e.version.isEqual(n.updateTime):void 0===n.exists||n.exists===e.isFoundDocument()}class Wg{}function XB(n,e){if(!n.hasLocalMutations||e&&0===e.fields.length)return null;if(null===e)return n.isNoDocument()?new fc(n.key,xt.none()):new hc(n.key,n.data,xt.none());{const t=n.data,r=Pn.empty();let i=new lt(Wt.comparator);for(let s of e.fields)if(!i.has(s)){let o=t.field(s);null===o&&s.length>1&&(s=s.popLast(),o=t.field(s)),null===o?r.delete(s):r.set(s,o),i=i.add(s)}return new Vs(n.key,r,new Ur(i.toArray()),xt.none())}}function uue(n,e,t){n instanceof hc?function(r,i,s){const o=r.value.clone(),a=e6(r.fieldTransforms,i,s.transformResults);o.setAll(a),i.convertToFoundDocument(s.version,o).setHasCommittedMutations()}(n,e,t):n instanceof Vs?function(r,i,s){if(!Gg(r.precondition,i))return void i.convertToUnknownDocument(s.version);const o=e6(r.fieldTransforms,i,s.transformResults),a=i.data;a.setAll(JB(r)),a.setAll(o),i.convertToFoundDocument(s.version,a).setHasCommittedMutations()}(n,e,t):e.convertToNoDocument(t.version).setHasCommittedMutations()}function Hd(n,e,t,r){return n instanceof hc?function(i,s,o,a){if(!Gg(i.precondition,s))return o;const l=i.value.clone(),c=t6(i.fieldTransforms,a,s);return l.setAll(c),s.convertToFoundDocument(s.version,l).setHasLocalMutations(),null}(n,e,t,r):n instanceof Vs?function(i,s,o,a){if(!Gg(i.precondition,s))return o;const l=t6(i.fieldTransforms,a,s),c=s.data;return c.setAll(JB(i)),c.setAll(l),s.convertToFoundDocument(s.version,c).setHasLocalMutations(),null===o?null:o.unionWith(i.fieldMask.fields).unionWith(i.fieldTransforms.map(u=>u.field))}(n,e,t,r):(o=t,Gg(n.precondition,s=e)?(s.convertToNoDocument(s.version).setHasLocalMutations(),null):o);var s,o}function due(n,e){let t=null;for(const r of n.fieldTransforms){const i=e.data.field(r.field),s=WB(r.transform,i||null);null!=s&&(null===t&&(t=Pn.empty()),t.set(r.field,s))}return t||null}function ZB(n,e){return n.type===e.type&&!!n.key.isEqual(e.key)&&!!n.precondition.isEqual(e.precondition)&&(r=e.fieldTransforms,!!(void 0===(t=n.fieldTransforms)&&void 0===r||t&&r&&ic(t,r,(i,s)=>function lue(n,e){return n.field.isEqual(e.field)&&(r=e.transform,(t=n.transform)instanceof Sa&&r instanceof Sa||t instanceof Ea&&r instanceof Ea?ic(t.elements,r.elements,Zi):t instanceof dc&&r instanceof dc?Zi(t.yt,r.yt):t instanceof uc&&r instanceof uc);var t,r}(i,s))))&&(0===n.type?n.value.isEqual(e.value):1!==n.type||n.data.isEqual(e.data)&&n.fieldMask.isEqual(e.fieldMask));var t,r}class hc extends Wg{constructor(e,t,r,i=[]){super(),this.key=e,this.value=t,this.precondition=r,this.fieldTransforms=i,this.type=0}getFieldMask(){return null}}class Vs extends Wg{constructor(e,t,r,i,s=[]){super(),this.key=e,this.data=t,this.fieldMask=r,this.precondition=i,this.fieldTransforms=s,this.type=1}getFieldMask(){return this.fieldMask}}function JB(n){const e=new Map;return n.fieldMask.fields.forEach(t=>{if(!t.isEmpty()){const r=n.data.field(t);e.set(t,r)}}),e}function e6(n,e,t){const r=new Map;Se(n.length===t.length);for(let i=0;i<t.length;i++){const s=n[i],o=s.transform,a=e.data.field(s.field);r.set(s.field,aue(o,a,t[i]))}return r}function t6(n,e,t){const r=new Map;for(const i of n){const s=i.transform,o=t.data.field(i.field);r.set(i.field,oue(s,o,e))}return r}class fc extends Wg{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class $T extends Wg{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class hue{constructor(e){this.count=e}}var en,We;function n6(n){switch(n){default:return de();case B.CANCELLED:case B.UNKNOWN:case B.DEADLINE_EXCEEDED:case B.RESOURCE_EXHAUSTED:case B.INTERNAL:case B.UNAVAILABLE:case B.UNAUTHENTICATED:return!1;case B.INVALID_ARGUMENT:case B.NOT_FOUND:case B.ALREADY_EXISTS:case B.PERMISSION_DENIED:case B.FAILED_PRECONDITION:case B.ABORTED:case B.OUT_OF_RANGE:case B.UNIMPLEMENTED:case B.DATA_LOSS:return!0}}function r6(n){if(void 0===n)return Gt("GRPC error has no .code"),B.UNKNOWN;switch(n){case en.OK:return B.OK;case en.CANCELLED:return B.CANCELLED;case en.UNKNOWN:return B.UNKNOWN;case en.DEADLINE_EXCEEDED:return B.DEADLINE_EXCEEDED;case en.RESOURCE_EXHAUSTED:return B.RESOURCE_EXHAUSTED;case en.INTERNAL:return B.INTERNAL;case en.UNAVAILABLE:return B.UNAVAILABLE;case en.UNAUTHENTICATED:return B.UNAUTHENTICATED;case en.INVALID_ARGUMENT:return B.INVALID_ARGUMENT;case en.NOT_FOUND:return B.NOT_FOUND;case en.ALREADY_EXISTS:return B.ALREADY_EXISTS;case en.PERMISSION_DENIED:return B.PERMISSION_DENIED;case en.FAILED_PRECONDITION:return B.FAILED_PRECONDITION;case en.ABORTED:return B.ABORTED;case en.OUT_OF_RANGE:return B.OUT_OF_RANGE;case en.UNIMPLEMENTED:return B.UNIMPLEMENTED;case en.DATA_LOSS:return B.DATA_LOSS;default:return de()}}(We=en||(en={}))[We.OK=0]="OK",We[We.CANCELLED=1]="CANCELLED",We[We.UNKNOWN=2]="UNKNOWN",We[We.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",We[We.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",We[We.NOT_FOUND=5]="NOT_FOUND",We[We.ALREADY_EXISTS=6]="ALREADY_EXISTS",We[We.PERMISSION_DENIED=7]="PERMISSION_DENIED",We[We.UNAUTHENTICATED=16]="UNAUTHENTICATED",We[We.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",We[We.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",We[We.ABORTED=10]="ABORTED",We[We.OUT_OF_RANGE=11]="OUT_OF_RANGE",We[We.UNIMPLEMENTED=12]="UNIMPLEMENTED",We[We.INTERNAL=13]="INTERNAL",We[We.UNAVAILABLE=14]="UNAVAILABLE",We[We.DATA_LOSS=15]="DATA_LOSS";class fo{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),r=this.inner[t];if(void 0!==r)for(const[i,s]of r)if(this.equalsFn(i,e))return s}has(e){return void 0!==this.get(e)}set(e,t){const r=this.mapKeyFn(e),i=this.inner[r];if(void 0===i)return this.inner[r]=[[e,t]],void this.innerSize++;for(let s=0;s<i.length;s++)if(this.equalsFn(i[s][0],e))return void(i[s]=[e,t]);i.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),r=this.inner[t];if(void 0===r)return!1;for(let i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return 1===r.length?delete this.inner[t]:r.splice(i,1),this.innerSize--,!0;return!1}forEach(e){ya(this.inner,(t,r)=>{for(const[i,s]of r)e(i,s)})}isEmpty(){return wB(this.inner)}size(){return this.innerSize}}const fue=new Ft(ne.comparator);function Cr(){return fue}const i6=new Ft(ne.comparator);function zd(...n){let e=i6;for(const t of n)e=e.insert(t.key,t);return e}function s6(n){let e=i6;return n.forEach((t,r)=>e=e.insert(t,r.overlayedDocument)),e}function Ji(){return jd()}function o6(){return jd()}function jd(){return new fo(n=>n.toString(),(n,e)=>n.isEqual(e))}const pue=new Ft(ne.comparator),gue=new lt(ne.comparator);function Re(...n){let e=gue;for(const t of n)e=e.add(t);return e}const mue=new lt(Me);function qg(){return mue}class Gd{constructor(e,t,r,i,s){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=r,this.documentUpdates=i,this.resolvedLimboDocuments=s}static createSynthesizedRemoteEventForCurrentChange(e,t,r){const i=new Map;return i.set(e,Wd.createSynthesizedTargetChangeForCurrentChange(e,t,r)),new Gd(Ee.min(),i,qg(),Cr(),Re())}}class Wd{constructor(e,t,r,i,s){this.resumeToken=e,this.current=t,this.addedDocuments=r,this.modifiedDocuments=i,this.removedDocuments=s}static createSynthesizedTargetChangeForCurrentChange(e,t,r){return new Wd(r,t,Re(),Re(),Re())}}class Yg{constructor(e,t,r,i){this.Tt=e,this.removedTargetIds=t,this.key=r,this.Et=i}}class a6{constructor(e,t){this.targetId=e,this.At=t}}class l6{constructor(e,t,r=gn.EMPTY_BYTE_STRING,i=null){this.state=e,this.targetIds=t,this.resumeToken=r,this.cause=i}}class c6{constructor(){this.Rt=0,this.bt=d6(),this.Pt=gn.EMPTY_BYTE_STRING,this.vt=!1,this.Vt=!0}get current(){return this.vt}get resumeToken(){return this.Pt}get St(){return 0!==this.Rt}get Dt(){return this.Vt}Ct(e){e.approximateByteSize()>0&&(this.Vt=!0,this.Pt=e)}xt(){let e=Re(),t=Re(),r=Re();return this.bt.forEach((i,s)=>{switch(s){case 0:e=e.add(i);break;case 2:t=t.add(i);break;case 1:r=r.add(i);break;default:de()}}),new Wd(this.Pt,this.vt,e,t,r)}Nt(){this.Vt=!1,this.bt=d6()}kt(e,t){this.Vt=!0,this.bt=this.bt.insert(e,t)}Ot(e){this.Vt=!0,this.bt=this.bt.remove(e)}Mt(){this.Rt+=1}Ft(){this.Rt-=1}$t(){this.Vt=!0,this.vt=!0}}class yue{constructor(e){this.Bt=e,this.Lt=new Map,this.Ut=Cr(),this.qt=u6(),this.Kt=new lt(Me)}Gt(e){for(const t of e.Tt)e.Et&&e.Et.isFoundDocument()?this.Qt(t,e.Et):this.jt(t,e.key,e.Et);for(const t of e.removedTargetIds)this.jt(t,e.key,e.Et)}Wt(e){this.forEachTarget(e,t=>{const r=this.zt(t);switch(e.state){case 0:this.Ht(t)&&r.Ct(e.resumeToken);break;case 1:r.Ft(),r.St||r.Nt(),r.Ct(e.resumeToken);break;case 2:r.Ft(),r.St||this.removeTarget(t);break;case 3:this.Ht(t)&&(r.$t(),r.Ct(e.resumeToken));break;case 4:this.Ht(t)&&(this.Jt(t),r.Ct(e.resumeToken));break;default:de()}})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.Lt.forEach((r,i)=>{this.Ht(i)&&t(i)})}Yt(e){const t=e.targetId,r=e.At.count,i=this.Xt(t);if(i){const s=i.target;if(Ug(s))if(0===r){const o=new ne(s.path);this.jt(t,o,wt.newNoDocument(o,Ee.min()))}else Se(1===r);else this.Zt(t)!==r&&(this.Jt(t),this.Kt=this.Kt.add(t))}}te(e){const t=new Map;this.Lt.forEach((s,o)=>{const a=this.Xt(o);if(a){if(s.current&&Ug(a.target)){const l=new ne(a.target.path);null!==this.Ut.get(l)||this.ee(o,l)||this.jt(o,l,wt.newNoDocument(l,e))}s.Dt&&(t.set(o,s.xt()),s.Nt())}});let r=Re();this.qt.forEach((s,o)=>{let a=!0;o.forEachWhile(l=>{const c=this.Xt(l);return!c||2===c.purpose||(a=!1,!1)}),a&&(r=r.add(s))}),this.Ut.forEach((s,o)=>o.setReadTime(e));const i=new Gd(e,t,this.Kt,this.Ut,r);return this.Ut=Cr(),this.qt=u6(),this.Kt=new lt(Me),i}Qt(e,t){if(!this.Ht(e))return;const r=this.ee(e,t.key)?2:0;this.zt(e).kt(t.key,r),this.Ut=this.Ut.insert(t.key,t),this.qt=this.qt.insert(t.key,this.ne(t.key).add(e))}jt(e,t,r){if(!this.Ht(e))return;const i=this.zt(e);this.ee(e,t)?i.kt(t,1):i.Ot(t),this.qt=this.qt.insert(t,this.ne(t).delete(e)),r&&(this.Ut=this.Ut.insert(t,r))}removeTarget(e){this.Lt.delete(e)}Zt(e){const t=this.zt(e).xt();return this.Bt.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}Mt(e){this.zt(e).Mt()}zt(e){let t=this.Lt.get(e);return t||(t=new c6,this.Lt.set(e,t)),t}ne(e){let t=this.qt.get(e);return t||(t=new lt(Me),this.qt=this.qt.insert(e,t)),t}Ht(e){const t=null!==this.Xt(e);return t||Z("WatchChangeAggregator","Detected inactive target",e),t}Xt(e){const t=this.Lt.get(e);return t&&t.St?null:this.Bt.se(e)}Jt(e){this.Lt.set(e,new c6),this.Bt.getRemoteKeysForTarget(e).forEach(t=>{this.jt(e,t,null)})}ee(e,t){return this.Bt.getRemoteKeysForTarget(e).has(t)}}function u6(){return new Ft(ne.comparator)}function d6(){return new Ft(ne.comparator)}const _ue={asc:"ASCENDING",desc:"DESCENDING"},vue={"<":"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"};class bue{constructor(e,t){this.databaseId=e,this.gt=t}}function qd(n,e){return n.gt?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function h6(n,e){return n.gt?e.toBase64():e.toUint8Array()}function wue(n,e){return qd(n,e.toTimestamp())}function wn(n){return Se(!!n),Ee.fromTimestamp(function(e){const t=lo(e);return new Mt(t.seconds,t.nanos)}(n))}function UT(n,e){return(t=n,new Ge(["projects",t.projectId,"databases",t.database])).child("documents").child(e).canonicalString();var t}function f6(n){const e=Ge.fromString(n);return Se(w6(e)),e}function Yd(n,e){return UT(n.databaseId,e.path)}function es(n,e){const t=f6(e);if(t.get(1)!==n.databaseId.projectId)throw new Q(B.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+t.get(1)+" vs "+n.databaseId.projectId);if(t.get(3)!==n.databaseId.database)throw new Q(B.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+t.get(3)+" vs "+n.databaseId.database);return new ne(g6(t))}function HT(n,e){return UT(n.databaseId,e)}function Kd(n){return new Ge(["projects",n.databaseId.projectId,"databases",n.databaseId.database]).canonicalString()}function g6(n){return Se(n.length>4&&"documents"===n.get(4)),n.popFirst(5)}function m6(n,e,t){return{name:Yd(n,e),fields:t.value.mapValue.fields}}function _6(n,e){return{documents:[HT(n,e.path)]}}function jT(n,e){const t={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(t.parent=HT(n,r),t.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(t.parent=HT(n,r.popLast()),t.structuredQuery.from=[{collectionId:r.lastSegment()}]);const i=function(l){if(0===l.length)return;const c=l.map(u=>function(d){if("=="===d.op){if(IB(d.value))return{unaryFilter:{field:pc(d.field),op:"IS_NAN"}};if(xB(d.value))return{unaryFilter:{field:pc(d.field),op:"IS_NULL"}}}else if("!="===d.op){if(IB(d.value))return{unaryFilter:{field:pc(d.field),op:"IS_NOT_NAN"}};if(xB(d.value))return{unaryFilter:{field:pc(d.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:pc(d.field),op:Iue(d.op),value:d.value}}}(u));return 1===c.length?c[0]:{compositeFilter:{op:"AND",filters:c}}}(e.filters);i&&(t.structuredQuery.where=i);const s=function(l){if(0!==l.length)return l.map(c=>{return{field:pc((u=c).field),direction:xue(u.dir)};var u})}(e.orderBy);s&&(t.structuredQuery.orderBy=s);const o=(c=e.limit,n.gt||Nd(c)?c:{value:c});var c,a,l;return null!==o&&(t.structuredQuery.limit=o),e.startAt&&(t.structuredQuery.startAt={before:(a=e.startAt).inclusive,values:a.position}),e.endAt&&(t.structuredQuery.endAt={before:!(l=e.endAt).inclusive,values:l.position}),t}function v6(n){let e=function p6(n){const e=f6(n);return 4===e.length?Ge.emptyPath():g6(e)}(n.parent);const t=n.structuredQuery,r=t.from?t.from.length:0;let i=null;if(r>0){Se(1===r);const u=t.from[0];u.allDescendants?i=u.collectionId:e=e.child(u.collectionId)}let s=[];t.where&&(s=b6(t.where));let o=[];t.orderBy&&(o=t.orderBy.map(u=>{return new ac(gc((d=u).field),function(h){switch(h){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(d.direction));var d}));let a=null;t.limit&&(a=function(u){let d;return d="object"==typeof u?u.value:u,Nd(d)?null:d}(t.limit));let l=null;var u;t.startAt&&(l=new ho((u=t.startAt).values||[],!!u.before));let c=null;return t.endAt&&(c=function(u){return new ho(u.values||[],!u.before)}(t.endAt)),function VB(n,e,t,r,i,s,o,a){return new Fs(n,e,t,r,i,s,o,a)}(e,i,o,s,a,"F",l,c)}function b6(n){return n?void 0!==n.unaryFilter?[Aue(n)]:void 0!==n.fieldFilter?[Due(n)]:void 0!==n.compositeFilter?n.compositeFilter.filters.map(e=>b6(e)).reduce((e,t)=>e.concat(t)):de():[]}function xue(n){return _ue[n]}function Iue(n){return vue[n]}function pc(n){return{fieldPath:n.canonicalString()}}function gc(n){return Wt.fromServerFormat(n.fieldPath)}function Due(n){return On.create(gc(n.fieldFilter.field),function(e){switch(e){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";default:return de()}}(n.fieldFilter.op),n.fieldFilter.value)}function Aue(n){switch(n.unaryFilter.op){case"IS_NAN":const e=gc(n.unaryFilter.field);return On.create(e,"==",{doubleValue:NaN});case"IS_NULL":const t=gc(n.unaryFilter.field);return On.create(t,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const r=gc(n.unaryFilter.field);return On.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const i=gc(n.unaryFilter.field);return On.create(i,"!=",{nullValue:"NULL_VALUE"});default:return de()}}function Mue(n){const e=[];return n.fields.forEach(t=>e.push(t.canonicalString())),{fieldPaths:e}}function w6(n){return n.length>=4&&"projects"===n.get(0)&&"databases"===n.get(2)}class WT{constructor(e,t,r,i){this.batchId=e,this.localWriteTime=t,this.baseMutations=r,this.mutations=i}applyToRemoteDocument(e,t){const r=t.mutationResults;for(let i=0;i<this.mutations.length;i++){const s=this.mutations[i];s.key.isEqual(e.key)&&uue(s,e,r[i])}}applyToLocalView(e,t){for(const r of this.baseMutations)r.key.isEqual(e.key)&&(t=Hd(r,e,t,this.localWriteTime));for(const r of this.mutations)r.key.isEqual(e.key)&&(t=Hd(r,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const r=o6();return this.mutations.forEach(i=>{const s=e.get(i.key),o=s.overlayedDocument;let a=this.applyToLocalView(o,s.mutatedFields);a=t.has(i.key)?null:a;const l=XB(o,a);null!==l&&r.set(i.key,l),o.isValidDocument()||o.convertToNoDocument(Ee.min())}),r}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),Re())}isEqual(e){return this.batchId===e.batchId&&ic(this.mutations,e.mutations,(t,r)=>ZB(t,r))&&ic(this.baseMutations,e.baseMutations,(t,r)=>ZB(t,r))}}class qT{constructor(e,t,r,i){this.batch=e,this.commitVersion=t,this.mutationResults=r,this.docVersions=i}static from(e,t,r){Se(e.mutations.length===r.length);let i=pue;const s=e.mutations;for(let o=0;o<s.length;o++)i=i.insert(s[o].key,r[o].version);return new qT(e,t,r,i)}}class YT{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return`Overlay{\n      largestBatchId: ${this.largestBatchId},\n      mutation: ${this.mutation.toString()}\n    }`}}class po{constructor(e,t,r,i,s=Ee.min(),o=Ee.min(),a=gn.EMPTY_BYTE_STRING){this.target=e,this.targetId=t,this.purpose=r,this.sequenceNumber=i,this.snapshotVersion=s,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a}withSequenceNumber(e){return new po(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)}withResumeToken(e,t){return new po(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e)}withLastLimboFreeSnapshotVersion(e){return new po(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken)}}class D6{constructor(e){this.re=e}}function KT(n){const e=v6({parent:n.parent,structuredQuery:n.structuredQuery});return"LAST"===n.limitType?zg(e,e.limit,"L"):e}class Da{constructor(){}ce(e,t){this.ae(e,t),t.he()}ae(e,t){if("nullValue"in e)this.le(t,5);else if("booleanValue"in e)this.le(t,10),t.fe(e.booleanValue?1:0);else if("integerValue"in e)this.le(t,15),t.fe(Vt(e.integerValue));else if("doubleValue"in e){const r=Vt(e.doubleValue);isNaN(r)?this.le(t,13):(this.le(t,15),Rd(r)?t.fe(0):t.fe(r))}else if("timestampValue"in e){const r=e.timestampValue;this.le(t,20),"string"==typeof r?t.de(r):(t.de(`${r.seconds||""}`),t.fe(r.nanos||0))}else if("stringValue"in e)this._e(e.stringValue,t),this.we(t);else if("bytesValue"in e)this.le(t,30),t.me(_a(e.bytesValue)),this.we(t);else if("referenceValue"in e)this.ge(e.referenceValue,t);else if("geoPointValue"in e){const r=e.geoPointValue;this.le(t,45),t.fe(r.latitude||0),t.fe(r.longitude||0)}else"mapValue"in e?DB(e)?this.le(t,Number.MAX_SAFE_INTEGER):(this.ye(e.mapValue,t),this.we(t)):"arrayValue"in e?(this.pe(e.arrayValue,t),this.we(t)):de()}_e(e,t){this.le(t,25),this.Ie(e,t)}Ie(e,t){t.de(e)}ye(e,t){const r=e.fields||{};this.le(t,55);for(const i of Object.keys(r))this._e(i,t),this.ae(r[i],t)}pe(e,t){const r=e.values||[];this.le(t,50);for(const i of r)this.ae(i,t)}ge(e,t){this.le(t,37),ne.fromName(e).path.forEach(r=>{this.le(t,60),this.Ie(r,t)})}le(e,t){e.fe(t)}we(e){e.fe(2)}}Da.Te=new Da;class nde{constructor(){this.Ye=new XT}addToCollectionParentIndex(e,t){return this.Ye.add(t),N.resolve()}getCollectionParents(e,t){return N.resolve(this.Ye.getEntries(t))}addFieldIndex(e,t){return N.resolve()}deleteFieldIndex(e,t){return N.resolve()}getDocumentsMatchingTarget(e,t){return N.resolve(null)}getIndexType(e,t){return N.resolve(0)}getFieldIndexes(e,t){return N.resolve([])}getNextCollectionGroupToUpdate(e){return N.resolve(null)}getMinOffset(e,t){return N.resolve($r.min())}getMinOffsetFromCollectionGroup(e,t){return N.resolve($r.min())}updateCollectionGroup(e,t,r){return N.resolve()}updateIndexEntries(e,t){return N.resolve()}}class XT{constructor(){this.index={}}add(e){const t=e.lastSegment(),r=e.popLast(),i=this.index[t]||new lt(Ge.comparator),s=!i.has(r);return this.index[t]=i.add(r),s}has(e){const t=e.lastSegment(),r=e.popLast(),i=this.index[t];return i&&i.has(r)}getEntries(e){return(this.index[e]||new lt(Ge.comparator)).toArray()}}new Uint8Array(0);class Sr{constructor(e,t,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=r}static withCacheSize(e){return new Sr(e,Sr.DEFAULT_COLLECTION_PERCENTILE,Sr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Sr.DEFAULT_COLLECTION_PERCENTILE=10,Sr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Sr.DEFAULT=new Sr(41943040,Sr.DEFAULT_COLLECTION_PERCENTILE,Sr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Sr.DISABLED=new Sr(-1,0,0);class ka{constructor(e){this.bn=e}next(){return this.bn+=2,this.bn}static Pn(){return new ka(0)}static vn(){return new ka(-1)}}class hde{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}class K6{constructor(e,t,r,i){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=r,this.indexManager=i}getDocument(e,t){let r=null;return this.documentOverlayCache.getOverlay(e,t).next(i=>(r=i,this.getBaseDocument(e,t,r))).next(i=>(null!==r&&Hd(r.mutation,i,Ur.empty(),Mt.now()),i))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(r=>this.getLocalViewOfDocuments(e,r,Re()).next(()=>r))}getLocalViewOfDocuments(e,t,r=Re()){const i=Ji();return this.populateOverlays(e,i,t).next(()=>this.computeViews(e,t,i,r).next(s=>{let o=zd();return s.forEach((a,l)=>{o=o.insert(a,l.overlayedDocument)}),o}))}getOverlayedDocuments(e,t){const r=Ji();return this.populateOverlays(e,r,t).next(()=>this.computeViews(e,t,r,Re()))}populateOverlays(e,t,r){const i=[];return r.forEach(s=>{t.has(s)||i.push(s)}),this.documentOverlayCache.getOverlays(e,i).next(s=>{s.forEach((o,a)=>{t.set(o,a)})})}computeViews(e,t,r,i){let s=Cr();const o=jd(),a=jd();return t.forEach((l,c)=>{const u=r.get(c.key);i.has(c.key)&&(void 0===u||u.mutation instanceof Vs)?s=s.insert(c.key,c):void 0!==u&&(o.set(c.key,u.mutation.getFieldMask()),Hd(u.mutation,c,u.mutation.getFieldMask(),Mt.now()))}),this.recalculateAndSaveOverlays(e,s).next(l=>(l.forEach((c,u)=>o.set(c,u)),t.forEach((c,u)=>{var d;return a.set(c,new hde(u,null!==(d=o.get(c))&&void 0!==d?d:null))}),a))}recalculateAndSaveOverlays(e,t){const r=jd();let i=new Ft((o,a)=>o-a),s=Re();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(o=>{for(const a of o)a.keys().forEach(l=>{const c=t.get(l);if(null===c)return;let u=r.get(l)||Ur.empty();u=a.applyToLocalView(c,u),r.set(l,u);const d=(i.get(a.batchId)||Re()).add(l);i=i.insert(a.batchId,d)})}).next(()=>{const o=[],a=i.getReverseIterator();for(;a.hasNext();){const l=a.getNext(),c=l.key,u=l.value,d=o6();u.forEach(h=>{if(!s.has(h)){const f=XB(t.get(h),r.get(h));null!==f&&d.set(h,f),s=s.add(h)}}),o.push(this.documentOverlayCache.saveOverlays(e,c,d))}return N.waitFor(o)}).next(()=>r)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(r=>this.recalculateAndSaveOverlays(e,r))}getDocumentsMatchingQuery(e,t,r){return ne.isDocumentKey((i=t).path)&&null===i.collectionGroup&&0===i.filters.length?this.getDocumentsMatchingDocumentQuery(e,t.path):function FT(n){return null!==n.collectionGroup}(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,r):this.getDocumentsMatchingCollectionQuery(e,t,r);var i}getNextDocuments(e,t,r,i){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,r,i).next(s=>{const o=i-s.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,r.largestBatchId,i-s.size):N.resolve(Ji());let a=-1,l=s;return o.next(c=>N.forEach(c,(u,d)=>(a<d.largestBatchId&&(a=d.largestBatchId),s.get(u)?N.resolve():this.getBaseDocument(e,u,d).next(h=>{l=l.insert(u,h)}))).next(()=>this.populateOverlays(e,c,s)).next(()=>this.computeViews(e,l,c,Re())).next(u=>({batchId:a,changes:s6(u)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new ne(t)).next(r=>{let i=zd();return r.isFoundDocument()&&(i=i.insert(r.key,r)),i})}getDocumentsMatchingCollectionGroupQuery(e,t,r){const i=t.collectionGroup;let s=zd();return this.indexManager.getCollectionParents(e,i).next(o=>N.forEach(o,a=>{const l=(c=t,u=a.child(i),new Fs(u,null,c.explicitOrderBy.slice(),c.filters.slice(),c.limit,c.limitType,c.startAt,c.endAt));var c,u;return this.getDocumentsMatchingCollectionQuery(e,l,r).next(c=>{c.forEach((u,d)=>{s=s.insert(u,d)})})}).next(()=>s))}getDocumentsMatchingCollectionQuery(e,t,r){let i;return this.remoteDocumentCache.getAllFromCollection(e,t.path,r).next(s=>(i=s,this.documentOverlayCache.getOverlaysForCollection(e,t.path,r.largestBatchId))).next(s=>{s.forEach((a,l)=>{const c=l.getKey();null===i.get(c)&&(i=i.insert(c,wt.newInvalidDocument(c)))});let o=zd();return i.forEach((a,l)=>{const c=s.get(a);void 0!==c&&Hd(c.mutation,l,Ur.empty(),Mt.now()),BT(t,l)&&(o=o.insert(a,l))}),o})}getBaseDocument(e,t,r){return null===r||1===r.mutation.type?this.remoteDocumentCache.getEntry(e,t):N.resolve(wt.newInvalidDocument(t))}}class fde{constructor(e){this.It=e,this.Zn=new Map,this.ts=new Map}getBundleMetadata(e,t){return N.resolve(this.Zn.get(t))}saveBundleMetadata(e,t){var r;return this.Zn.set(t.id,{id:(r=t).id,version:r.version,createTime:wn(r.createTime)}),N.resolve()}getNamedQuery(e,t){return N.resolve(this.ts.get(t))}saveNamedQuery(e,t){return this.ts.set(t.name,{name:(r=t).name,query:KT(r.bundledQuery),readTime:wn(r.readTime)}),N.resolve();var r}}class pde{constructor(){this.overlays=new Ft(ne.comparator),this.es=new Map}getOverlay(e,t){return N.resolve(this.overlays.get(t))}getOverlays(e,t){const r=Ji();return N.forEach(t,i=>this.getOverlay(e,i).next(s=>{null!==s&&r.set(i,s)})).next(()=>r)}saveOverlays(e,t,r){return r.forEach((i,s)=>{this.ue(e,t,s)}),N.resolve()}removeOverlaysForBatchId(e,t,r){const i=this.es.get(r);return void 0!==i&&(i.forEach(s=>this.overlays=this.overlays.remove(s)),this.es.delete(r)),N.resolve()}getOverlaysForCollection(e,t,r){const i=Ji(),s=t.length+1,o=new ne(t.child("")),a=this.overlays.getIteratorFrom(o);for(;a.hasNext();){const l=a.getNext().value,c=l.getKey();if(!t.isPrefixOf(c.path))break;c.path.length===s&&l.largestBatchId>r&&i.set(l.getKey(),l)}return N.resolve(i)}getOverlaysForCollectionGroup(e,t,r,i){let s=new Ft((c,u)=>c-u);const o=this.overlays.getIterator();for(;o.hasNext();){const c=o.getNext().value;if(c.getKey().getCollectionGroup()===t&&c.largestBatchId>r){let u=s.get(c.largestBatchId);null===u&&(u=Ji(),s=s.insert(c.largestBatchId,u)),u.set(c.getKey(),c)}}const a=Ji(),l=s.getIterator();for(;l.hasNext()&&(l.getNext().value.forEach((c,u)=>a.set(c,u)),!(a.size()>=i)););return N.resolve(a)}ue(e,t,r){const i=this.overlays.get(r.key);if(null!==i){const o=this.es.get(i.largestBatchId).delete(r.key);this.es.set(i.largestBatchId,o)}this.overlays=this.overlays.insert(r.key,new YT(t,r));let s=this.es.get(t);void 0===s&&(s=Re(),this.es.set(t,s)),this.es.set(t,s.add(r.key))}}class ZT{constructor(){this.ns=new lt(Sn.ss),this.rs=new lt(Sn.os)}isEmpty(){return this.ns.isEmpty()}addReference(e,t){const r=new Sn(e,t);this.ns=this.ns.add(r),this.rs=this.rs.add(r)}us(e,t){e.forEach(r=>this.addReference(r,t))}removeReference(e,t){this.cs(new Sn(e,t))}hs(e,t){e.forEach(r=>this.removeReference(r,t))}ls(e){const t=new ne(new Ge([])),r=new Sn(t,e),i=new Sn(t,e+1),s=[];return this.rs.forEachInRange([r,i],o=>{this.cs(o),s.push(o.key)}),s}fs(){this.ns.forEach(e=>this.cs(e))}cs(e){this.ns=this.ns.delete(e),this.rs=this.rs.delete(e)}ds(e){const t=new ne(new Ge([])),r=new Sn(t,e),i=new Sn(t,e+1);let s=Re();return this.rs.forEachInRange([r,i],o=>{s=s.add(o.key)}),s}containsKey(e){const t=new Sn(e,0),r=this.ns.firstAfterOrEqual(t);return null!==r&&e.isEqual(r.key)}}class Sn{constructor(e,t){this.key=e,this._s=t}static ss(e,t){return ne.comparator(e.key,t.key)||Me(e._s,t._s)}static os(e,t){return Me(e._s,t._s)||ne.comparator(e.key,t.key)}}class gde{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.ws=1,this.gs=new lt(Sn.ss)}checkEmpty(e){return N.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,r,i){const s=this.ws;this.ws++;const o=new WT(s,t,r,i);this.mutationQueue.push(o);for(const a of i)this.gs=this.gs.add(new Sn(a.key,s)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return N.resolve(o)}lookupMutationBatch(e,t){return N.resolve(this.ys(t))}getNextMutationBatchAfterBatchId(e,t){const i=this.ps(t+1),s=i<0?0:i;return N.resolve(this.mutationQueue.length>s?this.mutationQueue[s]:null)}getHighestUnacknowledgedBatchId(){return N.resolve(0===this.mutationQueue.length?-1:this.ws-1)}getAllMutationBatches(e){return N.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const r=new Sn(t,0),i=new Sn(t,Number.POSITIVE_INFINITY),s=[];return this.gs.forEachInRange([r,i],o=>{const a=this.ys(o._s);s.push(a)}),N.resolve(s)}getAllMutationBatchesAffectingDocumentKeys(e,t){let r=new lt(Me);return t.forEach(i=>{const s=new Sn(i,0),o=new Sn(i,Number.POSITIVE_INFINITY);this.gs.forEachInRange([s,o],a=>{r=r.add(a._s)})}),N.resolve(this.Is(r))}getAllMutationBatchesAffectingQuery(e,t){const r=t.path,i=r.length+1;let s=r;ne.isDocumentKey(s)||(s=s.child(""));const o=new Sn(new ne(s),0);let a=new lt(Me);return this.gs.forEachWhile(l=>{const c=l.key.path;return!!r.isPrefixOf(c)&&(c.length===i&&(a=a.add(l._s)),!0)},o),N.resolve(this.Is(a))}Is(e){const t=[];return e.forEach(r=>{const i=this.ys(r);null!==i&&t.push(i)}),t}removeMutationBatch(e,t){Se(0===this.Ts(t.batchId,"removed")),this.mutationQueue.shift();let r=this.gs;return N.forEach(t.mutations,i=>{const s=new Sn(i.key,t.batchId);return r=r.delete(s),this.referenceDelegate.markPotentiallyOrphaned(e,i.key)}).next(()=>{this.gs=r})}An(e){}containsKey(e,t){const r=new Sn(t,0),i=this.gs.firstAfterOrEqual(r);return N.resolve(t.isEqual(i&&i.key))}performConsistencyCheck(e){return N.resolve()}Ts(e,t){return this.ps(e)}ps(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}ys(e){const t=this.ps(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}class mde{constructor(e){this.Es=e,this.docs=new Ft(ne.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const r=t.key,i=this.docs.get(r),s=i?i.size:0,o=this.Es(t);return this.docs=this.docs.insert(r,{document:t.mutableCopy(),size:o}),this.size+=o-s,this.indexManager.addToCollectionParentIndex(e,r.path.popLast())}removeEntry(e){const t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){const r=this.docs.get(t);return N.resolve(r?r.document.mutableCopy():wt.newInvalidDocument(t))}getEntries(e,t){let r=Cr();return t.forEach(i=>{const s=this.docs.get(i);r=r.insert(i,s?s.document.mutableCopy():wt.newInvalidDocument(i))}),N.resolve(r)}getAllFromCollection(e,t,r){let i=Cr();const s=new ne(t.child("")),o=this.docs.getIteratorFrom(s);for(;o.hasNext();){const{key:a,value:{document:l}}=o.getNext();if(!t.isPrefixOf(a.path))break;a.path.length>t.length+1||AT(yB(l),r)<=0||(i=i.insert(l.key,l.mutableCopy()))}return N.resolve(i)}getAllFromCollectionGroup(e,t,r,i){de()}As(e,t){return N.forEach(this.docs,r=>t(r))}newChangeBuffer(e){return new yde(this)}getSize(e){return N.resolve(this.size)}}class yde extends class cde{constructor(){this.changes=new fo(e=>e.toString(),(e,t)=>e.isEqual(t)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,wt.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const r=this.changes.get(t);return void 0!==r?N.resolve(r):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}{constructor(e){super(),this.Yn=e}applyChanges(e){const t=[];return this.changes.forEach((r,i)=>{i.isValidDocument()?t.push(this.Yn.addEntry(e,i)):this.Yn.removeEntry(r)}),N.waitFor(t)}getFromCache(e,t){return this.Yn.getEntry(e,t)}getAllFromCache(e,t){return this.Yn.getEntries(e,t)}}class _de{constructor(e){this.persistence=e,this.Rs=new fo(t=>Ca(t),Bd),this.lastRemoteSnapshotVersion=Ee.min(),this.highestTargetId=0,this.bs=0,this.Ps=new ZT,this.targetCount=0,this.vs=ka.Pn()}forEachTarget(e,t){return this.Rs.forEach((r,i)=>t(i)),N.resolve()}getLastRemoteSnapshotVersion(e){return N.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return N.resolve(this.bs)}allocateTargetId(e){return this.highestTargetId=this.vs.next(),N.resolve(this.highestTargetId)}setTargetsMetadata(e,t,r){return r&&(this.lastRemoteSnapshotVersion=r),t>this.bs&&(this.bs=t),N.resolve()}Dn(e){this.Rs.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this.vs=new ka(t),this.highestTargetId=t),e.sequenceNumber>this.bs&&(this.bs=e.sequenceNumber)}addTargetData(e,t){return this.Dn(t),this.targetCount+=1,N.resolve()}updateTargetData(e,t){return this.Dn(t),N.resolve()}removeTargetData(e,t){return this.Rs.delete(t.target),this.Ps.ls(t.targetId),this.targetCount-=1,N.resolve()}removeTargets(e,t,r){let i=0;const s=[];return this.Rs.forEach((o,a)=>{a.sequenceNumber<=t&&null===r.get(a.targetId)&&(this.Rs.delete(o),s.push(this.removeMatchingKeysForTargetId(e,a.targetId)),i++)}),N.waitFor(s).next(()=>i)}getTargetCount(e){return N.resolve(this.targetCount)}getTargetData(e,t){const r=this.Rs.get(t)||null;return N.resolve(r)}addMatchingKeys(e,t,r){return this.Ps.us(t,r),N.resolve()}removeMatchingKeys(e,t,r){this.Ps.hs(t,r);const i=this.persistence.referenceDelegate,s=[];return i&&t.forEach(o=>{s.push(i.markPotentiallyOrphaned(e,o))}),N.waitFor(s)}removeMatchingKeysForTargetId(e,t){return this.Ps.ls(t),N.resolve()}getMatchingKeysForTargetId(e,t){const r=this.Ps.ds(t);return N.resolve(r)}containsKey(e,t){return N.resolve(this.Ps.containsKey(t))}}class Q6{constructor(e,t){this.Vs={},this.overlays={},this.Ss=new wr(0),this.Ds=!1,this.Ds=!0,this.referenceDelegate=e(this),this.Cs=new _de(this),this.indexManager=new nde,this.remoteDocumentCache=new mde(r=>this.referenceDelegate.xs(r)),this.It=new D6(t),this.Ns=new fde(this.It)}start(){return Promise.resolve()}shutdown(){return this.Ds=!1,Promise.resolve()}get started(){return this.Ds}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new pde,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let r=this.Vs[e.toKey()];return r||(r=new gde(t,this.referenceDelegate),this.Vs[e.toKey()]=r),r}getTargetCache(){return this.Cs}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Ns}runTransaction(e,t,r){Z("MemoryPersistence","Starting transaction:",e);const i=new vde(this.Ss.next());return this.referenceDelegate.ks(),r(i).next(s=>this.referenceDelegate.Os(i).next(()=>s)).toPromise().then(s=>(i.raiseOnCommittedEvent(),s))}Ms(e,t){return N.or(Object.values(this.Vs).map(r=>()=>r.containsKey(e,t)))}}class vde extends class $ce{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}{constructor(e){super(),this.currentSequenceNumber=e}}class rm{constructor(e){this.persistence=e,this.Fs=new ZT,this.$s=null}static Bs(e){return new rm(e)}get Ls(){if(this.$s)return this.$s;throw de()}addReference(e,t,r){return this.Fs.addReference(r,t),this.Ls.delete(r.toString()),N.resolve()}removeReference(e,t,r){return this.Fs.removeReference(r,t),this.Ls.add(r.toString()),N.resolve()}markPotentiallyOrphaned(e,t){return this.Ls.add(t.toString()),N.resolve()}removeTarget(e,t){this.Fs.ls(t.targetId).forEach(i=>this.Ls.add(i.toString()));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,t.targetId).next(i=>{i.forEach(s=>this.Ls.add(s.toString()))}).next(()=>r.removeTargetData(e,t))}ks(){this.$s=new Set}Os(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return N.forEach(this.Ls,r=>{const i=ne.fromPath(r);return this.Us(e,i).next(s=>{s||t.removeEntry(i,Ee.min())})}).next(()=>(this.$s=null,t.apply(e)))}updateLimboDocument(e,t){return this.Us(e,t).next(r=>{r?this.Ls.delete(t.toString()):this.Ls.add(t.toString())})}xs(e){return 0}Us(e,t){return N.or([()=>N.resolve(this.Fs.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Ms(e,t)])}}class nx{constructor(e,t,r,i){this.targetId=e,this.fromCache=t,this.Si=r,this.Di=i}static Ci(e,t){let r=Re(),i=Re();for(const s of t.docChanges)switch(s.type){case 0:r=r.add(s.doc.key);break;case 1:i=i.add(s.doc.key)}return new nx(e,t.fromCache,r,i)}}class Z6{constructor(){this.xi=!1}initialize(e,t){this.Ni=e,this.indexManager=t,this.xi=!0}getDocumentsMatchingQuery(e,t,r,i){return this.ki(e,t).next(s=>s||this.Oi(e,t,i,r)).next(s=>s||this.Mi(e,t))}ki(e,t){if(BB(t))return N.resolve(null);let r=ar(t);return this.indexManager.getIndexType(e,r).next(i=>0===i?null:(null!==t.limit&&1===i&&(t=zg(t,null,"F"),r=ar(t)),this.indexManager.getDocumentsMatchingTarget(e,r).next(s=>{const o=Re(...s);return this.Ni.getDocuments(e,o).next(a=>this.indexManager.getMinOffset(e,r).next(l=>{const c=this.Fi(t,a);return this.$i(t,c,o,l.readTime)?this.ki(e,zg(t,null,"F")):this.Bi(e,c,t,l)}))})))}Oi(e,t,r,i){return BB(t)||i.isEqual(Ee.min())?this.Mi(e,t):this.Ni.getDocuments(e,r).next(s=>{const o=this.Fi(t,s);return this.$i(t,o,r,i)?this.Mi(e,t):(xT()<=je.DEBUG&&Z("QueryEngine","Re-using previous result from %s to execute query: %s",i.toString(),VT(t)),this.Bi(e,o,t,function mB(n,e){const t=n.toTimestamp().seconds,r=n.toTimestamp().nanoseconds+1,i=Ee.fromTimestamp(1e9===r?new Mt(t+1,0):new Mt(t,r));return new $r(i,ne.empty(),e)}(i,-1)))})}Fi(e,t){let r=new lt(HB(e));return t.forEach((i,s)=>{BT(e,s)&&(r=r.add(s))}),r}$i(e,t,r,i){if(null===e.limit)return!1;if(r.size!==t.size)return!0;const s="F"===e.limitType?t.last():t.first();return!!s&&(s.hasPendingWrites||s.version.compareTo(i)>0)}Mi(e,t){return xT()<=je.DEBUG&&Z("QueryEngine","Using full collection scan to execute query:",VT(t)),this.Ni.getDocumentsMatchingQuery(e,t,$r.min())}Bi(e,t,r,i){return this.Ni.getDocumentsMatchingQuery(e,r,i).next(s=>(t.forEach(o=>{s=s.insert(o.key,o)}),s))}}class wde{constructor(e,t,r,i){this.persistence=e,this.Li=t,this.It=i,this.Ui=new Ft(Me),this.qi=new fo(s=>Ca(s),Bd),this.Ki=new Map,this.Gi=e.getRemoteDocumentCache(),this.Cs=e.getTargetCache(),this.Ns=e.getBundleCache(),this.Qi(r)}Qi(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new K6(this.Gi,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Gi.setIndexManager(this.indexManager),this.Li.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.Ui))}}function e$(n,e){return rx.apply(this,arguments)}function rx(){return rx=M(function*(n,e){const t=re(n);return yield t.persistence.runTransaction("Handle user change","readonly",r=>{let i;return t.mutationQueue.getAllMutationBatches(r).next(s=>(i=s,t.Qi(e),t.mutationQueue.getAllMutationBatches(r))).next(s=>{const o=[],a=[];let l=Re();for(const c of i){o.push(c.batchId);for(const u of c.mutations)l=l.add(u.key)}for(const c of s){a.push(c.batchId);for(const u of c.mutations)l=l.add(u.key)}return t.localDocuments.getDocuments(r,l).next(c=>({ji:c,removedBatchIds:o,addedBatchIds:a}))})})}),rx.apply(this,arguments)}function Cde(n,e){const t=re(n);return t.persistence.runTransaction("Acknowledge batch","readwrite-primary",r=>{const i=e.batch.keys(),s=t.Gi.newChangeBuffer({trackRemovals:!0});return function(o,a,l,c){const u=l.batch,d=u.keys();let h=N.resolve();return d.forEach(f=>{h=h.next(()=>c.getEntry(a,f)).next(p=>{const g=l.docVersions.get(f);Se(null!==g),p.version.compareTo(g)<0&&(u.applyToRemoteDocument(p,l),p.isValidDocument()&&(p.setReadTime(l.commitVersion),c.addEntry(p)))})}),h.next(()=>o.mutationQueue.removeMutationBatch(a,u))}(t,r,e,s).next(()=>s.apply(r)).next(()=>t.mutationQueue.performConsistencyCheck(r)).next(()=>t.documentOverlayCache.removeOverlaysForBatchId(r,i,e.batch.batchId)).next(()=>t.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,function(o){let a=Re();for(let l=0;l<o.mutationResults.length;++l)o.mutationResults[l].transformResults.length>0&&(a=a.add(o.batch.mutations[l].key));return a}(e))).next(()=>t.localDocuments.getDocuments(r,i))})}function t$(n){const e=re(n);return e.persistence.runTransaction("Get last remote snapshot version","readonly",t=>e.Cs.getLastRemoteSnapshotVersion(t))}function Sde(n,e){const t=re(n),r=e.snapshotVersion;let i=t.Ui;return t.persistence.runTransaction("Apply remote event","readwrite-primary",s=>{const o=t.Gi.newChangeBuffer({trackRemovals:!0});i=t.Ui;const a=[];e.targetChanges.forEach((u,d)=>{const h=i.get(d);if(!h)return;a.push(t.Cs.removeMatchingKeys(s,u.removedDocuments,d).next(()=>t.Cs.addMatchingKeys(s,u.addedDocuments,d)));let f=h.withSequenceNumber(s.currentSequenceNumber);var p,g,m;e.targetMismatches.has(d)?f=f.withResumeToken(gn.EMPTY_BYTE_STRING,Ee.min()).withLastLimboFreeSnapshotVersion(Ee.min()):u.resumeToken.approximateByteSize()>0&&(f=f.withResumeToken(u.resumeToken,r)),i=i.insert(d,f),g=f,m=u,(0===(p=h).resumeToken.approximateByteSize()||g.snapshotVersion.toMicroseconds()-p.snapshotVersion.toMicroseconds()>=3e8||m.addedDocuments.size+m.modifiedDocuments.size+m.removedDocuments.size>0)&&a.push(t.Cs.updateTargetData(s,f))});let l=Cr(),c=Re();if(e.documentUpdates.forEach(u=>{e.resolvedLimboDocuments.has(u)&&a.push(t.persistence.referenceDelegate.updateLimboDocument(s,u))}),a.push(function n$(n,e,t){let r=Re(),i=Re();return t.forEach(s=>r=r.add(s)),e.getEntries(n,r).next(s=>{let o=Cr();return t.forEach((a,l)=>{const c=s.get(a);l.isFoundDocument()!==c.isFoundDocument()&&(i=i.add(a)),l.isNoDocument()&&l.version.isEqual(Ee.min())?(e.removeEntry(a,l.readTime),o=o.insert(a,l)):!c.isValidDocument()||l.version.compareTo(c.version)>0||0===l.version.compareTo(c.version)&&c.hasPendingWrites?(e.addEntry(l),o=o.insert(a,l)):Z("LocalStore","Ignoring outdated watch update for ",a,". Current version:",c.version," Watch version:",l.version)}),{Wi:o,zi:i}})}(s,o,e.documentUpdates).next(u=>{l=u.Wi,c=u.zi})),!r.isEqual(Ee.min())){const u=t.Cs.getLastRemoteSnapshotVersion(s).next(d=>t.Cs.setTargetsMetadata(s,s.currentSequenceNumber,r));a.push(u)}return N.waitFor(a).next(()=>o.apply(s)).next(()=>t.localDocuments.getLocalViewOfDocuments(s,l,c)).next(()=>l)}).then(s=>(t.Ui=i,s))}function Ede(n,e){const t=re(n);return t.persistence.runTransaction("Get next mutation batch","readonly",r=>(void 0===e&&(e=-1),t.mutationQueue.getNextMutationBatchAfterBatchId(r,e)))}function _c(n,e){const t=re(n);return t.persistence.runTransaction("Allocate target","readwrite",r=>{let i;return t.Cs.getTargetData(r,e).next(s=>s?(i=s,N.resolve(i)):t.Cs.allocateTargetId(r).next(o=>(i=new po(e,o,0,r.currentSequenceNumber),t.Cs.addTargetData(r,i).next(()=>i))))}).then(r=>{const i=t.Ui.get(r.targetId);return(null===i||r.snapshotVersion.compareTo(i.snapshotVersion)>0)&&(t.Ui=t.Ui.insert(r.targetId,r),t.qi.set(e,r.targetId)),r})}function vc(n,e,t){return ix.apply(this,arguments)}function ix(){return ix=M(function*(n,e,t){const r=re(n),i=r.Ui.get(e),s=t?"readwrite":"readwrite-primary";try{t||(yield r.persistence.runTransaction("Release target",s,o=>r.persistence.referenceDelegate.removeTarget(o,i)))}catch(o){if(!ao(o))throw o;Z("LocalStore",`Failed to update sequence numbers for target ${e}: ${o}`)}r.Ui=r.Ui.remove(e),r.qi.delete(i.target)}),ix.apply(this,arguments)}function sm(n,e,t){const r=re(n);let i=Ee.min(),s=Re();return r.persistence.runTransaction("Execute query","readonly",o=>function(a,l,c){const u=re(a),d=u.qi.get(c);return void 0!==d?N.resolve(u.Ui.get(d)):u.Cs.getTargetData(l,c)}(r,o,ar(e)).next(a=>{if(a)return i=a.lastLimboFreeSnapshotVersion,r.Cs.getMatchingKeysForTargetId(o,a.targetId).next(l=>{s=l})}).next(()=>r.Li.getDocumentsMatchingQuery(o,e,t?i:Ee.min(),t?s:Re())).next(a=>(function s$(n,e,t){let r=n.Ki.get(e)||Ee.min();t.forEach((i,s)=>{s.readTime.compareTo(r)>0&&(r=s.readTime)}),n.Ki.set(e,r)}(r,function UB(n){return n.collectionGroup||(n.path.length%2==1?n.path.lastSegment():n.path.get(n.path.length-2))}(e),a),{documents:a,Hi:s})))}class cx{constructor(){this.activeTargetIds=qg()}er(e){this.activeTargetIds=this.activeTargetIds.add(e)}nr(e){this.activeTargetIds=this.activeTargetIds.delete(e)}tr(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class l${constructor(){this.Lr=new cx,this.Ur={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,r){}addLocalQueryTarget(e){return this.Lr.er(e),this.Ur[e]||"not-current"}updateQueryState(e,t,r){this.Ur[e]=t}removeLocalQueryTarget(e){this.Lr.nr(e)}isLocalQueryTarget(e){return this.Lr.activeTargetIds.has(e)}clearQueryState(e){delete this.Ur[e]}getAllActiveQueryTargets(){return this.Lr.activeTargetIds}isActiveQueryTarget(e){return this.Lr.activeTargetIds.has(e)}start(){return this.Lr=new cx,Promise.resolve()}handleUserChange(e,t,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class Ide{qr(e){}shutdown(){}}class c${constructor(){this.Kr=()=>this.Gr(),this.Qr=()=>this.jr(),this.Wr=[],this.zr()}qr(e){this.Wr.push(e)}shutdown(){window.removeEventListener("online",this.Kr),window.removeEventListener("offline",this.Qr)}zr(){window.addEventListener("online",this.Kr),window.addEventListener("offline",this.Qr)}Gr(){Z("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.Wr)e(0)}jr(){Z("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.Wr)e(1)}static C(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}const Dde={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class Ade{constructor(e){this.Hr=e.Hr,this.Jr=e.Jr}Yr(e){this.Xr=e}Zr(e){this.eo=e}onMessage(e){this.no=e}close(){this.Jr()}send(e){this.Hr(e)}so(){this.Xr()}io(e){this.eo(e)}ro(e){this.no(e)}}class Mde extends class{constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId,this.oo=(e.ssl?"https":"http")+"://"+e.host,this.uo="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}get co(){return!1}ao(e,t,r,i,s){const o=this.ho(e,t);Z("RestConnection","Sending: ",o,r);const a={};return this.lo(a,i,s),this.fo(e,o,a,r).then(l=>(Z("RestConnection","Received: ",l),l),l=>{throw rc("RestConnection",`${e} failed with error: `,l,"url: ",o,"request:",r),l})}_o(e,t,r,i,s,o){return this.ao(e,t,r,i,s)}lo(e,t,r){e["X-Goog-Api-Client"]="gl-js/ fire/"+nc,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((i,s)=>e[s]=i),r&&r.headers.forEach((i,s)=>e[s]=i)}ho(e,t){return`${this.oo}/v1/${t}:${Dde[e]}`}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams}fo(e,t,r,i){return new Promise((s,o)=>{const a=new Ace;a.setWithCredentials(!0),a.listenOnce(xce.COMPLETE,()=>{try{switch(a.getLastErrorCode()){case TT.NO_ERROR:const c=a.getResponseJson();Z("Connection","XHR received:",JSON.stringify(c)),s(c);break;case TT.TIMEOUT:Z("Connection",'RPC "'+e+'" timed out'),o(new Q(B.DEADLINE_EXCEEDED,"Request time out"));break;case TT.HTTP_ERROR:const u=a.getStatus();if(Z("Connection",'RPC "'+e+'" failed with status:',u,"response text:",a.getResponseText()),u>0){const d=a.getResponseJson().error;if(d&&d.status&&d.message){const h=function(f){const p=f.toLowerCase().replace(/_/g,"-");return Object.values(B).indexOf(p)>=0?p:B.UNKNOWN}(d.status);o(new Q(h,d.message))}else o(new Q(B.UNKNOWN,"Server responded with status "+a.getStatus()))}else o(new Q(B.UNAVAILABLE,"Connection failed."));break;default:de()}}finally{Z("Connection",'RPC "'+e+'" completed.')}});const l=JSON.stringify(i);a.send(t,"POST",l,r,15)})}wo(e,t,r){const i=[this.oo,"/","google.firestore.v1.Firestore","/",e,"/channel"],s=Ece(),o=Tce(),a={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(a.xmlHttpFactory=new Dce({})),this.lo(a.initMessageHeaders,t,r),a.encodeInitMessageHeaders=!0;const l=i.join("");Z("Connection","Creating WebChannel: "+l,a);const c=s.createWebChannel(l,a);let u=!1,d=!1;const h=new Ade({Hr:p=>{d?Z("Connection","Not sending because WebChannel is closed:",p):(u||(Z("Connection","Opening WebChannel transport."),c.open(),u=!0),Z("Connection","WebChannel sending:",p),c.send(p))},Jr:()=>c.close()}),f=(p,g,m)=>{p.listen(g,_=>{try{m(_)}catch(b){setTimeout(()=>{throw b},0)}})};return f(c,Ng.EventType.OPEN,()=>{d||Z("Connection","WebChannel transport opened.")}),f(c,Ng.EventType.CLOSE,()=>{d||(d=!0,Z("Connection","WebChannel transport closed"),h.io())}),f(c,Ng.EventType.ERROR,p=>{d||(d=!0,rc("Connection","WebChannel transport errored:",p),h.io(new Q(B.UNAVAILABLE,"The operation could not be completed")))}),f(c,Ng.EventType.MESSAGE,p=>{var g;if(!d){const m=p.data[0];Se(!!m);const _=m,b=_.error||(null===(g=_[0])||void 0===g?void 0:g.error);if(b){Z("Connection","WebChannel received error:",b);const y=b.status;let T=function(A){const P=en[A];if(void 0!==P)return r6(P)}(y),D=b.message;void 0===T&&(T=B.INTERNAL,D="Unknown error status: "+y+" with message "+b.message),d=!0,h.io(new Q(T,D)),c.close()}else Z("Connection","WebChannel received:",m),h.ro(m)}}),f(o,Ice.STAT_EVENT,p=>{p.stat===uB.PROXY?Z("Connection","Detected buffering proxy"):p.stat===uB.NOPROXY&&Z("Connection","Detected no buffering proxy")}),setTimeout(()=>{h.so()},0),h}}function lm(){return typeof document<"u"?document:null}function sh(n){return new bue(n,!0)}class dx{constructor(e,t,r=1e3,i=1.5,s=6e4){this.Hs=e,this.timerId=t,this.mo=r,this.yo=i,this.po=s,this.Io=0,this.To=null,this.Eo=Date.now(),this.reset()}reset(){this.Io=0}Ao(){this.Io=this.po}Ro(e){this.cancel();const t=Math.floor(this.Io+this.bo()),r=Math.max(0,Date.now()-this.Eo),i=Math.max(0,t-r);i>0&&Z("ExponentialBackoff",`Backing off for ${i} ms (base delay: ${this.Io} ms, delay with jitter: ${t} ms, last attempt: ${r} ms ago)`),this.To=this.Hs.enqueueAfterDelay(this.timerId,i,()=>(this.Eo=Date.now(),e())),this.Io*=this.yo,this.Io<this.mo&&(this.Io=this.mo),this.Io>this.po&&(this.Io=this.po)}Po(){null!==this.To&&(this.To.skipDelay(),this.To=null)}cancel(){null!==this.To&&(this.To.cancel(),this.To=null)}bo(){return(Math.random()-.5)*this.Io}}class d${constructor(e,t,r,i,s,o,a,l){this.Hs=e,this.vo=r,this.Vo=i,this.So=s,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=a,this.listener=l,this.state=0,this.Do=0,this.Co=null,this.xo=null,this.stream=null,this.No=new dx(e,t)}ko(){return 1===this.state||5===this.state||this.Oo()}Oo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.Mo()}stop(){var e=this;return M(function*(){e.ko()&&(yield e.close(0))})()}Fo(){this.state=0,this.No.reset()}$o(){this.Oo()&&null===this.Co&&(this.Co=this.Hs.enqueueAfterDelay(this.vo,6e4,()=>this.Bo()))}Lo(e){this.Uo(),this.stream.send(e)}Bo(){var e=this;return M(function*(){if(e.Oo())return e.close(0)})()}Uo(){this.Co&&(this.Co.cancel(),this.Co=null)}qo(){this.xo&&(this.xo.cancel(),this.xo=null)}close(e,t){var r=this;return M(function*(){r.Uo(),r.qo(),r.No.cancel(),r.Do++,4!==e?r.No.reset():t&&t.code===B.RESOURCE_EXHAUSTED?(Gt(t.toString()),Gt("Using maximum backoff delay to prevent overloading the backend."),r.No.Ao()):t&&t.code===B.UNAUTHENTICATED&&3!==r.state&&(r.authCredentialsProvider.invalidateToken(),r.appCheckCredentialsProvider.invalidateToken()),null!==r.stream&&(r.Ko(),r.stream.close(),r.stream=null),r.state=e,yield r.listener.Zr(t)})()}Ko(){}auth(){this.state=1;const e=this.Go(this.Do),t=this.Do;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([r,i])=>{this.Do===t&&this.Qo(r,i)},r=>{e(()=>{const i=new Q(B.UNKNOWN,"Fetching auth token failed: "+r.message);return this.jo(i)})})}Qo(e,t){const r=this.Go(this.Do);this.stream=this.Wo(e,t),this.stream.Yr(()=>{r(()=>(this.state=2,this.xo=this.Hs.enqueueAfterDelay(this.Vo,1e4,()=>(this.Oo()&&(this.state=3),Promise.resolve())),this.listener.Yr()))}),this.stream.Zr(i=>{r(()=>this.jo(i))}),this.stream.onMessage(i=>{r(()=>this.onMessage(i))})}Mo(){var e=this;this.state=5,this.No.Ro(M(function*(){e.state=0,e.start()}))}jo(e){return Z("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}Go(e){return t=>{this.Hs.enqueueAndForget(()=>this.Do===e?t():(Z("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class kde extends d${constructor(e,t,r,i,s,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,r,i,o),this.It=s}Wo(e,t){return this.So.wo("Listen",e,t)}onMessage(e){this.No.reset();const t=function Sue(n,e){let t;if("targetChange"in e){const r="NO_CHANGE"===(l=e.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===l?1:"REMOVE"===l?2:"CURRENT"===l?3:"RESET"===l?4:de(),i=e.targetChange.targetIds||[],s=function(l,c){return l.gt?(Se(void 0===c||"string"==typeof c),gn.fromBase64String(c||"")):(Se(void 0===c||c instanceof Uint8Array),gn.fromUint8Array(c||new Uint8Array))}(n,e.targetChange.resumeToken),o=e.targetChange.cause,a=o&&function(l){const c=void 0===l.code?B.UNKNOWN:r6(l.code);return new Q(c,l.message||"")}(o);t=new l6(r,i,s,a||null)}else if("documentChange"in e){const r=e.documentChange,i=es(n,r.document.name),s=wn(r.document.updateTime),o=new Pn({mapValue:{fields:r.document.fields}}),a=wt.newFoundDocument(i,s,o);t=new Yg(r.targetIds||[],r.removedTargetIds||[],a.key,a)}else if("documentDelete"in e){const r=e.documentDelete,i=es(n,r.document),s=r.readTime?wn(r.readTime):Ee.min(),o=wt.newNoDocument(i,s);t=new Yg([],r.removedTargetIds||[],o.key,o)}else if("documentRemove"in e){const r=e.documentRemove,i=es(n,r.document);t=new Yg([],r.removedTargetIds||[],i,null)}else{if(!("filter"in e))return de();{const r=e.filter,s=new hue(r.count||0);t=new a6(r.targetId,s)}}var l;return t}(this.It,e),r=function(i){if(!("targetChange"in i))return Ee.min();const s=i.targetChange;return s.targetIds&&s.targetIds.length?Ee.min():s.readTime?wn(s.readTime):Ee.min()}(e);return this.listener.zo(t,r)}Ho(e){const t={};t.database=Kd(this.It),t.addTarget=function(i,s){let o;const a=s.target;return o=Ug(a)?{documents:_6(i,a)}:{query:jT(i,a)},o.targetId=s.targetId,s.resumeToken.approximateByteSize()>0?o.resumeToken=h6(i,s.resumeToken):s.snapshotVersion.compareTo(Ee.min())>0&&(o.readTime=qd(i,s.snapshotVersion.toTimestamp())),o}(this.It,e);const r=function Tue(n,e){const t=function(r,i){switch(i){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return de()}}(0,e.purpose);return null==t?null:{"goog-listen-tags":t}}(0,e);r&&(t.labels=r),this.Lo(t)}Jo(e){const t={};t.database=Kd(this.It),t.removeTarget=e,this.Lo(t)}}class Pde extends d${constructor(e,t,r,i,s,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,r,i,o),this.It=s,this.Yo=!1}get Xo(){return this.Yo}start(){this.Yo=!1,this.lastStreamToken=void 0,super.start()}Ko(){this.Yo&&this.Zo([])}Wo(e,t){return this.So.wo("Write",e,t)}onMessage(e){if(Se(!!e.streamToken),this.lastStreamToken=e.streamToken,this.Yo){this.No.reset();const t=function Eue(n,e){return n&&n.length>0?(Se(void 0!==e),n.map(t=>function(r,i){let s=wn(r.updateTime?r.updateTime:i);return s.isEqual(Ee.min())&&(s=wn(i)),new cue(s,r.transformResults||[])}(t,e))):[]}(e.writeResults,e.commitTime),r=wn(e.commitTime);return this.listener.tu(r,t)}return Se(!e.writeResults||0===e.writeResults.length),this.Yo=!0,this.listener.eu()}nu(){const e={};e.database=Kd(this.It),this.Lo(e)}Zo(e){const t={streamToken:this.lastStreamToken,writes:e.map(r=>function Qd(n,e){let t;if(e instanceof hc)t={update:m6(n,e.key,e.value)};else if(e instanceof fc)t={delete:Yd(n,e.key)};else if(e instanceof Vs)t={update:m6(n,e.key,e.data),updateMask:Mue(e.fieldMask)};else{if(!(e instanceof $T))return de();t={verify:Yd(n,e.key)}}return e.fieldTransforms.length>0&&(t.updateTransforms=e.fieldTransforms.map(r=>function(i,s){const o=s.transform;if(o instanceof uc)return{fieldPath:s.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(o instanceof Sa)return{fieldPath:s.field.canonicalString(),appendMissingElements:{values:o.elements}};if(o instanceof Ea)return{fieldPath:s.field.canonicalString(),removeAllFromArray:{values:o.elements}};if(o instanceof dc)return{fieldPath:s.field.canonicalString(),increment:o.yt};throw de()}(0,r))),e.precondition.isNone||(t.currentDocument=void 0!==(i=e.precondition).updateTime?{updateTime:wue(n,i.updateTime)}:void 0!==i.exists?{exists:i.exists}:de()),t;var i}(this.It,r))};this.Lo(t)}}class Ode extends class{}{constructor(e,t,r,i){super(),this.authCredentials=e,this.appCheckCredentials=t,this.So=r,this.It=i,this.su=!1}iu(){if(this.su)throw new Q(B.FAILED_PRECONDITION,"The client has already been terminated.")}ao(e,t,r){return this.iu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([i,s])=>this.So.ao(e,t,r,i,s)).catch(i=>{throw"FirebaseError"===i.name?(i.code===B.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),i):new Q(B.UNKNOWN,i.toString())})}_o(e,t,r,i){return this.iu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,o])=>this.So._o(e,t,r,s,o,i)).catch(s=>{throw"FirebaseError"===s.name?(s.code===B.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new Q(B.UNKNOWN,s.toString())})}terminate(){this.su=!0}}class Rde{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.ru=0,this.ou=null,this.uu=!0}cu(){0===this.ru&&(this.au("Unknown"),this.ou=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.ou=null,this.hu("Backend didn't respond within 10 seconds."),this.au("Offline"),Promise.resolve())))}lu(e){"Online"===this.state?this.au("Unknown"):(this.ru++,this.ru>=1&&(this.fu(),this.hu(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.au("Offline")))}set(e){this.fu(),this.ru=0,"Online"===e&&(this.uu=!1),this.au(e)}au(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}hu(e){const t=`Could not reach Cloud Firestore backend. ${e}\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.uu?(Gt(t),this.uu=!1):Z("OnlineStateTracker",t)}fu(){null!==this.ou&&(this.ou.cancel(),this.ou=null)}}class Lde{constructor(e,t,r,i,s){var o=this;this.localStore=e,this.datastore=t,this.asyncQueue=r,this.remoteSyncer={},this.du=[],this._u=new Map,this.wu=new Set,this.mu=[],this.gu=s,this.gu.qr(a=>{r.enqueueAndForget(M(function*(){var l;Bs(o)&&(Z("RemoteStore","Restarting streams for network reachability change."),yield(l=M(function*(c){const u=re(c);u.wu.add(4),yield bc(u),u.yu.set("Unknown"),u.wu.delete(4),yield oh(u)}),function(c){return l.apply(this,arguments)})(o))}))}),this.yu=new Rde(r,i)}}function oh(n){return fx.apply(this,arguments)}function fx(){return fx=M(function*(n){if(Bs(n))for(const e of n.mu)yield e(!0)}),fx.apply(this,arguments)}function bc(n){return px.apply(this,arguments)}function px(){return px=M(function*(n){for(const e of n.mu)yield e(!1)}),px.apply(this,arguments)}function cm(n,e){const t=re(n);t._u.has(e.targetId)||(t._u.set(e.targetId,e),yx(t)?mx(t):Cc(t).Oo()&&gx(t,e))}function ah(n,e){const t=re(n),r=Cc(t);t._u.delete(e),r.Oo()&&h$(t,e),0===t._u.size&&(r.Oo()?r.$o():Bs(t)&&t.yu.set("Unknown"))}function gx(n,e){n.pu.Mt(e.targetId),Cc(n).Ho(e)}function h$(n,e){n.pu.Mt(e),Cc(n).Jo(e)}function mx(n){n.pu=new yue({getRemoteKeysForTarget:e=>n.remoteSyncer.getRemoteKeysForTarget(e),se:e=>n._u.get(e)||null}),Cc(n).start(),n.yu.cu()}function yx(n){return Bs(n)&&!Cc(n).ko()&&n._u.size>0}function Bs(n){return 0===re(n).wu.size}function f$(n){n.pu=void 0}function Fde(n){return _x.apply(this,arguments)}function _x(){return _x=M(function*(n){n._u.forEach((e,t)=>{gx(n,e)})}),_x.apply(this,arguments)}function Vde(n,e){return vx.apply(this,arguments)}function vx(){return vx=M(function*(n,e){f$(n),yx(n)?(n.yu.lu(e),mx(n)):n.yu.set("Unknown")}),vx.apply(this,arguments)}function Bde(n,e,t){return bx.apply(this,arguments)}function bx(){return bx=M(function*(n,e,t){if(n.yu.set("Online"),e instanceof l6&&2===e.state&&e.cause)try{yield(r=M(function*(i,s){const o=s.cause;for(const a of s.targetIds)i._u.has(a)&&(yield i.remoteSyncer.rejectListen(a,o),i._u.delete(a),i.pu.removeTarget(a))}),function(i,s){return r.apply(this,arguments)})(n,e)}catch(r){Z("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),yield um(n,r)}else if(e instanceof Yg?n.pu.Gt(e):e instanceof a6?n.pu.Yt(e):n.pu.Wt(e),!t.isEqual(Ee.min()))try{const r=yield t$(n.localStore);t.compareTo(r)>=0&&(yield function(i,s){const o=i.pu.te(s);return o.targetChanges.forEach((a,l)=>{if(a.resumeToken.approximateByteSize()>0){const c=i._u.get(l);c&&i._u.set(l,c.withResumeToken(a.resumeToken,s))}}),o.targetMismatches.forEach(a=>{const l=i._u.get(a);if(!l)return;i._u.set(a,l.withResumeToken(gn.EMPTY_BYTE_STRING,l.snapshotVersion)),h$(i,a);const c=new po(l.target,a,1,l.sequenceNumber);gx(i,c)}),i.remoteSyncer.applyRemoteEvent(o)}(n,t))}catch(r){Z("RemoteStore","Failed to raise snapshot:",r),yield um(n,r)}var r}),bx.apply(this,arguments)}function um(n,e,t){return wx.apply(this,arguments)}function wx(){return wx=M(function*(n,e,t){if(!ao(e))throw e;n.wu.add(1),yield bc(n),n.yu.set("Offline"),t||(t=()=>t$(n.localStore)),n.asyncQueue.enqueueRetryable(M(function*(){Z("RemoteStore","Retrying IndexedDB access"),yield t(),n.wu.delete(1),yield oh(n)}))}),wx.apply(this,arguments)}function p$(n,e){return e().catch(t=>um(n,t,e))}function wc(n){return Cx.apply(this,arguments)}function Cx(){return Cx=M(function*(n){const e=re(n),t=yo(e);let r=e.du.length>0?e.du[e.du.length-1].batchId:-1;for(;$de(e);)try{const i=yield Ede(e.localStore,r);if(null===i){0===e.du.length&&t.$o();break}r=i.batchId,Ude(e,i)}catch(i){yield um(e,i)}g$(e)&&m$(e)}),Cx.apply(this,arguments)}function $de(n){return Bs(n)&&n.du.length<10}function Ude(n,e){n.du.push(e);const t=yo(n);t.Oo()&&t.Xo&&t.Zo(e.mutations)}function g$(n){return Bs(n)&&!yo(n).ko()&&n.du.length>0}function m$(n){yo(n).start()}function Hde(n){return Sx.apply(this,arguments)}function Sx(){return Sx=M(function*(n){yo(n).nu()}),Sx.apply(this,arguments)}function zde(n){return Ex.apply(this,arguments)}function Ex(){return Ex=M(function*(n){const e=yo(n);for(const t of n.du)e.Zo(t.mutations)}),Ex.apply(this,arguments)}function jde(n,e,t){return Tx.apply(this,arguments)}function Tx(){return Tx=M(function*(n,e,t){const r=n.du.shift(),i=qT.from(r,e,t);yield p$(n,()=>n.remoteSyncer.applySuccessfulWrite(i)),yield wc(n)}),Tx.apply(this,arguments)}function Gde(n,e){return xx.apply(this,arguments)}function xx(){return xx=M(function*(n,e){var t;e&&yo(n).Xo&&(yield(t=M(function*(r,i){if(n6(s=i.code)&&s!==B.ABORTED){const o=r.du.shift();yo(r).Fo(),yield p$(r,()=>r.remoteSyncer.rejectFailedWrite(o.batchId,i)),yield wc(r)}var s}),function(r,i){return t.apply(this,arguments)})(n,e)),g$(n)&&m$(n)}),xx.apply(this,arguments)}function y$(n,e){return Ix.apply(this,arguments)}function Ix(){return Ix=M(function*(n,e){const t=re(n);t.asyncQueue.verifyOperationInProgress(),Z("RemoteStore","RemoteStore received new credentials");const r=Bs(t);t.wu.add(3),yield bc(t),r&&t.yu.set("Unknown"),yield t.remoteSyncer.handleCredentialChange(e),t.wu.delete(3),yield oh(t)}),Ix.apply(this,arguments)}function Ax(){return Ax=M(function*(n,e){const t=re(n);e?(t.wu.delete(2),yield oh(t)):e||(t.wu.add(2),yield bc(t),t.yu.set("Unknown"))}),Ax.apply(this,arguments)}function Cc(n){return n.Iu||(n.Iu=function(e,t,r){const i=re(e);return i.iu(),new kde(t,i.So,i.authCredentials,i.appCheckCredentials,i.It,r)}(n.datastore,n.asyncQueue,{Yr:Fde.bind(null,n),Zr:Vde.bind(null,n),zo:Bde.bind(null,n)}),n.mu.push(function(){var e=M(function*(t){t?(n.Iu.Fo(),yx(n)?mx(n):n.yu.set("Unknown")):(yield n.Iu.stop(),f$(n))});return function(t){return e.apply(this,arguments)}}())),n.Iu}function yo(n){return n.Tu||(n.Tu=function(e,t,r){const i=re(e);return i.iu(),new Pde(t,i.So,i.authCredentials,i.appCheckCredentials,i.It,r)}(n.datastore,n.asyncQueue,{Yr:Hde.bind(null,n),Zr:Gde.bind(null,n),eu:zde.bind(null,n),tu:jde.bind(null,n)}),n.mu.push(function(){var e=M(function*(t){t?(n.Tu.Fo(),yield wc(n)):(yield n.Tu.stop(),n.du.length>0&&(Z("RemoteStore",`Stopping write stream with ${n.du.length} pending writes`),n.du=[]))});return function(t){return e.apply(this,arguments)}}())),n.Tu}class Mx{constructor(e,t,r,i,s){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=r,this.op=i,this.removalCallback=s,this.deferred=new pn,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(o=>{})}static createAndSchedule(e,t,r,i,s){const o=Date.now()+r,a=new Mx(e,t,o,i,s);return a.start(r),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Q(B.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Sc(n,e){if(Gt("AsyncQueue",`${e}: ${n}`),ao(n))return new Q(B.UNAVAILABLE,`${e}: ${n}`);throw n}class Ec{constructor(e){this.comparator=e?(t,r)=>e(t,r)||ne.comparator(t.key,r.key):(t,r)=>ne.comparator(t.key,r.key),this.keyedMap=zd(),this.sortedSet=new Ft(this.comparator)}static emptySet(e){return new Ec(e.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((t,r)=>(e(t),!1))}add(e){const t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){const t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof Ec)||this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();for(;t.hasNext();){const i=t.getNext().key,s=r.getNext().key;if(!i.isEqual(s))return!1}return!0}toString(){const e=[];return this.forEach(t=>{e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}copy(e,t){const r=new Ec;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=t,r}}class _${constructor(){this.Eu=new Ft(ne.comparator)}track(e){const t=e.doc.key,r=this.Eu.get(t);r?0!==e.type&&3===r.type?this.Eu=this.Eu.insert(t,e):3===e.type&&1!==r.type?this.Eu=this.Eu.insert(t,{type:r.type,doc:e.doc}):2===e.type&&2===r.type?this.Eu=this.Eu.insert(t,{type:2,doc:e.doc}):2===e.type&&0===r.type?this.Eu=this.Eu.insert(t,{type:0,doc:e.doc}):1===e.type&&0===r.type?this.Eu=this.Eu.remove(t):1===e.type&&2===r.type?this.Eu=this.Eu.insert(t,{type:1,doc:r.doc}):0===e.type&&1===r.type?this.Eu=this.Eu.insert(t,{type:2,doc:e.doc}):de():this.Eu=this.Eu.insert(t,e)}Au(){const e=[];return this.Eu.inorderTraversal((t,r)=>{e.push(r)}),e}}class Tc{constructor(e,t,r,i,s,o,a,l,c){this.query=e,this.docs=t,this.oldDocs=r,this.docChanges=i,this.mutatedKeys=s,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=l,this.hasCachedResults=c}static fromInitialDocuments(e,t,r,i,s){const o=[];return t.forEach(a=>{o.push({type:0,doc:a})}),new Tc(e,t,Ec.emptySet(t),o,r,i,!0,!1,s)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&$d(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,r=e.docChanges;if(t.length!==r.length)return!1;for(let i=0;i<t.length;i++)if(t[i].type!==r[i].type||!t[i].doc.isEqual(r[i].doc))return!1;return!0}}class Wde{constructor(){this.Ru=void 0,this.listeners=[]}}class qde{constructor(){this.queries=new fo(e=>$B(e),$d),this.onlineState="Unknown",this.bu=new Set}}function kx(n,e){return Px.apply(this,arguments)}function Px(){return Px=M(function*(n,e){const t=re(n),r=e.query;let i=!1,s=t.queries.get(r);if(s||(i=!0,s=new Wde),i)try{s.Ru=yield t.onListen(r)}catch(o){const a=Sc(o,`Initialization of query '${VT(e.query)}' failed`);return void e.onError(a)}t.queries.set(r,s),s.listeners.push(e),e.Pu(t.onlineState),s.Ru&&e.vu(s.Ru)&&Rx(t)}),Px.apply(this,arguments)}function Ox(n,e){return Nx.apply(this,arguments)}function Nx(){return Nx=M(function*(n,e){const t=re(n),r=e.query;let i=!1;const s=t.queries.get(r);if(s){const o=s.listeners.indexOf(e);o>=0&&(s.listeners.splice(o,1),i=0===s.listeners.length)}if(i)return t.queries.delete(r),t.onUnlisten(r)}),Nx.apply(this,arguments)}function Yde(n,e){const t=re(n);let r=!1;for(const i of e){const o=t.queries.get(i.query);if(o){for(const a of o.listeners)a.vu(i)&&(r=!0);o.Ru=i}}r&&Rx(t)}function Kde(n,e,t){const r=re(n),i=r.queries.get(e);if(i)for(const s of i.listeners)s.onError(t);r.queries.delete(e)}function Rx(n){n.bu.forEach(e=>{e.next()})}class Lx{constructor(e,t,r){this.query=e,this.Vu=t,this.Su=!1,this.Du=null,this.onlineState="Unknown",this.options=r||{}}vu(e){if(!this.options.includeMetadataChanges){const r=[];for(const i of e.docChanges)3!==i.type&&r.push(i);e=new Tc(e.query,e.docs,e.oldDocs,r,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.Su?this.Cu(e)&&(this.Vu.next(e),t=!0):this.xu(e,this.onlineState)&&(this.Nu(e),t=!0),this.Du=e,t}onError(e){this.Vu.error(e)}Pu(e){this.onlineState=e;let t=!1;return this.Du&&!this.Su&&this.xu(this.Du,e)&&(this.Nu(this.Du),t=!0),t}xu(e,t){return!e.fromCache||(!this.options.ku||!("Offline"!==t))&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}Cu(e){return e.docChanges.length>0||!!(e.syncStateChanged||this.Du&&this.Du.hasPendingWrites!==e.hasPendingWrites)&&!0===this.options.includeMetadataChanges}Nu(e){e=Tc.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Su=!0,this.Vu.next(e)}}class w${constructor(e){this.key=e}}class C${constructor(e){this.key=e}}class S${constructor(e,t){this.query=e,this.Uu=t,this.qu=null,this.hasCachedResults=!1,this.current=!1,this.Ku=Re(),this.mutatedKeys=Re(),this.Gu=HB(e),this.Qu=new Ec(this.Gu)}get ju(){return this.Uu}Wu(e,t){const r=t?t.zu:new _$,i=t?t.Qu:this.Qu;let s=t?t.mutatedKeys:this.mutatedKeys,o=i,a=!1;const l="F"===this.query.limitType&&i.size===this.query.limit?i.last():null,c="L"===this.query.limitType&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((u,d)=>{const h=i.get(u),f=BT(this.query,d)?d:null,p=!!h&&this.mutatedKeys.has(h.key),g=!!f&&(f.hasLocalMutations||this.mutatedKeys.has(f.key)&&f.hasCommittedMutations);let m=!1;h&&f?h.data.isEqual(f.data)?p!==g&&(r.track({type:3,doc:f}),m=!0):this.Hu(h,f)||(r.track({type:2,doc:f}),m=!0,(l&&this.Gu(f,l)>0||c&&this.Gu(f,c)<0)&&(a=!0)):!h&&f?(r.track({type:0,doc:f}),m=!0):h&&!f&&(r.track({type:1,doc:h}),m=!0,(l||c)&&(a=!0)),m&&(f?(o=o.add(f),s=g?s.add(u):s.delete(u)):(o=o.delete(u),s=s.delete(u)))}),null!==this.query.limit)for(;o.size>this.query.limit;){const u="F"===this.query.limitType?o.last():o.first();o=o.delete(u.key),s=s.delete(u.key),r.track({type:1,doc:u})}return{Qu:o,zu:r,$i:a,mutatedKeys:s}}Hu(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,r){const i=this.Qu;this.Qu=e.Qu,this.mutatedKeys=e.mutatedKeys;const s=e.zu.Au();s.sort((c,u)=>function(d,h){const f=p=>{switch(p){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return de()}};return f(d)-f(h)}(c.type,u.type)||this.Gu(c.doc,u.doc)),this.Ju(r);const o=t?this.Yu():[],a=0===this.Ku.size&&this.current?1:0,l=a!==this.qu;return this.qu=a,0!==s.length||l?{snapshot:new Tc(this.query,e.Qu,i,s,e.mutatedKeys,0===a,l,!1,!!r&&r.resumeToken.approximateByteSize()>0),Xu:o}:{Xu:o}}Pu(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Qu:this.Qu,zu:new _$,mutatedKeys:this.mutatedKeys,$i:!1},!1)):{Xu:[]}}Zu(e){return!this.Uu.has(e)&&!!this.Qu.has(e)&&!this.Qu.get(e).hasLocalMutations}Ju(e){e&&(e.addedDocuments.forEach(t=>this.Uu=this.Uu.add(t)),e.modifiedDocuments.forEach(t=>{}),e.removedDocuments.forEach(t=>this.Uu=this.Uu.delete(t)),this.current=e.current)}Yu(){if(!this.current)return[];const e=this.Ku;this.Ku=Re(),this.Qu.forEach(r=>{this.Zu(r.key)&&(this.Ku=this.Ku.add(r.key))});const t=[];return e.forEach(r=>{this.Ku.has(r)||t.push(new C$(r))}),this.Ku.forEach(r=>{e.has(r)||t.push(new w$(r))}),t}tc(e){this.Uu=e.Hi,this.Ku=Re();const t=this.Wu(e.documents);return this.applyChanges(t,!0)}ec(){return Tc.fromInitialDocuments(this.query,this.Qu,this.mutatedKeys,0===this.qu,this.hasCachedResults)}}class Zde{constructor(e,t,r){this.query=e,this.targetId=t,this.view=r}}class Jde{constructor(e){this.key=e,this.nc=!1}}class ehe{constructor(e,t,r,i,s,o){this.localStore=e,this.remoteStore=t,this.eventManager=r,this.sharedClientState=i,this.currentUser=s,this.maxConcurrentLimboResolutions=o,this.sc={},this.ic=new fo(a=>$B(a),$d),this.rc=new Map,this.oc=new Set,this.uc=new Ft(ne.comparator),this.cc=new Map,this.ac=new ZT,this.hc={},this.lc=new Map,this.fc=ka.vn(),this.onlineState="Unknown",this.dc=void 0}get isPrimaryClient(){return!0===this.dc}}function the(n,e){return Fx.apply(this,arguments)}function Fx(){return Fx=M(function*(n,e){const t=oI(n);let r,i;const s=t.ic.get(e);if(s)r=s.targetId,t.sharedClientState.addLocalQueryTarget(r),i=s.view.ec();else{const o=yield _c(t.localStore,ar(e));t.isPrimaryClient&&cm(t.remoteStore,o);const a=t.sharedClientState.addLocalQueryTarget(o.targetId);r=o.targetId,i=yield Vx(t,e,r,"current"===a,o.resumeToken)}return i}),Fx.apply(this,arguments)}function Vx(n,e,t,r,i){return Bx.apply(this,arguments)}function Bx(){return Bx=M(function*(n,e,t,r,i){n._c=(d,h,f)=>{return(p=M(function*(g,m,_,b){let y=m.view.Wu(_);y.$i&&(y=yield sm(g.localStore,m.query,!1).then(({documents:A})=>m.view.Wu(A,y)));const T=b&&b.targetChanges.get(m.targetId),D=m.view.applyChanges(y,g.isPrimaryClient,T);return Kx(g,m.targetId,D.Xu),D.snapshot}),function(g,m,_,b){return p.apply(this,arguments)})(n,d,h,f);var p};const s=yield sm(n.localStore,e,!0),o=new S$(e,s.Hi),a=o.Wu(s.documents),l=Wd.createSynthesizedTargetChangeForCurrentChange(t,r&&"Offline"!==n.onlineState,i),c=o.applyChanges(a,n.isPrimaryClient,l);Kx(n,t,c.Xu);const u=new Zde(e,t,o);return n.ic.set(e,u),n.rc.has(t)?n.rc.get(t).push(e):n.rc.set(t,[e]),c.snapshot}),Bx.apply(this,arguments)}function nhe(n,e){return $x.apply(this,arguments)}function $x(){return $x=M(function*(n,e){const t=re(n),r=t.ic.get(e),i=t.rc.get(r.targetId);if(i.length>1)return t.rc.set(r.targetId,i.filter(s=>!$d(s,e))),void t.ic.delete(e);t.isPrimaryClient?(t.sharedClientState.removeLocalQueryTarget(r.targetId),t.sharedClientState.isActiveQueryTarget(r.targetId)||(yield vc(t.localStore,r.targetId,!1).then(()=>{t.sharedClientState.clearQueryState(r.targetId),ah(t.remoteStore,r.targetId),xc(t,r.targetId)}).catch(oo))):(xc(t,r.targetId),yield vc(t.localStore,r.targetId,!0))}),$x.apply(this,arguments)}function Ux(){return Ux=M(function*(n,e,t){const r=aI(n);try{const i=yield function(s,o){const a=re(s),l=Mt.now(),c=o.reduce((h,f)=>h.add(f.key),Re());let u,d;return a.persistence.runTransaction("Locally write mutations","readwrite",h=>{let f=Cr(),p=Re();return a.Gi.getEntries(h,c).next(g=>{f=g,f.forEach((m,_)=>{_.isValidDocument()||(p=p.add(m))})}).next(()=>a.localDocuments.getOverlayedDocuments(h,f)).next(g=>{u=g;const m=[];for(const _ of o){const b=due(_,u.get(_.key).overlayedDocument);null!=b&&m.push(new Vs(_.key,b,kB(b.value.mapValue),xt.exists(!0)))}return a.mutationQueue.addMutationBatch(h,l,m,o)}).next(g=>{d=g;const m=g.applyToLocalDocumentSet(u,p);return a.documentOverlayCache.saveOverlays(h,g.batchId,m)})}).then(()=>({batchId:d.batchId,changes:s6(u)}))}(r.localStore,e);r.sharedClientState.addPendingMutation(i.batchId),function(s,o,a){let l=s.hc[s.currentUser.toKey()];l||(l=new Ft(Me)),l=l.insert(o,a),s.hc[s.currentUser.toKey()]=l}(r,i.batchId,t),yield $s(r,i.changes),yield wc(r.remoteStore)}catch(i){const s=Sc(i,"Failed to persist write");t.reject(s)}}),Ux.apply(this,arguments)}function E$(n,e){return Hx.apply(this,arguments)}function Hx(){return Hx=M(function*(n,e){const t=re(n);try{const r=yield Sde(t.localStore,e);e.targetChanges.forEach((i,s)=>{const o=t.cc.get(s);o&&(Se(i.addedDocuments.size+i.modifiedDocuments.size+i.removedDocuments.size<=1),i.addedDocuments.size>0?o.nc=!0:i.modifiedDocuments.size>0?Se(o.nc):i.removedDocuments.size>0&&(Se(o.nc),o.nc=!1))}),yield $s(t,r,e)}catch(r){yield oo(r)}}),Hx.apply(this,arguments)}function T$(n,e,t){const r=re(n);if(r.isPrimaryClient&&0===t||!r.isPrimaryClient&&1===t){const i=[];r.ic.forEach((s,o)=>{const a=o.view.Pu(e);a.snapshot&&i.push(a.snapshot)}),function(s,o){const a=re(s);a.onlineState=o;let l=!1;a.queries.forEach((c,u)=>{for(const d of u.listeners)d.Pu(o)&&(l=!0)}),l&&Rx(a)}(r.eventManager,e),i.length&&r.sc.zo(i),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}function ihe(n,e,t){return zx.apply(this,arguments)}function zx(){return zx=M(function*(n,e,t){const r=re(n);r.sharedClientState.updateQueryState(e,"rejected",t);const i=r.cc.get(e),s=i&&i.key;if(s){let o=new Ft(ne.comparator);o=o.insert(s,wt.newNoDocument(s,Ee.min()));const a=Re().add(s),l=new Gd(Ee.min(),new Map,new lt(Me),o,a);yield E$(r,l),r.uc=r.uc.remove(s),r.cc.delete(e),Qx(r)}else yield vc(r.localStore,e,!1).then(()=>xc(r,e,t)).catch(oo)}),zx.apply(this,arguments)}function she(n,e){return jx.apply(this,arguments)}function jx(){return jx=M(function*(n,e){const t=re(n),r=e.batch.batchId;try{const i=yield Cde(t.localStore,e);Yx(t,r,null),qx(t,r),t.sharedClientState.updateMutationState(r,"acknowledged"),yield $s(t,i)}catch(i){yield oo(i)}}),jx.apply(this,arguments)}function ohe(n,e,t){return Gx.apply(this,arguments)}function Gx(){return Gx=M(function*(n,e,t){const r=re(n);try{const i=yield function(s,o){const a=re(s);return a.persistence.runTransaction("Reject batch","readwrite-primary",l=>{let c;return a.mutationQueue.lookupMutationBatch(l,o).next(u=>(Se(null!==u),c=u.keys(),a.mutationQueue.removeMutationBatch(l,u))).next(()=>a.mutationQueue.performConsistencyCheck(l)).next(()=>a.documentOverlayCache.removeOverlaysForBatchId(l,c,o)).next(()=>a.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(l,c)).next(()=>a.localDocuments.getDocuments(l,c))})}(r.localStore,e);Yx(r,e,t),qx(r,e),r.sharedClientState.updateMutationState(e,"rejected",t),yield $s(r,i)}catch(i){yield oo(i)}}),Gx.apply(this,arguments)}function qx(n,e){(n.lc.get(e)||[]).forEach(t=>{t.resolve()}),n.lc.delete(e)}function Yx(n,e,t){const r=re(n);let i=r.hc[r.currentUser.toKey()];if(i){const s=i.get(e);s&&(t?s.reject(t):s.resolve(),i=i.remove(e)),r.hc[r.currentUser.toKey()]=i}}function xc(n,e,t=null){n.sharedClientState.removeLocalQueryTarget(e);for(const r of n.rc.get(e))n.ic.delete(r),t&&n.sc.wc(r,t);n.rc.delete(e),n.isPrimaryClient&&n.ac.ls(e).forEach(r=>{n.ac.containsKey(r)||x$(n,r)})}function x$(n,e){n.oc.delete(e.path.canonicalString());const t=n.uc.get(e);null!==t&&(ah(n.remoteStore,t),n.uc=n.uc.remove(e),n.cc.delete(t),Qx(n))}function Kx(n,e,t){for(const r of t)r instanceof w$?(n.ac.addReference(r.key,e),lhe(n,r)):r instanceof C$?(Z("SyncEngine","Document no longer in limbo: "+r.key),n.ac.removeReference(r.key,e),n.ac.containsKey(r.key)||x$(n,r.key)):de()}function lhe(n,e){const t=e.key,r=t.path.canonicalString();n.uc.get(t)||n.oc.has(r)||(Z("SyncEngine","New document in limbo: "+t),n.oc.add(r),Qx(n))}function Qx(n){for(;n.oc.size>0&&n.uc.size<n.maxConcurrentLimboResolutions;){const e=n.oc.values().next().value;n.oc.delete(e);const t=new ne(Ge.fromString(e)),r=n.fc.next();n.cc.set(r,new Jde(t)),n.uc=n.uc.insert(t,r),cm(n.remoteStore,new po(ar(lc(t.path)),r,2,wr.at))}}function $s(n,e,t){return Xx.apply(this,arguments)}function Xx(){return Xx=M(function*(n,e,t){const r=re(n),i=[],s=[],o=[];var a;r.ic.isEmpty()||(r.ic.forEach((a,l)=>{o.push(r._c(l,e,t).then(c=>{if((c||t)&&r.isPrimaryClient&&r.sharedClientState.updateQueryState(l.targetId,c?.fromCache?"not-current":"current"),c){i.push(c);const u=nx.Ci(l.targetId,c);s.push(u)}}))}),yield Promise.all(o),r.sc.zo(i),yield(a=M(function*(l,c){const u=re(l);try{yield u.persistence.runTransaction("notifyLocalViewChanges","readwrite",d=>N.forEach(c,h=>N.forEach(h.Si,f=>u.persistence.referenceDelegate.addReference(d,h.targetId,f)).next(()=>N.forEach(h.Di,f=>u.persistence.referenceDelegate.removeReference(d,h.targetId,f)))))}catch(d){if(!ao(d))throw d;Z("LocalStore","Failed to update sequence numbers: "+d)}for(const d of c){const h=d.targetId;if(!d.fromCache){const f=u.Ui.get(h),g=f.withLastLimboFreeSnapshotVersion(f.snapshotVersion);u.Ui=u.Ui.insert(h,g)}}}),function(l,c){return a.apply(this,arguments)})(r.localStore,s))}),Xx.apply(this,arguments)}function che(n,e){return Zx.apply(this,arguments)}function Zx(){return Zx=M(function*(n,e){const t=re(n);if(!t.currentUser.isEqual(e)){Z("SyncEngine","User change. New user:",e.toKey());const r=yield e$(t.localStore,e);t.currentUser=e,(i=t).lc.forEach(o=>{o.forEach(a=>{a.reject(new Q(B.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),i.lc.clear(),t.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),yield $s(t,r.ji)}var i}),Zx.apply(this,arguments)}function uhe(n,e){const t=re(n),r=t.cc.get(e);if(r&&r.nc)return Re().add(r.key);{let i=Re();const s=t.rc.get(e);if(!s)return i;for(const o of s){const a=t.ic.get(o);i=i.unionWith(a.view.ju)}return i}}function oI(n){const e=re(n);return e.remoteStore.remoteSyncer.applyRemoteEvent=E$.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=uhe.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=ihe.bind(null,e),e.sc.zo=Yde.bind(null,e.eventManager),e.sc.wc=Kde.bind(null,e.eventManager),e}function aI(n){const e=re(n);return e.remoteStore.remoteSyncer.applySuccessfulWrite=she.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=ohe.bind(null,e),e}class vhe{constructor(){this.synchronizeTabs=!1}initialize(e){var t=this;return M(function*(){t.It=sh(e.databaseInfo.databaseId),t.sharedClientState=t.gc(e),t.persistence=t.yc(e),yield t.persistence.start(),t.localStore=t.Ic(e),t.gcScheduler=t.Tc(e,t.localStore),t.indexBackfillerScheduler=t.Ec(e,t.localStore)})()}Tc(e,t){return null}Ec(e,t){return null}Ic(e){return function J6(n,e,t,r){return new wde(n,e,t,r)}(this.persistence,new Z6,e.initialUser,this.It)}yc(e){return new Q6(rm.Bs,this.It)}gc(e){return new l$}terminate(){var e=this;return M(function*(){e.gcScheduler&&e.gcScheduler.stop(),yield e.sharedClientState.shutdown(),yield e.persistence.shutdown()})()}}class lI{initialize(e,t){var r=this;return M(function*(){r.localStore||(r.localStore=e.localStore,r.sharedClientState=e.sharedClientState,r.datastore=r.createDatastore(t),r.remoteStore=r.createRemoteStore(t),r.eventManager=r.createEventManager(t),r.syncEngine=r.createSyncEngine(t,!e.synchronizeTabs),r.sharedClientState.onlineStateHandler=i=>T$(r.syncEngine,i,1),r.remoteStore.remoteSyncer.handleCredentialChange=che.bind(null,r.syncEngine),yield function Dx(n,e){return Ax.apply(this,arguments)}(r.remoteStore,r.syncEngine.isPrimaryClient))})()}createEventManager(e){return new qde}createDatastore(e){const t=sh(e.databaseInfo.databaseId),r=new Mde(e.databaseInfo);return new Ode(e.authCredentials,e.appCheckCredentials,r,t)}createRemoteStore(e){return t=this.localStore,r=this.datastore,i=e.asyncQueue,s=a=>T$(this.syncEngine,a,0),o=c$.C()?new c$:new Ide,new Lde(t,r,i,s,o);var t,r,i,s,o}createSyncEngine(e,t){return function(r,i,s,o,a,l,c){const u=new ehe(r,i,s,o,a,l);return c&&(u.dc=!0),u}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}terminate(){return(e=M(function*(t){const r=re(t);Z("RemoteStore","RemoteStore shutting down."),r.wu.add(5),yield bc(r),r.gu.shutdown(),r.yu.set("Unknown")}),function(t){return e.apply(this,arguments)})(this.remoteStore);var e}}function cI(n,e,t){if(!t)throw new Q(B.INVALID_ARGUMENT,`Function ${n}() cannot be called with an empty ${e}.`)}function A$(n){if(!ne.isDocumentKey(n))throw new Q(B.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${n} has ${n.length}.`)}function M$(n){if(ne.isDocumentKey(n))throw new Q(B.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${n} has ${n.length}.`)}function dm(n){if(void 0===n)return"undefined";if(null===n)return"null";if("string"==typeof n)return n.length>20&&(n=`${n.substring(0,20)}...`),JSON.stringify(n);if("number"==typeof n||"boolean"==typeof n)return""+n;if("object"==typeof n){if(n instanceof Array)return"an array";{const e=(t=n).constructor?t.constructor.name:null;return e?`a custom ${e} object`:"an object"}}var t;return"function"==typeof n?"a function":de()}function He(n,e){if("_delegate"in n&&(n=n._delegate),!(n instanceof e)){if(e.name===n.constructor.name)throw new Q(B.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const t=dm(n);throw new Q(B.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${t}`)}}return n}const P$=new Map;class O${constructor(e){var t;if(void 0===e.host){if(void 0!==e.ssl)throw new Q(B.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=null===(t=e.ssl)||void 0===t||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new Q(B.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.useFetchStreams=!!e.useFetchStreams,function Che(n,e,t,r){if(!0===e&&!0===r)throw new Q(B.INVALID_ARGUMENT,`${n} and ${t} cannot be used together.`)}("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling)}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class lh{constructor(e,t,r,i){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=r,this._app=i,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new O$({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Q(B.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new Q(B.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 O$(e),void 0!==e.credentials&&(this._authCredentials=function(t){if(!t)return new Mce;switch(t.type){case"gapi":return new Nce(t.client,t.sessionIndex||"0",t.iamToken||null,t.authTokenFactory||null);case"provider":return t.client;default:throw new Q(B.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const t=P$.get(e);t&&(Z("ComponentProvider","Removing Datastore"),P$.delete(e),t.terminate())}(this),Promise.resolve()}}class qt{constructor(e,t,r){this.converter=t,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new ns(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new qt(this.firestore,e,this._key)}}class Wn{constructor(e,t,r){this.converter=t,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new Wn(this.firestore,e,this._query)}}class ns extends Wn{constructor(e,t,r){super(e,t,lc(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new qt(this.firestore,null,new ne(e))}withConverter(e){return new ns(this.firestore,e,this._path)}}function Ehe(n,e,...t){if(n=ai(n),cI("collection","path",e),n instanceof lh){const r=Ge.fromString(e,...t);return M$(r),new ns(n,null,r)}{if(!(n instanceof qt||n instanceof ns))throw new Q(B.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=n._path.child(Ge.fromString(e,...t));return M$(r),new ns(n.firestore,null,r)}}function N$(n,e,...t){if(n=ai(n),1===arguments.length&&(e=pB.R()),cI("doc","path",e),n instanceof lh){const r=Ge.fromString(e,...t);return A$(r),new qt(n,null,new ne(r))}{if(!(n instanceof qt||n instanceof ns))throw new Q(B.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=n._path.child(Ge.fromString(e,...t));return A$(r),new qt(n.firestore,n instanceof ns?n.converter:null,new ne(r))}}class hm{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Rc(this.observer.next,e)}error(e){this.observer.error?this.Rc(this.observer.error,e):Gt("Uncaught Error in snapshot listener:",e)}bc(){this.muted=!0}Rc(e,t){this.muted||setTimeout(()=>{this.muted||e(t)},0)}}class Mhe{constructor(e,t,r,i){var s=this;this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=r,this.databaseInfo=i,this.user=bn.UNAUTHENTICATED,this.clientId=pB.R(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(r,function(){var o=M(function*(a){Z("FirestoreClient","Received user=",a.uid),yield s.authCredentialListener(a),s.user=a});return function(a){return o.apply(this,arguments)}}()),this.appCheckCredentials.start(r,o=>(Z("FirestoreClient","Received new app check token=",o),this.appCheckCredentialListener(o,this.user)))}getConfiguration(){var e=this;return M(function*(){return{asyncQueue:e.asyncQueue,databaseInfo:e.databaseInfo,clientId:e.clientId,authCredentials:e.authCredentials,appCheckCredentials:e.appCheckCredentials,initialUser:e.user,maxConcurrentLimboResolutions:100}})()}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new Q(B.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var e=this;this.asyncQueue.enterRestrictedMode();const t=new pn;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(M(function*(){try{e.onlineComponents&&(yield e.onlineComponents.terminate()),e.offlineComponents&&(yield e.offlineComponents.terminate()),e.authCredentials.shutdown(),e.appCheckCredentials.shutdown(),t.resolve()}catch(r){const i=Sc(r,"Failed to shutdown persistence");t.reject(i)}})),t.promise}}function F$(n,e){return uI.apply(this,arguments)}function uI(){return uI=M(function*(n,e){n.asyncQueue.verifyOperationInProgress(),Z("FirestoreClient","Initializing OfflineComponentProvider");const t=yield n.getConfiguration();yield e.initialize(t);let r=t.initialUser;n.setCredentialChangeListener(function(){var i=M(function*(s){r.isEqual(s)||(yield e$(e.localStore,s),r=s)});return function(s){return i.apply(this,arguments)}}()),e.persistence.setDatabaseDeletedListener(()=>n.terminate()),n.offlineComponents=e}),uI.apply(this,arguments)}function V$(n,e){return dI.apply(this,arguments)}function dI(){return dI=M(function*(n,e){n.asyncQueue.verifyOperationInProgress();const t=yield hI(n);Z("FirestoreClient","Initializing OnlineComponentProvider");const r=yield n.getConfiguration();yield e.initialize(t,r),n.setCredentialChangeListener(i=>y$(e.remoteStore,i)),n.setAppCheckTokenChangeListener((i,s)=>y$(e.remoteStore,s)),n.onlineComponents=e}),dI.apply(this,arguments)}function hI(n){return fI.apply(this,arguments)}function fI(){return fI=M(function*(n){return n.offlineComponents||(Z("FirestoreClient","Using default OfflineComponentProvider"),yield F$(n,new vhe)),n.offlineComponents}),fI.apply(this,arguments)}function fm(n){return pI.apply(this,arguments)}function pI(){return pI=M(function*(n){return n.onlineComponents||(Z("FirestoreClient","Using default OnlineComponentProvider"),yield V$(n,new lI)),n.onlineComponents}),pI.apply(this,arguments)}function Ic(n){return yI.apply(this,arguments)}function yI(){return yI=M(function*(n){const e=yield fm(n),t=e.eventManager;return t.onListen=the.bind(null,e.syncEngine),t.onUnlisten=nhe.bind(null,e.syncEngine),t}),yI.apply(this,arguments)}class Vhe{constructor(){this.Bc=Promise.resolve(),this.Lc=[],this.Uc=!1,this.qc=[],this.Kc=null,this.Gc=!1,this.Qc=!1,this.jc=[],this.No=new dx(this,"async_queue_retry"),this.Wc=()=>{const t=lm();t&&Z("AsyncQueue","Visibility state changed to "+t.visibilityState),this.No.Po()};const e=lm();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Wc)}get isShuttingDown(){return this.Uc}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.zc(),this.Hc(e)}enterRestrictedMode(e){if(!this.Uc){this.Uc=!0,this.Qc=e||!1;const t=lm();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Wc)}}enqueue(e){if(this.zc(),this.Uc)return new Promise(()=>{});const t=new pn;return this.Hc(()=>this.Uc&&this.Qc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Lc.push(e),this.Jc()))}Jc(){var e=this;return M(function*(){if(0!==e.Lc.length){try{yield e.Lc[0](),e.Lc.shift(),e.No.reset()}catch(t){if(!ao(t))throw t;Z("AsyncQueue","Operation failed with retryable error: "+t)}e.Lc.length>0&&e.No.Ro(()=>e.Jc())}})()}Hc(e){const t=this.Bc.then(()=>(this.Gc=!0,e().catch(r=>{throw this.Kc=r,this.Gc=!1,Gt("INTERNAL UNHANDLED ERROR: ",function(s){let o=s.message||"";return s.stack&&(o=s.stack.includes(s.message)?s.stack:s.message+"\n"+s.stack),o}(r)),r}).then(r=>(this.Gc=!1,r))));return this.Bc=t,t}enqueueAfterDelay(e,t,r){this.zc(),this.jc.indexOf(e)>-1&&(t=0);const i=Mx.createAndSchedule(this,e,t,r,s=>this.Yc(s));return this.qc.push(i),i}zc(){this.Kc&&de()}verifyOperationInProgress(){}Xc(){var e=this;return M(function*(){let t;do{t=e.Bc,yield t}while(t!==e.Bc)})()}Zc(e){for(const t of this.qc)if(t.timerId===e)return!0;return!1}ta(e){return this.Xc().then(()=>{this.qc.sort((t,r)=>t.targetTimeMs-r.targetTimeMs);for(const t of this.qc)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.Xc()})}ea(e){this.jc.push(e)}Yc(e){const t=this.qc.indexOf(e);this.qc.splice(t,1)}}function _I(n){return function(e,t){if("object"!=typeof e||null===e)return!1;const r=e;for(const i of["next","error","complete"])if(i in r&&"function"==typeof r[i])return!0;return!1}(n)}class St extends lh{constructor(e,t,r,i){super(e,t,r,i),this.type="firestore",this._queue=new Vhe,this._persistenceKey=i?.name||"[DEFAULT]"}_terminate(){return this._firestoreClient||z$(this),this._firestoreClient.terminate()}}function $he(n,e){const r="string"==typeof n?n:e||"(default)",i=Mp("object"==typeof n?n:dF(),"firestore").getImmediate({identifier:r});if(!i._initialized){const s=(n=>{const e=(n=>{var e,t;return null===(t=null===(e=_w())||void 0===e?void 0:e.emulatorHosts)||void 0===t?void 0:t[n]})(n);if(!e)return;const t=e.lastIndexOf(":");if(t<=0||t+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const r=parseInt(e.substring(t+1),10);return"["===e[0]?[e.substring(1,t-1),r]:[e.substring(0,t),r]})("firestore");s&&function She(n,e,t,r={}){var i;const s=(n=He(n,lh))._getSettings();if("firestore.googleapis.com"!==s.host&&s.host!==e&&rc("Host has been set in both settings() and useEmulator(), emulator host will be used"),n._setSettings(Object.assign(Object.assign({},s),{host:`${e}:${t}`,ssl:!1})),r.mockUserToken){let o,a;if("string"==typeof r.mockUserToken)o=r.mockUserToken,a=bn.MOCK_USER;else{o=function jee(n,e){if(n.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const r=e||"demo-project",i=n.iat||0,s=n.sub||n.user_id;if(!s)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:i,exp:i+3600,auth_time:i,sub:s,user_id:s,firebase:{sign_in_provider:"custom",identities:{}}},n);return[Sp(JSON.stringify({alg:"none",type:"JWT"})),Sp(JSON.stringify(o)),""].join(".")}(r.mockUserToken,null===(i=n._app)||void 0===i?void 0:i.options.projectId);const l=r.mockUserToken.sub||r.mockUserToken.user_id;if(!l)throw new Q(B.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");a=new bn(l)}n._authCredentials=new kce(new hB(o,a))}}(i,...s)}return i}function tn(n){return n._firestoreClient||z$(n),n._firestoreClient.verifyNotTerminated(),n._firestoreClient}function z$(n){var e;const t=n._freezeSettings(),r=(s=(null===(e=n._app)||void 0===e?void 0:e.options.appId)||"",new Wce(n._databaseId,s,n._persistenceKey,(a=t).host,a.ssl,a.experimentalForceLongPolling,a.experimentalAutoDetectLongPolling,a.useFetchStreams));var s,a;n._firestoreClient=new Mhe(n._authCredentials,n._appCheckCredentials,n._queue,r)}class Oa{constructor(e){this._byteString=e}static fromBase64String(e){try{return new Oa(gn.fromBase64String(e))}catch(t){throw new Q(B.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}}static fromUint8Array(e){return new Oa(gn.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}class Dc{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new Q(B.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Wt(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class gm{constructor(e){this._methodName=e}}class vI{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new Q(B.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new Q(B.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return Me(this._lat,e._lat)||Me(this._long,e._long)}}const Uhe=/^__.*__$/;class Hhe{constructor(e,t,r){this.data=e,this.fieldMask=t,this.fieldTransforms=r}toMutation(e,t){return null!==this.fieldMask?new Vs(e,this.data,this.fieldMask,t,this.fieldTransforms):new hc(e,this.data,t,this.fieldTransforms)}}function q$(n){switch(n){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw de()}}class mm{constructor(e,t,r,i,s,o){this.settings=e,this.databaseId=t,this.It=r,this.ignoreUndefinedProperties=i,void 0===s&&this.na(),this.fieldTransforms=s||[],this.fieldMask=o||[]}get path(){return this.settings.path}get sa(){return this.settings.sa}ia(e){return new mm(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.It,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}ra(e){var t;const r=null===(t=this.path)||void 0===t?void 0:t.child(e),i=this.ia({path:r,oa:!1});return i.ua(e),i}ca(e){var t;const r=null===(t=this.path)||void 0===t?void 0:t.child(e),i=this.ia({path:r,oa:!1});return i.na(),i}aa(e){return this.ia({path:void 0,oa:!0})}ha(e){return _m(e,this.settings.methodName,this.settings.la||!1,this.path,this.settings.fa)}contains(e){return void 0!==this.fieldMask.find(t=>e.isPrefixOf(t))||void 0!==this.fieldTransforms.find(t=>e.isPrefixOf(t.field))}na(){if(this.path)for(let e=0;e<this.path.length;e++)this.ua(this.path.get(e))}ua(e){if(0===e.length)throw this.ha("Document fields must not be empty");if(q$(this.sa)&&Uhe.test(e))throw this.ha('Document fields cannot begin and end with "__"')}}class zhe{constructor(e,t,r){this.databaseId=e,this.ignoreUndefinedProperties=t,this.It=r||sh(e)}da(e,t,r,i=!1){return new mm({sa:e,methodName:t,fa:r,path:Wt.emptyPath(),oa:!1,la:i},this.databaseId,this.It,this.ignoreUndefinedProperties)}}function Ac(n){const e=n._freezeSettings(),t=sh(n._databaseId);return new zhe(n._databaseId,!!e.ignoreUndefinedProperties,t)}function bI(n,e,t,r,i,s={}){const o=n.da(s.merge||s.mergeFields?2:0,e,t,i);CI("Data must be an object, but it was:",o,r);const a=Z$(r,o);let l,c;if(s.merge)l=new Ur(o.fieldMask),c=o.fieldTransforms;else if(s.mergeFields){const u=[];for(const d of s.mergeFields){const h=SI(e,d,t);if(!o.contains(h))throw new Q(B.INVALID_ARGUMENT,`Field '${h}' is specified in your field mask but missing from your input data.`);e5(u,h)||u.push(h)}l=new Ur(u),c=o.fieldTransforms.filter(d=>l.covers(d.field))}else l=null,c=o.fieldTransforms;return new Hhe(new Pn(a),l,c)}class wI extends gm{_toFieldTransform(e){return new Ud(e.path,new uc)}isEqual(e){return e instanceof wI}}class jhe extends gm{constructor(e,t){super(e),this._a=t}_toFieldTransform(e){const t=function Y$(n,e,t){return new mm({sa:3,fa:e.settings.fa,methodName:n._methodName,oa:t},e.databaseId,e.It,e.ignoreUndefinedProperties)}(this,e,!0),r=this._a.map(s=>Na(s,t)),i=new Sa(r);return new Ud(e.path,i)}isEqual(e){return this===e}}function Na(n,e){if(J$(n=ai(n)))return CI("Unsupported field value:",e,n),Z$(n,e);if(n instanceof gm)return function(t,r){if(!q$(r.sa))throw r.ha(`${t._methodName}() can only be used with update() and set()`);if(!r.path)throw r.ha(`${t._methodName}() is not currently supported inside arrays`);const i=t._toFieldTransform(r);i&&r.fieldTransforms.push(i)}(n,e),null;if(void 0===n&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),n instanceof Array){if(e.settings.oa&&4!==e.sa)throw e.ha("Nested arrays are not supported");return function(t,r){const i=[];let s=0;for(const o of t){let a=Na(o,r.aa(s));null==a&&(a={nullValue:"NULL_VALUE"}),i.push(a),s++}return{arrayValue:{values:i}}}(n,e)}return function(t,r){if(null===(t=ai(t)))return{nullValue:"NULL_VALUE"};if("number"==typeof t)return GB(r.It,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){const i=Mt.fromDate(t);return{timestampValue:qd(r.It,i)}}if(t instanceof Mt){const i=new Mt(t.seconds,1e3*Math.floor(t.nanoseconds/1e3));return{timestampValue:qd(r.It,i)}}if(t instanceof vI)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof Oa)return{bytesValue:h6(r.It,t._byteString)};if(t instanceof qt){const i=r.databaseId,s=t.firestore._databaseId;if(!s.isEqual(i))throw r.ha(`Document reference is for database ${s.projectId}/${s.database} but should be for database ${i.projectId}/${i.database}`);return{referenceValue:UT(t.firestore._databaseId||r.databaseId,t._key.path)}}throw r.ha(`Unsupported field value: ${dm(t)}`)}(n,e)}function Z$(n,e){const t={};return wB(n)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):ya(n,(r,i)=>{const s=Na(i,e.ra(r));null!=s&&(t[r]=s)}),{mapValue:{fields:t}}}function J$(n){return!("object"!=typeof n||null===n||n instanceof Array||n instanceof Date||n instanceof Mt||n instanceof vI||n instanceof Oa||n instanceof qt||n instanceof gm)}function CI(n,e,t){if(!J$(t)||"object"!=typeof(r=t)||null===r||Object.getPrototypeOf(r)!==Object.prototype&&null!==Object.getPrototypeOf(r)){const r=dm(t);throw e.ha("an object"===r?n+" a custom object":n+" "+r)}var r}function SI(n,e,t){if((e=ai(e))instanceof Dc)return e._internalPath;if("string"==typeof e)return ym(n,e);throw _m("Field path arguments must be of type string or ",n,!1,void 0,t)}const qhe=new RegExp("[~\\*/\\[\\]]");function ym(n,e,t){if(e.search(qhe)>=0)throw _m(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,n,!1,void 0,t);try{return new Dc(...e.split("."))._internalPath}catch{throw _m(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,n,!1,void 0,t)}}function _m(n,e,t,r,i){const s=r&&!r.isEmpty(),o=void 0!==i;let a=`Function ${e}() called with invalid data`;t&&(a+=" (via `toFirestore()`)"),a+=". ";let l="";return(s||o)&&(l+=" (found",s&&(l+=` in field ${r}`),o&&(l+=` in document ${i}`),l+=")"),new Q(B.INVALID_ARGUMENT,a+n+l)}function e5(n,e){return n.some(t=>t.isEqual(e))}class EI{constructor(e,t,r,i,s){this._firestore=e,this._userDataWriter=t,this._key=r,this._document=i,this._converter=s}get id(){return this._key.path.lastSegment()}get ref(){return new qt(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new Yhe(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const t=this._document.data.field(vm("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class Yhe extends EI{data(){return super.data()}}function vm(n,e){return"string"==typeof e?ym(n,e):e instanceof Dc?e._internalPath:e._delegate._internalPath}function Qhe(n,...e){for(const t of e)n=t._apply(n);return n}class Zhe extends class Khe{}{constructor(e,t){super(),this.ma=e,this.pa=t,this.type="orderBy"}_apply(e){const t=function(r,i,s){if(null!==r.startAt)throw new Q(B.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==r.endAt)throw new Q(B.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");const o=new ac(i,s);return function(a,l){if(null===RT(a)){const c=LT(a);null!==c&&function l5(n,e,t){if(!t.isEqual(e))throw new Q(B.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 '${t.toString()}' instead.`)}(0,c,l.field)}}(r,o),o}(e._query,this.ma,this.pa);return new Wn(e.firestore,e.converter,function(r,i){const s=r.explicitOrderBy.concat([i]);return new Fs(r.path,r.collectionGroup,s,r.filters.slice(),r.limit,r.limitType,r.startAt,r.endAt)}(e._query,t))}}function Jhe(n,e="asc"){const t=e,r=vm("orderBy",n);return new Zhe(r,t)}class Ra{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class Mc extends EI{constructor(e,t,r,i,s,o){super(e,t,r,i,o),this._firestore=e,this._firestoreImpl=e,this.metadata=s}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const t=new bm(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){const r=this._document.data.field(vm("DocumentSnapshot.get",e));if(null!==r)return this._userDataWriter.convertValue(r,t.serverTimestamps)}}}class bm extends Mc{data(e={}){return super.data(e)}}class kc{constructor(e,t,r,i){this._firestore=e,this._userDataWriter=t,this._snapshot=i,this.metadata=new Ra(i.hasPendingWrites,i.fromCache),this.query=r}get docs(){const e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(r=>{e.call(t,new bm(this._firestore,this._userDataWriter,r.key,r,new Ra(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new Q(B.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(r,i){if(r._snapshot.oldDocs.isEmpty()){let s=0;return r._snapshot.docChanges.map(o=>({type:"added",doc:new bm(r._firestore,r._userDataWriter,o.doc.key,o.doc,new Ra(r._snapshot.mutatedKeys.has(o.doc.key),r._snapshot.fromCache),r.query.converter),oldIndex:-1,newIndex:s++}))}{let s=r._snapshot.oldDocs;return r._snapshot.docChanges.filter(o=>i||3!==o.type).map(o=>{const a=new bm(r._firestore,r._userDataWriter,o.doc.key,o.doc,new Ra(r._snapshot.mutatedKeys.has(o.doc.key),r._snapshot.fromCache),r.query.converter);let l=-1,c=-1;return 0!==o.type&&(l=s.indexOf(o.doc.key),s=s.delete(o.doc.key)),1!==o.type&&(s=s.add(o.doc),c=s.indexOf(o.doc.key)),{type:tfe(o.type),doc:a,oldIndex:l,newIndex:c}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}}function tfe(n){switch(n){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return de()}}function nfe(n){n=He(n,qt);const e=He(n.firestore,St);return function U$(n,e,t={}){const r=new pn;return n.asyncQueue.enqueueAndForget(M(function*(){return function(i,s,o,a,l){const c=new hm({next:d=>{s.enqueueAndForget(()=>Ox(i,u));const h=d.docs.has(o);!h&&d.fromCache?l.reject(new Q(B.UNAVAILABLE,"Failed to get document because the client is offline.")):h&&d.fromCache&&a&&"server"===a.source?l.reject(new Q(B.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.)')):l.resolve(d)},error:d=>l.reject(d)}),u=new Lx(lc(o.path),c,{includeMetadataChanges:!0,ku:!0});return kx(i,u)}(yield Ic(n),n.asyncQueue,e,t,r)})),r.promise}(tn(e),n._key).then(t=>xI(e,n,t))}class _o extends class efe{convertValue(e,t="none"){switch(ba(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Vt(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(_a(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw de()}}convertObject(e,t){const r={};return ya(e.fields,(i,s)=>{r[i]=this.convertValue(s,t)}),r}convertGeoPoint(e){return new vI(Vt(e.latitude),Vt(e.longitude))}convertArray(e,t){return(e.values||[]).map(r=>this.convertValue(r,t))}convertServerTimestamp(e,t){switch(t){case"previous":const r=SB(e);return null==r?null:this.convertValue(r,t);case"estimate":return this.convertTimestamp(Od(e));default:return null}}convertTimestamp(e){const t=lo(e);return new Mt(t.seconds,t.nanos)}convertDocumentKey(e,t){const r=Ge.fromString(e);Se(w6(r));const i=new va(r.get(1),r.get(3)),s=new ne(r.popFirst(5));return i.isEqual(t)||Gt(`Document ${s} 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 (${t.projectId}/${t.database}) instead.`),s}}{constructor(e){super(),this.firestore=e}convertBytes(e){return new Oa(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new qt(this.firestore,null,t)}}function rfe(n,e,t){n=He(n,qt);const r=He(n.firestore,St),i=function TI(n,e,t){let r;return r=n?t&&(t.merge||t.mergeFields)?n.toFirestore(e,t):n.toFirestore(e):e,r}(n.converter,e,t);return function uh(n,e){return function(t,r){const i=new pn;return t.asyncQueue.enqueueAndForget(M(function*(){return function rhe(n,e,t){return Ux.apply(this,arguments)}(yield function mI(n){return fm(n).then(e=>e.syncEngine)}(t),r,i)})),i.promise}(tn(n),e)}(r,[bI(Ac(r),"setDoc",n._key,i,null!==n.converter,t).toMutation(n._key,xt.none())])}function xI(n,e,t){const r=t.docs.get(e._key),i=new _o(n);return new Mc(n,i,e._key,r,new Ra(t.hasPendingWrites,t.fromCache),e.converter)}function lfe(){return new wI("serverTimestamp")}function cfe(...n){return new jhe("arrayUnion",n)}!function(n,e=!0){nc="9.12.1",ir(new zn("firestore",(t,{instanceIdentifier:r,options:i})=>{const s=t.getProvider("app").getImmediate(),o=new St(new Pce(t.getProvider("auth-internal")),new Rce(t.getProvider("app-check-internal")),function(a,l){if(!Object.prototype.hasOwnProperty.apply(a.options,["projectId"]))throw new Q(B.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new va(a.options.projectId,l)}(s,r),s);return i=Object.assign({useFetchStreams:e},i),o._setSettings(i),o},"PUBLIC").setMultipleInstances(!0)),jt(dB,"3.7.1",n),jt(dB,"3.7.1","esm2017")}();var ufe={includeMetadataChanges:!1};function II(n,e){return void 0===e&&(e=ufe),new et(function(t){var r=function ife(n,...e){var t,r,i;n=ai(n);let s={includeMetadataChanges:!1},o=0;"object"!=typeof e[o]||_I(e[o])||(s=e[o],o++);const a={includeMetadataChanges:s.includeMetadataChanges};if(_I(e[o])){const d=e[o];e[o]=null===(t=d.next)||void 0===t?void 0:t.bind(d),e[o+1]=null===(r=d.error)||void 0===r?void 0:r.bind(d),e[o+2]=null===(i=d.complete)||void 0===i?void 0:i.bind(d)}let l,c,u;if(n instanceof qt)c=He(n.firestore,St),u=lc(n._key.path),l={next:d=>{e[o]&&e[o](xI(c,n,d))},error:e[o+1],complete:e[o+2]};else{const d=He(n,Wn);c=He(d.firestore,St),u=d._query;const h=new _o(c);l={next:f=>{e[o]&&e[o](new kc(c,h,d,f))},error:e[o+1],complete:e[o+2]},function t5(n){if("L"===n.limitType&&0===n.explicitOrderBy.length)throw new Q(B.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(n._query)}return function(d,h,f,p){const g=new hm(p),m=new Lx(h,g,f);return d.asyncQueue.enqueueAndForget(M(function*(){return kx(yield Ic(d),m)})),()=>{g.bc(),d.asyncQueue.enqueueAndForget(M(function*(){return Ox(yield Ic(d),m)}))}}(tn(c),u,a,l)}(n,e,{next:t.next.bind(t),error:t.error.bind(t),complete:t.complete.bind(t)});return{unsubscribe:r}})}function hfe(n,e){return void 0===e&&(e={}),function dfe(n){return II(n,{includeMetadataChanges:!0})}(n).pipe(on(function(t){return u5(t,e)}))}function u5(n,e){void 0===e&&(e={});var t=n.data();return!n.exists()||"object"!=typeof t||null===t||e.idField&&(t[e.idField]=n.id),t}function _fe(n,e){return void 0===e&&(e={}),function yfe(n){return II(n,{includeMetadataChanges:!0}).pipe(on(function(e){return e.docs}))}(n).pipe(on(function(t){return t.map(function(r){return u5(r,e)})}))}class dh{constructor(e){return e}}const p5="firestore",MI=new ye("angularfire2.firestore-instances");function wfe(n){return(e,t)=>{const r=e.runOutsideAngular(()=>n(t));return new dh(r)}}const Cfe={provide:class vfe{constructor(){return SC(p5)}},deps:[[new hr,MI]]},Sfe={provide:dh,useFactory:function bfe(n,e){const t=function CC(n,e,t){if(e){if(1===e.length)return e[0];const s=e.filter(o=>o.app===t);if(1===s.length)return s[0]}return t.container.getProvider(n).getImmediate({optional:!0})}(p5,n,e);return t&&new dh(t)},deps:[[new hr,MI],Yl]};let Efe=(()=>{class n{constructor(){jt("angularfire",pC.full,"fst")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({providers:[Sfe,Cfe]}),n})();function Tfe(n,...e){return{ngModule:Efe,providers:[{provide:MI,useFactory:wfe(n),multi:!0,deps:[vt,gr,b3,w3,[new hr,x4],[new hr,K4],...e]}]}}const xfe=ci(_fe,!0),Ife=ci(hfe,!0),g5=ci(cfe,!0),Cm=ci(Ehe,!0),Hr=ci(N$,!0),Sm=ci(nfe,!0),Dfe=ci($he,!0),Afe=ci(Jhe,!0),Mfe=ci(Qhe,!0),Em=ci(lfe,!0),hh=ci(rfe,!0);class m5 extends cs{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,r){super(),this.scheduler=r,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new kfe(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,r=t?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=r.length;let o;if(this.closed)throw new Mo;if(this.isStopped||this.hasError?o=Dt.EMPTY:(this.observers.push(e),o=new rM(this,e)),i&&e.add(e=new Bp(e,i)),t)for(let a=0;a<s&&!e.closed;a++)e.next(r[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(r[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||$ie).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,r=this._windowTime,i=this._events,s=i.length;let o=0;for(;o<s&&!(e-i[o].time<r);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&i.splice(0,o),i}}class kfe{constructor(e,t){this.time=e,this.value=t}}function Tm(n,e){return"function"==typeof e?t=>t.pipe(Tm((r,i)=>Gc(n(r,i)).pipe(on((s,o)=>e(r,s,i,o))))):t=>t.lift(new Pfe(n))}class Pfe{constructor(e){this.project=e}call(e,t){return t.subscribe(new Ofe(e,this.project))}}class Ofe extends uM{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const r=this.index++;try{t=this.project(e,r)}catch(i){return void this.destination.error(i)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const r=new cM(this),i=this.destination;i.add(r),this.innerSubscription=dM(e,r),this.innerSubscription!==r&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const xm={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if(typeof window>"u")return xm.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return xm.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let kI;function Hfe(n,e,t){let r=t;return function Rfe(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((i,s)=>!("*"===i||!function Ffe(n,e){if(!kI){const t=Element.prototype;kI=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&kI.call(n,e)}(n,i)||(r=s,0))),r}class jfe{constructor(e,t){this.componentFactory=t.get(hl).resolveComponentFactory(e)}create(e){return new Gfe(this.componentFactory,e)}}class Gfe{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new m5(1),this.events=this.eventEmitters.pipe(Tm(r=>fM(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(vt),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=xm.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function Vfe(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=gr.create({providers:[],parent:this.injector}),r=function Ufe(n,e){const t=n.childNodes,r=e.map(()=>[]);let i=-1;e.some((s,o)=>"*"===s&&(i=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=Hfe(a,e,i);-1!==l&&r[l].push(a)}return r}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,r,e),this.viewChangeDetectorRef=this.componentRef.injector.get($l),this.implementsOnChanges=function Lfe(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Nu).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:r,templateName:i})=>e.instance[r].pipe(on(o=>({name:i,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=xm.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[e];if(r)return void(r.currentValue=t);const i=this.unchangedInputs.has(e),s=i?void 0:this.getInputValue(e);this.inputChanges[e]=new TM(s,t,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class Wfe extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class nt extends cs{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Mo;return this._value}next(e){super.next(this._value=e)}}let vo=(()=>{class n{constructor(){this.showChatBox=new nt(!1)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Kfe(n){const{index:e,period:t,subscriber:r}=n;if(r.next(e),!r.closed){if(-1===t)return r.complete();n.index=e+1,this.schedule(n,t)}}function qe(n,e){if(e.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+e.length+" present")}function Im(n){return(Im="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})(n)}function Qfe(n){return qe(1,arguments),n instanceof Date||"object"===Im(n)&&"[object Date]"===Object.prototype.toString.call(n)}function Dm(n){return(Dm="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})(n)}function ht(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||"object"===Dm(n)&&"[object Date]"===e?new Date(n.getTime()):"number"==typeof n||"[object Number]"===e?new Date(n):(("string"==typeof n||"[object String]"===e)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Xfe(n){if(qe(1,arguments),!Qfe(n)&&"number"!=typeof n)return!1;var e=ht(n);return!isNaN(Number(e))}function Ye(n){if(null===n||!0===n||!1===n)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Zfe(n,e){qe(2,arguments);var t=ht(n).getTime(),r=Ye(e);return new Date(t+r)}function y5(n,e){qe(2,arguments);var t=Ye(e);return Zfe(n,-t)}function Pc(n){qe(1,arguments);var e=1,t=ht(n),r=t.getUTCDay(),i=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function _5(n){qe(1,arguments);var e=ht(n),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var i=Pc(r),s=new Date(0);s.setUTCFullYear(t,0,4),s.setUTCHours(0,0,0,0);var o=Pc(s);return e.getTime()>=i.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function tpe(n){qe(1,arguments);var e=_5(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Pc(t);return r}function v5(n){qe(1,arguments);var e=ht(n),t=Pc(e).getTime()-tpe(e).getTime();return Math.round(t/6048e5)+1}var b5={};function Oc(){return b5}function La(n,e){var t,r,i,s,o,a,l,c;qe(1,arguments);var u=Oc(),d=Ye(null!==(t=null!==(r=null!==(i=null!==(s=e?.weekStartsOn)&&void 0!==s?s:null==e||null===(o=e.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==t?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=ht(n),f=h.getUTCDay(),p=(f<d?7:0)+f-d;return h.setUTCDate(h.getUTCDate()-p),h.setUTCHours(0,0,0,0),h}function PI(n,e){var t,r,i,s,o,a,l,c;qe(1,arguments);var u=ht(n),d=u.getUTCFullYear(),h=Oc(),f=Ye(null!==(t=null!==(r=null!==(i=null!==(s=e?.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(o=e.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==r?r:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==t?t:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,f),p.setUTCHours(0,0,0,0);var g=La(p,e),m=new Date(0);m.setUTCFullYear(d,0,f),m.setUTCHours(0,0,0,0);var _=La(m,e);return u.getTime()>=g.getTime()?d+1:u.getTime()>=_.getTime()?d:d-1}function rpe(n,e){var t,r,i,s,o,a,l,c;qe(1,arguments);var u=Oc(),d=Ye(null!==(t=null!==(r=null!==(i=null!==(s=e?.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(o=e.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==t?t:1),h=PI(n,e),f=new Date(0);f.setUTCFullYear(h,0,d),f.setUTCHours(0,0,0,0);var p=La(f,e);return p}function w5(n,e){qe(1,arguments);var t=ht(n),r=La(t,e).getTime()-rpe(t,e).getTime();return Math.round(r/6048e5)+1}function st(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length<e;)r="0"+r;return t+r}const bo_y=function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return st("yy"===t?i%100:i,t.length)},bo_M=function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):st(r+1,2)},bo_d=function(e,t){return st(e.getUTCDate(),t.length)},bo_h=function(e,t){return st(e.getUTCHours()%12||12,t.length)},bo_H=function(e,t){return st(e.getUTCHours(),t.length)},bo_m=function(e,t){return st(e.getUTCMinutes(),t.length)},bo_s=function(e,t){return st(e.getUTCSeconds(),t.length)},bo_S=function(e,t){var r=t.length,i=e.getUTCMilliseconds();return st(Math.floor(i*Math.pow(10,r-3)),t.length)};var ope={G:function(e,t,r){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var i=e.getUTCFullYear();return r.ordinalNumber(i>0?i:1-i,{unit:"year"})}return bo_y(e,t)},Y:function(e,t,r,i){var s=PI(e,i),o=s>0?s:1-s;return"YY"===t?st(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):st(o,t.length)},R:function(e,t){return st(_5(e),t.length)},u:function(e,t){return st(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return st(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return st(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){var i=e.getUTCMonth();switch(t){case"M":case"MM":return bo_M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return st(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){var s=w5(e,i);return"wo"===t?r.ordinalNumber(s,{unit:"week"}):st(s,t.length)},I:function(e,t,r){var i=v5(e);return"Io"===t?r.ordinalNumber(i,{unit:"week"}):st(i,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bo_d(e,t)},D:function(e,t,r){var i=function epe(n){qe(1,arguments);var e=ht(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime();return Math.floor((t-r)/864e5)+1}(e);return"Do"===t?r.ordinalNumber(i,{unit:"dayOfYear"}):st(i,t.length)},E:function(e,t,r){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){var s=e.getUTCDay(),o=(s-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return st(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){var s=e.getUTCDay(),o=(s-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return st(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){var i=e.getUTCDay(),s=0===i?7:i;switch(t){case"i":return String(s);case"ii":return st(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){var s=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,r){var s,i=e.getUTCHours();switch(s=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,r){var s,i=e.getUTCHours();switch(s=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var i=e.getUTCHours()%12;return 0===i&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return bo_h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bo_H(e,t)},K:function(e,t,r){var i=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(i,{unit:"hour"}):st(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?r.ordinalNumber(i,{unit:"hour"}):st(i,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bo_m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bo_s(e,t)},S:function(e,t){return bo_S(e,t)},X:function(e,t,r,i){var o=(i._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return S5(o);case"XXXX":case"XX":return Fa(o);default:return Fa(o,":")}},x:function(e,t,r,i){var o=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return S5(o);case"xxxx":case"xx":return Fa(o);default:return Fa(o,":")}},O:function(e,t,r,i){var o=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+C5(o,":");default:return"GMT"+Fa(o,":")}},z:function(e,t,r,i){var o=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+C5(o,":");default:return"GMT"+Fa(o,":")}},t:function(e,t,r,i){return st(Math.floor((i._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,r,i){return st((i._originalDate||e).getTime(),t.length)}};function C5(n,e){var t=n>0?"-":"+",r=Math.abs(n),i=Math.floor(r/60),s=r%60;if(0===s)return t+String(i);var o=e||"";return t+String(i)+o+st(s,2)}function S5(n,e){return n%60==0?(n>0?"-":"+")+st(Math.abs(n)/60,2):Fa(n,e)}function Fa(n,e){var t=e||"",r=n>0?"-":"+",i=Math.abs(n);return r+st(Math.floor(i/60),2)+t+st(i%60,2)}const ape=ope;var E5=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},T5=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const OI={p:T5,P:function(e,t){var o,r=e.match(/(P+)(p+)?/)||[],i=r[1],s=r[2];if(!s)return E5(e,t);switch(i){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",E5(i,t)).replace("{{time}}",T5(s,t))}};function Am(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}var upe=["D","DD"],dpe=["YY","YYYY"];function x5(n){return-1!==upe.indexOf(n)}function I5(n){return-1!==dpe.indexOf(n)}function Mm(n,e,t){if("YYYY"===n)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===n)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===n)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===n)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var hpe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function NI(n){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}const vpe={date:NI({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:NI({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:NI({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var bpe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function fh(n){return function(e,t){var i;if("formatting"===(null!=t&&t.context?String(t.context):"standalone")&&n.formattingValues){var s=n.defaultFormattingWidth||n.defaultWidth,o=null!=t&&t.width?String(t.width):s;i=n.formattingValues[o]||n.formattingValues[s]}else{var a=n.defaultWidth,l=null!=t&&t.width?String(t.width):n.defaultWidth;i=n.values[l]||n.values[a]}return i[n.argumentCallback?n.argumentCallback(e):e]}}const kpe={ordinalNumber:function(e,t){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:fh({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:fh({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:fh({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:fh({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:fh({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function ph(n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.width,i=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],s=e.match(i);if(!s)return null;var c,o=s[0],a=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(a)?Ope(a,function(d){return d.test(o)}):Ppe(a,function(d){return d.test(o)});c=n.valueCallback?n.valueCallback(l):l,c=t.valueCallback?t.valueCallback(c):c;var u=e.slice(o.length);return{value:c,rest:u}}}function Ppe(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function Ope(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}var qpe={ordinalNumber:function Npe(n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var i=r[0],s=e.match(n.parsePattern);if(!s)return null;var o=n.valueCallback?n.valueCallback(s[0]):s[0];o=t.valueCallback?t.valueCallback(o):o;var a=e.slice(i.length);return{value:o,rest:a}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:ph({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ph({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ph({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ph({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ph({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const D5={code:"en-US",formatDistance:function(e,t,r){var i,s=hpe[e];return i="string"==typeof s?s:1===t?s.one:s.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i},formatLong:vpe,formatRelative:function(e,t,r,i){return bpe[e]},localize:kpe,match:qpe,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Kpe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qpe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xpe=/^'([^]*?)'?$/,Zpe=/''/g,Jpe=/[a-zA-Z]/;function wo(n,e,t){var r,i,s,o,a,l,c,u,d,h,f,p,g,m,_,b,y,T;qe(2,arguments);var D=String(e),A=Oc(),P=null!==(r=null!==(i=t?.locale)&&void 0!==i?i:A.locale)&&void 0!==r?r:D5,j=Ye(null!==(s=null!==(o=null!==(a=null!==(l=t?.firstWeekContainsDate)&&void 0!==l?l:null==t||null===(c=t.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:A.firstWeekContainsDate)&&void 0!==o?o:null===(d=A.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==s?s:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=Ye(null!==(f=null!==(p=null!==(g=null!==(m=t?.weekStartsOn)&&void 0!==m?m:null==t||null===(_=t.locale)||void 0===_||null===(b=_.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:A.weekStartsOn)&&void 0!==p?p:null===(y=A.locale)||void 0===y||null===(T=y.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==f?f:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var z=ht(n);if(!Xfe(z))throw new RangeError("Invalid time value");var O=Am(z),k=y5(z,O),L={firstWeekContainsDate:j,weekStartsOn:Y,locale:P,_originalDate:z},ee=D.match(Qpe).map(function(ie){var x=ie[0];return"p"===x||"P"===x?(0,OI[x])(ie,P.formatLong):ie}).join("").match(Kpe).map(function(ie){if("''"===ie)return"'";var x=ie[0];if("'"===x)return ege(ie);var U=ape[x];if(U)return!(null!=t&&t.useAdditionalWeekYearTokens)&&I5(ie)&&Mm(ie,e,String(n)),!(null!=t&&t.useAdditionalDayOfYearTokens)&&x5(ie)&&Mm(ie,e,String(n)),U(k,ie,P.localize,L);if(x.match(Jpe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return ie}).join("");return ee}function ege(n){var e=n.match(Xpe);return e?e[1].replace(Zpe,"'"):n}function tge(n,e){if(null==n)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function km(n){return(km="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})(n)}function A5(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&RI(n,e)}function RI(n,e){return(RI=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function M5(n){var e=function rge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Pm(n);if(e){var s=Pm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return nge(this,i)}}function nge(n,e){return!e||"object"!==km(e)&&"function"!=typeof e?LI(n):e}function LI(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Pm(n){return(Pm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function FI(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function k5(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function VI(n,e,t){return e&&k5(n.prototype,e),t&&k5(n,t),n}function BI(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var P5=function(){function n(){FI(this,n),BI(this,"subPriority",0)}return VI(n,[{key:"validate",value:function(t,r){return!0}}]),n}(),sge=function(n){A5(t,n);var e=M5(t);function t(r,i,s,o,a){var l;return FI(this,t),(l=e.call(this)).value=r,l.validateValue=i,l.setValue=s,l.priority=o,a&&(l.subPriority=a),l}return VI(t,[{key:"validate",value:function(i,s){return this.validateValue(i,this.value,s)}},{key:"set",value:function(i,s,o){return this.setValue(i,s,this.value,o)}}]),t}(P5),oge=function(n){A5(t,n);var e=M5(t);function t(){var r;FI(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return BI(LI(r=e.call.apply(e,[this].concat(s))),"priority",10),BI(LI(r),"subPriority",-1),r}return VI(t,[{key:"set",value:function(i,s){if(s.timestampIsSet)return i;var o=new Date(0);return o.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),o.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),o}}]),t}(P5);function O5(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var Ze=function(){function n(){!function age(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n)}return function lge(n,e,t){e&&O5(n.prototype,e),t&&O5(n,t)}(n,[{key:"run",value:function(t,r,i,s){var o=this.parse(t,r,i,s);return o?{setter:new sge(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(t,r,i){return!0}}]),n}();function Om(n){return(Om="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})(n)}function cge(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function N5(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function $I(n,e){return($I=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function fge(n,e){return!e||"object"!==Om(e)&&"function"!=typeof e?UI(n):e}function UI(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Nm(n){return(Nm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function R5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var gge=function(n){!function dge(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&$I(n,e)}(t,n);var e=function hge(n){var e=function pge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Nm(n);if(e){var s=Nm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return fge(this,i)}}(t);function t(){var r;cge(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return R5(UI(r=e.call.apply(e,[this].concat(s))),"priority",140),R5(UI(r),"incompatibleTokens",["R","u","t","T"]),r}return function uge(n,e,t){e&&N5(n.prototype,e),t&&N5(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"G":case"GG":case"GGG":return o.era(i,{width:"abbreviated"})||o.era(i,{width:"narrow"});case"GGGGG":return o.era(i,{width:"narrow"});default:return o.era(i,{width:"wide"})||o.era(i,{width:"abbreviated"})||o.era(i,{width:"narrow"})}}},{key:"set",value:function(i,s,o){return s.era=o,i.setUTCFullYear(o,0,1),i.setUTCHours(0,0,0,0),i}}]),t}(Ze),zI=(Math.pow(10,8),36e5),Yt_month=/^(1[0-2]|0?\d)/,Yt_date=/^(3[0-1]|[0-2]?\d)/,Yt_dayOfYear=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Yt_week=/^(5[0-3]|[0-4]?\d)/,Yt_hour23h=/^(2[0-3]|[0-1]?\d)/,Yt_hour24h=/^(2[0-4]|[0-1]?\d)/,Yt_hour11h=/^(1[0-1]|0?\d)/,Yt_hour12h=/^(1[0-2]|0?\d)/,Yt_minute=/^[0-5]?\d/,Yt_second=/^[0-5]?\d/,Yt_singleDigit=/^\d/,Yt_twoDigits=/^\d{1,2}/,Yt_threeDigits=/^\d{1,3}/,Yt_fourDigits=/^\d{1,4}/,Yt_anyDigitsSigned=/^-?\d+/,Yt_singleDigitSigned=/^-?\d/,Yt_twoDigitsSigned=/^-?\d{1,2}/,Yt_threeDigitsSigned=/^-?\d{1,3}/,Yt_fourDigitsSigned=/^-?\d{1,4}/,rs_basicOptionalMinutes=/^([+-])(\d{2})(\d{2})?|Z/,rs_basic=/^([+-])(\d{2})(\d{2})|Z/,rs_basicOptionalSeconds=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,rs_extended=/^([+-])(\d{2}):(\d{2})|Z/,rs_extendedOptionalSeconds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Kt(n,e){return n&&{value:e(n.value),rest:n.rest}}function kt(n,e){var t=e.match(n);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function is(n,e){var t=e.match(n);if(!t)return null;if("Z"===t[0])return{value:0,rest:e.slice(1)};var r="+"===t[1]?1:-1,i=t[2]?parseInt(t[2],10):0,s=t[3]?parseInt(t[3],10):0,o=t[5]?parseInt(t[5],10):0;return{value:r*(i*zI+6e4*s+1e3*o),rest:e.slice(t[0].length)}}function F5(n){return kt(Yt_anyDigitsSigned,n)}function Bt(n,e){switch(n){case 1:return kt(Yt_singleDigit,e);case 2:return kt(Yt_twoDigits,e);case 3:return kt(Yt_threeDigits,e);case 4:return kt(Yt_fourDigits,e);default:return kt(new RegExp("^\\d{1,"+n+"}"),e)}}function Rm(n,e){switch(n){case 1:return kt(Yt_singleDigitSigned,e);case 2:return kt(Yt_twoDigitsSigned,e);case 3:return kt(Yt_threeDigitsSigned,e);case 4:return kt(Yt_fourDigitsSigned,e);default:return kt(new RegExp("^-?\\d{1,"+n+"}"),e)}}function jI(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function V5(n,e){var i,t=e>0,r=t?e:1-e;if(r<=50)i=n||100;else{var s=r+50;i=n+100*Math.floor(s/100)-(n>=s%100?100:0)}return t?i:1-i}function B5(n){return n%400==0||n%4==0&&n%100!=0}function Lm(n){return(Lm="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})(n)}function Cge(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function $5(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function GI(n,e){return(GI=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function xge(n,e){return!e||"object"!==Lm(e)&&"function"!=typeof e?WI(n):e}function WI(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Fm(n){return(Fm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function U5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Dge=function(n){!function Ege(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&GI(n,e)}(t,n);var e=function Tge(n){var e=function Ige(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Fm(n);if(e){var s=Fm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return xge(this,i)}}(t);function t(){var r;Cge(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return U5(WI(r=e.call.apply(e,[this].concat(s))),"priority",130),U5(WI(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return function Sge(n,e,t){e&&$5(n.prototype,e),t&&$5(n,t)}(t,[{key:"parse",value:function(i,s,o){var a=function(c){return{year:c,isTwoDigitYear:"yy"===s}};switch(s){case"y":return Kt(Bt(4,i),a);case"yo":return Kt(o.ordinalNumber(i,{unit:"year"}),a);default:return Kt(Bt(s.length,i),a)}}},{key:"validate",value:function(i,s){return s.isTwoDigitYear||s.year>0}},{key:"set",value:function(i,s,o){var a=i.getUTCFullYear();if(o.isTwoDigitYear){var l=V5(o.year,a);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}return i.setUTCFullYear("era"in s&&1!==s.era?1-o.year:o.year,0,1),i.setUTCHours(0,0,0,0),i}}]),t}(Ze);function Vm(n){return(Vm="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})(n)}function Age(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function H5(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function qI(n,e){return(qI=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function Oge(n,e){return!e||"object"!==Vm(e)&&"function"!=typeof e?YI(n):e}function YI(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Bm(n){return(Bm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function z5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Rge=function(n){!function kge(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&qI(n,e)}(t,n);var e=function Pge(n){var e=function Nge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Bm(n);if(e){var s=Bm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Oge(this,i)}}(t);function t(){var r;Age(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return z5(YI(r=e.call.apply(e,[this].concat(s))),"priority",130),z5(YI(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return function Mge(n,e,t){e&&H5(n.prototype,e),t&&H5(n,t)}(t,[{key:"parse",value:function(i,s,o){var a=function(c){return{year:c,isTwoDigitYear:"YY"===s}};switch(s){case"Y":return Kt(Bt(4,i),a);case"Yo":return Kt(o.ordinalNumber(i,{unit:"year"}),a);default:return Kt(Bt(s.length,i),a)}}},{key:"validate",value:function(i,s){return s.isTwoDigitYear||s.year>0}},{key:"set",value:function(i,s,o,a){var l=PI(i,a);if(o.isTwoDigitYear){var c=V5(o.year,l);return i.setUTCFullYear(c,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),La(i,a)}return i.setUTCFullYear("era"in s&&1!==s.era?1-o.year:o.year,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),La(i,a)}}]),t}(Ze);function $m(n){return($m="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})(n)}function Lge(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function j5(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function KI(n,e){return(KI=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function $ge(n,e){return!e||"object"!==$m(e)&&"function"!=typeof e?QI(n):e}function QI(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Um(n){return(Um=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function G5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Hge=function(n){!function Vge(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&KI(n,e)}(t,n);var e=function Bge(n){var e=function Uge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Um(n);if(e){var s=Um(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return $ge(this,i)}}(t);function t(){var r;Lge(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return G5(QI(r=e.call.apply(e,[this].concat(s))),"priority",130),G5(QI(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return function Fge(n,e,t){e&&j5(n.prototype,e),t&&j5(n,t)}(t,[{key:"parse",value:function(i,s){return Rm("R"===s?4:s.length,i)}},{key:"set",value:function(i,s,o){var a=new Date(0);return a.setUTCFullYear(o,0,4),a.setUTCHours(0,0,0,0),Pc(a)}}]),t}(Ze);function Hm(n){return(Hm="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})(n)}function zge(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function W5(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function XI(n,e){return(XI=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function qge(n,e){return!e||"object"!==Hm(e)&&"function"!=typeof e?ZI(n):e}function ZI(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function zm(n){return(zm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function q5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Kge=function(n){!function Gge(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&XI(n,e)}(t,n);var e=function Wge(n){var e=function Yge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=zm(n);if(e){var s=zm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return qge(this,i)}}(t);function t(){var r;zge(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return q5(ZI(r=e.call.apply(e,[this].concat(s))),"priority",130),q5(ZI(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return function jge(n,e,t){e&&W5(n.prototype,e),t&&W5(n,t)}(t,[{key:"parse",value:function(i,s){return Rm("u"===s?4:s.length,i)}},{key:"set",value:function(i,s,o){return i.setUTCFullYear(o,0,1),i.setUTCHours(0,0,0,0),i}}]),t}(Ze);function jm(n){return(jm="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})(n)}function Qge(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Y5(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function JI(n,e){return(JI=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function eme(n,e){return!e||"object"!==jm(e)&&"function"!=typeof e?eD(n):e}function eD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Gm(n){return(Gm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function K5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var nme=function(n){!function Zge(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&JI(n,e)}(t,n);var e=function Jge(n){var e=function tme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Gm(n);if(e){var s=Gm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return eme(this,i)}}(t);function t(){var r;Qge(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return K5(eD(r=e.call.apply(e,[this].concat(s))),"priority",120),K5(eD(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return function Xge(n,e,t){e&&Y5(n.prototype,e),t&&Y5(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"Q":case"QQ":return Bt(s.length,i);case"Qo":return o.ordinalNumber(i,{unit:"quarter"});case"QQQ":return o.quarter(i,{width:"abbreviated",context:"formatting"})||o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(i,{width:"narrow",context:"formatting"});default:return o.quarter(i,{width:"wide",context:"formatting"})||o.quarter(i,{width:"abbreviated",context:"formatting"})||o.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,s){return s>=1&&s<=4}},{key:"set",value:function(i,s,o){return i.setUTCMonth(3*(o-1),1),i.setUTCHours(0,0,0,0),i}}]),t}(Ze);function Wm(n){return(Wm="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})(n)}function rme(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Q5(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function tD(n,e){return(tD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function ame(n,e){return!e||"object"!==Wm(e)&&"function"!=typeof e?nD(n):e}function nD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function qm(n){return(qm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function X5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var cme=function(n){!function sme(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&tD(n,e)}(t,n);var e=function ome(n){var e=function lme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=qm(n);if(e){var s=qm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return ame(this,i)}}(t);function t(){var r;rme(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return X5(nD(r=e.call.apply(e,[this].concat(s))),"priority",120),X5(nD(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return function ime(n,e,t){e&&Q5(n.prototype,e),t&&Q5(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"q":case"qq":return Bt(s.length,i);case"qo":return o.ordinalNumber(i,{unit:"quarter"});case"qqq":return o.quarter(i,{width:"abbreviated",context:"standalone"})||o.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(i,{width:"narrow",context:"standalone"});default:return o.quarter(i,{width:"wide",context:"standalone"})||o.quarter(i,{width:"abbreviated",context:"standalone"})||o.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,s){return s>=1&&s<=4}},{key:"set",value:function(i,s,o){return i.setUTCMonth(3*(o-1),1),i.setUTCHours(0,0,0,0),i}}]),t}(Ze);function Ym(n){return(Ym="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})(n)}function ume(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Z5(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function rD(n,e){return(rD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function pme(n,e){return!e||"object"!==Ym(e)&&"function"!=typeof e?iD(n):e}function iD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Km(n){return(Km=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function J5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var mme=function(n){!function hme(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&rD(n,e)}(t,n);var e=function fme(n){var e=function gme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Km(n);if(e){var s=Km(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return pme(this,i)}}(t);function t(){var r;ume(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return J5(iD(r=e.call.apply(e,[this].concat(s))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),J5(iD(r),"priority",110),r}return function dme(n,e,t){e&&Z5(n.prototype,e),t&&Z5(n,t)}(t,[{key:"parse",value:function(i,s,o){var a=function(c){return c-1};switch(s){case"M":return Kt(kt(Yt_month,i),a);case"MM":return Kt(Bt(2,i),a);case"Mo":return Kt(o.ordinalNumber(i,{unit:"month"}),a);case"MMM":return o.month(i,{width:"abbreviated",context:"formatting"})||o.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(i,{width:"narrow",context:"formatting"});default:return o.month(i,{width:"wide",context:"formatting"})||o.month(i,{width:"abbreviated",context:"formatting"})||o.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,s){return s>=0&&s<=11}},{key:"set",value:function(i,s,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),t}(Ze);function Qm(n){return(Qm="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})(n)}function yme(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function e8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function sD(n,e){return(sD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function wme(n,e){return!e||"object"!==Qm(e)&&"function"!=typeof e?oD(n):e}function oD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Xm(n){return(Xm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function t8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Sme=function(n){!function vme(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&sD(n,e)}(t,n);var e=function bme(n){var e=function Cme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Xm(n);if(e){var s=Xm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return wme(this,i)}}(t);function t(){var r;yme(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return t8(oD(r=e.call.apply(e,[this].concat(s))),"priority",110),t8(oD(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return function _me(n,e,t){e&&e8(n.prototype,e),t&&e8(n,t)}(t,[{key:"parse",value:function(i,s,o){var a=function(c){return c-1};switch(s){case"L":return Kt(kt(Yt_month,i),a);case"LL":return Kt(Bt(2,i),a);case"Lo":return Kt(o.ordinalNumber(i,{unit:"month"}),a);case"LLL":return o.month(i,{width:"abbreviated",context:"standalone"})||o.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(i,{width:"narrow",context:"standalone"});default:return o.month(i,{width:"wide",context:"standalone"})||o.month(i,{width:"abbreviated",context:"standalone"})||o.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,s){return s>=0&&s<=11}},{key:"set",value:function(i,s,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),t}(Ze);function Zm(n){return(Zm="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})(n)}function Tme(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function n8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function aD(n,e){return(aD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function Ame(n,e){return!e||"object"!==Zm(e)&&"function"!=typeof e?lD(n):e}function lD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Jm(n){return(Jm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function r8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var kme=function(n){!function Ime(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&aD(n,e)}(t,n);var e=function Dme(n){var e=function Mme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Jm(n);if(e){var s=Jm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Ame(this,i)}}(t);function t(){var r;Tme(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return r8(lD(r=e.call.apply(e,[this].concat(s))),"priority",100),r8(lD(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return function xme(n,e,t){e&&n8(n.prototype,e),t&&n8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"w":return kt(Yt_week,i);case"wo":return o.ordinalNumber(i,{unit:"week"});default:return Bt(s.length,i)}}},{key:"validate",value:function(i,s){return s>=1&&s<=53}},{key:"set",value:function(i,s,o,a){return La(function Eme(n,e,t){qe(2,arguments);var r=ht(n),i=Ye(e),s=w5(r,t)-i;return r.setUTCDate(r.getUTCDate()-7*s),r}(i,o,a),a)}}]),t}(Ze);function ey(n){return(ey="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})(n)}function Ome(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function i8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function cD(n,e){return(cD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function Fme(n,e){return!e||"object"!==ey(e)&&"function"!=typeof e?uD(n):e}function uD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ty(n){return(ty=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function s8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Bme=function(n){!function Rme(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&cD(n,e)}(t,n);var e=function Lme(n){var e=function Vme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=ty(n);if(e){var s=ty(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Fme(this,i)}}(t);function t(){var r;Ome(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return s8(uD(r=e.call.apply(e,[this].concat(s))),"priority",100),s8(uD(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return function Nme(n,e,t){e&&i8(n.prototype,e),t&&i8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"I":return kt(Yt_week,i);case"Io":return o.ordinalNumber(i,{unit:"week"});default:return Bt(s.length,i)}}},{key:"validate",value:function(i,s){return s>=1&&s<=53}},{key:"set",value:function(i,s,o){return Pc(function Pme(n,e){qe(2,arguments);var t=ht(n),r=Ye(e),i=v5(t)-r;return t.setUTCDate(t.getUTCDate()-7*i),t}(i,o))}}]),t}(Ze);function ny(n){return(ny="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})(n)}function $me(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function o8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function dD(n,e){return(dD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function jme(n,e){return!e||"object"!==ny(e)&&"function"!=typeof e?ry(n):e}function ry(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function iy(n){return(iy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function hD(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Wme=[31,28,31,30,31,30,31,31,30,31,30,31],qme=[31,29,31,30,31,30,31,31,30,31,30,31],Yme=function(n){!function Hme(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&dD(n,e)}(t,n);var e=function zme(n){var e=function Gme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=iy(n);if(e){var s=iy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return jme(this,i)}}(t);function t(){var r;$me(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return hD(ry(r=e.call.apply(e,[this].concat(s))),"priority",90),hD(ry(r),"subPriority",1),hD(ry(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return function Ume(n,e,t){e&&o8(n.prototype,e),t&&o8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"d":return kt(Yt_date,i);case"do":return o.ordinalNumber(i,{unit:"date"});default:return Bt(s.length,i)}}},{key:"validate",value:function(i,s){var a=B5(i.getUTCFullYear()),l=i.getUTCMonth();return a?s>=1&&s<=qme[l]:s>=1&&s<=Wme[l]}},{key:"set",value:function(i,s,o){return i.setUTCDate(o),i.setUTCHours(0,0,0,0),i}}]),t}(Ze);function sy(n){return(sy="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})(n)}function Kme(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function a8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function fD(n,e){return(fD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function Jme(n,e){return!e||"object"!==sy(e)&&"function"!=typeof e?oy(n):e}function oy(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ay(n){return(ay=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function pD(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var tye=function(n){!function Xme(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&fD(n,e)}(t,n);var e=function Zme(n){var e=function eye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=ay(n);if(e){var s=ay(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Jme(this,i)}}(t);function t(){var r;Kme(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return pD(oy(r=e.call.apply(e,[this].concat(s))),"priority",90),pD(oy(r),"subpriority",1),pD(oy(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return function Qme(n,e,t){e&&a8(n.prototype,e),t&&a8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"D":case"DD":return kt(Yt_dayOfYear,i);case"Do":return o.ordinalNumber(i,{unit:"date"});default:return Bt(s.length,i)}}},{key:"validate",value:function(i,s){return B5(i.getUTCFullYear())?s>=1&&s<=366:s>=1&&s<=365}},{key:"set",value:function(i,s,o){return i.setUTCMonth(0,o),i.setUTCHours(0,0,0,0),i}}]),t}(Ze);function gD(n,e,t){var r,i,s,o,a,l,c,u;qe(2,arguments);var d=Oc(),h=Ye(null!==(r=null!==(i=null!==(s=null!==(o=t?.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==s?s:d.weekStartsOn)&&void 0!==i?i:null===(c=d.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==r?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ht(n),p=Ye(e),g=f.getUTCDay(),m=p%7,_=(m+7)%7,b=(_<h?7:0)+p-g;return f.setUTCDate(f.getUTCDate()+b),f}function ly(n){return(ly="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})(n)}function nye(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function l8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function mD(n,e){return(mD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function oye(n,e){return!e||"object"!==ly(e)&&"function"!=typeof e?yD(n):e}function yD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function cy(n){return(cy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function c8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var lye=function(n){!function iye(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&mD(n,e)}(t,n);var e=function sye(n){var e=function aye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=cy(n);if(e){var s=cy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return oye(this,i)}}(t);function t(){var r;nye(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return c8(yD(r=e.call.apply(e,[this].concat(s))),"priority",90),c8(yD(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return function rye(n,e,t){e&&l8(n.prototype,e),t&&l8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"E":case"EE":case"EEE":return o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});default:return o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,s){return s>=0&&s<=6}},{key:"set",value:function(i,s,o,a){return(i=gD(i,o,a)).setUTCHours(0,0,0,0),i}}]),t}(Ze);function uy(n){return(uy="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})(n)}function cye(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function u8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function _D(n,e){return(_D=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function fye(n,e){return!e||"object"!==uy(e)&&"function"!=typeof e?vD(n):e}function vD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function dy(n){return(dy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function d8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var gye=function(n){!function dye(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&_D(n,e)}(t,n);var e=function hye(n){var e=function pye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=dy(n);if(e){var s=dy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return fye(this,i)}}(t);function t(){var r;cye(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return d8(vD(r=e.call.apply(e,[this].concat(s))),"priority",90),d8(vD(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return function uye(n,e,t){e&&u8(n.prototype,e),t&&u8(n,t)}(t,[{key:"parse",value:function(i,s,o,a){var l=function(u){var d=7*Math.floor((u-1)/7);return(u+a.weekStartsOn+6)%7+d};switch(s){case"e":case"ee":return Kt(Bt(s.length,i),l);case"eo":return Kt(o.ordinalNumber(i,{unit:"day"}),l);case"eee":return o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"eeeee":return o.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});default:return o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,s){return s>=0&&s<=6}},{key:"set",value:function(i,s,o,a){return(i=gD(i,o,a)).setUTCHours(0,0,0,0),i}}]),t}(Ze);function hy(n){return(hy="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})(n)}function mye(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function h8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function bD(n,e){return(bD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function bye(n,e){return!e||"object"!==hy(e)&&"function"!=typeof e?wD(n):e}function wD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function fy(n){return(fy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function f8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Cye=function(n){!function _ye(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&bD(n,e)}(t,n);var e=function vye(n){var e=function wye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=fy(n);if(e){var s=fy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return bye(this,i)}}(t);function t(){var r;mye(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return f8(wD(r=e.call.apply(e,[this].concat(s))),"priority",90),f8(wD(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return function yye(n,e,t){e&&h8(n.prototype,e),t&&h8(n,t)}(t,[{key:"parse",value:function(i,s,o,a){var l=function(u){var d=7*Math.floor((u-1)/7);return(u+a.weekStartsOn+6)%7+d};switch(s){case"c":case"cc":return Kt(Bt(s.length,i),l);case"co":return Kt(o.ordinalNumber(i,{unit:"day"}),l);case"ccc":return o.day(i,{width:"abbreviated",context:"standalone"})||o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"});case"ccccc":return o.day(i,{width:"narrow",context:"standalone"});case"cccccc":return o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"});default:return o.day(i,{width:"wide",context:"standalone"})||o.day(i,{width:"abbreviated",context:"standalone"})||o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,s){return s>=0&&s<=6}},{key:"set",value:function(i,s,o,a){return(i=gD(i,o,a)).setUTCHours(0,0,0,0),i}}]),t}(Ze);function py(n){return(py="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})(n)}function Eye(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function p8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function CD(n,e){return(CD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function Dye(n,e){return!e||"object"!==py(e)&&"function"!=typeof e?SD(n):e}function SD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function gy(n){return(gy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function g8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Mye=function(n){!function xye(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&CD(n,e)}(t,n);var e=function Iye(n){var e=function Aye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=gy(n);if(e){var s=gy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Dye(this,i)}}(t);function t(){var r;Eye(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return g8(SD(r=e.call.apply(e,[this].concat(s))),"priority",90),g8(SD(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return function Tye(n,e,t){e&&p8(n.prototype,e),t&&p8(n,t)}(t,[{key:"parse",value:function(i,s,o){var a=function(c){return 0===c?7:c};switch(s){case"i":case"ii":return Bt(s.length,i);case"io":return o.ordinalNumber(i,{unit:"day"});case"iii":return Kt(o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),a);case"iiiii":return Kt(o.day(i,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Kt(o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),a);default:return Kt(o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),a)}}},{key:"validate",value:function(i,s){return s>=1&&s<=7}},{key:"set",value:function(i,s,o){return i=function Sye(n,e){qe(2,arguments);var t=Ye(e);t%7==0&&(t-=7);var r=1,i=ht(n),s=i.getUTCDay(),l=((t%7+7)%7<r?7:0)+t-s;return i.setUTCDate(i.getUTCDate()+l),i}(i,o),i.setUTCHours(0,0,0,0),i}}]),t}(Ze);function my(n){return(my="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})(n)}function kye(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function m8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function ED(n,e){return(ED=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function Rye(n,e){return!e||"object"!==my(e)&&"function"!=typeof e?TD(n):e}function TD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function yy(n){return(yy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function y8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Fye=function(n){!function Oye(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&ED(n,e)}(t,n);var e=function Nye(n){var e=function Lye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=yy(n);if(e){var s=yy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Rye(this,i)}}(t);function t(){var r;kye(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return y8(TD(r=e.call.apply(e,[this].concat(s))),"priority",80),y8(TD(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return function Pye(n,e,t){e&&m8(n.prototype,e),t&&m8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"a":case"aa":case"aaa":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(i,{width:"narrow",context:"formatting"});default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,s,o){return i.setUTCHours(jI(o),0,0,0),i}}]),t}(Ze);function _y(n){return(_y="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})(n)}function Vye(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function _8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function xD(n,e){return(xD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function Hye(n,e){return!e||"object"!==_y(e)&&"function"!=typeof e?ID(n):e}function ID(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function vy(n){return(vy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function v8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var jye=function(n){!function $ye(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&xD(n,e)}(t,n);var e=function Uye(n){var e=function zye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=vy(n);if(e){var s=vy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Hye(this,i)}}(t);function t(){var r;Vye(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return v8(ID(r=e.call.apply(e,[this].concat(s))),"priority",80),v8(ID(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return function Bye(n,e,t){e&&_8(n.prototype,e),t&&_8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"b":case"bb":case"bbb":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(i,{width:"narrow",context:"formatting"});default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,s,o){return i.setUTCHours(jI(o),0,0,0),i}}]),t}(Ze);function by(n){return(by="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})(n)}function Gye(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function b8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function DD(n,e){return(DD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function Kye(n,e){return!e||"object"!==by(e)&&"function"!=typeof e?AD(n):e}function AD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function wy(n){return(wy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function w8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Xye=function(n){!function qye(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&DD(n,e)}(t,n);var e=function Yye(n){var e=function Qye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=wy(n);if(e){var s=wy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Kye(this,i)}}(t);function t(){var r;Gye(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return w8(AD(r=e.call.apply(e,[this].concat(s))),"priority",80),w8(AD(r),"incompatibleTokens",["a","b","t","T"]),r}return function Wye(n,e,t){e&&b8(n.prototype,e),t&&b8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"B":case"BB":case"BBB":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(i,{width:"narrow",context:"formatting"});default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,s,o){return i.setUTCHours(jI(o),0,0,0),i}}]),t}(Ze);function Cy(n){return(Cy="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})(n)}function Zye(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function C8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function MD(n,e){return(MD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function n_e(n,e){return!e||"object"!==Cy(e)&&"function"!=typeof e?kD(n):e}function kD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Sy(n){return(Sy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function S8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var i_e=function(n){!function e_e(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&MD(n,e)}(t,n);var e=function t_e(n){var e=function r_e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Sy(n);if(e){var s=Sy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return n_e(this,i)}}(t);function t(){var r;Zye(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return S8(kD(r=e.call.apply(e,[this].concat(s))),"priority",70),S8(kD(r),"incompatibleTokens",["H","K","k","t","T"]),r}return function Jye(n,e,t){e&&C8(n.prototype,e),t&&C8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"h":return kt(Yt_hour12h,i);case"ho":return o.ordinalNumber(i,{unit:"hour"});default:return Bt(s.length,i)}}},{key:"validate",value:function(i,s){return s>=1&&s<=12}},{key:"set",value:function(i,s,o){var a=i.getUTCHours()>=12;return i.setUTCHours(a&&o<12?o+12:a||12!==o?o:0,0,0,0),i}}]),t}(Ze);function Ey(n){return(Ey="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})(n)}function s_e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function E8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function PD(n,e){return(PD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function c_e(n,e){return!e||"object"!==Ey(e)&&"function"!=typeof e?OD(n):e}function OD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Ty(n){return(Ty=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function T8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var d_e=function(n){!function a_e(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&PD(n,e)}(t,n);var e=function l_e(n){var e=function u_e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Ty(n);if(e){var s=Ty(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return c_e(this,i)}}(t);function t(){var r;s_e(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return T8(OD(r=e.call.apply(e,[this].concat(s))),"priority",70),T8(OD(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return function o_e(n,e,t){e&&E8(n.prototype,e),t&&E8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"H":return kt(Yt_hour23h,i);case"Ho":return o.ordinalNumber(i,{unit:"hour"});default:return Bt(s.length,i)}}},{key:"validate",value:function(i,s){return s>=0&&s<=23}},{key:"set",value:function(i,s,o){return i.setUTCHours(o,0,0,0),i}}]),t}(Ze);function xy(n){return(xy="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})(n)}function h_e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function x8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function ND(n,e){return(ND=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function m_e(n,e){return!e||"object"!==xy(e)&&"function"!=typeof e?RD(n):e}function RD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Iy(n){return(Iy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function I8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var __e=function(n){!function p_e(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&ND(n,e)}(t,n);var e=function g_e(n){var e=function y_e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Iy(n);if(e){var s=Iy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return m_e(this,i)}}(t);function t(){var r;h_e(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return I8(RD(r=e.call.apply(e,[this].concat(s))),"priority",70),I8(RD(r),"incompatibleTokens",["h","H","k","t","T"]),r}return function f_e(n,e,t){e&&x8(n.prototype,e),t&&x8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"K":return kt(Yt_hour11h,i);case"Ko":return o.ordinalNumber(i,{unit:"hour"});default:return Bt(s.length,i)}}},{key:"validate",value:function(i,s){return s>=0&&s<=11}},{key:"set",value:function(i,s,o){var a=i.getUTCHours()>=12;return i.setUTCHours(a&&o<12?o+12:o,0,0,0),i}}]),t}(Ze);function Dy(n){return(Dy="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})(n)}function v_e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function D8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function LD(n,e){return(LD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function S_e(n,e){return!e||"object"!==Dy(e)&&"function"!=typeof e?FD(n):e}function FD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Ay(n){return(Ay=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function A8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var T_e=function(n){!function w_e(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&LD(n,e)}(t,n);var e=function C_e(n){var e=function E_e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Ay(n);if(e){var s=Ay(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return S_e(this,i)}}(t);function t(){var r;v_e(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return A8(FD(r=e.call.apply(e,[this].concat(s))),"priority",70),A8(FD(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return function b_e(n,e,t){e&&D8(n.prototype,e),t&&D8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"k":return kt(Yt_hour24h,i);case"ko":return o.ordinalNumber(i,{unit:"hour"});default:return Bt(s.length,i)}}},{key:"validate",value:function(i,s){return s>=1&&s<=24}},{key:"set",value:function(i,s,o){return i.setUTCHours(o<=24?o%24:o,0,0,0),i}}]),t}(Ze);function My(n){return(My="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})(n)}function x_e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function M8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function VD(n,e){return(VD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function M_e(n,e){return!e||"object"!==My(e)&&"function"!=typeof e?BD(n):e}function BD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ky(n){return(ky=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function k8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var P_e=function(n){!function D_e(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&VD(n,e)}(t,n);var e=function A_e(n){var e=function k_e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=ky(n);if(e){var s=ky(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return M_e(this,i)}}(t);function t(){var r;x_e(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return k8(BD(r=e.call.apply(e,[this].concat(s))),"priority",60),k8(BD(r),"incompatibleTokens",["t","T"]),r}return function I_e(n,e,t){e&&M8(n.prototype,e),t&&M8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"m":return kt(Yt_minute,i);case"mo":return o.ordinalNumber(i,{unit:"minute"});default:return Bt(s.length,i)}}},{key:"validate",value:function(i,s){return s>=0&&s<=59}},{key:"set",value:function(i,s,o){return i.setUTCMinutes(o,0,0),i}}]),t}(Ze);function Py(n){return(Py="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})(n)}function O_e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function P8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function $D(n,e){return($D=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function F_e(n,e){return!e||"object"!==Py(e)&&"function"!=typeof e?UD(n):e}function UD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Oy(n){return(Oy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function O8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var B_e=function(n){!function R_e(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&$D(n,e)}(t,n);var e=function L_e(n){var e=function V_e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Oy(n);if(e){var s=Oy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return F_e(this,i)}}(t);function t(){var r;O_e(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return O8(UD(r=e.call.apply(e,[this].concat(s))),"priority",50),O8(UD(r),"incompatibleTokens",["t","T"]),r}return function N_e(n,e,t){e&&P8(n.prototype,e),t&&P8(n,t)}(t,[{key:"parse",value:function(i,s,o){switch(s){case"s":return kt(Yt_second,i);case"so":return o.ordinalNumber(i,{unit:"second"});default:return Bt(s.length,i)}}},{key:"validate",value:function(i,s){return s>=0&&s<=59}},{key:"set",value:function(i,s,o){return i.setUTCSeconds(o,0),i}}]),t}(Ze);function Ny(n){return(Ny="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})(n)}function $_e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function N8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function HD(n,e){return(HD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function j_e(n,e){return!e||"object"!==Ny(e)&&"function"!=typeof e?zD(n):e}function zD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Ry(n){return(Ry=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function R8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var W_e=function(n){!function H_e(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&HD(n,e)}(t,n);var e=function z_e(n){var e=function G_e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Ry(n);if(e){var s=Ry(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return j_e(this,i)}}(t);function t(){var r;$_e(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return R8(zD(r=e.call.apply(e,[this].concat(s))),"priority",30),R8(zD(r),"incompatibleTokens",["t","T"]),r}return function U_e(n,e,t){e&&N8(n.prototype,e),t&&N8(n,t)}(t,[{key:"parse",value:function(i,s){return Kt(Bt(s.length,i),function(l){return Math.floor(l*Math.pow(10,3-s.length))})}},{key:"set",value:function(i,s,o){return i.setUTCMilliseconds(o),i}}]),t}(Ze);function Ly(n){return(Ly="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})(n)}function q_e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function L8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function jD(n,e){return(jD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function X_e(n,e){return!e||"object"!==Ly(e)&&"function"!=typeof e?GD(n):e}function GD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Fy(n){return(Fy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function F8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var J_e=function(n){!function K_e(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&jD(n,e)}(t,n);var e=function Q_e(n){var e=function Z_e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Fy(n);if(e){var s=Fy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return X_e(this,i)}}(t);function t(){var r;q_e(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return F8(GD(r=e.call.apply(e,[this].concat(s))),"priority",10),F8(GD(r),"incompatibleTokens",["t","T","x"]),r}return function Y_e(n,e,t){e&&L8(n.prototype,e),t&&L8(n,t)}(t,[{key:"parse",value:function(i,s){switch(s){case"X":return is(rs_basicOptionalMinutes,i);case"XX":return is(rs_basic,i);case"XXXX":return is(rs_basicOptionalSeconds,i);case"XXXXX":return is(rs_extendedOptionalSeconds,i);default:return is(rs_extended,i)}}},{key:"set",value:function(i,s,o){return s.timestampIsSet?i:new Date(i.getTime()-o)}}]),t}(Ze);function Vy(n){return(Vy="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})(n)}function eve(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function V8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function WD(n,e){return(WD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function ive(n,e){return!e||"object"!==Vy(e)&&"function"!=typeof e?qD(n):e}function qD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function By(n){return(By=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function B8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var ove=function(n){!function nve(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&WD(n,e)}(t,n);var e=function rve(n){var e=function sve(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=By(n);if(e){var s=By(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return ive(this,i)}}(t);function t(){var r;eve(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return B8(qD(r=e.call.apply(e,[this].concat(s))),"priority",10),B8(qD(r),"incompatibleTokens",["t","T","X"]),r}return function tve(n,e,t){e&&V8(n.prototype,e),t&&V8(n,t)}(t,[{key:"parse",value:function(i,s){switch(s){case"x":return is(rs_basicOptionalMinutes,i);case"xx":return is(rs_basic,i);case"xxxx":return is(rs_basicOptionalSeconds,i);case"xxxxx":return is(rs_extendedOptionalSeconds,i);default:return is(rs_extended,i)}}},{key:"set",value:function(i,s,o){return s.timestampIsSet?i:new Date(i.getTime()-o)}}]),t}(Ze);function $y(n){return($y="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})(n)}function ave(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function $8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function YD(n,e){return(YD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function dve(n,e){return!e||"object"!==$y(e)&&"function"!=typeof e?KD(n):e}function KD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Uy(n){return(Uy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function U8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var fve=function(n){!function cve(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&YD(n,e)}(t,n);var e=function uve(n){var e=function hve(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Uy(n);if(e){var s=Uy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return dve(this,i)}}(t);function t(){var r;ave(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return U8(KD(r=e.call.apply(e,[this].concat(s))),"priority",40),U8(KD(r),"incompatibleTokens","*"),r}return function lve(n,e,t){e&&$8(n.prototype,e),t&&$8(n,t)}(t,[{key:"parse",value:function(i){return F5(i)}},{key:"set",value:function(i,s,o){return[new Date(1e3*o),{timestampIsSet:!0}]}}]),t}(Ze);function Hy(n){return(Hy="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})(n)}function pve(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function H8(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function QD(n,e){return(QD=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,e)}function _ve(n,e){return!e||"object"!==Hy(e)&&"function"!=typeof e?XD(n):e}function XD(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function zy(n){return(zy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function z8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var bve=function(n){!function mve(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&QD(n,e)}(t,n);var e=function yve(n){var e=function vve(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=zy(n);if(e){var s=zy(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return _ve(this,i)}}(t);function t(){var r;pve(this,t);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return z8(XD(r=e.call.apply(e,[this].concat(s))),"priority",20),z8(XD(r),"incompatibleTokens","*"),r}return function gve(n,e,t){e&&H8(n.prototype,e),t&&H8(n,t)}(t,[{key:"parse",value:function(i){return F5(i)}},{key:"set",value:function(i,s,o){return[new Date(o),{timestampIsSet:!0}]}}]),t}(Ze),wve={G:new gge,y:new Dge,Y:new Rge,R:new Hge,u:new Kge,Q:new nme,q:new cme,M:new mme,L:new Sme,w:new kme,I:new Bme,d:new Yme,D:new tye,E:new lye,e:new gye,c:new Cye,i:new Mye,a:new Fye,b:new jye,B:new Xye,h:new i_e,H:new d_e,K:new __e,k:new T_e,m:new P_e,s:new B_e,S:new W_e,X:new J_e,x:new ove,t:new fve,T:new bve};function jy(n){return(jy="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})(n)}function j8(n,e){var t;if(typeof Symbol>"u"||null==n[Symbol.iterator]){if(Array.isArray(n)||(t=function Cve(n,e){if(n){if("string"==typeof n)return G8(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if("Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return G8(n,e)}}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(c){throw c},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){t=n[Symbol.iterator]()},n:function(){var c=t.next();return s=c.done,c},e:function(c){o=!0,a=c},f:function(){try{!s&&null!=t.return&&t.return()}finally{if(o)throw a}}}}function G8(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var Sve=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Eve=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tve=/^'([^]*?)'?$/,xve=/''/g,Ive=/\S/,Dve=/[a-zA-Z]/;function ZD(n,e,t,r){var i,s,o,a,l,c,u,d,h,f,p,g,m,_,b,y,T,D;qe(3,arguments);var A=String(n),P=String(e),j=Oc(),Y=null!==(i=null!==(s=r?.locale)&&void 0!==s?s:j.locale)&&void 0!==i?i:D5;if(!Y.match)throw new RangeError("locale must contain match property");var z=Ye(null!==(o=null!==(a=null!==(l=null!==(c=r?.firstWeekContainsDate)&&void 0!==c?c:null==r||null===(u=r.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:j.firstWeekContainsDate)&&void 0!==a?a:null===(h=j.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==o?o:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=Ye(null!==(p=null!==(g=null!==(m=null!==(_=r?.weekStartsOn)&&void 0!==_?_:null==r||null===(b=r.locale)||void 0===b||null===(y=b.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:j.weekStartsOn)&&void 0!==g?g:null===(T=j.locale)||void 0===T||null===(D=T.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==p?p:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===P)return""===A?ht(t):new Date(NaN);var U,k={firstWeekContainsDate:z,weekStartsOn:O,locale:Y},L=[new oge],ee=P.match(Eve).map(function(at){var Le=at[0];return Le in OI?(0,OI[Le])(at,Y.formatLong):at}).join("").match(Sve),ie=[],x=j8(ee);try{var H=function(){var Le=U.value;!(null!=r&&r.useAdditionalWeekYearTokens)&&I5(Le)&&Mm(Le,P,n),(null==r||!r.useAdditionalDayOfYearTokens)&&x5(Le)&&Mm(Le,P,n);var rn=Le[0],Gr=wve[rn];if(Gr){var za=Gr.incompatibleTokens;if(Array.isArray(za)){var $c=ie.find(function(Uc){return za.includes(Uc.token)||Uc.token===rn});if($c)throw new RangeError("The format string mustn't contain `".concat($c.fullToken,"` and `").concat(Le,"` at the same time"))}else if("*"===Gr.incompatibleTokens&&ie.length>0)throw new RangeError("The format string mustn't contain `".concat(Le,"` and any other token at the same time"));ie.push({token:rn,fullToken:Le});var ja=Gr.run(A,Le,Y.match,k);if(!ja)return{v:new Date(NaN)};L.push(ja.setter),A=ja.rest}else{if(rn.match(Dve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+rn+"`");if("''"===Le?Le="'":"'"===rn&&(Le=Ave(Le)),0!==A.indexOf(Le))return{v:new Date(NaN)};A=A.slice(Le.length)}};for(x.s();!(U=x.n()).done;){var se=H();if("object"===jy(se))return se.v}}catch(at){x.e(at)}finally{x.f()}if(A.length>0&&Ive.test(A))return new Date(NaN);var me=L.map(function(at){return at.priority}).sort(function(at,Le){return Le-at}).filter(function(at,Le,rn){return rn.indexOf(at)===Le}).map(function(at){return L.filter(function(Le){return Le.priority===at}).sort(function(Le,rn){return rn.subPriority-Le.subPriority})}).map(function(at){return at[0]}),ot=ht(t);if(isNaN(ot.getTime()))return new Date(NaN);var ur,ft=y5(ot,Am(ot)),Kn={},Ke=j8(me);try{for(Ke.s();!(ur=Ke.n()).done;){var pi=ur.value;if(!pi.validate(ft,k))return new Date(NaN);var It=pi.set(ft,Kn,k);Array.isArray(It)?(ft=It[0],tge(Kn,It[1])):ft=It}}catch(at){Ke.e(at)}finally{Ke.f()}return ft}function Ave(n){return n.match(Tve)[1].replace(xve,"'")}function Gy(n,e){qe(2,arguments);var t=ht(n),r=ht(e);return t.getTime()<r.getTime()}function JD(n,e){qe(2,arguments);var t=ht(n),r=ht(e);return t.getTime()>r.getTime()}let ss=(()=>{class n{constructor(){this.devMode=!1,this.logMode=!1}setDebugMode(t){this.logMode=t}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const os=Object.create(null);os.open="0",os.close="1",os.ping="2",os.pong="3",os.message="4",os.upgrade="5",os.noop="6";const Wy=Object.create(null);Object.keys(os).forEach(n=>{Wy[os[n]]=n});const Mve={type:"error",data:"parser error"},kve="function"==typeof Blob||typeof Blob<"u"&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),Pve="function"==typeof ArrayBuffer,W8=(n,e)=>{const t=new FileReader;return t.onload=function(){const r=t.result.split(",")[1];e("b"+r)},t.readAsDataURL(n)},q8=({type:n,data:e},t,r)=>kve&&e instanceof Blob?t?r(e):W8(e,r):Pve&&(e instanceof ArrayBuffer||(n=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer)(e))?t?r(e):W8(new Blob([e]),r):r(os[n]+(e||"")),Rc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gh=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Rc.length;n++)gh[Rc.charCodeAt(n)]=n;const Lve="function"==typeof ArrayBuffer,Vve=(n,e)=>{if(Lve){const t=(n=>{let r,s,o,a,l,e=.75*n.length,t=n.length,i=0;"="===n[n.length-1]&&(e--,"="===n[n.length-2]&&e--);const c=new ArrayBuffer(e),u=new Uint8Array(c);for(r=0;r<t;r+=4)s=gh[n.charCodeAt(r)],o=gh[n.charCodeAt(r+1)],a=gh[n.charCodeAt(r+2)],l=gh[n.charCodeAt(r+3)],u[i++]=s<<2|o>>4,u[i++]=(15&o)<<4|a>>2,u[i++]=(3&a)<<6|63&l;return c})(n);return Y8(t,e)}return{base64:!0,data:n}},Y8=(n,e)=>"blob"===e&&n instanceof ArrayBuffer?new Blob([n]):n,K8=(n,e)=>{if("string"!=typeof n)return{type:"message",data:Y8(n,e)};const t=n.charAt(0);return"b"===t?{type:"message",data:Vve(n.substring(1),e)}:Wy[t]?n.length>1?{type:Wy[t],data:n.substring(1)}:{type:Wy[t]}:Mve},Q8=String.fromCharCode(30);function nn(n){if(n)return function Uve(n){for(var e in nn.prototype)n[e]=nn.prototype[e];return n}(n)}nn.prototype.on=nn.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this},nn.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this},nn.prototype.off=nn.prototype.removeListener=nn.prototype.removeAllListeners=nn.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(1==arguments.length)return delete this._callbacks["$"+n],this;for(var r,i=0;i<t.length;i++)if((r=t[i])===e||r.fn===e){t.splice(i,1);break}return 0===t.length&&delete this._callbacks["$"+n],this},nn.prototype.emitReserved=nn.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(t){r=0;for(var i=(t=t.slice(0)).length;r<i;++r)t[r].apply(this,e)}return this},nn.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},nn.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Co=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function Z8(n,...e){return e.reduce((t,r)=>(n.hasOwnProperty(r)&&(t[r]=n[r]),t),{})}const Hve=setTimeout,zve=clearTimeout;function qy(n,e){e.useNativeTimers?(n.setTimeoutFn=Hve.bind(Co),n.clearTimeoutFn=zve.bind(Co)):(n.setTimeoutFn=setTimeout.bind(Co),n.clearTimeoutFn=clearTimeout.bind(Co))}function Gve(n){return"string"==typeof n?function Wve(n){let e=0,t=0;for(let r=0,i=n.length;r<i;r++)e=n.charCodeAt(r),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(r++,t+=4);return t}(n):Math.ceil(1.33*(n.byteLength||n.size))}class qve extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class J8 extends nn{constructor(e){super(),this.writable=!1,qy(this,e),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new qve(e,t,r)),this}open(){return("closed"===this.readyState||""===this.readyState)&&(this.readyState="opening",this.doOpen()),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=K8(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}}const eU="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),tU={};let rU,nU=0,So=0;function iU(n){let e="";do{e=eU[n%64]+e,n=Math.floor(n/64)}while(n>0);return e}function sU(){const n=iU(+new Date);return n!==rU?(nU=0,rU=n):n+"."+iU(nU++)}for(;So<64;So++)tU[eU[So]]=So;function oU(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}let aU=!1;try{aU=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Kve=aU;function lU(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Kve))return new XMLHttpRequest}catch{}if(!e)try{return new(Co[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch{}}function Qve(){}const Xve=null!=new lU({xdomain:!1}).responseType;let Ky=(()=>{class n extends nn{constructor(t,r){super(),qy(this,r),this.opts=r,this.method=r.method||"GET",this.uri=t,this.async=!1!==r.async,this.data=void 0!==r.data?r.data:null,this.create()}create(){const t=Z8(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const r=this.xhr=new lU(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof r.status?r.status:0)},0))},r.send(this.data)}catch(i){return void this.setTimeoutFn(()=>{this.onError(i)},0)}typeof document<"u"&&(this.index=n.requestsCount++,n.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||null===this.xhr)){if(this.xhr.onreadystatechange=Qve,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete n.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}return n.requestsCount=0,n.requests={},n})();function cU(){for(let n in Ky.requests)Ky.requests.hasOwnProperty(n)&&Ky.requests[n].abort()}typeof document<"u"&&("function"==typeof attachEvent?attachEvent("onunload",cU):"function"==typeof addEventListener&&addEventListener("onpagehide"in Co?"pagehide":"unload",cU,!1));const uU="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Qy=Co.WebSocket||Co.MozWebSocket,dU=typeof navigator<"u"&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),tbe={websocket:class ebe extends J8{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=dU?{}:Z8(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=dU?new Qy(e,t,r):t?new Qy(e,t):new Qy(e)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const i=t===e.length-1;q8(e[t],this.supportsBinary,s=>{try{this.ws.send(s)}catch{}i&&uU(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let r="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(r=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=sU()),this.supportsBinary||(e.b64=1);const i=oU(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}check(){return!!Qy}},polling:class Zve extends J8{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const r="https:"===location.protocol;let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port,this.xs=e.secure!==r}this.supportsBinary=Xve&&!(e&&e.forceBase64)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((n,e)=>{const t=n.split(Q8),r=[];for(let i=0;i<t.length;i++){const s=K8(t[i],e);if(r.push(s),"error"===s.type)break}return r})(e,this.socket.binaryType).forEach(r=>{if("opening"===this.readyState&&"open"===r.type&&this.onOpen(),"close"===r.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((n,e)=>{const t=n.length,r=new Array(t);let i=0;n.forEach((s,o)=>{q8(s,!1,a=>{r[o]=a,++i===t&&e(r.join(Q8))})})})(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let r="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=sU()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(r=":"+this.opts.port);const i=oU(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new Ky(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}}},nbe=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rbe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tA(n){const e=n,t=n.indexOf("["),r=n.indexOf("]");-1!=t&&-1!=r&&(n=n.substring(0,t)+n.substring(t,r).replace(/:/g,";")+n.substring(r,n.length));let i=nbe.exec(n||""),s={},o=14;for(;o--;)s[rbe[o]]=i[o]||"";return-1!=t&&-1!=r&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=function ibe(n,e){const r=e.replace(/\/{2,9}/g,"/").split("/");return("/"==e.slice(0,1)||0===e.length)&&r.splice(0,1),"/"==e.slice(-1)&&r.splice(r.length-1,1),r}(0,s.path),s.queryKey=function sbe(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(t[i]=s)}),t}(0,s.query),s}let hU=(()=>{class n extends nn{constructor(t,r={}){super(),t&&"object"==typeof t&&(r=t,t=null),t?(t=tA(t),r.hostname=t.host,r.secure="https"===t.protocol||"wss"===t.protocol,r.port=t.port,t.query&&(r.query=t.query)):r.host&&(r.hostname=tA(r.host).host),qy(this,r),this.secure=null!=r.secure?r.secure:typeof location<"u"&&"https:"===location.protocol,r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},r),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=function Yve(n){let e={},t=n.split("&");for(let r=0,i=t.length;r<i;r++){let s=t[r].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const r=Object.assign({},this.opts.query);r.EIO=4,r.transport=t,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts.transportOptions[t],this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new tbe[t](i)}open(){let t;if(this.opts.rememberUpgrade&&n.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch{return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",r=>this.onClose("transport close",r))}probe(t){let r=this.createTransport(t),i=!1;n.priorWebsocketSuccess=!1;const s=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",h=>{if(!i)if("pong"===h.type&&"probe"===h.data){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;n.priorWebsocketSuccess="websocket"===r.name,this.transport.pause(()=>{i||"closed"!==this.readyState&&(d(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function o(){i||(i=!0,d(),r.close(),r=null)}const a=h=>{const f=new Error("probe error: "+h);f.transport=r.name,o(),this.emitReserved("upgradeError",f)};function l(){a("transport closed")}function c(){a("socket closed")}function u(h){r&&h.name!==r.name&&o()}const d=()=>{r.removeListener("open",s),r.removeListener("error",a),r.removeListener("close",l),this.off("close",c),this.off("upgrading",u)};r.once("open",s),r.once("error",a),r.once("close",l),this.once("close",c),this.once("upgrading",u),r.open()}onOpen(){if(this.readyState="open",n.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){let t=0;const r=this.upgrades.length;for(;t<r;t++)this.probe(this.upgrades[t])}}onPacket(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const r=new Error("server error");r.code=t.data,this.onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i<this.writeBuffer.length;i++){const s=this.writeBuffer[i].data;if(s&&(r+=Gve(s)),i>0&&r>this.maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}write(t,r,i){return this.sendPacket("message",t,r,i),this}send(t,r,i){return this.sendPacket("message",t,r,i),this}sendPacket(t,r,i,s){if("function"==typeof r&&(s=r,r=void 0),"function"==typeof i&&(s=i,i=null),"closing"===this.readyState||"closed"===this.readyState)return;(i=i||{}).compress=!1!==i.compress;const o={type:t,data:r,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),s&&this.once("flush",s),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}onError(t){n.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,r){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const r=[];let i=0;const s=t.length;for(;i<s;i++)~this.transports.indexOf(t[i])&&r.push(t[i]);return r}}return n.protocol=4,n})();const abe="function"==typeof ArrayBuffer,fU=Object.prototype.toString,cbe="function"==typeof Blob||typeof Blob<"u"&&"[object BlobConstructor]"===fU.call(Blob),ube="function"==typeof File||typeof File<"u"&&"[object FileConstructor]"===fU.call(File);function nA(n){return abe&&(n instanceof ArrayBuffer||(n=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer)(n))||cbe&&n instanceof Blob||ube&&n instanceof File}function Xy(n,e){if(!n||"object"!=typeof n)return!1;if(Array.isArray(n)){for(let t=0,r=n.length;t<r;t++)if(Xy(n[t]))return!0;return!1}if(nA(n))return!0;if(n.toJSON&&"function"==typeof n.toJSON&&1===arguments.length)return Xy(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&Xy(n[t]))return!0;return!1}function dbe(n){const e=[],r=n;return r.data=rA(n.data,e),r.attachments=e.length,{packet:r,buffers:e}}function rA(n,e){if(!n)return n;if(nA(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}if(Array.isArray(n)){const t=new Array(n.length);for(let r=0;r<n.length;r++)t[r]=rA(n[r],e);return t}if("object"==typeof n&&!(n instanceof Date)){const t={};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=rA(n[r],e));return t}return n}function hbe(n,e){return n.data=iA(n.data,e),delete n.attachments,n}function iA(n,e){if(!n)return n;if(n&&!0===n._placeholder){if("number"==typeof n.num&&n.num>=0&&n.num<e.length)return e[n.num];throw new Error("illegal attachments")}if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=iA(n[t],e);else if("object"==typeof n)for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=iA(n[t],e));return n}const fbe=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],pbe=5;var Ue=(()=>(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"}(Ue||(Ue={})),Ue))();class gbe{constructor(e){this.replacer=e}encode(e){return e.type!==Ue.EVENT&&e.type!==Ue.ACK||!Xy(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===Ue.EVENT?Ue.BINARY_EVENT:Ue.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return(e.type===Ue.BINARY_EVENT||e.type===Ue.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=dbe(e),r=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(r),i}}function pU(n){return"[object Object]"===Object.prototype.toString.call(n)}class sA extends nn{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===Ue.BINARY_EVENT;r||t.type===Ue.BINARY_ACK?(t.type=r?Ue.EVENT:Ue.ACK,this.reconstructor=new mbe(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!nA(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(void 0===Ue[r.type])throw new Error("unknown packet type "+r.type);if(r.type===Ue.BINARY_EVENT||r.type===Ue.BINARY_ACK){const s=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(s,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(o)}if("/"===e.charAt(t+1)){const s=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(s,t)}else r.nsp="/";const i=e.charAt(t+1);if(""!==i&&Number(i)==i){const s=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}r.id=Number(e.substring(s,t+1))}if(e.charAt(++t)){const s=this.tryParse(e.substr(t));if(!sA.isPayloadValid(r.type,s))throw new Error("invalid payload");r.data=s}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case Ue.CONNECT:return pU(t);case Ue.DISCONNECT:return void 0===t;case Ue.CONNECT_ERROR:return"string"==typeof t||pU(t);case Ue.EVENT:case Ue.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===fbe.indexOf(t[0]));case Ue.ACK:case Ue.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class mbe{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=hbe(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Oi(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const ybe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class gU extends nn{constructor(e,t,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Oi(e,"open",this.onopen.bind(this)),Oi(e,"packet",this.onpacket.bind(this)),Oi(e,"error",this.onerror.bind(this)),Oi(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(ybe.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');t.unshift(e);const r={type:Ue.EVENT,data:t,options:{}};if(r.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const o=this.ids++,a=t.pop();this._registerAckCallback(o,a),r.id=o}return this.flags.volatile&&(!(this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable)||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,t){const r=this.flags.timeout;if(void 0===r)return void(this.acks[e]=t);const i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===e&&this.sendBuffer.splice(s,1);t.call(this,new Error("operation has timed out"))},r);this.acks[e]=(...s)=>{this.io.clearTimeoutFn(i),t.apply(this,[null,...s])}}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this.packet({type:Ue.CONNECT,data:e})}):this.packet({type:Ue.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ue.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ue.EVENT:case Ue.BINARY_EVENT:this.onevent(e);break;case Ue.ACK:case Ue.BINARY_ACK:this.onack(e);break;case Ue.DISCONNECT:this.ondisconnect();break;case Ue.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let r=!1;return function(...i){r||(r=!0,t.packet({type:Ue.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e){this.id=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ue.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}function Lc(n){this.ms=(n=n||{}).min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Lc.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=0==(1&Math.floor(10*e))?n-t:n+t}return 0|Math.min(n,this.max)},Lc.prototype.reset=function(){this.attempts=0},Lc.prototype.setMin=function(n){this.ms=n},Lc.prototype.setMax=function(n){this.max=n},Lc.prototype.setJitter=function(n){this.jitter=n};class oA extends nn{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,qy(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new Lc({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout??2e4),this._readyState="closed",this.uri=e;const i=t.parser||Hc;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new hU(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Oi(t,"open",function(){r.onopen(),e&&e()}),s=Oi(t,"error",o=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",o),e?e(o):r.maybeReconnectOnOpen()});if(!1!==this._timeout){const o=this._timeout;0===o&&i();const a=this.setTimeoutFn(()=>{i(),t.close(),t.emit("error",new Error("timeout"))},o);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(i),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Oi(e,"ping",this.onping.bind(this)),Oi(e,"data",this.ondata.bind(this)),Oi(e,"error",this.onerror.bind(this)),Oi(e,"close",this.onclose.bind(this)),Oi(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){uU(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r||(r=new gU(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t)if(this.nsps[r].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const mh={};function Zy(n,e){"object"==typeof n&&(e=n,n=void 0);const t=function obe(n,e="",t){let r=n;t=t||typeof location<"u"&&location,null==n&&(n=t.protocol+"//"+t.host),"string"==typeof n&&("/"===n.charAt(0)&&(n="/"===n.charAt(1)?t.protocol+n:t.host+n),/^(https?|wss?):\/\//.test(n)||(n=typeof t<"u"?t.protocol+"//"+n:"https://"+n),r=tA(n)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+e,r.href=r.protocol+"://"+s+(t&&t.port===r.port?"":":"+r.port),r}(n,(e=e||{}).path||"/socket.io"),r=t.source,i=t.id;let l;return e.forceNew||e["force new connection"]||!1===e.multiplex||mh[i]&&t.path in mh[i].nsps?l=new oA(r,e):(mh[i]||(mh[i]=new oA(r,e)),l=mh[i]),t.query&&!e.query&&(e.query=t.queryKey),l.socket(t.path,e)}Object.assign(Zy,{Manager:oA,Socket:gU,io:Zy,connect:Zy});let _be=(()=>{class n{constructor(t){this.debugService=t,this.socketReceived$=new nt(null),this.hasConnected=!1,this.wsServer="https://api2.guestchat.com/ws",this.debugService.devMode&&(this.wsServer="http://localhost/ws")}connect(){this.hasConnected||(this.debugService.logMode&&console.log("Connecting to WS Server"),this.socket=Zy(this.wsServer),this.hasConnected=!0,this.socket.on("message-down",t=>{this.socketReceived$.next(t)}))}joinRoom(t){t!==this.chatId&&(this.debugService.logMode&&console.log("Connecting to Room: ",t),this.chatId&&this.socket.emit("leave-room",t),this.chatId=t,this.socket.emit("join-room",t))}addMessage(t){this.socket.volatile.emit("message-up",this.chatId,{message:t})}addUserIsTyping(t){this.socket||this.connect(),this.socket.volatile.emit("message-up",this.chatId,{userTyping:t})}ngOnDestroy(){this.socket.disconnect()}}return n.\u0275fac=function(t){return new(t||n)(ae(ss))},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Va(n){return!!n&&(n instanceof et||"function"==typeof n.lift&&"function"==typeof n.subscribe)}function mU(...n){if(1===n.length){const e=n[0];if(zc(e))return Jy(e,null);if(M_(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Jy(t.map(r=>e[r]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return Jy(n=1===n.length&&zc(n[0])?n[0]:n,null).pipe(on(t=>e(...t)))}return Jy(n,null)}function Jy(n,e){return new et(t=>{const r=n.length;if(0===r)return void t.complete();const i=new Array(r);let s=0,o=0;for(let a=0;a<r;a++){const l=Gc(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),i[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===r||!c)&&(o===r&&t.next(e?e.reduce((u,d,h)=>(u[d]=i[h],u),{}):i),t.complete())}}))}})}function e_(...n){return function vbe(){return hM(1)}()(Hn(...n))}function yU(n){return new et(e=>{let t;try{t=n()}catch(i){return void e.error(i)}return(t?Gc(t):fC()).subscribe(e)})}const bbe=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function t_(n){return e=>0===n?fC():e.lift(new wbe(n))}class wbe{constructor(e){if(this.total=e,this.total<0)throw new bbe}call(e,t){return t.subscribe(new Cbe(e,this.total))}}class Cbe extends sn{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))}}function _U(n,e,t){let r;return r=n&&"object"==typeof n?n:{bufferSize:n,windowTime:e,refCount:!1,scheduler:t},i=>i.lift(function Sbe({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:t,scheduler:r}){let i,o,s=0,a=!1,l=!1;return function(u){let d;s++,!i||a?(a=!1,i=new m5(n,e,r),d=i.subscribe(this),o=u.subscribe({next(h){i.next(h)},error(h){a=!0,i.error(h)},complete(){l=!0,o=void 0,i.complete()}}),l&&(o=void 0)):d=i.subscribe(this),this.add(()=>{s--,d.unsubscribe(),d=void 0,o&&!l&&t&&0===s&&(o.unsubscribe(),o=void 0,i=void 0)})}}(r))}class yh{}let vU=(()=>{class n extends yh{getTranslation(t){return Hn({})}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=ln(n)))(r||n)}}(),n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();class aA{}let bU=(()=>{class n{handle(t){return t.key}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();function n_(n,e){if(n===e)return!0;if(null===n||null===e)return!1;if(n!=n&&e!=e)return!0;let i,s,o,t=typeof n;if(t==typeof e&&"object"==t){if(!Array.isArray(n)){if(Array.isArray(e))return!1;for(s in o=Object.create(null),n){if(!n_(n[s],e[s]))return!1;o[s]=!0}for(s in e)if(!(s in o)&&typeof e[s]<"u")return!1;return!0}if(!Array.isArray(e))return!1;if((i=n.length)==e.length){for(s=0;s<i;s++)if(!n_(n[s],e[s]))return!1;return!0}}return!1}function Eo(n){return typeof n<"u"&&null!==n}function lA(n){return n&&"object"==typeof n&&!Array.isArray(n)}function wU(n,e){let t=Object.assign({},n);return lA(n)&&lA(e)&&Object.keys(e).forEach(r=>{lA(e[r])?r in n?t[r]=wU(n[r],e[r]):Object.assign(t,{[r]:e[r]}):Object.assign(t,{[r]:e[r]})}),t}class r_{}let CU=(()=>{class n extends r_{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,r){let i;return i="string"==typeof t?this.interpolateString(t,r):"function"==typeof t?this.interpolateFunction(t,r):t,i}getValue(t,r){let i="string"==typeof r?r.split("."):[r];r="";do{r+=i.shift(),!Eo(t)||!Eo(t[r])||"object"!=typeof t[r]&&i.length?i.length?r+=".":t=void 0:(t=t[r],r="")}while(i.length);return t}interpolateFunction(t,r){return t(r)}interpolateString(t,r){return r?t.replace(this.templateMatcher,(i,s)=>{let o=this.getValue(r,s);return Eo(o)?o:i}):t}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=ln(n)))(r||n)}}(),n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();class i_{}let SU=(()=>{class n extends i_{compile(t,r){return t}compileTranslations(t,r){return t}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=ln(n)))(r||n)}}(),n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})();class EU{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new G,this.onLangChange=new G,this.onDefaultLangChange=new G}}const cA=new ye("USE_STORE"),uA=new ye("USE_DEFAULT_LANG"),dA=new ye("DEFAULT_LANGUAGE"),hA=new ye("USE_EXTEND");let Er=(()=>{class n{constructor(t,r,i,s,o,a=!0,l=!1,c=!1,u){this.store=t,this.currentLoader=r,this.compiler=i,this.parser=s,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=l,this.extend=c,this.pending=!1,this._onTranslationChange=new G,this._onLangChange=new G,this._onDefaultLangChange=new G,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let r=this.retrieveTranslations(t);typeof r<"u"?(null==this.defaultLang&&(this.defaultLang=t),r.pipe(t_(1)).subscribe(i=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Hn(this.translations[t]);let r=this.retrieveTranslations(t);return typeof r<"u"?(this.currentLang||(this.currentLang=t),r.pipe(t_(1)).subscribe(i=>{this.changeLang(t)}),r):(this.changeLang(t),Hn(this.translations[t]))}retrieveTranslations(t){let r;return(typeof this.translations[t]>"u"||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),r=this._translationRequests[t]),r}getTranslation(t){this.pending=!0;const r=this.currentLoader.getTranslation(t).pipe(_U(1),t_(1));return this.loadingTranslations=r.pipe(on(i=>this.compiler.compileTranslations(i,t)),_U(1),t_(1)),this.loadingTranslations.subscribe({next:i=>{this.translations[t]=this.extend&&this.translations[t]?pt(pt({},i),this.translations[t]):i,this.updateLangs(),this.pending=!1},error:i=>{this.pending=!1}}),r}setTranslation(t,r,i=!1){r=this.compiler.compileTranslations(r,t),this.translations[t]=(i||this.extend)&&this.translations[t]?wU(this.translations[t],r):r,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(r=>{-1===this.langs.indexOf(r)&&this.langs.push(r)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,r,i){let s;if(r instanceof Array){let o={},a=!1;for(let l of r)o[l]=this.getParsedResult(t,l,i),Va(o[l])&&(a=!0);return a?mU(r.map(c=>Va(o[c])?o[c]:Hn(o[c]))).pipe(on(c=>{let u={};return c.forEach((d,h)=>{u[r[h]]=d}),u})):o}if(t&&(s=this.parser.interpolate(this.parser.getValue(t,r),i)),typeof s>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],r),i)),typeof s>"u"){let o={key:r,translateService:this};typeof i<"u"&&(o.interpolateParams=i),s=this.missingTranslationHandler.handle(o)}return typeof s<"u"?s:r}get(t,r){if(!Eo(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(XR(i=>Va(i=this.getParsedResult(i,t,r))?i:Hn(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,r);return Va(i)?i:Hn(i)}}getStreamOnTranslationChange(t,r){if(!Eo(t)||!t.length)throw new Error('Parameter "key" required');return e_(yU(()=>this.get(t,r)),this.onTranslationChange.pipe(Tm(i=>{const s=this.getParsedResult(i.translations,t,r);return"function"==typeof s.subscribe?s:Hn(s)})))}stream(t,r){if(!Eo(t)||!t.length)throw new Error('Parameter "key" required');return e_(yU(()=>this.get(t,r)),this.onLangChange.pipe(Tm(i=>{const s=this.getParsedResult(i.translations,t,r);return Va(s)?s:Hn(s)})))}instant(t,r){if(!Eo(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,r);if(Va(i)){if(t instanceof Array){let s={};return t.forEach((o,a)=>{s[t[a]]=t[a]}),s}return t}return i}set(t,r,i=this.currentLang){this.translations[i][t]=this.compiler.compile(r,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof t>"u"?void 0:(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return n.\u0275fac=function(t){return new(t||n)(ae(EU),ae(yh),ae(i_),ae(r_),ae(aA),ae(uA),ae(cA),ae(hA),ae(dA))},n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})(),as=(()=>{class n{constructor(t,r){this.translate=t,this._ref=r,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(t,r,i){let s=o=>{this.value=void 0!==o?o:t,this.lastKey=t,this._ref.markForCheck()};if(i){let o=this.translate.getParsedResult(i,t,r);Va(o.subscribe)?o.subscribe(s):s(o)}this.translate.get(t,r).subscribe(s)}transform(t,...r){if(!t||!t.length)return t;if(n_(t,this.lastKey)&&n_(r,this.lastParams))return this.value;let i;if(Eo(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){let s=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(s)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${r[0]}`)}}else"object"==typeof r[0]&&!Array.isArray(r[0])&&(i=r[0]);return this.lastKey=t,this.lastParams=r,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(s=>{this.lastKey&&s.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,s.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(s=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,s.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(t){return new(t||n)(R(Er,16),R($l,16))},n.\u0275pipe=Tn({name:"translate",type:n,pure:!1}),n.\u0275prov=ve({token:n,factory:n.\u0275fac}),n})(),Ebe=(()=>{class n{static forRoot(t={}){return{ngModule:n,providers:[t.loader||{provide:yh,useClass:vU},t.compiler||{provide:i_,useClass:SU},t.parser||{provide:r_,useClass:CU},t.missingTranslationHandler||{provide:aA,useClass:bU},EU,{provide:cA,useValue:t.isolate},{provide:uA,useValue:t.useDefaultLang},{provide:hA,useValue:t.extend},{provide:dA,useValue:t.defaultLanguage},Er]}}static forChild(t={}){return{ngModule:n,providers:[t.loader||{provide:yh,useClass:vU},t.compiler||{provide:i_,useClass:SU},t.parser||{provide:r_,useClass:CU},t.missingTranslationHandler||{provide:aA,useClass:bU},{provide:cA,useValue:t.isolate},{provide:uA,useValue:t.useDefaultLang},{provide:hA,useValue:t.extend},{provide:dA,useValue:t.defaultLanguage},Er]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({}),n})(),Nn=(()=>{class n{constructor(t,r,i,s,o,a){this.afs=t,this.http=r,this.debugService=i,this.wsService=s,this.translateService=o,this.popupService=a,this.allowBot$=new nt(!1),this.fullMode$=new nt(!1),this.showButton$=new nt(!0),this.allowIceBreakers$=new nt(!1),this.hasOpened$=new nt(!1),this.hasGDRP$=new nt(!1),this.subProperties$=new nt([]),this.subPropertyParentId$=new nt(null),this.clientId$=new nt(null),this.showEngagements=!1,this.botSettingsBS=new nt(null),this.engagements$=new nt([]),this.agentId=null,this.chatBS=new nt([]),this.userSend=new cs,this.newMessagePath="https://api2.guestchat.com/newQuestion",this.directPath="https://api2.guestchat.com/newDirectIntent",this.contactMetaPath="https://us-central1-guestchat-live.cloudfunctions.net/saveContactMeta",this.liveChatRequestPath="https://api2.guestchat.com/newWantLiveChat",this.ownBooknowClickedPath="https://api2.guestchat.com/ownHostBooknowClicked",this.canPostReply$=new nt(!0),this.botIsTyping$=new nt(!1),this.agentIsTyping$=new nt(!1),this.postIsLoading$=new nt(!1),this.showStructuredInput$=new nt(null),this.timerObs=new et,this.hasSentContactMeta=!1,this.userIsTypingLast=!1,this.liveChatOnlyMode$=new nt(!1),this.liveChatSettings$=new nt(null),this.botImage$=new nt(null),this.defaultLanguage="en",this.otherLanguages$=new nt([]),this.translationsActive=!1,this.allowChildren$=new nt(!0),this.responseIntelligence="dialogflow";const l=window.sessionStorage.getItem("opened");null!=l&&this.hasOpened$.next("true"===l),this.headers=(new Mi).set("content-type","application/json").set("authorization","Bearer cvisdj dsiofhosf340sdfm;234m;mcsdsgsgse"),this.timerObs=function Yfe(n=0,e,t){let r=-1;return hC(e)?r=Number(e)<1?1:Number(e):Wa(e)&&(t=e),Wa(t)||(t=Uie),new et(i=>{const s=hC(n)?n:+n-t.now();return t.schedule(Kfe,s,{index:0,period:r,subscriber:i})})}(5e3,3e4),this.debugService.devMode&&(this.newMessagePath="http://localhost:3000/newQuestion",this.directPath="http://localhost:3000/newDirectIntent",this.liveChatRequestPath="http://localhost:3000/newWantLiveChat",this.ownBooknowClickedPath="http://localhost:3000/ownHostBooknowClicked"),this.socketSub=this.wsService.socketReceived$.subscribe(c=>{c&&null!==c.agentTyping&&this.agentIsTyping$.getValue()!==c.agentTyping&&this.agentIsTyping$.next(c.agentTyping)})}generateNewChatId(t){const r=Hr(Cm(this.afs,`Clients/${t}/Chats/`)).id;return window.localStorage.setItem("chatId",r),window.sessionStorage.setItem("clientId",t),window.localStorage.setItem("chatTime",(new Date).toISOString()),this.hasSentContactMeta=!1,r}initServer(t,r,i=!1){var s=this;return M(function*(){if(i){const a={lastPing:Em(),paths:g5(location.href),isActive:!0};hh(Hr(s.afs,`Clients/${s.clientId}/Chats/${s.sessionId}`),a,{merge:!0})}s.botIsTyping$.next(!1),s.clientId=t,s.sessionId=r,s.debugService.logMode&&console.log(t,r);const o=yield Sm(Hr(s.afs,`Clients/${t}`));if(o.exists()){const a=o.data();if(a.showEngagements&&(s.showEngagements=!0,a.engagements)){const l=Object.keys(a.engagements).map(c=>({id:c,...a.engagements[c]}));s.engagements$.next(l)}if("multi-property-sojj"===a.dfProjectId&&a.subProperties&&a.subProperties.length>0&&(s.subProperties$.next(a.subProperties),s.subPropertyParentId$.next(a.id)),s.clientId$.next(a.id),s.agentId=a.dfProjectId,s.liveChatOnlyMode$.next(a.liveChatOnly??!1),a.translationsActive&&(s.translationsActive=a.translationsActive),s.botSettingsBS.next({...a.botSettings}),s.botImage$.next({img:a.botSettings.botImgUrl,title:a.botSettings.title}),a.active&&(s.subscribeToChat(t,r,s.agentId),s.getLiveChatSettings(),s.subscribeToTimer()),null!==a.debugMode&&s.debugService.setDebugMode(a.debugMode),null!=a.responseIntelligence&&(s.responseIntelligence=a.responseIntelligence),s.hasGDRP$.next(!!a.gdrpShow),a.bookNowButton&&a.bookNowButton.type&&(s.bookNowButtonSettings=a.bookNowButton),i||(a.pageBlockUrls?-1===a.pageBlockUrls.split(",").map(u=>u.trim()).findIndex(u=>location.href.indexOf(u)>-1)?s.allowBot$.next(a.active):s.allowBot$.next(!1):s.allowBot$.next(a.active)),a.defaultLanguage&&a.translationsActive){s.defaultLanguage=a.defaultLanguage;const l=window.localStorage.getItem("selectedLanguage");l&&""!==l?(console.log("has saved ",l),s.translateService.use(l)):(console.log("defaults"),s.translateService.use(a.defaultLanguage))}else console.log("base"),s.translateService.use("en");a.otherLanguages&&s.otherLanguages$.next(a.otherLanguages),a.botSettings.iceBreakers&&a.botSettings.iceBreakers.length&&a.botSettings.iceBreakers.length>0&&s.allowIceBreakers$.next(!0),a.blockChildren&&s.allowChildren$.next(!1),s.fullMode$.getValue()&&(s.popupService.showChatBox.next(!0),s.showButton$.next(!1),window.sessionStorage.setItem("opened","true"),s.hasOpened$.next(!0),window.sessionStorage.setItem("iceBreakerOpened","true"))}})()}getClientAndSession(){return{clientId:this.clientId,sessionId:this.sessionId,agentId:this.agentId,interface:"widget",languageCode:this.translateService.currentLang,responseIntelligence:this.responseIntelligence}}subscribeToTimer(){this.timerSub&&this.timerSub.unsubscribe(),this.timerSub=this.timerObs.subscribe(()=>{const t={lastPing:Em(),paths:g5(location.href),isActive:!0};hh(Hr(this.afs,`Clients/${this.clientId}/Chats/${this.sessionId}`),t,{merge:!0})})}subscribeToChat(t,r,i){this.messagesSub&&(this.messagesSub.unsubscribe(),this.chatBS.next([]));const s={isActive:!0,date:Em()};let o="";Intl.DateTimeFormat().resolvedOptions().timeZone&&(o=Intl.DateTimeFormat().resolvedOptions().timeZone);const a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Mobi/i.test(navigator.userAgent),l=this.botSettingsBS.getValue(),c=this.liveChatOnlyMode$.getValue(),u={clientId:t,agentId:i,date:Em(),botAnswer:!0,isActive:!0,hasMessages:!1,allowedBotFailures:l.allowedBotFailures,currentBotFailures:0,intents:[],interface:"widget",timezone:o,liveChatRequested:c,liveChatRequestAccepted:!c,isMobile:a,requestsProcessed:0,ownBookNowClicked:!1};Sm(Hr(this.afs,`Clients/${t}/Chats/${r}`)).then(d=>{d.exists()&&d.data().clientId?hh(Hr(this.afs,`Clients/${t}/Chats/${r}`),s,{merge:!0}).catch(f=>console.log(f)):hh(Hr(this.afs,`Clients/${t}/Chats/${r}`),u,{merge:!0})}),this.messagesSub=xfe(Mfe(Cm(this.afs,`Clients/${t}/Chats/${r}/Messages`),Afe("date","asc")),{idField:"id"}).pipe(Ju(d=>{const f=d[d.length-1];if(f&&"User"!==f.sender)if("Bot"===f.sender){const p=this.botSettingsBS.getValue();this.botImage$.next({img:p.botImgUrl,title:p.title})}else f.senderImage?this.botImage$.getValue().img!==f.senderImage&&this.botImage$.next({img:f.senderImage,title:f.sender}):this.botImage$.next({img:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/person_placeholder.png?alt=media&token=c6670910-de33-43a7-8513-6da1e07b6f1c",title:f.sender})})).subscribe(d=>{this.chatBS.next(d),d.length>0&&(this.wsService.connect(),this.wsService.joinRoom(r))})}checkDay(t,r){const i=t.split(",").map(c=>c.trim());let s=i[1].split("-").map(c=>c.trim());"open 24 hours"===s[0]&&(s[0]="08:00 AM");const o=ZD(wo(new Date,"dd MMM yyyy")+" "+s[0]+" "+r,"dd MMM yyyy h:mm aa X",new Date),a=wo(o,"EEEE"),l=i[0];return"Weekdays"===l?"monday"===a.toLowerCase()||"tuesday"===a.toLowerCase()||"wednesday"===a.toLowerCase()||"thursday"===a.toLowerCase()||"friday"===a.toLowerCase():"Weekends"===l?"saturday"===a.toLowerCase()||"sunday"===a.toLowerCase():l.toLowerCase()===a.toLowerCase()}checkHoursInRange(t,r){const s=t.split(",").map(l=>l.trim())[1].split("-").map(l=>l.trim());if("open 24 hours"===s[0])return!0;const o=ZD(wo(new Date,"dd MMM yyyy")+" "+s[0]+" "+r,"dd MMM yyyy h:mm aa X",new Date),a=ZD(wo(new Date,"dd MMM yyyy")+" "+s[1]+" "+r,"dd MMM yyyy h:mm aa X",new Date);return Gy(new Date,a)&&JD(new Date,o)}getLiveChatSettings(){var t=this;return M(function*(){const r=yield Sm(Hr(t.afs,`LiveChat/${t.clientId}`));if(r.exists()){const i=r.data();let s=i.liveChatAvailable;const o=null!=i.hasCallAgent&&null!=i.hasCallAgent&&i.hasCallAgent;if("Based on business hours"===i.basedOn){const a=i.timezone?i.timezone.timeValue.replace(/:/g,""):"-0400",l=i.businessHours;s=!1,i.hasCallAgent&&l&&l.length>0&&(l[0].indexOf("every day")>-1?s=t.checkHoursInRange(l[0],a):l.forEach(c=>{const u=t.checkHoursInRange(c,a),d=t.checkDay(c,a);u&&d&&(s=!0)}))}t.liveChatSettings$.next({liveChatAvailable:s,hasCallAgent:o})}})()}showErrorMessage(){const t=this.chatBS.getValue(),r={id:"error"+100*Math.random(),date:null,reply:!0,textResponse:this.translateService.instant("technicalDifficulties"),mediaResponse:[],urlsResponse:[],showStructuredInput:!1,relatedIntents:[],roomsResponse:[],askForCallMeBack:!0};t.push(r),this.chatBS.next(t)}addMessage(t,r=!0){return new Promise(i=>{const s=this.getClientAndSession(),o=Hr(Cm(this.afs,`Clients/${this.clientId}/Chats/${this.sessionId}/Messages`)).id;this.wsService.addMessage(t);const a=r&&!this.liveChatOnlyMode$.getValue(),l={...s,message:t,mustRespond:a,preId:o};this.userSend.next({id:o,reply:!1,question:t}),this.liveChatOnlyMode$.getValue()||this.botIsTyping$.next(!0),this.userIsTyping(!1),this.http.post(this.newMessagePath,l,{headers:this.headers}).subscribe(u=>{i("success")},u=>{console.log(u),this.botIsTyping$.next(!1),this.postIsLoading$.next(!1),this.showErrorMessage()}),this.saveContactMeta()})}addDirectIntentQuestion(t,r){return new Promise(i=>{const s=this.getClientAndSession(),o=Hr(Cm(this.afs,`Clients/${this.clientId}/Chats/${this.sessionId}/Messages`)).id,a={...s,intentId:t,preId:o,message:r};this.userSend.next({id:o,reply:!1,question:r}),this.botIsTyping$.next(!0),this.http.post(this.directPath,a,{headers:this.headers}).subscribe(()=>{i("success")},()=>{this.botIsTyping$.next(!1),this.postIsLoading$.next(!1),this.showErrorMessage()}),this.saveContactMeta()})}saveContactMeta(){if(this.hasSentContactMeta)return;this.hasSentContactMeta=!0;const t=this.getClientAndSession();this.http.post(this.contactMetaPath,t,{headers:this.headers}).subscribe(()=>{},()=>{})}addLiveChatRequest(){return new Promise(t=>{const r=this.getClientAndSession();this.userIsTyping(!1),this.botIsTyping$.next(!0),this.http.post(this.liveChatRequestPath,r,{headers:this.headers}).subscribe(i=>{t("success")},i=>{this.botIsTyping$.next(!1),this.postIsLoading$.next(!1),this.showErrorMessage()})})}ownBooknowClicked(){return new Promise(t=>{const r=this.getClientAndSession();this.http.post(this.ownBooknowClickedPath,{clientId:r.clientId,sessionId:r.sessionId,agentId:r.agentId},{headers:this.headers}).subscribe(s=>{t("success")},s=>{t("success")})})}userIsTyping(t){try{this.userIsTypingLast!=t&&(this.userIsTypingLast=t,this.wsService.addUserIsTyping(t))}catch{}}alsoGetMasterMultiProprty(t){var r=this;return M(function*(){const i=yield Sm(Hr(r.afs,`Clients/${t}`));if(i.exists()){const s=i.data();"multi-property-sojj"===s.dfProjectId&&s.subProperties&&s.subProperties.length>0&&r.subProperties$.next(s.subProperties)}})()}get getClientId(){return this.clientId}cycleResponseIntelligence(){return"dialogflow"===this.responseIntelligence?(this.responseIntelligence="llm","Large Language model"):"llm"===this.responseIntelligence?(this.responseIntelligence="dialogflow","Default Mode"):void 0}ngOnDestroy(){var t=this;return M(function*(){t.messagesSub&&t.messagesSub.unsubscribe(),t.timerSub&&t.timerSub.unsubscribe(),t.socketSub&&t.socketSub.unsubscribe(),t.userIsTyping(!1)})()}}return n.\u0275fac=function(t){return new(t||n)(ae(dh),ae(F0),ae(ss),ae(_be),ae(Er),ae(vo))},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Tbe extends sn{notifyNext(e,t,r,i,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class xbe extends sn{constructor(e,t,r){super(),this.parent=e,this.outerValue=t,this.outerIndex=r,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Ibe(n,e,t,r,i=new xbe(n,t,r)){if(!i.closed)return e instanceof et?e.subscribe(i):k_(e)(i)}const TU={};function hi(...n){let e,t;return Wa(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&zc(n[0])&&(n=n[0]),N_(n,t).lift(new Dbe(e))}class Dbe{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Abe(e,this.resultSelector))}}class Abe extends Tbe{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(TU),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let r=0;r<t;r++)this.add(Ibe(this,e[r],void 0,r))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,r){const i=this.values,o=this.toRespond?i[r]===TU?--this.toRespond:this.toRespond:0;i[r]=t,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(r){return void this.destination.error(r)}this.destination.next(t)}}function Mbe(n,e){if(1&n){const t=he();C(0,"div",1),q("click",function(){return F(t),V(S().onCloseGreeting())}),C(1,"div",2),q("click",function(i){return F(t),V(S().onStopBubble(i))}),C(2,"div",3)(3,"div",4)(4,"div",5),X(5),E(),C(6,"div",6),X(7),E(),C(8,"div",7)(9,"div",8),q("click",function(){F(t);const i=S();return V(i.onHandleIntent(i.hitch.popup.openIntentId,i.hitch.popup.openIntentName))}),X(10),E()()(),K(11,"div",3),E()()()}if(2&n){const t=S();v(1),w("ngStyle",t.getShapeStyle),v(1),w("ngStyle",t.getTemplateStyle),v(1),w("ngStyle",t.getContentStyle),v(1),w("ngStyle",t.getTextStyle),v(1),Be(" ",t.hitch.popup.text," "),v(1),w("ngStyle",t.getSubTextStyle),v(1),Be(" ",t.hitch.popup.textSub," "),v(2),w("ngStyle",t.getButtonStyle),v(1),Be(" ",t.hitch.popup.buttonLabel," "),v(1),w("ngStyle",t.getPrettyStyle)}}let kbe=(()=>{class n{constructor(t,r){this.chatService=t,this.popupService=r,this.templateStyle={},this.shapeStyle={},this.contentStyle={},this.textStyle={},this.subTextStyle={},this.buttonStyle={},this.sideBackground={background:"white","background-size":"cover"},this.smartBackground="",this.overlayMode=!0,this.toggleHitch=new G}set func(t){this.hitch=t,this.updateFormatting()}ngOnInit(){}updateFormatting(){let t;this.hitch.media&&(t=this.hitch.media[Math.floor(Math.random()*this.hitch.media.length)]);const r=this.hexToRgb(this.hitch.popup.primaryColor);this.smartBackground=r&&t.path?"above"===this.hitch.popup.template?`linear-gradient(0deg, rgba(${r.r}, ${r.g}, ${r.b}, 0.6), rgba(${r.r}, ${r.g}, ${r.b}, 0.7)), url("${t.path}")`:`url("${t.path}")`:this.hitch.popup.primaryColor,this.shapeStyle={round:{width:"450px",height:"450px","background-color":"#ffffff",overflow:"hidden","border-radius":"50%"},square:{width:"600px",height:"350px","background-color":"#ffffff",overflow:"hidden","border-radius":"8px"}},this.templateStyle={bottomText:{display:"flex","flex-direction":"column-reverse","align-items":"center",height:"100%",width:"100%"},topText:{display:"flex","flex-direction":"column","align-items":"center",height:"100%",width:"100%"},leftText:{display:"flex","justify-content":"center",height:"100%",width:"100%"},rightText:{display:"flex","flex-direction":"row-reverse","justify-content":"center",height:"100%",width:"100%"},above:{position:"relative",height:"100%",width:"100%",display:"flex","justify-content":"center"}},this.contentStyle={bottomText:{height:"50%",width:"100%",display:"flex","flex-direction":"column","justify-content":"flex-start"},topText:{height:"50%",width:"100%",display:"flex","flex-direction":"column","justify-content":"center"},leftText:{width:"50%",display:"flex","flex-direction":"column","justify-content":"center","text-align":"center"},rightText:{width:"50%",height:"100%",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center"},above:{position:"absolute",width:"70%",height:"100%",display:"flex","flex-direction":"column","justify-content":"center"}},this.textStyle={bottomText:{"font-size":"24px","font-weight":"bold",color:this.hitch.popup.textColor,"font-family":"inherit","padding-top":"10px"},topText:{"font-size":"24px","font-weight":"bold",color:this.hitch.popup.textColor,"font-family":"inherit"},leftText:{"font-size":"24px","font-weight":"bold",color:this.hitch.popup.textColor,"font-family":"inherit"},rightText:{"font-size":"24px","font-weight":"bold",color:this.hitch.popup.textColor,"font-family":"inherit"},above:{"font-size":"24px","font-weight":"bold",color:this.hitch.popup.textColor,"font-family":"inherit","z-index":"100000"}},this.subTextStyle={bottomText:{"font-size":"16px",color:this.hitch.popup.textColor,"font-family":"inherit"},topText:{"font-size":"16px",color:this.hitch.popup.textColor,"font-family":"inherit"},leftText:{"font-size":"16px",color:this.hitch.popup.textColor,"font-family":"inherit"},rightText:{"font-size":"16px",color:this.hitch.popup.textColor,"font-family":"inherit"},above:{"font-size":"16px",color:this.hitch.popup.textColor,"font-family":"inherit","z-index":"100000"}},this.buttonStyle={bottomText:{"font-size":"19px",color:this.hitch.popup.textColor,"background-color":this.hitch.popup.primaryColor,width:"fit-content",padding:"4px 30px"},topText:{"font-size":"19px",color:this.hitch.popup.textColor,"background-color":this.hitch.popup.primaryColor,width:"fit-content",padding:"4px 30px"},leftText:{"font-size":"19px",color:this.hitch.popup.textColor,"background-color":this.hitch.popup.primaryColor,width:"fit-content",padding:"4px 30px"},rightText:{"font-size":"19px",color:this.hitch.popup.textColor,"background-color":this.hitch.popup.primaryColor,width:"fit-content",padding:"4px 30px"},above:{"font-size":"19px",color:this.hitch.popup.textColor,"background-color":this.hitch.popup.primaryColor,width:"fit-content",padding:"4px 30px","z-index":"100000"}}}get getShapeStyle(){return this.shapeStyle[this.hitch.popup.shape]}get getTemplateStyle(){return this.templateStyle[this.hitch.popup.template]}get getContentStyle(){return this.contentStyle[this.hitch.popup.template]}get getPrettyStyle(){return{...this.contentStyle[this.hitch.popup.template],background:this.smartBackground,"background-size":"cover"}}get getTextStyle(){return this.textStyle[this.hitch.popup.template]}get getSubTextStyle(){return this.subTextStyle[this.hitch.popup.template]}get getButtonStyle(){return this.buttonStyle[this.hitch.popup.template]}onHandleIntent(t,r){this.chatService.addDirectIntentQuestion(t,r),this.chatService.hasOpened$.next(!0),this.onToggleVisible(!0)}onStopBubble(t){t.stopPropagation()}onToggleVisible(t=null){let r=this.popupService.showChatBox.getValue();null!==t&&(r=!t),this.popupService.showChatBox.next(!r),this.chatService.showButton$.next(r),r||(window.sessionStorage.setItem("opened","true"),this.chatService.hasOpened$.next(!0)),this.toggleHitch.emit(!1)}onCloseGreeting(){this.toggleHitch.emit(!1)}hexToRgb(t){var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(vo))},n.\u0275cmp=Ut({type:n,selectors:[["ngx-hitch"]],inputs:{func:["hitch","func"],overlayMode:"overlayMode"},outputs:{toggleHitch:"toggleHitch"},decls:1,vars:1,consts:[["id","gc_overlay",3,"click",4,"ngIf"],["id","gc_overlay",3,"click"],[1,"gc_shape",3,"ngStyle","click"],[3,"ngStyle"],[1,"gc_content",3,"ngStyle"],["id","gc_title",3,"ngStyle"],["id","gc_subtitle",3,"ngStyle"],["id","gc_cta"],[1,"gc_button",3,"ngStyle","click"]],template:function(t,r){1&t&&I(0,Mbe,12,10,"div",0),2&t&&w("ngIf",r.overlayMode)},dependencies:[xn,rr],styles:["#gc_overlay[_ngcontent-%COMP%]{width:100vw;height:100vh;z-index:100000;display:flex;justify-content:center;align-items:center;position:fixed;top:0;background-color:rgba(0,0,0,.61)}.gc_shape[_ngcontent-%COMP%]   .gc_split[_ngcontent-%COMP%]{display:inline-block;width:34%;height:100%}.gc_shape[_ngcontent-%COMP%]   .gc_content[_ngcontent-%COMP%]{text-align:center;width:75%}.gc_shape[_ngcontent-%COMP%]   .gc_content[_ngcontent-%COMP%]   #gc_close[_ngcontent-%COMP%]{position:absolute;right:0px;top:0px;height:40px;width:40px;cursor:pointer}.gc_shape[_ngcontent-%COMP%]   .gc_content[_ngcontent-%COMP%]   #gc_close[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:40px;height:40px}.gc_shape[_ngcontent-%COMP%]   .gc_content[_ngcontent-%COMP%]   #gc_close[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{fill:#000}.gc_shape[_ngcontent-%COMP%]   .gc_content[_ngcontent-%COMP%]   #gc_title[_ngcontent-%COMP%]{width:100%;margin-bottom:6px}.gc_shape[_ngcontent-%COMP%]   .gc_content[_ngcontent-%COMP%]   #gc_subtitle[_ngcontent-%COMP%]{width:100%}.gc_shape[_ngcontent-%COMP%]   .gc_content[_ngcontent-%COMP%]   #gc_cta[_ngcontent-%COMP%]{z-index:100000}.gc_shape[_ngcontent-%COMP%]   .gc_content[_ngcontent-%COMP%]   #gc_cta[_ngcontent-%COMP%]   .gc_button[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;border-radius:6px;margin:16px auto auto}"]}),n})();const Pbe=function(n){return{"ice-action":n}};function Obe(n,e){if(1&n){const t=he();C(0,"span",9),q("click",function(){const s=F(t).$implicit;return V(S(2).onHandleIceItem(s))}),X(1),E()}if(2&n){const t=e.$implicit;w("ngClass",pe(2,Pbe,"textOnly"!==t.type)),v(1),Be(" ",t.translated," ")}}const Nbe=function(n,e,t,r){return{left:n,right:e,bar:t,"side-bar":r}},Rbe=function(n,e){return{left:n,right:e}};function Lbe(n,e){if(1&n){const t=he();C(0,"div",1)(1,"div",2),q("click",function(){return F(t),V(S().onCloseGreeting())}),ue(),C(2,"svg",3),K(3,"path",4),E()(),yt(),C(4,"div",5)(5,"div",6)(6,"div",7)(7,"div"),I(8,Obe,2,4,"span",8),E()()()()()}if(2&n){const t=S();w("@flipNow",t.flipNowState)("ngClass",Ll(5,Nbe,"left"==t.botSettings.screenPosition,"right"==t.botSettings.screenPosition,"bar"==t.botSettings.buttonShape,"side-bar"==t.botSettings.buttonShape))("ngStyle",t.greetingStyle),v(1),w("ngClass",Ys(10,Rbe,"left"==t.botSettings.screenPosition,"right"==t.botSettings.screenPosition)),v(7),w("ngForOf",t.iceBreaker.items)}}let Fbe=(()=>{class n{constructor(t,r,i){this.chatService=t,this.translateService=r,this.popupService=i,this.botSettings={title:"",openingLine:"",botImgUrl:null,backgroundColors:["#FFFFFF","#FFFFFF"],screenPosition:"right",introMessage:""},this.greetingStyle={},this.flipNowState="normal",this.iceBreaker=null,this.iceBreakerHasRun=!1,this.toggleIceBreaker=new G}set func(t){this.iceBreakers=t,this.startIceBreaker()}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(t=>{t&&(this.botSettings=t,"left"===t.screenPosition?"round"===t.buttonShape?this.greetingStyle={bottom:t.bottomSpacing+"px",left:+t.fromSideSpacing+85+"px"}:"bar"===t.buttonShape?this.greetingStyle={bottom:"50px",left:+t.fromSideSpacing+"px"}:"side-bar"===t.buttonShape&&(this.greetingStyle={bottom:t.bottomSpacing+50+"px",left:"50px"}):"round"===t.buttonShape?this.greetingStyle={bottom:t.bottomSpacing+"px",right:+t.fromSideSpacing+85+"px"}:"bar"===t.buttonShape?this.greetingStyle={bottom:"50px",right:+t.fromSideSpacing+"px"}:"side-bar"===t.buttonShape&&(this.greetingStyle={bottom:t.bottomSpacing+50+"px",right:"50px"}))})}setActiveIceBreaker(t){const r=this.translateService.currentLang,i=[];t.items.forEach(s=>{i.push({...s,translated:"en"===r?s.text:s.textTranslations[r],translatedPlaceText:"en"===r?s.placeText:s.placeTextTranslations[r]})}),this.iceBreaker={...t,items:i}}startIceBreaker(){let t=1;this.chatService.hasOpened$.getValue()||(this.setActiveIceBreaker(this.iceBreakers.iceBreakers[0]),this.iceBreakerInterval=setInterval(()=>{this.chatService.hasOpened$.getValue()?clearInterval(this.iceBreakerInterval):(this.flipNowState="flip",setTimeout(()=>{this.setActiveIceBreaker(this.iceBreakers.iceBreakers[t]),this.flipNowState="normal"},100),t++,t>=this.iceBreakers.iceBreakers.length&&(t=0))},1e3*this.iceBreakers.iceBreakerDelay))}onHandleIceItem(t){if(window.sessionStorage.setItem("iceBreakerOpened","true"),"directIntent"===t.type){let r=t.action;t.translatedPlaceText&&(r=t.translatedPlaceText),this.chatService.addDirectIntentQuestion(t.action,r)}if("quickActionButtons"===t.type){const r=this.botSettings.quickActionButtons.find(i=>i.dialogflowId===t.action);if(r)if("post"===r.structuredInput.submit){const i={...r.structuredInput,preMessage:r.preText,intent:r.dialogflowId};this.chatService.showStructuredInput$.next(i)}else r.url?window.open(r.url,"_blank"):this.chatService.addDirectIntentQuestion(r.dialogflowId,r.publicText)}clearInterval(this.iceBreakerInterval),this.chatService.allowIceBreakers$.next(!1),this.chatService.hasOpened$.next(!0),this.onToggleVisible(!0)}onToggleVisible(t=null){let r=this.popupService.showChatBox.getValue();null!==t&&(r=!t),this.popupService.showChatBox.next(!r),this.chatService.showButton$.next(r),r||(window.sessionStorage.setItem("opened","true"),window.sessionStorage.setItem("iceBreakerOpened","true"),this.chatService.hasOpened$.next(!0)),this.toggleIceBreaker.emit(!1)}onCloseGreeting(){window.sessionStorage.setItem("iceBreakerOpened","true"),this.toggleIceBreaker.emit(!1)}ngOnDestroy(){this.iceBreakerInterval&&clearInterval(this.iceBreakerInterval),this.botSettingsSub&&this.botSettingsSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(Er),R(vo))},n.\u0275cmp=Ut({type:n,selectors:[["ngx-ice-breaker"]],inputs:{func:["iceBreakers","func"]},outputs:{toggleIceBreaker:"toggleIceBreaker"},decls:1,vars:1,consts:[["id","gc_greeting_box",3,"ngClass","ngStyle",4,"ngIf"],["id","gc_greeting_box",3,"ngClass","ngStyle"],["id","gc_close_button",3,"ngClass","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512"],["d","M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"],["id","gc_opening_line"],["id","gc_opening_text"],[1,"ice-item"],["style","display: inline;",3,"ngClass","click",4,"ngFor","ngForOf"],[2,"display","inline",3,"ngClass","click"]],template:function(t,r){1&t&&I(0,Lbe,9,13,"div",0),2&t&&w("ngIf",r.iceBreaker)},dependencies:[ri,ii,xn,rr],styles:['#gc_greeting_box[_ngcontent-%COMP%]{z-index:100000;width:250px;position:fixed;box-sizing:content-box}#gc_greeting_box[_ngcontent-%COMP%]   #gc_close_button[_ngcontent-%COMP%]{box-sizing:content-box;z-index:100000;height:30px;width:30px;border-radius:50%;display:inline-block;background-color:#fff;box-shadow:2px 2px 4px rgba(0,0,0,.25);text-align:center;vertical-align:top;cursor:pointer}#gc_greeting_box[_ngcontent-%COMP%]   #gc_close_button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:2.5px;height:25px}#gc_greeting_box[_ngcontent-%COMP%]   #gc_close_button.left[_ngcontent-%COMP%]{margin-left:4px}#gc_greeting_box[_ngcontent-%COMP%]   #gc_close_button.right[_ngcontent-%COMP%]{margin-right:4px}#gc_greeting_box[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]{z-index:100001;font-family:Roboto,sans-serif;width:192px;font-size:14px;line-height:16px;background-color:#fff;color:#000;border-radius:6px;box-shadow:2px 2px 4px rgba(0,0,0,.25);padding:12px;overflow-y:hidden;display:inline-block;overflow-x:hidden;cursor:pointer;box-sizing:content-box}#gc_greeting_box[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]   #gc_opening_text[_ngcontent-%COMP%]{box-sizing:content-box;text-align:left;white-space:pre-line}#gc_greeting_box[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]:after{box-sizing:content-box;z-index:99998;content:" ";position:absolute;width:0;height:0;left:auto;right:-9px;top:8px;bottom:auto;border:12px solid;border-color:white transparent transparent white}#gc_greeting_box.left[_ngcontent-%COMP%]   #gc_close_button[_ngcontent-%COMP%]{float:right}#gc_greeting_box.left[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]:after{left:-4px;transform:rotate(-47deg)}#gc_greeting_box.left.bar[_ngcontent-%COMP%]   #gc_close_button[_ngcontent-%COMP%]{float:right}#gc_greeting_box.left.bar[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]:after{left:40px;top:auto;bottom:-7px;transform:rotate(-12deg)}#gc_greeting_box.right.bar[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]:after{right:160px;top:auto;bottom:-10px;transform:rotate(-12deg)}.ice-action[_ngcontent-%COMP%]{color:#598bff;font-weight:700;cursor:pointer}@keyframes iceBreakerAnimation{0%{transform:rotateX(0)}50%{transform:rotateX(90deg)}to{transform:rotateX(0)}}@media only screen and (max-width: 640px){.gc-button.round[_ngcontent-%COMP%], .gc-button.round[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:56px!important;width:56px!important}}'],data:{animation:[uL("flipNow",[U0("normal",Gi({transform:"rotateX(0deg)"})),U0("flip",Gi({transform:"rotateX(90deg)"})),ju("normal <=> flip",[zu("100ms ease-in-out")])])]}}),n})();const Vbe=function(n,e,t,r){return{left:n,right:e,bar:t,"side-bar":r}},Bbe=function(n,e){return{left:n,right:e}};let $be=(()=>{class n{constructor(t,r){this.chatService=t,this.popupService=r,this.botSettings={title:"",openingLine:"",botImgUrl:null,backgroundColors:["#FFFFFF","#FFFFFF"],screenPosition:"right",introMessage:""},this.greetingStyle={},this.contentStyle={},this.textStyle={},this.smartBackground="",this.toggleSmallPopup=new G}set func(t){this.smallPopup=t,this.updateFormatting()}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(t=>{t&&(this.botSettings=t,"left"===t.screenPosition?"round"===t.buttonShape?this.greetingStyle={bottom:t.bottomSpacing+"px",left:+t.fromSideSpacing+85+"px"}:"bar"===t.buttonShape?this.greetingStyle={bottom:"50px",left:+t.fromSideSpacing+"px"}:"side-bar"===t.buttonShape&&(this.greetingStyle={bottom:t.bottomSpacing+50+"px",left:"50px"}):"round"===t.buttonShape?this.greetingStyle={bottom:t.bottomSpacing+"px",right:+t.fromSideSpacing+85+"px"}:"bar"===t.buttonShape?this.greetingStyle={bottom:"50px",right:+t.fromSideSpacing+"px"}:"side-bar"===t.buttonShape&&(this.greetingStyle={bottom:t.bottomSpacing+50+"px",right:"50px"}))})}updateFormatting(){let t;this.smallPopup.media&&(t=this.smallPopup.media[Math.floor(Math.random()*this.smallPopup.media.length)]);const r=this.hexToRgb(this.smallPopup.popup.primaryColor);this.smartBackground=r&&t.path?"above"===this.smallPopup.popup.template?`linear-gradient(0deg, rgba(${r.r}, ${r.g}, ${r.b}, 0.6), rgba(${r.r}, ${r.g}, ${r.b}, 0.7)), url("${t.path}")`:`url("${t.path}")`:this.smallPopup.popup.primaryColor,this.contentStyle={height:"80px",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center"},this.textStyle={"font-size":"20px",color:this.smallPopup.popup.textColor,"font-family":"inherit"}}onHandelIntent(t,r){this.chatService.addDirectIntentQuestion(t,r),this.chatService.hasOpened$.next(!0),this.onToggleVisible(!0)}onToggleVisible(t=null){let r=this.popupService.showChatBox.getValue();null!==t&&(r=!t),this.popupService.showChatBox.next(!r),this.chatService.showButton$.next(r),r||(window.sessionStorage.setItem("opened","true"),this.chatService.hasOpened$.next(!0)),this.toggleSmallPopup.emit(!1)}onCloseGreeting(){this.toggleSmallPopup.emit(!1)}get getPrettyStyle(){return{...this.textStyle,...this.contentStyle,background:this.smartBackground,"background-size":"cover"}}hexToRgb(t){var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(vo))},n.\u0275cmp=Ut({type:n,selectors:[["ngx-small-popup"]],inputs:{func:["smallPopup","func"]},outputs:{toggleSmallPopup:"toggleSmallPopup"},decls:7,vars:13,consts:[["id","gc_greeting_box",3,"ngClass","ngStyle"],["id","gc_close_button",3,"ngClass","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512"],["d","M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"],["id","gc_opening_line",3,"click"],["id","gc_opening_text",3,"ngStyle"]],template:function(t,r){1&t&&(C(0,"div",0)(1,"div",1),q("click",function(){return r.onCloseGreeting()}),ue(),C(2,"svg",2),K(3,"path",3),E()(),yt(),C(4,"div",4),q("click",function(){return r.onHandelIntent(r.smallPopup.popup.openIntentId,r.smallPopup.popup.openIntentName)}),C(5,"div",5),X(6),E()()()),2&t&&(w("ngClass",Ll(5,Vbe,"left"==r.botSettings.screenPosition,"right"==r.botSettings.screenPosition,"bar"==r.botSettings.buttonShape,"side-bar"==r.botSettings.buttonShape))("ngStyle",r.greetingStyle),v(1),w("ngClass",Ys(10,Bbe,"left"==r.botSettings.screenPosition,"right"==r.botSettings.screenPosition)),v(4),w("ngStyle",r.getPrettyStyle),v(1),Be(" ",r.smallPopup.popup.text," "))},dependencies:[ri,rr],styles:['#gc_greeting_box[_ngcontent-%COMP%]{z-index:100000;width:250px;position:fixed;box-sizing:content-box}#gc_greeting_box[_ngcontent-%COMP%]   #gc_close_button[_ngcontent-%COMP%]{box-sizing:content-box;z-index:100000;height:30px;width:30px;border-radius:50%;display:inline-block;background-color:#fff;box-shadow:2px 2px 4px rgba(0,0,0,.25);text-align:center;vertical-align:top;cursor:pointer}#gc_greeting_box[_ngcontent-%COMP%]   #gc_close_button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:2.5px;height:25px}#gc_greeting_box[_ngcontent-%COMP%]   #gc_close_button.left[_ngcontent-%COMP%]{margin-left:4px}#gc_greeting_box[_ngcontent-%COMP%]   #gc_close_button.right[_ngcontent-%COMP%]{margin-right:4px}#gc_greeting_box[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]{padding:0;z-index:100000;font-family:Roboto,sans-serif;width:210px;height:80px;font-size:14px;line-height:16px;background-color:#fff;color:#000;border-radius:6px;box-shadow:2px 2px 4px rgba(0,0,0,.25);overflow-y:hidden;display:inline-block;overflow-x:hidden;cursor:pointer;box-sizing:content-box}#gc_greeting_box[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]:after{box-sizing:content-box;z-index:-1;content:" ";position:absolute;width:0;height:0;left:auto;right:-9px;top:8px;bottom:auto;border:12px solid;border-color:white transparent transparent white}#gc_greeting_box.left[_ngcontent-%COMP%]   #gc_close_button[_ngcontent-%COMP%]{float:right}#gc_greeting_box.left[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]:after{left:-4px;transform:rotate(-47deg)}#gc_greeting_box.left.bar[_ngcontent-%COMP%]   #gc_close_button[_ngcontent-%COMP%]{float:right}#gc_greeting_box.left.bar[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]:after{left:40px;top:auto;bottom:-7px;transform:rotate(-12deg)}#gc_greeting_box.right.bar[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]:after{right:160px;top:auto;bottom:-10px;transform:rotate(-12deg)}.gc_content[_ngcontent-%COMP%]{text-align:center}']}),n})();function Ube(n,e){if(1&n){const t=he();C(0,"ngx-hitch",4),q("toggleHitch",function(i){return F(t),V(S().onToggleHitch(i))}),E()}2&n&&w("hitch",S().hitch)}function Hbe(n,e){if(1&n){const t=he();C(0,"ngx-ice-breaker",5),q("toggleIceBreaker",function(i){return F(t),V(S().onToggleIceBreaker(i))}),E()}2&n&&w("iceBreakers",S().iceBreakers)}function zbe(n,e){if(1&n){const t=he();C(0,"ngx-small-popup",6),q("toggleSmallPopup",function(i){return F(t),V(S().onToggleSmallPopup(i))}),E()}2&n&&w("smallPopup",S().smallPopup)}function jbe(n,e){1&n&&(C(0,"span",12),X(1),ge(2,"translate"),E()),2&n&&(v(1),Be(" ",_e(2,1,"chatNow")," "))}function Gbe(n,e){1&n&&(C(0,"span")(1,"span",13),X(2),ge(3,"translate"),E()()),2&n&&(v(2),Be(" ",_e(3,1,"chatNow")," "))}function Wbe(n,e){if(1&n&&K(0,"img",14),2&n){const t=S(2);w("src",t.whosTalking.img,fr)("ngStyle",t.backgroundSuccess)}}const qbe=function(n,e,t,r){return{left:n,bar:e,"side-bar":t,round:r}};function Ybe(n,e){if(1&n){const t=he();C(0,"button",7),q("click",function(){return F(t),V(S().onToggleVisible())}),I(1,jbe,3,3,"span",8),I(2,Gbe,4,3,"span",9),I(3,Wbe,1,2,"img",10),C(4,"div",11),X(5,"1"),E()()}if(2&n){const t=S();w("ngClass",Ll(5,qbe,"left"==t.botSettings.screenPosition,"bar"==t.botSettings.buttonShape,"side-bar"==t.botSettings.buttonShape,"round"==t.botSettings.buttonShape))("ngStyle",t.buttonStyle),v(1),w("ngIf","bar"==t.botSettings.buttonShape),v(1),w("ngIf","side-bar"==t.botSettings.buttonShape),v(1),w("ngIf",t.whosTalking.img)}}let Kbe=(()=>{class n{constructor(t,r,i){this.popupService=t,this.chatService=r,this.debugService=i,this.botSettings={title:"",openingLine:"",botImgUrl:null,backgroundColors:["#FFFFFF","#FFFFFF"],screenPosition:"right",introMessage:""},this.backgroundSuccess={},this.buttonStyle={background:"linear-gradient(to bottom right,  #FFFFFF , #FFFFFF)",bottom:"50px",right:"50px",size:"70px"},this.greetingStyle={},this.whosTalking={img:null,title:null},this.showButton$=new et,this.showHitch=!1,this.showIceBreaker=!1,this.showSmallPopup=!1,this.triggerEvents={clicks:0,time:0,scroll:0,mouse:!1},this.triggerEvents$=new nt(this.triggerEvents),this.activeEngagementsOnThisPage=[],this.useNewEngagementMethod=!1,this.scrollTriggered=!1,this.mouseTriggered=!1,this.mouseLastPosition=0,this.showButton$=hi([this.chatService.showButton$,this.chatService.allowBot$]).pipe(on(([s,o])=>s&&o))}onClick(t){this.triggerEvents.clicks++,this.triggerEvents$.next({...this.triggerEvents})}onScroll(t){this.scrollTriggered||(this.triggerEvents.scroll=t.target.children[0].scrollTop,this.triggerEvents$.next({...this.triggerEvents}))}onMouseMove(t){if(!this.mouseTriggered){const r=t.pageY;this.mouseLastPosition>=this.triggerEvents.scroll+10&&r<=this.triggerEvents.scroll+10&&(this.triggerEvents.mouse=!0,this.triggerEvents$.next({...this.triggerEvents}),this.mouseTriggered=!0),this.mouseLastPosition=r}}ngOnInit(){this.startTimer(),this.triggerSub=this.triggerEvents$.subscribe(t=>{let r=!1;this.showHitch||this.showIceBreaker||this.showSmallPopup||this.activeEngagementsOnThisPage.length>0&&this.activeEngagementsOnThisPage.forEach(i=>{this.showHitch||this.showIceBreaker||this.showSmallPopup||("firstLoadDelay"===i.trigger.type&&i.trigger.value===t.time&&(r=!0,clearInterval(this.engagementInterval)),"numberClicks"===i.trigger.type&&i.trigger.value===t.clicks&&(r=!0),"scrollDownPercentage"===i.trigger.type&&t.scroll>=i.trigger.value&&(this.scrollTriggered=!0,r=!0),"movingToExit"===i.trigger.type&&t.mouse&&(r=!0,this.triggerEvents.mouse=!1),r&&("openChatWindow"===i.action&&this.onToggleVisible(!0),"showIceBreakers"===i.action&&i.iceBreakers&&i.iceBreakers.length>0&&(this.iceBreakers={iceBreakers:i.iceBreakers,iceBreakerDelay:i.iceBreakerDelay},this.showIceBreaker=!0),"showSmallPopup"===i.action&&(this.smallPopup=i,this.showSmallPopup=!0),"showBigPopup"===i.action&&(this.hitch=i,this.showHitch=!0)))})}),this.dataSub=hi([this.chatService.botSettingsBS,this.chatService.engagements$,this.chatService.allowBot$]).subscribe(([t,r,i])=>{i&&(this.debugService.logMode&&console.log(t,r),t&&(this.botSettings=t,this.backgroundSuccess={"background-color":t.backgroundColors[0]},"left"===t.screenPosition?"round"===t.buttonShape?(this.buttonStyle={"background-color":t.backgroundColors[0],bottom:t.bottomSpacing+"px",left:t.fromSideSpacing+"px",height:(t.buttonSize||"70")+"px",width:(t.buttonSize||"70")+"px"},this.backgroundSuccess={"background-color":t.backgroundColors[0],height:(t.buttonSize||"70")+"px",width:(t.buttonSize||"70")+"px"}):"bar"===t.buttonShape?this.buttonStyle={"background-color":t.backgroundColors[0],left:t.fromSideSpacing+"px"}:"side-bar"===t.buttonShape&&(this.buttonStyle={"background-color":t.backgroundColors[0],left:"0px",bottom:t.bottomSpacing+"px"}):"round"===t.buttonShape?(this.buttonStyle={"background-color":t.backgroundColors[0],bottom:t.bottomSpacing+"px",right:t.fromSideSpacing+"px",height:(t.buttonSize||"70")+"px",width:(t.buttonSize||"70")+"px"},this.backgroundSuccess={"background-color":t.backgroundColors[0],height:(t.buttonSize||"70")+"px",width:(t.buttonSize||"70")+"px"}):"bar"===t.buttonShape?this.buttonStyle={"background-color":t.backgroundColors[0],right:t.fromSideSpacing+"px"}:"side-bar"===t.buttonShape&&(this.buttonStyle={"background-color":t.backgroundColors[0],right:"0px",bottom:t.bottomSpacing+"px"}),this.useNewEngagementMethod=this.chatService.showEngagements,this.useNewEngagementMethod?r&&r.length>0&&(this.activeEngagementsOnThisPage=[],r.forEach(s=>{s.active&&(s.showOnAllPages||s.showOnPages&&s.showOnPages.split(",").map(l=>l?.trim()).findIndex(l=>window.location.href.indexOf(l)>-1)>-1)&&this.activeEngagementsOnThisPage.push(s)})):this.showOldEngagements()))}),this.whosTalkingSub&&this.whosTalkingSub.unsubscribe(),this.whosTalkingSub=this.chatService.botImage$.subscribe(t=>{t&&(this.whosTalking=t)})}showOldEngagements(){this.botSettings.greetDelay>0&&setTimeout(()=>{this.chatService.hasOpened$.getValue()||this.onToggleVisible(!0)},1e3*this.botSettings.greetDelay),this.botSettings.introMessageDelay>0&&this.botSettings.iceBreakers&&this.botSettings.iceBreakers.length>0&&setTimeout(()=>{this.chatService.hasOpened$.getValue();const r=window.sessionStorage.getItem("iceBreakerOpened");let i=!1;r&&"true"===r&&(i=!0),i||(this.iceBreakers={iceBreakers:this.botSettings.iceBreakers,iceBreakerDelay:0===this.botSettings.greetDelay?5:this.botSettings.greetDelay},this.showIceBreaker=!0)},1e3*this.botSettings.introMessageDelay)}startTimer(){this.engagementInterval=setInterval(()=>{this.triggerEvents.time>100?clearInterval(this.engagementInterval):(this.triggerEvents.time++,this.triggerEvents$.next({...this.triggerEvents}))},1e3)}onToggleHitch(t){this.showHitch=t}onToggleIceBreaker(t){t||window.sessionStorage.setItem("iceBreakerOpened","true"),this.showIceBreaker=t}onToggleSmallPopup(t){this.showSmallPopup=t}onToggleVisible(t=null){let r=this.popupService.showChatBox.getValue();null!==t&&(r=!t),this.popupService.showChatBox.next(!r),this.chatService.showButton$.next(r),this.showIceBreaker=!1,r||(window.sessionStorage.setItem("opened","true"),this.chatService.hasOpened$.next(!0),window.sessionStorage.setItem("iceBreakerOpened","true"))}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe(),this.whosTalkingSub&&this.whosTalkingSub.unsubscribe(),this.engagementInterval&&clearInterval(this.engagementInterval),this.dataSub&&this.dataSub.unsubscribe(),this.triggerSub&&this.triggerSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(vo),R(Nn),R(ss))},n.\u0275cmp=Ut({type:n,selectors:[["gc-start-button"]],hostBindings:function(t,r){1&t&&q("click",function(s){return r.onClick(s)},0,ml)("scroll",function(s){return r.onScroll(s)},!1,ml)("mousemove",function(s){return r.onMouseMove(s)},!1,ml)},decls:5,vars:6,consts:[[3,"hitch","toggleHitch",4,"ngIf"],[3,"iceBreakers","toggleIceBreaker",4,"ngIf"],[3,"smallPopup","toggleSmallPopup",4,"ngIf"],["class","gc-button",3,"ngClass","ngStyle","click",4,"ngIf"],[3,"hitch","toggleHitch"],[3,"iceBreakers","toggleIceBreaker"],[3,"smallPopup","toggleSmallPopup"],[1,"gc-button",3,"ngClass","ngStyle","click"],["class","bar-text",4,"ngIf"],[4,"ngIf"],["alt","","class","avatar",3,"src","ngStyle",4,"ngIf"],["id","gc_exclamation","tabindex","-1"],[1,"bar-text"],[1,"side-bar-text"],["alt","",1,"avatar",3,"src","ngStyle"]],template:function(t,r){1&t&&(I(0,Ube,1,1,"ngx-hitch",0),I(1,Hbe,1,1,"ngx-ice-breaker",1),I(2,zbe,1,1,"ngx-small-popup",2),I(3,Ybe,6,10,"button",3),ge(4,"async")),2&t&&(w("ngIf",r.showHitch),v(1),w("ngIf",r.showIceBreaker),v(1),w("ngIf",r.showSmallPopup),v(1),w("ngIf",_e(4,4,r.showButton$)))},dependencies:[ri,xn,rr,kbe,Fbe,$be,qo,as],styles:['.gc-button{position:fixed;bottom:55px;right:30px;z-index:100000;color:#fff;height:70px;width:70px;border-radius:50%;padding:0;font-size:24px;box-shadow:0 0 10px rgba(0,0,0,.3);border:none;display:flex;cursor:pointer}.gc-button.round img{height:70px;width:70px;border-radius:50%}.gc-button.left #gc_exclamation{right:0px!important}.gc-button #gc_exclamation{background-color:red;width:18px;height:18px;border-radius:50%;position:absolute;font-size:12px;line-height:18px}.gc-button #gc-online{position:absolute;bottom:-12px;width:100%;text-align:center;font-size:12px}.gc-button.bar{width:215px;border-radius:6px 6px 0 0;height:35px;bottom:0px;padding:0 8px;box-sizing:content-box}.gc-button.bar.left #gc_exclamation{right:-6px!important;top:-6px!important}.gc-button.bar:not(.left) #gc_exclamation{right:-6px;top:-6px!important}.gc-button.bar img{height:24px;width:24px;border-radius:50%;margin-top:6px;box-sizing:content-box}.gc-button.bar svg{position:absolute;right:6px;top:6px;width:24px}.gc-button.bar .bar-text{box-sizing:content-box;font-family:Roboto,sans-serif;font-size:14px;vertical-align:super;width:100%;text-align:left;line-height:35px}.gc-button.side-bar{width:32px;border-radius:5px 0 0 5px;height:134px;right:0px;bottom:100px;box-sizing:content-box}.gc-button.side-bar img{height:26px;width:26px;padding:8px 3px;border-radius:50%;box-sizing:content-box}.gc-button.side-bar .side-bar-text{font-family:Roboto,sans-serif;transform:rotate(-90deg);font-size:14px;line-height:32px;color:#fff;position:absolute;width:80px;top:70px;right:-26px;height:32px;box-sizing:content-box;text-align:center}.gc-button.side-bar.left{box-sizing:content-box;border-radius:0 6px 6px 0/0px 6px 6px 0px;left:0px}.gc-button.side-bar #gc_exclamation{display:none}@media screen and (max-height: 400px){button.chat-open{top:7vh}}.hallo-bar{position:fixed;bottom:60px;right:55px;z-index:100000;background-color:#fff;height:50px;width:90px;border-radius:4px;padding:4px;font-family:Roboto,sans-serif;box-shadow:0 0 10px rgba(0,0,0,.3);box-sizing:content-box}.hallo-bar .gc-title{box-sizing:content-box;font-size:22px;font-weight:700;color:red;line-height:25px;width:50px;text-align:center}.hallo-bar .gc-subtitle{box-sizing:content-box;font-size:12px}#gc_greeting_box{z-index:100000;width:250px;position:fixed;box-sizing:content-box}#gc_greeting_box #gc_close_button{box-sizing:content-box;z-index:100000;height:30px;width:30px;border-radius:50%;display:inline-block;background-color:#fff;box-shadow:2px 2px 4px rgba(0,0,0,.25);text-align:center;vertical-align:top;cursor:pointer}#gc_greeting_box #gc_close_button svg{margin-top:2.5px;height:25px}#gc_greeting_box #gc_close_button.left{margin-left:4px}#gc_greeting_box #gc_close_button.right{margin-right:4px}#gc_greeting_box #gc_opening_line{z-index:100001;font-family:Roboto,sans-serif;width:192px;font-size:14px;line-height:16px;background-color:#fff;color:#000;border-radius:6px;box-shadow:2px 2px 4px rgba(0,0,0,.25);padding:12px;overflow-y:hidden;display:inline-block;overflow-x:hidden;cursor:pointer;box-sizing:content-box}#gc_greeting_box #gc_opening_line #gc_opening_text{box-sizing:content-box;text-align:left;white-space:pre-line}#gc_greeting_box #gc_opening_line:after{box-sizing:content-box;z-index:99998;content:" ";position:absolute;width:0;height:0;left:auto;right:-9px;top:8px;bottom:auto;border:12px solid;border-color:white transparent transparent white}#gc_greeting_box.left #gc_close_button{float:right}#gc_greeting_box.left #gc_opening_line:after{left:-4px;transform:rotate(-47deg)}#gc_greeting_box.left.bar #gc_close_button{float:right}#gc_greeting_box.left.bar #gc_opening_line:after{left:40px;top:auto;bottom:-7px;transform:rotate(-12deg)}#gc_greeting_box.right.bar #gc_opening_line:after{right:160px;top:auto;bottom:-10px;transform:rotate(-12deg)}.ice-action{color:#598bff;font-weight:700;cursor:pointer}@keyframes iceBreakerAnimation{0%{transform:rotateX(0)}50%{transform:rotateX(90deg)}to{transform:rotateX(0)}}@media only screen and (max-width: 640px){.gc-button.round,.gc-button.round img{height:56px!important;width:56px!important}}\n'],encapsulation:3}),n})();function Ba(...n){const e=n[n.length-1];return Wa(e)?(n.pop(),t=>e_(n,t,e)):t=>e_(n,t)}let xU=(()=>{class n{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(R(Gs),R(Fn))},n.\u0275dir=Ce({type:n}),n})(),$a=(()=>{class n extends xU{}return n.\u0275fac=function(){let e;return function(r){return(e||(e=ln(n)))(r||n)}}(),n.\u0275dir=Ce({type:n,features:[it]}),n})();const Ni=new ye("NgValueAccessor"),Xbe={provide:Ni,useExisting:dt(()=>_h),multi:!0},Jbe=new ye("CompositionEventMode");let _h=(()=>{class n extends xU{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Zbe(){const n=Go()?Go().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",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 n.\u0275fac=function(t){return new(t||n)(R(Gs),R(Fn),R(Jbe,8))},n.\u0275dir=Ce({type:n,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,r){1&t&&q("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[Ct([Xbe]),it]}),n})();function To(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}const qn=new ye("NgValidators"),xo=new ye("NgAsyncValidators"),t0e=/^(?=.{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])?)*$/;function kU(n){return To(n.value)?{required:!0}:null}function OU(n){return To(n.value)||t0e.test(n.value)?null:{email:!0}}function s_(n){return null}function FU(n){return null!=n}function VU(n){return Df(n)?Gc(n):n}function BU(n){let e={};return n.forEach(t=>{e=null!=t?pt(pt({},e),t):e}),0===Object.keys(e).length?null:e}function $U(n,e){return e.map(t=>t(n))}function UU(n){return n.map(e=>function n0e(n){return!n.validate}(e)?e:t=>e.validate(t))}function fA(n){return null!=n?function HU(n){if(!n)return null;const e=n.filter(FU);return 0==e.length?null:function(t){return BU($U(t,e))}}(UU(n)):null}function pA(n){return null!=n?function zU(n){if(!n)return null;const e=n.filter(FU);return 0==e.length?null:function(t){return mU($U(t,e).map(VU)).pipe(on(BU))}}(UU(n)):null}function jU(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function gA(n){return n?Array.isArray(n)?n:[n]:[]}function o_(n,e){return Array.isArray(n)?n.includes(e):n===e}function qU(n,e){const t=gA(e);return gA(n).forEach(i=>{o_(t,i)||t.push(i)}),t}function YU(n,e){return gA(e).filter(t=>!o_(n,t))}class KU{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(e){this._rawValidators=e||[],this._composedValidatorFn=fA(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=pA(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class cr extends KU{get formDirective(){return null}get path(){return null}}class Io extends KU{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class QU{constructor(e){this._cd=e}get isTouched(){var e,t;return!(null===(e=this._cd)||void 0===e||null===(t=e.control)||void 0===t||!t.touched)}get isUntouched(){var e,t;return!(null===(e=this._cd)||void 0===e||null===(t=e.control)||void 0===t||!t.untouched)}get isPristine(){var e,t;return!(null===(e=this._cd)||void 0===e||null===(t=e.control)||void 0===t||!t.pristine)}get isDirty(){var e,t;return!(null===(e=this._cd)||void 0===e||null===(t=e.control)||void 0===t||!t.dirty)}get isValid(){var e,t;return!(null===(e=this._cd)||void 0===e||null===(t=e.control)||void 0===t||!t.valid)}get isInvalid(){var e,t;return!(null===(e=this._cd)||void 0===e||null===(t=e.control)||void 0===t||!t.invalid)}get isPending(){var e,t;return!(null===(e=this._cd)||void 0===e||null===(t=e.control)||void 0===t||!t.pending)}get isSubmitted(){var e;return!(null===(e=this._cd)||void 0===e||!e.submitted)}}let mA=(()=>{class n extends QU{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(R(Io,2))},n.\u0275dir=Ce({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&Cu("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[it]}),n})(),XU=(()=>{class n extends QU{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(R(cr,10))},n.\u0275dir=Ce({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,r){2&t&&Cu("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[it]}),n})();const vh="VALID",l_="INVALID",Fc="PENDING",bh="DISABLED";function bA(n){return(c_(n)?n.validators:n)||null}function JU(n){return Array.isArray(n)?fA(n):n||null}function wA(n,e){return(c_(e)?e.asyncValidators:n)||null}function eH(n){return Array.isArray(n)?pA(n):n||null}function c_(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class rH{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=JU(this._rawValidators),this._composedAsyncValidatorFn=eH(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===vh}get invalid(){return this.status===l_}get pending(){return this.status==Fc}get disabled(){return this.status===bh}get enabled(){return this.status!==bh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=JU(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=eH(e)}addValidators(e){this.setValidators(qU(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(qU(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(YU(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(YU(e,this._rawAsyncValidators))}hasValidator(e){return o_(this._rawValidators,e)}hasAsyncValidator(e){return o_(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Fc,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=bh,this.errors=null,this._forEachChild(r=>{r.disable(pt(pt({},e),{},{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(pt(pt({},e),{},{skipPristineCheck:t})),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=vh,this._forEachChild(r=>{r.enable(pt(pt({},e),{},{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(pt(pt({},e),{},{skipPristineCheck:t})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===vh||this.status===Fc)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?bh:vh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Fc,this._hasOwnPendingAsyncValidator=!0;const t=VU(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){let t=e;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(e,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new G,this.statusChanges=new G}_calculateStatus(){return this._allControlsDisabled()?bh:this.errors?l_:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fc)?Fc:this._anyControlsHaveStatus(l_)?l_:vh}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){c_(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}}class CA extends rH{constructor(e,t,r){super(bA(t),wA(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,r={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){(function nH(n,e,t){n._forEachChild((r,i)=>{if(void 0===t[i])throw new J(1002,"")})})(this,0,e),Object.keys(e).forEach(r=>{(function tH(n,e,t){const r=n.controls;if(!(e?Object.keys(r):r).length)throw new J(1e3,"");if(!r[t])throw new J(1001,"")})(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(r=>{const i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,r)=>(e[r]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&e(r,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&e(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(e,t){let r=e;return this._forEachChild((i,s)=>{r=t(r,i,s)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}function wh(n,e){var t,r;SA(n,e),e.valueAccessor.writeValue(n.value),n.disabled&&(null===(t=(r=e.valueAccessor).setDisabledState)||void 0===t||t.call(r,!0)),function d0e(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&iH(n,e)})}(n,e),function f0e(n,e){const t=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function h0e(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&iH(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function u0e(n,e){if(e.valueAccessor.setDisabledState){const t=r=>{e.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function h_(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function SA(n,e){const t=function GU(n){return n._rawValidators}(n);null!==e.validator?n.setValidators(jU(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const r=function WU(n){return n._rawAsyncValidators}(n);null!==e.asyncValidator?n.setAsyncValidators(jU(r,e.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();h_(e._rawValidators,i),h_(e._rawAsyncValidators,i)}function iH(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}const _0e={provide:cr,useExisting:dt(()=>p_)},Ch=(()=>Promise.resolve())();let p_=(()=>{class n extends cr{constructor(t,r){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new G,this.form=new CA({},fA(t),pA(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ch.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),wh(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ch.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Ch.then(()=>{const r=this._findContainer(t.path),i=new CA({});(function sH(n,e){SA(n,e)})(i,t),r.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ch.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){Ch.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){var r;return this.submitted=!0,function aH(n,e){n._syncPendingControls(),e.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===(null==t||null===(r=t.target)||void 0===r?void 0:r.method)}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return n.\u0275fac=function(t){return new(t||n)(R(qn,10),R(xo,10))},n.\u0275dir=Ce({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,r){1&t&&q("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ct([_0e]),it]}),n})();function lH(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function cH(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const uH=class extends rH{constructor(e=null,t,r){super(bA(t),wA(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),c_(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=cH(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){lH(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){lH(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){cH(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},w0e={provide:Io,useExisting:dt(()=>g_)},fH=(()=>Promise.resolve())();let g_=(()=>{class n extends Io{constructor(t,r,i,s,o){super(),this._changeDetectorRef=o,this.control=new uH,this._registered=!1,this.update=new G,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=function TA(n,e){if(!e)return null;let t,r,i;return Array.isArray(e),e.forEach(s=>{s.constructor===_h?t=s:function m0e(n){return Object.getPrototypeOf(n.constructor)===$a}(s)?r=s:i=s}),i||r||t||null}(0,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function EA(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){wh(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){fH.then(()=>{var r;this.control.setValue(t,{emitViewToModelChange:!1}),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=0!==r&&d0(r);fH.then(()=>{var s;i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()})}_getPath(t){return this._parent?function u_(n,e){return[...e.path,n]}(t,this._parent):[t]}}return n.\u0275fac=function(t){return new(t||n)(R(cr,9),R(qn,10),R(xo,10),R(Ni,10),R($l,8))},n.\u0275dir=Ce({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ct([w0e]),it,Li]}),n})(),pH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Ce({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),mH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({}),n})(),Ua=(()=>{class n{constructor(){this._validator=s_}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):s_,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Ce({type:n,features:[Li]}),n})();const B0e={provide:qn,useExisting:dt(()=>m_),multi:!0};let m_=(()=>{class n extends Ua{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=d0,this.createValidator=t=>kU}enabled(t){return t}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=ln(n)))(r||n)}}(),n.\u0275dir=Ce({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,r){2&t&&Nr("required",r._enabled?"":null)},inputs:{required:"required"},features:[Ct([B0e]),it]}),n})();const U0e={provide:qn,useExisting:dt(()=>kA),multi:!0};let kA=(()=>{class n extends Ua{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=d0,this.createValidator=t=>OU}enabled(t){return t}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=ln(n)))(r||n)}}(),n.\u0275dir=Ce({type:n,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Ct([U0e]),it]}),n})(),G0e=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({imports:[mH]}),n})(),W0e=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({imports:[G0e]}),n})();class Y0e{constructor(e,t){this.newRect=e,this.oldRect=t,this.isFirst=null==t}}let OH=(()=>{class n{constructor(t,r){this.element=t,this.zone=r,this.resized=new G,this.observer=new ResizeObserver(i=>this.zone.run(()=>this.observe(i)))}ngOnInit(){this.observer.observe(this.element.nativeElement)}ngOnDestroy(){this.observer.disconnect()}observe(t){const r=t[0],i=new Y0e(r.contentRect,this.oldRect);this.oldRect=r.contentRect,this.resized.emit(i)}}return n.\u0275fac=function(t){return new(t||n)(R(Fn),R(vt))},n.\u0275dir=Ce({type:n,selectors:[["","resized",""]],outputs:{resized:"resized"}}),n})(),K0e=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({}),n})();function NH(n,e){qe(2,arguments);var t=ht(n),r=Ye(e);return isNaN(r)?new Date(NaN):(r&&t.setDate(t.getDate()+r),t)}function RH(n,e){qe(2,arguments);var t=ht(n),r=Ye(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var i=t.getDate(),s=new Date(t.getTime());s.setMonth(t.getMonth()+r+1,0);var o=s.getDate();return i>=o?s:(t.setFullYear(s.getFullYear(),s.getMonth(),i),t)}function y_(n){return(y_="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})(n)}function LH(n,e){if(qe(2,arguments),!e||"object"!==y_(e))return new Date(NaN);var t=e.years?Ye(e.years):0,r=e.months?Ye(e.months):0,i=e.weeks?Ye(e.weeks):0,s=e.days?Ye(e.days):0,o=e.hours?Ye(e.hours):0,a=e.minutes?Ye(e.minutes):0,l=e.seconds?Ye(e.seconds):0,c=ht(n),u=r||t?RH(c,r+12*t):c,d=s||i?NH(u,s+7*i):u,h=a+60*o,f=l+60*h,p=1e3*f,g=new Date(d.getTime()+p);return g}function Q0e(n,e){qe(2,arguments);var t=Ye(e);return NH(n,-t)}function X0e(n,e){qe(2,arguments);var t=Ye(e);return RH(n,-t)}function __(n){return(__="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})(n)}function FH(n,e){if(qe(2,arguments),!e||"object"!==__(e))return new Date(NaN);var t=e.years?Ye(e.years):0,r=e.months?Ye(e.months):0,i=e.weeks?Ye(e.weeks):0,s=e.days?Ye(e.days):0,o=e.hours?Ye(e.hours):0,a=e.minutes?Ye(e.minutes):0,l=e.seconds?Ye(e.seconds):0,c=X0e(n,r+12*t),u=Q0e(c,s+7*i),d=a+60*o,h=l+60*d,f=1e3*h,p=new Date(u.getTime()-f);return p}function Vc(n){qe(1,arguments);var e=ht(n);return e.setHours(0,0,0,0),e}function VH(n){qe(1,arguments);var e=ht(n);return e.setHours(23,59,59,999),e}function BH(n,e){qe(2,arguments);var t=Vc(n),r=Vc(e);return t.getTime()===r.getTime()}let $H=(()=>{class n{constructor(t,r,i){this.http=t,this.chatService=r,this.debugService=i,this.pathPostRequest="https://api2.guestchat.com/newPostRequest",this.pathSavePotentialRevenue="https://api2.guestchat.com/bankPotentialRevenue",this.pathNewRequest="https://api2.guestchat.com/newRequest",this.savedNumberNights=1,this.headers=(new Mi).set("content-type","application/json").set("authorization","Bearer cvisdj dsiofhosf340sdfm;234m;mcsdsgsgse"),this.debugService.devMode&&(this.pathNewRequest="http://localhost:3000/newRequest",this.pathPostRequest="http://localhost:3000/newPostRequest",this.pathSavePotentialRevenue="http://localhost:3000/bankPotentialRevenue")}addRequest(t){var r=this;return M(function*(){return new Promise(i=>{r.chatService.postIsLoading$.next(!0);const s={...r.chatService.getClientAndSession(),...t};r.chatService.botIsTyping$.next(!0),r.http.post(r.pathNewRequest,s,{headers:r.headers}).subscribe(o=>{r.chatService.postIsLoading$.next(!1),i("success")},()=>{r.chatService.botIsTyping$.next(!1),r.chatService.postIsLoading$.next(!1),r.chatService.showErrorMessage(),i("error")})})})()}addPost(t,r){var i=this;return M(function*(){return new Promise((s,o)=>{i.chatService.postIsLoading$.next(!0);const a={...i.chatService.getClientAndSession(),interface:"widget",...t,postType:r};i.debugService.logMode&&console.log(a),s("success"),i.http.post(i.pathPostRequest,a,{headers:i.headers}).subscribe(l=>{l.length>0?(i.chatService.postIsLoading$.next(!1),s("success")):(i.chatService.botIsTyping$.next(!1),i.chatService.postIsLoading$.next(!1),s("error"))},l=>{i.chatService.botIsTyping$.next(!1),i.chatService.postIsLoading$.next(!1),i.chatService.canPostReply$.next(!0),i.chatService.showErrorMessage(),s("error")})})})()}savePotentialRevenue(t,r,i){var s=this;return M(function*(){return new Promise((o,a)=>{const l=t*r,c={...s.chatService.getClientAndSession(),bookingValue:l,bookingNumNights:r,bookingDate:i,bookingClicked:!0};s.http.post(s.pathSavePotentialRevenue,c,{headers:s.headers}).subscribe(u=>{o("success")},u=>{o("success")})})})()}}return n.\u0275fac=function(t){return new(t||n)(ae(F0),ae(Nn),ae(ss))},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Yn=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.IN="in",n.LESS_THAN="lt",n.LESS_THAN_OR_EQUAL_TO="lte",n.GREATER_THAN="gt",n.GREATER_THAN_OR_EQUAL_TO="gte",n.BETWEEN="between",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.DATE_IS="dateIs",n.DATE_IS_NOT="dateIsNot",n.DATE_BEFORE="dateBefore",n.DATE_AFTER="dateAfter",n})(),Z0e=(()=>{class n{constructor(){this.clickSource=new cs,this.clickObservable=this.clickSource.asObservable()}add(t){t&&this.clickSource.next(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),PA=(()=>{class n{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[Yn.STARTS_WITH,Yn.CONTAINS,Yn.NOT_CONTAINS,Yn.ENDS_WITH,Yn.EQUALS,Yn.NOT_EQUALS],numeric:[Yn.EQUALS,Yn.NOT_EQUALS,Yn.LESS_THAN,Yn.LESS_THAN_OR_EQUAL_TO,Yn.GREATER_THAN,Yn.GREATER_THAN_OR_EQUAL_TO],date:[Yn.DATE_IS,Yn.DATE_IS_NOT,Yn.DATE_BEFORE,Yn.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new cs,this.translationObserver=this.translationSource.asObservable()}getTranslation(t){return this.translation[t]}setTranslation(t){this.translation=pt(pt({},this.translation),t),this.translationSource.next(this.translation)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),J0e=(()=>{class n{constructor(t){this.template=t}getType(){return this.name}}return n.\u0275fac=function(t){return new(t||n)(R(xi))},n.\u0275dir=Ce({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),n})(),UH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({imports:[Ul]}),n})(),ls=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.NO_FILTER="noFilter",n.LT="lt",n.LTE="lte",n.GT="gt",n.GTE="gte",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.CLEAR="clear",n.APPLY="apply",n.MATCH_ALL="matchAll",n.MATCH_ANY="matchAny",n.ADD_RULE="addRule",n.REMOVE_RULE="removeRule",n.ACCEPT="accept",n.REJECT="reject",n.CHOOSE="choose",n.UPLOAD="upload",n.CANCEL="cancel",n.DAY_NAMES="dayNames",n.DAY_NAMES_SHORT="dayNamesShort",n.DAY_NAMES_MIN="dayNamesMin",n.MONTH_NAMES="monthNames",n.MONTH_NAMES_SHORT="monthNamesShort",n.FIRST_DAY_OF_WEEK="firstDayOfWeek",n.TODAY="today",n.WEEK_HEADER="weekHeader",n.WEAK="weak",n.MEDIUM="medium",n.STRONG="strong",n.PASSWORD_PROMPT="passwordPrompt",n.EMPTY_MESSAGE="emptyMessage",n.EMPTY_FILTER_MESSAGE="emptyFilterMessage",n})(),ce=(()=>{class n{static addClass(t,r){t&&r&&(t.classList?t.classList.add(r):t.className+=" "+r)}static addMultipleClasses(t,r){if(t&&r)if(t.classList){let i=r.trim().split(" ");for(let s=0;s<i.length;s++)t.classList.add(i[s])}else{let i=r.split(" ");for(let s=0;s<i.length;s++)t.className+=" "+i[s]}}static removeClass(t,r){t&&r&&(t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," "))}static hasClass(t,r){return!(!t||!r)&&(t.classList?t.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(t.className))}static siblings(t){return Array.prototype.filter.call(t.parentNode.children,function(r){return r!==t})}static find(t,r){return Array.from(t.querySelectorAll(r))}static findSingle(t,r){return t?t.querySelector(r):null}static index(t){let r=t.parentNode.childNodes,i=0;for(var s=0;s<r.length;s++){if(r[s]==t)return i;1==r[s].nodeType&&i++}return-1}static indexWithinGroup(t,r){let i=t.parentNode?t.parentNode.childNodes:[],s=0;for(var o=0;o<i.length;o++){if(i[o]==t)return s;i[o].attributes&&i[o].attributes[r]&&1==i[o].nodeType&&s++}return-1}static appendOverlay(t,r,i="self"){"self"!==i&&t&&r&&this.appendChild(t,r)}static alignOverlay(t,r,i="self",s=!0){t&&r&&(s&&(t.style.minWidth||(t.style.minWidth=n.getOuterWidth(r)+"px")),"self"===i?this.relativePosition(t,r):this.absolutePosition(t,r))}static relativePosition(t,r){const i=g=>{if(g)return"relative"===getComputedStyle(g).getPropertyValue("position")?g:i(g.parentElement)},s=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),o=r.offsetHeight,a=r.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),h=i(t)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let f,p;a.top+o+s.height>u.height?(f=a.top-h.top-s.height,t.style.transformOrigin="bottom",a.top+f<0&&(f=-1*a.top)):(f=o+a.top-h.top,t.style.transformOrigin="top"),p=s.width>u.width?-1*(a.left-h.left):a.left-h.left+s.width>u.width?-1*(a.left-h.left+s.width-u.width):a.left-h.left,t.style.top=f+"px",t.style.left=p+"px"}static absolutePosition(t,r){const i=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),s=i.height,o=i.width,a=r.offsetHeight,l=r.offsetWidth,c=r.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),h=this.getViewport();let f,p;c.top+a+s>h.height?(f=c.top+u-s,t.style.transformOrigin="bottom",f<0&&(f=u)):(f=a+c.top+u,t.style.transformOrigin="top"),p=c.left+o>h.width?Math.max(0,c.left+d+l-o):c.left+d,t.style.top=f+"px",t.style.left=p+"px"}static getParents(t,r=[]){return null===t.parentNode?r:this.getParents(t.parentNode,r.concat([t.parentNode]))}static getScrollableParents(t){let r=[];if(t){let i=this.getParents(t);const s=/(auto|scroll)/,o=a=>{let l=window.getComputedStyle(a,null);return s.test(l.getPropertyValue("overflow"))||s.test(l.getPropertyValue("overflowX"))||s.test(l.getPropertyValue("overflowY"))};for(let a of i){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&o(d)&&r.push(d)}}9!==a.nodeType&&o(a)&&r.push(a)}}return r}static getHiddenElementOuterHeight(t){t.style.visibility="hidden",t.style.display="block";let r=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",r}static getHiddenElementOuterWidth(t){t.style.visibility="hidden",t.style.display="block";let r=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",r}static getHiddenElementDimensions(t){let r={};return t.style.visibility="hidden",t.style.display="block",r.width=t.offsetWidth,r.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",r}static scrollInView(t,r){let i=getComputedStyle(t).getPropertyValue("borderTopWidth"),s=i?parseFloat(i):0,o=getComputedStyle(t).getPropertyValue("paddingTop"),a=o?parseFloat(o):0,l=t.getBoundingClientRect(),u=r.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-s-a,d=t.scrollTop,h=t.clientHeight,f=this.getOuterHeight(r);u<0?t.scrollTop=d+u:u+f>h&&(t.scrollTop=d+u-h+f)}static fadeIn(t,r){t.style.opacity=0;let i=+new Date,s=0,o=function(){s=+t.style.opacity.replace(",",".")+((new Date).getTime()-i)/r,t.style.opacity=s,i=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static fadeOut(t,r){var i=1,a=50/r;let l=setInterval(()=>{(i-=a)<=0&&(i=0,clearInterval(l)),t.style.opacity=i},50)}static getWindowScrollTop(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}static getWindowScrollLeft(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}static matches(t,r){var i=Element.prototype;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}).call(t,r)}static getOuterWidth(t,r){let i=t.offsetWidth;if(r){let s=getComputedStyle(t);i+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return i}static getHorizontalPadding(t){let r=getComputedStyle(t);return parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)}static getHorizontalMargin(t){let r=getComputedStyle(t);return parseFloat(r.marginLeft)+parseFloat(r.marginRight)}static innerWidth(t){let r=t.offsetWidth,i=getComputedStyle(t);return r+=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),r}static width(t){let r=t.offsetWidth,i=getComputedStyle(t);return r-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),r}static getInnerHeight(t){let r=t.offsetHeight,i=getComputedStyle(t);return r+=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),r}static getOuterHeight(t,r){let i=t.offsetHeight;if(r){let s=getComputedStyle(t);i+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return i}static getHeight(t){let r=t.offsetHeight,i=getComputedStyle(t);return r-=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),r}static getWidth(t){let r=t.offsetWidth,i=getComputedStyle(t);return r-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),r}static getViewport(){let t=window,r=document,i=r.documentElement,s=r.getElementsByTagName("body")[0];return{width:t.innerWidth||i.clientWidth||s.clientWidth,height:t.innerHeight||i.clientHeight||s.clientHeight}}static getOffset(t){var r=t.getBoundingClientRect();return{top:r.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:r.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(t,r){let i=t.parentNode;if(!i)throw"Can't replace element";return i.replaceChild(r,t)}static getUserAgent(){return navigator.userAgent}static isIE(){var t=window.navigator.userAgent;return t.indexOf("MSIE ")>0||(t.indexOf("Trident/")>0?(t.indexOf("rv:"),!0):t.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(t,r){if(this.isElement(r))r.appendChild(t);else{if(!r.el||!r.el.nativeElement)throw"Cannot append "+r+" to "+t;r.el.nativeElement.appendChild(t)}}static removeChild(t,r){if(this.isElement(r))r.removeChild(t);else{if(!r.el||!r.el.nativeElement)throw"Cannot remove "+t+" from "+r;r.el.nativeElement.removeChild(t)}}static removeElement(t){"remove"in Element.prototype?t.remove():t.parentNode.removeChild(t)}static isElement(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}static calculateScrollbarWidth(t){if(t){let r=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let r=document.createElement("div");r.className="p-scrollbar-measure",document.body.appendChild(r);let i=r.offsetWidth-r.clientWidth;return document.body.removeChild(r),this.calculatedScrollbarWidth=i,i}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let r=t.offsetHeight-t.clientHeight;return document.body.removeChild(t),this.calculatedScrollbarWidth=r,r}static invokeElementMethod(t,r,i){t[r].apply(t,i)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let t=this.resolveUserAgent();this.browser={},t.browser&&(this.browser[t.browser]=!0,this.browser.version=t.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let t=navigator.userAgent.toLowerCase(),r=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:r[1]||"",version:r[2]||"0"}}static isInteger(t){return Number.isInteger?Number.isInteger(t):"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}static isHidden(t){return!t||null===t.offsetParent}static isVisible(t){return t&&null!=t.offsetParent}static isExist(t){return null!==t&&typeof t<"u"&&t.nodeName&&t.parentNode}static focus(t,r){t&&document.activeElement!==t&&t.focus(r)}static getFocusableElements(t){let r=n.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),i=[];for(let s of r)"none"!=getComputedStyle(s).display&&"hidden"!=getComputedStyle(s).visibility&&i.push(s);return i}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(t,r){if(!t)return null;switch(t){case"document":return document;case"window":return window;case"@next":return r?.nextElementSibling;case"@prev":return r?.previousElementSibling;case"@parent":return r?.parentElement;case"@grandparent":return r?.parentElement.parentElement;default:const i=typeof t;if("string"===i)return document.querySelector(t);if("object"===i&&t.hasOwnProperty("nativeElement"))return this.isExist(t.nativeElement)?t.nativeElement:void 0;const o=(a=t)&&a.constructor&&a.call&&a.apply?t():t;return o&&9===o.nodeType||this.isExist(o)?o:null}var a}}return n.zindex=1e3,n.calculatedScrollbarWidth=null,n.calculatedScrollbarHeight=null,n})();class ewe{constructor(e,t=(()=>{})){this.element=e,this.listener=t}bindScrollListener(){this.scrollableParents=ce.getScrollableParents(this.element);for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}let twe=(()=>{class n{constructor(t,r,i){this.el=t,this.zone=r,this.config=i}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(t){let r=this.getInk();if(!r||"none"===getComputedStyle(r,null).display)return;if(ce.removeClass(r,"p-ink-active"),!ce.getHeight(r)&&!ce.getWidth(r)){let a=Math.max(ce.getOuterWidth(this.el.nativeElement),ce.getOuterHeight(this.el.nativeElement));r.style.height=a+"px",r.style.width=a+"px"}let i=ce.getOffset(this.el.nativeElement),s=t.pageX-i.left+document.body.scrollTop-ce.getWidth(r)/2,o=t.pageY-i.top+document.body.scrollLeft-ce.getHeight(r)/2;r.style.top=o+"px",r.style.left=s+"px",ce.addClass(r,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&ce.removeClass(a,"p-ink-active")},401)}getInk(){for(let t=0;t<this.el.nativeElement.children.length;t++)if(-1!==this.el.nativeElement.children[t].className.indexOf("p-ink"))return this.el.nativeElement.children[t];return null}resetInk(){let t=this.getInk();t&&ce.removeClass(t,"p-ink-active")}onAnimationEnd(t){this.timeout&&clearTimeout(this.timeout),ce.removeClass(t.currentTarget,"p-ink-active")}create(){let t=document.createElement("span");t.className="p-ink",this.el.nativeElement.appendChild(t),this.animationListener=this.onAnimationEnd.bind(this),t.addEventListener("animationend",this.animationListener)}remove(){let t=this.getInk();t&&(this.el.nativeElement.removeEventListener("mousedown",this.mouseDownListener),t.removeEventListener("animationend",this.animationListener),ce.removeElement(t))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return n.\u0275fac=function(t){return new(t||n)(R(Fn),R(vt),R(PA,8))},n.\u0275dir=Ce({type:n,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]}),n})(),HH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({imports:[Ul]}),n})();class v_{static equals(e,t,r){return r?this.resolveFieldData(e,r)===this.resolveFieldData(t,r):this.equalsByValue(e,t)}static equalsByValue(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var s,o,a,r=Array.isArray(e),i=Array.isArray(t);if(r&&i){if((o=e.length)!=t.length)return!1;for(s=o;0!=s--;)if(!this.equalsByValue(e[s],t[s]))return!1;return!0}if(r!=i)return!1;var l=e instanceof Date,c=t instanceof Date;if(l!=c)return!1;if(l&&c)return e.getTime()==t.getTime();var u=e instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==t.toString();var h=Object.keys(e);if((o=h.length)!==Object.keys(t).length)return!1;for(s=o;0!=s--;)if(!Object.prototype.hasOwnProperty.call(t,h[s]))return!1;for(s=o;0!=s--;)if(!this.equalsByValue(e[a=h[s]],t[a]))return!1;return!0}return e!=e&&t!=t}static resolveFieldData(e,t){if(e&&t){if(this.isFunction(t))return t(e);if(-1==t.indexOf("."))return e[t];{let r=t.split("."),i=e;for(let s=0,o=r.length;s<o;++s){if(null==i)return null;i=i[r[s]]}return i}}return null}static isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)}static reorderArray(e,t,r){e&&t!==r&&(r>=e.length&&(r%=e.length,t%=e.length),e.splice(r,0,e.splice(t,1)[0]))}static insertIntoOrderedArray(e,t,r,i){if(r.length>0){let s=!1;for(let o=0;o<r.length;o++)if(this.findIndexInList(r[o],i)>t){r.splice(o,0,e),s=!0;break}s||r.push(e)}else r.push(e)}static findIndexInList(e,t){let r=-1;if(t)for(let i=0;i<t.length;i++)if(t[i]==e){r=i;break}return r}static contains(e,t){if(null!=e&&t&&t.length)for(let r of t)if(this.equals(e,r))return!0;return!1}static removeAccents(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}static isEmpty(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"==typeof e&&0===Object.keys(e).length}static isNotEmpty(e){return!this.isEmpty(e)}static compare(e,t,r,i=1){let s=-1;const o=this.isEmpty(e),a=this.isEmpty(t);return s=o&&a?0:o?i:a?-i:"string"==typeof e&&"string"==typeof t?e.localeCompare(t,r,{numeric:!0}):e<t?-1:e>t?1:0,s}static sort(e,t,r=1,i,s=1){return(1===s?r:s)*v_.compare(e,t,i,r)}static merge(e,t){return null!=e&&"object"!=typeof e||null!=t&&"object"!=typeof t?null!=e&&"string"!=typeof e||null!=t&&"string"!=typeof t?t||e:[e||"",t||""].join(" "):pt(pt({},e||{}),t||{})}}var zH=0,b_=function rwe(){let n=[];const i=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:i,set:(s,o,a)=>{o&&(o.style.zIndex=String(((s,o)=>{let a=n.length>0?n[n.length-1]:{key:s,value:o},l=a.value+(a.key===s?0:o)+1;return n.push({key:s,value:l}),l})(s,a)))},clear:s=>{s&&((s=>{n=n.filter(o=>o.value!==s)})(i(s)),s.style.zIndex="")},getCurrent:()=>n.length>0?n[n.length-1].value:0}}();let swe=(()=>{class n{constructor(t){this.el=t,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1}get label(){return this._label}set label(t){this._label=t,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(t){this._icon=t,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(t){this._loading=t,this.initialized&&(this.updateIcon(),this.setStyleClass())}ngAfterViewInit(){this._initialStyleClass=this.el.nativeElement.className,ce.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){let t="p-button p-component";return this.icon&&!this.label&&v_.isEmpty(this.el.nativeElement.textContent)&&(t+=" p-button-icon-only"),this.loading&&(t+=" p-disabled p-button-loading",!this.icon&&this.label&&(t+=" p-button-loading-label-only")),t}setStyleClass(){let t=this.getStyleClass();this.el.nativeElement.className=t+" "+this._initialStyleClass}createLabel(){if(this.label){let t=document.createElement("span");this.icon&&!this.label&&t.setAttribute("aria-hidden","true"),t.className="p-button-label",t.appendChild(document.createTextNode(this.label)),this.el.nativeElement.appendChild(t)}}createIcon(){if(this.icon||this.loading){let t=document.createElement("span");t.className="p-button-icon",t.setAttribute("aria-hidden","true");let r=this.label?"p-button-icon-"+this.iconPos:null;r&&ce.addClass(t,r);let i=this.getIconClass();i&&ce.addMultipleClasses(t,i),this.el.nativeElement.insertBefore(t,this.el.nativeElement.firstChild)}}updateLabel(){let t=ce.findSingle(this.el.nativeElement,".p-button-label");this.label?t?t.textContent=this.label:this.createLabel():t&&this.el.nativeElement.removeChild(t)}updateIcon(){let t=ce.findSingle(this.el.nativeElement,".p-button-icon");this.icon||this.loading?t?t.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon():t&&this.el.nativeElement.removeChild(t)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}ngOnDestroy(){this.initialized=!1}}return n.\u0275fac=function(t){return new(t||n)(R(Fn))},n.\u0275dir=Ce({type:n,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),n})(),jH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({imports:[Ul,HH]}),n})();const owe=["container"],awe=["inputfield"],lwe=["contentWrapper"];function cwe(n,e){if(1&n){const t=he();C(0,"i",8),q("click",function(){return F(t),V(S(2).clear())}),E()}}function uwe(n,e){if(1&n){const t=he();C(0,"button",9),q("click",function(i){F(t),S();const s=wu(1);return V(S().onButtonClick(i,s))}),E()}if(2&n){const t=S(2);w("icon",t.icon)("disabled",t.disabled),Nr("aria-label",t.iconAriaLabel)}}function dwe(n,e){if(1&n){const t=he();C(0,"input",4,5),q("focus",function(i){return F(t),V(S().onInputFocus(i))})("keydown",function(i){return F(t),V(S().onInputKeydown(i))})("click",function(){return F(t),V(S().onInputClick())})("blur",function(i){return F(t),V(S().onInputBlur(i))})("input",function(i){return F(t),V(S().onUserInput(i))}),E(),I(2,cwe,1,0,"i",6),I(3,uwe,1,3,"button",7)}if(2&n){const t=S();Su(t.inputStyleClass),w("value",t.inputFieldValue)("readonly",t.readonlyInput)("ngStyle",t.inputStyle)("placeholder",t.placeholder||"")("disabled",t.disabled)("ngClass","p-inputtext p-component"),Nr("id",t.inputId)("name",t.name)("required",t.required)("aria-required",t.required)("tabindex",t.tabindex)("inputmode",t.touchUI?"off":null)("aria-labelledby",t.ariaLabelledBy),v(2),w("ngIf",t.showClear&&!t.disabled&&null!=t.value),v(1),w("ngIf",t.showIcon)}}function hwe(n,e){1&n&&kl(0)}function fwe(n,e){if(1&n){const t=he();C(0,"button",30),q("keydown",function(i){return F(t),V(S(4).onContainerButtonKeydown(i))})("click",function(i){return F(t),V(S(4).onPrevButtonClick(i))}),K(1,"span",31),E()}}function pwe(n,e){if(1&n){const t=he();C(0,"button",32),q("click",function(i){return F(t),V(S(4).switchToMonthView(i))})("keydown",function(i){return F(t),V(S(4).onContainerButtonKeydown(i))}),X(1),E()}if(2&n){const t=S().$implicit,r=S(3);w("disabled",r.switchViewButtonDisabled()),v(1),Be(" ",r.getMonthName(t.month)," ")}}function gwe(n,e){if(1&n){const t=he();C(0,"button",33),q("click",function(i){return F(t),V(S(4).switchToYearView(i))})("keydown",function(i){return F(t),V(S(4).onContainerButtonKeydown(i))}),X(1),E()}if(2&n){const t=S().$implicit,r=S(3);w("disabled",r.switchViewButtonDisabled()),v(1),Be(" ",r.getYear(t)," ")}}function mwe(n,e){if(1&n&&(Xr(0),X(1),Zr()),2&n){const t=S(5);v(1),Ho("",t.yearPickerValues()[0]," - ",t.yearPickerValues()[t.yearPickerValues().length-1],"")}}function ywe(n,e){1&n&&kl(0)}const GH=function(n){return{$implicit:n}};function _we(n,e){if(1&n&&(C(0,"span",34),I(1,mwe,2,2,"ng-container",13),I(2,ywe,1,0,"ng-container",35),E()),2&n){const t=S(4);v(1),w("ngIf",!t.decadeTemplate),v(1),w("ngTemplateOutlet",t.decadeTemplate)("ngTemplateOutletContext",pe(3,GH,t.yearPickerValues))}}function vwe(n,e){if(1&n&&(C(0,"th",41)(1,"span"),X(2),E()()),2&n){const t=S(5);v(2),be(t.getTranslation("weekHeader"))}}function bwe(n,e){if(1&n&&(C(0,"th",42)(1,"span"),X(2),E()()),2&n){const t=e.$implicit;v(2),be(t)}}function wwe(n,e){if(1&n&&(C(0,"td",45)(1,"span",46),X(2),E()()),2&n){const t=S().index,r=S(2).$implicit;v(2),Be(" ",r.weekNumbers[t]," ")}}function Cwe(n,e){if(1&n&&(Xr(0),X(1),Zr()),2&n){const t=S(2).$implicit;v(1),be(t.day)}}function Swe(n,e){1&n&&kl(0)}const WH=function(n,e){return{"p-highlight":n,"p-disabled":e}};function Ewe(n,e){if(1&n){const t=he();Xr(0),C(1,"span",48),q("click",function(i){F(t);const s=S().$implicit;return V(S(6).onDateSelect(i,s))})("keydown",function(i){F(t);const s=S().$implicit,o=S(3).index;return V(S(3).onDateCellKeydown(i,s,o))}),I(2,Cwe,2,1,"ng-container",13),I(3,Swe,1,0,"ng-container",35),E(),Zr()}if(2&n){const t=S().$implicit,r=S(6);v(1),w("ngClass",Ys(4,WH,r.isSelected(t),!t.selectable)),v(1),w("ngIf",!r.dateTemplate),v(1),w("ngTemplateOutlet",r.dateTemplate)("ngTemplateOutletContext",pe(7,GH,t))}}const Twe=function(n,e){return{"p-datepicker-other-month":n,"p-datepicker-today":e}};function xwe(n,e){if(1&n&&(C(0,"td",47),I(1,Ewe,4,9,"ng-container",13),E()),2&n){const t=e.$implicit,r=S(6);w("ngClass",Ys(2,Twe,t.otherMonth,t.today)),v(1),w("ngIf",!t.otherMonth||r.showOtherMonths)}}function Iwe(n,e){if(1&n&&(C(0,"tr"),I(1,wwe,3,1,"td",43),I(2,xwe,2,5,"td",44),E()),2&n){const t=e.$implicit,r=S(5);v(1),w("ngIf",r.showWeek),v(1),w("ngForOf",t)}}function Dwe(n,e){if(1&n&&(C(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),I(4,vwe,3,1,"th",38),I(5,bwe,3,1,"th",39),E()(),C(6,"tbody"),I(7,Iwe,3,2,"tr",40),E()()()),2&n){const t=S().$implicit,r=S(3);v(4),w("ngIf",r.showWeek),v(1),w("ngForOf",r.weekDays),v(2),w("ngForOf",t.dates)}}function Awe(n,e){if(1&n){const t=he();C(0,"div",20)(1,"div",21),I(2,fwe,2,0,"button",22),C(3,"div",23),I(4,pwe,2,2,"button",24),I(5,gwe,2,2,"button",25),I(6,_we,3,5,"span",26),E(),C(7,"button",27),q("keydown",function(i){return F(t),V(S(3).onContainerButtonKeydown(i))})("click",function(i){return F(t),V(S(3).onNextButtonClick(i))}),K(8,"span",28),E()(),I(9,Dwe,8,3,"div",29),E()}if(2&n){const t=e.index,r=S(3);v(2),w("ngIf",0===t),v(2),w("ngIf","date"===r.currentView),v(1),w("ngIf","year"!==r.currentView),v(1),w("ngIf","year"===r.currentView),v(1),$n("display",1===r.numberOfMonths||t===r.numberOfMonths-1?"inline-flex":"none"),v(2),w("ngIf","date"===r.currentView)}}function Mwe(n,e){if(1&n){const t=he();C(0,"span",51),q("click",function(i){const o=F(t).index;return V(S(4).onMonthSelect(i,o))})("keydown",function(i){const o=F(t).index;return V(S(4).onMonthCellKeydown(i,o))}),X(1),E()}if(2&n){const t=e.$implicit,r=e.index,i=S(4);w("ngClass",Ys(2,WH,i.isMonthSelected(r),i.isMonthDisabled(r))),v(1),Be(" ",t," ")}}function kwe(n,e){if(1&n&&(C(0,"div",49),I(1,Mwe,2,5,"span",50),E()),2&n){const t=S(3);v(1),w("ngForOf",t.monthPickerValues())}}const Pwe=function(n){return{"p-highlight":n}};function Owe(n,e){if(1&n){const t=he();C(0,"span",54),q("click",function(i){const o=F(t).$implicit;return V(S(4).onYearSelect(i,o))})("keydown",function(i){const o=F(t).$implicit;return V(S(4).onYearCellKeydown(i,o))}),X(1),E()}if(2&n){const t=e.$implicit,r=S(4);w("ngClass",pe(2,Pwe,r.isYearSelected(t))),v(1),Be(" ",t," ")}}function Nwe(n,e){if(1&n&&(C(0,"div",52),I(1,Owe,2,4,"span",53),E()),2&n){const t=S(3);v(1),w("ngForOf",t.yearPickerValues())}}function Rwe(n,e){if(1&n&&(Xr(0),C(1,"div",16),I(2,Awe,10,7,"div",17),E(),I(3,kwe,2,1,"div",18),I(4,Nwe,2,1,"div",19),Zr()),2&n){const t=S(2);v(2),w("ngForOf",t.months),v(1),w("ngIf","month"===t.currentView),v(1),w("ngIf","year"===t.currentView)}}function Lwe(n,e){1&n&&(Xr(0),X(1,"0"),Zr())}function Fwe(n,e){1&n&&(Xr(0),X(1,"0"),Zr())}function Vwe(n,e){if(1&n&&(C(0,"div",60)(1,"span"),X(2),E()()),2&n){const t=S(3);v(2),be(t.timeSeparator)}}function Bwe(n,e){1&n&&(Xr(0),X(1,"0"),Zr())}function $we(n,e){if(1&n){const t=he();C(0,"div",65)(1,"button",57),q("keydown",function(i){return F(t),V(S(3).onContainerButtonKeydown(i))})("keydown.enter",function(i){return F(t),V(S(3).incrementSecond(i))})("keydown.space",function(i){return F(t),V(S(3).incrementSecond(i))})("mousedown",function(i){return F(t),V(S(3).onTimePickerElementMouseDown(i,2,1))})("mouseup",function(i){return F(t),V(S(3).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return F(t),V(S(3).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return F(t),V(S(3).onTimePickerElementMouseUp(i))})("mouseleave",function(){return F(t),V(S(3).onTimePickerElementMouseLeave())}),K(2,"span",58),E(),C(3,"span"),I(4,Bwe,2,0,"ng-container",13),X(5),E(),C(6,"button",57),q("keydown",function(i){return F(t),V(S(3).onContainerButtonKeydown(i))})("keydown.enter",function(i){return F(t),V(S(3).decrementSecond(i))})("keydown.space",function(i){return F(t),V(S(3).decrementSecond(i))})("mousedown",function(i){return F(t),V(S(3).onTimePickerElementMouseDown(i,2,-1))})("mouseup",function(i){return F(t),V(S(3).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return F(t),V(S(3).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return F(t),V(S(3).onTimePickerElementMouseUp(i))})("mouseleave",function(){return F(t),V(S(3).onTimePickerElementMouseLeave())}),K(7,"span",59),E()()}if(2&n){const t=S(3);v(4),w("ngIf",t.currentSecond<10),v(1),be(t.currentSecond)}}function Uwe(n,e){if(1&n){const t=he();C(0,"div",66)(1,"button",67),q("keydown",function(i){return F(t),V(S(3).onContainerButtonKeydown(i))})("click",function(i){return F(t),V(S(3).toggleAMPM(i))})("keydown.enter",function(i){return F(t),V(S(3).toggleAMPM(i))}),K(2,"span",58),E(),C(3,"span"),X(4),E(),C(5,"button",67),q("keydown",function(i){return F(t),V(S(3).onContainerButtonKeydown(i))})("click",function(i){return F(t),V(S(3).toggleAMPM(i))})("keydown.enter",function(i){return F(t),V(S(3).toggleAMPM(i))}),K(6,"span",59),E()()}if(2&n){const t=S(3);v(4),be(t.pm?"PM":"AM")}}function Hwe(n,e){if(1&n){const t=he();C(0,"div",55)(1,"div",56)(2,"button",57),q("keydown",function(i){return F(t),V(S(2).onContainerButtonKeydown(i))})("keydown.enter",function(i){return F(t),V(S(2).incrementHour(i))})("keydown.space",function(i){return F(t),V(S(2).incrementHour(i))})("mousedown",function(i){return F(t),V(S(2).onTimePickerElementMouseDown(i,0,1))})("mouseup",function(i){return F(t),V(S(2).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return F(t),V(S(2).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return F(t),V(S(2).onTimePickerElementMouseUp(i))})("mouseleave",function(){return F(t),V(S(2).onTimePickerElementMouseLeave())}),K(3,"span",58),E(),C(4,"span"),I(5,Lwe,2,0,"ng-container",13),X(6),E(),C(7,"button",57),q("keydown",function(i){return F(t),V(S(2).onContainerButtonKeydown(i))})("keydown.enter",function(i){return F(t),V(S(2).decrementHour(i))})("keydown.space",function(i){return F(t),V(S(2).decrementHour(i))})("mousedown",function(i){return F(t),V(S(2).onTimePickerElementMouseDown(i,0,-1))})("mouseup",function(i){return F(t),V(S(2).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return F(t),V(S(2).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return F(t),V(S(2).onTimePickerElementMouseUp(i))})("mouseleave",function(){return F(t),V(S(2).onTimePickerElementMouseLeave())}),K(8,"span",59),E()(),C(9,"div",60)(10,"span"),X(11),E()(),C(12,"div",61)(13,"button",57),q("keydown",function(i){return F(t),V(S(2).onContainerButtonKeydown(i))})("keydown.enter",function(i){return F(t),V(S(2).incrementMinute(i))})("keydown.space",function(i){return F(t),V(S(2).incrementMinute(i))})("mousedown",function(i){return F(t),V(S(2).onTimePickerElementMouseDown(i,1,1))})("mouseup",function(i){return F(t),V(S(2).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return F(t),V(S(2).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return F(t),V(S(2).onTimePickerElementMouseUp(i))})("mouseleave",function(){return F(t),V(S(2).onTimePickerElementMouseLeave())}),K(14,"span",58),E(),C(15,"span"),I(16,Fwe,2,0,"ng-container",13),X(17),E(),C(18,"button",57),q("keydown",function(i){return F(t),V(S(2).onContainerButtonKeydown(i))})("keydown.enter",function(i){return F(t),V(S(2).decrementMinute(i))})("keydown.space",function(i){return F(t),V(S(2).decrementMinute(i))})("mousedown",function(i){return F(t),V(S(2).onTimePickerElementMouseDown(i,1,-1))})("mouseup",function(i){return F(t),V(S(2).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return F(t),V(S(2).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return F(t),V(S(2).onTimePickerElementMouseUp(i))})("mouseleave",function(){return F(t),V(S(2).onTimePickerElementMouseLeave())}),K(19,"span",59),E()(),I(20,Vwe,3,1,"div",62),I(21,$we,8,2,"div",63),I(22,Uwe,7,1,"div",64),E()}if(2&n){const t=S(2);v(5),w("ngIf",t.currentHour<10),v(1),be(t.currentHour),v(5),be(t.timeSeparator),v(5),w("ngIf",t.currentMinute<10),v(1),be(t.currentMinute),v(3),w("ngIf",t.showSeconds),v(1),w("ngIf",t.showSeconds),v(1),w("ngIf","12"==t.hourFormat)}}const qH=function(n){return[n]};function zwe(n,e){if(1&n){const t=he();C(0,"div",68)(1,"button",69),q("keydown",function(i){return F(t),V(S(2).onContainerButtonKeydown(i))})("click",function(i){return F(t),V(S(2).onTodayButtonClick(i))}),E(),C(2,"button",69),q("keydown",function(i){return F(t),V(S(2).onContainerButtonKeydown(i))})("click",function(i){return F(t),V(S(2).onClearButtonClick(i))}),E()()}if(2&n){const t=S(2);v(1),w("label",t.getTranslation("today"))("ngClass",pe(4,qH,t.todayButtonStyleClass)),v(1),w("label",t.getTranslation("clear"))("ngClass",pe(6,qH,t.clearButtonStyleClass))}}function jwe(n,e){1&n&&kl(0)}const Gwe=function(n,e,t,r,i,s){return{"p-datepicker p-component":!0,"p-datepicker-inline":n,"p-disabled":e,"p-datepicker-timeonly":t,"p-datepicker-multiple-month":r,"p-datepicker-monthpicker":i,"p-datepicker-touch-ui":s}},YH=function(n,e){return{showTransitionParams:n,hideTransitionParams:e}},Wwe=function(n){return{value:"visibleTouchUI",params:n}},qwe=function(n){return{value:"visible",params:n}};function Ywe(n,e){if(1&n){const t=he();C(0,"div",10,11),q("@overlayAnimation.start",function(i){return F(t),V(S().onOverlayAnimationStart(i))})("@overlayAnimation.done",function(i){return F(t),V(S().onOverlayAnimationDone(i))})("click",function(i){return F(t),V(S().onOverlayClick(i))}),Uo(2),I(3,hwe,1,0,"ng-container",12),I(4,Rwe,5,3,"ng-container",13),I(5,Hwe,23,8,"div",14),I(6,zwe,3,8,"div",15),Uo(7,1),I(8,jwe,1,0,"ng-container",12),E()}if(2&n){const t=S();Su(t.panelStyleClass),w("ngStyle",t.panelStyle)("ngClass",function Y2(n,e,t,r,i,s,o,a,l){const c=Zn()+n,u=W(),d=Qr(u,c,t,r,i,s);return $o(u,c+4,o,a)||d?Ui(u,c+6,l?e.call(l,t,r,i,s,o,a):e(t,r,i,s,o,a)):function bu(n,e){return n[e]}(u,c+6)}(11,Gwe,t.inline,t.disabled,t.timeOnly,t.numberOfMonths>1,"month"===t.view,t.touchUI))("@overlayAnimation",t.touchUI?pe(21,Wwe,Ys(18,YH,t.showTransitionOptions,t.hideTransitionOptions)):pe(26,qwe,Ys(23,YH,t.showTransitionOptions,t.hideTransitionOptions)))("@.disabled",!0===t.inline),v(3),w("ngTemplateOutlet",t.headerTemplate),v(1),w("ngIf",!t.timeOnly),v(1),w("ngIf",(t.showTime||t.timeOnly)&&"date"===t.currentView),v(1),w("ngIf",t.showButtonBar),v(2),w("ngTemplateOutlet",t.footerTemplate)}}const Kwe=[[["p-header"]],[["p-footer"]]],Qwe=function(n,e,t,r){return{"p-calendar":!0,"p-calendar-w-btn":n,"p-calendar-timeonly":e,"p-calendar-disabled":t,"p-focus":r}},Xwe=["p-header","p-footer"],Zwe={provide:Ni,useExisting:dt(()=>OA),multi:!0};let OA=(()=>{class n{constructor(t,r,i,s,o,a){this.el=t,this.renderer=r,this.cd=i,this.zone=s,this.config=o,this.overlayService=a,this.multipleSeparator=",",this.rangeSeparator="-",this.inline=!1,this.showOtherMonths=!0,this.icon="pi pi-calendar",this.shortYearCutoff="+10",this.hourFormat="24",this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.showOnFocus=!0,this.showWeek=!1,this.showClear=!1,this.dataType="date",this.selectionMode="single",this.todayButtonStyleClass="p-button-text",this.clearButtonStyleClass="p-button-text",this.autoZIndex=!0,this.baseZIndex=0,this.keepInvalid=!1,this.hideOnDateTimeSelect=!0,this.timeSeparator=":",this.focusTrap=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onFocus=new G,this.onBlur=new G,this.onClose=new G,this.onSelect=new G,this.onClear=new G,this.onInput=new G,this.onTodayClick=new G,this.onClearClick=new G,this.onMonthChange=new G,this.onYearChange=new G,this.onClickOutside=new G,this.onShow=new G,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(l,c){return"12"==this.hourFormat?12===l?c?12:0:c?l+12:l:l}}set content(t){this.contentViewChild=t,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}get view(){return this._view}set view(t){this._view=t,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(t){if(this._defaultDate=t,this.initialized){const r=t||new Date;this.currentMonth=r.getMonth(),this.currentYear=r.getFullYear(),this.initTime(r),this.createMonths(this.currentMonth,this.currentYear)}}get minDate(){return this._minDate}set minDate(t){this._minDate=t,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=t,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(t){this._disabledDates=t,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(t){this._disabledDays=t,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(t){if(this._yearRange=t,t){const r=t.split(":"),i=parseInt(r[0]),s=parseInt(r[1]);this.populateYearOptions(i,s)}}get showTime(){return this._showTime}set showTime(t){this._showTime=t,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get locale(){return this._locale}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(t){this._responsiveOptions=t,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(t){this._numberOfMonths=t,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(t){this._firstDayOfWeek=t,this.createWeekDays()}set locale(t){console.warn("Locale property has no effect, use new i18n API instead.")}ngOnInit(){this.attributeSelector=function nwe(){return"pr_id_"+ ++zH}();const t=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=t.getMonth(),this.currentYear=t.getFullYear(),this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(t),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"date":default:this.dateTemplate=t.template;break;case"decade":this.decadeTemplate=t.template;break;case"disabledDate":this.disabledDateTemplate=t.template;break;case"header":this.headerTemplate=t.template;break;case"footer":this.footerTemplate=t.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=ce.getOuterWidth(this.containerViewChild.nativeElement)+"px")))}getTranslation(t){return this.config.getTranslation(t)}populateYearOptions(t,r){this.yearOptions=[];for(let i=t;i<=r;i++)this.yearOptions.push(i)}createWeekDays(){this.weekDays=[];let t=this.getFirstDateOfWeek(),r=this.getTranslation(ls.DAY_NAMES_MIN);for(let i=0;i<7;i++)this.weekDays.push(r[t]),t=6==t?0:++t}monthPickerValues(){let t=[];for(let r=0;r<=11;r++)t.push(this.config.getTranslation("monthNamesShort")[r]);return t}yearPickerValues(){let t=[],r=this.currentYear-this.currentYear%10;for(let i=0;i<10;i++)t.push(r+i);return t}createMonths(t,r){this.months=this.months=[];for(let i=0;i<this.numberOfMonths;i++){let s=t+i,o=r;s>11&&(s=s%11-1,o=r+1),this.months.push(this.createMonth(s,o))}}getWeekNumber(t){let r=new Date(t.getTime());r.setDate(r.getDate()+4-(r.getDay()||7));let i=r.getTime();return r.setMonth(0),r.setDate(1),Math.floor(Math.round((i-r.getTime())/864e5)/7)+1}createMonth(t,r){let i=[],s=this.getFirstDayOfMonthIndex(t,r),o=this.getDaysCountInMonth(t,r),a=this.getDaysCountInPrevMonth(t,r),l=1,c=new Date,u=[],d=Math.ceil((o+s)/7);for(let h=0;h<d;h++){let f=[];if(0==h){for(let g=a-s+1;g<=a;g++){let m=this.getPreviousMonthAndYear(t,r);f.push({day:g,month:m.month,year:m.year,otherMonth:!0,today:this.isToday(c,g,m.month,m.year),selectable:this.isSelectable(g,m.month,m.year,!0)})}let p=7-f.length;for(let g=0;g<p;g++)f.push({day:l,month:t,year:r,today:this.isToday(c,l,t,r),selectable:this.isSelectable(l,t,r,!1)}),l++}else for(let p=0;p<7;p++){if(l>o){let g=this.getNextMonthAndYear(t,r);f.push({day:l-o,month:g.month,year:g.year,otherMonth:!0,today:this.isToday(c,l-o,g.month,g.year),selectable:this.isSelectable(l-o,g.month,g.year,!0)})}else f.push({day:l,month:t,year:r,today:this.isToday(c,l,t,r),selectable:this.isSelectable(l,t,r,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(f[0].year,f[0].month,f[0].day))),i.push(f)}return{month:t,year:r,dates:i,weekNumbers:u}}initTime(t){this.pm=t.getHours()>11,this.showTime?(this.currentMinute=t.getMinutes(),this.currentSecond=t.getSeconds(),this.setCurrentHourPM(t.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(t){this.disabled?t.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(t){this.disabled?t.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){if(this.currentYear--,this.yearNavigator&&this.currentYear<this.yearOptions[0]){let t=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]-t,this.yearOptions[this.yearOptions.length-1]-t)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){if(this.currentYear++,this.yearNavigator&&this.currentYear>this.yearOptions[this.yearOptions.length-1]){let t=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]+t,this.yearOptions[this.yearOptions.length-1]+t)}}switchToMonthView(t){this.setCurrentView("month"),t.preventDefault()}switchToYearView(t){this.setCurrentView("year"),t.preventDefault()}onDateSelect(t,r){!this.disabled&&r.selectable?(this.isMultipleSelection()&&this.isSelected(r)?(this.value=this.value.filter((i,s)=>!this.isDateEquals(i,r)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(r)&&this.selectDate(r),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{t.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),t.preventDefault()):t.preventDefault()}shouldSelectDate(t){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(t,r){"month"===this.view?this.onDateSelect(t,{year:this.currentYear,month:r,day:1,selectable:!0}):(this.currentMonth=r,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(t,r){"year"===this.view?this.onDateSelect(t,{year:r,month:0,day:1,selectable:!0}):(this.currentYear=r,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let t="";if(this.value)if(this.isSingleSelection())t=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let r=0;r<this.value.length;r++)t+=this.formatDateTime(this.value[r]),r!==this.value.length-1&&(t+=this.multipleSeparator+" ");else if(this.isRangeSelection()&&this.value&&this.value.length){let i=this.value[1];t=this.formatDateTime(this.value[0]),i&&(t+=" "+this.rangeSeparator+" "+this.formatDateTime(i))}this.inputFieldValue=t,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(t){let r=this.keepInvalid?t:null;return this.isValidDate(t)&&(this.timeOnly?r=this.formatTime(t):(r=this.formatDate(t,this.getDateFormat()),this.showTime&&(r+=" "+this.formatTime(t)))),r}setCurrentHourPM(t){"12"==this.hourFormat?(this.pm=t>11,this.currentHour=t>=12?12==t?12:t-12:0==t?12:t):this.currentHour=t}setCurrentView(t){this.currentView=t,this.cd.detectChanges(),this.alignOverlay()}selectDate(t){let r=new Date(t.year,t.month,t.day);if(this.showTime&&(r.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),r.setMinutes(this.currentMinute),r.setSeconds(this.currentSecond)),this.minDate&&this.minDate>r&&(r=this.minDate,this.setCurrentHourPM(r.getHours()),this.currentMinute=r.getMinutes(),this.currentSecond=r.getSeconds()),this.maxDate&&this.maxDate<r&&(r=this.maxDate,this.setCurrentHourPM(r.getHours()),this.currentMinute=r.getMinutes(),this.currentSecond=r.getSeconds()),this.isSingleSelection())this.updateModel(r);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,r]:[r]);else if(this.isRangeSelection())if(this.value&&this.value.length){let i=this.value[0],s=this.value[1];!s&&r.getTime()>=i.getTime()?s=r:(i=r,s=null),this.updateModel([i,s])}else this.updateModel([r,null]);this.onSelect.emit(r)}updateModel(t){if(this.value=t,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let r=null;this.value&&(r=this.value.map(i=>this.formatDateTime(i))),this.onModelChange(r)}}getFirstDayOfMonthIndex(t,r){let i=new Date;i.setDate(1),i.setMonth(t),i.setFullYear(r);let s=i.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(t,r){return 32-this.daylightSavingAdjust(new Date(r,t,32)).getDate()}getDaysCountInPrevMonth(t,r){let i=this.getPreviousMonthAndYear(t,r);return this.getDaysCountInMonth(i.month,i.year)}getPreviousMonthAndYear(t,r){let i,s;return 0===t?(i=11,s=r-1):(i=t-1,s=r),{month:i,year:s}}getNextMonthAndYear(t,r){let i,s;return 11===t?(i=0,s=r+1):(i=t+1,s=r),{month:i,year:s}}getSundayIndex(){let t=this.getFirstDateOfWeek();return t>0?7-t:0}isSelected(t){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,t);if(this.isMultipleSelection()){let r=!1;for(let i of this.value)if(r=this.isDateEquals(i,t),r)break;return r}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],t)||this.isDateEquals(this.value[1],t)||this.isDateBetween(this.value[0],this.value[1],t):this.isDateEquals(this.value[0],t):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(t){if(this.isComparable()&&!this.isMultipleSelection()){const[r,i]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,t,1);return s>=r&&s<=(i??r)}return!1}isMonthDisabled(t){return!this.isSelectable(1,t,this.currentYear,!1)}isYearSelected(t){if(this.isComparable()){let r=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&r.getFullYear()===t}return!1}isDateEquals(t,r){return!!(t&&t instanceof Date)&&t.getDate()===r.day&&t.getMonth()===r.month&&t.getFullYear()===r.year}isDateBetween(t,r,i){if(t&&r){let o=new Date(i.year,i.month,i.day);return t.getTime()<=o.getTime()&&r.getTime()>=o.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(t,r,i,s){return t.getDate()===r&&t.getMonth()===i&&t.getFullYear()===s}isSelectable(t,r,i,s){let o=!0,a=!0,l=!0,c=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>i||this.minDate.getFullYear()===i&&(this.minDate.getMonth()>r||this.minDate.getMonth()===r&&this.minDate.getDate()>t))&&(o=!1),this.maxDate&&(this.maxDate.getFullYear()<i||this.maxDate.getFullYear()===i&&(this.maxDate.getMonth()<r||this.maxDate.getMonth()===r&&this.maxDate.getDate()<t))&&(a=!1),this.disabledDates&&(l=!this.isDateDisabled(t,r,i)),this.disabledDays&&(c=!this.isDayDisabled(t,r,i)),o&&a&&l&&c)}isDateDisabled(t,r,i){if(this.disabledDates)for(let s of this.disabledDates)if(s.getFullYear()===i&&s.getMonth()===r&&s.getDate()===t)return!0;return!1}isDayDisabled(t,r,i){if(this.disabledDays){let o=new Date(i,r,t).getDay();return-1!==this.disabledDays.indexOf(o)}return!1}onInputFocus(t){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(t)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(t){this.focus=!1,this.onBlur.emit(t),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(t,r){this.overlayVisible?this.hideOverlay():(r.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(t){this.overlayService.add({originalEvent:t,target:this.el.nativeElement})}getMonthName(t){return this.config.getTranslation("monthNames")[t]}getYear(t){return"month"===this.currentView?this.currentYear:t.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(t){this.navigationState={backward:!0,button:!0},this.navBackward(t)}onNextButtonClick(t){this.navigationState={backward:!1,button:!0},this.navForward(t)}onContainerButtonKeydown(t){switch(t.which){case 9:this.inline||this.trapFocus(t);break;case 27:this.overlayVisible=!1,t.preventDefault()}}onInputKeydown(t){this.isKeydown=!0,40===t.keyCode&&this.contentViewChild?this.trapFocus(t):27===t.keyCode||13===t.keyCode?this.overlayVisible&&(this.overlayVisible=!1,t.preventDefault()):9===t.keyCode&&this.contentViewChild&&(ce.getFocusableElements(this.contentViewChild.nativeElement).forEach(r=>r.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(t,r,i){const s=t.currentTarget,o=s.parentElement;switch(t.which){case 40:{s.tabIndex="-1";let a=ce.index(o),l=o.parentElement.nextElementSibling;l?ce.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(t)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(t)),t.preventDefault();break}case 38:{s.tabIndex="-1";let a=ce.index(o),l=o.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];ce.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(t)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(t);t.preventDefault();break}case 37:{s.tabIndex="-1";let a=o.previousElementSibling;if(a){let l=a.children[0];ce.hasClass(l,"p-disabled")||ce.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,i):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,i);t.preventDefault();break}case 39:{s.tabIndex="-1";let a=o.nextElementSibling;if(a){let l=a.children[0];ce.hasClass(l,"p-disabled")?this.navigateToMonth(!1,i):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,i);t.preventDefault();break}case 13:case 32:this.onDateSelect(t,r),t.preventDefault();break;case 27:this.overlayVisible=!1,t.preventDefault();break;case 9:this.inline||this.trapFocus(t)}}onMonthCellKeydown(t,r){const i=t.currentTarget;switch(t.which){case 38:case 40:{i.tabIndex="-1";var s=i.parentElement.children,o=ce.index(i);let a=s[40===t.which?o+3:o-3];a&&(a.tabIndex="0",a.focus()),t.preventDefault();break}case 37:{i.tabIndex="-1";let a=i.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(t)),t.preventDefault();break}case 39:{i.tabIndex="-1";let a=i.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(t)),t.preventDefault();break}case 13:this.onMonthSelect(t,r),t.preventDefault();break;case 13:case 32:case 27:this.overlayVisible=!1,t.preventDefault();break;case 9:this.inline||this.trapFocus(t)}}onYearCellKeydown(t,r){const i=t.currentTarget;switch(t.which){case 38:case 40:{i.tabIndex="-1";var s=i.parentElement.children,o=ce.index(i);let a=s[40===t.which?o+2:o-2];a&&(a.tabIndex="0",a.focus()),t.preventDefault();break}case 37:{i.tabIndex="-1";let a=i.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(t)),t.preventDefault();break}case 39:{i.tabIndex="-1";let a=i.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(t)),t.preventDefault();break}case 13:case 32:this.onYearSelect(t,r),t.preventDefault();break;case 27:this.overlayVisible=!1,t.preventDefault();break;case 9:this.trapFocus(t)}}navigateToMonth(t,r){if(t)if(1===this.numberOfMonths||0===r)this.navigationState={backward:!0},this.navBackward(event);else{let s=ce.find(this.contentViewChild.nativeElement.children[r-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),o=s[s.length-1];o.tabIndex="0",o.focus()}else if(1===this.numberOfMonths||r===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let s=ce.findSingle(this.contentViewChild.nativeElement.children[r+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}updateFocus(){let t;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?ce.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():ce.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let r;r=ce.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),r&&r.length>0&&(t=r[r.length-1])}else t=ce.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");t&&(t.tabIndex="0",t.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){var t;const r=null===(t=this.contentViewChild)||void 0===t?void 0:t.nativeElement;let i;if("month"===this.currentView){let s=ce.find(r,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),o=ce.findSingle(r,".p-monthpicker .p-monthpicker-month.p-highlight");s.forEach(a=>a.tabIndex=-1),i=o||s[0],0===s.length&&ce.find(r,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(l=>l.tabIndex=-1)}else if("year"===this.currentView){let s=ce.find(r,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),o=ce.findSingle(r,".p-yearpicker .p-yearpicker-year.p-highlight");s.forEach(a=>a.tabIndex=-1),i=o||s[0],0===s.length&&ce.find(r,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(l=>l.tabIndex=-1)}else if(i=ce.findSingle(r,"span.p-highlight"),!i){let s=ce.findSingle(r,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");i=s||ce.findSingle(r,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}i&&(i.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{i.focus()},1),this.preventFocus=!1)}trapFocus(t){let r=ce.getFocusableElements(this.contentViewChild.nativeElement);if(r&&r.length>0)if(r[0].ownerDocument.activeElement){let i=r.indexOf(r[0].ownerDocument.activeElement);if(t.shiftKey)if(-1==i||0===i)if(this.focusTrap)r[r.length-1].focus();else{if(-1===i)return this.hideOverlay();if(0===i)return}else r[i-1].focus();else if(-1==i||i===r.length-1){if(!this.focusTrap&&-1!=i)return this.hideOverlay();r[0].focus()}else r[i+1].focus()}else r[0].focus();t.preventDefault()}onMonthDropdownChange(t){this.currentMonth=parseInt(t),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(t){this.currentYear=parseInt(t),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}validateTime(t,r,i,s){let o=this.value;const a=this.convertTo24Hour(t,s);this.isRangeSelection()&&(o=this.value[1]||this.value[0]),this.isMultipleSelection()&&(o=this.value[this.value.length-1]);const l=o?o.toDateString():null;return!(this.minDate&&l&&this.minDate.toDateString()===l&&(this.minDate.getHours()>a||this.minDate.getHours()===a&&(this.minDate.getMinutes()>r||this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()<a||this.maxDate.getHours()===a&&(this.maxDate.getMinutes()<r||this.maxDate.getMinutes()===r&&this.maxDate.getSeconds()<i)))}incrementHour(t){let i=this.currentHour+this.stepHour,s=this.pm;"24"==this.hourFormat?i=i>=24?i-24:i:"12"==this.hourFormat&&(this.currentHour<12&&i>11&&(s=!this.pm),i=i>=13?i-12:i),this.validateTime(i,this.currentMinute,this.currentSecond,s)&&(this.currentHour=i,this.pm=s),t.preventDefault()}onTimePickerElementMouseDown(t,r,i){this.disabled||(this.repeat(t,null,r,i),t.preventDefault())}onTimePickerElementMouseUp(t){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(t,r,i,s){let o=r||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(t,100,i,s),this.cd.markForCheck()},o),i){case 0:1===s?this.incrementHour(t):this.decrementHour(t);break;case 1:1===s?this.incrementMinute(t):this.decrementMinute(t);break;case 2:1===s?this.incrementSecond(t):this.decrementSecond(t)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(t){let r=this.currentHour-this.stepHour,i=this.pm;"24"==this.hourFormat?r=r<0?24+r:r:"12"==this.hourFormat&&(12===this.currentHour&&(i=!this.pm),r=r<=0?12+r:r),this.validateTime(r,this.currentMinute,this.currentSecond,i)&&(this.currentHour=r,this.pm=i),t.preventDefault()}incrementMinute(t){let r=this.currentMinute+this.stepMinute;r=r>59?r-60:r,this.validateTime(this.currentHour,r,this.currentSecond,this.pm)&&(this.currentMinute=r),t.preventDefault()}decrementMinute(t){let r=this.currentMinute-this.stepMinute;r=r<0?60+r:r,this.validateTime(this.currentHour,r,this.currentSecond,this.pm)&&(this.currentMinute=r),t.preventDefault()}incrementSecond(t){let r=this.currentSecond+this.stepSecond;r=r>59?r-60:r,this.validateTime(this.currentHour,this.currentMinute,r,this.pm)&&(this.currentSecond=r),t.preventDefault()}decrementSecond(t){let r=this.currentSecond-this.stepSecond;r=r<0?60+r:r,this.validateTime(this.currentHour,this.currentMinute,r,this.pm)&&(this.currentSecond=r),t.preventDefault()}updateTime(){let t=this.value;this.isRangeSelection()&&(t=this.value[1]||this.value[0]),this.isMultipleSelection()&&(t=this.value[this.value.length-1]),t=t?new Date(t.getTime()):new Date,t.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),t.setMinutes(this.currentMinute),t.setSeconds(this.currentSecond),this.isRangeSelection()&&(t=this.value[1]?[this.value[0],t]:[t,null]),this.isMultipleSelection()&&(t=[...this.value.slice(0,-1),t]),this.updateModel(t),this.onSelect.emit(t),this.updateInputfield()}toggleAMPM(t){const r=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,r)&&(this.pm=r,this.updateTime()),t.preventDefault()}onUserInput(t){if(!this.isKeydown)return;this.isKeydown=!1;let r=t.target.value;try{let i=this.parseValueFromString(r);this.isValidSelection(i)&&(this.updateModel(i),this.updateUI())}catch{this.updateModel(this.keepInvalid?r:null)}this.filled=null!=r&&r.length,this.onInput.emit(t)}isValidSelection(t){let r=!0;return this.isSingleSelection()?this.isSelectable(t.getDate(),t.getMonth(),t.getFullYear(),!1)||(r=!1):t.every(i=>this.isSelectable(i.getDate(),i.getMonth(),i.getFullYear(),!1))&&this.isRangeSelection()&&(r=t.length>1&&t[1]>t[0]),r}parseValueFromString(t){if(!t||0===t.trim().length)return null;let r;if(this.isSingleSelection())r=this.parseDateTime(t);else if(this.isMultipleSelection()){let i=t.split(this.multipleSeparator);r=[];for(let s of i)r.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let i=t.split(" "+this.rangeSeparator+" ");r=[];for(let s=0;s<i.length;s++)r[s]=this.parseDateTime(i[s].trim())}return r}parseDateTime(t){let r,i=t.split(" ");if(this.timeOnly)r=new Date,this.populateTime(r,i[0],i[1]);else{const s=this.getDateFormat();if(this.showTime){let o="12"==this.hourFormat?i.pop():null,a=i.pop();r=this.parseDate(i.join(" "),s),this.populateTime(r,a,o)}else r=this.parseDate(t,s)}return r}populateTime(t,r,i){if("12"==this.hourFormat&&!i)throw"Invalid Time";this.pm="PM"===i||"pm"===i;let s=this.parseTime(r);t.setHours(s.hour),t.setMinutes(s.minute),t.setSeconds(s.second)}isValidDate(t){return t instanceof Date&&v_.isNotEmpty(t)}updateUI(){let t=this.value;Array.isArray(t)&&(t=t[0]);let r=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:t&&this.isValidDate(t)?t:new Date;this.currentMonth=r.getMonth(),this.currentYear=r.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(r.getHours()),this.currentMinute=r.getMinutes(),this.currentSecond=r.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild.nativeElement.focus()))}onOverlayAnimationStart(t){switch(t.toState){case"visible":case"visibleTouchUI":this.inline||(this.overlay=t.element,this.overlay.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?b_.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):b_.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(t));break;case"void":this.onOverlayHide(),this.onClose.emit(t)}}onOverlayAnimationDone(t){switch(t.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&b_.clear(t.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):ce.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?("date"===this.view?(this.overlay.style.width=ce.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=ce.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=ce.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",ce.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):ce.relativePosition(this.overlay,this.inputfieldViewChild.nativeElement))}enableModality(t){this.mask||this.touchUI||(this.mask=document.createElement("div"),this.mask.style.zIndex=String(parseInt(t.style.zIndex)-1),ce.addMultipleClasses(this.mask,"p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",i=>{this.disableModality()}),document.body.appendChild(this.mask),ce.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(ce.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener=this.destroyMask.bind(this),this.mask.addEventListener("animationend",this.animationEndListener))}destroyMask(){if(!this.mask)return;document.body.removeChild(this.mask);let r,t=document.body.children;for(let i=0;i<t.length;i++)if(ce.hasClass(t[i],"p-datepicker-mask-scrollblocker")){r=!0;break}r||ce.removeClass(document.body,"p-overflow-hidden"),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.mask.removeEventListener("animationend",this.animationEndListener),this.animationEndListener=null)}writeValue(t){if(this.value=t,this.value&&"string"==typeof this.value)try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=t)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(ls.FIRST_DAY_OF_WEEK)}formatDate(t,r){if(!t)return"";let i;const s=u=>{const d=i+1<r.length&&r.charAt(i+1)===u;return d&&i++,d},o=(u,d,h)=>{let f=""+d;if(s(u))for(;f.length<h;)f="0"+f;return f},a=(u,d,h,f)=>s(u)?f[d]:h[d];let l="",c=!1;if(t)for(i=0;i<r.length;i++)if(c)"'"!==r.charAt(i)||s("'")?l+=r.charAt(i):c=!1;else switch(r.charAt(i)){case"d":l+=o("d",t.getDate(),2);break;case"D":l+=a("D",t.getDay(),this.getTranslation(ls.DAY_NAMES_SHORT),this.getTranslation(ls.DAY_NAMES));break;case"o":l+=o("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=o("m",t.getMonth()+1,2);break;case"M":l+=a("M",t.getMonth(),this.getTranslation(ls.MONTH_NAMES_SHORT),this.getTranslation(ls.MONTH_NAMES));break;case"y":l+=s("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":l+=t.getTime();break;case"!":l+=1e4*t.getTime()+this.ticksTo1970;break;case"'":s("'")?l+="'":c=!0;break;default:l+=r.charAt(i)}return l}formatTime(t){if(!t)return"";let r="",i=t.getHours(),s=t.getMinutes(),o=t.getSeconds();return"12"==this.hourFormat&&i>11&&12!=i&&(i-=12),r+="12"==this.hourFormat&&0===i?12:i<10?"0"+i:i,r+=":",r+=s<10?"0"+s:s,this.showSeconds&&(r+=":",r+=o<10?"0"+o:o),"12"==this.hourFormat&&(r+=t.getHours()>11?" PM":" AM"),r}parseTime(t){let r=t.split(":");if(r.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(r[0]),o=parseInt(r[1]),a=this.showSeconds?parseInt(r[2]):null;if(isNaN(s)||isNaN(o)||s>23||o>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:o,second:a}}parseDate(t,r){if(null==r||null==t)throw"Invalid arguments";if(""===(t="object"==typeof t?t.toString():t+""))return null;let i,s,o,p,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,d=-1,h=-1,f=!1,g=y=>{let T=i+1<r.length&&r.charAt(i+1)===y;return T&&i++,T},m=y=>{let T=g(y),D="@"===y?14:"!"===y?20:"y"===y&&T?4:"o"===y?3:2,P=new RegExp("^\\d{"+("y"===y?D:1)+","+D+"}"),j=t.substring(a).match(P);if(!j)throw"Missing number at position "+a;return a+=j[0].length,parseInt(j[0],10)},_=(y,T,D)=>{let A=-1,P=g(y)?D:T,j=[];for(let Y=0;Y<P.length;Y++)j.push([Y,P[Y]]);j.sort((Y,z)=>-(Y[1].length-z[1].length));for(let Y=0;Y<j.length;Y++){let z=j[Y][1];if(t.substr(a,z.length).toLowerCase()===z.toLowerCase()){A=j[Y][0],a+=z.length;break}}if(-1!==A)return A+1;throw"Unknown name at position "+a},b=()=>{if(t.charAt(a)!==r.charAt(i))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(d=1),i=0;i<r.length;i++)if(f)"'"!==r.charAt(i)||g("'")?b():f=!1;else switch(r.charAt(i)){case"d":d=m("d");break;case"D":_("D",this.getTranslation(ls.DAY_NAMES_SHORT),this.getTranslation(ls.DAY_NAMES));break;case"o":h=m("o");break;case"m":u=m("m");break;case"M":u=_("M",this.getTranslation(ls.MONTH_NAMES_SHORT),this.getTranslation(ls.MONTH_NAMES));break;case"y":c=m("y");break;case"@":p=new Date(m("@")),c=p.getFullYear(),u=p.getMonth()+1,d=p.getDate();break;case"!":p=new Date((m("!")-this.ticksTo1970)/1e4),c=p.getFullYear(),u=p.getMonth()+1,d=p.getDate();break;case"'":g("'")?b():f=!0;break;default:b()}if(a<t.length&&(o=t.substr(a),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===c?c=(new Date).getFullYear():c<100&&(c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=l?0:-100)),h>-1)for(u=1,d=h;s=this.getDaysCountInMonth(c,u-1),!(d<=s);)u++,d-=s;if("year"===this.view&&(u=-1===u?1:u,d=-1===d?1:d),p=this.daylightSavingAdjust(new Date(c,u-1,d)),p.getFullYear()!==c||p.getMonth()+1!==u||p.getDate()!==d)throw"Invalid date";return p}daylightSavingAdjust(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(t){let r=new Date,i={day:r.getDate(),month:r.getMonth(),year:r.getFullYear(),otherMonth:r.getMonth()!==this.currentMonth||r.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(t,i),this.onTodayClick.emit(t)}onClearButtonClick(t){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(t)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.body.appendChild(this.responsiveStyleElement));let t="";if(this.responsiveOptions){let r=[...this.responsiveOptions].filter(i=>!(!i.breakpoint||!i.numMonths)).sort((i,s)=>-1*i.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let i=0;i<r.length;i++){let{breakpoint:s,numMonths:o}=r[i],a=`\n                        .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${o}) .p-datepicker-next {\n                            display: inline-flex !important;\n                        }\n                    `;for(let l=o;l<this.numberOfMonths;l++)a+=`\n                            .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${l+1}) {\n                                display: none !important;\n                            }\n                        `;t+=`\n                        @media screen and (max-width: ${s}) {\n                            ${a}\n                        }\n                    `}}this.responsiveStyleElement.innerHTML=t}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",r=>{this.isOutsideClicked(r)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(r),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener))}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new ewe(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(t){return!(this.el.nativeElement.isSameNode(t.target)||this.isNavIconClicked(t)||this.el.nativeElement.contains(t.target)||this.overlay&&this.overlay.contains(t.target))}isNavIconClicked(t){return ce.hasClass(t.target,"p-datepicker-prev")||ce.hasClass(t.target,"p-datepicker-prev-icon")||ce.hasClass(t.target,"p-datepicker-next")||ce.hasClass(t.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!ce.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&b_.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return n.\u0275fac=function(t){return new(t||n)(R(Fn),R(Gs),R($l),R(vt),R(PA),R(Z0e))},n.\u0275cmp=Ut({type:n,selectors:[["p-calendar"]],contentQueries:function(t,r,i){if(1&t&&Wb(i,J0e,4),2&t){let s;Jr(s=ei())&&(r.templates=s)}},viewQuery:function(t,r){if(1&t&&(ji(owe,5),ji(awe,5),ji(lwe,5)),2&t){let i;Jr(i=ei())&&(r.containerViewChild=i.first),Jr(i=ei())&&(r.inputfieldViewChild=i.first),Jr(i=ei())&&(r.content=i.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(t,r){2&t&&Cu("p-inputwrapper-filled",r.filled)("p-inputwrapper-focus",r.focus)("p-calendar-clearable",r.showClear&&!r.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",view:"view",defaultDate:"defaultDate",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Ct([Zwe])],ngContentSelectors:Xwe,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],["class","p-calendar-clear-icon pi pi-times",3,"click",4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],[1,"p-calendar-clear-icon","pi","pi-times",3,"click"],["type","button","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger",3,"icon","disabled","click"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[1,"p-datepicker-next-icon","pi","pi-chevron-right"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],[1,"p-datepicker-prev-icon","pi","pi-chevron-left"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-calendar-container"],[1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],[3,"ngClass"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"pi","pi-chevron-up"],[1,"pi","pi-chevron-down"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(t,r){1&t&&(xb(Kwe),C(0,"span",0,1),I(2,dwe,4,17,"ng-template",2),I(3,Ywe,9,28,"div",3),E()),2&t&&(Su(r.styleClass),w("ngClass",Ll(6,Qwe,r.showIcon,r.timeOnly,r.disabled,r.focus))("ngStyle",r.style),v(2),w("ngIf",!r.inline),v(1),w("ngIf",r.inline||r.overlayVisible))},dependencies:[ri,ii,xn,S0,rr,swe,twe],styles:[".p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}\n"],encapsulation:2,data:{animation:[uL("overlayAnimation",[U0("visibleTouchUI",Gi({transform:"translate(-50%,-50%)",opacity:1})),ju("void => visible",[Gi({opacity:0,transform:"scaleY(0.8)"}),zu("{{showTransitionParams}}",Gi({opacity:1,transform:"*"}))]),ju("visible => void",[zu("{{hideTransitionParams}}",Gi({opacity:0}))]),ju("void => visibleTouchUI",[Gi({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),zu("{{showTransitionParams}}")]),ju("visibleTouchUI => void",[zu("{{hideTransitionParams}}",Gi({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0}),n})(),Jwe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({imports:[Ul,jH,UH,HH,jH,UH]}),n})(),e1e=(()=>{class n{constructor(t){this.hostEl=t,t.isOutsideClicked=r=>{const i=r.path||r.composedPath&&r.composedPath(),s=r.target.shadowRoot?i[0]:r.target;return!(this.hostEl.el.nativeElement.isSameNode(s)||this.hostEl.el.nativeElement.contains(s)||this.hostEl.overlay&&this.hostEl.overlay.contains(s))}}}return n.\u0275fac=function(t){return new(t||n)(R(OA,11))},n.\u0275dir=Ce({type:n,selectors:[["","psdCalendar",""]]}),n})();ce.getScrollableParents=n=>{let e=[];if(n){let t=ce.getParents(n).filter(s=>!(s instanceof ShadowRoot));const r=/(auto|scroll)/,i=s=>{let o=window.getComputedStyle(s,null);return r.test(o.getPropertyValue("overflow"))||r.test(o.getPropertyValue("overflowX"))||r.test(o.getPropertyValue("overflowY"))};for(let s of t){let o=1===s.nodeType&&s.dataset.scrollselectors;if(o){let a=o.split(",");for(let l of a){let c=ce.findSingle(s,l);c&&i(c)&&e.push(c)}}9!==s.nodeType&&i(s)&&e.push(s)}}return e};let t1e=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({}),n})();function n1e(n,e){1&n&&(C(0,"h3"),X(1),ge(2,"translate"),E()),2&n&&(v(1),be(_e(2,1,"pleaseComplete")))}function r1e(n,e){if(1&n&&(C(0,"p",11),X(1),E()),2&n){const t=S(2);v(1),be(t.formObj.preMessage)}}function i1e(n,e){if(1&n){const t=he();C(0,"div")(1,"input",16),q("keyup",function(i){F(t);const s=S(2).index;return V(S(2).onKeyup(i,s))})("ngModelChange",function(i){return F(t),V(S(2).$implicit.value=i)}),E()()}if(2&n){const t=S(2).$implicit;v(1),w("type",t.inputValidation)("email","email"==t.inputValidation)("disabled",t.disabled)("name",t.dataVar)("ngModel",t.value)("required",t.required)}}function s1e(n,e){if(1&n){const t=he();C(0,"div")(1,"textarea",17),q("ngModelChange",function(i){return F(t),V(S(2).$implicit.value=i)}),E()()}if(2&n){const t=S(2).$implicit;v(1),w("name",t.dataVar)("ngModel",t.value)("disabled",t.disabled)("required",t.required)}}function o1e(n,e){if(1&n){const t=he();C(0,"div")(1,"p-calendar",18),q("ngModelChange",function(i){return F(t),V(S(2).$implicit.value=i)})("onSelect",function(i){F(t);const s=S(2),o=s.$implicit,a=s.index;return V(S(2).onChangeDate(i,o.dataVar,a))}),E()()}if(2&n){const t=S(2).$implicit,r=S(2);v(1),w("minDate",r.minDate)("name",t.dataVar)("ngModel",t.value)("required",t.required)("monthNavigator",!0)("disabled",t.disabled)("locale","af")("yearNavigator",!0)}}function a1e(n,e){if(1&n){const t=he();C(0,"div")(1,"p-calendar",19),q("ngModelChange",function(i){return F(t),V(S(2).$implicit.value=i)}),E()()}if(2&n){const t=S(2).$implicit;v(1),w("name",t.dataVar)("disabled",t.disabled)("ngModel",t.value)("required",t.required)("timeOnly",!0)}}function l1e(n,e){if(1&n&&(C(0,"div")(1,"label",13),X(2),ge(3,"translate"),E(),C(4,"div",14),I(5,i1e,2,6,"div",15),I(6,s1e,2,4,"div",15),I(7,o1e,2,8,"div",15),I(8,a1e,2,5,"div",15),E()()),2&n){const t=S().$implicit;v(1),w("for",t.dataVar),v(1),Ho("",_e(3,8,"dataVar."+t.dataVar)," ",t.required?"*":"",""),v(2),w("ngSwitch",t.type),v(1),w("ngSwitchCase","input"),v(1),w("ngSwitchCase","textarea"),v(1),w("ngSwitchCase","date"),v(1),w("ngSwitchCase","time")}}function c1e(n,e){if(1&n&&(C(0,"div",12),I(1,l1e,9,10,"div",5),E()),2&n){const t=e.$implicit,r=S(2);v(1),w("ngIf","numberChildren"!==t.dataVar||"numberChildren"===t.dataVar&&r.allowChildren)}}function u1e(n,e){if(1&n){const t=he();C(0,"div",1)(1,"form",2,3)(3,"div",4),I(4,n1e,3,3,"h3",5),I(5,r1e,2,1,"p",6),I(6,c1e,2,1,"div",7),E()(),C(7,"div",8)(8,"button",9),q("click",function(){return F(t),V(S().onClose())}),X(9),ge(10,"translate"),E(),C(11,"button",10),q("click",function(){F(t);const i=wu(2);return V(S().onSubmit(i))}),X(12),ge(13,"translate"),E()()()}if(2&n){const t=wu(2),r=S();v(4),w("ngIf",!r.formObj.preMessage),v(1),w("ngIf",r.formObj.preMessage),v(1),w("ngForOf",r.formObj.inputs),v(2),w("ngStyle",r.backgroundCancel),v(1),be(_e(10,8,"back")),v(2),w("disabled",!t.valid)("ngStyle",r.backgroundSuccess),v(1),be(_e(13,10,"submit"))}}let d1e=(()=>{class n{constructor(t,r,i,s,o){this.chatService=t,this.debugService=r,this.submitService=i,this.translateService=s,this.config=o,this.hasData=!1,this.backgroundCancel={"background-color":"darkgrey",color:"white"},this.backgroundSuccess={"background-color":"green",color:"white"},this.datePickerOptions={minDate:new Date},this.textColor="#fff",this.minDate=new Date,this.allowChildren=!0}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(t=>{t&&(t.textColor&&(this.textColor=t.textColor),this.backgroundCancel={"background-color":t.backgroundColors[1],color:this.textColor},this.backgroundSuccess={"background-color":t.backgroundColors[0],color:this.textColor})}),this.structuredInputSub=hi([this.chatService.showStructuredInput$,this.translateService.onLangChange.pipe(Ba({lang:this.translateService.currentLang}))]).subscribe(([t,r])=>{if(t){this.debugService.logMode&&console.log(t),this.formObj={...t,inputs:t.inputs},this.populateFields(),this.hasData=!0;const i=this.translateService.instant("dayNamesShort").split(",");i&&this.config.setTranslation({dayNamesShort:i});const s=this.translateService.instant("monthNamesShort").split(",");s&&this.config.setTranslation({monthNamesShort:s});const o=this.translateService.instant("monthNames").split(",");o&&this.config.setTranslation({monthNames:o}),this.debugService.logMode&&console.log(this.datePickerOptions)}}),this.allowChildrenSub=this.chatService.allowChildren$.subscribe(t=>{this.allowChildren=t})}onClose(){this.chatService.showStructuredInput$.next(null)}onChangeDate(t,r,i){if(this.debugService.logMode&&console.log(t,r,i),"checkinDate"===r&&t){const s=this.formObj.inputs.findIndex(o=>"checkOutDate"===o.dataVar);if(s>-1){const o=LH(t,{days:1});this.formObj.inputs[s].value?(Gy(this.formObj.inputs[s].value,t)&&(this.formObj.inputs[s].value=o),BH(this.formObj.inputs[s].value,t)&&(this.formObj.inputs[s].value=o)):this.formObj.inputs[s].value=o}}if("checkOutDate"===r&&t){const s=this.formObj.inputs.findIndex(o=>"checkinDate"===o.dataVar);s>-1&&this.formObj.inputs[s].value&&(Gy(t,this.formObj.inputs[s].value)||BH(t,this.formObj.inputs[s].value))&&(this.formObj.inputs[s].value=FH(this.formObj.inputs[s].value,{days:1}))}}onKeyup(t,r){const i=this.chatService.getClientId;("3U7FhXtxoR1LhbaBw4OH"===i||"E78oLuo56gxY4uvzUF8u"===i)&&"Space"===t.code&&" "!==this.formObj.inputs[r].value[this.formObj.inputs[r].value.length-1]&&(this.formObj.inputs[r].value+=" ")}onSubmit(t){var r=this;return M(function*(){const i=r.formObj.inputs.reduce((o,a)=>{let l=a.value;if("date"===a.type&&(l=wo(a.value,"yyyy-MM-dd")),"time"===a.type&&(l=wo(a.value,"K:mm b")),null!=a.value)return o+("numberChildren"===a.dataVar?r.allowChildren?`${a.label}: ${l} \n\r`:"":`${a.label}: ${l} \n\r`)},""),s={};Object.keys(t.value).forEach(o=>{window.sessionStorage.setItem(o,t.value[o]),s[o]="checkinDate"===o?wo(Vc(new Date(t.value[o])),"yyyy-MM-dd"):"checkOutDate"===o?wo(VH(new Date(t.value[o])),"yyyy-MM-dd"):t.value[o]}),"post"===r.formObj.submit?(r.chatService.addMessage(i,!1),r.submitService.addPost({message:i,data:s,intent:r.formObj.intent,path:r.formObj.path,structuredInput:r.formObj},"roomRAI")):"request"===r.formObj.submit&&(r.chatService.addMessage(i,!1),r.submitService.addRequest({message:i,data:s,intent:r.formObj.intent})),r.onClose()})()}populateFields(){this.formObj.inputs.forEach((t,r)=>{const i=t.dataVar,s=window.sessionStorage.getItem(i);t.value="checkinDate"===i?s?new Date(s):new Date:"checkOutDate"===i?s?new Date(s):LH(new Date,{days:1}):"numberAdults"===i?s||"2":"numberChildren"===i?s||"0":"date"===t.type||"time"===t.type?s?new Date(s):new Date:s||t.value})}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe(),this.structuredInputSub&&this.structuredInputSub.unsubscribe(),this.allowChildrenSub&&this.allowChildrenSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(ss),R($H),R(Er),R(PA))},n.\u0275cmp=Ut({type:n,selectors:[["app-structured-input"]],decls:1,vars:1,consts:[["class","gc-form-content",4,"ngIf"],[1,"gc-form-content"],["action",""],["f","ngForm"],[1,"gc-form-entry"],[4,"ngIf"],["class","pre-message",4,"ngIf"],["class","form-item",4,"ngFor","ngForOf"],[1,"gc-footer"],[3,"ngStyle","click"],[3,"disabled","ngStyle","click"],[1,"pre-message"],[1,"form-item"],[3,"for"],[2,"width","100%",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"type","email","disabled","name","ngModel","required","keyup","ngModelChange"],["rows","3",3,"name","ngModel","disabled","required","ngModelChange"],["psdCalendar","","dateFormat","D, dd M yy","yearRange","2023:2030",3,"minDate","name","ngModel","required","monthNavigator","disabled","locale","yearNavigator","ngModelChange","onSelect"],["psdCalendar","","dateFormat","D, dd M yy",3,"name","disabled","ngModel","required","timeOnly","ngModelChange"]],template:function(t,r){1&t&&I(0,u1e,14,12,"div",0),2&t&&w("ngIf",r.hasData)},dependencies:[ii,xn,rr,Wo,Vu,pH,_h,mA,XU,m_,kA,g_,p_,OA,e1e,as],styles:["button[disabled]{background-color:#a9a9a9!important}input.ng-invalid.ng-touched{border:1px solid red!important}form{margin:0}.gc-form-content{box-sizing:content-box;height:100%}.gc-form-content form{height:100%}.gc-form-content form .gc-form-entry{position:absolute;left:0px;font-family:Roboto,sans-serif;height:calc(100% - 108px);padding:12px 12px 40px;width:calc(100% - 24px);display:inline-flex;flex-direction:column;justify-content:flex-start;overflow-y:auto;overflow-x:hidden;box-sizing:content-box;background-color:#edf1f4}.gc-form-content form .gc-form-entry h3{margin:0;font-size:16px}.gc-form-content form .gc-form-entry .pre-message{margin-top:0;font-size:12px;line-height:14px;margin-bottom:10px}.gc-form-content form .gc-form-entry .form-item{width:100%;margin:8px 0}.gc-form-content form .gc-form-entry .form-item label{color:#8f9bb3;font-family:Roboto,sans-serif;font-size:12px;font-weight:700;line-height:16px;margin-bottom:2px;display:block}.gc-form-content form .gc-form-entry .form-item input,.gc-form-content form .gc-form-entry .form-item textarea{font-size:14px;font-weight:400;line-height:16px;padding:6px 8px;margin-bottom:0;width:calc(100% - 18px);background-color:#f7f9fc;border-color:#edf1f7;border-style:solid;border-width:1px;box-sizing:content-box;color:#192038;font-family:Roboto,sans-serif;-webkit-appearance:none;transition-duration:.15s;transition-property:border,background-color,color,box-shadow;transition-timing-function:ease-in}.gc-form-content form .gc-form-entry .form-item input:disabled,.gc-form-content form .gc-form-entry .form-item textarea:disabled{color:#aeaeb1}.gc-form-content .gc-footer{position:absolute;left:0px;bottom:0px;font-family:Roboto,sans-serif;padding:8px;height:40px;border-top:1px solid grey;display:inline-flex;justify-content:flex-end;width:calc(100% - 16px);box-sizing:content-box}.gc-form-content .gc-footer button{font-family:Roboto,sans-serif;font-size:16px;padding:7px 14px;margin-right:8px;color:#fff;cursor:pointer;border-radius:4px;border:none}\n",'.p-calendar{width:100%;font-family:Roboto,sans-serif}.p-calendar.p-error>.p-inputtext,.p-calendar.p-invalid>.p-inputtext{border-color:#f44336}p-calendar.ng-dirty.ng-invalid>.p-calendar>.p-inputtext{border-color:#f44336}.p-datepicker{padding:.5rem;background:#ffffff;color:gray;border:1px solid #ced4da;border-radius:2px;font-family:Roboto,sans-serif}.p-datepicker:not(.p-datepicker-inline){background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px rgba(0,0,0,.14),0 1px 10px rgba(0,0,0,.12)}.p-datepicker:not(.p-datepicker-inline) .p-datepicker-header{background:#ffffff}.p-datepicker .pi-chevron-left:before{content:"<";font-size:20px}.p-datepicker .pi-chevron-right:before{content:">";font-size:20px}.p-datepicker .p-datepicker-header{padding:.5rem;color:#495057;background:#ffffff;font-weight:600;margin:0;border-bottom:1px solid #dee2e6;border-top-right-radius:2px;border-top-left-radius:2px}.p-datepicker .p-datepicker-header .p-datepicker-prev,.p-datepicker .p-datepicker-header .p-datepicker-next{width:2rem;height:2rem;color:#6c757d;border:0 none;background:rgb(238,238,238);border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}.p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover,.p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover{color:#495057;border-color:transparent;background:#e9ecef}.p-datepicker .p-datepicker-header .p-datepicker-prev:focus,.p-datepicker .p-datepicker-header .p-datepicker-next:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 .2rem #74a3dd}.p-datepicker .p-datepicker-header .p-datepicker-title{line-height:2rem}.p-datepicker .p-datepicker-header .p-datepicker-title select{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}.p-datepicker .p-datepicker-header .p-datepicker-title select:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 .2rem #74a3dd;border-color:#0f243e}.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month,.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-year{background:rgb(238,238,238);margin-right:.5rem;border:none;padding:8px;cursor:pointer}.p-datepicker table{font-size:1rem;margin:.5rem 0}.p-datepicker table th{padding:6px}.p-datepicker table th>span{width:20px;height:20px}.p-datepicker table td{padding:6px}.p-datepicker table td>span{width:20px;height:20px;border-radius:50%;transition:box-shadow .2s;border:1px solid transparent}.p-datepicker table td>span.p-highlight{color:#fff;background:#0f243e}.p-datepicker table td>span:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 .2rem #74a3dd}.p-datepicker table td.p-datepicker-today>span{background:#ced4da;color:#495057;border-color:transparent}.p-datepicker table td.p-datepicker-today>span.p-highlight{color:#fff;background:#0f243e}.p-datepicker .p-datepicker-buttonbar{padding:1rem 0;border-top:1px solid #dee2e6}.p-datepicker .p-datepicker-buttonbar .p-button{width:auto}.p-datepicker .p-timepicker{border-top:1px solid #dee2e6;padding:.5rem}.p-datepicker .p-timepicker button{width:2rem;height:2rem;color:#6c757d;border:0 none;background:rgb(238,238,238);border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}.p-datepicker .p-timepicker button:enabled:hover{color:#495057;border-color:transparent;background:#e9ecef}.p-datepicker .p-timepicker button:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 .2rem #74a3dd}.p-datepicker .p-timepicker button:last-child{margin-top:.2em}.p-datepicker .p-timepicker span{font-size:1.25rem}.p-datepicker .p-timepicker>div{padding:0 .5rem}.p-datepicker.p-datepicker-timeonly .p-timepicker{border-top:0 none}.p-datepicker .p-monthpicker{margin:.5rem 0}.p-datepicker .p-monthpicker .p-monthpicker-month{padding:6px;transition:box-shadow .2s;border-radius:2px}.p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight{color:#fff;background:#0f243e}.p-datepicker.p-datepicker-multiple-month .p-datepicker-group{border-right:1px solid #dee2e6;padding-right:.5rem;padding-left:.5rem;padding-top:0;padding-bottom:0}.p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child{padding-left:0}.p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child{padding-right:0;border-right:0 none}.p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover{background:#e9ecef}.p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 .2rem #74a3dd}.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover{background:#e9ecef}.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 .2rem #74a3dd}@media screen and (max-width: 769px){.p-datepicker table th,.p-datepicker table td{padding:0}}\n'],encapsulation:3}),n})();const NA=function(n){return{color:n}};function h1e(n,e){if(1&n){const t=he();C(0,"button",10),q("click",function(){const s=F(t).$implicit;return V(S(2).onPerformAction(s))}),X(1),E()}if(2&n){const t=e.$implicit,r=S(2);w("ngStyle",pe(2,NA,r.textColor)),v(1),be(t.translatedVal)}}function f1e(n,e){if(1&n&&(C(0,"div",9),I(1,h1e,2,4,"button",4),E()),2&n){const t=S();v(1),w("ngForOf",t.secondaryActions)}}function p1e(n,e){if(1&n){const t=he();C(0,"button",10),q("click",function(){const s=F(t).$implicit;return V(S().onDirectIntent(s))}),X(1),E()}if(2&n){const t=e.$implicit,r=S();w("ngStyle",pe(2,NA,r.textColor)),v(1),be(t.translatedVal)}}function g1e(n,e){if(1&n){const t=he();C(0,"button",11),q("click",function(){const s=F(t).$implicit;return V(S().onPerformAction(s))}),X(1),E()}if(2&n){const t=e.$implicit;v(1),be(t.translatedVal)}}function m1e(n,e){1&n&&(C(0,"span"),X(1),ge(2,"translate"),E()),2&n&&(v(1),be(_e(2,1,"less")))}function y1e(n,e){1&n&&(C(0,"span"),X(1),ge(2,"translate"),E()),2&n&&(v(1),be(_e(2,1,"more")))}const _1e=function(n){return{bounce:n}},v1e=function(n){return{fill:n}};function b1e(n,e){if(1&n){const t=he();C(0,"div",12),q("click",function(){return F(t),V(S().onExpandSecondary())}),C(1,"div",13),ue(),C(2,"svg",14),K(3,"path",15),E()(),yt(),C(4,"p",16),I(5,m1e,3,3,"span",17),I(6,y1e,3,3,"span",17),E()()}if(2&n){const t=S();w("ngStyle",pe(5,NA,t.textColor)),v(1),w("ngClass",pe(7,_1e,!t.secondaryExpanded)),v(2),w("ngStyle",pe(9,v1e,t.textColor)),v(2),w("ngIf",t.secondaryExpanded),v(1),w("ngIf",!t.secondaryExpanded)}}let w1e=(()=>{class n{constructor(t,r,i){this.chatService=t,this.debugService=r,this.translateService=i,this.coreActions=[],this.secondaryActions=[],this.secondaryExpanded=!1,this.haveRelatedIntents=!1,this.relatedIntents=[],this.relatedIntents$=new nt([]),this.relatedIntentsHeight=0,this.textColor="blue",this.scrollNow=new G,this.newActionAreaHeight=new G,this.lastHeight=0}set forceOpen(t){t&&(this.secondaryExpanded||(this.secondaryExpanded=!0))}set func(t){this.relatedIntents$.next(t)}ngOnInit(){this.newActionAreaHeight.emit(0),this.settingsSub=hi([this.translateService.onLangChange.pipe(Ba({lang:this.translateService.currentLang})),this.chatService.botSettingsBS]).subscribe(([t,r])=>{r&&("en"===t.lang?(this.coreActions=r.quickActionButtons.map(i=>({...i,translatedVal:i.publicText})),this.secondaryActions=r.secondaryButtons.map(i=>({...i,translatedVal:i.publicText}))):(this.coreActions=r.quickActionButtons.map(i=>{let s=i.publicText;return i.translations[t.lang]&&""!==i.translations[t.lang]&&(s=i.translations[t.lang]),{...i,translatedVal:s}}),this.secondaryActions=r.secondaryButtons.map(i=>{let s=i.publicText;return i.translations[t.lang]&&""!==i.translations[t.lang]&&(s=i.translations[t.lang]),{...i,translatedVal:s}})),this.textColor=r.backgroundColors[0])}),this.activeLanguageSub=hi([this.translateService.onLangChange.pipe(Ba({lang:this.translateService.currentLang})),this.relatedIntents$]).subscribe(([t,r])=>{this.relatedIntents=r.map("en"===t.lang?i=>({...i,translatedVal:i.name}):i=>{let s=i.name;return i.translations[t.lang]&&""!==i.translations[t.lang]&&(s=i.translations[t.lang]),{...i,translatedVal:s}}),this.haveRelatedIntents=r.length>0})}onExpandSecondary(){this.secondaryExpanded=!this.secondaryExpanded,this.debugService.logMode&&console.log(this.secondaryExpanded)}onPerformAction(t){if(this.debugService.logMode&&console.log(t),"post"===t.structuredInput.submit){const r={...t.structuredInput,preMessage:t.preText,intent:t.dialogflowId};this.chatService.showStructuredInput$.next(r)}else t.url?window.open(t.url,"_blank"):(this.chatService.addDirectIntentQuestion(t.dialogflowId,t.translatedVal),this.scrollNow.emit("now"))}onDirectIntent(t){this.chatService.addDirectIntentQuestion(t.dialogflowId,t.translatedVal),this.scrollNow.emit("now")}onResized(t){t.newRect.height!==this.lastHeight&&(this.lastHeight=t.newRect.height,this.newActionAreaHeight.emit(t.newRect.height))}ngOnDestroy(){this.settingsSub&&this.settingsSub.unsubscribe(),this.activeLanguageSub&&this.activeLanguageSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(ss),R(Er))},n.\u0275cmp=Ut({type:n,selectors:[["app-quick-actions"]],inputs:{forceOpen:"forceOpen",func:["related-intents","func"]},outputs:{scrollNow:"scrollNow",newActionAreaHeight:"newActionAreaHeight"},decls:9,vars:6,consts:[[1,"action-area",3,"resized"],[1,"gc_scroll"],["id","secondaryActions",4,"ngIf"],[1,"related-intents",3,"hidden"],[3,"ngStyle","click",4,"ngFor","ngForOf"],[1,"quick-actions",3,"hidden"],[1,"core-actions"],[3,"click",4,"ngFor","ngForOf"],["class","more-box",3,"ngStyle","click",4,"ngIf"],["id","secondaryActions"],[3,"ngStyle","click"],[3,"click"],[1,"more-box",3,"ngStyle","click"],[1,"icon",3,"ngClass"],["version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","viewBox","0 0 330 330"],["d","M325.606,229.393l-150.004-150C172.79,76.58,168.974,75,164.996,75c-3.979,0-7.794,1.581-10.607,4.394\n                            l-149.996,150c-5.858,5.858-5.858,15.355,0,21.213c5.857,5.857,15.355,5.858,21.213,0l139.39-139.393l139.397,139.393\n                            C307.322,253.536,311.161,255,315,255c3.839,0,7.678-1.464,10.607-4.394C331.464,244.748,331.464,235.251,325.606,229.393z",3,"ngStyle"],[1,"more-text"],[4,"ngIf"]],template:function(t,r){1&t&&(C(0,"div",0),q("resized",function(s){return r.onResized(s)}),C(1,"div",1),I(2,f1e,2,1,"div",2),C(3,"div",3),I(4,p1e,2,4,"button",4),E()(),C(5,"div",5)(6,"div",6),I(7,g1e,2,1,"button",7),E(),I(8,b1e,7,11,"div",8),E()()),2&t&&(v(2),w("ngIf",r.secondaryExpanded),v(1),w("hidden",!r.haveRelatedIntents),v(1),w("ngForOf",r.relatedIntents),v(1),w("hidden",0===r.coreActions.length),v(2),w("ngForOf",r.coreActions),v(1),w("ngIf",r.secondaryActions.length>0))},dependencies:[ri,ii,xn,rr,OH,as],styles:[".action-area[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:hidden;display:flex;flex-direction:column;font-family:Roboto,sans-serif}.action-area[_ngcontent-%COMP%]   .gc_scroll[_ngcontent-%COMP%]{max-height:80px;overflow-y:auto;display:flex;flex-direction:column-reverse}.action-area[_ngcontent-%COMP%]   .gc_scroll[_ngcontent-%COMP%]   .related-intents[_ngcontent-%COMP%]{width:100%;margin:0;display:inline-flex;flex-wrap:wrap;justify-content:center;font-family:Roboto,sans-serif}.action-area[_ngcontent-%COMP%]   .gc_scroll[_ngcontent-%COMP%]   #secondaryActions[_ngcontent-%COMP%]{width:100%;background-color:#fff;color:#000;display:flex;justify-content:center;font-family:Roboto,sans-serif}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]{height:44px}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .core-actions[_ngcontent-%COMP%]{width:calc(100% - 45px);height:44px;vertical-align:super;font-family:Roboto,sans-serif;overflow-x:auto;overflow-y:hidden;white-space:nowrap;display:inline-flex;justify-content:space-evenly}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .more-box[_ngcontent-%COMP%]{display:inline-block;width:40px;height:40px;vertical-align:top;font-family:Roboto,sans-serif;cursor:pointer}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .more-box[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{height:22px;text-align:center;margin:auto;display:block}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .more-box[_ngcontent-%COMP%]   .icon.bounce[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{transform:rotate(0);animation:bounce-gc 2s infinite alternate;-webkit-animation:bounce-gc 2s infinite alternate}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .more-box[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{padding-bottom:10px;transform:rotate(180deg);width:15px}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .more-box[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{fill:#000}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .more-box[_ngcontent-%COMP%]   .more-text[_ngcontent-%COMP%]{text-align:center;height:12px;margin:0;font-weight:800;font-size:10px;line-height:12px;vertical-align:bottom}.action-area[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{text-transform:none;margin:7px 5px;padding:6px 10px;background-color:#edf1f4;color:#6e6e6e;border:none;border-radius:25px;font-size:14px;line-height:14px;white-space:nowrap;cursor:pointer;box-shadow:2px 2px 5px #d3d3d3;font-weight:700;font-family:Roboto,sans-serif}.action-area[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.2)}.action-area[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:lightgrey}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:darkgrey}@keyframes bounce-gc{0%,40%,80%,to{margin-top:5px}60%{margin-top:10px}}.bounce[_ngcontent-%COMP%]{animation-name:bounce-gc}"]}),n})();function C1e(n,e){if(1&n&&(C(0,"div",2)(1,"div",3)(2,"h3",4),X(3),E(),C(4,"p",5),X(5),ge(6,"translate"),E()()()),2&n){const t=S();v(3),be(t.preview.url),v(2),be(_e(6,2,"previewNotAvailable"))}}function S1e(n,e){if(1&n&&(C(0,"div",8),K(1,"img",9),E()),2&n){const t=S(2);v(1),w("src",t.preview.image,fr)}}const E1e=function(n){return{"no-image":n}};function T1e(n,e){if(1&n&&(C(0,"div",2),I(1,S1e,2,1,"div",6),C(2,"div",7)(3,"h3",4),X(4),E(),C(5,"p",5),X(6),E()()()),2&n){const t=S();v(1),w("ngIf",t.preview.image),v(1),w("ngClass",pe(4,E1e,!t.preview.image)),v(2),be(t.preview.title),v(2),be(t.preview.description)}}let x1e=(()=>{class n{constructor(){this.color="#2bc9d8"}set f(t){this.color=["#2bc9d8","#3e69de","#ffbc30","#ff9230","#018d9a","#0c36aa","#fdab00","#fd7700"][t]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Ut({type:n,selectors:[["app-link-preview"]],inputs:{preview:"preview",f:["index","f"]},decls:3,vars:3,consts:[["target","_blank",2,"text-decoration","none","color","black",3,"href"],["class","gc-preview-container",4,"ngIf"],[1,"gc-preview-container"],[1,"gc-text-container",2,"width","100%"],[1,"gc-header"],[1,"gc-description"],["class","gc-image",4,"ngIf"],[1,"gc-text-container",3,"ngClass"],[1,"gc-image"],[3,"src"]],template:function(t,r){1&t&&(C(0,"a",0),I(1,C1e,7,4,"div",1),I(2,T1e,7,6,"div",1),E()),2&t&&(w("href",r.preview.url,fr),v(1),w("ngIf",""===r.preview.title),v(1),w("ngIf",""!=r.preview.title))},dependencies:[ri,xn,as],styles:[".loading{margin-top:8px}.gc_just_link{font-size:12px;line-height:12px;height:12px;overflow:hidden;white-space:pre;text-decoration:underline;box-sizing:content-box}.gc-preview-container{font-family:Roboto,sans-serif;height:50px;width:100%;box-sizing:content-box;padding:0;cursor:pointer}.gc-preview-container:hover{border-radius:2px;box-shadow:0 0 1px 2px #d3d3d3}.gc-preview-container .gc-image{display:inline-block;width:55px;box-sizing:content-box}.gc-preview-container .gc-image img{width:calc(100% - 4px);height:50px;object-fit:contain}.gc-preview-container .gc-image .icon{height:50px;display:flex;justify-content:center;align-items:center}.gc-preview-container .gc-image .icon svg{height:40px}.gc-preview-container .gc-text-container{display:inline-block;width:calc(100% - 55px);vertical-align:top;box-sizing:content-box}.gc-preview-container .gc-text-container.no-image{width:100%}.gc-preview-container .gc-text-container .gc-header{font-family:Roboto,sans-serif!important;margin:2px;font-size:14px;line-height:14px;height:15px;overflow:hidden;width:100%;white-space:pre;text-overflow:ellipsis;text-decoration:underline}.gc-preview-container .gc-text-container .gc-description{margin:2px;font-size:12px;height:28px;line-height:14px;overflow:hidden}\n"],encapsulation:3}),n})(),I1e=(()=>{class n{constructor(t){this.chatService=t,this.botSettings={botImgUrl:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/you_avatar_white.png?alt=media&token=139d8629-744d-4a2c-b4aa-a2171ba4f5d4"},this.backgroundSuccess={}}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(t=>{this.botSettings=t,this.backgroundSuccess={"background-color":t.backgroundColors[0]}})}ngOnDestroy(){this.botSettingsSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn))},n.\u0275cmp=Ut({type:n,selectors:[["app-typing-animation"]],decls:7,vars:0,consts:[[1,"each-msg"],[1,"message","reply"],[1,"msg-text"],["id","wave"],[1,"dot"]],template:function(t,r){1&t&&(C(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),K(4,"span",4)(5,"span",4)(6,"span",4),E()()()())},styles:[".each-msg[_ngcontent-%COMP%]{clear:both;margin-bottom:25px;display:flex;justify-content:flex-start;flex-wrap:wrap}.each-msg[_ngcontent-%COMP%]   .bot-image[_ngcontent-%COMP%]{width:35px;position:relative}.each-msg[_ngcontent-%COMP%]   .bot-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:32px;width:32px;border-radius:50%;position:absolute;left:0px;bottom:0px}.each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{border-radius:18px 18px 0/18px 18px 0px;font-size:14px;padding:8px 12px;color:#fff;max-width:75%;white-space:pre-line;margin:0}.each-msg[_ngcontent-%COMP%]   .message.reply[_ngcontent-%COMP%]{background:white!important;color:#000;border-bottom-left-radius:0;border-bottom-right-radius:18px}div#wave[_ngcontent-%COMP%]{position:relative;text-align:left;height:25px}div#wave[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:3px;background:#303131;animation:wave 1.3s linear infinite}div#wave[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]:nth-child(2){animation-delay:-1.1s}div#wave[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.9s}@keyframes wave{0%,60%,to{transform:initial}30%{transform:translateY(15px)}}"]}),n})();function KH(n){return null!==n&&"object"==typeof n&&"constructor"in n&&n.constructor===Object}function RA(n={},e={}){Object.keys(e).forEach(t=>{typeof n[t]>"u"?n[t]=e[t]:KH(e[t])&&KH(n[t])&&Object.keys(e[t]).length>0&&RA(n[t],e[t])})}const QH={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function zr(){const n=typeof document<"u"?document:{};return RA(n,QH),n}const D1e={document:QH,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:n=>typeof setTimeout>"u"?(n(),null):setTimeout(n,0),cancelAnimationFrame(n){typeof setTimeout>"u"||clearTimeout(n)}};function En(){const n=typeof window<"u"?window:{};return RA(n,D1e),n}class Do extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function A1e(n){const e=n.__proto__;Object.defineProperty(n,"__proto__",{get:()=>e,set(t){e.__proto__=t}})}(this))}}function Sh(n=[]){const e=[];return n.forEach(t=>{Array.isArray(t)?e.push(...Sh(t)):e.push(t)}),e}function XH(n,e){return Array.prototype.filter.call(n,e)}function Oe(n,e){const t=En(),r=zr();let i=[];if(!e&&n instanceof Do)return n;if(!n)return new Do(i);if("string"==typeof n){const s=n.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){let o="div";0===s.indexOf("<li")&&(o="ul"),0===s.indexOf("<tr")&&(o="tbody"),(0===s.indexOf("<td")||0===s.indexOf("<th"))&&(o="tr"),0===s.indexOf("<tbody")&&(o="table"),0===s.indexOf("<option")&&(o="select");const a=r.createElement(o);a.innerHTML=s;for(let l=0;l<a.childNodes.length;l+=1)i.push(a.childNodes[l])}else i=function P1e(n,e){if("string"!=typeof n)return[n];const t=[],r=e.querySelectorAll(n);for(let i=0;i<r.length;i+=1)t.push(r[i]);return t}(n.trim(),e||r)}else if(n.nodeType||n===t||n===r)i.push(n);else if(Array.isArray(n)){if(n instanceof Do)return n;i=n}return new Do(function M1e(n){const e=[];for(let t=0;t<n.length;t+=1)-1===e.indexOf(n[t])&&e.push(n[t]);return e}(i))}Oe.fn=Do.prototype;const gCe="resize scroll".split(" ");function $t(n){return function e(...t){if(typeof t[0]>"u"){for(let r=0;r<this.length;r+=1)gCe.indexOf(n)<0&&(n in this[r]?this[r][n]():Oe(this[r]).trigger(n));return this}return this.on(n,...t)}}$t("click"),$t("blur"),$t("focus"),$t("focusin"),$t("focusout"),$t("keyup"),$t("keydown"),$t("keypress"),$t("submit"),$t("change"),$t("mousedown"),$t("mousemove"),$t("mouseup"),$t("mouseenter"),$t("mouseleave"),$t("mouseout"),$t("mouseover"),$t("touchstart"),$t("touchend"),$t("touchmove"),$t("resize"),$t("scroll");const ZH={addClass:function O1e(...n){const e=Sh(n.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.add(...e)}),this},removeClass:function N1e(...n){const e=Sh(n.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.remove(...e)}),this},hasClass:function L1e(...n){const e=Sh(n.map(t=>t.split(" ")));return XH(this,t=>e.filter(r=>t.classList.contains(r)).length>0).length>0},toggleClass:function R1e(...n){const e=Sh(n.map(t=>t.split(" ")));this.forEach(t=>{e.forEach(r=>{t.classList.toggle(r)})})},attr:function F1e(n,e){if(1===arguments.length&&"string"==typeof n)return this[0]?this[0].getAttribute(n):void 0;for(let t=0;t<this.length;t+=1)if(2===arguments.length)this[t].setAttribute(n,e);else for(const r in n)this[t][r]=n[r],this[t].setAttribute(r,n[r]);return this},removeAttr:function V1e(n){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(n);return this},transform:function B1e(n){for(let e=0;e<this.length;e+=1)this[e].style.transform=n;return this},transition:function $1e(n){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof n?`${n}ms`:n;return this},on:function U1e(...n){let[e,t,r,i]=n;function s(c){const u=c.target;if(!u)return;const d=c.target.dom7EventData||[];if(d.indexOf(c)<0&&d.unshift(c),Oe(u).is(t))r.apply(u,d);else{const h=Oe(u).parents();for(let f=0;f<h.length;f+=1)Oe(h[f]).is(t)&&r.apply(h[f],d)}}function o(c){const u=c&&c.target&&c.target.dom7EventData||[];u.indexOf(c)<0&&u.unshift(c),r.apply(this,u)}"function"==typeof n[1]&&([e,r,i]=n,t=void 0),i||(i=!1);const a=e.split(" ");let l;for(let c=0;c<this.length;c+=1){const u=this[c];if(t)for(l=0;l<a.length;l+=1){const d=a[l];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[d]||(u.dom7LiveListeners[d]=[]),u.dom7LiveListeners[d].push({listener:r,proxyListener:s}),u.addEventListener(d,s,i)}else for(l=0;l<a.length;l+=1){const d=a[l];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[d]||(u.dom7Listeners[d]=[]),u.dom7Listeners[d].push({listener:r,proxyListener:o}),u.addEventListener(d,o,i)}}return this},off:function H1e(...n){let[e,t,r,i]=n;"function"==typeof n[1]&&([e,r,i]=n,t=void 0),i||(i=!1);const s=e.split(" ");for(let o=0;o<s.length;o+=1){const a=s[o];for(let l=0;l<this.length;l+=1){const c=this[l];let u;if(!t&&c.dom7Listeners?u=c.dom7Listeners[a]:t&&c.dom7LiveListeners&&(u=c.dom7LiveListeners[a]),u&&u.length)for(let d=u.length-1;d>=0;d-=1){const h=u[d];r&&h.listener===r||r&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===r?(c.removeEventListener(a,h.proxyListener,i),u.splice(d,1)):r||(c.removeEventListener(a,h.proxyListener,i),u.splice(d,1))}}}return this},trigger:function z1e(...n){const e=En(),t=n[0].split(" "),r=n[1];for(let i=0;i<t.length;i+=1){const s=t[i];for(let o=0;o<this.length;o+=1){const a=this[o];if(e.CustomEvent){const l=new e.CustomEvent(s,{detail:r,bubbles:!0,cancelable:!0});a.dom7EventData=n.filter((c,u)=>u>0),a.dispatchEvent(l),a.dom7EventData=[],delete a.dom7EventData}}}return this},transitionEnd:function j1e(n){const e=this;return n&&e.on("transitionend",function t(r){r.target===this&&(n.call(this,r),e.off("transitionend",t))}),this},outerWidth:function G1e(n){if(this.length>0){if(n){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function W1e(n){if(this.length>0){if(n){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function Y1e(){const n=En();return this[0]?n.getComputedStyle(this[0],null):{}},offset:function q1e(){if(this.length>0){const n=En(),e=zr(),t=this[0],r=t.getBoundingClientRect(),i=e.body;return{top:r.top+(t===n?n.scrollY:t.scrollTop)-(t.clientTop||i.clientTop||0),left:r.left+(t===n?n.scrollX:t.scrollLeft)-(t.clientLeft||i.clientLeft||0)}}return null},css:function K1e(n,e){const t=En();let r;if(1===arguments.length){if("string"!=typeof n){for(r=0;r<this.length;r+=1)for(const i in n)this[r].style[i]=n[i];return this}if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(n)}if(2===arguments.length&&"string"==typeof n){for(r=0;r<this.length;r+=1)this[r].style[n]=e;return this}return this},each:function Q1e(n){return n?(this.forEach((e,t)=>{n.apply(e,[e,t])}),this):this},html:function Z1e(n){if(typeof n>"u")return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=n;return this},text:function J1e(n){if(typeof n>"u")return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=n;return this},is:function eCe(n){const e=En(),t=zr(),r=this[0];let i,s;if(!r||typeof n>"u")return!1;if("string"==typeof n){if(r.matches)return r.matches(n);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(n);if(r.msMatchesSelector)return r.msMatchesSelector(n);for(i=Oe(n),s=0;s<i.length;s+=1)if(i[s]===r)return!0;return!1}if(n===t)return r===t;if(n===e)return r===e;if(n.nodeType||n instanceof Do){for(i=n.nodeType?[n]:n,s=0;s<i.length;s+=1)if(i[s]===r)return!0;return!1}return!1},index:function tCe(){let e,n=this[0];if(n){for(e=0;null!==(n=n.previousSibling);)1===n.nodeType&&(e+=1);return e}},eq:function nCe(n){if(typeof n>"u")return this;const e=this.length;if(n>e-1)return Oe([]);if(n<0){const t=e+n;return Oe(t<0?[]:[this[t]])}return Oe([this[n]])},append:function rCe(...n){let e;const t=zr();for(let r=0;r<n.length;r+=1){e=n[r];for(let i=0;i<this.length;i+=1)if("string"==typeof e){const s=t.createElement("div");for(s.innerHTML=e;s.firstChild;)this[i].appendChild(s.firstChild)}else if(e instanceof Do)for(let s=0;s<e.length;s+=1)this[i].appendChild(e[s]);else this[i].appendChild(e)}return this},prepend:function iCe(n){const e=zr();let t,r;for(t=0;t<this.length;t+=1)if("string"==typeof n){const i=e.createElement("div");for(i.innerHTML=n,r=i.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(i.childNodes[r],this[t].childNodes[0])}else if(n instanceof Do)for(r=0;r<n.length;r+=1)this[t].insertBefore(n[r],this[t].childNodes[0]);else this[t].insertBefore(n,this[t].childNodes[0]);return this},next:function sCe(n){return this.length>0?n?this[0].nextElementSibling&&Oe(this[0].nextElementSibling).is(n)?Oe([this[0].nextElementSibling]):Oe([]):Oe(this[0].nextElementSibling?[this[0].nextElementSibling]:[]):Oe([])},nextAll:function oCe(n){const e=[];let t=this[0];if(!t)return Oe([]);for(;t.nextElementSibling;){const r=t.nextElementSibling;n?Oe(r).is(n)&&e.push(r):e.push(r),t=r}return Oe(e)},prev:function aCe(n){if(this.length>0){const e=this[0];return n?e.previousElementSibling&&Oe(e.previousElementSibling).is(n)?Oe([e.previousElementSibling]):Oe([]):Oe(e.previousElementSibling?[e.previousElementSibling]:[])}return Oe([])},prevAll:function lCe(n){const e=[];let t=this[0];if(!t)return Oe([]);for(;t.previousElementSibling;){const r=t.previousElementSibling;n?Oe(r).is(n)&&e.push(r):e.push(r),t=r}return Oe(e)},parent:function cCe(n){const e=[];for(let t=0;t<this.length;t+=1)null!==this[t].parentNode&&(n?Oe(this[t].parentNode).is(n)&&e.push(this[t].parentNode):e.push(this[t].parentNode));return Oe(e)},parents:function uCe(n){const e=[];for(let t=0;t<this.length;t+=1){let r=this[t].parentNode;for(;r;)n?Oe(r).is(n)&&e.push(r):e.push(r),r=r.parentNode}return Oe(e)},closest:function dCe(n){let e=this;return typeof n>"u"?Oe([]):(e.is(n)||(e=e.parents(n).eq(0)),e)},find:function hCe(n){const e=[];for(let t=0;t<this.length;t+=1){const r=this[t].querySelectorAll(n);for(let i=0;i<r.length;i+=1)e.push(r[i])}return Oe(e)},children:function fCe(n){const e=[];for(let t=0;t<this.length;t+=1){const r=this[t].children;for(let i=0;i<r.length;i+=1)(!n||Oe(r[i]).is(n))&&e.push(r[i])}return Oe(e)},filter:function X1e(n){return Oe(XH(this,n))},remove:function pCe(){for(let n=0;n<this.length;n+=1)this[n].parentNode&&this[n].parentNode.removeChild(this[n]);return this}};Object.keys(ZH).forEach(n=>{Object.defineProperty(Oe.fn,n,{value:ZH[n],writable:!0})});const Je=Oe;function LA(n,e=0){return setTimeout(n,e)}function Eh(){return Date.now()}function w_(n){return"object"==typeof n&&null!==n&&n.constructor&&"Object"===Object.prototype.toString.call(n).slice(8,-1)}function vCe(n){return typeof window<"u"&&typeof window.HTMLElement<"u"?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType)}function jr(...n){const e=Object(n[0]),t=["__proto__","constructor","prototype"];for(let r=1;r<n.length;r+=1){const i=n[r];if(null!=i&&!vCe(i)){const s=Object.keys(Object(i)).filter(o=>t.indexOf(o)<0);for(let o=0,a=s.length;o<a;o+=1){const l=s[o],c=Object.getOwnPropertyDescriptor(i,l);void 0!==c&&c.enumerable&&(w_(e[l])&&w_(i[l])?i[l].__swiper__?e[l]=i[l]:jr(e[l],i[l]):!w_(e[l])&&w_(i[l])?(e[l]={},i[l].__swiper__?e[l]=i[l]:jr(e[l],i[l])):e[l]=i[l])}}}return e}function C_(n,e,t){n.style.setProperty(e,t)}function JH({swiper:n,targetPosition:e,side:t}){const r=En(),i=-n.translate;let o,s=null;const a=n.params.speed;n.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(n.cssModeFrameID);const l=e>i?"next":"prev",c=(d,h)=>"next"===l&&d>=h||"prev"===l&&d<=h,u=()=>{o=(new Date).getTime(),null===s&&(s=o);const d=Math.max(Math.min((o-s)/a,1),0),h=.5-Math.cos(d*Math.PI)/2;let f=i+h*(e-i);if(c(f,e)&&(f=e),n.wrapperEl.scrollTo({[t]:f}),c(f,e))return n.wrapperEl.style.overflow="hidden",n.wrapperEl.style.scrollSnapType="",setTimeout(()=>{n.wrapperEl.style.overflow="",n.wrapperEl.scrollTo({[t]:f})}),void r.cancelAnimationFrame(n.cssModeFrameID);n.cssModeFrameID=r.requestAnimationFrame(u)};u()}let FA,VA,BA;function ez(){return FA||(FA=function bCe(){const n=En(),e=zr();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in n||n.DocumentTouch&&e instanceof n.DocumentTouch),passiveListener:function(){let r=!1;try{const i=Object.defineProperty({},"passive",{get(){r=!0}});n.addEventListener("testPassiveListener",null,i)}catch{}return r}(),gestures:"ongesturestart"in n}}()),FA}const ICe={on(n,e,t){const r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof e)return r;const i=t?"unshift":"push";return n.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][i](e)}),r},once(n,e,t){const r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof e)return r;function i(...s){r.off(n,i),i.__emitterProxy&&delete i.__emitterProxy,e.apply(r,s)}return i.__emitterProxy=e,r.on(n,i,t)},onAny(n,e){const t=this;if(!t.eventsListeners||t.destroyed||"function"!=typeof n)return t;const r=e?"unshift":"push";return t.eventsAnyListeners.indexOf(n)<0&&t.eventsAnyListeners[r](n),t},offAny(n){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const t=e.eventsAnyListeners.indexOf(n);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(n,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||n.split(" ").forEach(r=>{typeof e>"u"?t.eventsListeners[r]=[]:t.eventsListeners[r]&&t.eventsListeners[r].forEach((i,s)=>{(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&t.eventsListeners[r].splice(s,1)})}),t},emit(...n){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,r,i;return"string"==typeof n[0]||Array.isArray(n[0])?(t=n[0],r=n.slice(1,n.length),i=e):(t=n[0].events,r=n[0].data,i=n[0].context||e),r.unshift(i),(Array.isArray(t)?t:t.split(" ")).forEach(o=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(a=>{a.apply(i,[o,...r])}),e.eventsListeners&&e.eventsListeners[o]&&e.eventsListeners[o].forEach(a=>{a.apply(i,r)})}),e}},FCe={updateSize:function DCe(){const n=this;let e,t;const r=n.$el;e=typeof n.params.width<"u"&&null!==n.params.width?n.params.width:r[0].clientWidth,t=typeof n.params.height<"u"&&null!==n.params.height?n.params.height:r[0].clientHeight,!(0===e&&n.isHorizontal()||0===t&&n.isVertical())&&(e=e-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),t=t-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(n,{width:e,height:t,size:n.isHorizontal()?e:t}))},updateSlides:function ACe(){const n=this;function e(z){return n.isHorizontal()?z:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[z]}function t(z,O){return parseFloat(z.getPropertyValue(e(O))||0)}const r=n.params,{$wrapperEl:i,size:s,rtlTranslate:o,wrongRTL:a}=n,l=n.virtual&&r.virtual.enabled,c=l?n.virtual.slides.length:n.slides.length,u=i.children(`.${n.params.slideClass}`),d=l?n.virtual.slides.length:u.length;let h=[];const f=[],p=[];let g=r.slidesOffsetBefore;"function"==typeof g&&(g=r.slidesOffsetBefore.call(n));let m=r.slidesOffsetAfter;"function"==typeof m&&(m=r.slidesOffsetAfter.call(n));const _=n.snapGrid.length,b=n.slidesGrid.length;let y=r.spaceBetween,T=-g,D=0,A=0;if(typeof s>"u")return;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*s),n.virtualSize=-y,u.css(o?{marginLeft:"",marginBottom:"",marginTop:""}:{marginRight:"",marginBottom:"",marginTop:""}),r.centeredSlides&&r.cssMode&&(C_(n.wrapperEl,"--swiper-centered-offset-before",""),C_(n.wrapperEl,"--swiper-centered-offset-after",""));const P=r.grid&&r.grid.rows>1&&n.grid;let j;P&&n.grid.initSlides(d);const Y="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter(z=>typeof r.breakpoints[z].slidesPerView<"u").length>0;for(let z=0;z<d;z+=1){j=0;const O=u.eq(z);if(P&&n.grid.updateSlide(z,O,d,e),"none"!==O.css("display")){if("auto"===r.slidesPerView){Y&&(u[z].style[e("width")]="");const k=getComputedStyle(O[0]),L=O[0].style.transform,ee=O[0].style.webkitTransform;if(L&&(O[0].style.transform="none"),ee&&(O[0].style.webkitTransform="none"),r.roundLengths)j=n.isHorizontal()?O.outerWidth(!0):O.outerHeight(!0);else{const ie=t(k,"width"),x=t(k,"padding-left"),U=t(k,"padding-right"),H=t(k,"margin-left"),se=t(k,"margin-right"),me=k.getPropertyValue("box-sizing");if(me&&"border-box"===me)j=ie+H+se;else{const{clientWidth:ot,offsetWidth:ft}=O[0];j=ie+x+U+H+se+(ft-ot)}}L&&(O[0].style.transform=L),ee&&(O[0].style.webkitTransform=ee),r.roundLengths&&(j=Math.floor(j))}else j=(s-(r.slidesPerView-1)*y)/r.slidesPerView,r.roundLengths&&(j=Math.floor(j)),u[z]&&(u[z].style[e("width")]=`${j}px`);u[z]&&(u[z].swiperSlideSize=j),p.push(j),r.centeredSlides?(T=T+j/2+D/2+y,0===D&&0!==z&&(T=T-s/2-y),0===z&&(T=T-s/2-y),Math.abs(T)<.001&&(T=0),r.roundLengths&&(T=Math.floor(T)),A%r.slidesPerGroup==0&&h.push(T),f.push(T)):(r.roundLengths&&(T=Math.floor(T)),(A-Math.min(n.params.slidesPerGroupSkip,A))%n.params.slidesPerGroup==0&&h.push(T),f.push(T),T=T+j+y),n.virtualSize+=j+y,D=j,A+=1}}if(n.virtualSize=Math.max(n.virtualSize,s)+m,o&&a&&("slide"===r.effect||"coverflow"===r.effect)&&i.css({width:`${n.virtualSize+r.spaceBetween}px`}),r.setWrapperSize&&i.css({[e("width")]:`${n.virtualSize+r.spaceBetween}px`}),P&&n.grid.updateWrapperSize(j,h,e),!r.centeredSlides){const z=[];for(let O=0;O<h.length;O+=1){let k=h[O];r.roundLengths&&(k=Math.floor(k)),h[O]<=n.virtualSize-s&&z.push(k)}h=z,Math.floor(n.virtualSize-s)-Math.floor(h[h.length-1])>1&&h.push(n.virtualSize-s)}if(0===h.length&&(h=[0]),0!==r.spaceBetween){const z=n.isHorizontal()&&o?"marginLeft":e("marginRight");u.filter((O,k)=>!r.cssMode||k!==u.length-1).css({[z]:`${y}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let z=0;p.forEach(k=>{z+=k+(r.spaceBetween?r.spaceBetween:0)}),z-=r.spaceBetween;const O=z-s;h=h.map(k=>k<0?-g:k>O?O+m:k)}if(r.centerInsufficientSlides){let z=0;if(p.forEach(O=>{z+=O+(r.spaceBetween?r.spaceBetween:0)}),z-=r.spaceBetween,z<s){const O=(s-z)/2;h.forEach((k,L)=>{h[L]=k-O}),f.forEach((k,L)=>{f[L]=k+O})}}if(Object.assign(n,{slides:u,snapGrid:h,slidesGrid:f,slidesSizesGrid:p}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){C_(n.wrapperEl,"--swiper-centered-offset-before",-h[0]+"px"),C_(n.wrapperEl,"--swiper-centered-offset-after",n.size/2-p[p.length-1]/2+"px");const z=-n.snapGrid[0],O=-n.slidesGrid[0];n.snapGrid=n.snapGrid.map(k=>k+z),n.slidesGrid=n.slidesGrid.map(k=>k+O)}if(d!==c&&n.emit("slidesLengthChange"),h.length!==_&&(n.params.watchOverflow&&n.checkOverflow(),n.emit("snapGridLengthChange")),f.length!==b&&n.emit("slidesGridLengthChange"),r.watchSlidesProgress&&n.updateSlidesOffset(),!(l||r.cssMode||"slide"!==r.effect&&"fade"!==r.effect)){const z=`${r.containerModifierClass}backface-hidden`,O=n.$el.hasClass(z);d<=r.maxBackfaceHiddenSlides?O||n.$el.addClass(z):O&&n.$el.removeClass(z)}},updateAutoHeight:function MCe(n){const e=this,t=[],r=e.virtual&&e.params.virtual.enabled;let s,i=0;"number"==typeof n?e.setTransition(n):!0===n&&e.setTransition(e.params.speed);const o=a=>r?e.slides.filter(l=>parseInt(l.getAttribute("data-swiper-slide-index"),10)===a)[0]:e.slides.eq(a)[0];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||Je([])).each(a=>{t.push(a)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const a=e.activeIndex+s;if(a>e.slides.length&&!r)break;t.push(o(a))}else t.push(o(e.activeIndex));for(s=0;s<t.length;s+=1)if(typeof t[s]<"u"){const a=t[s].offsetHeight;i=a>i?a:i}(i||0===i)&&e.$wrapperEl.css("height",`${i}px`)},updateSlidesOffset:function kCe(){const n=this,e=n.slides;for(let t=0;t<e.length;t+=1)e[t].swiperSlideOffset=n.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function PCe(n=this&&this.translate||0){const e=this,t=e.params,{slides:r,rtlTranslate:i,snapGrid:s}=e;if(0===r.length)return;typeof r[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let o=-n;i&&(o=n),r.removeClass(t.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let a=0;a<r.length;a+=1){const l=r[a];let c=l.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(c-=r[0].swiperSlideOffset);const u=(o+(t.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+t.spaceBetween),d=(o-s[0]+(t.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+t.spaceBetween),h=-(o-c),f=h+e.slidesSizesGrid[a];(h>=0&&h<e.size-1||f>1&&f<=e.size||h<=0&&f>=e.size)&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(a),r.eq(a).addClass(t.slideVisibleClass)),l.progress=i?-u:u,l.originalProgress=i?-d:d}e.visibleSlides=Je(e.visibleSlides)},updateProgress:function OCe(n){const e=this;if(typeof n>"u"){const c=e.rtlTranslate?-1:1;n=e&&e.translate&&e.translate*c||0}const t=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:s,isEnd:o}=e;const a=s,l=o;0===r?(i=0,s=!0,o=!0):(i=(n-e.minTranslate())/r,s=i<=0,o=i>=1),Object.assign(e,{progress:i,isBeginning:s,isEnd:o}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(n),s&&!a&&e.emit("reachBeginning toEdge"),o&&!l&&e.emit("reachEnd toEdge"),(a&&!s||l&&!o)&&e.emit("fromEdge"),e.emit("progress",i)},updateSlidesClasses:function NCe(){const n=this,{slides:e,params:t,$wrapperEl:r,activeIndex:i,realIndex:s}=n,o=n.virtual&&t.virtual.enabled;let a;e.removeClass(`${t.slideActiveClass} ${t.slideNextClass} ${t.slidePrevClass} ${t.slideDuplicateActiveClass} ${t.slideDuplicateNextClass} ${t.slideDuplicatePrevClass}`),a=o?n.$wrapperEl.find(`.${t.slideClass}[data-swiper-slide-index="${i}"]`):e.eq(i),a.addClass(t.slideActiveClass),t.loop&&(a.hasClass(t.slideDuplicateClass)?r.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${s}"]`).addClass(t.slideDuplicateActiveClass):r.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${s}"]`).addClass(t.slideDuplicateActiveClass));let l=a.nextAll(`.${t.slideClass}`).eq(0).addClass(t.slideNextClass);t.loop&&0===l.length&&(l=e.eq(0),l.addClass(t.slideNextClass));let c=a.prevAll(`.${t.slideClass}`).eq(0).addClass(t.slidePrevClass);t.loop&&0===c.length&&(c=e.eq(-1),c.addClass(t.slidePrevClass)),t.loop&&(l.hasClass(t.slideDuplicateClass)?r.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass):r.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass),c.hasClass(t.slideDuplicateClass)?r.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass):r.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass)),n.emitSlidesClasses()},updateActiveIndex:function RCe(n){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:r,snapGrid:i,params:s,activeIndex:o,realIndex:a,snapIndex:l}=e;let u,c=n;if(typeof c>"u"){for(let h=0;h<r.length;h+=1)typeof r[h+1]<"u"?t>=r[h]&&t<r[h+1]-(r[h+1]-r[h])/2?c=h:t>=r[h]&&t<r[h+1]&&(c=h+1):t>=r[h]&&(c=h);s.normalizeSlideIndex&&(c<0||typeof c>"u")&&(c=0)}if(i.indexOf(t)>=0)u=i.indexOf(t);else{const h=Math.min(s.slidesPerGroupSkip,c);u=h+Math.floor((c-h)/s.slidesPerGroup)}if(u>=i.length&&(u=i.length-1),c===o)return void(u!==l&&(e.snapIndex=u,e.emit("snapIndexChange")));const d=parseInt(e.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(e,{snapIndex:u,realIndex:d,previousIndex:o,activeIndex:c}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),a!==d&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")},updateClickedSlide:function LCe(n){const e=this,t=e.params,r=Je(n).closest(`.${t.slideClass}`)[0];let s,i=!1;if(r)for(let o=0;o<e.slides.length;o+=1)if(e.slides[o]===r){i=!0,s=o;break}if(!r||!i)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=r,e.clickedIndex=e.virtual&&e.params.virtual.enabled?parseInt(Je(r).attr("data-swiper-slide-index"),10):s,t.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}},zCe={getTranslate:function VCe(n=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:r,translate:i,$wrapperEl:s}=this;if(t.virtualTranslate)return r?-i:i;if(t.cssMode)return i;let o=function _Ce(n,e="x"){const t=En();let r,i,s;const o=function yCe(n){const e=En();let t;return e.getComputedStyle&&(t=e.getComputedStyle(n,null)),!t&&n.currentStyle&&(t=n.currentStyle),t||(t=n.style),t}(n);return t.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new t.WebKitCSSMatrix("none"===i?"":i)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),"x"===e&&(i=t.WebKitCSSMatrix?s.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===e&&(i=t.WebKitCSSMatrix?s.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}(s[0],n);return r&&(o=-o),o||0},setTranslate:function BCe(n,e){const t=this,{rtlTranslate:r,params:i,$wrapperEl:s,wrapperEl:o,progress:a}=t;let d,l=0,c=0;t.isHorizontal()?l=r?-n:n:c=n,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.cssMode?o[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-l:-c:i.virtualTranslate||s.transform(`translate3d(${l}px, ${c}px, 0px)`),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?l:c;const h=t.maxTranslate()-t.minTranslate();d=0===h?0:(n-t.minTranslate())/h,d!==a&&t.updateProgress(n),t.emit("setTranslate",t.translate,e)},minTranslate:function $Ce(){return-this.snapGrid[0]},maxTranslate:function UCe(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function HCe(n=0,e=this.params.speed,t=!0,r=!0,i){const s=this,{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let u;if(u=r&&n>l?l:r&&n<c?c:n,s.updateProgress(u),o.cssMode){const d=s.isHorizontal();if(0===e)a[d?"scrollLeft":"scrollTop"]=-u;else{if(!s.support.smoothScroll)return JH({swiper:s,targetPosition:-u,side:d?"left":"top"}),!0;a.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===e?(s.setTransition(0),s.setTranslate(u),t&&(s.emit("beforeTransitionStart",e,i),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(u),t&&(s.emit("beforeTransitionStart",e,i),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(h){!s||s.destroyed||h.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,t&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}};function tz({swiper:n,runCallbacks:e,direction:t,step:r}){const{activeIndex:i,previousIndex:s}=n;let o=t;if(o||(o=i>s?"next":i<s?"prev":"reset"),n.emit(`transition${r}`),e&&i!==s){if("reset"===o)return void n.emit(`slideResetTransition${r}`);n.emit(`slideChangeTransition${r}`),n.emit("next"===o?`slideNextTransition${r}`:`slidePrevTransition${r}`)}}const qCe={setTransition:function jCe(n,e){const t=this;t.params.cssMode||t.$wrapperEl.transition(n),t.emit("setTransition",n,e)},transitionStart:function GCe(n=!0,e){const t=this,{params:r}=t;r.cssMode||(r.autoHeight&&t.updateAutoHeight(),tz({swiper:t,runCallbacks:n,direction:e,step:"Start"}))},transitionEnd:function WCe(n=!0,e){const t=this,{params:r}=t;t.animating=!1,!r.cssMode&&(t.setTransition(0),tz({swiper:t,runCallbacks:n,direction:e,step:"End"}))}},tSe={slideTo:function YCe(n=0,e=this.params.speed,t=!0,r,i){if("number"!=typeof n&&"string"!=typeof n)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof n}] given.`);if("string"==typeof n){const y=parseInt(n,10);if(!isFinite(y))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${n}] given.`);n=y}const s=this;let o=n;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:h,wrapperEl:f,enabled:p}=s;if(s.animating&&a.preventInteractionOnTransition||!p&&!r&&!i)return!1;const g=Math.min(s.params.slidesPerGroupSkip,o);let m=g+Math.floor((o-g)/s.params.slidesPerGroup);m>=l.length&&(m=l.length-1);const _=-l[m];if(a.normalizeSlideIndex)for(let y=0;y<c.length;y+=1){const T=-Math.floor(100*_),D=Math.floor(100*c[y]),A=Math.floor(100*c[y+1]);typeof c[y+1]<"u"?T>=D&&T<A-(A-D)/2?o=y:T>=D&&T<A&&(o=y+1):T>=D&&(o=y)}if(s.initialized&&o!==d&&(!s.allowSlideNext&&_<s.translate&&_<s.minTranslate()||!s.allowSlidePrev&&_>s.translate&&_>s.maxTranslate()&&(d||0)!==o))return!1;let b;if(o!==(u||0)&&t&&s.emit("beforeSlideChangeStart"),s.updateProgress(_),b=o>d?"next":o<d?"prev":"reset",h&&-_===s.translate||!h&&_===s.translate)return s.updateActiveIndex(o),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==a.effect&&s.setTranslate(_),"reset"!==b&&(s.transitionStart(t,b),s.transitionEnd(t,b)),!1;if(a.cssMode){const y=s.isHorizontal(),T=h?_:-_;if(0===e){const D=s.virtual&&s.params.virtual.enabled;D&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),f[y?"scrollLeft":"scrollTop"]=T,D&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1})}else{if(!s.support.smoothScroll)return JH({swiper:s,targetPosition:T,side:y?"left":"top"}),!0;f.scrollTo({[y?"left":"top"]:T,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(_),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,r),s.transitionStart(t,b),0===e?s.transitionEnd(t,b):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(T){!s||s.destroyed||T.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(t,b))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function KCe(n=0,e=this.params.speed,t=!0,r){if("string"==typeof n){const o=parseInt(n,10);if(!isFinite(o))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${n}] given.`);n=o}const i=this;let s=n;return i.params.loop&&(s+=i.loopedSlides),i.slideTo(s,e,t,r)},slideNext:function QCe(n=this.params.speed,e=!0,t){const r=this,{animating:i,enabled:s,params:o}=r;if(!s)return r;let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:a;if(o.loop){if(i&&o.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return r.slideTo(o.rewind&&r.isEnd?0:r.activeIndex+l,n,e,t)},slidePrev:function XCe(n=this.params.speed,e=!0,t){const r=this,{params:i,animating:s,snapGrid:o,slidesGrid:a,rtlTranslate:l,enabled:c}=r;if(!c)return r;if(i.loop){if(s&&i.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function d(m){return m<0?-Math.floor(Math.abs(m)):Math.floor(m)}const h=d(l?r.translate:-r.translate),f=o.map(m=>d(m));let p=o[f.indexOf(h)-1];if(typeof p>"u"&&i.cssMode){let m;o.forEach((_,b)=>{h>=_&&(m=b)}),typeof m<"u"&&(p=o[m>0?m-1:m])}let g=0;return typeof p<"u"&&(g=a.indexOf(p),g<0&&(g=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=g-r.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),r.slideTo(i.rewind&&r.isBeginning?r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1:g,n,e,t)},slideReset:function ZCe(n=this.params.speed,e=!0,t){return this.slideTo(this.activeIndex,n,e,t)},slideToClosest:function JCe(n=this.params.speed,e=!0,t,r=.5){const i=this;let s=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const c=i.snapGrid[a];l-c>(i.snapGrid[a+1]-c)*r&&(s+=i.params.slidesPerGroup)}else{const c=i.snapGrid[a-1];l-c<=(i.snapGrid[a]-c)*r&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,n,e,t)},slideToClickedSlide:function eSe(){const n=this,{params:e,$wrapperEl:t}=n,r="auto"===e.slidesPerView?n.slidesPerViewDynamic():e.slidesPerView;let s,i=n.clickedIndex;if(e.loop){if(n.animating)return;s=parseInt(Je(n.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?i<n.loopedSlides-r/2||i>n.slides.length-n.loopedSlides+r/2?(n.loopFix(),i=t.children(`.${e.slideClass}[data-swiper-slide-index="${s}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),LA(()=>{n.slideTo(i)})):n.slideTo(i):i>n.slides.length-r?(n.loopFix(),i=t.children(`.${e.slideClass}[data-swiper-slide-index="${s}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),LA(()=>{n.slideTo(i)})):n.slideTo(i)}else n.slideTo(i)}},sSe={loopCreate:function nSe(){const n=this,e=zr(),{params:t,$wrapperEl:r}=n,i=r.children().length>0?Je(r.children()[0].parentNode):r;i.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let s=i.children(`.${t.slideClass}`);if(t.loopFillGroupWithBlank){const l=t.slidesPerGroup-s.length%t.slidesPerGroup;if(l!==t.slidesPerGroup){for(let c=0;c<l;c+=1){const u=Je(e.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);i.append(u)}s=i.children(`.${t.slideClass}`)}}"auto"===t.slidesPerView&&!t.loopedSlides&&(t.loopedSlides=s.length),n.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),n.loopedSlides+=t.loopAdditionalSlides,n.loopedSlides>s.length&&n.params.loopedSlidesLimit&&(n.loopedSlides=s.length);const o=[],a=[];s.each((l,c)=>{Je(l).attr("data-swiper-slide-index",c)});for(let l=0;l<n.loopedSlides;l+=1){const c=l-Math.floor(l/s.length)*s.length;a.push(s.eq(c)[0]),o.unshift(s.eq(s.length-c-1)[0])}for(let l=0;l<a.length;l+=1)i.append(Je(a[l].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let l=o.length-1;l>=0;l-=1)i.prepend(Je(o[l].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function rSe(){const n=this;n.emit("beforeLoopFix");const{activeIndex:e,slides:t,loopedSlides:r,allowSlidePrev:i,allowSlideNext:s,snapGrid:o,rtlTranslate:a}=n;let l;n.allowSlidePrev=!0,n.allowSlideNext=!0;const u=-o[e]-n.getTranslate();e<r?(l=t.length-3*r+e,l+=r,n.slideTo(l,0,!1,!0)&&0!==u&&n.setTranslate((a?-n.translate:n.translate)-u)):e>=t.length-r&&(l=-t.length+e+r,l+=r,n.slideTo(l,0,!1,!0)&&0!==u&&n.setTranslate((a?-n.translate:n.translate)-u)),n.allowSlidePrev=i,n.allowSlideNext=s,n.emit("loopFix")},loopDestroy:function iSe(){const{$wrapperEl:e,params:t,slides:r}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),r.removeAttr("data-swiper-slide-index")}};function uSe(n){const e=this,t=zr(),r=En(),i=e.touchEventsData,{params:s,touches:o,enabled:a}=e;if(!a||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=n;l.originalEvent&&(l=l.originalEvent);let c=Je(l.target);if("wrapper"===s.touchEventsTarget&&!c.closest(e.wrapperEl).length||(i.isTouchEvent="touchstart"===l.type,!i.isTouchEvent&&"which"in l&&3===l.which)||!i.isTouchEvent&&"button"in l&&l.button>0||i.isTouched&&i.isMoved)return;const u=!!s.noSwipingClass&&""!==s.noSwipingClass,d=n.composedPath?n.composedPath():n.path;u&&l.target&&l.target.shadowRoot&&d&&(c=Je(d[0]));const h=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`;if(s.noSwiping&&(l.target&&l.target.shadowRoot?function cSe(n,e=this){return function t(r){if(!r||r===zr()||r===En())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(n);return i||r.getRootNode?i||t(r.getRootNode().host):null}(e)}(h,c[0]):c.closest(h)[0]))return void(e.allowClick=!0);if(s.swipeHandler&&!c.closest(s.swipeHandler)[0])return;o.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,o.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;const p=o.currentX,g=o.currentY,m=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,_=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(m&&(p<=_||p>=r.innerWidth-_)){if("prevent"!==m)return;n.preventDefault()}if(Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=g,i.touchStartTime=Eh(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==l.type){let b=!0;c.is(i.focusableElements)&&(b=!1,"SELECT"===c[0].nodeName&&(i.isTouched=!1)),t.activeElement&&Je(t.activeElement).is(i.focusableElements)&&t.activeElement!==c[0]&&t.activeElement.blur();const y=b&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||y)&&!c[0].isContentEditable&&l.preventDefault()}e.params.freeMode&&e.params.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function dSe(n){const e=zr(),t=this,r=t.touchEventsData,{params:i,touches:s,rtlTranslate:o,enabled:a}=t;if(!a)return;let l=n;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched)return void(r.startMoving&&r.isScrolling&&t.emit("touchMoveOpposite",l));if(r.isTouchEvent&&"touchmove"!==l.type)return;const c="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),u="touchmove"===l.type?c.pageX:l.pageX,d="touchmove"===l.type?c.pageY:l.pageY;if(l.preventedByNestedSwiper)return s.startX=u,void(s.startY=d);if(!t.allowTouchMove)return Je(l.target).is(r.focusableElements)||(t.allowClick=!1),void(r.isTouched&&(Object.assign(s,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=Eh()));if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(t.isVertical()){if(d<s.startY&&t.translate<=t.maxTranslate()||d>s.startY&&t.translate>=t.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(u<s.startX&&t.translate<=t.maxTranslate()||u>s.startX&&t.translate>=t.minTranslate())return;if(r.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&Je(l.target).is(r.focusableElements))return r.isMoved=!0,void(t.allowClick=!1);if(r.allowTouchCallbacks&&t.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;s.currentX=u,s.currentY=d;const h=s.currentX-s.startX,f=s.currentY-s.startY;if(t.params.threshold&&Math.sqrt(h**2+f**2)<t.params.threshold)return;if(typeof r.isScrolling>"u"){let _;t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:h*h+f*f>=25&&(_=180*Math.atan2(Math.abs(f),Math.abs(h))/Math.PI,r.isScrolling=t.isHorizontal()?_>i.touchAngle:90-_>i.touchAngle)}if(r.isScrolling&&t.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling)return void(r.isTouched=!1);if(!r.startMoving)return;t.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation(),r.isMoved||(i.loop&&!i.cssMode&&t.loopFix(),r.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,i.grabCursor&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",l)),t.emit("sliderMove",l),r.isMoved=!0;let p=t.isHorizontal()?h:f;s.diff=p,p*=i.touchRatio,o&&(p=-p),t.swipeDirection=p>0?"prev":"next",r.currentTranslate=p+r.startTranslate;let g=!0,m=i.resistanceRatio;if(i.touchReleaseOnEdges&&(m=0),p>0&&r.currentTranslate>t.minTranslate()?(g=!1,i.resistance&&(r.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+r.startTranslate+p)**m)):p<0&&r.currentTranslate<t.maxTranslate()&&(g=!1,i.resistance&&(r.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-r.startTranslate-p)**m)),g&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(p)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,void(s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&t.freeMode||i.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),t.params.freeMode&&i.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(r.currentTranslate),t.setTranslate(r.currentTranslate))}function hSe(n){const e=this,t=e.touchEventsData,{params:r,touches:i,rtlTranslate:s,slidesGrid:o,enabled:a}=e;if(!a)return;let l=n;if(l.originalEvent&&(l=l.originalEvent),t.allowTouchCallbacks&&e.emit("touchEnd",l),t.allowTouchCallbacks=!1,!t.isTouched)return t.isMoved&&r.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,void(t.startMoving=!1);r.grabCursor&&t.isMoved&&t.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const c=Eh(),u=c-t.touchStartTime;if(e.allowClick){const b=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(b&&b[0]||l.target),e.emit("tap click",l),u<300&&c-t.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(t.lastClickTime=Eh(),LA(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||0===i.diff||t.currentTranslate===t.startTranslate)return t.isTouched=!1,t.isMoved=!1,void(t.startMoving=!1);let d;if(t.isTouched=!1,t.isMoved=!1,t.startMoving=!1,d=r.followFinger?s?e.translate:-e.translate:-t.currentTranslate,r.cssMode)return;if(e.params.freeMode&&r.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:d});let h=0,f=e.slidesSizesGrid[0];for(let b=0;b<o.length;b+=b<r.slidesPerGroupSkip?1:r.slidesPerGroup){const y=b<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof o[b+y]<"u"?d>=o[b]&&d<o[b+y]&&(h=b,f=o[b+y]-o[b]):d>=o[b]&&(h=b,f=o[o.length-1]-o[o.length-2])}let p=null,g=null;r.rewind&&(e.isBeginning?g=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const m=(d-o[h])/f,_=h<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(u>r.longSwipesMs){if(!r.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(m>=r.longSwipesRatio?r.rewind&&e.isEnd?p:h+_:h),"prev"===e.swipeDirection&&(m>1-r.longSwipesRatio?e.slideTo(h+_):null!==g&&m<0&&Math.abs(m)>r.longSwipesRatio?e.slideTo(g):e.slideTo(h))}else{if(!r.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||l.target!==e.navigation.nextEl&&l.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(null!==p?p:h+_),"prev"===e.swipeDirection&&e.slideTo(null!==g?g:h)):e.slideTo(l.target===e.navigation.nextEl?h+_:h)}}function nz(){const n=this,{params:e,el:t}=n;if(t&&0===t.offsetWidth)return;e.breakpoints&&n.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:s}=n;n.allowSlideNext=!0,n.allowSlidePrev=!0,n.updateSize(),n.updateSlides(),n.updateSlidesClasses(),n.slideTo(("auto"===e.slidesPerView||e.slidesPerView>1)&&n.isEnd&&!n.isBeginning&&!n.params.centeredSlides?n.slides.length-1:n.activeIndex,0,!1,!0),n.autoplay&&n.autoplay.running&&n.autoplay.paused&&n.autoplay.run(),n.allowSlidePrev=i,n.allowSlideNext=r,n.params.watchOverflow&&s!==n.snapGrid&&n.checkOverflow()}function fSe(n){const e=this;!e.enabled||e.allowClick||(e.params.preventClicks&&n.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(n.stopPropagation(),n.stopImmediatePropagation()))}function pSe(){const n=this,{wrapperEl:e,rtlTranslate:t,enabled:r}=n;if(!r)return;let i;n.previousTranslate=n.translate,n.translate=n.isHorizontal()?-e.scrollLeft:-e.scrollTop,0===n.translate&&(n.translate=0),n.updateActiveIndex(),n.updateSlidesClasses();const s=n.maxTranslate()-n.minTranslate();i=0===s?0:(n.translate-n.minTranslate())/s,i!==n.progress&&n.updateProgress(t?-n.translate:n.translate),n.emit("setTranslate",n.translate,!1)}let rz=!1;function gSe(){}const iz=(n,e)=>{const t=zr(),{params:r,touchEvents:i,el:s,wrapperEl:o,device:a,support:l}=n,c=!!r.nested,u="on"===e?"addEventListener":"removeEventListener",d=e;if(l.touch){const h=!("touchstart"!==i.start||!l.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};s[u](i.start,n.onTouchStart,h),s[u](i.move,n.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),s[u](i.end,n.onTouchEnd,h),i.cancel&&s[u](i.cancel,n.onTouchEnd,h)}else s[u](i.start,n.onTouchStart,!1),t[u](i.move,n.onTouchMove,c),t[u](i.end,n.onTouchEnd,!1);(r.preventClicks||r.preventClicksPropagation)&&s[u]("click",n.onClick,!0),r.cssMode&&o[u]("scroll",n.onScroll),n[d](r.updateOnWindowResize?a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate":"observerUpdate",nz,!0)},_Se={attachEvents:function mSe(){const n=this,e=zr(),{params:t,support:r}=n;n.onTouchStart=uSe.bind(n),n.onTouchMove=dSe.bind(n),n.onTouchEnd=hSe.bind(n),t.cssMode&&(n.onScroll=pSe.bind(n)),n.onClick=fSe.bind(n),r.touch&&!rz&&(e.addEventListener("touchstart",gSe),rz=!0),iz(n,"on")},detachEvents:function ySe(){iz(this,"off")}},sz=(n,e)=>n.grid&&e.grid&&e.grid.rows>1,wSe={setBreakpoint:function vSe(){const n=this,{activeIndex:e,initialized:t,loopedSlides:r=0,params:i,$el:s}=n,o=i.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=n.getBreakpoint(o,n.params.breakpointsBase,n.el);if(!a||n.currentBreakpoint===a)return;const c=(a in o?o[a]:void 0)||n.originalParams,u=sz(n,i),d=sz(n,c),h=i.enabled;u&&!d?(s.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`),n.emitContainerClasses()):!u&&d&&(s.addClass(`${i.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===i.grid.fill)&&s.addClass(`${i.containerModifierClass}grid-column`),n.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(m=>{const _=i[m]&&i[m].enabled,b=c[m]&&c[m].enabled;_&&!b&&n[m].disable(),!_&&b&&n[m].enable()});const f=c.direction&&c.direction!==i.direction,p=i.loop&&(c.slidesPerView!==i.slidesPerView||f);f&&t&&n.changeDirection(),jr(n.params,c);const g=n.params.enabled;Object.assign(n,{allowTouchMove:n.params.allowTouchMove,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev}),h&&!g?n.disable():!h&&g&&n.enable(),n.currentBreakpoint=a,n.emit("_beforeBreakpoint",c),p&&t&&(n.loopDestroy(),n.loopCreate(),n.updateSlides(),n.slideTo(e-r+n.loopedSlides,0,!1)),n.emit("breakpoint",c)},getBreakpoint:function bSe(n,e="window",t){if(!n||"container"===e&&!t)return;let r=!1;const i=En(),s="window"===e?i.innerHeight:t.clientHeight,o=Object.keys(n).map(a=>{if("string"==typeof a&&0===a.indexOf("@")){const l=parseFloat(a.substr(1));return{value:s*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<o.length;a+=1){const{point:l,value:c}=o[a];"window"===e?i.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=t.clientWidth&&(r=l)}return r||"max"}},TSe={addClasses:function SSe(){const n=this,{classNames:e,params:t,rtl:r,$el:i,device:s,support:o}=n,a=function CSe(n,e){const t=[];return n.forEach(r=>{"object"==typeof r?Object.keys(r).forEach(i=>{r[i]&&t.push(e+i)}):"string"==typeof r&&t.push(e+r)}),t}(["initialized",t.direction,{"pointer-events":!o.touch},{"free-mode":n.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:r},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:s.android},{ios:s.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),i.addClass([...e].join(" ")),n.emitContainerClasses()},removeClasses:function ESe(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},DSe={loadImage:function xSe(n,e,t,r,i,s){const o=En();let a;function l(){s&&s()}Je(n).parent("picture")[0]||n.complete&&i||!e?l():(a=new o.Image,a.onload=l,a.onerror=l,r&&(a.sizes=r),t&&(a.srcset=t),e&&(a.src=e))},preloadImages:function ISe(){const n=this;function e(){typeof n>"u"||null===n||!n||n.destroyed||(void 0!==n.imagesLoaded&&(n.imagesLoaded+=1),n.imagesLoaded===n.imagesToLoad.length&&(n.params.updateOnImagesReady&&n.update(),n.emit("imagesReady")))}n.imagesToLoad=n.$el.find("img");for(let t=0;t<n.imagesToLoad.length;t+=1){const r=n.imagesToLoad[t];n.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,e)}}},oz={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function kSe(n,e){return function(r={}){const i=Object.keys(r)[0],s=r[i];"object"==typeof s&&null!==s?(["navigation","pagination","scrollbar"].indexOf(i)>=0&&!0===n[i]&&(n[i]={auto:!0}),i in n&&"enabled"in s?(!0===n[i]&&(n[i]={enabled:!0}),"object"==typeof n[i]&&!("enabled"in n[i])&&(n[i].enabled=!0),n[i]||(n[i]={enabled:!1}),jr(e,r)):jr(e,r)):jr(e,r)}}const $A={eventsEmitter:ICe,update:FCe,translate:zCe,transition:qCe,slide:tSe,loop:sSe,grabCursor:{setGrabCursor:function oSe(n){const e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const t="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;t.style.cursor="move",t.style.cursor=n?"grabbing":"grab"},unsetGrabCursor:function aSe(){const n=this;n.support.touch||n.params.watchOverflow&&n.isLocked||n.params.cssMode||(n["container"===n.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:_Se,breakpoints:wSe,checkOverflow:{checkOverflow:function ASe(){const n=this,{isLocked:e,params:t}=n,{slidesOffsetBefore:r}=t;if(r){const i=n.slides.length-1;n.isLocked=n.size>n.slidesGrid[i]+n.slidesSizesGrid[i]+2*r}else n.isLocked=1===n.snapGrid.length;!0===t.allowSlideNext&&(n.allowSlideNext=!n.isLocked),!0===t.allowSlidePrev&&(n.allowSlidePrev=!n.isLocked),e&&e!==n.isLocked&&(n.isEnd=!1),e!==n.isLocked&&n.emit(n.isLocked?"lock":"unlock")}},classes:TSe,images:DSe},UA={};class fi{constructor(...e){let t,r;if(1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?r=e[0]:[t,r]=e,r||(r={}),r=jr({},r),t&&!r.el&&(r.el=t),r.el&&Je(r.el).length>1){const a=[];return Je(r.el).each(l=>{const c=jr({},r,{el:l});a.push(new fi(c))}),a}const i=this;i.__swiper__=!0,i.support=ez(),i.device=function CCe(n={}){return VA||(VA=function wCe({userAgent:n}={}){const e=ez(),t=En(),r=t.navigator.platform,i=n||t.navigator.userAgent,s={ios:!1,android:!1},o=t.screen.width,a=t.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===r;let f="MacIntel"===r;return!c&&f&&e.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${a}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),f=!1),l&&!h&&(s.os="android",s.android=!0),(c||d||u)&&(s.os="ios",s.ios=!0),s}(n)),VA}({userAgent:r.userAgent}),i.browser=function ECe(){return BA||(BA=function SCe(){const n=En();return{isSafari:function e(){const t=n.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(n.navigator.userAgent)}}()),BA}(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],r.modules&&Array.isArray(r.modules)&&i.modules.push(...r.modules);const s={};i.modules.forEach(a=>{a({swiper:i,extendParams:kSe(r,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const o=jr({},oz,s);return i.params=jr({},o,UA,r),i.originalParams=jr({},i.params),i.passedParams=jr({},r),i.params&&i.params.on&&Object.keys(i.params.on).forEach(a=>{i.on(a,i.params.on[a])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),i.$=Je,Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:Je(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEvents:function(){const l=["touchstart","touchmove","touchend","touchcancel"],c=["pointerdown","pointermove","pointerup"];return i.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},i.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},i.support.touch||!i.params.simulateTouch?i.touchEventsTouch:i.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:Eh(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;!e.enabled||(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const r=this;e=Math.min(Math.max(e,0),1);const i=r.minTranslate(),o=(r.maxTranslate()-i)*e+i;r.translateTo(o,typeof t>"u"?0:t),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(r=>0===r.indexOf("swiper")||0===r.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(r=>0===r.indexOf("swiper-slide")||0===r.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each(r=>{const i=e.getSlideClasses(r);t.push({slideEl:r,classNames:i}),e.emit("_slideClass",r,i)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:i,slides:s,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:c}=this;let u=1;if(i.centeredSlides){let h,d=s[c].swiperSlideSize;for(let f=c+1;f<s.length;f+=1)s[f]&&!h&&(d+=s[f].swiperSlideSize,u+=1,d>l&&(h=!0));for(let f=c-1;f>=0;f-=1)s[f]&&!h&&(d+=s[f].swiperSlideSize,u+=1,d>l&&(h=!0))}else if("current"===e)for(let d=c+1;d<s.length;d+=1)(t?o[d]+a[d]-o[c]<l:o[d]-o[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)o[c]-o[d]<l&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:r}=e;function i(){const a=Math.min(Math.max(e.rtlTranslate?-1*e.translate:e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let s;r.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(i(),e.params.autoHeight&&e.updateAutoHeight()):(s=e.slideTo(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slides.length-1:e.activeIndex,0,!1,!0),s||i()),r.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const r=this,i=r.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(r.$el.removeClass(`${r.params.containerModifierClass}${i}`).addClass(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.each(s=>{"vertical"===e?s.style.width="":s.style.height=""}),r.emit("changeDirection"),t&&r.update()),r}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const r=Je(e||t.params.el);if(!(e=r[0]))return!1;e.swiper=t;const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const a=Je(e.shadowRoot.querySelector(i()));return a.children=l=>r.children(l),a}return r.children?r.children(i()):Je(r).children(i())})();if(0===o.length&&t.params.createElements){const l=zr().createElement("div");o=Je(l),l.className=t.params.wrapperClass,r.append(l),r.children(`.${t.params.slideClass}`).each(c=>{o.append(c)})}return Object.assign(t,{$el:r,el:e,$wrapperEl:o,wrapperEl:o[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===o.css("display")}),!0}init(e){const t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.slideTo(t.params.loop?t.params.initialSlide+t.loopedSlides:t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const r=this,{params:i,$el:s,$wrapperEl:o,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),t&&(r.removeClasses(),s.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),!1!==e&&(r.$el[0].swiper=null,function mCe(n){const e=n;Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}(r)),r.destroyed=!0),null}static extendDefaults(e){jr(UA,e)}static get extendedDefaults(){return UA}static get defaults(){return oz}static installModule(e){fi.prototype.__modules__||(fi.prototype.__modules__=[]);const t=fi.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>fi.installModule(t)),fi):(fi.installModule(e),fi)}}Object.keys($A).forEach(n=>{Object.keys($A[n]).forEach(e=>{fi.prototype[e]=$A[n][e]})}),fi.use([function TCe({swiper:n,on:e,emit:t}){const r=En();let i=null,s=null;const o=()=>{!n||n.destroyed||!n.initialized||(t("beforeResize"),t("resize"))},c=()=>{!n||n.destroyed||!n.initialized||t("orientationchange")};e("init",()=>{n.params.resizeObserver&&typeof r.ResizeObserver<"u"?!n||n.destroyed||!n.initialized||(i=new ResizeObserver(u=>{s=r.requestAnimationFrame(()=>{const{width:d,height:h}=n;let f=d,p=h;u.forEach(({contentBoxSize:g,contentRect:m,target:_})=>{_&&_!==n.el||(f=m?m.width:(g[0]||g).inlineSize,p=m?m.height:(g[0]||g).blockSize)}),(f!==d||p!==h)&&o()})}),i.observe(n.el)):(r.addEventListener("resize",o),r.addEventListener("orientationchange",c))}),e("destroy",()=>{s&&r.cancelAnimationFrame(s),i&&i.unobserve&&n.el&&(i.unobserve(n.el),i=null),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",c)})},function xCe({swiper:n,extendParams:e,on:t,emit:r}){const i=[],s=En(),o=(c,u={})=>{const h=new(s.MutationObserver||s.WebkitMutationObserver)(f=>{if(1===f.length)return void r("observerUpdate",f[0]);const p=function(){r("observerUpdate",f[0])};s.requestAnimationFrame?s.requestAnimationFrame(p):s.setTimeout(p,0)});h.observe(c,{attributes:typeof u.attributes>"u"||u.attributes,childList:typeof u.childList>"u"||u.childList,characterData:typeof u.characterData>"u"||u.characterData}),i.push(h)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),t("init",()=>{if(n.params.observer){if(n.params.observeParents){const c=n.$el.parents();for(let u=0;u<c.length;u+=1)o(c[u])}o(n.$el[0],{childList:n.params.observeSlideChildren}),o(n.$wrapperEl[0],{attributes:!1})}}),t("destroy",()=>{i.forEach(c=>{c.disconnect()}),i.splice(0,i.length)})}]);const Ha=fi;function az(n){const{effect:e,swiper:t,on:r,setTranslate:i,setTransition:s,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:c}=n;let u;r("beforeInit",()=>{if(t.params.effect!==e)return;t.classNames.push(`${t.params.containerModifierClass}${e}`),a&&a()&&t.classNames.push(`${t.params.containerModifierClass}3d`);const d=o?o():{};Object.assign(t.params,d),Object.assign(t.originalParams,d)}),r("setTranslate",()=>{t.params.effect===e&&i()}),r("setTransition",(d,h)=>{t.params.effect===e&&s(h)}),r("transitionEnd",()=>{if(t.params.effect===e&&l){if(!c||!c().slideShadows)return;t.slides.each(d=>{t.$(d).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()}),l()}}),r("virtualUpdate",()=>{t.params.effect===e&&(t.slides.length||(u=!0),requestAnimationFrame(()=>{u&&t.slides&&t.slides.length&&(i(),u=!1)}))})}function lz({swiper:n,extendParams:e,on:t}){e({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const r=(a,l,c)=>{let u=a.find(c?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),d=a.find(c?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===u.length&&(u=Je(`<div class="swiper-slide-shadow-${c?"left":"top"}"></div>`),a.append(u)),0===d.length&&(d=Je(`<div class="swiper-slide-shadow-${c?"right":"bottom"}"></div>`),a.append(d)),u.length&&(u[0].style.opacity=Math.max(-l,0)),d.length&&(d[0].style.opacity=Math.max(l,0))};az({effect:"cube",swiper:n,on:t,setTranslate:()=>{const{$el:a,$wrapperEl:l,slides:c,width:u,height:d,rtlTranslate:h,size:f,browser:p}=n,g=n.params.cubeEffect,m=n.isHorizontal(),_=n.virtual&&n.params.virtual.enabled;let y,b=0;g.shadow&&(m?(y=l.find(".swiper-cube-shadow"),0===y.length&&(y=Je('<div class="swiper-cube-shadow"></div>'),l.append(y)),y.css({height:`${u}px`})):(y=a.find(".swiper-cube-shadow"),0===y.length&&(y=Je('<div class="swiper-cube-shadow"></div>'),a.append(y))));for(let D=0;D<c.length;D+=1){const A=c.eq(D);let P=D;_&&(P=parseInt(A.attr("data-swiper-slide-index"),10));let j=90*P,Y=Math.floor(j/360);h&&(j=-j,Y=Math.floor(-j/360));const z=Math.max(Math.min(A[0].progress,1),-1);let O=0,k=0,L=0;P%4==0?(O=4*-Y*f,L=0):(P-1)%4==0?(O=0,L=4*-Y*f):(P-2)%4==0?(O=f+4*Y*f,L=f):(P-3)%4==0&&(O=-f,L=3*f+4*f*Y),h&&(O=-O),m||(k=O,O=0);const ee=`rotateX(${m?0:-j}deg) rotateY(${m?j:0}deg) translate3d(${O}px, ${k}px, ${L}px)`;z<=1&&z>-1&&(b=90*P+90*z,h&&(b=90*-P-90*z)),A.transform(ee),g.slideShadows&&r(A,z,m)}if(l.css({"-webkit-transform-origin":`50% 50% -${f/2}px`,"transform-origin":`50% 50% -${f/2}px`}),g.shadow)if(m)y.transform(`translate3d(0px, ${u/2+g.shadowOffset}px, ${-u/2}px) rotateX(90deg) rotateZ(0deg) scale(${g.shadowScale})`);else{const D=Math.abs(b)-90*Math.floor(Math.abs(b)/90),A=1.5-(Math.sin(2*D*Math.PI/360)/2+Math.cos(2*D*Math.PI/360)/2),j=g.shadowScale/A;y.transform(`scale3d(${g.shadowScale}, 1, ${j}) translate3d(0px, ${d/2+g.shadowOffset}px, ${-d/2/j}px) rotateX(-90deg)`)}const T=p.isSafari||p.isWebView?-f/2:0;l.transform(`translate3d(0px,0,${T}px) rotateX(${n.isHorizontal()?0:b}deg) rotateY(${n.isHorizontal()?-b:0}deg)`),l[0].style.setProperty("--swiper-cube-translate-z",`${T}px`)},setTransition:a=>{const{$el:l,slides:c}=n;c.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a),n.params.cubeEffect.shadow&&!n.isHorizontal()&&l.find(".swiper-cube-shadow").transition(a)},recreateShadows:()=>{const a=n.isHorizontal();n.slides.each(l=>{const c=Math.max(Math.min(l.progress,1),-1);r(Je(l),c,a)})},getEffectParams:()=>n.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function cz(n,e,t){const r="swiper-slide-shadow"+(t?`-${t}`:""),i=n.transformEl?e.find(n.transformEl):e;let s=i.children(`.${r}`);return s.length||(s=Je(`<div class="swiper-slide-shadow${t?`-${t}`:""}"></div>`),i.append(s)),s}function PSe(n,e){return n.transformEl?e.find(n.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):e}function LSe(n,e){qe(2,arguments);var t=Vc(n),r=Vc(e),i=t.getTime()-Am(t),s=r.getTime()-Am(r);return Math.round((i-s)/864e5)}function uz(n,e){var t=n.getFullYear()-e.getFullYear()||n.getMonth()-e.getMonth()||n.getDate()-e.getDate()||n.getHours()-e.getHours()||n.getMinutes()-e.getMinutes()||n.getSeconds()-e.getSeconds()||n.getMilliseconds()-e.getMilliseconds();return t<0?-1:t>0?1:t}let HA=(()=>{class n{constructor(){this.showFloating$=new nt({show:!1})}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=ve({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const VSe=["prevElRef"],BSe=["nextElRef"],$Se=["scrollbarElRef"],USe=["paginationElRef"];function HSe(n,e){1&n&&(Xr(0),K(1,"div",6,7)(3,"div",8,9),Zr())}function zSe(n,e){1&n&&K(0,"div",10,11)}function jSe(n,e){1&n&&K(0,"div",12,13)}function GSe(n,e){}function WSe(n,e){1&n&&I(0,GSe,0,0,"ng-template")}function qSe(n,e){}function YSe(n,e){1&n&&I(0,qSe,0,0,"ng-template")}function KSe(n,e){}function QSe(n,e){1&n&&I(0,KSe,0,0,"ng-template")}function XSe(n,e){}const dz=function(n){return{$implicit:n}};function ZSe(n,e){if(1&n&&(C(0,"div",3),I(1,XSe,0,0,"ng-template",18),E()),2&n){const t=S().$implicit;w("ngClass",S(2).zoomContainerClass),v(1),w("ngTemplateOutlet",t.template)("ngTemplateOutletContext",pe(3,dz,t.slideData))}}function JSe(n,e){}function eEe(n,e){if(1&n&&(Xr(0),I(1,JSe,0,0,"ng-template",18),Zr()),2&n){const t=S().$implicit;v(1),w("ngTemplateOutlet",t.template)("ngTemplateOutletContext",pe(2,dz,t.slideData))}}function tEe(n,e){if(1&n&&(C(0,"div",15),I(1,ZSe,2,5,"div",16),I(2,eEe,2,4,"ng-container",17),E()),2&n){const t=e.$implicit,r=S().key,i=S();(function Si(n){Ti(HO,KW,n,!1)})(i.style),w("ngClass",(t.class?t.class+" ":"")+i.slideClass+(""!==r?" "+i.slideDuplicateClass:""))("ngSwitch",t.zoom),Nr("data-swiper-slide-index",t.virtualIndex?t.virtualIndex:t.slideIndex)("data-swiper-autoplay",t.autoplayDelay),v(1),w("ngSwitchCase",!0)}}function nEe(n,e){1&n&&(I(0,tEe,3,7,"div",14),ge(1,"async")),2&n&&w("ngForOf",_e(1,1,e.loopSlides))}const rEe=[[["","slot","container-start"]],[["","slot","wrapper-start"]],[["","slot","wrapper-end"]],[["","slot","container-end"]]],iEe=function(n){return{loopSlides:n,key:"prepend"}},sEe=function(n){return{loopSlides:n,key:""}},oEe=function(n){return{loopSlides:n,key:"append"}},aEe=["[slot=container-start]","[slot=wrapper-start]","[slot=wrapper-end]","[slot=container-end]"],hz=["init","enabled","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","on"];function Bc(n){return"object"==typeof n&&null!==n&&n.constructor&&"Object"===Object.prototype.toString.call(n).slice(8,-1)}function zA(n){return typeof n<"u"&&"boolean"!=typeof n&&!0===n.enabled}function fz(n,e,t){return!0===S_(n)&&e&&!e.el||!("boolean"!=typeof e&&e.el!==t?.nativeElement&&("string"==typeof e.el||"object"==typeof e.el))}function Ao(n,e){const t=["__proto__","constructor","prototype"];Object.keys(e).filter(r=>t.indexOf(r)<0).forEach(r=>{typeof n[r]>"u"?n[r]=e[r]:n[r]&&!e[r]||(Bc(e[r])&&Bc(n[r])&&Object.keys(e[r]).length>0?e[r].__swiper__?n[r]=e[r]:Ao(n[r],e[r]):n[r]=e[r])})}function S_(n){return null!=n&&"false"!=`${n}`}const lEe=["pagination","navigation","scrollbar","virtual"];function E_(n,e={}){return Bc(n)?n:!0===S_(n)&&e}function jA(n={}){const e={on:{}},t={};Ao(e,Ha.defaults),Ao(e,Ha.extendedDefaults),e._emitClasses=!0,e.init=!1;const r={},i=hz.map(s=>s.replace(/_/,""));return Object.keys(n).forEach(s=>{const o=s.replace(/^_/,"");i.indexOf(o)>=0?Bc(n[s])?(e[o]={},t[o]={},Ao(e[o],n[s]),Ao(t[o],n[s])):(e[o]=n[s],t[o]=n[s]):r[o]=n[s]}),["navigation","pagination","scrollbar"].forEach(s=>{!0===e[s]&&(e[s]={}),!1===e[s]&&delete e[s]}),{params:e,passedParams:t,rest:r}}hz.map(n=>n.replace(/_/,""));let Th=(()=>{class n{constructor(t){this.template=t,this.class="",this.autoplayDelay=null,this.slideData={isActive:!1,isPrev:!1,isNext:!1,isVisible:!1,isDuplicate:!1}}set ngClass(t){this.class=[this.class||"",t].join(" ")}set zoom(t){this._zoom=S_(t)}get zoom(){return this._zoom}get classNames(){return this._classNames}set classNames(t){this._classNames!==t&&(this._classNames=t,this.slideData={isActive:this._hasClass(["swiper-slide-active","swiper-slide-duplicate-active"]),isVisible:this._hasClass(["swiper-slide-visible"]),isDuplicate:this._hasClass(["swiper-slide-duplicate"]),isPrev:this._hasClass(["swiper-slide-prev","swiper-slide-duplicate-prev"]),isNext:this._hasClass(["swiper-slide-next","swiper-slide-duplicate-next"])})}_hasClass(t){return t.some(r=>this._classNames.indexOf(r)>=0)}}return n.\u0275fac=function(t){return new(t||n)(R(xi))},n.\u0275dir=Ce({type:n,selectors:[["ng-template","swiperSlide",""]],inputs:{virtualIndex:"virtualIndex",class:"class",ngClass:"ngClass",autoplayDelay:["data-swiper-autoplay","autoplayDelay"],zoom:"zoom"}}),n})(),T_=(()=>{class n{constructor(t,r,i,s){this._ngZone=t,this.elementRef=r,this._changeDetectorRef=i,this._platformId=s,this.slideClass="swiper-slide",this.wrapperClass="swiper-wrapper",this.showNavigation=!0,this.showPagination=!0,this.showScrollbar=!0,this.s__beforeBreakpoint=new G,this.s__containerClasses=new G,this.s__slideClass=new G,this.s__swiper=new G,this.s_activeIndexChange=new G,this.s_afterInit=new G,this.s_autoplay=new G,this.s_autoplayStart=new G,this.s_autoplayStop=new G,this.s_autoplayPause=new G,this.s_autoplayResume=new G,this.s_beforeDestroy=new G,this.s_beforeInit=new G,this.s_beforeLoopFix=new G,this.s_beforeResize=new G,this.s_beforeSlideChangeStart=new G,this.s_beforeTransitionStart=new G,this.s_breakpoint=new G,this.s_changeDirection=new G,this.s_click=new G,this.s_doubleTap=new G,this.s_doubleClick=new G,this.s_destroy=new G,this.s_fromEdge=new G,this.s_hashChange=new G,this.s_hashSet=new G,this.s_imagesReady=new G,this.s_init=new G,this.s_keyPress=new G,this.s_lazyImageLoad=new G,this.s_lazyImageReady=new G,this.s_loopFix=new G,this.s_momentumBounce=new G,this.s_navigationHide=new G,this.s_navigationShow=new G,this.s_navigationPrev=new G,this.s_navigationNext=new G,this.s_observerUpdate=new G,this.s_orientationchange=new G,this.s_paginationHide=new G,this.s_paginationRender=new G,this.s_paginationShow=new G,this.s_paginationUpdate=new G,this.s_progress=new G,this.s_reachBeginning=new G,this.s_reachEnd=new G,this.s_realIndexChange=new G,this.s_resize=new G,this.s_scroll=new G,this.s_scrollbarDragEnd=new G,this.s_scrollbarDragMove=new G,this.s_scrollbarDragStart=new G,this.s_setTransition=new G,this.s_setTranslate=new G,this.s_slideChange=new G,this.s_slideChangeTransitionEnd=new G,this.s_slideChangeTransitionStart=new G,this.s_slideNextTransitionEnd=new G,this.s_slideNextTransitionStart=new G,this.s_slidePrevTransitionEnd=new G,this.s_slidePrevTransitionStart=new G,this.s_slideResetTransitionStart=new G,this.s_slideResetTransitionEnd=new G,this.s_sliderMove=new G,this.s_sliderFirstMove=new G,this.s_slidesLengthChange=new G,this.s_slidesGridLengthChange=new G,this.s_snapGridLengthChange=new G,this.s_snapIndexChange=new G,this.s_tap=new G,this.s_toEdge=new G,this.s_touchEnd=new G,this.s_touchMove=new G,this.s_touchMoveOpposite=new G,this.s_touchStart=new G,this.s_transitionEnd=new G,this.s_transitionStart=new G,this.s_update=new G,this.s_zoomChange=new G,this.s_swiper=new G,this.s_lock=new G,this.s_unlock=new G,this._activeSlides=new cs,this.containerClasses="swiper",this.slidesChanges=o=>{this.slides=o.map((a,l)=>(a.slideIndex=l,a.classNames=this.slideClass||"",a)),this.loop&&!this.loopedSlides&&this.calcLoopedSlides(),this.virtual?this.swiperRef&&this.swiperRef.virtual&&this._ngZone.runOutsideAngular(()=>{this.swiperRef.virtual.slides=this.slides,this.swiperRef.virtual.update(!0)}):this.loopedSlides&&(this.prependSlides=Hn(this.slides.slice(this.slides.length-this.loopedSlides)),this.appendSlides=Hn(this.slides.slice(0,this.loopedSlides))),this._changeDetectorRef.detectChanges()},this.style=null,this.updateVirtualSlides=o=>{!this.swiperRef||this.currentVirtualData&&this.currentVirtualData.from===o.from&&this.currentVirtualData.to===o.to&&this.currentVirtualData.offset===o.offset||(this.style=this.swiperRef.isHorizontal()?{[this.swiperRef.rtlTranslate?"right":"left"]:`${o.offset}px`}:{top:`${o.offset}px`},this.currentVirtualData=o,this._activeSlides.next(o.slides),this._ngZone.run(()=>{this._changeDetectorRef.detectChanges()}),this._ngZone.runOutsideAngular(()=>{this.swiperRef.updateSlides(),this.swiperRef.updateProgress(),this.swiperRef.updateSlidesClasses(),zA(this.swiperRef.params.lazy)&&this.swiperRef.lazy.load(),this.swiperRef.virtual.update(!0)}))}}set navigation(t){var r,i,s;const o="boolean"!=typeof this._navigation&&""!==this._navigation?null===(r=this._navigation)||void 0===r?void 0:r.nextEl:null,a="boolean"!=typeof this._navigation&&""!==this._navigation?null===(i=this._navigation)||void 0===i?void 0:i.prevEl:null;this._navigation=E_(t,{nextEl:o||null,prevEl:a||null}),this.showNavigation=!(!0!==S_(t)||this._navigation&&"boolean"!=typeof this._navigation&&this._navigation.prevEl!==(null===(s=this._prevElRef)||void 0===s?void 0:s.nativeElement)&&(null!==this._navigation.prevEl||null!==this._navigation.nextEl)&&("string"==typeof this._navigation.nextEl||"string"==typeof this._navigation.prevEl||"object"==typeof this._navigation.nextEl||"object"==typeof this._navigation.prevEl))}get navigation(){return this._navigation}set pagination(t){var r;const i="boolean"!=typeof this._pagination&&""!==this._pagination?null===(r=this._pagination)||void 0===r?void 0:r.el:null;this._pagination=E_(t,{el:i||null}),this.showPagination=fz(t,this._pagination,this._paginationElRef)}get pagination(){return this._pagination}set scrollbar(t){var r;const i="boolean"!=typeof this._scrollbar&&""!==this._scrollbar?null===(r=this._scrollbar)||void 0===r?void 0:r.el:null;this._scrollbar=E_(t,{el:i||null}),this.showScrollbar=fz(t,this._scrollbar,this._scrollbarElRef)}get scrollbar(){return this._scrollbar}set virtual(t){this._virtual=E_(t)}get virtual(){return this._virtual}set config(t){this.updateSwiper(t);const{params:r}=jA(t);Object.assign(this,r)}set prevElRef(t){this._prevElRef=t,this._setElement(t,this.navigation,"navigation","prevEl")}set nextElRef(t){this._nextElRef=t,this._setElement(t,this.navigation,"navigation","nextEl")}set scrollbarElRef(t){this._scrollbarElRef=t,this._setElement(t,this.scrollbar,"scrollbar")}set paginationElRef(t){this._paginationElRef=t,this._setElement(t,this.pagination,"pagination")}get activeSlides(){return this.virtual?this._activeSlides:Hn(this.slides)}get zoomContainerClass(){return this.zoom&&"boolean"!=typeof this.zoom?this.zoom.containerClass:"swiper-zoom-container"}_setElement(t,r,i,s="el"){if(!r||!t)return;if(t.nativeElement){if(r[s]===t.nativeElement)return;r[s]=t.nativeElement}const o={};o[i]=!0,this.updateInitSwiper(o)}ngOnInit(){const{params:t}=jA(this);Object.assign(this,t)}ngAfterViewInit(){this.childrenSlidesInit(),this.initSwiper(),this._changeDetectorRef.detectChanges(),setTimeout(()=>{this.s_swiper.emit(this.swiperRef)})}childrenSlidesInit(){this.slidesChanges(this.slidesEl),this.slidesEl.changes.subscribe(this.slidesChanges)}get isSwiperActive(){return this.swiperRef&&!this.swiperRef.destroyed}initSwiper(){const{params:t}=jA(this);Object.assign(this,t),this._ngZone.runOutsideAngular(()=>{t.init=!1,t.virtual||(t.observer=!0),t.onAny=(l,...c)=>{const u=this["s_"+l];u&&u.emit([...c])},Object.assign(t.on,{_containerClasses:(l,c)=>{setTimeout(()=>{this.containerClasses=c})},_slideClasses:(l,c)=>{c.forEach(({slideEl:u,classNames:d},h)=>{const f=u.getAttribute("data-swiper-slide-index"),p=f?parseInt(f):h;if(this.virtual){const g=this.slides.find(m=>m.virtualIndex&&m.virtualIndex===p);if(g)return void(g.classNames=d)}this.slides[p]&&(this.slides[p].classNames=d)}),this._changeDetectorRef.detectChanges()}});const o=new Ha(t);o.loopCreate=()=>{},o.loopDestroy=()=>{},t.loop&&(o.loopedSlides=this.loopedSlides);const a=zA(o.params.virtual);if(o.virtual&&a){o.virtual.slides=this.slides;const l={cache:!1,slides:this.slides,renderExternal:this.updateVirtualSlides,renderExternalUpdate:!1};Ao(o.params.virtual,l),Ao(o.originalParams.virtual,l)}if(function gX(n){return n===ER}(this._platformId)){this.swiperRef=o.init(this.elementRef.nativeElement);const l=zA(this.swiperRef.params.virtual);this.swiperRef.virtual&&l&&this.swiperRef.virtual.update(!0),this._changeDetectorRef.detectChanges()}})}ngOnChanges(t){this.updateSwiper(t),this._changeDetectorRef.detectChanges()}updateInitSwiper(t){!t||!this.swiperRef||this.swiperRef.destroyed||this._ngZone.runOutsideAngular(()=>{const{pagination:i,navigation:s,scrollbar:o,thumbs:l}=this.swiperRef;t.pagination&&(this.pagination&&"boolean"!=typeof this.pagination&&this.pagination.el&&i&&!i.el?(this.updateParameter("pagination",this.pagination),i.init(),i.render(),i.update()):(i.destroy(),i.el=null)),t.scrollbar&&(this.scrollbar&&"boolean"!=typeof this.scrollbar&&this.scrollbar.el&&o&&!o.el?(this.updateParameter("scrollbar",this.scrollbar),o.init(),o.updateSize(),o.setTranslate()):(o.destroy(),o.el=null)),t.navigation&&(this.navigation&&"boolean"!=typeof this.navigation&&this.navigation.prevEl&&this.navigation.nextEl&&s&&!s.prevEl&&!s.nextEl?(this.updateParameter("navigation",this.navigation),s.init(),s.update()):s.prevEl&&s.nextEl&&(s.destroy(),s.nextEl=null,s.prevEl=null)),t.thumbs&&this.thumbs&&this.thumbs.swiper&&(this.updateParameter("thumbs",this.thumbs),l.init()&&l.update(!0)),t.controller&&this.controller&&this.controller.control&&(this.swiperRef.controller.control=this.controller.control),this.swiperRef.update()})}updateSwiper(t){this._ngZone.runOutsideAngular(()=>{var r,i;if(!t.config&&t&&this.swiperRef&&!this.swiperRef.destroyed){for(const s in t){if(lEe.indexOf(s)>=0)continue;const o=null!==(i=null===(r=t[s])||void 0===r?void 0:r.currentValue)&&void 0!==i?i:t[s];this.updateParameter(s,o)}t.allowSlideNext&&(this.swiperRef.allowSlideNext=this.allowSlideNext),t.allowSlidePrev&&(this.swiperRef.allowSlidePrev=this.allowSlidePrev),t.direction&&this.swiperRef.changeDirection(this.direction,!1),t.breakpoints&&(this.loop&&!this.loopedSlides&&this.calcLoopedSlides(),this.swiperRef.currentBreakpoint=null,this.swiperRef.setBreakpoint()),(t.thumbs||t.controller)&&this.updateInitSwiper(t),this.swiperRef.update()}})}calcLoopedSlides(){if(!this.loop)return!1;let t=this.slidesPerView;if(this.breakpoints){const i=Ha.prototype.getBreakpoint(this.breakpoints),s=i in this.breakpoints?this.breakpoints[i]:void 0;s&&s.slidesPerView&&(t=s.slidesPerView)}if("auto"===t)return this.loopedSlides=this.slides.length,this.slides.length;let r=this.loopedSlides||t;return!!r&&(this.loopAdditionalSlides&&(r+=this.loopAdditionalSlides),r>this.slides.length&&(r=this.slides.length),this.loopedSlides=r,!0)}updateParameter(t,r){if(!this.swiperRef||this.swiperRef.destroyed)return;const i=t.replace(/^_/,""),s=Bc(this.swiperRef.params[i]);"enabled"!==i?s&&Bc(r)?Ao(this.swiperRef.params[i],r):this.swiperRef.params[i]=r:!0===r?this.swiperRef.enable():!1===r&&this.swiperRef.disable()}ngOnDestroy(){this._ngZone.runOutsideAngular(()=>{var t;null===(t=this.swiperRef)||void 0===t||t.destroy(!0,!1)})}}return n.\u0275fac=function(t){return new(t||n)(R(vt),R(Fn),R($l),R(Bl))},n.\u0275cmp=Ut({type:n,selectors:[["swiper"],["","swiper",""]],contentQueries:function(t,r,i){if(1&t&&Wb(i,Th,4),2&t){let s;Jr(s=ei())&&(r.slidesEl=s)}},viewQuery:function(t,r){if(1&t&&(ji(VSe,5),ji(BSe,5),ji($Se,5),ji(USe,5)),2&t){let i;Jr(i=ei())&&(r.prevElRef=i.first),Jr(i=ei())&&(r.nextElRef=i.first),Jr(i=ei())&&(r.scrollbarElRef=i.first),Jr(i=ei())&&(r.paginationElRef=i.first)}},hostVars:2,hostBindings:function(t,r){2&t&&Su(r.containerClasses)},inputs:{enabled:"enabled",on:"on",direction:"direction",touchEventsTarget:"touchEventsTarget",initialSlide:"initialSlide",speed:"speed",cssMode:"cssMode",updateOnWindowResize:"updateOnWindowResize",resizeObserver:"resizeObserver",nested:"nested",focusableElements:"focusableElements",width:"width",height:"height",preventInteractionOnTransition:"preventInteractionOnTransition",userAgent:"userAgent",url:"url",edgeSwipeDetection:"edgeSwipeDetection",edgeSwipeThreshold:"edgeSwipeThreshold",freeMode:"freeMode",autoHeight:"autoHeight",setWrapperSize:"setWrapperSize",virtualTranslate:"virtualTranslate",effect:"effect",breakpoints:"breakpoints",spaceBetween:"spaceBetween",slidesPerView:"slidesPerView",maxBackfaceHiddenSlides:"maxBackfaceHiddenSlides",grid:"grid",slidesPerGroup:"slidesPerGroup",slidesPerGroupSkip:"slidesPerGroupSkip",centeredSlides:"centeredSlides",centeredSlidesBounds:"centeredSlidesBounds",slidesOffsetBefore:"slidesOffsetBefore",slidesOffsetAfter:"slidesOffsetAfter",normalizeSlideIndex:"normalizeSlideIndex",centerInsufficientSlides:"centerInsufficientSlides",watchOverflow:"watchOverflow",roundLengths:"roundLengths",touchRatio:"touchRatio",touchAngle:"touchAngle",simulateTouch:"simulateTouch",shortSwipes:"shortSwipes",longSwipes:"longSwipes",longSwipesRatio:"longSwipesRatio",longSwipesMs:"longSwipesMs",followFinger:"followFinger",allowTouchMove:"allowTouchMove",threshold:"threshold",touchMoveStopPropagation:"touchMoveStopPropagation",touchStartPreventDefault:"touchStartPreventDefault",touchStartForcePreventDefault:"touchStartForcePreventDefault",touchReleaseOnEdges:"touchReleaseOnEdges",uniqueNavElements:"uniqueNavElements",resistance:"resistance",resistanceRatio:"resistanceRatio",watchSlidesProgress:"watchSlidesProgress",grabCursor:"grabCursor",preventClicks:"preventClicks",preventClicksPropagation:"preventClicksPropagation",slideToClickedSlide:"slideToClickedSlide",preloadImages:"preloadImages",updateOnImagesReady:"updateOnImagesReady",loop:"loop",loopAdditionalSlides:"loopAdditionalSlides",loopedSlides:"loopedSlides",loopedSlidesLimit:"loopedSlidesLimit",loopFillGroupWithBlank:"loopFillGroupWithBlank",loopPreventsSlide:"loopPreventsSlide",rewind:"rewind",allowSlidePrev:"allowSlidePrev",allowSlideNext:"allowSlideNext",swipeHandler:"swipeHandler",noSwiping:"noSwiping",noSwipingClass:"noSwipingClass",noSwipingSelector:"noSwipingSelector",passiveListeners:"passiveListeners",containerModifierClass:"containerModifierClass",slideClass:"slideClass",slideBlankClass:"slideBlankClass",slideActiveClass:"slideActiveClass",slideDuplicateActiveClass:"slideDuplicateActiveClass",slideVisibleClass:"slideVisibleClass",slideDuplicateClass:"slideDuplicateClass",slideNextClass:"slideNextClass",slideDuplicateNextClass:"slideDuplicateNextClass",slidePrevClass:"slidePrevClass",slideDuplicatePrevClass:"slideDuplicatePrevClass",wrapperClass:"wrapperClass",runCallbacksOnInit:"runCallbacksOnInit",observeParents:"observeParents",observeSlideChildren:"observeSlideChildren",a11y:"a11y",autoplay:"autoplay",controller:"controller",coverflowEffect:"coverflowEffect",cubeEffect:"cubeEffect",fadeEffect:"fadeEffect",flipEffect:"flipEffect",creativeEffect:"creativeEffect",cardsEffect:"cardsEffect",hashNavigation:"hashNavigation",history:"history",keyboard:"keyboard",lazy:"lazy",mousewheel:"mousewheel",parallax:"parallax",thumbs:"thumbs",zoom:"zoom",slidesPerGroupAuto:"slidesPerGroupAuto",class:"class",id:"id",navigation:"navigation",pagination:"pagination",scrollbar:"scrollbar",virtual:"virtual",config:"config"},outputs:{s__beforeBreakpoint:"_beforeBreakpoint",s__containerClasses:"_containerClasses",s__slideClass:"_slideClass",s__swiper:"_swiper",s_activeIndexChange:"activeIndexChange",s_afterInit:"afterInit",s_autoplay:"autoplay",s_autoplayStart:"autoplayStart",s_autoplayStop:"autoplayStop",s_autoplayPause:"autoplayPause",s_autoplayResume:"autoplayResume",s_beforeDestroy:"beforeDestroy",s_beforeInit:"beforeInit",s_beforeLoopFix:"beforeLoopFix",s_beforeResize:"beforeResize",s_beforeSlideChangeStart:"beforeSlideChangeStart",s_beforeTransitionStart:"beforeTransitionStart",s_breakpoint:"breakpoint",s_changeDirection:"changeDirection",s_click:"click",s_doubleTap:"doubleTap",s_doubleClick:"doubleClick",s_destroy:"destroy",s_fromEdge:"fromEdge",s_hashChange:"hashChange",s_hashSet:"hashSet",s_imagesReady:"imagesReady",s_init:"init",s_keyPress:"keyPress",s_lazyImageLoad:"lazyImageLoad",s_lazyImageReady:"lazyImageReady",s_loopFix:"loopFix",s_momentumBounce:"momentumBounce",s_navigationHide:"navigationHide",s_navigationShow:"navigationShow",s_navigationPrev:"navigationPrev",s_navigationNext:"navigationNext",s_observerUpdate:"observerUpdate",s_orientationchange:"orientationchange",s_paginationHide:"paginationHide",s_paginationRender:"paginationRender",s_paginationShow:"paginationShow",s_paginationUpdate:"paginationUpdate",s_progress:"progress",s_reachBeginning:"reachBeginning",s_reachEnd:"reachEnd",s_realIndexChange:"realIndexChange",s_resize:"resize",s_scroll:"scroll",s_scrollbarDragEnd:"scrollbarDragEnd",s_scrollbarDragMove:"scrollbarDragMove",s_scrollbarDragStart:"scrollbarDragStart",s_setTransition:"setTransition",s_setTranslate:"setTranslate",s_slideChange:"slideChange",s_slideChangeTransitionEnd:"slideChangeTransitionEnd",s_slideChangeTransitionStart:"slideChangeTransitionStart",s_slideNextTransitionEnd:"slideNextTransitionEnd",s_slideNextTransitionStart:"slideNextTransitionStart",s_slidePrevTransitionEnd:"slidePrevTransitionEnd",s_slidePrevTransitionStart:"slidePrevTransitionStart",s_slideResetTransitionStart:"slideResetTransitionStart",s_slideResetTransitionEnd:"slideResetTransitionEnd",s_sliderMove:"sliderMove",s_sliderFirstMove:"sliderFirstMove",s_slidesLengthChange:"slidesLengthChange",s_slidesGridLengthChange:"slidesGridLengthChange",s_snapGridLengthChange:"snapGridLengthChange",s_snapIndexChange:"snapIndexChange",s_tap:"tap",s_toEdge:"toEdge",s_touchEnd:"touchEnd",s_touchMove:"touchMove",s_touchMoveOpposite:"touchMoveOpposite",s_touchStart:"touchStart",s_transitionEnd:"transitionEnd",s_transitionStart:"transitionStart",s_update:"update",s_zoomChange:"zoomChange",s_swiper:"swiper",s_lock:"lock",s_unlock:"unlock"},features:[Li],ngContentSelectors:aEe,decls:13,vars:17,consts:[[4,"ngIf"],["class","swiper-scrollbar",4,"ngIf"],["class","swiper-pagination",4,"ngIf"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["slidesTemplate",""],[1,"swiper-button-prev"],["prevElRef",""],[1,"swiper-button-next"],["nextElRef",""],[1,"swiper-scrollbar"],["scrollbarElRef",""],[1,"swiper-pagination"],["paginationElRef",""],[3,"ngClass","style","ngSwitch",4,"ngFor","ngForOf"],[3,"ngClass","ngSwitch"],[3,"ngClass",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){if(1&t&&(xb(rEe),Uo(0),I(1,HSe,5,0,"ng-container",0),I(2,zSe,2,0,"div",1),I(3,jSe,2,0,"div",2),C(4,"div",3),Uo(5,1),I(6,WSe,1,0,null,4),I(7,YSe,1,0,null,4),I(8,QSe,1,0,null,4),Uo(9,2),E(),Uo(10,3),I(11,nEe,2,3,"ng-template",null,5,uN)),2&t){const i=wu(12);v(1),w("ngIf",r.navigation&&r.showNavigation),v(1),w("ngIf",r.scrollbar&&r.showScrollbar),v(1),w("ngIf",r.pagination&&r.showPagination),v(1),w("ngClass",r.wrapperClass),Nr("id",r.id),v(2),w("ngTemplateOutlet",i)("ngTemplateOutletContext",pe(11,iEe,r.prependSlides)),v(1),w("ngTemplateOutlet",i)("ngTemplateOutletContext",pe(13,sEe,r.activeSlides)),v(1),w("ngTemplateOutlet",i)("ngTemplateOutletContext",pe(15,oEe,r.appendSlides))}},dependencies:[xn,ri,S0,ii,Wo,Vu,C0,qo],styles:["swiper{display:block}\n"],encapsulation:2,changeDetection:0}),n})(),cEe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({imports:[[Ul]]}),n})();function uEe(n,e){if(1&n&&K(0,"img",34),2&n){const t=S(2).$implicit;w("src",t.imageUrl,fr)("alt",t.title)}}const dEe=function(n){return{"background-color":n}};function hEe(n,e){if(1&n&&(C(0,"div",35)(1,"span"),ue(),C(2,"svg",36),K(3,"path",37),E()(),yt(),C(4,"span"),X(5),E()()),2&n){const t=S(2).$implicit,r=S();w("ngStyle",pe(2,dEe,r.mainColor)),v(5),Be(" ",t.otherRoomPhotosUrls.length," ")}}function fEe(n,e){if(1&n&&(C(0,"span"),ue(),C(1,"svg",38),K(2,"path",39),E(),yt(),C(3,"span"),X(4),E()()),2&n){const t=S(2).$implicit,r=S();v(2),$n("fill",r.mainColor),v(1),$n("color",r.mainColor),v(1),Ho(" ",t.roomSizeValue," ",t.roomSizeUnit," ")}}function pEe(n,e){if(1&n&&(ue(),C(0,"svg",40),K(1,"path",41),E()),2&n){const t=S(3);v(1),$n("fill",t.mainColor)}}function gEe(n,e){if(1&n&&(ue(),C(0,"svg",42),K(1,"path",41),E()),2&n){const t=S(3);v(1),$n("fill",t.mainColor)}}function mEe(n,e){1&n&&(C(0,"span"),X(1),ge(2,"translate"),E()),2&n&&(v(1),be(" "+_e(2,1,"or")+" "))}function yEe(n,e){1&n&&(C(0,"span"),X(1),ge(2,"translate"),E()),2&n&&(v(1),be(" "+_e(2,1,"and")+" "))}function _Ee(n,e){if(1&n&&(C(0,"span"),I(1,mEe,3,3,"span",16),I(2,yEe,3,3,"span",16),E()),2&n){const t=S().$implicit;v(1),w("ngIf",t.or),v(1),w("ngIf",!t.or)}}function vEe(n,e){if(1&n&&(ue(),yt(),C(0,"span"),I(1,_Ee,3,2,"span",16),C(2,"span",43),X(3),ge(4,"translate"),E()()),2&n){const t=e.$implicit,r=e.index;v(1),w("ngIf",0!==r),v(2),Ho(""," "+t.numberOfBeds," ",_e(4,3,"bedType."+t.bedType),"")}}function bEe(n,e){if(1&n&&(C(0,"span"),X(1),ge(2,"slice"),E()),2&n){const t=S(3).$implicit,r=S();v(1),be(function eN(n,e,t,r,i){const s=n+22,o=W(),a=Xa(o,s);return ku(o,s)?X2(o,Zn(),e,a.transform,t,r,i,a):a.transform(t,r,i)}(2,1,r.getRoomDescription(t),0,65))}}function wEe(n,e){if(1&n&&(C(0,"span"),X(1),E()),2&n){const t=S(3).$implicit,r=S();v(1),be(r.getRoomDescription(t))}}const GA=function(n){return{color:n}};function CEe(n,e){if(1&n&&(C(0,"span",49),X(1),ge(2,"translate"),E()),2&n){const t=S(5);w("ngStyle",pe(4,GA,t.mainColor)),v(1),Be(" ...",_e(2,2,"more")," ")}}function SEe(n,e){if(1&n&&(C(0,"span",49),X(1),ge(2,"translate"),E()),2&n){const t=S(5);w("ngStyle",pe(4,GA,t.mainColor)),v(1),Be("...",_e(2,2,"less"),"")}}function EEe(n,e){if(1&n){const t=he();C(0,"span",47),q("click",function(){return F(t),V(S(4).onToggleReadMore())}),I(1,CEe,3,6,"span",48),I(2,SEe,3,6,"span",48),E()}if(2&n){const t=S(4);v(1),w("ngIf",!t.readmore),v(1),w("ngIf",t.readmore)}}function TEe(n,e){if(1&n&&(ue(),yt(),C(0,"div",44)(1,"div",45),I(2,bEe,3,5,"span",16),I(3,wEe,2,1,"span",16),I(4,EEe,3,2,"span",46),E()()),2&n){const t=S(2).$implicit,r=S();v(2),w("ngIf",!r.readmore),v(1),w("ngIf",r.readmore),v(1),w("ngIf",r.getRoomDescription(t).length>65)}}function xEe(n,e){if(1&n&&(C(0,"span",26),ue(),C(1,"svg",52),K(2,"path",53),E(),X(3),ge(4,"translate"),E()),2&n){const t=S(4);v(2),$n("fill",t.mainColor),v(1),Be(" ",_e(4,3,"ammenities.flatScreenTV")," ")}}function IEe(n,e){if(1&n&&(C(0,"span",26),ue(),C(1,"svg",54),K(2,"path",55),E(),X(3),ge(4,"translate"),E()),2&n){const t=S(4);v(2),$n("fill",t.mainColor),v(1),Be(" ",_e(4,3,"ammenities.freeWifi")," ")}}function DEe(n,e){if(1&n&&(C(0,"span",26),ue(),C(1,"svg",56),K(2,"path",57),E(),X(3),ge(4,"translate"),E()),2&n){const t=S(4);v(2),$n("fill",t.mainColor),v(1),Be(" ",_e(4,3,"ammenities.airconditioning")," ")}}function AEe(n,e){if(1&n&&(C(0,"div")(1,"span",50),I(2,xEe,5,5,"span",51),I(3,IEe,5,5,"span",51),I(4,DEe,5,5,"span",51),E()()),2&n){const t=e.$implicit;v(1),w("ngSwitch",t),v(1),w("ngSwitchCase","Flat-screen TV"),v(1),w("ngSwitchCase","WiFi"),v(1),w("ngSwitchCase","Air conditioning")}}function MEe(n,e){if(1&n&&(C(0,"div",58)(1,"div",59),X(2),ge(3,"currency"),E(),C(4,"div",60)(5,"span",61),X(6),ge(7,"translate"),E()()()),2&n){const t=S(2).$implicit;v(2),be(function tN(n,e,t,r,i,s){const o=n+22,a=W(),l=Xa(a,o);return ku(a,o)?Z2(a,Zn(),e,l.transform,t,r,i,s,l):l.transform(t,r,i,s)}(3,2,t.rate,t.currency,"code","1.0-0")),v(4),be(_e(7,7,"perNight"))}}function kEe(n,e){if(1&n&&(C(0,"div",62)(1,"span"),X(2),ge(3,"translate"),E()()),2&n){const t=S(2).$implicit;v(2),Be(" ",_e(3,1,"secretRates."+t.showSecretRatesText)," ")}}const pz=function(n){return{fill:n}},PEe=function(n,e,t){return{"background-color":n,color:e,"border-color":t}};function OEe(n,e){if(1&n){const t=he();C(0,"div",4),q("click",function(){F(t);const i=S().$implicit;return V(S().onOpenImages(i))}),I(1,uEe,1,2,"img",5),I(2,hEe,6,4,"div",6),E(),C(3,"div",7)(4,"div",8),q("click",function(i){return F(t),V(S(2).onSlidePrev(i))}),ue(),C(5,"svg",9),K(6,"path",10),E()(),yt(),C(7,"div",11),X(8),E(),C(9,"div",12),q("click",function(i){return F(t),V(S(2).onSlideNext(i))}),ue(),C(10,"svg",9),K(11,"path",13),E()()(),yt(),C(12,"div",14)(13,"div",15),I(14,fEe,5,6,"span",16),C(15,"span",17),X(16),ge(17,"translate"),I(18,pEe,2,2,"svg",18),I(19,gEe,2,2,"svg",19),X(20),E(),C(21,"span",20),ue(),C(22,"svg",21)(23,"defs")(24,"style"),X(25," .fa-secondary { opacity: .4 } "),E()(),K(26,"path",22)(27,"path",23),E(),I(28,vEe,5,5,"span",2),E()(),I(29,TEe,5,3,"div",24),yt(),C(30,"div",25),I(31,AEe,5,4,"div",2),C(32,"div",26),ue(),C(33,"svg",27),K(34,"path",28),E(),X(35),ge(36,"translate"),E()()(),yt(),C(37,"div",29),I(38,MEe,8,9,"div",30),I(39,kEe,4,3,"div",31),C(40,"div",32)(41,"button",33),q("mouseover",function(){return F(t),V(S(2).hover=!0)})("mouseleave",function(){return F(t),V(S(2).hover=!1)})("click",function(){F(t);const i=S().$implicit;return V(S().onBookNow(i))}),X(42),ge(43,"translate"),E()()()}if(2&n){const t=S().$implicit,r=S();v(1),w("ngIf",t.imageUrl),v(1),w("ngIf",t.otherRoomPhotosUrls.length>0),v(1),w("ngStyle",pe(35,GA,r.mainColor)),v(3),w("ngStyle",pe(37,pz,r.mainColor)),v(2),Be(" ",r.getRoomTitle(t)," "),v(3),w("ngStyle",pe(39,pz,r.mainColor)),v(3),w("ngIf",t.roomSizeValue),v(1),$n("color",r.mainColor),v(1),Be("",_e(17,29,"maxGuests"),": "),v(2),w("ngForOf",t.adultOccupancy),v(1),w("ngForOf",t.childrenOccupancy),v(1),Be(" ",t.maximumOccupancy," "),v(1),$n("color",r.mainColor),v(5),$n("fill",r.mainColor),v(1),$n("fill",r.mainColor),v(1),w("ngForOf",t.beds),v(1),w("ngIf",r.getRoomDescription(t)),v(2),w("ngForOf",t.featuredAmmenities),v(3),$n("fill",r.mainColor),v(1),Be(" ",_e(36,31,"roomViews."+t.roomView)," "),v(3),w("ngIf",t.rate),v(1),w("ngIf",t.showSecretRatesAvailable),v(2),w("ngStyle",function q2(n,e,t,r,i,s){return X2(W(),Zn(),n,e,t,r,i,s)}(41,PEe,r.hover?"white":r.mainColor,r.hover?r.mainColor:"white",r.mainColor)),v(1),be(_e(43,33,"bookNow"))}}function NEe(n,e){1&n&&I(0,OEe,44,45,"ng-template",3)}Ha.use([function NSe({swiper:n,extendParams:e,on:t}){e({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const r=(a,l,c)=>{let u=n.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),d=n.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===u.length&&(u=cz(c,a,n.isHorizontal()?"left":"top")),0===d.length&&(d=cz(c,a,n.isHorizontal()?"right":"bottom")),u.length&&(u[0].style.opacity=Math.max(-l,0)),d.length&&(d[0].style.opacity=Math.max(l,0))};az({effect:"flip",swiper:n,on:t,setTranslate:()=>{const{slides:a,rtlTranslate:l}=n,c=n.params.flipEffect;for(let u=0;u<a.length;u+=1){const d=a.eq(u);let h=d[0].progress;n.params.flipEffect.limitRotation&&(h=Math.max(Math.min(d[0].progress,1),-1));const f=d[0].swiperSlideOffset;let g=-180*h,m=0,_=n.params.cssMode?-f-n.translate:-f,b=0;n.isHorizontal()?l&&(g=-g):(b=_,_=0,m=-g,g=0),d[0].style.zIndex=-Math.abs(Math.round(h))+a.length,c.slideShadows&&r(d,h,c);const y=`translate3d(${_}px, ${b}px, 0px) rotateX(${m}deg) rotateY(${g}deg)`;PSe(c,d).transform(y)}},setTransition:a=>{const{transformEl:l}=n.params.flipEffect;(l?n.slides.find(l):n.slides).transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a),function OSe({swiper:n,duration:e,transformEl:t,allSlides:r}){const{slides:i,activeIndex:s,$wrapperEl:o}=n;if(n.params.virtualTranslate&&0!==e){let l,a=!1;l=r?t?i.find(t):i:t?i.eq(s).find(t):i.eq(s),l.transitionEnd(()=>{if(a||!n||n.destroyed)return;a=!0,n.animating=!1;const c=["webkitTransitionEnd","transitionend"];for(let u=0;u<c.length;u+=1)o.trigger(c[u])})}}({swiper:n,duration:a,transformEl:l})},recreateShadows:()=>{const a=n.params.flipEffect;n.slides.each(l=>{const c=Je(l);let u=c[0].progress;n.params.flipEffect.limitRotation&&(u=Math.max(Math.min(l.progress,1),-1)),r(c,u,a)})},getEffectParams:()=>n.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!n.params.cssMode})})}]);let REe=(()=>{class n{constructor(t,r,i,s,o){this.chatService=t,this.submitService=r,this.floatingService=i,this.debugService=s,this.translateService=o,this.canShowSwiper=!1,this.hasRoomBetterInfo=!1,this.hover=!1,this.config={loop:!0,effect:"flip",initialSlide:0,flipEffect:{slideShadows:!1}},this.bookingDate=new Date,this.bookingNumNights=1,this.raiRequest={adults:null,children:null,from:null,to:null},this.mainColor="blue",this.activeIndex=0,this.readmore=!1}set func(t){if(this.debugService.logMode&&console.log(t),t){if(this.msg=t,t.raiRequest&&(this.raiRequest={adults:t?.raiRequest?.adults?.toString()||null,children:t?.raiRequest?.children?.toString()||null,from:t?.raiRequest?.from||null,to:t?.raiRequest?.to||null}),this.carouselItems=[],t.roomCategoriesObj&&Object.keys(t.roomCategoriesObj).length>0){this.hasRoomBetterInfo=!0;const r=[];Object.keys(t.roomCategoriesObj).forEach(i=>{let s={imageUrl:"",title:"",cta:null,unitsAvailable:0,rate:null,currency:"",openNewTab:!0};if(t.roomsResponse.length>0){const h=t.roomsResponse.findIndex(f=>f.roomCategoryId===i);h>-1&&(s=t.roomsResponse[h])}let o=s.imageUrl;t.roomCategoriesObj[i].roomPhotoUrl&&(o=t.roomCategoriesObj[i].roomPhotoUrl);const a=t.roomCategoriesObj[i];let l=null,c=null;if(t.raiRequest&&t.raiRequest.from){const h=new Date(t.raiRequest.from);t.raiRequest&&a.ratesByDate&&a.ratesByDate.length>0&&a.ratesByDate.forEach(f=>{f.range.start&&f.range.end&&JD(h,Vc(f.range.start.toDate()))&&Gy(h,VH(f.range.end.toDate()))&&(l=f.rate,c=f.currency)})}let u=[];t.roomCategoriesObj[i].otherRoomPhotosUrls&&(u=t.roomCategoriesObj[i].otherRoomPhotosUrls);const d={imageUrl:o,title:a.roomName,roomSizeValue:a.roomSizeValue,roomSizeUnit:"squareMeter"==a.roomSizeUnit?"m\xb2":"ft\xb2",roomView:a.roomView,adultOccupancy:Array(+a.adultOccupancy).fill(0).map((h,f)=>f),childrenOccupancy:Array(+a.childrenOccupancy).fill(0).map((h,f)=>f),maximumOccupancy:a.maximumOccupancy,description:a.shortSellingText,descriptionTranslations:a.shortSellingTextTranslations,featuredAmmenities:a.featuredAmmenities,showSecretRatesAvailable:a.showSecretRatesAvailable,showSecretRatesText:a.showSecretRatesText,bookNowAction:a.bookNowAction?a.bookNowAction:"link",cta:s.cta?s.cta:a.fallbackBookingUrl,structuredInputs:a.structuredInputs||[],openNewTab:s.openNewTab??!0,unitsAvailable:s.unitsAvailable,rate:s.rate||l,currency:s.currency||c,order:a.order,beds:a.beds,otherRoomPhotosUrls:u,roomNameTranslations:a.roomNameTranslations,hotelId:s.hotelId||null,ratePlanId:s.ratePlanId||null,roomId:s.roomId||null};r.push(d)}),this.carouselItems=r.sort((i,s)=>s.order<i.order?1:-1)}else this.carouselItems=this.msg.roomsResponse;if(t.raiRequest){const r=new Date(t.raiRequest.from),i=new Date(t.raiRequest.to);this.bookingDate=r,this.bookingNumNights=function FSe(n,e){qe(2,arguments);var t=ht(n),r=ht(e),i=uz(t,r),s=Math.abs(LSe(t,r));t.setDate(t.getDate()-i*s);var o=Number(uz(t,r)===-i),a=i*(s-o);return 0===a?0:a}(i,r)}this.debugService.logMode&&console.log("Carousel",this.carouselItems)}}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(t=>{t&&(this.mainColor=t.backgroundColors[0])})}onSwiperLoaded(t){this.swiper=t}onSlideNext(t){t.stopPropagation(),this.swiper.slideNext()}onSlidePrev(t){t.stopPropagation(),this.swiper.slidePrev()}onToggleReadMore(){this.readmore=!this.readmore}onBookNow(t){if(t.rate){const r=t.rate.toString().match(/\d+(\.\d+)?/);this.submitService.savePotentialRevenue(+r[0],this.bookingNumNights,this.bookingDate)}else this.submitService.savePotentialRevenue(0,this.bookingNumNights,this.bookingDate);if(t&&t.cta&&""!==t.cta&&"link"===t.bookNowAction&&(t.openNewTab?window.open(t.cta,"_blank"):window.book(this.raiRequest.from||null,this.raiRequest.to||null,[{type:"adult",count:+this.raiRequest.adults||null},{type:"child",count:+this.raiRequest.children}],t.hotelId,"USD",t.roomId,t.ratePlanId,null,null,"en",!0,null)),t&&"request"===t.bookNowAction){const r={submit:"request",preMessage:this.translateService.instant("pleaseComplete"),inputs:t.structuredInputs,intent:"Book now"};this.chatService.showStructuredInput$.next(r)}}onOpenImages(t){const r=[t.imageUrl,...t.otherRoomPhotosUrls];this.floatingService.showFloating$.next({imageUrls:r.map(i=>({path:i})),type:"image",show:!0,startingIndex:0})}getRoomTitle(t){const r=this.translateService.currentLang;return"en"!==r&&r?t.roomNameTranslations&&t.roomNameTranslations[r]?t.roomNameTranslations[r]:t.roomName:t.title}getRoomDescription(t){const r=this.translateService.currentLang;return"en"===r?t.description:t.descriptionTranslations&&t.descriptionTranslations[r]?t.descriptionTranslations[r]:t.description}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R($H),R(HA),R(ss),R(Er))},n.\u0275cmp=Ut({type:n,selectors:[["app-availability-swiper"]],inputs:{func:["message","func"]},decls:3,vars:2,consts:[[2,"margin","-8px -12px"],[3,"config","swiper"],[4,"ngFor","ngForOf"],["swiperSlide",""],[1,"image-swiper",3,"click"],[3,"src","alt",4,"ngIf"],["class","more-available",3,"ngStyle",4,"ngIf"],[1,"gc-top-line",3,"ngStyle"],[1,"gc_swiper-button-prev",3,"click"],["aria-hidden","true","focusable","false","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 256 512"],["d","M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z",3,"ngStyle"],[1,"image-title"],[1,"gc_swiper-button-next",3,"click"],["d","M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z",3,"ngStyle"],[1,"gc_left_availability"],[1,"gc_room_meta"],[4,"ngIf"],[2,"margin-left","6px"],["aria-hidden","true","role","img","class","gc_icons","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 192 512",4,"ngFor","ngForOf"],["aria-hidden","true","role","img","class","gc_icons","style","height: 9px;","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 192 512",4,"ngFor","ngForOf"],[2,"display","block"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512","role","img",1,"gc_icons",2,"height","12px"],["d","M528 128H304a16 16 0 0 0-16 16v144h352v-48a112 112 0 0 0-112-112zM176 96a80 80 0 1 0 80 80 80 80 0 0 0-80-80z",1,"fa-secondary"],["d","M640 288v144a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-48H64v48a16 16 0 0 1-16 16H16a16 16 0 0 1-16-16V80a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16v208z"],["class","image-description",4,"ngIf"],[1,"gc_ammenities"],[1,"gc_ammenity-item"],["aria-hidden","true","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512",1,"gc_icons"],["d","M378.31 378.49L298.42 288h30.63c9.01 0 16.98-5 20.78-13.06 3.8-8.04 2.55-17.26-3.28-24.05L268.42 160h28.89c9.1 0 17.3-5.35 20.86-13.61 3.52-8.13 1.86-17.59-4.24-24.08L203.66 4.83c-6.03-6.45-17.28-6.45-23.32 0L70.06 122.31c-6.1 6.49-7.75 15.95-4.24 24.08C69.38 154.65 77.59 160 86.69 160h28.89l-78.14 90.91c-5.81 6.78-7.06 15.99-3.27 24.04C37.97 283 45.93 288 54.95 288h30.63L5.69 378.49c-6 6.79-7.36 16.09-3.56 24.26 3.75 8.05 12 13.25 21.01 13.25H160v24.45l-30.29 48.4c-5.32 10.64 2.42 23.16 14.31 23.16h95.96c11.89 0 19.63-12.52 14.31-23.16L224 440.45V416h136.86c9.01 0 17.26-5.2 21.01-13.25 3.8-8.17 2.44-17.47-3.56-24.26z"],[1,"gc_right_availability"],["class","gc_rate",4,"ngIf"],["class","gc-secret-rates",4,"ngIf"],[1,"cta-buttons"],[1,"book-now",3,"ngStyle","mouseover","mouseleave","click"],[3,"src","alt"],[1,"more-available",3,"ngStyle"],["aria-hidden","true","viewBox","0 0 576 512"],["fill","currentColor","d","M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v48H54a6 6 0 0 0-6 6v244a6 6 0 0 0 6 6h372a6 6 0 0 0 6-6v-10h48zm42-336H150a6 6 0 0 0-6 6v244a6 6 0 0 0 6 6h372a6 6 0 0 0 6-6V86a6 6 0 0 0-6-6zm6-48c26.51 0 48 21.49 48 48v256c0 26.51-21.49 48-48 48H144c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h384zM264 144c0 22.091-17.909 40-40 40s-40-17.909-40-40 17.909-40 40-40 40 17.909 40 40zm-72 96l39.515-39.515c4.686-4.686 12.284-4.686 16.971 0L288 240l103.515-103.515c4.686-4.686 12.284-4.686 16.971 0L480 208v80H192v-48z"],["aria-hidden","true","role","img","viewBox","0 0 512 512",1,"gc_icons"],["d","M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"],["aria-hidden","true","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 192 512",1,"gc_icons"],["d","M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"],["aria-hidden","true","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 192 512",1,"gc_icons",2,"height","9px"],[2,"text-transform","capitalize"],[1,"image-description"],[1,"description-text"],["class","read-more",3,"click",4,"ngIf"],[1,"read-more",3,"click"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"ngSwitch"],["class","gc_ammenity-item",4,"ngSwitchCase"],["aria-hidden","true","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"gc_icons"],["d","M592 0H48A48 48 0 0 0 0 48v320a48 48 0 0 0 48 48h240v32H112a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H352v-32h240a48 48 0 0 0 48-48V48a48 48 0 0 0-48-48zm-16 352H64V64h512z"],["aria-hidden","true","focusable","false","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"gc_icons"],["d","M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"],["aria-hidden","true","role","img","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512",1,"gc_icons"],["d","M440.3 345.2l-33.8-19.5 26-7c8.2-2.2 13.1-10.7 10.9-18.9l-4-14.9c-2.2-8.2-10.7-13.1-18.9-10.9l-70.8 19-63.9-37 63.8-36.9 70.8 19c8.2 2.2 16.7-2.7 18.9-10.9l4-14.9c2.2-8.2-2.7-16.7-10.9-18.9l-26-7 33.8-19.5c7.4-4.3 9.9-13.7 5.7-21.1L430.4 119c-4.3-7.4-13.7-9.9-21.1-5.7l-33.8 19.5 7-26c2.2-8.2-2.7-16.7-10.9-18.9l-14.9-4c-8.2-2.2-16.7 2.7-18.9 10.9l-19 70.8-62.8 36.2v-77.5l53.7-53.7c6.2-6.2 6.2-16.4 0-22.6l-11.3-11.3c-6.2-6.2-16.4-6.2-22.6 0L256 56.4V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v40.4l-19.7-19.7c-6.2-6.2-16.4-6.2-22.6 0L138.3 48c-6.3 6.2-6.3 16.4 0 22.6l53.7 53.7v77.5l-62.8-36.2-19-70.8c-2.2-8.2-10.7-13.1-18.9-10.9l-14.9 4c-8.2 2.2-13.1 10.7-10.9 18.9l7 26-33.8-19.5c-7.4-4.3-16.8-1.7-21.1 5.7L2.1 145.7c-4.3 7.4-1.7 16.8 5.7 21.1l33.8 19.5-26 7c-8.3 2.2-13.2 10.7-11 19l4 14.9c2.2 8.2 10.7 13.1 18.9 10.9l70.8-19 63.8 36.9-63.8 36.9-70.8-19c-8.2-2.2-16.7 2.7-18.9 10.9l-4 14.9c-2.2 8.2 2.7 16.7 10.9 18.9l26 7-33.8 19.6c-7.4 4.3-9.9 13.7-5.7 21.1l15.5 26.8c4.3 7.4 13.7 9.9 21.1 5.7l33.8-19.5-7 26c-2.2 8.2 2.7 16.7 10.9 18.9l14.9 4c8.2 2.2 16.7-2.7 18.9-10.9l19-70.8 62.8-36.2v77.5l-53.7 53.7c-6.3 6.2-6.3 16.4 0 22.6l11.3 11.3c6.2 6.2 16.4 6.2 22.6 0l19.7-19.7V496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-40.4l19.7 19.7c6.2 6.2 16.4 6.2 22.6 0l11.3-11.3c6.2-6.2 6.2-16.4 0-22.6L256 387.7v-77.5l62.8 36.2 19 70.8c2.2 8.2 10.7 13.1 18.9 10.9l14.9-4c8.2-2.2 13.1-10.7 10.9-18.9l-7-26 33.8 19.5c7.4 4.3 16.8 1.7 21.1-5.7l15.5-26.8c4.3-7.3 1.8-16.8-5.6-21z"],[1,"gc_rate"],[1,"gc_price"],[1,"gc_price_detail"],[2,"font-size","8px","line-height","12px"],[1,"gc-secret-rates"]],template:function(t,r){1&t&&(C(0,"div",0)(1,"swiper",1),q("swiper",function(s){return r.onSwiperLoaded(s)}),I(2,NEe,1,0,null,2),E()()),2&t&&(v(1),w("config",r.config),v(1),w("ngForOf",r.carouselItems))},dependencies:[ii,xn,rr,Wo,Vu,T_,Th,SR,CR,as],styles:['@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA) format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev,.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-top,.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:"";background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-slide-duplicate{visibility:hidden!important}.swiper-slide-active{visibility:visible!important}.swiper-slide-next{visibility:hidden!important}.swiper-slide{width:100%!important;max-width:305px;border-radius:18px;box-sizing:content-box}.swiper-slide:not(.swiper-slide-visible){visibility:hidden!important}.swiper-slide.swiper-slide-visible{-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc_icons{height:12px;margin:0 1px}.swiper-slide a{color:#000;text-decoration:none}.swiper-slide .image-swiper{position:relative}.swiper-slide .image-swiper .more-available{cursor:pointer;position:absolute;bottom:10px;right:10px;color:#fff;font-size:12px;padding:4px;border-radius:2px}.swiper-slide .image-swiper .more-available span{display:inline-block;vertical-align:middle;margin:0 2px;line-height:12px}.swiper-slide .image-swiper .more-available span svg{width:14px}.swiper-slide .image-swiper img{height:170px;width:100%;object-fit:cover;cursor:pointer;border-top-left-radius:18px;border-top-right-radius:18px}.swiper-slide .gc-top-line{width:100%;display:flex}.swiper-slide .gc-top-line .image-title{font-family:Roboto,sans-serif!important;font-size:15px;line-height:24px;margin:0;text-align:center;color:#000;text-overflow:ellipsis;padding:0;cursor:-webkit-grabbing;cursor:grabbing;display:inline-block;width:calc(100% - 48px)}.swiper-slide .gc-top-line .gc_swiper-button-prev,.swiper-slide .gc-top-line .gc_swiper-button-next{width:24px;box-sizing:content-box;height:20px;line-height:20px;margin-top:0;padding:2px 0;cursor:pointer;text-align:center}.swiper-slide .gc-top-line .gc_swiper-button-prev svg,.swiper-slide .gc-top-line .gc_swiper-button-next svg{height:20px}.swiper-slide .gc_left_availability{display:inline-block;width:calc(100% - 118px);padding:6px;box-sizing:content-box}.swiper-slide .gc_left_availability .gc_room_meta{font-family:Roboto,sans-serif!important;font-size:10px;line-height:18px;color:#000}.swiper-slide .gc_left_availability .image-description{font-family:Roboto,sans-serif!important;font-size:10px;text-align:justify;text-justify:auto;line-height:12px;margin-top:8px;padding-right:8px}.swiper-slide .gc_left_availability .image-description .description-text{overflow-y:hidden!important;color:#000}.swiper-slide .gc_left_availability .image-description .description-text .read-more{line-height:12px;font-size:10px;cursor:pointer}.swiper-slide .gc_left_availability .image-description p{-webkit-margin-before:0px;margin-block-start:0px;-webkit-margin-after:0px;margin-block-end:0px;margin:2px!important}.swiper-slide .gc_left_availability .gc_ammenities{font-family:Roboto,sans-serif!important;font-size:10px;color:#000;margin:6px 0;display:flex;justify-content:flex-start;flex-wrap:wrap}.swiper-slide .gc_left_availability .gc_ammenities span{margin-right:4px}.swiper-slide .gc_left_availability .gc_ammenities .gc_ammenity-item{font-family:Roboto,sans-serif!important;display:inline-block;line-height:20px}.swiper-slide .gc_left_availability .gc_ammenities .gc_ammenity-item span{margin-right:4px}.swiper-slide .gc_right_availability{display:inline-flex;justify-content:center;flex-direction:column;width:90px;padding:6px;margin-top:14px;vertical-align:top;box-sizing:content-box}.swiper-slide .gc_right_availability .gc-secret-rates{display:inline-block;width:100%;margin-top:8px}.swiper-slide .gc_right_availability .gc-secret-rates svg{height:18px}.swiper-slide .gc_right_availability .gc-secret-rates svg path{fill:#037a22}.swiper-slide .gc_right_availability .gc-secret-rates span{width:100%;display:inline-block;line-height:12px;background-color:#037a22;padding:2px;color:#fff;border-radius:4px;font-size:10px;font-weight:700;text-align:center}.swiper-slide .gc_right_availability .gc_rate .gc_price{font-family:Roboto,sans-serif!important;font-size:16px;line-height:16px;text-align:center;font-weight:700;color:#006400}.swiper-slide .gc_right_availability .gc_rate .gc_price_detail{font-family:Roboto,sans-serif!important;display:flex;font-size:14px;line-height:14px;justify-content:center;color:#1f1f1f}.swiper-slide .gc_right_availability .cta-buttons{margin-top:6px}.swiper-slide .gc_right_availability .book-now{font-family:Roboto,sans-serif!important;margin:6px 0 0;padding:6px;font-size:12px;line-height:12px;text-align:center;color:#fff;width:100%;font-weight:700;cursor:pointer}.swiper-slide .units-available{font-family:Roboto,sans-serif!important;position:absolute;top:118px;width:100%;text-align:center;height:12px;font-size:10px;line-height:12px;opacity:.7;color:#fff}\n'],encapsulation:3}),n})();function LEe(n,e){if(1&n){const t=he();C(0,"div",2),q("click",function(){return F(t),V(S().onRequestLiveChat())}),K(1,"img",3),C(2,"span",4),X(3),ge(4,"translate"),E()()}if(2&n){const t=S();v(1),w("src",t.botImage,fr),v(2),be(_e(4,2,"intervention.requestLiveAgent"))}}function FEe(n,e){if(1&n){const t=he();C(0,"div",2),q("click",function(){return F(t),V(S().onCall())}),C(1,"span",5),ue(),C(2,"svg",6),K(3,"path",7),E()(),yt(),C(4,"span",4),X(5),ge(6,"translate"),E()()}2&n&&(v(5),be(_e(6,1,"intervention.callUs")))}function VEe(n,e){if(1&n){const t=he();C(0,"div",2),q("click",function(){return F(t),V(S().onOpenForm())}),C(1,"span",5),ue(),C(2,"svg",8),K(3,"path",9),E()(),yt(),C(4,"span",4),X(5),ge(6,"translate"),E()()}2&n&&(v(5),be(_e(6,1,"intervention.sendUsAMessage")))}function BEe(n,e){if(1&n){const t=he();C(0,"div",2),q("click",function(){F(t);const i=S();return V(i.onOpenLink(i.fallbackCommunication.fbUrl))}),C(1,"span",5),ue(),C(2,"svg",10)(3,"g",11)(4,"linearGradient",12),K(5,"stop",13)(6,"stop",14),E(),K(7,"path",15)(8,"path",16),E()()(),yt(),C(9,"span",4),X(10,"Facebook Messenger"),E()()}}function $Ee(n,e){if(1&n){const t=he();C(0,"div",2),q("click",function(){F(t);const i=S();return V(i.onOpenLink(i.fallbackCommunication.whatsappUrl))}),C(1,"span",5),ue(),C(2,"svg",17),K(3,"path",18),C(4,"linearGradient",19),K(5,"stop",20)(6,"stop",21),E(),K(7,"path",22)(8,"image",23)(9,"path",24)(10,"path",25),E()(),yt(),C(11,"span",4),X(12,"Whatsapp"),E()()}}function UEe(n,e){if(1&n){const t=he();C(0,"div",2),q("click",function(){return F(t),V(S().onReceiveCallBack())}),C(1,"span",5),ue(),C(2,"svg",26),K(3,"path",27),E()(),yt(),C(4,"span",4),X(5),ge(6,"translate"),E()()}2&n&&(v(5),be(_e(6,1,"intervention.receiveCallBack")))}let HEe=(()=>{class n{constructor(t,r){this.chatService=t,this.translateService=r,this.fallbackCommunication={hasCallUs:!1,callUsNumber:"",hasWhatsapp:!1,whatsappUrl:"",hasfbMessenger:!1,fbUrl:"",hasReceiveCallBack:!1,hasMessageUs:!0},this.liveChatSettings={liveChatAvailable:!1},this.scrollNow=new G,this.liveChatOnlyMode=!1,this.liveChatSomebodyIsAround=!0}ngOnInit(){this.liveChatModeSub=this.chatService.liveChatOnlyMode$.subscribe(t=>{this.liveChatOnlyMode=t}),this.liveChatSettingsSub=this.chatService.liveChatSettings$.subscribe(t=>{this.liveChatSettings=t}),this.botSettingsSub=this.chatService.botSettingsBS.subscribe(t=>{t&&(this.botImage=t.botImgUrl,t.fallbackCommunication&&(this.fallbackCommunication={...t.fallbackCommunication,hasMessageUs:t.fallbackCommunication.hasMessageUs??!0}))})}onRequestLiveChat(){this.chatService.addLiveChatRequest(),this.scrollNow.emit("now")}onOpenLink(t){""!==t&&window.open(t,"_blank")}onOpenForm(){const t={submit:"request",inputs:[{label:"Name and surname",dataVar:"nameSurname",type:"input",placeholder:"Name and surname",inputValidation:"text",value:"",disabled:!1,required:!0},{label:"Contact number",dataVar:"contactNumber",type:"input",placeholder:"Contact number",inputValidation:"tel",value:"",disabled:!1,required:!0},{label:"Email address",dataVar:"contactEmail",type:"input",placeholder:"Email address",inputValidation:"email",value:"",disabled:!1,required:!0},{label:"Message",dataVar:"message",type:"textarea",placeholder:"Message",inputValidation:"text",value:"",disabled:!1,required:!0}],preMessage:this.translateService.instant("completeForm"),intent:"Contact Form"};this.chatService.showStructuredInput$.next(t)}onReceiveCallBack(){const t={submit:"request",inputs:[{label:"Name and surname",dataVar:"nameSurname",type:"input",placeholder:"Name and surname",inputValidation:"text",value:"",required:!0,disabled:!1},{label:"Contact number",dataVar:"contactNumber",type:"input",placeholder:"Contact number",inputValidation:"tel",value:"",disabled:!1,required:!0}],preMessage:this.translateService.instant("completeForm"),intent:"Receive Call Back"};this.chatService.showStructuredInput$.next(t)}onCall(){window.open("tel:"+this.fallbackCommunication.callUsNumber,"_system")}ngOnDestroy(){this.liveChatSettingsSub&&this.liveChatSettingsSub.unsubscribe(),this.botSettingsSub&&this.botSettingsSub.unsubscribe(),this.liveChatModeSub&&this.liveChatModeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(Er))},n.\u0275cmp=Ut({type:n,selectors:[["app-live-chat-response"]],inputs:{liveChatSomebodyIsAround:"liveChatSomebodyIsAround"},outputs:{scrollNow:"scrollNow"},decls:7,vars:6,consts:[[1,"gc-live-chat-container"],["class","gc-live-chat-option",3,"click",4,"ngIf"],[1,"gc-live-chat-option",3,"click"],[1,"gc-bot-image",3,"src"],[1,"live-chat-text"],[1,"live-chat-icon"],["aria-hidden","true","viewBox","0 0 512 512",2,"width","16px","height","16px"],["fill","currentColor","d","M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"],["viewBox","0 0 384 512","id","whatsapp",2,"width","16px","height","16px"],["fill","currentColor","d","M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"],["viewBox","-149.1 -248.49675 1292.2 1490.9805","id","fb",1,"live-chat-icon",2,"width","21px","height","27px"],["transform","translate(-15 -11.5)"],["y2","1005.5","x2","512","y1","11.5","x1","512","gradientUnits","userSpaceOnUse","id","b"],["offset","0","stop-color","#00b2ff"],["offset","1","stop-color","#006aff"],["d","M512 11.5c-280 0-497 205.1-497 482.1 0 144.9 59.4 270.1 156.1 356.6 8.1 7.3 13 17.4 13.4 28.3l2.7 88.4c.9 28.2 30 46.5 55.8 35.2l98.6-43.5c8.4-3.7 17.7-4.4 26.5-2 45.3 12.5 93.6 19.1 143.9 19.1 280 0 497-205.1 497-482.1S792 11.5 512 11.5z","fill","url(#b)","fill-rule","evenodd","clip-rule","evenodd"],["d","M213.6 634.6l146-231.6c23.2-36.8 73-46 107.8-19.9l116.1 87.1c10.7 8 25.3 7.9 35.9-.1l156.8-119c20.9-15.9 48.3 9.2 34.2 31.4L664.5 614c-23.2 36.8-73 46-107.8 19.9l-116.1-87.1c-10.7-8-25.3-7.9-35.9.1L247.8 666c-20.9 15.9-48.3-9.2-34.2-31.4z","fill-rule","evenodd","clip-rule","evenodd","fill","#fff"],["viewBox","0 0 1219.547 1225.016",2,"width","20px","height","20px"],["fill","#E0E0E0","d","M1041.858 178.02C927.206 63.289 774.753.07 612.325 0 277.617 0 5.232 272.298 5.098 606.991c-.039 106.986 27.915 211.42 81.048 303.476L0 1225.016l321.898-84.406c88.689 48.368 188.547 73.855 290.166 73.896h.258.003c334.654 0 607.08-272.346 607.222-607.023.056-162.208-63.052-314.724-177.689-429.463zm-429.533 933.963h-.197c-90.578-.048-179.402-24.366-256.878-70.339l-18.438-10.93-191.021 50.083 51-186.176-12.013-19.087c-50.525-80.336-77.198-173.175-77.16-268.504.111-278.186 226.507-504.503 504.898-504.503 134.812.056 261.519 52.604 356.814 147.965 95.289 95.36 147.728 222.128 147.688 356.948-.118 278.195-226.522 504.543-504.693 504.543z"],["id","a","gradientUnits","userSpaceOnUse","x1","609.77","y1","1190.114","x2","609.77","y2","21.084"],["offset","0","stop-color","#20b038"],["offset","1","stop-color","#60d66a"],["fill","url(#a)","d","M27.875 1190.114l82.211-300.18c-50.719-87.852-77.391-187.523-77.359-289.602.133-319.398 260.078-579.25 579.469-579.25 155.016.07 300.508 60.398 409.898 169.891 109.414 109.492 169.633 255.031 169.57 409.812-.133 319.406-260.094 579.281-579.445 579.281-.023 0 .016 0 0 0h-.258c-96.977-.031-192.266-24.375-276.898-70.5l-307.188 80.548z"],["overflow","visible","opacity",".08","width","682","height","639",0,"xlink","href","FCC0802E2AF8A915.png","transform","translate(270.984 291.372)"],["fill-rule","evenodd","clip-rule","evenodd","fill","#FFF","d","M462.273 349.294c-11.234-24.977-23.062-25.477-33.75-25.914-8.742-.375-18.75-.352-28.742-.352-10 0-26.25 3.758-39.992 18.766-13.75 15.008-52.5 51.289-52.5 125.078 0 73.797 53.75 145.102 61.242 155.117 7.5 10 103.758 166.266 256.203 226.383 126.695 49.961 152.477 40.023 179.977 37.523s88.734-36.273 101.234-71.297c12.5-35.016 12.5-65.031 8.75-71.305-3.75-6.25-13.75-10-28.75-17.5s-88.734-43.789-102.484-48.789-23.75-7.5-33.75 7.516c-10 15-38.727 48.773-47.477 58.773-8.75 10.023-17.5 11.273-32.5 3.773-15-7.523-63.305-23.344-120.609-74.438-44.586-39.75-74.688-88.844-83.438-103.859-8.75-15-.938-23.125 6.586-30.602 6.734-6.719 15-17.508 22.5-26.266 7.484-8.758 9.984-15.008 14.984-25.008 5-10.016 2.5-18.773-1.25-26.273s-32.898-81.67-46.234-111.326z"],["fill","#FFF","d","M1036.898 176.091C923.562 62.677 772.859.185 612.297.114 281.43.114 12.172 269.286 12.039 600.137 12 705.896 39.633 809.13 92.156 900.13L7 1211.067l318.203-83.438c87.672 47.812 186.383 73.008 286.836 73.047h.255.003c330.812 0 600.109-269.219 600.25-600.055.055-160.343-62.328-311.108-175.649-424.53zm-424.601 923.242h-.195c-89.539-.047-177.344-24.086-253.93-69.531l-18.227-10.805-188.828 49.508 50.414-184.039-11.875-18.867c-49.945-79.414-76.312-171.188-76.273-265.422.109-274.992 223.906-498.711 499.102-498.711 133.266.055 258.516 52 352.719 146.266 94.195 94.266 146.031 219.578 145.992 352.852-.118 274.999-223.923 498.749-498.899 498.749z"],["viewBox","0 0 512 512",2,"width","16px","height","20px"],["fill","currentColor","d","M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"]],template:function(t,r){1&t&&(C(0,"div",0),I(1,LEe,5,4,"div",1),I(2,FEe,7,3,"div",1),I(3,VEe,7,3,"div",1),I(4,BEe,11,0,"div",1),I(5,$Ee,13,0,"div",1),I(6,UEe,7,3,"div",1),E()),2&t&&(v(1),w("ngIf",r.liveChatSettings.liveChatAvailable&&!r.liveChatOnlyMode&&r.liveChatSomebodyIsAround),v(1),w("ngIf",r.fallbackCommunication.hasCallUs&&r.fallbackCommunication.callUsNumber),v(1),w("ngIf",r.fallbackCommunication.hasMessageUs),v(1),w("ngIf",r.fallbackCommunication.hasfbMessenger),v(1),w("ngIf",r.fallbackCommunication.hasWhatsapp),v(1),w("ngIf",r.fallbackCommunication.hasReceiveCallBack))},dependencies:[xn,as],styles:[".gc-live-chat-container[_ngcontent-%COMP%]{margin-right:14px}.gc-live-chat-container[_ngcontent-%COMP%]   .gc-live-chat-option[_ngcontent-%COMP%]{height:40px;line-height:40px;width:100%;padding:0 6px;cursor:pointer;margin:3px 0;border:1px solid lightgrey;border-radius:4px;box-sizing:border-box}.gc-live-chat-container[_ngcontent-%COMP%]   .gc-live-chat-option[_ngcontent-%COMP%]:hover{border:1px solid grey}.gc-live-chat-container[_ngcontent-%COMP%]   .gc-live-chat-option[_ngcontent-%COMP%]   .gc-bot-image[_ngcontent-%COMP%]{width:24px;height:24px;padding:8px 0;box-sizing:content-box}.gc-live-chat-container[_ngcontent-%COMP%]   .gc-live-chat-option[_ngcontent-%COMP%]   .live-chat-icon[_ngcontent-%COMP%]{width:24px;height:40px;display:inline-block;box-sizing:content-box;text-align:center}.gc-live-chat-container[_ngcontent-%COMP%]   .gc-live-chat-option[_ngcontent-%COMP%]   .live-chat-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{vertical-align:middle}.gc-live-chat-container[_ngcontent-%COMP%]   .gc-live-chat-option[_ngcontent-%COMP%]   .live-chat-text[_ngcontent-%COMP%]{vertical-align:top;margin-left:6px}"]}),n})();const WA=function(n){return{"background-color":n}};let zEe=(()=>{class n{constructor(t,r){this.chatService=t,this.translateService=r,this.textColor="black"}ngOnInit(){this.settingsSub=this.chatService.botSettingsBS.subscribe(t=>{t&&(this.textColor=t.backgroundColors[0])})}onPerformAction(t){switch(t){case"bookDirect":this.chatService.addDirectIntentQuestion("book_direct",this.translateService.instant("intervention.bookingOptions"));break;case"other":this.chatService.addMessage(this.translateService.instant("intervention.anotherQuestion"));break;case"liveAgent":this.chatService.addDirectIntentQuestion("live_chat",this.translateService.instant("intervention.liveAgent"))}}ngOnDestroy(){this.settingsSub&&this.settingsSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(Er))},n.\u0275cmp=Ut({type:n,selectors:[["app-intervention"]],decls:10,vars:18,consts:[["id","gc-intervention-container"],[3,"ngStyle","click"]],template:function(t,r){1&t&&(C(0,"div",0)(1,"button",1),q("click",function(){return r.onPerformAction("bookDirect")}),X(2),ge(3,"translate"),E(),C(4,"button",1),q("click",function(){return r.onPerformAction("other")}),X(5),ge(6,"translate"),E(),C(7,"button",1),q("click",function(){return r.onPerformAction("liveAgent")}),X(8),ge(9,"translate"),E()()),2&t&&(v(1),w("ngStyle",pe(12,WA,r.textColor)),v(1),be(_e(3,6,"intervention.bookingOptions")),v(2),w("ngStyle",pe(14,WA,r.textColor)),v(1),be(_e(6,8,"intervention.anotherQuestion")),v(2),w("ngStyle",pe(16,WA,r.textColor)),v(1),be(_e(9,10,"intervention.liveAgent")))},dependencies:[rr,as],styles:["#gc-intervention-container[_ngcontent-%COMP%]{width:calc(100% + 95px);margin-left:-39px;display:flex;justify-content:center;flex-wrap:wrap}#gc-intervention-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{text-transform:none;margin:7px 5px;padding:6px 8px;color:#fff;border:none;border-radius:25px;font-size:14px;line-height:14px;white-space:nowrap;cursor:pointer;box-shadow:2px 2px 5px #d3d3d3;font-weight:700;font-family:Roboto,sans-serif}"]}),n})(),gz=(()=>{class n{constructor(t){this.sanitizer=t}transform(t,r){switch(r){case"html":return this.sanitizer.bypassSecurityTrustHtml(t);case"style":return this.sanitizer.bypassSecurityTrustStyle(t);case"script":return this.sanitizer.bypassSecurityTrustScript(t);case"url":return this.sanitizer.bypassSecurityTrustUrl(t);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(t);default:throw new Error(`Invalid safe type specified: ${r}`)}}}return n.\u0275fac=function(t){return new(t||n)(R(YR,16))},n.\u0275pipe=Tn({name:"safe",type:n,pure:!0}),n})();function jEe(n,e){if(1&n&&(C(0,"h3",12),X(1),E()),2&n){const t=S(3).$implicit;v(1),be(t.translatedTitle)}}function GEe(n,e){1&n&&(K(0,"p",13),ge(1,"safe")),2&n&&w("innerHtml",Fb(1,1,S(3).$implicit.translatedDescription,"html"),uf)}function WEe(n,e){1&n&&(C(0,"div",14),X(1),ge(2,"translate"),E()),2&n&&(v(1),Be("...",_e(2,1,"more"),""))}const qEe=function(n){return{"gc-title-only":n}};function YEe(n,e){if(1&n){const t=he();C(0,"div",8),q("click",function(){F(t);const i=S(2).index;return V(S().onOpenImage(i))}),I(1,jEe,2,1,"h3",9),I(2,GEe,2,4,"p",10),I(3,WEe,3,3,"div",11),E()}if(2&n){const t=S(2).$implicit;w("ngClass",pe(4,qEe,!t.translatedDescription||""===t.translatedDescription)),v(1),w("ngIf",t.translatedTitle),v(1),w("ngIf",t.translatedDescription),v(1),w("ngIf",t.translatedDescription&&t.translatedDescription.length>100)}}const mz=function(n){return{"background-color":n}};function KEe(n,e){if(1&n){const t=he();C(0,"div",15),q("click",function(){return F(t),V(S(3).onSlidePrev())}),ue(),C(1,"svg",16),K(2,"path",17),E()()}if(2&n){const t=S(3);w("ngStyle",pe(1,mz,t.mainColor))}}function QEe(n,e){if(1&n){const t=he();C(0,"div",18),q("click",function(){return F(t),V(S(3).onSlideNext())}),ue(),C(1,"svg",19),K(2,"path",20),E()()}if(2&n){const t=S(3);w("ngStyle",pe(1,mz,t.mainColor))}}function XEe(n,e){if(1&n){const t=he();C(0,"img",4),q("click",function(){F(t);const i=S().index;return V(S().onOpenImage(i))}),E(),I(1,YEe,4,6,"div",5),I(2,KEe,3,3,"div",6),I(3,QEe,3,3,"div",7)}if(2&n){const t=S().$implicit,r=S();w("src",t.path,fr),v(1),w("ngIf",t.translatedTitle||t.translatedDescription),v(1),w("ngIf",r.config.loop),v(1),w("ngIf",r.config.loop)}}function ZEe(n,e){1&n&&I(0,XEe,4,4,"ng-template",3)}Ha.use([lz]);let JEe=(()=>{class n{constructor(t,r,i){this.chatService=t,this.floatingService=r,this.translateService=i,this.items$=new nt([]),this.carouselItems=[],this.config={loop:!0,effect:"cube",grabCursor:!0,cubeEffect:{shadow:!1,slideShadows:!1}},this.mainColor="blue",this.carouselItems$=hi([this.items$,this.translateService.onLangChange.pipe(Ba({lang:this.translateService.currentLang}))]).pipe(Ju(([s,o])=>{this.config=s.length>1?{loop:!0,effect:"cube",grabCursor:!0,cubeEffect:{shadow:!1,slideShadows:!1}}:{loop:!1,effect:"cube",grabCursor:!0,cubeEffect:{shadow:!1,slideShadows:!1}}}),on(([s,o])=>s.map(a=>({...a,translatedTitle:"en"===o.lang||null==a.titleTranslations||void 0===a.titleTranslations[o.lang]?a.title:a.titleTranslations[o.lang],translatedDescription:"en"===o.lang||null==a.descriptionTranslations||null==a.descriptionTranslations[o.lang]?a.description:a.descriptionTranslations[o.lang]}))),Ju(s=>{console.log(s),this.carouselItems=s}))}set func(t){this.items$.next(t.mediaResponse||[])}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(t=>{t&&(this.mainColor=t.backgroundColors[0])})}onSwiperLoaded(t){this.swiper=t}onSlideNext(){this.swiper.slideNext()}onSlidePrev(){this.swiper.slidePrev()}goToUrl(t){""!==t&&window.open(t,"_blank")}onOpenImage(t){this.carouselItems[t].linkUrl?this.goToUrl(this.carouselItems[t].linkUrl):setTimeout(()=>{this.floatingService.showFloating$.next({imageUrls:this.carouselItems,type:"image",show:!0,startingIndex:t})},10)}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(HA),R(Er))},n.\u0275cmp=Ut({type:n,selectors:[["app-swiper"]],inputs:{func:["message","func"]},decls:4,vars:5,consts:[[2,"margin","10px -12px"],[3,"config","initialSlide","swiper"],[4,"ngFor","ngForOf"],["swiperSlide",""],["alt","",1,"image-swiper",3,"src","click"],["class","gc-image-extra",3,"ngClass","click",4,"ngIf"],["class","gc_swiper-button-prev",3,"ngStyle","click",4,"ngIf"],["class","gc_swiper-button-next",3,"ngStyle","click",4,"ngIf"],[1,"gc-image-extra",3,"ngClass","click"],["class","gc-image-title",4,"ngIf"],["class","gc-image-description",3,"innerHtml",4,"ngIf"],["class","gc-more",4,"ngIf"],[1,"gc-image-title"],[1,"gc-image-description",3,"innerHtml"],[1,"gc-more"],[1,"gc_swiper-button-prev",3,"ngStyle","click"],["xmlns","http://www.w3.org/2000/svg","fill","white","viewBox","0 0 224 512"],["d","M224 367.952V144.057c0-42.638-51.731-64.151-81.941-33.941l-112 111.943c-18.745 18.745-18.746 49.137 0 67.882l112 111.952C172.208 432.042 224 410.675 224 367.952zM64 256l112-112v224L64 256z"],[1,"gc_swiper-button-next",3,"ngStyle","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 224 512"],["fill","white","d","M0 144.048v223.895c0 42.638 51.731 64.151 81.941 33.941l112-111.943c18.745-18.745 18.746-49.137 0-67.882l-112-111.952C51.792 79.958 0 101.325 0 144.048zM160 256L48 368V144l112 112z"]],template:function(t,r){1&t&&(C(0,"div",0)(1,"swiper",1),q("swiper",function(s){return r.onSwiperLoaded(s)}),I(2,ZEe,1,0,null,2),ge(3,"async"),E()()),2&t&&(v(1),w("config",r.config)("initialSlide",0),v(1),w("ngForOf",_e(3,3,r.carouselItems$)))},dependencies:[ri,ii,xn,rr,T_,Th,qo,as,gz],styles:['@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA) format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev,.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-top,.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:"";background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-slide-duplicate{visibility:hidden!important}.swiper-slide-active{visibility:visible!important}.swiper-slide{cursor:pointer;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide:not(.swiper-slide-visible){visibility:hidden!important}.swiper-slide .image-swiper{max-height:170px;height:100%;width:100%;object-fit:cover;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc-image-extra{position:relative;width:100%;height:42px;font-family:Roboto,sans-serif!important;cursor:pointer}.swiper-slide .gc-image-extra.gc-title-only{height:15px}.swiper-slide .gc-image-extra .gc-image-title{font-family:Roboto,sans-serif!important;margin:2px;font-size:14px;line-height:14px;height:15px;overflow:hidden;width:100%;white-space:pre;text-overflow:ellipsis;text-align:center;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc-image-extra .gc-image-description{font-family:Roboto,sans-serif!important;margin:2px;font-size:12px;height:28px;line-height:14px;overflow:hidden;text-align:center;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc-image-extra .gc-image-description p{-webkit-margin-before:0px;margin-block-start:0px;-webkit-margin-after:0px;margin-block-end:0px;margin:2px!important;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc-image-extra .gc-more{position:absolute;bottom:-16px;left:0px;width:100%;text-align:center;font-size:10px;color:#00008b}.swiper-slide .gc_swiper-button-prev,.swiper-slide .gc_swiper-button-next{position:absolute;width:18px;box-sizing:content-box;height:22px;opacity:.8;line-height:26px;margin-top:0;padding:5px 0;top:60px;z-index:100011;cursor:pointer;border-radius:2px;text-align:center;background-image:none;backface-visibility:hidden;-moz-backface-visibility:hidden;-webkit-backface-visibility:hidden}.swiper-slide .gc_swiper-button-prev svg,.swiper-slide .gc_swiper-button-next svg{height:22px}.swiper-slide .gc_swiper-button-prev{left:12px;background-position:left}.swiper-slide .gc_swiper-button-next{right:12px;background-position:right}.swiper-cube .swiper-cube-shadow{display:none!important}\n'],encapsulation:3}),n})();function eTe(n,e){if(1&n&&(C(0,"h3",13),X(1),E()),2&n){const t=S(3).$implicit;v(1),be(t.name)}}function tTe(n,e){1&n&&(K(0,"p",14),ge(1,"safe")),2&n&&w("innerHtml",Fb(1,1,S(3).$implicit.description,"html"),uf)}const nTe=function(n){return{"gc-title-only":n}},qA=function(n){return{"background-color":n}};function rTe(n,e){if(1&n){const t=he();C(0,"div",8),I(1,eTe,2,1,"h3",9),I(2,tTe,2,4,"p",10),C(3,"div",11)(4,"button",12),q("click",function(){F(t);const i=S(2).$implicit;return V(S().onScopeToClient(i))}),X(5),ge(6,"translate"),E()()()}if(2&n){const t=S(2).$implicit,r=S();w("ngClass",pe(7,nTe,!t.description||""===t.description)),v(1),w("ngIf",t.name),v(1),w("ngIf",t.description),v(2),w("ngStyle",pe(9,qA,r.primaryColor)),v(1),be(_e(6,5,"subProperty.chatToThisProperty"))}}function iTe(n,e){if(1&n){const t=he();C(0,"div",15),q("click",function(){return F(t),V(S(3).onSlidePrev())}),ue(),C(1,"svg",16),K(2,"path",17),E()()}if(2&n){const t=S(3);w("ngStyle",pe(1,qA,t.primaryColor))}}function sTe(n,e){if(1&n){const t=he();C(0,"div",18),q("click",function(){return F(t),V(S(3).onSlideNext())}),ue(),C(1,"svg",19),K(2,"path",20),E()()}if(2&n){const t=S(3);w("ngStyle",pe(1,qA,t.primaryColor))}}function oTe(n,e){if(1&n&&(K(0,"img",4),I(1,rTe,7,11,"div",5),I(2,iTe,3,3,"div",6),I(3,sTe,3,3,"div",7)),2&n){const t=S().$implicit,r=S();w("src",t.imageUrl,fr),v(1),w("ngIf",t.name||t.description),v(1),w("ngIf",r.properties.length>1),v(1),w("ngIf",r.properties.length>1)}}function aTe(n,e){1&n&&I(0,oTe,4,4,"ng-template",3)}let lTe=(()=>{class n{constructor(t){this.chatService=t,this.properties=[],this.primaryColor="darkblue",this.chatToUsStyle={color:"darkblue"},this.config={loop:!0,effect:"cube",grabCursor:!0,cubeEffect:{shadow:!1,slideShadows:!1}}}ngOnInit(){this.propertiesSub=this.chatService.subProperties$.subscribe(t=>this.properties=t),this.botSettingsSub=this.chatService.botSettingsBS.subscribe(t=>{t&&(this.chatToUsStyle={color:t.backgroundColors[0]},this.primaryColor=t.backgroundColors[0])})}onScopeToClient(t){const r=window.localStorage.getItem("chatId");window.sessionStorage.setItem("clientId",t.clientId),this.chatService.initServer(t.clientId,r)}onSwiperLoaded(t){this.swiper=t}onSlideNext(){this.swiper.slideNext()}onSlidePrev(){this.swiper.slidePrev()}ngOnDestroy(){this.propertiesSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn))},n.\u0275cmp=Ut({type:n,selectors:[["app-sub-property-select"]],decls:3,vars:3,consts:[[2,"margin","10px -12px"],[3,"config","initialSlide","swiper"],[4,"ngFor","ngForOf"],["swiperSlide",""],["alt","",1,"image-swiper",3,"src"],["class","gc-image-extra",3,"ngClass",4,"ngIf"],["class","gc_swiper-button-prev",3,"ngStyle","click",4,"ngIf"],["class","gc_swiper-button-next",3,"ngStyle","click",4,"ngIf"],[1,"gc-image-extra",3,"ngClass"],["class","gc-image-title",4,"ngIf"],["class","gc-image-description",3,"innerHtml",4,"ngIf"],[1,"gc-button-wrapper"],[3,"ngStyle","click"],[1,"gc-image-title"],[1,"gc-image-description",3,"innerHtml"],[1,"gc_swiper-button-prev",3,"ngStyle","click"],["xmlns","http://www.w3.org/2000/svg","fill","white","viewBox","0 0 224 512"],["d","M224 367.952V144.057c0-42.638-51.731-64.151-81.941-33.941l-112 111.943c-18.745 18.745-18.746 49.137 0 67.882l112 111.952C172.208 432.042 224 410.675 224 367.952zM64 256l112-112v224L64 256z"],[1,"gc_swiper-button-next",3,"ngStyle","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 224 512"],["fill","white","d","M0 144.048v223.895c0 42.638 51.731 64.151 81.941 33.941l112-111.943c18.745-18.745 18.746-49.137 0-67.882l-112-111.952C51.792 79.958 0 101.325 0 144.048zM160 256L48 368V144l112 112z"]],template:function(t,r){1&t&&(C(0,"div",0)(1,"swiper",1),q("swiper",function(s){return r.onSwiperLoaded(s)}),I(2,aTe,1,0,null,2),E()()),2&t&&(v(1),w("config",r.config)("initialSlide",0),v(1),w("ngForOf",r.properties))},dependencies:[ri,ii,xn,rr,T_,Th,as,gz],styles:['.gc-button-wrapper{width:100%;height:40px}.gc-button-wrapper button{color:#fff;padding:6px 8px;border:none;margin:auto;display:block;cursor:pointer}@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA) format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev,.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-top,.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:"";background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-slide-duplicate{visibility:hidden!important}.swiper-slide-active{visibility:visible!important}.swiper-slide{cursor:pointer;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide:not(.swiper-slide-visible){visibility:hidden!important}.swiper-slide .image-swiper{max-height:170px;height:100%;width:100%;object-fit:cover;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc-image-extra{position:relative;width:100%;height:70px;font-family:Roboto,sans-serif!important;cursor:pointer}.swiper-slide .gc-image-extra.gc-title-only{height:35px}.swiper-slide .gc-image-extra .gc-image-title{font-family:Roboto,sans-serif!important;margin:2px;font-size:14px;line-height:14px;height:15px;overflow:hidden;width:100%;white-space:pre;text-overflow:ellipsis;text-align:center;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc-image-extra .gc-image-description{font-family:Roboto,sans-serif!important;margin:2px;font-size:12px;height:28px;line-height:14px;overflow:hidden;text-align:center;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc-image-extra .gc-image-description p{-webkit-margin-before:0px;margin-block-start:0px;-webkit-margin-after:0px;margin-block-end:0px;margin:2px!important;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc_swiper-button-prev,.swiper-slide .gc_swiper-button-next{position:absolute;width:18px;box-sizing:content-box;height:22px;opacity:.8;line-height:26px;margin-top:0;padding:5px 0;top:60px;z-index:100011;cursor:pointer;border-radius:2px;text-align:center;background-image:none;backface-visibility:hidden;-moz-backface-visibility:hidden;-webkit-backface-visibility:hidden}.swiper-slide .gc_swiper-button-prev svg,.swiper-slide .gc_swiper-button-next svg{height:22px}.swiper-slide .gc_swiper-button-prev{left:12px;background-position:left}.swiper-slide .gc_swiper-button-next{right:12px;background-position:right}.swiper-cube .swiper-cube-shadow{display:none!important}\n'],encapsulation:3}),n})(),cTe=(()=>{class n{constructor(t){this.translateService=t}transform(t,r){const s=new Intl.RelativeTimeFormat(this.translateService.currentLang,{localeMatcher:"best fit",numeric:"always",style:"long"});if(t){const o=Math.floor((+new Date-+new Date(t))/1e3);if(o<29)return this.translateService.instant("justNow");const a={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};for(const l in a)if(Math.floor(o/a[l])>0)return s.format(-Math.floor(o/a[l]),l)}return t}}return n.\u0275fac=function(t){return new(t||n)(R(Er,16))},n.\u0275pipe=Tn({name:"relativeTime",type:n,pure:!0}),n})();function uTe(n,e){1&n&&(C(0,"div",7),K(1,"app-sub-property-select"),E())}function dTe(n,e){if(1&n&&(C(0,"span",17),X(1),E()),2&n){const t=S().$implicit;v(1),be(t.value)}}function hTe(n,e){if(1&n&&(C(0,"span",18),X(1),E()),2&n){const t=S().$implicit;v(1),be(t.value)}}function fTe(n,e){1&n&&(ue(),C(0,"svg",32),K(1,"path",33),E())}function pTe(n,e){1&n&&(ue(),C(0,"svg",34),K(1,"path",35),E())}function gTe(n,e){1&n&&(ue(),C(0,"svg",36),K(1,"path",37),E())}function mTe(n,e){1&n&&(ue(),C(0,"svg",38),K(1,"path",39),E())}function yTe(n,e){1&n&&(ue(),C(0,"svg",36),K(1,"path",40),E())}function _Te(n,e){1&n&&(ue(),C(0,"svg",34),K(1,"path",41),E())}function vTe(n,e){1&n&&(ue(),C(0,"svg",36),K(1,"path",42),E())}function bTe(n,e){1&n&&(ue(),C(0,"svg",34),K(1,"path",43),E())}function wTe(n,e){1&n&&(ue(),C(0,"svg",34),K(1,"path",44),E())}function CTe(n,e){1&n&&(ue(),C(0,"svg",38),K(1,"path",45),E())}function STe(n,e){1&n&&(ue(),C(0,"svg",46),K(1,"path",47),E())}function ETe(n,e){1&n&&(ue(),C(0,"svg",48),K(1,"path",49),E())}function TTe(n,e){1&n&&(ue(),C(0,"svg",34),K(1,"path",50),E())}function xTe(n,e){if(1&n&&(C(0,"div",19)(1,"span",20),I(2,fTe,2,0,"svg",21),I(3,pTe,2,0,"svg",22),I(4,gTe,2,0,"svg",23),I(5,mTe,2,0,"svg",24),I(6,yTe,2,0,"svg",23),I(7,_Te,2,0,"svg",22),I(8,vTe,2,0,"svg",25),I(9,bTe,2,0,"svg",26),I(10,wTe,2,0,"svg",22),I(11,CTe,2,0,"svg",27),I(12,STe,2,0,"svg",28),I(13,ETe,2,0,"svg",29),I(14,TTe,2,0,"svg",30),E(),C(15,"span",31),X(16),E()()),2&n){const t=S().$implicit;v(1),w("ngSwitch",t.value),v(1),w("ngSwitchCase","Restaurant"),v(1),w("ngSwitchCase","Bar"),v(1),w("ngSwitchCase","Pool"),v(1),w("ngSwitchCase","Spa"),v(1),w("ngSwitchCase","Gym"),v(1),w("ngSwitchCase","Room Service"),v(1),w("ngSwitchCase","Free WiFi"),v(1),w("ngSwitchCase","Business Center"),v(1),w("ngSwitchCase","Luggage Storage"),v(1),w("ngSwitchCase","Conference Facilities"),v(1),w("ngSwitchCase","Laundry"),v(1),w("ngSwitchCase","Free Parking"),v(3),Be(" ",t.value," ")}}function ITe(n,e){if(1&n&&(C(0,"span",51)(1,"a",52),X(2),E()()),2&n){const t=S().$implicit;v(1),w("href",t.link,fr),v(1),be(t.value)}}function DTe(n,e){if(1&n&&(C(0,"span"),X(1),E()),2&n){const t=e.$implicit;v(1),be(t)}}function ATe(n,e){if(1&n&&(C(0,"div",53),I(1,DTe,2,1,"span",54),E()),2&n){const t=S().$implicit;v(1),w("ngForOf",t.value)}}function MTe(n,e){if(1&n&&(C(0,"div",11),I(1,dTe,2,1,"span",12),I(2,hTe,2,1,"span",13),I(3,xTe,17,14,"div",14),I(4,ITe,3,2,"span",15),I(5,ATe,2,1,"div",16),E()),2&n){const t=e.$implicit;v(1),w("ngIf","text"===t.type),v(1),w("ngIf","line"===t.type),v(1),w("ngIf","list"===t.type),v(1),w("ngIf","link"===t.type),v(1),w("ngIf","table"===t.type)}}function kTe(n,e){if(1&n&&(C(0,"div",7)(1,"div",9),I(2,MTe,6,5,"div",10),E()()),2&n){const t=e.$implicit;v(2),w("ngForOf",t)}}function PTe(n,e){1&n&&(C(0,"div",7),K(1,"app-live-chat-response"),E())}function OTe(n,e){if(1&n&&(C(0,"div",2),I(1,kTe,3,1,"div",8),I(2,PTe,2,0,"div",3),E()),2&n){const t=e.$implicit;v(1),w("ngForOf",t.textResponses),v(1),w("ngIf","liveChatOptions"===t.responseClass)}}function NTe(n,e){1&n&&(C(0,"div",7),K(1,"app-sub-property-select"),E())}function RTe(n,e){if(1&n&&(C(0,"span",17),X(1),E()),2&n){const t=S().$implicit;v(1),be(t.value)}}function LTe(n,e){if(1&n&&(C(0,"span",18),X(1),E()),2&n){const t=S().$implicit;v(1),be(t.value)}}function FTe(n,e){1&n&&(ue(),C(0,"svg",32),K(1,"path",33),E())}function VTe(n,e){1&n&&(ue(),C(0,"svg",34),K(1,"path",35),E())}function BTe(n,e){1&n&&(ue(),C(0,"svg",36),K(1,"path",37),E())}function $Te(n,e){1&n&&(ue(),C(0,"svg",38),K(1,"path",39),E())}function UTe(n,e){1&n&&(ue(),C(0,"svg",36),K(1,"path",40),E())}function HTe(n,e){1&n&&(ue(),C(0,"svg",34),K(1,"path",41),E())}function zTe(n,e){1&n&&(ue(),C(0,"svg",36),K(1,"path",42),E())}function jTe(n,e){1&n&&(ue(),C(0,"svg",34),K(1,"path",43),E())}function GTe(n,e){1&n&&(ue(),C(0,"svg",34),K(1,"path",44),E())}function WTe(n,e){1&n&&(ue(),C(0,"svg",38),K(1,"path",45),E())}function qTe(n,e){1&n&&(ue(),C(0,"svg",46),K(1,"path",47),E())}function YTe(n,e){1&n&&(ue(),C(0,"svg",48),K(1,"path",49),E())}function KTe(n,e){1&n&&(ue(),C(0,"svg",34),K(1,"path",50),E())}function QTe(n,e){if(1&n&&(C(0,"div",19)(1,"span",20),I(2,FTe,2,0,"svg",21),I(3,VTe,2,0,"svg",22),I(4,BTe,2,0,"svg",23),I(5,$Te,2,0,"svg",24),I(6,UTe,2,0,"svg",23),I(7,HTe,2,0,"svg",22),I(8,zTe,2,0,"svg",25),I(9,jTe,2,0,"svg",26),I(10,GTe,2,0,"svg",22),I(11,WTe,2,0,"svg",27),I(12,qTe,2,0,"svg",28),I(13,YTe,2,0,"svg",29),I(14,KTe,2,0,"svg",30),E(),C(15,"span",31),X(16),E()()),2&n){const t=S().$implicit;v(1),w("ngSwitch",t.value),v(1),w("ngSwitchCase","Restaurant"),v(1),w("ngSwitchCase","Bar"),v(1),w("ngSwitchCase","Pool"),v(1),w("ngSwitchCase","Spa"),v(1),w("ngSwitchCase","Gym"),v(1),w("ngSwitchCase","Room Service"),v(1),w("ngSwitchCase","Free WiFi"),v(1),w("ngSwitchCase","Business Center"),v(1),w("ngSwitchCase","Luggage Storage"),v(1),w("ngSwitchCase","Conference Facilities"),v(1),w("ngSwitchCase","Laundry"),v(1),w("ngSwitchCase","Free Parking"),v(3),Be(" ",t.value," ")}}function XTe(n,e){if(1&n&&(C(0,"span",51)(1,"a",52),X(2),E()()),2&n){const t=S().$implicit;v(1),w("href",t.link,fr),v(1),be(t.value)}}function ZTe(n,e){if(1&n&&(C(0,"span"),X(1),E()),2&n){const t=e.$implicit;v(1),be(t)}}function JTe(n,e){if(1&n&&(C(0,"div",53),I(1,ZTe,2,1,"span",54),E()),2&n){const t=S().$implicit;v(1),w("ngForOf",t.value)}}function exe(n,e){if(1&n&&(C(0,"div",11),I(1,RTe,2,1,"span",12),I(2,LTe,2,1,"span",13),I(3,QTe,17,14,"div",14),I(4,XTe,3,2,"span",15),I(5,JTe,2,1,"div",16),E()),2&n){const t=e.$implicit;v(1),w("ngIf","text"===t.type),v(1),w("ngIf","line"===t.type),v(1),w("ngIf","list"===t.type),v(1),w("ngIf","link"===t.type),v(1),w("ngIf","table"===t.type)}}function txe(n,e){if(1&n&&(C(0,"div",64)(1,"div",9),I(2,exe,6,5,"div",10),E()()),2&n){const t=e.$implicit;v(2),w("ngForOf",t)}}function nxe(n,e){1&n&&(C(0,"div",65),K(1,"app-intervention"),E())}function rxe(n,e){if(1&n){const t=he();C(0,"div",7)(1,"app-live-chat-response",66),q("scrollNow",function(){return F(t),V(S(3).onScrollNow())}),E()()}if(2&n){const t=S(2).$implicit;v(1),w("liveChatSomebodyIsAround",t.liveChatSomebodyIsAround)}}function ixe(n,e){if(1&n&&(C(0,"div",67),K(1,"app-availability-swiper",68),E()),2&n){const t=S(2).$implicit;v(1),w("message",t)}}function sxe(n,e){if(1&n&&(C(0,"div",70),K(1,"app-link-preview",71),E()),2&n){const t=e.$implicit,r=e.index;v(1),w("preview",t)("index",r)}}function oxe(n,e){if(1&n&&(C(0,"div"),I(1,sxe,2,2,"div",69),E()),2&n){const t=S(2).$implicit;v(1),w("ngForOf",t.urlsResponse)}}function axe(n,e){if(1&n&&(C(0,"div",72),K(1,"app-swiper",68),E()),2&n){const t=S(2).$implicit;v(1),w("message",t)}}function lxe(n,e){if(1&n){const t=he();C(0,"div",7)(1,"button",73),q("click",function(){F(t);const i=S(2).$implicit;return V(S().onOpenExtraInput(i))}),X(2),E()()}if(2&n){const t=S(2).$implicit,r=S();v(1),w("ngStyle",r.backgroundSuccess),v(1),be(r.getTranslationForButton(t))}}function cxe(n,e){if(1&n&&(C(0,"div",2),I(1,txe,3,1,"div",59),I(2,nxe,2,0,"div",60),I(3,rxe,2,1,"div",3),I(4,ixe,2,1,"div",61),I(5,oxe,2,1,"div",6),I(6,axe,2,1,"div",62),I(7,lxe,3,2,"div",63),E()),2&n){const t=S().$implicit;v(1),w("ngForOf",t.textResponses),v(1),w("ngIf","serverEvent-intervention"===t.responseClass),v(1),w("ngIf","liveChatOptions"===t.responseClass||"liveChatNobodyAround"===t.responseClass||"call_action"==t.intentId),v(1),w("ngIf","roomRAI"===t.responseClass||"room_categories"===t.intentId),v(1),w("ngIf",t.urlsResponse&&t.urlsResponse.length>0),v(1),w("ngIf",t.mediaResponse&&t.mediaResponse.length>0),v(1),w("ngIf",t.showStructuredInput)}}const uxe=function(n){return{"background-color":n}};function dxe(n,e){if(1&n&&(C(0,"div",74)(1,"div",9),X(2),E()()),2&n){const t=S().$implicit,r=S();w("ngStyle",pe(2,uxe,r.backgroundColor)),v(2),be(t.question)}}const hxe=function(n){return{"user-send":n}};function fxe(n,e){if(1&n&&(C(0,"div",75)(1,"div",76),X(2),ge(3,"relativeTime"),E()()),2&n){const t=S().$implicit;v(1),w("ngClass",pe(5,hxe,!t.reply)),v(1),Ho(" ",_e(3,3,t.date.toDate())," ","Bot"!=t.sender&&"User"!=t.sender?t.sender:null," ")}}const pxe=function(n){return{"own-message":n}};function gxe(n,e){if(1&n){const t=he();C(0,"div",55),q("click",function(){const s=F(t).$implicit;return V(S().onFocusMessage(s))}),I(1,cxe,8,7,"div",56),C(2,"div",2),I(3,dxe,3,4,"div",57),E(),I(4,fxe,4,7,"div",58),E()}if(2&n){const t=e.$implicit;w("ngClass",pe(4,pxe,!t.reply)),v(1),w("ngIf",t.reply),v(2),w("ngIf",!t.reply),v(1),w("ngIf",t.date)}}function mxe(n,e){1&n&&K(0,"app-typing-animation")}let yxe=(()=>{class n{constructor(t,r,i,s){this.chatService=t,this.debugService=r,this.popupService=i,this.translateService=s,this.botSettings={title:"Guestchat",openingLine:"Hi there",botImgUrl:null,backgroundColors:["#6A82FB","#6A82FB"],screenPosition:"right"},this.backgroundSuccess={"background-color":"green"},this.userMessage={id:null},this.showTyping=!1,this.preMessages=[],this.messages=[],this.noMessages=!0,this.focusMessage=new G,this.scrollNow=new G,this.liveChatSomebodyIsAround=!0,this.responseSplitter=o=>o&&""!==o?o.split("--").map(l=>this.pullOutLinks(l)):[],this.scopedAsParentOfSubProperties$=hi([this.chatService.clientId$,this.chatService.subPropertyParentId$,this.chatService.subProperties$]).pipe(on(([o,a,l])=>a?o===a?"bottom":"top":"none"))}set f(t){this.debugService.logMode&&console.log("got messages",t),t.length>0?(this.noMessages?(this.messages=t.map(r=>({...r,textResponses:this.responseSplitter(r.textResponse)})),this.debugService.logMode&&console.log("First",this.messages),this.scrollNow.emit(500+20*this.messages.length)):(t.forEach(r=>{const i=this.messages.findIndex(o=>o.id===r.id),s={...r,swiperIndex:0,textResponses:this.responseSplitter(r.textResponse),liveChatSomebodyIsAround:this.liveChatSomebodyIsAround};-1===i&&r.reply?(this.chatService.botIsTyping$.next(!1),"liveChatNobodyAround"===s.responseClass&&(this.liveChatSomebodyIsAround=!1,s.liveChatSomebodyIsAround=!1),"liveChatNotifyingAgent"===s.responseClass&&this.chatService.botIsTyping$.next(!0),"just_browsing"===s.intentId&&setTimeout(()=>{this.popupService.showChatBox.next(!1),this.chatService.showButton$.next(!0)},3e3),this.messages.push(s),s.showStructuredInput&&"post"===s.structuredInputForm.submit&&this.onOpenExtraInput(s),this.debugService.logMode&&console.log(s)):-1!==i||r.reply?r.id===this.userMessage.id&&(this.messages[i]=r):(this.messages.push(s),this.debugService.logMode&&console.log(s))}),this.scrollNow.emit(250)),this.noMessages=!1):this.messages=[]}ngOnInit(){this.botSettingsSub=hi([this.chatService.botSettingsBS,this.translateService.onLangChange.pipe(Ba({lang:this.translateService.currentLang}))]).subscribe(([r,i])=>{if(r){this.botSettings={...r,openingLines:this.responseSplitter(r.openingLine)},this.backgroundSuccess={"background-color":r.backgroundColors[0]};let s=this.botSettings.openingLine;"en"!==i.lang&&this.botSettings.openingLineTranslations&&this.botSettings.openingLineTranslations[i.lang]&&(s=this.botSettings.openingLineTranslations[i.lang]),this.preMessages=[{reply:!0,textResponses:this.responseSplitter(s)}]}}),this.liveChatSub=hi([this.chatService.liveChatOnlyMode$,this.chatService.liveChatSettings$,this.translateService.onLangChange.pipe(Ba({lang:this.translateService.currentLang}))]).subscribe(([r,i,s])=>{i&&r&&!i.liveChatAvailable&&(this.preMessages=[{reply:!0,responseClass:"liveChatOptions",textResponses:this.responseSplitter(this.translateService.instant("currentlyOffLine"))}])}),this.userMessageSub=this.chatService.userSend.subscribe(r=>{this.userMessage=r,-1===this.messages.findIndex(s=>s.id===r.id)&&(this.messages.push(r),this.scrollNow.emit())});const t=hi([this.chatService.botIsTyping$,this.chatService.postIsLoading$,this.chatService.agentIsTyping$]);this.typingSub=t.subscribe(([r,i,s])=>{r||i||s?(this.showTyping=!0,this.scrollNow.emit()):this.showTyping=!1})}get backgroundColor(){return"#FFF"===this.botSettings.backgroundColors[0]||"#fff"===this.botSettings.backgroundColors[0]||"#ffffff"===this.botSettings.backgroundColors[0]||"#FFFFFF"===this.botSettings.backgroundColors[0]?"grey":this.botSettings.backgroundColors[0]}onOpenExtraInput(t){let r=null;1===t.textResponses.length&&(r=t.textResponse);const i={...t.structuredInputForm,preMessage:r,intent:t.intentId};this.chatService.showStructuredInput$.next(i)}onFocusMessage(t){this.focusMessage.emit(t)}onAskForCallMeBack(){this.chatService.showStructuredInput$.next({submit:"request",intent:"Contact me",inputs:[{label:"Name and surname",dataVar:"nameSurname",type:"input",placeholder:"Enter name and surname",inputValidation:"text",disabled:!1,value:"",required:!0},{label:"Contact number",dataVar:"contactNumber",type:"input",placeholder:"Enter contact number",inputValidation:"tel",value:"",disabled:!1,required:!0},{label:"Email address",dataVar:"contactEmail",type:"input",placeholder:"Enter email",inputValidation:"email",value:"",disabled:!1,required:!0},{label:"Message",dataVar:"message",type:"textarea",placeholder:"Enter a message",inputValidation:"text",value:"",disabled:!1,required:!0}]})}pullOutLinks(t){const r=[],i=t.replace(/ {2}\t/gm,"").trim();let s="text",o=0;for(let l=1;l<i.length;l++)if(">"===i[l]&&">"===i[l-1]&&(o+2<l&&r.push({type:"text",value:i.slice(o,l-1).trim()}),s="link",o=l+1),"["===i[l]&&"["===i[l-1]&&(o+2<l&&r.push({type:"text",value:i.slice(o,l-1).trim()}),s="table",o=l),"#"===i[l-1]&&"("===i[l]&&(o+2<l&&r.push({type:"text",value:i.slice(o,l-1).trim()}),s="list",o=l+1),"&"===i[l-1]&&"&"===i[l]&&(o+2<l&&r.push({type:"line",value:i.slice(o,l-1).trim()}),s="line",o=l+1)," "===i[l]&&"link"===s&&o+2<l||"]"===i[l]&&"]"===i[l-1]||"#"===i[l-1]&&")"===i[l]||"&"===i[l-1]&&"&"===i[l]||l===i.length-1){if("table"===s)r.push({type:"table",value:i.slice(o+1,l-1).split(",").map(c=>c.trim()).filter(c=>""!==c)});else if("link"===s){const c=i.slice(o,l+1).trim();/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(c)?r.push({type:"link",value:c,link:"mailto:"+c}):/^(\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(c)?r.push({type:"link",value:c,link:"https://"+c}):/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(c)&&r.push({type:"link",value:c,link:c})}else r.push("list"===s||"line"===s?{type:s,value:i.slice(o,l-1).trim()}:{type:s,value:i.slice(o,l+1).trim()});o=l+1,s="text"}return 0===r.length&&r.push({type:"text",value:i.trim()}),r}getTranslationForButton(t){const r=this.translateService.currentLang;return"en"===r?t.showStructuredInputButtonText?t.showStructuredInputButtonText:"Open Request Form":t.showStructuredInputButtonTextTranslations&&t.showStructuredInputButtonTextTranslations[r]?t.showStructuredInputButtonTextTranslations[r]:t.showStructuredInputButtonText}onScrollNow(){this.scrollNow.emit(100)}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe(),this.typingSub&&this.typingSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(ss),R(vo),R(Er))},n.\u0275cmp=Ut({type:n,selectors:[["app-messages-display"]],inputs:{f:["messages","f"]},outputs:{focusMessage:"focusMessage",scrollNow:"scrollNow"},decls:11,vars:9,consts:[[1,"messages"],[1,"each-msg"],[1,"message"],["class","msg-block  reply",4,"ngIf"],["class","message",4,"ngFor","ngForOf"],["class","each-msg",3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"msg-block","reply"],["class","msg-block reply",4,"ngFor","ngForOf"],[1,"msg-text"],["class","message-segment",4,"ngFor","ngForOf"],[1,"message-segment"],["class","gc-inline-text",4,"ngIf"],["class","gc-inline-line",4,"ngIf"],["class","gc-list",4,"ngIf"],["class","gc-inline-link",4,"ngIf"],["class","gc-inline-table",4,"ngIf"],[1,"gc-inline-text"],[1,"gc-inline-line"],[1,"gc-list"],[3,"ngSwitch"],["viewBox","0 0 416 512","class","gc-icon",4,"ngSwitchCase"],["viewBox","0 0 512 512","class","gc-icon",4,"ngSwitchCase"],["viewBox","0 0 640 512","class","gc-icon",4,"ngSwitchCase"],["viewBox","0 0 576 512","class","gc-icon",4,"ngSwitchCase"],["class","gc-icon","viewBox","0 0 640 512",4,"ngSwitchCase"],["class","gc-icon","viewBox","0 0 512 512",4,"ngSwitchCase"],["class","gc-icon","viewBox","0 0 576 512",4,"ngSwitchCase"],["viewBox","0 0 446 512","class","gc-icon",4,"ngSwitchCase"],["viewBox","0 0 448 512","class","gc-icon",4,"ngSwitchCase"],["viewBox","0 0 512 512","class","gc-icon",4,"ngSwitchDefault"],[2,"width","calc(100% - 16px)"],["viewBox","0 0 416 512",1,"gc-icon"],["fill","currentColor","d","M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"],["viewBox","0 0 512 512",1,"gc-icon"],["d","M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6zM443.77 48l-48 48H116.24l-48-48h375.53z"],["viewBox","0 0 640 512",1,"gc-icon"],["d","M624 416h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 407.58 442.04 416 416 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 407.58 250.04 416 224 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 407.58 58.04 416 32 416H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-400-32v-96h192v96c19.12 0 30.86-6.16 34.39-9.42 9.17-8.46 19.2-14.34 29.61-18.07V128c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v96H224v-96c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v228.5c10.41 3.73 20.44 9.62 29.61 18.07 3.53 3.27 15.27 9.43 34.39 9.43z"],["viewBox","0 0 576 512",1,"gc-icon"],["d","M568.25 192c-29.04.13-135.01 6.16-213.84 83-33.12 29.63-53.36 63.3-66.41 94.86-13.05-31.56-33.29-65.23-66.41-94.86-78.83-76.84-184.8-82.87-213.84-83-4.41-.02-7.79 3.4-7.75 7.82.23 27.92 7.14 126.14 88.77 199.3C172.79 480.94 256 480 288 480s115.19.95 199.23-80.88c81.64-73.17 88.54-171.38 88.77-199.3.04-4.42-3.34-7.84-7.75-7.82zM287.98 302.6c12.82-18.85 27.6-35.78 44.09-50.52 19.09-18.61 39.58-33.3 60.26-45.18-16.44-70.5-51.72-133.05-96.73-172.22-4.11-3.58-11.02-3.58-15.14 0-44.99 39.14-80.27 101.63-96.74 172.07 20.37 11.7 40.5 26.14 59.22 44.39a282.768 282.768 0 0 1 45.04 51.46z"],["d","M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"],["fill","currentColor","d","M288 130.54V112h16c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h16v18.54C115.49 146.11 32 239.18 32 352h448c0-112.82-83.49-205.89-192-221.46zM496 384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"],["d","M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"],["d","M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"],["d","M128 480h256V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v400zm64-384h128v32H192V96zm320 80v256c0 26.5-21.5 48-48 48h-48V128h48c26.5 0 48 21.5 48 48zM96 480H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h48v352z"],["d","M560 0H16C7.16 0 0 7.16 0 16v16c0 8.84 7.16 16 16 16h16v272c0 17.67 14.33 32 32 32h200v43.72l-77.65 77.65c-6.25 6.25-6.25 16.38 0 22.63l11.31 11.31c6.25 6.25 16.38 6.25 22.63 0L288 439.6l67.72 67.72c6.25 6.25 16.38 6.25 22.63 0l11.3-11.32c6.25-6.25 6.25-16.38 0-22.63L312 395.72V352h200c17.67 0 32-14.33 32-32V48h16c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16zm-64 304H80V48h416v256z"],["viewBox","0 0 446 512",1,"gc-icon"],["d","M383 0H63A64 64 0 0 0-1 64v416a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V64a64 64 0 0 0-64-64zm16 464H47V64a16 16 0 0 1 16-16h320a16 16 0 0 1 16 16zM127 104a24 24 0 1 0-24 24 24 24 0 0 0 24-24zm56 24a24 24 0 1 0-24-24 24 24 0 0 0 24 24zm40 32a136 136 0 1 0 136 136 136 136 0 0 0-136-136zm0 226.67A90.78 90.78 0 0 1 132.33 296c0-2.89.59-5.62.86-8.44a45.71 45.71 0 0 0 19.92 4.66 48.93 48.93 0 0 0 35.07-14.79 48.38 48.38 0 0 0 69.64 0 48.93 48.93 0 0 0 35.07 14.79 45.71 45.71 0 0 0 19.92-4.66c.27 2.82.86 5.55.86 8.44A90.78 90.78 0 0 1 223 386.67z"],["viewBox","0 0 448 512",1,"gc-icon"],["d","M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM240 320h-48v48c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16h96c52.9 0 96 43.1 96 96s-43.1 96-96 96zm0-128h-48v64h48c17.6 0 32-14.4 32-32s-14.4-32-32-32z"],["d","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"],[1,"gc-inline-link"],["target","_blank",3,"href"],[1,"gc-inline-table"],[4,"ngFor","ngForOf"],[1,"each-msg",3,"ngClass","click"],["class","message",4,"ngIf"],["class","msg-block",3,"ngStyle",4,"ngIf"],["class","msg-date-container",4,"ngIf"],["class","msg-block  reply blocks",4,"ngFor","ngForOf"],["class","msg-block ",4,"ngIf"],["class","msg-block  reply","style","max-width: 281px",4,"ngIf"],["class","msg-block reply blocks","style","max-width: 281px",4,"ngIf"],["class","openStructuredDiv","class","msg-block  reply",4,"ngIf"],[1,"msg-block","reply","blocks"],[1,"msg-block"],[3,"liveChatSomebodyIsAround","scrollNow"],[1,"msg-block","reply",2,"max-width","281px"],[3,"message"],["class","msg-block reply msg-link blocks",4,"ngFor","ngForOf"],[1,"msg-block","reply","msg-link","blocks"],[3,"preview","index"],[1,"msg-block","reply","blocks",2,"max-width","281px"],[3,"ngStyle","click"],[1,"msg-block",3,"ngStyle"],[1,"msg-date-container"],[1,"msg-date",3,"ngClass"]],template:function(t,r){1&t&&(C(0,"div",0)(1,"div",1)(2,"div",2),I(3,uTe,2,0,"div",3),ge(4,"async"),E(),I(5,OTe,3,2,"div",4),C(6,"div",2),I(7,NTe,2,0,"div",3),ge(8,"async"),E()(),I(9,gxe,5,6,"div",5),I(10,mxe,1,0,"app-typing-animation",6),E()),2&t&&(v(3),w("ngIf","top"===_e(4,5,r.scopedAsParentOfSubProperties$)),v(2),w("ngForOf",r.preMessages),v(2),w("ngIf","bottom"===_e(8,7,r.scopedAsParentOfSubProperties$)),v(2),w("ngForOf",r.messages),v(1),w("ngIf",r.showTyping))},dependencies:[ri,ii,xn,rr,Wo,Vu,C0,x1e,I1e,REe,HEe,zEe,JEe,lTe,qo,cTe],styles:[".messages[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;padding:0 26px}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]{clear:both;margin-bottom:16px;display:flex;justify-content:flex-start;flex-wrap:wrap;font-family:Roboto,sans-serif}.messages[_ngcontent-%COMP%]   .each-msg.own-message[_ngcontent-%COMP%]{justify-content:flex-end}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .msg-date-container[_ngcontent-%COMP%]{width:100%;padding:4px 0;height:18px}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .msg-date-container[_ngcontent-%COMP%]   .msg-date[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:10px;display:block}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .msg-date-container[_ngcontent-%COMP%]   .msg-date.user-send[_ngcontent-%COMP%]{float:right}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .bot-image[_ngcontent-%COMP%]{width:32px;position:relative}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .bot-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:30px;width:30px;border-radius:50%;position:absolute;left:0px;bottom:0px}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{max-width:95%}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block[_ngcontent-%COMP%]{border-radius:18px 18px 0/18px 18px 0px;font-size:14px;padding:8px 12px;color:#fff;margin:4px 0;box-sizing:content-box}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;margin:2px;display:inline-block;font-size:14px;line-height:19px;text-align:left;white-space:pre-line;width:100%}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]{vertical-align:top}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]   .gc-inline-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;display:inline-block;margin-left:2px;margin-right:2px;vertical-align:top;font-size:14px;line-height:19px;max-width:100%}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]   .gc-inline-table[_ngcontent-%COMP%]{display:grid;width:99%;grid-template-columns:1fr 1fr}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]   .gc-inline-table[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:99%;display:inline-grid;font-size:13px;line-height:16px;border:1px solid lightgrey;padding:0}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]   .gc-list[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{height:10px;width:10px;display:inline-block}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]   .gc-list[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;font-size:13px;line-height:16px;margin-left:2px}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]   .gc-inline-line[_ngcontent-%COMP%]{display:block;width:100%}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block.blocks[_ngcontent-%COMP%]{margin-bottom:6px}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block.reply[_ngcontent-%COMP%]{box-sizing:content-box;background:white!important;color:#000;border-bottom-left-radius:0;border-bottom-right-radius:18px}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block.reply[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]{white-space:normal!important}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block[_ngcontent-%COMP%]   .msg-link[_ngcontent-%COMP%]{display:block}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block.openStructuredDiv[_ngcontent-%COMP%]{margin-top:8px;text-align:center}.messages[_ngcontent-%COMP%]   .each-msg[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]   .msg-block.openStructuredDiv[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{color:#fff;padding:6px 8px;border:none}button[_ngcontent-%COMP%]{cursor:pointer;margin:2px auto;border-radius:4px;color:#fff;padding:8px 16px;text-align:center;display:block;border:none}"]}),n})();const _xe=["scrollToHere"],vxe=["textInput"];function bxe(n,e){if(1&n){const t=he();C(0,"div",27),q("click",function(){return F(t),V(S().onEasterEgg())}),K(1,"img",28),E()}if(2&n){const t=S();v(1),w("src",t.whosTalking.img,fr)}}const Ri=function(n){return{fill:n}};function wxe(n,e){if(1&n&&(ue(),C(0,"svg",31)(1,"g"),K(2,"path",32)(3,"path",33)(4,"path",34)(5,"path",35)(6,"path",36)(7,"path",37)(8,"path",38)(9,"path",39),E()()),2&n){const t=S(2);v(2),w("ngStyle",pe(8,Ri,t.textColor)),v(1),w("ngStyle",pe(10,Ri,t.textColor)),v(1),w("ngStyle",pe(12,Ri,t.textColor)),v(1),w("ngStyle",pe(14,Ri,t.textColor)),v(1),w("ngStyle",pe(16,Ri,t.textColor)),v(1),w("ngStyle",pe(18,Ri,t.textColor)),v(1),w("ngStyle",pe(20,Ri,t.textColor)),v(1),w("ngStyle",pe(22,Ri,t.textColor))}}function Cxe(n,e){if(1&n&&(ue(),C(0,"svg",40)(1,"g"),K(2,"path",41),E()()),2&n){const t=S(2);v(2),w("ngStyle",pe(1,Ri,t.textColor))}}function Sxe(n,e){if(1&n){const t=he();ue(),yt(),C(0,"div",8),q("click",function(){return F(t),V(S().onToggleMaximize())}),I(1,wxe,10,24,"svg",29),I(2,Cxe,3,3,"svg",30),E()}if(2&n){const t=S();v(1),w("ngIf",!t.maximized),v(1),w("ngIf",t.maximized)}}function Exe(n,e){if(1&n){const t=he();ue(),yt(),C(0,"div",8),q("click",function(){return F(t),V(S().onClose())}),ue(),C(1,"svg",42),K(2,"path",43),E()()}if(2&n){const t=S();v(2),w("ngStyle",pe(1,Ri,t.textColor))}}function Txe(n,e){if(1&n){const t=he();ue(),yt(),C(0,"div",44)(1,"ul")(2,"li",45),q("click",function(){return F(t),V(S().onResetChat())}),X(3),ge(4,"translate"),E()()()}2&n&&(v(3),Be(" ",_e(4,1,"restart.Conversation")," "))}function xxe(n,e){1&n&&(ue(),yt(),C(0,"div",46),K(1,"app-structured-input"),E())}function Ixe(n,e){if(1&n){const t=he();ue(),yt(),C(0,"div",47),q("click",function(){return F(t),V(S().exportNotificationShow$.next(!1))}),X(1),ge(2,"translate"),E()}2&n&&(v(1),Be(" ",_e(2,1,"considerShortening")," "))}function Dxe(n,e){if(1&n&&(ue(),yt(),C(0,"div",48),X(1),ge(2,"async"),E()),2&n){const t=S();v(1),Be(" ",_e(2,1,t.otherAgentActive$)," ")}}function Axe(n,e){1&n&&(C(0,"div",49),X(1),ge(2,"translate"),C(3,"a",50),X(4),ge(5,"translate"),E()()),2&n&&(v(1),Be(" ",_e(2,2,"gdrpAgreeing")," "),v(3),be(_e(5,4,"gdrpDataProcessing")))}function Mxe(n,e){if(1&n){const t=he();C(0,"div",60),q("click",function(){return F(t),V(S(2).onExpandLanguages())}),X(1),ge(2,"uppercase"),ge(3,"async"),E()}if(2&n){const t=S(2);v(1),Be(" ",_e(2,1,_e(3,3,t.activeLanguageFlag$))," ")}}function kxe(n,e){if(1&n){const t=he();C(0,"li",45),q("click",function(){const s=F(t).$implicit;return V(S(3).onSelectLanguage(s.value))}),X(1),ge(2,"uppercase"),E()}if(2&n){const t=e.$implicit;v(1),Be(" ",_e(2,1,t.label)," ")}}function Pxe(n,e){if(1&n&&(C(0,"div",61)(1,"ul"),I(2,kxe,3,3,"li",62),E()()),2&n){const t=S(2);v(2),w("ngForOf",t.languagesDD)}}const Oxe=function(n){return{"has-languages-select":n}};function Nxe(n,e){if(1&n){const t=he();C(0,"div",51)(1,"div",52),I(2,Mxe,4,5,"div",53),C(3,"input",54,55),q("ngModelChange",function(i){return F(t),V(S().inputText=i)})("keyup",function(i){return F(t),V(S().onKeyup(i))}),ge(5,"translate"),E(),I(6,Pxe,3,1,"div",56),E(),C(7,"div",57),q("click",function(){return F(t),V(S().onSendText())}),ue(),C(8,"svg",58),K(9,"path",59),E()()()}if(2&n){const t=S();v(2),w("ngIf",t.translationsActive),v(1),w("ngModel",t.inputText)("placeholder",_e(5,5,"typeMessage"))("ngClass",pe(7,Oxe,t.translationsActive)),v(3),w("ngIf",t.languageOptionsOpen)}}function Rxe(n,e){1&n&&K(0,"div",63)}const Lxe=function(n,e,t,r){return{open:n,left:e,maximized:t,fullMode:r}},Fxe=function(n){return{color:n}},yz=function(n){return{"extra-open":n}},Vxe=function(n){return{hidden:n}},Bxe=function(n){return{height:n}};let $xe=(()=>{class n{constructor(t,r,i,s){this.chatService=t,this.popupService=r,this.debugService=i,this.translateService=s,this.state="close",this.chatOptionsOpen=!1,this.popupHeight=0,this.messages=[],this.inputText="",this.lastInputText="",this.botSettings={title:"",openingLine:"",botImgUrl:null,backgroundColors:["#6A82FB","#FC5C7D"],screenPosition:"right"},this.backgroundSuccess={"background-color":"green"},this.textColor="#FFF",this.whosTalking={img:null,title:null},this.extraInputOpen=!1,this.relatedIntents=[],this.haveRelatedIntents=!1,this.quickActionsHeight=40,this.exportNotificationShow$=new nt(!1),this.forceOpenSecondaryBar=!1,this.languagesDD=[],this.languageOptionsOpen=!1,this.translationsActive=!1,this.maximized=!1,this.easterEggClicked=0,this.otherAgentActive$=new nt(""),this.expandOptionsEvent=!1,this.fullMode=!1,this.activeLanguageFlag$=this.translateService.onLangChange.pipe(Ba({lang:this.translateService.currentLang})).pipe(on(o=>o.lang)),this.hasGDRP$=this.chatService.hasGDRP$,this.showTextInputBox$=hi([this.chatService.clientId$,this.chatService.subPropertyParentId$,this.chatService.liveChatOnlyMode$,this.chatService.liveChatSettings$]).pipe(on(([o,a,l,c])=>(console.log(o,a,l,c),l?!(!c||!c.liveChatAvailable):!(a&&a===o))))}onClickedOutside(t){this.chatOptionsOpen&&!1===this.expandOptionsEvent&&(this.chatOptionsOpen=!1),this.expandOptionsEvent=!1}ngOnInit(){const t=hi([this.chatService.chatBS,this.chatService.canPostReply$,this.popupService.showChatBox]);this.messagesSub=t.subscribe(([r,i,s])=>{const o=r.length;if(s)if(o>0){const a=r[o-1];if(!a.reply)return void(this.messages=r.slice());if(a.roomCategoriesObj&&Object.keys(a?.roomCategoriesObj).length>0&&(this.forceOpenSecondaryBar=!0),i)return this.messages=r.slice(),void(a.relatedIntents?.length>0?(this.relatedIntents=a.relatedIntents,this.haveRelatedIntents=!0):(this.relatedIntents=[],this.haveRelatedIntents=!1))}else this.relatedIntents=[],this.haveRelatedIntents=!1}),this.showthisSub=this.popupService.showChatBox.subscribe(r=>{r?(this.state="open",setTimeout(()=>{this.myInputField&&this.myInputField.nativeElement.focus()},500)):this.state="close"}),this.botSettingsSub=this.chatService.botSettingsBS.subscribe(r=>{r&&(this.botSettings=r,this.backgroundSuccess={"background-color":r.backgroundColors[0]},r.textColor&&(this.textColor=r.textColor),this.translationsActive=this.chatService.translationsActive)}),this.whosTalkingSub=this.chatService.botImage$.subscribe(r=>{r&&(this.whosTalking=r)}),this.showStructuredInputSub=this.chatService.showStructuredInput$.subscribe(r=>{r?(this.debugService.logMode&&console.log("Opening Extra"),this.extraInputOpen=!0,this.chatService.userIsTyping(!0)):(this.extraInputOpen=!1,this.chatService.userIsTyping(!1),this.onScrollToBottom())}),this.languagesSub=this.chatService.otherLanguages$.subscribe(r=>{this.languagesDD=[{value:"en",label:"English"},...r.map(i=>{switch(i){case"af":return{label:"Afrikaans",value:"af"};case"nl":return{label:"Dutch",value:"nl"};case"fr":return{label:"French",value:"fr"};case"de":return{label:"German",value:"de"};case"pt":return{label:"Portuguese",value:"pt"};case"es":return{label:"Spanish",value:"es"}}})]}),this.fullModeSub=this.chatService.fullMode$.subscribe(r=>{this.fullMode=r})}get backgroundColors(){return this.botSettings.backgroundColors?"linear-gradient(to right, "+this.botSettings.backgroundColors[0]+","+this.botSettings.backgroundColors[1]+")":"linear-gradient(to right, #6A82FB, #FC5C7D)"}onKeyup(t){if("ArrowUp"===t.key)this.inputText=this.lastInputText;else if("Enter"===t.key)this.onSendText(),this.exportNotificationShow$.next(!1);else{const r=this.chatService.getClientId;("3U7FhXtxoR1LhbaBw4OH"===r||"E78oLuo56gxY4uvzUF8u"===r)&&"Space"===t.code&&" "!==this.inputText[this.inputText.length-1]&&(this.inputText+=" "),this.exportNotificationShow$.next(!!(this.inputText&&this.inputText.length>100)),this.chatService.userIsTyping(!!(this.inputText&&this.inputText.length>0))}}onMouseLeave(){this.chatService.userIsTyping(!1)}onSendText(){this.debugService.logMode&&console.log(this.inputText),this.inputText&&(","===this.inputText||"."===this.inputText||"<"===this.inputText||">"===this.inputText||"/"===this.inputText||"?"===this.inputText||"\\"===this.inputText||"'"===this.inputText||'"'===this.inputText||":"===this.inputText||";"===this.inputText||"("===this.inputText||")"===this.inputText||"-"===this.inputText||"="===this.inputText||"+"===this.inputText||"|"===this.inputText||"@"===this.inputText||"#"===this.inputText||"$"===this.inputText||"%"===this.inputText||"^"===this.inputText||"&"===this.inputText||"*"===this.inputText||"_"===this.inputText||(this.chatService.addMessage(this.inputText),this.lastInputText=this.inputText,this.inputText=""))}onClose(){this.popupService.showChatBox.next(!1),this.chatService.showButton$.next(!0),this.chatService.userIsTyping(!1)}onScrollToBottom(t=100){try{this.debugService.logMode&&console.log("scroll",t),setTimeout(()=>{this.scrollToHere&&this.scrollToHere.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"})},t)}catch{}}onExpandOptions(){this.chatOptionsOpen||(this.expandOptionsEvent=!0),this.chatOptionsOpen=!this.chatOptionsOpen}onExpandLanguages(){this.languageOptionsOpen=!this.languageOptionsOpen}onToggleMaximize(){this.maximized=!this.maximized}onFocusMessage(t){t.reply&&t.relatedIntents&&t.relatedIntents.length>0?(this.relatedIntents=t.relatedIntents,this.haveRelatedIntents=!0):(this.relatedIntents=[],this.haveRelatedIntents=!1)}onResetChat(){const t=this.chatService.getClientAndSession().clientId,r=this.chatService.generateNewChatId(t);this.chatService.initServer(t,r,!0),this.messages=[],this.chatService.showButton$.next(!1)}onNewActionAreaHeight(t){t!==this.quickActionsHeight&&(this.quickActionsHeight=t)}onResized(t){this.popupHeight!==t.newRect.height&&(this.popupHeight=t.newRect.height)}get columnContainerHeight(){return this.popupHeight-76-50-this.quickActionsHeight+"px"}get inputContainerHeight(){return 50+this.quickActionsHeight+"px"}onSelectLanguage(t){this.translateService.use(t),this.languageOptionsOpen=!1,window.localStorage.setItem("selectedLanguage",t)}onEasterEgg(){if(this.easterEggClicked++,this.easterEggClicked%4==0){const t=this.chatService.cycleResponseIntelligence();this.otherAgentActive$.next(t)}}ngOnDestroy(){this.messagesSub.unsubscribe(),this.showthisSub.unsubscribe(),this.botSettingsSub.unsubscribe(),this.whosTalkingSub.unsubscribe(),this.showStructuredInputSub.unsubscribe(),this.languagesSub.unsubscribe(),this.fullModeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(vo),R(ss),R(Er))},n.\u0275cmp=Ut({type:n,selectors:[["gc-chat-area"]],viewQuery:function(t,r){if(1&t&&(ji(_xe,5),ji(vxe,5)),2&t){let i;Jr(i=ei())&&(r.scrollToHere=i.first),Jr(i=ei())&&(r.myInputField=i.first)}},hostBindings:function(t,r){1&t&&q("click",function(s){return r.onClickedOutside(s)},0,ml)},decls:34,vars:51,consts:[[1,"gc-main-container",3,"ngClass","resized","mouseleave"],[1,"gc-chat-window",3,"ngStyle"],[1,"gc-chat-heading"],[1,"chatting-with"],["class","available-operators",3,"click",4,"ngIf"],[1,"chat-name",3,"ngStyle"],[1,"gc-title"],[1,"operations"],[1,"gc-ops-icon",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 128 512"],["d","M64 208c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zM16 104c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48zm0 304c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48z",3,"ngStyle"],["class","gc-ops-icon",3,"click",4,"ngIf"],["id","chatOptions",4,"ngIf"],["class","extra-input",4,"ngIf"],["class","extra-notification",3,"click",4,"ngIf"],["class","extra-notification",4,"ngIf"],[1,"column-container",3,"ngClass"],[1,"chat-container",3,"ngClass"],["scrollContainer",""],[3,"messages","focusMessage","scrollNow"],[2,"height","1px"],["scrollToHere",""],["class","gc-gdrp",4,"ngIf"],[1,"gc-input-container",3,"ngClass","ngStyle"],[3,"related-intents","forceOpen","newActionAreaHeight","scrollNow"],["class","gc-entry-container",4,"ngIf"],["class","entry-container blank",4,"ngIf"],[1,"available-operators",3,"click"],["alt","",3,"src"],["version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512","style","width: 13px; margin-left: 5px;",0,"xml","space","preserve",4,"ngIf"],["version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512","style","width: 16px",0,"xml","space","preserve",4,"ngIf"],["version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512",0,"xml","space","preserve",2,"width","13px","margin-left","5px"],["d","M369.8,56.9h85.3v85.3c0,15.7,12.7,28.4,28.4,28.4s28.4-12.7,28.4-28.4V28.4c0-7.5-3-14.8-8.3-20.1S491,0,483.6,0H369.8\n        c-15.7,0-28.4,12.7-28.4,28.4C341.3,44.2,354.1,56.9,369.8,56.9z",3,"ngStyle"],["d","M333,219.2L503.7,48.6c11.1-11.1,11.1-29.1,0-40.2s-29.1-11.1-40.2,0L292.8,179c-11.1,11.1-11.1,29.1,0,40.2\n        C303.9,230.3,321.9,230.3,333,219.2",3,"ngStyle"],["d","M142.2,455.1H56.9v-85.3c0-15.7-12.7-28.4-28.4-28.4S0,354.1,0,369.8v113.8c0,7.5,3,14.8,8.3,20.1\n        C13.6,509,21,512,28.4,512h113.8c15.7,0,28.4-12.7,28.4-28.4C170.7,467.8,157.9,455.1,142.2,455.1z",3,"ngStyle"],["d","M48.6,503.7L219.2,333c11.1-11.1,11.1-29.1,0-40.2c-11.1-11.1-29.1-11.1-40.2,0L8.3,463.4c-11.1,11.1-11.1,29.1,0,40.2\n        C19.4,514.8,37.4,514.8,48.6,503.7",3,"ngStyle"],["d","M369.8,512h113.8c7.5,0,14.8-3,20.1-8.3c5.3-5.3,8.3-12.6,8.3-20.1V369.8c0-15.7-12.7-28.4-28.4-28.4s-28.4,12.7-28.4,28.4\n        v85.3h-85.3c-15.7,0-28.4,12.7-28.4,28.4C341.3,499.3,354.1,512,369.8,512z",3,"ngStyle"],["d","M292.8,333l170.7,170.7c11.1,11.1,29.1,11.1,40.2,0c11.1-11.1,11.1-29.1,0-40.2L333,292.8c-11.1-11.1-29.1-11.1-40.2,0\n        C281.7,303.9,281.7,321.9,292.8,333",3,"ngStyle"],["d","M142.2,0H28.4C21,0,13.6,3,8.3,8.3C3,13.6,0,21,0,28.4v113.8c0,15.7,12.7,28.4,28.4,28.4s28.4-12.7,28.4-28.4V56.9h85.3\n        c15.7,0,28.4-12.7,28.4-28.4C170.7,12.7,157.9,0,142.2,0z",3,"ngStyle"],["d","M8.3,48.6L179,219.2c11.1,11.1,29.1,11.1,40.2,0s11.1-29.1,0-40.2L48.6,8.3C37.4-2.8,19.4-2.8,8.3,8.3\n        C-2.8,19.4-2.8,37.4,8.3,48.6",3,"ngStyle"],["version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512",0,"xml","space","preserve",2,"width","16px"],["d","M28.9,0L0,28.9l146.6,146.6h-112v40.3h181.1V34.6h-40.3v112L28.9,0z M483.1,0L336.5,146.6v-112h-40.3v181.1h181.1v-40.3\n        h-112L512,28.9L483.1,0z M34.6,296.3v40.3h112L0,483.1L28.9,512l146.6-146.6v112h40.3V296.3H34.6z M296.3,296.3v181.1h40.3v-112\n        L483.1,512l28.9-28.9L365.4,336.5h112v-40.3H296.3z",3,"ngStyle"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512"],["d","M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z",3,"ngStyle"],["id","chatOptions"],[3,"click"],[1,"extra-input"],[1,"extra-notification",3,"click"],[1,"extra-notification"],[1,"gc-gdrp"],["href","https://guestchat.com/data-processing-term","target","_blank"],[1,"gc-entry-container"],[1,"gc-left-items"],["class","gc-language-select",3,"click",4,"ngIf"],["type","text",3,"ngModel","placeholder","ngClass","ngModelChange","keyup"],["textInput",""],["class","gc-language-options",4,"ngIf"],[1,"icon-container",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z"],[1,"gc-language-select",3,"click"],[1,"gc-language-options"],[3,"click",4,"ngFor","ngForOf"],[1,"entry-container","blank"]],template:function(t,r){1&t&&(C(0,"div",0),q("resized",function(s){return r.onResized(s)})("mouseleave",function(){return r.onMouseLeave()}),C(1,"div",1)(2,"div",2)(3,"div",3),I(4,bxe,2,1,"div",4),C(5,"div",5)(6,"div",6),X(7),E()()(),C(8,"div",7)(9,"div",8),q("click",function(){return r.onExpandOptions()}),ue(),C(10,"svg",9),K(11,"path",10),E()(),I(12,Sxe,3,2,"div",11),I(13,Exe,3,3,"div",11),I(14,Txe,5,3,"div",12),E()(),I(15,xxe,2,0,"div",13),I(16,Ixe,3,3,"div",14),ge(17,"async"),I(18,Dxe,3,3,"div",15),ge(19,"async"),yt(),C(20,"div",16)(21,"div",17,18)(23,"app-messages-display",19),q("focusMessage",function(s){return r.onFocusMessage(s)})("scrollNow",function(s){return r.onScrollToBottom(s)}),E(),K(24,"div",20,21),E(),I(26,Axe,6,6,"div",22),ge(27,"async"),E(),C(28,"div",23)(29,"app-quick-actions",24),q("newActionAreaHeight",function(s){return r.onNewActionAreaHeight(s)})("scrollNow",function(){return r.onScrollToBottom()}),E(),I(30,Nxe,10,9,"div",25),ge(31,"async"),I(32,Rxe,1,0,"div",26),ge(33,"async"),E()()()),2&t&&(w("ngClass",Ll(34,Lxe,"open"==r.state,"left"==r.botSettings.screenPosition,r.maximized,r.fullMode)),v(1),w("ngStyle",r.backgroundSuccess),v(3),w("ngIf",r.whosTalking.title),v(1),w("ngStyle",pe(39,Fxe,r.textColor)),v(2),Be(" ",r.whosTalking.title," "),v(4),w("ngStyle",pe(41,Ri,r.textColor)),v(1),w("ngIf",!r.fullMode),v(1),w("ngIf",!r.fullMode),v(1),w("ngIf",r.chatOptionsOpen),v(1),w("ngIf",r.extraInputOpen),v(1),w("ngIf",_e(17,24,r.exportNotificationShow$)),v(2),w("ngIf",""!==_e(19,26,r.otherAgentActive$)),v(2),$n("height",r.columnContainerHeight),w("ngClass",pe(43,yz,r.extraInputOpen)),v(1),w("ngClass",pe(45,Vxe,r.extraInputOpen)),v(2),w("messages",r.messages),v(3),w("ngIf",0===r.messages.length&&_e(27,28,r.hasGDRP$)),v(2),w("ngClass",pe(47,yz,r.extraInputOpen))("ngStyle",pe(49,Bxe,r.inputContainerHeight)),v(1),w("related-intents",r.relatedIntents)("forceOpen",r.forceOpenSecondaryBar),v(1),w("ngIf",_e(31,30,r.showTextInputBox$)),v(2),w("ngIf",!_e(33,32,r.showTextInputBox$)))},dependencies:[ri,ii,xn,rr,_h,mA,g_,OH,d1e,w1e,yxe,qo,bR,as],styles:['@import"https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap";.gc-main-container{height:75vh;max-width:375px;z-index:100014;position:fixed;bottom:15px;right:15px;width:calc(100vw - 50px);border-radius:16px;box-shadow:0 0 10px rgba(0,0,0,.3);transform:translateY(calc(100% + 55px));text-align:left;display:none;box-sizing:content-box}.gc-main-container.open{transform:translateY(0);display:block}.gc-main-container.left{left:15px}.gc-main-container.maximized{max-width:none;height:95vh}.gc-main-container.fullMode{width:100%;border-radius:0;height:calc(100% - 10px);position:static;max-width:none}.gc-main-container.fullMode .gc-chat-window,.gc-main-container.fullMode .gc-input-container{border-radius:0!important}.gc-main-container .gc-chat-window{font-family:Roboto,sans-serif;height:100%;border-radius:16px;position:relative;overflow-y:hidden;box-sizing:content-box;letter-spacing:0!important}.gc-main-container .gc-chat-window .gc-chat-heading{position:absolute;width:100%;color:#fff;margin-left:0;padding:0;height:76px;vertical-align:super;font-size:14px;white-space:nowrap;display:flex;justify-content:space-between;box-sizing:content-box}.gc-main-container .gc-chat-window .gc-chat-heading .chatting-with{margin-left:8px;display:inline-block;vertical-align:top;overflow-x:hidden;overflow-y:hidden;width:calc(100% - 76px);box-sizing:content-box}.gc-main-container .gc-chat-window .gc-chat-heading .chatting-with .available-operators{display:inline-block;height:76px;width:54px}.gc-main-container .gc-chat-window .gc-chat-heading .chatting-with .available-operators img{margin:13px 0;width:50px;height:50px;border-radius:50%}.gc-main-container .gc-chat-window .gc-chat-heading .chatting-with .chat-name{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;vertical-align:top;width:calc(100% - 56px);box-sizing:content-box;height:76px}.gc-main-container .gc-chat-window .gc-chat-heading .chatting-with .chat-name .gc-title{width:100%;margin:auto;text-align:center;white-space:pre-line;font-size:16px;line-height:20px;font-weight:700}.gc-main-container .gc-chat-window .gc-chat-heading .operations{display:inline-block;padding:0 10px;width:80px;box-sizing:content-box}.gc-main-container .gc-chat-window .gc-chat-heading .operations .gc-ops-icon{display:inline-block;vertical-align:top;width:26px;padding:26px 0;cursor:pointer}.gc-main-container .gc-chat-window .gc-chat-heading .operations .gc-ops-icon svg{width:27px;height:22px}.gc-main-container .gc-chat-window .gc-chat-heading .operations #chatOptions{position:absolute;right:50px;top:55px;box-shadow:0 0 5px #d3d3d3;background-color:#fff;color:#000;font-size:14px;padding:0 4px;line-height:40px;z-index:100002;box-sizing:content-box}.gc-main-container .gc-chat-window .gc-chat-heading .operations #chatOptions li{list-style-type:none;padding:0 6px;border-radius:4px;cursor:pointer}.gc-main-container .gc-chat-window .gc-chat-heading .operations #chatOptions ul{padding:0;margin:0}.gc-main-container .gc-chat-window .extra-input{top:76px;background-color:#fff;position:relative;overflow-y:auto;width:100%;height:calc(100% - 76px);z-index:100003;border-bottom-left-radius:16px;border-bottom-right-radius:16px;box-sizing:content-box}.gc-main-container .gc-chat-window .extra-notification{font-family:Roboto,sans-serif;box-sizing:content-box;position:absolute;top:77px;height:20px;width:100%;background-color:red;font-size:12px;line-height:20px;text-align:center;z-index:100002;color:#fff;cursor:pointer}.gc-main-container .gc-chat-window .column-container{position:absolute;top:77px;width:100%;height:100%;box-sizing:content-box}.gc-main-container .gc-chat-window .column-container.extra-open{display:none}.gc-main-container .gc-chat-window .column-container .chat-container{background-color:#edf1f4;position:relative;padding:16px 0 0;width:100%;height:calc(100% - 16px);display:inline-block;overflow-y:auto;overflow-x:hidden;box-sizing:content-box}.gc-main-container .gc-chat-window .column-container .chat-container.hidden{display:none!important}.gc-main-container .gc-chat-window .column-container .gc-gdrp{position:absolute;bottom:5px;width:100%;font-size:10px;text-align:center}.gc-main-container .gc-chat-window .gc-input-container{font-family:Roboto,sans-serif;position:absolute;bottom:-1px;width:100%;background-color:#fff;padding:0;border-bottom-left-radius:16px;border-bottom-right-radius:16px}.gc-main-container .gc-chat-window .gc-input-container.extra-open{display:none}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container{display:flex;flex-direction:row;height:50px;border-top:1px solid #edf1f4;font-family:Roboto,sans-serif}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items{width:calc(100% - 55px)}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-select{height:32px;line-height:32px;text-align:center;width:32px;padding:0 2px;display:inline-block;border-radius:50%;margin-top:6px;background-color:#e4e4e7;font-size:12px;cursor:pointer}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-select img{width:25px;height:25px;margin:auto;object-fit:cover;border-radius:50%;display:block}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items input{font-family:Roboto,sans-serif;width:calc(100% - 16px)!important;line-height:30px;margin-left:10px;font-size:14px;background-color:rgba(255,255,255,.9);height:40px;border:none;padding:1px 2px;vertical-align:top}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items input.has-languages-select{width:calc(100% - 48px)!important;margin-left:2px}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items input:focus{outline:none}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-options{position:absolute;bottom:50px;box-shadow:0 0 5px #d3d3d3;background-color:#fff;color:#000;font-size:14px;line-height:40px;z-index:100002;box-sizing:content-box}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-options li{list-style-type:none;padding:0 6px;border-radius:4px;cursor:pointer;height:36px}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-options li img{width:30px;height:30px;object-fit:contain}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-options li:hover{background-color:#d3d3d3}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-options ul{padding:0;margin:0}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .icon-container{display:flex;width:40px;height:40px;border-radius:50%;justify-content:center;margin:auto;cursor:pointer}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .icon-container svg{width:18px;height:18px;align-self:center}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .icon-container svg path{fill:#6e6e6e}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container.blank{background-color:#edf1f4}@media screen and (max-width: 400px){.main-container{position:fixed;width:100%;height:100%;top:0px;left:0px!important;border-top-left-radius:0;border-top-right-radius:0}}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:lightgrey}::-webkit-scrollbar-thumb:hover{background:darkgrey}\n'],encapsulation:3}),n})();function Uxe(n,e){1&n&&K(0,"img",17),2&n&&w("src",S(2).$implicit.path,fr)}function Hxe(n,e){if(1&n&&(C(0,"div",18)(1,"div"),X(2),E(),C(3,"div",19),K(4,"div",20),E()()),2&n){const t=S(2).$implicit;v(2),Be(" ",t.translatedTitle," "),v(2),w("innerHTML",t.translatedDescription,uf)}}const _z=function(n){return{"background-color":n}};function zxe(n,e){if(1&n&&(C(0,"div",21),ue(),C(1,"svg",22),K(2,"path",23),E()()),2&n){const t=S(5);w("ngStyle",pe(1,_z,t.mainColor))}}function jxe(n,e){if(1&n&&(C(0,"div",24),ue(),C(1,"svg",25),K(2,"path",26),E()()),2&n){const t=S(5);w("ngStyle",pe(1,_z,t.mainColor))}}function Gxe(n,e){if(1&n){const t=he();I(0,Uxe,1,1,"img",11),I(1,Hxe,5,2,"div",12),C(2,"div",13),q("click",function(i){return F(t),V(S(4).onSlidePrev(i))}),I(3,zxe,3,3,"div",14),E(),C(4,"div",15),q("click",function(i){return F(t),V(S(4).onSlideNext(i))}),I(5,jxe,3,3,"div",16),E()}if(2&n){const t=S().$implicit,r=S(3);w("ngIf",t.path),v(1),w("ngIf",t.translatedTitle),v(2),w("ngIf",r.floatDisplay.imageUrls.length>1),v(2),w("ngIf",r.floatDisplay.imageUrls.length>1)}}function Wxe(n,e){1&n&&I(0,Gxe,6,4,"ng-template",10)}function qxe(n,e){if(1&n){const t=he();ue(),yt(),C(0,"swiper",8),q("swiper",function(i){return F(t),V(S(2).onSwiperLoaded(i))}),I(1,Wxe,1,0,null,9),E()}if(2&n){const t=S(2);w("config",t.config),v(1),w("ngForOf",t.floatDisplay.imageUrls)}}function Yxe(n,e){if(1&n&&(ue(),yt(),C(0,"div"),K(1,"img",17),E()),2&n){const t=S(2);v(1),w("src",t.floatDisplay.imageUrls[0].path,fr)}}function Kxe(n,e){if(1&n){const t=he();C(0,"div",1),q("click",function(){return F(t),V(S().onClose())}),C(1,"div",2)(2,"div",3),q("click",function(){return F(t),V(S().onClose())}),ue(),C(3,"svg",4),K(4,"path",5),E()(),I(5,qxe,2,2,"swiper",6),I(6,Yxe,2,1,"div",7),E()()}if(2&n){const t=S();v(5),w("ngIf",!t.onlyOneMode),v(1),w("ngIf",t.onlyOneMode)}}Ha.use([lz]);let Qxe=(()=>{class n{constructor(t,r,i){this.floatingService=t,this.debugService=r,this.chatService=i,this.floatDisplay={show:!1},this.config={loop:!0,effect:"cube",initialSlide:0,grabCursor:!0,cubeEffect:{shadow:!1,slideShadows:!0}},this.mainColor="white",this.activeIndex=0,this.onlyOneMode=!1}ngOnInit(){this.floatingSub=this.floatingService.showFloating$.subscribe(t=>{this.debugService.logMode&&console.log(t),this.floatDisplay=t,t.show&&(this.activeIndex=t.startingIndex?t.startingIndex:0,this.floatDisplay.imageUrls&&this.floatDisplay.imageUrls.length>1?(this.config={loop:!0,effect:"cube",grabCursor:!0,initialSlide:this.activeIndex,cubeEffect:{shadow:!1,slideShadows:!0}},this.onlyOneMode=!1):this.onlyOneMode=!0)}),this.botSettingsSub=this.chatService.botSettingsBS.subscribe(t=>{t&&(this.mainColor=t.backgroundColors[0])})}onSwiperLoaded(t){this.swiper=t}onSlideNext(t){this.swiper.slideNext(),t.stopPropagation()}onSlidePrev(t){this.swiper.slidePrev(),t.stopPropagation()}onClose(){this.floatingService.showFloating$.next({show:!1})}ngOnDestroy(){this.floatingSub&&this.floatingSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(HA),R(ss),R(Nn))},n.\u0275cmp=Ut({type:n,selectors:[["app-floating-display"]],decls:1,vars:1,consts:[["id","gc_floating",3,"click",4,"ngIf"],["id","gc_floating",3,"click"],["id","gc_floating_container"],["id","gc_close",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512"],["d","M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"],[3,"config","swiper",4,"ngIf"],[4,"ngIf"],[3,"config","swiper"],[4,"ngFor","ngForOf"],["swiperSlide",""],["class","image-swiper","alt","",3,"src",4,"ngIf"],["class","title",4,"ngIf"],[1,"gc-click-area","gc-left",3,"click"],["class","gc_swiper-button-prev",3,"ngStyle",4,"ngIf"],[1,"gc-click-area","gc-right",3,"click"],["class","gc_swiper-button-next",3,"ngStyle",4,"ngIf"],["alt","",1,"image-swiper",3,"src"],[1,"title"],[1,"description"],[3,"innerHTML"],[1,"gc_swiper-button-prev",3,"ngStyle"],["xmlns","http://www.w3.org/2000/svg","fill","white","viewBox","0 0 224 512"],["d","M224 367.952V144.057c0-42.638-51.731-64.151-81.941-33.941l-112 111.943c-18.745 18.745-18.746 49.137 0 67.882l112 111.952C172.208 432.042 224 410.675 224 367.952zM64 256l112-112v224L64 256z"],[1,"gc_swiper-button-next",3,"ngStyle"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 224 512"],["fill","white","d","M0 144.048v223.895c0 42.638 51.731 64.151 81.941 33.941l112-111.943c18.745-18.745 18.746-49.137 0-67.882l-112-111.952C51.792 79.958 0 101.325 0 144.048zM160 256L48 368V144l112 112z"]],template:function(t,r){1&t&&I(0,Kxe,7,2,"div",0),2&t&&w("ngIf",r.floatDisplay.show)},dependencies:[ii,xn,rr,T_,Th],styles:['@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA) format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev,.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-top,.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:"";background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}#gc_floating{z-index:100020;display:flex;justify-content:center;align-items:center;position:fixed;background-color:rgba(0,0,0,.75);width:100vw;height:100vh;top:0px;left:0px}#gc_floating #gc_floating_container{position:relative;width:90%;max-width:800px}#gc_floating #gc_floating_container #gc_close{position:absolute;right:0px;top:0px;height:40px;width:40px;cursor:pointer}#gc_floating #gc_floating_container #gc_close svg{width:30px;height:30px;margin:auto}#gc_floating #gc_floating_container #gc_close svg path{fill:#fff}#gc_floating #gc_floating_container img{margin-top:30px;width:100%}#gc_floating #gc_floating_container .swiper-slide-duplicate{visibility:hidden!important}#gc_floating #gc_floating_container .swiper-slide-active{visibility:visible!important}#gc_floating #gc_floating_container .swiper-slide{cursor:pointer}#gc_floating #gc_floating_container .swiper-slide:not(.swiper-slide-visible){visibility:hidden!important}#gc_floating #gc_floating_container .swiper-slide .image-swiper{width:100%;object-fit:contain}#gc_floating #gc_floating_container .swiper-slide .title{background-color:#fff;padding:4px;position:absolute;bottom:5px;left:9px;width:calc(100% - 26px);text-align:center;font-weight:700;font-family:Roboto,sans-serif}#gc_floating #gc_floating_container .swiper-slide .title .description{font-weight:400}#gc_floating #gc_floating_container .swiper-slide .gc-click-area{position:absolute;height:calc(100% - 30px);width:50px;top:30px}#gc_floating #gc_floating_container .swiper-slide .gc-click-area.gc-right{right:0px}#gc_floating #gc_floating_container .swiper-slide .gc-click-area .gc_swiper-button-prev,#gc_floating #gc_floating_container .swiper-slide .gc-click-area .gc_swiper-button-next{position:absolute;width:26px;box-sizing:content-box;height:22px;opacity:.8;line-height:26px;margin-top:0;padding:5px 0;top:calc(50% - 36px);z-index:100021;cursor:pointer;border-radius:2px;text-align:center;background-image:none;backface-visibility:hidden;-moz-backface-visibility:hidden;-webkit-backface-visibility:hidden}#gc_floating #gc_floating_container .swiper-slide .gc-click-area .gc_swiper-button-prev svg,#gc_floating #gc_floating_container .swiper-slide .gc-click-area .gc_swiper-button-next svg{height:22px}#gc_floating #gc_floating_container .swiper-slide .gc_swiper-button-prev{left:12px;background-position:left}#gc_floating #gc_floating_container .swiper-slide .gc_swiper-button-next{right:12px;background-position:right}#gc_floating .swiper-cube .swiper-cube-shadow{display:none!important}\n'],encapsulation:3}),n})();function Xxe(n,e){1&n&&K(0,"gc-chat-area")}let Zxe=(()=>{class n{constructor(t,r){this.popupService=t,this.chatService=r}onClickedOutside(t){}set func(t){t&&(this.key=t,this.loadData())}ngOnInit(){const t=window.location.search;if(t){const r=new URLSearchParams(t);if(r){const i=r.get("cId");if(i){this.key=i,window.sessionStorage.removeItem("clientId");const s=r.get("sId");s&&window.localStorage.setItem("chatId",s),window.sessionStorage.setItem("iceBreakerOpened","true"),this.chatService.hasOpened$.next(!0),window.sessionStorage.setItem("opened","true"),this.chatService.fullMode$.next(!0),this.loadData()}}}}loadData(){const t=window.localStorage.getItem("chatId"),r=window.localStorage.getItem("chatTime"),i=window.sessionStorage.getItem("clientId");let s;r&&(s=this.differenceDays(new Date(r))),this.sessionId=t&&0===s?t:this.chatService.generateNewChatId(this.key),i?(this.chatService.initServer(i,this.sessionId),this.chatService.alsoGetMasterMultiProprty(this.key)):this.chatService.initServer(this.key,this.sessionId)}differenceDays(t){const i=(new Date).getTime(),s=t.getTime();return Math.round((i-s)/864e5)}ngOnDestroy(){}}return n.\u0275fac=function(t){return new(t||n)(R(vo),R(Nn))},n.\u0275cmp=Ut({type:n,selectors:[["chat-widget"]],hostBindings:function(t,r){1&t&&q("click",function(s){return r.onClickedOutside(s)},0,ml)},inputs:{func:["key","func"]},decls:4,vars:3,consts:[[4,"ngIf"]],template:function(t,r){1&t&&(K(0,"app-floating-display")(1,"gc-start-button"),I(2,Xxe,1,0,"gc-chat-area",0),ge(3,"async")),2&t&&(v(2),w("ngIf",_e(3,1,r.popupService.showChatBox)))},dependencies:[xn,Kbe,$xe,Qxe,qo],styles:['.gc-button[_ngcontent-%COMP%]{position:fixed;bottom:55px;right:30px;z-index:100000;color:#fff;height:70px;width:70px;border-radius:50%;padding:0;font-size:24px;box-shadow:0 0 10px rgba(0,0,0,.3);border:none;display:flex;cursor:pointer}.gc-button[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:70px;width:70px;border-radius:50%}.gc-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin:auto;width:45px;transition:.3s ease-in-out}.gc-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{fill:#fff}.gc-button[_ngcontent-%COMP%]:hover   svg[_ngcontent-%COMP%]{width:50px}.gc-button.left[_ngcontent-%COMP%]   #gc_exclamation[_ngcontent-%COMP%]{right:0px!important}.gc-button[_ngcontent-%COMP%]   #gc_exclamation[_ngcontent-%COMP%]{background-color:red;width:18px;height:18px;border-radius:50%;position:absolute;font-size:12px;line-height:18px}.gc-button[_ngcontent-%COMP%]   #gc-online[_ngcontent-%COMP%]{position:absolute;bottom:-12px;width:100%;text-align:center;font-size:12px}.gc-button.bar[_ngcontent-%COMP%]{width:215px;border-radius:6px 6px 0 0;height:35px;bottom:0px;padding:0 8px;box-sizing:content-box}.gc-button.bar.left[_ngcontent-%COMP%]   #gc_exclamation[_ngcontent-%COMP%]{right:-6px!important;top:-6px!important}.gc-button.bar[_ngcontent-%COMP%]:not(.left)   #gc_exclamation[_ngcontent-%COMP%]{right:-6px;top:-6px!important}.gc-button.bar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:24px;width:24px;border-radius:50%;margin-top:6px;box-sizing:content-box}.gc-button.bar[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{position:absolute;right:6px;top:6px;width:24px}.gc-button.bar[_ngcontent-%COMP%]   .bar-text[_ngcontent-%COMP%]{box-sizing:content-box;font-family:Roboto,sans-serif;font-size:14px;vertical-align:super;width:100%;text-align:left;line-height:35px}@media screen and (max-height: 400px){button.chat-open[_ngcontent-%COMP%]{top:7vh}}.hallo-bar[_ngcontent-%COMP%]{position:fixed;bottom:60px;right:55px;z-index:100000;background-color:#fff;height:50px;width:90px;border-radius:4px;padding:4px;font-family:Roboto,sans-serif;box-shadow:0 0 10px rgba(0,0,0,.3);box-sizing:content-box}.hallo-bar[_ngcontent-%COMP%]   .gc-title[_ngcontent-%COMP%]{box-sizing:content-box;font-size:22px;font-weight:700;color:red;line-height:25px;width:50px;text-align:center}.hallo-bar[_ngcontent-%COMP%]   .gc-subtitle[_ngcontent-%COMP%]{box-sizing:content-box;font-size:12px}#gc_greeting_box[_ngcontent-%COMP%]{z-index:100000;width:250px;position:fixed;box-sizing:content-box}#gc_greeting_box[_ngcontent-%COMP%]   #gc_close_button[_ngcontent-%COMP%]{box-sizing:content-box;z-index:100000;height:30px;width:30px;border-radius:50%;display:inline-block;background-color:#fff;box-shadow:2px 2px 4px rgba(0,0,0,.25);text-align:center;vertical-align:top;cursor:pointer}#gc_greeting_box[_ngcontent-%COMP%]   #gc_close_button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:2.5px;height:25px}#gc_greeting_box[_ngcontent-%COMP%]   #gc_close_button.left[_ngcontent-%COMP%]{margin-left:4px}#gc_greeting_box[_ngcontent-%COMP%]   #gc_close_button.right[_ngcontent-%COMP%]{margin-right:4px}#gc_greeting_box[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]{z-index:100001;font-family:Roboto,sans-serif;width:192px;font-size:14px;line-height:16px;background-color:#fff;color:#000;border-radius:6px;box-shadow:2px 2px 4px rgba(0,0,0,.25);padding:12px;overflow-y:hidden;display:inline-block;overflow-x:hidden;cursor:pointer;box-sizing:content-box}#gc_greeting_box[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]   #gc_opening_text[_ngcontent-%COMP%]{box-sizing:content-box;text-align:left;white-space:pre-line}#gc_greeting_box[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]:after{box-sizing:content-box;z-index:99998;content:" ";position:absolute;width:0;height:0;left:auto;right:-9px;top:8px;bottom:auto;border:12px solid;border-color:white transparent transparent white}#gc_greeting_box.left[_ngcontent-%COMP%]   #gc_close_button[_ngcontent-%COMP%]{float:right}#gc_greeting_box.left[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]:after{left:-4px;transform:rotate(-47deg)}#gc_greeting_box.left.bar[_ngcontent-%COMP%]   #gc_close_button[_ngcontent-%COMP%]{float:right}#gc_greeting_box.left.bar[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]:after{left:40px;top:auto;bottom:-7px;transform:rotate(-12deg)}#gc_greeting_box.right.bar[_ngcontent-%COMP%]   #gc_opening_line[_ngcontent-%COMP%]:after{right:160px;top:auto;bottom:-10px;transform:rotate(-12deg)}.ice-action[_ngcontent-%COMP%]{color:#598bff;font-weight:700;cursor:pointer}@keyframes iceBreakerAnimation{0%{transform:rotateX(0)}50%{transform:rotateX(90deg)}to{transform:rotateX(0)}}']}),n})();var x_={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},eIe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,tIe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nIe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function rIe(n){var r,e={},t=n.split(x_.dateTimeDelimiter);if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],x_.timeZoneDelimiter.test(e.date)&&(e.date=n.split(x_.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var i=x_.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function iIe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:null===s?i:100*s,restDateString:n.slice((r[1]||r[2]).length)}}function sIe(n,e){if(null===e)return new Date(NaN);var t=n.match(eIe);if(!t)return new Date(NaN);var r=!!t[4],i=xh(t[1]),s=xh(t[2])-1,o=xh(t[3]),a=xh(t[4]),l=xh(t[5])-1;if(r)return function hIe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}(0,a,l)?function lIe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var s=7*(e-1)+t+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+s),r}(e,a,l):new Date(NaN);var c=new Date(0);return function uIe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(cIe[e]||(vz(n)?29:28))}(e,s,o)&&function dIe(n,e){return e>=1&&e<=(vz(n)?366:365)}(e,i)?(c.setUTCFullYear(e,s,Math.max(i,o)),c):new Date(NaN)}function xh(n){return n?parseInt(n):1}function oIe(n){var e=n.match(tIe);if(!e)return NaN;var t=YA(e[1]),r=YA(e[2]),i=YA(e[3]);return function fIe(n,e,t){return 24===n?0===e&&0===t:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}(t,r,i)?t*zI+6e4*r+1e3*i:NaN}function YA(n){return n&&parseFloat(n.replace(",","."))||0}function aIe(n){if("Z"===n)return 0;var e=n.match(nIe);if(!e)return 0;var t="+"===e[1]?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return function pIe(n,e){return e>=0&&e<=59}(0,i)?t*(r*zI+6e4*i):NaN}var cIe=[31,null,31,30,31,30,31,31,30,31,30,31];function vz(n){return n%400==0||n%4==0&&n%100!=0}class gIe{constructor(e){this.afs=e}getTranslation(e){if("fallback"===e){const r={chatNow:"Chat now"};return console.log(r),Hn(r)}const t=window.localStorage.getItem("gc-langCacheDate-"+e);if(t&&JD(function Jxe(n,e){var t;qe(1,arguments);var r=Ye(null!==(t=e?.additionalDigits)&&void 0!==t?t:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof n&&"[object String]"!==Object.prototype.toString.call(n))return new Date(NaN);var s,i=rIe(n);if(i.date){var o=iIe(i.date,r);s=sIe(o.restDateString,o.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var c,a=s.getTime(),l=0;if(i.time&&(l=oIe(i.time),isNaN(l)))return new Date(NaN);if(!i.timezone){var u=new Date(a+l),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return c=aIe(i.timezone),isNaN(c)?new Date(NaN):new Date(a+l+c)}(JSON.parse(t)),FH(new Date,{days:1}))){const r=window.localStorage.getItem("gc-cachedLanguages-"+e);if(r)return Hn(JSON.parse(r))}return Ife(Hr(this.afs,`TranslationsWidget/${e}`)).pipe(Ju(r=>{r&&(window.localStorage.setItem("gc-cachedLanguages-"+e,JSON.stringify(r)),window.localStorage.setItem("gc-langCacheDate-"+e,JSON.stringify(new Date)))}))}}function mIe(n){return new gIe(n)}let yIe=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){if(!customElements.get("chat-widget")){const t=function qfe(n,e){const t=function $fe(n,e){return e.get(hl).resolveComponentFactory(n).inputs}(n,e.injector),r=e.strategyFactory||new jfe(n,e.injector),i=function Bfe(n){const e={};return n.forEach(({propName:t,templateName:r})=>{e[function Nfe(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(r)]=t}),e}(t);class s extends Wfe{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(i[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(i),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(Zxe,{injector:this.injector});customElements.define("chat-widget",t)}}}return n.\u0275fac=function(t){return new(t||n)(ae(gr))},n.\u0275mod=Ht({type:n}),n.\u0275inj=Pt({imports:[GR,dse(()=>hse(QR_firebase)),Tfe(()=>Dfe()),IZ,Iee,W0e,Jwe,K0e,cEe,t1e,Ebe.forRoot({defaultLanguage:"fallback",loader:{provide:yh,useFactory:mIe,deps:[dh]}})]}),n})();(function $K(){YN=!1})(),tZ().bootstrapModule(yIe).then(n=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=n}).catch(n=>console.error(n))}},I_=>{I_(I_.s=361)}]);