(()=>{"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],{271:(g_,TD,m_)=>{var Rc={};function FU(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function xD(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function bt(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?xD(Object(t),!0).forEach(function(i){FU(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):xD(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function _h(n){return"function"==typeof n}m_.r(Rc),m_.d(Rc,{Decoder:()=>UA,Encoder:()=>Rve,PacketType:()=>Be,protocol:()=>Nve});let y_=!1;const cr={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 y_&&console.log("RxJS: Back to a better error behavior. Thank you. <3");y_=n},get useDeprecatedSynchronousErrorHandling(){return y_}};function $a(n){setTimeout(()=>{throw n},0)}const vh={closed:!0,next(n){},error(n){if(cr.useDeprecatedSynchronousErrorHandling)throw n;$a(n)},complete(){}},Lc=Array.isArray||(n=>n&&"number"==typeof n.length);function __(n){return null!==n&&"object"==typeof n}const bh=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class xt{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:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof xt)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(_h(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof bh?ID(o.errors):[o]}}if(Lc(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(__(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof bh?e=e.concat(ID(c.errors)):e.push(c)}}}if(e)throw new bh(e)}add(e){let t=e;if(!e)return xt.EMPTY;switch(typeof e){case"function":t=new xt(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof xt)){const s=t;t=new xt,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof xt){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function ID(n){return n.reduce((e,t)=>e.concat(t instanceof bh?t.errors:t),[])}xt.EMPTY=((n=new xt).closed=!0,n);const wh="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class dn extends xt{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=vh;break;case 1:if(!e){this.destination=vh;break}if("object"==typeof e){e instanceof dn?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new AD(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new AD(this,e,t,i)}}[wh](){return this}static create(e,t,i){const r=new dn(e,t,i);return r.syncErrorThrowable=!1,r}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 AD extends dn{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;_h(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==vh&&(o=Object.create(t),_h(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;cr.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:i}=cr;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):$a(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;$a(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);cr.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(i){if(this.unsubscribe(),cr.useDeprecatedSynchronousErrorHandling)throw i;$a(i)}}__tryOrSetError(e,t,i){if(!cr.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return cr.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):($a(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Fc="function"==typeof Symbol&&Symbol.observable||"@@observable";function DD(n){return n}let rt=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function BU(n,e,t){if(n){if(n instanceof dn)return n;if(n[wh])return n[wh]()}return n||e||t?new dn(n,e,t):new dn(vh)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||cr.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),cr.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){cr.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function VU(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof dn?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=MD(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[Fc](){return this}pipe(...t){return 0===t.length?this:function kD(n){return 0===n.length?DD:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=MD(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function MD(n){if(n||(n=cr.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Io=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class PD extends xt{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 i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class OD extends dn{constructor(e){super(e),this.destination=e}}let as=(()=>{class n extends rt{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[wh](){return new OD(this)}lift(t){const i=new ND(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Io;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new Io;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new Io;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new Io;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Io;return this.hasError?(t.error(this.thrownError),xt.EMPTY):this.isStopped?(t.complete(),xt.EMPTY):(this.observers.push(t),new PD(this,t))}asObservable(){const t=new rt;return t.source=this,t}}return n.create=(e,t)=>new ND(e,t),n})();class ND extends as{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):xt.EMPTY}}function Vc(n){return n&&"function"==typeof n.schedule}function bi(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new $U(n,e))}}class $U{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new HU(e,this.project,this.thisArg))}}class HU extends dn{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const RD=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},Sh=function zU(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),LD=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function FD(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const v_=n=>{if(n&&"function"==typeof n[Fc])return(n=>e=>{const t=n[Fc]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(LD(n))return RD(n);if(FD(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,$a),e))(n);if(n&&"function"==typeof n[Sh])return(n=>e=>{const t=n[Sh]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${__(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function b_(n,e){return new rt(t=>{const i=new xt;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Ch(n,e){return e?function XU(n,e){if(null!=n){if(function KU(n){return n&&"function"==typeof n[Fc]}(n))return function WU(n,e){return new rt(t=>{const i=new xt;return i.add(e.schedule(()=>{const r=n[Fc]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(FD(n))return function qU(n,e){return new rt(t=>{const i=new xt;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(LD(n))return b_(n,e);if(function QU(n){return n&&"function"==typeof n[Sh]}(n)||"string"==typeof n)return function YU(n,e){if(!n)throw new Error("Iterable cannot be null");return new rt(t=>{const i=new xt;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[Sh](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof rt?n:new rt(v_(n))}class VD extends dn{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 BD extends dn{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function $D(n,e){if(e.closed)return;if(n instanceof rt)return n.subscribe(e);let t;try{t=v_(n)(e)}catch(i){e.error(i)}return t}function w_(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(w_((r,s)=>Ch(n(r,s)).pipe(bi((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new ZU(n,t)))}class ZU{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new JU(e,this.project,this.concurrent))}}class JU extends BD{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,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 i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new VD(this),i=this.destination;i.add(t);const r=$D(e,t);r!==t&&i.add(r)}_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 S_(n,e){return e?b_(n,e):new rt(RD(n))}function HD(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return Vc(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof rt?n[0]:function ez(n=Number.POSITIVE_INFINITY){return w_(DD,n)}(e)(S_(n,t))}function UD(){return function(e){return e.lift(new tz(e))}}class tz{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new nz(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class nz extends dn{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:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class iz extends rt{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 xt,e.add(this.source.subscribe(new sz(this.getSubject(),this))),e.closed&&(this._connection=null,e=xt.EMPTY)),e}refCount(){return UD()(this)}}const rz=(()=>{const n=iz.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 sz extends OD{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 lz{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function cz(){return new as}function ot(n){for(let e in n)if(n[e]===ot)return e;throw Error("Could not find renamed property on target object.")}function C_(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function at(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(at).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 E_(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const dz=ot({__forward_ref__:ot});function lt(n){return n.__forward_ref__=lt,n.toString=function(){return at(this())},n}function Se(n){return T_(n)?n():n}function T_(n){return"function"==typeof n&&n.hasOwnProperty(dz)&&n.__forward_ref__===lt}class Z extends Error{constructor(e,t){super(function Eh(n,e){return`NG0${Math.abs(n)}${e?": "+e.trim():""}`}(e,t)),this.code=e}}function De(n){return"string"==typeof n?n:null==n?"":String(n)}function Th(n,e){throw new Z(-201,!1)}function Si(n,e){null==n&&function Ze(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function Ce(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Vt(n){return{providers:n.providers||[],imports:n.imports||[]}}function xh(n){return zD(n,Ih)||zD(n,GD)}function zD(n,e){return n.hasOwnProperty(e)?n[e]:null}function jD(n){return n&&(n.hasOwnProperty(x_)||n.hasOwnProperty(vz))?n[x_]:null}const Ih=ot({\u0275prov:ot}),x_=ot({\u0275inj:ot}),GD=ot({ngInjectableDef:ot}),vz=ot({ngInjectorDef:ot});var Te=(()=>((Te=Te||{})[Te.Default=0]="Default",Te[Te.Host=1]="Host",Te[Te.Self=2]="Self",Te[Te.SkipSelf=4]="SkipSelf",Te[Te.Optional=8]="Optional",Te))();let I_;function Hi(n){const e=I_;return I_=n,e}function WD(n,e,t){const i=xh(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&Te.Optional?null:void 0!==e?e:void Th(at(n))}function Bs(n){return{toString:n}.toString()}var ur=(()=>((ur=ur||{})[ur.OnPush=0]="OnPush",ur[ur.Default=1]="Default",ur))(),dr=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(dr||(dr={})),dr))();const dt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ha={},Ke=[],Ah=ot({\u0275cmp:ot}),A_=ot({\u0275dir:ot}),D_=ot({\u0275pipe:ot}),qD=ot({\u0275mod:ot}),cs=ot({\u0275fac:ot}),Bc=ot({__NG_ELEMENT_ID__:ot});let wz=0;function Bt(n){return Bs(()=>{const t=!0===n.standalone,i={},r={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:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===ur.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Ke,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||dr.Emulated,id:"c"+wz++,styles:n.styles||Ke,_:null,setInput:null,schemas:n.schemas||null,tView:null},s=n.dependencies,o=n.features;return r.inputs=QD(n.inputs,i),r.outputs=QD(n.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(YD).filter(KD):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(qn).filter(KD):null,r})}function YD(n){return Je(n)||Wn(n)}function KD(n){return null!==n}function qt(n){return Bs(()=>({type:n.type,bootstrap:n.bootstrap||Ke,declarations:n.declarations||Ke,imports:n.imports||Ke,exports:n.exports||Ke,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function QD(n,e){if(null==n)return Ha;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const ye=Bt;function Dn(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 Je(n){return n[Ah]||null}function Wn(n){return n[A_]||null}function qn(n){return n[D_]||null}function li(n){return Array.isArray(n)&&"object"==typeof n[1]}function fr(n){return Array.isArray(n)&&!0===n[1]}function P_(n){return 0!=(8&n.flags)}function Ph(n){return 2==(2&n.flags)}function Oh(n){return 1==(1&n.flags)}function pr(n){return null!==n.template}function Iz(n){return 0!=(256&n[2])}function Po(n,e){return n.hasOwnProperty(cs)?n[cs]:null}class JD{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Pr(){return ek}function ek(n){return n.type.prototype.ngOnChanges&&(n.setInput=Mz),kz}function kz(){const n=nk(this),e=n?.current;if(e){const t=n.previous;if(t===Ha)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function Mz(n,e,t,i){const r=nk(n)||function Pz(n,e){return n[tk]=e}(n,{previous:Ha,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new JD(l&&l.currentValue,e,o===Ha),n[i]=e}Pr.ngInherit=!0;const tk="__ngSimpleChanges__";function nk(n){return n[tk]||null}function Yt(n){for(;Array.isArray(n);)n=n[0];return n}function Nh(n,e){return Yt(e[n])}function ji(n,e){return Yt(e[n.index])}function F_(n,e){return n.data[e]}function Ga(n,e){return n[e]}function Ti(n,e){const t=e[n];return li(t)?t:t[0]}function Rh(n){return 64==(64&n[2])}function $s(n,e){return null==e?null:n[e]}function ik(n){n[18]=0}function V_(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const xe={lFrame:fk(null),bindingsEnabled:!0};function sk(){return xe.bindingsEnabled}function W(){return xe.lFrame.lView}function $e(){return xe.lFrame.tView}function V(n){return xe.lFrame.contextLView=n,n[8]}function B(n){return xe.lFrame.contextLView=null,n}function nn(){let n=ok();for(;null!==n&&64===n.type;)n=n.parent;return n}function ok(){return xe.lFrame.currentTNode}function Or(n,e){const t=xe.lFrame;t.currentTNode=n,t.isParent=e}function B_(){return xe.lFrame.isParent}function $_(){xe.lFrame.isParent=!1}function Yn(){const n=xe.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function Wa(){return xe.lFrame.bindingIndex++}function ds(n){const e=xe.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function qz(n,e){const t=xe.lFrame;t.bindingIndex=t.bindingRootIndex=n,H_(e)}function H_(n){xe.lFrame.currentDirectiveIndex=n}function uk(){return xe.lFrame.currentQueryIndex}function z_(n){xe.lFrame.currentQueryIndex=n}function Kz(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function dk(n,e,t){if(t&Te.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&Te.Host||(r=Kz(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=xe.lFrame=hk();return i.currentTNode=e,i.lView=n,!0}function j_(n){const e=hk(),t=n[1];xe.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function hk(){const n=xe.lFrame,e=null===n?null:n.child;return null===e?fk(n):e}function fk(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 pk(){const n=xe.lFrame;return xe.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const gk=pk;function G_(){const n=pk();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 Kn(){return xe.lFrame.selectedIndex}function Hs(n){xe.lFrame.selectedIndex=n}function Mt(){const n=xe.lFrame;return F_(n.tView,n.selectedIndex)}function ce(){xe.lFrame.currentNamespace="svg"}function St(){!function Jz(){xe.lFrame.currentNamespace=null}()}function Lh(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;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 Fh(n,e,t){mk(n,e,3,t)}function Vh(n,e,t,i){(3&n[2])===t&&mk(n,e,t,i)}function W_(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function mk(n,e,t,i){const s=i??-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(nj(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function nj(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){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 Wc{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Bh(n,e,t){let i=0;for(;i<t.length;){const r=t[i];if("number"==typeof r){if(0!==r)break;i++;const s=t[i++],o=t[i++],a=t[i++];n.setAttribute(e,o,a,s)}else{const s=r,o=t[++i];_k(s)?n.setProperty(e,s,o):n.setAttribute(e,s,o),i++}}return i}function yk(n){return 3===n||4===n||6===n}function _k(n){return 64===n.charCodeAt(0)}function $h(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||vk(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function vk(n,e,t,i,r){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===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function bk(n){return-1!==n}function qa(n){return 32767&n}function Ya(n,e){let t=function aj(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Y_=!0;function Hh(n){const e=Y_;return Y_=n,e}let lj=0;const Nr={};function Yc(n,e){const t=Q_(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,K_(i.data,n),K_(e,null),K_(i.blueprint,null));const r=Uh(n,e),s=n.injectorIndex;if(bk(r)){const o=qa(r),a=Ya(r,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]=r,s}function K_(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Q_(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Uh(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){if(i=Dk(r),null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function zh(n,e,t){!function cj(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Bc)&&(i=t[Bc]),null==i&&(i=t[Bc]=lj++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Ck(n,e,t){if(t&Te.Optional||void 0!==n)return n;Th()}function Ek(n,e,t,i){if(t&Te.Optional&&void 0===i&&(i=null),0==(t&(Te.Self|Te.Host))){const r=n[9],s=Hi(void 0);try{return r?r.get(e,i,t&Te.Optional):WD(e,i,t&Te.Optional)}finally{Hi(s)}}return Ck(i,0,t)}function Tk(n,e,t,i=Te.Default,r){if(null!==n){if(1024&e[2]){const o=function pj(n,e,t,i,r){let s=n,o=e;for(;null!==s&&null!==o&&1024&o[2]&&!(256&o[2]);){const a=xk(s,o,t,i|Te.Self,Nr);if(a!==Nr)return a;let l=s.parent;if(!l){const c=o[21];if(c){const u=c.get(t,Nr,i);if(u!==Nr)return u}l=Dk(o),o=o[15]}s=l}return r}(n,e,t,i,Nr);if(o!==Nr)return o}const s=xk(n,e,t,i,Nr);if(s!==Nr)return s}return Ek(e,t,i,r)}function xk(n,e,t,i,r){const s=function hj(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Bc)?n[Bc]:void 0;return"number"==typeof e?e>=0?255&e:fj:e}(t);if("function"==typeof s){if(!dk(e,n,i))return i&Te.Host?Ck(r,0,i):Ek(e,t,i,r);try{const o=s(i);if(null!=o||i&Te.Optional)return o;Th()}finally{gk()}}else if("number"==typeof s){let o=null,a=Q_(n,e),l=-1,c=i&Te.Host?e[16][6]:null;for((-1===a||i&Te.SkipSelf)&&(l=-1===a?Uh(n,e):e[a+8],-1!==l&&Ak(i,!1)?(o=e[1],a=qa(l),e=Ya(l,e)):a=-1);-1!==a;){const u=e[1];if(Ik(s,a,u.data)){const d=dj(a,e,t,o,i,c);if(d!==Nr)return d}l=e[a+8],-1!==l&&Ak(i,e[1].data[a+8]===c)&&Ik(s,a,e)?(o=u,a=qa(l),e=Ya(l,e)):a=-1}}return r}function dj(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=jh(a,o,t,null==i?Ph(a)&&Y_:i!=o&&0!=(3&a.type),r&Te.Host&&s===a);return null!==u?Kc(e,o,u,a):Nr}function jh(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&pr(f)&&f.type===t)return l}return null}function Kc(n,e,t,i){let r=n[t];const s=e.data;if(function ij(n){return n instanceof Wc}(r)){const o=r;o.resolving&&function hz(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new Z(-200,`Circular dependency in DI detected for ${n}${t}`)}(function Ye(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():De(n)}(s[t]));const a=Hh(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Hi(o.injectImpl):null;dk(n,i,Te.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function tj(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=ek(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&Hi(l),Hh(a),o.resolving=!1,gk()}}return r}function Ik(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Ak(n,e){return!(n&Te.Self||n&Te.Host&&e)}class Ka{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Tk(this._tNode,this._lView,e,i,t)}}function fj(){return new Ka(nn(),W())}function Pn(n){return Bs(()=>{const e=n.prototype.constructor,t=e[cs]||X_(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[cs]||X_(r);if(s&&s!==t)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function X_(n){return T_(n)?()=>{const e=X_(Se(n));return e&&e()}:Po(n)}function Dk(n){const e=n[1],t=e.type;return 2===t?e.declTNode:1===t?n[6]:null}const Xa="__parameters__";function Ja(n,e,t){return Bs(()=>{const i=function J_(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Xa)?l[Xa]:Object.defineProperty(l,Xa,{value:[]})[Xa];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class be{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=Ce({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function xi(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),xi(i,e)):e!==n&&e.push(i)}return e}function hs(n,e){n.forEach(t=>Array.isArray(t)?hs(t,e):e(t))}function Mk(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Gh(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Zc(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function Ii(n,e,t){let i=el(n,e);return i>=0?n[1|i]=t:(i=~i,function _j(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function tv(n,e){const t=el(n,e);if(t>=0)return n[1|t]}function el(n,e){return function Nk(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const Jc={},iv="__NG_DI_FLAG__",qh="ngTempTokenPath",xj=/\n/gm,Rk="__source";let eu;function tl(n){const e=eu;return eu=n,e}function Aj(n,e=Te.Default){if(void 0===eu)throw new Z(-203,!1);return null===eu?WD(n,void 0,e):eu.get(n,e&Te.Optional?null:void 0,e)}function ue(n,e=Te.Default){return(function bz(){return I_}()||Aj)(Se(n),e)}function rv(n){const e=[];for(let t=0;t<n.length;t++){const i=Se(n[t]);if(Array.isArray(i)){if(0===i.length)throw new Z(900,!1);let r,s=Te.Default;for(let o=0;o<i.length;o++){const a=i[o],l=kj(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(ue(r,s))}else e.push(ue(i))}return e}function tu(n,e){return n[iv]=e,n.prototype[iv]=e,n}function kj(n){return n[iv]}const ci=tu(Ja("Optional"),8),Yh=tu(Ja("SkipSelf"),4);let ov,Xh,Zh;function il(n){var e;return(null===(e=function av(){if(void 0===Xh&&(Xh=null,dt.trustedTypes))try{Xh=dt.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Xh}())||void 0===e?void 0:e.createHTML(n))||n}function Gk(n){var e;return(null===(e=function lv(){if(void 0===Zh&&(Zh=null,dt.trustedTypes))try{Zh=dt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Zh}())||void 0===e?void 0:e.createHTML(n))||n}class Oo{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Gj extends Oo{getTypeName(){return"HTML"}}class Wj extends Oo{getTypeName(){return"Style"}}class qj extends Oo{getTypeName(){return"Script"}}class Yj extends Oo{getTypeName(){return"URL"}}class Kj extends Oo{getTypeName(){return"ResourceURL"}}function Ai(n){return n instanceof Oo?n.changingThisBreaksApplicationSecurity:n}function Rr(n,e){const t=function Qj(n){return n instanceof Oo&&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 n7{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(il(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class i7{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 i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=il(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=il(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const s7=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Jh(n){return(n=String(n)).match(s7)?n:"unsafe:"+n}function fs(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function ru(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const Kk=fs("area,br,col,hr,img,wbr"),Qk=fs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Xk=fs("rp,rt"),cv=ru(Kk,ru(Qk,fs("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")),ru(Xk,fs("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")),ru(Xk,Qk)),uv=fs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zk=ru(uv,fs("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"),fs("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")),o7=fs("script,style,template");class a7{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!cv.hasOwnProperty(t))return this.sanitizedSomething=!0,!o7.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Zk.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;uv[a]&&(l=Jh(l)),this.buf.push(" ",o,'="',Jk(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();cv.hasOwnProperty(t)&&!Kk.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Jk(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 l7=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c7=/([^\#-~ |!])/g;function Jk(n){return n.replace(/&/g,"&amp;").replace(l7,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(c7,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ef;function eM(n,e){let t=null;try{ef=ef||function Yk(n){const e=new i7(n);return function r7(){try{return!!(new window.DOMParser).parseFromString(il(""),"text/html")}catch{return!1}}()?new n7(e):e}(n);let i=e?String(e):"";t=ef.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=t.innerHTML,t=ef.getInertBodyElement(i)}while(i!==s);return il((new a7).sanitizeChildren(dv(t)||t))}finally{if(t){const i=dv(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function dv(n){return"content"in n&&function u7(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ft=(()=>((ft=ft||{})[ft.NONE=0]="NONE",ft[ft.HTML=1]="HTML",ft[ft.STYLE=2]="STYLE",ft[ft.SCRIPT=3]="SCRIPT",ft[ft.URL=4]="URL",ft[ft.RESOURCE_URL=5]="RESOURCE_URL",ft))();function tf(n){const e=su();return e?Gk(e.sanitize(ft.HTML,n)||""):Rr(n,"HTML")?Gk(Ai(n)):eM(function jk(){return void 0!==ov?ov:typeof document<"u"?document:void 0}(),De(n))}function On(n){const e=su();return e?e.sanitize(ft.URL,n)||"":Rr(n,"URL")?Ai(n):Jh(De(n))}function su(){const n=W();return n&&n[12]}const nM=new be("ENVIRONMENT_INITIALIZER"),iM=new be("INJECTOR",-1),rM=new be("INJECTOR_DEF_TYPES");class sM{get(e,t=Jc){if(t===Jc){const i=new Error(`NullInjectorError: No provider for ${at(e)}!`);throw i.name="NullInjectorError",i}return t}}function y7(...n){return{\u0275providers:oM(0,n)}}function oM(n,...e){const t=[],i=new Set;let r;return hs(e,s=>{const o=s;hv(o,t,[],i)&&(r||(r=[]),r.push(o))}),void 0!==r&&aM(r,t),t}function aM(n,e){for(let t=0;t<n.length;t++){const{providers:r}=n[t];hs(r,s=>{e.push(s)})}}function hv(n,e,t,i){if(!(n=Se(n)))return!1;let r=null,s=jD(n);const o=!s&&Je(n);if(s||o){if(o&&!o.standalone)return!1;r=n}else{const l=n.ngModule;if(s=jD(l),!s)return!1;r=l}const a=i.has(r);if(o){if(a)return!1;if(i.add(r),o.dependencies){const l="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const c of l)hv(c,e,t,i)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;i.add(r);try{hs(s.imports,u=>{hv(u,e,t,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&aM(c,e)}if(!a){const c=Po(r)||(()=>new r);e.push({provide:r,useFactory:c,deps:Ke},{provide:rM,useValue:r,multi:!0},{provide:nM,useValue:()=>ue(r),multi:!0})}const l=s.providers;null==l||a||hs(l,u=>{e.push(u)})}}return r!==n&&void 0!==n.providers}const _7=ot({provide:String,useValue:ot});function fv(n){return null!==n&&"object"==typeof n&&_7 in n}function No(n){return"function"==typeof n}const pv=new be("Set Injector scope."),nf={},b7={};let gv;function rf(){return void 0===gv&&(gv=new sM),gv}class rl{}class uM extends rl{constructor(e,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,yv(e,o=>this.processProvider(o)),this.records.set(iM,sl(void 0,this)),r.has("environment")&&this.records.set(rl,sl(void 0,this));const s=this.records.get(pv);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(rM.multi,Ke,Te.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=tl(this),i=Hi(void 0);try{return e()}finally{tl(t),Hi(i)}}get(e,t=Jc,i=Te.Default){this.assertNotDestroyed();const r=tl(this),s=Hi(void 0);try{if(!(i&Te.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function T7(n){return"function"==typeof n||"object"==typeof n&&n instanceof be}(e)&&xh(e);a=l&&this.injectableDefInScope(l)?sl(mv(e),nf):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&Te.Self?rf():this.parent).get(e,t=i&Te.Optional&&t===Jc?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[qh]=o[qh]||[]).unshift(at(e)),r)throw o;return function Mj(n,e,t,i){const r=n[qh];throw e[Rk]&&r.unshift(e[Rk]),n.message=function Pj(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=at(e);if(Array.isArray(e))r=e.map(at).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):at(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(xj,"\n  ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[qh]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{Hi(s),tl(r)}}resolveInjectorInitializers(){const e=tl(this),t=Hi(void 0);try{const i=this.get(nM.multi,Ke,Te.Self);for(const r of i)r()}finally{tl(e),Hi(t)}}toString(){const e=[],t=this.records;for(const i of t.keys())e.push(at(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Z(205,!1)}processProvider(e){let t=No(e=Se(e))?e:Se(e&&e.provide);const i=function S7(n){return fv(n)?sl(void 0,n.useValue):sl(dM(n),nf)}(e);if(No(e)||!0!==e.multi)this.records.get(t);else{let r=this.records.get(t);r||(r=sl(void 0,nf,!0),r.factory=()=>rv(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,i)}hydrate(e,t){return t.value===nf&&(t.value=b7,t.value=t.factory()),"object"==typeof t.value&&t.value&&function E7(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=Se(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function mv(n){const e=xh(n),t=null!==e?e.factory:Po(n);if(null!==t)return t;if(n instanceof be)throw new Z(204,!1);if(n instanceof Function)return function w7(n){const e=n.length;if(e>0)throw Zc(e,"?"),new Z(204,!1);const t=function yz(n){const e=n&&(n[Ih]||n[GD]);if(e){const t=function _z(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 Z(204,!1)}function dM(n,e,t){let i;if(No(n)){const r=Se(n);return Po(r)||mv(r)}if(fv(n))i=()=>Se(n.useValue);else if(function cM(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...rv(n.deps||[]));else if(function lM(n){return!(!n||!n.useExisting)}(n))i=()=>ue(Se(n.useExisting));else{const r=Se(n&&(n.useClass||n.provide));if(!function C7(n){return!!n.deps}(n))return Po(r)||mv(r);i=()=>new r(...rv(n.deps))}return i}function sl(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function x7(n){return!!n.\u0275providers}function yv(n,e){for(const t of n)Array.isArray(t)?yv(t,e):x7(t)?yv(t.\u0275providers,e):e(t)}class hM{}class D7{resolveComponentFactory(e){throw function A7(n){const e=Error(`No component factory found for ${at(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let ol=(()=>{class n{}return n.NULL=new D7,n})();function k7(){return al(nn(),W())}function al(n,e){return new Nn(ji(n,e))}let Nn=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=k7,n})();function M7(n){return n instanceof Nn?n.nativeElement:n}class ou{}let zs=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function P7(){const n=W(),t=Ti(nn().index,n);return(li(t)?t:n)[11]}(),n})(),O7=(()=>{class n{}return n.\u0275prov=Ce({token:n,providedIn:"root",factory:()=>null}),n})();class ll{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const pM=new ll("14.2.6"),_v={};function Cv(n){return n.ngOriginalError}class cl{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&&Cv(e);for(;t&&Cv(t);)t=Cv(t);return t||null}}const Ev=new Map;let G7=0;const xv="__ngContext__";function Rn(n,e){li(e)?(n[xv]=e[20],function q7(n){Ev.set(n[20],n)}(e)):n[xv]=e}function lu(n){return n.ownerDocument}var ui=(()=>((ui=ui||{})[ui.Important=1]="Important",ui[ui.DashCase=2]="DashCase",ui))();function Av(n,e){return undefined(n,e)}function cu(n){const e=n[3];return fr(e)?e[3]:e}function Dv(n){return AM(n[13])}function kv(n){return AM(n[4])}function AM(n){for(;null!==n&&!fr(n);)n=n[4];return n}function dl(n,e,t,i,r){if(null!=i){let s,o=!1;fr(i)?s=i:li(i)&&(o=!0,i=i[0]);const a=Yt(i);0===n&&null!==t?null==r?NM(e,t,a):Ro(e,t,a,r||null,!0):1===n&&null!==t?Ro(e,t,a,r||null,!0):2===n?function HM(n,e,t){const i=sf(n,e);i&&function vG(n,e,t,i){n.removeChild(e,t,i)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function SG(n,e,t,i,r){const s=t[7];s!==Yt(t)&&dl(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];uu(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function Pv(n,e,t){return n.createElement(e,t)}function kM(n,e){const t=n[9],i=t.indexOf(e),r=e[3];512&e[2]&&(e[2]&=-513,V_(r,-1)),t.splice(i,1)}function Ov(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&kM(r,i),e>0&&(n[t-1][4]=i[4]);const s=Gh(n,10+e);!function dG(n,e){uu(n,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function MM(n,e){if(!(128&e[2])){const t=e[11];t.destroyNode&&uu(n,e,t,3,null,null),function pG(n){let e=n[13];if(!e)return Nv(n[1],n);for(;e;){let t=null;if(li(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)li(e)&&Nv(e[1],e),e=e[3];null===e&&(e=n),li(e)&&Nv(e[1],e),t=e&&e[4]}e=t}}(e)}}function Nv(n,e){if(!(128&e[2])){e[2]&=-65,e[2]|=128,function _G(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Wc)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function yG(n,e){const t=n.cleanup,i=e[7];let r=-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):Yt(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)(0,i[s])();e[7]=null}}(n,e),1===e[1].type&&e[11].destroy();const t=e[17];if(null!==t&&fr(e[3])){t!==e[3]&&kM(t,e);const i=e[19];null!==i&&i.detachView(n)}!function Y7(n){Ev.delete(n[20])}(e)}}function PM(n,e,t){return function OM(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===dr.None||r===dr.Emulated)return null}return ji(i,t)}(n,e.parent,t)}function Ro(n,e,t,i,r){n.insertBefore(e,t,i,r)}function NM(n,e,t){n.appendChild(e,t)}function RM(n,e,t,i,r){null!==i?Ro(n,e,t,i,r):NM(n,e,t)}function sf(n,e){return n.parentNode(e)}function LM(n,e,t){return VM(n,e,t)}let VM=function FM(n,e,t){return 40&n.type?ji(n,t):null};function of(n,e,t,i){const r=PM(n,i,e),s=e[11],a=LM(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)RM(s,r,t[l],a,!1);else RM(s,r,t,a,!1)}function af(n,e){if(null!==e){const t=e.type;if(3&t)return ji(e,n);if(4&t)return Lv(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return af(n,i);{const r=n[e.index];return fr(r)?Lv(-1,r):Yt(r)}}if(32&t)return Av(e,n)()||Yt(n[e.index]);{const i=$M(n,e);return null!==i?Array.isArray(i)?i[0]:af(cu(n[16]),i):af(n,e.next)}}return null}function $M(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Lv(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return af(i,r)}return e[7]}function Fv(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&Rn(Yt(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Fv(n,e,t.child,i,r,s,!1),dl(e,n,r,a,s);else if(32&l){const c=Av(t,i);let u;for(;u=c();)dl(e,n,r,u,s);dl(e,n,r,a,s)}else 16&l?UM(n,e,i,t,r,s):dl(e,n,r,a,s);t=o?t.projectionNext:t.next}}function uu(n,e,t,i,r,s){Fv(t,i,n.firstChild,e,r,s,!1)}function UM(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)dl(e,n,r,l[c],s);else Fv(n,e,l,o[3],r,s,!0)}function zM(n,e,t){n.setAttribute(e,"style",t)}function Vv(n,e,t){""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t)}function jM(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const GM="ng-template";function EG(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==jM(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function WM(n){return 4===n.type&&n.value!==GM}function TG(n,e,t){return e===(4!==n.type||t?n.value:GM)}function xG(n,e,t){let i=4;const r=n.attrs||[],s=function DG(n){for(let e=0;e<n.length;e++)if(yk(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!TG(n,l,t)||""===l&&1===e.length){if(gr(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!EG(n.attrs,c,t)){if(gr(i))return!1;o=!0}continue}const d=IG(8&i?"class":l,r,WM(n),t);if(-1===d){if(gr(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==jM(f,c,0)||2&i&&c!==h){if(gr(i))return!1;o=!0}}}}else{if(!o&&!gr(i)&&!gr(l))return!1;if(o&&gr(l))continue;o=!1,i=l|1&i}}return gr(i)||o}function gr(n){return 0==(1&n)}function IG(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function kG(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function qM(n,e,t=!1){for(let i=0;i<e.length;i++)if(xG(n,e[i],t))return!0;return!1}function MG(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function YM(n,e){return n?":not("+e.trim()+")":e}function PG(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!gr(o)&&(e+=YM(s,r),r=""),i=o,s=s||!gr(i);t++}return""!==r&&(e+=YM(s,r)),e}const ke={};function v(n){KM($e(),W(),Kn()+n,!1)}function KM(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&Fh(e,s,t)}else{const s=n.preOrderHooks;null!==s&&Vh(e,s,0,t)}Hs(t)}function JM(n,e=null,t=null,i){const r=eP(n,e,t,i);return r.resolveInjectorInitializers(),r}function eP(n,e=null,t=null,i,r=new Set){const s=[t||Ke,y7(n)];return i=i||("object"==typeof n?void 0:at(n)),new uM(s,e||rf(),i||null,r)}let di=(()=>{class n{static create(t,i){if(Array.isArray(t))return JM({name:""},i,t,"");{var r;const s=null!==(r=t.name)&&void 0!==r?r:"";return JM({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=Jc,n.NULL=new sM,n.\u0275prov=Ce({token:n,providedIn:"any",factory:()=>ue(iM)}),n.__NG_ELEMENT_ID__=-1,n})();function R(n,e=Te.Default){const t=W();return null===t?ue(n,e):Tk(nn(),t,Se(n),e)}function cf(n,e){return n<<17|e<<2}function mr(n){return n>>17&32767}function zv(n){return 2|n}function gs(n){return(131068&n)>>2}function jv(n,e){return-131069&n|e<<2}function Gv(n){return 1|n}function yP(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];z_(r),o.contentQueries(2,e[s],s)}}}function hf(n,e,t,i,r,s,o,a,l,c,u){const d=e.blueprint.slice();return d[0]=r,d[2]=76|i,(null!==u||n&&1024&n[2])&&(d[2]|=1024),ik(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 W7(){return G7++}(),d[21]=u,d[16]=2==e.type?n[16]:d,d}function fl(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Jv(n,e,t,i,r){const s=ok(),o=B_(),l=n.data[e]=function g9(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);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,i,r),function Wz(){return xe.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function Gc(){const n=xe.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Or(s,!0),s}function pl(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function eb(n,e,t){j_(e);try{const i=n.viewQuery;null!==i&&lb(1,i,t);const r=n.template;null!==r&&_P(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&yP(n,e),n.staticViewQueries&&lb(2,n.viewQuery,t);const s=n.components;null!==s&&function h9(n,e){for(let t=0;t<e.length;t++)M9(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,G_()}}function ff(n,e,t,i){const r=e[2];if(128!=(128&r)){j_(e);try{ik(e),function lk(n){return xe.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&_P(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Fh(e,c,null)}else{const c=n.preOrderHooks;null!==c&&Vh(e,c,0,null),W_(e,0)}if(function D9(n){for(let e=Dv(n);null!==e;e=kv(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(512&r[2])&&V_(s,1),r[2]|=512}}}(e),function A9(n){for(let e=Dv(n);null!==e;e=kv(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];Rh(i)&&ff(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&yP(n,e),o){const c=n.contentCheckHooks;null!==c&&Fh(e,c)}else{const c=n.contentHooks;null!==c&&Vh(e,c,1),W_(e,1)}!function u9(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Hs(~r);else{const s=r,o=t[++i],a=t[++i];qz(o,s),a(2,e[s])}}}finally{Hs(-1)}}(n,e);const a=n.components;null!==a&&function d9(n,e){for(let t=0;t<e.length;t++)k9(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&lb(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Fh(e,c)}else{const c=n.viewHooks;null!==c&&Vh(e,c,2),W_(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-41,512&e[2]&&(e[2]&=-513,V_(e[3],-1))}finally{G_()}}}function _P(n,e,t,i,r){const s=Kn(),o=2&i;try{Hs(-1),o&&e.length>22&&KM(n,e,22,!1),t(i,r)}finally{Hs(s)}}function vP(n,e,t){if(P_(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function tb(n,e,t){!sk()||(function b9(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Yc(t,e),Rn(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=pr(l);c&&T9(e,t,l);const u=Kc(e,n,a,t);Rn(u,e),null!==o&&x9(0,a-r,u,l,0,o),c&&(Ti(t.index,e)[8]=u)}}(n,e,t,ji(t,e)),128==(128&t.flags)&&function w9(n,e,t){const i=t.directiveStart,r=t.directiveEnd,s=t.index,o=function Yz(){return xe.lFrame.currentDirectiveIndex}();try{Hs(s);for(let a=i;a<r;a++){const l=n.data[a],c=e[a];H_(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&xP(l,c)}}finally{Hs(-1),H_(o)}}(n,e,t))}function nb(n,e,t=ji){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}function bP(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=ib(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function ib(n,e,t,i,r,s,o,a,l,c){const u=22+i,d=u+r,h=function f9(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:ke);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 wP(n,e,t,i){const r=MP(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&PP(n).push(i,r.length-1))}function SP(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function CP(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||WM(e)?null:I9(d,s);o.push(h),a=SP(d,c,a),l=SP(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 EP(n,e){const t=Ti(e,n);16&t[2]||(t[2]|=32)}function rb(n,e,t,i){let r=!1;if(sk()){const s=function S9(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];qM(t,o.selectors,!1)&&(r||(r=[]),zh(Yc(t,e),n,o.type),pr(o)?(IP(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,AP(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=pl(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=$h(t.mergedAttrs,d.hostAttrs),DP(n,t,e,c,d),E9(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++}CP(n,t)}o&&function C9(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new Z(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=$h(t.mergedAttrs,t.attrs),r}function TP(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function v9(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(i,r,o)}}function xP(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function IP(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function E9(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;pr(e)&&(t[""]=n)}}function AP(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function DP(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=Po(r.type)),o=new Wc(s,pr(r),R);n.blueprint[i]=o,t[i]=o,TP(n,e,0,i,pl(n,t,r.hostVars,ke),r)}function T9(n,e,t){const i=ji(e,n),r=bP(t),s=n[10],o=pf(n,hf(n,r,null,t.onPush?32:16,i,e,s,s.createRenderer(i,t),null,null,null));n[e.index]=o}function Lr(n,e,t,i,r,s){const o=ji(n,e);!function sb(n,e,t,i,r,s,o){if(null==s)n.removeAttribute(e,r,t);else{const a=null==o?De(s):o(s,i||"",r);n.setAttribute(e,r,a,t)}}(e[11],o,s,n.value,t,i,r)}function x9(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function I9(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function kP(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function k9(n,e){const t=Ti(e,n);if(Rh(t)){const i=t[1];48&t[2]?ff(i,t,i.template,t[8]):t[5]>0&&ob(t)}}function ob(n){for(let i=Dv(n);null!==i;i=kv(i))for(let r=10;r<i.length;r++){const s=i[r];if(Rh(s))if(512&s[2]){const o=s[1];ff(o,s,o.template,s[8])}else s[5]>0&&ob(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=Ti(t[i],n);Rh(r)&&r[5]>0&&ob(r)}}function M9(n,e){const t=Ti(e,n),i=t[1];(function P9(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),eb(i,t,t[8])}function pf(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function ab(n){for(;n;){n[2]|=32;const e=cu(n);if(Iz(n)&&!e)return n;n=e}return null}function gf(n,e,t,i=!0){const r=e[10];r.begin&&r.begin();try{ff(n,e,n.template,t)}catch(o){throw i&&NP(e,o),o}finally{r.end&&r.end()}}function lb(n,e,t){z_(0),e(n,t)}function MP(n){return n[7]||(n[7]=[])}function PP(n){return n.cleanup||(n.cleanup=[])}function NP(n,e){const t=n[9],i=t?t.get(cl,null):null;i&&i.handleError(e)}function cb(n,e,t,i,r){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,r,i,a):l[a]=r}}function ms(n,e,t){const i=Nh(e,n);!function DM(n,e,t){n.setValue(e,t)}(n[11],i,t)}function mf(n,e,t){let i=t?n.styles:null,r=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?r=E_(r,a):2==s&&(i=E_(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}function yf(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Yt(s)),fr(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&yf(l[1],l,c,i)}const o=t.type;if(8&o)yf(n,e,t.child,i);else if(32&o){const a=Av(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=$M(e,t);if(Array.isArray(a))i.push(...a);else{const l=cu(e[16]);yf(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class du{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 yf(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(fr(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(Ov(e,i),Gh(t,i))}this._attachedToViewContainer=!1}MM(this._lView[1],this._lView)}onDestroy(e){wP(this._lView[1],this._lView,null,e)}markForCheck(){ab(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){gf(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Z(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function fG(n,e){uu(n,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Z(902,!1);this._appRef=e}}class O9 extends du{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;gf(e[1],e,e[8],!1)}checkNoChanges(){}get context(){return null}}class ub extends ol{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Je(e);return new hu(t,this.ngModule)}}function RP(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class R9{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,i){const r=this.injector.get(e,_v,i);return r!==_v||t===_v?r:this.parentInjector.get(e,t,i)}}class hu extends hM{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function OG(n){return n.map(PG).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return RP(this.componentDef.inputs)}get outputs(){return RP(this.componentDef.outputs)}create(e,t,i,r){var s;let o=(r=r||this.ngModule)instanceof rl?r:null===(s=r)||void 0===s?void 0:s.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new R9(e,o):e,l=a.get(ou,null);if(null===l)throw new Z(407,!1);const c=a.get(O7,null),u=l.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",h=i?function p9(n,e,t){return n.selectRootElement(e,t===dr.ShadowDom)}(u,i,this.componentDef.encapsulation):Pv(l.createRenderer(null,this.componentDef),d,function N9(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(d)),f=this.componentDef.onPush?288:272,p=ib(0,null,null,1,0,null,null,null,null,null),g=hf(null,p,null,f,null,null,l,u,c,a,null);let m,_;j_(g);try{const b=function V9(n,e,t,i,r,s){const o=t[1];t[22]=n;const l=fl(o,22,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(mf(l,c,!0),null!==n&&(Bh(r,n,c),null!==l.classes&&Vv(r,n,l.classes),null!==l.styles&&zM(r,n,l.styles)));const u=i.createRenderer(n,e),d=hf(t,bP(e),null,e.onPush?32:16,t[22],l,i,u,s||null,null,null);return o.firstCreatePass&&(zh(Yc(l,t),o,e.type),IP(o,l),AP(l,t.length,1)),pf(t,d),t[22]=d}(h,this.componentDef,g,l,u);if(h)if(i)Bh(u,h,["ng-version",pM.full]);else{const{attrs:y,classes:T}=function NG(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!gr(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);y&&Bh(u,h,y),T&&T.length>0&&Vv(u,h,T.join(" "))}if(_=F_(p,22),void 0!==t){const y=_.projection=[];for(let T=0;T<this.ngContentSelectors.length;T++){const I=t[T];y.push(null!=I?Array.from(I):null)}}m=function B9(n,e,t,i){const r=t[1],s=function _9(n,e,t){const i=nn();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),DP(n,i,e,pl(n,e,1,null),t),CP(n,i));const r=Kc(e,n,i.directiveStart,i);Rn(r,e);const s=ji(i,e);return s&&Rn(s,e),r}(r,t,e);if(n[8]=t[8]=s,null!==i)for(const a of i)a(s,e);if(e.contentQueries){const a=nn();e.contentQueries(1,s,a.directiveStart)}const o=nn();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Hs(o.index),TP(t[1],o,0,o.directiveStart,o.directiveEnd,e),xP(e,s)),s}(b,this.componentDef,g,[$9]),eb(p,g,null)}finally{G_()}return new F9(this.componentType,m,al(_,g),g,_)}}class F9 extends class I7{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new O9(r),this.componentType=e}setInput(e,t){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[e])){const s=this._rootLView;cb(s[1],s,r,e,t),EP(s,this._tNode.index)}}get injector(){return new Ka(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}function $9(){const n=nn();Lh(W()[1],n)}function et(n){let e=function LP(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(pr(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Z(903,!1);r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=db(n.inputs),o.declaredInputs=db(n.declaredInputs),o.outputs=db(n.outputs);const a=r.hostBindings;a&&j9(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&U9(n,l),c&&z9(n,c),C_(n.inputs,r.inputs),C_(n.declaredInputs,r.declaredInputs),C_(n.outputs,r.outputs),pr(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===et&&(t=!1)}}e=Object.getPrototypeOf(e)}!function H9(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=$h(r.hostAttrs,t=$h(t,r.hostAttrs))}}(i)}function db(n){return n===Ha?{}:n===Ke?[]:n}function U9(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function z9(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function j9(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let _f=null;function Lo(){if(!_f){const n=dt.Symbol;if(n&&n.iterator)_f=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(_f=i)}}}return _f}function fu(n){return!!hb(n)&&(Array.isArray(n)||!(n instanceof Map)&&Lo()in n)}function hb(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Fr(n,e,t){return n[e]=t}function Ln(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function Fo(n,e,t,i){const r=Ln(n,e,t);return Ln(n,e+1,i)||r}function Gi(n,e,t,i,r,s){const o=Fo(n,e,t,i);return Fo(n,e+2,r,s)||o}function ki(n,e,t,i){const r=W();return Ln(r,Wa(),e)&&($e(),Lr(Mt(),r,n,e,t,i)),ki}function yl(n,e,t,i,r,s){const a=Fo(n,function us(){return xe.lFrame.bindingIndex}(),t,r);return ds(2),a?e+De(t)+i+De(r)+s:ke}function A(n,e,t,i,r,s,o,a){const l=W(),c=$e(),u=n+22,d=c.firstCreatePass?function Z9(n,e,t,i,r,s,o,a,l){const c=e.consts,u=fl(e,n,4,o||null,$s(c,a));rb(e,t,u,$s(c,l)),Lh(e,u);const d=u.tViews=ib(2,u,i,r,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,i,r,s,o):c.data[u];Or(d,!1);const h=l[11].createComment("");of(c,l,h,d),Rn(h,l),pf(l,l[u]=kP(h,l,h,d)),Oh(d)&&tb(c,l,d),null!=o&&nb(l,d,a)}function gu(n){return Ga(function Gz(){return xe.lFrame.contextLView}(),22+n)}function w(n,e,t){const i=W();return Ln(i,Wa(),e)&&function Di(n,e,t,i,r,s,o,a){const l=ji(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(cb(n,t,u,i,r),Ph(e)&&EP(t,e.index)):3&e.type&&(i=function m9(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,s.setProperty(l,i,r))}($e(),Mt(),i,n,e,i[11],t,!1),w}function fb(n,e,t,i,r){const o=r?"class":"style";cb(n,t,e.inputs[o],o,i)}function C(n,e,t,i){const r=W(),s=$e(),o=22+n,a=r[11],l=r[o]=Pv(a,e,function ej(){return xe.lFrame.currentNamespace}()),c=s.firstCreatePass?function eW(n,e,t,i,r,s,o){const a=e.consts,c=fl(e,n,2,r,$s(a,s));return rb(e,t,c,$s(a,o)),null!==c.attrs&&mf(c,c.attrs,!1),null!==c.mergedAttrs&&mf(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];Or(c,!0);const u=c.mergedAttrs;null!==u&&Bh(a,l,u);const d=c.classes;null!==d&&Vv(a,l,d);const h=c.styles;return null!==h&&zM(a,l,h),64!=(64&c.flags)&&of(s,r,l,c),0===function $z(){return xe.lFrame.elementDepthCount}()&&Rn(l,r),function Hz(){xe.lFrame.elementDepthCount++}(),Oh(c)&&(tb(s,r,c),vP(s,c,r)),null!==i&&nb(r,c),C}function E(){let n=nn();B_()?$_():(n=n.parent,Or(n,!1));const e=n;!function Uz(){xe.lFrame.elementDepthCount--}();const t=$e();return t.firstCreatePass&&(Lh(t,n),P_(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function sj(n){return 0!=(16&n.flags)}(e)&&fb(t,e,W(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function oj(n){return 0!=(32&n.flags)}(e)&&fb(t,e,W(),e.stylesWithoutHost,!1),E}function Y(n,e,t,i){return C(n,e,t,i),E(),Y}function Wi(n,e,t){const i=W(),r=$e(),s=n+22,o=r.firstCreatePass?function tW(n,e,t,i,r){const s=e.consts,o=$s(s,i),a=fl(e,n,8,"ng-container",o);return null!==o&&mf(a,o,!0),rb(e,t,a,$s(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];Or(o,!0);const a=i[s]=i[11].createComment("");return of(r,i,a,o),Rn(a,i),Oh(o)&&(tb(r,i,o),vP(r,o,i)),null!=t&&nb(i,o),Wi}function qi(){let n=nn();const e=$e();return B_()?$_():(n=n.parent,Or(n,!1)),e.firstCreatePass&&(Lh(e,n),P_(n)&&e.queries.elementEnd(n)),qi}function El(n,e,t){return Wi(n,e,t),qi(),El}function fe(){return W()}function bf(n){return!!n&&"function"==typeof n.then}function WP(n){return!!n&&"function"==typeof n.subscribe}const qP=WP;function K(n,e,t,i){const r=W(),s=$e(),o=nn();return function KP(n,e,t,i,r,s,o,a){const l=Oh(i),u=n.firstCreatePass&&PP(n),d=e[8],h=MP(e);let f=!0;if(3&i.type||a){const m=ji(i,e),_=a?a(m):m,b=h.length,y=a?I=>a(Yt(I[i.index])):i.index;let T=null;if(!a&&l&&(T=function nW(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=s,T.__ngLastListenerFn__=s,f=!1;else{s=XP(i,e,d,s,!1);const I=t.listen(_,r,s);h.push(s,I),u&&u.push(r,y,b,b+1)}}else s=XP(i,e,d,s,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const m=g.length;if(m)for(let _=0;_<m;_+=2){const D=e[g[_]][g[_+1]].subscribe(s),P=h.length;h.push(s,D),u&&u.push(r,i.index,P,-(P+1))}}}(s,r,r[11],o,n,e,0,i),K}function QP(n,e,t,i){try{return!1!==t(i)}catch(r){return NP(n,r),!1}}function XP(n,e,t,i,r){return function s(o){if(o===Function)return i;ab(2&n.flags?Ti(n.index,e):e);let l=QP(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=QP(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function S(n=1){return function Qz(n){return(xe.lFrame.contextLView=function Xz(n,e){for(;n>0;)e=e[15],n--;return e}(n,xe.lFrame.contextLView))[8]}(n)}function iW(n,e){let t=null;const i=function AG(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 r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?qM(n,s,!0):MG(i,s))return r}else t=r}return t}function pb(n){const e=W()[16][6];if(!e.projection){const i=e.projection=Zc(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?iW(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function Vo(n,e=0,t){const i=W(),r=$e(),s=fl(r,22+n,16,null,t||null);null===s.projection&&(s.projection=e),$_(),64!=(64&s.flags)&&function wG(n,e,t){UM(e[11],0,e,t,PM(n,t,e),LM(t.parent||e[6],t,e))}(r,i,s)}function aO(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?mr(s):gs(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];oW(n[a],e)&&(l=!0,n[a+1]=i?Gv(u):zv(u)),a=i?mr(u):gs(u)}l&&(n[t+1]=i?zv(s):Gv(s))}function oW(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&el(n,e)>=0}const sn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lO(n){return n.substring(sn.key,sn.keyEnd)}function aW(n){return n.substring(sn.value,sn.valueEnd)}function cO(n,e){const t=sn.textEnd;return t===e?-1:(e=sn.keyEnd=function uW(n,e,t){for(;e<t&&n.charCodeAt(e)>32;)e++;return e}(n,sn.key=e,t),Tl(n,e,t))}function uO(n,e){const t=sn.textEnd;let i=sn.key=Tl(n,e,t);return t===i?-1:(i=sn.keyEnd=function dW(n,e,t){let i;for(;e<t&&(45===(i=n.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(n,i,t),i=hO(n,i,t),i=sn.value=Tl(n,i,t),i=sn.valueEnd=function hW(n,e,t){let i=-1,r=-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=fO(n,l,o,t):e===o-4&&85===s&&82===r&&76===i&&40===l?a=o=fO(n,41,o,t):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(n,i,t),hO(n,i,t))}function dO(n){sn.key=0,sn.keyEnd=0,sn.value=0,sn.valueEnd=0,sn.textEnd=n.length}function Tl(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function hO(n,e,t,i){return(e=Tl(n,e,t))<t&&e++,e}function fO(n,e,t,i){let r=-1,s=t;for(;s<i;){const o=n.charCodeAt(s++);if(o==e&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function Fn(n,e,t){return _r(n,e,t,!1),Fn}function mu(n,e){return _r(n,e,null,!0),mu}function fW(n,e){for(let t=function cW(n){return dO(n),uO(n,Tl(n,0,sn.textEnd))}(e);t>=0;t=uO(e,t))mO(n,lO(e),aW(e))}function yu(n){vr(Ii,Vr,n,!0)}function Vr(n,e){for(let t=function lW(n){return dO(n),cO(n,Tl(n,0,sn.textEnd))}(e);t>=0;t=cO(e,t))Ii(n,lO(e),!0)}function _r(n,e,t,i){const r=W(),s=$e(),o=ds(2);s.firstUpdatePass&&gO(s,n,o,i),e!==ke&&Ln(r,o,e)&&yO(s,s.data[Kn()],r,r[11],n,r[o+1]=function bW(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=at(Ai(n)))),n}(e,t),i,o)}function vr(n,e,t,i){const r=$e(),s=ds(2);r.firstUpdatePass&&gO(r,null,s,i);const o=W();if(t!==ke&&Ln(o,s,t)){const a=r.data[Kn()];if(vO(a,i)&&!pO(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=E_(l,t||"")),fb(r,a,o,t,i)}else!function vW(n,e,t,i,r,s,o,a){r===ke&&(r=Ke);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[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&&yO(n,e,t,i,p,g,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function _W(n,e,t){if(null==t||""===t)return Ke;const i=[],r=Ai(t);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(n,e,t),i,s)}}function pO(n,e){return e>=n.expandoStartIndex}function gO(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[Kn()],o=pO(n,t);vO(s,i)&&null===e&&!o&&(e=!1),e=function pW(n,e,t,i){const r=function U_(n){const e=xe.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=_u(t=mb(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=mb(r,n,e,t,i),null===s){let l=function gW(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==gs(i))return n[mr(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=mb(null,n,e,l[1],i),l=_u(l,e.attrs,i),function mW(n,e,t,i){n[mr(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function yW(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=_u(i,n[s].hostAttrs,t);return _u(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function rW(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=mr(o),l=gs(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||el(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=mr(n[a+1]);n[i+1]=cf(h,a),0!==h&&(n[h+1]=jv(n[h+1],i)),n[a+1]=function e9(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=cf(a,0),0!==a&&(n[a+1]=jv(n[a+1],i)),a=i;else n[i+1]=cf(l,0),0===a?a=i:n[l+1]=jv(n[l+1],i),l=i;c&&(n[i+1]=zv(n[i+1])),aO(n,u,i,!0),aO(n,u,i,!1),function sW(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&el(s,e)>=0&&(t[i+1]=Gv(t[i+1]))}(e,u,n,i,s),o=cf(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}function mb(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=_u(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function _u(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Ii(n,o,!!t||e[++s]))}return void 0===n?null:n}function mO(n,e,t){Ii(n,e,Ai(t))}function yO(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];wf(function cP(n){return 1==(1&n)}(c)?_O(l,e,t,r,gs(c),o):void 0)||(wf(s)||function lP(n){return 2==(2&n)}(c)&&(s=_O(l,null,t,r,a,o)),function CG(n,e,t,i,r){if(e)r?n.addClass(t,i):n.removeClass(t,i);else{let s=-1===i.indexOf("-")?void 0:ui.DashCase;null==r?n.removeStyle(t,i,s):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),s|=ui.Important),n.setStyle(t,i,r,s))}}(i,o,Nh(Kn(),t),r,s))}function _O(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===ke&&(h=d?Ke:void 0);let f=d?tv(h,i):u===i?h:void 0;if(c&&!wf(f)&&(f=tv(l,i)),wf(f)&&(a=f,o))return a;const p=n[r+1];r=o?mr(p):gs(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=tv(l,i))}return a}function wf(n){return void 0!==n}function vO(n,e){return 0!=(n.flags&(e?16:32))}function J(n,e=""){const t=W(),i=$e(),r=n+22,s=i.firstCreatePass?fl(i,r,1,e,null):i.data[r],o=t[r]=function Mv(n,e){return n.createText(e)}(t[11],e);of(i,t,o,s),Or(s,!1)}function Ee(n){return He("",n,""),Ee}function He(n,e,t){const i=W(),r=function ml(n,e,t,i){return Ln(n,Wa(),t)?e+De(t)+i:ke}(i,n,e,t);return r!==ke&&ms(i,Kn(),r),He}function Bo(n,e,t,i,r){const s=W(),o=yl(s,n,e,t,i,r);return o!==ke&&ms(s,Kn(),o),Bo}const $o=void 0;var $W=["en",[["a","p"],["AM","PM"],$o],[["AM","PM"],$o,$o],[["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"]],$o,[["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"]],$o,[["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}",$o,"{1} 'at' {0}",$o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function BW(n){const t=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===i?1:5}];let xl={};function Xn(n){const e=function HW(n){return n.toLowerCase().replace(/_/g,"-")}(n);let t=BO(e);if(t)return t;const i=e.split("-")[0];if(t=BO(i),t)return t;if("en"===i)return $W;throw new Z(701,!1)}function BO(n){return n in xl||(xl[n]=dt.ng&&dt.ng.common&&dt.ng.common.locales&&dt.ng.common.locales[n]),xl[n]}var ae=(()=>((ae=ae||{})[ae.LocaleId=0]="LocaleId",ae[ae.DayPeriodsFormat=1]="DayPeriodsFormat",ae[ae.DayPeriodsStandalone=2]="DayPeriodsStandalone",ae[ae.DaysFormat=3]="DaysFormat",ae[ae.DaysStandalone=4]="DaysStandalone",ae[ae.MonthsFormat=5]="MonthsFormat",ae[ae.MonthsStandalone=6]="MonthsStandalone",ae[ae.Eras=7]="Eras",ae[ae.FirstDayOfWeek=8]="FirstDayOfWeek",ae[ae.WeekendRange=9]="WeekendRange",ae[ae.DateFormat=10]="DateFormat",ae[ae.TimeFormat=11]="TimeFormat",ae[ae.DateTimeFormat=12]="DateTimeFormat",ae[ae.NumberSymbols=13]="NumberSymbols",ae[ae.NumberFormats=14]="NumberFormats",ae[ae.CurrencyCode=15]="CurrencyCode",ae[ae.CurrencySymbol=16]="CurrencySymbol",ae[ae.CurrencyName=17]="CurrencyName",ae[ae.Currencies=18]="Currencies",ae[ae.Directionality=19]="Directionality",ae[ae.PluralCase=20]="PluralCase",ae[ae.ExtraData=21]="ExtraData",ae))();const Il="en-US";let $O=Il;function vb(n,e,t,i,r){if(n=Se(n),Array.isArray(n))for(let s=0;s<n.length;s++)vb(n[s],e,t,i,r);else{const s=$e(),o=W();let a=No(n)?n:Se(n.provide),l=dM(n);const c=nn(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(No(n)||!n.multi){const f=new Wc(l,r,R),p=wb(a,e,r?u:u+h,d);-1===p?(zh(Yc(c,o),s,a),bb(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(f),o.push(f)):(t[p]=f,o[p]=f)}else{const f=wb(a,e,u+h,d),p=wb(a,e,u,u+h),g=f>=0&&t[f],m=p>=0&&t[p];if(r&&!m||!r&&!g){zh(Yc(c,o),s,a);const _=function Vq(n,e,t,i,r){const s=new Wc(n,t,R);return s.multi=[],s.index=e,s.componentProviders=0,h2(s,r,i&&!t),s}(r?Fq:Lq,t.length,r,i,l);!r&&m&&(t[p].providerFactory=_),bb(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(_),o.push(_)}else bb(s,n,f>-1?f:p,h2(t[r?p:f],l,!r&&i));!r&&i&&m&&t[p].componentProviders++}}}function bb(n,e,t,i){const r=No(e),s=function v7(n){return!!n.useClass}(e);if(r||s){const l=(s?Se(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function h2(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function wb(n,e,t,i){for(let r=t;r<i;r++)if(e[r]===n)return r;return-1}function Lq(n,e,t,i){return Sb(this.multi,[])}function Fq(n,e,t,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Kc(t,t[1],this.providerFactory.index,i);s=a.slice(0,o),Sb(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],Sb(r,s);return s}function Sb(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function yt(n,e=[]){return t=>{t.providersResolver=(i,r)=>function Rq(n,e,t){const i=$e();if(i.firstCreatePass){const r=pr(n);vb(t,i.data,i.blueprint,r,!0),vb(e,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,e)}}class Al{}class f2 extends Al{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ub(this);const i=function Ci(n,e){const t=n[qD]||null;if(!t&&!0===e)throw new Error(`Type ${at(n)} does not have '\u0275mod' property.`);return t}(e);this._bootstrapComponents=function ps(n){return n instanceof Function?n():n}(i.bootstrap),this._r3Injector=eP(e,t,[{provide:Al,useValue:this},{provide:ol,useValue:this.componentFactoryResolver}],at(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 Cb extends class Bq{}{constructor(e){super(),this.moduleType=e}create(e){return new f2(this.moduleType,e)}}function pe(n,e,t,i){return S2(W(),Yn(),n,e,t,i)}function Ws(n,e,t,i,r){return C2(W(),Yn(),n,e,t,i,r)}function Tb(n,e,t,i,r,s){return E2(W(),Yn(),n,e,t,i,r,s)}function Eu(n,e,t,i,r,s,o){return T2(W(),Yn(),n,e,t,i,r,s,o)}function Tu(n,e){const t=n[e];return t===ke?void 0:t}function S2(n,e,t,i,r,s){const o=e+t;return Ln(n,o,r)?Fr(n,o+1,s?i.call(s,r):i(r)):Tu(n,o+1)}function C2(n,e,t,i,r,s,o){const a=e+t;return Fo(n,a,r,s)?Fr(n,a+2,o?i.call(o,r,s):i(r,s)):Tu(n,a+2)}function E2(n,e,t,i,r,s,o,a){const l=e+t;return function vf(n,e,t,i,r){const s=Fo(n,e,t,i);return Ln(n,e+2,r)||s}(n,l,r,s,o)?Fr(n,l+3,a?i.call(a,r,s,o):i(r,s,o)):Tu(n,l+3)}function T2(n,e,t,i,r,s,o,a,l){const c=e+t;return Gi(n,c,r,s,o,a)?Fr(n,c+4,l?i.call(l,r,s,o,a):i(r,s,o,a)):Tu(n,c+4)}function br(n,e){const t=$e();let i;const r=n+22;t.firstCreatePass?(i=function iY(n,e){if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];if(n===i.name)return i}}(e,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const s=i.factory||(i.factory=Po(i.type)),o=Hi(R);try{const a=Hh(!1),l=s();return Hh(a),function J9(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,W(),r,l),l}finally{Hi(o)}}function Dl(n,e,t){const i=n+22,r=W(),s=Ga(r,i);return xu(r,i)?S2(r,Yn(),e,s.transform,t,s):s.transform(t)}function xf(n,e,t,i){const r=n+22,s=W(),o=Ga(s,r);return xu(s,r)?C2(s,Yn(),e,o.transform,t,i,o):o.transform(t,i)}function xu(n,e){return n[1].data[e].pure}function xb(n){return e=>{setTimeout(n,void 0,e)}}const G=class sY extends as{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){let r=e,s=t||(()=>null),o=i;if(e&&"object"==typeof e){var a,l,c;const d=e;r=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=xb(s),r&&(r=xb(r)),o&&(o=xb(o)));const u=super.subscribe({next:r,error:s,complete:o});return e instanceof xt&&e.add(u),u}};function oY(){return this._results[Lo()]()}class Ib{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=Lo(),i=Ib.prototype;i[t]||(i[t]=oY)}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 i=this;i.dirty=!1;const r=xi(e);(this._changesDetected=!function mj(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let wr=(()=>{class n{}return n.__NG_ELEMENT_ID__=cY,n})();const aY=wr,lY=class extends aY{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e,t){const i=this._declarationTContainer.tViews,r=hf(this._declarationLView,i,e,16,null,i.declTNode,null,null,null,null,t||null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(i)),eb(i,r,e),new du(r)}};function cY(){return If(nn(),W())}function If(n,e){return 4&n.type?new lY(e,n,al(n,e)):null}let Br=(()=>{class n{}return n.__NG_ELEMENT_ID__=uY,n})();function uY(){return M2(nn(),W())}const dY=Br,D2=class extends dY{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return al(this._hostTNode,this._hostLView)}get injector(){return new Ka(this._hostTNode,this._hostLView)}get parentInjector(){const e=Uh(this._hostTNode,this._hostLView);if(bk(e)){const t=Ya(e,this._hostLView),i=qa(e);return new Ka(t[1].data[i+8],t)}return new Ka(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=k2(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){let r,s;"number"==typeof i?r=i:null!=i&&(r=i.index,s=i.injector);const o=e.createEmbeddedView(t||{},s);return this.insert(o,r),o}createComponent(e,t,i,r,s){const o=e&&!function Xc(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.environmentInjector||d.ngModuleRef}const l=o?e:new hu(Je(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(rl,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function Bz(n){return fr(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new D2(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function gG(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],Mk(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function mG(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}(r,i,o,s);const a=Lv(s,o),l=i[11],c=sf(l,o[7]);return null!==c&&function hG(n,e,t,i,r,s){i[0]=r,i[6]=e,uu(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),Mk(Ab(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=k2(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=Ov(this._lContainer,t);i&&(Gh(Ab(this._lContainer),t),MM(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=Ov(this._lContainer,t);return i&&null!=Gh(Ab(this._lContainer),t)?new du(i):null}_adjustIndex(e,t=0){return e??this.length+t}};function k2(n){return n[8]}function Ab(n){return n[8]||(n[8]=[])}function M2(n,e){let t;const i=e[n.index];if(fr(i))t=i;else{let r;if(8&n.type)r=Yt(i);else{const s=e[11];r=s.createComment("");const o=ji(n,e);Ro(s,sf(s,o),r,function bG(n,e){return n.nextSibling(e)}(s,o),!1)}e[n.index]=t=kP(i,e,r,n),pf(e,t)}return new D2(t,n,e)}class Db{constructor(e){this.queryList=e,this.matches=null}clone(){return new Db(this.queryList)}setDirty(){this.queryList.setDirty()}}class kb{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new kb(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==L2(e,t).matches&&this.queries[t].setDirty()}}class P2{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Mb{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].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 i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new Mb(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Pb{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 Pb(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,pY(t,s)),this.matchTNodeWithReadOption(e,t,jh(t,e,s,!1,!1))}else i===wr?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,jh(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Nn||r===Br||r===wr&&4&t.type)this.addMatch(t.index,-2);else{const s=jh(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function pY(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function mY(n,e,t,i){return-1===t?function gY(n,e){return 11&n.type?al(n,e):4&n.type?If(n,e):null}(e,n):-2===t?function yY(n,e,t){return t===Nn?al(e,n):t===wr?If(e,n):t===Br?M2(e,n):void 0}(n,e,i):Kc(n,n[1],t,e)}function O2(n,e,t,i){const r=e[19].queries[i];if(null===r.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:mY(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function Ob(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=O2(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.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]&&Ob(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];Ob(f[1],f,c,i)}}}}}return i}function Yi(n){const e=W(),t=$e(),i=uk();z_(i+1);const r=L2(t,i);if(n.dirty&&function Vz(n){return 4==(4&n[2])}(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Ob(t,e,i,[]):O2(t,e,r,i);n.reset(s,M7),n.notifyOnChanges()}return!0}return!1}function $r(n,e,t){const i=$e();i.firstCreatePass&&(R2(i,new P2(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),N2(i,W(),e)}function Nb(n,e,t,i){const r=$e();if(r.firstCreatePass){const s=nn();R2(r,new P2(e,t,i),s.index),function vY(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(r,n),2==(2&t)&&(r.staticContentQueries=!0)}N2(r,W(),t)}function Ki(){return function _Y(n,e){return n[19].queries[e].queryList}(W(),uk())}function N2(n,e,t){const i=new Ib(4==(4&t));wP(n,e,i,i.destroy),null===e[19]&&(e[19]=new kb),e[19].queries.push(new Db(i))}function R2(n,e,t){null===n.queries&&(n.queries=new Mb),n.queries.track(new Pb(e,t))}function L2(n,e){return n.queries.getByIndex(e)}function F2(n,e){return If(n,e)}function Df(...n){}const nN=new be("Application Initializer");let kf=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Df,this.reject=Df,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(bf(s))t.push(s);else if(qP(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(ue(nN,8))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Au=new be("AppId",{providedIn:"root",factory:function iN(){return`${Bb()}${Bb()}${Bb()}`}});function Bb(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const rN=new be("Platform Initializer"),Pl=new be("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),BY=new be("appBootstrapListener"),sN=new be("AnimationModuleType"),ys=new be("LocaleId",{providedIn:"root",factory:()=>function Dj(n,e=Te.Default){return"number"!=typeof e&&(e=0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)),ue(n,e)}(ys,Te.Optional|Te.SkipSelf)||function $Y(){return typeof $localize<"u"&&$localize.locale||Il}()}),HY=new be("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),GY=(()=>Promise.resolve(0))();function $b(n){typeof Zone>"u"?GY.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class pt{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!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 Z(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const s=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new s("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function WY(){let n=dt.requestAnimationFrame,e=dt.cancelAnimationFrame;if(typeof Zone<"u"&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function KY(n){const e=()=>{!function YY(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(dt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Ub(n),n.isCheckStableRunning=!0,Hb(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Ub(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return lN(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),cN(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return lN(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),cN(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Ub(n),Hb(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!pt.isInAngularZone())throw new Z(909,!1)}static assertNotInAngularZone(){if(pt.isInAngularZone())throw new Z(909,!1)}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,qY,Df,Df);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const qY={};function Hb(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 Ub(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function lN(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function cN(n){n._nesting--,Hb(n)}class QY{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,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}const uN=new be(""),Mf=new be("");let Gb,zb=(()=>{class n{constructor(t,i,r){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Gb||(function XY(n){Gb=n}(r),r.addToWindow(i)),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:()=>{pt.assertNotInAngularZone(),$b(()=>{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())$b(()=>{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(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.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,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,i,r){if(r&&!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,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(ue(pt),ue(jb),ue(Mf))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),jb=(()=>{class n{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}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,i=!0){var r,s;return null!==(r=null===(s=Gb)||void 0===s?void 0:s.findTestabilityInTree(this,t,i))&&void 0!==r?r:null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),qs=null;const dN=new be("AllowMultipleToken"),Wb=new be("PlatformDestroyListeners");function fN(n,e,t=[]){const i=`Platform: ${e}`,r=new be(i);return(s=[])=>{let o=qb();if(!o||o.injector.get(dN,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function eK(n){if(qs&&!qs.get(dN,!1))throw new Z(400,!1);qs=n;const e=n.get(gN);(function hN(n){const e=n.get(rN,null);e&&e.forEach(t=>t())})(n)}(function pN(n=[],e){return di.create({name:e,providers:[{provide:pv,useValue:"platform"},{provide:Wb,useValue:new Set([()=>qs=null])},...n]})}(a,i))}return function nK(n){const e=qb();if(!e)throw new Z(401,!1);return e}()}}function qb(){var n,e;return null!==(n=null===(e=qs)||void 0===e?void 0:e.get(gN))&&void 0!==n?n:null}let gN=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const r=function yN(n,e){let t;return t="noop"===n?new QY:("zone.js"===n?void 0:n)||new pt(e),t}(i?.ngZone,function mN(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),s=[{provide:pt,useValue:r}];return r.run(()=>{const o=di.create({providers:s,parent:this.injector,name:t.moduleType.name}),a=t.create(o),l=a.injector.get(cl,null);if(!l)throw new Z(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Pf(this._modules,a),c.unsubscribe()})}),function _N(n,e,t){try{const i=t();return bf(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(kf);return c.runInitializers(),c.donePromise.then(()=>(function HO(n){Si(n,"Expected localeId to be defined"),"string"==typeof n&&($O=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(ys,Il)||Il),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,i=[]){const r=vN({},i);return function ZY(n,e,t){const i=new Cb(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(Du);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new Z(403,!1);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Z(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Wb,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(ue(di))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function vN(n,e){return Array.isArray(e)?e.reduce(vN,n):bt(bt({},n),e)}let Du=(()=>{class n{constructor(t,i,r){this._zone=t,this._injector=i,this._exceptionHandler=r,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 rt(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),o=new rt(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{pt.assertNotInAngularZone(),$b(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{pt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=HD(s,o.pipe(function uz(){return n=>UD()(function az(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new lz(r,e));const s=Object.create(i,rz);return s.source=i,s.subjectFactory=r,s}}(cz)(n))}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof hM;if(!this._injector.get(kf).done)throw!r&&function $c(n){const e=Je(n)||Wn(n)||qn(n);return null!==e&&e.standalone}(t),new Z(405,false);let o;o=r?t:this._injector.get(ol).resolveComponentFactory(t),this.componentTypes.push(o.componentType);const a=function JY(n){return n.isBoundToModule}(o)?void 0:this._injector.get(Al),c=o.create(di.NULL,[],i||o.selector,a),u=c.location.nativeElement,d=c.injector.get(uN,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Pf(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Z(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 i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Pf(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(BY,[]).concat(this._bootstrapListeners).forEach(r=>r(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),()=>Pf(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new Z(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)(ue(pt),ue(rl),ue(cl))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Pf(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let wN=!0,ku=(()=>{class n{}return n.__NG_ELEMENT_ID__=sK,n})();function sK(n){return function oK(n,e,t){if(Ph(n)&&!t){const i=Ti(n.index,e);return new du(i,i)}return 47&n.type?new du(e[16],e):null}(nn(),W(),16==(16&n))}class xN{constructor(){}supports(e){return fu(e)}create(e){return new hK(e)}}const dK=(n,e)=>e;class hK{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||dK}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<AN(i,r,s)?t:i,a=AN(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;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=[]),!fu(e))throw new Z(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!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)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function K9(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[Lo()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;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,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new fK(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new IN),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._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 IN),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 fK{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 pK{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class IN{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new pK,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.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 AN(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class DN{constructor(){}supports(e){return e instanceof Map||hb(e)}create(){return new gK}}class gK{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||hb(e)))throw new Z(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,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._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 r=this._records.get(e);this._maybeAddToChanges(r,t);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new mK(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_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(i=>t(e[i],i))}}class mK{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 kN(){return new Rf([new xN])}let Rf=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||kN()),deps:[[n,new Yh,new ci]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new Z(901,!1)}}return n.\u0275prov=Ce({token:n,providedIn:"root",factory:kN}),n})();function MN(){return new Mu([new DN])}let Mu=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||MN()),deps:[[n,new Yh,new ci]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(i)return i;throw new Z(901,!1)}}return n.\u0275prov=Ce({token:n,providedIn:"root",factory:MN}),n})();const vK=fN(null,"core",[]);let bK=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(ue(Du))},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({}),n})();function Zb(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let Lf=null;function Uo(){return Lf}const hi=new be("DocumentToken"),ON={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 fi=(()=>((fi=fi||{})[fi.Decimal=0]="Decimal",fi[fi.Percent=1]="Percent",fi[fi.Currency=2]="Currency",fi[fi.Scientific=3]="Scientific",fi))(),me=(()=>((me=me||{})[me.Decimal=0]="Decimal",me[me.Group=1]="Group",me[me.List=2]="List",me[me.PercentSign=3]="PercentSign",me[me.PlusSign=4]="PlusSign",me[me.MinusSign=5]="MinusSign",me[me.Exponential=6]="Exponential",me[me.SuperscriptingExponent=7]="SuperscriptingExponent",me[me.PerMille=8]="PerMille",me[me.Infinity=9]="Infinity",me[me.NaN=10]="NaN",me[me.TimeSeparator=11]="TimeSeparator",me[me.CurrencyDecimal=12]="CurrencyDecimal",me[me.CurrencyGroup=13]="CurrencyGroup",me))();function Qi(n,e){const t=Xn(n),i=t[ae.NumberSymbols][e];if(typeof i>"u"){if(e===me.CurrencyDecimal)return t[ae.NumberSymbols][me.Decimal];if(e===me.CurrencyGroup)return t[ae.NumberSymbols][me.Group]}return i}const XK=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function tQ(n,e,t,i,r){const o=function o0(n,e="-"){const t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=n.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],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=r.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 Jb(n,e){return Xn(n)[ae.NumberFormats][e]}(e,fi.Currency),Qi(e,me.MinusSign));return o.minFrac=function FK(n){let e;const t=ON[n];return t&&(e=t[2]),"number"==typeof e?e:2}(i),o.maxFrac=o.minFrac,function s0(n,e,t,i,r,s,o=!1){let a="",l=!1;if(isFinite(n)){let c=function sQ(n){let i,r,s,o,a,e=Math.abs(n)+"",t=0;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(s=e.search(/e/i))>0?(r<0&&(r=s),r+=+e.slice(s+1),e=e.substring(0,s)):r<0&&(r=e.length),s=0;"0"===e.charAt(s);s++);if(s===(a=e.length))i=[0],r=1;else{for(a--;"0"===e.charAt(a);)a--;for(r-=s,i=[],o=0;s<=a;s++,o++)i[o]=Number(e.charAt(s))}return r>22&&(i=i.splice(0,21),t=r-1,r=1),{digits:i,exponent:t,integerLen:r}}(n);o&&(c=function rQ(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(XK);if(null===b)throw new Error(`${s} is not a valid digit info`);const y=b[1],T=b[3],I=b[5];null!=y&&(u=a0(y)),null!=T&&(d=a0(T)),null!=I?h=a0(I):null!=T&&d>h&&(h=d)}!function oQ(n,e,t){if(e>t)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${t}).`);let i=n.digits,r=i.length-n.integerLen;const s=Math.min(Math.max(e,r),t);let o=s+n.integerLen,a=i[o];if(o>0){i.splice(Math.max(n.integerLen,o));for(let d=o;d<i.length;d++)i[d]=0}else{r=Math.max(0,r),n.integerLen=1,i.length=Math.max(1,o=s+1),i[0]=0;for(let d=1;d<o;d++)i[d]=0}if(a>=5)if(o-1<0){for(let d=0;d>o;d--)i.unshift(0),n.integerLen++;i.unshift(1),n.integerLen++}else i[o-1]++;for(;r<Math.max(0,s);r++)i.push(0);let l=0!==s;const c=e+n.integerLen,u=i.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&&(i.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(Qi(t,i)),m.length&&(a+=Qi(t,r)+m.join("")),g&&(a+=Qi(t,me.Exponential)+"+"+g)}else a=Qi(t,me.Infinity);return a=n<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(n,o,e,me.CurrencyGroup,me.CurrencyDecimal,r).replace("\xa4",t).replace("\xa4","").trim()}function a0(n){const e=parseInt(n);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+n);return e}function HN(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}let Zi=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,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&&(fu(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(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${at(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(R(Rf),R(Mu),R(Nn),R(zs))},n.\u0275dir=ye({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class cQ{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ji=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,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 i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new cQ(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),jN(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{jN(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(R(Br),R(wr),R(Rf))},n.\u0275dir=ye({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function jN(n,e){n.context.$implicit=e.item}let Jn=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new dQ,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){GN("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){GN("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,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(R(Br),R(wr))},n.\u0275dir=ye({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class dQ{constructor(){this.$implicit=null,this.ngIf=null}}function GN(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${at(e)}'.`)}class c0{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 zo=(()=>{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 i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=ye({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),Nu=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new c0(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(R(Br),R(wr),R(zo,9))},n.\u0275dir=ye({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),u0=(()=>{class n{constructor(t,i,r){r._addDefault(new c0(t,i))}}return n.\u0275fac=function(t){return new(t||n)(R(Br),R(wr),R(zo,9))},n.\u0275dir=ye({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),ei=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,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,i){const[r,s]=t.split("."),o=-1===r.indexOf("-")?void 0:ui.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${i}${s}`:i,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(Mu),R(zs))},n.\u0275dir=ye({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),d0=(()=>{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 i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:s,ngTemplateOutletInjector:o}=this;this._viewRef=i.createEmbeddedView(r,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(Br))},n.\u0275dir=ye({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Pr]}),n})();function Er(n,e){return new Z(2100,!1)}class fQ{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}}class pQ{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}}const gQ=new pQ,mQ=new fQ;let Wf=(()=>{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,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(bf(t))return gQ;if(WP(t))return mQ;throw Er()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(R(ku,16))},n.\u0275pipe=Dn({name:"async",type:n,pure:!1,standalone:!0}),n})(),YN=(()=>{class n{constructor(t,i="USD"){this._locale=t,this._defaultCurrencyCode=i}transform(t,i=this._defaultCurrencyCode,r="symbol",s,o){if(!function h0(n){return!(null==n||""===n||n!=n)}(t))return null;o=o||this._locale,"boolean"==typeof r&&(r=r?"symbol":"code");let a=i||this._defaultCurrencyCode;"code"!==r&&(a="symbol"===r||"symbol-narrow"===r?function RK(n,e,t="en"){const i=function MK(n){return Xn(n)[ae.Currencies]}(t)[n]||ON[n]||[],r=i[1];return"narrow"===e&&"string"==typeof r?r:i[0]||n}(a,"symbol"===r?"wide":"narrow",o):r);try{return tQ(function f0(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,i,s)}catch(l){throw Er()}}}return n.\u0275fac=function(t){return new(t||n)(R(ys,16),R(HY,16))},n.\u0275pipe=Dn({name:"currency",type:n,pure:!0,standalone:!0}),n})();let KN=(()=>{class n{transform(t,i,r){if(null==t)return null;if(!this.supports(t))throw Er();return t.slice(i,r)}supports(t){return"string"==typeof t||Array.isArray(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=Dn({name:"slice",type:n,pure:!1,standalone:!0}),n})(),Ol=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({}),n})();const QN="browser";class ZN{}class m0 extends class JQ extends class CK{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function SK(n){Lf||(Lf=n)}(new m0)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!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 eX(){return Lu=Lu||document.querySelector("base"),Lu?Lu.getAttribute("href"):null}();return null==t?null:function tX(n){Yf=Yf||document.createElement("a"),Yf.setAttribute("href",n);const e=Yf.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Lu=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return HN(document.cookie,e)}}let Yf,Lu=null;const nR=new be("TRANSITION_ID"),iX=[{provide:nN,useFactory:function nX(n,e,t){return()=>{t.get(kf).donePromise.then(()=>{const i=Uo(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[nR,hi,di],multi:!0}];let sX=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const Kf=new be("EventManagerPlugins");let Qf=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[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)(ue(Kf),ue(pt))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();class iR{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Uo().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let rR=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),Fu=(()=>{class n extends rR{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(sR),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(sR))}}return n.\u0275fac=function(t){return new(t||n)(ue(hi))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();function sR(n){Uo().remove(n)}const y0={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/"},_0=/%COMP%/g;function Xf(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Xf(n,r,t):(r=r.replace(_0,n),t.push(r))}return t}function lR(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Zf=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new v0(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case dr.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new dX(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case dr.ShadowDom:return new hX(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Xf(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(ue(Qf),ue(Fu),ue(Au))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();class v0{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(y0[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){(uR(e)?e.content:e).appendChild(t)}insertBefore(e,t,i){e&&(uR(e)?e.content:e).insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=y0[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=y0[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(ui.DashCase|ui.Important)?e.style.setProperty(t,i,r&ui.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&ui.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,lR(i)):this.eventManager.addEventListener(e,t,lR(i))}}function uR(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class dX extends v0{constructor(e,t,i,r){super(e),this.component=i;const s=Xf(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function lX(n){return"_ngcontent-%COMP%".replace(_0,n)}(r+"-"+i.id),this.hostAttr=function cX(n){return"_nghost-%COMP%".replace(_0,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class hX extends v0{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Xf(r.id,r.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,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let fX=(()=>{class n extends iR{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(ue(hi))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const dR=["alt","control","meta","shift"],pX={"\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"},gX={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let mX=(()=>{class n extends iR{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Uo().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),o="code."),dR.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),o+=c+".")}),o+=s,0!=i.length||0===s.length)return null;const l={};return l.domEventName=r,l.fullKey=o,l}static matchEventFullKeyCode(t,i){let r=pX[t.key]||t.key,s="";return i.indexOf("code.")>-1&&(r=t.code,s="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),dR.forEach(o=>{o!==r&&(0,gX[o])(t)&&(s+=o+".")}),s+=r,s===i)}static eventCallback(t,i,r){return s=>{n.matchEventFullKeyCode(s,t)&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(ue(hi))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const fR=[{provide:Pl,useValue:QN},{provide:rN,useValue:function yX(){m0.makeCurrent()},multi:!0},{provide:hi,useFactory:function vX(){return function Uj(n){ov=n}(document),document},deps:[]}],bX=fN(vK,"browser",fR),pR=new be(""),gR=[{provide:Mf,useClass:class rX{addToWindow(e){dt.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},dt.getAllAngularTestabilities=()=>e.getAllTestabilities(),dt.getAllAngularRootElements=()=>e.getAllRootElements(),dt.frameworkStabilizers||(dt.frameworkStabilizers=[]),dt.frameworkStabilizers.push(i=>{const r=dt.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){return null==t?null:e.getTestability(t)??(i?Uo().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:uN,useClass:zb,deps:[pt,jb,Mf]},{provide:zb,useClass:zb,deps:[pt,jb,Mf]}],mR=[{provide:pv,useValue:"root"},{provide:cl,useFactory:function _X(){return new cl},deps:[]},{provide:Kf,useClass:fX,multi:!0,deps:[hi,pt,Pl]},{provide:Kf,useClass:mX,multi:!0,deps:[hi]},{provide:Zf,useClass:Zf,deps:[Qf,Fu,Au]},{provide:ou,useExisting:Zf},{provide:rR,useExisting:Fu},{provide:Fu,useClass:Fu,deps:[hi]},{provide:Qf,useClass:Qf,deps:[Kf,pt]},{provide:ZN,useClass:sX,deps:[]},[]];let yR=(()=>{class n{constructor(t){}static withServerTransition(t){return{ngModule:n,providers:[{provide:Au,useValue:t.appId},{provide:nR,useExisting:Au},iX]}}}return n.\u0275fac=function(t){return new(t||n)(ue(pR,12))},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({providers:[...mR,...gR],imports:[Ol,bK]}),n})();typeof window<"u"&&window;let bR=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Ce({token:n,factory:function(t){let i=null;return i=t?new(t||n):ue(wR),i},providedIn:"root"}),n})(),wR=(()=>{class n extends bR{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case ft.NONE:return i;case ft.HTML:return Rr(i,"HTML")?Ai(i):eM(this._doc,String(i)).toString();case ft.STYLE:return Rr(i,"Style")?Ai(i):i;case ft.SCRIPT:if(Rr(i,"Script"))return Ai(i);throw new Error("unsafe value used in a script context");case ft.URL:return Rr(i,"URL")?Ai(i):Jh(String(i));case ft.RESOURCE_URL:if(Rr(i,"ResourceURL"))return Ai(i);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 Xj(n){return new Gj(n)}(t)}bypassSecurityTrustStyle(t){return function Zj(n){return new Wj(n)}(t)}bypassSecurityTrustScript(t){return function Jj(n){return new qj(n)}(t)}bypassSecurityTrustUrl(t){return function e7(n){return new Yj(n)}(t)}bypassSecurityTrustResourceUrl(t){return function t7(n){return new Kj(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(ue(hi))},n.\u0275prov=Ce({token:n,factory:function(t){let i=null;return i=t?new t:function DX(n){return new wR(n.get(hi))}(ue(di)),i},providedIn:"root"}),n})();const SR_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 Vu(...n){let e=n[n.length-1];return Vc(e)?(n.pop(),b_(n,e)):S_(n)}class PX{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new OX(e,this.predicate,this.thisArg))}}class OX extends dn{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}class CR{}class ER{}class Tr{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 i=t.indexOf(":");if(i>0){const r=t.slice(0,i),s=r.toLowerCase(),o=t.slice(i+1).trim();this.maybeSetNormalizedName(r,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 i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}: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 Tr?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 Tr;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Tr?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 i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);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 NX{encodeKey(e){return TR(e)}encodeValue(e){return TR(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const LX=/%(\d[a-f0-9])/gi,FX={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function TR(n){return encodeURIComponent(n).replace(LX,(e,t)=>{var i;return null!==(i=FX[t])&&void 0!==i?i:e})}function Jf(n){return`${n}`}class Ks{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new NX,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function RX(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.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 i=e.fromObject[t],r=Array.isArray(i)?i.map(Jf):[Jf(i)];this.map.set(t,r)})):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(i=>{const r=e[i];Array.isArray(r)?r.forEach(s=>{t.push({param:i,value:s,op:"a"})}):t.push({param:i,value:r,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(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Ks({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(Jf(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(Jf(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class VX{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 xR(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function IR(n){return typeof Blob<"u"&&n instanceof Blob}function AR(n){return typeof FormData<"u"&&n instanceof FormData}class Bu{constructor(e,t,i,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function BX(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,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 Tr),this.context||(this.context=new VX),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 Ks,this.urlWithParams=t}serializeBody(){return null===this.body?null:xR(this.body)||IR(this.body)||AR(this.body)||function $X(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ks?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||AR(this.body)?null:IR(this.body)?this.body.type||null:xR(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ks?"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 i=e.method||this.method,r=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 Bu(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var Xt=(()=>((Xt=Xt||{})[Xt.Sent=0]="Sent",Xt[Xt.UploadProgress=1]="UploadProgress",Xt[Xt.ResponseHeader=2]="ResponseHeader",Xt[Xt.DownloadProgress=3]="DownloadProgress",Xt[Xt.Response=4]="Response",Xt[Xt.User=5]="User",Xt))();class S0{constructor(e,t=200,i="OK"){this.headers=e.headers||new Tr,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class C0 extends S0{constructor(e={}){super(e),this.type=Xt.ResponseHeader}clone(e={}){return new C0({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 ep extends S0{constructor(e={}){super(e),this.type=Xt.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new ep({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 DR extends S0{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 E0(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 T0=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let s;if(t instanceof Bu)s=t;else{let l,c;l=r.headers instanceof Tr?r.headers:new Tr(r.headers),r.params&&(c=r.params instanceof Ks?r.params:new Ks({fromObject:r.params})),s=new Bu(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Vu(s).pipe(function kX(n,e){return w_(n,e,1)}(l=>this.handler.handle(l)));if(t instanceof Bu||"events"===r.observe)return o;const a=o.pipe(function MX(n,e){return function(i){return i.lift(new PX(n,e))}}(l=>l instanceof ep));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(bi(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(bi(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(bi(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(bi(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new Ks).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,E0(r,i))}post(t,i,r={}){return this.request("POST",t,E0(r,i))}put(t,i,r={}){return this.request("PUT",t,E0(r,i))}}return n.\u0275fac=function(t){return new(t||n)(ue(CR))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();class kR{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const MR=new be("HTTP_INTERCEPTORS");let HX=(()=>{class n{intercept(t,i){return i.handle(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const UX=/^\)\]\}',?\n/;let PR=(()=>{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 rt(i=>{const r=this.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const f=t.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(t.responseType){const f=t.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const s=t.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const f=r.statusText||"OK",p=new Tr(r.getAllResponseHeaders()),g=function zX(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||t.url;return o=new C0({headers:p,status:r.status,statusText:f,url:g}),o},l=()=>{let{headers:f,status:p,statusText:g,url:m}=a(),_=null;204!==p&&(_=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=_?200:0);let b=p>=200&&p<300;if("json"===t.responseType&&"string"==typeof _){const y=_;_=_.replace(UX,"");try{_=""!==_?JSON.parse(_):null}catch(T){_=y,b&&(b=!1,_={error:T,text:_})}}b?(i.next(new ep({body:_,headers:f,status:p,statusText:g,url:m||void 0})),i.complete()):i.error(new DR({error:_,headers:f,status:p,statusText:g,url:m||void 0}))},c=f=>{const{url:p}=a(),g=new DR({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(g)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:Xt.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===t.responseType&&!!r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:Xt.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),t.reportProgress&&(r.addEventListener("progress",d),null!==s&&r.upload&&r.upload.addEventListener("progress",h)),r.send(s),i.next({type:Xt.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),t.reportProgress&&(r.removeEventListener("progress",d),null!==s&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(t){return new(t||n)(ue(ZN))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const x0=new be("XSRF_COOKIE_NAME"),I0=new be("XSRF_HEADER_NAME");class OR{}let jX=(()=>{class n{constructor(t,i,r){this.doc=t,this.platform=i,this.cookieName=r,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=HN(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return n.\u0275fac=function(t){return new(t||n)(ue(hi),ue(Pl),ue(x0))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),A0=(()=>{class n{constructor(t,i){this.tokenService=t,this.headerName=i}intercept(t,i){const r=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||r.startsWith("http://")||r.startsWith("https://"))return i.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)})),i.handle(t)}}return n.\u0275fac=function(t){return new(t||n)(ue(OR),ue(I0))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),GX=(()=>{class n{constructor(t,i){this.backend=t,this.injector=i,this.chain=null}handle(t){if(null===this.chain){const i=this.injector.get(MR,[]);this.chain=i.reduceRight((r,s)=>new kR(r,s),this.backend)}return this.chain.handle(t)}}return n.\u0275fac=function(t){return new(t||n)(ue(ER),ue(di))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),WX=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:A0,useClass:HX}]}}static withOptions(t={}){return{ngModule:n,providers:[t.cookieName?{provide:x0,useValue:t.cookieName}:[],t.headerName?{provide:I0,useValue:t.headerName}:[]]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({providers:[A0,{provide:MR,useExisting:A0,multi:!0},{provide:OR,useClass:jX},{provide:x0,useValue:"XSRF-TOKEN"},{provide:I0,useValue:"X-XSRF-TOKEN"}]}),n})(),qX=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({providers:[T0,{provide:CR,useClass:GX},PR,{provide:ER,useExisting:PR}],imports:[WX.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();class NR{}const bs="*";function RR(n,e){return{type:7,name:n,definitions:e,options:{}}}function $u(n,e=null){return{type:4,styles:e,timings:n}}function LR(n,e=null){return{type:2,steps:n,options:e}}function Hr(n){return{type:6,styles:n,offset:null}}function D0(n,e,t){return{type:0,name:n,styles:e,options:t}}function Hu(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function FR(n){Promise.resolve().then(n)}class Uu{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(){FR(()=>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(i=>i()),t.length=0}}class VR{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,i=0,r=0;const s=this.players.length;0==s?FR(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==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(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i: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(i=>i()),t.length=0}}function BR(n){return new Z(3e3,!1)}function DZ(){return typeof window<"u"&&typeof window.document<"u"}function M0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Qs(n){switch(n.length){case 0:return new Uu;case 1:return n[0];default:return new VR(n)}}function $R(n,e,t,i,r=new Map,s=new Map){const o=[],a=[];let l=-1,c=null;if(i.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"!":_=r.get(g);break;case bs:_=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 yZ(n){return new Z(3502,!1)}();return a}function P0(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&O0(t,"start",n)));break;case"done":n.onDone(()=>i(t&&O0(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&O0(t,"destroy",n)))}}function O0(n,e,t){const s=N0(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 N0(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Mi(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function HR(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}let R0=(n,e)=>!1,UR=(n,e,t)=>[],zR=null;function L0(n){const e=n.parentNode||n.host;return e===zR?null:e}(M0()||typeof Element<"u")&&(DZ()?(zR=(()=>document.documentElement)(),R0=(n,e)=>{for(;e;){if(e===n)return!0;e=L0(e)}return!1}):R0=(n,e)=>n.contains(e),UR=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let jo=null,jR=!1;const GR=R0,WR=UR;let qR=(()=>{class n{validateStyleProperty(t){return function MZ(n){jo||(jo=function PZ(){return typeof document<"u"?document.body:null}()||{},jR=!!jo.style&&"WebkitAppearance"in jo.style);let e=!0;return jo.style&&!function kZ(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in jo.style,!e&&jR&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in jo.style)),e}(t)}matchesElement(t,i){return!1}containsElement(t,i){return GR(t,i)}getParentElement(t){return L0(t)}query(t,i,r){return WR(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new Uu(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),F0=(()=>{class n{}return n.NOOP=new qR,n})();const V0="ng-enter",tp="ng-leave",np="ng-trigger",ip=".ng-trigger",KR="ng-animating",B0=".ng-animating";function ws(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:$0(parseFloat(e[1]),e[2])}function $0(n,e){return"s"===e?1e3*n:n}function rp(n,e,t){return n.hasOwnProperty("duration")?n:function RZ(n,e,t){let r,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(BR()),{duration:0,delay:0,easing:""};r=$0(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=$0(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function KX(){return new Z(3100,!1)}()),a=!0),s<0&&(e.push(function QX(){return new Z(3101,!1)}()),a=!0),a&&e.splice(l,0,BR())}return{duration:r,delay:s,easing:o}}(n,e,t)}function zu(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function QR(n){const e=new Map;return Object.keys(n).forEach(t=>{e.set(t,n[t])}),e}function Xs(n,e=new Map,t){if(t)for(let[i,r]of t)e.set(i,r);for(let[i,r]of n)e.set(i,r);return e}function ZR(n,e,t){return t?e+":"+t+";":""}function JR(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=ZR(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=ZR(0,BZ(t),n.style[t]));n.setAttribute("style",e)}function Ur(n,e,t){n.style&&(e.forEach((i,r)=>{const s=U0(r);t&&!t.has(r)&&t.set(r,n.style[s]),n.style[s]=i}),M0()&&JR(n))}function Go(n,e){n.style&&(e.forEach((t,i)=>{const r=U0(i);n.style[r]=""}),M0()&&JR(n))}function ju(n){return Array.isArray(n)?1==n.length?n[0]:LR(n):n}const H0=new RegExp("{{\\s*(.+?)\\s*}}","g");function eL(n){let e=[];if("string"==typeof n){let t;for(;t=H0.exec(n);)e.push(t[1]);H0.lastIndex=0}return e}function Gu(n,e,t){const i=n.toString(),r=i.replace(H0,(s,o)=>{let a=e[o];return null==a&&(t.push(function ZX(n){return new Z(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function sp(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const VZ=/-+([a-z0-9])/g;function U0(n){return n.replace(VZ,(...e)=>e[1].toUpperCase())}function BZ(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Pi(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 JX(n){return new Z(3004,!1)}()}}function tL(n,e){return window.getComputedStyle(n)[e]}function GZ(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function WZ(n,e,t){if(":"==n[0]){const l=function qZ(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function fZ(n){return new Z(3016,!1)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function hZ(n){return new Z(3015,!1)}()),e;const r=i[1],s=i[2],o=i[3];e.push(nL(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(nL(o,r))}(i,t,e)):t.push(n),t}const cp=new Set(["true","1"]),up=new Set(["false","0"]);function nL(n,e){const t=cp.has(n)||up.has(n),i=cp.has(e)||up.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?cp.has(n):up.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?cp.has(e):up.has(e)),o&&a}}const YZ=new RegExp("s*:selfs*,?","g");function z0(n,e,t,i){return new KZ(n).build(e,t,i)}class KZ{constructor(e){this._driver=e}build(e,t,i){const r=new ZZ(t);return this._resetContextStyleTimingState(r),Pi(this,ju(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function tZ(){return new Z(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);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function nZ(){return new Z(3007,!1)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{eL(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&(sp(s.values()),t.errors.push(function iZ(n,e){return new Z(3008,!1)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Pi(this,ju(e.animation),t);return{type:1,matchers:GZ(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Wo(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Pi(this,i,t)),options:Wo(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Pi(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Wo(e.options)}}visitAnimate(e,t){const i=function eJ(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return j0(rp(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=j0(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=rp(t,e);return j0(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Hr({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Hr(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)"string"==typeof a?a===bs?i.push(a):t.errors.push(new Z(3002,!1)):i.push(QR(a));let s=!1,o=null;return i.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:i,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.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!=r&&s>=u.startTime&&r<=u.endTime&&(t.errors.push(function sZ(n,e,t,i,r){return new Z(3010,!1)}()),d=!1),s=u.startTime),d&&c.set(l,{startTime:s,endTime:r}),t.options&&function FZ(n,e,t){const i=e.params||{},r=eL(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function XX(n){return new Z(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function oZ(){return new Z(3011,!1)}()),i;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 JZ(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 i=t;e=parseFloat(i.get("offset")),i.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 aZ(){return new Z(3012,!1)}()),a&&t.errors.push(function lZ(){return new Z(3200,!1)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function cZ(){return new Z(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,i.styles.push(_)}),i}visitReference(e,t){return{type:8,animation:Pi(this,ju(e.animation),t),options:Wo(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Wo(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Wo(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function QZ(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(YZ,"")),n=n.replace(/@\*/g,ip).replace(/@\w+/g,t=>ip+"-"+t.slice(1)).replace(/:animating/g,B0),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Mi(t.collectedStyles,t.currentQuerySelector,new Map);const a=Pi(this,ju(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Wo(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function uZ(){return new Z(3013,!1)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:rp(e.timings,t.errors,!0);return{type:12,animation:Pi(this,ju(e.animation),t),timings:i,options:null}}}class ZZ{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 Wo(n){return n?(n=zu(n)).params&&(n.params=function XZ(n){return n?zu(n):null}(n.params)):n={},n}function j0(n,e,t){return{duration:n,delay:e,easing:t}}function G0(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class dp{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const iJ=new RegExp(":enter","g"),sJ=new RegExp(":leave","g");function W0(n,e,t,i,r,s=new Map,o=new Map,a,l,c=[]){return(new oJ).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class oJ{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new dp;const d=new q0(e,t,c,r,s,u,[]);d.options=l;const h=l.delay?ws(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([o],null,d.errors,l),Pi(this,i,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()):[G0(t,[],[],[],0,h,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(const s of e){const o=s?.delay;if(o){var r;const a="number"==typeof o?o:ws(Gu(o,null!==(r=s?.params)&&void 0!==r?r:{},t.errors));i.delayNextStep(a)}}}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?ws(i.duration):null,a=null!=i.delay?ws(i.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),Pi(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=hp);const o=ws(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Pi(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?ws(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Pi(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return rp(t.params?Gu(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.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(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?ws(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=hp);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.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),Pi(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 i=t.parentContext,r=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=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Pi(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const hp={};class q0{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new fp(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=ws(i.duration)),null!=i.delay&&(r.delay=ws(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Gu(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new q0(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||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=hp,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},s=new aJ(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(iJ,"."+this._enterClassName)).replace(sJ,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function dZ(n){return new Z(3014,!1)}()),a}}class fp{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,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 fp(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,i]of this._globalTimelineStyles)this._backFill.set(t,i||bs),this._currentKeyframe.set(t,bs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);const s=r&&r.params||{},o=function lJ(n,e){const t=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||e.keys();for(let s of i)t.set(s,bs)}else Xs(r,t)}),t}(e,this._globalTimelineStyles);for(let[l,c]of o){const u=Gu(c,s,i);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:bs),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,i)=>{const r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Xs(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?e.add(d):u===bs&&t.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const s=e.size?sp(e.values()):[],o=t.size?sp(t.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return G0(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class aJ extends fp{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,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:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=Xs(e[0]);l.set("offset",0),s.push(l);const c=Xs(e[0]);c.set("offset",sL(a)),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Xs(e[d]);const f=h.get("offset");h.set("offset",sL((t+f*i)/o)),s.push(h)}i=o,t=0,r="",e=s}return G0(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function sL(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Y0{}const cJ=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 uJ extends Y0{normalizePropertyName(e,t){return U0(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(cJ.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function eZ(n,e){return new Z(3005,!1)}())}return o+s}}function oL(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const K0={};class aL{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function dJ(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return void 0!==e&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,s,o,a,l,c,u){var d;const h=[],f=this.ast.options&&this.ast.options.params||K0,g=this.buildStyles(i,a&&a.params||K0,h),m=l&&l.params||K0,_=this.buildStyles(r,m,h),b=new Set,y=new Map,T=new Map,I="void"===r,D={params:hJ(m,f),delay:null===(d=this.ast.options)||void 0===d?void 0:d.delay},P=u?[]:W0(e,t,this.ast.animation,s,o,g,_,D,c,h);let j=0;if(P.forEach(z=>{j=Math.max(z.duration+z.delay,j)}),h.length)return oL(t,this._triggerName,i,r,I,g,_,[],[],y,T,j,h);P.forEach(z=>{const O=z.element,M=Mi(y,O,new Set);z.preStyleProps.forEach(ee=>M.add(ee));const L=Mi(T,O,new Set);z.postStyleProps.forEach(ee=>L.add(ee)),O!==t&&b.add(O)});const q=sp(b.values());return oL(t,this._triggerName,i,r,I,g,_,P,q,y,T,j)}}function hJ(n,e){const t=zu(e);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(t[i]=n[i]);return t}class fJ{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i=new Map,r=zu(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!==o&&(r[s]=o)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=Gu(o,r,t));const l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(l,o)})}),i}}class gJ{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new fJ(r.style,r.options&&r.options.params||{},i))}),lL(this.states,"true","1"),lL(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new aL(e,r,this.states))}),this.fallbackTransition=function mJ(n,e,t){return new aL(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,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function lL(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 yJ=new dp;class _J{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const i=[],s=z0(this._driver,t,i,[]);if(i.length)throw function _Z(n){return new Z(3503,!1)}();this._animations.set(e,s)}_buildPlayer(e,t,i){const r=e.element,s=$R(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations.get(e);let o;const a=new Map;if(s?(o=W0(this._driver,t,s,V0,tp,new Map,new Map,i,yJ,r),o.forEach(u=>{const d=Mi(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function vZ(){return new Z(3300,!1)}()),o=[]),r.length)throw function bZ(n){return new Z(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,bs))})});const c=Qs(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 i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function wZ(n){return new Z(3301,!1)}();return t}listen(e,t,i,r){const s=N0(t,"","","");return P0(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const cL="ng-animate-queued",Q0="ng-animate-disabled",CJ=[],uL={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},EJ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},er="__ng_removed";class X0{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function AJ(n){return n??null}(i?e.value:e),i){const s=zu(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 i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const Wu="void",Z0=new X0(Wu);class TJ{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,tr(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw function SZ(n,e){return new Z(3302,!1)}();if(null==i||0==i.length)throw function CZ(n){return new Z(3303,!1)}();if(!function DJ(n){return"start"==n||"done"==n}(i))throw function EZ(n,e){return new Z(3400,!1)}();const s=Mi(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Mi(this._engine.statesByElement,e,new Map);return a.has(t)||(tr(e,np),tr(e,np+"-"+t),a.set(t,Z0)),()=>{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 TZ(n){return new Z(3401,!1)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new J0(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(tr(e,np),tr(e,np+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t);const c=new X0(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Z0),c.value!==Wu&&l.value===c.value){if(!function PJ(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];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(()=>{Go(e,m),Ur(e,_)})}return}const h=Mi(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(!r)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||(tr(e,cL),o.onStart(()=>{Nl(e,cL)})),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,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,ip,!0);i.forEach(r=>{if(r[er])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){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,Wu,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Qs(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers.get(o).fallbackTransition,c=i.get(o)||Z0,u=new X0(Wu),d=new J0(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 i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[er];(!s||s===uL)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){tr(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=N0(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,P0(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.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(i=>i.element===e)||t,t}}class xJ{constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,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=(r,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new TJ(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i)for(let r of i.values())if(r.namespaceId){const s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}return t}trigger(e,t,i,r){if(pp(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!pp(t))return;const s=t[er];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,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),tr(e,Q0)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Nl(e,Q0))}removeNode(e,t,i,r){if(pp(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[er]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return pp(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,ip,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,B0,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Qs(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[er];if(i&&i.setForRemoval){if(e[er]=uL,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}null!==(t=e.classList)&&void 0!==t&&t.contains(Q0)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)tr(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Qs(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function xZ(n){return new Z(3402,!1)}()}_flushAnimations(e,t){const i=new dp,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(x=>{u.add(x);const H=this.driver.query(x,".ng-animate-queued",!0);for(let U=0;U<H.length;U++)u.add(H[U])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=fL(h,this.collectedEnterElements),p=new Map;let g=0;f.forEach((x,H)=>{const U=V0+g++;p.set(H,U),x.forEach(se=>tr(se,U))});const m=[],_=new Set,b=new Set;for(let x=0;x<this.collectedLeaveElements.length;x++){const H=this.collectedLeaveElements[x],U=H[er];U&&U.setForRemoval&&(m.push(H),_.add(H),U.hasAnimation?this.driver.query(H,".ng-star-inserted",!0).forEach(se=>_.add(se)):b.add(H))}const y=new Map,T=fL(h,Array.from(_));T.forEach((x,H)=>{const U=tp+g++;y.set(H,U),x.forEach(se=>tr(se,U))}),e.push(()=>{f.forEach((x,H)=>{const U=p.get(H);x.forEach(se=>Nl(se,U))}),T.forEach((x,H)=>{const U=y.get(H);x.forEach(se=>Nl(se,U))}),m.forEach(x=>{this.processLeaveNode(x)})});const I=[],D=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach(U=>{const se=U.player,ge=U.element;if(I.push(se),this.collectedEnterElements.length){const Tt=ge[er];if(Tt&&Tt.setForMove){if(Tt.previousTriggersValues&&Tt.previousTriggersValues.has(U.triggerName)){const it=Tt.previousTriggersValues.get(U.triggerName),Ne=this.statesByElement.get(U.element);if(Ne&&Ne.has(U.triggerName)){const tn=Ne.get(U.triggerName);tn.value=it,Ne.set(U.triggerName,tn)}}return void se.destroy()}}const nt=!d||!this.driver.containsElement(d,ge),ut=y.get(ge),Gn=p.get(ge),We=this._buildInstruction(U,i,Gn,ut,nt);if(We.errors&&We.errors.length)return void D.push(We);if(nt)return se.onStart(()=>Go(ge,We.fromStyles)),se.onDestroy(()=>Ur(ge,We.toStyles)),void r.push(se);if(U.isFallbackTransition)return se.onStart(()=>Go(ge,We.fromStyles)),se.onDestroy(()=>Ur(ge,We.toStyles)),void r.push(se);const ai=[];We.timelines.forEach(Tt=>{Tt.stretchStartingKeyframe=!0,this.disabledNodes.has(Tt.element)||ai.push(Tt)}),We.timelines=ai,i.append(ge,We.timelines),o.push({instruction:We,player:se,element:ge}),We.queriedElements.forEach(Tt=>Mi(a,Tt,[]).push(se)),We.preStyleProps.forEach((Tt,it)=>{if(Tt.size){let Ne=l.get(it);Ne||l.set(it,Ne=new Set),Tt.forEach((tn,$i)=>Ne.add($i))}}),We.postStyleProps.forEach((Tt,it)=>{let Ne=c.get(it);Ne||c.set(it,Ne=new Set),Tt.forEach((tn,$i)=>Ne.add($i))})});if(D.length){const x=[];D.forEach(H=>{x.push(function IZ(n,e){return new Z(3505,!1)}())}),I.forEach(H=>H.destroy()),this.reportError(x)}const P=new Map,j=new Map;o.forEach(x=>{const H=x.element;i.has(H)&&(j.set(H,H),this._beforeAnimationBuild(x.player.namespaceId,x.instruction,P))}),r.forEach(x=>{const H=x.element;this._getPreviousPlayers(H,!1,x.namespaceId,x.triggerName,null).forEach(se=>{Mi(P,H,[]).push(se),se.destroy()})});const q=m.filter(x=>gL(x,l,c)),z=new Map;hL(z,this.driver,b,c,bs).forEach(x=>{gL(x,l,c)&&q.push(x)});const M=new Map;f.forEach((x,H)=>{hL(M,this.driver,new Set(x),l,"!")}),q.forEach(x=>{var H,U;const se=z.get(x),ge=M.get(x);z.set(x,new Map([...Array.from(null!==(H=se?.entries())&&void 0!==H?H:[]),...Array.from(null!==(U=ge?.entries())&&void 0!==U?U:[])]))});const L=[],ee=[],re={};o.forEach(x=>{const{element:H,player:U,instruction:se}=x;if(i.has(H)){if(u.has(H))return U.onDestroy(()=>Ur(H,se.toStyles)),U.disabled=!0,U.overrideTotalTime(se.totalTime),void r.push(U);let ge=re;if(j.size>1){let ut=H;const Gn=[];for(;ut=ut.parentNode;){const We=j.get(ut);if(We){ge=We;break}Gn.push(ut)}Gn.forEach(We=>j.set(We,ge))}const nt=this._buildAnimation(U.namespaceId,se,P,s,M,z);if(U.setRealPlayer(nt),ge===re)L.push(U);else{const ut=this.playersByElement.get(ge);ut&&ut.length&&(U.parentPlayer=Qs(ut)),r.push(U)}}else Go(H,se.fromStyles),U.onDestroy(()=>Ur(H,se.toStyles)),ee.push(U),u.has(H)&&r.push(U)}),ee.forEach(x=>{const H=s.get(x.element);if(H&&H.length){const U=Qs(H);x.setRealPlayer(U)}}),r.forEach(x=>{x.parentPlayer?x.syncPlayerEvents(x.parentPlayer):x.destroy()});for(let x=0;x<m.length;x++){const H=m[x],U=H[er];if(Nl(H,tp),U&&U.hasAnimation)continue;let se=[];if(a.size){let nt=a.get(H);nt&&nt.length&&se.push(...nt);let ut=this.driver.query(H,B0,!0);for(let Gn=0;Gn<ut.length;Gn++){let We=a.get(ut[Gn]);We&&We.length&&se.push(...We)}}const ge=se.filter(nt=>!nt.destroyed);ge.length?kJ(this,H,ge):this.processLeaveNode(H)}return m.length=0,L.forEach(x=>{this.players.push(x),x.onDone(()=>{x.destroy();const H=this.players.indexOf(x);this.players.splice(H,1)}),x.play()}),L}elementContainsData(e,t){let i=!1;const r=t[er];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,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==Wu;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){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=Mi(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Go(s,t.fromStyles)}_buildAnimation(e,t,i,r,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[er];if(m&&m.removedBeforeQueried)return new Uu(p.duration,p.delay);const _=g!==l,b=function MJ(n){const e=[];return pL(n,e),e}((i.get(g)||CJ).map(P=>P.getRealPlayer())).filter(P=>!!P.element&&P.element===g),y=s.get(g),T=o.get(g),I=$R(0,this._normalizer,0,p.keyframes,y,T),D=this._buildPlayer(p,I,b);if(p.subTimeline&&r&&d.add(g),_){const P=new J0(e,a,g);P.setRealPlayer(D),c.push(P)}return D});c.forEach(p=>{Mi(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function IJ(n,e,t){let i=n.get(e);if(i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>tr(p,KR));const f=Qs(h);return f.onDestroy(()=>{u.forEach(p=>Nl(p,KR)),Ur(l,t.toStyles)}),d.forEach(p=>{Mi(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Uu(e.duration,e.delay)}}class J0{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Uu,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,i)=>{t.forEach(r=>P0(e,i,void 0,r))}),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){Mi(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 pp(n){return n&&1===n.nodeType}function dL(n,e){const t=n.style.display;return n.style.display=e??"none",t}function hL(n,e,t,i,r){const s=[];t.forEach(l=>s.push(dL(l)));const o=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=e.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[er]=EJ,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>dL(l,s[a++])),o}function fL(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=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:r.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 tr(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function Nl(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function kJ(n,e,t){Qs(t).onDone(()=>n.processLeaveNode(e))}function pL(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof VR?pL(i.players,e):e.push(i)}}function gL(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class gp{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new xJ(e,t,i),this._timelineEngine=new _J(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=z0(this._driver,s,l,[]);if(l.length)throw function mZ(n,e){return new Z(3404,!1)}();a=function pJ(n,e,t){return new gJ(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=HR(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=HR(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let NJ=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,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&&Ur(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ur(this._element,this._initialStyles),this._endStyles&&(Ur(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Go(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Go(this._element,this._endStyles),this._endStyles=null),Ur(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ew(n){let e=null;return n.forEach((t,i)=>{(function RJ(n){return"display"===n||"position"===n})(i)&&(e=e||new Map,e.set(i,t))}),e}class mL{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,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=i.duration,this._delay=i.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(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}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((i,r)=>{"offset"!==r&&e.set(r,this._finished?i:tL(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class LJ{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return GR(e,t)}getParentElement(e){return L0(e)}query(e,t,i){return WR(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=o.filter(f=>f instanceof mL);(function $Z(n,e){return 0===n||0===e})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,g)=>c.set(g,p))});let d=function LZ(n){return n.length?n[0]instanceof Map?n:n.map(e=>QR(e)):[]}(t).map(f=>Xs(f));d=function HZ(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;s<e.length;s++){let o=e[s];r.forEach(a=>o.set(a,tL(n,a)))}}return e}(e,d,c);const h=function OJ(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=ew(e[0]),e.length>1&&(i=ew(e[e.length-1]))):e instanceof Map&&(t=ew(e)),t||i?new NJ(n,t,i):null}(e,d);return new mL(e,d,l,h)}}let FJ=(()=>{class n extends NR{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:dr.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?LR(t):t;return yL(this._renderer,null,i,"register",[r]),new VJ(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(ue(ou),ue(hi))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();class VJ extends class YX{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new BJ(this._id,e,t||{},this._renderer)}}class BJ{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return yL(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 yL(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const _L="@.disabled";let $J=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=o?.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new vL("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.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 i.data.animation.forEach(l),new HJ(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(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([i,r]))}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)(ue(ou),ue(gp),ue(pt))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();class vL{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):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,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}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,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==_L?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class HJ extends vL{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==_L?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function UJ(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 zJ(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let jJ=(()=>{class n extends gp{constructor(t,i,r,s){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(ue(hi),ue(F0),ue(Y0),ue(Du))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const bL=[{provide:NR,useClass:FJ},{provide:Y0,useFactory:function GJ(){return new uJ}},{provide:gp,useClass:jJ},{provide:ou,useFactory:function WJ(n,e,t){return new $J(n,e,t)},deps:[Zf,gp,pt]}],tw=[{provide:F0,useFactory:()=>new LJ},{provide:sN,useValue:"BrowserAnimations"},...bL],wL=[{provide:F0,useClass:qR},{provide:sN,useValue:"NoopAnimations"},...bL];let qJ=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?wL:tw}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({providers:tw,imports:[yR]}),n})();function SL(n,e,t,i,r,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(i,r)}function k(n){return function(){var e=this,t=arguments;return new Promise(function(i,r){var s=n.apply(e,t);function o(l){SL(s,i,r,o,a,"next",l)}function a(l){SL(s,i,r,o,a,"throw",l)}o(void 0)})}}const CL=function(n){const e=[];let t=0;for(let i=0;i<n.length;i++){let r=n.charCodeAt(i);r<128?e[t++]=r:r<2048?(e[t++]=r>>6|192,e[t++]=63&r|128):55296==(64512&r)&&i+1<n.length&&56320==(64512&n.charCodeAt(i+1))?(r=65536+((1023&r)<<10)+(1023&n.charCodeAt(++i)),e[t++]=r>>18|240,e[t++]=r>>12&63|128,e[t++]=r>>6&63|128,e[t++]=63&r|128):(e[t++]=r>>12|224,e[t++]=r>>6&63|128,e[t++]=63&r|128)}return e},iw={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_,i=[];for(let r=0;r<n.length;r+=3){const s=n[r],o=r+1<n.length,a=o?n[r+1]:0,l=r+2<n.length,c=l?n[r+2]:0;let h=(15&a)<<2|c>>6,f=63&c;l||(f=64,o||(h=64)),i.push(t[s>>2],t[(3&s)<<4|a>>4],t[h],t[f])}return i.join("")},encodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(n):this.encodeByteArray(CL(n),e)},decodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(n):function(n){const e=[];let t=0,i=0;for(;t<n.length;){const r=n[t++];if(r<128)e[i++]=String.fromCharCode(r);else if(r>191&&r<224){const s=n[t++];e[i++]=String.fromCharCode((31&r)<<6|63&s)}else if(r>239&&r<365){const l=((7&r)<<18|(63&n[t++])<<12|(63&n[t++])<<6|63&n[t++])-65536;e[i++]=String.fromCharCode(55296+(l>>10)),e[i++]=String.fromCharCode(56320+(1023&l))}else{const s=n[t++],o=n[t++];e[i++]=String.fromCharCode((15&r)<<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_,i=[];for(let r=0;r<n.length;){const s=t[n.charAt(r++)],a=r<n.length?t[n.charAt(r)]:0;++r;const c=r<n.length?t[n.charAt(r)]:64;++r;const d=r<n.length?t[n.charAt(r)]:64;if(++r,null==s||null==a||null==c||null==d)throw Error();i.push(s<<2|a>>4),64!==c&&(i.push(a<<4&240|c>>2),64!==d&&i.push(c<<6&192|d))}return i},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)}}},yp=function(n){return function(n){const e=CL(n);return iw.encodeByteArray(e,!0)}(n).replace(/\./g,"")},_p=function(n){try{return iw.decodeString(n,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function Oi(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function rw(){const n="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof n&&void 0!==n.id}function qo(){return"object"==typeof indexedDB}function qu(){return new Promise((n,e)=>{try{let t=!0;const i="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(i);r.onsuccess=()=>{r.result.close(),t||self.indexedDB.deleteDatabase(i),n(!0)},r.onupgradeneeded=()=>{t=!1},r.onerror=()=>{var s;e((null===(s=r.error)||void 0===s?void 0:s.message)||"")}}catch(t){e(t)}})}function sw(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}const ow=()=>{try{return function nee(){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&&_p(n[1]);return e&&JSON.parse(e)})()}catch(n){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`)}};class vp{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,i)=>{t?this.reject(t):this.resolve(i),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,i))}}}class xr extends Error{constructor(e,t,i){super(t),this.code=e,this.customData=i,this.name="FirebaseError",Object.setPrototypeOf(this,xr.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,zr.prototype.create)}}class zr{constructor(e,t,i){this.service=e,this.serviceName=t,this.errors=i}create(e,...t){const i=t[0]||{},r=`${this.service}/${e}`,s=this.errors[e],o=s?function hee(n,e){return n.replace(fee,(t,i)=>{const r=e[i];return null!=r?String(r):`<${i}?>`})}(s,i):"Error";return new xr(r,`${this.serviceName}: ${o} (${r}).`,i)}}const fee=/\{\$([^}]+)}/g;function aw(n,e){if(n===e)return!0;const t=Object.keys(n),i=Object.keys(e);for(const r of t){if(!i.includes(r))return!1;const s=n[r],o=e[r];if(xL(s)&&xL(o)){if(!aw(s,o))return!1}else if(s!==o)return!1}for(const r of i)if(!t.includes(r))return!1;return!0}function xL(n){return null!==n&&"object"==typeof n}function IL(n){const e=[];for(const[t,i]of Object.entries(n))Array.isArray(i)?i.forEach(r=>{e.push(encodeURIComponent(t)+"="+encodeURIComponent(r))}):e.push(encodeURIComponent(t)+"="+encodeURIComponent(i));return e.length?"&"+e.join("&"):""}class gee{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(i=>{this.error(i)})}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,i){let r;if(void 0===e&&void 0===t&&void 0===i)throw new Error("Missing Observer.");r=function mee(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:i},void 0===r.next&&(r.next=lw),void 0===r.error&&(r.error=lw),void 0===r.complete&&(r.complete=lw);const s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch{}}),this.observers.push(r),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(i){typeof console<"u"&&console.error&&console.error(i)}})}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 lw(){}function uw(n,e=1e3,t=2){const i=e*Math.pow(t,n),r=Math.round(.5*i*(Math.random()-.5)*2);return Math.min(144e5,i+r)}function nr(n){return n&&n._delegate?n._delegate:n}class Bn{constructor(e,t,i){this.name=e,this.instanceFactory=t,this.type=i,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 Yo="[DEFAULT]";class See{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 i=new vp;if(this.instancesDeferred.set(t,i),this.isInitialized(t)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:t});r&&i.resolve(r)}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const i=this.normalizeInstanceIdentifier(e?.identifier),r=null!==(t=e?.optional)&&void 0!==t&&t;if(!this.isInitialized(i)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:i})}catch(s){if(r)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 Eee(n){return"EAGER"===n.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:Yo})}catch{}for(const[t,i]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(t);try{const s=this.getOrInitializeService({instanceIdentifier:r});i.resolve(s)}catch{}}}}clearInstance(e=Yo){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}delete(){var e=this;return k(function*(){const t=Array.from(e.instances.values());yield Promise.all([...t.filter(i=>"INTERNAL"in i).map(i=>i.INTERNAL.delete()),...t.filter(i=>"_delete"in i).map(i=>i._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(e=Yo){return this.instances.has(e)}getOptions(e=Yo){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,i=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(i))throw Error(`${this.name}(${i}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:i,options:t});for(const[s,o]of this.instancesDeferred.entries())i===this.normalizeInstanceIdentifier(s)&&o.resolve(r);return r}onInit(e,t){var i;const r=this.normalizeInstanceIdentifier(t),s=null!==(i=this.onInitCallbacks.get(r))&&void 0!==i?i:new Set;s.add(e),this.onInitCallbacks.set(r,s);const o=this.instances.get(r);return o&&e(o,r),()=>{s.delete(e)}}invokeOnInitCallbacks(e,t){const i=this.onInitCallbacks.get(t);if(i)for(const r of i)try{r(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let i=this.instances.get(e);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:Cee(e),options:t}),this.instances.set(e,i),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(i,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,i)}catch{}return i||null}normalizeInstanceIdentifier(e=Yo){return this.component?this.component.multipleInstances?e:Yo:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}function Cee(n){return n===Yo?void 0:n}class Tee{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 See(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const dw=[];var Ue=(()=>(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"}(Ue||(Ue={})),Ue))();const AL={debug:Ue.DEBUG,verbose:Ue.VERBOSE,info:Ue.INFO,warn:Ue.WARN,error:Ue.ERROR,silent:Ue.SILENT},xee=Ue.INFO,Iee={[Ue.DEBUG]:"log",[Ue.VERBOSE]:"log",[Ue.INFO]:"info",[Ue.WARN]:"warn",[Ue.ERROR]:"error"},Aee=(n,e,...t)=>{if(e<n.logLevel)return;const i=(new Date).toISOString(),r=Iee[e];if(!r)throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);console[r](`[${i}]  ${n.name}:`,...t)};class Rl{constructor(e){this.name=e,this._logLevel=xee,this._logHandler=Aee,this._userLogHandler=null,dw.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Ue))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?AL[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,Ue.DEBUG,...e),this._logHandler(this,Ue.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Ue.VERBOSE,...e),this._logHandler(this,Ue.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Ue.INFO,...e),this._logHandler(this,Ue.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Ue.WARN,...e),this._logHandler(this,Ue.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Ue.ERROR,...e),this._logHandler(this,Ue.ERROR,...e)}}let DL,kL;const ML=new WeakMap,hw=new WeakMap,PL=new WeakMap,fw=new WeakMap,pw=new WeakMap;let gw={get(n,e,t){if(n instanceof IDBTransaction){if("done"===e)return hw.get(n);if("objectStoreNames"===e)return n.objectStoreNames||PL.get(n);if("store"===e)return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return Ss(n[e])},set:(n,e,t)=>(n[e]=t,!0),has:(n,e)=>n instanceof IDBTransaction&&("done"===e||"store"===e)||e in n};function Lee(n){return"function"==typeof n?function Ree(n){return n!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Mee(){return kL||(kL=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(n)?function(...e){return n.apply(mw(this),e),Ss(ML.get(this))}:function(...e){return Ss(n.apply(mw(this),e))}:function(e,...t){const i=n.call(mw(this),e,...t);return PL.set(i,e.sort?e.sort():[e]),Ss(i)}}(n):(n instanceof IDBTransaction&&function Oee(n){if(hw.has(n))return;const e=new Promise((t,i)=>{const r=()=>{n.removeEventListener("complete",s),n.removeEventListener("error",o),n.removeEventListener("abort",o)},s=()=>{t(),r()},o=()=>{i(n.error||new DOMException("AbortError","AbortError")),r()};n.addEventListener("complete",s),n.addEventListener("error",o),n.addEventListener("abort",o)});hw.set(n,e)}(n),((n,e)=>e.some(t=>n instanceof t))(n,function kee(){return DL||(DL=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(n,gw):n)}function Ss(n){if(n instanceof IDBRequest)return function Pee(n){const e=new Promise((t,i)=>{const r=()=>{n.removeEventListener("success",s),n.removeEventListener("error",o)},s=()=>{t(Ss(n.result)),r()},o=()=>{i(n.error),r()};n.addEventListener("success",s),n.addEventListener("error",o)});return e.then(t=>{t instanceof IDBCursor&&ML.set(t,n)}).catch(()=>{}),pw.set(e,n),e}(n);if(fw.has(n))return fw.get(n);const e=Lee(n);return e!==n&&(fw.set(n,e),pw.set(e,n)),e}const mw=n=>pw.get(n);function wp(n,e,{blocked:t,upgrade:i,blocking:r,terminated:s}={}){const o=indexedDB.open(n,e),a=Ss(o);return i&&o.addEventListener("upgradeneeded",l=>{i(Ss(o.result),l.oldVersion,l.newVersion,Ss(o.transaction))}),t&&o.addEventListener("blocked",()=>t()),a.then(l=>{s&&l.addEventListener("close",()=>s()),r&&l.addEventListener("versionchange",()=>r())}).catch(()=>{}),a}function yw(n,{blocked:e}={}){const t=indexedDB.deleteDatabase(n);return e&&t.addEventListener("blocked",()=>e()),Ss(t).then(()=>{})}const Fee=["get","getKey","getAll","getAllKeys","count"],Vee=["put","add","delete","clear"],_w=new Map;function OL(n,e){if(!(n instanceof IDBDatabase)||e in n||"string"!=typeof e)return;if(_w.get(e))return _w.get(e);const t=e.replace(/FromIndex$/,""),i=e!==t,r=Vee.includes(t);if(!(t in(i?IDBIndex:IDBObjectStore).prototype)||!r&&!Fee.includes(t))return;const s=function(){var o=k(function*(a,...l){const c=this.transaction(a,r?"readwrite":"readonly");let u=c.store;return i&&(u=u.index(l.shift())),(yield Promise.all([u[t](...l),r&&c.done]))[0]});return function(l){return o.apply(this,arguments)}}();return _w.set(e,s),s}!function Nee(n){gw=n(gw)}(n=>bt(bt({},n),{},{get:(e,t,i)=>OL(e,t)||n.get(e,t,i),has:(e,t)=>!!OL(e,t)||n.has(e,t)}));class Bee{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(function $ee(n){return"VERSION"===n.getComponent()?.type}(t)){const i=t.getImmediate();return`${i.library}/${i.version}`}return null}).filter(t=>t).join(" ")}}const vw="@firebase/app",Ko=new Rl("@firebase/app"),Sp="[DEFAULT]",hte={[vw]:"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"},Qo=new Map,Cp=new Map;function fte(n,e){try{n.container.addComponent(e)}catch(t){Ko.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`,t)}}function ti(n){const e=n.name;if(Cp.has(e))return Ko.debug(`There were multiple attempts to register component ${e}.`),!1;Cp.set(e,n);for(const t of Qo.values())fte(t,n);return!0}function Ep(n,e){const t=n.container.getProvider("heartbeat").getImmediate({optional:!0});return t&&t.triggerHeartbeat(),n.container.getProvider(e)}const Cs=new zr("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 gte{constructor(e,t,i){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=i,this.container.addComponent(new Bn("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 Cs.create("app-deleted",{appName:this._name})}}const Tp="9.12.1";function RL(n,e={}){let t=n;"object"!=typeof e&&(e={name:e});const i=Object.assign({name:Sp,automaticDataCollectionEnabled:!1},e),r=i.name;if("string"!=typeof r||!r)throw Cs.create("bad-app-name",{appName:String(r)});if(t||(t=(()=>{var n;return null===(n=ow())||void 0===n?void 0:n.config})()),!t)throw Cs.create("no-options");const s=Qo.get(r);if(s){if(aw(t,s.options)&&aw(i,s.config))return s;throw Cs.create("duplicate-app",{appName:r})}const o=new Tee(r);for(const l of Cp.values())o.addComponent(l);const a=new gte(t,i,o);return Qo.set(r,a),a}function LL(n=Sp){const e=Qo.get(n);if(!e&&n===Sp)return RL();if(!e)throw Cs.create("no-app",{appName:n});return e}function FL(){return Array.from(Qo.values())}function Ht(n,e,t){var i;let r=null!==(i=hte[n])&&void 0!==i?i:n;t&&(r+=`-${t}`);const s=r.match(/\s|\//),o=e.match(/\s|\//);if(s||o){const a=[`Unable to register library "${r}" with version "${e}":`];return s&&a.push(`library name "${r}" contains illegal characters (whitespace or "/")`),s&&o&&a.push("and"),o&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),void Ko.warn(a.join(" "))}ti(new Bn(`${r}-version`,()=>({library:r,version:e}),"VERSION"))}const Yu="firebase-heartbeat-store";let ww=null;function VL(){return ww||(ww=wp("firebase-heartbeat-database",1,{upgrade:(n,e)=>{0===e&&n.createObjectStore(Yu)}}).catch(n=>{throw Cs.create("idb-open",{originalErrorMessage:n.message})})),ww}function Sw(){return Sw=k(function*(n){var e;try{return(yield VL()).transaction(Yu).objectStore(Yu).get($L(n))}catch(t){if(t instanceof xr)Ko.warn(t.message);else{const i=Cs.create("idb-get",{originalErrorMessage:null===(e=t)||void 0===e?void 0:e.message});Ko.warn(i.message)}}}),Sw.apply(this,arguments)}function BL(n,e){return Cw.apply(this,arguments)}function Cw(){return Cw=k(function*(n,e){var t;try{const r=(yield VL()).transaction(Yu,"readwrite");return yield r.objectStore(Yu).put(e,$L(n)),r.done}catch(i){if(i instanceof xr)Ko.warn(i.message);else{const r=Cs.create("idb-set",{originalErrorMessage:null===(t=i)||void 0===t?void 0:t.message});Ko.warn(r.message)}}}),Cw.apply(this,arguments)}function $L(n){return`${n.name}!${n.options.appId}`}class wte{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new Cte(t),this._heartbeatsCachePromise=this._storage.read().then(i=>(this._heartbeatsCache=i,i))}triggerHeartbeat(){var e=this;return k(function*(){const i=e.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=HL();if(null===e._heartbeatsCache&&(e._heartbeatsCache=yield e._heartbeatsCachePromise),e._heartbeatsCache.lastSentHeartbeatDate!==r&&!e._heartbeatsCache.heartbeats.some(s=>s.date===r))return e._heartbeatsCache.heartbeats.push({date:r,agent:i}),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 k(function*(){if(null===e._heartbeatsCache&&(yield e._heartbeatsCachePromise),null===e._heartbeatsCache||0===e._heartbeatsCache.heartbeats.length)return"";const t=HL(),{heartbeatsToSend:i,unsentEntries:r}=function Ste(n,e=1024){const t=[];let i=n.slice();for(const r of n){const s=t.find(o=>o.agent===r.agent);if(s){if(s.dates.push(r.date),UL(t)>e){s.dates.pop();break}}else if(t.push({agent:r.agent,dates:[r.date]}),UL(t)>e){t.pop();break}i=i.slice(1)}return{heartbeatsToSend:t,unsentEntries:i}}(e._heartbeatsCache.heartbeats),s=yp(JSON.stringify({version:2,heartbeats:i}));return e._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(e._heartbeatsCache.heartbeats=r,yield e._storage.overwrite(e._heartbeatsCache)):(e._heartbeatsCache.heartbeats=[],e._storage.overwrite(e._heartbeatsCache)),s})()}}function HL(){return(new Date).toISOString().substring(0,10)}class Cte{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return k(function*(){return!!qo()&&qu().then(()=>!0).catch(()=>!1)})()}read(){var e=this;return k(function*(){return(yield e._canUseIndexedDBPromise)&&(yield function _te(n){return Sw.apply(this,arguments)}(e.app))||{heartbeats:[]}})()}overwrite(e){var t=this;return k(function*(){var i;if(yield t._canUseIndexedDBPromise){const s=yield t.read();return BL(t.app,{lastSentHeartbeatDate:null!==(i=e.lastSentHeartbeatDate)&&void 0!==i?i:s.lastSentHeartbeatDate,heartbeats:e.heartbeats})}})()}add(e){var t=this;return k(function*(){var i;if(yield t._canUseIndexedDBPromise){const s=yield t.read();return BL(t.app,{lastSentHeartbeatDate:null!==(i=e.lastSentHeartbeatDate)&&void 0!==i?i:s.lastSentHeartbeatDate,heartbeats:[...s.heartbeats,...e.heartbeats]})}})()}}function UL(n){return yp(JSON.stringify({version:2,heartbeats:n})).length}!function Ete(n){ti(new Bn("platform-logger",e=>new Bee(e),"PRIVATE")),ti(new Bn("heartbeat",e=>new wte(e),"PRIVATE")),Ht(vw,"0.8.2",n),Ht(vw,"0.8.2","esm2017"),Ht("fire-js","")}(""),Ht("firebase","9.12.1","app");const zL="@firebase/installations",Ew="0.5.15",GL=`w:${Ew}`,WL="FIS_v2",Es=new zr("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 qL(n){return n instanceof xr&&n.code.includes("request-failed")}function Tw({projectId:n}){return`https://firebaseinstallations.googleapis.com/v1/projects/${n}/installations`}function YL(n){return{token:n.token,requestStatus:2,expiresIn:Pte(n.expiresIn),creationTime:Date.now()}}function xw(n,e){return Iw.apply(this,arguments)}function Iw(){return Iw=k(function*(n,e){const i=(yield e.json()).error;return Es.create("request-failed",{requestName:n,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})}),Iw.apply(this,arguments)}function KL({apiKey:n}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":n})}function QL(n,{refreshToken:e}){const t=KL(n);return t.append("Authorization",function Ote(n){return`${WL} ${n}`}(e)),t}function Aw(n){return Dw.apply(this,arguments)}function Dw(){return Dw=k(function*(n){const e=yield n();return e.status>=500&&e.status<600?n():e}),Dw.apply(this,arguments)}function Pte(n){return Number(n.replace("s","000"))}function Nte(n,e){return kw.apply(this,arguments)}function kw(){return kw=k(function*({appConfig:n,heartbeatServiceProvider:e},{fid:t}){const i=Tw(n),r=KL(n),s=e.getImmediate({optional:!0});if(s){const c=yield s.getHeartbeatsHeader();c&&r.append("x-firebase-client",c)}const a={method:"POST",headers:r,body:JSON.stringify({fid:t,authVersion:WL,appId:n.appId,sdkVersion:GL})},l=yield Aw(()=>fetch(i,a));if(l.ok){const c=yield l.json();return{fid:c.fid||t,registrationStatus:2,refreshToken:c.refreshToken,authToken:YL(c.authToken)}}throw yield xw("Create Installation",l)}),kw.apply(this,arguments)}function XL(n){return new Promise(e=>{setTimeout(e,n)})}const Lte=/^[cdef][\w-]{21}$/;function Fte(){try{const n=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(n),n[0]=112+n[0]%16;const t=function Vte(n){return function Rte(n){return btoa(String.fromCharCode(...n)).replace(/\+/g,"-").replace(/\//g,"_")}(n).substr(0,22)}(n);return Lte.test(t)?t:""}catch{return""}}function Ll(n){return`${n.appName}!${n.appId}`}const Fl=new Map;function ZL(n,e){const t=Ll(n);JL(t,e),function Hte(n,e){const t=function eF(){return!Xo&&"BroadcastChannel"in self&&(Xo=new BroadcastChannel("[Firebase] FID Change"),Xo.onmessage=n=>{JL(n.data.key,n.data.fid)}),Xo}();t&&t.postMessage({key:n,fid:e}),function tF(){0===Fl.size&&Xo&&(Xo.close(),Xo=null)}()}(t,e)}function JL(n,e){const t=Fl.get(n);if(t)for(const i of t)i(e)}let Xo=null;const Zo="firebase-installations-store";let Pw=null;function Ow(){return Pw||(Pw=wp("firebase-installations-database",1,{upgrade:(n,e)=>{0===e&&n.createObjectStore(Zo)}})),Pw}function xp(n,e){return Nw.apply(this,arguments)}function Nw(){return Nw=k(function*(n,e){const t=Ll(n),r=(yield Ow()).transaction(Zo,"readwrite"),s=r.objectStore(Zo),o=yield s.get(t);return yield s.put(e,t),yield r.done,(!o||o.fid!==e.fid)&&ZL(n,e.fid),e}),Nw.apply(this,arguments)}function Rw(n){return Lw.apply(this,arguments)}function Lw(){return Lw=k(function*(n){const e=Ll(n),i=(yield Ow()).transaction(Zo,"readwrite");yield i.objectStore(Zo).delete(e),yield i.done}),Lw.apply(this,arguments)}function Ku(n,e){return Fw.apply(this,arguments)}function Fw(){return Fw=k(function*(n,e){const t=Ll(n),r=(yield Ow()).transaction(Zo,"readwrite"),s=r.objectStore(Zo),o=yield s.get(t),a=e(o);return void 0===a?yield s.delete(t):yield s.put(a,t),yield r.done,a&&(!o||o.fid!==a.fid)&&ZL(n,a.fid),a}),Fw.apply(this,arguments)}function Vw(n){return Bw.apply(this,arguments)}function Bw(){return Bw=k(function*(n){let e;const t=yield Ku(n.appConfig,i=>{const r=jte(i),s=Gte(n,r);return e=s.registrationPromise,s.installationEntry});return""===t.fid?{installationEntry:yield e}:{installationEntry:t,registrationPromise:e}}),Bw.apply(this,arguments)}function jte(n){return iF(n||{fid:Fte(),registrationStatus:0})}function Gte(n,e){if(0===e.registrationStatus){if(!navigator.onLine)return{installationEntry:e,registrationPromise:Promise.reject(Es.create("app-offline"))};const t={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},i=function Wte(n,e){return $w.apply(this,arguments)}(n,t);return{installationEntry:t,registrationPromise:i}}return 1===e.registrationStatus?{installationEntry:e,registrationPromise:qte(n)}:{installationEntry:e}}function $w(){return $w=k(function*(n,e){try{const t=yield Nte(n,e);return xp(n.appConfig,t)}catch(t){throw qL(t)&&409===t.customData.serverCode?yield Rw(n.appConfig):yield xp(n.appConfig,{fid:e.fid,registrationStatus:0}),t}}),$w.apply(this,arguments)}function qte(n){return Hw.apply(this,arguments)}function Hw(){return Hw=k(function*(n){let e=yield nF(n.appConfig);for(;1===e.registrationStatus;)yield XL(100),e=yield nF(n.appConfig);if(0===e.registrationStatus){const{installationEntry:t,registrationPromise:i}=yield Vw(n);return i||t}return e}),Hw.apply(this,arguments)}function nF(n){return Ku(n,e=>{if(!e)throw Es.create("installation-not-found");return iF(e)})}function iF(n){return function Yte(n){return 1===n.registrationStatus&&n.registrationTime+1e4<Date.now()}(n)?{fid:n.fid,registrationStatus:0}:n}function Kte(n,e){return Uw.apply(this,arguments)}function Uw(){return Uw=k(function*({appConfig:n,heartbeatServiceProvider:e},t){const i=Qte(n,t),r=QL(n,t),s=e.getImmediate({optional:!0});if(s){const c=yield s.getHeartbeatsHeader();c&&r.append("x-firebase-client",c)}const a={method:"POST",headers:r,body:JSON.stringify({installation:{sdkVersion:GL,appId:n.appId}})},l=yield Aw(()=>fetch(i,a));if(l.ok)return YL(yield l.json());throw yield xw("Generate Auth Token",l)}),Uw.apply(this,arguments)}function Qte(n,{fid:e}){return`${Tw(n)}/${e}/authTokens:generate`}function zw(n){return jw.apply(this,arguments)}function jw(){return jw=k(function*(n,e=!1){let t;const i=yield Ku(n.appConfig,s=>{if(!sF(s))throw Es.create("not-registered");const o=s.authToken;if(!e&&Jte(o))return s;if(1===o.requestStatus)return t=Xte(n,e),s;{if(!navigator.onLine)throw Es.create("app-offline");const a=tne(s);return t=Zte(n,a),a}});return t?yield t:i.authToken}),jw.apply(this,arguments)}function Xte(n,e){return Gw.apply(this,arguments)}function Gw(){return Gw=k(function*(n,e){let t=yield rF(n.appConfig);for(;1===t.authToken.requestStatus;)yield XL(100),t=yield rF(n.appConfig);const i=t.authToken;return 0===i.requestStatus?zw(n,e):i}),Gw.apply(this,arguments)}function rF(n){return Ku(n,e=>{if(!sF(e))throw Es.create("not-registered");return function nne(n){return 1===n.requestStatus&&n.requestTime+1e4<Date.now()}(e.authToken)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}function Zte(n,e){return Ww.apply(this,arguments)}function Ww(){return Ww=k(function*(n,e){try{const t=yield Kte(n,e),i=Object.assign(Object.assign({},e),{authToken:t});return yield xp(n.appConfig,i),t}catch(t){if(!qL(t)||401!==t.customData.serverCode&&404!==t.customData.serverCode){const i=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});yield xp(n.appConfig,i)}else yield Rw(n.appConfig);throw t}}),Ww.apply(this,arguments)}function sF(n){return void 0!==n&&2===n.registrationStatus}function Jte(n){return 2===n.requestStatus&&!function ene(n){const e=Date.now();return e<n.creationTime||n.creationTime+n.expiresIn<e+36e5}(n)}function tne(n){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},n),{authToken:e})}function qw(){return qw=k(function*(n){const e=n,{installationEntry:t,registrationPromise:i}=yield Vw(e);return i?i.catch(console.error):zw(e).catch(console.error),t.fid}),qw.apply(this,arguments)}function Yw(){return Yw=k(function*(n,e=!1){const t=n;return yield sne(t),(yield zw(t,e)).token}),Yw.apply(this,arguments)}function sne(n){return Kw.apply(this,arguments)}function Kw(){return Kw=k(function*(n){const{registrationPromise:e}=yield Vw(n);e&&(yield e)}),Kw.apply(this,arguments)}function Zw(n){return Es.create("missing-app-config-values",{valueName:n})}const oF="installations",une=n=>{const e=n.getProvider("app").getImmediate(),t=function lne(n){if(!n||!n.options)throw Zw("App Configuration");if(!n.name)throw Zw("App Name");const e=["projectId","apiKey","appId"];for(const t of e)if(!n.options[t])throw Zw(t);return{appName:n.name,projectId:n.options.projectId,apiKey:n.options.apiKey,appId:n.options.appId}}(e);return{app:e,appConfig:t,heartbeatServiceProvider:Ep(e,"heartbeat"),_delete:()=>Promise.resolve()}},dne=n=>{const t=Ep(n.getProvider("app").getImmediate(),oF).getImmediate();return{getId:()=>function ine(n){return qw.apply(this,arguments)}(t),getToken:r=>function rne(n){return Yw.apply(this,arguments)}(t,r)}};(function hne(){ti(new Bn(oF,une,"PUBLIC")),ti(new Bn("installations-internal",dne,"PRIVATE"))})(),Ht(zL,Ew),Ht(zL,Ew,"esm2017");const Jw="@firebase/remote-config",pi=new zr("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 Cne{constructor(e,t,i,r){this.client=e,this.storage=t,this.storageCache=i,this.logger=r}isCachedDataFresh(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const i=Date.now()-t,r=i<=e;return this.logger.debug(`Config fetch cache check. Cache age millis: ${i}. Cache max age millis (minimumFetchIntervalMillis setting): ${e}. Is cache hit: ${r}.`),r}fetch(e){var t=this;return k(function*(){const[i,r]=yield Promise.all([t.storage.getLastSuccessfulFetchTimestampMillis(),t.storage.getLastSuccessfulFetchResponse()]);if(r&&t.isCachedDataFresh(e.cacheMaxAgeMillis,i))return r;e.eTag=r&&r.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 Ene(n=navigator){return n.languages&&n.languages[0]||n.language}class Tne{constructor(e,t,i,r,s,o){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=i,this.projectId=r,this.apiKey=s,this.appId=o}fetch(e){var t=this;return k(function*(){var i,r,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:Ene()},h={method:"POST",headers:u,body:JSON.stringify(d)},f=fetch(c,h),p=new Promise((T,I)=>{e.signal.addEventListener(()=>{const D=new Error("The operation was aborted.");D.name="AbortError",I(D)})});let g;try{yield Promise.race([f,p]),g=yield f}catch(T){let I="fetch-client-network";throw"AbortError"===(null===(i=T)||void 0===i?void 0:i.name)&&(I="fetch-timeout"),pi.create(I,{originalErrorMessage:null===(r=T)||void 0===r?void 0:r.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(I){throw pi.create("fetch-client-parse",{originalErrorMessage:null===(s=I)||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 pi.create("fetch-status",{httpStatus:m});return{status:m,eTag:_,config:b}})()}}class Ane{constructor(e,t){this.client=e,this.storage=t}fetch(e){var t=this;return k(function*(){const i=(yield t.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return t.attemptFetch(e,i)})()}attemptFetch(e,{throttleEndTimeMillis:t,backoffCount:i}){var r=this;return k(function*(){yield function xne(n,e){return new Promise((t,i)=>{const r=Math.max(e-Date.now(),0),s=setTimeout(t,r);n.addEventListener(()=>{clearTimeout(s),i(pi.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}(e.signal,t);try{const s=yield r.client.fetch(e);return yield r.storage.deleteThrottleMetadata(),s}catch(s){if(!function Ine(n){if(!(n instanceof xr&&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()+uw(i),backoffCount:i+1};return yield r.storage.setThrottleMetadata(o),r.attemptFetch(e,o)}})()}}class Mne{constructor(e,t,i,r,s){this.app=e,this._client=t,this._storageCache=i,this._storage=r,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 Ap(n,e){var t;const i=n.target.error||void 0;return pi.create(e,{originalErrorMessage:i&&(null===(t=i)||void 0===t?void 0:t.message)})}const Jo="app_namespace_store";class Rne{constructor(e,t,i,r=function Nne(){return new Promise((n,e)=>{var t;try{const i=indexedDB.open("firebase_remote_config",1);i.onerror=r=>{e(Ap(r,"storage-open"))},i.onsuccess=r=>{n(r.target.result)},i.onupgradeneeded=r=>{0===r.oldVersion&&r.target.result.createObjectStore(Jo,{keyPath:"compositeKey"})}}catch(i){e(pi.create("storage-open",{originalErrorMessage:null===(t=i)||void 0===t?void 0:t.message}))}})}()){this.appId=e,this.appName=t,this.namespace=i,this.openDbPromise=r}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 k(function*(){const i=yield t.openDbPromise;return new Promise((r,s)=>{var o;const l=i.transaction([Jo],"readonly").objectStore(Jo),c=t.createCompositeKey(e);try{const u=l.get(c);u.onerror=d=>{s(Ap(d,"storage-get"))},u.onsuccess=d=>{const h=d.target.result;r(h?h.value:void 0)}}catch(u){s(pi.create("storage-get",{originalErrorMessage:null===(o=u)||void 0===o?void 0:o.message}))}})})()}set(e,t){var i=this;return k(function*(){const r=yield i.openDbPromise;return new Promise((s,o)=>{var a;const c=r.transaction([Jo],"readwrite").objectStore(Jo),u=i.createCompositeKey(e);try{const d=c.put({compositeKey:u,value:t});d.onerror=h=>{o(Ap(h,"storage-set"))},d.onsuccess=()=>{s()}}catch(d){o(pi.create("storage-set",{originalErrorMessage:null===(a=d)||void 0===a?void 0:a.message}))}})})()}delete(e){var t=this;return k(function*(){const i=yield t.openDbPromise;return new Promise((r,s)=>{var o;const l=i.transaction([Jo],"readwrite").objectStore(Jo),c=t.createCompositeKey(e);try{const u=l.delete(c);u.onerror=d=>{s(Ap(d,"storage-delete"))},u.onsuccess=()=>{r()}}catch(u){s(pi.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 Lne{constructor(e){this.storage=e}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var e=this;return k(function*(){const t=e.storage.getLastFetchStatus(),i=e.storage.getLastSuccessfulFetchTimestampMillis(),r=e.storage.getActiveConfig(),s=yield t;s&&(e.lastFetchStatus=s);const o=yield i;o&&(e.lastSuccessfulFetchTimestampMillis=o);const a=yield r;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 Vne(){return s1.apply(this,arguments)}function s1(){return(s1=k(function*(){if(!qo())return!1;try{return yield qu()}catch{return!1}})).apply(this,arguments)}!function Fne(){ti(new Bn("remote-config",function n(e,{instanceIdentifier:t}){const i=e.getProvider("app").getImmediate(),r=e.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw pi.create("registration-window");if(!qo())throw pi.create("indexed-db-unavailable");const{projectId:s,apiKey:o,appId:a}=i.options;if(!s)throw pi.create("registration-project-id");if(!o)throw pi.create("registration-api-key");if(!a)throw pi.create("registration-app-id");const l=new Rne(a,i.name,t=t||"firebase"),c=new Lne(l),u=new Rl(Jw);u.logLevel=Ue.ERROR;const d=new Tne(r,Tp,t,s,o,a),h=new Ane(d,l),f=new Cne(h,l,c,u),p=new Mne(i,f,c,l,u);return function bne(n){const e=nr(n);e._initializePromise||(e._initializePromise=e._storageCache.loadFromStorage().then(()=>{e._isInitializationComplete=!0}))}(p),p},"PUBLIC").setMultipleInstances(!0)),Ht(Jw,"0.3.14"),Ht(Jw,"0.3.14","esm2017")}();const Bne="/firebase-messaging-sw.js",$ne="/firebase-cloud-messaging-push-scope",uF="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",dF="google.c.a.c_id",Une="google.c.a.c_l",zne="google.c.a.ts",jne="google.c.a.e";var Vl=(()=>(function(n){n.PUSH_RECEIVED="push-received",n.NOTIFICATION_CLICKED="notification-clicked"}(Vl||(Vl={})),Vl))();function Ts(n){const e=new Uint8Array(n);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Gne(n){const t=(n+"=".repeat((4-n.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),i=atob(t),r=new Uint8Array(i.length);for(let s=0;s<i.length;++s)r[s]=i.charCodeAt(s);return r}const o1="fcm_token_details_db",hF="fcm_token_object_Store";function qne(n){return a1.apply(this,arguments)}function a1(){return a1=k(function*(n){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(s=>s.name).includes(o1))return null;let e=null;return(yield wp(o1,5,{upgrade:(i=k(function*(r,s,o,a){var l;if(s<2||!r.objectStoreNames.contains(hF))return;const c=a.objectStore(hF),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:Ts(d.vapidKey)}}}else if(3===s){const d=u;e={token:d.fcmToken,createTime:d.createTime,subscriptionOptions:{auth:Ts(d.auth),p256dh:Ts(d.p256dh),endpoint:d.endpoint,swScope:d.swScope,vapidKey:Ts(d.vapidKey)}}}else if(4===s){const d=u;e={token:d.fcmToken,createTime:d.createTime,subscriptionOptions:{auth:Ts(d.auth),p256dh:Ts(d.p256dh),endpoint:d.endpoint,swScope:d.swScope,vapidKey:Ts(d.vapidKey)}}}}),function(s,o,a,l){return i.apply(this,arguments)})})).close(),yield yw(o1),yield yw("fcm_vapid_details_db"),yield yw("undefined"),Yne(e)?e:null;var i}),a1.apply(this,arguments)}function Yne(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 ea="firebase-messaging-store";let l1=null;function c1(){return l1||(l1=wp("firebase-messaging-database",1,{upgrade:(n,e)=>{0===e&&n.createObjectStore(ea)}})),l1}function fF(n){return u1.apply(this,arguments)}function u1(){return u1=k(function*(n){const e=p1(n),i=yield(yield c1()).transaction(ea).objectStore(ea).get(e);if(i)return i;{const r=yield qne(n.appConfig.senderId);if(r)return yield d1(n,r),r}}),u1.apply(this,arguments)}function d1(n,e){return h1.apply(this,arguments)}function h1(){return h1=k(function*(n,e){const t=p1(n),r=(yield c1()).transaction(ea,"readwrite");return yield r.objectStore(ea).put(e,t),yield r.done,e}),h1.apply(this,arguments)}function Xne(n){return f1.apply(this,arguments)}function f1(){return f1=k(function*(n){const e=p1(n),i=(yield c1()).transaction(ea,"readwrite");yield i.objectStore(ea).delete(e),yield i.done}),f1.apply(this,arguments)}function p1({appConfig:n}){return n.appId}const Sn=new zr("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 Jne(n,e){return g1.apply(this,arguments)}function g1(){return g1=k(function*(n,e){var t;const i=yield v1(n),r=gF(e),s={method:"POST",headers:i,body:JSON.stringify(r)};let o;try{o=yield(yield fetch(_1(n.appConfig),s)).json()}catch(a){throw Sn.create("token-subscribe-failed",{errorInfo:null===(t=a)||void 0===t?void 0:t.toString()})}if(o.error)throw Sn.create("token-subscribe-failed",{errorInfo:o.error.message});if(!o.token)throw Sn.create("token-subscribe-no-token");return o.token}),g1.apply(this,arguments)}function eie(n,e){return m1.apply(this,arguments)}function m1(){return m1=k(function*(n,e){var t;const i=yield v1(n),r=gF(e.subscriptionOptions),s={method:"PATCH",headers:i,body:JSON.stringify(r)};let o;try{o=yield(yield fetch(`${_1(n.appConfig)}/${e.token}`,s)).json()}catch(a){throw Sn.create("token-update-failed",{errorInfo:null===(t=a)||void 0===t?void 0:t.toString()})}if(o.error)throw Sn.create("token-update-failed",{errorInfo:o.error.message});if(!o.token)throw Sn.create("token-update-no-token");return o.token}),m1.apply(this,arguments)}function pF(n,e){return y1.apply(this,arguments)}function y1(){return y1=k(function*(n,e){var t;const r={method:"DELETE",headers:yield v1(n)};try{const o=yield(yield fetch(`${_1(n.appConfig)}/${e}`,r)).json();if(o.error)throw Sn.create("token-unsubscribe-failed",{errorInfo:o.error.message})}catch(s){throw Sn.create("token-unsubscribe-failed",{errorInfo:null===(t=s)||void 0===t?void 0:t.toString()})}}),y1.apply(this,arguments)}function _1({projectId:n}){return`https://fcmregistrations.googleapis.com/v1/projects/${n}/registrations`}function v1(n){return b1.apply(this,arguments)}function b1(){return b1=k(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}`})}),b1.apply(this,arguments)}function gF({p256dh:n,auth:e,endpoint:t,vapidKey:i}){const r={web:{endpoint:t,auth:e,p256dh:n}};return i!==uF&&(r.web.applicationPubKey=i),r}function nie(n){return w1.apply(this,arguments)}function w1(){return w1=k(function*(n){const e=yield rie(n.swRegistration,n.vapidKey),t={vapidKey:n.vapidKey,swScope:n.swRegistration.scope,endpoint:e.endpoint,auth:Ts(e.getKey("auth")),p256dh:Ts(e.getKey("p256dh"))},i=yield fF(n.firebaseDependencies);if(i){if(sie(i.subscriptionOptions,t))return Date.now()>=i.createTime+6048e5?iie(n,{token:i.token,createTime:Date.now(),subscriptionOptions:t}):i.token;try{yield pF(n.firebaseDependencies,i.token)}catch(r){console.warn(r)}return yF(n.firebaseDependencies,t)}return yF(n.firebaseDependencies,t)}),w1.apply(this,arguments)}function mF(n){return S1.apply(this,arguments)}function S1(){return S1=k(function*(n){const e=yield fF(n.firebaseDependencies);e&&(yield pF(n.firebaseDependencies,e.token),yield Xne(n.firebaseDependencies));const t=yield n.swRegistration.pushManager.getSubscription();return!t||t.unsubscribe()}),S1.apply(this,arguments)}function iie(n,e){return C1.apply(this,arguments)}function C1(){return C1=k(function*(n,e){try{const t=yield eie(n.firebaseDependencies,e),i=Object.assign(Object.assign({},e),{token:t,createTime:Date.now()});return yield d1(n.firebaseDependencies,i),t}catch(t){throw yield mF(n),t}}),C1.apply(this,arguments)}function yF(n,e){return E1.apply(this,arguments)}function E1(){return E1=k(function*(n,e){const i={token:yield Jne(n,e),createTime:Date.now(),subscriptionOptions:e};return yield d1(n,i),i.token}),E1.apply(this,arguments)}function rie(n,e){return T1.apply(this,arguments)}function T1(){return T1=k(function*(n,e){return(yield n.pushManager.getSubscription())||n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Gne(e)})}),T1.apply(this,arguments)}function sie(n,e){return e.vapidKey===n.vapidKey&&e.endpoint===n.endpoint&&e.auth===n.auth&&e.p256dh===n.p256dh}function _F(n){const e={from:n.from,collapseKey:n.collapse_key,messageId:n.fcmMessageId};return function oie(n,e){if(!e.notification)return;n.notification={};const t=e.notification.title;t&&(n.notification.title=t);const i=e.notification.body;i&&(n.notification.body=i);const r=e.notification.image;r&&(n.notification.image=r)}(e,n),function aie(n,e){!e.data||(n.data=e.data)}(e,n),function lie(n,e){var t,i,r,s,o;if(!(e.fcmOptions||null!==(t=e.notification)&&void 0!==t&&t.click_action))return;n.fcmOptions={};const a=null!==(r=null===(i=e.fcmOptions)||void 0===i?void 0:i.link)&&void 0!==r?r: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 cie(n){return"object"==typeof n&&!!n&&dF in n}function vF(n,e){const t=[];for(let i=0;i<n.length;i++)t.push(n.charAt(i)),i<e.length&&t.push(e.charAt(i));return t.join("")}function x1(n){return Sn.create("missing-app-config-values",{valueName:n})}vF("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),vF("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class die{constructor(e,t,i){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const r=function uie(n){if(!n||!n.options)throw x1("App Configuration Object");if(!n.name)throw x1("App Name");const e=["projectId","apiKey","appId","messagingSenderId"],{options:t}=n;for(const i of e)if(!t[i])throw x1(i);return{appName:n.name,projectId:t.projectId,apiKey:t.apiKey,appId:t.appId,senderId:t.messagingSenderId}}(e);this.firebaseDependencies={app:e,appConfig:r,installations:t,analyticsProvider:i}}_delete(){return Promise.resolve()}}function bF(n){return I1.apply(this,arguments)}function I1(){return I1=k(function*(n){var e;try{n.swRegistration=yield navigator.serviceWorker.register(Bne,{scope:$ne}),n.swRegistration.update().catch(()=>{})}catch(t){throw Sn.create("failed-service-worker-registration",{browserErrorMessage:null===(e=t)||void 0===e?void 0:e.message})}}),I1.apply(this,arguments)}function hie(n,e){return A1.apply(this,arguments)}function A1(){return A1=k(function*(n,e){if(!e&&!n.swRegistration&&(yield bF(n)),e||!n.swRegistration){if(!(e instanceof ServiceWorkerRegistration))throw Sn.create("invalid-sw-registration");n.swRegistration=e}}),A1.apply(this,arguments)}function fie(n,e){return D1.apply(this,arguments)}function D1(){return D1=k(function*(n,e){e?n.vapidKey=e:n.vapidKey||(n.vapidKey=uF)}),D1.apply(this,arguments)}function k1(){return k1=k(function*(n,e){if(!navigator)throw Sn.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw Sn.create("permission-blocked");return yield fie(n,e?.vapidKey),yield hie(n,e?.serviceWorkerRegistration),nie(n)}),k1.apply(this,arguments)}function pie(n,e,t){return M1.apply(this,arguments)}function M1(){return M1=k(function*(n,e,t){const i=gie(e);(yield n.firebaseDependencies.analyticsProvider.get()).logEvent(i,{message_id:t[dF],message_name:t[Une],message_time:t[zne],message_device_time:Math.floor(Date.now()/1e3)})}),M1.apply(this,arguments)}function gie(n){switch(n){case Vl.NOTIFICATION_CLICKED:return"notification_open";case Vl.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function P1(){return P1=k(function*(n,e){const t=e.data;if(!t.isFirebaseMessaging)return;n.onMessageHandler&&t.messageType===Vl.PUSH_RECEIVED&&("function"==typeof n.onMessageHandler?n.onMessageHandler(_F(t)):n.onMessageHandler.next(_F(t)));const i=t.data;cie(i)&&"1"===i[jne]&&(yield pie(n,t.messageType,i))}),P1.apply(this,arguments)}const SF="@firebase/messaging",yie=n=>{const e=new die(n.getProvider("app").getImmediate(),n.getProvider("installations-internal").getImmediate(),n.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",t=>function mie(n,e){return P1.apply(this,arguments)}(e,t)),e},_ie=n=>{const e=n.getProvider("messaging").getImmediate();return{getToken:i=>function wF(n,e){return k1.apply(this,arguments)}(e,i)}};function EF(){return O1.apply(this,arguments)}function O1(){return(O1=k(function*(){try{yield qu()}catch{return!1}return typeof window<"u"&&qo()&&sw()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}!function vie(){ti(new Bn("messaging",yie,"PUBLIC")),ti(new Bn("messaging-internal",_ie,"PRIVATE")),Ht(SF,"0.9.19"),Ht(SF,"0.9.19","esm2017")}();const Dp="analytics",Sie="firebase_id",Tie="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",TF="https://www.googletagmanager.com/gtag/js",Cn=new Rl("@firebase/analytics");function xF(n){return Promise.all(n.map(e=>e.catch(t=>t)))}function xie(n,e){const t=document.createElement("script");t.src=`${TF}?l=${n}&id=${e}`,t.async=!0,document.head.appendChild(t)}function Aie(n,e,t,i,r,s){return L1.apply(this,arguments)}function L1(){return L1=k(function*(n,e,t,i,r,s){const o=i[r];try{if(o)yield e[o];else{const l=(yield xF(t)).find(c=>c.measurementId===r);l&&(yield e[l.appId])}}catch(a){Cn.error(a)}n("config",r,s)}),L1.apply(this,arguments)}function Die(n,e,t,i,r){return F1.apply(this,arguments)}function F1(){return F1=k(function*(n,e,t,i,r){try{let s=[];if(r&&r.send_to){let o=r.send_to;Array.isArray(o)||(o=[o]);const a=yield xF(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",i,r||{})}catch(s){Cn.error(s)}}),F1.apply(this,arguments)}function Pie(n){const e=window.document.getElementsByTagName("script");for(const t of Object.values(e))if(t.src&&t.src.includes(TF)&&t.src.includes(n))return t;return null}const Ni=new zr("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.'}),IF=new class Lie{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 Fie(n){return new Headers({Accept:"application/json","x-goog-api-key":n})}function Vie(n){return V1.apply(this,arguments)}function V1(){return V1=k(function*(n){var e;const{appId:t,apiKey:i}=n,r={method:"GET",headers:Fie(i)},s=Tie.replace("{app-id}",t),o=yield fetch(s,r);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 Ni.create("config-fetch-failed",{httpStatus:o.status,responseMessage:a})}return o.json()}),V1.apply(this,arguments)}function Bie(n){return B1.apply(this,arguments)}function B1(){return B1=k(function*(n,e=IF,t){const{appId:i,apiKey:r,measurementId:s}=n.options;if(!i)throw Ni.create("no-app-id");if(!r){if(s)return{measurementId:s,appId:i};throw Ni.create("no-api-key")}const o=e.getThrottleMetadata(i)||{backoffCount:0,throttleEndTimeMillis:Date.now()},a=new Uie;return setTimeout(k(function*(){a.abort()}),void 0!==t?t:6e4),AF({appId:i,apiKey:r,measurementId:s},o,a,e)}),B1.apply(this,arguments)}function AF(n,e,t){return $1.apply(this,arguments)}function $1(){return $1=k(function*(n,{throttleEndTimeMillis:e,backoffCount:t},i,r=IF){var s,o;const{appId:a,measurementId:l}=n;try{yield $ie(i,e)}catch(c){if(l)return Cn.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 Vie(n);return r.deleteThrottleMetadata(a),c}catch(c){const u=c;if(!Hie(u)){if(r.deleteThrottleMetadata(a),l)return Cn.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)?uw(t,r.intervalMillis,30):uw(t,r.intervalMillis),h={throttleEndTimeMillis:Date.now()+d,backoffCount:t+1};return r.setThrottleMetadata(a,h),Cn.debug(`Calling attemptFetch again in ${d} millis`),AF(n,h,i,r)}}),$1.apply(this,arguments)}function $ie(n,e){return new Promise((t,i)=>{const r=Math.max(e-Date.now(),0),s=setTimeout(t,r);n.addEventListener(()=>{clearTimeout(s),i(Ni.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}function Hie(n){if(!(n instanceof xr&&n.customData))return!1;const e=Number(n.customData.httpStatus);return 429===e||500===e||503===e||504===e}class Uie{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}let H1,q1;function U1(){return U1=k(function*(n,e,t,i,r){if(r&&r.global)n("event",t,i);else{const s=yield e;n("event",t,Object.assign(Object.assign({},i),{send_to:s}))}}),U1.apply(this,arguments)}function DF(n){q1=n}function kF(n){H1=n}function Yie(){return Y1.apply(this,arguments)}function Y1(){return Y1=k(function*(){var n;if(!qo())return Cn.warn(Ni.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield qu()}catch(e){return Cn.warn(Ni.create("indexeddb-unavailable",{errorInfo:null===(n=e)||void 0===n?void 0:n.toString()}).message),!1}return!0}),Y1.apply(this,arguments)}function K1(){return K1=k(function*(n,e,t,i,r,s,o){var a;const l=Bie(n);l.then(f=>{t[f.measurementId]=f.appId,n.options.measurementId&&f.measurementId!==n.options.measurementId&&Cn.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=>Cn.error(f)),e.push(l);const c=Yie().then(f=>{if(f)return i.getId()}),[u,d]=yield Promise.all([l,c]);Pie(s)||xie(s,u.measurementId),q1&&(r("consent","default",q1),DF(void 0)),r("js",new Date);const h=null!==(a=o?.config)&&void 0!==a?a:{};return h.origin="firebase",h.update=!0,null!=d&&(h[Sie]=d),r("config",u.measurementId,h),H1&&(r("set",H1),kF(void 0)),u.measurementId}),K1.apply(this,arguments)}class Qie{constructor(e){this.app=e}_delete(){return delete xs[this.app.options.appId],Promise.resolve()}}let xs={},MF=[];const PF={};let NF,Is,kp="dataLayer",Q1=!1;function Zie(n,e,t){!function Xie(){const n=[];if(rw()&&n.push("This is a browser extension environment."),sw()||n.push("Cookies are not available."),n.length>0){const e=n.map((i,r)=>`(${r+1}) ${i}`).join(" "),t=Ni.create("invalid-analytics-context",{errorInfo:e});Cn.warn(t.message)}}();const i=n.options.appId;if(!i)throw Ni.create("no-app-id");if(!n.options.apiKey){if(!n.options.measurementId)throw Ni.create("no-api-key");Cn.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!=xs[i])throw Ni.create("already-exists",{id:i});if(!Q1){!function Iie(n){let e=[];Array.isArray(window[n])?e=window[n]:window[n]=e}(kp);const{wrappedGtag:s,gtagCore:o}=function Mie(n,e,t,i,r){let s=function(...o){window[i].push(arguments)};return window[r]&&"function"==typeof window[r]&&(s=window[r]),window[r]=function kie(n,e,t,i){function s(){return(s=k(function*(o,a,l){try{"event"===o?yield Die(n,e,t,a,l):"config"===o?yield Aie(n,e,t,i,a,l):"consent"===o?n("consent","update",l):n("set",a)}catch(c){Cn.error(c)}})).apply(this,arguments)}return function r(o,a,l){return s.apply(this,arguments)}}(s,n,e,t),{gtagCore:s,wrappedGtag:window[r]}}(xs,MF,PF,kp,"gtag");Is=s,NF=o,Q1=!0}return xs[i]=function Kie(n,e,t,i,r,s,o){return K1.apply(this,arguments)}(n,MF,PF,e,NF,kp,t),new Qie(n)}function ere(){return X1.apply(this,arguments)}function X1(){return(X1=k(function*(){if(rw()||!sw()||!qo())return!1;try{return yield qu()}catch{return!1}})).apply(this,arguments)}const RF="@firebase/analytics";!function nre(){ti(new Bn(Dp,(e,{options:t})=>Zie(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),t),"PUBLIC")),ti(new Bn("analytics-internal",function n(e){try{const t=e.getProvider(Dp).getImmediate();return{logEvent:(i,r,s)=>function tre(n,e,t,i){n=nr(n),function zie(n,e,t,i,r){return U1.apply(this,arguments)}(Is,xs[n.app.options.appId],e,t,i).catch(r=>Cn.error(r))}(t,i,r,s)}}catch(t){throw Ni.create("interop-component-reg-failed",{reason:t})}},"PRIVATE")),Ht(RF,"0.8.3"),Ht(RF,"0.8.3","esm2017")}();class ire extends xt{constructor(e,t){super()}schedule(e,t=0){return this}}class Z1 extends ire{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 i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let FF=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class jr extends FF{constructor(e,t=FF.now){super(e,()=>jr.delegate&&jr.delegate!==this?jr.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return jr.delegate&&jr.delegate!==this?jr.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const VF=new class sre extends jr{}(class rre extends Z1{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,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),ore=VF,BF=new jr(Z1),are=BF;function Zs(){}function $F(n,e,t){return function(r){return r.lift(new lre(n,e,t))}}class lre{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new cre(e,this.nextOrObserver,this.error,this.complete))}}class cre extends dn{constructor(e,t,i,r){super(e),this._tapNext=Zs,this._tapError=Zs,this._tapComplete=Zs,this._tapError=i||Zs,this._tapComplete=r||Zs,_h(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Zs,this._tapError=t.error||Zs,this._tapComplete=t.complete||Zs)}_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 ure=1;const dre=Promise.resolve(),Mp={};function HF(n){return n in Mp&&(delete Mp[n],!0)}const UF={setImmediate(n){const e=ure++;return Mp[e]=!0,dre.then(()=>HF(e)&&n()),e},clearImmediate(n){HF(n)}},J1=new class fre extends jr{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class hre extends Z1{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=UF.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(UF.clearImmediate(t),e.scheduled=void 0)}});function eS(n){return!Lc(n)&&n-parseFloat(n)+1>=0}class Pp extends rt{constructor(e,t=0,i=J1){super(),this.source=e,this.delayTime=t,this.scheduler=i,(!eS(t)||t<0)&&(this.delayTime=0),(!i||"function"!=typeof i.schedule)&&(this.scheduler=J1)}static create(e,t=0,i=J1){return new Pp(e,t,i)}static dispatch(e){const{source:t,subscriber:i}=e;return this.add(t.subscribe(i))}_subscribe(e){return this.scheduler.schedule(Pp.dispatch,this.delayTime,{source:this.source,subscriber:e})}}function zF(n,e=0){return function(i){return i.lift(new pre(n,e))}}class pre{constructor(e,t){this.scheduler=e,this.delay=t}call(e,t){return new Pp(t,this.delay,this.scheduler).subscribe(e)}}const gre=new rt(n=>n.complete());function vre({error:n,subscriber:e}){e.error(n)}class ir{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,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,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return Vu(this.value);case"E":return function _re(n,e){return new rt(e?t=>e.schedule(vre,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return function mre(n){return n?function yre(n){return new rt(e=>n.schedule(()=>e.complete()))}(n):gre}()}throw new Error("unexpected notification kind value")}static createNext(e){return typeof e<"u"?new ir("N",e):ir.undefinedValueNotification}static createError(e){return new ir("E",void 0,e)}static createComplete(){return ir.completeNotification}}function jF(n,e=0){return function(i){return i.lift(new bre(n,e))}}ir.completeNotification=new ir("C"),ir.undefinedValueNotification=new ir("N",void 0);class bre{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new Op(e,this.scheduler,this.delay))}}class Op extends dn{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Op.dispatch,this.delay,new wre(e,this.destination)))}_next(e){this.scheduleMessage(ir.createNext(e))}_error(e){this.scheduleMessage(ir.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(ir.createComplete()),this.unsubscribe()}}class wre{constructor(e,t){this.notification=e,this.destination=t}}const tS=new ll("7.4.1"),nS="__angularfire_symbol__analyticsIsSupportedValue",iS="__angularfire_symbol__analyticsIsSupported",rS="__angularfire_symbol__remoteConfigIsSupportedValue",sS="__angularfire_symbol__remoteConfigIsSupported",oS="__angularfire_symbol__messagingIsSupportedValue",aS="__angularfire_symbol__messagingIsSupported";globalThis[iS]||(globalThis[iS]=ere().then(n=>globalThis[nS]=n).catch(()=>globalThis[nS]=!1)),globalThis[aS]||(globalThis[aS]=EF().then(n=>globalThis[oS]=n).catch(()=>globalThis[oS]=!1)),globalThis[sS]||(globalThis[sS]=Vne().then(n=>globalThis[rS]=n).catch(()=>globalThis[rS]=!1));const uS=(n,e)=>{const t=e?[e]:FL(),i=[];return t.forEach(r=>{r.container.getProvider(n).instances.forEach(o=>{i.includes(o)||i.push(o)})}),i};function Bl(){}class GF{constructor(e,t=VF){this.zone=e,this.delegate=t}now(){return this.delegate.now()}schedule(e,t,i){const r=this.zone;return this.delegate.schedule(function(o){r.runGuarded(()=>{e.apply(this,[o])})},t,i)}}class Sre{constructor(e){this.zone=e,this.task=null}call(e,t){const i=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Bl,{},Bl,Bl)),t.pipe($F({next:i,complete:i,error:i})).subscribe(e).add(i)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let WF=(()=>{class n{constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new GF(Zone.current)),this.insideAngular=t.run(()=>new GF(Zone.current,BF)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return n.\u0275fac=function(t){return new(t||n)(ue(pt))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ta(){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 Cre(n){return ta().ngZone.runOutsideAngular(()=>n())}function na(n){return ta().ngZone.run(()=>n())}function Ere(n){return ta(),function Tre(n){return function(t){return(t=t.lift(new Sre(n.ngZone))).pipe(zF(n.outsideAngular),jF(n.insideAngular))}}(ta())(n)}const xre=(n,e)=>function(){const i=arguments;return e&&setTimeout(()=>{"scheduled"===e.state&&e.invoke()},10),na(()=>n.apply(void 0,i))},Ir=(n,e)=>function(){let t;const i=arguments;for(let s=0;s<arguments.length;s++)"function"==typeof i[s]&&(e&&(t||(t=na(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Bl,{},Bl,Bl)))),i[s]=xre(i[s],t));const r=Cre(()=>n.apply(this,i));if(!e){if(r instanceof rt){const s=ta();return r.pipe(zF(s.outsideAngular),jF(s.insideAngular))}return na(()=>r)}return r instanceof rt?r.pipe(Ere):r instanceof Promise?na(()=>new Promise((s,o)=>r.then(a=>na(()=>s(a)),a=>na(()=>o(a))))):"function"==typeof r&&t?function(){return setTimeout(()=>{t&&"scheduled"===t.state&&t.invoke()},10),r.apply(this,arguments)}:na(()=>r)};class $l{constructor(e){return e}}class qF{constructor(){return FL()}}const dS=new be("angularfire2._apps"),Are={provide:$l,useFactory:function Ire(n){return n&&1===n.length?n[0]:new $l(LL())},deps:[[new ci,dS]]},Dre={provide:qF,deps:[[new ci,dS]]};function kre(n){return(e,t)=>{const i=e.runOutsideAngular(()=>n(t));return new $l(i)}}let Mre=(()=>{class n{constructor(t){Ht("angularfire",tS.full,"core"),Ht("angularfire",tS.full,"app"),Ht("angular",pM.full,t.toString())}}return n.\u0275fac=function(t){return new(t||n)(ue(Pl))},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({providers:[Are,Dre]}),n})();function Pre(n,...e){return{ngModule:Mre,providers:[{provide:dS,useFactory:kre(n),multi:!0,deps:[pt,di,WF,...e]}]}}const Ore=Ir(RL,!0);function KF(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]])}return t}const Lre=function ZF(){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."}},JF=new zr("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."}),e3=new Rl("@firebase/auth");function Rp(n,...e){e3.logLevel<=Ue.ERROR&&e3.error(`Auth (${Tp}): ${n}`,...e)}function gi(n,...e){throw fS(n,...e)}function Gr(n,...e){return fS(n,...e)}function t3(n,e,t){const i=Object.assign(Object.assign({},Lre()),{[e]:t});return new zr("auth","Firebase",i).create(e,{appName:n.name})}function fS(n,...e){if("string"!=typeof n){const t=e[0],i=[...e.slice(1)];return i[0]&&(i[0].appName=n.name),n._errorFactory.create(t,...i)}return JF.create(n,...e)}function te(n,e,...t){if(!n)throw fS(e,...t)}function Wr(n){const e="INTERNAL ASSERTION FAILED: "+n;throw Rp(e),new Error(e)}function Js(n,e){n||Wr(e)}const n3=new Map;function As(n){Js(n instanceof Function,"Expected a class definition");let e=n3.get(n);return e?(Js(e instanceof n,"Instance stored in cache mismatched with class"),e):(e=new n,n3.set(n,e),e)}function i3(){var n;return typeof self<"u"&&(null===(n=self.location)||void 0===n?void 0:n.protocol)||null}class Xu{constructor(e,t){this.shortDelay=e,this.longDelay=t,Js(t>e,"Short delay should be less than long delay!"),this.isMobile=function JJ(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Oi())}()||function tee(){return"object"==typeof navigator&&"ReactNative"===navigator.product}()}get(){return function Bre(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function pS(){return"http:"===i3()||"https:"===i3()}()||rw()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}class r3{static initialize(e,t,i){this.fetchImpl=e,t&&(this.headersImpl=t),i&&(this.responseImpl=i)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:void Wr("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 Wr("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 Wr("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Hre={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"},Ure=new Xu(3e4,6e4);function fn(n,e,t,i){return mS.apply(this,arguments)}function mS(){return mS=k(function*(n,e,t,i,r={}){return s3(n,r,k(function*(){let s={},o={};i&&("GET"===e?o=i:s={body:JSON.stringify(i)});const a=IL(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),r3.fetch()(o3(n,n.config.apiHost,t,a),Object.assign({method:e,headers:l,referrerPolicy:"no-referrer"},s))}))}),mS.apply(this,arguments)}function s3(n,e,t){return yS.apply(this,arguments)}function yS(){return yS=k(function*(n,e,t){n._canInitEmulator=!1;const i=Object.assign(Object.assign({},Hre),e);try{const r=new zre(n),s=yield Promise.race([t(),r.promise]);r.clearNetworkTimeout();const o=yield s.json();if("needConfirmation"in o)throw Zu(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 Zu(n,"credential-already-in-use",o);if("EMAIL_EXISTS"===l)throw Zu(n,"email-already-in-use",o);if("USER_DISABLED"===l)throw Zu(n,"user-disabled",o);const u=i[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw t3(n,u,c);gi(n,u)}}catch(r){if(r instanceof xr)throw r;gi(n,"network-request-failed")}}),yS.apply(this,arguments)}function o3(n,e,t,i){const r=`${e}${t}?${i}`;return n.config.emulator?function gS(n,e){Js(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,r):`${n.config.apiScheme}://${r}`}class zre{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((t,i)=>{this.timer=setTimeout(()=>i(Gr(this.auth,"network-request-failed")),Ure.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Zu(n,e,t){const i={appName:n.name};t.email&&(i.email=t.email),t.phoneNumber&&(i.phoneNumber=t.phoneNumber);const r=Gr(n,e,i);return r.customData._tokenResponse=t,r}function vS(){return vS=k(function*(n,e){return fn(n,"POST","/v1/accounts:delete",e)}),vS.apply(this,arguments)}function Wre(n,e){return wS.apply(this,arguments)}function wS(){return wS=k(function*(n,e){return fn(n,"POST","/v1/accounts:lookup",e)}),wS.apply(this,arguments)}function Ju(n){if(n)try{const e=new Date(Number(n));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}function SS(){return SS=k(function*(n,e=!1){const t=nr(n),i=yield t.getIdToken(e),r=Lp(i);te(r&&r.exp&&r.auth_time&&r.iat,t.auth,"internal-error");const s="object"==typeof r.firebase?r.firebase:void 0,o=s?.sign_in_provider;return{claims:r,token:i,authTime:Ju(CS(r.auth_time)),issuedAtTime:Ju(CS(r.iat)),expirationTime:Ju(CS(r.exp)),signInProvider:o||null,signInSecondFactor:s?.sign_in_second_factor||null}}),SS.apply(this,arguments)}function CS(n){return 1e3*Number(n)}function Lp(n){var e;const[t,i,r]=n.split(".");if(void 0===t||void 0===i||void 0===r)return Rp("JWT malformed, contained fewer than 3 sections"),null;try{const s=_p(i);return s?JSON.parse(s):(Rp("Failed to decode base64 JWT payload"),null)}catch(s){return Rp("Caught error parsing JWT payload as JSON",null===(e=s)||void 0===e?void 0:e.toString()),null}}function ks(n,e){return ES.apply(this,arguments)}function ES(){return ES=k(function*(n,e,t=!1){if(t)return e;try{return yield e}catch(i){throw i instanceof xr&&Kre(i)&&n.auth.currentUser===n&&(yield n.auth.signOut()),i}}),ES.apply(this,arguments)}function Kre({code:n}){return"auth/user-disabled"===n||"auth/user-token-expired"===n}class Qre{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 i=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),i}{this.errorBackoff=3e4;const r=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,r)}}schedule(e=!1){var t=this;if(!this.isRunning)return;const i=this.getInterval(e);this.timerId=setTimeout(k(function*(){yield t.iteration()}),i)}iteration(){var e=this;return k(function*(){var t;try{yield e.user.getIdToken(!0)}catch(i){return void("auth/network-request-failed"===(null===(t=i)||void 0===t?void 0:t.code)&&e.schedule(!0))}e.schedule()})()}}class a3{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=Ju(this.lastLoginAt),this.creationTime=Ju(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function ed(n){return TS.apply(this,arguments)}function TS(){return TS=k(function*(n){var e;const t=n.auth,i=yield n.getIdToken(),r=yield ks(n,Wre(t,{idToken:i}));te(r?.users.length,t,"internal-error");const s=r.users[0];n._notifyReloadListener(s);const o=null!==(e=s.providerUserInfo)&&void 0!==e&&e.length?Jre(s.providerUserInfo):[],a=Zre(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 a3(s.createdAt,s.lastLoginAt),isAnonymous:u};Object.assign(n,d)}),TS.apply(this,arguments)}function xS(){return xS=k(function*(n){const e=nr(n);yield ed(e),yield e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}),xS.apply(this,arguments)}function Zre(n,e){return[...n.filter(i=>!e.some(r=>r.providerId===i.providerId)),...e]}function Jre(n){return n.map(e=>{var{providerId:t}=e,i=KF(e,["providerId"]);return{providerId:t,uid:i.rawId||"",displayName:i.displayName||null,email:i.email||null,phoneNumber:i.phoneNumber||null,photoURL:i.photoUrl||null}})}function IS(){return IS=k(function*(n,e){const t=yield s3(n,{},k(function*(){const i=IL({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:r,apiKey:s}=n.config,o=o3(n,r,"/v1/token",`key=${s}`),a=yield n._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",r3.fetch()(o,{method:"POST",headers:a,body:i})}));return{accessToken:t.access_token,expiresIn:t.expires_in,refreshToken:t.refresh_token}}),IS.apply(this,arguments)}class td{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 Yre(n){const e=Lp(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 i=this;return k(function*(){return te(!i.accessToken||i.refreshToken,e,"user-token-expired"),t||!i.accessToken||i.isExpired?i.refreshToken?(yield i.refresh(e,i.refreshToken),i.accessToken):null:i.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(e,t){var i=this;return k(function*(){const{accessToken:r,refreshToken:s,expiresIn:o}=yield function ese(n,e){return IS.apply(this,arguments)}(e,t);i.updateTokensAndExpiration(r,s,Number(o))})()}updateTokensAndExpiration(e,t,i){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*i}static fromJSON(e,t){const{refreshToken:i,accessToken:r,expirationTime:s}=t,o=new td;return i&&(te("string"==typeof i,"internal-error",{appName:e}),o.refreshToken=i),r&&(te("string"==typeof r,"internal-error",{appName:e}),o.accessToken=r),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 td,this.toJSON())}_performRefresh(){return Wr("not implemented")}}function eo(n,e){te("string"==typeof n||typeof n>"u","internal-error",{appName:e})}class ia{constructor(e){var{uid:t,auth:i,stsTokenManager:r}=e,s=KF(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Qre(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=i,this.stsTokenManager=r,this.accessToken=r.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 a3(s.createdAt||void 0,s.lastLoginAt||void 0)}getIdToken(e){var t=this;return k(function*(){const i=yield ks(t,t.stsTokenManager.getToken(t.auth,e));return te(i,t.auth,"internal-error"),t.accessToken!==i&&(t.accessToken=i,yield t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)),i})()}getIdTokenResult(e){return function qre(n){return SS.apply(this,arguments)}(this,e)}reload(){return function Xre(n){return xS.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 ia(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 i=this;return k(function*(){let r=!1;e.idToken&&e.idToken!==i.stsTokenManager.accessToken&&(i.stsTokenManager.updateFromServerResponse(e),r=!0),t&&(yield ed(i)),yield i.auth._persistUserIfCurrent(i),r&&i.auth._notifyListenersIfCurrent(i)})()}delete(){var e=this;return k(function*(){const t=yield e.getIdToken();return yield ks(e,function jre(n,e){return vS.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 i,r,s,o,a,l,c,u;const d=null!==(i=t.displayName)&&void 0!==i?i:void 0,h=null!==(r=t.email)&&void 0!==r?r: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:I,providerData:D,stsTokenManager:P}=t;te(y&&P,e,"internal-error");const j=td.fromJSON(this.name,P);te("string"==typeof y,e,"internal-error"),eo(d,e.name),eo(h,e.name),te("boolean"==typeof T,e,"internal-error"),te("boolean"==typeof I,e,"internal-error"),eo(f,e.name),eo(p,e.name),eo(g,e.name),eo(m,e.name),eo(_,e.name),eo(b,e.name);const q=new ia({uid:y,auth:e,email:h,emailVerified:T,displayName:d,isAnonymous:I,photoURL:p,phoneNumber:f,tenantId:g,stsTokenManager:j,createdAt:_,lastLoginAt:b});return D&&Array.isArray(D)&&(q.providerData=D.map(z=>Object.assign({},z))),m&&(q._redirectEventId=m),q}static _fromIdTokenResponse(e,t,i=!1){return k(function*(){const r=new td;r.updateFromServerResponse(t);const s=new ia({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:i});return yield ed(s),s})()}}const l3=(()=>{class n{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return k(function*(){return!0})()}_set(t,i){var r=this;return k(function*(){r.storage[t]=i})()}_get(t){var i=this;return k(function*(){const r=i.storage[t];return void 0===r?null:r})()}_remove(t){var i=this;return k(function*(){delete i.storage[t]})()}_addListener(t,i){}_removeListener(t,i){}}return n.type="NONE",n})();function Fp(n,e,t){return`firebase:${n}:${e}:${t}`}class Ul{constructor(e,t,i){this.persistence=e,this.auth=t,this.userKey=i;const{config:r,name:s}=this.auth;this.fullUserKey=Fp(this.userKey,r.apiKey,s),this.fullPersistenceKey=Fp("persistence",r.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 k(function*(){const t=yield e.persistence._get(e.fullUserKey);return t?ia._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 k(function*(){if(t.persistence===e)return;const i=yield t.getCurrentUser();return yield t.removeCurrentUser(),t.persistence=e,i?t.setCurrentUser(i):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(e,t,i="authUser"){return k(function*(){if(!t.length)return new Ul(As(l3),e,i);const r=(yield Promise.all(t.map(function(){var c=k(function*(u){if(yield u._isAvailable())return u});return function(u){return c.apply(this,arguments)}}()))).filter(c=>c);let s=r[0]||As(l3);const o=Fp(i,e.config.apiKey,e.name);let a=null;for(const c of t)try{const u=yield c._get(o);if(u){const d=ia._fromJSON(e,u);c!==s&&(a=d),s=c;break}}catch{}const l=r.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=k(function*(u){if(u!==s)try{yield u._remove(o)}catch{}});return function(u){return c.apply(this,arguments)}}())),new Ul(s,e,i)):new Ul(s,e,i)})()}}function c3(n){const e=n.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(function h3(n=Oi()){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 u3(n=Oi()){return/firefox\//i.test(n)}(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(function p3(n=Oi()){return/blackberry/i.test(n)}(e))return"Blackberry";if(function g3(n=Oi()){return/webos/i.test(n)}(e))return"Webos";if(function AS(n=Oi()){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 d3(n=Oi()){return/crios\//i.test(n)}(e))&&!e.includes("edge/"))return"Chrome";if(function f3(n=Oi()){return/android/i.test(n)}(e))return"Android";{const i=n.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===i?.length)return i[1]}return"Other"}function m3(n,e=[]){let t;switch(n){case"Browser":t=c3(Oi());break;case"Worker":t=`${c3(Oi())}-${n}`;break;default:t=n}const i=e.length?e.join(","):"FirebaseCore-web";return`${t}/JsCore/${Tp}/${i}`}class ise{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const i=s=>new Promise((o,a)=>{try{o(e(s))}catch(l){a(l)}});i.onAbort=t,this.queue.push(i);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}runMiddleware(e){var t=this;return k(function*(){var i;if(t.auth.currentUser===e)return;const r=[];try{for(const s of t.queue)yield s(e),s.onAbort&&r.push(s.onAbort)}catch(s){r.reverse();for(const o of r)try{o()}catch{}throw t.auth._errorFactory.create("login-blocked",{originalMessage:null===(i=s)||void 0===i?void 0:i.message})}})()}}class rse{constructor(e,t,i){this.app=e,this.heartbeatServiceProvider=t,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new y3(this),this.idTokenSubscription=new y3(this),this.beforeStateQueue=new ise(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=JF,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion}_initializeWithPersistence(e,t){var i=this;return t&&(this._popupRedirectResolver=As(t)),this._initializationPromise=this.queue(k(function*(){var r,s;if(!i._deleted&&(i.persistenceManager=yield Ul.create(i,e),!i._deleted)){if(null!==(r=i._popupRedirectResolver)&&void 0!==r&&r._shouldInitProactively)try{yield i._popupRedirectResolver._initialize(i)}catch{}yield i.initializeCurrentUser(t),i.lastNotifiedUid=(null===(s=i.currentUser)||void 0===s?void 0:s.uid)||null,!i._deleted&&(i._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var e=this;return k(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 k(function*(){var i;const r=yield t.assertedPersistence.getCurrentUser();let s=r,o=!1;if(e&&t.config.authDomain){yield t.getOrInitRedirectPersistenceManager();const a=null===(i=t.redirectUser)||void 0===i?void 0:i._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=r,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 k(function*(){let i=null;try{i=yield t._popupRedirectResolver._completeRedirectFn(t,e,!0)}catch{yield t._setRedirectUser(null)}return i})()}reloadAndSetCurrentUserOrClear(e){var t=this;return k(function*(){var i;try{yield ed(e)}catch(r){if("auth/network-request-failed"!==(null===(i=r)||void 0===i?void 0:i.code))return t.directlySetCurrentUser(null)}return t.directlySetCurrentUser(e)})()}useDeviceLanguage(){this.languageCode=function $re(){if(typeof navigator>"u")return null;const n=navigator;return n.languages&&n.languages[0]||n.language||null}()}_delete(){var e=this;return k(function*(){e._deleted=!0})()}updateCurrentUser(e){var t=this;return k(function*(){const i=e?nr(e):null;return i&&te(i.auth.config.apiKey===t.config.apiKey,t,"invalid-user-token"),t._updateCurrentUser(i&&i._clone(t))})()}_updateCurrentUser(e,t=!1){var i=this;return k(function*(){if(!i._deleted)return e&&te(i.tenantId===e.tenantId,i,"tenant-id-mismatch"),t||(yield i.beforeStateQueue.runMiddleware(e)),i.queue(k(function*(){yield i.directlySetCurrentUser(e),i.notifyAuthListeners()}))})()}signOut(){var e=this;return k(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(k(function*(){yield t.assertedPersistence.setPersistence(As(e))}))}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new zr("auth","Firebase",e())}onAuthStateChanged(e,t,i){return this.registerStateListener(this.authStateSubscription,e,t,i)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,i){return this.registerStateListener(this.idTokenSubscription,e,t,i)}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 i=this;return k(function*(){const r=yield i.getOrInitRedirectPersistenceManager(t);return null===e?r.removeCurrentUser():r.setCurrentUser(e)})()}getOrInitRedirectPersistenceManager(e){var t=this;return k(function*(){if(!t.redirectPersistenceManager){const i=e&&As(e)||t._popupRedirectResolver;te(i,t,"argument-error"),t.redirectPersistenceManager=yield Ul.create(t,[As(i._redirectPersistence)],"redirectUser"),t.redirectUser=yield t.redirectPersistenceManager.getCurrentUser()}return t.redirectPersistenceManager})()}_redirectUserForId(e){var t=this;return k(function*(){var i,r;return t._isInitialized&&(yield t.queue(k(function*(){}))),(null===(i=t._currentUser)||void 0===i?void 0:i._redirectEventId)===e?t._currentUser:(null===(r=t.redirectUser)||void 0===r?void 0:r._redirectEventId)===e?t.redirectUser:null})()}_persistUserIfCurrent(e){var t=this;return k(function*(){if(e===t.currentUser)return t.queue(k(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 i=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==i&&(this.lastNotifiedUid=i,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,i,r){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,i,r):e.addObserver(t)}directlySetCurrentUser(e){var t=this;return k(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=m3(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var e=this;return k(function*(){var t;const i={"X-Client-Version":e.clientVersion};e.app.options.appId&&(i["X-Firebase-gmpid"]=e.app.options.appId);const r=yield null===(t=e.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getHeartbeatsHeader();return r&&(i["X-Firebase-Client"]=r),i})()}}class y3{constructor(e){this.auth=e,this.observer=null,this.addObserver=function pee(n,e){const t=new gee(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 L3(n){return`__${n}${Math.floor(1e6*Math.random())}`})("rcb"),new Xu(3e4,6e4),new Xu(2e3,1e4),new Xu(3e4,6e4),new Xu(5e3,15e3);var Y3="@firebase/auth",K3="0.20.10";class Qoe{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 k(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(i=>{var r;e((null===(r=i)||void 0===r?void 0:r.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()}}ow(),function Zoe(n){ti(new Bn("auth",(e,{options:t})=>{const i=e.getProvider("app").getImmediate(),r=e.getProvider("heartbeat"),{apiKey:s,authDomain:o}=i.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:m3(n)},u=new rse(a,l,c);return function Vre(n,e){const t=e?.persistence||[],i=(Array.isArray(t)?t:[t]).map(As);e?.errorMap&&n._updateErrorMap(e.errorMap),n._initializeWithPersistence(i,e?.popupRedirectResolver)}(u,t),u})(i,r)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,i)=>{e.getProvider("auth-internal").initialize()})),ti(new Bn("auth-internal",e=>{const t=function mi(n){return nr(n)}(e.getProvider("auth").getImmediate());return new Qoe(t)},"PRIVATE").setInstantiationMode("EXPLICIT")),Ht(Y3,K3,function Xoe(n){switch(n){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(n)),Ht(Y3,K3,"esm2017")}("Browser");class Z3{constructor(){return uS("auth")}}const J3=new Map,sae={activated:!1,tokenObservers:[]},oae={initialized:!1,enabled:!1};function pn(n){return J3.get(n)||sae}function sr(n,e){J3.set(n,e)}function Kp(){return oae}class dae{constructor(e,t,i,r,s){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=i,this.lowerBound=r,this.upperBound=s,this.pending=null,this.nextErrorWaitInterval=r,r>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 k(function*(){t.stop();try{t.pending=new vp,yield function hae(n){return new Promise(e=>{setTimeout(e,n)})}(t.getNextRun(e)),t.pending.resolve(),yield t.pending.promise,t.pending=new vp,yield t.operation(),t.pending.resolve(),yield t.pending.promise,t.process(!0).catch(()=>{})}catch(i){t.retryPolicy(i)?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 ni=new zr("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 t4(n){if(!pn(n).activated)throw ni.create("use-before-activation",{appName:n.name})}function hE(n,e){return fE.apply(this,arguments)}function fE(){return fE=k(function*({url:n,body:e},t){var i,r;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 ni.create("fetch-network-error",{originalErrorMessage:null===(i=f)||void 0===i?void 0:i.message})}if(200!==l.status)throw ni.create("fetch-status-error",{httpStatus:l.status});try{c=yield l.json()}catch(f){throw ni.create("fetch-parse-error",{originalErrorMessage:null===(r=f)||void 0===r?void 0:r.message})}const u=c.ttl.match(/^([\d.]+)(s)$/);if(!u||!u[2]||isNaN(Number(u[1])))throw ni.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}}),fE.apply(this,arguments)}function mae(n,e){const{projectId:t,appId:i,apiKey:r}=n.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${t}/apps/${i}:exchangeDebugToken?key=${r}`,body:{debug_token:e}}}const od="firebase-app-check-store";let Zp=null;function i4(){return Zp||(Zp=new Promise((n,e)=>{var t;try{const i=indexedDB.open("firebase-app-check-database",1);i.onsuccess=r=>{n(r.target.result)},i.onerror=r=>{var s;e(ni.create("storage-open",{originalErrorMessage:null===(s=r.target.error)||void 0===s?void 0:s.message}))},i.onupgradeneeded=r=>{0===r.oldVersion&&r.target.result.createObjectStore(od,{keyPath:"compositeKey"})}}catch(i){e(ni.create("storage-open",{originalErrorMessage:null===(t=i)||void 0===t?void 0:t.message}))}}),Zp)}function pE(){return pE=k(function*(n,e){const i=(yield i4()).transaction(od,"readwrite"),s=i.objectStore(od).put({compositeKey:n,value:e});return new Promise((o,a)=>{s.onsuccess=l=>{o()},i.onerror=l=>{var c;a(ni.create("storage-set",{originalErrorMessage:null===(c=l.target.error)||void 0===c?void 0:c.message}))}})}),pE.apply(this,arguments)}const ad=new Rl("@firebase/app-check");function yE(n,e){return qo()?function bae(n,e){return function r4(n,e){return pE.apply(this,arguments)}(function o4(n){return`${n.options.appId}-${n.name}`}(n),e)}(n,e).catch(t=>{ad.warn(`Failed to write token to IndexedDB. Error: ${t}`)}):Promise.resolve()}function a4(){return Kp().enabled}function l4(){return vE.apply(this,arguments)}function vE(){return vE=k(function*(){const n=Kp();if(n.enabled&&n.token)return n.token.promise;throw Error("\n            Can't get debug token in production mode.\n        ")}),vE.apply(this,arguments)}const xae={error:"UNKNOWN_ERROR"};function Iae(n){return iw.encodeString(JSON.stringify(n),!1)}function Jp(n){return bE.apply(this,arguments)}function bE(){return bE=k(function*(n,e=!1){const t=n.app;t4(t);const i=pn(t);let s,r=i.token;if(r&&!zl(r)&&(sr(t,Object.assign(Object.assign({},i),{token:void 0})),r=void 0),!r){const l=yield i.cachedTokenPromise;l&&(zl(l)?r=l:yield yE(t,void 0))}if(!e&&r&&zl(r))return{token:r.token};let a,o=!1;if(a4()){i.exchangeTokenPromise||(i.exchangeTokenPromise=hE(mae(t,yield l4()),n.heartbeatServiceProvider).finally(()=>{i.exchangeTokenPromise=void 0}),o=!0);const l=yield i.exchangeTokenPromise;return yield yE(t,l),sr(t,Object.assign(Object.assign({},i),{token:l})),{token:l.token}}try{i.exchangeTokenPromise||(i.exchangeTokenPromise=i.provider.getToken().finally(()=>{i.exchangeTokenPromise=void 0}),o=!0),r=yield i.exchangeTokenPromise}catch(l){"appCheck/throttled"===l.code?ad.warn(l.message):ad.error(l),s=l}return r?s?a=zl(r)?{token:r.token,internalError:s}:d4(s):(a={token:r.token},sr(t,Object.assign(Object.assign({},i),{token:r})),yield yE(t,r)):a=d4(s),o&&u4(t,a),a}),bE.apply(this,arguments)}function SE(n,e){const t=pn(n),i=t.tokenObservers.filter(r=>r.next!==e);0===i.length&&t.tokenRefresher&&t.tokenRefresher.isRunning()&&t.tokenRefresher.stop(),sr(n,Object.assign(Object.assign({},t),{tokenObservers:i}))}function c4(n){const{app:e}=n,t=pn(e);let i=t.tokenRefresher;i||(i=function Aae(n){const{app:e}=n;return new dae(k(function*(){let i;if(i=pn(e).token?yield Jp(n,!0):yield Jp(n),i.error)throw i.error;if(i.internalError)throw i.internalError}),()=>!0,()=>{const t=pn(e);if(t.token){let i=t.token.issuedAtTimeMillis+.5*(t.token.expireTimeMillis-t.token.issuedAtTimeMillis)+3e5;return i=Math.min(i,t.token.expireTimeMillis-3e5),Math.max(0,i-Date.now())}return 0},3e4,96e4)}(n),sr(e,Object.assign(Object.assign({},t),{tokenRefresher:i}))),!i.isRunning()&&t.isTokenAutoRefreshEnabled&&i.start()}function u4(n,e){const t=pn(n).tokenObservers;for(const i of t)try{"EXTERNAL"===i.type&&null!=e.error?i.error(e.error):i.next(e)}catch{}}function zl(n){return n.expireTimeMillis-Date.now()>0}function d4(n){return{token:Iae(xae),error:n}}class Dae{constructor(e,t){this.app=e,this.heartbeatServiceProvider=t}_delete(){const{tokenObservers:e}=pn(this.app);for(const t of e)SE(this.app,t.next);return Promise.resolve()}}const v4="app-check-internal";!function zae(){ti(new Bn("app-check",n=>function kae(n,e){return new Dae(n,e)}(n.getProvider("app").getImmediate(),n.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((n,e,t)=>{n.getProvider(v4).initialize()})),ti(new Bn(v4,n=>function Mae(n){return{getToken:e=>Jp(n,e),addTokenListener:e=>function wE(n,e,t,i){const{app:r}=n,s=pn(r),o={next:t,error:i,type:e};if(sr(r,Object.assign(Object.assign({},s),{tokenObservers:[...s.tokenObservers,o]})),s.token&&zl(s.token)){const a=s.token;Promise.resolve().then(()=>{t({token:a.token}),c4(n)}).catch(()=>{})}s.cachedTokenPromise.then(()=>c4(n))}(n,"INTERNAL",e),removeTokenListener:e=>SE(n.app,e)}}(n.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),Ht("@firebase/app-check","0.5.15")}();class w4{constructor(){return uS("app-check")}}typeof window<"u"&&window;var he,Yae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ps={},IE=IE||{},Ie=Yae||self;function tg(){}function ig(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 ld(n){var e=typeof n;return"object"==e&&null!=n||"function"==e}var AE="closure_uid_"+(1e9*Math.random()>>>0),Qae=0;function Xae(n,e,t){return n.call.apply(n.bind,arguments)}function Zae(n,e,t){if(!n)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,i),n.apply(e,r)}}return function(){return n.apply(e,arguments)}}function $n(n,e,t){return($n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Xae:Zae).apply(null,arguments)}function rg(n,e){var t=Array.prototype.slice.call(arguments,1);return function(){var i=t.slice();return i.push.apply(i,arguments),n.apply(this,i)}}function En(n,e){function t(){}t.prototype=e.prototype,n.X=e.prototype,n.prototype=new t,n.prototype.constructor=n,n.Wb=function(i,r,s){for(var o=Array(arguments.length-2),a=2;a<arguments.length;a++)o[a-2]=arguments[a];return e.prototype[r].apply(i,o)}}function to(){this.s=this.s,this.o=this.o}var ele={};to.prototype.s=!1,to.prototype.na=function(){if(!this.s&&(this.s=!0,this.M(),0)){var n=function Kae(n){return Object.prototype.hasOwnProperty.call(n,AE)&&n[AE]||(n[AE]=++Qae)}(this);delete ele[n]}},to.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};const S4=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 DE(n){const e=n.length;if(0<e){const t=Array(e);for(let i=0;i<e;i++)t[i]=n[i];return t}return[]}function C4(n,e){for(let t=1;t<arguments.length;t++){const i=arguments[t];if(ig(i)){const r=n.length||0,s=i.length||0;n.length=r+s;for(let o=0;o<s;o++)n[r+o]=i[o]}else n.push(i)}}function Hn(n,e){this.type=n,this.g=this.target=e,this.defaultPrevented=!1}Hn.prototype.h=function(){this.defaultPrevented=!0};var tle=function(){if(!Ie.addEventListener||!Object.defineProperty)return!1;var n=!1,e=Object.defineProperty({},"passive",{get:function(){n=!0}});try{Ie.addEventListener("test",tg,e),Ie.removeEventListener("test",tg,e)}catch{}return n}();function sg(n){return/^[\s\xa0]*$/.test(n)}var E4=String.prototype.trim?function(n){return n.trim()}:function(n){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(n)[1]};function kE(n,e){return n<e?-1:n>e?1:0}function og(){var n=Ie.navigator;return n&&(n=n.userAgent)?n:""}function qr(n){return-1!=og().indexOf(n)}function ME(n){return ME[" "](n),n}ME[" "]=tg;var ag,ile=qr("Opera"),jl=qr("Trident")||qr("MSIE"),T4=qr("Edge"),PE=T4||jl,x4=qr("Gecko")&&!(-1!=og().toLowerCase().indexOf("webkit")&&!qr("Edge"))&&!(qr("Trident")||qr("MSIE"))&&!qr("Edge"),rle=-1!=og().toLowerCase().indexOf("webkit")&&!qr("Edge");function I4(){var n=Ie.document;return n?n.documentMode:void 0}e:{var OE="",NE=function(){var n=og();return x4?/rv:([^\);]+)(\)|;)/.exec(n):T4?/Edge\/([\d\.]+)/.exec(n):jl?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(n):rle?/WebKit\/(\S+)/.exec(n):ile?/(?:Version)[ \/]?(\S+)/.exec(n):void 0}();if(NE&&(OE=NE?NE[1]:""),jl){var RE=I4();if(null!=RE&&RE>parseFloat(OE)){ag=String(RE);break e}}ag=OE}var sle={};var ale=Ie.document&&jl&&(I4()||parseInt(ag,10))||void 0;function cd(n,e){if(Hn.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,i=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:null;if(this.target=n.target||n.srcElement,this.g=e,e=n.relatedTarget){if(x4){e:{try{ME(e.nodeName);var r=!0;break e}catch{}r=!1}r||(e=null)}}else"mouseover"==t?e=n.fromElement:"mouseout"==t&&(e=n.toElement);this.relatedTarget=e,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==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:lle[n.pointerType]||"",this.state=n.state,this.i=n,n.defaultPrevented&&cd.X.h.call(this)}}En(cd,Hn);var lle={2:"touch",3:"pen",4:"mouse"};cd.prototype.h=function(){cd.X.h.call(this);var n=this.i;n.preventDefault?n.preventDefault():n.returnValue=!1};var ud="closure_listenable_"+(1e6*Math.random()|0),cle=0;function ule(n,e,t,i,r){this.listener=n,this.proxy=null,this.src=e,this.type=t,this.capture=!!i,this.ha=r,this.key=++cle,this.ba=this.ea=!1}function lg(n){n.ba=!0,n.listener=null,n.proxy=null,n.src=null,n.ha=null}function FE(n,e,t){for(const i in n)e.call(t,n[i],i,n)}function D4(n){const e={};for(const t in n)e[t]=n[t];return e}const k4="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function M4(n,e){let t,i;for(let r=1;r<arguments.length;r++){for(t in i=arguments[r],i)n[t]=i[t];for(let s=0;s<k4.length;s++)t=k4[s],Object.prototype.hasOwnProperty.call(i,t)&&(n[t]=i[t])}}function cg(n){this.src=n,this.g={},this.h=0}function VE(n,e){var t=e.type;if(t in n.g){var s,i=n.g[t],r=S4(i,e);(s=0<=r)&&Array.prototype.splice.call(i,r,1),s&&(lg(e),0==n.g[t].length&&(delete n.g[t],n.h--))}}function BE(n,e,t,i){for(var r=0;r<n.length;++r){var s=n[r];if(!s.ba&&s.listener==e&&s.capture==!!t&&s.ha==i)return r}return-1}cg.prototype.add=function(n,e,t,i,r){var s=n.toString();(n=this.g[s])||(n=this.g[s]=[],this.h++);var o=BE(n,e,i,r);return-1<o?(e=n[o],t||(e.ea=!1)):((e=new ule(e,this.src,s,!!i,r)).ea=t,n.push(e)),e};var $E="closure_lm_"+(1e6*Math.random()|0),HE={};function P4(n,e,t,i,r){if(i&&i.once)return N4(n,e,t,i,r);if(Array.isArray(e)){for(var s=0;s<e.length;s++)P4(n,e[s],t,i,r);return null}return t=GE(t),n&&n[ud]?n.N(e,t,ld(i)?!!i.capture:!!i,r):O4(n,e,t,!1,i,r)}function O4(n,e,t,i,r,s){if(!e)throw Error("Invalid event type");var o=ld(r)?!!r.capture:!!r,a=zE(n);if(a||(n[$E]=a=new cg(n)),(t=a.add(e,t,i,o,s)).proxy)return t;if(i=function dle(){const e=hle;return function n(t){return e.call(n.src,n.listener,t)}}(),t.proxy=i,i.src=n,i.listener=t,n.addEventListener)tle||(r=o),void 0===r&&(r=!1),n.addEventListener(e.toString(),i,r);else if(n.attachEvent)n.attachEvent(L4(e.toString()),i);else{if(!n.addListener||!n.removeListener)throw Error("addEventListener and attachEvent are unavailable.");n.addListener(i)}return t}function N4(n,e,t,i,r){if(Array.isArray(e)){for(var s=0;s<e.length;s++)N4(n,e[s],t,i,r);return null}return t=GE(t),n&&n[ud]?n.O(e,t,ld(i)?!!i.capture:!!i,r):O4(n,e,t,!0,i,r)}function R4(n,e,t,i,r){if(Array.isArray(e))for(var s=0;s<e.length;s++)R4(n,e[s],t,i,r);else i=ld(i)?!!i.capture:!!i,t=GE(t),n&&n[ud]?(n=n.i,(e=String(e).toString())in n.g&&-1<(t=BE(s=n.g[e],t,i,r))&&(lg(s[t]),Array.prototype.splice.call(s,t,1),0==s.length&&(delete n.g[e],n.h--))):n&&(n=zE(n))&&(e=n.g[e.toString()],n=-1,e&&(n=BE(e,t,i,r)),(t=-1<n?e[n]:null)&&UE(t))}function UE(n){if("number"!=typeof n&&n&&!n.ba){var e=n.src;if(e&&e[ud])VE(e.i,n);else{var t=n.type,i=n.proxy;e.removeEventListener?e.removeEventListener(t,i,n.capture):e.detachEvent?e.detachEvent(L4(t),i):e.addListener&&e.removeListener&&e.removeListener(i),(t=zE(e))?(VE(t,n),0==t.h&&(t.src=null,e[$E]=null)):lg(n)}}}function L4(n){return n in HE?HE[n]:HE[n]="on"+n}function hle(n,e){if(n.ba)n=!0;else{e=new cd(e,this);var t=n.listener,i=n.ha||n.src;n.ea&&UE(n),n=t.call(i,e)}return n}function zE(n){return(n=n[$E])instanceof cg?n:null}var jE="__closure_events_fn_"+(1e9*Math.random()>>>0);function GE(n){return"function"==typeof n?n:(n[jE]||(n[jE]=function(e){return n.handleEvent(e)}),n[jE])}function gn(){to.call(this),this.i=new cg(this),this.P=this,this.I=null}function Tn(n,e){var t,i=n.I;if(i)for(t=[];i;i=i.I)t.push(i);if(n=n.P,i=e.type||e,"string"==typeof e)e=new Hn(e,n);else if(e instanceof Hn)e.target=e.target||n;else{var r=e;M4(e=new Hn(i,n),r)}if(r=!0,t)for(var s=t.length-1;0<=s;s--){var o=e.g=t[s];r=ug(o,i,!0,e)&&r}if(r=ug(o=e.g=n,i,!0,e)&&r,r=ug(o,i,!1,e)&&r,t)for(s=0;s<t.length;s++)r=ug(o=e.g=t[s],i,!1,e)&&r}function ug(n,e,t,i){if(!(e=n.i.g[String(e)]))return!0;e=e.concat();for(var r=!0,s=0;s<e.length;++s){var o=e[s];if(o&&!o.ba&&o.capture==t){var a=o.listener,l=o.ha||o.src;o.ea&&VE(n.i,o),r=!1!==a.call(l,i)&&r}}return r&&!i.defaultPrevented}En(gn,to),gn.prototype[ud]=!0,gn.prototype.removeEventListener=function(n,e,t,i){R4(this,n,e,t,i)},gn.prototype.M=function(){if(gn.X.M.call(this),this.i){var e,n=this.i;for(e in n.g){for(var t=n.g[e],i=0;i<t.length;i++)lg(t[i]);delete n.g[e],n.h--}}this.I=null},gn.prototype.N=function(n,e,t,i){return this.i.add(String(n),e,!1,t,i)},gn.prototype.O=function(n,e,t,i){return this.i.add(String(n),e,!0,t,i)};var WE=Ie.JSON.stringify;function fle(){var n=B4;let e=null;return n.g&&(e=n.g,n.g=n.g.next,n.g||(n.h=null),e.next=null),e}var qE,F4=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 gle,n=>n.reset());class gle{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 mle(n){Ie.setTimeout(()=>{throw n},0)}function V4(n,e){qE||function yle(){var n=Ie.Promise.resolve(void 0);qE=function(){n.then(_le)}}(),YE||(qE(),YE=!0),B4.add(n,e)}var YE=!1,B4=new class ple{constructor(){this.h=this.g=null}add(e,t){const i=F4.get();i.set(e,t),this.h?this.h.next=i:this.g=i,this.h=i}};function _le(){for(var n;n=fle();){try{n.h.call(n.g)}catch(t){mle(t)}var e=F4;e.j(n),100>e.h&&(e.h++,n.next=e.g,e.g=n)}YE=!1}function dg(n,e){gn.call(this),this.h=n||1,this.g=e||Ie,this.j=$n(this.lb,this),this.l=Date.now()}function KE(n){n.ca=!1,n.R&&(n.g.clearTimeout(n.R),n.R=null)}function QE(n,e,t){if("function"==typeof n)t&&(n=$n(n,t));else{if(!n||"function"!=typeof n.handleEvent)throw Error("Invalid listener argument");n=$n(n.handleEvent,n)}return 2147483647<Number(e)?-1:Ie.setTimeout(n,e||0)}function $4(n){n.g=QE(()=>{n.g=null,n.i&&(n.i=!1,$4(n))},n.j);const e=n.h;n.h=null,n.m.apply(null,e)}En(dg,gn),(he=dg.prototype).ca=!1,he.R=null,he.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),Tn(this,"tick"),this.ca&&(KE(this),this.start()))}},he.start=function(){this.ca=!0,this.R||(this.R=this.g.setTimeout(this.j,this.h),this.l=Date.now())},he.M=function(){dg.X.M.call(this),KE(this),delete this.g};class vle extends to{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:$4(this)}M(){super.M(),this.g&&(Ie.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function dd(n){to.call(this),this.h=n,this.g={}}En(dd,to);var H4=[];function U4(n,e,t,i){Array.isArray(t)||(t&&(H4[0]=t.toString()),t=H4);for(var r=0;r<t.length;r++){var s=P4(e,t[r],i||n.handleEvent,!1,n.h||n);if(!s)break;n.g[s.key]=s}}function z4(n){FE(n.g,function(e,t){this.g.hasOwnProperty(t)&&UE(e)},n),n.g={}}function hg(){this.g=!0}function Gl(n,e,t,i){n.info(function(){return"XMLHTTP TEXT ("+e+"): "+function Cle(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 i=t[n];if(!(2>i.length)){var r=i[1];if(Array.isArray(r)&&!(1>r.length)){var s=r[0];if("noop"!=s&&"stop"!=s&&"close"!=s)for(var o=1;o<r.length;o++)r[o]=""}}}return WE(t)}catch{return e}}(n,t)+(i?" "+i:"")})}dd.prototype.M=function(){dd.X.M.call(this),z4(this)},dd.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},hg.prototype.Aa=function(){this.g=!1},hg.prototype.info=function(){};var aa={},j4=null;function fg(){return j4=j4||new gn}function G4(n){Hn.call(this,aa.Pa,n)}function hd(n){const e=fg();Tn(e,new G4(e,n))}function W4(n,e){Hn.call(this,aa.STAT_EVENT,n),this.stat=e}function ii(n){const e=fg();Tn(e,new W4(e,n))}function q4(n,e){Hn.call(this,aa.Qa,n),this.size=e}function fd(n,e){if("function"!=typeof n)throw Error("Fn must not be null and must be a function");return Ie.setTimeout(function(){n()},e)}aa.Pa="serverreachability",En(G4,Hn),aa.STAT_EVENT="statevent",En(W4,Hn),aa.Qa="timingevent",En(q4,Hn);var pg={NO_ERROR:0,mb:1,zb:2,yb:3,tb:4,xb:5,Ab:6,Ma:7,TIMEOUT:8,Db:9},Y4={rb:"complete",Nb:"success",Na:"error",Ma:"abort",Fb:"ready",Gb:"readystatechange",TIMEOUT:"timeout",Bb:"incrementaldata",Eb:"progress",ub:"downloadprogress",Vb:"uploadprogress"};function XE(){}function Q4(){}XE.prototype.h=null;var eT,pd={OPEN:"a",qb:"b",Na:"c",Cb:"d"};function ZE(){Hn.call(this,"d")}function JE(){Hn.call(this,"c")}function gg(){}function gd(n,e,t,i){this.l=n,this.j=e,this.m=t,this.U=i||1,this.S=new dd(this),this.O=Ele,this.T=new dg(n=PE?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 X4}function X4(){this.i=null,this.g="",this.h=!1}En(ZE,Hn),En(JE,Hn),En(gg,XE),gg.prototype.g=function(){return new XMLHttpRequest},gg.prototype.i=function(){return{}},eT=new gg;var Ele=45e3,tT={},mg={};function nT(n,e,t){n.K=1,n.v=bg(Os(e)),n.s=t,n.P=!0,Z4(n,null)}function Z4(n,e){n.F=Date.now(),md(n),n.A=Os(n.v);var t=n.A,i=n.U;Array.isArray(i)||(i=[String(i)]),lV(t.i,"t",i),n.C=0,t=n.l.H,n.h=new X4,n.g=PV(n.l,t?e:null,!n.s),0<n.N&&(n.L=new vle($n(n.La,n,n.g),n.N)),U4(n.S,n.g,"readystatechange",n.ib),e=n.H?D4(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)),hd(1),function ble(n,e,t,i,r,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 ("+i+") [attempt "+r+"]: "+e+"\n"+t+"\n"+o})}(n.j,n.u,n.A,n.m,n.U,n.s)}function J4(n){return!!n.g&&"GET"==n.u&&2!=n.K&&n.l.Da}function eV(n,e,t){let r,i=!0;for(;!n.I&&n.C<t.length;){if(r=Tle(n,t),r==mg){4==e&&(n.o=4,ii(14),i=!1),Gl(n.j,n.m,null,"[Incomplete Response]");break}if(r==tT){n.o=4,ii(15),Gl(n.j,n.m,t,"[Invalid Chunk]"),i=!1;break}Gl(n.j,n.m,r,null),iT(n,r)}J4(n)&&r!=mg&&r!=tT&&(n.h.g="",n.C=0),4!=e||0!=t.length||n.h.h||(n.o=1,ii(16),i=!1),n.i=n.i&&i,i?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),dT(e),e.K=!0,ii(11))):(Gl(n.j,n.m,t,"[Invalid Chunked Response]"),la(n),yd(n))}function Tle(n,e){var t=n.C,i=e.indexOf("\n",t);return-1==i?mg:(t=Number(e.substring(t,i)),isNaN(t)?tT:(i+=1)+t>e.length?mg:(e=e.substr(i,t),n.C=i+t,e))}function md(n){n.V=Date.now()+n.O,tV(n,n.O)}function tV(n,e){if(null!=n.B)throw Error("WatchDog timer not null");n.B=fd($n(n.gb,n),e)}function yg(n){n.B&&(Ie.clearTimeout(n.B),n.B=null)}function yd(n){0==n.l.G||n.I||AV(n.l,n)}function la(n){yg(n);var e=n.L;e&&"function"==typeof e.na&&e.na(),n.L=null,KE(n.T),z4(n.S),n.g&&(e=n.g,n.g=null,e.abort(),e.na())}function iT(n,e){try{var t=n.l;if(0!=t.G&&(t.g==n||rT(t.h,n)))if(!n.J&&rT(t.h,n)&&3==t.G){try{var i=t.Fa.g.parse(e)}catch{i=null}if(Array.isArray(i)&&3==i.length){var r=i;if(0==r[0]){e:if(!t.u){if(t.g){if(!(t.g.F+3e3<n.F))break e;xg(t),Eg(t)}uT(t),ii(18)}}else t.Ba=r[1],0<t.Ba-t.T&&37500>r[2]&&t.L&&0==t.A&&!t.v&&(t.v=fd($n(t.cb,t),6e3));if(1>=dV(t.h)&&t.ja){try{t.ja()}catch{}t.ja=void 0}}else ua(t,11)}else if((n.J||t.g==n)&&xg(t),!sg(e))for(r=t.Fa.g.parse(e),e=0;e<r.length;e++){let c=r[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=i=1.5*h,t.j.info("backChannelRequestTimeoutMs_="+i)),i=t;const f=n.g;if(f){const p=f.g?f.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(p){var s=i.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&&(sT(s,s.h),s.h=null))}if(i.D){const g=f.g?f.g.getResponseHeader("X-HTTP-Session-Id"):null;g&&(i.za=g,Ct(i.F,i.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((i=t).sa=MV(i,i.H?i.ka:null,i.V),o.J){hV(i.h,o);var a=o,l=i.J;l&&a.setTimeout(l),a.B&&(yg(a),md(a)),i.g=o}else xV(i);0<t.i.length&&Tg(t)}else"stop"!=c[0]&&"close"!=c[0]||ua(t,7);else 3==t.G&&("stop"==c[0]||"close"==c[0]?"stop"==c[0]?ua(t,7):cT(t):"noop"!=c[0]&&t.l&&t.l.wa(c),t.A=0)}hd(4)}catch{}}function nV(n,e){if(n.forEach&&"function"==typeof n.forEach)n.forEach(e,void 0);else if(ig(n)||"string"==typeof n)Array.prototype.forEach.call(n,e,void 0);else for(var t=function Ile(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(ig(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 i in n)e[t++]=i;return e}}}(n),i=function xle(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(ig(n)){for(var e=[],t=n.length,i=0;i<t;i++)e.push(n[i]);return e}for(i in e=[],t=0,n)e[t++]=n[i];return e}(n),r=i.length,s=0;s<r;s++)e.call(void 0,i[s],t&&t[s],n)}(he=gd.prototype).setTimeout=function(n){this.O=n},he.ib=function(n){n=n.target;const e=this.L;e&&3==Ns(n)?e.l():this.La(n)},he.La=function(n){try{if(n==this.g)e:{const u=Ns(this.g);var e=this.g.Ea();const d=this.g.aa();if(!(3>u)&&(3!=u||PE||this.g&&(this.h.h||this.g.fa()||bV(this.g)))){this.I||4!=u||7==e||hd(8==e||0>=d?3:2),yg(this);var t=this.g.aa();this.Y=t;t:if(J4(this)){var i=bV(this.g);n="";var r=i.length,s=4==Ns(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){la(this),yd(this);var o="";break t}this.h.i=new Ie.TextDecoder}for(e=0;e<r;e++)this.h.h=!0,n+=this.h.i.decode(i[e],{stream:s&&e==r-1});i.splice(0,r),this.h.g+=n,this.C=0,o=this.h.g}else o=this.g.fa();if(this.i=200==t,function wle(n,e,t,i,r,s,o){n.info(function(){return"XMLHTTP RESP ("+i+") [ attempt "+r+"]: "+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)&&!sg(a)){var c=a;break t}}c=null}if(!(t=c)){this.i=!1,this.o=3,ii(12),la(this),yd(this);break e}Gl(this.j,this.m,t,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,iT(this,t)}this.P?(eV(this,u,o),PE&&this.i&&3==u&&(U4(this.S,this.T,"tick",this.hb),this.T.start())):(Gl(this.j,this.m,o,null),iT(this,o)),4==u&&la(this),this.i&&!this.I&&(4==u?AV(this.l,this):(this.i=!1,md(this)))}else 400==t&&0<o.indexOf("Unknown SID")?(this.o=3,ii(12)):(this.o=0,ii(13)),la(this),yd(this)}}}catch{}},he.hb=function(){if(this.g){var n=Ns(this.g),e=this.g.fa();this.C<e.length&&(yg(this),eV(this,n,e),this.i&&4!=n&&md(this))}},he.cancel=function(){this.I=!0,la(this)},he.gb=function(){this.B=null;const n=Date.now();0<=n-this.V?(function Sle(n,e){n.info(function(){return"TIMEOUT: "+e})}(this.j,this.A),2!=this.K&&(hd(3),ii(17)),la(this),this.o=2,yd(this)):tV(this,this.V-n)};var iV=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function ca(n,e){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,n instanceof ca){this.h=void 0!==e?e:n.h,_g(this,n.j),this.s=n.s,this.g=n.g,vg(this,n.m),this.l=n.l,e=n.i;var t=new bd;t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),rV(this,t),this.o=n.o}else n&&(t=String(n).match(iV))?(this.h=!!e,_g(this,t[1]||"",!0),this.s=_d(t[2]||""),this.g=_d(t[3]||"",!0),vg(this,t[4]),this.l=_d(t[5]||"",!0),rV(this,t[6]||"",!0),this.o=_d(t[7]||"")):(this.h=!!e,this.i=new bd(null,this.h))}function Os(n){return new ca(n)}function _g(n,e,t){n.j=t?_d(e,!0):e,n.j&&(n.j=n.j.replace(/:$/,""))}function vg(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 rV(n,e,t){e instanceof bd?(n.i=e,function Nle(n,e){e&&!n.j&&(no(n),n.i=null,n.g.forEach(function(t,i){var r=i.toLowerCase();i!=r&&(oV(this,i),lV(this,r,t))},n)),n.j=e}(n.i,n.h)):(t||(e=vd(e,Ple)),n.i=new bd(e,n.h))}function Ct(n,e,t){n.i.set(e,t)}function bg(n){return Ct(n,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),n}function _d(n,e){return n?e?decodeURI(n.replace(/%25/g,"%2525")):decodeURIComponent(n):""}function vd(n,e,t){return"string"==typeof n?(n=encodeURI(n).replace(e,Dle),t&&(n=n.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n):null}function Dle(n){return"%"+((n=n.charCodeAt(0))>>4&15).toString(16)+(15&n).toString(16)}ca.prototype.toString=function(){var n=[],e=this.j;e&&n.push(vd(e,sV,!0),":");var t=this.g;return(t||"file"==e)&&(n.push("//"),(e=this.s)&&n.push(vd(e,sV,!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(vd(t,"/"==t.charAt(0)?Mle:kle,!0))),(t=this.i.toString())&&n.push("?",t),(t=this.o)&&n.push("#",vd(t,Ole)),n.join("")};var sV=/[#\/\?@]/g,kle=/[#\?:]/g,Mle=/[#\?]/g,Ple=/[#\?@]/g,Ole=/#/g;function bd(n,e){this.h=this.g=null,this.i=n||null,this.j=!!e}function no(n){n.g||(n.g=new Map,n.h=0,n.i&&function Ale(n,e){if(n){n=n.split("&");for(var t=0;t<n.length;t++){var i=n[t].indexOf("="),r=null;if(0<=i){var s=n[t].substring(0,i);r=n[t].substring(i+1)}else s=n[t];e(s,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(n.i,function(e,t){n.add(decodeURIComponent(e.replace(/\+/g," ")),t)}))}function oV(n,e){no(n),e=Wl(n,e),n.g.has(e)&&(n.i=null,n.h-=n.g.get(e).length,n.g.delete(e))}function aV(n,e){return no(n),e=Wl(n,e),n.g.has(e)}function lV(n,e,t){oV(n,e),0<t.length&&(n.i=null,n.g.set(Wl(n,e),DE(t)),n.h+=t.length)}function Wl(n,e){return e=String(e),n.j&&(e=e.toLowerCase()),e}function cV(n){this.l=n||Lle,n=Ie.PerformanceNavigationTiming?0<(n=Ie.performance.getEntriesByType("navigation")).length&&("hq"==n[0].nextHopProtocol||"h2"==n[0].nextHopProtocol):!!(Ie.g&&Ie.g.Ga&&Ie.g.Ga()&&Ie.g.Ga().$b),this.j=n?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}(he=bd.prototype).add=function(n,e){no(this),this.i=null,n=Wl(this,n);var t=this.g.get(n);return t||this.g.set(n,t=[]),t.push(e),this.h+=1,this},he.forEach=function(n,e){no(this),this.g.forEach(function(t,i){t.forEach(function(r){n.call(e,r,i,this)},this)},this)},he.oa=function(){no(this);const n=Array.from(this.g.values()),e=Array.from(this.g.keys()),t=[];for(let i=0;i<e.length;i++){const r=n[i];for(let s=0;s<r.length;s++)t.push(e[i])}return t},he.W=function(n){no(this);let e=[];if("string"==typeof n)aV(this,n)&&(e=e.concat(this.g.get(Wl(this,n))));else{n=Array.from(this.g.values());for(let t=0;t<n.length;t++)e=e.concat(n[t])}return e},he.set=function(n,e){return no(this),this.i=null,aV(this,n=Wl(this,n))&&(this.h-=this.g.get(n).length),this.g.set(n,[e]),this.h+=1,this},he.get=function(n,e){return n&&0<(n=this.W(n)).length?String(n[0]):e},he.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 i=e[t];const s=encodeURIComponent(String(i)),o=this.W(i);for(i=0;i<o.length;i++){var r=s;""!==o[i]&&(r+="="+encodeURIComponent(String(o[i]))),n.push(r)}}return this.i=n.join("&")};var Lle=10;function uV(n){return!!n.h||!!n.g&&n.g.size>=n.j}function dV(n){return n.h?1:n.g?n.g.size:0}function rT(n,e){return n.h?n.h==e:!!n.g&&n.g.has(e)}function sT(n,e){n.g?n.g.add(e):n.h=e}function hV(n,e){n.h&&n.h==e?n.h=null:n.g&&n.g.has(e)&&n.g.delete(e)}function fV(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 DE(n.i)}function oT(){}function Fle(){this.g=new oT}function Vle(n,e,t){const i=t||"";try{nV(n,function(r,s){let o=r;ld(r)&&(o=WE(r)),e.push(i+s+"="+encodeURIComponent(o))})}catch(r){throw e.push(i+"type="+encodeURIComponent("_badmap")),r}}function wg(n,e,t,i,r){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,r(i)}catch{}}function wd(n){this.l=n.ac||null,this.j=n.jb||!1}function Sg(n,e){gn.call(this),this.D=n,this.u=e,this.m=void 0,this.readyState=aT,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}cV.prototype.cancel=function(){if(this.i=fV(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()}},oT.prototype.stringify=function(n){return Ie.JSON.stringify(n,void 0)},oT.prototype.parse=function(n){return Ie.JSON.parse(n,void 0)},En(wd,XE),wd.prototype.g=function(){return new Sg(this.l,this.j)},wd.prototype.i=function(n){return function(){return n}}({}),En(Sg,gn);var aT=0;function pV(n){n.j.read().then(n.Ta.bind(n)).catch(n.ga.bind(n))}function Sd(n){n.readyState=4,n.l=null,n.j=null,n.A=null,Cd(n)}function Cd(n){n.onreadystatechange&&n.onreadystatechange.call(n)}(he=Sg.prototype).open=function(n,e){if(this.readyState!=aT)throw this.abort(),Error("Error reopening a connection");this.C=n,this.B=e,this.readyState=1,Cd(this)},he.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||Ie).fetch(new Request(this.B,e)).then(this.Wa.bind(this),this.ga.bind(this))},he.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,Sd(this)),this.readyState=aT},he.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,Cd(this)),this.g&&(this.readyState=3,Cd(this),this.g)))if("arraybuffer"===this.responseType)n.arrayBuffer().then(this.Ua.bind(this),this.ga.bind(this));else if(typeof Ie.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;pV(this)}else n.text().then(this.Va.bind(this),this.ga.bind(this))},he.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?Sd(this):Cd(this),3==this.readyState&&pV(this)}},he.Va=function(n){this.g&&(this.response=this.responseText=n,Sd(this))},he.Ua=function(n){this.g&&(this.response=n,Sd(this))},he.ga=function(){this.g&&Sd(this)},he.setRequestHeader=function(n,e){this.v.append(n,e)},he.getResponseHeader=function(n){return this.h&&this.h.get(n.toLowerCase())||""},he.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(Sg.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(n){this.m=n?"include":"same-origin"}});var $le=Ie.JSON.parse;function Ot(n){gn.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=gV,this.K=this.L=!1}En(Ot,gn);var gV="",Hle=/^https?$/i,Ule=["POST","PUT"];function mV(n,e){n.h=!1,n.g&&(n.l=!0,n.g.abort(),n.l=!1),n.j=e,n.m=5,yV(n),Cg(n)}function yV(n){n.D||(n.D=!0,Tn(n,"complete"),Tn(n,"error"))}function _V(n){if(n.h&&typeof IE<"u"&&(!n.C[1]||4!=Ns(n)||2!=n.aa()))if(n.v&&4==Ns(n))QE(n.Ha,0,n);else if(Tn(n,"readystatechange"),4==Ns(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 i;if(i=0===a){var r=String(n.H).match(iV)[1]||null;if(!r&&Ie.self&&Ie.self.location){var s=Ie.self.location.protocol;r=s.substr(0,s.length-1)}i=!Hle.test(r?r.toLowerCase():"")}t=i}if(t)Tn(n,"complete"),Tn(n,"success");else{n.m=6;try{var o=2<Ns(n)?n.g.statusText:""}catch{o=""}n.j=o+" ["+n.aa()+"]",yV(n)}}finally{Cg(n)}}}function Cg(n,e){if(n.g){vV(n);const t=n.g,i=n.C[0]?tg:null;n.g=null,n.C=null,e||Tn(n,"ready");try{t.onreadystatechange=i}catch{}}}function vV(n){n.g&&n.K&&(n.g.ontimeout=null),n.A&&(Ie.clearTimeout(n.A),n.A=null)}function Ns(n){return n.g?n.g.readyState:0}function bV(n){try{if(!n.g)return null;if("response"in n.g)return n.g.response;switch(n.J){case gV:case"text":return n.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in n.g)return n.g.mozResponseArrayBuffer}return null}catch{return null}}function wV(n){let e="";return FE(n,function(t,i){e+=i,e+=":",e+=t,e+="\r\n"}),e}function lT(n,e,t){e:{for(i in t){var i=!1;break e}i=!0}i||(t=wV(t),"string"==typeof n?null!=t&&encodeURIComponent(String(t)):Ct(n,e,t))}function Ed(n,e,t){return t&&t.internalChannelParams&&t.internalChannelParams[n]||e}function SV(n){this.Ca=0,this.i=[],this.j=new hg,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=Ed("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=Ed("baseRetryDelayMs",5e3,n),this.bb=Ed("retryDelaySeedMs",1e4,n),this.$a=Ed("forwardChannelMaxRetries",2,n),this.ta=Ed("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 cV(n&&n.concurrentRequestLimit),this.Fa=new Fle,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(CV(n),3==n.G){var e=n.U++,t=Os(n.F);Ct(t,"SID",n.I),Ct(t,"RID",e),Ct(t,"TYPE","terminate"),Td(n,t),(e=new gd(n,n.j,e,void 0)).K=2,e.v=bg(Os(t)),t=!1,Ie.navigator&&Ie.navigator.sendBeacon&&(t=Ie.navigator.sendBeacon(e.v.toString(),"")),!t&&Ie.Image&&((new Image).src=e.v,t=!0),t||(e.g=PV(e.l,null),e.g.da(e.v)),e.F=Date.now(),md(e)}kV(n)}function Eg(n){n.g&&(dT(n),n.g.cancel(),n.g=null)}function CV(n){Eg(n),n.u&&(Ie.clearTimeout(n.u),n.u=null),xg(n),n.h.cancel(),n.m&&("number"==typeof n.m&&Ie.clearTimeout(n.m),n.m=null)}function Tg(n){uV(n.h)||n.m||(n.m=!0,V4(n.Ja,n),n.C=0)}function EV(n,e){var t;t=e?e.m:n.U++;const i=Os(n.F);Ct(i,"SID",n.I),Ct(i,"RID",t),Ct(i,"AID",n.T),Td(n,i),n.o&&n.s&&lT(i,n.o,n.s),t=new gd(n,n.j,t,n.C+1),null===n.o&&(t.H=n.s),e&&(n.i=e.D.concat(n.i)),e=TV(n,t,1e3),t.setTimeout(Math.round(.5*n.ta)+Math.round(.5*n.ta*Math.random())),sT(n.h,t),nT(t,i,e)}function Td(n,e){n.ia&&FE(n.ia,function(t,i){Ct(e,i,t)}),n.l&&nV({},function(t,i){Ct(e,i,t)})}function TV(n,e,t){t=Math.min(n.i.length,t);var i=n.l?$n(n.l.Ra,n.l,n):null;e:{var r=n.i;let s=-1;for(;;){const o=["count="+t];-1==s?0<t?(s=r[0].h,o.push("ofs="+s)):s=0:o.push("ofs="+s);let a=!0;for(let l=0;l<t;l++){let c=r[l].h;const u=r[l].g;if(c-=s,0>c)s=Math.max(0,r[l].h-100),a=!1;else try{Vle(u,o,"req"+c+"_")}catch{i&&i(u)}}if(a){i=o.join("&");break e}}}return n=n.i.splice(0,t),e.D=n,i}function xV(n){n.g||n.u||(n.Z=1,V4(n.Ia,n),n.A=0)}function uT(n){return!(n.g||n.u||3<=n.A||(n.Z++,n.u=fd($n(n.Ia,n),DV(n,n.A)),n.A++,0))}function dT(n){null!=n.B&&(Ie.clearTimeout(n.B),n.B=null)}function IV(n){n.g=new gd(n,n.j,"rpc",n.Z),null===n.o&&(n.g.H=n.s),n.g.N=0;var e=Os(n.sa);Ct(e,"RID","rpc"),Ct(e,"SID",n.I),Ct(e,"CI",n.L?"0":"1"),Ct(e,"AID",n.T),Ct(e,"TYPE","xmlhttp"),Td(n,e),n.o&&n.s&&lT(e,n.o,n.s),n.J&&n.g.setTimeout(n.J);var t=n.g;n=n.ka,t.K=1,t.v=bg(Os(e)),t.s=null,t.P=!0,Z4(t,n)}function xg(n){null!=n.v&&(Ie.clearTimeout(n.v),n.v=null)}function AV(n,e){var t=null;if(n.g==e){xg(n),dT(n),n.g=null;var i=2}else{if(!rT(n.h,e))return;t=e.D,hV(n.h,e),i=1}if(0!=n.G)if(n.pa=e.Y,e.i)if(1==i){t=e.s?e.s.length:0,e=Date.now()-e.F;var r=n.C;Tn(i=fg(),new q4(i,t,e,r)),Tg(n)}else xV(n);else if(3==(r=e.o)||0==r&&0<n.pa||!(1==i&&function jle(n,e){return!(dV(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=fd($n(n.Ja,n,e),DV(n,n.C)),n.C++,0)))}(n,e)||2==i&&uT(n)))switch(t&&0<t.length&&(e=n.h,e.i=e.i.concat(t)),r){case 1:ua(n,5);break;case 4:ua(n,10);break;case 3:ua(n,6);break;default:ua(n,2)}}function DV(n,e){let t=n.Xa+Math.floor(Math.random()*n.bb);return n.l||(t*=2),t*e}function ua(n,e){if(n.j.info("Error code "+e),2==e){var t=null;n.l&&(t=null);var i=$n(n.kb,n);t||(t=new ca("//www.google.com/images/cleardot.gif"),Ie.location&&"http"==Ie.location.protocol||_g(t,"https"),bg(t)),function Ble(n,e){const t=new hg;if(Ie.Image){const i=new Image;i.onload=rg(wg,t,i,"TestLoadImage: loaded",!0,e),i.onerror=rg(wg,t,i,"TestLoadImage: error",!1,e),i.onabort=rg(wg,t,i,"TestLoadImage: abort",!1,e),i.ontimeout=rg(wg,t,i,"TestLoadImage: timeout",!1,e),Ie.setTimeout(function(){i.ontimeout&&i.ontimeout()},1e4),i.src=n}else e(!1)}(t.toString(),i)}else ii(2);n.G=0,n.l&&n.l.va(e),kV(n),CV(n)}function kV(n){if(n.G=0,n.la=[],n.l){const e=fV(n.h);(0!=e.length||0!=n.i.length)&&(C4(n.la,e),C4(n.la,n.i),n.h.i.length=0,DE(n.i),n.i.length=0),n.l.ua()}}function MV(n,e,t){var i=t instanceof ca?Os(t):new ca(t,void 0);if(""!=i.g)e&&(i.g=e+"."+i.g),vg(i,i.m);else{var r=Ie.location;i=r.protocol,e=e?e+"."+r.hostname:r.hostname,r=+r.port;var s=new ca(null,void 0);i&&_g(s,i),e&&(s.g=e),r&&vg(s,r),t&&(s.l=t),i=s}return e=n.za,(t=n.D)&&e&&Ct(i,t,e),Ct(i,"VER",n.ma),Td(n,i),i}function PV(n,e,t){if(e&&!n.H)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new Ot(t&&n.Da&&!n.ra?new wd({jb:!0}):n.ra)).Ka(n.H),e}function OV(){}function Ig(){if(jl&&!(10<=Number(ale)))throw Error("Environmental error: no available transport.")}function Ri(n,e){gn.call(this),this.g=new SV(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)&&!sg(n)&&(this.g.o=n),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!sg(e)&&(this.g.D=e,null!==(n=this.h)&&e in n&&e in(n=this.h)&&delete n[e]),this.j=new ql(this)}function NV(n){ZE.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 RV(){JE.call(this),this.status=1}function ql(n){this.g=n}(he=Ot.prototype).Ka=function(n){this.L=n},he.da=function(n,e,t,i){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():eT.g(),this.C=function K4(n){return n.h||(n.h=n.i())}(this.u?this.u:eT),this.g.onreadystatechange=$n(this.Ha,this);try{this.F=!0,this.g.open(e,String(n),!0),this.F=!1}catch(s){return void mV(this,s)}if(n=t||"",t=new Map(this.headers),i)if(Object.getPrototypeOf(i)===Object.prototype)for(var r in i)t.set(r,i[r]);else{if("function"!=typeof i.keys||"function"!=typeof i.get)throw Error("Unknown input type for opt_headers: "+String(i));for(const s of i.keys())t.set(s,i.get(s))}i=Array.from(t.keys()).find(s=>"content-type"==s.toLowerCase()),r=Ie.FormData&&n instanceof Ie.FormData,!(0<=S4(Ule,e))||i||r||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{vV(this),0<this.B&&((this.K=function zle(n){return jl&&function ole(){return function nle(n){var e=sle;return Object.prototype.hasOwnProperty.call(e,9)?e[9]:e[9]=n(9)}(function(){let n=0;const e=E4(String(ag)).split("."),t=E4("9").split("."),i=Math.max(e.length,t.length);for(let o=0;0==n&&o<i;o++){var r=e[o]||"",s=t[o]||"";do{if(r=/(\d*)(\D*)(.*)/.exec(r)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==r[0].length&&0==s[0].length)break;n=kE(0==r[1].length?0:parseInt(r[1],10),0==s[1].length?0:parseInt(s[1],10))||kE(0==r[2].length,0==s[2].length)||kE(r[2],s[2]),r=r[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=$n(this.qa,this)):this.A=QE(this.qa,this.B,this)),this.v=!0,this.g.send(n),this.v=!1}catch(s){mV(this,s)}},he.qa=function(){typeof IE<"u"&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,Tn(this,"timeout"),this.abort(8))},he.abort=function(n){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=n||7,Tn(this,"complete"),Tn(this,"abort"),Cg(this))},he.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Cg(this,!0)),Ot.X.M.call(this)},he.Ha=function(){this.s||(this.F||this.v||this.l?_V(this):this.fb())},he.fb=function(){_V(this)},he.aa=function(){try{return 2<Ns(this)?this.g.status:-1}catch{return-1}},he.fa=function(){try{return this.g?this.g.responseText:""}catch{return""}},he.Sa=function(n){if(this.g){var e=this.g.responseText;return n&&0==e.indexOf(n)&&(e=e.substring(n.length)),$le(e)}},he.Ea=function(){return this.m},he.Oa=function(){return"string"==typeof this.j?this.j:String(this.j)},(he=SV.prototype).ma=8,he.G=1,he.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 r=new gd(this,this.j,n,void 0);let s=this.s;if(this.S&&(s?(s=D4(s),M4(s,this.S)):s=this.S),null!==this.o||this.N||(r.H=s,s=null),this.O)e:{for(var e=0,t=0;t<this.i.length;t++){var i=this.i[t];if(void 0===(i="__data__"in i.g&&"string"==typeof(i=i.g.__data__)?i.length:void 0))break;if(4096<(e+=i)){e=t;break e}if(4096===e||t===this.i.length-1){e=t+1;break e}}e=1e3}else e=1e3;e=TV(this,r,e),Ct(t=Os(this.F),"RID",n),Ct(t,"CVER",22),this.D&&Ct(t,"X-HTTP-Session-Id",this.D),Td(this,t),s&&(this.N?e="headers="+encodeURIComponent(String(wV(s)))+"&"+e:this.o&&lT(t,this.o,s)),sT(this.h,r),this.Ya&&Ct(t,"TYPE","init"),this.O?(Ct(t,"$req",e),Ct(t,"SID","null"),r.Z=!0,nT(r,t,null)):nT(r,t,e),this.G=2}}else 3==this.G&&(n?EV(this,n):0==this.i.length||uV(this.h)||EV(this))},he.Ia=function(){if(this.u=null,IV(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=fd($n(this.eb,this),n)}},he.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,ii(10),Eg(this),IV(this))},he.cb=function(){null!=this.v&&(this.v=null,Eg(this),uT(this),ii(19))},he.kb=function(n){n?(this.j.info("Successfully pinged google.com"),ii(2)):(this.j.info("Failed to ping google.com"),ii(1))},(he=OV.prototype).xa=function(){},he.wa=function(){},he.va=function(){},he.ua=function(){},he.Ra=function(){},Ig.prototype.g=function(n,e){return new Ri(n,e)},En(Ri,gn),Ri.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;ii(0),n.V=e,n.ia=t||{},n.L=n.Y,n.F=MV(n,null,n.V),Tg(n)},Ri.prototype.close=function(){cT(this.g)},Ri.prototype.u=function(n){var e=this.g;if("string"==typeof n){var t={};t.__data__=n,n=t}else this.v&&((t={}).__data__=WE(n),n=t);e.i.push(new class{constructor(n,e){this.h=n,this.g=e}}(e.ab++,n)),3==e.G&&Tg(e)},Ri.prototype.M=function(){this.g.l=null,delete this.j,cT(this.g),delete this.g,Ri.X.M.call(this)},En(NV,ZE),En(RV,JE),En(ql,OV),ql.prototype.xa=function(){Tn(this.g,"a")},ql.prototype.wa=function(n){Tn(this.g,new NV(n))},ql.prototype.va=function(n){Tn(this.g,new RV(n))},ql.prototype.ua=function(){Tn(this.g,"b")},Ig.prototype.createWebChannel=Ig.prototype.g,Ri.prototype.send=Ri.prototype.u,Ri.prototype.open=Ri.prototype.m,Ri.prototype.close=Ri.prototype.close,pg.NO_ERROR=0,pg.TIMEOUT=8,pg.HTTP_ERROR=6,Y4.COMPLETE="complete",Q4.EventType=pd,pd.OPEN="a",pd.CLOSE="b",pd.ERROR="c",pd.MESSAGE="d",gn.prototype.listen=gn.prototype.N,Ot.prototype.listenOnce=Ot.prototype.O,Ot.prototype.getLastError=Ot.prototype.Oa,Ot.prototype.getLastErrorCode=Ot.prototype.Ea,Ot.prototype.getStatus=Ot.prototype.aa,Ot.prototype.getResponseJson=Ot.prototype.Sa,Ot.prototype.getResponseText=Ot.prototype.fa,Ot.prototype.send=Ot.prototype.da,Ot.prototype.setWithCredentials=Ot.prototype.Ka;var Gle=Ps.createWebChannelTransport=function(){return new Ig},Wle=Ps.getStatEventTarget=function(){return fg()},hT=Ps.ErrorCode=pg,qle=Ps.EventType=Y4,Yle=Ps.Event=aa,LV=Ps.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},Kle=Ps.FetchXmlHttpFactory=wd,Ag=Ps.WebChannel=Q4,Qle=Ps.XhrIo=Ot;const FV="@firebase/firestore";class mn{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}}mn.UNAUTHENTICATED=new mn(null),mn.GOOGLE_CREDENTIALS=new mn("google-credentials-uid"),mn.FIRST_PARTY=new mn("first-party-uid"),mn.MOCK_USER=new mn("mock-user");let Yl="9.12.1";const io=new Rl("@firebase/firestore");function fT(){return io.logLevel}function X(n,...e){if(io.logLevel<=Ue.DEBUG){const t=e.map(pT);io.debug(`Firestore (${Yl}): ${n}`,...t)}}function Ut(n,...e){if(io.logLevel<=Ue.ERROR){const t=e.map(pT);io.error(`Firestore (${Yl}): ${n}`,...t)}}function Kl(n,...e){if(io.logLevel<=Ue.WARN){const t=e.map(pT);io.warn(`Firestore (${Yl}): ${n}`,...t)}}function pT(n){if("string"==typeof n)return n;try{return JSON.stringify(n)}catch{return n}}function de(n="Unexpected state"){const e=`FIRESTORE (${Yl}) INTERNAL ASSERTION FAILED: `+n;throw Ut(e),new Error(e)}function _e(n,e){n||de()}function ie(n,e){return n}const F={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 xr{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class cn{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}class VV{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class Xle{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(mn.UNAUTHENTICATED))}shutdown(){}}class Zle{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 Jle{constructor(e){this.t=e,this.currentUser=mn.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){var i=this;let r=this.i;const s=c=>this.i!==r?(r=this.i,t(c)):Promise.resolve();let o=new cn;this.o=()=>{this.i++,this.currentUser=this.u(),o.resolve(),o=new cn,e.enqueueRetryable(()=>s(this.currentUser))};const a=()=>{const c=o;e.enqueueRetryable(k(function*(){yield c.promise,yield s(i.currentUser)}))},l=c=>{X("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):(X("FirebaseAuthCredentialsProvider","Auth not yet detected"),o.resolve(),o=new cn)}},0),a()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(i=>this.i!==e?(X("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):i?(_e("string"==typeof i.accessToken),new VV(i.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 _e(null===e||"string"==typeof e),new mn(e)}}class ece{constructor(e,t,i,r){this.h=e,this.l=t,this.m=i,this.g=r,this.type="FirstParty",this.user=mn.FIRST_PARTY,this.p=new Map}I(){return this.g?this.g():(_e(!("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 tce{constructor(e,t,i,r){this.h=e,this.l=t,this.m=i,this.g=r}getToken(){return Promise.resolve(new ece(this.h,this.l,this.m,this.g))}start(e,t){e.enqueueRetryable(()=>t(mn.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class BV{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 nce{constructor(e){this.T=e,this.forceRefresh=!1,this.appCheck=null,this.A=null}start(e,t){const i=s=>{null!=s.error&&X("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,X("FirebaseAppCheckTokenProvider",`Received ${o?"new":"existing"} token.`),o?t(s.token):Promise.resolve()};this.o=s=>{e.enqueueRetryable(()=>i(s))};const r=s=>{X("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=s,this.appCheck.addTokenListener(this.o)};this.T.onInit(s=>r(s)),setTimeout(()=>{if(!this.appCheck){const s=this.T.getImmediate({optional:!0});s?r(s):X("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(t=>t?(_e("string"==typeof t.token),this.A=t.token,new BV(t.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function ice(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 i=0;i<n;i++)t[i]=Math.floor(256*Math.random());return t}class $V{static R(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(256/e.length)*e.length;let i="";for(;i.length<20;){const r=ice(40);for(let s=0;s<r.length;++s)i.length<20&&r[s]<t&&(i+=e.charAt(r[s]%e.length))}return i}}function Ae(n,e){return n<e?-1:n>e?1:0}function Ql(n,e,t){return n.length===e.length&&n.every((i,r)=>t(i,e[r]))}class At{constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new Q(F.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new Q(F.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new Q(F.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Q(F.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return At.fromMillis(Date.now())}static fromDate(e){return At.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),i=Math.floor(1e6*(e-1e3*t));return new At(t,i)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?Ae(this.nanoseconds,e.nanoseconds):Ae(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 ve{constructor(e){this.timestamp=e}static fromTimestamp(e){return new ve(e)}static min(){return new ve(new At(0,0))}static max(){return new ve(new At(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 xd{constructor(e,t,i){void 0===t?t=0:t>e.length&&de(),void 0===i?i=e.length-t:i>e.length-t&&de(),this.segments=e,this.offset=t,this.len=i}get length(){return this.len}isEqual(e){return 0===xd.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof xd?e.forEach(i=>{t.push(i)}):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,i=this.limit();t<i;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const i=Math.min(e.length,t.length);for(let r=0;r<i;r++){const s=e.get(r),o=t.get(r);if(s<o)return-1;if(s>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}class ze extends xd{construct(e,t,i){return new ze(e,t,i)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}static fromString(...e){const t=[];for(const i of e){if(i.indexOf("//")>=0)throw new Q(F.INVALID_ARGUMENT,`Invalid segment (${i}). Paths must not contain // in them.`);t.push(...i.split("/").filter(r=>r.length>0))}return new ze(t)}static emptyPath(){return new ze([])}}const rce=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class zt extends xd{construct(e,t,i){return new zt(e,t,i)}static isValidIdentifier(e){return rce.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),zt.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new zt(["__name__"])}static fromServerFormat(e){const t=[];let i="",r=0;const s=()=>{if(0===i.length)throw new Q(F.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(i),i=""};let o=!1;for(;r<e.length;){const a=e[r];if("\\"===a){if(r+1===e.length)throw new Q(F.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const l=e[r+1];if("\\"!==l&&"."!==l&&"`"!==l)throw new Q(F.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);i+=l,r+=2}else"`"===a?(o=!o,r++):"."!==a||o?(i+=a,r++):(s(),r++)}if(s(),o)throw new Q(F.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new zt(t)}static emptyPath(){return new zt([])}}class ne{constructor(e){this.path=e}static fromPath(e){return new ne(ze.fromString(e))}static fromName(e){return new ne(ze.fromString(e).popFirst(5))}static empty(){return new ne(ze.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===ze.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return ze.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new ne(new ze(e.slice()))}}function zV(n){return new Li(n.readTime,n.key,-1)}class Li{constructor(e,t,i){this.readTime=e,this.documentKey=t,this.largestBatchId=i}static min(){return new Li(ve.min(),ne.empty(),-1)}static max(){return new Li(ve.max(),ne.empty(),-1)}}function mT(n,e){let t=n.readTime.compareTo(e.readTime);return 0!==t?t:(t=ne.comparator(n.documentKey,e.documentKey),0!==t?t:Ae(n.largestBatchId,e.largestBatchId))}const jV="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";function ro(n){return yT.apply(this,arguments)}function yT(){return yT=k(function*(n){if(n.code!==F.FAILED_PRECONDITION||n.message!==jV)throw n;X("LocalStore","Unexpectedly lost primary lease")}),yT.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((i,r)=>{this.nextCallback=s=>{this.wrapSuccess(e,s).next(i,r)},this.catchCallback=s=>{this.wrapFailure(t,s).next(i,r)}})}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,i)=>{t(e)})}static reject(e){return new N((t,i)=>{i(e)})}static waitFor(e){return new N((t,i)=>{let r=0,s=0,o=!1;e.forEach(a=>{++r,a.next(()=>{++s,o&&s===r&&t()},l=>i(l))}),o=!0,s===r&&t()})}static or(e){let t=N.resolve(!1);for(const i of e)t=t.next(r=>r?N.resolve(r):i());return t}static forEach(e,t){const i=[];return e.forEach((r,s)=>{i.push(t.call(this,r,s))}),this.waitFor(i)}static mapArray(e,t){return new N((i,r)=>{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&&i(o)},u=>r(u))}})}static doWhile(e,t){return new N((i,r)=>{const s=()=>{!0===e()?t().next(()=>{s()},r):i()};s()})}}function so(n){return"IndexedDbTransactionError"===n.name}class yi{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=i=>this.ut(i),this.ct=i=>t.writeSequenceNumber(i))}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 WV(n){let e=0;for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&e++;return e}function fa(n,e){for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&e(t,n[t])}function qV(n){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e))return!1;return!0}yi.at=-1;class Nt{constructor(e,t){this.comparator=e,this.root=t||xn.EMPTY}insert(e,t){return new Nt(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,xn.BLACK,null,null))}remove(e){return new Nt(this.comparator,this.root.remove(e,this.comparator).copy(null,null,xn.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const i=this.comparator(e,t.key);if(0===i)return t.value;i<0?t=t.left:i>0&&(t=t.right)}return null}indexOf(e){let t=0,i=this.root;for(;!i.isEmpty();){const r=this.comparator(e,i.key);if(0===r)return t+i.left.size;r<0?i=i.left:(t+=i.left.size+1,i=i.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,i)=>(e(t,i),!1))}toString(){const e=[];return this.inorderTraversal((t,i)=>(e.push(`${t}:${i}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Pg(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Pg(this.root,e,this.comparator,!1)}getReverseIterator(){return new Pg(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Pg(this.root,e,this.comparator,!0)}}class Pg{constructor(e,t,i,r){this.isReverse=r,this.nodeStack=[];let s=1;for(;!e.isEmpty();)if(s=t?i(e.key,t):1,t&&r&&(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 xn{constructor(e,t,i,r,s){this.key=e,this.value=t,this.color=i??xn.RED,this.left=r??xn.EMPTY,this.right=s??xn.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,i,r,s){return new xn(e??this.key,t??this.value,i??this.color,r??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,i){let r=this;const s=i(e,r.key);return r=s<0?r.copy(null,null,null,r.left.insert(e,t,i),null):0===s?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,i)),r.fixUp()}removeMin(){if(this.left.isEmpty())return xn.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 i,r=this;if(t(e,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(e,t),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===t(e,r.key)){if(r.right.isEmpty())return xn.EMPTY;i=r.right.min(),r=r.copy(i.key,i.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(e,t))}return r.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,xn.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,xn.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)}}xn.EMPTY=null,xn.RED=!0,xn.BLACK=!1,xn.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,i,r){return this}insert(n,e,t){return new xn(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 st{constructor(e){this.comparator=e,this.data=new Nt(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,i)=>(e(t),!1))}forEachInRange(e,t){const i=this.data.getIteratorFrom(e[0]);for(;i.hasNext();){const r=i.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}forEachWhile(e,t){let i;for(i=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();i.hasNext();)if(!e(i.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new YV(this.data.getIterator())}getIteratorFrom(e){return new YV(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(i=>{t=t.add(i)}),t}isEqual(e){if(!(e instanceof st)||this.size!==e.size)return!1;const t=this.data.getIterator(),i=e.data.getIterator();for(;t.hasNext();){const r=t.getNext().key,s=i.getNext().key;if(0!==this.comparator(r,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 st(this.comparator);return t.data=e,t}}class YV{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Fi{constructor(e){this.fields=e,e.sort(zt.comparator)}static empty(){return new Fi([])}unionWith(e){let t=new st(zt.comparator);for(const i of this.fields)t=t.add(i);for(const i of e)t=t.add(i);return new Fi(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return Ql(this.fields,e.fields,(t,i)=>t.isEqual(i))}}class un{constructor(e){this.binaryString=e}static fromBase64String(e){const t=atob(e);return new un(t)}static fromUint8Array(e){const t=function(i){let r="";for(let s=0;s<i.length;++s)r+=String.fromCharCode(i[s]);return r}(e);return new un(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 i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Ae(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}un.EMPTY_BYTE_STRING=new un("");const hce=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function oo(n){if(_e(!!n),"string"==typeof n){let e=0;const t=hce.exec(n);if(_e(!!t),t[1]){let r=t[1];r=(r+"000000000").substr(0,9),e=Number(r)}const i=new Date(n);return{seconds:Math.floor(i.getTime()/1e3),nanos:e}}return{seconds:Rt(n.seconds),nanos:Rt(n.nanos)}}function Rt(n){return"number"==typeof n?n:"string"==typeof n?Number(n):0}function pa(n){return"string"==typeof n?un.fromBase64String(n):un.fromUint8Array(n)}function vT(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 KV(n){const e=n.mapValue.fields.__previous_value__;return vT(e)?KV(e):e}function Dd(n){const e=oo(n.mapValue.fields.__local_write_time__.timestampValue);return new At(e.seconds,e.nanos)}class fce{constructor(e,t,i,r,s,o,a,l){this.databaseId=e,this.appId=t,this.persistenceKey=i,this.host=r,this.ssl=s,this.forceLongPolling=o,this.autoDetectLongPolling=a,this.useFetchStreams=l}}class ga{constructor(e,t){this.projectId=e,this.database=t||"(default)"}static empty(){return new ga("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof ga&&e.projectId===this.projectId&&e.database===this.database}}function kd(n){return null==n}function Md(n){return 0===n&&1/n==-1/0}const ao_mapValue={fields:{__type__:{stringValue:"__max__"}}};function ma(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?vT(n)?4:eB(n)?9007199254740991:10:de()}function Yr(n,e){if(n===e)return!0;const t=ma(n);if(t!==ma(e))return!1;switch(t){case 0:case 9007199254740991:return!0;case 1:return n.booleanValue===e.booleanValue;case 4:return Dd(n).isEqual(Dd(e));case 3:return function(i,r){if("string"==typeof i.timestampValue&&"string"==typeof r.timestampValue&&i.timestampValue.length===r.timestampValue.length)return i.timestampValue===r.timestampValue;const s=oo(i.timestampValue),o=oo(r.timestampValue);return s.seconds===o.seconds&&s.nanos===o.nanos}(n,e);case 5:return n.stringValue===e.stringValue;case 6:return r=e,pa(n.bytesValue).isEqual(pa(r.bytesValue));case 7:return n.referenceValue===e.referenceValue;case 8:return function(i,r){return Rt(i.geoPointValue.latitude)===Rt(r.geoPointValue.latitude)&&Rt(i.geoPointValue.longitude)===Rt(r.geoPointValue.longitude)}(n,e);case 2:return function(i,r){if("integerValue"in i&&"integerValue"in r)return Rt(i.integerValue)===Rt(r.integerValue);if("doubleValue"in i&&"doubleValue"in r){const s=Rt(i.doubleValue),o=Rt(r.doubleValue);return s===o?Md(s)===Md(o):isNaN(s)&&isNaN(o)}return!1}(n,e);case 9:return Ql(n.arrayValue.values||[],e.arrayValue.values||[],Yr);case 10:return function(i,r){const s=i.mapValue.fields||{},o=r.mapValue.fields||{};if(WV(s)!==WV(o))return!1;for(const a in s)if(s.hasOwnProperty(a)&&(void 0===o[a]||!Yr(s[a],o[a])))return!1;return!0}(n,e);default:return de()}var r}function Pd(n,e){return void 0!==(n.values||[]).find(t=>Yr(t,e))}function lo(n,e){if(n===e)return 0;const t=ma(n),i=ma(e);if(t!==i)return Ae(t,i);switch(t){case 0:case 9007199254740991:return 0;case 1:return Ae(n.booleanValue,e.booleanValue);case 2:return function(r,s){const o=Rt(r.integerValue||r.doubleValue),a=Rt(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 XV(n.timestampValue,e.timestampValue);case 4:return XV(Dd(n),Dd(e));case 5:return Ae(n.stringValue,e.stringValue);case 6:return function(r,s){const o=pa(r),a=pa(s);return o.compareTo(a)}(n.bytesValue,e.bytesValue);case 7:return function(r,s){const o=r.split("/"),a=s.split("/");for(let l=0;l<o.length&&l<a.length;l++){const c=Ae(o[l],a[l]);if(0!==c)return c}return Ae(o.length,a.length)}(n.referenceValue,e.referenceValue);case 8:return function(r,s){const o=Ae(Rt(r.latitude),Rt(s.latitude));return 0!==o?o:Ae(Rt(r.longitude),Rt(s.longitude))}(n.geoPointValue,e.geoPointValue);case 9:return function(r,s){const o=r.values||[],a=s.values||[];for(let l=0;l<o.length&&l<a.length;++l){const c=lo(o[l],a[l]);if(c)return c}return Ae(o.length,a.length)}(n.arrayValue,e.arrayValue);case 10:return function(r,s){if(r===ao_mapValue&&s===ao_mapValue)return 0;if(r===ao_mapValue)return 1;if(s===ao_mapValue)return-1;const o=r.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=Ae(a[u],c[u]);if(0!==d)return d;const h=lo(o[a[u]],l[c[u]]);if(0!==h)return h}return Ae(a.length,c.length)}(n.mapValue,e.mapValue);default:throw de()}}function XV(n,e){if("string"==typeof n&&"string"==typeof e&&n.length===e.length)return Ae(n,e);const t=oo(n),i=oo(e),r=Ae(t.seconds,i.seconds);return 0!==r?r:Ae(t.nanos,i.nanos)}function Zl(n){return bT(n)}function bT(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(i){const r=oo(i);return`time(${r.seconds},${r.nanos})`}(n.timestampValue):"stringValue"in n?n.stringValue:"bytesValue"in n?pa(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(i){let r="[",s=!0;for(const o of i.values||[])s?s=!1:r+=",",r+=bT(o);return r+"]"}(n.arrayValue):"mapValue"in n?function(i){const r=Object.keys(i.fields||{}).sort();let s="{",o=!0;for(const a of r)o?o=!1:s+=",",s+=`${a}:${bT(i.fields[a])}`;return s+"}"}(n.mapValue):de();var e}function wT(n){return!!n&&"integerValue"in n}function Od(n){return!!n&&"arrayValue"in n}function ZV(n){return!!n&&"nullValue"in n}function JV(n){return!!n&&"doubleValue"in n&&isNaN(Number(n.doubleValue))}function Ng(n){return!!n&&"mapValue"in n}function Nd(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 fa(n.mapValue.fields,(t,i)=>e.mapValue.fields[t]=Nd(i)),e}if(n.arrayValue){const e={arrayValue:{values:[]}};for(let t=0;t<(n.arrayValue.values||[]).length;++t)e.arrayValue.values[t]=Nd(n.arrayValue.values[t]);return e}return Object.assign({},n)}function eB(n){return"__max__"===(((n.mapValue||{}).fields||{}).__type__||{}).stringValue}class In{constructor(e){this.value=e}static empty(){return new In({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let i=0;i<e.length-1;++i)if(t=(t.mapValue.fields||{})[e.get(i)],!Ng(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=Nd(t)}setAll(e){let t=zt.emptyPath(),i={},r=[];e.forEach((o,a)=>{if(!t.isImmediateParentOf(a)){const l=this.getFieldsMap(t);this.applyChanges(l,i,r),i={},r=[],t=a.popLast()}o?i[a.lastSegment()]=Nd(o):r.push(a.lastSegment())});const s=this.getFieldsMap(t);this.applyChanges(s,i,r)}delete(e){const t=this.field(e.popLast());Ng(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return Yr(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let i=0;i<e.length;++i){let r=t.mapValue.fields[e.get(i)];Ng(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(i)]=r),t=r}return t.mapValue.fields}applyChanges(e,t,i){fa(t,(r,s)=>e[r]=s);for(const r of i)delete e[r]}clone(){return new In(Nd(this.value))}}function iB(n){const e=[];return fa(n.fields,(t,i)=>{const r=new zt([t]);if(Ng(i)){const s=iB(i.mapValue).fields;if(0===s.length)e.push(r);else for(const o of s)e.push(r.child(o))}else e.push(r)}),new Fi(e)}class mt{constructor(e,t,i,r,s,o){this.key=e,this.documentType=t,this.version=i,this.readTime=r,this.data=s,this.documentState=o}static newInvalidDocument(e){return new mt(e,0,ve.min(),ve.min(),In.empty(),0)}static newFoundDocument(e,t,i){return new mt(e,1,t,ve.min(),i,0)}static newNoDocument(e,t){return new mt(e,2,t,ve.min(),In.empty(),0)}static newUnknownDocument(e,t){return new mt(e,3,t,ve.min(),In.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=In.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=In.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=ve.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 mt&&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 mt(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 mce{constructor(e,t=null,i=[],r=[],s=null,o=null,a=null){this.path=e,this.collectionGroup=t,this.orderBy=i,this.filters=r,this.limit=s,this.startAt=o,this.endAt=a,this.ht=null}}function rB(n,e=null,t=[],i=[],r=null,s=null,o=null){return new mce(n,e,t,i,r,s,o)}function _a(n){const e=ie(n);if(null===e.ht){let t=e.path.canonicalString();null!==e.collectionGroup&&(t+="|cg:"+e.collectionGroup),t+="|f:",t+=e.filters.map(i=>{return(r=i).field.canonicalString()+r.op.toString()+Zl(r.value);var r}).join(","),t+="|ob:",t+=e.orderBy.map(i=>{return(r=i).field.canonicalString()+r.dir;var r}).join(","),kd(e.limit)||(t+="|l:",t+=e.limit),e.startAt&&(t+="|lb:",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(i=>Zl(i)).join(",")),e.endAt&&(t+="|ub:",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(i=>Zl(i)).join(",")),e.ht=t}return e.ht}function Rd(n,e){if(n.limit!==e.limit||n.orderBy.length!==e.orderBy.length)return!1;for(let r=0;r<n.orderBy.length;r++)if(!Tce(n.orderBy[r],e.orderBy[r]))return!1;if(n.filters.length!==e.filters.length)return!1;for(let r=0;r<n.filters.length;r++)if((t=n.filters[r]).op!==(i=e.filters[r]).op||!t.field.isEqual(i.field)||!Yr(t.value,i.value))return!1;var t,i;return n.collectionGroup===e.collectionGroup&&!!n.path.isEqual(e.path)&&!!cB(n.startAt,e.startAt)&&cB(n.endAt,e.endAt)}function Rg(n){return ne.isDocumentKey(n.path)&&null===n.collectionGroup&&0===n.filters.length}class An extends class{}{constructor(e,t,i){super(),this.field=e,this.op=t,this.value=i}static create(e,t,i){return e.isKeyField()?"in"===t||"not-in"===t?this.lt(e,t,i):new _ce(e,t,i):"array-contains"===t?new wce(e,i):"in"===t?new Sce(e,i):"not-in"===t?new Cce(e,i):"array-contains-any"===t?new Ece(e,i):new An(e,t,i)}static lt(e,t,i){return"in"===t?new vce(e,i):new bce(e,i)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&this.ft(lo(t,this.value)):null!==t&&ma(this.value)===ma(t)&&this.ft(lo(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 _ce extends An{constructor(e,t,i){super(e,t,i),this.key=ne.fromName(i.referenceValue)}matches(e){const t=ne.comparator(e.key,this.key);return this.ft(t)}}class vce extends An{constructor(e,t){super(e,"in",t),this.keys=aB(0,t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class bce extends An{constructor(e,t){super(e,"not-in",t),this.keys=aB(0,t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function aB(n,e){var t;return((null===(t=e.arrayValue)||void 0===t?void 0:t.values)||[]).map(i=>ne.fromName(i.referenceValue))}class wce extends An{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return Od(t)&&Pd(t.arrayValue,this.value)}}class Sce extends An{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&Pd(this.value.arrayValue,t)}}class Cce extends An{constructor(e,t){super(e,"not-in",t)}matches(e){if(Pd(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&!Pd(this.value.arrayValue,t)}}class Ece extends An{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!Od(t)||!t.arrayValue.values)&&t.arrayValue.values.some(i=>Pd(this.value.arrayValue,i))}}class co{constructor(e,t){this.position=e,this.inclusive=t}}class Jl{constructor(e,t="asc"){this.field=e,this.dir=t}}function Tce(n,e){return n.dir===e.dir&&n.field.isEqual(e.field)}function lB(n,e,t){let i=0;for(let r=0;r<n.position.length;r++){const s=e[r],o=n.position[r];if(i=s.field.isKeyField()?ne.comparator(ne.fromName(o.referenceValue),t.key):lo(o,t.data.field(s.field)),"desc"===s.dir&&(i*=-1),0!==i)break}return i}function cB(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(!Yr(n.position[t],e.position[t]))return!1;return!0}class Rs{constructor(e,t=null,i=[],r=[],s=null,o="F",a=null,l=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=i,this.filters=r,this.limit=s,this.limitType=o,this.startAt=a,this.endAt=l,this._t=null,this.wt=null}}function ec(n){return new Rs(n)}function dB(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 ST(n){return n.explicitOrderBy.length>0?n.explicitOrderBy[0].field:null}function CT(n){for(const e of n.filters)if(e.dt())return e.field;return null}function tc(n){const e=ie(n);if(null===e._t){e._t=[];const t=CT(e),i=ST(e);if(null!==t&&null===i)t.isKeyField()||e._t.push(new Jl(t)),e._t.push(new Jl(zt.keyField(),"asc"));else{let r=!1;for(const s of e.explicitOrderBy)e._t.push(s),s.field.isKeyField()&&(r=!0);if(!r){const s=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e._t.push(new Jl(zt.keyField(),s))}}}return e._t}function ri(n){const e=ie(n);if(!e.wt)if("F"===e.limitType)e.wt=rB(e.path,e.collectionGroup,tc(e),e.filters,e.limit,e.startAt,e.endAt);else{const t=[];for(const s of tc(e))t.push(new Jl(s.field,"desc"===s.dir?"asc":"desc"));const i=e.endAt?new co(e.endAt.position,e.endAt.inclusive):null,r=e.startAt?new co(e.startAt.position,e.startAt.inclusive):null;e.wt=rB(e.path,e.collectionGroup,t,e.filters,e.limit,i,r)}return e.wt}function Fg(n,e,t){return new Rs(n.path,n.collectionGroup,n.explicitOrderBy.slice(),n.filters.slice(),e,t,n.startAt,n.endAt)}function Ld(n,e){return Rd(ri(n),ri(e))&&n.limitType===e.limitType}function hB(n){return`${_a(ri(n))}|lt:${n.limitType}`}function TT(n){return`Query(target=${function yce(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`${(i=t).field.canonicalString()} ${i.op} ${Zl(i.value)}`;var i}).join(", ")}]`),kd(n.limit)||(e+=", limit: "+n.limit),n.orderBy.length>0&&(e+=`, orderBy: [${n.orderBy.map(t=>{return`${(i=t).field.canonicalString()} (${i.dir})`;var i}).join(", ")}]`),n.startAt&&(e+=", startAt: ",e+=n.startAt.inclusive?"b:":"a:",e+=n.startAt.position.map(t=>Zl(t)).join(",")),n.endAt&&(e+=", endAt: ",e+=n.endAt.inclusive?"a:":"b:",e+=n.endAt.position.map(t=>Zl(t)).join(",")),`Target(${e})`}(ri(n))}; limitType=${n.limitType})`}function xT(n,e){return e.isFoundDocument()&&function(t,i){const r=i.key.path;return null!==t.collectionGroup?i.key.hasCollectionId(t.collectionGroup)&&t.path.isPrefixOf(r):ne.isDocumentKey(t.path)?t.path.isEqual(r):t.path.isImmediateParentOf(r)}(n,e)&&function(t,i){for(const r of t.explicitOrderBy)if(!r.field.isKeyField()&&null===i.data.field(r.field))return!1;return!0}(n,e)&&function(t,i){for(const r of t.filters)if(!r.matches(i))return!1;return!0}(n,e)&&(i=e,!((t=n).startAt&&!function(r,s,o){const a=lB(r,s,o);return r.inclusive?a<=0:a<0}(t.startAt,tc(t),i)||t.endAt&&!function(r,s,o){const a=lB(r,s,o);return r.inclusive?a>=0:a>0}(t.endAt,tc(t),i)));var t,i}function pB(n){return(e,t)=>{let i=!1;for(const r of tc(n)){const s=xce(r,e,t);if(0!==s)return s;i=i||r.field.isKeyField()}return 0}}function xce(n,e,t){const i=n.field.isKeyField()?ne.comparator(e.key,t.key):function(r,s,o){const a=s.data.field(r),l=o.data.field(r);return null!==a&&null!==l?lo(a,l):de()}(n.field,e,t);switch(n.dir){case"asc":return i;case"desc":return-1*i;default:return de()}}function gB(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:Md(e)?"-0":e}}function mB(n){return{integerValue:""+n}}function yB(n,e){return function QV(n){return"number"==typeof n&&Number.isInteger(n)&&!Md(n)&&n<=Number.MAX_SAFE_INTEGER&&n>=Number.MIN_SAFE_INTEGER}(e)?mB(e):gB(n,e)}class Vg{constructor(){this._=void 0}}function Ice(n,e,t){return n instanceof nc?function(i,r){const s={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:i.seconds,nanos:i.nanoseconds}}}};return r&&(s.fields.__previous_value__=r),{mapValue:s}}(t,e):n instanceof va?vB(n,e):n instanceof ba?bB(n,e):function(i,r){const s=_B(i,r),o=wB(s)+wB(i.yt);return wT(s)&&wT(i.yt)?mB(o):gB(i.It,o)}(n,e)}function Ace(n,e,t){return n instanceof va?vB(n,e):n instanceof ba?bB(n,e):t}function _B(n,e){return n instanceof ic?wT(t=e)||(i=t)&&"doubleValue"in i?e:{integerValue:0}:null;var i,t}class nc extends Vg{}class va extends Vg{constructor(e){super(),this.elements=e}}function vB(n,e){const t=SB(e);for(const i of n.elements)t.some(r=>Yr(r,i))||t.push(i);return{arrayValue:{values:t}}}class ba extends Vg{constructor(e){super(),this.elements=e}}function bB(n,e){let t=SB(e);for(const i of n.elements)t=t.filter(r=>!Yr(r,i));return{arrayValue:{values:t}}}class ic extends Vg{constructor(e,t){super(),this.It=e,this.yt=t}}function wB(n){return Rt(n.integerValue||n.doubleValue)}function SB(n){return Od(n)&&n.arrayValue.values?n.arrayValue.values.slice():[]}class Fd{constructor(e,t){this.field=e,this.transform=t}}class kce{constructor(e,t){this.version=e,this.transformResults=t}}class Et{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new Et}static exists(e){return new Et(void 0,e)}static updateTime(e){return new Et(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 Bg(n,e){return void 0!==n.updateTime?e.isFoundDocument()&&e.version.isEqual(n.updateTime):void 0===n.exists||n.exists===e.isFoundDocument()}class $g{}function CB(n,e){if(!n.hasLocalMutations||e&&0===e.fields.length)return null;if(null===e)return n.isNoDocument()?new sc(n.key,Et.none()):new rc(n.key,n.data,Et.none());{const t=n.data,i=In.empty();let r=new st(zt.comparator);for(let s of e.fields)if(!r.has(s)){let o=t.field(s);null===o&&s.length>1&&(s=s.popLast(),o=t.field(s)),null===o?i.delete(s):i.set(s,o),r=r.add(s)}return new Ls(n.key,i,new Fi(r.toArray()),Et.none())}}function Mce(n,e,t){n instanceof rc?function(i,r,s){const o=i.value.clone(),a=xB(i.fieldTransforms,r,s.transformResults);o.setAll(a),r.convertToFoundDocument(s.version,o).setHasCommittedMutations()}(n,e,t):n instanceof Ls?function(i,r,s){if(!Bg(i.precondition,r))return void r.convertToUnknownDocument(s.version);const o=xB(i.fieldTransforms,r,s.transformResults),a=r.data;a.setAll(TB(i)),a.setAll(o),r.convertToFoundDocument(s.version,a).setHasCommittedMutations()}(n,e,t):e.convertToNoDocument(t.version).setHasCommittedMutations()}function Vd(n,e,t,i){return n instanceof rc?function(r,s,o,a){if(!Bg(r.precondition,s))return o;const l=r.value.clone(),c=IB(r.fieldTransforms,a,s);return l.setAll(c),s.convertToFoundDocument(s.version,l).setHasLocalMutations(),null}(n,e,t,i):n instanceof Ls?function(r,s,o,a){if(!Bg(r.precondition,s))return o;const l=IB(r.fieldTransforms,a,s),c=s.data;return c.setAll(TB(r)),c.setAll(l),s.convertToFoundDocument(s.version,c).setHasLocalMutations(),null===o?null:o.unionWith(r.fieldMask.fields).unionWith(r.fieldTransforms.map(u=>u.field))}(n,e,t,i):(o=t,Bg(n.precondition,s=e)?(s.convertToNoDocument(s.version).setHasLocalMutations(),null):o);var s,o}function Pce(n,e){let t=null;for(const i of n.fieldTransforms){const r=e.data.field(i.field),s=_B(i.transform,r||null);null!=s&&(null===t&&(t=In.empty()),t.set(i.field,s))}return t||null}function EB(n,e){return n.type===e.type&&!!n.key.isEqual(e.key)&&!!n.precondition.isEqual(e.precondition)&&(i=e.fieldTransforms,!!(void 0===(t=n.fieldTransforms)&&void 0===i||t&&i&&Ql(t,i,(r,s)=>function Dce(n,e){return n.field.isEqual(e.field)&&(i=e.transform,(t=n.transform)instanceof va&&i instanceof va||t instanceof ba&&i instanceof ba?Ql(t.elements,i.elements,Yr):t instanceof ic&&i instanceof ic?Yr(t.yt,i.yt):t instanceof nc&&i instanceof nc);var t,i}(r,s))))&&(0===n.type?n.value.isEqual(e.value):1!==n.type||n.data.isEqual(e.data)&&n.fieldMask.isEqual(e.fieldMask));var t,i}class rc extends $g{constructor(e,t,i,r=[]){super(),this.key=e,this.value=t,this.precondition=i,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class Ls extends $g{constructor(e,t,i,r,s=[]){super(),this.key=e,this.data=t,this.fieldMask=i,this.precondition=r,this.fieldTransforms=s,this.type=1}getFieldMask(){return this.fieldMask}}function TB(n){const e=new Map;return n.fieldMask.fields.forEach(t=>{if(!t.isEmpty()){const i=n.data.field(t);e.set(t,i)}}),e}function xB(n,e,t){const i=new Map;_e(n.length===t.length);for(let r=0;r<t.length;r++){const s=n[r],o=s.transform,a=e.data.field(s.field);i.set(s.field,Ace(o,a,t[r]))}return i}function IB(n,e,t){const i=new Map;for(const r of n){const s=r.transform,o=t.data.field(r.field);i.set(r.field,Ice(s,o,e))}return i}class sc extends $g{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class IT extends $g{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class Oce{constructor(e){this.count=e}}var Zt,je;function AB(n){switch(n){default:return de();case F.CANCELLED:case F.UNKNOWN:case F.DEADLINE_EXCEEDED:case F.RESOURCE_EXHAUSTED:case F.INTERNAL:case F.UNAVAILABLE:case F.UNAUTHENTICATED:return!1;case F.INVALID_ARGUMENT:case F.NOT_FOUND:case F.ALREADY_EXISTS:case F.PERMISSION_DENIED:case F.FAILED_PRECONDITION:case F.ABORTED:case F.OUT_OF_RANGE:case F.UNIMPLEMENTED:case F.DATA_LOSS:return!0}}function DB(n){if(void 0===n)return Ut("GRPC error has no .code"),F.UNKNOWN;switch(n){case Zt.OK:return F.OK;case Zt.CANCELLED:return F.CANCELLED;case Zt.UNKNOWN:return F.UNKNOWN;case Zt.DEADLINE_EXCEEDED:return F.DEADLINE_EXCEEDED;case Zt.RESOURCE_EXHAUSTED:return F.RESOURCE_EXHAUSTED;case Zt.INTERNAL:return F.INTERNAL;case Zt.UNAVAILABLE:return F.UNAVAILABLE;case Zt.UNAUTHENTICATED:return F.UNAUTHENTICATED;case Zt.INVALID_ARGUMENT:return F.INVALID_ARGUMENT;case Zt.NOT_FOUND:return F.NOT_FOUND;case Zt.ALREADY_EXISTS:return F.ALREADY_EXISTS;case Zt.PERMISSION_DENIED:return F.PERMISSION_DENIED;case Zt.FAILED_PRECONDITION:return F.FAILED_PRECONDITION;case Zt.ABORTED:return F.ABORTED;case Zt.OUT_OF_RANGE:return F.OUT_OF_RANGE;case Zt.UNIMPLEMENTED:return F.UNIMPLEMENTED;case Zt.DATA_LOSS:return F.DATA_LOSS;default:return de()}}(je=Zt||(Zt={}))[je.OK=0]="OK",je[je.CANCELLED=1]="CANCELLED",je[je.UNKNOWN=2]="UNKNOWN",je[je.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",je[je.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",je[je.NOT_FOUND=5]="NOT_FOUND",je[je.ALREADY_EXISTS=6]="ALREADY_EXISTS",je[je.PERMISSION_DENIED=7]="PERMISSION_DENIED",je[je.UNAUTHENTICATED=16]="UNAUTHENTICATED",je[je.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",je[je.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",je[je.ABORTED=10]="ABORTED",je[je.OUT_OF_RANGE=11]="OUT_OF_RANGE",je[je.UNIMPLEMENTED=12]="UNIMPLEMENTED",je[je.INTERNAL=13]="INTERNAL",je[je.UNAVAILABLE=14]="UNAVAILABLE",je[je.DATA_LOSS=15]="DATA_LOSS";class uo{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),i=this.inner[t];if(void 0!==i)for(const[r,s]of i)if(this.equalsFn(r,e))return s}has(e){return void 0!==this.get(e)}set(e,t){const i=this.mapKeyFn(e),r=this.inner[i];if(void 0===r)return this.inner[i]=[[e,t]],void this.innerSize++;for(let s=0;s<r.length;s++)if(this.equalsFn(r[s][0],e))return void(r[s]=[e,t]);r.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),i=this.inner[t];if(void 0===i)return!1;for(let r=0;r<i.length;r++)if(this.equalsFn(i[r][0],e))return 1===i.length?delete this.inner[t]:i.splice(r,1),this.innerSize--,!0;return!1}forEach(e){fa(this.inner,(t,i)=>{for(const[r,s]of i)e(r,s)})}isEmpty(){return qV(this.inner)}size(){return this.innerSize}}const Nce=new Nt(ne.comparator);function _i(){return Nce}const kB=new Nt(ne.comparator);function Bd(...n){let e=kB;for(const t of n)e=e.insert(t.key,t);return e}function MB(n){let e=kB;return n.forEach((t,i)=>e=e.insert(t,i.overlayedDocument)),e}function Kr(){return $d()}function PB(){return $d()}function $d(){return new uo(n=>n.toString(),(n,e)=>n.isEqual(e))}const Rce=new Nt(ne.comparator),Lce=new st(ne.comparator);function Oe(...n){let e=Lce;for(const t of n)e=e.add(t);return e}const Fce=new st(Ae);function Hg(){return Fce}class Hd{constructor(e,t,i,r,s){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=i,this.documentUpdates=r,this.resolvedLimboDocuments=s}static createSynthesizedRemoteEventForCurrentChange(e,t,i){const r=new Map;return r.set(e,Ud.createSynthesizedTargetChangeForCurrentChange(e,t,i)),new Hd(ve.min(),r,Hg(),_i(),Oe())}}class Ud{constructor(e,t,i,r,s){this.resumeToken=e,this.current=t,this.addedDocuments=i,this.modifiedDocuments=r,this.removedDocuments=s}static createSynthesizedTargetChangeForCurrentChange(e,t,i){return new Ud(i,t,Oe(),Oe(),Oe())}}class Ug{constructor(e,t,i,r){this.Tt=e,this.removedTargetIds=t,this.key=i,this.Et=r}}class OB{constructor(e,t){this.targetId=e,this.At=t}}class NB{constructor(e,t,i=un.EMPTY_BYTE_STRING,r=null){this.state=e,this.targetIds=t,this.resumeToken=i,this.cause=r}}class RB{constructor(){this.Rt=0,this.bt=FB(),this.Pt=un.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=Oe(),t=Oe(),i=Oe();return this.bt.forEach((r,s)=>{switch(s){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:i=i.add(r);break;default:de()}}),new Ud(this.Pt,this.vt,e,t,i)}Nt(){this.Vt=!1,this.bt=FB()}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 Vce{constructor(e){this.Bt=e,this.Lt=new Map,this.Ut=_i(),this.qt=LB(),this.Kt=new st(Ae)}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 i=this.zt(t);switch(e.state){case 0:this.Ht(t)&&i.Ct(e.resumeToken);break;case 1:i.Ft(),i.St||i.Nt(),i.Ct(e.resumeToken);break;case 2:i.Ft(),i.St||this.removeTarget(t);break;case 3:this.Ht(t)&&(i.$t(),i.Ct(e.resumeToken));break;case 4:this.Ht(t)&&(this.Jt(t),i.Ct(e.resumeToken));break;default:de()}})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.Lt.forEach((i,r)=>{this.Ht(r)&&t(r)})}Yt(e){const t=e.targetId,i=e.At.count,r=this.Xt(t);if(r){const s=r.target;if(Rg(s))if(0===i){const o=new ne(s.path);this.jt(t,o,mt.newNoDocument(o,ve.min()))}else _e(1===i);else this.Zt(t)!==i&&(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&&Rg(a.target)){const l=new ne(a.target.path);null!==this.Ut.get(l)||this.ee(o,l)||this.jt(o,l,mt.newNoDocument(l,e))}s.Dt&&(t.set(o,s.xt()),s.Nt())}});let i=Oe();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&&(i=i.add(s))}),this.Ut.forEach((s,o)=>o.setReadTime(e));const r=new Hd(e,t,this.Kt,this.Ut,i);return this.Ut=_i(),this.qt=LB(),this.Kt=new st(Ae),r}Qt(e,t){if(!this.Ht(e))return;const i=this.ee(e,t.key)?2:0;this.zt(e).kt(t.key,i),this.Ut=this.Ut.insert(t.key,t),this.qt=this.qt.insert(t.key,this.ne(t.key).add(e))}jt(e,t,i){if(!this.Ht(e))return;const r=this.zt(e);this.ee(e,t)?r.kt(t,1):r.Ot(t),this.qt=this.qt.insert(t,this.ne(t).delete(e)),i&&(this.Ut=this.Ut.insert(t,i))}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 RB,this.Lt.set(e,t)),t}ne(e){let t=this.qt.get(e);return t||(t=new st(Ae),this.qt=this.qt.insert(e,t)),t}Ht(e){const t=null!==this.Xt(e);return t||X("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 RB),this.Bt.getRemoteKeysForTarget(e).forEach(t=>{this.jt(e,t,null)})}ee(e,t){return this.Bt.getRemoteKeysForTarget(e).has(t)}}function LB(){return new Nt(ne.comparator)}function FB(){return new Nt(ne.comparator)}const Bce={asc:"ASCENDING",desc:"DESCENDING"},$ce={"<":"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 Hce{constructor(e,t){this.databaseId=e,this.gt=t}}function zd(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 VB(n,e){return n.gt?e.toBase64():e.toUint8Array()}function Uce(n,e){return zd(n,e.toTimestamp())}function yn(n){return _e(!!n),ve.fromTimestamp(function(e){const t=oo(e);return new At(t.seconds,t.nanos)}(n))}function AT(n,e){return(t=n,new ze(["projects",t.projectId,"databases",t.database])).child("documents").child(e).canonicalString();var t}function BB(n){const e=ze.fromString(n);return _e(qB(e)),e}function jd(n,e){return AT(n.databaseId,e.path)}function Qr(n,e){const t=BB(e);if(t.get(1)!==n.databaseId.projectId)throw new Q(F.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(F.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+t.get(3)+" vs "+n.databaseId.database);return new ne(HB(t))}function DT(n,e){return AT(n.databaseId,e)}function Gd(n){return new ze(["projects",n.databaseId.projectId,"databases",n.databaseId.database]).canonicalString()}function HB(n){return _e(n.length>4&&"documents"===n.get(4)),n.popFirst(5)}function UB(n,e,t){return{name:jd(n,e),fields:t.value.mapValue.fields}}function jB(n,e){return{documents:[DT(n,e.path)]}}function MT(n,e){const t={structuredQuery:{}},i=e.path;null!==e.collectionGroup?(t.parent=DT(n,i),t.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(t.parent=DT(n,i.popLast()),t.structuredQuery.from=[{collectionId:i.lastSegment()}]);const r=function(l){if(0===l.length)return;const c=l.map(u=>function(d){if("=="===d.op){if(JV(d.value))return{unaryFilter:{field:oc(d.field),op:"IS_NAN"}};if(ZV(d.value))return{unaryFilter:{field:oc(d.field),op:"IS_NULL"}}}else if("!="===d.op){if(JV(d.value))return{unaryFilter:{field:oc(d.field),op:"IS_NOT_NAN"}};if(ZV(d.value))return{unaryFilter:{field:oc(d.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:oc(d.field),op:Yce(d.op),value:d.value}}}(u));return 1===c.length?c[0]:{compositeFilter:{op:"AND",filters:c}}}(e.filters);r&&(t.structuredQuery.where=r);const s=function(l){if(0!==l.length)return l.map(c=>{return{field:oc((u=c).field),direction:qce(u.dir)};var u})}(e.orderBy);s&&(t.structuredQuery.orderBy=s);const o=(c=e.limit,n.gt||kd(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 GB(n){let e=function $B(n){const e=BB(n);return 4===e.length?ze.emptyPath():HB(e)}(n.parent);const t=n.structuredQuery,i=t.from?t.from.length:0;let r=null;if(i>0){_e(1===i);const u=t.from[0];u.allDescendants?r=u.collectionId:e=e.child(u.collectionId)}let s=[];t.where&&(s=WB(t.where));let o=[];t.orderBy&&(o=t.orderBy.map(u=>{return new Jl(ac((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,kd(d)?null:d}(t.limit));let l=null;var u;t.startAt&&(l=new co((u=t.startAt).values||[],!!u.before));let c=null;return t.endAt&&(c=function(u){return new co(u.values||[],!u.before)}(t.endAt)),function uB(n,e,t,i,r,s,o,a){return new Rs(n,e,t,i,r,s,o,a)}(e,r,o,s,a,"F",l,c)}function WB(n){return n?void 0!==n.unaryFilter?[Qce(n)]:void 0!==n.fieldFilter?[Kce(n)]:void 0!==n.compositeFilter?n.compositeFilter.filters.map(e=>WB(e)).reduce((e,t)=>e.concat(t)):de():[]}function qce(n){return Bce[n]}function Yce(n){return $ce[n]}function oc(n){return{fieldPath:n.canonicalString()}}function ac(n){return zt.fromServerFormat(n.fieldPath)}function Kce(n){return An.create(ac(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 Qce(n){switch(n.unaryFilter.op){case"IS_NAN":const e=ac(n.unaryFilter.field);return An.create(e,"==",{doubleValue:NaN});case"IS_NULL":const t=ac(n.unaryFilter.field);return An.create(t,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const i=ac(n.unaryFilter.field);return An.create(i,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const r=ac(n.unaryFilter.field);return An.create(r,"!=",{nullValue:"NULL_VALUE"});default:return de()}}function Xce(n){const e=[];return n.fields.forEach(t=>e.push(t.canonicalString())),{fieldPaths:e}}function qB(n){return n.length>=4&&"projects"===n.get(0)&&"databases"===n.get(2)}class OT{constructor(e,t,i,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=i,this.mutations=r}applyToRemoteDocument(e,t){const i=t.mutationResults;for(let r=0;r<this.mutations.length;r++){const s=this.mutations[r];s.key.isEqual(e.key)&&Mce(s,e,i[r])}}applyToLocalView(e,t){for(const i of this.baseMutations)i.key.isEqual(e.key)&&(t=Vd(i,e,t,this.localWriteTime));for(const i of this.mutations)i.key.isEqual(e.key)&&(t=Vd(i,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const i=PB();return this.mutations.forEach(r=>{const s=e.get(r.key),o=s.overlayedDocument;let a=this.applyToLocalView(o,s.mutatedFields);a=t.has(r.key)?null:a;const l=CB(o,a);null!==l&&i.set(r.key,l),o.isValidDocument()||o.convertToNoDocument(ve.min())}),i}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),Oe())}isEqual(e){return this.batchId===e.batchId&&Ql(this.mutations,e.mutations,(t,i)=>EB(t,i))&&Ql(this.baseMutations,e.baseMutations,(t,i)=>EB(t,i))}}class NT{constructor(e,t,i,r){this.batch=e,this.commitVersion=t,this.mutationResults=i,this.docVersions=r}static from(e,t,i){_e(e.mutations.length===i.length);let r=Rce;const s=e.mutations;for(let o=0;o<s.length;o++)r=r.insert(s[o].key,i[o].version);return new NT(e,t,i,r)}}class RT{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 ho{constructor(e,t,i,r,s=ve.min(),o=ve.min(),a=un.EMPTY_BYTE_STRING){this.target=e,this.targetId=t,this.purpose=i,this.sequenceNumber=r,this.snapshotVersion=s,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a}withSequenceNumber(e){return new ho(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)}withResumeToken(e,t){return new ho(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e)}withLastLimboFreeSnapshotVersion(e){return new ho(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken)}}class e6{constructor(e){this.re=e}}function LT(n){const e=GB({parent:n.parent,structuredQuery:n.structuredQuery});return"LAST"===n.limitType?Fg(e,e.limit,"L"):e}class Ea{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(Rt(e.integerValue));else if("doubleValue"in e){const i=Rt(e.doubleValue);isNaN(i)?this.le(t,13):(this.le(t,15),Md(i)?t.fe(0):t.fe(i))}else if("timestampValue"in e){const i=e.timestampValue;this.le(t,20),"string"==typeof i?t.de(i):(t.de(`${i.seconds||""}`),t.fe(i.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(pa(e.bytesValue)),this.we(t);else if("referenceValue"in e)this.ge(e.referenceValue,t);else if("geoPointValue"in e){const i=e.geoPointValue;this.le(t,45),t.fe(i.latitude||0),t.fe(i.longitude||0)}else"mapValue"in e?eB(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 i=e.fields||{};this.le(t,55);for(const r of Object.keys(i))this._e(r,t),this.ae(i[r],t)}pe(e,t){const i=e.values||[];this.le(t,50);for(const r of i)this.ae(r,t)}ge(e,t){this.le(t,37),ne.fromName(e).path.forEach(i=>{this.le(t,60),this.Ie(i,t)})}le(e,t){e.fe(t)}we(e){e.fe(2)}}Ea.Te=new Ea;class Cue{constructor(){this.Ye=new VT}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(Li.min())}getMinOffsetFromCollectionGroup(e,t){return N.resolve(Li.min())}updateCollectionGroup(e,t,i){return N.resolve()}updateIndexEntries(e,t){return N.resolve()}}class VT{constructor(){this.index={}}add(e){const t=e.lastSegment(),i=e.popLast(),r=this.index[t]||new st(ze.comparator),s=!r.has(i);return this.index[t]=r.add(i),s}has(e){const t=e.lastSegment(),i=e.popLast(),r=this.index[t];return r&&r.has(i)}getEntries(e){return(this.index[e]||new st(ze.comparator)).toArray()}}new Uint8Array(0);class vi{constructor(e,t,i){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=i}static withCacheSize(e){return new vi(e,vi.DEFAULT_COLLECTION_PERCENTILE,vi.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}vi.DEFAULT_COLLECTION_PERCENTILE=10,vi.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,vi.DEFAULT=new vi(41943040,vi.DEFAULT_COLLECTION_PERCENTILE,vi.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),vi.DISABLED=new vi(-1,0,0);class Ia{constructor(e){this.bn=e}next(){return this.bn+=2,this.bn}static Pn(){return new Ia(0)}static vn(){return new Ia(-1)}}class Oue{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}class w6{constructor(e,t,i,r){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=i,this.indexManager=r}getDocument(e,t){let i=null;return this.documentOverlayCache.getOverlay(e,t).next(r=>(i=r,this.getBaseDocument(e,t,i))).next(r=>(null!==i&&Vd(i.mutation,r,Fi.empty(),At.now()),r))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(i=>this.getLocalViewOfDocuments(e,i,Oe()).next(()=>i))}getLocalViewOfDocuments(e,t,i=Oe()){const r=Kr();return this.populateOverlays(e,r,t).next(()=>this.computeViews(e,t,r,i).next(s=>{let o=Bd();return s.forEach((a,l)=>{o=o.insert(a,l.overlayedDocument)}),o}))}getOverlayedDocuments(e,t){const i=Kr();return this.populateOverlays(e,i,t).next(()=>this.computeViews(e,t,i,Oe()))}populateOverlays(e,t,i){const r=[];return i.forEach(s=>{t.has(s)||r.push(s)}),this.documentOverlayCache.getOverlays(e,r).next(s=>{s.forEach((o,a)=>{t.set(o,a)})})}computeViews(e,t,i,r){let s=_i();const o=$d(),a=$d();return t.forEach((l,c)=>{const u=i.get(c.key);r.has(c.key)&&(void 0===u||u.mutation instanceof Ls)?s=s.insert(c.key,c):void 0!==u&&(o.set(c.key,u.mutation.getFieldMask()),Vd(u.mutation,c,u.mutation.getFieldMask(),At.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 Oue(u,null!==(d=o.get(c))&&void 0!==d?d:null))}),a))}recalculateAndSaveOverlays(e,t){const i=$d();let r=new Nt((o,a)=>o-a),s=Oe();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=i.get(l)||Fi.empty();u=a.applyToLocalView(c,u),i.set(l,u);const d=(r.get(a.batchId)||Oe()).add(l);r=r.insert(a.batchId,d)})}).next(()=>{const o=[],a=r.getReverseIterator();for(;a.hasNext();){const l=a.getNext(),c=l.key,u=l.value,d=PB();u.forEach(h=>{if(!s.has(h)){const f=CB(t.get(h),i.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(()=>i)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(i=>this.recalculateAndSaveOverlays(e,i))}getDocumentsMatchingQuery(e,t,i){return ne.isDocumentKey((r=t).path)&&null===r.collectionGroup&&0===r.filters.length?this.getDocumentsMatchingDocumentQuery(e,t.path):function ET(n){return null!==n.collectionGroup}(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,i):this.getDocumentsMatchingCollectionQuery(e,t,i);var r}getNextDocuments(e,t,i,r){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,i,r).next(s=>{const o=r-s.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,i.largestBatchId,r-s.size):N.resolve(Kr());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,Oe())).next(u=>({batchId:a,changes:MB(u)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new ne(t)).next(i=>{let r=Bd();return i.isFoundDocument()&&(r=r.insert(i.key,i)),r})}getDocumentsMatchingCollectionGroupQuery(e,t,i){const r=t.collectionGroup;let s=Bd();return this.indexManager.getCollectionParents(e,r).next(o=>N.forEach(o,a=>{const l=(c=t,u=a.child(r),new Rs(u,null,c.explicitOrderBy.slice(),c.filters.slice(),c.limit,c.limitType,c.startAt,c.endAt));var c,u;return this.getDocumentsMatchingCollectionQuery(e,l,i).next(c=>{c.forEach((u,d)=>{s=s.insert(u,d)})})}).next(()=>s))}getDocumentsMatchingCollectionQuery(e,t,i){let r;return this.remoteDocumentCache.getAllFromCollection(e,t.path,i).next(s=>(r=s,this.documentOverlayCache.getOverlaysForCollection(e,t.path,i.largestBatchId))).next(s=>{s.forEach((a,l)=>{const c=l.getKey();null===r.get(c)&&(r=r.insert(c,mt.newInvalidDocument(c)))});let o=Bd();return r.forEach((a,l)=>{const c=s.get(a);void 0!==c&&Vd(c.mutation,l,Fi.empty(),At.now()),xT(t,l)&&(o=o.insert(a,l))}),o})}getBaseDocument(e,t,i){return null===i||1===i.mutation.type?this.remoteDocumentCache.getEntry(e,t):N.resolve(mt.newInvalidDocument(t))}}class Nue{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 i;return this.Zn.set(t.id,{id:(i=t).id,version:i.version,createTime:yn(i.createTime)}),N.resolve()}getNamedQuery(e,t){return N.resolve(this.ts.get(t))}saveNamedQuery(e,t){return this.ts.set(t.name,{name:(i=t).name,query:LT(i.bundledQuery),readTime:yn(i.readTime)}),N.resolve();var i}}class Rue{constructor(){this.overlays=new Nt(ne.comparator),this.es=new Map}getOverlay(e,t){return N.resolve(this.overlays.get(t))}getOverlays(e,t){const i=Kr();return N.forEach(t,r=>this.getOverlay(e,r).next(s=>{null!==s&&i.set(r,s)})).next(()=>i)}saveOverlays(e,t,i){return i.forEach((r,s)=>{this.ue(e,t,s)}),N.resolve()}removeOverlaysForBatchId(e,t,i){const r=this.es.get(i);return void 0!==r&&(r.forEach(s=>this.overlays=this.overlays.remove(s)),this.es.delete(i)),N.resolve()}getOverlaysForCollection(e,t,i){const r=Kr(),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>i&&r.set(l.getKey(),l)}return N.resolve(r)}getOverlaysForCollectionGroup(e,t,i,r){let s=new Nt((c,u)=>c-u);const o=this.overlays.getIterator();for(;o.hasNext();){const c=o.getNext().value;if(c.getKey().getCollectionGroup()===t&&c.largestBatchId>i){let u=s.get(c.largestBatchId);null===u&&(u=Kr(),s=s.insert(c.largestBatchId,u)),u.set(c.getKey(),c)}}const a=Kr(),l=s.getIterator();for(;l.hasNext()&&(l.getNext().value.forEach((c,u)=>a.set(c,u)),!(a.size()>=r)););return N.resolve(a)}ue(e,t,i){const r=this.overlays.get(i.key);if(null!==r){const o=this.es.get(r.largestBatchId).delete(i.key);this.es.set(r.largestBatchId,o)}this.overlays=this.overlays.insert(i.key,new RT(t,i));let s=this.es.get(t);void 0===s&&(s=Oe(),this.es.set(t,s)),this.es.set(t,s.add(i.key))}}class BT{constructor(){this.ns=new st(vn.ss),this.rs=new st(vn.os)}isEmpty(){return this.ns.isEmpty()}addReference(e,t){const i=new vn(e,t);this.ns=this.ns.add(i),this.rs=this.rs.add(i)}us(e,t){e.forEach(i=>this.addReference(i,t))}removeReference(e,t){this.cs(new vn(e,t))}hs(e,t){e.forEach(i=>this.removeReference(i,t))}ls(e){const t=new ne(new ze([])),i=new vn(t,e),r=new vn(t,e+1),s=[];return this.rs.forEachInRange([i,r],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 ze([])),i=new vn(t,e),r=new vn(t,e+1);let s=Oe();return this.rs.forEachInRange([i,r],o=>{s=s.add(o.key)}),s}containsKey(e){const t=new vn(e,0),i=this.ns.firstAfterOrEqual(t);return null!==i&&e.isEqual(i.key)}}class vn{constructor(e,t){this.key=e,this._s=t}static ss(e,t){return ne.comparator(e.key,t.key)||Ae(e._s,t._s)}static os(e,t){return Ae(e._s,t._s)||ne.comparator(e.key,t.key)}}class Lue{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.ws=1,this.gs=new st(vn.ss)}checkEmpty(e){return N.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,i,r){const s=this.ws;this.ws++;const o=new OT(s,t,i,r);this.mutationQueue.push(o);for(const a of r)this.gs=this.gs.add(new vn(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 r=this.ps(t+1),s=r<0?0:r;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 i=new vn(t,0),r=new vn(t,Number.POSITIVE_INFINITY),s=[];return this.gs.forEachInRange([i,r],o=>{const a=this.ys(o._s);s.push(a)}),N.resolve(s)}getAllMutationBatchesAffectingDocumentKeys(e,t){let i=new st(Ae);return t.forEach(r=>{const s=new vn(r,0),o=new vn(r,Number.POSITIVE_INFINITY);this.gs.forEachInRange([s,o],a=>{i=i.add(a._s)})}),N.resolve(this.Is(i))}getAllMutationBatchesAffectingQuery(e,t){const i=t.path,r=i.length+1;let s=i;ne.isDocumentKey(s)||(s=s.child(""));const o=new vn(new ne(s),0);let a=new st(Ae);return this.gs.forEachWhile(l=>{const c=l.key.path;return!!i.isPrefixOf(c)&&(c.length===r&&(a=a.add(l._s)),!0)},o),N.resolve(this.Is(a))}Is(e){const t=[];return e.forEach(i=>{const r=this.ys(i);null!==r&&t.push(r)}),t}removeMutationBatch(e,t){_e(0===this.Ts(t.batchId,"removed")),this.mutationQueue.shift();let i=this.gs;return N.forEach(t.mutations,r=>{const s=new vn(r.key,t.batchId);return i=i.delete(s),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)}).next(()=>{this.gs=i})}An(e){}containsKey(e,t){const i=new vn(t,0),r=this.gs.firstAfterOrEqual(i);return N.resolve(t.isEqual(r&&r.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 Fue{constructor(e){this.Es=e,this.docs=new Nt(ne.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const i=t.key,r=this.docs.get(i),s=r?r.size:0,o=this.Es(t);return this.docs=this.docs.insert(i,{document:t.mutableCopy(),size:o}),this.size+=o-s,this.indexManager.addToCollectionParentIndex(e,i.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 i=this.docs.get(t);return N.resolve(i?i.document.mutableCopy():mt.newInvalidDocument(t))}getEntries(e,t){let i=_i();return t.forEach(r=>{const s=this.docs.get(r);i=i.insert(r,s?s.document.mutableCopy():mt.newInvalidDocument(r))}),N.resolve(i)}getAllFromCollection(e,t,i){let r=_i();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||mT(zV(l),i)<=0||(r=r.insert(l.key,l.mutableCopy()))}return N.resolve(r)}getAllFromCollectionGroup(e,t,i,r){de()}As(e,t){return N.forEach(this.docs,i=>t(i))}newChangeBuffer(e){return new Vue(this)}getSize(e){return N.resolve(this.size)}}class Vue extends class kue{constructor(){this.changes=new uo(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,mt.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const i=this.changes.get(t);return void 0!==i?N.resolve(i):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((i,r)=>{r.isValidDocument()?t.push(this.Yn.addEntry(e,r)):this.Yn.removeEntry(i)}),N.waitFor(t)}getFromCache(e,t){return this.Yn.getEntry(e,t)}getAllFromCache(e,t){return this.Yn.getEntries(e,t)}}class Bue{constructor(e){this.persistence=e,this.Rs=new uo(t=>_a(t),Rd),this.lastRemoteSnapshotVersion=ve.min(),this.highestTargetId=0,this.bs=0,this.Ps=new BT,this.targetCount=0,this.vs=Ia.Pn()}forEachTarget(e,t){return this.Rs.forEach((i,r)=>t(r)),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,i){return i&&(this.lastRemoteSnapshotVersion=i),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 Ia(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,i){let r=0;const s=[];return this.Rs.forEach((o,a)=>{a.sequenceNumber<=t&&null===i.get(a.targetId)&&(this.Rs.delete(o),s.push(this.removeMatchingKeysForTargetId(e,a.targetId)),r++)}),N.waitFor(s).next(()=>r)}getTargetCount(e){return N.resolve(this.targetCount)}getTargetData(e,t){const i=this.Rs.get(t)||null;return N.resolve(i)}addMatchingKeys(e,t,i){return this.Ps.us(t,i),N.resolve()}removeMatchingKeys(e,t,i){this.Ps.hs(t,i);const r=this.persistence.referenceDelegate,s=[];return r&&t.forEach(o=>{s.push(r.markPotentiallyOrphaned(e,o))}),N.waitFor(s)}removeMatchingKeysForTargetId(e,t){return this.Ps.ls(t),N.resolve()}getMatchingKeysForTargetId(e,t){const i=this.Ps.ds(t);return N.resolve(i)}containsKey(e,t){return N.resolve(this.Ps.containsKey(t))}}class S6{constructor(e,t){this.Vs={},this.overlays={},this.Ss=new yi(0),this.Ds=!1,this.Ds=!0,this.referenceDelegate=e(this),this.Cs=new Bue(this),this.indexManager=new Cue,this.remoteDocumentCache=new Fue(i=>this.referenceDelegate.xs(i)),this.It=new e6(t),this.Ns=new Nue(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 Rue,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let i=this.Vs[e.toKey()];return i||(i=new Lue(t,this.referenceDelegate),this.Vs[e.toKey()]=i),i}getTargetCache(){return this.Cs}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Ns}runTransaction(e,t,i){X("MemoryPersistence","Starting transaction:",e);const r=new $ue(this.Ss.next());return this.referenceDelegate.ks(),i(r).next(s=>this.referenceDelegate.Os(r).next(()=>s)).toPromise().then(s=>(r.raiseOnCommittedEvent(),s))}Ms(e,t){return N.or(Object.values(this.Vs).map(i=>()=>i.containsKey(e,t)))}}class $ue extends class ace{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}{constructor(e){super(),this.currentSequenceNumber=e}}class Xg{constructor(e){this.persistence=e,this.Fs=new BT,this.$s=null}static Bs(e){return new Xg(e)}get Ls(){if(this.$s)return this.$s;throw de()}addReference(e,t,i){return this.Fs.addReference(i,t),this.Ls.delete(i.toString()),N.resolve()}removeReference(e,t,i){return this.Fs.removeReference(i,t),this.Ls.add(i.toString()),N.resolve()}markPotentiallyOrphaned(e,t){return this.Ls.add(t.toString()),N.resolve()}removeTarget(e,t){this.Fs.ls(t.targetId).forEach(r=>this.Ls.add(r.toString()));const i=this.persistence.getTargetCache();return i.getMatchingKeysForTargetId(e,t.targetId).next(r=>{r.forEach(s=>this.Ls.add(s.toString()))}).next(()=>i.removeTargetData(e,t))}ks(){this.$s=new Set}Os(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return N.forEach(this.Ls,i=>{const r=ne.fromPath(i);return this.Us(e,r).next(s=>{s||t.removeEntry(r,ve.min())})}).next(()=>(this.$s=null,t.apply(e)))}updateLimboDocument(e,t){return this.Us(e,t).next(i=>{i?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 zT{constructor(e,t,i,r){this.targetId=e,this.fromCache=t,this.Si=i,this.Di=r}static Ci(e,t){let i=Oe(),r=Oe();for(const s of t.docChanges)switch(s.type){case 0:i=i.add(s.doc.key);break;case 1:r=r.add(s.doc.key)}return new zT(e,t.fromCache,i,r)}}class E6{constructor(){this.xi=!1}initialize(e,t){this.Ni=e,this.indexManager=t,this.xi=!0}getDocumentsMatchingQuery(e,t,i,r){return this.ki(e,t).next(s=>s||this.Oi(e,t,r,i)).next(s=>s||this.Mi(e,t))}ki(e,t){if(dB(t))return N.resolve(null);let i=ri(t);return this.indexManager.getIndexType(e,i).next(r=>0===r?null:(null!==t.limit&&1===r&&(t=Fg(t,null,"F"),i=ri(t)),this.indexManager.getDocumentsMatchingTarget(e,i).next(s=>{const o=Oe(...s);return this.Ni.getDocuments(e,o).next(a=>this.indexManager.getMinOffset(e,i).next(l=>{const c=this.Fi(t,a);return this.$i(t,c,o,l.readTime)?this.ki(e,Fg(t,null,"F")):this.Bi(e,c,t,l)}))})))}Oi(e,t,i,r){return dB(t)||r.isEqual(ve.min())?this.Mi(e,t):this.Ni.getDocuments(e,i).next(s=>{const o=this.Fi(t,s);return this.$i(t,o,i,r)?this.Mi(e,t):(fT()<=Ue.DEBUG&&X("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),TT(t)),this.Bi(e,o,t,function UV(n,e){const t=n.toTimestamp().seconds,i=n.toTimestamp().nanoseconds+1,r=ve.fromTimestamp(1e9===i?new At(t+1,0):new At(t,i));return new Li(r,ne.empty(),e)}(r,-1)))})}Fi(e,t){let i=new st(pB(e));return t.forEach((r,s)=>{xT(e,s)&&(i=i.add(s))}),i}$i(e,t,i,r){if(null===e.limit)return!1;if(i.size!==t.size)return!0;const s="F"===e.limitType?t.last():t.first();return!!s&&(s.hasPendingWrites||s.version.compareTo(r)>0)}Mi(e,t){return fT()<=Ue.DEBUG&&X("QueryEngine","Using full collection scan to execute query:",TT(t)),this.Ni.getDocumentsMatchingQuery(e,t,Li.min())}Bi(e,t,i,r){return this.Ni.getDocumentsMatchingQuery(e,i,r).next(s=>(t.forEach(o=>{s=s.insert(o.key,o)}),s))}}class Uue{constructor(e,t,i,r){this.persistence=e,this.Li=t,this.It=r,this.Ui=new Nt(Ae),this.qi=new uo(s=>_a(s),Rd),this.Ki=new Map,this.Gi=e.getRemoteDocumentCache(),this.Cs=e.getTargetCache(),this.Ns=e.getBundleCache(),this.Qi(i)}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 w6(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 x6(n,e){return jT.apply(this,arguments)}function jT(){return jT=k(function*(n,e){const t=ie(n);return yield t.persistence.runTransaction("Handle user change","readonly",i=>{let r;return t.mutationQueue.getAllMutationBatches(i).next(s=>(r=s,t.Qi(e),t.mutationQueue.getAllMutationBatches(i))).next(s=>{const o=[],a=[];let l=Oe();for(const c of r){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(i,l).next(c=>({ji:c,removedBatchIds:o,addedBatchIds:a}))})})}),jT.apply(this,arguments)}function zue(n,e){const t=ie(n);return t.persistence.runTransaction("Acknowledge batch","readwrite-primary",i=>{const r=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);_e(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,i,e,s).next(()=>s.apply(i)).next(()=>t.mutationQueue.performConsistencyCheck(i)).next(()=>t.documentOverlayCache.removeOverlaysForBatchId(i,r,e.batch.batchId)).next(()=>t.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(i,function(o){let a=Oe();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(i,r))})}function I6(n){const e=ie(n);return e.persistence.runTransaction("Get last remote snapshot version","readonly",t=>e.Cs.getLastRemoteSnapshotVersion(t))}function jue(n,e){const t=ie(n),i=e.snapshotVersion;let r=t.Ui;return t.persistence.runTransaction("Apply remote event","readwrite-primary",s=>{const o=t.Gi.newChangeBuffer({trackRemovals:!0});r=t.Ui;const a=[];e.targetChanges.forEach((u,d)=>{const h=r.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(un.EMPTY_BYTE_STRING,ve.min()).withLastLimboFreeSnapshotVersion(ve.min()):u.resumeToken.approximateByteSize()>0&&(f=f.withResumeToken(u.resumeToken,i)),r=r.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=_i(),c=Oe();if(e.documentUpdates.forEach(u=>{e.resolvedLimboDocuments.has(u)&&a.push(t.persistence.referenceDelegate.updateLimboDocument(s,u))}),a.push(function A6(n,e,t){let i=Oe(),r=Oe();return t.forEach(s=>i=i.add(s)),e.getEntries(n,i).next(s=>{let o=_i();return t.forEach((a,l)=>{const c=s.get(a);l.isFoundDocument()!==c.isFoundDocument()&&(r=r.add(a)),l.isNoDocument()&&l.version.isEqual(ve.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)):X("LocalStore","Ignoring outdated watch update for ",a,". Current version:",c.version," Watch version:",l.version)}),{Wi:o,zi:r}})}(s,o,e.documentUpdates).next(u=>{l=u.Wi,c=u.zi})),!i.isEqual(ve.min())){const u=t.Cs.getLastRemoteSnapshotVersion(s).next(d=>t.Cs.setTargetsMetadata(s,s.currentSequenceNumber,i));a.push(u)}return N.waitFor(a).next(()=>o.apply(s)).next(()=>t.localDocuments.getLocalViewOfDocuments(s,l,c)).next(()=>l)}).then(s=>(t.Ui=r,s))}function Gue(n,e){const t=ie(n);return t.persistence.runTransaction("Get next mutation batch","readonly",i=>(void 0===e&&(e=-1),t.mutationQueue.getNextMutationBatchAfterBatchId(i,e)))}function uc(n,e){const t=ie(n);return t.persistence.runTransaction("Allocate target","readwrite",i=>{let r;return t.Cs.getTargetData(i,e).next(s=>s?(r=s,N.resolve(r)):t.Cs.allocateTargetId(i).next(o=>(r=new ho(e,o,0,i.currentSequenceNumber),t.Cs.addTargetData(i,r).next(()=>r))))}).then(i=>{const r=t.Ui.get(i.targetId);return(null===r||i.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(t.Ui=t.Ui.insert(i.targetId,i),t.qi.set(e,i.targetId)),i})}function dc(n,e,t){return GT.apply(this,arguments)}function GT(){return GT=k(function*(n,e,t){const i=ie(n),r=i.Ui.get(e),s=t?"readwrite":"readwrite-primary";try{t||(yield i.persistence.runTransaction("Release target",s,o=>i.persistence.referenceDelegate.removeTarget(o,r)))}catch(o){if(!so(o))throw o;X("LocalStore",`Failed to update sequence numbers for target ${e}: ${o}`)}i.Ui=i.Ui.remove(e),i.qi.delete(r.target)}),GT.apply(this,arguments)}function Jg(n,e,t){const i=ie(n);let r=ve.min(),s=Oe();return i.persistence.runTransaction("Execute query","readonly",o=>function(a,l,c){const u=ie(a),d=u.qi.get(c);return void 0!==d?N.resolve(u.Ui.get(d)):u.Cs.getTargetData(l,c)}(i,o,ri(e)).next(a=>{if(a)return r=a.lastLimboFreeSnapshotVersion,i.Cs.getMatchingKeysForTargetId(o,a.targetId).next(l=>{s=l})}).next(()=>i.Li.getDocumentsMatchingQuery(o,e,t?r:ve.min(),t?s:Oe())).next(a=>(function M6(n,e,t){let i=n.Ki.get(e)||ve.min();t.forEach((r,s)=>{s.readTime.compareTo(i)>0&&(i=s.readTime)}),n.Ki.set(e,i)}(i,function fB(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 QT{constructor(){this.activeTargetIds=Hg()}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 N6{constructor(){this.Lr=new QT,this.Ur={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,i){}addLocalQueryTarget(e){return this.Lr.er(e),this.Ur[e]||"not-current"}updateQueryState(e,t,i){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 QT,Promise.resolve()}handleUserChange(e,t,i){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class Yue{qr(e){}shutdown(){}}class R6{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(){X("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.Wr)e(0)}jr(){X("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 Kue={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class Que{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 Xue 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,i,r,s){const o=this.ho(e,t);X("RestConnection","Sending: ",o,i);const a={};return this.lo(a,r,s),this.fo(e,o,a,i).then(l=>(X("RestConnection","Received: ",l),l),l=>{throw Kl("RestConnection",`${e} failed with error: `,l,"url: ",o,"request:",i),l})}_o(e,t,i,r,s,o){return this.ao(e,t,i,r,s)}lo(e,t,i){e["X-Goog-Api-Client"]="gl-js/ fire/"+Yl,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((r,s)=>e[s]=r),i&&i.headers.forEach((r,s)=>e[s]=r)}ho(e,t){return`${this.oo}/v1/${t}:${Kue[e]}`}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams}fo(e,t,i,r){return new Promise((s,o)=>{const a=new Qle;a.setWithCredentials(!0),a.listenOnce(qle.COMPLETE,()=>{try{switch(a.getLastErrorCode()){case hT.NO_ERROR:const c=a.getResponseJson();X("Connection","XHR received:",JSON.stringify(c)),s(c);break;case hT.TIMEOUT:X("Connection",'RPC "'+e+'" timed out'),o(new Q(F.DEADLINE_EXCEEDED,"Request time out"));break;case hT.HTTP_ERROR:const u=a.getStatus();if(X("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(F).indexOf(p)>=0?p:F.UNKNOWN}(d.status);o(new Q(h,d.message))}else o(new Q(F.UNKNOWN,"Server responded with status "+a.getStatus()))}else o(new Q(F.UNAVAILABLE,"Connection failed."));break;default:de()}}finally{X("Connection",'RPC "'+e+'" completed.')}});const l=JSON.stringify(r);a.send(t,"POST",l,i,15)})}wo(e,t,i){const r=[this.oo,"/","google.firestore.v1.Firestore","/",e,"/channel"],s=Gle(),o=Wle(),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 Kle({})),this.lo(a.initMessageHeaders,t,i),a.encodeInitMessageHeaders=!0;const l=r.join("");X("Connection","Creating WebChannel: "+l,a);const c=s.createWebChannel(l,a);let u=!1,d=!1;const h=new Que({Hr:p=>{d?X("Connection","Not sending because WebChannel is closed:",p):(u||(X("Connection","Opening WebChannel transport."),c.open(),u=!0),X("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,Ag.EventType.OPEN,()=>{d||X("Connection","WebChannel transport opened.")}),f(c,Ag.EventType.CLOSE,()=>{d||(d=!0,X("Connection","WebChannel transport closed"),h.io())}),f(c,Ag.EventType.ERROR,p=>{d||(d=!0,Kl("Connection","WebChannel transport errored:",p),h.io(new Q(F.UNAVAILABLE,"The operation could not be completed")))}),f(c,Ag.EventType.MESSAGE,p=>{var g;if(!d){const m=p.data[0];_e(!!m);const _=m,b=_.error||(null===(g=_[0])||void 0===g?void 0:g.error);if(b){X("Connection","WebChannel received error:",b);const y=b.status;let T=function(D){const P=Zt[D];if(void 0!==P)return DB(P)}(y),I=b.message;void 0===T&&(T=F.INTERNAL,I="Unknown error status: "+y+" with message "+b.message),d=!0,h.io(new Q(T,I)),c.close()}else X("Connection","WebChannel received:",m),h.ro(m)}}),f(o,Yle.STAT_EVENT,p=>{p.stat===LV.PROXY?X("Connection","Detected buffering proxy"):p.stat===LV.NOPROXY&&X("Connection","Detected no buffering proxy")}),setTimeout(()=>{h.so()},0),h}}function nm(){return typeof document<"u"?document:null}function th(n){return new Hce(n,!0)}class ZT{constructor(e,t,i=1e3,r=1.5,s=6e4){this.Hs=e,this.timerId=t,this.mo=i,this.yo=r,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()),i=Math.max(0,Date.now()-this.Eo),r=Math.max(0,t-i);r>0&&X("ExponentialBackoff",`Backing off for ${r} ms (base delay: ${this.Io} ms, delay with jitter: ${t} ms, last attempt: ${i} ms ago)`),this.To=this.Hs.enqueueAfterDelay(this.timerId,r,()=>(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 F6{constructor(e,t,i,r,s,o,a,l){this.Hs=e,this.vo=i,this.Vo=r,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 ZT(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 k(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 k(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 i=this;return k(function*(){i.Uo(),i.qo(),i.No.cancel(),i.Do++,4!==e?i.No.reset():t&&t.code===F.RESOURCE_EXHAUSTED?(Ut(t.toString()),Ut("Using maximum backoff delay to prevent overloading the backend."),i.No.Ao()):t&&t.code===F.UNAUTHENTICATED&&3!==i.state&&(i.authCredentialsProvider.invalidateToken(),i.appCheckCredentialsProvider.invalidateToken()),null!==i.stream&&(i.Ko(),i.stream.close(),i.stream=null),i.state=e,yield i.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(([i,r])=>{this.Do===t&&this.Qo(i,r)},i=>{e(()=>{const r=new Q(F.UNKNOWN,"Fetching auth token failed: "+i.message);return this.jo(r)})})}Qo(e,t){const i=this.Go(this.Do);this.stream=this.Wo(e,t),this.stream.Yr(()=>{i(()=>(this.state=2,this.xo=this.Hs.enqueueAfterDelay(this.Vo,1e4,()=>(this.Oo()&&(this.state=3),Promise.resolve())),this.listener.Yr()))}),this.stream.Zr(r=>{i(()=>this.jo(r))}),this.stream.onMessage(r=>{i(()=>this.onMessage(r))})}Mo(){var e=this;this.state=5,this.No.Ro(k(function*(){e.state=0,e.start()}))}jo(e){return X("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}Go(e){return t=>{this.Hs.enqueueAndForget(()=>this.Do===e?t():(X("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class Zue extends F6{constructor(e,t,i,r,s,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,i,r,o),this.It=s}Wo(e,t){return this.So.wo("Listen",e,t)}onMessage(e){this.No.reset();const t=function jce(n,e){let t;if("targetChange"in e){const i="NO_CHANGE"===(l=e.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===l?1:"REMOVE"===l?2:"CURRENT"===l?3:"RESET"===l?4:de(),r=e.targetChange.targetIds||[],s=function(l,c){return l.gt?(_e(void 0===c||"string"==typeof c),un.fromBase64String(c||"")):(_e(void 0===c||c instanceof Uint8Array),un.fromUint8Array(c||new Uint8Array))}(n,e.targetChange.resumeToken),o=e.targetChange.cause,a=o&&function(l){const c=void 0===l.code?F.UNKNOWN:DB(l.code);return new Q(c,l.message||"")}(o);t=new NB(i,r,s,a||null)}else if("documentChange"in e){const i=e.documentChange,r=Qr(n,i.document.name),s=yn(i.document.updateTime),o=new In({mapValue:{fields:i.document.fields}}),a=mt.newFoundDocument(r,s,o);t=new Ug(i.targetIds||[],i.removedTargetIds||[],a.key,a)}else if("documentDelete"in e){const i=e.documentDelete,r=Qr(n,i.document),s=i.readTime?yn(i.readTime):ve.min(),o=mt.newNoDocument(r,s);t=new Ug([],i.removedTargetIds||[],o.key,o)}else if("documentRemove"in e){const i=e.documentRemove,r=Qr(n,i.document);t=new Ug([],i.removedTargetIds||[],r,null)}else{if(!("filter"in e))return de();{const i=e.filter,s=new Oce(i.count||0);t=new OB(i.targetId,s)}}var l;return t}(this.It,e),i=function(r){if(!("targetChange"in r))return ve.min();const s=r.targetChange;return s.targetIds&&s.targetIds.length?ve.min():s.readTime?yn(s.readTime):ve.min()}(e);return this.listener.zo(t,i)}Ho(e){const t={};t.database=Gd(this.It),t.addTarget=function(r,s){let o;const a=s.target;return o=Rg(a)?{documents:jB(r,a)}:{query:MT(r,a)},o.targetId=s.targetId,s.resumeToken.approximateByteSize()>0?o.resumeToken=VB(r,s.resumeToken):s.snapshotVersion.compareTo(ve.min())>0&&(o.readTime=zd(r,s.snapshotVersion.toTimestamp())),o}(this.It,e);const i=function Wce(n,e){const t=function(i,r){switch(r){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);i&&(t.labels=i),this.Lo(t)}Jo(e){const t={};t.database=Gd(this.It),t.removeTarget=e,this.Lo(t)}}class Jue extends F6{constructor(e,t,i,r,s,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,i,r,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(_e(!!e.streamToken),this.lastStreamToken=e.streamToken,this.Yo){this.No.reset();const t=function Gce(n,e){return n&&n.length>0?(_e(void 0!==e),n.map(t=>function(i,r){let s=yn(i.updateTime?i.updateTime:r);return s.isEqual(ve.min())&&(s=yn(r)),new kce(s,i.transformResults||[])}(t,e))):[]}(e.writeResults,e.commitTime),i=yn(e.commitTime);return this.listener.tu(i,t)}return _e(!e.writeResults||0===e.writeResults.length),this.Yo=!0,this.listener.eu()}nu(){const e={};e.database=Gd(this.It),this.Lo(e)}Zo(e){const t={streamToken:this.lastStreamToken,writes:e.map(i=>function Wd(n,e){let t;if(e instanceof rc)t={update:UB(n,e.key,e.value)};else if(e instanceof sc)t={delete:jd(n,e.key)};else if(e instanceof Ls)t={update:UB(n,e.key,e.data),updateMask:Xce(e.fieldMask)};else{if(!(e instanceof IT))return de();t={verify:jd(n,e.key)}}return e.fieldTransforms.length>0&&(t.updateTransforms=e.fieldTransforms.map(i=>function(r,s){const o=s.transform;if(o instanceof nc)return{fieldPath:s.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(o instanceof va)return{fieldPath:s.field.canonicalString(),appendMissingElements:{values:o.elements}};if(o instanceof ba)return{fieldPath:s.field.canonicalString(),removeAllFromArray:{values:o.elements}};if(o instanceof ic)return{fieldPath:s.field.canonicalString(),increment:o.yt};throw de()}(0,i))),e.precondition.isNone||(t.currentDocument=void 0!==(r=e.precondition).updateTime?{updateTime:Uce(n,r.updateTime)}:void 0!==r.exists?{exists:r.exists}:de()),t;var r}(this.It,i))};this.Lo(t)}}class ede extends class{}{constructor(e,t,i,r){super(),this.authCredentials=e,this.appCheckCredentials=t,this.So=i,this.It=r,this.su=!1}iu(){if(this.su)throw new Q(F.FAILED_PRECONDITION,"The client has already been terminated.")}ao(e,t,i){return this.iu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([r,s])=>this.So.ao(e,t,i,r,s)).catch(r=>{throw"FirebaseError"===r.name?(r.code===F.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),r):new Q(F.UNKNOWN,r.toString())})}_o(e,t,i,r){return this.iu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,o])=>this.So._o(e,t,i,s,o,r)).catch(s=>{throw"FirebaseError"===s.name?(s.code===F.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new Q(F.UNKNOWN,s.toString())})}terminate(){this.su=!0}}class nde{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?(Ut(t),this.uu=!1):X("OnlineStateTracker",t)}fu(){null!==this.ou&&(this.ou.cancel(),this.ou=null)}}class ide{constructor(e,t,i,r,s){var o=this;this.localStore=e,this.datastore=t,this.asyncQueue=i,this.remoteSyncer={},this.du=[],this._u=new Map,this.wu=new Set,this.mu=[],this.gu=s,this.gu.qr(a=>{i.enqueueAndForget(k(function*(){var l;Fs(o)&&(X("RemoteStore","Restarting streams for network reachability change."),yield(l=k(function*(c){const u=ie(c);u.wu.add(4),yield hc(u),u.yu.set("Unknown"),u.wu.delete(4),yield nh(u)}),function(c){return l.apply(this,arguments)})(o))}))}),this.yu=new nde(i,r)}}function nh(n){return ex.apply(this,arguments)}function ex(){return ex=k(function*(n){if(Fs(n))for(const e of n.mu)yield e(!0)}),ex.apply(this,arguments)}function hc(n){return tx.apply(this,arguments)}function tx(){return tx=k(function*(n){for(const e of n.mu)yield e(!1)}),tx.apply(this,arguments)}function im(n,e){const t=ie(n);t._u.has(e.targetId)||(t._u.set(e.targetId,e),rx(t)?ix(t):pc(t).Oo()&&nx(t,e))}function ih(n,e){const t=ie(n),i=pc(t);t._u.delete(e),i.Oo()&&V6(t,e),0===t._u.size&&(i.Oo()?i.$o():Fs(t)&&t.yu.set("Unknown"))}function nx(n,e){n.pu.Mt(e.targetId),pc(n).Ho(e)}function V6(n,e){n.pu.Mt(e),pc(n).Jo(e)}function ix(n){n.pu=new Vce({getRemoteKeysForTarget:e=>n.remoteSyncer.getRemoteKeysForTarget(e),se:e=>n._u.get(e)||null}),pc(n).start(),n.yu.cu()}function rx(n){return Fs(n)&&!pc(n).ko()&&n._u.size>0}function Fs(n){return 0===ie(n).wu.size}function B6(n){n.pu=void 0}function rde(n){return sx.apply(this,arguments)}function sx(){return sx=k(function*(n){n._u.forEach((e,t)=>{nx(n,e)})}),sx.apply(this,arguments)}function sde(n,e){return ox.apply(this,arguments)}function ox(){return ox=k(function*(n,e){B6(n),rx(n)?(n.yu.lu(e),ix(n)):n.yu.set("Unknown")}),ox.apply(this,arguments)}function ode(n,e,t){return ax.apply(this,arguments)}function ax(){return ax=k(function*(n,e,t){if(n.yu.set("Online"),e instanceof NB&&2===e.state&&e.cause)try{yield(i=k(function*(r,s){const o=s.cause;for(const a of s.targetIds)r._u.has(a)&&(yield r.remoteSyncer.rejectListen(a,o),r._u.delete(a),r.pu.removeTarget(a))}),function(r,s){return i.apply(this,arguments)})(n,e)}catch(i){X("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),i),yield rm(n,i)}else if(e instanceof Ug?n.pu.Gt(e):e instanceof OB?n.pu.Yt(e):n.pu.Wt(e),!t.isEqual(ve.min()))try{const i=yield I6(n.localStore);t.compareTo(i)>=0&&(yield function(r,s){const o=r.pu.te(s);return o.targetChanges.forEach((a,l)=>{if(a.resumeToken.approximateByteSize()>0){const c=r._u.get(l);c&&r._u.set(l,c.withResumeToken(a.resumeToken,s))}}),o.targetMismatches.forEach(a=>{const l=r._u.get(a);if(!l)return;r._u.set(a,l.withResumeToken(un.EMPTY_BYTE_STRING,l.snapshotVersion)),V6(r,a);const c=new ho(l.target,a,1,l.sequenceNumber);nx(r,c)}),r.remoteSyncer.applyRemoteEvent(o)}(n,t))}catch(i){X("RemoteStore","Failed to raise snapshot:",i),yield rm(n,i)}var i}),ax.apply(this,arguments)}function rm(n,e,t){return lx.apply(this,arguments)}function lx(){return lx=k(function*(n,e,t){if(!so(e))throw e;n.wu.add(1),yield hc(n),n.yu.set("Offline"),t||(t=()=>I6(n.localStore)),n.asyncQueue.enqueueRetryable(k(function*(){X("RemoteStore","Retrying IndexedDB access"),yield t(),n.wu.delete(1),yield nh(n)}))}),lx.apply(this,arguments)}function $6(n,e){return e().catch(t=>rm(n,t,e))}function fc(n){return cx.apply(this,arguments)}function cx(){return cx=k(function*(n){const e=ie(n),t=go(e);let i=e.du.length>0?e.du[e.du.length-1].batchId:-1;for(;ade(e);)try{const r=yield Gue(e.localStore,i);if(null===r){0===e.du.length&&t.$o();break}i=r.batchId,lde(e,r)}catch(r){yield rm(e,r)}H6(e)&&U6(e)}),cx.apply(this,arguments)}function ade(n){return Fs(n)&&n.du.length<10}function lde(n,e){n.du.push(e);const t=go(n);t.Oo()&&t.Xo&&t.Zo(e.mutations)}function H6(n){return Fs(n)&&!go(n).ko()&&n.du.length>0}function U6(n){go(n).start()}function cde(n){return ux.apply(this,arguments)}function ux(){return ux=k(function*(n){go(n).nu()}),ux.apply(this,arguments)}function ude(n){return dx.apply(this,arguments)}function dx(){return dx=k(function*(n){const e=go(n);for(const t of n.du)e.Zo(t.mutations)}),dx.apply(this,arguments)}function dde(n,e,t){return hx.apply(this,arguments)}function hx(){return hx=k(function*(n,e,t){const i=n.du.shift(),r=NT.from(i,e,t);yield $6(n,()=>n.remoteSyncer.applySuccessfulWrite(r)),yield fc(n)}),hx.apply(this,arguments)}function hde(n,e){return fx.apply(this,arguments)}function fx(){return fx=k(function*(n,e){var t;e&&go(n).Xo&&(yield(t=k(function*(i,r){if(AB(s=r.code)&&s!==F.ABORTED){const o=i.du.shift();go(i).Fo(),yield $6(i,()=>i.remoteSyncer.rejectFailedWrite(o.batchId,r)),yield fc(i)}var s}),function(i,r){return t.apply(this,arguments)})(n,e)),H6(n)&&U6(n)}),fx.apply(this,arguments)}function z6(n,e){return px.apply(this,arguments)}function px(){return px=k(function*(n,e){const t=ie(n);t.asyncQueue.verifyOperationInProgress(),X("RemoteStore","RemoteStore received new credentials");const i=Fs(t);t.wu.add(3),yield hc(t),i&&t.yu.set("Unknown"),yield t.remoteSyncer.handleCredentialChange(e),t.wu.delete(3),yield nh(t)}),px.apply(this,arguments)}function mx(){return mx=k(function*(n,e){const t=ie(n);e?(t.wu.delete(2),yield nh(t)):e||(t.wu.add(2),yield hc(t),t.yu.set("Unknown"))}),mx.apply(this,arguments)}function pc(n){return n.Iu||(n.Iu=function(e,t,i){const r=ie(e);return r.iu(),new Zue(t,r.So,r.authCredentials,r.appCheckCredentials,r.It,i)}(n.datastore,n.asyncQueue,{Yr:rde.bind(null,n),Zr:sde.bind(null,n),zo:ode.bind(null,n)}),n.mu.push(function(){var e=k(function*(t){t?(n.Iu.Fo(),rx(n)?ix(n):n.yu.set("Unknown")):(yield n.Iu.stop(),B6(n))});return function(t){return e.apply(this,arguments)}}())),n.Iu}function go(n){return n.Tu||(n.Tu=function(e,t,i){const r=ie(e);return r.iu(),new Jue(t,r.So,r.authCredentials,r.appCheckCredentials,r.It,i)}(n.datastore,n.asyncQueue,{Yr:cde.bind(null,n),Zr:hde.bind(null,n),eu:ude.bind(null,n),tu:dde.bind(null,n)}),n.mu.push(function(){var e=k(function*(t){t?(n.Tu.Fo(),yield fc(n)):(yield n.Tu.stop(),n.du.length>0&&(X("RemoteStore",`Stopping write stream with ${n.du.length} pending writes`),n.du=[]))});return function(t){return e.apply(this,arguments)}}())),n.Tu}class yx{constructor(e,t,i,r,s){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=i,this.op=r,this.removalCallback=s,this.deferred=new cn,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(o=>{})}static createAndSchedule(e,t,i,r,s){const o=Date.now()+i,a=new yx(e,t,o,r,s);return a.start(i),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(F.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 gc(n,e){if(Ut("AsyncQueue",`${e}: ${n}`),so(n))return new Q(F.UNAVAILABLE,`${e}: ${n}`);throw n}class mc{constructor(e){this.comparator=e?(t,i)=>e(t,i)||ne.comparator(t.key,i.key):(t,i)=>ne.comparator(t.key,i.key),this.keyedMap=Bd(),this.sortedSet=new Nt(this.comparator)}static emptySet(e){return new mc(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,i)=>(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 mc)||this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),i=e.sortedSet.getIterator();for(;t.hasNext();){const r=t.getNext().key,s=i.getNext().key;if(!r.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 i=new mc;return i.comparator=this.comparator,i.keyedMap=e,i.sortedSet=t,i}}class j6{constructor(){this.Eu=new Nt(ne.comparator)}track(e){const t=e.doc.key,i=this.Eu.get(t);i?0!==e.type&&3===i.type?this.Eu=this.Eu.insert(t,e):3===e.type&&1!==i.type?this.Eu=this.Eu.insert(t,{type:i.type,doc:e.doc}):2===e.type&&2===i.type?this.Eu=this.Eu.insert(t,{type:2,doc:e.doc}):2===e.type&&0===i.type?this.Eu=this.Eu.insert(t,{type:0,doc:e.doc}):1===e.type&&0===i.type?this.Eu=this.Eu.remove(t):1===e.type&&2===i.type?this.Eu=this.Eu.insert(t,{type:1,doc:i.doc}):0===e.type&&1===i.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,i)=>{e.push(i)}),e}}class yc{constructor(e,t,i,r,s,o,a,l,c){this.query=e,this.docs=t,this.oldDocs=i,this.docChanges=r,this.mutatedKeys=s,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=l,this.hasCachedResults=c}static fromInitialDocuments(e,t,i,r,s){const o=[];return t.forEach(a=>{o.push({type:0,doc:a})}),new yc(e,t,mc.emptySet(t),o,i,r,!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)&&Ld(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,i=e.docChanges;if(t.length!==i.length)return!1;for(let r=0;r<t.length;r++)if(t[r].type!==i[r].type||!t[r].doc.isEqual(i[r].doc))return!1;return!0}}class fde{constructor(){this.Ru=void 0,this.listeners=[]}}class pde{constructor(){this.queries=new uo(e=>hB(e),Ld),this.onlineState="Unknown",this.bu=new Set}}function _x(n,e){return vx.apply(this,arguments)}function vx(){return vx=k(function*(n,e){const t=ie(n),i=e.query;let r=!1,s=t.queries.get(i);if(s||(r=!0,s=new fde),r)try{s.Ru=yield t.onListen(i)}catch(o){const a=gc(o,`Initialization of query '${TT(e.query)}' failed`);return void e.onError(a)}t.queries.set(i,s),s.listeners.push(e),e.Pu(t.onlineState),s.Ru&&e.vu(s.Ru)&&Sx(t)}),vx.apply(this,arguments)}function bx(n,e){return wx.apply(this,arguments)}function wx(){return wx=k(function*(n,e){const t=ie(n),i=e.query;let r=!1;const s=t.queries.get(i);if(s){const o=s.listeners.indexOf(e);o>=0&&(s.listeners.splice(o,1),r=0===s.listeners.length)}if(r)return t.queries.delete(i),t.onUnlisten(i)}),wx.apply(this,arguments)}function gde(n,e){const t=ie(n);let i=!1;for(const r of e){const o=t.queries.get(r.query);if(o){for(const a of o.listeners)a.vu(r)&&(i=!0);o.Ru=r}}i&&Sx(t)}function mde(n,e,t){const i=ie(n),r=i.queries.get(e);if(r)for(const s of r.listeners)s.onError(t);i.queries.delete(e)}function Sx(n){n.bu.forEach(e=>{e.next()})}class Cx{constructor(e,t,i){this.query=e,this.Vu=t,this.Su=!1,this.Du=null,this.onlineState="Unknown",this.options=i||{}}vu(e){if(!this.options.includeMetadataChanges){const i=[];for(const r of e.docChanges)3!==r.type&&i.push(r);e=new yc(e.query,e.docs,e.oldDocs,i,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=yc.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Su=!0,this.Vu.next(e)}}class q6{constructor(e){this.key=e}}class Y6{constructor(e){this.key=e}}class K6{constructor(e,t){this.query=e,this.Uu=t,this.qu=null,this.hasCachedResults=!1,this.current=!1,this.Ku=Oe(),this.mutatedKeys=Oe(),this.Gu=pB(e),this.Qu=new mc(this.Gu)}get ju(){return this.Uu}Wu(e,t){const i=t?t.zu:new j6,r=t?t.Qu:this.Qu;let s=t?t.mutatedKeys:this.mutatedKeys,o=r,a=!1;const l="F"===this.query.limitType&&r.size===this.query.limit?r.last():null,c="L"===this.query.limitType&&r.size===this.query.limit?r.first():null;if(e.inorderTraversal((u,d)=>{const h=r.get(u),f=xT(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&&(i.track({type:3,doc:f}),m=!0):this.Hu(h,f)||(i.track({type:2,doc:f}),m=!0,(l&&this.Gu(f,l)>0||c&&this.Gu(f,c)<0)&&(a=!0)):!h&&f?(i.track({type:0,doc:f}),m=!0):h&&!f&&(i.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),i.track({type:1,doc:u})}return{Qu:o,zu:i,$i:a,mutatedKeys:s}}Hu(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,i){const r=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(i);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 yc(this.query,e.Qu,r,s,e.mutatedKeys,0===a,l,!1,!!i&&i.resumeToken.approximateByteSize()>0),Xu:o}:{Xu:o}}Pu(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Qu:this.Qu,zu:new j6,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=Oe(),this.Qu.forEach(i=>{this.Zu(i.key)&&(this.Ku=this.Ku.add(i.key))});const t=[];return e.forEach(i=>{this.Ku.has(i)||t.push(new Y6(i))}),this.Ku.forEach(i=>{e.has(i)||t.push(new q6(i))}),t}tc(e){this.Uu=e.Hi,this.Ku=Oe();const t=this.Wu(e.documents);return this.applyChanges(t,!0)}ec(){return yc.fromInitialDocuments(this.query,this.Qu,this.mutatedKeys,0===this.qu,this.hasCachedResults)}}class vde{constructor(e,t,i){this.query=e,this.targetId=t,this.view=i}}class bde{constructor(e){this.key=e,this.nc=!1}}class wde{constructor(e,t,i,r,s,o){this.localStore=e,this.remoteStore=t,this.eventManager=i,this.sharedClientState=r,this.currentUser=s,this.maxConcurrentLimboResolutions=o,this.sc={},this.ic=new uo(a=>hB(a),Ld),this.rc=new Map,this.oc=new Set,this.uc=new Nt(ne.comparator),this.cc=new Map,this.ac=new BT,this.hc={},this.lc=new Map,this.fc=Ia.vn(),this.onlineState="Unknown",this.dc=void 0}get isPrimaryClient(){return!0===this.dc}}function Sde(n,e){return Ex.apply(this,arguments)}function Ex(){return Ex=k(function*(n,e){const t=qx(n);let i,r;const s=t.ic.get(e);if(s)i=s.targetId,t.sharedClientState.addLocalQueryTarget(i),r=s.view.ec();else{const o=yield uc(t.localStore,ri(e));t.isPrimaryClient&&im(t.remoteStore,o);const a=t.sharedClientState.addLocalQueryTarget(o.targetId);i=o.targetId,r=yield Tx(t,e,i,"current"===a,o.resumeToken)}return r}),Ex.apply(this,arguments)}function Tx(n,e,t,i,r){return xx.apply(this,arguments)}function xx(){return xx=k(function*(n,e,t,i,r){n._c=(d,h,f)=>{return(p=k(function*(g,m,_,b){let y=m.view.Wu(_);y.$i&&(y=yield Jg(g.localStore,m.query,!1).then(({documents:D})=>m.view.Wu(D,y)));const T=b&&b.targetChanges.get(m.targetId),I=m.view.applyChanges(y,g.isPrimaryClient,T);return Lx(g,m.targetId,I.Xu),I.snapshot}),function(g,m,_,b){return p.apply(this,arguments)})(n,d,h,f);var p};const s=yield Jg(n.localStore,e,!0),o=new K6(e,s.Hi),a=o.Wu(s.documents),l=Ud.createSynthesizedTargetChangeForCurrentChange(t,i&&"Offline"!==n.onlineState,r),c=o.applyChanges(a,n.isPrimaryClient,l);Lx(n,t,c.Xu);const u=new vde(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}),xx.apply(this,arguments)}function Cde(n,e){return Ix.apply(this,arguments)}function Ix(){return Ix=k(function*(n,e){const t=ie(n),i=t.ic.get(e),r=t.rc.get(i.targetId);if(r.length>1)return t.rc.set(i.targetId,r.filter(s=>!Ld(s,e))),void t.ic.delete(e);t.isPrimaryClient?(t.sharedClientState.removeLocalQueryTarget(i.targetId),t.sharedClientState.isActiveQueryTarget(i.targetId)||(yield dc(t.localStore,i.targetId,!1).then(()=>{t.sharedClientState.clearQueryState(i.targetId),ih(t.remoteStore,i.targetId),_c(t,i.targetId)}).catch(ro))):(_c(t,i.targetId),yield dc(t.localStore,i.targetId,!0))}),Ix.apply(this,arguments)}function Ax(){return Ax=k(function*(n,e,t){const i=Yx(n);try{const r=yield function(s,o){const a=ie(s),l=At.now(),c=o.reduce((h,f)=>h.add(f.key),Oe());let u,d;return a.persistence.runTransaction("Locally write mutations","readwrite",h=>{let f=_i(),p=Oe();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=Pce(_,u.get(_.key).overlayedDocument);null!=b&&m.push(new Ls(_.key,b,iB(b.value.mapValue),Et.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:MB(u)}))}(i.localStore,e);i.sharedClientState.addPendingMutation(r.batchId),function(s,o,a){let l=s.hc[s.currentUser.toKey()];l||(l=new Nt(Ae)),l=l.insert(o,a),s.hc[s.currentUser.toKey()]=l}(i,r.batchId,t),yield Vs(i,r.changes),yield fc(i.remoteStore)}catch(r){const s=gc(r,"Failed to persist write");t.reject(s)}}),Ax.apply(this,arguments)}function Q6(n,e){return Dx.apply(this,arguments)}function Dx(){return Dx=k(function*(n,e){const t=ie(n);try{const i=yield jue(t.localStore,e);e.targetChanges.forEach((r,s)=>{const o=t.cc.get(s);o&&(_e(r.addedDocuments.size+r.modifiedDocuments.size+r.removedDocuments.size<=1),r.addedDocuments.size>0?o.nc=!0:r.modifiedDocuments.size>0?_e(o.nc):r.removedDocuments.size>0&&(_e(o.nc),o.nc=!1))}),yield Vs(t,i,e)}catch(i){yield ro(i)}}),Dx.apply(this,arguments)}function X6(n,e,t){const i=ie(n);if(i.isPrimaryClient&&0===t||!i.isPrimaryClient&&1===t){const r=[];i.ic.forEach((s,o)=>{const a=o.view.Pu(e);a.snapshot&&r.push(a.snapshot)}),function(s,o){const a=ie(s);a.onlineState=o;let l=!1;a.queries.forEach((c,u)=>{for(const d of u.listeners)d.Pu(o)&&(l=!0)}),l&&Sx(a)}(i.eventManager,e),r.length&&i.sc.zo(r),i.onlineState=e,i.isPrimaryClient&&i.sharedClientState.setOnlineState(e)}}function Tde(n,e,t){return kx.apply(this,arguments)}function kx(){return kx=k(function*(n,e,t){const i=ie(n);i.sharedClientState.updateQueryState(e,"rejected",t);const r=i.cc.get(e),s=r&&r.key;if(s){let o=new Nt(ne.comparator);o=o.insert(s,mt.newNoDocument(s,ve.min()));const a=Oe().add(s),l=new Hd(ve.min(),new Map,new st(Ae),o,a);yield Q6(i,l),i.uc=i.uc.remove(s),i.cc.delete(e),Fx(i)}else yield dc(i.localStore,e,!1).then(()=>_c(i,e,t)).catch(ro)}),kx.apply(this,arguments)}function xde(n,e){return Mx.apply(this,arguments)}function Mx(){return Mx=k(function*(n,e){const t=ie(n),i=e.batch.batchId;try{const r=yield zue(t.localStore,e);Rx(t,i,null),Nx(t,i),t.sharedClientState.updateMutationState(i,"acknowledged"),yield Vs(t,r)}catch(r){yield ro(r)}}),Mx.apply(this,arguments)}function Ide(n,e,t){return Px.apply(this,arguments)}function Px(){return Px=k(function*(n,e,t){const i=ie(n);try{const r=yield function(s,o){const a=ie(s);return a.persistence.runTransaction("Reject batch","readwrite-primary",l=>{let c;return a.mutationQueue.lookupMutationBatch(l,o).next(u=>(_e(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))})}(i.localStore,e);Rx(i,e,t),Nx(i,e),i.sharedClientState.updateMutationState(e,"rejected",t),yield Vs(i,r)}catch(r){yield ro(r)}}),Px.apply(this,arguments)}function Nx(n,e){(n.lc.get(e)||[]).forEach(t=>{t.resolve()}),n.lc.delete(e)}function Rx(n,e,t){const i=ie(n);let r=i.hc[i.currentUser.toKey()];if(r){const s=r.get(e);s&&(t?s.reject(t):s.resolve(),r=r.remove(e)),i.hc[i.currentUser.toKey()]=r}}function _c(n,e,t=null){n.sharedClientState.removeLocalQueryTarget(e);for(const i of n.rc.get(e))n.ic.delete(i),t&&n.sc.wc(i,t);n.rc.delete(e),n.isPrimaryClient&&n.ac.ls(e).forEach(i=>{n.ac.containsKey(i)||Z6(n,i)})}function Z6(n,e){n.oc.delete(e.path.canonicalString());const t=n.uc.get(e);null!==t&&(ih(n.remoteStore,t),n.uc=n.uc.remove(e),n.cc.delete(t),Fx(n))}function Lx(n,e,t){for(const i of t)i instanceof q6?(n.ac.addReference(i.key,e),Dde(n,i)):i instanceof Y6?(X("SyncEngine","Document no longer in limbo: "+i.key),n.ac.removeReference(i.key,e),n.ac.containsKey(i.key)||Z6(n,i.key)):de()}function Dde(n,e){const t=e.key,i=t.path.canonicalString();n.uc.get(t)||n.oc.has(i)||(X("SyncEngine","New document in limbo: "+t),n.oc.add(i),Fx(n))}function Fx(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(ze.fromString(e)),i=n.fc.next();n.cc.set(i,new bde(t)),n.uc=n.uc.insert(t,i),im(n.remoteStore,new ho(ri(ec(t.path)),i,2,yi.at))}}function Vs(n,e,t){return Vx.apply(this,arguments)}function Vx(){return Vx=k(function*(n,e,t){const i=ie(n),r=[],s=[],o=[];var a;i.ic.isEmpty()||(i.ic.forEach((a,l)=>{o.push(i._c(l,e,t).then(c=>{if((c||t)&&i.isPrimaryClient&&i.sharedClientState.updateQueryState(l.targetId,c?.fromCache?"not-current":"current"),c){r.push(c);const u=zT.Ci(l.targetId,c);s.push(u)}}))}),yield Promise.all(o),i.sc.zo(r),yield(a=k(function*(l,c){const u=ie(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(!so(d))throw d;X("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)})(i.localStore,s))}),Vx.apply(this,arguments)}function kde(n,e){return Bx.apply(this,arguments)}function Bx(){return Bx=k(function*(n,e){const t=ie(n);if(!t.currentUser.isEqual(e)){X("SyncEngine","User change. New user:",e.toKey());const i=yield x6(t.localStore,e);t.currentUser=e,(r=t).lc.forEach(o=>{o.forEach(a=>{a.reject(new Q(F.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),r.lc.clear(),t.sharedClientState.handleUserChange(e,i.removedBatchIds,i.addedBatchIds),yield Vs(t,i.ji)}var r}),Bx.apply(this,arguments)}function Mde(n,e){const t=ie(n),i=t.cc.get(e);if(i&&i.nc)return Oe().add(i.key);{let r=Oe();const s=t.rc.get(e);if(!s)return r;for(const o of s){const a=t.ic.get(o);r=r.unionWith(a.view.ju)}return r}}function qx(n){const e=ie(n);return e.remoteStore.remoteSyncer.applyRemoteEvent=Q6.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=Mde.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=Tde.bind(null,e),e.sc.zo=gde.bind(null,e.eventManager),e.sc.wc=mde.bind(null,e.eventManager),e}function Yx(n){const e=ie(n);return e.remoteStore.remoteSyncer.applySuccessfulWrite=xde.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=Ide.bind(null,e),e}class $de{constructor(){this.synchronizeTabs=!1}initialize(e){var t=this;return k(function*(){t.It=th(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 T6(n,e,t,i){return new Uue(n,e,t,i)}(this.persistence,new E6,e.initialUser,this.It)}yc(e){return new S6(Xg.Bs,this.It)}gc(e){return new N6}terminate(){var e=this;return k(function*(){e.gcScheduler&&e.gcScheduler.stop(),yield e.sharedClientState.shutdown(),yield e.persistence.shutdown()})()}}class Kx{initialize(e,t){var i=this;return k(function*(){i.localStore||(i.localStore=e.localStore,i.sharedClientState=e.sharedClientState,i.datastore=i.createDatastore(t),i.remoteStore=i.createRemoteStore(t),i.eventManager=i.createEventManager(t),i.syncEngine=i.createSyncEngine(t,!e.synchronizeTabs),i.sharedClientState.onlineStateHandler=r=>X6(i.syncEngine,r,1),i.remoteStore.remoteSyncer.handleCredentialChange=kde.bind(null,i.syncEngine),yield function gx(n,e){return mx.apply(this,arguments)}(i.remoteStore,i.syncEngine.isPrimaryClient))})()}createEventManager(e){return new pde}createDatastore(e){const t=th(e.databaseInfo.databaseId),i=new Xue(e.databaseInfo);return new ede(e.authCredentials,e.appCheckCredentials,i,t)}createRemoteStore(e){return t=this.localStore,i=this.datastore,r=e.asyncQueue,s=a=>X6(this.syncEngine,a,0),o=R6.C()?new R6:new Yue,new ide(t,i,r,s,o);var t,i,r,s,o}createSyncEngine(e,t){return function(i,r,s,o,a,l,c){const u=new wde(i,r,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=k(function*(t){const i=ie(t);X("RemoteStore","RemoteStore shutting down."),i.wu.add(5),yield hc(i),i.gu.shutdown(),i.yu.set("Unknown")}),function(t){return e.apply(this,arguments)})(this.remoteStore);var e}}function Qx(n,e,t){if(!t)throw new Q(F.INVALID_ARGUMENT,`Function ${n}() cannot be called with an empty ${e}.`)}function t$(n){if(!ne.isDocumentKey(n))throw new Q(F.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${n} has ${n.length}.`)}function n$(n){if(ne.isDocumentKey(n))throw new Q(F.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${n} has ${n.length}.`)}function sm(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 Ve(n,e){if("_delegate"in n&&(n=n._delegate),!(n instanceof e)){if(e.name===n.constructor.name)throw new Q(F.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const t=sm(n);throw new Q(F.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${t}`)}}return n}const r$=new Map;class s${constructor(e){var t;if(void 0===e.host){if(void 0!==e.ssl)throw new Q(F.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(F.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 zde(n,e,t,i){if(!0===e&&!0===i)throw new Q(F.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 rh{constructor(e,t,i,r){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=i,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new s$({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Q(F.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(F.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 s$(e),void 0!==e.credentials&&(this._authCredentials=function(t){if(!t)return new Xle;switch(t.type){case"gapi":return new tce(t.client,t.sessionIndex||"0",t.iamToken||null,t.authTokenFactory||null);case"provider":return t.client;default:throw new Q(F.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=r$.get(e);t&&(X("ComponentProvider","Removing Datastore"),r$.delete(e),t.terminate())}(this),Promise.resolve()}}class jt{constructor(e,t,i){this.converter=t,this._key=i,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 Zr(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new jt(this.firestore,e,this._key)}}class Un{constructor(e,t,i){this.converter=t,this._query=i,this.type="query",this.firestore=e}withConverter(e){return new Un(this.firestore,e,this._query)}}class Zr extends Un{constructor(e,t,i){super(e,t,ec(i)),this._path=i,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 jt(this.firestore,null,new ne(e))}withConverter(e){return new Zr(this.firestore,e,this._path)}}function Gde(n,e,...t){if(n=nr(n),Qx("collection","path",e),n instanceof rh){const i=ze.fromString(e,...t);return n$(i),new Zr(n,null,i)}{if(!(n instanceof jt||n instanceof Zr))throw new Q(F.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const i=n._path.child(ze.fromString(e,...t));return n$(i),new Zr(n.firestore,null,i)}}function o$(n,e,...t){if(n=nr(n),1===arguments.length&&(e=$V.R()),Qx("doc","path",e),n instanceof rh){const i=ze.fromString(e,...t);return t$(i),new jt(n,null,new ne(i))}{if(!(n instanceof jt||n instanceof Zr))throw new Q(F.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const i=n._path.child(ze.fromString(e,...t));return t$(i),new jt(n.firestore,n instanceof Zr?n.converter:null,new ne(i))}}class om{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):Ut("Uncaught Error in snapshot listener:",e)}bc(){this.muted=!0}Rc(e,t){this.muted||setTimeout(()=>{this.muted||e(t)},0)}}class Xde{constructor(e,t,i,r){var s=this;this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=i,this.databaseInfo=r,this.user=mn.UNAUTHENTICATED,this.clientId=$V.R(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(i,function(){var o=k(function*(a){X("FirestoreClient","Received user=",a.uid),yield s.authCredentialListener(a),s.user=a});return function(a){return o.apply(this,arguments)}}()),this.appCheckCredentials.start(i,o=>(X("FirestoreClient","Received new app check token=",o),this.appCheckCredentialListener(o,this.user)))}getConfiguration(){var e=this;return k(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(F.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var e=this;this.asyncQueue.enterRestrictedMode();const t=new cn;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(k(function*(){try{e.onlineComponents&&(yield e.onlineComponents.terminate()),e.offlineComponents&&(yield e.offlineComponents.terminate()),e.authCredentials.shutdown(),e.appCheckCredentials.shutdown(),t.resolve()}catch(i){const r=gc(i,"Failed to shutdown persistence");t.reject(r)}})),t.promise}}function c$(n,e){return Xx.apply(this,arguments)}function Xx(){return Xx=k(function*(n,e){n.asyncQueue.verifyOperationInProgress(),X("FirestoreClient","Initializing OfflineComponentProvider");const t=yield n.getConfiguration();yield e.initialize(t);let i=t.initialUser;n.setCredentialChangeListener(function(){var r=k(function*(s){i.isEqual(s)||(yield x6(e.localStore,s),i=s)});return function(s){return r.apply(this,arguments)}}()),e.persistence.setDatabaseDeletedListener(()=>n.terminate()),n.offlineComponents=e}),Xx.apply(this,arguments)}function u$(n,e){return Zx.apply(this,arguments)}function Zx(){return Zx=k(function*(n,e){n.asyncQueue.verifyOperationInProgress();const t=yield Jx(n);X("FirestoreClient","Initializing OnlineComponentProvider");const i=yield n.getConfiguration();yield e.initialize(t,i),n.setCredentialChangeListener(r=>z6(e.remoteStore,r)),n.setAppCheckTokenChangeListener((r,s)=>z6(e.remoteStore,s)),n.onlineComponents=e}),Zx.apply(this,arguments)}function Jx(n){return eI.apply(this,arguments)}function eI(){return eI=k(function*(n){return n.offlineComponents||(X("FirestoreClient","Using default OfflineComponentProvider"),yield c$(n,new $de)),n.offlineComponents}),eI.apply(this,arguments)}function am(n){return tI.apply(this,arguments)}function tI(){return tI=k(function*(n){return n.onlineComponents||(X("FirestoreClient","Using default OnlineComponentProvider"),yield u$(n,new Kx)),n.onlineComponents}),tI.apply(this,arguments)}function vc(n){return rI.apply(this,arguments)}function rI(){return rI=k(function*(n){const e=yield am(n),t=e.eventManager;return t.onListen=Sde.bind(null,e.syncEngine),t.onUnlisten=Cde.bind(null,e.syncEngine),t}),rI.apply(this,arguments)}class she{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 ZT(this,"async_queue_retry"),this.Wc=()=>{const t=nm();t&&X("AsyncQueue","Visibility state changed to "+t.visibilityState),this.No.Po()};const e=nm();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=nm();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Wc)}}enqueue(e){if(this.zc(),this.Uc)return new Promise(()=>{});const t=new cn;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 k(function*(){if(0!==e.Lc.length){try{yield e.Lc[0](),e.Lc.shift(),e.No.reset()}catch(t){if(!so(t))throw t;X("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(i=>{throw this.Kc=i,this.Gc=!1,Ut("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}(i)),i}).then(i=>(this.Gc=!1,i))));return this.Bc=t,t}enqueueAfterDelay(e,t,i){this.zc(),this.jc.indexOf(e)>-1&&(t=0);const r=yx.createAndSchedule(this,e,t,i,s=>this.Yc(s));return this.qc.push(r),r}zc(){this.Kc&&de()}verifyOperationInProgress(){}Xc(){var e=this;return k(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,i)=>t.targetTimeMs-i.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 sI(n){return function(e,t){if("object"!=typeof e||null===e)return!1;const i=e;for(const r of["next","error","complete"])if(r in i&&"function"==typeof i[r])return!0;return!1}(n)}class _t extends rh{constructor(e,t,i,r){super(e,t,i,r),this.type="firestore",this._queue=new she,this._persistenceKey=r?.name||"[DEFAULT]"}_terminate(){return this._firestoreClient||g$(this),this._firestoreClient.terminate()}}function ahe(n,e){const i="string"==typeof n?n:e||"(default)",r=Ep("object"==typeof n?n:LL(),"firestore").getImmediate({identifier:i});if(!r._initialized){const s=(n=>{const e=(n=>{var e,t;return null===(t=null===(e=ow())||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 i=parseInt(e.substring(t+1),10);return"["===e[0]?[e.substring(1,t-1),i]:[e.substring(0,t),i]})("firestore");s&&function jde(n,e,t,i={}){var r;const s=(n=Ve(n,rh))._getSettings();if("firestore.googleapis.com"!==s.host&&s.host!==e&&Kl("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})),i.mockUserToken){let o,a;if("string"==typeof i.mockUserToken)o=i.mockUserToken,a=mn.MOCK_USER;else{o=function uee(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 i=e||"demo-project",r=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/${i}`,aud:i,iat:r,exp:r+3600,auth_time:r,sub:s,user_id:s,firebase:{sign_in_provider:"custom",identities:{}}},n);return[yp(JSON.stringify({alg:"none",type:"JWT"})),yp(JSON.stringify(o)),""].join(".")}(i.mockUserToken,null===(r=n._app)||void 0===r?void 0:r.options.projectId);const l=i.mockUserToken.sub||i.mockUserToken.user_id;if(!l)throw new Q(F.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");a=new mn(l)}n._authCredentials=new Zle(new VV(o,a))}}(r,...s)}return r}function Jt(n){return n._firestoreClient||g$(n),n._firestoreClient.verifyNotTerminated(),n._firestoreClient}function g$(n){var e;const t=n._freezeSettings(),i=(s=(null===(e=n._app)||void 0===e?void 0:e.options.appId)||"",new fce(n._databaseId,s,n._persistenceKey,(a=t).host,a.ssl,a.experimentalForceLongPolling,a.experimentalAutoDetectLongPolling,a.useFetchStreams));var s,a;n._firestoreClient=new Xde(n._authCredentials,n._appCheckCredentials,n._queue,i)}class Da{constructor(e){this._byteString=e}static fromBase64String(e){try{return new Da(un.fromBase64String(e))}catch(t){throw new Q(F.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}}static fromUint8Array(e){return new Da(un.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 bc{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new Q(F.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new zt(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class cm{constructor(e){this._methodName=e}}class oI{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new Q(F.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new Q(F.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 Ae(this._lat,e._lat)||Ae(this._long,e._long)}}const lhe=/^__.*__$/;class che{constructor(e,t,i){this.data=e,this.fieldMask=t,this.fieldTransforms=i}toMutation(e,t){return null!==this.fieldMask?new Ls(e,this.data,this.fieldMask,t,this.fieldTransforms):new rc(e,this.data,t,this.fieldTransforms)}}function v$(n){switch(n){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw de()}}class um{constructor(e,t,i,r,s,o){this.settings=e,this.databaseId=t,this.It=i,this.ignoreUndefinedProperties=r,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 um(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.It,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}ra(e){var t;const i=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.ia({path:i,oa:!1});return r.ua(e),r}ca(e){var t;const i=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.ia({path:i,oa:!1});return r.na(),r}aa(e){return this.ia({path:void 0,oa:!0})}ha(e){return hm(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(v$(this.sa)&&lhe.test(e))throw this.ha('Document fields cannot begin and end with "__"')}}class uhe{constructor(e,t,i){this.databaseId=e,this.ignoreUndefinedProperties=t,this.It=i||th(e)}da(e,t,i,r=!1){return new um({sa:e,methodName:t,fa:i,path:zt.emptyPath(),oa:!1,la:r},this.databaseId,this.It,this.ignoreUndefinedProperties)}}function wc(n){const e=n._freezeSettings(),t=th(n._databaseId);return new uhe(n._databaseId,!!e.ignoreUndefinedProperties,t)}function aI(n,e,t,i,r,s={}){const o=n.da(s.merge||s.mergeFields?2:0,e,t,r);cI("Data must be an object, but it was:",o,i);const a=E$(i,o);let l,c;if(s.merge)l=new Fi(o.fieldMask),c=o.fieldTransforms;else if(s.mergeFields){const u=[];for(const d of s.mergeFields){const h=uI(e,d,t);if(!o.contains(h))throw new Q(F.INVALID_ARGUMENT,`Field '${h}' is specified in your field mask but missing from your input data.`);x$(u,h)||u.push(h)}l=new Fi(u),c=o.fieldTransforms.filter(d=>l.covers(d.field))}else l=null,c=o.fieldTransforms;return new che(new In(a),l,c)}class lI extends cm{_toFieldTransform(e){return new Fd(e.path,new nc)}isEqual(e){return e instanceof lI}}class dhe extends cm{constructor(e,t){super(e),this._a=t}_toFieldTransform(e){const t=function b$(n,e,t){return new um({sa:3,fa:e.settings.fa,methodName:n._methodName,oa:t},e.databaseId,e.It,e.ignoreUndefinedProperties)}(this,e,!0),i=this._a.map(s=>ka(s,t)),r=new va(i);return new Fd(e.path,r)}isEqual(e){return this===e}}function ka(n,e){if(T$(n=nr(n)))return cI("Unsupported field value:",e,n),E$(n,e);if(n instanceof cm)return function(t,i){if(!v$(i.sa))throw i.ha(`${t._methodName}() can only be used with update() and set()`);if(!i.path)throw i.ha(`${t._methodName}() is not currently supported inside arrays`);const r=t._toFieldTransform(i);r&&i.fieldTransforms.push(r)}(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,i){const r=[];let s=0;for(const o of t){let a=ka(o,i.aa(s));null==a&&(a={nullValue:"NULL_VALUE"}),r.push(a),s++}return{arrayValue:{values:r}}}(n,e)}return function(t,i){if(null===(t=nr(t)))return{nullValue:"NULL_VALUE"};if("number"==typeof t)return yB(i.It,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){const r=At.fromDate(t);return{timestampValue:zd(i.It,r)}}if(t instanceof At){const r=new At(t.seconds,1e3*Math.floor(t.nanoseconds/1e3));return{timestampValue:zd(i.It,r)}}if(t instanceof oI)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof Da)return{bytesValue:VB(i.It,t._byteString)};if(t instanceof jt){const r=i.databaseId,s=t.firestore._databaseId;if(!s.isEqual(r))throw i.ha(`Document reference is for database ${s.projectId}/${s.database} but should be for database ${r.projectId}/${r.database}`);return{referenceValue:AT(t.firestore._databaseId||i.databaseId,t._key.path)}}throw i.ha(`Unsupported field value: ${sm(t)}`)}(n,e)}function E$(n,e){const t={};return qV(n)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):fa(n,(i,r)=>{const s=ka(r,e.ra(i));null!=s&&(t[i]=s)}),{mapValue:{fields:t}}}function T$(n){return!("object"!=typeof n||null===n||n instanceof Array||n instanceof Date||n instanceof At||n instanceof oI||n instanceof Da||n instanceof jt||n instanceof cm)}function cI(n,e,t){if(!T$(t)||"object"!=typeof(i=t)||null===i||Object.getPrototypeOf(i)!==Object.prototype&&null!==Object.getPrototypeOf(i)){const i=sm(t);throw e.ha("an object"===i?n+" a custom object":n+" "+i)}var i}function uI(n,e,t){if((e=nr(e))instanceof bc)return e._internalPath;if("string"==typeof e)return dm(n,e);throw hm("Field path arguments must be of type string or ",n,!1,void 0,t)}const phe=new RegExp("[~\\*/\\[\\]]");function dm(n,e,t){if(e.search(phe)>=0)throw hm(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,n,!1,void 0,t);try{return new bc(...e.split("."))._internalPath}catch{throw hm(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,n,!1,void 0,t)}}function hm(n,e,t,i,r){const s=i&&!i.isEmpty(),o=void 0!==r;let a=`Function ${e}() called with invalid data`;t&&(a+=" (via `toFirestore()`)"),a+=". ";let l="";return(s||o)&&(l+=" (found",s&&(l+=` in field ${i}`),o&&(l+=` in document ${r}`),l+=")"),new Q(F.INVALID_ARGUMENT,a+n+l)}function x$(n,e){return n.some(t=>t.isEqual(e))}class dI{constructor(e,t,i,r,s){this._firestore=e,this._userDataWriter=t,this._key=i,this._document=r,this._converter=s}get id(){return this._key.path.lastSegment()}get ref(){return new jt(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new ghe(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(fm("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class ghe extends dI{data(){return super.data()}}function fm(n,e){return"string"==typeof e?dm(n,e):e instanceof bc?e._internalPath:e._delegate._internalPath}function yhe(n,...e){for(const t of e)n=t._apply(n);return n}class vhe extends class mhe{}{constructor(e,t){super(),this.ma=e,this.pa=t,this.type="orderBy"}_apply(e){const t=function(i,r,s){if(null!==i.startAt)throw new Q(F.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==i.endAt)throw new Q(F.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");const o=new Jl(r,s);return function(a,l){if(null===ST(a)){const c=CT(a);null!==c&&function N$(n,e,t){if(!t.isEqual(e))throw new Q(F.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)}}(i,o),o}(e._query,this.ma,this.pa);return new Un(e.firestore,e.converter,function(i,r){const s=i.explicitOrderBy.concat([r]);return new Rs(i.path,i.collectionGroup,s,i.filters.slice(),i.limit,i.limitType,i.startAt,i.endAt)}(e._query,t))}}function bhe(n,e="asc"){const t=e,i=fm("orderBy",n);return new vhe(i,t)}class Ma{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class Sc extends dI{constructor(e,t,i,r,s,o){super(e,t,i,r,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 pm(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 i=this._document.data.field(fm("DocumentSnapshot.get",e));if(null!==i)return this._userDataWriter.convertValue(i,t.serverTimestamps)}}}class pm extends Sc{data(e={}){return super.data(e)}}class Cc{constructor(e,t,i,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new Ma(r.hasPendingWrites,r.fromCache),this.query=i}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(i=>{e.call(t,new pm(this._firestore,this._userDataWriter,i.key,i,new Ma(this._snapshot.mutatedKeys.has(i.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new Q(F.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(i,r){if(i._snapshot.oldDocs.isEmpty()){let s=0;return i._snapshot.docChanges.map(o=>({type:"added",doc:new pm(i._firestore,i._userDataWriter,o.doc.key,o.doc,new Ma(i._snapshot.mutatedKeys.has(o.doc.key),i._snapshot.fromCache),i.query.converter),oldIndex:-1,newIndex:s++}))}{let s=i._snapshot.oldDocs;return i._snapshot.docChanges.filter(o=>r||3!==o.type).map(o=>{const a=new pm(i._firestore,i._userDataWriter,o.doc.key,o.doc,new Ma(i._snapshot.mutatedKeys.has(o.doc.key),i._snapshot.fromCache),i.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:She(o.type),doc:a,oldIndex:l,newIndex:c}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}}function She(n){switch(n){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return de()}}function Che(n){n=Ve(n,jt);const e=Ve(n.firestore,_t);return function f$(n,e,t={}){const i=new cn;return n.asyncQueue.enqueueAndForget(k(function*(){return function(r,s,o,a,l){const c=new om({next:d=>{s.enqueueAndForget(()=>bx(r,u));const h=d.docs.has(o);!h&&d.fromCache?l.reject(new Q(F.UNAVAILABLE,"Failed to get document because the client is offline.")):h&&d.fromCache&&a&&"server"===a.source?l.reject(new Q(F.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 Cx(ec(o.path),c,{includeMetadataChanges:!0,ku:!0});return _x(r,u)}(yield vc(n),n.asyncQueue,e,t,i)})),i.promise}(Jt(e),n._key).then(t=>fI(e,n,t))}class mo extends class whe{convertValue(e,t="none"){switch(ma(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Rt(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(pa(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 i={};return fa(e.fields,(r,s)=>{i[r]=this.convertValue(s,t)}),i}convertGeoPoint(e){return new oI(Rt(e.latitude),Rt(e.longitude))}convertArray(e,t){return(e.values||[]).map(i=>this.convertValue(i,t))}convertServerTimestamp(e,t){switch(t){case"previous":const i=KV(e);return null==i?null:this.convertValue(i,t);case"estimate":return this.convertTimestamp(Dd(e));default:return null}}convertTimestamp(e){const t=oo(e);return new At(t.seconds,t.nanos)}convertDocumentKey(e,t){const i=ze.fromString(e);_e(qB(i));const r=new ga(i.get(1),i.get(3)),s=new ne(i.popFirst(5));return r.isEqual(t)||Ut(`Document ${s} contains a document reference within a different database (${r.projectId}/${r.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 Da(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new jt(this.firestore,null,t)}}function Ehe(n,e,t){n=Ve(n,jt);const i=Ve(n.firestore,_t),r=function hI(n,e,t){let i;return i=n?t&&(t.merge||t.mergeFields)?n.toFirestore(e,t):n.toFirestore(e):e,i}(n.converter,e,t);return function oh(n,e){return function(t,i){const r=new cn;return t.asyncQueue.enqueueAndForget(k(function*(){return function Ede(n,e,t){return Ax.apply(this,arguments)}(yield function iI(n){return am(n).then(e=>e.syncEngine)}(t),i,r)})),r.promise}(Jt(n),e)}(i,[aI(wc(i),"setDoc",n._key,r,null!==n.converter,t).toMutation(n._key,Et.none())])}function fI(n,e,t){const i=t.docs.get(e._key),r=new mo(n);return new Sc(n,r,e._key,i,new Ma(t.hasPendingWrites,t.fromCache),e.converter)}function Dhe(){return new lI("serverTimestamp")}function khe(...n){return new dhe("arrayUnion",n)}!function(n,e=!0){Yl="9.12.1",ti(new Bn("firestore",(t,{instanceIdentifier:i,options:r})=>{const s=t.getProvider("app").getImmediate(),o=new _t(new Jle(t.getProvider("auth-internal")),new nce(t.getProvider("app-check-internal")),function(a,l){if(!Object.prototype.hasOwnProperty.apply(a.options,["projectId"]))throw new Q(F.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new ga(a.options.projectId,l)}(s,i),s);return r=Object.assign({useFetchStreams:e},r),o._setSettings(r),o},"PUBLIC").setMultipleInstances(!0)),Ht(FV,"3.7.1",n),Ht(FV,"3.7.1","esm2017")}();var Mhe={includeMetadataChanges:!1};function pI(n,e){return void 0===e&&(e=Mhe),new rt(function(t){var i=function The(n,...e){var t,i,r;n=nr(n);let s={includeMetadataChanges:!1},o=0;"object"!=typeof e[o]||sI(e[o])||(s=e[o],o++);const a={includeMetadataChanges:s.includeMetadataChanges};if(sI(e[o])){const d=e[o];e[o]=null===(t=d.next)||void 0===t?void 0:t.bind(d),e[o+1]=null===(i=d.error)||void 0===i?void 0:i.bind(d),e[o+2]=null===(r=d.complete)||void 0===r?void 0:r.bind(d)}let l,c,u;if(n instanceof jt)c=Ve(n.firestore,_t),u=ec(n._key.path),l={next:d=>{e[o]&&e[o](fI(c,n,d))},error:e[o+1],complete:e[o+2]};else{const d=Ve(n,Un);c=Ve(d.firestore,_t),u=d._query;const h=new mo(c);l={next:f=>{e[o]&&e[o](new Cc(c,h,d,f))},error:e[o+1],complete:e[o+2]},function I$(n){if("L"===n.limitType&&0===n.explicitOrderBy.length)throw new Q(F.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(n._query)}return function(d,h,f,p){const g=new om(p),m=new Cx(h,g,f);return d.asyncQueue.enqueueAndForget(k(function*(){return _x(yield vc(d),m)})),()=>{g.bc(),d.asyncQueue.enqueueAndForget(k(function*(){return bx(yield vc(d),m)}))}}(Jt(c),u,a,l)}(n,e,{next:t.next.bind(t),error:t.error.bind(t),complete:t.complete.bind(t)});return{unsubscribe:i}})}function Vhe(n,e){return void 0===e&&(e={}),function Fhe(n){return pI(n,{includeMetadataChanges:!0}).pipe(bi(function(e){return e.docs}))}(n).pipe(bi(function(t){return t.map(function(i){return function L$(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}(i,e)})}))}class mm{constructor(e){return e}}const $$="firestore",yI=new be("angularfire2.firestore-instances");function Hhe(n){return(e,t)=>{const i=e.runOutsideAngular(()=>n(t));return new mm(i)}}const Uhe={provide:class Bhe{constructor(){return uS($$)}},deps:[[new ci,yI]]},zhe={provide:mm,useFactory:function $he(n,e){const t=function cS(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})}($$,n,e);return t&&new mm(t)},deps:[[new ci,yI],$l]};let jhe=(()=>{class n{constructor(){Ht("angularfire",tS.full,"fst")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({providers:[zhe,Uhe]}),n})();function Ghe(n,...e){return{ngModule:jhe,providers:[{provide:yI,useFactory:Hhe(n),multi:!0,deps:[pt,di,WF,qF,[new ci,Z3],[new ci,w4],...e]}]}}const Whe=Ir(Vhe,!0),H$=Ir(khe,!0),ym=Ir(Gde,!0),or=Ir(o$,!0),_m=Ir(Che,!0),qhe=Ir(ahe,!0),Yhe=Ir(bhe,!0),Khe=Ir(yhe,!0),vm=Ir(Dhe,!0),ah=Ir(Ehe,!0);class Qhe extends as{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,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 Xhe(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Io;if(this.isStopped||this.hasError?o=xt.EMPTY:(this.observers.push(e),o=new PD(this,e)),r&&e.add(e=new Op(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||ore).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class Xhe{constructor(e,t){this.time=e,this.value=t}}function U$(n,e){return"function"==typeof e?t=>t.pipe(U$((i,r)=>Ch(n(i,r)).pipe(bi((s,o)=>e(i,s,r,o))))):t=>t.lift(new Zhe(n))}class Zhe{constructor(e){this.project=e}call(e,t){return t.subscribe(new Jhe(e,this.project))}}class Jhe extends BD{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new VD(this),r=this.destination;r.add(i),this.innerSubscription=$D(e,i),this.innerSubscription!==i&&r.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 bm={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if(typeof window>"u")return bm.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return bm.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let _I;function lfe(n,e,t){let i=t;return function tfe(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function ife(n,e){if(!_I){const t=Element.prototype;_I=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&_I.call(n,e)}(n,r)||(i=s,0))),i}class ufe{constructor(e,t){this.componentFactory=t.get(ol).resolveComponentFactory(e)}create(e){return new dfe(this.componentFactory,e)}}class dfe{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new Qhe(1),this.events=this.eventEmitters.pipe(U$(i=>HD(...i))),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:i})=>i)),this.ngZone=this.injector.get(pt),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=bm.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 rfe(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=di.create({providers:[],parent:this.injector}),i=function afe(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=lfe(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(ku),this.implementsOnChanges=function nfe(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Du).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:i,templateName:r})=>e.instance[i].pipe(bi(o=>({name:r,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=bm.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new JD(s,t,r)}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 hfe extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class vt extends as{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 Io;return this._value}next(e){super.next(this._value=e)}}let Pa=(()=>{class n{constructor(){this.showChatBox=new vt(!1)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function gfe(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function Ge(n,e){if(e.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+e.length+" present")}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 mfe(n){return Ge(1,arguments),n instanceof Date||"object"===wm(n)&&"[object Date]"===Object.prototype.toString.call(n)}function Sm(n){return(Sm="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 ct(n){Ge(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||"object"===Sm(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 yfe(n){if(Ge(1,arguments),!mfe(n)&&"number"!=typeof n)return!1;var e=ct(n);return!isNaN(Number(e))}function qe(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 _fe(n,e){Ge(2,arguments);var t=ct(n).getTime(),i=qe(e);return new Date(t+i)}function z$(n,e){Ge(2,arguments);var t=qe(e);return _fe(n,-t)}function Ec(n){Ge(1,arguments);var e=1,t=ct(n),i=t.getUTCDay(),r=(i<e?7:0)+i-e;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function j$(n){Ge(1,arguments);var e=ct(n),t=e.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(t+1,0,4),i.setUTCHours(0,0,0,0);var r=Ec(i),s=new Date(0);s.setUTCFullYear(t,0,4),s.setUTCHours(0,0,0,0);var o=Ec(s);return e.getTime()>=r.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function wfe(n){Ge(1,arguments);var e=j$(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var i=Ec(t);return i}function G$(n){Ge(1,arguments);var e=ct(n),t=Ec(e).getTime()-wfe(e).getTime();return Math.round(t/6048e5)+1}var W$={};function Tc(){return W$}function Oa(n,e){var t,i,r,s,o,a,l,c;Ge(1,arguments);var u=Tc(),d=qe(null!==(t=null!==(i=null!==(r=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!==r?r:u.weekStartsOn)&&void 0!==i?i: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=ct(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 vI(n,e){var t,i,r,s,o,a,l,c;Ge(1,arguments);var u=ct(n),d=u.getUTCFullYear(),h=Tc(),f=qe(null!==(t=null!==(i=null!==(r=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!==r?r:h.firstWeekContainsDate)&&void 0!==i?i: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=Oa(p,e),m=new Date(0);m.setUTCFullYear(d,0,f),m.setUTCHours(0,0,0,0);var _=Oa(m,e);return u.getTime()>=g.getTime()?d+1:u.getTime()>=_.getTime()?d:d-1}function Cfe(n,e){var t,i,r,s,o,a,l,c;Ge(1,arguments);var u=Tc(),d=qe(null!==(t=null!==(i=null!==(r=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!==r?r:u.firstWeekContainsDate)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==t?t:1),h=vI(n,e),f=new Date(0);f.setUTCFullYear(h,0,d),f.setUTCHours(0,0,0,0);var p=Oa(f,e);return p}function q$(n,e){Ge(1,arguments);var t=ct(n),i=Oa(t,e).getTime()-Cfe(t,e).getTime();return Math.round(i/6048e5)+1}function tt(n,e){for(var t=n<0?"-":"",i=Math.abs(n).toString();i.length<e;)i="0"+i;return t+i}const yo_y=function(e,t){var i=e.getUTCFullYear(),r=i>0?i:1-i;return tt("yy"===t?r%100:r,t.length)},yo_M=function(e,t){var i=e.getUTCMonth();return"M"===t?String(i+1):tt(i+1,2)},yo_d=function(e,t){return tt(e.getUTCDate(),t.length)},yo_h=function(e,t){return tt(e.getUTCHours()%12||12,t.length)},yo_H=function(e,t){return tt(e.getUTCHours(),t.length)},yo_m=function(e,t){return tt(e.getUTCMinutes(),t.length)},yo_s=function(e,t){return tt(e.getUTCSeconds(),t.length)},yo_S=function(e,t){var i=t.length,r=e.getUTCMilliseconds();return tt(Math.floor(r*Math.pow(10,i-3)),t.length)};var xfe={G:function(e,t,i){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return i.era(r,{width:"abbreviated"});case"GGGGG":return i.era(r,{width:"narrow"});default:return i.era(r,{width:"wide"})}},y:function(e,t,i){if("yo"===t){var r=e.getUTCFullYear();return i.ordinalNumber(r>0?r:1-r,{unit:"year"})}return yo_y(e,t)},Y:function(e,t,i,r){var s=vI(e,r),o=s>0?s:1-s;return"YY"===t?tt(o%100,2):"Yo"===t?i.ordinalNumber(o,{unit:"year"}):tt(o,t.length)},R:function(e,t){return tt(j$(e),t.length)},u:function(e,t){return tt(e.getUTCFullYear(),t.length)},Q:function(e,t,i){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return tt(r,2);case"Qo":return i.ordinalNumber(r,{unit:"quarter"});case"QQQ":return i.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(r,{width:"narrow",context:"formatting"});default:return i.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,i){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return tt(r,2);case"qo":return i.ordinalNumber(r,{unit:"quarter"});case"qqq":return i.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(r,{width:"narrow",context:"standalone"});default:return i.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,i){var r=e.getUTCMonth();switch(t){case"M":case"MM":return yo_M(e,t);case"Mo":return i.ordinalNumber(r+1,{unit:"month"});case"MMM":return i.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(r,{width:"narrow",context:"formatting"});default:return i.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,i){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return tt(r+1,2);case"Lo":return i.ordinalNumber(r+1,{unit:"month"});case"LLL":return i.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(r,{width:"narrow",context:"standalone"});default:return i.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,i,r){var s=q$(e,r);return"wo"===t?i.ordinalNumber(s,{unit:"week"}):tt(s,t.length)},I:function(e,t,i){var r=G$(e);return"Io"===t?i.ordinalNumber(r,{unit:"week"}):tt(r,t.length)},d:function(e,t,i){return"do"===t?i.ordinalNumber(e.getUTCDate(),{unit:"date"}):yo_d(e,t)},D:function(e,t,i){var r=function bfe(n){Ge(1,arguments);var e=ct(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var i=e.getTime();return Math.floor((t-i)/864e5)+1}(e);return"Do"===t?i.ordinalNumber(r,{unit:"dayOfYear"}):tt(r,t.length)},E:function(e,t,i){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return i.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,i,r){var s=e.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return tt(o,2);case"eo":return i.ordinalNumber(o,{unit:"day"});case"eee":return i.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,i,r){var s=e.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return tt(o,t.length);case"co":return i.ordinalNumber(o,{unit:"day"});case"ccc":return i.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(s,{width:"narrow",context:"standalone"});case"cccccc":return i.day(s,{width:"short",context:"standalone"});default:return i.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,i){var r=e.getUTCDay(),s=0===r?7:r;switch(t){case"i":return String(s);case"ii":return tt(s,t.length);case"io":return i.ordinalNumber(s,{unit:"day"});case"iii":return i.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,i){var s=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,i){var s,r=e.getUTCHours();switch(s=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,i){var s,r=e.getUTCHours();switch(s=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,i){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),i.ordinalNumber(r,{unit:"hour"})}return yo_h(e,t)},H:function(e,t,i){return"Ho"===t?i.ordinalNumber(e.getUTCHours(),{unit:"hour"}):yo_H(e,t)},K:function(e,t,i){var r=e.getUTCHours()%12;return"Ko"===t?i.ordinalNumber(r,{unit:"hour"}):tt(r,t.length)},k:function(e,t,i){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?i.ordinalNumber(r,{unit:"hour"}):tt(r,t.length)},m:function(e,t,i){return"mo"===t?i.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):yo_m(e,t)},s:function(e,t,i){return"so"===t?i.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):yo_s(e,t)},S:function(e,t){return yo_S(e,t)},X:function(e,t,i,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return K$(o);case"XXXX":case"XX":return Na(o);default:return Na(o,":")}},x:function(e,t,i,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return K$(o);case"xxxx":case"xx":return Na(o);default:return Na(o,":")}},O:function(e,t,i,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Y$(o,":");default:return"GMT"+Na(o,":")}},z:function(e,t,i,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Y$(o,":");default:return"GMT"+Na(o,":")}},t:function(e,t,i,r){return tt(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,i,r){return tt((r._originalDate||e).getTime(),t.length)}};function Y$(n,e){var t=n>0?"-":"+",i=Math.abs(n),r=Math.floor(i/60),s=i%60;if(0===s)return t+String(r);var o=e||"";return t+String(r)+o+tt(s,2)}function K$(n,e){return n%60==0?(n>0?"-":"+")+tt(Math.abs(n)/60,2):Na(n,e)}function Na(n,e){var t=e||"",i=n>0?"-":"+",r=Math.abs(n);return i+tt(Math.floor(r/60),2)+t+tt(r%60,2)}const Ife=xfe;var Q$=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"})}},X$=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 bI={p:X$,P:function(e,t){var o,i=e.match(/(P+)(p+)?/)||[],r=i[1],s=i[2];if(!s)return Q$(e,t);switch(r){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}}",Q$(r,t)).replace("{{time}}",X$(s,t))}};function Cm(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 kfe=["D","DD"],Mfe=["YY","YYYY"];function Z$(n){return-1!==kfe.indexOf(n)}function J$(n){return-1!==Mfe.indexOf(n)}function Em(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 Pfe={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 Ic(n){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,i=n.formats[t]||n.formats[n.defaultWidth];return i}}var Vfe={date:Ic({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Ic({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:Ic({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},$fe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Jr(n){return function(e,t){var r;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;r=n.formattingValues[o]||n.formattingValues[s]}else{var a=n.defaultWidth,l=null!=t&&t.width?String(t.width):n.defaultWidth;r=n.values[l]||n.values[a]}return r[n.argumentCallback?n.argumentCallback(e):e]}}function es(n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.width,r=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],s=e.match(r);if(!s)return null;var c,o=s[0],a=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(a)?Jfe(a,function(d){return d.test(o)}):Zfe(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 Zfe(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function Jfe(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function e5(n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.match(n.matchPattern);if(!i)return null;var r=i[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(r.length);return{value:o,rest:a}}}const t5={code:"en-US",formatDistance:function(e,t,i){var r,s=Pfe[e];return r="string"==typeof s?s:1===t?s.one:s.other.replace("{{count}}",t.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r},formatLong:Vfe,formatRelative:function(e,t,i,r){return $fe[e]},localize:{ordinalNumber:function(e,t){var i=Number(e),r=i%100;if(r>20||r<10)switch(r%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Jr({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Jr({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:Jr({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:Jr({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:Jr({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"})},match:{ordinalNumber:e5({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:es({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:es({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:es({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:es({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:es({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"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var ppe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gpe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mpe=/^'([^]*?)'?$/,ype=/''/g,_pe=/[a-zA-Z]/;function _o(n,e,t){var i,r,s,o,a,l,c,u,d,h,f,p,g,m,_,b,y,T;Ge(2,arguments);var I=String(e),D=Tc(),P=null!==(i=null!==(r=t?.locale)&&void 0!==r?r:D.locale)&&void 0!==i?i:t5,j=qe(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:D.firstWeekContainsDate)&&void 0!==o?o:null===(d=D.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 q=qe(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:D.weekStartsOn)&&void 0!==p?p:null===(y=D.locale)||void 0===y||null===(T=y.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==f?f:0);if(!(q>=0&&q<=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=ct(n);if(!yfe(z))throw new RangeError("Invalid time value");var O=Cm(z),M=z$(z,O),L={firstWeekContainsDate:j,weekStartsOn:q,locale:P,_originalDate:z},ee=I.match(gpe).map(function(re){var x=re[0];return"p"===x||"P"===x?(0,bI[x])(re,P.formatLong):re}).join("").match(ppe).map(function(re){if("''"===re)return"'";var x=re[0];if("'"===x)return vpe(re);var H=Ife[x];if(H)return!(null!=t&&t.useAdditionalWeekYearTokens)&&J$(re)&&Em(re,e,String(n)),!(null!=t&&t.useAdditionalDayOfYearTokens)&&Z$(re)&&Em(re,e,String(n)),H(M,re,P.localize,L);if(x.match(_pe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return re}).join("");return ee}function vpe(n){var e=n.match(mpe);return e?e[1].replace(ype,"'"):n}function bpe(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 Tm(n){return(Tm="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 n5(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&&wI(n,e)}function wI(n,e){return(wI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function i5(n){var e=function Spe(){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 r,i=xm(n);if(e){var s=xm(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return wpe(this,r)}}function wpe(n,e){return!e||"object"!==Tm(e)&&"function"!=typeof e?SI(n):e}function SI(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 CI(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function r5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function EI(n,e,t){return e&&r5(n.prototype,e),t&&r5(n,t),n}function TI(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var s5=function(){function n(){CI(this,n),TI(this,"subPriority",0)}return EI(n,[{key:"validate",value:function(t,i){return!0}}]),n}(),Epe=function(n){n5(t,n);var e=i5(t);function t(i,r,s,o,a){var l;return CI(this,t),(l=e.call(this)).value=i,l.validateValue=r,l.setValue=s,l.priority=o,a&&(l.subPriority=a),l}return EI(t,[{key:"validate",value:function(r,s){return this.validateValue(r,this.value,s)}},{key:"set",value:function(r,s,o){return this.setValue(r,s,this.value,o)}}]),t}(s5),Tpe=function(n){n5(t,n);var e=i5(t);function t(){var i;CI(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return TI(SI(i=e.call.apply(e,[this].concat(s))),"priority",10),TI(SI(i),"subPriority",-1),i}return EI(t,[{key:"set",value:function(r,s){if(s.timestampIsSet)return r;var o=new Date(0);return o.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),o.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),o}}]),t}(s5);function o5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}var Qe=function(){function n(){!function xpe(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n)}return function Ipe(n,e,t){e&&o5(n.prototype,e),t&&o5(n,t)}(n,[{key:"run",value:function(t,i,r,s){var o=this.parse(t,i,r,s);return o?{setter:new Epe(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(t,i,r){return!0}}]),n}();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 Ape(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function a5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function xI(n,e){return(xI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function Ppe(n,e){return!e||"object"!==Im(e)&&"function"!=typeof e?II(n):e}function II(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Am(n){return(Am=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function l5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Npe=function(n){!function kpe(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 Mpe(n){var e=function Ope(){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 r,i=Am(n);if(e){var s=Am(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Ppe(this,r)}}(t);function t(){var i;Ape(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return l5(II(i=e.call.apply(e,[this].concat(s))),"priority",140),l5(II(i),"incompatibleTokens",["R","u","t","T"]),i}return function Dpe(n,e,t){e&&a5(n.prototype,e),t&&a5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"})||o.era(r,{width:"narrow"});case"GGGGG":return o.era(r,{width:"narrow"});default:return o.era(r,{width:"wide"})||o.era(r,{width:"abbreviated"})||o.era(r,{width:"narrow"})}}},{key:"set",value:function(r,s,o){return s.era=o,r.setUTCFullYear(o,0,1),r.setUTCHours(0,0,0,0),r}}]),t}(Qe),Gt_month=(Math.pow(10,8),/^(1[0-2]|0?\d)/),Gt_date=/^(3[0-1]|[0-2]?\d)/,Gt_dayOfYear=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Gt_week=/^(5[0-3]|[0-4]?\d)/,Gt_hour23h=/^(2[0-3]|[0-1]?\d)/,Gt_hour24h=/^(2[0-4]|[0-1]?\d)/,Gt_hour11h=/^(1[0-1]|0?\d)/,Gt_hour12h=/^(1[0-2]|0?\d)/,Gt_minute=/^[0-5]?\d/,Gt_second=/^[0-5]?\d/,Gt_singleDigit=/^\d/,Gt_twoDigits=/^\d{1,2}/,Gt_threeDigits=/^\d{1,3}/,Gt_fourDigits=/^\d{1,4}/,Gt_anyDigitsSigned=/^-?\d+/,Gt_singleDigitSigned=/^-?\d/,Gt_twoDigitsSigned=/^-?\d{1,2}/,Gt_threeDigitsSigned=/^-?\d{1,3}/,Gt_fourDigitsSigned=/^-?\d{1,4}/,ts_basicOptionalMinutes=/^([+-])(\d{2})(\d{2})?|Z/,ts_basic=/^([+-])(\d{2})(\d{2})|Z/,ts_basicOptionalSeconds=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,ts_extended=/^([+-])(\d{2}):(\d{2})|Z/,ts_extendedOptionalSeconds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Wt(n,e){return n&&{value:e(n.value),rest:n.rest}}function Dt(n,e){var t=e.match(n);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function ns(n,e){var t=e.match(n);return t?"Z"===t[0]?{value:0,rest:e.slice(1)}:{value:("+"===t[1]?1:-1)*(36e5*(t[2]?parseInt(t[2],10):0)+6e4*(t[3]?parseInt(t[3],10):0)+1e3*(t[5]?parseInt(t[5],10):0)),rest:e.slice(t[0].length)}:null}function u5(n){return Dt(Gt_anyDigitsSigned,n)}function Lt(n,e){switch(n){case 1:return Dt(Gt_singleDigit,e);case 2:return Dt(Gt_twoDigits,e);case 3:return Dt(Gt_threeDigits,e);case 4:return Dt(Gt_fourDigits,e);default:return Dt(new RegExp("^\\d{1,"+n+"}"),e)}}function Dm(n,e){switch(n){case 1:return Dt(Gt_singleDigitSigned,e);case 2:return Dt(Gt_twoDigitsSigned,e);case 3:return Dt(Gt_threeDigitsSigned,e);case 4:return Dt(Gt_fourDigitsSigned,e);default:return Dt(new RegExp("^-?\\d{1,"+n+"}"),e)}}function AI(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function d5(n,e){var r,t=e>0,i=t?e:1-e;if(i<=50)r=n||100;else{var s=i+50;r=n+100*Math.floor(s/100)-(n>=s%100?100:0)}return t?r:1-r}function h5(n){return n%400==0||n%4==0&&n%100!=0}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 zpe(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function f5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function DI(n,e){return(DI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function qpe(n,e){return!e||"object"!==km(e)&&"function"!=typeof e?kI(n):e}function kI(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Mm(n){return(Mm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function p5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Kpe=function(n){!function Gpe(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&&DI(n,e)}(t,n);var e=function Wpe(n){var e=function Ype(){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 r,i=Mm(n);if(e){var s=Mm(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return qpe(this,r)}}(t);function t(){var i;zpe(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return p5(kI(i=e.call.apply(e,[this].concat(s))),"priority",130),p5(kI(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return function jpe(n,e,t){e&&f5(n.prototype,e),t&&f5(n,t)}(t,[{key:"parse",value:function(r,s,o){var a=function(c){return{year:c,isTwoDigitYear:"yy"===s}};switch(s){case"y":return Wt(Lt(4,r),a);case"yo":return Wt(o.ordinalNumber(r,{unit:"year"}),a);default:return Wt(Lt(s.length,r),a)}}},{key:"validate",value:function(r,s){return s.isTwoDigitYear||s.year>0}},{key:"set",value:function(r,s,o){var a=r.getUTCFullYear();if(o.isTwoDigitYear){var l=d5(o.year,a);return r.setUTCFullYear(l,0,1),r.setUTCHours(0,0,0,0),r}return r.setUTCFullYear("era"in s&&1!==s.era?1-o.year:o.year,0,1),r.setUTCHours(0,0,0,0),r}}]),t}(Qe);function Pm(n){return(Pm="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 Qpe(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function g5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function MI(n,e){return(MI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function ege(n,e){return!e||"object"!==Pm(e)&&"function"!=typeof e?PI(n):e}function PI(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Om(n){return(Om=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function m5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var nge=function(n){!function Zpe(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&&MI(n,e)}(t,n);var e=function Jpe(n){var e=function tge(){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 r,i=Om(n);if(e){var s=Om(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return ege(this,r)}}(t);function t(){var i;Qpe(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return m5(PI(i=e.call.apply(e,[this].concat(s))),"priority",130),m5(PI(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return function Xpe(n,e,t){e&&g5(n.prototype,e),t&&g5(n,t)}(t,[{key:"parse",value:function(r,s,o){var a=function(c){return{year:c,isTwoDigitYear:"YY"===s}};switch(s){case"Y":return Wt(Lt(4,r),a);case"Yo":return Wt(o.ordinalNumber(r,{unit:"year"}),a);default:return Wt(Lt(s.length,r),a)}}},{key:"validate",value:function(r,s){return s.isTwoDigitYear||s.year>0}},{key:"set",value:function(r,s,o,a){var l=vI(r,a);if(o.isTwoDigitYear){var c=d5(o.year,l);return r.setUTCFullYear(c,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Oa(r,a)}return r.setUTCFullYear("era"in s&&1!==s.era?1-o.year:o.year,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Oa(r,a)}}]),t}(Qe);function Nm(n){return(Nm="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 ige(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 i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function OI(n,e){return(OI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function age(n,e){return!e||"object"!==Nm(e)&&"function"!=typeof e?NI(n):e}function NI(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Rm(n){return(Rm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function _5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var cge=function(n){!function sge(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&&OI(n,e)}(t,n);var e=function oge(n){var e=function lge(){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 r,i=Rm(n);if(e){var s=Rm(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return age(this,r)}}(t);function t(){var i;ige(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return _5(NI(i=e.call.apply(e,[this].concat(s))),"priority",130),_5(NI(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return function rge(n,e,t){e&&y5(n.prototype,e),t&&y5(n,t)}(t,[{key:"parse",value:function(r,s){return Dm("R"===s?4:s.length,r)}},{key:"set",value:function(r,s,o){var a=new Date(0);return a.setUTCFullYear(o,0,4),a.setUTCHours(0,0,0,0),Ec(a)}}]),t}(Qe);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 uge(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function v5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function RI(n,e){return(RI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function pge(n,e){return!e||"object"!==Lm(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 Fm(n){return(Fm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function b5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var mge=function(n){!function hge(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)}(t,n);var e=function fge(n){var e=function gge(){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 r,i=Fm(n);if(e){var s=Fm(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return pge(this,r)}}(t);function t(){var i;uge(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return b5(LI(i=e.call.apply(e,[this].concat(s))),"priority",130),b5(LI(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return function dge(n,e,t){e&&v5(n.prototype,e),t&&v5(n,t)}(t,[{key:"parse",value:function(r,s){return Dm("u"===s?4:s.length,r)}},{key:"set",value:function(r,s,o){return r.setUTCFullYear(o,0,1),r.setUTCHours(0,0,0,0),r}}]),t}(Qe);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 yge(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 i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function FI(n,e){return(FI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function wge(n,e){return!e||"object"!==Vm(e)&&"function"!=typeof e?VI(n):e}function VI(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 S5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Cge=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&&FI(n,e)}(t,n);var e=function bge(n){var e=function Sge(){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 r,i=Bm(n);if(e){var s=Bm(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return wge(this,r)}}(t);function t(){var i;yge(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return S5(VI(i=e.call.apply(e,[this].concat(s))),"priority",120),S5(VI(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return function _ge(n,e,t){e&&w5(n.prototype,e),t&&w5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"Q":case"QQ":return Lt(s.length,r);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"})||o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});default:return o.quarter(r,{width:"wide",context:"formatting"})||o.quarter(r,{width:"abbreviated",context:"formatting"})||o.quarter(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=1&&s<=4}},{key:"set",value:function(r,s,o){return r.setUTCMonth(3*(o-1),1),r.setUTCHours(0,0,0,0),r}}]),t}(Qe);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 Ege(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function C5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function BI(n,e){return(BI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function Age(n,e){return!e||"object"!==$m(e)&&"function"!=typeof e?$I(n):e}function $I(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Hm(n){return(Hm=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function E5(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 xge(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&&BI(n,e)}(t,n);var e=function Ige(n){var e=function Dge(){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 r,i=Hm(n);if(e){var s=Hm(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Age(this,r)}}(t);function t(){var i;Ege(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return E5($I(i=e.call.apply(e,[this].concat(s))),"priority",120),E5($I(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return function Tge(n,e,t){e&&C5(n.prototype,e),t&&C5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"q":case"qq":return Lt(s.length,r);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"})||o.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});default:return o.quarter(r,{width:"wide",context:"standalone"})||o.quarter(r,{width:"abbreviated",context:"standalone"})||o.quarter(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,s){return s>=1&&s<=4}},{key:"set",value:function(r,s,o){return r.setUTCMonth(3*(o-1),1),r.setUTCHours(0,0,0,0),r}}]),t}(Qe);function Um(n){return(Um="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 Mge(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function T5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function HI(n,e){return(HI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function Rge(n,e){return!e||"object"!==Um(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 zm(n){return(zm=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 Fge=function(n){!function Oge(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&&HI(n,e)}(t,n);var e=function Nge(n){var e=function Lge(){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 r,i=zm(n);if(e){var s=zm(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Rge(this,r)}}(t);function t(){var i;Mge(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return x5(UI(i=e.call.apply(e,[this].concat(s))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),x5(UI(i),"priority",110),i}return function Pge(n,e,t){e&&T5(n.prototype,e),t&&T5(n,t)}(t,[{key:"parse",value:function(r,s,o){var a=function(c){return c-1};switch(s){case"M":return Wt(Dt(Gt_month,r),a);case"MM":return Wt(Lt(2,r),a);case"Mo":return Wt(o.ordinalNumber(r,{unit:"month"}),a);case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"})||o.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});default:return o.month(r,{width:"wide",context:"formatting"})||o.month(r,{width:"abbreviated",context:"formatting"})||o.month(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=11}},{key:"set",value:function(r,s,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),t}(Qe);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 Vge(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function I5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function zI(n,e){return(zI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function Uge(n,e){return!e||"object"!==jm(e)&&"function"!=typeof e?jI(n):e}function jI(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 A5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var jge=function(n){!function $ge(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&&zI(n,e)}(t,n);var e=function Hge(n){var e=function zge(){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 r,i=Gm(n);if(e){var s=Gm(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Uge(this,r)}}(t);function t(){var i;Vge(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return A5(jI(i=e.call.apply(e,[this].concat(s))),"priority",110),A5(jI(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return function Bge(n,e,t){e&&I5(n.prototype,e),t&&I5(n,t)}(t,[{key:"parse",value:function(r,s,o){var a=function(c){return c-1};switch(s){case"L":return Wt(Dt(Gt_month,r),a);case"LL":return Wt(Lt(2,r),a);case"Lo":return Wt(o.ordinalNumber(r,{unit:"month"}),a);case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"})||o.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});default:return o.month(r,{width:"wide",context:"standalone"})||o.month(r,{width:"abbreviated",context:"standalone"})||o.month(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=11}},{key:"set",value:function(r,s,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),t}(Qe);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 Wge(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function D5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function GI(n,e){return(GI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function Qge(n,e){return!e||"object"!==Wm(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 qm(n){return(qm=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 Zge=function(n){!function Yge(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 Kge(n){var e=function Xge(){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 r,i=qm(n);if(e){var s=qm(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Qge(this,r)}}(t);function t(){var i;Wge(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return k5(WI(i=e.call.apply(e,[this].concat(s))),"priority",100),k5(WI(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return function qge(n,e,t){e&&D5(n.prototype,e),t&&D5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"w":return Dt(Gt_week,r);case"wo":return o.ordinalNumber(r,{unit:"week"});default:return Lt(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=53}},{key:"set",value:function(r,s,o,a){return Oa(function Gge(n,e,t){Ge(2,arguments);var i=ct(n),r=qe(e),s=q$(i,t)-r;return i.setUTCDate(i.getUTCDate()-7*s),i}(r,o,a),a)}}]),t}(Qe);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 eme(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function M5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function qI(n,e){return(qI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function rme(n,e){return!e||"object"!==Ym(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 Km(n){return(Km=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function P5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var ome=function(n){!function nme(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 ime(n){var e=function sme(){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 r,i=Km(n);if(e){var s=Km(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return rme(this,r)}}(t);function t(){var i;eme(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return P5(YI(i=e.call.apply(e,[this].concat(s))),"priority",100),P5(YI(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return function tme(n,e,t){e&&M5(n.prototype,e),t&&M5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"I":return Dt(Gt_week,r);case"Io":return o.ordinalNumber(r,{unit:"week"});default:return Lt(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=53}},{key:"set",value:function(r,s,o){return Ec(function Jge(n,e){Ge(2,arguments);var t=ct(n),i=qe(e),r=G$(t)-i;return t.setUTCDate(t.getUTCDate()-7*r),t}(r,o))}}]),t}(Qe);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 ame(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function KI(n,e){return(KI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function dme(n,e){return!e||"object"!==Qm(e)&&"function"!=typeof e?Xm(n):e}function Xm(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 QI(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var fme=[31,28,31,30,31,30,31,31,30,31,30,31],pme=[31,29,31,30,31,30,31,31,30,31,30,31],gme=function(n){!function cme(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 ume(n){var e=function hme(){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 r,i=Zm(n);if(e){var s=Zm(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return dme(this,r)}}(t);function t(){var i;ame(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return QI(Xm(i=e.call.apply(e,[this].concat(s))),"priority",90),QI(Xm(i),"subPriority",1),QI(Xm(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return function lme(n,e,t){e&&O5(n.prototype,e),t&&O5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"d":return Dt(Gt_date,r);case"do":return o.ordinalNumber(r,{unit:"date"});default:return Lt(s.length,r)}}},{key:"validate",value:function(r,s){var a=h5(r.getUTCFullYear()),l=r.getUTCMonth();return a?s>=1&&s<=pme[l]:s>=1&&s<=fme[l]}},{key:"set",value:function(r,s,o){return r.setUTCDate(o),r.setUTCHours(0,0,0,0),r}}]),t}(Qe);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 mme(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 i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function XI(n,e){return(XI=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function bme(n,e){return!e||"object"!==Jm(e)&&"function"!=typeof e?ey(n):e}function ey(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 ZI(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 _me(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 vme(n){var e=function wme(){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 r,i=ty(n);if(e){var s=ty(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return bme(this,r)}}(t);function t(){var i;mme(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return ZI(ey(i=e.call.apply(e,[this].concat(s))),"priority",90),ZI(ey(i),"subpriority",1),ZI(ey(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return function yme(n,e,t){e&&N5(n.prototype,e),t&&N5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"D":case"DD":return Dt(Gt_dayOfYear,r);case"Do":return o.ordinalNumber(r,{unit:"date"});default:return Lt(s.length,r)}}},{key:"validate",value:function(r,s){return h5(r.getUTCFullYear())?s>=1&&s<=366:s>=1&&s<=365}},{key:"set",value:function(r,s,o){return r.setUTCMonth(0,o),r.setUTCHours(0,0,0,0),r}}]),t}(Qe);function JI(n,e,t){var i,r,s,o,a,l,c,u;Ge(2,arguments);var d=Tc(),h=qe(null!==(i=null!==(r=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!==r?r:null===(c=d.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ct(n),p=qe(e),g=f.getUTCDay(),m=p%7,_=(m+7)%7,b=(_<h?7:0)+p-g;return f.setUTCDate(f.getUTCDate()+b),f}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 Cme(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function R5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function eA(n,e){return(eA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function Ime(n,e){return!e||"object"!==ny(e)&&"function"!=typeof e?tA(n):e}function tA(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 L5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Dme=function(n){!function Tme(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&&eA(n,e)}(t,n);var e=function xme(n){var e=function Ame(){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 r,i=iy(n);if(e){var s=iy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Ime(this,r)}}(t);function t(){var i;Cme(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return L5(tA(i=e.call.apply(e,[this].concat(s))),"priority",90),L5(tA(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return function Eme(n,e,t){e&&R5(n.prototype,e),t&&R5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=6}},{key:"set",value:function(r,s,o,a){return(r=JI(r,o,a)).setUTCHours(0,0,0,0),r}}]),t}(Qe);function ry(n){return(ry="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 F5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function nA(n,e){return(nA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function Nme(n,e){return!e||"object"!==ry(e)&&"function"!=typeof e?iA(n):e}function iA(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 V5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Lme=function(n){!function Pme(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&&nA(n,e)}(t,n);var e=function Ome(n){var e=function Rme(){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 r,i=sy(n);if(e){var s=sy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Nme(this,r)}}(t);function t(){var i;kme(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return V5(iA(i=e.call.apply(e,[this].concat(s))),"priority",90),V5(iA(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return function Mme(n,e,t){e&&F5(n.prototype,e),t&&F5(n,t)}(t,[{key:"parse",value:function(r,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 Wt(Lt(s.length,r),l);case"eo":return Wt(o.ordinalNumber(r,{unit:"day"}),l);case"eee":return o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"eeeee":return o.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=6}},{key:"set",value:function(r,s,o,a){return(r=JI(r,o,a)).setUTCHours(0,0,0,0),r}}]),t}(Qe);function oy(n){return(oy="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 Fme(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function B5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function rA(n,e){return(rA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function Hme(n,e){return!e||"object"!==oy(e)&&"function"!=typeof e?sA(n):e}function sA(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 $5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var zme=function(n){!function Bme(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&&rA(n,e)}(t,n);var e=function $me(n){var e=function Ume(){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 r,i=ay(n);if(e){var s=ay(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Hme(this,r)}}(t);function t(){var i;Fme(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return $5(sA(i=e.call.apply(e,[this].concat(s))),"priority",90),$5(sA(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return function Vme(n,e,t){e&&B5(n.prototype,e),t&&B5(n,t)}(t,[{key:"parse",value:function(r,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 Wt(Lt(s.length,r),l);case"co":return Wt(o.ordinalNumber(r,{unit:"day"}),l);case"ccc":return o.day(r,{width:"abbreviated",context:"standalone"})||o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"});case"ccccc":return o.day(r,{width:"narrow",context:"standalone"});case"cccccc":return o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"});default:return o.day(r,{width:"wide",context:"standalone"})||o.day(r,{width:"abbreviated",context:"standalone"})||o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=6}},{key:"set",value:function(r,s,o,a){return(r=JI(r,o,a)).setUTCHours(0,0,0,0),r}}]),t}(Qe);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 Gme(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 i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function oA(n,e){return(oA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function Kme(n,e){return!e||"object"!==ly(e)&&"function"!=typeof e?aA(n):e}function aA(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 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 Xme=function(n){!function qme(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&&oA(n,e)}(t,n);var e=function Yme(n){var e=function Qme(){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 r,i=cy(n);if(e){var s=cy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Kme(this,r)}}(t);function t(){var i;Gme(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return U5(aA(i=e.call.apply(e,[this].concat(s))),"priority",90),U5(aA(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return function Wme(n,e,t){e&&H5(n.prototype,e),t&&H5(n,t)}(t,[{key:"parse",value:function(r,s,o){var a=function(c){return 0===c?7:c};switch(s){case"i":case"ii":return Lt(s.length,r);case"io":return o.ordinalNumber(r,{unit:"day"});case"iii":return Wt(o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a);case"iiiii":return Wt(o.day(r,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Wt(o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a);default:return Wt(o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a)}}},{key:"validate",value:function(r,s){return s>=1&&s<=7}},{key:"set",value:function(r,s,o){return r=function jme(n,e){Ge(2,arguments);var t=qe(e);t%7==0&&(t-=7);var i=1,r=ct(n),s=r.getUTCDay(),l=((t%7+7)%7<i?7:0)+t-s;return r.setUTCDate(r.getUTCDate()+l),r}(r,o),r.setUTCHours(0,0,0,0),r}}]),t}(Qe);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 Zme(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 i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function lA(n,e){return(lA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function nye(n,e){return!e||"object"!==uy(e)&&"function"!=typeof e?cA(n):e}function cA(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 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 rye=function(n){!function eye(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&&lA(n,e)}(t,n);var e=function tye(n){var e=function iye(){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 r,i=dy(n);if(e){var s=dy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return nye(this,r)}}(t);function t(){var i;Zme(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return j5(cA(i=e.call.apply(e,[this].concat(s))),"priority",80),j5(cA(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return function Jme(n,e,t){e&&z5(n.prototype,e),t&&z5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"a":case"aa":case"aaa":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(r,{width:"narrow",context:"formatting"});default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,s,o){return r.setUTCHours(AI(o),0,0,0),r}}]),t}(Qe);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 sye(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function G5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function uA(n,e){return(uA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function cye(n,e){return!e||"object"!==hy(e)&&"function"!=typeof e?dA(n):e}function dA(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 W5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var dye=function(n){!function aye(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&&uA(n,e)}(t,n);var e=function lye(n){var e=function uye(){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 r,i=fy(n);if(e){var s=fy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return cye(this,r)}}(t);function t(){var i;sye(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return W5(dA(i=e.call.apply(e,[this].concat(s))),"priority",80),W5(dA(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return function oye(n,e,t){e&&G5(n.prototype,e),t&&G5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"b":case"bb":case"bbb":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(r,{width:"narrow",context:"formatting"});default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,s,o){return r.setUTCHours(AI(o),0,0,0),r}}]),t}(Qe);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 hye(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 i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function hA(n,e){return(hA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function mye(n,e){return!e||"object"!==py(e)&&"function"!=typeof e?fA(n):e}function fA(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 Y5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var _ye=function(n){!function pye(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&&hA(n,e)}(t,n);var e=function gye(n){var e=function yye(){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 r,i=gy(n);if(e){var s=gy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return mye(this,r)}}(t);function t(){var i;hye(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return Y5(fA(i=e.call.apply(e,[this].concat(s))),"priority",80),Y5(fA(i),"incompatibleTokens",["a","b","t","T"]),i}return function fye(n,e,t){e&&q5(n.prototype,e),t&&q5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"B":case"BB":case"BBB":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(r,{width:"narrow",context:"formatting"});default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,s,o){return r.setUTCHours(AI(o),0,0,0),r}}]),t}(Qe);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 vye(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 i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function pA(n,e){return(pA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function Cye(n,e){return!e||"object"!==my(e)&&"function"!=typeof e?gA(n):e}function gA(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 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 Tye=function(n){!function wye(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&&pA(n,e)}(t,n);var e=function Sye(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 r,i=yy(n);if(e){var s=yy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Cye(this,r)}}(t);function t(){var i;vye(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return Q5(gA(i=e.call.apply(e,[this].concat(s))),"priority",70),Q5(gA(i),"incompatibleTokens",["H","K","k","t","T"]),i}return function bye(n,e,t){e&&K5(n.prototype,e),t&&K5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"h":return Dt(Gt_hour12h,r);case"ho":return o.ordinalNumber(r,{unit:"hour"});default:return Lt(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=12}},{key:"set",value:function(r,s,o){var a=r.getUTCHours()>=12;return r.setUTCHours(a&&o<12?o+12:a||12!==o?o:0,0,0,0),r}}]),t}(Qe);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 xye(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function X5(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function mA(n,e){return(mA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function kye(n,e){return!e||"object"!==_y(e)&&"function"!=typeof e?yA(n):e}function yA(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 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 Pye=function(n){!function Aye(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&&mA(n,e)}(t,n);var e=function Dye(n){var e=function Mye(){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 r,i=vy(n);if(e){var s=vy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return kye(this,r)}}(t);function t(){var i;xye(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return Z5(yA(i=e.call.apply(e,[this].concat(s))),"priority",70),Z5(yA(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return function Iye(n,e,t){e&&X5(n.prototype,e),t&&X5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"H":return Dt(Gt_hour23h,r);case"Ho":return o.ordinalNumber(r,{unit:"hour"});default:return Lt(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=23}},{key:"set",value:function(r,s,o){return r.setUTCHours(o,0,0,0),r}}]),t}(Qe);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 Oye(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 i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function _A(n,e){return(_A=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function Fye(n,e){return!e||"object"!==by(e)&&"function"!=typeof e?vA(n):e}function vA(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 e8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Bye=function(n){!function Rye(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&&_A(n,e)}(t,n);var e=function Lye(n){var e=function Vye(){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 r,i=wy(n);if(e){var s=wy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Fye(this,r)}}(t);function t(){var i;Oye(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return e8(vA(i=e.call.apply(e,[this].concat(s))),"priority",70),e8(vA(i),"incompatibleTokens",["h","H","k","t","T"]),i}return function Nye(n,e,t){e&&J5(n.prototype,e),t&&J5(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"K":return Dt(Gt_hour11h,r);case"Ko":return o.ordinalNumber(r,{unit:"hour"});default:return Lt(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=11}},{key:"set",value:function(r,s,o){var a=r.getUTCHours()>=12;return r.setUTCHours(a&&o<12?o+12:o,0,0,0),r}}]),t}(Qe);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 $ye(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function t8(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function bA(n,e){return(bA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function jye(n,e){return!e||"object"!==Sy(e)&&"function"!=typeof e?wA(n):e}function wA(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 n8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Wye=function(n){!function Uye(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&&bA(n,e)}(t,n);var e=function zye(n){var e=function Gye(){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 r,i=Cy(n);if(e){var s=Cy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return jye(this,r)}}(t);function t(){var i;$ye(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return n8(wA(i=e.call.apply(e,[this].concat(s))),"priority",70),n8(wA(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return function Hye(n,e,t){e&&t8(n.prototype,e),t&&t8(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"k":return Dt(Gt_hour24h,r);case"ko":return o.ordinalNumber(r,{unit:"hour"});default:return Lt(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=24}},{key:"set",value:function(r,s,o){return r.setUTCHours(o<=24?o%24:o,0,0,0),r}}]),t}(Qe);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 qye(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 i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function SA(n,e){return(SA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function Xye(n,e){return!e||"object"!==Ey(e)&&"function"!=typeof e?CA(n):e}function CA(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 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 Jye=function(n){!function Kye(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&&SA(n,e)}(t,n);var e=function Qye(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 r,i=Ty(n);if(e){var s=Ty(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Xye(this,r)}}(t);function t(){var i;qye(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return r8(CA(i=e.call.apply(e,[this].concat(s))),"priority",60),r8(CA(i),"incompatibleTokens",["t","T"]),i}return function Yye(n,e,t){e&&i8(n.prototype,e),t&&i8(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"m":return Dt(Gt_minute,r);case"mo":return o.ordinalNumber(r,{unit:"minute"});default:return Lt(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=59}},{key:"set",value:function(r,s,o){return r.setUTCMinutes(o,0,0),r}}]),t}(Qe);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 e_e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function s8(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function EA(n,e){return(EA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function r_e(n,e){return!e||"object"!==xy(e)&&"function"!=typeof e?TA(n):e}function TA(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 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 o_e=function(n){!function n_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&&EA(n,e)}(t,n);var e=function i_e(n){var e=function s_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 r,i=Iy(n);if(e){var s=Iy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return r_e(this,r)}}(t);function t(){var i;e_e(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return o8(TA(i=e.call.apply(e,[this].concat(s))),"priority",50),o8(TA(i),"incompatibleTokens",["t","T"]),i}return function t_e(n,e,t){e&&s8(n.prototype,e),t&&s8(n,t)}(t,[{key:"parse",value:function(r,s,o){switch(s){case"s":return Dt(Gt_second,r);case"so":return o.ordinalNumber(r,{unit:"second"});default:return Lt(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=59}},{key:"set",value:function(r,s,o){return r.setUTCSeconds(o,0),r}}]),t}(Qe);function Ay(n){return(Ay="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 a_e(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 i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function xA(n,e){return(xA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function d_e(n,e){return!e||"object"!==Ay(e)&&"function"!=typeof e?IA(n):e}function IA(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 l8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var f_e=function(n){!function c_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&&xA(n,e)}(t,n);var e=function u_e(n){var e=function h_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 r,i=Dy(n);if(e){var s=Dy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return d_e(this,r)}}(t);function t(){var i;a_e(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return l8(IA(i=e.call.apply(e,[this].concat(s))),"priority",30),l8(IA(i),"incompatibleTokens",["t","T"]),i}return function l_e(n,e,t){e&&a8(n.prototype,e),t&&a8(n,t)}(t,[{key:"parse",value:function(r,s){return Wt(Lt(s.length,r),function(l){return Math.floor(l*Math.pow(10,3-s.length))})}},{key:"set",value:function(r,s,o){return r.setUTCMilliseconds(o),r}}]),t}(Qe);function ky(n){return(ky="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 p_e(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 i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function AA(n,e){return(AA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function __e(n,e){return!e||"object"!==ky(e)&&"function"!=typeof e?DA(n):e}function DA(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function My(n){return(My=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 b_e=function(n){!function m_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&&AA(n,e)}(t,n);var e=function y_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 r,i=My(n);if(e){var s=My(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return __e(this,r)}}(t);function t(){var i;p_e(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return u8(DA(i=e.call.apply(e,[this].concat(s))),"priority",10),u8(DA(i),"incompatibleTokens",["t","T","x"]),i}return function g_e(n,e,t){e&&c8(n.prototype,e),t&&c8(n,t)}(t,[{key:"parse",value:function(r,s){switch(s){case"X":return ns(ts_basicOptionalMinutes,r);case"XX":return ns(ts_basic,r);case"XXXX":return ns(ts_basicOptionalSeconds,r);case"XXXXX":return ns(ts_extendedOptionalSeconds,r);default:return ns(ts_extended,r)}}},{key:"set",value:function(r,s,o){return s.timestampIsSet?r:new Date(r.getTime()-o)}}]),t}(Qe);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 w_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 i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function kA(n,e){return(kA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function T_e(n,e){return!e||"object"!==Py(e)&&"function"!=typeof e?MA(n):e}function MA(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 h8(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 C_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&&kA(n,e)}(t,n);var e=function E_e(n){var e=function x_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 r,i=Oy(n);if(e){var s=Oy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return T_e(this,r)}}(t);function t(){var i;w_e(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return h8(MA(i=e.call.apply(e,[this].concat(s))),"priority",10),h8(MA(i),"incompatibleTokens",["t","T","X"]),i}return function S_e(n,e,t){e&&d8(n.prototype,e),t&&d8(n,t)}(t,[{key:"parse",value:function(r,s){switch(s){case"x":return ns(ts_basicOptionalMinutes,r);case"xx":return ns(ts_basic,r);case"xxxx":return ns(ts_basicOptionalSeconds,r);case"xxxxx":return ns(ts_extendedOptionalSeconds,r);default:return ns(ts_extended,r)}}},{key:"set",value:function(r,s,o){return s.timestampIsSet?r:new Date(r.getTime()-o)}}]),t}(Qe);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 A_e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function f8(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function PA(n,e){return(PA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function P_e(n,e){return!e||"object"!==Ny(e)&&"function"!=typeof e?OA(n):e}function OA(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 p8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var N_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&&PA(n,e)}(t,n);var e=function M_e(n){var e=function O_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 r,i=Ry(n);if(e){var s=Ry(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return P_e(this,r)}}(t);function t(){var i;A_e(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return p8(OA(i=e.call.apply(e,[this].concat(s))),"priority",40),p8(OA(i),"incompatibleTokens","*"),i}return function D_e(n,e,t){e&&f8(n.prototype,e),t&&f8(n,t)}(t,[{key:"parse",value:function(r){return u5(r)}},{key:"set",value:function(r,s,o){return[new Date(1e3*o),{timestampIsSet:!0}]}}]),t}(Qe);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 R_e(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function g8(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function NA(n,e){return(NA=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,e)}function B_e(n,e){return!e||"object"!==Ly(e)&&"function"!=typeof e?RA(n):e}function RA(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 m8(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var H_e=function(n){!function F_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&&NA(n,e)}(t,n);var e=function V_e(n){var e=function $_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 r,i=Fy(n);if(e){var s=Fy(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return B_e(this,r)}}(t);function t(){var i;R_e(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return m8(RA(i=e.call.apply(e,[this].concat(s))),"priority",20),m8(RA(i),"incompatibleTokens","*"),i}return function L_e(n,e,t){e&&g8(n.prototype,e),t&&g8(n,t)}(t,[{key:"parse",value:function(r){return u5(r)}},{key:"set",value:function(r,s,o){return[new Date(o),{timestampIsSet:!0}]}}]),t}(Qe),U_e={G:new Npe,y:new Kpe,Y:new nge,R:new cge,u:new mge,Q:new Cge,q:new kge,M:new Fge,L:new jge,w:new Zge,I:new ome,d:new gme,D:new Sme,E:new Dme,e:new Lme,c:new zme,i:new Xme,a:new rye,b:new dye,B:new _ye,h:new Tye,H:new Pye,K:new Bye,k:new Wye,m:new Jye,s:new o_e,S:new f_e,X:new b_e,x:new I_e,t:new N_e,T:new H_e};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 y8(n,e){var t;if(typeof Symbol>"u"||null==n[Symbol.iterator]){if(Array.isArray(n)||(t=function z_e(n,e){if(n){if("string"==typeof n)return _8(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 _8(n,e)}}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var i=0,r=function(){};return{s:r,n:function(){return i>=n.length?{done:!0}:{done:!1,value:n[i++]}},e:function(c){throw c},f:r}}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 _8(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}var j_e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,G_e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,W_e=/^'([^]*?)'?$/,q_e=/''/g,Y_e=/\S/,K_e=/[a-zA-Z]/;function LA(n,e,t,i){var r,s,o,a,l,c,u,d,h,f,p,g,m,_,b,y,T,I;Ge(3,arguments);var D=String(n),P=String(e),j=Tc(),q=null!==(r=null!==(s=i?.locale)&&void 0!==s?s:j.locale)&&void 0!==r?r:t5;if(!q.match)throw new RangeError("locale must contain match property");var z=qe(null!==(o=null!==(a=null!==(l=null!==(c=i?.firstWeekContainsDate)&&void 0!==c?c:null==i||null===(u=i.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=qe(null!==(p=null!==(g=null!==(m=null!==(_=i?.weekStartsOn)&&void 0!==_?_:null==i||null===(b=i.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===(I=T.options)||void 0===I?void 0:I.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""===D?ct(t):new Date(NaN);var H,M={firstWeekContainsDate:z,weekStartsOn:O,locale:q},L=[new Tpe],ee=P.match(G_e).map(function(it){var Ne=it[0];return Ne in bI?(0,bI[Ne])(it,q.formatLong):it}).join("").match(j_e),re=[],x=y8(ee);try{var U=function(){var Ne=H.value;!(null!=i&&i.useAdditionalWeekYearTokens)&&J$(Ne)&&Em(Ne,P,n),(null==i||!i.useAdditionalDayOfYearTokens)&&Z$(Ne)&&Em(Ne,P,n);var tn=Ne[0],$i=U_e[tn];if($i){var Va=$i.incompatibleTokens;if(Array.isArray(Va)){var Oc=re.find(function(Nc){return Va.includes(Nc.token)||Nc.token===tn});if(Oc)throw new RangeError("The format string mustn't contain `".concat(Oc.fullToken,"` and `").concat(Ne,"` at the same time"))}else if("*"===$i.incompatibleTokens&&re.length>0)throw new RangeError("The format string mustn't contain `".concat(Ne,"` and any other token at the same time"));re.push({token:tn,fullToken:Ne});var Ba=$i.run(D,Ne,q.match,M);if(!Ba)return{v:new Date(NaN)};L.push(Ba.setter),D=Ba.rest}else{if(tn.match(K_e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+tn+"`");if("''"===Ne?Ne="'":"'"===tn&&(Ne=Q_e(Ne)),0!==D.indexOf(Ne))return{v:new Date(NaN)};D=D.slice(Ne.length)}};for(x.s();!(H=x.n()).done;){var se=U();if("object"===Vy(se))return se.v}}catch(it){x.e(it)}finally{x.f()}if(D.length>0&&Y_e.test(D))return new Date(NaN);var ge=L.map(function(it){return it.priority}).sort(function(it,Ne){return Ne-it}).filter(function(it,Ne,tn){return tn.indexOf(it)===Ne}).map(function(it){return L.filter(function(Ne){return Ne.priority===it}).sort(function(Ne,tn){return tn.subPriority-Ne.subPriority})}).map(function(it){return it[0]}),nt=ct(t);if(isNaN(nt.getTime()))return new Date(NaN);var ai,ut=z$(nt,Cm(nt)),Gn={},We=y8(ge);try{for(We.s();!(ai=We.n()).done;){var lr=ai.value;if(!lr.validate(ut,M))return new Date(NaN);var Tt=lr.set(ut,Gn,M);Array.isArray(Tt)?(ut=Tt[0],bpe(Gn,Tt[1])):ut=Tt}}catch(it){We.e(it)}finally{We.f()}return ut}function Q_e(n){return n.match(W_e)[1].replace(q_e,"'")}function By(n,e){Ge(2,arguments);var t=ct(n),i=ct(e);return t.getTime()<i.getTime()}function v8(n,e){Ge(2,arguments);var t=ct(n),i=ct(e);return t.getTime()>i.getTime()}let is=(()=>{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=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rs=Object.create(null);rs.open="0",rs.close="1",rs.ping="2",rs.pong="3",rs.message="4",rs.upgrade="5",rs.noop="6";const $y=Object.create(null);Object.keys(rs).forEach(n=>{$y[rs[n]]=n});const X_e={type:"error",data:"parser error"},Z_e="function"==typeof Blob||typeof Blob<"u"&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),J_e="function"==typeof ArrayBuffer,b8=(n,e)=>{const t=new FileReader;return t.onload=function(){const i=t.result.split(",")[1];e("b"+i)},t.readAsDataURL(n)},w8=({type:n,data:e},t,i)=>Z_e&&e instanceof Blob?t?i(e):b8(e,i):J_e&&(e instanceof ArrayBuffer||(n=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer)(e))?t?i(e):b8(new Blob([e]),i):i(rs[n]+(e||"")),Ac="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lh=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Ac.length;n++)lh[Ac.charCodeAt(n)]=n;const ive="function"==typeof ArrayBuffer,sve=(n,e)=>{if(ive){const t=(n=>{let i,s,o,a,l,e=.75*n.length,t=n.length,r=0;"="===n[n.length-1]&&(e--,"="===n[n.length-2]&&e--);const c=new ArrayBuffer(e),u=new Uint8Array(c);for(i=0;i<t;i+=4)s=lh[n.charCodeAt(i)],o=lh[n.charCodeAt(i+1)],a=lh[n.charCodeAt(i+2)],l=lh[n.charCodeAt(i+3)],u[r++]=s<<2|o>>4,u[r++]=(15&o)<<4|a>>2,u[r++]=(3&a)<<6|63&l;return c})(n);return S8(t,e)}return{base64:!0,data:n}},S8=(n,e)=>"blob"===e&&n instanceof ArrayBuffer?new Blob([n]):n,C8=(n,e)=>{if("string"!=typeof n)return{type:"message",data:S8(n,e)};const t=n.charAt(0);return"b"===t?{type:"message",data:sve(n.substring(1),e)}:$y[t]?n.length>1?{type:$y[t],data:n.substring(1)}:{type:$y[t]}:X_e},E8=String.fromCharCode(30);function en(n){if(n)return function lve(n){for(var e in en.prototype)n[e]=en.prototype[e];return n}(n)}en.prototype.on=en.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this},en.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this},en.prototype.off=en.prototype.removeListener=en.prototype.removeAllListeners=en.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 i,r=0;r<t.length;r++)if((i=t[r])===e||i.fn===e){t.splice(r,1);break}return 0===t.length&&delete this._callbacks["$"+n],this},en.prototype.emitReserved=en.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(t){i=0;for(var r=(t=t.slice(0)).length;i<r;++i)t[i].apply(this,e)}return this},en.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},en.prototype.hasListeners=function(n){return!!this.listeners(n).length};const vo=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function x8(n,...e){return e.reduce((t,i)=>(n.hasOwnProperty(i)&&(t[i]=n[i]),t),{})}const cve=setTimeout,uve=clearTimeout;function Hy(n,e){e.useNativeTimers?(n.setTimeoutFn=cve.bind(vo),n.clearTimeoutFn=uve.bind(vo)):(n.setTimeoutFn=setTimeout.bind(vo),n.clearTimeoutFn=clearTimeout.bind(vo))}function hve(n){return"string"==typeof n?function fve(n){let e=0,t=0;for(let i=0,r=n.length;i<r;i++)e=n.charCodeAt(i),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(i++,t+=4);return t}(n):Math.ceil(1.33*(n.byteLength||n.size))}class pve extends Error{constructor(e,t,i){super(e),this.description=t,this.context=i,this.type="TransportError"}}class I8 extends en{constructor(e){super(),this.writable=!1,Hy(this,e),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t,i){return super.emitReserved("error",new pve(e,t,i)),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=C8(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}}const A8="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),D8={};let M8,k8=0,bo=0;function P8(n){let e="";do{e=A8[n%64]+e,n=Math.floor(n/64)}while(n>0);return e}function O8(){const n=P8(+new Date);return n!==M8?(k8=0,M8=n):n+"."+P8(k8++)}for(;bo<64;bo++)D8[A8[bo]]=bo;function N8(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}let R8=!1;try{R8=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const mve=R8;function L8(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||mve))return new XMLHttpRequest}catch{}if(!e)try{return new(vo[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch{}}function yve(){}const _ve=null!=new L8({xdomain:!1}).responseType;let zy=(()=>{class n extends en{constructor(t,i){super(),Hy(this,i),this.opts=i,this.method=i.method||"GET",this.uri=t,this.async=!1!==i.async,this.data=void 0!==i.data?i.data:null,this.create()}create(){const t=x8(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const i=this.xhr=new L8(t);try{i.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&i.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if("POST"===this.method)try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in i&&(i.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(i.timeout=this.opts.requestTimeout),i.onreadystatechange=()=>{4===i.readyState&&(200===i.status||1223===i.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof i.status?i.status:0)},0))},i.send(this.data)}catch(r){return void this.setTimeoutFn(()=>{this.onError(r)},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=yve,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 F8(){for(let n in zy.requests)zy.requests.hasOwnProperty(n)&&zy.requests[n].abort()}typeof document<"u"&&("function"==typeof attachEvent?attachEvent("onunload",F8):"function"==typeof addEventListener&&addEventListener("onpagehide"in vo?"pagehide":"unload",F8,!1));const V8="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),jy=vo.WebSocket||vo.MozWebSocket,B8=typeof navigator<"u"&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),Sve={websocket:class wve extends I8{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,i=B8?{}:x8(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=B8?new jy(e,t,i):t?new jy(e,t):new jy(e)}catch(r){return this.emitReserved("error",r)}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 r=t===e.length-1;w8(e[t],this.supportsBinary,s=>{try{this.ws.send(s)}catch{}r&&V8(()=>{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 i="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(i=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=O8()),this.supportsBinary||(e.b64=1);const r=N8(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(r.length?"?"+r:"")}check(){return!!jy}},polling:class vve extends I8{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const i="https:"===location.protocol;let r=location.port;r||(r=i?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==i}this.supportsBinary=_ve&&!(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 i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||t()})),this.writable||(i++,this.once("drain",function(){--i||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((n,e)=>{const t=n.split(E8),i=[];for(let r=0;r<t.length;r++){const s=C8(t[r],e);if(i.push(s),"error"===s.type)break}return i})(e,this.socket.binaryType).forEach(i=>{if("opening"===this.readyState&&"open"===i.type&&this.onOpen(),"close"===i.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)}),"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,i=new Array(t);let r=0;n.forEach((s,o)=>{w8(s,!1,a=>{i[o]=a,++r===t&&e(i.join(E8))})})})(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let i="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=O8()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(i=":"+this.opts.port);const r=N8(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(r.length?"?"+r:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new zy(this.uri(),e)}doWrite(e,t){const i=this.request({method:"POST",data:e});i.on("success",t),i.on("error",(r,s)=>{this.onError("xhr post error",r,s)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,i)=>{this.onError("xhr poll error",t,i)}),this.pollXhr=e}}},Cve=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Eve=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function VA(n){const e=n,t=n.indexOf("["),i=n.indexOf("]");-1!=t&&-1!=i&&(n=n.substring(0,t)+n.substring(t,i).replace(/:/g,";")+n.substring(i,n.length));let r=Cve.exec(n||""),s={},o=14;for(;o--;)s[Eve[o]]=r[o]||"";return-1!=t&&-1!=i&&(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 Tve(n,e){const i=e.replace(/\/{2,9}/g,"/").split("/");return("/"==e.slice(0,1)||0===e.length)&&i.splice(0,1),"/"==e.slice(-1)&&i.splice(i.length-1,1),i}(0,s.path),s.queryKey=function xve(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,r,s){r&&(t[r]=s)}),t}(0,s.query),s}let $8=(()=>{class n extends en{constructor(t,i={}){super(),t&&"object"==typeof t&&(i=t,t=null),t?(t=VA(t),i.hostname=t.host,i.secure="https"===t.protocol||"wss"===t.protocol,i.port=t.port,t.query&&(i.query=t.query)):i.host&&(i.hostname=VA(i.host).host),Hy(this,i),this.secure=null!=i.secure?i.secure:typeof location<"u"&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=i.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},i),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=function gve(n){let e={},t=n.split("&");for(let i=0,r=t.length;i<r;i++){let s=t[i].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 i=Object.assign({},this.opts.query);i.EIO=4,i.transport=t,this.id&&(i.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Sve[t](r)}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",i=>this.onClose("transport close",i))}probe(t){let i=this.createTransport(t),r=!1;n.priorWebsocketSuccess=!1;const s=()=>{r||(i.send([{type:"ping",data:"probe"}]),i.once("packet",h=>{if(!r)if("pong"===h.type&&"probe"===h.data){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;n.priorWebsocketSuccess="websocket"===i.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(d(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=i.name,this.emitReserved("upgradeError",f)}}))};function o(){r||(r=!0,d(),i.close(),i=null)}const a=h=>{const f=new Error("probe error: "+h);f.transport=i.name,o(),this.emitReserved("upgradeError",f)};function l(){a("transport closed")}function c(){a("socket closed")}function u(h){i&&h.name!==i.name&&o()}const d=()=>{i.removeListener("open",s),i.removeListener("error",a),i.removeListener("close",l),this.off("close",c),this.off("upgrading",u)};i.once("open",s),i.once("error",a),i.once("close",l),this.once("close",c),this.once("upgrading",u),i.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 i=this.upgrades.length;for(;t<i;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 i=new Error("server error");i.code=t.data,this.onError(i);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 i=1;for(let r=0;r<this.writeBuffer.length;r++){const s=this.writeBuffer[r].data;if(s&&(i+=hve(s)),r>0&&i>this.maxPayload)return this.writeBuffer.slice(0,r);i+=2}return this.writeBuffer}write(t,i,r){return this.sendPacket("message",t,i,r),this}send(t,i,r){return this.sendPacket("message",t,i,r),this}sendPacket(t,i,r,s){if("function"==typeof i&&(s=i,i=void 0),"function"==typeof r&&(s=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const o={type:t,data:i,options:r};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()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),t()},r=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){n.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,i){("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,i),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const i=[];let r=0;const s=t.length;for(;r<s;r++)~this.transports.indexOf(t[r])&&i.push(t[r]);return i}}return n.protocol=4,n})();const Ave="function"==typeof ArrayBuffer,H8=Object.prototype.toString,kve="function"==typeof Blob||typeof Blob<"u"&&"[object BlobConstructor]"===H8.call(Blob),Mve="function"==typeof File||typeof File<"u"&&"[object FileConstructor]"===H8.call(File);function BA(n){return Ave&&(n instanceof ArrayBuffer||(n=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer)(n))||kve&&n instanceof Blob||Mve&&n instanceof File}function Gy(n,e){if(!n||"object"!=typeof n)return!1;if(Array.isArray(n)){for(let t=0,i=n.length;t<i;t++)if(Gy(n[t]))return!0;return!1}if(BA(n))return!0;if(n.toJSON&&"function"==typeof n.toJSON&&1===arguments.length)return Gy(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&Gy(n[t]))return!0;return!1}function Pve(n){const e=[],i=n;return i.data=$A(n.data,e),i.attachments=e.length,{packet:i,buffers:e}}function $A(n,e){if(!n)return n;if(BA(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 i=0;i<n.length;i++)t[i]=$A(n[i],e);return t}if("object"==typeof n&&!(n instanceof Date)){const t={};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=$A(n[i],e));return t}return n}function Ove(n,e){return n.data=HA(n.data,e),n.attachments=void 0,n}function HA(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]=HA(n[t],e);else if("object"==typeof n)for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=HA(n[t],e));return n}const Nve=5;var Be=(()=>(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"}(Be||(Be={})),Be))();class Rve{constructor(e){this.replacer=e}encode(e){return e.type!==Be.EVENT&&e.type!==Be.ACK||!Gy(e)?[this.encodeAsString(e)]:(e.type=e.type===Be.EVENT?Be.BINARY_EVENT:Be.BINARY_ACK,this.encodeAsBinary(e))}encodeAsString(e){let t=""+e.type;return(e.type===Be.BINARY_EVENT||e.type===Be.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=Pve(e),i=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(i),r}}class UA extends en{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),t.type===Be.BINARY_EVENT||t.type===Be.BINARY_ACK?(this.reconstructor=new Lve(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!BA(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 i={type:Number(e.charAt(0))};if(void 0===Be[i.type])throw new Error("unknown packet type "+i.type);if(i.type===Be.BINARY_EVENT||i.type===Be.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");i.attachments=Number(o)}if("/"===e.charAt(t+1)){const s=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);i.nsp=e.substring(s,t)}else i.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const s=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}i.id=Number(e.substring(s,t+1))}if(e.charAt(++t)){const s=this.tryParse(e.substr(t));if(!UA.isPayloadValid(i.type,s))throw new Error("invalid payload");i.data=s}return i}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case Be.CONNECT:return"object"==typeof t;case Be.DISCONNECT:return void 0===t;case Be.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case Be.EVENT:case Be.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case Be.ACK:case Be.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class Lve{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=Ove(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Dr(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const Fve=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class U8 extends en{constructor(e,t,i){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,i&&i.auth&&(this.auth=i.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Dr(e,"open",this.onopen.bind(this)),Dr(e,"packet",this.onpacket.bind(this)),Dr(e,"error",this.onerror.bind(this)),Dr(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(Fve.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');t.unshift(e);const i={type:Be.EVENT,data:t,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const o=this.ids++,a=t.pop();this._registerAckCallback(o,a),i.id=o}return this.flags.volatile&&(!(this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable)||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){const i=this.flags.timeout;if(void 0===i)return void(this.acks[e]=t);const r=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"))},i);this.acks[e]=(...s)=>{this.io.clearTimeoutFn(r),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:Be.CONNECT,data:e})}):this.packet({type:Be.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 Be.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 Be.EVENT:case Be.BINARY_EVENT:this.onevent(e);break;case Be.ACK:case Be.BINARY_ACK:this.onack(e);break;case Be.DISCONNECT:this.ondisconnect();break;case Be.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i)}}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 i of t)i.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let i=!1;return function(...r){i||(i=!0,t.packet({type:Be.ACK,id:e,data:r}))}}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:Be.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 i=0;i<t.length;i++)if(e===t[i])return t.splice(i,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 i=0;i<t.length;i++)if(e===t[i])return t.splice(i,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 i of t)i.apply(this,e.data)}}}function Dc(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}Dc.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)},Dc.prototype.reset=function(){this.attempts=0},Dc.prototype.setMin=function(n){this.ms=n},Dc.prototype.setMax=function(n){this.max=n},Dc.prototype.setJitter=function(n){this.jitter=n};class zA extends en{constructor(e,t){var i;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,Hy(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!==(i=t.randomizationFactor)&&void 0!==i?i:.5),this.backoff=new Dc({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout??2e4),this._readyState="closed",this.uri=e;const r=t.parser||Rc;this.encoder=new r.Encoder,this.decoder=new r.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 $8(this.uri,this.opts);const t=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const r=Dr(t,"open",function(){i.onopen(),e&&e()}),s=Dr(t,"error",o=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",o),e?e(o):i.maybeReconnectOnOpen()});if(!1!==this._timeout){const o=this._timeout;0===o&&r();const a=this.setTimeoutFn(()=>{r(),t.close(),t.emit("error",new Error("timeout"))},o);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(r),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(Dr(e,"ping",this.onping.bind(this)),Dr(e,"data",this.ondata.bind(this)),Dr(e,"error",this.onerror.bind(this)),Dr(e,"close",this.onclose.bind(this)),Dr(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){V8(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let i=this.nsps[e];return i||(i=new U8(this,e,t),this.nsps[e]=i),i}_destroy(e){const t=Object.keys(this.nsps);for(const i of t)if(this.nsps[i].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let i=0;i<t.length;i++)this.engine.write(t[i],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 i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ch={};function Wy(n,e){"object"==typeof n&&(e=n,n=void 0);const t=function Ive(n,e="",t){let i=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),i=VA(n)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const s=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+s+":"+i.port+e,i.href=i.protocol+"://"+s+(t&&t.port===i.port?"":":"+i.port),i}(n,(e=e||{}).path||"/socket.io"),i=t.source,r=t.id;let l;return e.forceNew||e["force new connection"]||!1===e.multiplex||ch[r]&&t.path in ch[r].nsps?l=new zA(i,e):(ch[r]||(ch[r]=new zA(i,e)),l=ch[r]),t.query&&!e.query&&(e.query=t.queryKey),l.socket(t.path,e)}Object.assign(Wy,{Manager:zA,Socket:U8,io:Wy,connect:Wy});let Vve=(()=>{class n{constructor(t){this.debugService=t,this.socketReceived$=new vt(null),this.hasConnected=!1,this.wsServer="https://api.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=Wy(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)(ue(is))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bn=(()=>{class n{constructor(t,i,r,s){this.afs=t,this.http=i,this.debugService=r,this.wsService=s,this.allowBot$=new vt(!1),this.showButton$=new vt(!0),this.allowIceBreakers$=new vt(!1),this.hasOpened$=new vt(!1),this.hasGDRP$=new vt(!1),this.subProperties$=new vt([]),this.showEngagements=!1,this.botSettingsBS=new vt(null),this.engagements$=new vt([]),this.agentId=null,this.chatBS=new vt([]),this.userSend=new as,this.newMessagePath="https://api.guestchat.com/newQuestion",this.directPath="https://api.guestchat.com/newDirectIntent",this.contactMetaPath="https://us-central1-guestchat-live.cloudfunctions.net/saveContactMeta",this.liveChatRequestPath="https://api.guestchat.com/newWantLiveChat",this.ownBooknowClickedPath="https://api.guestchat.com/ownHostBooknowClicked",this.canPostReply$=new vt(!0),this.botIsTyping$=new vt(!1),this.agentIsTyping$=new vt(!1),this.postIsLoading$=new vt(!1),this.showStructuredInput$=new vt(null),this.timerObs=new rt,this.hasSentContactMeta=!1,this.userIsTypingLast=!1,this.liveChatOnlyMode=!1,this.liveChatSettings$=new vt(null),this.botImage$=new vt(null),this.defaultLanguage="en",this.activeLanguage$=new vt("en"),this.otherLanguages$=new vt([]),this.translationsActive=!1,this.allowChildren$=new vt(!0),this.useAdvancedAi=!1;const o=window.sessionStorage.getItem("opened");null!=o&&this.hasOpened$.next("true"===o),this.headers=(new Tr).set("content-type","application/json").set("authorization","Bearer cvisdj dsiofhosf340sdfm;234m;mcsdsgsgse"),this.timerObs=function pfe(n=0,e,t){let i=-1;return eS(e)?i=Number(e)<1?1:Number(e):Vc(e)&&(t=e),Vc(t)||(t=are),new rt(r=>{const s=eS(n)?n:+n-t.now();return t.schedule(gfe,s,{index:0,period:i,subscriber:r})})}(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(a=>{a&&null!==a.agentTyping&&this.agentIsTyping$.getValue()!==a.agentTyping&&this.agentIsTyping$.next(a.agentTyping)})}generateNewChatId(t){const i=or(ym(this.afs,`Clients/${t}/Chats/`)).id;return window.localStorage.setItem("chatId",i),window.localStorage.setItem("clientId",t),window.localStorage.setItem("chatTime",(new Date).toISOString()),this.hasSentContactMeta=!1,i}initServer(t,i,r=!1){var s=this;return k(function*(){if(r){const a={lastPing:vm(),paths:H$(location.href),isActive:!0};ah(or(s.afs,`Clients/${s.clientId}/Chats/${s.sessionId}`),a,{merge:!0})}s.botIsTyping$.next(!1),s.clientId=t,s.sessionId=i,s.debugService.logMode&&console.log(t,i);const o=yield _m(or(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.agentId=a.dfProjectId,s.liveChatOnlyMode=a.liveChatOnly,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,i,s.agentId),s.getLiveChatSettings(),s.subscribeToTimer()),null!==a.debugMode&&s.debugService.setDebugMode(a.debugMode),null!=a.useAdvancedAi&&(s.useAdvancedAi=a.useAdvancedAi),s.hasGDRP$.next(!!a.gdrpShow),a.bookNowButton&&a.bookNowButton.type&&(s.bookNowButtonSettings=a.bookNowButton),r||(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");s.activeLanguage$.next(l&&""!==l?l:a.defaultLanguage)}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)}})()}getClientAndSession(){return{clientId:this.clientId,sessionId:this.sessionId,agentId:this.agentId,interface:"widget",languageCode:this.activeLanguage$.getValue(),useAdvancedAi:this.useAdvancedAi}}subscribeToTimer(){this.timerSub&&this.timerSub.unsubscribe(),this.timerSub=this.timerObs.subscribe(()=>{const t={lastPing:vm(),paths:H$(location.href),isActive:!0};ah(or(this.afs,`Clients/${this.clientId}/Chats/${this.sessionId}`),t,{merge:!0})})}subscribeToChat(t,i,r){this.messagesSub&&(this.messagesSub.unsubscribe(),this.chatBS.next([]));const s={isActive:!0,date:vm()};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={clientId:t,agentId:r,date:vm(),botAnswer:!0,isActive:!0,hasMessages:!1,allowedBotFailures:l.allowedBotFailures,currentBotFailures:0,intents:[],interface:"widget",timezone:o,liveChatRequested:void 0!==this.liveChatOnlyMode&&this.liveChatOnlyMode,liveChatRequestAccepted:!this.liveChatOnlyMode,isMobile:a,requestsProcessed:0,ownBookNowClicked:!1};_m(or(this.afs,`Clients/${t}/Chats/${i}`)).then(u=>{u.exists()&&u.data().clientId?ah(or(this.afs,`Clients/${t}/Chats/${i}`),s,{merge:!0}).catch(h=>console.log(h)):ah(or(this.afs,`Clients/${t}/Chats/${i}`),c,{merge:!0})}),this.messagesSub=Whe(Khe(ym(this.afs,`Clients/${t}/Chats/${i}/Messages`),Yhe("date","asc")),{idField:"id"}).pipe($F(u=>{const h=u[u.length-1];if(h&&"User"!==h.sender)if("Bot"===h.sender){const f=this.botSettingsBS.getValue();this.botImage$.next({img:f.botImgUrl,title:f.title})}else h.senderImage?this.botImage$.getValue().img!==h.senderImage&&this.botImage$.next({img:h.senderImage,title:h.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:h.sender})})).subscribe(u=>{this.chatBS.next(u),u.length>0&&(this.wsService.connect(),this.wsService.joinRoom(i))})}checkDay(t,i){const r=t.split(",").map(c=>c.trim());let s=r[1].split("-").map(c=>c.trim());"open 24 hours"===s[0]&&(s[0]="08:00 AM");const o=LA(_o(new Date,"dd MMM yyyy")+" "+s[0]+" "+i,"dd MMM yyyy h:mm aa X",new Date),a=_o(o,"EEEE"),l=r[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,i){const s=t.split(",").map(l=>l.trim())[1].split("-").map(l=>l.trim());if("open 24 hours"===s[0])return!0;const o=LA(_o(new Date,"dd MMM yyyy")+" "+s[0]+" "+i,"dd MMM yyyy h:mm aa X",new Date),a=LA(_o(new Date,"dd MMM yyyy")+" "+s[1]+" "+i,"dd MMM yyyy h:mm aa X",new Date);return By(new Date,a)&&v8(new Date,o)}getLiveChatSettings(){var t=this;return k(function*(){const i=yield _m(or(t.afs,`LiveChat/${t.clientId}`));if(i.exists()){const r=i.data();let s=r.liveChatAvailable;const o=null!=r.hasCallAgent&&null!=r.hasCallAgent&&r.hasCallAgent;if("Based on business hours"===r.basedOn){const a=r.timezone?r.timezone.timeValue.replace(/:/g,""):"-0400",l=r.businessHours;s=!1,r.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(),i={id:"error"+100*Math.random(),date:null,reply:!0,textResponse:"We seem to be having some technical difficulties on our end. Please leave a message below, and I will pass it on to our reception desk",mediaResponse:[],urlsResponse:[],showStructuredInput:!1,relatedIntents:[],roomsResponse:[],askForCallMeBack:!0};t.push(i),this.chatBS.next(t)}addMessage(t,i=!0){return new Promise(r=>{const s=this.getClientAndSession(),o=or(ym(this.afs,`Clients/${this.clientId}/Chats/${this.sessionId}/Messages`)).id;this.wsService.addMessage(t);const l={...s,message:t,mustRespond:i&&!this.liveChatOnlyMode,preId:o};this.userSend.next({id:o,reply:!1,question:t}),this.liveChatOnlyMode||this.botIsTyping$.next(!0),this.userIsTyping(!1),this.http.post(this.newMessagePath,l,{headers:this.headers}).subscribe(u=>{r("success")},u=>{console.log(u),this.botIsTyping$.next(!1),this.postIsLoading$.next(!1),this.showErrorMessage()}),this.saveContactMeta()})}addDirectIntentQuestion(t,i){return new Promise(r=>{const s=this.getClientAndSession(),o=or(ym(this.afs,`Clients/${this.clientId}/Chats/${this.sessionId}/Messages`)).id,a={...s,intentId:t,preId:o,message:i};this.userSend.next({id:o,reply:!1,question:i}),this.botIsTyping$.next(!0),this.http.post(this.directPath,a,{headers:this.headers}).subscribe(()=>{r("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 i=this.getClientAndSession();this.userIsTyping(!1),this.botIsTyping$.next(!0),this.http.post(this.liveChatRequestPath,i,{headers:this.headers}).subscribe(r=>{t("success")},r=>{this.botIsTyping$.next(!1),this.postIsLoading$.next(!1),this.showErrorMessage()})})}ownBooknowClicked(){return new Promise(t=>{const i=this.getClientAndSession();this.http.post(this.ownBooknowClickedPath,{clientId:i.clientId,sessionId:i.sessionId,agentId:i.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 i=this;return k(function*(){const r=yield _m(or(i.afs,`Clients/${t}`));if(r.exists()){const s=r.data();"multi-property-sojj"===s.dfProjectId&&s.subProperties&&s.subProperties.length>0&&i.subProperties$.next(s.subProperties)}})()}get getClientId(){return this.clientId}ngOnDestroy(){var t=this;return k(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)(ue(mm),ue(T0),ue(is),ue(Vve))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Bve extends dn{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class $ve extends dn{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,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 Hve(n,e,t,i,r=new $ve(n,t,i)){if(!r.closed)return e instanceof rt?e.subscribe(r):v_(e)(r)}const z8={};function wo(...n){let e,t;return Vc(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Lc(n[0])&&(n=n[0]),S_(n,t).lift(new Uve(e))}class Uve{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new zve(e,this.resultSelector))}}class zve extends Bve{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(z8),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 i=0;i<t;i++)this.add(Hve(this,e[i],void 0,i))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,i){const r=this.values,o=this.toRespond?r[i]===z8?--this.toRespond:this.toRespond:0;r[i]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}let ss=(()=>{class n{constructor(t){this.chatService=t,this.flags={en:"https://assets-guestchat.web.app/usa.svg",af:"https://assets-guestchat.web.app/zaf.svg",nl:"https://assets-guestchat.web.app/nld.svg",fr:"https://assets-guestchat.web.app/fra.svg",de:"https://assets-guestchat.web.app/deu.svg",es:"https://assets-guestchat.web.app/esp.svg"},this.translations={en:{chatNow:"Chat now",restart:"Restart Conversation",considerShortening:"Please consider shortening your question.",bookingOptions:"Booking Options",otherQuestions:"Other Questions",liveAgent:"Live Agent",more:"more",less:"less",typeMessage:"Type a message...",maxGuests:"Max Guests",flatScreenTV:"Flat-screen TV",freeWifi:"Free Wifi",airconditioning:"Air Conditioning",secretRatesAvail:"Secret Rates Available",perNight:"per night",bookNow:"BOOK NOW",justNow:"Just Now",restartConversation:"Restart Conversation",back:"Back",submit:"Submit",interventionBookingOptions:"Booking Options",interventionAnotherQuestion:"I have another question",interventionLiveAgent:"Live Agent",requestLiveAgent:"Request a Live Agent",callUs:"Call Us",sendUsAMessage:"Send us a Message",receiveCallBack:"Receive Call Back",gdrpAgreeing:"By starting a converstation, you are agreeing to our",gdrpDataProcessing:"Data Processing Terms"},af:{chatNow:"Gesels nou",restart:"Begin van voor af",considerShortening:"Verkort asb. jou vraag",bookingOptions:"Bespreking opsies",otherQuestions:"Ander vrae",liveAgent:"Regte persoon",more:"meer",less:"minder",typeMessage:"Tik jou boodskap...",maxGuests:"Maks persone",flatScreenTV:"Plat-skerm TV",freeWifi:"Gratis Wifi",airconditioning:"Lugversorging",secretRatesAvail:"Spesiale prys beskikbaar",perNight:"per nag",bookNow:"BESPREEK NOU",justNow:"Nou net",restartConversation:"Begin oor",back:"Terug",submit:"Gaan voort",interventionBookingOptions:"Bespreking opsies",interventionAnotherQuestion:"Ek het nog vrae",interventionLiveAgent:"Regte persoon",requestLiveAgent:"Versoek 'n regte persoon",callUs:"Skakel ons",sendUsAMessage:"Stuur 'n boodskap",receiveCallBack:"Ons bel jou terug",gdrpAgreeing:"Deur 'n gesprek te begin, stem jy in tot ons",gdrpDataProcessing:"Bepalings vir dataverwerking"},nl:{chatNow:"Chat nu",restart:"Gesprek opnieuw starten",considerShortening:"Overweeg om uw vraag in te korten.",bookingOptions:"Boekingsopties",otherQuestions:"Overige vragen",liveAgent:"Live-agent",more:"meer",less:"minder",typeMessage:"Type een bericht...",maxGuests:"Max. gasten",flatScreenTV:"Flatscreen tv",freeWifi:"Gratis wifi",airconditioning:"Airconditioning",secretRatesAvail:"Geheime tarieven beschikbaar",perNight:"per nacht",bookNow:"BOEK NU",justNow:"Net nu",restartConversation:"Gesprek opnieuw starten",back:"Rug",submit:"Indienen",interventionBookingOptions:"Boekingsopties",interventionAnotherQuestion:"Ik heb nog een vraag",interventionLiveAgent:"Live-agent",requestLiveAgent:"Vraag een Live Agent aan",callUs:"Bel ons",sendUsAMessage:"Zend ons een bericht",receiveCallBack:"Terugbellen ontvangen",gdrpAgreeing:"Door een gesprek te starten, gaat u akkoord met onze",gdrpDataProcessing:"Voorwaarden voor gegevensverwerking"},fr:{chatNow:"Discuter maintenant",restart:"Red\xe9marrer la conversation",considerShortening:"Veuillez envisager de raccourcir votre question.",bookingOptions:"Options de r\xe9servation",otherQuestions:"D'autres questions",liveAgent:"Agent en direct",more:"plus",less:"moins",typeMessage:"Tapez un message...",maxGuests:"Invit\xe9s maximum",flatScreenTV:"TV \xe0 \xe9cran plat",freeWifi:"Wifi gratuit",airconditioning:"Climatisation",secretRatesAvail:"Tarifs secrets disponibles",perNight:"par nuit",bookNow:"RESERVE MAINTENANT",justNow:"Juste maintenant",restartConversation:"Red\xe9marrer la conversation",back:"Retour",submit:"Soumettre",interventionBookingOptions:"Options de r\xe9servation",interventionAnotherQuestion:"j'ai encore une question",interventionLiveAgent:"Agent en direct",requestLiveAgent:"Demander un agent en direct",callUs:"Appelez-nous",sendUsAMessage:"Envoie-nous un message",receiveCallBack:"Recevoir un rappel",gdrpAgreeing:"En d\xe9marrant une conversation, vous acceptez notre",gdrpDataProcessing:"Conditions de traitement des donn\xe9es"},de:{chatNow:"Jetzt chatten",restart:"Gespr\xe4ch neu starten",considerShortening:"Bitte denken Sie daran, Ihre Frage zu kC<rzen.",bookingOptions:"Buchungsoptionen",otherQuestions:"Andere Fragen",liveAgent:"Live-Agent",more:"mehr",less:"weniger",typeMessage:"Geben Sie eine Nachricht ein...",maxGuests:"Maximale G\xe4ste",flatScreenTV:"Flachbildfernseher",freeWifi:"Gratis Wifi",airconditioning:"Klimaanlage",secretRatesAvail:"Geheime Preise verf\xfcgbar",perNight:"pro Nacht",bookNow:"BUCHEN SIE JETZT",justNow:"Gerade jetzt",restartConversation:"Gespr\xe4ch neu starten",back:"Geh zur\xfcck",submit:"Einreichen",interventionBookingOptions:"Buchungsoptionen",interventionAnotherQuestion:"Ich habe eine andere Frage",interventionLiveAgent:"Live-Agent",requestLiveAgent:"Fordern Sie einen Live-Agenten an",callUs:"Rufen Sie uns an",sendUsAMessage:"Schick uns eine Nachricht",receiveCallBack:"R\xfcckruf erhalten",gdrpAgreeing:"Indem Sie eine Konversation starten, stimmen Sie unseren zu",gdrpDataProcessing:"Datenverarbeitungsbedingungen"},es:{chatNow:"Chatea ahora",restart:"Reiniciar conversaciC3n",considerShortening:"Considere acortar su pregunta.",bookingOptions:"Opciones de reserva",otherQuestions:"Otras preguntas",liveAgent:"Agente viva",more:"m\xe1s",less:"menos",typeMessage:"Escribe un mensaje...",maxGuests:"Max invitadas",flatScreenTV:"TelevisiC3n de pantalla plana",freeWifi:"Wi-Fi gratis",airconditioning:"Aire acondicionado",secretRatesAvail:"Tarifas secretas disponibles",perNight:"por noche",bookNow:"RESERVAR AHORA",justNow:"En este momento",restartConversation:"Reiniciar conversaciC3n",back:"atrC!s",submit:"Enviar",interventionBookingOptions:"Opciones de reserva",interventionAnotherQuestion:"Tengo otra pregunta",interventionLiveAgent:"Agente viva",requestLiveAgent:"Solicitar una agente en vivo",callUs:"LlC!menos",sendUsAMessage:"Mandanos un mensaje",receiveCallBack:"Recibir devoluciC3n de llamada",gdrpAgreeing:"Al iniciar una conversaci\xf3n, usted acepta nuestro",gdrpDataProcessing:"T\xe9rminos de procesamiento de datos"}},this.iceBreakerMasterData=[{id:"1",items:[{text:"Have you ",textTranslations:{af:"Het jy al",nl:"Ben je",fr:"Avez-vous",de:"Waren Sie",es:"\xbfTe has"},type:"textOnly"},{text:"stayed with us before",textTranslations:{af:"voorheen by ons gebly",nl:"eerder bij ons geweest",fr:"d\xe9j\xe0 s\xe9journ\xe9 avec nous",de:"schon einmal bei uns",es:"quedado con nosotros antes"},type:"directIntent",action:"guest_is_repeater",placeText:"I've stayed here before",placeTextTranslations:{af:"Ek was al voorheen 'n gas",nl:"Ik ben al eens te gast geweest",fr:"J'ai d\xe9j\xe0 \xe9t\xe9 invit\xe9",de:"Ich war schon einmal Gast",es:"He sido un invitado antes"}},{text:"?",type:"textOnly",textTranslations:{af:"?",nl:"?",fr:"?",de:"?",es:"?"}}]},{id:"2",items:[{text:"Would you like to see our ",textTranslations:{af:"Wil jy meer weet oor ",nl:"Wil je onze",fr:"Vous souhaitez voir nos",de:"M\xf6chten Sie unsere",es:"\xbfQuieres ver nuestros"},type:"textOnly"},{text:"Rates ",type:"quickActionButtons",textTranslations:{af:"prysse",nl:"tarieven zien",fr:"tarifs",de:"Preise sehen",es:"tarifas"},action:"rates",placeText:"Rates",placeTextTranslations:{af:"Prys",nl:"Tarieven",fr:"Tarifs",de:"Preise",es:"Tarifas"}},{text:"?",textTranslations:{af:"?",nl:"?",fr:"?",de:"?",es:"?"},type:"textOnly"}]},{id:"3",items:[{text:"Travelling for ",type:"textOnly",textTranslations:{af:"Verblyf vir ",nl:"Reizen voor",fr:"Vous voyagez pour",de:"Reisen Sie",es:"\xbfViaja por"}},{text:"Business ",textTranslations:{af:"besigheid ",nl:"zaken",fr:"affaires",de:"gesch\xe4ftlich",es:"negocios"},type:"directIntent",action:"business_center",placeText:"Travelling for Business",placeTextTranslations:{af:"Verblyf vir besigheid",nl:"Op zakenreis",fr:"Voyager pour affaires",de:"Gesch\xe4ftlich unterwegs",es:"Viajar por negocios"}},{text:"or ",textTranslations:{af:"of ",nl:"of",fr:"ou",de:"oder",es:"o"},type:"textOnly"},{text:"Pleasure",type:"directIntent",action:"activities",placeText:"Travelling for Pleasure",placeTextTranslations:{af:"Verblyf vir plesier",nl:"plezier",fr:"pour le plaisir",de:"privat",es:"por placer"}},{text:"?",textTranslations:{af:"?",nl:"?",fr:"?",de:"?",es:"?"},type:"textOnly"}]},{id:"4",items:[{text:"Are you interested in ",textTranslations:{af:"Soek jy ",nl:"Heb je interesse in",fr:"\xcates-vous int\xe9ress\xe9 par",de:"Interessieren Sie sich f\xfcr",es:"\xbfEst\xe1 interesada en el"},type:"textOnly"},{text:"Breakfast",textTranslations:{af:"Ontbyt",nl:"Ontbijt",fr:"Le petit d\xe9jeuner",de:"Fr\xfchst\xfcck",es:"Desayuno"},type:"directIntent",action:"breakfast",placeText:"I'm interested in breakfast'",placeTextTranslations:{af:"Ek stel belang in ontbyt",nl:"Je suis int\xe9ress\xe9 par le petit-d\xe9jeuner",fr:"Je suis int\xe9ress\xe9 par le petit-d\xe9jeuner",de:"Ich interessiere mich f\xfcr Fr\xfchst\xfcck",es:"Estoy interesada en el desayuno"}},{text:"?",textTranslations:{af:"?",nl:"?",fr:"?",de:"?",es:"?"},type:"textOnly"}]},{id:"5",items:[{text:"Are you interested in ",textTranslations:{af:"Stel jy belang in",nl:"Heb je interesse in",fr:"\xcates-vous int\xe9ress\xe9 par",de:"Interessieren Sie sich f\xfcr",es:"\xbfEst\xe1 interesada en el"},type:"textOnly"},{text:"Adventure ",textTranslations:{af:"Avontuur",nl:"Avontuur",fr:"Aventure",de:"Abenteuer",es:"Aventura"},type:"directIntent",action:"activities",placeText:"I'm interested in adventure'",placeTextTranslations:{af:"Ek soek avontuur",nl:"Ik ben ge\xefnteresseerd in avontuur",fr:"Je suis int\xe9ress\xe9 par l'aventure",de:"Ich interessiere mich f\xfcr Abenteuer",es:"Estoy interesada en la aventura"}},{text:"or ",textTranslations:{af:"of ",nl:"of",fr:"ou",de:"oder",es:"o"},type:"textOnly"},{text:"Relaxation",textTranslations:{af:"Ontspanning",nl:"Ontspanning",fr:"Relaxation",de:"Entspannung",es:"Relajaci\xf3n"},type:"directIntent",action:"spa",placeText:"I'm interested in relaxation",placeTextTranslations:{af:"Ek wil ontspan",nl:"Ik ben ge\xefnteresseerd in ontspanning",fr:"Je suis int\xe9ress\xe9 par la d\xe9tente",de:"Ich interessiere mich f\xfcr Entspannung",es:"Estoy interesada en la relajaci\xf3n"}},{text:"?",textTranslations:{af:"?",nl:"?",fr:"?",de:"?",es:"?"},type:"textOnly"}]},{id:"6",items:[{text:"Have you seen our ",textTranslations:{af:"Kyk gerus ons",nl:"Heb je onze gezien",fr:"Avez-vous vu nos",de:"Haben Sie unsere gesehen",es:"\xbfHas visto nuestras"},type:"textOnly"},{text:"Specials",textTranslations:{af:"Spesiale aanbiedinge",nl:"Specials",fr:"Sp\xe9ciaux",de:"Sonderangebote",es:"Ofertas especiales"},type:"directIntent",action:"specials_packages",placeText:"What specials do you have?",placeTextTranslations:{af:"Wat is jul spesiale aanbiedinge?",nl:"Welke specials heb je?",fr:"Quels sp\xe9ciaux avez-vous?",de:"Welche Besonderheiten haben Sie?",es:"\xbfQu\xe9 especiales tienes?"}},{text:"?",textTranslations:{af:"?",nl:"?",fr:"?",de:"?",es:"?"},type:"textOnly"}]},{id:"7",items:[{text:"Have you seen the ",textTranslations:{af:"Wat is die voordeel om",nl:"Heeft u de gezien",fr:"Avez-vous vu la",de:"Haben Sie die gesehen",es:"\xbfHas visto los"},type:"textOnly"},{text:"Benefits of Booking Direct",textTranslations:{af:"direk te bespreek",nl:"voordelen van direct boeken",fr:"avantages de la r\xe9servation directe",de:"Vorteile einer Direktbuchung",es:"beneficios de reservar directamente?"},type:"directIntent",action:"book_direct",placeText:"Benefits of booking direct",placeTextTranslations:{af:"Voordele van direkte bespreking",nl:"Voordelen van direct boeken",fr:"Avantages de la r\xe9servation directe",de:"Vorteile der Direktbuchung",es:"Beneficios de reservar directamente"}},{text:"?",textTranslations:{af:"?",nl:"?",fr:"?",de:"?",es:"?"},type:"textOnly"}]},{id:"8",items:[{text:"More interested in ",textTranslations:{af:"Wat is vir jou belangriker ",nl:"Ben je meer ge\xefnteresseerd in",fr:"\xcates-vous plus int\xe9ress\xe9 par",de:"Interessieren Sie sich mehr f\xfcr",es:"\xbfM\xe1s interesado en"},type:"textOnly"},{text:"Price ",textTranslations:{af:"Prys",nl:"prijs",fr:"le prix",de:"den Preis",es:"el precio"},type:"quickActionButtons",action:"rates",placeText:"What's your rates?",placeTextTranslations:{af:"Wat is jul prysse?",nl:"",fr:"",de:"",es:""}},{text:"or ",textTranslations:{af:"of ",nl:"of",fr:"ou",de:"oder",es:"o"},type:"textOnly"},{text:"Location",textTranslations:{af:"Ligging",nl:"locatie",fr:"l'emplacement",de:"die Lage",es:"la ubicaci\xf3n"},type:"quickActionButtons",action:"location_&_directions",placeText:"What's your location?",placeTextTranslations:{af:"Waar is julle gele\xeb?",nl:"Wat is uw locatie?",fr:"Quelle est votre position ?",de:"Was ist Ihr Standort?",es:"\xbfCu\xe1l es tu ubicaci\xf3n?"}},{text:"?",textTranslations:{af:"?",nl:"?",fr:"?",de:"?",es:"?"},type:"textOnly"}]}],this.roomViews=[{value:"Atrium View",label:"Atrium View",translations:{af:"Atrium uitsig",nl:"Atriumzicht",fr:"Vue de l'atrium",de:"Atrium-Ansicht",es:"Vista del atrio"}},{value:"Bay view",label:"Bay view",translations:{af:"Baai uitsig",nl:"Baai uitzicht",fr:"Vue sur la baie",de:"Sicht auf die Bucht",es:"Vista a la bahia"}},{value:"Beach View",label:"Beach View",translations:{af:"Strand uitsig",nl:"Uitzicht op het strand",fr:"Vue sur la plage",de:"Blick auf den Strand",es:"Vista a la playa"}},{value:"No Special Views",label:"No Special Views",translations:{af:"Geen spesiale uitsig",nl:"Geen speciale uitzichten",fr:"Pas de vues sp\xe9ciales",de:"Keine besonderen Ansichten",es:"Sin vistas especiales"}},{value:"Canal View",label:"Canal View",translations:{af:"Kanaal uitsig",nl:"Uitzicht op de gracht",fr:"Vue sur le canal",de:"Blick auf den Kanal",es:"Vista al Canal"}},{value:"City View",label:"City View",translations:{af:"Stad uitsig",nl:"Uitzicht op de stad",fr:"Vue de la ville",de:"Stadtblick",es:"Vista de la ciudad"}},{value:"Courtyard View",label:"Courtyard View",translations:{af:"Binnehof uitsig",nl:"Uitzicht op binnenplaats",fr:"Vue sur la cour",de:"Blick auf den Innenhof",es:"Vista al patio"}},{value:"Desert View",label:"Desert View",translations:{af:"Woestyn uitsig",nl:"Uitzicht op de woestijn",fr:"Vue sur le d\xe9sert",de:"Blick auf die W\xfcste",es:"Vista del desierto"}},{value:"Garden View",label:"Garden View",translations:{af:"Tuin uitsig",nl:"Uitzicht op de tuin",fr:"Vue du jardin",de:"Gartenaussicht",es:"Vista al jard\xedn"}},{value:"Island View",label:"Island View",translations:{af:"Eiland uitsig",nl:"Uitzicht op het eiland",fr:"Vue sur l'\xeele",de:"Blick auf die Insel",es:"Vista de la isla"}},{value:"Golf View",label:"Golf View",translations:{af:"Golf uitsig",nl:"Golfweergave",fr:"Vue sur le golf",de:"Golf-Ansicht",es:"Vista al golf"}},{value:"Harbor View",label:"Harbor View",translations:{af:"Hawe uitsig",nl:"Uitzicht op de haven",fr:"Vue sur le port",de:"Blick auf den Hafen",es:"Vista del puerto"}},{value:"Hill View",label:"Hill View",translations:{af:"Berg uitsig",nl:"Uitzicht op de heuvels",fr:"Vue sur la colline",de:"Aussicht vom H\xfcgel",es:"Vista de la colina"}},{value:"Hotel view",label:"Hotel view",translations:{af:"Hotel uitsig",nl:"Uitzicht op hotel",fr:"Vue de l'h\xf4tel",de:"Hotelansicht",es:"Vista del Hotel"}},{value:"Lagoon View",label:"Lagoon View",translations:{af:"Strandmeer uitsig",nl:"Uitzicht op de lagune",fr:"Vue sur le lagon",de:"Blick auf die Lagune",es:"Vista a la laguna"}},{value:"Lake View",label:"Lake View",translations:{af:"Meer uitsig",nl:"Zicht op het meer",fr:"Vue sur le lac",de:"Seeblick",es:"Vista al lago"}},{value:"Partial Lake View",label:"Partial Lake View",translations:{af:"Gedeeltelike meer  uitsig",nl:"Gedeeltelijk uitzicht op het meer",fr:"Vue partielle sur le lac",de:"Teilweise Seeblick",es:"Vista parcial al lago"}},{value:"Marina View",label:"Marina View",translations:{af:"Hawe uitsig",nl:"Uitzicht op de jachthaven",fr:"Vue sur le port de plaisance",de:"Blick auf den Jachthafen",es:"Vista al puerto deportivo"}},{value:"Mountain View",label:"Mountain View",translations:{af:"Berg uitsig",nl:"Berg uitzicht",fr:"Vue sur la montagne",de:"Blick auf die Berge",es:"Vista desde la monta\xf1a"}},{value:"Ocean View",label:"Ocean View",translations:{af:"Oseaan uitsig",nl:"Uitzicht over de oceaan",fr:"Vue sur l'oc\xe9an",de:"Meerblick",es:"Vista al oc\xe9ano"}},{value:"Ocean Front",label:"Ocean Front",translations:{af:"Seefront uitsig",nl:"Uitzicht op de oceaan",fr:"Vue face \xe0 l'oc\xe9an",de:"Meerblick",es:"Meerblick"}},{value:"Partial Ocean View",label:"Partial Ocean View",translations:{af:"Gedeeltelike see uitsig",nl:"Gedeeltelijk uitzicht op de oceaan",fr:"Vue partielle sur l'oc\xe9an",de:"Teilweise Meerblick",es:"Vista parcial al mar"}},{value:"Sea View",label:"Sea View",translations:{af:"See uitsig",nl:"Zeezicht",fr:"Vue sur la mer",de:"Seeblick",es:"Vista mar\xedtima"}},{value:"Panoramic View",label:"Panoramic View",translations:{af:"Panoramiese uitsig",nl:"Panoramisch zicht",fr:"Vue panoramique",de:"Panoramablick",es:"Vista panor\xe1mica"}},{value:"Partial Sea View",label:"Partial Sea View",translations:{af:"Gedeeltelike see uitsig",nl:"Gedeeltelijk uitzicht op zee",fr:"Vue partielle sur la mer",de:"Teilweise Meerblick",es:"Vista parcial al mar"}},{value:"Parking Lot View",label:"Parking Lot View",translations:{af:"Parkeerterrein uitsig",nl:"Uitzicht op parkeerplaats",fr:"Vue sur le parking",de:"Blick auf den Parkplatz",es:"Vista del estacionamiento"}},{value:"Pool View",label:"Pool View",translations:{af:"Swembad uitsig",nl:"Zwembad uitzicht",fr:"Vue de la piscine",de:"Blick auf den Pool",es:"Vista a la piscina"}},{value:"Resort View",label:"Resort View",translations:{af:"Oord uitsig",nl:"Uitzicht op het resort",fr:"Vue sur le complexe",de:"Blick auf das Resort",es:"Vista del complejo"}},{value:"River View",label:"River View",translations:{af:"Rivier uitsig",nl:"rivier zicht",fr:"Vue de la rivi\xe8re",de:"Flussblick",es:"Vista del rio"}},{value:"Valley View",label:"Valley View",translations:{af:"Vallei uitsig",nl:"Uitzicht op de vallei",fr:"Vue sur la vall\xe9e",de:"Talblick",es:"Vista del valle"}},{value:"Vineyard View",label:"Vineyard View",translations:{af:"Wingerd uitsig",nl:"Uitzicht op de wijngaard",fr:"Vue sur le vignoble",de:"Blick auf den Weinberg",es:"Vista al vi\xf1edo"}},{value:"Water View",label:"Water view",translations:{af:"Water uitsig",nl:"Uitzicht op het water",fr:"Vue sur l'eau",de:"Wasserblick",es:"Vista al agua"}}]}getIceBreakerById(t){const i=this.iceBreakerMasterData.find(s=>s.id===t),r=this.chatService.activeLanguage$.getValue();if("en"===r)return i;{const s=i.items.map(o=>({...o,text:o.textTranslations[r]||o.text,placeText:o.placeTextTranslations?o.placeTextTranslations[r]:null}));return{...i,items:s}}}getSecretRate(t){const i=this.chatService.activeLanguage$.getValue();if("en"===i)return t;let r={};switch(t){case"Best Available Rate":return r={af:"Beste beskikbare tarief",nl:"Best beschikbare tarief",fr:"Meilleur tarif disponible",de:"G\xfcnstigster preis",es:"La mejor tarifa disponible"},r[i];case"Secret Rates Available":return r={af:"Geheime tariewe beskikbaar",nl:"Geheime tarieven beschikbaar",fr:"Tarifs secrets disponibles",de:"Geheime Preise verf\xfcgbar",es:"Tarifas secretas disponibles"},r[i];case"Promotional Rate":return r={af:"Promosietarief",nl:"Promotie tarief",fr:"Tarif promotionnel",de:"Aktionspreis",es:"Tarifa Promocional"},r[i];case"Lowest Rate Online":return r={af:"Laagste koers aanlyn",nl:"Laagste tarief online",fr:"Tarif le plus bas en ligne",de:"Niedrigster Preis online",es:"Tarifa m\xe1s baja en l\xednea"},r[i];case"Early Bird Rate":return r={af:"Early Bird Tarief",nl:"Early Bird-tarief",fr:"Tarif l\xe8ve-t\xf4t",de:"Fr\xfchbucherpreis",es:"Tasa de reserva anticipada"},r[i];case"Special Rate":return r={af:"Spesiale tarief",nl:"Speciaal tarief",fr:"Tarif sp\xe9cial",de:"Sonderpreis",es:"Tarifa especial"},r[i];case"Exclusive Rate":r={af:"Eksklusiewe tarief",nl:"Exclusief tarief",fr:"Tarif exclusif",de:"Exklusiver Tarif",es:"Tarifa Exclusiva"};case"Starting At":return r={af:"Vanaf",nl:"Vanaf",fr:"\xc0 partir de",de:"Beginnt um",es:"A partir de"},r[i];default:return"Secret Rates available"}}}return n.\u0275fac=function(t){return new(t||n)(ue(bn))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function jve(n,e){if(1&n){const t=fe();C(0,"div",1),K("click",function(){return V(t),B(S().onCloseGreeting())}),C(1,"div",2),K("click",function(r){return V(t),B(S().onStopBubble(r))}),C(2,"div",3)(3,"div",4)(4,"div",5),J(5),E(),C(6,"div",6),J(7),E(),C(8,"div",7)(9,"div",8),K("click",function(){V(t);const r=S();return B(r.onHandleIntent(r.hitch.popup.openIntentId,r.hitch.popup.openIntentName))}),J(10),E()()(),Y(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),He(" ",t.hitch.popup.text," "),v(1),w("ngStyle",t.getSubTextStyle),v(1),He(" ",t.hitch.popup.textSub," "),v(2),w("ngStyle",t.getButtonStyle),v(1),He(" ",t.hitch.popup.buttonLabel," "),v(1),w("ngStyle",t.getPrettyStyle)}}let Gve=(()=>{class n{constructor(t,i){this.chatService=t,this.popupService=i,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)]),console.log(t);const i=this.hexToRgb(this.hitch.popup.primaryColor);this.smartBackground=i&&t.path?"above"===this.hitch.popup.template?`linear-gradient(0deg, rgba(${i.r}, ${i.g}, ${i.b}, 0.6), rgba(${i.r}, ${i.g}, ${i.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,i){this.chatService.addDirectIntentQuestion(t,i),this.chatService.hasOpened$.next(!0),this.onToggleVisible(!0)}onStopBubble(t){t.stopPropagation()}onToggleVisible(t=null){let i=this.popupService.showChatBox.getValue();null!==t&&(i=!t),this.popupService.showChatBox.next(!i),this.chatService.showButton$.next(i),i||(window.sessionStorage.setItem("opened","true"),this.chatService.hasOpened$.next(!0)),this.toggleHitch.emit(!1)}onCloseGreeting(){this.toggleHitch.emit(!1)}hexToRgb(t){var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:null}}return n.\u0275fac=function(t){return new(t||n)(R(bn),R(Pa))},n.\u0275cmp=Bt({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,i){1&t&&A(0,jve,12,10,"div",0),2&t&&w("ngIf",i.overlayMode)},dependencies:[Jn,ei],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 Wve=function(n){return{"ice-action":n}};function qve(n,e){if(1&n){const t=fe();C(0,"span",8),K("click",function(){const s=V(t).$implicit;return B(S().onHandleIceItem(s))}),J(1),E()}if(2&n){const t=e.$implicit;w("ngClass",pe(2,Wve,"textOnly"!==t.type)),v(1),He(" ",t.text," ")}}const Yve=function(n,e,t,i){return{left:n,right:e,bar:t,"side-bar":i}},Kve=function(n,e){return{left:n,right:e}};let Qve=(()=>{class n{constructor(t,i,r){this.chatService=t,this.translationsService=i,this.popupService=r,this.botSettings={title:"",openingLine:"",botImgUrl:null,backgroundColors:["#FFFFFF","#FFFFFF"],screenPosition:"right",introMessage:""},this.greetingStyle={},this.flipNowState="normal",this.iceBreaker={},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"}))})}startIceBreaker(){let t=1;this.iceBreaker=this.translationsService.getIceBreakerById(this.iceBreakers.iceBreakers[0].id),this.iceBreakerInterval=setInterval(()=>{const i=this.chatService.hasOpened$.getValue();console.log(i),i&&clearInterval(this.iceBreakerInterval),this.flipNowState="flip",setTimeout(()=>{this.iceBreaker=this.translationsService.getIceBreakerById(this.iceBreakers.iceBreakers[t].id),this.flipNowState="normal"},100),t++,t>=this.iceBreakers.iceBreakers.length&&(t=0)},1e3*this.iceBreakers.iceBreakerDelay)}onHandleIceItem(t){if("directIntent"===t.type){let i=t.action;t.placeText&&(i=t.placeText),this.chatService.addDirectIntentQuestion(t.action,i)}if("quickActionButtons"===t.type){const i=this.botSettings.quickActionButtons.find(r=>r.dialogflowId===t.action);if(i)if("post"===i.structuredInput.submit){const r={...i.structuredInput,preMessage:i.preText,intent:i.dialogflowId};this.chatService.showStructuredInput$.next(r)}else i.url?window.open(i.url,"_blank"):this.chatService.addDirectIntentQuestion(i.dialogflowId,i.publicText)}clearInterval(this.iceBreakerInterval),this.chatService.allowIceBreakers$.next(!1),this.chatService.hasOpened$.next(!0),this.onToggleVisible(!0)}onToggleVisible(t=null){let i=this.popupService.showChatBox.getValue();null!==t&&(i=!t),this.popupService.showChatBox.next(!i),this.chatService.showButton$.next(i),i||(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(bn),R(ss),R(Pa))},n.\u0275cmp=Bt({type:n,selectors:[["ngx-ice-breaker"]],inputs:{func:["iceBreakers","func"]},outputs:{toggleIceBreaker:"toggleIceBreaker"},decls:9,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"],["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,i){1&t&&(C(0,"div",0)(1,"div",1),K("click",function(){return i.onCloseGreeting()}),ce(),C(2,"svg",2),Y(3,"path",3),E()(),St(),C(4,"div",4)(5,"div",5)(6,"div",6)(7,"div"),A(8,qve,2,4,"span",7),E()()()()()),2&t&&(w("@flipNow",i.flipNowState)("ngClass",Eu(5,Yve,"left"==i.botSettings.screenPosition,"right"==i.botSettings.screenPosition,"bar"==i.botSettings.buttonShape,"side-bar"==i.botSettings.buttonShape))("ngStyle",i.greetingStyle),v(1),w("ngClass",Ws(10,Kve,"left"==i.botSettings.screenPosition,"right"==i.botSettings.screenPosition)),v(7),w("ngForOf",i.iceBreaker.items))},dependencies:[Zi,Ji,ei],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:[RR("flipNow",[D0("normal",Hr({transform:"rotateX(0deg)"})),D0("flip",Hr({transform:"rotateX(90deg)"})),Hu("normal <=> flip",[$u("100ms ease-in-out")])])]}}),n})();const Xve=function(n,e,t,i){return{left:n,right:e,bar:t,"side-bar":i}},Zve=function(n,e){return{left:n,right:e}};let Jve=(()=>{class n{constructor(t,i){this.chatService=t,this.popupService=i,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 i=this.hexToRgb(this.smallPopup.popup.primaryColor);this.smartBackground=i&&t.path?"above"===this.smallPopup.popup.template?`linear-gradient(0deg, rgba(${i.r}, ${i.g}, ${i.b}, 0.6), rgba(${i.r}, ${i.g}, ${i.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,i){this.chatService.addDirectIntentQuestion(t,i),this.chatService.hasOpened$.next(!0),this.onToggleVisible(!0)}onToggleVisible(t=null){let i=this.popupService.showChatBox.getValue();null!==t&&(i=!t),this.popupService.showChatBox.next(!i),this.chatService.showButton$.next(i),i||(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 i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:null}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(bn),R(Pa))},n.\u0275cmp=Bt({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,i){1&t&&(C(0,"div",0)(1,"div",1),K("click",function(){return i.onCloseGreeting()}),ce(),C(2,"svg",2),Y(3,"path",3),E()(),St(),C(4,"div",4),K("click",function(){return i.onHandelIntent(i.smallPopup.popup.openIntentId,i.smallPopup.popup.openIntentName)}),C(5,"div",5),J(6),E()()()),2&t&&(w("ngClass",Eu(5,Xve,"left"==i.botSettings.screenPosition,"right"==i.botSettings.screenPosition,"bar"==i.botSettings.buttonShape,"side-bar"==i.botSettings.buttonShape))("ngStyle",i.greetingStyle),v(1),w("ngClass",Ws(10,Zve,"left"==i.botSettings.screenPosition,"right"==i.botSettings.screenPosition)),v(4),w("ngStyle",i.getPrettyStyle),v(1),He(" ",i.smallPopup.popup.text," "))},dependencies:[Zi,ei],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 ebe(n,e){if(1&n){const t=fe();C(0,"ngx-hitch",4),K("toggleHitch",function(r){return V(t),B(S().onToggleHitch(r))}),E()}2&n&&w("hitch",S().hitch)}function tbe(n,e){if(1&n){const t=fe();C(0,"ngx-ice-breaker",5),K("toggleIceBreaker",function(r){return V(t),B(S().onToggleIceBreaker(r))}),E()}2&n&&w("iceBreakers",S().iceBreakers)}function nbe(n,e){if(1&n){const t=fe();C(0,"ngx-small-popup",6),K("toggleSmallPopup",function(r){return V(t),B(S().onToggleSmallPopup(r))}),E()}2&n&&w("smallPopup",S().smallPopup)}function ibe(n,e){if(1&n&&(C(0,"span",12),J(1),E()),2&n){const t=S(2);v(1),He(" ",t.tranlatedText.chatNow," ")}}function rbe(n,e){if(1&n&&(C(0,"span")(1,"span",13),J(2),E()()),2&n){const t=S(2);v(2),He(" ",t.tranlatedText.chatNow," ")}}function sbe(n,e){if(1&n&&Y(0,"img",14),2&n){const t=S(2);w("src",t.whosTalking.img,On)("ngStyle",t.backgroundSuccess)}}const obe=function(n,e,t,i){return{left:n,bar:e,"side-bar":t,round:i}};function abe(n,e){if(1&n){const t=fe();C(0,"button",7),K("click",function(){return V(t),B(S().onToggleVisible())}),A(1,ibe,2,1,"span",8),A(2,rbe,3,1,"span",9),A(3,sbe,1,2,"img",10),C(4,"div",11),J(5,"1"),E()()}if(2&n){const t=S();w("ngClass",Eu(5,obe,"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 lbe=(()=>{class n{constructor(t,i,r,s){this.popupService=t,this.chatService=i,this.translationsService=r,this.debugService=s,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.liveChatOnlyMode=!1,this.liveChatSettings={liveChatAvailable:!1},this.whosTalking={img:null,title:null},this.showButton$=new rt,this.showHitch=!1,this.showIceBreaker=!1,this.showSmallPopup=!1,this.triggerEvents={clicks:0,time:0,scroll:0,mouse:!1},this.triggerEvents$=new vt(this.triggerEvents),this.activeEngagementsOnThisPage=[],this.useNewEngagementMethod=!1,this.scrollTriggered=!1,this.mouseTriggered=!1,this.mouseLastPosition=0,this.showButton$=wo([this.chatService.showButton$,this.chatService.allowBot$]).pipe(bi(([o,a])=>o&&a))}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 i=t.pageY;this.mouseLastPosition>=this.triggerEvents.scroll+10&&i<=this.triggerEvents.scroll+10&&(this.triggerEvents.mouse=!0,this.triggerEvents$.next({...this.triggerEvents}),this.mouseTriggered=!0),this.mouseLastPosition=i}}ngOnInit(){this.startTimer(),this.triggerSub=this.triggerEvents$.subscribe(t=>{let i=!1;this.showHitch||this.showIceBreaker||this.showSmallPopup||this.activeEngagementsOnThisPage.length>0&&this.activeEngagementsOnThisPage.forEach(r=>{this.showHitch||this.showIceBreaker||this.showSmallPopup||("firstLoadDelay"===r.trigger.type&&r.trigger.value===t.time&&(i=!0,clearInterval(this.engagementInterval)),"numberClicks"===r.trigger.type&&r.trigger.value===t.clicks&&(i=!0),"scrollDownPercentage"===r.trigger.type&&t.scroll>=r.trigger.value&&(this.scrollTriggered=!0,i=!0),"movingToExit"===r.trigger.type&&t.mouse&&(i=!0,this.triggerEvents.mouse=!1),i&&("openChatWindow"===r.action&&this.onToggleVisible(!0),"showIceBreakers"===r.action&&r.iceBreakers&&r.iceBreakers.length>0&&(this.iceBreakers={iceBreakers:r.iceBreakers,iceBreakerDelay:r.iceBreakerDelay},this.showIceBreaker=!0),"showSmallPopup"===r.action&&(this.smallPopup=r,this.showSmallPopup=!0),"showBigPopup"===r.action&&(this.hitch=r,this.showHitch=!0)))})}),this.dataSub=wo([this.chatService.botSettingsBS,this.chatService.engagements$,this.chatService.allowBot$]).subscribe(([t,i,r])=>{r&&(this.debugService.logMode&&console.log(t,i),t&&(this.botSettings=t,this.liveChatOnlyMode=this.chatService.liveChatOnlyMode,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?i&&i.length>0&&(this.activeEngagementsOnThisPage=[],i.forEach(s=>{(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.languagesSub=this.chatService.activeLanguage$.subscribe(t=>{this.tranlatedText=this.translationsService.translations[t]}),this.liveChatSub&&this.liveChatSub.unsubscribe(),this.liveChatSub=this.chatService.liveChatSettings$.subscribe(t=>{t&&(this.liveChatSettings=t)}),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 i=window.sessionStorage.getItem("iceBreakerOpened");let r=!1;i&&"true"===i&&(r=!0),r||(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){this.showIceBreaker=t}onToggleSmallPopup(t){this.showSmallPopup=t}onToggleVisible(t=null){let i=this.popupService.showChatBox.getValue();null!==t&&(i=!t),this.popupService.showChatBox.next(!i),this.chatService.showButton$.next(i),this.showIceBreaker=!1,i||(window.sessionStorage.setItem("opened","true"),this.chatService.hasOpened$.next(!0),window.sessionStorage.setItem("iceBreakerOpened","true"))}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe(),this.liveChatSub&&this.liveChatSub.unsubscribe(),this.whosTalkingSub&&this.whosTalkingSub.unsubscribe(),this.languagesSub&&this.languagesSub.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(Pa),R(bn),R(ss),R(is))},n.\u0275cmp=Bt({type:n,selectors:[["gc-start-button"]],hostBindings:function(t,i){1&t&&K("click",function(s){return i.onClick(s)},0,lu)("scroll",function(s){return i.onScroll(s)},!1,lu)("mousemove",function(s){return i.onMouseMove(s)},!1,lu)},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,i){1&t&&(A(0,ebe,1,1,"ngx-hitch",0),A(1,tbe,1,1,"ngx-ice-breaker",1),A(2,nbe,1,1,"ngx-small-popup",2),A(3,abe,6,10,"button",3),br(4,"async")),2&t&&(w("ngIf",i.showHitch),v(1),w("ngIf",i.showIceBreaker),v(1),w("ngIf",i.showSmallPopup),v(1),w("ngIf",Dl(4,4,i.showButton$)))},dependencies:[Zi,Jn,ei,Gve,Qve,Jve,Wf],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 qy(n,e){return new rt(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Ch(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}let j8=(()=>{class n{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}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(zs),R(Nn))},n.\u0275dir=ye({type:n}),n})(),Ra=(()=>{class n extends j8{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Pn(n)))(i||n)}}(),n.\u0275dir=ye({type:n,features:[et]}),n})();const kr=new be("NgValueAccessor"),dbe={provide:kr,useExisting:lt(()=>uh),multi:!0},fbe=new be("CompositionEventMode");let uh=(()=>{class n extends j8{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function hbe(){const n=Uo()?Uo().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(zs),R(Nn),R(fbe,8))},n.\u0275dir=ye({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,i){1&t&&K("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[yt([dbe]),et]}),n})();function So(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}const zn=new be("NgValidators"),Co=new be("NgAsyncValidators"),gbe=/^(?=.{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 K8(n){return So(n.value)?{required:!0}:null}function X8(n){return So(n.value)||gbe.test(n.value)?null:{email:!0}}function Yy(n){return null}function tH(n){return null!=n}function nH(n){return bf(n)?Ch(n):n}function iH(n){let e={};return n.forEach(t=>{e=null!=t?bt(bt({},e),t):e}),0===Object.keys(e).length?null:e}function rH(n,e){return e.map(t=>t(n))}function sH(n){return n.map(e=>function mbe(n){return!n.validate}(e)?e:t=>e.validate(t))}function jA(n){return null!=n?function oH(n){if(!n)return null;const e=n.filter(tH);return 0==e.length?null:function(t){return iH(rH(t,e))}}(sH(n)):null}function GA(n){return null!=n?function aH(n){if(!n)return null;const e=n.filter(tH);return 0==e.length?null:function(t){return function cbe(...n){if(1===n.length){const e=n[0];if(Lc(e))return qy(e,null);if(__(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return qy(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return qy(n=1===n.length&&Lc(n[0])?n[0]:n,null).pipe(bi(t=>e(...t)))}return qy(n,null)}(rH(t,e).map(nH)).pipe(bi(iH))}}(sH(n)):null}function lH(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function WA(n){return n?Array.isArray(n)?n:[n]:[]}function Ky(n,e){return Array.isArray(n)?n.includes(e):n===e}function dH(n,e){const t=WA(e);return WA(n).forEach(r=>{Ky(t,r)||t.push(r)}),t}function hH(n,e){return WA(e).filter(t=>!Ky(n,t))}class fH{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=jA(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=GA(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 oi extends fH{get formDirective(){return null}get path(){return null}}class Eo extends fH{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class pH{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 qA=(()=>{class n extends pH{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(R(Eo,2))},n.\u0275dir=ye({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&mu("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[et]}),n})(),gH=(()=>{class n extends pH{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(R(oi,10))},n.\u0275dir=ye({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,i){2&t&&mu("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[et]}),n})();const dh="VALID",Xy="INVALID",kc="PENDING",hh="DISABLED";function XA(n){return(Zy(n)?n.validators:n)||null}function yH(n){return Array.isArray(n)?jA(n):n||null}function ZA(n,e){return(Zy(e)?e.asyncValidators:n)||null}function _H(n){return Array.isArray(n)?GA(n):n||null}function Zy(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class wH{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=yH(this._rawValidators),this._composedAsyncValidatorFn=_H(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===dh}get invalid(){return this.status===Xy}get pending(){return this.status==kc}get disabled(){return this.status===hh}get enabled(){return this.status!==hh}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=yH(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=_H(e)}addValidators(e){this.setValidators(dH(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(dH(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(hH(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(hH(e,this._rawAsyncValidators))}hasValidator(e){return Ky(this._rawValidators,e)}hasAsyncValidator(e){return Ky(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=kc,!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=hh,this.errors=null,this._forEachChild(i=>{i.disable(bt(bt({},e),{},{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(bt(bt({},e),{},{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=dh,this._forEachChild(i=>{i.enable(bt(bt({},e),{},{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(bt(bt({},e),{},{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!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===dh||this.status===kc)&&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()?hh:dh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=kc,this._hasOwnPendingAsyncValidator=!0;const t=nH(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{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((i,r)=>i&&i._find(r),this)}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.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()?hh:this.errors?Xy:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kc)?kc:this._anyControlsHaveStatus(Xy)?Xy:dh}_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){Zy(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 JA extends wH{constructor(e,t,i){super(XA(t),ZA(i,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,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){(function bH(n,e,t){n._forEachChild((i,r)=>{if(void 0===t[r])throw new Z(1002,"")})})(this,0,e),Object.keys(e).forEach(i=>{(function vH(n,e,t){const i=n.controls;if(!(e?Object.keys(i):i).length)throw new Z(1e3,"");if(!i[t])throw new Z(1001,"")})(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{const r=this.controls[i];r&&r.patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[t,i]of Object.entries(this.controls))if(this.contains(t)&&e(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,i,r)=>((i.enabled||this.disabled)&&(t[r]=i.value),t))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,s)=>{i=t(i,r,s)}),i}_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 fh(n,e){var t,i;eD(n,e),e.valueAccessor.writeValue(n.value),n.disabled&&(null===(t=(i=e.valueAccessor).setDisabledState)||void 0===t||t.call(i,!0)),function Tbe(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&SH(n,e)})}(n,e),function Ibe(n,e){const t=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function xbe(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&SH(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function Ebe(n,e){if(e.valueAccessor.setDisabledState){const t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function t_(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function eD(n,e){const t=function cH(n){return n._rawValidators}(n);null!==e.validator?n.setValidators(lH(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const i=function uH(n){return n._rawAsyncValidators}(n);null!==e.asyncValidator?n.setAsyncValidators(lH(i,e.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();t_(e._rawValidators,r),t_(e._rawAsyncValidators,r)}function SH(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}const Pbe={provide:oi,useExisting:lt(()=>i_)},ph=(()=>Promise.resolve())();let i_=(()=>{class n extends oi{constructor(t,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new G,this.form=new JA({},jA(t),GA(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){ph.then(()=>{const i=this._findContainer(t.path);t.control=i.registerControl(t.name,t.control),fh(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){ph.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){ph.then(()=>{const i=this._findContainer(t.path),r=new JA({});(function CH(n,e){eD(n,e)})(r,t),i.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){ph.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,i){ph.then(()=>{this.form.get(t.path).setValue(i)})}setValue(t){this.control.setValue(t)}onSubmit(t){var i;return this.submitted=!0,function TH(n,e){n._syncPendingControls(),e.forEach(t=>{const i=t.control;"submit"===i.updateOn&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===(null==t||null===(i=t.target)||void 0===i?void 0:i.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(zn,10),R(Co,10))},n.\u0275dir=ye({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,i){1&t&&K("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yt([Pbe]),et]}),n})();function xH(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function IH(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const AH=class extends wH{constructor(e=null,t,i){super(XA(t),ZA(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Zy(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=IH(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(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){xH(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){xH(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){IH(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}},Rbe={provide:Eo,useExisting:lt(()=>r_)},MH=(()=>Promise.resolve())();let r_=(()=>{class n extends Eo{constructor(t,i,r,s,o){super(),this._changeDetectorRef=o,this.control=new AH,this._registered=!1,this.update=new G,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function nD(n,e){if(!e)return null;let t,i,r;return Array.isArray(e),e.forEach(s=>{s.constructor===uh?t=s:function kbe(n){return Object.getPrototypeOf(n.constructor)===Ra}(s)?i=s:r=s}),r||i||t||null}(0,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function tD(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(){fh(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){MH.then(()=>{var i;this.control.setValue(t,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,r=0!==i&&Zb(i);MH.then(()=>{var s;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()})}_getPath(t){return this._parent?function Jy(n,e){return[...e.path,n]}(t,this._parent):[t]}}return n.\u0275fac=function(t){return new(t||n)(R(oi,9),R(zn,10),R(Co,10),R(kr,10),R(ku,8))},n.\u0275dir=ye({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:[yt([Rbe]),et,Pr]}),n})(),PH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=ye({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),NH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({}),n})(),La=(()=>{class n{constructor(){this._validator=Yy}ngOnChanges(t){if(this.inputName in t){const i=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Yy,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=ye({type:n,features:[Pr]}),n})();const Jbe={provide:zn,useExisting:lt(()=>s_),multi:!0};let s_=(()=>{class n extends La{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Zb,this.createValidator=t=>K8}enabled(t){return t}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Pn(n)))(i||n)}}(),n.\u0275dir=ye({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,i){2&t&&ki("required",i._enabled?"":null)},inputs:{required:"required"},features:[yt([Jbe]),et]}),n})();const t0e={provide:zn,useExisting:lt(()=>lD),multi:!0};let lD=(()=>{class n extends La{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=Zb,this.createValidator=t=>X8}enabled(t){return t}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Pn(n)))(i||n)}}(),n.\u0275dir=ye({type:n,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[yt([t0e]),et]}),n})(),s0e=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({imports:[NH]}),n})(),o0e=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({imports:[s0e]}),n})();class l0e{constructor(e,t){this.newRect=e,this.oldRect=t,this.isFirst=null==t}}let XH=(()=>{class n{constructor(t,i){this.element=t,this.zone=i,this.resized=new G,this.observer=new ResizeObserver(r=>this.zone.run(()=>this.observe(r)))}ngOnInit(){this.observer.observe(this.element.nativeElement)}ngOnDestroy(){this.observer.disconnect()}observe(t){const i=t[0],r=new l0e(i.contentRect,this.oldRect);this.oldRect=i.contentRect,this.resized.emit(r)}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(pt))},n.\u0275dir=ye({type:n,selectors:[["","resized",""]],outputs:{resized:"resized"}}),n})(),c0e=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({}),n})();function ZH(n,e){Ge(2,arguments);var t=ct(n),i=qe(e);return isNaN(i)?new Date(NaN):(i&&t.setDate(t.getDate()+i),t)}function JH(n,e){Ge(2,arguments);var t=ct(n),i=qe(e);if(isNaN(i))return new Date(NaN);if(!i)return t;var r=t.getDate(),s=new Date(t.getTime());s.setMonth(t.getMonth()+i+1,0);var o=s.getDate();return r>=o?s:(t.setFullYear(s.getFullYear(),s.getMonth(),r),t)}function o_(n){return(o_="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 eU(n,e){if(Ge(2,arguments),!e||"object"!==o_(e))return new Date(NaN);var t=e.years?qe(e.years):0,i=e.months?qe(e.months):0,r=e.weeks?qe(e.weeks):0,s=e.days?qe(e.days):0,o=e.hours?qe(e.hours):0,a=e.minutes?qe(e.minutes):0,l=e.seconds?qe(e.seconds):0,c=ct(n),u=i||t?JH(c,i+12*t):c,d=s||r?ZH(u,s+7*r):u,h=a+60*o,f=l+60*h,p=1e3*f,g=new Date(d.getTime()+p);return g}function u0e(n,e){Ge(2,arguments);var t=qe(e);return ZH(n,-t)}function d0e(n,e){Ge(2,arguments);var t=qe(e);return JH(n,-t)}function a_(n){return(a_="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 Mc(n){Ge(1,arguments);var e=ct(n);return e.setHours(0,0,0,0),e}function tU(n){Ge(1,arguments);var e=ct(n);return e.setHours(23,59,59,999),e}function nU(n,e){Ge(2,arguments);var t=Mc(n),i=Mc(e);return t.getTime()===i.getTime()}var f0e={lessThanXSeconds:{one:"minder as 'n sekonde",other:"minder as {{count}} sekondes"},xSeconds:{one:"1 sekonde",other:"{{count}} sekondes"},halfAMinute:"'n halwe minuut",lessThanXMinutes:{one:"minder as 'n minuut",other:"minder as {{count}} minute"},xMinutes:{one:"'n minuut",other:"{{count}} minute"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} ure"},xHours:{one:"1 uur",other:"{{count}} ure"},xDays:{one:"1 dag",other:"{{count}} dae"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weke"},xWeeks:{one:"1 week",other:"{{count}} weke"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maande"},xMonths:{one:"1 maand",other:"{{count}} maande"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer as 1 jaar",other:"meer as {{count}} jaar"},almostXYears:{one:"byna 1 jaar",other:"byna {{count}} jaar"}};var v0e={date:Ic({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:Ic({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Ic({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},w0e={lastWeek:"'verlede' eeee 'om' p",yesterday:"'gister om' p",today:"'vandag om' p",tomorrow:"'m\xf4re om' p",nextWeek:"eeee 'om' p",other:"P"};const q0e={code:"af",formatDistance:function(e,t,i){var r,s=f0e[e];return r="string"==typeof s?s:1===t?s.one:s.other.replace("{{count}}",String(t)),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"oor "+r:r+" gelede":r},formatLong:v0e,formatRelative:function(e,t,i,r){return w0e[e]},localize:{ordinalNumber:function(e){var t=Number(e),i=t%100;if(i<20)switch(i){case 1:case 8:return t+"ste";default:return t+"de"}return t+"ste"},era:Jr({values:{narrow:["vC","nC"],abbreviated:["vC","nC"],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:Jr({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ste kwartaal","2de kwartaal","3de kwartaal","4de kwartaal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Jr({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],wide:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},defaultWidth:"wide"}),day:Jr({values:{narrow:["S","M","D","W","D","V","S"],short:["So","Ma","Di","Wo","Do","Vr","Sa"],abbreviated:["Son","Maa","Din","Woe","Don","Vry","Sat"],wide:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},defaultWidth:"wide"}),dayPeriod:Jr({values:{narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:e5({matchPattern:/^(\d+)(ste|de)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:es({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?C\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:es({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](st|d)e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:es({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/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:[/^Jan/i,/^Feb/i,/^Mrt/i,/^Apr/i,/^Mei/i,/^Jun/i,/^Jul/i,/^Aug/i,/^Sep/i,/^Okt/i,/^Nov/i,/^Dec/i]},defaultParseWidth:"any"}),day:es({matchPatterns:{narrow:/^[smdwv]/i,short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i,abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i],any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i]},defaultParseWidth:"any"}),dayPeriod:es({matchPatterns:{any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^vm/i,pm:/^nm/i,midnight:/^middernag/i,noon:/^middaguur/i,morning:/oggend/i,afternoon:/middag/i,evening:/laat middag/i,night:/aand/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};let iU=(()=>{class n{constructor(t,i,r){this.http=t,this.chatService=i,this.debugService=r,this.pathPostRequest="https://api.guestchat.com/newPostRequest",this.pathSavePotentialRevenue="https://api.guestchat.com/bankPotentialRevenue",this.pathNewRequest="https://api.guestchat.com/newRequest",this.savedNumberNights=1,this.headers=(new Tr).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 i=this;return k(function*(){return new Promise(r=>{i.chatService.postIsLoading$.next(!0);const s={...i.chatService.getClientAndSession(),...t};i.chatService.botIsTyping$.next(!0),i.http.post(i.pathNewRequest,s,{headers:i.headers}).subscribe(o=>{i.chatService.postIsLoading$.next(!1),r("success")},()=>{i.chatService.botIsTyping$.next(!1),i.chatService.postIsLoading$.next(!1),i.chatService.showErrorMessage(),r("error")})})})()}addPost(t,i){var r=this;return k(function*(){return new Promise((s,o)=>{r.chatService.postIsLoading$.next(!0);const a={...r.chatService.getClientAndSession(),interface:"widget",...t,postType:i};r.debugService.logMode&&console.log(a),s("success"),r.http.post(r.pathPostRequest,a,{headers:r.headers}).subscribe(l=>{l.length>0?(r.chatService.postIsLoading$.next(!1),s("success")):(r.chatService.botIsTyping$.next(!1),r.chatService.postIsLoading$.next(!1),s("error"))},l=>{r.chatService.botIsTyping$.next(!1),r.chatService.postIsLoading$.next(!1),r.chatService.canPostReply$.next(!0),r.chatService.showErrorMessage(),s("error")})})})()}savePotentialRevenue(t,i,r){var s=this;return k(function*(){return new Promise((o,a)=>{const l=t*i,c={...s.chatService.getClientAndSession(),bookingValue:l,bookingNumNights:i,bookingDate:r,bookingClicked:!0};console.log(c),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)(ue(T0),ue(bn),ue(is))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jn=(()=>{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})(),Y0e=(()=>{class n{constructor(){this.clickSource=new as,this.clickObservable=this.clickSource.asObservable()}add(t){t&&this.clickSource.next(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rU=(()=>{class n{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[jn.STARTS_WITH,jn.CONTAINS,jn.NOT_CONTAINS,jn.ENDS_WITH,jn.EQUALS,jn.NOT_EQUALS],numeric:[jn.EQUALS,jn.NOT_EQUALS,jn.LESS_THAN,jn.LESS_THAN_OR_EQUAL_TO,jn.GREATER_THAN,jn.GREATER_THAN_OR_EQUAL_TO],date:[jn.DATE_IS,jn.DATE_IS_NOT,jn.DATE_BEFORE,jn.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 as,this.translationObserver=this.translationSource.asObservable()}getTranslation(t){return this.translation[t]}setTranslation(t){this.translation=bt(bt({},this.translation),t),this.translationSource.next(this.translation)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),K0e=(()=>{class n{constructor(t){this.template=t}getType(){return this.name}}return n.\u0275fac=function(t){return new(t||n)(R(wr))},n.\u0275dir=ye({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),n})(),sU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({imports:[Ol]}),n})(),os=(()=>{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})(),le=(()=>{class n{static addClass(t,i){t&&i&&(t.classList?t.classList.add(i):t.className+=" "+i)}static addMultipleClasses(t,i){if(t&&i)if(t.classList){let r=i.trim().split(" ");for(let s=0;s<r.length;s++)t.classList.add(r[s])}else{let r=i.split(" ");for(let s=0;s<r.length;s++)t.className+=" "+r[s]}}static removeClass(t,i){t&&i&&(t.classList?t.classList.remove(i):t.className=t.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," "))}static hasClass(t,i){return!(!t||!i)&&(t.classList?t.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(t.className))}static siblings(t){return Array.prototype.filter.call(t.parentNode.children,function(i){return i!==t})}static find(t,i){return Array.from(t.querySelectorAll(i))}static findSingle(t,i){return t?t.querySelector(i):null}static index(t){let i=t.parentNode.childNodes,r=0;for(var s=0;s<i.length;s++){if(i[s]==t)return r;1==i[s].nodeType&&r++}return-1}static indexWithinGroup(t,i){let r=t.parentNode?t.parentNode.childNodes:[],s=0;for(var o=0;o<r.length;o++){if(r[o]==t)return s;r[o].attributes&&r[o].attributes[i]&&1==r[o].nodeType&&s++}return-1}static appendOverlay(t,i,r="self"){"self"!==r&&t&&i&&this.appendChild(t,i)}static alignOverlay(t,i,r="self",s=!0){t&&i&&(s&&(t.style.minWidth||(t.style.minWidth=n.getOuterWidth(i)+"px")),"self"===r?this.relativePosition(t,i):this.absolutePosition(t,i))}static relativePosition(t,i){const r=g=>{if(g)return"relative"===getComputedStyle(g).getPropertyValue("position")?g:r(g.parentElement)},s=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),o=i.offsetHeight,a=i.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),h=r(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,i){const r=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),s=r.height,o=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.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,i=[]){return null===t.parentNode?i:this.getParents(t.parentNode,i.concat([t.parentNode]))}static getScrollableParents(t){let i=[];if(t){let r=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 r){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)&&i.push(d)}}9!==a.nodeType&&o(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(t){t.style.visibility="hidden",t.style.display="block";let i=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",i}static getHiddenElementOuterWidth(t){t.style.visibility="hidden",t.style.display="block";let i=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",i}static getHiddenElementDimensions(t){let i={};return t.style.visibility="hidden",t.style.display="block",i.width=t.offsetWidth,i.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",i}static scrollInView(t,i){let r=getComputedStyle(t).getPropertyValue("borderTopWidth"),s=r?parseFloat(r):0,o=getComputedStyle(t).getPropertyValue("paddingTop"),a=o?parseFloat(o):0,l=t.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-s-a,d=t.scrollTop,h=t.clientHeight,f=this.getOuterHeight(i);u<0?t.scrollTop=d+u:u+f>h&&(t.scrollTop=d+u-h+f)}static fadeIn(t,i){t.style.opacity=0;let r=+new Date,s=0,o=function(){s=+t.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,t.style.opacity=s,r=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static fadeOut(t,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),t.style.opacity=r},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,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}).call(t,i)}static getOuterWidth(t,i){let r=t.offsetWidth;if(i){let s=getComputedStyle(t);r+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return r}static getHorizontalPadding(t){let i=getComputedStyle(t);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(t){let i=getComputedStyle(t);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(t){let i=t.offsetWidth,r=getComputedStyle(t);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(t){let i=t.offsetWidth,r=getComputedStyle(t);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(t){let i=t.offsetHeight,r=getComputedStyle(t);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(t,i){let r=t.offsetHeight;if(i){let s=getComputedStyle(t);r+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return r}static getHeight(t){let i=t.offsetHeight,r=getComputedStyle(t);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(t){let i=t.offsetWidth,r=getComputedStyle(t);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let t=window,i=document,r=i.documentElement,s=i.getElementsByTagName("body")[0];return{width:t.innerWidth||r.clientWidth||s.clientWidth,height:t.innerHeight||r.clientHeight||s.clientHeight}}static getOffset(t){var i=t.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(t,i){let r=t.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,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,i){if(this.isElement(i))i.appendChild(t);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+t;i.el.nativeElement.appendChild(t)}}static removeChild(t,i){if(this.isElement(i))i.removeChild(t);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+t+" from "+i;i.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 i=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let i=t.offsetHeight-t.clientHeight;return document.body.removeChild(t),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(t,i,r){t[i].apply(t,r)}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(),i=/(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:i[1]||"",version:i[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,i){t&&document.activeElement!==t&&t.focus(i)}static getFocusableElements(t){let i=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)'),r=[];for(let s of i)"none"!=getComputedStyle(s).display&&"hidden"!=getComputedStyle(s).visibility&&r.push(s);return r}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,i){if(!t)return null;switch(t){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const r=typeof t;if("string"===r)return document.querySelector(t);if("object"===r&&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 Q0e{constructor(e,t=(()=>{})){this.element=e,this.listener=t}bindScrollListener(){this.scrollableParents=le.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 X0e=(()=>{class n{constructor(t,i,r){this.el=t,this.zone=i,this.config=r}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 i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(le.removeClass(i,"p-ink-active"),!le.getHeight(i)&&!le.getWidth(i)){let a=Math.max(le.getOuterWidth(this.el.nativeElement),le.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=le.getOffset(this.el.nativeElement),s=t.pageX-r.left+document.body.scrollTop-le.getWidth(i)/2,o=t.pageY-r.top+document.body.scrollLeft-le.getHeight(i)/2;i.style.top=o+"px",i.style.left=s+"px",le.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&le.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&&le.removeClass(t,"p-ink-active")}onAnimationEnd(t){this.timeout&&clearTimeout(this.timeout),le.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),le.removeElement(t))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(pt),R(rU,8))},n.\u0275dir=ye({type:n,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]}),n})(),oU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({imports:[Ol]}),n})();class l_{static equals(e,t,i){return i?this.resolveFieldData(e,i)===this.resolveFieldData(t,i):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,i=Array.isArray(e),r=Array.isArray(t);if(i&&r){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(i!=r)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 i=t.split("."),r=e;for(let s=0,o=i.length;s<o;++s){if(null==r)return null;r=r[i[s]]}return r}}return null}static isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)}static reorderArray(e,t,i){e&&t!==i&&(i>=e.length&&(i%=e.length,t%=e.length),e.splice(i,0,e.splice(t,1)[0]))}static insertIntoOrderedArray(e,t,i,r){if(i.length>0){let s=!1;for(let o=0;o<i.length;o++)if(this.findIndexInList(i[o],r)>t){i.splice(o,0,e),s=!0;break}s||i.push(e)}else i.push(e)}static findIndexInList(e,t){let i=-1;if(t)for(let r=0;r<t.length;r++)if(t[r]==e){i=r;break}return i}static contains(e,t){if(null!=e&&t&&t.length)for(let i of t)if(this.equals(e,i))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,i,r=1){let s=-1;const o=this.isEmpty(e),a=this.isEmpty(t);return s=o&&a?0:o?r:a?-r:"string"==typeof e&&"string"==typeof t?e.localeCompare(t,i,{numeric:!0}):e<t?-1:e>t?1:0,s}static sort(e,t,i=1,r,s=1){return(1===s?i:s)*l_.compare(e,t,r,i)}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(" "):bt(bt({},e||{}),t||{})}}var aU=0,c_=function J0e(){let n=[];const r=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:r,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)})(r(s)),s.style.zIndex="")},getCurrent:()=>n.length>0?n[n.length-1].value:0}}();let twe=(()=>{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,le.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&&l_.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 i=this.label?"p-button-icon-"+this.iconPos:null;i&&le.addClass(t,i);let r=this.getIconClass();r&&le.addMultipleClasses(t,r),this.el.nativeElement.insertBefore(t,this.el.nativeElement.firstChild)}}updateLabel(){let t=le.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=le.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(Nn))},n.\u0275dir=ye({type:n,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),n})(),lU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({imports:[Ol,oU]}),n})();const nwe=["container"],iwe=["inputfield"],rwe=["contentWrapper"];function swe(n,e){if(1&n){const t=fe();C(0,"i",8),K("click",function(){return V(t),B(S(2).clear())}),E()}}function owe(n,e){if(1&n){const t=fe();C(0,"button",9),K("click",function(r){V(t),S();const s=gu(1);return B(S().onButtonClick(r,s))}),E()}if(2&n){const t=S(2);w("icon",t.icon)("disabled",t.disabled),ki("aria-label",t.iconAriaLabel)}}function awe(n,e){if(1&n){const t=fe();C(0,"input",4,5),K("focus",function(r){return V(t),B(S().onInputFocus(r))})("keydown",function(r){return V(t),B(S().onInputKeydown(r))})("click",function(){return V(t),B(S().onInputClick())})("blur",function(r){return V(t),B(S().onInputBlur(r))})("input",function(r){return V(t),B(S().onUserInput(r))}),E(),A(2,swe,1,0,"i",6),A(3,owe,1,3,"button",7)}if(2&n){const t=S();yu(t.inputStyleClass),w("value",t.inputFieldValue)("readonly",t.readonlyInput)("ngStyle",t.inputStyle)("placeholder",t.placeholder||"")("disabled",t.disabled)("ngClass","p-inputtext p-component"),ki("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 lwe(n,e){1&n&&El(0)}function cwe(n,e){if(1&n){const t=fe();C(0,"button",30),K("keydown",function(r){return V(t),B(S(4).onContainerButtonKeydown(r))})("click",function(r){return V(t),B(S(4).onPrevButtonClick(r))}),Y(1,"span",31),E()}}function uwe(n,e){if(1&n){const t=fe();C(0,"button",32),K("click",function(r){return V(t),B(S(4).switchToMonthView(r))})("keydown",function(r){return V(t),B(S(4).onContainerButtonKeydown(r))}),J(1),E()}if(2&n){const t=S().$implicit,i=S(3);w("disabled",i.switchViewButtonDisabled()),v(1),He(" ",i.getMonthName(t.month)," ")}}function dwe(n,e){if(1&n){const t=fe();C(0,"button",33),K("click",function(r){return V(t),B(S(4).switchToYearView(r))})("keydown",function(r){return V(t),B(S(4).onContainerButtonKeydown(r))}),J(1),E()}if(2&n){const t=S().$implicit,i=S(3);w("disabled",i.switchViewButtonDisabled()),v(1),He(" ",i.getYear(t)," ")}}function hwe(n,e){if(1&n&&(Wi(0),J(1),qi()),2&n){const t=S(5);v(1),Bo("",t.yearPickerValues()[0]," - ",t.yearPickerValues()[t.yearPickerValues().length-1],"")}}function fwe(n,e){1&n&&El(0)}const cU=function(n){return{$implicit:n}};function pwe(n,e){if(1&n&&(C(0,"span",34),A(1,hwe,2,2,"ng-container",13),A(2,fwe,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,cU,t.yearPickerValues))}}function gwe(n,e){if(1&n&&(C(0,"th",41)(1,"span"),J(2),E()()),2&n){const t=S(5);v(2),Ee(t.getTranslation("weekHeader"))}}function mwe(n,e){if(1&n&&(C(0,"th",42)(1,"span"),J(2),E()()),2&n){const t=e.$implicit;v(2),Ee(t)}}function ywe(n,e){if(1&n&&(C(0,"td",45)(1,"span",46),J(2),E()()),2&n){const t=S().index,i=S(2).$implicit;v(2),He(" ",i.weekNumbers[t]," ")}}function _we(n,e){if(1&n&&(Wi(0),J(1),qi()),2&n){const t=S(2).$implicit;v(1),Ee(t.day)}}function vwe(n,e){1&n&&El(0)}const uU=function(n,e){return{"p-highlight":n,"p-disabled":e}};function bwe(n,e){if(1&n){const t=fe();Wi(0),C(1,"span",48),K("click",function(r){V(t);const s=S().$implicit;return B(S(6).onDateSelect(r,s))})("keydown",function(r){V(t);const s=S().$implicit,o=S(3).index;return B(S(3).onDateCellKeydown(r,s,o))}),A(2,_we,2,1,"ng-container",13),A(3,vwe,1,0,"ng-container",35),E(),qi()}if(2&n){const t=S().$implicit,i=S(6);v(1),w("ngClass",Ws(4,uU,i.isSelected(t),!t.selectable)),v(1),w("ngIf",!i.dateTemplate),v(1),w("ngTemplateOutlet",i.dateTemplate)("ngTemplateOutletContext",pe(7,cU,t))}}const wwe=function(n,e){return{"p-datepicker-other-month":n,"p-datepicker-today":e}};function Swe(n,e){if(1&n&&(C(0,"td",47),A(1,bwe,4,9,"ng-container",13),E()),2&n){const t=e.$implicit,i=S(6);w("ngClass",Ws(2,wwe,t.otherMonth,t.today)),v(1),w("ngIf",!t.otherMonth||i.showOtherMonths)}}function Cwe(n,e){if(1&n&&(C(0,"tr"),A(1,ywe,3,1,"td",43),A(2,Swe,2,5,"td",44),E()),2&n){const t=e.$implicit,i=S(5);v(1),w("ngIf",i.showWeek),v(1),w("ngForOf",t)}}function Ewe(n,e){if(1&n&&(C(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),A(4,gwe,3,1,"th",38),A(5,mwe,3,1,"th",39),E()(),C(6,"tbody"),A(7,Cwe,3,2,"tr",40),E()()()),2&n){const t=S().$implicit,i=S(3);v(4),w("ngIf",i.showWeek),v(1),w("ngForOf",i.weekDays),v(2),w("ngForOf",t.dates)}}function Twe(n,e){if(1&n){const t=fe();C(0,"div",20)(1,"div",21),A(2,cwe,2,0,"button",22),C(3,"div",23),A(4,uwe,2,2,"button",24),A(5,dwe,2,2,"button",25),A(6,pwe,3,5,"span",26),E(),C(7,"button",27),K("keydown",function(r){return V(t),B(S(3).onContainerButtonKeydown(r))})("click",function(r){return V(t),B(S(3).onNextButtonClick(r))}),Y(8,"span",28),E()(),A(9,Ewe,8,3,"div",29),E()}if(2&n){const t=e.index,i=S(3);v(2),w("ngIf",0===t),v(2),w("ngIf","date"===i.currentView),v(1),w("ngIf","year"!==i.currentView),v(1),w("ngIf","year"===i.currentView),v(1),Fn("display",1===i.numberOfMonths||t===i.numberOfMonths-1?"inline-flex":"none"),v(2),w("ngIf","date"===i.currentView)}}function xwe(n,e){if(1&n){const t=fe();C(0,"span",51),K("click",function(r){const o=V(t).index;return B(S(4).onMonthSelect(r,o))})("keydown",function(r){const o=V(t).index;return B(S(4).onMonthCellKeydown(r,o))}),J(1),E()}if(2&n){const t=e.$implicit,i=e.index,r=S(4);w("ngClass",Ws(2,uU,r.isMonthSelected(i),r.isMonthDisabled(i))),v(1),He(" ",t," ")}}function Iwe(n,e){if(1&n&&(C(0,"div",49),A(1,xwe,2,5,"span",50),E()),2&n){const t=S(3);v(1),w("ngForOf",t.monthPickerValues())}}const Awe=function(n){return{"p-highlight":n}};function Dwe(n,e){if(1&n){const t=fe();C(0,"span",54),K("click",function(r){const o=V(t).$implicit;return B(S(4).onYearSelect(r,o))})("keydown",function(r){const o=V(t).$implicit;return B(S(4).onYearCellKeydown(r,o))}),J(1),E()}if(2&n){const t=e.$implicit,i=S(4);w("ngClass",pe(2,Awe,i.isYearSelected(t))),v(1),He(" ",t," ")}}function kwe(n,e){if(1&n&&(C(0,"div",52),A(1,Dwe,2,4,"span",53),E()),2&n){const t=S(3);v(1),w("ngForOf",t.yearPickerValues())}}function Mwe(n,e){if(1&n&&(Wi(0),C(1,"div",16),A(2,Twe,10,7,"div",17),E(),A(3,Iwe,2,1,"div",18),A(4,kwe,2,1,"div",19),qi()),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 Pwe(n,e){1&n&&(Wi(0),J(1,"0"),qi())}function Owe(n,e){1&n&&(Wi(0),J(1,"0"),qi())}function Nwe(n,e){if(1&n&&(C(0,"div",60)(1,"span"),J(2),E()()),2&n){const t=S(3);v(2),Ee(t.timeSeparator)}}function Rwe(n,e){1&n&&(Wi(0),J(1,"0"),qi())}function Lwe(n,e){if(1&n){const t=fe();C(0,"div",65)(1,"button",57),K("keydown",function(r){return V(t),B(S(3).onContainerButtonKeydown(r))})("keydown.enter",function(r){return V(t),B(S(3).incrementSecond(r))})("keydown.space",function(r){return V(t),B(S(3).incrementSecond(r))})("mousedown",function(r){return V(t),B(S(3).onTimePickerElementMouseDown(r,2,1))})("mouseup",function(r){return V(t),B(S(3).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return V(t),B(S(3).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return V(t),B(S(3).onTimePickerElementMouseUp(r))})("mouseleave",function(){return V(t),B(S(3).onTimePickerElementMouseLeave())}),Y(2,"span",58),E(),C(3,"span"),A(4,Rwe,2,0,"ng-container",13),J(5),E(),C(6,"button",57),K("keydown",function(r){return V(t),B(S(3).onContainerButtonKeydown(r))})("keydown.enter",function(r){return V(t),B(S(3).decrementSecond(r))})("keydown.space",function(r){return V(t),B(S(3).decrementSecond(r))})("mousedown",function(r){return V(t),B(S(3).onTimePickerElementMouseDown(r,2,-1))})("mouseup",function(r){return V(t),B(S(3).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return V(t),B(S(3).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return V(t),B(S(3).onTimePickerElementMouseUp(r))})("mouseleave",function(){return V(t),B(S(3).onTimePickerElementMouseLeave())}),Y(7,"span",59),E()()}if(2&n){const t=S(3);v(4),w("ngIf",t.currentSecond<10),v(1),Ee(t.currentSecond)}}function Fwe(n,e){if(1&n){const t=fe();C(0,"div",66)(1,"button",67),K("keydown",function(r){return V(t),B(S(3).onContainerButtonKeydown(r))})("click",function(r){return V(t),B(S(3).toggleAMPM(r))})("keydown.enter",function(r){return V(t),B(S(3).toggleAMPM(r))}),Y(2,"span",58),E(),C(3,"span"),J(4),E(),C(5,"button",67),K("keydown",function(r){return V(t),B(S(3).onContainerButtonKeydown(r))})("click",function(r){return V(t),B(S(3).toggleAMPM(r))})("keydown.enter",function(r){return V(t),B(S(3).toggleAMPM(r))}),Y(6,"span",59),E()()}if(2&n){const t=S(3);v(4),Ee(t.pm?"PM":"AM")}}function Vwe(n,e){if(1&n){const t=fe();C(0,"div",55)(1,"div",56)(2,"button",57),K("keydown",function(r){return V(t),B(S(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return V(t),B(S(2).incrementHour(r))})("keydown.space",function(r){return V(t),B(S(2).incrementHour(r))})("mousedown",function(r){return V(t),B(S(2).onTimePickerElementMouseDown(r,0,1))})("mouseup",function(r){return V(t),B(S(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return V(t),B(S(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return V(t),B(S(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return V(t),B(S(2).onTimePickerElementMouseLeave())}),Y(3,"span",58),E(),C(4,"span"),A(5,Pwe,2,0,"ng-container",13),J(6),E(),C(7,"button",57),K("keydown",function(r){return V(t),B(S(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return V(t),B(S(2).decrementHour(r))})("keydown.space",function(r){return V(t),B(S(2).decrementHour(r))})("mousedown",function(r){return V(t),B(S(2).onTimePickerElementMouseDown(r,0,-1))})("mouseup",function(r){return V(t),B(S(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return V(t),B(S(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return V(t),B(S(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return V(t),B(S(2).onTimePickerElementMouseLeave())}),Y(8,"span",59),E()(),C(9,"div",60)(10,"span"),J(11),E()(),C(12,"div",61)(13,"button",57),K("keydown",function(r){return V(t),B(S(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return V(t),B(S(2).incrementMinute(r))})("keydown.space",function(r){return V(t),B(S(2).incrementMinute(r))})("mousedown",function(r){return V(t),B(S(2).onTimePickerElementMouseDown(r,1,1))})("mouseup",function(r){return V(t),B(S(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return V(t),B(S(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return V(t),B(S(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return V(t),B(S(2).onTimePickerElementMouseLeave())}),Y(14,"span",58),E(),C(15,"span"),A(16,Owe,2,0,"ng-container",13),J(17),E(),C(18,"button",57),K("keydown",function(r){return V(t),B(S(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return V(t),B(S(2).decrementMinute(r))})("keydown.space",function(r){return V(t),B(S(2).decrementMinute(r))})("mousedown",function(r){return V(t),B(S(2).onTimePickerElementMouseDown(r,1,-1))})("mouseup",function(r){return V(t),B(S(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return V(t),B(S(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return V(t),B(S(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return V(t),B(S(2).onTimePickerElementMouseLeave())}),Y(19,"span",59),E()(),A(20,Nwe,3,1,"div",62),A(21,Lwe,8,2,"div",63),A(22,Fwe,7,1,"div",64),E()}if(2&n){const t=S(2);v(5),w("ngIf",t.currentHour<10),v(1),Ee(t.currentHour),v(5),Ee(t.timeSeparator),v(5),w("ngIf",t.currentMinute<10),v(1),Ee(t.currentMinute),v(3),w("ngIf",t.showSeconds),v(1),w("ngIf",t.showSeconds),v(1),w("ngIf","12"==t.hourFormat)}}const dU=function(n){return[n]};function Bwe(n,e){if(1&n){const t=fe();C(0,"div",68)(1,"button",69),K("keydown",function(r){return V(t),B(S(2).onContainerButtonKeydown(r))})("click",function(r){return V(t),B(S(2).onTodayButtonClick(r))}),E(),C(2,"button",69),K("keydown",function(r){return V(t),B(S(2).onContainerButtonKeydown(r))})("click",function(r){return V(t),B(S(2).onClearButtonClick(r))}),E()()}if(2&n){const t=S(2);v(1),w("label",t.getTranslation("today"))("ngClass",pe(4,dU,t.todayButtonStyleClass)),v(1),w("label",t.getTranslation("clear"))("ngClass",pe(6,dU,t.clearButtonStyleClass))}}function $we(n,e){1&n&&El(0)}const Hwe=function(n,e,t,i,r,s){return{"p-datepicker p-component":!0,"p-datepicker-inline":n,"p-disabled":e,"p-datepicker-timeonly":t,"p-datepicker-multiple-month":i,"p-datepicker-monthpicker":r,"p-datepicker-touch-ui":s}},hU=function(n,e){return{showTransitionParams:n,hideTransitionParams:e}},Uwe=function(n){return{value:"visibleTouchUI",params:n}},zwe=function(n){return{value:"visible",params:n}};function jwe(n,e){if(1&n){const t=fe();C(0,"div",10,11),K("@overlayAnimation.start",function(r){return V(t),B(S().onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){return V(t),B(S().onOverlayAnimationDone(r))})("click",function(r){return V(t),B(S().onOverlayClick(r))}),Vo(2),A(3,lwe,1,0,"ng-container",12),A(4,Mwe,5,3,"ng-container",13),A(5,Vwe,23,8,"div",14),A(6,Bwe,3,8,"div",15),Vo(7,1),A(8,$we,1,0,"ng-container",12),E()}if(2&n){const t=S();yu(t.panelStyleClass),w("ngStyle",t.panelStyle)("ngClass",function w2(n,e,t,i,r,s,o,a,l){const c=Yn()+n,u=W(),d=Gi(u,c,t,i,r,s);return Fo(u,c+4,o,a)||d?Fr(u,c+6,l?e.call(l,t,i,r,s,o,a):e(t,i,r,s,o,a)):function pu(n,e){return n[e]}(u,c+6)}(11,Hwe,t.inline,t.disabled,t.timeOnly,t.numberOfMonths>1,"month"===t.view,t.touchUI))("@overlayAnimation",t.touchUI?pe(21,Uwe,Ws(18,hU,t.showTransitionOptions,t.hideTransitionOptions)):pe(26,zwe,Ws(23,hU,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 Gwe=[[["p-header"]],[["p-footer"]]],Wwe=function(n,e,t,i){return{"p-calendar":!0,"p-calendar-w-btn":n,"p-calendar-timeonly":e,"p-calendar-disabled":t,"p-focus":i}},qwe=["p-header","p-footer"],Ywe={provide:kr,useExisting:lt(()=>cD),multi:!0};let cD=(()=>{class n{constructor(t,i,r,s,o,a){this.el=t,this.renderer=i,this.cd=r,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 i=t||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),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 i=t.split(":"),r=parseInt(i[0]),s=parseInt(i[1]);this.populateYearOptions(r,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 Z0e(){return"pr_id_"+ ++aU}();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=le.getOuterWidth(this.containerViewChild.nativeElement)+"px")))}getTranslation(t){return this.config.getTranslation(t)}populateYearOptions(t,i){this.yearOptions=[];for(let r=t;r<=i;r++)this.yearOptions.push(r)}createWeekDays(){this.weekDays=[];let t=this.getFirstDateOfWeek(),i=this.getTranslation(os.DAY_NAMES_MIN);for(let r=0;r<7;r++)this.weekDays.push(i[t]),t=6==t?0:++t}monthPickerValues(){let t=[];for(let i=0;i<=11;i++)t.push(this.config.getTranslation("monthNamesShort")[i]);return t}yearPickerValues(){let t=[],i=this.currentYear-this.currentYear%10;for(let r=0;r<10;r++)t.push(i+r);return t}createMonths(t,i){this.months=this.months=[];for(let r=0;r<this.numberOfMonths;r++){let s=t+r,o=i;s>11&&(s=s%11-1,o=i+1),this.months.push(this.createMonth(s,o))}}getWeekNumber(t){let i=new Date(t.getTime());i.setDate(i.getDate()+4-(i.getDay()||7));let r=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((r-i.getTime())/864e5)/7)+1}createMonth(t,i){let r=[],s=this.getFirstDayOfMonthIndex(t,i),o=this.getDaysCountInMonth(t,i),a=this.getDaysCountInPrevMonth(t,i),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,i);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:i,today:this.isToday(c,l,t,i),selectable:this.isSelectable(l,t,i,!1)}),l++}else for(let p=0;p<7;p++){if(l>o){let g=this.getNextMonthAndYear(t,i);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:i,today:this.isToday(c,l,t,i),selectable:this.isSelectable(l,t,i,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(f[0].year,f[0].month,f[0].day))),r.push(f)}return{month:t,year:i,dates:r,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,i){!this.disabled&&i.selectable?(this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((r,s)=>!this.isDateEquals(r,i)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),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,i){"month"===this.view?this.onDateSelect(t,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(t,i){"year"===this.view?this.onDateSelect(t,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,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 i=0;i<this.value.length;i++)t+=this.formatDateTime(this.value[i]),i!==this.value.length-1&&(t+=this.multipleSeparator+" ");else if(this.isRangeSelection()&&this.value&&this.value.length){let r=this.value[1];t=this.formatDateTime(this.value[0]),r&&(t+=" "+this.rangeSeparator+" "+this.formatDateTime(r))}this.inputFieldValue=t,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(t){let i=this.keepInvalid?t:null;return this.isValidDate(t)&&(this.timeOnly?i=this.formatTime(t):(i=this.formatDate(t,this.getDateFormat()),this.showTime&&(i+=" "+this.formatTime(t)))),i}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 i=new Date(t.year,t.month,t.day);if(this.showTime&&(i.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond)),this.minDate&&this.minDate>i&&(i=this.minDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.maxDate&&this.maxDate<i&&(i=this.maxDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.isSingleSelection())this.updateModel(i);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,i]:[i]);else if(this.isRangeSelection())if(this.value&&this.value.length){let r=this.value[0],s=this.value[1];!s&&i.getTime()>=r.getTime()?s=i:(r=i,s=null),this.updateModel([r,s])}else this.updateModel([i,null]);this.onSelect.emit(i)}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 i=null;this.value&&(i=this.value.map(r=>this.formatDateTime(r))),this.onModelChange(i)}}getFirstDayOfMonthIndex(t,i){let r=new Date;r.setDate(1),r.setMonth(t),r.setFullYear(i);let s=r.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(t,i){return 32-this.daylightSavingAdjust(new Date(i,t,32)).getDate()}getDaysCountInPrevMonth(t,i){let r=this.getPreviousMonthAndYear(t,i);return this.getDaysCountInMonth(r.month,r.year)}getPreviousMonthAndYear(t,i){let r,s;return 0===t?(r=11,s=i-1):(r=t-1,s=i),{month:r,year:s}}getNextMonthAndYear(t,i){let r,s;return 11===t?(r=0,s=i+1):(r=t+1,s=i),{month:r,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 i=!1;for(let r of this.value)if(i=this.isDateEquals(r,t),i)break;return i}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[i,r]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,t,1);return s>=i&&s<=(r??i)}return!1}isMonthDisabled(t){return!this.isSelectable(1,t,this.currentYear,!1)}isYearSelected(t){if(this.isComparable()){let i=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&i.getFullYear()===t}return!1}isDateEquals(t,i){return!!(t&&t instanceof Date)&&t.getDate()===i.day&&t.getMonth()===i.month&&t.getFullYear()===i.year}isDateBetween(t,i,r){if(t&&i){let o=new Date(r.year,r.month,r.day);return t.getTime()<=o.getTime()&&i.getTime()>=o.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(t,i,r,s){return t.getDate()===i&&t.getMonth()===r&&t.getFullYear()===s}isSelectable(t,i,r,s){let o=!0,a=!0,l=!0,c=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>r||this.minDate.getFullYear()===r&&(this.minDate.getMonth()>i||this.minDate.getMonth()===i&&this.minDate.getDate()>t))&&(o=!1),this.maxDate&&(this.maxDate.getFullYear()<r||this.maxDate.getFullYear()===r&&(this.maxDate.getMonth()<i||this.maxDate.getMonth()===i&&this.maxDate.getDate()<t))&&(a=!1),this.disabledDates&&(l=!this.isDateDisabled(t,i,r)),this.disabledDays&&(c=!this.isDayDisabled(t,i,r)),o&&a&&l&&c)}isDateDisabled(t,i,r){if(this.disabledDates)for(let s of this.disabledDates)if(s.getFullYear()===r&&s.getMonth()===i&&s.getDate()===t)return!0;return!1}isDayDisabled(t,i,r){if(this.disabledDays){let o=new Date(r,i,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,i){this.overlayVisible?this.hideOverlay():(i.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&&(le.getFocusableElements(this.contentViewChild.nativeElement).forEach(i=>i.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(t,i,r){const s=t.currentTarget,o=s.parentElement;switch(t.which){case 40:{s.tabIndex="-1";let a=le.index(o),l=o.parentElement.nextElementSibling;l?le.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=le.index(o),l=o.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];le.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];le.hasClass(l,"p-disabled")||le.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,r);t.preventDefault();break}case 39:{s.tabIndex="-1";let a=o.nextElementSibling;if(a){let l=a.children[0];le.hasClass(l,"p-disabled")?this.navigateToMonth(!1,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,r);t.preventDefault();break}case 13:case 32:this.onDateSelect(t,i),t.preventDefault();break;case 27:this.overlayVisible=!1,t.preventDefault();break;case 9:this.inline||this.trapFocus(t)}}onMonthCellKeydown(t,i){const r=t.currentTarget;switch(t.which){case 38:case 40:{r.tabIndex="-1";var s=r.parentElement.children,o=le.index(r);let a=s[40===t.which?o+3:o-3];a&&(a.tabIndex="0",a.focus()),t.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(t)),t.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(t)),t.preventDefault();break}case 13:this.onMonthSelect(t,i),t.preventDefault();break;case 13:case 32:case 27:this.overlayVisible=!1,t.preventDefault();break;case 9:this.inline||this.trapFocus(t)}}onYearCellKeydown(t,i){const r=t.currentTarget;switch(t.which){case 38:case 40:{r.tabIndex="-1";var s=r.parentElement.children,o=le.index(r);let a=s[40===t.which?o+2:o-2];a&&(a.tabIndex="0",a.focus()),t.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(t)),t.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(t)),t.preventDefault();break}case 13:case 32:this.onYearSelect(t,i),t.preventDefault();break;case 27:this.overlayVisible=!1,t.preventDefault();break;case 9:this.trapFocus(t)}}navigateToMonth(t,i){if(t)if(1===this.numberOfMonths||0===i)this.navigationState={backward:!0},this.navBackward(event);else{let s=le.find(this.contentViewChild.nativeElement.children[i-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||i===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let s=le.findSingle(this.contentViewChild.nativeElement.children[i+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?le.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():le.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let i;i=le.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)"),i&&i.length>0&&(t=i[i.length-1])}else t=le.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 i=null===(t=this.contentViewChild)||void 0===t?void 0:t.nativeElement;let r;if("month"===this.currentView){let s=le.find(i,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),o=le.findSingle(i,".p-monthpicker .p-monthpicker-month.p-highlight");s.forEach(a=>a.tabIndex=-1),r=o||s[0],0===s.length&&le.find(i,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(l=>l.tabIndex=-1)}else if("year"===this.currentView){let s=le.find(i,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),o=le.findSingle(i,".p-yearpicker .p-yearpicker-year.p-highlight");s.forEach(a=>a.tabIndex=-1),r=o||s[0],0===s.length&&le.find(i,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(l=>l.tabIndex=-1)}else if(r=le.findSingle(i,"span.p-highlight"),!r){let s=le.findSingle(i,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");r=s||le.findSingle(i,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}r&&(r.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{r.focus()},1),this.preventFocus=!1)}trapFocus(t){let i=le.getFocusableElements(this.contentViewChild.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);if(t.shiftKey)if(-1==r||0===r)if(this.focusTrap)i[i.length-1].focus();else{if(-1===r)return this.hideOverlay();if(0===r)return}else i[r-1].focus();else if(-1==r||r===i.length-1){if(!this.focusTrap&&-1!=r)return this.hideOverlay();i[0].focus()}else i[r+1].focus()}else i[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,i,r,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()>i||this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()<a||this.maxDate.getHours()===a&&(this.maxDate.getMinutes()<i||this.maxDate.getMinutes()===i&&this.maxDate.getSeconds()<r)))}incrementHour(t){let r=this.currentHour+this.stepHour,s=this.pm;"24"==this.hourFormat?r=r>=24?r-24:r:"12"==this.hourFormat&&(this.currentHour<12&&r>11&&(s=!this.pm),r=r>=13?r-12:r),this.validateTime(r,this.currentMinute,this.currentSecond,s)&&(this.currentHour=r,this.pm=s),t.preventDefault()}onTimePickerElementMouseDown(t,i,r){this.disabled||(this.repeat(t,null,i,r),t.preventDefault())}onTimePickerElementMouseUp(t){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(t,i,r,s){let o=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(t,100,r,s),this.cd.markForCheck()},o),r){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 i=this.currentHour-this.stepHour,r=this.pm;"24"==this.hourFormat?i=i<0?24+i:i:"12"==this.hourFormat&&(12===this.currentHour&&(r=!this.pm),i=i<=0?12+i:i),this.validateTime(i,this.currentMinute,this.currentSecond,r)&&(this.currentHour=i,this.pm=r),t.preventDefault()}incrementMinute(t){let i=this.currentMinute+this.stepMinute;i=i>59?i-60:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),t.preventDefault()}decrementMinute(t){let i=this.currentMinute-this.stepMinute;i=i<0?60+i:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),t.preventDefault()}incrementSecond(t){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),t.preventDefault()}decrementSecond(t){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),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 i=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,i)&&(this.pm=i,this.updateTime()),t.preventDefault()}onUserInput(t){if(!this.isKeydown)return;this.isKeydown=!1;let i=t.target.value;try{let r=this.parseValueFromString(i);this.isValidSelection(r)&&(this.updateModel(r),this.updateUI())}catch{this.updateModel(this.keepInvalid?i:null)}this.filled=null!=i&&i.length,this.onInput.emit(t)}isValidSelection(t){let i=!0;return this.isSingleSelection()?this.isSelectable(t.getDate(),t.getMonth(),t.getFullYear(),!1)||(i=!1):t.every(r=>this.isSelectable(r.getDate(),r.getMonth(),r.getFullYear(),!1))&&this.isRangeSelection()&&(i=t.length>1&&t[1]>t[0]),i}parseValueFromString(t){if(!t||0===t.trim().length)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(t);else if(this.isMultipleSelection()){let r=t.split(this.multipleSeparator);i=[];for(let s of r)i.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let r=t.split(" "+this.rangeSeparator+" ");i=[];for(let s=0;s<r.length;s++)i[s]=this.parseDateTime(r[s].trim())}return i}parseDateTime(t){let i,r=t.split(" ");if(this.timeOnly)i=new Date,this.populateTime(i,r[0],r[1]);else{const s=this.getDateFormat();if(this.showTime){let o="12"==this.hourFormat?r.pop():null,a=r.pop();i=this.parseDate(r.join(" "),s),this.populateTime(i,a,o)}else i=this.parseDate(t,s)}return i}populateTime(t,i,r){if("12"==this.hourFormat&&!r)throw"Invalid Time";this.pm="PM"===r||"pm"===r;let s=this.parseTime(i);t.setHours(s.hour),t.setMinutes(s.minute),t.setSeconds(s.second)}isValidDate(t){return t instanceof Date&&l_.isNotEmpty(t)}updateUI(){let t=this.value;Array.isArray(t)&&(t=t[0]);let i=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:t&&this.isValidDate(t)?t:new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.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?c_.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):c_.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&&c_.clear(t.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):le.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=le.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=le.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=le.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",le.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):le.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),le.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",r=>{this.disableModality()}),document.body.appendChild(this.mask),le.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(le.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 i,t=document.body.children;for(let r=0;r<t.length;r++)if(le.hasClass(t[r],"p-datepicker-mask-scrollblocker")){i=!0;break}i||le.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(os.FIRST_DAY_OF_WEEK)}formatDate(t,i){if(!t)return"";let r;const s=u=>{const d=r+1<i.length&&i.charAt(r+1)===u;return d&&r++,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(r=0;r<i.length;r++)if(c)"'"!==i.charAt(r)||s("'")?l+=i.charAt(r):c=!1;else switch(i.charAt(r)){case"d":l+=o("d",t.getDate(),2);break;case"D":l+=a("D",t.getDay(),this.getTranslation(os.DAY_NAMES_SHORT),this.getTranslation(os.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(os.MONTH_NAMES_SHORT),this.getTranslation(os.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+=i.charAt(r)}return l}formatTime(t){if(!t)return"";let i="",r=t.getHours(),s=t.getMinutes(),o=t.getSeconds();return"12"==this.hourFormat&&r>11&&12!=r&&(r-=12),i+="12"==this.hourFormat&&0===r?12:r<10?"0"+r:r,i+=":",i+=s<10?"0"+s:s,this.showSeconds&&(i+=":",i+=o<10?"0"+o:o),"12"==this.hourFormat&&(i+=t.getHours()>11?" PM":" AM"),i}parseTime(t){let i=t.split(":");if(i.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(i[0]),o=parseInt(i[1]),a=this.showSeconds?parseInt(i[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,i){if(null==i||null==t)throw"Invalid arguments";if(""===(t="object"==typeof t?t.toString():t+""))return null;let r,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=r+1<i.length&&i.charAt(r+1)===y;return T&&r++,T},m=y=>{let T=g(y),I="@"===y?14:"!"===y?20:"y"===y&&T?4:"o"===y?3:2,P=new RegExp("^\\d{"+("y"===y?I:1)+","+I+"}"),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,I)=>{let D=-1,P=g(y)?I:T,j=[];for(let q=0;q<P.length;q++)j.push([q,P[q]]);j.sort((q,z)=>-(q[1].length-z[1].length));for(let q=0;q<j.length;q++){let z=j[q][1];if(t.substr(a,z.length).toLowerCase()===z.toLowerCase()){D=j[q][0],a+=z.length;break}}if(-1!==D)return D+1;throw"Unknown name at position "+a},b=()=>{if(t.charAt(a)!==i.charAt(r))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(d=1),r=0;r<i.length;r++)if(f)"'"!==i.charAt(r)||g("'")?b():f=!1;else switch(i.charAt(r)){case"d":d=m("d");break;case"D":_("D",this.getTranslation(os.DAY_NAMES_SHORT),this.getTranslation(os.DAY_NAMES));break;case"o":h=m("o");break;case"m":u=m("m");break;case"M":u=_("M",this.getTranslation(os.MONTH_NAMES_SHORT),this.getTranslation(os.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 i=new Date,r={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(t,r),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 i=[...this.responsiveOptions].filter(r=>!(!r.breakpoint||!r.numMonths)).sort((r,s)=>-1*r.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let r=0;r<i.length;r++){let{breakpoint:s,numMonths:o}=i[r],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",i=>{this.isOutsideClicked(i)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(i),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 Q0e(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 le.hasClass(t.target,"p-datepicker-prev")||le.hasClass(t.target,"p-datepicker-prev-icon")||le.hasClass(t.target,"p-datepicker-next")||le.hasClass(t.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!le.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&&c_.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return n.\u0275fac=function(t){return new(t||n)(R(Nn),R(zs),R(ku),R(pt),R(rU),R(Y0e))},n.\u0275cmp=Bt({type:n,selectors:[["p-calendar"]],contentQueries:function(t,i,r){if(1&t&&Nb(r,K0e,4),2&t){let s;Yi(s=Ki())&&(i.templates=s)}},viewQuery:function(t,i){if(1&t&&($r(nwe,5),$r(iwe,5),$r(rwe,5)),2&t){let r;Yi(r=Ki())&&(i.containerViewChild=r.first),Yi(r=Ki())&&(i.inputfieldViewChild=r.first),Yi(r=Ki())&&(i.content=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(t,i){2&t&&mu("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focus)("p-calendar-clearable",i.showClear&&!i.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:[yt([Ywe])],ngContentSelectors:qwe,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,i){1&t&&(pb(Gwe),C(0,"span",0,1),A(2,awe,4,17,"ng-template",2),A(3,jwe,9,28,"div",3),E()),2&t&&(yu(i.styleClass),w("ngClass",Eu(6,Wwe,i.showIcon,i.timeOnly,i.disabled,i.focus))("ngStyle",i.style),v(2),w("ngIf",!i.inline),v(1),w("ngIf",i.inline||i.overlayVisible))},dependencies:[Zi,Ji,Jn,d0,ei,twe,X0e],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:[RR("overlayAnimation",[D0("visibleTouchUI",Hr({transform:"translate(-50%,-50%)",opacity:1})),Hu("void => visible",[Hr({opacity:0,transform:"scaleY(0.8)"}),$u("{{showTransitionParams}}",Hr({opacity:1,transform:"*"}))]),Hu("visible => void",[$u("{{hideTransitionParams}}",Hr({opacity:0}))]),Hu("void => visibleTouchUI",[Hr({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),$u("{{showTransitionParams}}")]),Hu("visibleTouchUI => void",[$u("{{hideTransitionParams}}",Hr({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0}),n})(),Kwe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({imports:[Ol,lU,sU,oU,lU,sU]}),n})(),Qwe=(()=>{class n{constructor(t){this.hostEl=t,t.isOutsideClicked=i=>{const r=i.path||i.composedPath&&i.composedPath(),s=i.target.shadowRoot?r[0]:i.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(cD,11))},n.\u0275dir=ye({type:n,selectors:[["","psdCalendar",""]]}),n})();le.getScrollableParents=n=>{let e=[];if(n){let t=le.getParents(n).filter(s=>!(s instanceof ShadowRoot));const i=/(auto|scroll)/,r=s=>{let o=window.getComputedStyle(s,null);return i.test(o.getPropertyValue("overflow"))||i.test(o.getPropertyValue("overflowX"))||i.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=le.findSingle(s,l);c&&r(c)&&e.push(c)}}9!==s.nodeType&&r(s)&&e.push(s)}}return e};let Xwe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({}),n})();function Zwe(n,e){1&n&&(C(0,"h3"),J(1,"Please complete"),E())}function Jwe(n,e){if(1&n&&(C(0,"p",11),J(1),E()),2&n){const t=S(2);v(1),Ee(t.formObj.preMessage)}}function e1e(n,e){if(1&n){const t=fe();C(0,"div")(1,"input",16),K("keyup",function(r){V(t);const s=S(2).index;return B(S(2).onKeyup(r,s))})("ngModelChange",function(r){return V(t),B(S(2).$implicit.value=r)}),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 t1e(n,e){if(1&n){const t=fe();C(0,"div")(1,"textarea",17),K("ngModelChange",function(r){return V(t),B(S(2).$implicit.value=r)}),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 n1e(n,e){if(1&n){const t=fe();C(0,"div")(1,"p-calendar",18),K("ngModelChange",function(r){return V(t),B(S(2).$implicit.value=r)})("onSelect",function(r){V(t);const s=S(2),o=s.$implicit,a=s.index;return B(S(2).onChangeDate(r,o.dataVar,a))}),E()()}if(2&n){const t=S(2).$implicit,i=S(2);v(1),w("minDate",i.minDate)("name",t.dataVar)("ngModel",t.value)("required",t.required)("monthNavigator",!0)("disabled",t.disabled)("yearNavigator",!0)}}function i1e(n,e){if(1&n){const t=fe();C(0,"div")(1,"p-calendar",19),K("ngModelChange",function(r){return V(t),B(S(2).$implicit.value=r)}),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 r1e(n,e){if(1&n&&(C(0,"div")(1,"label",13),J(2),E(),C(3,"div",14),A(4,e1e,2,6,"div",15),A(5,t1e,2,4,"div",15),A(6,n1e,2,7,"div",15),A(7,i1e,2,5,"div",15),E()()),2&n){const t=S().$implicit;v(1),w("for",t.dataVar),v(1),Bo("",t.workedLabel," ",t.required?"*":"",""),v(1),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 s1e(n,e){if(1&n&&(C(0,"div",12),A(1,r1e,8,8,"div",5),E()),2&n){const t=e.$implicit,i=S(2);v(1),w("ngIf","numberChildren"!==t.dataVar||"numberChildren"===t.dataVar&&i.allowChildren)}}function o1e(n,e){if(1&n){const t=fe();C(0,"div",1)(1,"form",2,3)(3,"div",4),A(4,Zwe,2,0,"h3",5),A(5,Jwe,2,1,"p",6),A(6,s1e,2,1,"div",7),E()(),C(7,"div",8)(8,"button",9),K("click",function(){return V(t),B(S().onClose())}),J(9),E(),C(10,"button",10),K("click",function(){V(t);const r=gu(2);return B(S().onSubmit(r))}),J(11),E()()()}if(2&n){const t=gu(2),i=S();v(4),w("ngIf",!i.formObj.preMessage),v(1),w("ngIf",i.formObj.preMessage),v(1),w("ngForOf",i.formObj.inputs),v(2),w("ngStyle",i.backgroundCancel),v(1),Ee(i.translatedText.back),v(1),w("disabled",!t.valid)("ngStyle",i.backgroundSuccess),v(1),Ee(i.translatedText.submit)}}let a1e=(()=>{class n{constructor(t,i,r,s){this.chatService=t,this.debugService=i,this.submitService=r,this.translationsService=s,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=wo([this.chatService.showStructuredInput$,this.chatService.activeLanguage$]).subscribe(([t,i])=>{if(this.translatedText=this.translationsService.translations[i],t){switch(this.debugService.logMode&&console.log(t),this.formObj={...t,inputs:t.inputs.map(r=>{let s=r.label;return r.translations&&r.translations[i]&&(s=r.translations[i]),{...r,workedLabel:s}})},this.populateFields(),this.hasData=!0,i){case"en":this.datePickerOptions.locale="en-US";break;case"af":this.datePickerOptions={...this.datePickerOptions,...q0e};break;case"nl":this.datePickerOptions.locale="nl-NL";break;case"fr":this.datePickerOptions.locale="fr-FR";break;case"de":this.datePickerOptions.locale="de-DE";break;case"es":this.datePickerOptions.locale="es-ES"}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,i,r){if(this.debugService.logMode&&console.log(t,i,r),"checkinDate"===i&&t){const s=this.formObj.inputs.findIndex(o=>"checkOutDate"===o.dataVar);if(s>-1){const o=eU(t,{days:1});this.formObj.inputs[s].value?(By(this.formObj.inputs[s].value,t)&&(this.formObj.inputs[s].value=o),nU(this.formObj.inputs[s].value,t)&&(this.formObj.inputs[s].value=o)):this.formObj.inputs[s].value=o}}if("checkOutDate"===i&&t){const s=this.formObj.inputs.findIndex(o=>"checkinDate"===o.dataVar);s>-1&&this.formObj.inputs[s].value&&(By(t,this.formObj.inputs[s].value)||nU(t,this.formObj.inputs[s].value))&&(this.formObj.inputs[s].value=function h0e(n,e){if(Ge(2,arguments),!e||"object"!==a_(e))return new Date(NaN);var t=e.years?qe(e.years):0,i=e.months?qe(e.months):0,r=e.weeks?qe(e.weeks):0,s=e.days?qe(e.days):0,o=e.hours?qe(e.hours):0,a=e.minutes?qe(e.minutes):0,l=e.seconds?qe(e.seconds):0,u=u0e(d0e(n,i+12*t),s+7*r),f=1e3*(l+60*(a+60*o));return new Date(u.getTime()-f)}(this.formObj.inputs[s].value,{days:1}))}}onKeyup(t,i){const r=this.chatService.getClientId;("3U7FhXtxoR1LhbaBw4OH"===r||"E78oLuo56gxY4uvzUF8u"===r)&&"Space"===t.code&&" "!==this.formObj.inputs[i].value[this.formObj.inputs[i].value.length-1]&&(this.formObj.inputs[i].value+=" ")}onSubmit(t){var i=this;return k(function*(){const r=i.formObj.inputs.reduce((o,a)=>{let l=a.value;if("date"===a.type&&(l=_o(a.value,"yyyy-MM-dd")),"time"===a.type&&(l=_o(a.value,"K:mm b")),null!=a.value)return o+("numberChildren"===a.dataVar?i.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?_o(Mc(new Date(t.value[o])),"yyyy-MM-dd"):"checkOutDate"===o?_o(tU(new Date(t.value[o])),"yyyy-MM-dd"):t.value[o]}),"post"===i.formObj.submit?(i.chatService.addMessage(r,!1),i.submitService.addPost({message:r,data:s,intent:i.formObj.intent,path:i.formObj.path,structuredInput:i.formObj},"roomRAI")):"request"===i.formObj.submit&&(i.chatService.addMessage(r,!1),i.submitService.addRequest({message:r,data:s,intent:i.formObj.intent})),i.onClose()})()}populateFields(){this.formObj.inputs.forEach((t,i)=>{const r=t.dataVar,s=window.sessionStorage.getItem(r);t.value="checkinDate"===r?s?new Date(s):new Date:"checkOutDate"===r?s?new Date(s):eU(new Date,{days:1}):"numberAdults"===r?s||"2":"numberChildren"===r?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(bn),R(is),R(iU),R(ss))},n.\u0275cmp=Bt({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","yearNavigator","ngModelChange","onSelect"],["psdCalendar","","dateFormat","D, dd M yy",3,"name","disabled","ngModel","required","timeOnly","ngModelChange"]],template:function(t,i){1&t&&A(0,o1e,12,8,"div",0),2&t&&w("ngIf",i.hasData)},dependencies:[Ji,Jn,ei,zo,Nu,PH,uh,qA,gH,s_,lD,r_,i_,cD,Qwe],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:0}.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 uD=function(n){return{color:n}};function l1e(n,e){if(1&n){const t=fe();C(0,"button",10),K("click",function(){const s=V(t).$implicit;return B(S(2).onPerformAction(s))}),J(1),E()}if(2&n){const t=e.$implicit,i=S(2);w("ngStyle",pe(2,uD,i.textColor)),v(1),Ee(t.translatedVal)}}function c1e(n,e){if(1&n&&(C(0,"div",9),A(1,l1e,2,4,"button",4),E()),2&n){const t=S();v(1),w("ngForOf",t.secondaryActions)}}function u1e(n,e){if(1&n){const t=fe();C(0,"button",10),K("click",function(){const s=V(t).$implicit;return B(S().onDirectIntent(s))}),J(1),E()}if(2&n){const t=e.$implicit,i=S();w("ngStyle",pe(2,uD,i.textColor)),v(1),Ee(t.translatedVal)}}function d1e(n,e){if(1&n){const t=fe();C(0,"button",11),K("click",function(){const s=V(t).$implicit;return B(S().onPerformAction(s))}),J(1),E()}if(2&n){const t=e.$implicit;v(1),Ee(t.translatedVal)}}const h1e=function(n){return{bounce:n}},f1e=function(n){return{fill:n}};function p1e(n,e){if(1&n){const t=fe();C(0,"div",12),K("click",function(){return V(t),B(S().onExpandSecondary())}),C(1,"div",13),ce(),C(2,"svg",14),Y(3,"path",15),E()(),St(),C(4,"p",16),J(5),E()()}if(2&n){const t=S();w("ngStyle",pe(4,uD,t.textColor)),v(1),w("ngClass",pe(6,h1e,!t.secondaryExpanded)),v(2),w("ngStyle",pe(8,f1e,t.textColor)),v(2),He(" ",t.secondaryExpanded?t.tranlatedText.less:t.tranlatedText.more," ")}}let g1e=(()=>{class n{constructor(t,i,r){this.chatService=t,this.debugService=i,this.translationsService=r,this.coreActions=[],this.secondaryActions=[],this.secondaryExpanded=!1,this.haveRelatedIntents=!1,this.relatedIntents=[],this.relatedIntents$=new vt([]),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=wo([this.chatService.activeLanguage$,this.chatService.botSettingsBS]).subscribe(([t,i])=>{i&&("en"===t?(this.coreActions=i.quickActionButtons.map(r=>({...r,translatedVal:r.publicText})),this.secondaryActions=i.secondaryButtons.map(r=>({...r,translatedVal:r.publicText}))):(this.coreActions=i.quickActionButtons.map(r=>{let s=r.publicText;return r.translations[t]&&""!==r.translations[t]&&(s=r.translations[t]),{...r,translatedVal:s}}),this.secondaryActions=i.secondaryButtons.map(r=>{let s=r.publicText;return r.translations[t]&&""!==r.translations[t]&&(s=r.translations[t]),{...r,translatedVal:s}})),this.textColor=i.backgroundColors[0])}),this.activeLanguageSub=wo([this.chatService.activeLanguage$,this.relatedIntents$]).subscribe(([t,i])=>{this.tranlatedText=this.translationsService.translations[t],this.relatedIntents=i.map("en"===t?r=>({...r,translatedVal:r.name}):r=>{let s=r.name;return r.translations[t]&&""!==r.translations[t]&&(s=r.translations[t]),{...r,translatedVal:s}}),this.haveRelatedIntents=i.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 i={...t.structuredInput,preMessage:t.preText,intent:t.dialogflowId};this.chatService.showStructuredInput$.next(i)}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(bn),R(is),R(ss))},n.\u0275cmp=Bt({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"]],template:function(t,i){1&t&&(C(0,"div",0),K("resized",function(s){return i.onResized(s)}),C(1,"div",1),A(2,c1e,2,1,"div",2),C(3,"div",3),A(4,u1e,2,4,"button",4),E()(),C(5,"div",5)(6,"div",6),A(7,d1e,2,1,"button",7),E(),A(8,p1e,6,10,"div",8),E()()),2&t&&(v(2),w("ngIf",i.secondaryExpanded),v(1),w("hidden",!i.haveRelatedIntents),v(1),w("ngForOf",i.relatedIntents),v(1),w("hidden",0===i.coreActions.length),v(2),w("ngForOf",i.coreActions),v(1),w("ngIf",i.secondaryActions.length>0))},dependencies:[Zi,Ji,Jn,ei,XH],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:40px}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .core-actions[_ngcontent-%COMP%]{width:calc(100% - 45px);display:inline-flex;justify-content:space-evenly;height:40px;vertical-align:super;font-family:Roboto,sans-serif}.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}[_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 m1e(n,e){if(1&n&&(C(0,"div",3)(1,"div"),J(2),E()()),2&n){const t=S();v(2),Ee(t.preview.url)}}function y1e(n,e){if(1&n&&(C(0,"div",9),Y(1,"img",10),E()),2&n){const t=S(2);v(1),w("src",t.preview.image,On)}}const _1e=function(n){return{"no-image":n}};function v1e(n,e){if(1&n&&(C(0,"div",4),A(1,y1e,2,1,"div",5),C(2,"div",6)(3,"h3",7),J(4),E(),C(5,"p",8),J(6),E()()()),2&n){const t=S();v(1),w("ngIf",t.preview.image),v(1),w("ngClass",pe(4,_1e,!t.preview.image)),v(2),Ee(t.preview.title),v(2),Ee(t.preview.description)}}let b1e=(()=>{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=Bt({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_just_link",4,"ngIf"],["class","gc-preview-container",4,"ngIf"],[1,"gc_just_link"],[1,"gc-preview-container"],["class","gc-image",4,"ngIf"],[1,"gc-text-container",3,"ngClass"],[1,"gc-header"],[1,"gc-description"],[1,"gc-image"],[3,"src"]],template:function(t,i){1&t&&(C(0,"a",0),A(1,m1e,3,1,"div",1),A(2,v1e,7,6,"div",2),E()),2&t&&(w("href",i.preview.url,On),v(1),w("ngIf",""===i.preview.title),v(1),w("ngIf",""!=i.preview.title))},dependencies:[Zi,Jn],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})(),w1e=(()=>{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(bn))},n.\u0275cmp=Bt({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,i){1&t&&(C(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),Y(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 fU(n){return null!==n&&"object"==typeof n&&"constructor"in n&&n.constructor===Object}function dD(n={},e={}){Object.keys(e).forEach(t=>{typeof n[t]>"u"?n[t]=e[t]:fU(e[t])&&fU(n[t])&&Object.keys(e[t]).length>0&&dD(n[t],e[t])})}const pU={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 Vi(){const n=typeof document<"u"?document:{};return dD(n,pU),n}const S1e={document:pU,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 wn(){const n=typeof window<"u"?window:{};return dD(n,S1e),n}class To extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function C1e(n){const e=n.__proto__;Object.defineProperty(n,"__proto__",{get:()=>e,set(t){e.__proto__=t}})}(this))}}function gh(n=[]){const e=[];return n.forEach(t=>{Array.isArray(t)?e.push(...gh(t)):e.push(t)}),e}function gU(n,e){return Array.prototype.filter.call(n,e)}function Me(n,e){const t=wn(),i=Vi();let r=[];if(!e&&n instanceof To)return n;if(!n)return new To(r);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=i.createElement(o);a.innerHTML=s;for(let l=0;l<a.childNodes.length;l+=1)r.push(a.childNodes[l])}else r=function x1e(n,e){if("string"!=typeof n)return[n];const t=[],i=e.querySelectorAll(n);for(let r=0;r<i.length;r+=1)t.push(i[r]);return t}(n.trim(),e||i)}else if(n.nodeType||n===t||n===i)r.push(n);else if(Array.isArray(n)){if(n instanceof To)return n;r=n}return new To(function E1e(n){const e=[];for(let t=0;t<n.length;t+=1)-1===e.indexOf(n[t])&&e.push(n[t]);return e}(r))}Me.fn=To.prototype;const cSe="resize scroll".split(" ");function Ft(n){return function e(...t){if(typeof t[0]>"u"){for(let i=0;i<this.length;i+=1)cSe.indexOf(n)<0&&(n in this[i]?this[i][n]():Me(this[i]).trigger(n));return this}return this.on(n,...t)}}Ft("click"),Ft("blur"),Ft("focus"),Ft("focusin"),Ft("focusout"),Ft("keyup"),Ft("keydown"),Ft("keypress"),Ft("submit"),Ft("change"),Ft("mousedown"),Ft("mousemove"),Ft("mouseup"),Ft("mouseenter"),Ft("mouseleave"),Ft("mouseout"),Ft("mouseover"),Ft("touchstart"),Ft("touchend"),Ft("touchmove"),Ft("resize"),Ft("scroll");const mU={addClass:function I1e(...n){const e=gh(n.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.add(...e)}),this},removeClass:function A1e(...n){const e=gh(n.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.remove(...e)}),this},hasClass:function k1e(...n){const e=gh(n.map(t=>t.split(" ")));return gU(this,t=>e.filter(i=>t.classList.contains(i)).length>0).length>0},toggleClass:function D1e(...n){const e=gh(n.map(t=>t.split(" ")));this.forEach(t=>{e.forEach(i=>{t.classList.toggle(i)})})},attr:function M1e(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 i in n)this[t][i]=n[i],this[t].setAttribute(i,n[i]);return this},removeAttr:function P1e(n){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(n);return this},transform:function O1e(n){for(let e=0;e<this.length;e+=1)this[e].style.transform=n;return this},transition:function N1e(n){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof n?`${n}ms`:n;return this},on:function R1e(...n){let[e,t,i,r]=n;function s(c){const u=c.target;if(!u)return;const d=c.target.dom7EventData||[];if(d.indexOf(c)<0&&d.unshift(c),Me(u).is(t))i.apply(u,d);else{const h=Me(u).parents();for(let f=0;f<h.length;f+=1)Me(h[f]).is(t)&&i.apply(h[f],d)}}function o(c){const u=c&&c.target&&c.target.dom7EventData||[];u.indexOf(c)<0&&u.unshift(c),i.apply(this,u)}"function"==typeof n[1]&&([e,i,r]=n,t=void 0),r||(r=!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:i,proxyListener:s}),u.addEventListener(d,s,r)}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:i,proxyListener:o}),u.addEventListener(d,o,r)}}return this},off:function L1e(...n){let[e,t,i,r]=n;"function"==typeof n[1]&&([e,i,r]=n,t=void 0),r||(r=!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];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(c.removeEventListener(a,h.proxyListener,r),u.splice(d,1)):i||(c.removeEventListener(a,h.proxyListener,r),u.splice(d,1))}}}return this},trigger:function F1e(...n){const e=wn(),t=n[0].split(" "),i=n[1];for(let r=0;r<t.length;r+=1){const s=t[r];for(let o=0;o<this.length;o+=1){const a=this[o];if(e.CustomEvent){const l=new e.CustomEvent(s,{detail:i,bubbles:!0,cancelable:!0});a.dom7EventData=n.filter((c,u)=>u>0),a.dispatchEvent(l),a.dom7EventData=[],delete a.dom7EventData}}}return this},transitionEnd:function V1e(n){const e=this;return n&&e.on("transitionend",function t(i){i.target===this&&(n.call(this,i),e.off("transitionend",t))}),this},outerWidth:function B1e(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 $1e(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 U1e(){const n=wn();return this[0]?n.getComputedStyle(this[0],null):{}},offset:function H1e(){if(this.length>0){const n=wn(),e=Vi(),t=this[0],i=t.getBoundingClientRect(),r=e.body;return{top:i.top+(t===n?n.scrollY:t.scrollTop)-(t.clientTop||r.clientTop||0),left:i.left+(t===n?n.scrollX:t.scrollLeft)-(t.clientLeft||r.clientLeft||0)}}return null},css:function z1e(n,e){const t=wn();let i;if(1===arguments.length){if("string"!=typeof n){for(i=0;i<this.length;i+=1)for(const r in n)this[i].style[r]=n[r];return this}if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(n)}if(2===arguments.length&&"string"==typeof n){for(i=0;i<this.length;i+=1)this[i].style[n]=e;return this}return this},each:function j1e(n){return n?(this.forEach((e,t)=>{n.apply(e,[e,t])}),this):this},html:function W1e(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 q1e(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 Y1e(n){const e=wn(),t=Vi(),i=this[0];let r,s;if(!i||typeof n>"u")return!1;if("string"==typeof n){if(i.matches)return i.matches(n);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(n);if(i.msMatchesSelector)return i.msMatchesSelector(n);for(r=Me(n),s=0;s<r.length;s+=1)if(r[s]===i)return!0;return!1}if(n===t)return i===t;if(n===e)return i===e;if(n.nodeType||n instanceof To){for(r=n.nodeType?[n]:n,s=0;s<r.length;s+=1)if(r[s]===i)return!0;return!1}return!1},index:function K1e(){let e,n=this[0];if(n){for(e=0;null!==(n=n.previousSibling);)1===n.nodeType&&(e+=1);return e}},eq:function Q1e(n){if(typeof n>"u")return this;const e=this.length;if(n>e-1)return Me([]);if(n<0){const t=e+n;return Me(t<0?[]:[this[t]])}return Me([this[n]])},append:function X1e(...n){let e;const t=Vi();for(let i=0;i<n.length;i+=1){e=n[i];for(let r=0;r<this.length;r+=1)if("string"==typeof e){const s=t.createElement("div");for(s.innerHTML=e;s.firstChild;)this[r].appendChild(s.firstChild)}else if(e instanceof To)for(let s=0;s<e.length;s+=1)this[r].appendChild(e[s]);else this[r].appendChild(e)}return this},prepend:function Z1e(n){const e=Vi();let t,i;for(t=0;t<this.length;t+=1)if("string"==typeof n){const r=e.createElement("div");for(r.innerHTML=n,i=r.childNodes.length-1;i>=0;i-=1)this[t].insertBefore(r.childNodes[i],this[t].childNodes[0])}else if(n instanceof To)for(i=0;i<n.length;i+=1)this[t].insertBefore(n[i],this[t].childNodes[0]);else this[t].insertBefore(n,this[t].childNodes[0]);return this},next:function J1e(n){return this.length>0?n?this[0].nextElementSibling&&Me(this[0].nextElementSibling).is(n)?Me([this[0].nextElementSibling]):Me([]):Me(this[0].nextElementSibling?[this[0].nextElementSibling]:[]):Me([])},nextAll:function eSe(n){const e=[];let t=this[0];if(!t)return Me([]);for(;t.nextElementSibling;){const i=t.nextElementSibling;n?Me(i).is(n)&&e.push(i):e.push(i),t=i}return Me(e)},prev:function tSe(n){if(this.length>0){const e=this[0];return n?e.previousElementSibling&&Me(e.previousElementSibling).is(n)?Me([e.previousElementSibling]):Me([]):Me(e.previousElementSibling?[e.previousElementSibling]:[])}return Me([])},prevAll:function nSe(n){const e=[];let t=this[0];if(!t)return Me([]);for(;t.previousElementSibling;){const i=t.previousElementSibling;n?Me(i).is(n)&&e.push(i):e.push(i),t=i}return Me(e)},parent:function iSe(n){const e=[];for(let t=0;t<this.length;t+=1)null!==this[t].parentNode&&(n?Me(this[t].parentNode).is(n)&&e.push(this[t].parentNode):e.push(this[t].parentNode));return Me(e)},parents:function rSe(n){const e=[];for(let t=0;t<this.length;t+=1){let i=this[t].parentNode;for(;i;)n?Me(i).is(n)&&e.push(i):e.push(i),i=i.parentNode}return Me(e)},closest:function sSe(n){let e=this;return typeof n>"u"?Me([]):(e.is(n)||(e=e.parents(n).eq(0)),e)},find:function oSe(n){const e=[];for(let t=0;t<this.length;t+=1){const i=this[t].querySelectorAll(n);for(let r=0;r<i.length;r+=1)e.push(i[r])}return Me(e)},children:function aSe(n){const e=[];for(let t=0;t<this.length;t+=1){const i=this[t].children;for(let r=0;r<i.length;r+=1)(!n||Me(i[r]).is(n))&&e.push(i[r])}return Me(e)},filter:function G1e(n){return Me(gU(this,n))},remove:function lSe(){for(let n=0;n<this.length;n+=1)this[n].parentNode&&this[n].parentNode.removeChild(this[n]);return this}};Object.keys(mU).forEach(n=>{Object.defineProperty(Me.fn,n,{value:mU[n],writable:!0})});const Xe=Me;function hD(n,e=0){return setTimeout(n,e)}function mh(){return Date.now()}function u_(n){return"object"==typeof n&&null!==n&&n.constructor&&"Object"===Object.prototype.toString.call(n).slice(8,-1)}function fSe(n){return typeof window<"u"&&typeof window.HTMLElement<"u"?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType)}function Bi(...n){const e=Object(n[0]),t=["__proto__","constructor","prototype"];for(let i=1;i<n.length;i+=1){const r=n[i];if(null!=r&&!fSe(r)){const s=Object.keys(Object(r)).filter(o=>t.indexOf(o)<0);for(let o=0,a=s.length;o<a;o+=1){const l=s[o],c=Object.getOwnPropertyDescriptor(r,l);void 0!==c&&c.enumerable&&(u_(e[l])&&u_(r[l])?r[l].__swiper__?e[l]=r[l]:Bi(e[l],r[l]):!u_(e[l])&&u_(r[l])?(e[l]={},r[l].__swiper__?e[l]=r[l]:Bi(e[l],r[l])):e[l]=r[l])}}}return e}function d_(n,e,t){n.style.setProperty(e,t)}function yU({swiper:n,targetPosition:e,side:t}){const i=wn(),r=-n.translate;let o,s=null;const a=n.params.speed;n.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(n.cssModeFrameID);const l=e>r?"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=r+h*(e-r);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 i.cancelAnimationFrame(n.cssModeFrameID);n.cssModeFrameID=i.requestAnimationFrame(u)};u()}let fD,pD,gD;function _U(){return fD||(fD=function pSe(){const n=wn(),e=Vi();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in n||n.DocumentTouch&&e instanceof n.DocumentTouch),passiveListener:function(){let i=!1;try{const r=Object.defineProperty({},"passive",{get(){i=!0}});n.addEventListener("testPassiveListener",null,r)}catch{}return i}(),gestures:"ongesturestart"in n}}()),fD}const wSe={on(n,e,t){const i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof e)return i;const r=t?"unshift":"push";return n.split(" ").forEach(s=>{i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][r](e)}),i},once(n,e,t){const i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof e)return i;function r(...s){i.off(n,r),r.__emitterProxy&&delete r.__emitterProxy,e.apply(i,s)}return r.__emitterProxy=e,i.on(n,r,t)},onAny(n,e){const t=this;if(!t.eventsListeners||t.destroyed||"function"!=typeof n)return t;const i=e?"unshift":"push";return t.eventsAnyListeners.indexOf(n)<0&&t.eventsAnyListeners[i](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(i=>{typeof e>"u"?t.eventsListeners[i]=[]:t.eventsListeners[i]&&t.eventsListeners[i].forEach((r,s)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&t.eventsListeners[i].splice(s,1)})}),t},emit(...n){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,i,r;return"string"==typeof n[0]||Array.isArray(n[0])?(t=n[0],i=n.slice(1,n.length),r=e):(t=n[0].events,i=n[0].data,r=n[0].context||e),i.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(o=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(a=>{a.apply(r,[o,...i])}),e.eventsListeners&&e.eventsListeners[o]&&e.eventsListeners[o].forEach(a=>{a.apply(r,i)})}),e}},MSe={updateSize:function SSe(){const n=this;let e,t;const i=n.$el;e=typeof n.params.width<"u"&&null!==n.params.width?n.params.width:i[0].clientWidth,t=typeof n.params.height<"u"&&null!==n.params.height?n.params.height:i[0].clientHeight,!(0===e&&n.isHorizontal()||0===t&&n.isVertical())&&(e=e-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),t=t-parseInt(i.css("padding-top")||0,10)-parseInt(i.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 CSe(){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 i=n.params,{$wrapperEl:r,size:s,rtlTranslate:o,wrongRTL:a}=n,l=n.virtual&&i.virtual.enabled,c=l?n.virtual.slides.length:n.slides.length,u=r.children(`.${n.params.slideClass}`),d=l?n.virtual.slides.length:u.length;let h=[];const f=[],p=[];let g=i.slidesOffsetBefore;"function"==typeof g&&(g=i.slidesOffsetBefore.call(n));let m=i.slidesOffsetAfter;"function"==typeof m&&(m=i.slidesOffsetAfter.call(n));const _=n.snapGrid.length,b=n.slidesGrid.length;let y=i.spaceBetween,T=-g,I=0,D=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:""}),i.centeredSlides&&i.cssMode&&(d_(n.wrapperEl,"--swiper-centered-offset-before",""),d_(n.wrapperEl,"--swiper-centered-offset-after",""));const P=i.grid&&i.grid.rows>1&&n.grid;let j;P&&n.grid.initSlides(d);const q="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(z=>typeof i.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"===i.slidesPerView){q&&(u[z].style[e("width")]="");const M=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"),i.roundLengths)j=n.isHorizontal()?O.outerWidth(!0):O.outerHeight(!0);else{const re=t(M,"width"),x=t(M,"padding-left"),H=t(M,"padding-right"),U=t(M,"margin-left"),se=t(M,"margin-right"),ge=M.getPropertyValue("box-sizing");if(ge&&"border-box"===ge)j=re+U+se;else{const{clientWidth:nt,offsetWidth:ut}=O[0];j=re+x+H+U+se+(ut-nt)}}L&&(O[0].style.transform=L),ee&&(O[0].style.webkitTransform=ee),i.roundLengths&&(j=Math.floor(j))}else j=(s-(i.slidesPerView-1)*y)/i.slidesPerView,i.roundLengths&&(j=Math.floor(j)),u[z]&&(u[z].style[e("width")]=`${j}px`);u[z]&&(u[z].swiperSlideSize=j),p.push(j),i.centeredSlides?(T=T+j/2+I/2+y,0===I&&0!==z&&(T=T-s/2-y),0===z&&(T=T-s/2-y),Math.abs(T)<.001&&(T=0),i.roundLengths&&(T=Math.floor(T)),D%i.slidesPerGroup==0&&h.push(T),f.push(T)):(i.roundLengths&&(T=Math.floor(T)),(D-Math.min(n.params.slidesPerGroupSkip,D))%n.params.slidesPerGroup==0&&h.push(T),f.push(T),T=T+j+y),n.virtualSize+=j+y,I=j,D+=1}}if(n.virtualSize=Math.max(n.virtualSize,s)+m,o&&a&&("slide"===i.effect||"coverflow"===i.effect)&&r.css({width:`${n.virtualSize+i.spaceBetween}px`}),i.setWrapperSize&&r.css({[e("width")]:`${n.virtualSize+i.spaceBetween}px`}),P&&n.grid.updateWrapperSize(j,h,e),!i.centeredSlides){const z=[];for(let O=0;O<h.length;O+=1){let M=h[O];i.roundLengths&&(M=Math.floor(M)),h[O]<=n.virtualSize-s&&z.push(M)}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!==i.spaceBetween){const z=n.isHorizontal()&&o?"marginLeft":e("marginRight");u.filter((O,M)=>!i.cssMode||M!==u.length-1).css({[z]:`${y}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let z=0;p.forEach(M=>{z+=M+(i.spaceBetween?i.spaceBetween:0)}),z-=i.spaceBetween;const O=z-s;h=h.map(M=>M<0?-g:M>O?O+m:M)}if(i.centerInsufficientSlides){let z=0;if(p.forEach(O=>{z+=O+(i.spaceBetween?i.spaceBetween:0)}),z-=i.spaceBetween,z<s){const O=(s-z)/2;h.forEach((M,L)=>{h[L]=M-O}),f.forEach((M,L)=>{f[L]=M+O})}}if(Object.assign(n,{slides:u,snapGrid:h,slidesGrid:f,slidesSizesGrid:p}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){d_(n.wrapperEl,"--swiper-centered-offset-before",-h[0]+"px"),d_(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(M=>M+z),n.slidesGrid=n.slidesGrid.map(M=>M+O)}if(d!==c&&n.emit("slidesLengthChange"),h.length!==_&&(n.params.watchOverflow&&n.checkOverflow(),n.emit("snapGridLengthChange")),f.length!==b&&n.emit("slidesGridLengthChange"),i.watchSlidesProgress&&n.updateSlidesOffset(),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const z=`${i.containerModifierClass}backface-hidden`,O=n.$el.hasClass(z);d<=i.maxBackfaceHiddenSlides?O||n.$el.addClass(z):O&&n.$el.removeClass(z)}},updateAutoHeight:function ESe(n){const e=this,t=[],i=e.virtual&&e.params.virtual.enabled;let s,r=0;"number"==typeof n?e.setTransition(n):!0===n&&e.setTransition(e.params.speed);const o=a=>i?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||Xe([])).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&&!i)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;r=a>r?a:r}(r||0===r)&&e.$wrapperEl.css("height",`${r}px`)},updateSlidesOffset:function TSe(){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 xSe(n=this&&this.translate||0){const e=this,t=e.params,{slides:i,rtlTranslate:r,snapGrid:s}=e;if(0===i.length)return;typeof i[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let o=-n;r&&(o=n),i.removeClass(t.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let a=0;a<i.length;a+=1){const l=i[a];let c=l.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(c-=i[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),i.eq(a).addClass(t.slideVisibleClass)),l.progress=r?-u:u,l.originalProgress=r?-d:d}e.visibleSlides=Xe(e.visibleSlides)},updateProgress:function ISe(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,i=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:s,isEnd:o}=e;const a=s,l=o;0===i?(r=0,s=!0,o=!0):(r=(n-e.minTranslate())/i,s=r<=0,o=r>=1),Object.assign(e,{progress:r,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",r)},updateSlidesClasses:function ASe(){const n=this,{slides:e,params:t,$wrapperEl:i,activeIndex:r,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="${r}"]`):e.eq(r),a.addClass(t.slideActiveClass),t.loop&&(a.hasClass(t.slideDuplicateClass)?i.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${s}"]`).addClass(t.slideDuplicateActiveClass):i.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)?i.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass):i.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass),c.hasClass(t.slideDuplicateClass)?i.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass):i.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass)),n.emitSlidesClasses()},updateActiveIndex:function DSe(n){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:i,snapGrid:r,params:s,activeIndex:o,realIndex:a,snapIndex:l}=e;let u,c=n;if(typeof c>"u"){for(let h=0;h<i.length;h+=1)typeof i[h+1]<"u"?t>=i[h]&&t<i[h+1]-(i[h+1]-i[h])/2?c=h:t>=i[h]&&t<i[h+1]&&(c=h+1):t>=i[h]&&(c=h);s.normalizeSlideIndex&&(c<0||typeof c>"u")&&(c=0)}if(r.indexOf(t)>=0)u=r.indexOf(t);else{const h=Math.min(s.slidesPerGroupSkip,c);u=h+Math.floor((c-h)/s.slidesPerGroup)}if(u>=r.length&&(u=r.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 kSe(n){const e=this,t=e.params,i=Xe(n).closest(`.${t.slideClass}`)[0];let s,r=!1;if(i)for(let o=0;o<e.slides.length;o+=1)if(e.slides[o]===i){r=!0,s=o;break}if(!i||!r)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=i,e.clickedIndex=e.virtual&&e.params.virtual.enabled?parseInt(Xe(i).attr("data-swiper-slide-index"),10):s,t.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}},FSe={getTranslate:function PSe(n=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:i,translate:r,$wrapperEl:s}=this;if(t.virtualTranslate)return i?-r:r;if(t.cssMode)return r;let o=function hSe(n,e="x"){const t=wn();let i,r,s;const o=function dSe(n){const e=wn();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?(r=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new t.WebKitCSSMatrix("none"===r?"":r)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=s.toString().split(",")),"x"===e&&(r=t.WebKitCSSMatrix?s.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===e&&(r=t.WebKitCSSMatrix?s.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}(s[0],n);return i&&(o=-o),o||0},setTranslate:function OSe(n,e){const t=this,{rtlTranslate:i,params:r,$wrapperEl:s,wrapperEl:o,progress:a}=t;let d,l=0,c=0;t.isHorizontal()?l=i?-n:n:c=n,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),r.cssMode?o[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-l:-c:r.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 NSe(){return-this.snapGrid[0]},maxTranslate:function RSe(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function LSe(n=0,e=this.params.speed,t=!0,i=!0,r){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=i&&n>l?l:i&&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 yU({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,r),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(u),t&&(s.emit("beforeTransitionStart",e,r),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 vU({swiper:n,runCallbacks:e,direction:t,step:i}){const{activeIndex:r,previousIndex:s}=n;let o=t;if(o||(o=r>s?"next":r<s?"prev":"reset"),n.emit(`transition${i}`),e&&r!==s){if("reset"===o)return void n.emit(`slideResetTransition${i}`);n.emit(`slideChangeTransition${i}`),n.emit("next"===o?`slideNextTransition${i}`:`slidePrevTransition${i}`)}}const HSe={setTransition:function VSe(n,e){const t=this;t.params.cssMode||t.$wrapperEl.transition(n),t.emit("setTransition",n,e)},transitionStart:function BSe(n=!0,e){const t=this,{params:i}=t;i.cssMode||(i.autoHeight&&t.updateAutoHeight(),vU({swiper:t,runCallbacks:n,direction:e,step:"Start"}))},transitionEnd:function $Se(n=!0,e){const t=this,{params:i}=t;t.animating=!1,!i.cssMode&&(t.setTransition(0),vU({swiper:t,runCallbacks:n,direction:e,step:"End"}))}},KSe={slideTo:function USe(n=0,e=this.params.speed,t=!0,i,r){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&&!i&&!r)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*_),I=Math.floor(100*c[y]),D=Math.floor(100*c[y+1]);typeof c[y+1]<"u"?T>=I&&T<D-(D-I)/2?o=y:T>=I&&T<D&&(o=y+1):T>=I&&(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 I=s.virtual&&s.params.virtual.enabled;I&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),f[y?"scrollLeft":"scrollTop"]=T,I&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1})}else{if(!s.support.smoothScroll)return yU({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,i),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 zSe(n=0,e=this.params.speed,t=!0,i){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 r=this;let s=n;return r.params.loop&&(s+=r.loopedSlides),r.slideTo(s,e,t,i)},slideNext:function jSe(n=this.params.speed,e=!0,t){const i=this,{animating:r,enabled:s,params:o}=i;if(!s)return i;let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<o.slidesPerGroupSkip?1:a;if(o.loop){if(r&&o.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}return i.slideTo(o.rewind&&i.isEnd?0:i.activeIndex+l,n,e,t)},slidePrev:function GSe(n=this.params.speed,e=!0,t){const i=this,{params:r,animating:s,snapGrid:o,slidesGrid:a,rtlTranslate:l,enabled:c}=i;if(!c)return i;if(r.loop){if(s&&r.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}function d(m){return m<0?-Math.floor(Math.abs(m)):Math.floor(m)}const h=d(l?i.translate:-i.translate),f=o.map(m=>d(m));let p=o[f.indexOf(h)-1];if(typeof p>"u"&&r.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=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(g=g-i.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.slideTo(r.rewind&&i.isBeginning?i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1:g,n,e,t)},slideReset:function WSe(n=this.params.speed,e=!0,t){return this.slideTo(this.activeIndex,n,e,t)},slideToClosest:function qSe(n=this.params.speed,e=!0,t,i=.5){const r=this;let s=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){const c=r.snapGrid[a];l-c>(r.snapGrid[a+1]-c)*i&&(s+=r.params.slidesPerGroup)}else{const c=r.snapGrid[a-1];l-c<=(r.snapGrid[a]-c)*i&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,n,e,t)},slideToClickedSlide:function YSe(){const n=this,{params:e,$wrapperEl:t}=n,i="auto"===e.slidesPerView?n.slidesPerViewDynamic():e.slidesPerView;let s,r=n.clickedIndex;if(e.loop){if(n.animating)return;s=parseInt(Xe(n.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?r<n.loopedSlides-i/2||r>n.slides.length-n.loopedSlides+i/2?(n.loopFix(),r=t.children(`.${e.slideClass}[data-swiper-slide-index="${s}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),hD(()=>{n.slideTo(r)})):n.slideTo(r):r>n.slides.length-i?(n.loopFix(),r=t.children(`.${e.slideClass}[data-swiper-slide-index="${s}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),hD(()=>{n.slideTo(r)})):n.slideTo(r)}else n.slideTo(r)}},JSe={loopCreate:function QSe(){const n=this,e=Vi(),{params:t,$wrapperEl:i}=n,r=i.children().length>0?Xe(i.children()[0].parentNode):i;r.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let s=r.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=Xe(e.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);r.append(u)}s=r.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)=>{Xe(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)r.append(Xe(a[l].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let l=o.length-1;l>=0;l-=1)r.prepend(Xe(o[l].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function XSe(){const n=this;n.emit("beforeLoopFix");const{activeIndex:e,slides:t,loopedSlides:i,allowSlidePrev:r,allowSlideNext:s,snapGrid:o,rtlTranslate:a}=n;let l;n.allowSlidePrev=!0,n.allowSlideNext=!0;const u=-o[e]-n.getTranslate();e<i?(l=t.length-3*i+e,l+=i,n.slideTo(l,0,!1,!0)&&0!==u&&n.setTranslate((a?-n.translate:n.translate)-u)):e>=t.length-i&&(l=-t.length+e+i,l+=i,n.slideTo(l,0,!1,!0)&&0!==u&&n.setTranslate((a?-n.translate:n.translate)-u)),n.allowSlidePrev=r,n.allowSlideNext=s,n.emit("loopFix")},loopDestroy:function ZSe(){const{$wrapperEl:e,params:t,slides:i}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}};function rCe(n){const e=this,t=Vi(),i=wn(),r=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=Xe(l.target);if("wrapper"===s.touchEventsTarget&&!c.closest(e.wrapperEl).length||(r.isTouchEvent="touchstart"===l.type,!r.isTouchEvent&&"which"in l&&3===l.which)||!r.isTouchEvent&&"button"in l&&l.button>0||r.isTouched&&r.isMoved)return;const u=!!s.noSwipingClass&&""!==s.noSwipingClass,d=n.composedPath?n.composedPath():n.path;u&&l.target&&l.target.shadowRoot&&d&&(c=Xe(d[0]));const h=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`;if(s.noSwiping&&(l.target&&l.target.shadowRoot?function iCe(n,e=this){return function t(i){if(!i||i===Vi()||i===wn())return null;i.assignedSlot&&(i=i.assignedSlot);const r=i.closest(n);return r||i.getRootNode?r||t(i.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>=i.innerWidth-_)){if("prevent"!==m)return;n.preventDefault()}if(Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=g,r.touchStartTime=mh(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==l.type){let b=!0;c.is(r.focusableElements)&&(b=!1,"SELECT"===c[0].nodeName&&(r.isTouched=!1)),t.activeElement&&Xe(t.activeElement).is(r.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 sCe(n){const e=Vi(),t=this,i=t.touchEventsData,{params:r,touches:s,rtlTranslate:o,enabled:a}=t;if(!a)return;let l=n;if(l.originalEvent&&(l=l.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&t.emit("touchMoveOpposite",l));if(i.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 Xe(l.target).is(i.focusableElements)||(t.allowClick=!1),void(i.isTouched&&(Object.assign(s,{startX:u,startY:d,currentX:u,currentY:d}),i.touchStartTime=mh()));if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(t.isVertical()){if(d<s.startY&&t.translate<=t.maxTranslate()||d>s.startY&&t.translate>=t.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(u<s.startX&&t.translate<=t.maxTranslate()||u>s.startX&&t.translate>=t.minTranslate())return;if(i.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&Xe(l.target).is(i.focusableElements))return i.isMoved=!0,void(t.allowClick=!1);if(i.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 i.isScrolling>"u"){let _;t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:h*h+f*f>=25&&(_=180*Math.atan2(Math.abs(f),Math.abs(h))/Math.PI,i.isScrolling=t.isHorizontal()?_>r.touchAngle:90-_>r.touchAngle)}if(i.isScrolling&&t.emit("touchMoveOpposite",l),typeof i.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(i.startMoving=!0),i.isScrolling)return void(i.isTouched=!1);if(!i.startMoving)return;t.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation(),i.isMoved||(r.loop&&!r.cssMode&&t.loopFix(),i.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,r.grabCursor&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",l)),t.emit("sliderMove",l),i.isMoved=!0;let p=t.isHorizontal()?h:f;s.diff=p,p*=r.touchRatio,o&&(p=-p),t.swipeDirection=p>0?"prev":"next",i.currentTranslate=p+i.startTranslate;let g=!0,m=r.resistanceRatio;if(r.touchReleaseOnEdges&&(m=0),p>0&&i.currentTranslate>t.minTranslate()?(g=!1,r.resistance&&(i.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+i.startTranslate+p)**m)):p<0&&i.currentTranslate<t.maxTranslate()&&(g=!1,r.resistance&&(i.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-i.startTranslate-p)**m)),g&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(p)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,void(s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&t.freeMode||r.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),t.params.freeMode&&r.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(i.currentTranslate),t.setTranslate(i.currentTranslate))}function oCe(n){const e=this,t=e.touchEventsData,{params:i,touches:r,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&&i.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,void(t.startMoving=!1);i.grabCursor&&t.isMoved&&t.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const c=mh(),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=mh(),hD(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||0===r.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=i.followFinger?s?e.translate:-e.translate:-t.currentTranslate,i.cssMode)return;if(e.params.freeMode&&i.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<i.slidesPerGroupSkip?1:i.slidesPerGroup){const y=b<i.slidesPerGroupSkip-1?1:i.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;i.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<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(u>i.longSwipesMs){if(!i.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(m>=i.longSwipesRatio?i.rewind&&e.isEnd?p:h+_:h),"prev"===e.swipeDirection&&(m>1-i.longSwipesRatio?e.slideTo(h+_):null!==g&&m<0&&Math.abs(m)>i.longSwipesRatio?e.slideTo(g):e.slideTo(h))}else{if(!i.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 bU(){const n=this,{params:e,el:t}=n;if(t&&0===t.offsetWidth)return;e.breakpoints&&n.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,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=r,n.allowSlideNext=i,n.params.watchOverflow&&s!==n.snapGrid&&n.checkOverflow()}function aCe(n){const e=this;!e.enabled||e.allowClick||(e.params.preventClicks&&n.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(n.stopPropagation(),n.stopImmediatePropagation()))}function lCe(){const n=this,{wrapperEl:e,rtlTranslate:t,enabled:i}=n;if(!i)return;let r;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();r=0===s?0:(n.translate-n.minTranslate())/s,r!==n.progress&&n.updateProgress(t?-n.translate:n.translate),n.emit("setTranslate",n.translate,!1)}let wU=!1;function cCe(){}const SU=(n,e)=>{const t=Vi(),{params:i,touchEvents:r,el:s,wrapperEl:o,device:a,support:l}=n,c=!!i.nested,u="on"===e?"addEventListener":"removeEventListener",d=e;if(l.touch){const h=!("touchstart"!==r.start||!l.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};s[u](r.start,n.onTouchStart,h),s[u](r.move,n.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),s[u](r.end,n.onTouchEnd,h),r.cancel&&s[u](r.cancel,n.onTouchEnd,h)}else s[u](r.start,n.onTouchStart,!1),t[u](r.move,n.onTouchMove,c),t[u](r.end,n.onTouchEnd,!1);(i.preventClicks||i.preventClicksPropagation)&&s[u]("click",n.onClick,!0),i.cssMode&&o[u]("scroll",n.onScroll),n[d](i.updateOnWindowResize?a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate":"observerUpdate",bU,!0)},hCe={attachEvents:function uCe(){const n=this,e=Vi(),{params:t,support:i}=n;n.onTouchStart=rCe.bind(n),n.onTouchMove=sCe.bind(n),n.onTouchEnd=oCe.bind(n),t.cssMode&&(n.onScroll=lCe.bind(n)),n.onClick=aCe.bind(n),i.touch&&!wU&&(e.addEventListener("touchstart",cCe),wU=!0),SU(n,"on")},detachEvents:function dCe(){SU(this,"off")}},CU=(n,e)=>n.grid&&e.grid&&e.grid.rows>1,gCe={setBreakpoint:function fCe(){const n=this,{activeIndex:e,initialized:t,loopedSlides:i=0,params:r,$el:s}=n,o=r.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=CU(n,r),d=CU(n,c),h=r.enabled;u&&!d?(s.removeClass(`${r.containerModifierClass}grid ${r.containerModifierClass}grid-column`),n.emitContainerClasses()):!u&&d&&(s.addClass(`${r.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===r.grid.fill)&&s.addClass(`${r.containerModifierClass}grid-column`),n.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(m=>{const _=r[m]&&r[m].enabled,b=c[m]&&c[m].enabled;_&&!b&&n[m].disable(),!_&&b&&n[m].enable()});const f=c.direction&&c.direction!==r.direction,p=r.loop&&(c.slidesPerView!==r.slidesPerView||f);f&&t&&n.changeDirection(),Bi(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-i+n.loopedSlides,0,!1)),n.emit("breakpoint",c)},getBreakpoint:function pCe(n,e="window",t){if(!n||"container"===e&&!t)return;let i=!1;const r=wn(),s="window"===e?r.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?r.matchMedia(`(min-width: ${c}px)`).matches&&(i=l):c<=t.clientWidth&&(i=l)}return i||"max"}},vCe={addClasses:function yCe(){const n=this,{classNames:e,params:t,rtl:i,$el:r,device:s,support:o}=n,a=function mCe(n,e){const t=[];return n.forEach(i=>{"object"==typeof i?Object.keys(i).forEach(r=>{i[r]&&t.push(e+r)}):"string"==typeof i&&t.push(e+i)}),t}(["initialized",t.direction,{"pointer-events":!o.touch},{"free-mode":n.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:i},{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),r.addClass([...e].join(" ")),n.emitContainerClasses()},removeClasses:function _Ce(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},SCe={loadImage:function bCe(n,e,t,i,r,s){const o=wn();let a;function l(){s&&s()}Xe(n).parent("picture")[0]||n.complete&&r||!e?l():(a=new o.Image,a.onload=l,a.onerror=l,i&&(a.sizes=i),t&&(a.srcset=t),e&&(a.src=e))},preloadImages:function wCe(){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 i=n.imagesToLoad[t];n.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,e)}}},EU={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 TCe(n,e){return function(i={}){const r=Object.keys(i)[0],s=i[r];"object"==typeof s&&null!==s?(["navigation","pagination","scrollbar"].indexOf(r)>=0&&!0===n[r]&&(n[r]={auto:!0}),r in n&&"enabled"in s?(!0===n[r]&&(n[r]={enabled:!0}),"object"==typeof n[r]&&!("enabled"in n[r])&&(n[r].enabled=!0),n[r]||(n[r]={enabled:!1}),Bi(e,i)):Bi(e,i)):Bi(e,i)}}const mD={eventsEmitter:wSe,update:MSe,translate:FSe,transition:HSe,slide:KSe,loop:JSe,grabCursor:{setGrabCursor:function eCe(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 tCe(){const n=this;n.support.touch||n.params.watchOverflow&&n.isLocked||n.params.cssMode||(n["container"===n.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:hCe,breakpoints:gCe,checkOverflow:{checkOverflow:function CCe(){const n=this,{isLocked:e,params:t}=n,{slidesOffsetBefore:i}=t;if(i){const r=n.slides.length-1;n.isLocked=n.size>n.slidesGrid[r]+n.slidesSizesGrid[r]+2*i}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:vCe,images:SCe},yD={};class ar{constructor(...e){let t,i;if(1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?i=e[0]:[t,i]=e,i||(i={}),i=Bi({},i),t&&!i.el&&(i.el=t),i.el&&Xe(i.el).length>1){const a=[];return Xe(i.el).each(l=>{const c=Bi({},i,{el:l});a.push(new ar(c))}),a}const r=this;r.__swiper__=!0,r.support=_U(),r.device=function mSe(n={}){return pD||(pD=function gSe({userAgent:n}={}){const e=_U(),t=wn(),i=t.navigator.platform,r=n||t.navigator.userAgent,s={ios:!1,android:!1},o=t.screen.width,a=t.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/);let c=r.match(/(iPad).*OS\s([\d_]+)/);const u=r.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let f="MacIntel"===i;return!c&&f&&e.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${a}`)>=0&&(c=r.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)),pD}({userAgent:i.userAgent}),r.browser=function _Se(){return gD||(gD=function ySe(){const n=wn();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)}}()),gD}(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],i.modules&&Array.isArray(i.modules)&&r.modules.push(...i.modules);const s={};r.modules.forEach(a=>{a({swiper:r,extendParams:TCe(i,s),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const o=Bi({},EU,s);return r.params=Bi({},o,yD,i),r.originalParams=Bi({},r.params),r.passedParams=Bi({},i),r.params&&r.params.on&&Object.keys(r.params.on).forEach(a=>{r.on(a,r.params.on[a])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),r.$=Xe,Object.assign(r,{enabled:r.params.enabled,el:t,classNames:[],slides:Xe(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:function(){const l=["touchstart","touchmove","touchend","touchcancel"],c=["pointerdown","pointermove","pointerup"];return r.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},r.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},r.support.touch||!r.params.simulateTouch?r.touchEventsTouch:r.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:r.params.focusableElements,lastClickTime:mh(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}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 i=this;e=Math.min(Math.max(e,0),1);const r=i.minTranslate(),o=(i.maxTranslate()-r)*e+r;i.translateTo(o,typeof t>"u"?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(i=>0===i.indexOf("swiper")||0===i.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(i=>0===i.indexOf("swiper-slide")||0===i.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each(i=>{const r=e.getSlideClasses(i);t.push({slideEl:i,classNames:r}),e.emit("_slideClass",i,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:r,slides:s,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:c}=this;let u=1;if(r.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:i}=e;function r(){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;i.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(r(),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||r()),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const i=this,r=i.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(i.$el.removeClass(`${i.params.containerModifierClass}${r}`).addClass(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.each(s=>{"vertical"===e?s.style.width="":s.style.height=""}),i.emit("changeDirection"),t&&i.update()),i}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 i=Xe(e||t.params.el);if(!(e=i[0]))return!1;e.swiper=t;const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const a=Xe(e.shadowRoot.querySelector(r()));return a.children=l=>i.children(l),a}return i.children?i.children(r()):Xe(i).children(r())})();if(0===o.length&&t.params.createElements){const l=Vi().createElement("div");o=Xe(l),l.className=t.params.wrapperClass,i.append(l),i.children(`.${t.params.slideClass}`).each(c=>{o.append(c)})}return Object.assign(t,{$el:i,el:e,$wrapperEl:o,wrapperEl:o[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===i.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 i=this,{params:r,$el:s,$wrapperEl:o,slides:a}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),t&&(i.removeClasses(),s.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(l=>{i.off(l)}),!1!==e&&(i.$el[0].swiper=null,function uSe(n){const e=n;Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}(i)),i.destroyed=!0),null}static extendDefaults(e){Bi(yD,e)}static get extendedDefaults(){return yD}static get defaults(){return EU}static installModule(e){ar.prototype.__modules__||(ar.prototype.__modules__=[]);const t=ar.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>ar.installModule(t)),ar):(ar.installModule(e),ar)}}Object.keys(mD).forEach(n=>{Object.keys(mD[n]).forEach(e=>{ar.prototype[e]=mD[n][e]})}),ar.use([function vSe({swiper:n,on:e,emit:t}){const i=wn();let r=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 i.ResizeObserver<"u"?!n||n.destroyed||!n.initialized||(r=new ResizeObserver(u=>{s=i.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()})}),r.observe(n.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",c))}),e("destroy",()=>{s&&i.cancelAnimationFrame(s),r&&r.unobserve&&n.el&&(r.unobserve(n.el),r=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",c)})},function bSe({swiper:n,extendParams:e,on:t,emit:i}){const r=[],s=wn(),o=(c,u={})=>{const h=new(s.MutationObserver||s.WebkitMutationObserver)(f=>{if(1===f.length)return void i("observerUpdate",f[0]);const p=function(){i("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}),r.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",()=>{r.forEach(c=>{c.disconnect()}),r.splice(0,r.length)})}]);const Fa=ar;function TU(n){const{effect:e,swiper:t,on:i,setTranslate:r,setTransition:s,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:c}=n;let u;i("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)}),i("setTranslate",()=>{t.params.effect===e&&r()}),i("setTransition",(d,h)=>{t.params.effect===e&&s(h)}),i("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()}}),i("virtualUpdate",()=>{t.params.effect===e&&(t.slides.length||(u=!0),requestAnimationFrame(()=>{u&&t.slides&&t.slides.length&&(r(),u=!1)}))})}function xU({swiper:n,extendParams:e,on:t}){e({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(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=Xe(`<div class="swiper-slide-shadow-${c?"left":"top"}"></div>`),a.append(u)),0===d.length&&(d=Xe(`<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))};TU({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=Xe('<div class="swiper-cube-shadow"></div>'),l.append(y)),y.css({height:`${u}px`})):(y=a.find(".swiper-cube-shadow"),0===y.length&&(y=Xe('<div class="swiper-cube-shadow"></div>'),a.append(y))));for(let I=0;I<c.length;I+=1){const D=c.eq(I);let P=I;_&&(P=parseInt(D.attr("data-swiper-slide-index"),10));let j=90*P,q=Math.floor(j/360);h&&(j=-j,q=Math.floor(-j/360));const z=Math.max(Math.min(D[0].progress,1),-1);let O=0,M=0,L=0;P%4==0?(O=4*-q*f,L=0):(P-1)%4==0?(O=0,L=4*-q*f):(P-2)%4==0?(O=f+4*q*f,L=f):(P-3)%4==0&&(O=-f,L=3*f+4*f*q),h&&(O=-O),m||(M=O,O=0);const ee=`rotateX(${m?0:-j}deg) rotateY(${m?j:0}deg) translate3d(${O}px, ${M}px, ${L}px)`;z<=1&&z>-1&&(b=90*P+90*z,h&&(b=90*-P-90*z)),D.transform(ee),g.slideShadows&&i(D,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 I=Math.abs(b)-90*Math.floor(Math.abs(b)/90),D=1.5-(Math.sin(2*I*Math.PI/360)/2+Math.cos(2*I*Math.PI/360)/2),j=g.shadowScale/D;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);i(Xe(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 IU(n,e,t){const i="swiper-slide-shadow"+(t?`-${t}`:""),r=n.transformEl?e.find(n.transformEl):e;let s=r.children(`.${i}`);return s.length||(s=Xe(`<div class="swiper-slide-shadow${t?`-${t}`:""}"></div>`),r.append(s)),s}function xCe(n,e){return n.transformEl?e.find(n.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):e}function kCe(n,e){Ge(2,arguments);var t=Mc(n),i=Mc(e),r=t.getTime()-Cm(t),s=i.getTime()-Cm(i);return Math.round((r-s)/864e5)}function AU(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 _D=(()=>{class n{constructor(){this.showFloating$=new vt({show:!1})}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const PCe=["prevElRef"],OCe=["nextElRef"],NCe=["scrollbarElRef"],RCe=["paginationElRef"];function LCe(n,e){1&n&&(Wi(0),Y(1,"div",6,7)(3,"div",8,9),qi())}function FCe(n,e){1&n&&Y(0,"div",10,11)}function VCe(n,e){1&n&&Y(0,"div",12,13)}function BCe(n,e){}function $Ce(n,e){1&n&&A(0,BCe,0,0,"ng-template")}function HCe(n,e){}function UCe(n,e){1&n&&A(0,HCe,0,0,"ng-template")}function zCe(n,e){}function jCe(n,e){1&n&&A(0,zCe,0,0,"ng-template")}function GCe(n,e){}const DU=function(n){return{$implicit:n}};function WCe(n,e){if(1&n&&(C(0,"div",3),A(1,GCe,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,DU,t.slideData))}}function qCe(n,e){}function YCe(n,e){if(1&n&&(Wi(0),A(1,qCe,0,0,"ng-template",18),qi()),2&n){const t=S().$implicit;v(1),w("ngTemplateOutlet",t.template)("ngTemplateOutletContext",pe(2,DU,t.slideData))}}function KCe(n,e){if(1&n&&(C(0,"div",15),A(1,WCe,2,5,"div",16),A(2,YCe,2,4,"ng-container",17),E()),2&n){const t=e.$implicit,i=S().key,r=S();(function yr(n){vr(mO,fW,n,!1)})(r.style),w("ngClass",(t.class?t.class+" ":"")+r.slideClass+(""!==i?" "+r.slideDuplicateClass:""))("ngSwitch",t.zoom),ki("data-swiper-slide-index",t.virtualIndex?t.virtualIndex:t.slideIndex)("data-swiper-autoplay",t.autoplayDelay),v(1),w("ngSwitchCase",!0)}}function QCe(n,e){1&n&&(A(0,KCe,3,7,"div",14),br(1,"async")),2&n&&w("ngForOf",Dl(1,1,e.loopSlides))}const XCe=[[["","slot","container-start"]],[["","slot","wrapper-start"]],[["","slot","wrapper-end"]],[["","slot","container-end"]]],ZCe=function(n){return{loopSlides:n,key:"prepend"}},JCe=function(n){return{loopSlides:n,key:""}},eEe=function(n){return{loopSlides:n,key:"append"}},tEe=["[slot=container-start]","[slot=wrapper-start]","[slot=wrapper-end]","[slot=container-end]"],kU=["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 Pc(n){return"object"==typeof n&&null!==n&&n.constructor&&"Object"===Object.prototype.toString.call(n).slice(8,-1)}function vD(n){return typeof n<"u"&&"boolean"!=typeof n&&!0===n.enabled}function MU(n,e,t){return!0===h_(n)&&e&&!e.el||!("boolean"!=typeof e&&e.el!==t?.nativeElement&&("string"==typeof e.el||"object"==typeof e.el))}function xo(n,e){const t=["__proto__","constructor","prototype"];Object.keys(e).filter(i=>t.indexOf(i)<0).forEach(i=>{typeof n[i]>"u"?n[i]=e[i]:n[i]&&!e[i]||(Pc(e[i])&&Pc(n[i])&&Object.keys(e[i]).length>0?e[i].__swiper__?n[i]=e[i]:xo(n[i],e[i]):n[i]=e[i])})}function h_(n){return null!=n&&"false"!=`${n}`}const nEe=["pagination","navigation","scrollbar","virtual"];function f_(n,e={}){return Pc(n)?n:!0===h_(n)&&e}function bD(n={}){const e={on:{}},t={};xo(e,Fa.defaults),xo(e,Fa.extendedDefaults),e._emitClasses=!0,e.init=!1;const i={},r=kU.map(s=>s.replace(/_/,""));return Object.keys(n).forEach(s=>{const o=s.replace(/^_/,"");r.indexOf(o)>=0?Pc(n[s])?(e[o]={},t[o]={},xo(e[o],n[s]),xo(t[o],n[s])):(e[o]=n[s],t[o]=n[s]):i[o]=n[s]}),["navigation","pagination","scrollbar"].forEach(s=>{!0===e[s]&&(e[s]={}),!1===e[s]&&delete e[s]}),{params:e,passedParams:t,rest:i}}kU.map(n=>n.replace(/_/,""));let yh=(()=>{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=h_(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(i=>this._classNames.indexOf(i)>=0)}}return n.\u0275fac=function(t){return new(t||n)(R(wr))},n.\u0275dir=ye({type:n,selectors:[["ng-template","swiperSlide",""]],inputs:{virtualIndex:"virtualIndex",class:"class",ngClass:"ngClass",autoplayDelay:["data-swiper-autoplay","autoplayDelay"],zoom:"zoom"}}),n})(),p_=(()=>{class n{constructor(t,i,r,s){this._ngZone=t,this.elementRef=i,this._changeDetectorRef=r,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 as,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=Vu(this.slides.slice(this.slides.length-this.loopedSlides)),this.appendSlides=Vu(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(),vD(this.swiperRef.params.lazy)&&this.swiperRef.lazy.load(),this.swiperRef.virtual.update(!0)}))}}set navigation(t){var i,r,s;const o="boolean"!=typeof this._navigation&&""!==this._navigation?null===(i=this._navigation)||void 0===i?void 0:i.nextEl:null,a="boolean"!=typeof this._navigation&&""!==this._navigation?null===(r=this._navigation)||void 0===r?void 0:r.prevEl:null;this._navigation=f_(t,{nextEl:o||null,prevEl:a||null}),this.showNavigation=!(!0!==h_(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 i;const r="boolean"!=typeof this._pagination&&""!==this._pagination?null===(i=this._pagination)||void 0===i?void 0:i.el:null;this._pagination=f_(t,{el:r||null}),this.showPagination=MU(t,this._pagination,this._paginationElRef)}get pagination(){return this._pagination}set scrollbar(t){var i;const r="boolean"!=typeof this._scrollbar&&""!==this._scrollbar?null===(i=this._scrollbar)||void 0===i?void 0:i.el:null;this._scrollbar=f_(t,{el:r||null}),this.showScrollbar=MU(t,this._scrollbar,this._scrollbarElRef)}get scrollbar(){return this._scrollbar}set virtual(t){this._virtual=f_(t)}get virtual(){return this._virtual}set config(t){this.updateSwiper(t);const{params:i}=bD(t);Object.assign(this,i)}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:Vu(this.slides)}get zoomContainerClass(){return this.zoom&&"boolean"!=typeof this.zoom?this.zoom.containerClass:"swiper-zoom-container"}_setElement(t,i,r,s="el"){if(!i||!t)return;if(t.nativeElement){if(i[s]===t.nativeElement)return;i[s]=t.nativeElement}const o={};o[r]=!0,this.updateInitSwiper(o)}ngOnInit(){const{params:t}=bD(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}=bD(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 Fa(t);o.loopCreate=()=>{},o.loopDestroy=()=>{},t.loop&&(o.loopedSlides=this.loopedSlides);const a=vD(o.params.virtual);if(o.virtual&&a){o.virtual.slides=this.slides;const l={cache:!1,slides:this.slides,renderExternal:this.updateVirtualSlides,renderExternalUpdate:!1};xo(o.params.virtual,l),xo(o.originalParams.virtual,l)}if(function NQ(n){return n===QN}(this._platformId)){this.swiperRef=o.init(this.elementRef.nativeElement);const l=vD(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:r,navigation:s,scrollbar:o,thumbs:l}=this.swiperRef;t.pagination&&(this.pagination&&"boolean"!=typeof this.pagination&&this.pagination.el&&r&&!r.el?(this.updateParameter("pagination",this.pagination),r.init(),r.render(),r.update()):(r.destroy(),r.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 i,r;if(!t.config&&t&&this.swiperRef&&!this.swiperRef.destroyed){for(const s in t){if(nEe.indexOf(s)>=0)continue;const o=null!==(r=null===(i=t[s])||void 0===i?void 0:i.currentValue)&&void 0!==r?r: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 r=Fa.prototype.getBreakpoint(this.breakpoints),s=r in this.breakpoints?this.breakpoints[r]:void 0;s&&s.slidesPerView&&(t=s.slidesPerView)}if("auto"===t)return this.loopedSlides=this.slides.length,this.slides.length;let i=this.loopedSlides||t;return!!i&&(this.loopAdditionalSlides&&(i+=this.loopAdditionalSlides),i>this.slides.length&&(i=this.slides.length),this.loopedSlides=i,!0)}updateParameter(t,i){if(!this.swiperRef||this.swiperRef.destroyed)return;const r=t.replace(/^_/,""),s=Pc(this.swiperRef.params[r]);"enabled"!==r?s&&Pc(i)?xo(this.swiperRef.params[r],i):this.swiperRef.params[r]=i:!0===i?this.swiperRef.enable():!1===i&&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(pt),R(Nn),R(ku),R(Pl))},n.\u0275cmp=Bt({type:n,selectors:[["swiper"],["","swiper",""]],contentQueries:function(t,i,r){if(1&t&&Nb(r,yh,4),2&t){let s;Yi(s=Ki())&&(i.slidesEl=s)}},viewQuery:function(t,i){if(1&t&&($r(PCe,5),$r(OCe,5),$r(NCe,5),$r(RCe,5)),2&t){let r;Yi(r=Ki())&&(i.prevElRef=r.first),Yi(r=Ki())&&(i.nextElRef=r.first),Yi(r=Ki())&&(i.scrollbarElRef=r.first),Yi(r=Ki())&&(i.paginationElRef=r.first)}},hostVars:2,hostBindings:function(t,i){2&t&&yu(i.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:[Pr],ngContentSelectors:tEe,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,i){if(1&t&&(pb(XCe),Vo(0),A(1,LCe,5,0,"ng-container",0),A(2,FCe,2,0,"div",1),A(3,VCe,2,0,"div",2),C(4,"div",3),Vo(5,1),A(6,$Ce,1,0,null,4),A(7,UCe,1,0,null,4),A(8,jCe,1,0,null,4),Vo(9,2),E(),Vo(10,3),A(11,QCe,2,3,"ng-template",null,5,F2)),2&t){const r=gu(12);v(1),w("ngIf",i.navigation&&i.showNavigation),v(1),w("ngIf",i.scrollbar&&i.showScrollbar),v(1),w("ngIf",i.pagination&&i.showPagination),v(1),w("ngClass",i.wrapperClass),ki("id",i.id),v(2),w("ngTemplateOutlet",r)("ngTemplateOutletContext",pe(11,ZCe,i.prependSlides)),v(1),w("ngTemplateOutlet",r)("ngTemplateOutletContext",pe(13,JCe,i.activeSlides)),v(1),w("ngTemplateOutlet",r)("ngTemplateOutletContext",pe(15,eEe,i.appendSlides))}},dependencies:[Jn,Zi,d0,Ji,zo,Nu,u0,Wf],styles:["swiper{display:block}\n"],encapsulation:2,changeDetection:0}),n})(),iEe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({imports:[[Ol]]}),n})();function rEe(n,e){if(1&n&&Y(0,"img",34),2&n){const t=S(2).$implicit;w("src",t.imageUrl,On)("alt",t.title)}}const sEe=function(n){return{"background-color":n}};function oEe(n,e){if(1&n&&(C(0,"div",35)(1,"span"),ce(),C(2,"svg",36),Y(3,"path",37),E()(),St(),C(4,"span"),J(5),E()()),2&n){const t=S(2).$implicit,i=S();w("ngStyle",pe(2,sEe,i.mainColor)),v(5),He(" ",t.otherRoomPhotosUrls.length," ")}}function aEe(n,e){if(1&n&&(C(0,"span"),ce(),C(1,"svg",38),Y(2,"path",39),E(),St(),C(3,"span"),J(4),E()()),2&n){const t=S(2).$implicit,i=S();v(2),Fn("fill",i.mainColor),v(1),Fn("color",i.mainColor),v(1),Bo(" ",t.roomSizeValue," ",t.roomSizeUnit," ")}}function lEe(n,e){if(1&n&&(ce(),C(0,"svg",40),Y(1,"path",41),E()),2&n){const t=S(3);v(1),Fn("fill",t.mainColor)}}function cEe(n,e){if(1&n&&(ce(),C(0,"svg",42),Y(1,"path",41),E()),2&n){const t=S(3);v(1),Fn("fill",t.mainColor)}}function uEe(n,e){if(1&n&&(C(0,"span"),J(1),E()),2&n){const t=S().$implicit;v(1),Ee(t.or?" or ":" and ")}}function dEe(n,e){if(1&n&&(ce(),St(),C(0,"span"),A(1,uEe,2,1,"span",16),C(2,"span",43),J(3),E()()),2&n){const t=e.$implicit,i=e.index;v(1),w("ngIf",0!==i),v(2),Bo(""," "+t.numberOfBeds," ",t.bedType,"")}}function hEe(n,e){if(1&n&&(C(0,"span"),J(1),br(2,"slice"),E()),2&n){const t=S(3).$implicit,i=S();v(1),Ee(function I2(n,e,t,i,r){const s=n+22,o=W(),a=Ga(o,s);return xu(o,s)?E2(o,Yn(),e,a.transform,t,i,r,a):a.transform(t,i,r)}(2,1,i.getRoomDescription(t),0,65))}}function fEe(n,e){if(1&n&&(C(0,"span"),J(1),E()),2&n){const t=S(3).$implicit,i=S();v(1),Ee(i.getRoomDescription(t))}}const wD=function(n){return{color:n}};function pEe(n,e){if(1&n&&(C(0,"span",49),J(1),E()),2&n){const t=S(5);w("ngStyle",pe(2,wD,t.mainColor)),v(1),He(" ...",t.translatedText.more," ")}}function gEe(n,e){if(1&n&&(C(0,"span",49),J(1),E()),2&n){const t=S(5);w("ngStyle",pe(2,wD,t.mainColor)),v(1),He("...",t.translatedText.less,"")}}function mEe(n,e){if(1&n){const t=fe();C(0,"span",47),K("click",function(){return V(t),B(S(4).onToggleReadMore())}),A(1,pEe,2,4,"span",48),A(2,gEe,2,4,"span",48),E()}if(2&n){const t=S(4);v(1),w("ngIf",!t.readmore),v(1),w("ngIf",t.readmore)}}function yEe(n,e){if(1&n&&(ce(),St(),C(0,"div",44)(1,"div",45),A(2,hEe,3,5,"span",16),A(3,fEe,2,1,"span",16),A(4,mEe,3,2,"span",46),E()()),2&n){const t=S(2).$implicit,i=S();v(2),w("ngIf",!i.readmore),v(1),w("ngIf",i.readmore),v(1),w("ngIf",i.getRoomDescription(t).length>65)}}function _Ee(n,e){if(1&n&&(C(0,"span",26),ce(),C(1,"svg",52),Y(2,"path",53),E(),J(3),E()),2&n){const t=S(4);v(2),Fn("fill",t.mainColor),v(1),He(" ",t.translatedText.flatScreenTV," ")}}function vEe(n,e){if(1&n&&(C(0,"span",26),ce(),C(1,"svg",54),Y(2,"path",55),E(),J(3),E()),2&n){const t=S(4);v(2),Fn("fill",t.mainColor),v(1),He(" ",t.translatedText.freeWifi," ")}}function bEe(n,e){if(1&n&&(C(0,"span",26),ce(),C(1,"svg",56),Y(2,"path",57),E(),J(3),E()),2&n){const t=S(4);v(2),Fn("fill",t.mainColor),v(1),He(" ",t.translatedText.airconditioning," ")}}function wEe(n,e){if(1&n&&(C(0,"div")(1,"span",50),A(2,_Ee,4,3,"span",51),A(3,vEe,4,3,"span",51),A(4,bEe,4,3,"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 SEe(n,e){if(1&n&&(C(0,"div",58)(1,"div",59),J(2),br(3,"currency"),E(),C(4,"div",60)(5,"span",61),J(6),E()()()),2&n){const t=S(2).$implicit,i=S();v(2),Ee(function A2(n,e,t,i,r,s){const o=n+22,a=W(),l=Ga(a,o);return xu(a,o)?T2(a,Yn(),e,l.transform,t,i,r,s,l):l.transform(t,i,r,s)}(3,2,t.rate,t.currency,"code","1.0-0")),v(4),Ee(i.translatedText.perNight)}}function CEe(n,e){if(1&n&&(C(0,"div",62)(1,"span"),J(2),E()()),2&n){const t=S(2).$implicit;v(2),Ee(t.showSecretRatesText)}}const PU=function(n){return{fill:n}},EEe=function(n,e,t){return{"background-color":n,color:e,"border-color":t}};function TEe(n,e){if(1&n){const t=fe();C(0,"div",4),K("click",function(){V(t);const r=S().$implicit;return B(S().onOpenImages(r))}),A(1,rEe,1,2,"img",5),A(2,oEe,6,4,"div",6),E(),C(3,"div",7)(4,"div",8),K("click",function(r){return V(t),B(S(2).onSlidePrev(r))}),ce(),C(5,"svg",9),Y(6,"path",10),E()(),St(),C(7,"div",11),J(8),E(),C(9,"div",12),K("click",function(r){return V(t),B(S(2).onSlideNext(r))}),ce(),C(10,"svg",9),Y(11,"path",13),E()()(),St(),C(12,"div",14)(13,"div",15),A(14,aEe,5,6,"span",16),C(15,"span",17),J(16),A(17,lEe,2,2,"svg",18),A(18,cEe,2,2,"svg",19),J(19),E(),C(20,"span",20),ce(),C(21,"svg",21)(22,"defs")(23,"style"),J(24," .fa-secondary { opacity: .4 } "),E()(),Y(25,"path",22)(26,"path",23),E(),A(27,dEe,4,3,"span",2),E()(),A(28,yEe,5,3,"div",24),St(),C(29,"div",25),A(30,wEe,5,4,"div",2),C(31,"div",26),ce(),C(32,"svg",27),Y(33,"path",28),E(),J(34),E()()(),St(),C(35,"div",29),A(36,SEe,7,7,"div",30),A(37,CEe,3,1,"div",31),C(38,"div",32)(39,"button",33),K("mouseover",function(){return V(t),B(S(2).hover=!0)})("mouseleave",function(){return V(t),B(S(2).hover=!1)})("click",function(){V(t);const r=S().$implicit;return B(S().onBookNow(r))}),J(40),E()()()}if(2&n){const t=S().$implicit,i=S();v(1),w("ngIf",t.imageUrl),v(1),w("ngIf",t.otherRoomPhotosUrls.length>0),v(1),w("ngStyle",pe(29,wD,i.mainColor)),v(3),w("ngStyle",pe(31,PU,i.mainColor)),v(2),He(" ",i.getRoomTitle(t)," "),v(3),w("ngStyle",pe(33,PU,i.mainColor)),v(3),w("ngIf",t.roomSizeValue),v(1),Fn("color",i.mainColor),v(1),He("",i.translatedText.maxGuests,": "),v(1),w("ngForOf",t.adultOccupancy),v(1),w("ngForOf",t.childrenOccupancy),v(1),He(" ",t.maximumOccupancy," "),v(1),Fn("color",i.mainColor),v(5),Fn("fill",i.mainColor),v(1),Fn("fill",i.mainColor),v(1),w("ngForOf",t.beds),v(1),w("ngIf",i.getRoomDescription(t)),v(2),w("ngForOf",t.featuredAmmenities),v(3),Fn("fill",i.mainColor),v(1),He(" ",i.getRoomViewTranslated(t.roomView)," "),v(2),w("ngIf",t.rate),v(1),w("ngIf",t.showSecretRatesAvailable),v(2),w("ngStyle",Tb(35,EEe,i.hover?"white":i.mainColor,i.hover?i.mainColor:"white",i.mainColor)),v(1),Ee(i.translatedText.bookNow)}}function xEe(n,e){1&n&&A(0,TEe,41,39,"ng-template",3)}Fa.use([function ACe({swiper:n,extendParams:e,on:t}){e({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const i=(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=IU(c,a,n.isHorizontal()?"left":"top")),0===d.length&&(d=IU(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))};TU({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&&i(d,h,c);const y=`translate3d(${_}px, ${b}px, 0px) rotateX(${m}deg) rotateY(${g}deg)`;xCe(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 ICe({swiper:n,duration:e,transformEl:t,allSlides:i}){const{slides:r,activeIndex:s,$wrapperEl:o}=n;if(n.params.virtualTranslate&&0!==e){let l,a=!1;l=i?t?r.find(t):r:t?r.eq(s).find(t):r.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=Xe(l);let u=c[0].progress;n.params.flipEffect.limitRotation&&(u=Math.max(Math.min(l.progress,1),-1)),i(c,u,a)})},getEffectParams:()=>n.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!n.params.cssMode})})}]);let IEe=(()=>{class n{constructor(t,i,r,s,o){this.chatService=t,this.submitService=i,this.floatingService=r,this.debugService=s,this.translationsService=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 i=[];Object.keys(t.roomCategoriesObj).forEach(r=>{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===r);h>-1&&(s=t.roomsResponse[h])}let o=s.imageUrl;t.roomCategoriesObj[r].roomPhotoUrl&&(o=t.roomCategoriesObj[r].roomPhotoUrl);const a=t.roomCategoriesObj[r];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&&v8(h,Mc(f.range.start.toDate()))&&By(h,tU(f.range.end.toDate()))&&(l=f.rate,c=f.currency)})}let u=[];t.roomCategoriesObj[r].otherRoomPhotosUrls&&(u=t.roomCategoriesObj[r].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:this.translationsService.getSecretRate(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};i.push(d)}),this.carouselItems=i.sort((r,s)=>s.order<r.order?1:-1)}else this.carouselItems=this.msg.roomsResponse;if(t.raiRequest){const i=new Date(t.raiRequest.from),r=new Date(t.raiRequest.to);this.bookingDate=i,this.bookingNumNights=function MCe(n,e){Ge(2,arguments);var t=ct(n),i=ct(e),r=AU(t,i),s=Math.abs(kCe(t,i));t.setDate(t.getDate()-r*s);var o=Number(AU(t,i)===-r),a=r*(s-o);return 0===a?0:a}(r,i)}this.debugService.logMode&&console.log("Carousel",this.carouselItems)}}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(t=>{t&&(this.mainColor=t.backgroundColors[0])}),this.languagesSub=this.chatService.activeLanguage$.subscribe(t=>{this.translatedText=this.translationsService.translations[t]})}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 i=t.rate.toString().match(/\d+(\.\d+)?/);this.submitService.savePotentialRevenue(+i[0],this.bookingNumNights,this.bookingDate)}else this.submitService.savePotentialRevenue(0,this.bookingNumNights,this.bookingDate);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&&this.chatService.showStructuredInput$.next({submit:"request",preMessage:"Please complete",inputs:t.structuredInputs,intent:"Book now"})}onOpenImages(t){const i=[t.imageUrl,...t.otherRoomPhotosUrls];this.floatingService.showFloating$.next({imageUrls:i.map(r=>({path:r})),type:"image",show:!0,startingIndex:0})}getRoomViewTranslated(t){const i=this.chatService.activeLanguage$.getValue(),r=this.translationsService.roomViews.find(s=>s.value===t);return r?"en"===i?r.label:r.translations&&r.translations[i]?r.translations[i]:r.label:"Nice view"}getRoomTitle(t){const i=this.chatService.activeLanguage$.getValue();return"en"!==i&&i?t.roomNameTranslations&&t.roomNameTranslations[i]?t.roomNameTranslations[i]:t.roomName:t.title}getRoomDescription(t){const i=this.chatService.activeLanguage$.getValue();return"en"===i?t.description:t.descriptionTranslations&&t.descriptionTranslations[i]?t.descriptionTranslations[i]:t.description}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe(),this.languagesSub&&this.languagesSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(bn),R(iU),R(_D),R(is),R(ss))},n.\u0275cmp=Bt({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,i){1&t&&(C(0,"div",0)(1,"swiper",1),K("swiper",function(s){return i.onSwiperLoaded(s)}),A(2,xEe,1,0,null,2),E()()),2&t&&(v(1),w("config",i.config),v(1),w("ngForOf",i.carouselItems))},dependencies:[Ji,Jn,ei,zo,Nu,p_,yh,KN,YN],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 AEe(n,e){if(1&n){const t=fe();C(0,"div",2),K("click",function(){return V(t),B(S().onRequestLiveChat())}),Y(1,"img",3),C(2,"span",4),J(3),E()()}if(2&n){const t=S();v(1),w("src",t.botImage,On),v(2),Ee(t.translatedText.requestLiveAgent)}}function DEe(n,e){if(1&n){const t=fe();C(0,"div",2),K("click",function(){return V(t),B(S().onCall())}),C(1,"span",5),ce(),C(2,"svg",6),Y(3,"path",7),E()(),St(),C(4,"span",4),J(5),E()()}if(2&n){const t=S();v(5),Ee(t.translatedText.callUs)}}function kEe(n,e){if(1&n){const t=fe();C(0,"div",2),K("click",function(){return V(t),B(S().onOpenForm())}),C(1,"span",5),ce(),C(2,"svg",8),Y(3,"path",9),E()(),St(),C(4,"span",4),J(5),E()()}if(2&n){const t=S();v(5),Ee(t.translatedText.sendUsAMessage)}}function MEe(n,e){if(1&n){const t=fe();C(0,"div",2),K("click",function(){V(t);const r=S();return B(r.onOpenLink(r.fallbackCommunication.fbUrl))}),C(1,"span",5),ce(),C(2,"svg",10)(3,"g",11)(4,"linearGradient",12),Y(5,"stop",13)(6,"stop",14),E(),Y(7,"path",15)(8,"path",16),E()()(),St(),C(9,"span",4),J(10,"Facebook Messenger"),E()()}}function PEe(n,e){if(1&n){const t=fe();C(0,"div",2),K("click",function(){V(t);const r=S();return B(r.onOpenLink(r.fallbackCommunication.whatsappUrl))}),C(1,"span",5),ce(),C(2,"svg",17),Y(3,"path",18),C(4,"linearGradient",19),Y(5,"stop",20)(6,"stop",21),E(),Y(7,"path",22)(8,"image",23)(9,"path",24)(10,"path",25),E()(),St(),C(11,"span",4),J(12,"Whatsapp"),E()()}}function OEe(n,e){if(1&n){const t=fe();C(0,"div",2),K("click",function(){return V(t),B(S().onReceiveCallBack())}),C(1,"span",5),ce(),C(2,"svg",26),Y(3,"path",27),E()(),St(),C(4,"span",4),J(5),E()()}if(2&n){const t=S();v(5),Ee(t.translatedText.receiveCallBack)}}let NEe=(()=>{class n{constructor(t,i){this.chatService=t,this.translationsService=i,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.liveChatOnlyMode=this.chatService.liveChatOnlyMode,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}))}),this.languagesSub=this.chatService.activeLanguage$.subscribe(t=>{this.translatedText=this.translationsService.translations[t]})}onRequestLiveChat(){this.chatService.addLiveChatRequest(),this.scrollNow.emit("now")}onOpenLink(t){""!==t&&window.open(t,"_blank")}onOpenForm(){this.chatService.showStructuredInput$.next({submit:"request",inputs:[{label:"Name and surname",dataVar:"nameSurname",type:"input",placeholder:"Name and surname",inputValidation:"text",value:"",disabled:!1,required:!0,translations:{af:"Naam en van",nl:"Naam en achternaam",fr:"Nom et surnom",de:"Name und Nachname",es:"Nombre y apellido"}},{label:"Contact number",dataVar:"contactNumber",type:"input",placeholder:"Contact number",inputValidation:"tel",value:"",disabled:!1,required:!0,translations:{af:"Kontak nommer",nl:"Contact nummer",fr:"Num\xe9ro de contact",de:"Kontakt Nummer",es:"N\xfamero de contacto"}},{label:"Email address",dataVar:"contactEmail",type:"input",placeholder:"Email address",inputValidation:"email",value:"",disabled:!1,required:!0,translations:{af:"E-pos adres",nl:"E-mailadres",fr:"Adresse e-mail",de:"E-Mail-Addresse",es:"Direcci\xf3n de correo electr\xf3nico"}},{label:"Message",dataVar:"message",type:"textarea",placeholder:"Message",inputValidation:"text",value:"",disabled:!1,required:!0,translations:{af:"Boodskap",nl:"Bericht",fr:"Message",de:"Nachricht",es:"Mensaje"}}],preMessage:"Please complete the form below",intent:"Contact Form"})}onReceiveCallBack(){this.chatService.showStructuredInput$.next({submit:"request",inputs:[{label:"Name and surname",dataVar:"nameSurname",type:"input",placeholder:"Name and surname",inputValidation:"text",value:"",required:!0,disabled:!1,translations:{af:"Naam en van",nl:"Naam en achternaam",fr:"Nom et surnom",de:"Name und Nachname",es:"Nombre y apellido"}},{label:"Contact number",dataVar:"contactNumber",type:"input",placeholder:"Contact number",inputValidation:"tel",value:"",disabled:!1,required:!0,translations:{af:"Kontak nommer",nl:"Contact nummer",fr:"Num\xe9ro de contact",de:"Kontakt Nummer",es:"N\xfamero de contacto"}}],preMessage:"Please complete the form below",intent:"Receive Call Back"})}onCall(){window.open("tel:"+this.fallbackCommunication.callUsNumber,"_system")}ngOnDestroy(){this.liveChatSettingsSub&&this.liveChatSettingsSub.unsubscribe(),this.botSettingsSub&&this.botSettingsSub.unsubscribe(),this.languagesSub&&this.languagesSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(bn),R(ss))},n.\u0275cmp=Bt({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,i){1&t&&(C(0,"div",0),A(1,AEe,4,2,"div",1),A(2,DEe,6,1,"div",1),A(3,kEe,6,1,"div",1),A(4,MEe,11,0,"div",1),A(5,PEe,13,0,"div",1),A(6,OEe,6,1,"div",1),E()),2&t&&(v(1),w("ngIf",i.liveChatSettings.liveChatAvailable&&!i.liveChatOnlyMode&&i.liveChatSomebodyIsAround),v(1),w("ngIf",i.fallbackCommunication.hasCallUs&&i.fallbackCommunication.callUsNumber),v(1),w("ngIf",i.fallbackCommunication.hasMessageUs),v(1),w("ngIf",i.fallbackCommunication.hasfbMessenger),v(1),w("ngIf",i.fallbackCommunication.hasWhatsapp),v(1),w("ngIf",i.fallbackCommunication.hasReceiveCallBack))},dependencies:[Jn],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 SD=function(n){return{"background-color":n}};let REe=(()=>{class n{constructor(t,i){this.chatService=t,this.translationsService=i,this.textColor="black"}ngOnInit(){this.settingsSub=this.chatService.botSettingsBS.subscribe(t=>{t&&(this.textColor=t.backgroundColors[0])}),this.languagesSub=this.chatService.activeLanguage$.subscribe(t=>{this.translatedText=this.translationsService.translations[t]})}onPerformAction(t){const i=this.chatService.activeLanguage$.getValue();switch(t){case"bookDirect":this.chatService.addDirectIntentQuestion("book_direct",this.translationsService.translations[i].interventionBookingOptions);break;case"other":this.chatService.addMessage(this.translationsService.translations[i].interventionAnotherQuestion);break;case"liveAgent":this.chatService.addDirectIntentQuestion("live_chat",this.translationsService.translations[i].interventionLiveAgent)}}ngOnDestroy(){this.settingsSub&&this.settingsSub.unsubscribe(),this.languagesSub&&this.languagesSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(bn),R(ss))},n.\u0275cmp=Bt({type:n,selectors:[["app-intervention"]],decls:7,vars:12,consts:[["id","gc-intervention-container"],[3,"ngStyle","click"]],template:function(t,i){1&t&&(C(0,"div",0)(1,"button",1),K("click",function(){return i.onPerformAction("bookDirect")}),J(2),E(),C(3,"button",1),K("click",function(){return i.onPerformAction("other")}),J(4),E(),C(5,"button",1),K("click",function(){return i.onPerformAction("liveAgent")}),J(6),E()()),2&t&&(v(1),w("ngStyle",pe(6,SD,i.textColor)),v(1),Ee(i.translatedText.bookingOptions),v(1),w("ngStyle",pe(8,SD,i.textColor)),v(1),Ee(i.translatedText.otherQuestions),v(1),w("ngStyle",pe(10,SD,i.textColor)),v(1),Ee(i.translatedText.liveAgent))},dependencies:[ei],styles:["#gc-intervention-container[_ngcontent-%COMP%]{width:calc(100% + 95px);margin-left:-39px;display:flex;justify-content:space-between;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})(),OU=(()=>{class n{constructor(t){this.sanitizer=t}transform(t,i){switch(i){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: ${i}`)}}}return n.\u0275fac=function(t){return new(t||n)(R(bR,16))},n.\u0275pipe=Dn({name:"safe",type:n,pure:!0}),n})();function LEe(n,e){if(1&n&&(C(0,"h3",12),J(1),E()),2&n){const t=S(3).$implicit;v(1),Ee(t.title)}}function FEe(n,e){1&n&&(Y(0,"p",13),br(1,"safe")),2&n&&w("innerHtml",xf(1,1,S(3).$implicit.description,"html"),tf)}function VEe(n,e){if(1&n&&(C(0,"div",14),J(1),E()),2&n){const t=S(4);v(1),He("...",t.translatedText.more,"")}}const BEe=function(n){return{"gc-title-only":n}};function $Ee(n,e){if(1&n){const t=fe();C(0,"div",8),K("click",function(){V(t);const r=S(2).index;return B(S().onOpenImage(r))}),A(1,LEe,2,1,"h3",9),A(2,FEe,2,4,"p",10),A(3,VEe,2,1,"div",11),E()}if(2&n){const t=S(2).$implicit;w("ngClass",pe(4,BEe,!t.description||""===t.description)),v(1),w("ngIf",t.title),v(1),w("ngIf",t.description),v(1),w("ngIf",t.description&&t.description.length>100)}}const NU=function(n){return{"background-color":n}};function HEe(n,e){if(1&n){const t=fe();C(0,"div",15),K("click",function(){return V(t),B(S(3).onSlidePrev())}),ce(),C(1,"svg",16),Y(2,"path",17),E()()}if(2&n){const t=S(3);w("ngStyle",pe(1,NU,t.mainColor))}}function UEe(n,e){if(1&n){const t=fe();C(0,"div",18),K("click",function(){return V(t),B(S(3).onSlideNext())}),ce(),C(1,"svg",19),Y(2,"path",20),E()()}if(2&n){const t=S(3);w("ngStyle",pe(1,NU,t.mainColor))}}function zEe(n,e){if(1&n){const t=fe();C(0,"img",4),K("click",function(){V(t);const r=S().index;return B(S().onOpenImage(r))}),E(),A(1,$Ee,4,6,"div",5),A(2,HEe,3,3,"div",6),A(3,UEe,3,3,"div",7)}if(2&n){const t=S().$implicit,i=S();w("src",t.path,On),v(1),w("ngIf",t.title||t.description),v(1),w("ngIf",i.carouselItems.length>1),v(1),w("ngIf",i.carouselItems.length>1)}}function jEe(n,e){1&n&&A(0,zEe,4,4,"ng-template",3)}Fa.use([xU]);let GEe=(()=>{class n{constructor(t,i,r){this.chatService=t,this.floatingService=i,this.translationsService=r,this.config={loop:!0,effect:"cube",grabCursor:!0,cubeEffect:{shadow:!1,slideShadows:!1}},this.mainColor="blue",this.canShowSwiper=!1}set func(t){this.msg=t,this.carouselItems=this.msg.mediaResponse.slice(),this.config=this.carouselItems.length>1?{loop:!0,effect:"cube",grabCursor:!0,cubeEffect:{shadow:!1,slideShadows:!1}}:{loop:!1,effect:"cube",grabCursor:!0,cubeEffect:{shadow:!1,slideShadows:!1}}}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(t=>{t&&(this.mainColor=t.backgroundColors[0])}),this.languagesSub=this.chatService.activeLanguage$.subscribe(t=>{this.translatedText=this.translationsService.translations[t]})}onSwiperLoaded(t){console.log(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.map(i=>({path:i.path,title:i.title,description:i.description})),type:"image",show:!0,startingIndex:t})},10)}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe(),this.languagesSub&&this.languagesSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(bn),R(_D),R(ss))},n.\u0275cmp=Bt({type:n,selectors:[["app-swiper"]],inputs:{func:["message","func"]},decls:3,vars:3,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,i){1&t&&(C(0,"div",0)(1,"swiper",1),K("swiper",function(s){return i.onSwiperLoaded(s)}),A(2,jEe,1,0,null,2),E()()),2&t&&(v(1),w("config",i.config)("initialSlide",0),v(1),w("ngForOf",i.carouselItems))},dependencies:[Zi,Ji,Jn,ei,p_,yh,OU],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 WEe(n,e){if(1&n&&(C(0,"h3",13),J(1),E()),2&n){const t=S(3).$implicit;v(1),Ee(t.name)}}function qEe(n,e){1&n&&(Y(0,"p",14),br(1,"safe")),2&n&&w("innerHtml",xf(1,1,S(3).$implicit.description,"html"),tf)}const YEe=function(n){return{"gc-title-only":n}},CD=function(n){return{"background-color":n}};function KEe(n,e){if(1&n){const t=fe();C(0,"div",8),A(1,WEe,2,1,"h3",9),A(2,qEe,2,4,"p",10),C(3,"div",11)(4,"button",12),K("click",function(){V(t);const r=S(2).$implicit;return B(S().onScopeToClient(r))}),J(5,"Chat to this Property"),E()()()}if(2&n){const t=S(2).$implicit,i=S();w("ngClass",pe(4,YEe,!t.description||""===t.description)),v(1),w("ngIf",t.name),v(1),w("ngIf",t.description),v(2),w("ngStyle",pe(6,CD,i.primaryColor))}}function QEe(n,e){if(1&n){const t=fe();C(0,"div",15),K("click",function(){return V(t),B(S(3).onSlidePrev())}),ce(),C(1,"svg",16),Y(2,"path",17),E()()}if(2&n){const t=S(3);w("ngStyle",pe(1,CD,t.primaryColor))}}function XEe(n,e){if(1&n){const t=fe();C(0,"div",18),K("click",function(){return V(t),B(S(3).onSlideNext())}),ce(),C(1,"svg",19),Y(2,"path",20),E()()}if(2&n){const t=S(3);w("ngStyle",pe(1,CD,t.primaryColor))}}function ZEe(n,e){if(1&n&&(Y(0,"img",4),A(1,KEe,6,8,"div",5),A(2,QEe,3,3,"div",6),A(3,XEe,3,3,"div",7)),2&n){const t=S().$implicit,i=S();w("src",t.imageUrl,On),v(1),w("ngIf",t.name||t.description),v(1),w("ngIf",i.properties.length>1),v(1),w("ngIf",i.properties.length>1)}}function JEe(n,e){1&n&&A(0,ZEe,4,4,"ng-template",3)}let eTe=(()=>{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 i=window.localStorage.getItem("chatId");window.localStorage.setItem("clientId",t.clientId),this.chatService.initServer(t.clientId,i)}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(bn))},n.\u0275cmp=Bt({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,i){1&t&&(C(0,"div",0)(1,"swiper",1),K("swiper",function(s){return i.onSwiperLoaded(s)}),A(2,JEe,1,0,null,2),E()()),2&t&&(v(1),w("config",i.config)("initialSlide",0),v(1),w("ngForOf",i.properties))},dependencies:[Zi,Ji,Jn,ei,p_,yh,OU],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: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_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})(),tTe=(()=>{class n{constructor(t){this.translationsService=t}transform(t,i){const r=new Intl.RelativeTimeFormat(i||"en",{localeMatcher:"best fit",numeric:"always",style:"long"});if(t){const s=Math.floor((+new Date-+new Date(t))/1e3);if(s<29)return this.translationsService.translations[i].justNow?this.translationsService.translations[i].justNow:"Just now";const o={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};for(const a in o)if(Math.floor(s/o[a])>0)return r.format(-Math.floor(s/o[a]),a)}return t}}return n.\u0275fac=function(t){return new(t||n)(R(ss,16))},n.\u0275pipe=Dn({name:"relativeTime",type:n,pure:!0}),n})();function nTe(n,e){1&n&&(C(0,"div",7),Y(1,"app-sub-property-select"),E())}function iTe(n,e){if(1&n&&(C(0,"span",17),J(1),E()),2&n){const t=S().$implicit;v(1),Ee(t.value)}}function rTe(n,e){if(1&n&&(C(0,"span",18),J(1),E()),2&n){const t=S().$implicit;v(1),Ee(t.value)}}function sTe(n,e){1&n&&(ce(),C(0,"svg",32),Y(1,"path",33),E())}function oTe(n,e){1&n&&(ce(),C(0,"svg",34),Y(1,"path",35),E())}function aTe(n,e){1&n&&(ce(),C(0,"svg",36),Y(1,"path",37),E())}function lTe(n,e){1&n&&(ce(),C(0,"svg",38),Y(1,"path",39),E())}function cTe(n,e){1&n&&(ce(),C(0,"svg",36),Y(1,"path",40),E())}function uTe(n,e){1&n&&(ce(),C(0,"svg",34),Y(1,"path",41),E())}function dTe(n,e){1&n&&(ce(),C(0,"svg",36),Y(1,"path",42),E())}function hTe(n,e){1&n&&(ce(),C(0,"svg",34),Y(1,"path",43),E())}function fTe(n,e){1&n&&(ce(),C(0,"svg",34),Y(1,"path",44),E())}function pTe(n,e){1&n&&(ce(),C(0,"svg",38),Y(1,"path",45),E())}function gTe(n,e){1&n&&(ce(),C(0,"svg",46),Y(1,"path",47),E())}function mTe(n,e){1&n&&(ce(),C(0,"svg",48),Y(1,"path",49),E())}function yTe(n,e){1&n&&(ce(),C(0,"svg",34),Y(1,"path",50),E())}function _Te(n,e){if(1&n&&(C(0,"div",19)(1,"span",20),A(2,sTe,2,0,"svg",21),A(3,oTe,2,0,"svg",22),A(4,aTe,2,0,"svg",23),A(5,lTe,2,0,"svg",24),A(6,cTe,2,0,"svg",23),A(7,uTe,2,0,"svg",22),A(8,dTe,2,0,"svg",25),A(9,hTe,2,0,"svg",26),A(10,fTe,2,0,"svg",22),A(11,pTe,2,0,"svg",27),A(12,gTe,2,0,"svg",28),A(13,mTe,2,0,"svg",29),A(14,yTe,2,0,"svg",30),E(),C(15,"span",31),J(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),He(" ",t.value," ")}}function vTe(n,e){if(1&n&&(C(0,"span",51)(1,"a",52),J(2),E()()),2&n){const t=S().$implicit;v(1),w("href",t.link,On),v(1),Ee(t.value)}}function bTe(n,e){if(1&n&&(C(0,"span"),J(1),E()),2&n){const t=e.$implicit;v(1),Ee(t)}}function wTe(n,e){if(1&n&&(C(0,"div",53),A(1,bTe,2,1,"span",54),E()),2&n){const t=S().$implicit;v(1),w("ngForOf",t.value)}}function STe(n,e){if(1&n&&(C(0,"div",11),A(1,iTe,2,1,"span",12),A(2,rTe,2,1,"span",13),A(3,_Te,17,14,"div",14),A(4,vTe,3,2,"span",15),A(5,wTe,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 CTe(n,e){if(1&n&&(C(0,"div",7)(1,"div",9),A(2,STe,6,5,"div",10),E()()),2&n){const t=e.$implicit;v(2),w("ngForOf",t)}}function ETe(n,e){1&n&&(C(0,"div",7),Y(1,"app-live-chat-response"),E())}function TTe(n,e){if(1&n&&(C(0,"div",2),A(1,CTe,3,1,"div",8),A(2,ETe,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 xTe(n,e){if(1&n&&(C(0,"span",17),J(1),E()),2&n){const t=S().$implicit;v(1),Ee(t.value)}}function ITe(n,e){if(1&n&&(C(0,"span",18),J(1),E()),2&n){const t=S().$implicit;v(1),Ee(t.value)}}function ATe(n,e){1&n&&(ce(),C(0,"svg",32),Y(1,"path",33),E())}function DTe(n,e){1&n&&(ce(),C(0,"svg",34),Y(1,"path",35),E())}function kTe(n,e){1&n&&(ce(),C(0,"svg",36),Y(1,"path",37),E())}function MTe(n,e){1&n&&(ce(),C(0,"svg",38),Y(1,"path",39),E())}function PTe(n,e){1&n&&(ce(),C(0,"svg",36),Y(1,"path",40),E())}function OTe(n,e){1&n&&(ce(),C(0,"svg",34),Y(1,"path",41),E())}function NTe(n,e){1&n&&(ce(),C(0,"svg",36),Y(1,"path",42),E())}function RTe(n,e){1&n&&(ce(),C(0,"svg",34),Y(1,"path",43),E())}function LTe(n,e){1&n&&(ce(),C(0,"svg",34),Y(1,"path",44),E())}function FTe(n,e){1&n&&(ce(),C(0,"svg",38),Y(1,"path",45),E())}function VTe(n,e){1&n&&(ce(),C(0,"svg",46),Y(1,"path",47),E())}function BTe(n,e){1&n&&(ce(),C(0,"svg",48),Y(1,"path",49),E())}function $Te(n,e){1&n&&(ce(),C(0,"svg",34),Y(1,"path",50),E())}function HTe(n,e){if(1&n&&(C(0,"div",19)(1,"span",20),A(2,ATe,2,0,"svg",21),A(3,DTe,2,0,"svg",22),A(4,kTe,2,0,"svg",23),A(5,MTe,2,0,"svg",24),A(6,PTe,2,0,"svg",23),A(7,OTe,2,0,"svg",22),A(8,NTe,2,0,"svg",25),A(9,RTe,2,0,"svg",26),A(10,LTe,2,0,"svg",22),A(11,FTe,2,0,"svg",27),A(12,VTe,2,0,"svg",28),A(13,BTe,2,0,"svg",29),A(14,$Te,2,0,"svg",30),E(),C(15,"span",31),J(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),He(" ",t.value," ")}}function UTe(n,e){if(1&n&&(C(0,"span",51)(1,"a",52),J(2),E()()),2&n){const t=S().$implicit;v(1),w("href",t.link,On),v(1),Ee(t.value)}}function zTe(n,e){if(1&n&&(C(0,"span"),J(1),E()),2&n){const t=e.$implicit;v(1),Ee(t)}}function jTe(n,e){if(1&n&&(C(0,"div",53),A(1,zTe,2,1,"span",54),E()),2&n){const t=S().$implicit;v(1),w("ngForOf",t.value)}}function GTe(n,e){if(1&n&&(C(0,"div",11),A(1,xTe,2,1,"span",12),A(2,ITe,2,1,"span",13),A(3,HTe,17,14,"div",14),A(4,UTe,3,2,"span",15),A(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 WTe(n,e){if(1&n&&(C(0,"div",64)(1,"div",9),A(2,GTe,6,5,"div",10),E()()),2&n){const t=e.$implicit;v(2),w("ngForOf",t)}}function qTe(n,e){1&n&&(C(0,"div",65),Y(1,"app-intervention"),E())}function YTe(n,e){if(1&n){const t=fe();C(0,"div",7)(1,"app-live-chat-response",66),K("scrollNow",function(){return V(t),B(S(3).onScrollNow())}),E()()}if(2&n){const t=S(2).$implicit;v(1),w("liveChatSomebodyIsAround",t.liveChatSomebodyIsAround)}}function KTe(n,e){if(1&n&&(C(0,"div",67),Y(1,"app-availability-swiper",68),E()),2&n){const t=S(2).$implicit;v(1),w("message",t)}}function QTe(n,e){if(1&n&&(C(0,"div",70),Y(1,"app-link-preview",71),E()),2&n){const t=e.$implicit,i=e.index;v(1),w("preview",t)("index",i)}}function XTe(n,e){if(1&n&&(C(0,"div"),A(1,QTe,2,2,"div",69),E()),2&n){const t=S(2).$implicit;v(1),w("ngForOf",t.urlsResponse)}}function ZTe(n,e){if(1&n&&(C(0,"div",72),Y(1,"app-swiper",68),E()),2&n){const t=S(2).$implicit;v(1),w("message",t)}}function JTe(n,e){if(1&n){const t=fe();C(0,"div",7)(1,"button",73),K("click",function(){V(t);const r=S(2).$implicit;return B(S().onOpenExtraInput(r))}),J(2),E()()}if(2&n){const t=S(2).$implicit,i=S();v(1),w("ngStyle",i.backgroundSuccess),v(1),Ee(i.getTranslationForButton(t))}}function exe(n,e){if(1&n&&(C(0,"div",2),A(1,WTe,3,1,"div",59),A(2,qTe,2,0,"div",60),A(3,YTe,2,1,"div",3),A(4,KTe,2,1,"div",61),A(5,XTe,2,1,"div",6),A(6,ZTe,2,1,"div",62),A(7,JTe,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 txe=function(n){return{"background-color":n}};function nxe(n,e){if(1&n&&(C(0,"div",74)(1,"div",9),J(2),E()()),2&n){const t=S().$implicit,i=S();w("ngStyle",pe(2,txe,i.backgroundColor)),v(2),Ee(t.question)}}const ixe=function(n){return{"user-send":n}};function rxe(n,e){if(1&n&&(C(0,"div",75)(1,"div",76),J(2),br(3,"relativeTime"),E()()),2&n){const t=S().$implicit,i=S();v(1),w("ngClass",pe(6,ixe,!t.reply)),v(1),Bo(" ",xf(3,3,t.date.toDate(),i.activeLanguage)," ","Bot"!=t.sender&&"User"!=t.sender?t.sender:null," ")}}const sxe=function(n){return{"own-message":n}};function oxe(n,e){if(1&n){const t=fe();C(0,"div",55),K("click",function(){const s=V(t).$implicit;return B(S().onFocusMessage(s))}),A(1,exe,8,7,"div",56),C(2,"div",2),A(3,nxe,3,4,"div",57),E(),A(4,rxe,4,8,"div",58),E()}if(2&n){const t=e.$implicit;w("ngClass",pe(4,sxe,!t.reply)),v(1),w("ngIf",t.reply),v(2),w("ngIf",!t.reply),v(1),w("ngIf",t.date)}}function axe(n,e){1&n&&Y(0,"app-typing-animation")}let lxe=(()=>{class n{constructor(t,i,r){this.chatService=t,this.debugService=i,this.popupService=r,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=s=>s&&""!==s?s.split("--").map(a=>this.pullOutLinks(a)):[]}set f(t){this.debugService.logMode&&console.log("got messages",t),t.length>0?(this.noMessages?(this.messages=t.map(i=>({...i,textResponses:this.responseSplitter(i.textResponse)})),this.debugService.logMode&&console.log("First",this.messages),this.scrollNow.emit(500+20*this.messages.length)):(t.forEach(i=>{const r=this.messages.findIndex(o=>o.id===i.id),s={...i,swiperIndex:0,textResponses:this.responseSplitter(i.textResponse),liveChatSomebodyIsAround:this.liveChatSomebodyIsAround};-1===r&&i.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!==r||i.reply?i.id===this.userMessage.id&&(this.messages[r]=i):(this.messages.push(s),this.debugService.logMode&&console.log(s))}),this.scrollNow.emit(250)),this.noMessages=!1):this.messages=[]}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(i=>{i&&(this.botSettings={...i,openingLines:this.responseSplitter(i.openingLine)},this.backgroundSuccess={"background-color":i.backgroundColors[0]},this.preMessages=[{reply:!0,textResponses:this.responseSplitter(this.botSettings.openingLine)}])}),this.liveChatSub=this.chatService.liveChatSettings$.subscribe(i=>{i&&(this.preMessages=[],this.preMessages.push(this.chatService.liveChatOnlyMode&&!i.liveChatAvailable?{reply:!0,responseClass:"liveChatOptions",textResponses:this.responseSplitter("We are currently offline. Please choose from the option(s) below to get in touch with one of our team members.")}:{reply:!0,textResponses:this.responseSplitter(this.botSettings.openingLine)}))}),this.userMessageSub=this.chatService.userSend.subscribe(i=>{this.userMessage=i,-1===this.messages.findIndex(s=>s.id===i.id)&&(this.messages.push(i),this.scrollNow.emit())});const t=wo([this.chatService.botIsTyping$,this.chatService.postIsLoading$,this.chatService.agentIsTyping$]);this.typingSub=t.subscribe(([i,r,s])=>{i||r||s?(this.showTyping=!0,this.scrollNow.emit()):this.showTyping=!1}),this.languagesSub=this.chatService.activeLanguage$.subscribe(i=>{this.activeLanguage=i}),this.subPropertiesSub=this.chatService.subProperties$.subscribe(i=>{this.hasSubProperties=i.length>0})}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){const i={...t.structuredInputForm,preMessage:t.textResponse,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 i=[],r=t.replace(/ {2}\t/gm,"").trim();let s="text",o=0;for(let l=1;l<r.length;l++)if(">"===r[l]&&">"===r[l-1]&&(o+2<l&&i.push({type:"text",value:r.slice(o,l-1).trim()}),s="link",o=l+1),"["===r[l]&&"["===r[l-1]&&(o+2<l&&i.push({type:"text",value:r.slice(o,l-1).trim()}),s="table",o=l),"#"===r[l-1]&&"("===r[l]&&(o+2<l&&i.push({type:"text",value:r.slice(o,l-1).trim()}),s="list",o=l+1),"&"===r[l-1]&&"&"===r[l]&&(o+2<l&&i.push({type:"line",value:r.slice(o,l-1).trim()}),s="line",o=l+1)," "===r[l]&&"link"===s&&o+2<l||"]"===r[l]&&"]"===r[l-1]||"#"===r[l-1]&&")"===r[l]||"&"===r[l-1]&&"&"===r[l]||l===r.length-1){if("table"===s)i.push({type:"table",value:r.slice(o+1,l-1).split(",").map(c=>c.trim()).filter(c=>""!==c)});else if("link"===s){const c=r.slice(o,l+1).trim();/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(c)?i.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)?i.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)&&i.push({type:"link",value:c,link:c})}else i.push("list"===s||"line"===s?{type:s,value:r.slice(o,l-1).trim()}:{type:s,value:r.slice(o,l+1).trim()});o=l+1,s="text"}return 0===i.length&&i.push({type:"text",value:r.trim()}),i}getTranslationForButton(t){const i=this.chatService.activeLanguage$.getValue();return"en"===i?t.showStructuredInputButtonText?t.showStructuredInputButtonText:"Open Request Form":t.showStructuredInputButtonTextTranslations&&t.showStructuredInputButtonTextTranslations[i]?t.showStructuredInputButtonTextTranslations[i]:t.showStructuredInputButtonText}onScrollNow(){this.scrollNow.emit(100)}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe(),this.typingSub&&this.typingSub.unsubscribe(),this.languagesSub&&this.languagesSub.unsubscribe(),this.subPropertiesSub&&this.subPropertiesSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(bn),R(is),R(Pa))},n.\u0275cmp=Bt({type:n,selectors:[["app-messages-display"]],inputs:{f:["messages","f"]},outputs:{focusMessage:"focusMessage",scrollNow:"scrollNow"},decls:7,vars:4,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,i){1&t&&(C(0,"div",0)(1,"div",1)(2,"div",2),A(3,nTe,2,0,"div",3),E(),A(4,TTe,3,2,"div",4),E(),A(5,oxe,5,6,"div",5),A(6,axe,1,0,"app-typing-animation",6),E()),2&t&&(v(3),w("ngIf",i.hasSubProperties),v(1),w("ngForOf",i.preMessages),v(1),w("ngForOf",i.messages),v(1),w("ngIf",i.showTyping))},dependencies:[Zi,Ji,Jn,ei,zo,Nu,u0,b1e,w1e,IEe,NEe,REe,GEe,eTe,tTe],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 cxe=["scrollToHere"],uxe=["textInput"];function dxe(n,e){if(1&n&&(C(0,"div",29),Y(1,"img",30),E()),2&n){const t=S();v(1),w("src",t.whosTalking.img,On)}}const Mr=function(n){return{fill:n}};function hxe(n,e){if(1&n&&(ce(),C(0,"svg",31)(1,"g"),Y(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();v(2),w("ngStyle",pe(8,Mr,t.textColor)),v(1),w("ngStyle",pe(10,Mr,t.textColor)),v(1),w("ngStyle",pe(12,Mr,t.textColor)),v(1),w("ngStyle",pe(14,Mr,t.textColor)),v(1),w("ngStyle",pe(16,Mr,t.textColor)),v(1),w("ngStyle",pe(18,Mr,t.textColor)),v(1),w("ngStyle",pe(20,Mr,t.textColor)),v(1),w("ngStyle",pe(22,Mr,t.textColor))}}function fxe(n,e){if(1&n&&(ce(),C(0,"svg",40)(1,"g"),Y(2,"path",41),E()()),2&n){const t=S();v(2),w("ngStyle",pe(1,Mr,t.textColor))}}function pxe(n,e){if(1&n){const t=fe();ce(),St(),C(0,"div",42)(1,"ul")(2,"li",43),K("click",function(){V(t);const r=S();return r.onResetChat(),B(r.onExpandOptions())}),J(3),E()()()}if(2&n){const t=S();v(3),He(" ",t.tranlatedText.restartConversation," ")}}function gxe(n,e){1&n&&(ce(),St(),C(0,"div",44),Y(1,"app-structured-input"),E())}function mxe(n,e){if(1&n){const t=fe();ce(),St(),C(0,"div",45),K("click",function(){return V(t),B(S().exportNotificationShow$.next(!1))}),J(1),E()}if(2&n){const t=S();v(1),He(" ",t.tranlatedText.considerShortening," ")}}function yxe(n,e){if(1&n&&(C(0,"div",46),J(1),C(2,"a",47),J(3),E()()),2&n){const t=S();v(1),He(" ",t.tranlatedText.gdrpAgreeing," "),v(2),Ee(t.tranlatedText.gdrpDataProcessing)}}function _xe(n,e){if(1&n){const t=fe();C(0,"app-quick-actions",48),K("newActionAreaHeight",function(r){return V(t),B(S().onNewActionAreaHeight(r))})("scrollNow",function(){return V(t),B(S().onScrollToBottom())}),E()}if(2&n){const t=S();w("related-intents",t.relatedIntents)("forceOpen",t.forceOpenSecondaryBar)}}function vxe(n,e){if(1&n){const t=fe();C(0,"div",58),K("click",function(){return V(t),B(S(2).onExpandLanguages())}),Y(1,"img",30),br(2,"async"),E()}if(2&n){const t=S(2);v(1),w("src",Dl(2,1,t.activeLanguage$),On)}}function bxe(n,e){if(1&n){const t=fe();C(0,"li",43),K("click",function(){const s=V(t).$implicit;return B(S(3).onSelectLanguage(s))}),Y(1,"img",30),E()}if(2&n){const t=e.$implicit;v(1),w("src",t.label,On)}}function wxe(n,e){if(1&n&&(C(0,"div",59)(1,"ul"),A(2,bxe,2,1,"li",60),E()()),2&n){const t=S(2);v(2),w("ngForOf",t.languagesDD)}}const Sxe=function(n){return{"has-languages-select":n}};function Cxe(n,e){if(1&n){const t=fe();C(0,"div",49)(1,"div",50),A(2,vxe,3,3,"div",51),C(3,"input",52,53),K("ngModelChange",function(r){return V(t),B(S().inputText=r)})("keyup",function(r){return V(t),B(S().onKeyup(r))}),E(),A(5,wxe,3,1,"div",54),E(),C(6,"div",55),K("click",function(){return V(t),B(S().onSendText())}),ce(),C(7,"svg",56),Y(8,"path",57),E()()()}if(2&n){const t=S();v(2),w("ngIf",t.translationsActive),v(1),w("ngModel",t.inputText)("placeholder",t.tranlatedText.typeMessage)("ngClass",pe(5,Sxe,t.translationsActive)),v(2),w("ngIf",t.languageOptionsOpen)}}function Exe(n,e){1&n&&Y(0,"div",61)}const Txe=function(n,e,t){return{open:n,left:e,maximized:t}},xxe=function(n){return{color:n}},RU=function(n){return{"extra-open":n}},Ixe=function(n){return{hidden:n}},Axe=function(n){return{height:n}};let Dxe=(()=>{class n{constructor(t,i,r,s){this.chatService=t,this.popupService=i,this.debugService=r,this.translationsService=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.liveChatOnlyMode=!1,this.liveChatSettings={liveChatAvailable:!0},this.exportNotificationShow$=new vt(!1),this.forceOpenSecondaryBar=!1,this.languagesDD=[],this.languages=[{iso:"af",name:"Afrikaans"},{iso:"nl",name:"Dutch"},{iso:"en",name:"English"},{iso:"fr",name:"French"},{iso:"de",name:"German"},{iso:"es",name:"Spanish"}],this.languageOptionsOpen=!1,this.translationsActive=!1,this.maximized=!1,this.activeLanguage$=this.chatService.activeLanguage$.pipe(bi(o=>this.translationsService.flags[o])),this.hasGDRP$=this.chatService.hasGDRP$}ngOnInit(){const t=wo([this.chatService.chatBS,this.chatService.canPostReply$,this.popupService.showChatBox]);this.messagesSub=t.subscribe(([i,r,s])=>{const o=i.length;if(s)if(o>0){const a=i[o-1];if(!a.reply)return void(this.messages=i.slice());if(a.roomCategoriesObj&&Object.keys(a?.roomCategoriesObj).length>0&&(this.forceOpenSecondaryBar=!0),r)return this.messages=i.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(i=>{i?(this.state="open",setTimeout(()=>{this.myInputField&&this.myInputField.nativeElement.focus()},500)):this.state="close"}),this.botSettingsSub=this.chatService.botSettingsBS.subscribe(i=>{this.liveChatOnlyMode=this.chatService.liveChatOnlyMode,i&&(this.botSettings=i,this.backgroundSuccess={"background-color":i.backgroundColors[0]},i.textColor&&(this.textColor=i.textColor),this.translationsActive=this.chatService.translationsActive)}),this.liveChatSettingsSub=this.chatService.liveChatSettings$.subscribe(i=>{i&&(this.liveChatSettings=i)}),this.whosTalkingSub=this.chatService.botImage$.subscribe(i=>{i&&(this.whosTalking=i)}),this.showStructuredInputSub=this.chatService.showStructuredInput$.subscribe(i=>{i?(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=wo([this.chatService.activeLanguage$,this.chatService.otherLanguages$]).subscribe(([i,r])=>{this.languagesDD=[],this.tranlatedText=this.translationsService.translations[i],this.languages.forEach(s=>{(s.iso===this.chatService.defaultLanguage||r.indexOf(s.iso)>-1)&&this.languagesDD.push({label:this.translationsService.flags[s.iso],value:s.iso})})})}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 i=this.chatService.getClientId;("3U7FhXtxoR1LhbaBw4OH"===i||"E78oLuo56gxY4uvzUF8u"===i)&&"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.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,i=this.chatService.generateNewChatId(t);this.chatService.initServer(t,i,!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.chatService.activeLanguage$.next(t.value),this.languageOptionsOpen=!1,window.localStorage.setItem("selectedLanguage",t.value)}ngOnDestroy(){this.messagesSub.unsubscribe(),this.showthisSub.unsubscribe(),this.botSettingsSub.unsubscribe(),this.whosTalkingSub.unsubscribe(),this.showStructuredInputSub.unsubscribe(),this.languagesSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(R(bn),R(Pa),R(is),R(ss))},n.\u0275cmp=Bt({type:n,selectors:[["gc-chat-area"]],viewQuery:function(t,i){if(1&t&&($r(cxe,5),$r(uxe,5)),2&t){let r;Yi(r=Ki())&&(i.scrollToHere=r.first),Yi(r=Ki())&&(i.myInputField=r.first)}},decls:34,vars:45,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",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"],["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"],["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",4,"ngIf"],["class","extra-input",4,"ngIf"],["class","extra-notification",3,"click",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",4,"ngIf"],["class","gc-entry-container",4,"ngIf"],["class","entry-container blank",4,"ngIf"],[1,"available-operators"],["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",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"],["id","chatOptions"],[3,"click"],[1,"extra-input"],[1,"extra-notification",3,"click"],[1,"gc-gdrp"],["href","https://guestchat.com/data-processing-term","target","_blank"],[3,"related-intents","forceOpen","newActionAreaHeight","scrollNow"],[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,i){1&t&&(C(0,"div",0),K("resized",function(s){return i.onResized(s)})("mouseleave",function(){return i.onMouseLeave()}),C(1,"div",1)(2,"div",2)(3,"div",3),A(4,dxe,2,1,"div",4),C(5,"div",5)(6,"div",6),J(7),E()()(),C(8,"div",7)(9,"div",8),K("click",function(){return i.onExpandOptions()}),ce(),C(10,"svg",9),Y(11,"path",10),E()(),St(),C(12,"div",8),K("click",function(){return i.onToggleMaximize()}),A(13,hxe,10,24,"svg",11),A(14,fxe,3,3,"svg",12),E(),C(15,"div",8),K("click",function(){return i.onClose()}),ce(),C(16,"svg",13),Y(17,"path",14),E()(),A(18,pxe,4,1,"div",15),E()(),A(19,gxe,2,0,"div",16),A(20,mxe,2,1,"div",17),br(21,"async"),St(),C(22,"div",18)(23,"div",19,20)(25,"app-messages-display",21),K("focusMessage",function(s){return i.onFocusMessage(s)})("scrollNow",function(s){return i.onScrollToBottom(s)}),E(),Y(26,"div",22,23),E(),A(28,yxe,4,2,"div",24),br(29,"async"),E(),C(30,"div",25),A(31,_xe,1,2,"app-quick-actions",26),A(32,Cxe,9,7,"div",27),A(33,Exe,1,0,"div",28),E()()()),2&t&&(w("ngClass",Tb(27,Txe,"open"==i.state,"left"==i.botSettings.screenPosition,i.maximized)),v(1),w("ngStyle",i.backgroundSuccess),v(3),w("ngIf",i.whosTalking.title),v(1),w("ngStyle",pe(31,xxe,i.textColor)),v(2),He(" ",i.whosTalking.title," "),v(4),w("ngStyle",pe(33,Mr,i.textColor)),v(2),w("ngIf",!i.maximized),v(1),w("ngIf",i.maximized),v(3),w("ngStyle",pe(35,Mr,i.textColor)),v(1),w("ngIf",i.chatOptionsOpen),v(1),w("ngIf",i.extraInputOpen),v(1),w("ngIf",Dl(21,23,i.exportNotificationShow$)),v(2),Fn("height",i.columnContainerHeight),w("ngClass",pe(37,RU,i.extraInputOpen)),v(1),w("ngClass",pe(39,Ixe,i.extraInputOpen)),v(2),w("messages",i.messages),v(3),w("ngIf",0===i.messages.length&&Dl(29,25,i.hasGDRP$)),v(2),w("ngClass",pe(41,RU,i.extraInputOpen))("ngStyle",pe(43,Axe,i.inputContainerHeight)),v(1),w("ngIf",!i.liveChatOnlyMode),v(1),w("ngIf",!i.liveChatOnlyMode||i.liveChatSettings.liveChatAvailable),v(1),w("ngIf",i.liveChatOnlyMode&&!i.liveChatSettings.liveChatAvailable))},dependencies:[Zi,Ji,Jn,ei,uh,qA,r_,XH,a1e,g1e,lxe,Wf],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!important;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 .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:25px;width:38px;padding:0 2px;display:inline-block;border-radius:50%;margin-top:8px;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 kxe(n,e){1&n&&Y(0,"img",17),2&n&&w("src",S(2).$implicit.path,On)}function Mxe(n,e){if(1&n&&(C(0,"div",18)(1,"div"),J(2),E(),C(3,"div"),Y(4,"div",19),E()()),2&n){const t=S(2).$implicit;v(2),He(" ",t.title," "),v(2),w("innerHTML",t.description,tf)}}const LU=function(n){return{"background-color":n}};function Pxe(n,e){if(1&n&&(C(0,"div",20),ce(),C(1,"svg",21),Y(2,"path",22),E()()),2&n){const t=S(5);w("ngStyle",pe(1,LU,t.mainColor))}}function Oxe(n,e){if(1&n&&(C(0,"div",23),ce(),C(1,"svg",24),Y(2,"path",25),E()()),2&n){const t=S(5);w("ngStyle",pe(1,LU,t.mainColor))}}function Nxe(n,e){if(1&n){const t=fe();A(0,kxe,1,1,"img",11),A(1,Mxe,5,2,"div",12),C(2,"div",13),K("click",function(r){return V(t),B(S(4).onSlidePrev(r))}),A(3,Pxe,3,3,"div",14),E(),C(4,"div",15),K("click",function(r){return V(t),B(S(4).onSlideNext(r))}),A(5,Oxe,3,3,"div",16),E()}if(2&n){const t=S().$implicit,i=S(3);w("ngIf",t.path),v(1),w("ngIf",t.title),v(2),w("ngIf",i.floatDisplay.imageUrls.length>1),v(2),w("ngIf",i.floatDisplay.imageUrls.length>1)}}function Rxe(n,e){1&n&&A(0,Nxe,6,4,"ng-template",10)}function Lxe(n,e){if(1&n){const t=fe();ce(),St(),C(0,"swiper",8),K("swiper",function(r){return V(t),B(S(2).onSwiperLoaded(r))}),A(1,Rxe,1,0,null,9),E()}if(2&n){const t=S(2);w("config",t.config),v(1),w("ngForOf",t.floatDisplay.imageUrls)}}function Fxe(n,e){if(1&n&&(ce(),St(),C(0,"div"),Y(1,"img",17),E()),2&n){const t=S(2);v(1),w("src",t.floatDisplay.imageUrls[0].path,On)}}function Vxe(n,e){if(1&n){const t=fe();C(0,"div",1),K("click",function(){return V(t),B(S().onClose())}),C(1,"div",2)(2,"div",3),K("click",function(){return V(t),B(S().onClose())}),ce(),C(3,"svg",4),Y(4,"path",5),E()(),A(5,Lxe,2,2,"swiper",6),A(6,Fxe,2,1,"div",7),E()()}if(2&n){const t=S();v(5),w("ngIf",!t.onlyOneMode),v(1),w("ngIf",t.onlyOneMode)}}Fa.use([xU]);let Bxe=(()=>{class n{constructor(t,i,r){this.floatingService=t,this.debugService=i,this.chatService=r,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(_D),R(is),R(bn))},n.\u0275cmp=Bt({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"],[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,i){1&t&&A(0,Vxe,7,2,"div",0),2&t&&w("ngIf",i.floatDisplay.show)},dependencies:[Ji,Jn,ei,p_,yh],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)}#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})(),$xe=(()=>{class n{constructor(t,i){this.popupService=t,this.chatService=i}onClickedOutside(t){}set func(t){t&&(this.key=t,this.loadData())}ngOnInit(){}loadData(){const t=window.localStorage.getItem("chatId"),i=window.localStorage.getItem("chatTime"),r=window.localStorage.getItem("clientId");let s;i&&(s=this.differenceDays(new Date(i))),this.sessionId=t&&0===s?t:this.chatService.generateNewChatId(this.key),r?(this.chatService.initServer(r,this.sessionId),this.chatService.alsoGetMasterMultiProprty(this.key)):this.chatService.initServer(this.key,this.sessionId)}differenceDays(t){const r=(new Date).getTime(),s=t.getTime();return Math.round((r-s)/864e5)}ngOnDestroy(){}}return n.\u0275fac=function(t){return new(t||n)(R(Pa),R(bn))},n.\u0275cmp=Bt({type:n,selectors:[["chat-widget"]],hostBindings:function(t,i){1&t&&K("click",function(s){return i.onClickedOutside(s)},0,lu)},inputs:{func:["key","func"]},decls:3,vars:0,template:function(t,i){1&t&&Y(0,"app-floating-display")(1,"gc-start-button")(2,"gc-chat-area")},dependencies:[lbe,Dxe,Bxe],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})(),Hxe=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){if(!customElements.get("chat-widget")){const t=function ffe(n,e){const t=function ofe(n,e){return e.get(ol).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new ufe(n,e.injector),r=function sfe(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function efe(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends hfe{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.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(r[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(r),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}($xe,{injector:this.injector});customElements.define("chat-widget",t)}}}return n.\u0275fac=function(t){return new(t||n)(ue(di))},n.\u0275mod=qt({type:n}),n.\u0275inj=Vt({imports:[yR,Pre(()=>Ore(SR_firebase)),Ghe(()=>qhe()),qX,qJ,o0e,Kwe,c0e,iEe,Xwe]}),n})();(function rK(){wN=!1})(),bX().bootstrapModule(Hxe).then(n=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=n}).catch(n=>console.error(n))}},g_=>{g_(g_.s=271)}]);