(()=>{"use strict";var e,s={},v={};function a(e){var t=v[e];if(void 0!==t)return t.exports;var r=v[e]={exports:{}};return s[e].call(r.exports,r,r.exports,a),r.exports}a.m=s,e=[],a.O=(t,r,o,l)=>{if(!r){var c=1/0;for(n=0;n<e.length;n++){for(var[r,o,l]=e[n],d=!0,f=0;f<r.length;f++)(!1&l||c>=l)&&Object.keys(a.O).every(p=>a.O[p](r[f]))?r.splice(f--,1):(d=!1,l<c&&(c=l));if(d){e.splice(n--,1);var u=o();void 0!==u&&(t=u)}}return t}l=l||0;for(var n=e.length;n>0&&e[n-1][2]>l;n--)e[n]=e[n-1];e[n]=[r,o,l]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),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 t=(o,l)=>{var f,u,[n,c,d]=l,i=0;if(n.some(b=>0!==e[b])){for(f in c)a.o(c,f)&&(a.m[f]=c[f]);if(d)var _=d(a)}for(o&&o(l);i<n.length;i++)a.o(e,u=n[i])&&e[u]&&e[u][0](),e[u]=0;return a.O(_)},r=self.webpackChunkchat_widget=self.webpackChunkchat_widget||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})()})();
(self.webpackChunkchat_widget=self.webpackChunkchat_widget||[]).push([[429],{321:(I,fe,re)=>{"use strict";re(332)},332:(I,fe,re)=>{"use strict";var q=re(122).default;!function(e){const n=e.performance;function s(x){n&&n.mark&&n.mark(x)}function r(x,h){n&&n.measure&&n.measure(x,h)}s("Zone");const i=e.__Zone_symbol_prefix||"__zone_symbol__";function l(x){return i+x}const g=!0===e[l("forceDuplicateZoneCheck")];if(e.Zone){if(g||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let E=(()=>{class h{static assertZonePatched(){if(e.Promise!==_e.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=h.current;for(;t.parent;)t=t.parent;return t}static get current(){return z.zone}static get currentTask(){return de}static __load_patch(t,_,O=!1){if(_e.hasOwnProperty(t)){if(!O&&g)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const j="Zone:"+t;s(j),_e[t]=_(e,h,J),r(j,j)}}get parent(){return this._parent}get name(){return this._name}constructor(t,_){this._parent=t,this._name=_?_.name||"unnamed":"<root>",this._properties=_&&_.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,_)}get(t){const _=this.getZoneWith(t);if(_)return _._properties[t]}getZoneWith(t){let _=this;for(;_;){if(_._properties.hasOwnProperty(t))return _;_=_._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,_){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const O=this._zoneDelegate.intercept(this,t,_),j=this;return function(){return j.runGuarded(O,this,arguments,_)}}run(t,_,O,j){z={parent:z,zone:this};try{return this._zoneDelegate.invoke(this,t,_,O,j)}finally{z=z.parent}}runGuarded(t,_=null,O,j){z={parent:z,zone:this};try{try{return this._zoneDelegate.invoke(this,t,_,O,j)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{z=z.parent}}runTask(t,_,O){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||ne).name+"; Execution: "+this.name+")");if(t.state===V&&(t.type===ie||t.type===w))return;const j=t.state!=T;j&&t._transitionTo(T,A),t.runCount++;const a=de;de=t,z={parent:z,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,_,O)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{t.state!==V&&t.state!==d&&(t.type==ie||t.data&&t.data.isPeriodic?j&&t._transitionTo(A,T):(t.runCount=0,this._updateTaskCount(t,-1),j&&t._transitionTo(V,T,V))),z=z.parent,de=a}}scheduleTask(t){if(t.zone&&t.zone!==this){let O=this;for(;O;){if(O===t.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(t.zone.name));O=O.parent}}t._transitionTo(K,V);const _=[];t._zoneDelegates=_,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(O){throw t._transitionTo(d,K,V),this._zoneDelegate.handleError(this,O),O}return t._zoneDelegates===_&&this._updateTaskCount(t,1),t.state==K&&t._transitionTo(A,K),t}scheduleMicroTask(t,_,O,j){return this.scheduleTask(new m(M,t,_,O,j,void 0))}scheduleMacroTask(t,_,O,j,a){return this.scheduleTask(new m(w,t,_,O,j,a))}scheduleEventTask(t,_,O,j,a){return this.scheduleTask(new m(ie,t,_,O,j,a))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||ne).name+"; Execution: "+this.name+")");if(t.state===A||t.state===T){t._transitionTo(F,A,T);try{this._zoneDelegate.cancelTask(this,t)}catch(_){throw t._transitionTo(d,F),this._zoneDelegate.handleError(this,_),_}return this._updateTaskCount(t,-1),t._transitionTo(V,F),t.runCount=0,t}}_updateTaskCount(t,_){const O=t._zoneDelegates;-1==_&&(t._zoneDelegates=null);for(let j=0;j<O.length;j++)O[j]._updateTaskCount(t.type,_)}}return h.__symbol__=l,h})();const P={name:"",onHasTask:(x,h,c,t)=>x.hasTask(c,t),onScheduleTask:(x,h,c,t)=>x.scheduleTask(c,t),onInvokeTask:(x,h,c,t,_,O)=>x.invokeTask(c,t,_,O),onCancelTask:(x,h,c,t)=>x.cancelTask(c,t)};class v{constructor(h,c,t){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=h,this._parentDelegate=c,this._forkZS=t&&(t&&t.onFork?t:c._forkZS),this._forkDlgt=t&&(t.onFork?c:c._forkDlgt),this._forkCurrZone=t&&(t.onFork?this.zone:c._forkCurrZone),this._interceptZS=t&&(t.onIntercept?t:c._interceptZS),this._interceptDlgt=t&&(t.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=t&&(t.onIntercept?this.zone:c._interceptCurrZone),this._invokeZS=t&&(t.onInvoke?t:c._invokeZS),this._invokeDlgt=t&&(t.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=t&&(t.onInvoke?this.zone:c._invokeCurrZone),this._handleErrorZS=t&&(t.onHandleError?t:c._handleErrorZS),this._handleErrorDlgt=t&&(t.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=t&&(t.onHandleError?this.zone:c._handleErrorCurrZone),this._scheduleTaskZS=t&&(t.onScheduleTask?t:c._scheduleTaskZS),this._scheduleTaskDlgt=t&&(t.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=t&&(t.onScheduleTask?this.zone:c._scheduleTaskCurrZone),this._invokeTaskZS=t&&(t.onInvokeTask?t:c._invokeTaskZS),this._invokeTaskDlgt=t&&(t.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=t&&(t.onInvokeTask?this.zone:c._invokeTaskCurrZone),this._cancelTaskZS=t&&(t.onCancelTask?t:c._cancelTaskZS),this._cancelTaskDlgt=t&&(t.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=t&&(t.onCancelTask?this.zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const _=t&&t.onHasTask;(_||c&&c._hasTaskZS)&&(this._hasTaskZS=_?t:P,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=h,t.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this.zone),t.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this.zone),t.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this.zone))}fork(h,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,h,c):new E(h,c)}intercept(h,c,t){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,h,c,t):c}invoke(h,c,t,_,O){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,h,c,t,_,O):c.apply(t,_)}handleError(h,c){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,h,c)}scheduleTask(h,c){let t=c;if(this._scheduleTaskZS)this._hasTaskZS&&t._zoneDelegates.push(this._hasTaskDlgtOwner),t=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,h,c),t||(t=c);else if(c.scheduleFn)c.scheduleFn(c);else{if(c.type!=M)throw new Error("Task is missing scheduleFn.");R(c)}return t}invokeTask(h,c,t,_){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,h,c,t,_):c.callback.apply(t,_)}cancelTask(h,c){let t;if(this._cancelTaskZS)t=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,h,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");t=c.cancelFn(c)}return t}hasTask(h,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,h,c)}catch(t){this.handleError(h,t)}}_updateTaskCount(h,c){const t=this._taskCounts,_=t[h],O=t[h]=_+c;if(O<0)throw new Error("More tasks executed then were scheduled.");0!=_&&0!=O||this.hasTask(this.zone,{microTask:t.microTask>0,macroTask:t.macroTask>0,eventTask:t.eventTask>0,change:h})}}class m{constructor(h,c,t,_,O,j){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=h,this.source=c,this.data=_,this.scheduleFn=O,this.cancelFn=j,!t)throw new Error("callback is not defined");this.callback=t;const a=this;this.invoke=h===ie&&_&&_.useG?m.invokeTask:function(){return m.invokeTask.call(e,a,this,arguments)}}static invokeTask(h,c,t){h||(h=this),ae++;try{return h.runCount++,h.zone.runTask(h,c,t)}finally{1==ae&&p(),ae--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(V,K)}_transitionTo(h,c,t){if(this._state!==c&&this._state!==t)throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(h,"', expecting state '").concat(c,"'").concat(t?" or '"+t+"'":"",", was '").concat(this._state,"'."));this._state=h,h==V&&(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 L=l("setTimeout"),Z=l("Promise"),N=l("then");let oe,W=[],G=!1;function $(x){if(oe||e[Z]&&(oe=e[Z].resolve(0)),oe){let h=oe[N];h||(h=oe.then),h.call(oe,x)}else e[L](x,0)}function R(x){0===ae&&0===W.length&&$(p),x&&W.push(x)}function p(){if(!G){for(G=!0;W.length;){const x=W;W=[];for(let h=0;h<x.length;h++){const c=x[h];try{c.zone.runTask(c,null,null)}catch(t){J.onUnhandledError(t)}}}J.microtaskDrainDone(),G=!1}}const ne={name:"NO ZONE"},V="notScheduled",K="scheduling",A="scheduled",T="running",F="canceling",d="unknown",M="microTask",w="macroTask",ie="eventTask",_e={},J={symbol:l,currentZoneFrame:()=>z,onUnhandledError:Y,microtaskDrainDone:Y,scheduleMicroTask:R,showUncaughtError:()=>!E[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:Y,patchMethod:()=>Y,bindArguments:()=>[],patchThen:()=>Y,patchMacroTask:()=>Y,patchEventPrototype:()=>Y,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>Y,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>Y,wrapWithCurrentZone:()=>Y,filterProperties:()=>[],attachOriginToPatched:()=>Y,_redefineProperty:()=>Y,patchCallbacks:()=>Y,nativeScheduleMicroTask:$};let z={parent:null,zone:new E(null,null)},de=null,ae=0;function Y(){}r("Zone","Zone"),e.Zone=E}(typeof window<"u"&&window||typeof self<"u"&&self||global);const se=Object.getOwnPropertyDescriptor,Q=Object.defineProperty,X=Object.getPrototypeOf,ee=Object.create,ce=Array.prototype.slice,le="addEventListener",Re="removeEventListener",je=Zone.__symbol__(le),Ae=Zone.__symbol__(Re),pe="true",Te="false",Se=Zone.__symbol__("");function xe(e,n){return Zone.current.wrap(e,n)}function He(e,n,s,r,i){return Zone.current.scheduleMacroTask(e,n,s,r,i)}const H=Zone.__symbol__,Ze=typeof window<"u",be=Ze?window:void 0,te=Ze&&be||"object"==typeof self&&self||global,ft="removeAttribute";function Ge(e,n){for(let s=e.length-1;s>=0;s--)"function"==typeof e[s]&&(e[s]=xe(e[s],n+"_"+s));return e}function Xe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const qe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Ne=!("nw"in te)&&typeof te.process<"u"&&"[object process]"==={}.toString.call(te.process),Ve=!Ne&&!qe&&!(!Ze||!be.HTMLElement),ze=typeof te.process<"u"&&"[object process]"==={}.toString.call(te.process)&&!qe&&!(!Ze||!be.HTMLElement),Me={},Ye=function(e){if(!(e=e||te.event))return;let n=Me[e.type];n||(n=Me[e.type]=H("ON_PROPERTY"+e.type));const s=this||e.target||te,r=s[n];let i;return Ve&&s===be&&"error"===e.type?(i=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===i&&e.preventDefault()):(i=r&&r.apply(this,arguments),null!=i&&!i&&e.preventDefault()),i};function $e(e,n,s){let r=se(e,n);if(!r&&s&&se(s,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const i=H("on"+n+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete r.writable,delete r.value;const l=r.get,g=r.set,E=n.slice(2);let P=Me[E];P||(P=Me[E]=H("ON_PROPERTY"+E)),r.set=function(v){let m=this;!m&&e===te&&(m=te),m&&("function"==typeof m[P]&&m.removeEventListener(E,Ye),g&&g.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(E,Ye,!1))},r.get=function(){let v=this;if(!v&&e===te&&(v=te),!v)return null;const m=v[P];if(m)return m;if(l){let L=l.call(this);if(L)return r.set.call(this,L),"function"==typeof v[ft]&&v.removeAttribute(n),L}return null},Q(e,n,r),e[i]=!0}function Ke(e,n,s){if(n)for(let r=0;r<n.length;r++)$e(e,"on"+n[r],s);else{const r=[];for(const i in e)"on"==i.slice(0,2)&&r.push(i);for(let i=0;i<r.length;i++)$e(e,r[i],s)}}const he=H("originalInstance");function Ce(e){const n=te[e];if(!n)return;te[H(e)]=n,te[e]=function(){const i=Ge(arguments,e);switch(i.length){case 0:this[he]=new n;break;case 1:this[he]=new n(i[0]);break;case 2:this[he]=new n(i[0],i[1]);break;case 3:this[he]=new n(i[0],i[1],i[2]);break;case 4:this[he]=new n(i[0],i[1],i[2],i[3]);break;default:throw new Error("Arg list too long.")}},ge(te[e],n);const s=new n(function(){});let r;for(r in s)"XMLHttpRequest"===e&&"responseBlob"===r||function(i){"function"==typeof s[i]?te[e].prototype[i]=function(){return this[he][i].apply(this[he],arguments)}:Q(te[e].prototype,i,{set:function(l){"function"==typeof l?(this[he][i]=xe(l,e+"."+i),ge(this[he][i],l)):this[he][i]=l},get:function(){return this[he][i]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(te[e][r]=n[r])}function ye(e,n,s){let r=e;for(;r&&!r.hasOwnProperty(n);)r=X(r);!r&&e[n]&&(r=e);const i=H(n);let l=null;if(r&&(!(l=r[i])||!r.hasOwnProperty(i))&&(l=r[i]=r[n],Xe(r&&se(r,n)))){const E=s(l,i,n);r[n]=function(){return E(this,arguments)},ge(r[n],l)}return l}function dt(e,n,s){let r=null;function i(l){const g=l.data;return g.args[g.cbIdx]=function(){l.invoke.apply(this,arguments)},r.apply(g.target,g.args),l}r=ye(e,n,l=>function(g,E){const P=s(g,E);return P.cbIdx>=0&&"function"==typeof E[P.cbIdx]?He(P.name,E[P.cbIdx],P,i):l.apply(g,E)})}function ge(e,n){e[H("OriginalDelegate")]=n}let Je=!1,Fe=!1;function Et(){if(Je)return Fe;Je=!0;try{const e=be.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Fe=!0)}catch(e){}return Fe}Zone.__load_patch("ZoneAwarePromise",(e,n,s)=>{const r=Object.getOwnPropertyDescriptor,i=Object.defineProperty,g=s.symbol,E=[],P=!0===e[g("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=g("Promise"),m=g("then"),L="__creationTrace__";s.onUnhandledError=a=>{if(s.showUncaughtError()){const u=a&&a.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",a.zone.name,"; Task:",a.task&&a.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(a)}},s.microtaskDrainDone=()=>{for(;E.length;){const a=E.shift();try{a.zone.runGuarded(()=>{throw a.throwOriginal?a.rejection:a})}catch(u){N(u)}}};const Z=g("unhandledPromiseRejectionHandler");function N(a){s.onUnhandledError(a);try{const u=n[Z];"function"==typeof u&&u.call(this,a)}catch(u){}}function W(a){return a&&a.then}function G(a){return a}function oe(a){return c.reject(a)}const $=g("state"),R=g("value"),p=g("finally"),ne=g("parentPromiseValue"),V=g("parentPromiseState"),K="Promise.then",A=null,T=!0,F=!1,d=0;function M(a,u){return o=>{try{J(a,u,o)}catch(f){J(a,!1,f)}}}const w=function(){let a=!1;return function(o){return function(){a||(a=!0,o.apply(null,arguments))}}},ie="Promise resolved with itself",_e=g("currentTaskTrace");function J(a,u,o){const f=w();if(a===o)throw new TypeError(ie);if(a[$]===A){let k=null;try{("object"==typeof o||"function"==typeof o)&&(k=o&&o.then)}catch(b){return f(()=>{J(a,!1,b)})(),a}if(u!==F&&o instanceof c&&o.hasOwnProperty($)&&o.hasOwnProperty(R)&&o[$]!==A)de(o),J(a,o[$],o[R]);else if(u!==F&&"function"==typeof k)try{k.call(o,f(M(a,u)),f(M(a,!1)))}catch(b){f(()=>{J(a,!1,b)})()}else{a[$]=u;const b=a[R];if(a[R]=o,a[p]===p&&u===T&&(a[$]=a[V],a[R]=a[ne]),u===F&&o instanceof Error){const y=n.currentTask&&n.currentTask.data&&n.currentTask.data[L];y&&i(o,_e,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y<b.length;)ae(a,b[y++],b[y++],b[y++],b[y++]);if(0==b.length&&u==F){a[$]=d;let y=o;try{throw new Error("Uncaught (in promise): "+function l(a){return a&&a.toString===Object.prototype.toString?(a.constructor&&a.constructor.name||"")+": "+JSON.stringify(a):a?a.toString():Object.prototype.toString.call(a)}(o)+(o&&o.stack?"\n"+o.stack:""))}catch(S){y=S}P&&(y.throwOriginal=!0),y.rejection=o,y.promise=a,y.zone=n.current,y.task=n.currentTask,E.push(y),s.scheduleMicroTask()}}}return a}const z=g("rejectionHandledHandler");function de(a){if(a[$]===d){try{const u=n[z];u&&"function"==typeof u&&u.call(this,{rejection:a[R],promise:a})}catch(u){}a[$]=F;for(let u=0;u<E.length;u++)a===E[u].promise&&E.splice(u,1)}}function ae(a,u,o,f,k){de(a);const b=a[$],y=b?"function"==typeof f?f:G:"function"==typeof k?k:oe;u.scheduleMicroTask(K,()=>{try{const S=a[R],C=!!o&&p===o[p];C&&(o[ne]=S,o[V]=b);const D=u.run(y,void 0,C&&y!==oe&&y!==G?[]:[S]);J(o,!0,D)}catch(S){J(o,!1,S)}},o)}const x=function(){},h=e.AggregateError;class c{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return J(new this(null),T,u)}static reject(u){return J(new this(null),F,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new h([],"All promises were rejected"));const o=[];let f=0;try{for(let y of u)f++,o.push(c.resolve(y))}catch(y){return Promise.reject(new h([],"All promises were rejected"))}if(0===f)return Promise.reject(new h([],"All promises were rejected"));let k=!1;const b=[];return new c((y,S)=>{for(let C=0;C<o.length;C++)o[C].then(D=>{k||(k=!0,y(D))},D=>{b.push(D),f--,0===f&&(k=!0,S(new h(b,"All promises were rejected")))})})}static race(u){let o,f,k=new this((S,C)=>{o=S,f=C});function b(S){o(S)}function y(S){f(S)}for(let S of u)W(S)||(S=this.resolve(S)),S.then(b,y);return k}static all(u){return c.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof c?this:c).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,o){let f,k,b=new this((D,B)=>{f=D,k=B}),y=2,S=0;const C=[];for(let D of u){W(D)||(D=this.resolve(D));const B=S;try{D.then(U=>{C[B]=o?o.thenCallback(U):U,y--,0===y&&f(C)},U=>{o?(C[B]=o.errorCallback(U),y--,0===y&&f(C)):k(U)})}catch(U){k(U)}y++,S++}return y-=2,0===y&&f(C),b}constructor(u){const o=this;if(!(o instanceof c))throw new Error("Must be an instanceof Promise.");o[$]=A,o[R]=[];try{const f=w();u&&u(f(M(o,T)),f(M(o,F)))}catch(f){J(o,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return c}then(u,o){var f;let k=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!k||"function"!=typeof k)&&(k=this.constructor||c);const b=new k(x),y=n.current;return this[$]==A?this[R].push(y,b,u,o):ae(this,y,b,u,o),b}catch(u){return this.then(null,u)}finally(u){var o;let f=null===(o=this.constructor)||void 0===o?void 0:o[Symbol.species];(!f||"function"!=typeof f)&&(f=c);const k=new f(x);k[p]=p;const b=n.current;return this[$]==A?this[R].push(b,k,u,u):ae(this,b,k,u,u),k}}c.resolve=c.resolve,c.reject=c.reject,c.race=c.race,c.all=c.all;const t=e[v]=e.Promise;e.Promise=c;const _=g("thenPatched");function O(a){const u=a.prototype,o=r(u,"then");if(o&&(!1===o.writable||!o.configurable))return;const f=u.then;u[m]=f,a.prototype.then=function(k,b){return new c((S,C)=>{f.call(this,S,C)}).then(k,b)},a[_]=!0}return s.patchThen=O,t&&(O(t),ye(e,"fetch",a=>function j(a){return function(u,o){let f=a.apply(u,o);if(f instanceof c)return f;let k=f.constructor;return k[_]||O(k),f}}(a))),Promise[n.__symbol__("uncaughtPromiseErrors")]=E,c}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,s=H("OriginalDelegate"),r=H("Promise"),i=H("Error"),l=function(){if("function"==typeof this){const v=this[s];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[r];if(m)return n.call(m)}if(this===Error){const m=e[i];if(m)return n.call(m)}}return n.call(this)};l[s]=n,Function.prototype.toString=l;const g=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":g.call(this)}});let Pe=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){Pe=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){Pe=!1}const pt={useG:!0},ue={},Qe={},et=new RegExp("^"+Se+"(\\w+)(true|false)$"),tt=H("propagationStopped");function nt(e,n){const s=(n?n(e):e)+Te,r=(n?n(e):e)+pe,i=Se+s,l=Se+r;ue[e]={},ue[e][Te]=i,ue[e][pe]=l}function Tt(e,n,s,r){const i=r&&r.add||le,l=r&&r.rm||Re,g=r&&r.listeners||"eventListeners",E=r&&r.rmAll||"removeAllListeners",P=H(i),v="."+i+":",m="prependListener",L="."+m+":",Z=function(R,p,ne){if(R.isRemoved)return;const V=R.callback;let K;"object"==typeof V&&V.handleEvent&&(R.callback=T=>V.handleEvent(T),R.originalDelegate=V);try{R.invoke(R,p,[ne])}catch(T){K=T}const A=R.options;return A&&"object"==typeof A&&A.once&&p[l].call(p,ne.type,R.originalDelegate?R.originalDelegate:R.callback,A),K};function N(R,p,ne){if(!(p=p||e.event))return;const V=R||p.target||e,K=V[ue[p.type][ne?pe:Te]];if(K){const A=[];if(1===K.length){const T=Z(K[0],V,p);T&&A.push(T)}else{const T=K.slice();for(let F=0;F<T.length&&(!p||!0!==p[tt]);F++){const d=Z(T[F],V,p);d&&A.push(d)}}if(1===A.length)throw A[0];for(let T=0;T<A.length;T++){const F=A[T];n.nativeScheduleMicroTask(()=>{throw F})}}}const W=function(R){return N(this,R,!1)},G=function(R){return N(this,R,!0)};function oe(R,p){if(!R)return!1;let ne=!0;p&&void 0!==p.useG&&(ne=p.useG);const V=p&&p.vh;let K=!0;p&&void 0!==p.chkDup&&(K=p.chkDup);let A=!1;p&&void 0!==p.rt&&(A=p.rt);let T=R;for(;T&&!T.hasOwnProperty(i);)T=X(T);if(!T&&R[i]&&(T=R),!T||T[P])return!1;const F=p&&p.eventNameToString,d={},M=T[P]=T[i],w=T[H(l)]=T[l],ie=T[H(g)]=T[g],_e=T[H(E)]=T[E];let J;p&&p.prepend&&(J=T[H(p.prepend)]=T[p.prepend]);const c=ne?function(o){if(!d.isExisting)return M.call(d.target,d.eventName,d.capture?G:W,d.options)}:function(o){return M.call(d.target,d.eventName,o.invoke,d.options)},t=ne?function(o){if(!o.isRemoved){const f=ue[o.eventName];let k;f&&(k=f[o.capture?pe:Te]);const b=k&&o.target[k];if(b)for(let y=0;y<b.length;y++)if(b[y]===o){b.splice(y,1),o.isRemoved=!0,0===b.length&&(o.allRemoved=!0,o.target[k]=null);break}}if(o.allRemoved)return w.call(o.target,o.eventName,o.capture?G:W,o.options)}:function(o){return w.call(o.target,o.eventName,o.invoke,o.options)},O=p&&p.diff?p.diff:function(o,f){const k=typeof f;return"function"===k&&o.callback===f||"object"===k&&o.originalDelegate===f},j=Zone[H("UNPATCHED_EVENTS")],a=e[H("PASSIVE_EVENTS")],u=function(o,f,k,b,y=!1,S=!1){return function(){const C=this||e;let D=arguments[0];p&&p.transferEventName&&(D=p.transferEventName(D));let B=arguments[1];if(!B)return o.apply(this,arguments);if(Ne&&"uncaughtException"===D)return o.apply(this,arguments);let U=!1;if("function"!=typeof B){if(!B.handleEvent)return o.apply(this,arguments);U=!0}if(V&&!V(o,B,C,arguments))return;const me=Pe&&!!a&&-1!==a.indexOf(D),Ee=function z(o,f){return!Pe&&"object"==typeof o&&o?!!o.capture:Pe&&f?"boolean"==typeof o?{capture:o,passive:!0}:o?"object"==typeof o&&!1!==o.passive?q(q({},o),{},{passive:!0}):o:{passive:!0}:o}(arguments[2],me);if(j)for(let ve=0;ve<j.length;ve++)if(D===j[ve])return me?o.call(C,D,B,Ee):o.apply(this,arguments);const Ue=!!Ee&&("boolean"==typeof Ee||Ee.capture),it=!(!Ee||"object"!=typeof Ee)&&Ee.once,wt=Zone.current;let We=ue[D];We||(nt(D,F),We=ue[D]);const ct=We[Ue?pe:Te];let Le,Oe=C[ct],at=!1;if(Oe){if(at=!0,K)for(let ve=0;ve<Oe.length;ve++)if(O(Oe[ve],B))return}else Oe=C[ct]=[];const lt=C.constructor.name,ut=Qe[lt];ut&&(Le=ut[D]),Le||(Le=lt+f+(F?F(D):D)),d.options=Ee,it&&(d.options.once=!1),d.target=C,d.capture=Ue,d.eventName=D,d.isExisting=at;const De=ne?pt:void 0;De&&(De.taskData=d);const ke=wt.scheduleEventTask(Le,B,De,k,b);return d.target=null,De&&(De.taskData=null),it&&(Ee.once=!0),!Pe&&"boolean"==typeof ke.options||(ke.options=Ee),ke.target=C,ke.capture=Ue,ke.eventName=D,U&&(ke.originalDelegate=B),S?Oe.unshift(ke):Oe.push(ke),y?C:void 0}};return T[i]=u(M,v,c,t,A),J&&(T[m]=u(J,L,function(o){return J.call(d.target,d.eventName,o.invoke,d.options)},t,A,!0)),T[l]=function(){const o=this||e;let f=arguments[0];p&&p.transferEventName&&(f=p.transferEventName(f));const k=arguments[2],b=!!k&&("boolean"==typeof k||k.capture),y=arguments[1];if(!y)return w.apply(this,arguments);if(V&&!V(w,y,o,arguments))return;const S=ue[f];let C;S&&(C=S[b?pe:Te]);const D=C&&o[C];if(D)for(let B=0;B<D.length;B++){const U=D[B];if(O(U,y))return D.splice(B,1),U.isRemoved=!0,0===D.length&&(U.allRemoved=!0,o[C]=null,"string"==typeof f)&&(o[Se+"ON_PROPERTY"+f]=null),U.zone.cancelTask(U),A?o:void 0}return w.apply(this,arguments)},T[g]=function(){const o=this||e;let f=arguments[0];p&&p.transferEventName&&(f=p.transferEventName(f));const k=[],b=rt(o,F?F(f):f);for(let y=0;y<b.length;y++){const S=b[y];k.push(S.originalDelegate?S.originalDelegate:S.callback)}return k},T[E]=function(){const o=this||e;let f=arguments[0];if(f){p&&p.transferEventName&&(f=p.transferEventName(f));const k=ue[f];if(k){const S=o[k[Te]],C=o[k[pe]];if(S){const D=S.slice();for(let B=0;B<D.length;B++){const U=D[B];this[l].call(this,f,U.originalDelegate?U.originalDelegate:U.callback,U.options)}}if(C){const D=C.slice();for(let B=0;B<D.length;B++){const U=D[B];this[l].call(this,f,U.originalDelegate?U.originalDelegate:U.callback,U.options)}}}}else{const k=Object.keys(o);for(let b=0;b<k.length;b++){const S=et.exec(k[b]);let C=S&&S[1];C&&"removeListener"!==C&&this[E].call(this,C)}this[E].call(this,"removeListener")}if(A)return this},ge(T[i],M),ge(T[l],w),_e&&ge(T[E],_e),ie&&ge(T[g],ie),!0}let $=[];for(let R=0;R<s.length;R++)$[R]=oe(s[R],r);return $}function rt(e,n){if(!n){const l=[];for(let g in e){const E=et.exec(g);let P=E&&E[1];if(P&&(!n||P===n)){const v=e[g];if(v)for(let m=0;m<v.length;m++)l.push(v[m])}}return l}let s=ue[n];s||(nt(n),s=ue[n]);const r=e[s[Te]],i=e[s[pe]];return r?i?r.concat(i):r.slice():i?i.slice():[]}function yt(e,n){const s=e.Event;s&&s.prototype&&n.patchMethod(s.prototype,"stopImmediatePropagation",r=>function(i,l){i[tt]=!0,r&&r.apply(i,l)})}function gt(e,n,s,r,i){const l=Zone.__symbol__(r);if(n[l])return;const g=n[l]=n[r];n[r]=function(E,P,v){return P&&P.prototype&&i.forEach(function(m){const L="".concat(s,".").concat(r,"::")+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch(N){}}),g.call(n,E,P,v)},e.attachOriginToPatched(n[r],g)}function ot(e,n,s){if(!s||0===s.length)return n;const r=s.filter(l=>l.target===e);if(!r||0===r.length)return n;const i=r[0].ignoreProperties;return n.filter(l=>-1===i.indexOf(l))}function st(e,n,s,r){e&&Ke(e,ot(e,n,s),r)}function Be(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,s)=>{const r=Be(e);s.patchOnProperties=Ke,s.patchMethod=ye,s.bindArguments=Ge,s.patchMacroTask=dt;const i=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[i]=e[l]),e[i]&&(n[i]=n[l]=e[i]),s.patchEventPrototype=yt,s.patchEventTarget=Tt,s.isIEOrEdge=Et,s.ObjectDefineProperty=Q,s.ObjectGetOwnPropertyDescriptor=se,s.ObjectCreate=ee,s.ArraySlice=ce,s.patchClass=Ce,s.wrapWithCurrentZone=xe,s.filterProperties=ot,s.attachOriginToPatched=ge,s._redefineProperty=Object.defineProperty,s.patchCallbacks=gt,s.getGlobalObjects=()=>({globalSources:Qe,zoneSymbolEventNames:ue,eventNames:r,isBrowser:Ve,isMix:ze,isNode:Ne,TRUE_STR:pe,FALSE_STR:Te,ZONE_SYMBOL_PREFIX:Se,ADD_EVENT_LISTENER_STR:le,REMOVE_EVENT_LISTENER_STR:Re})});const Ie=H("zoneTask");function we(e,n,s,r){let i=null,l=null;s+=r;const g={};function E(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=i.apply(e,m.args),v}function P(v){return l.call(e,v.data.handleId)}i=ye(e,n+=r,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete g[Z.handleId]:Z.handleId&&(Z.handleId[Ie]=null))}};const W=He(n,L[0],Z,E,P);if(!W)return W;const G=W.data.handleId;return"number"==typeof G?g[G]=W:G&&(G[Ie]=W),G&&G.ref&&G.unref&&"function"==typeof G.ref&&"function"==typeof G.unref&&(W.ref=G.ref.bind(G),W.unref=G.unref.bind(G)),"number"==typeof G||G?G:W}return v.apply(e,L)}),l=ye(e,s,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=g[Z]:(N=Z&&Z[Ie],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete g[Z]:Z&&(Z[Ie]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",e=>{const n="set",s="clear";we(e,n,s,"Timeout"),we(e,n,s,"Interval"),we(e,n,s,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{we(e,"request","cancel","AnimationFrame"),we(e,"mozRequest","mozCancel","AnimationFrame"),we(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const s=["alert","prompt","confirm"];for(let r=0;r<s.length;r++)ye(e,s[r],(l,g,E)=>function(P,v){return n.current.run(l,e,v,E)})}),Zone.__load_patch("EventTarget",(e,n,s)=>{(function Pt(e,n){n.patchEventPrototype(e,n)})(e,s),function bt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:s,zoneSymbolEventNames:r,TRUE_STR:i,FALSE_STR:l,ZONE_SYMBOL_PREFIX:g}=n.getGlobalObjects();for(let P=0;P<s.length;P++){const v=s[P],Z=g+(v+l),N=g+(v+i);r[v]={},r[v][l]=Z,r[v][i]=N}const E=e.EventTarget;E&&E.prototype&&n.patchEventTarget(e,n,[E&&E.prototype])}(e,s);const r=e.XMLHttpRequestEventTarget;r&&r.prototype&&s.patchEventTarget(e,s,[r.prototype])}),Zone.__load_patch("MutationObserver",(e,n,s)=>{Ce("MutationObserver"),Ce("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,s)=>{Ce("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,s)=>{Ce("FileReader")}),Zone.__load_patch("on_property",(e,n,s)=>{!function mt(e,n){if(Ne&&!ze||Zone[e.symbol("patchEvents")])return;const s=n.__Zone_ignore_on_properties;let r=[];if(Ve){const i=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const l=function _t(){try{const e=be.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}()?[{target:i,ignoreProperties:["error"]}]:[];st(i,Be(i),s&&s.concat(l),X(i))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i<r.length;i++){const l=n[r[i]];l&&l.prototype&&st(l.prototype,Be(l.prototype),s)}}(s,e)}),Zone.__load_patch("customElements",(e,n,s)=>{!function vt(e,n){const{isBrowser:s,isMix:r}=n.getGlobalObjects();(s||r)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,s)}),Zone.__load_patch("XHR",(e,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[je],W=L[Ae];if(!N){const d=v.XMLHttpRequestEventTarget;if(d){const M=d.prototype;N=M[je],W=M[Ae]}}const G="readystatechange",oe="scheduled";function $(d){const M=d.data,w=M.target;w[l]=!1,w[E]=!1;const ie=w[i];N||(N=w[je],W=w[Ae]),ie&&W.call(w,G,ie);const _e=w[i]=()=>{if(w.readyState===w.DONE)if(!M.aborted&&w[l]&&d.state===oe){const z=w[n.__symbol__("loadfalse")];if(0!==w.status&&z&&z.length>0){const de=d.invoke;d.invoke=function(){const ae=w[n.__symbol__("loadfalse")];for(let Y=0;Y<ae.length;Y++)ae[Y]===d&&ae.splice(Y,1);!M.aborted&&d.state===oe&&de.call(d)},z.push(d)}else d.invoke()}else!M.aborted&&!1===w[l]&&(w[E]=!0)};return N.call(w,G,_e),w[s]||(w[s]=d),T.apply(w,M.args),w[l]=!0,d}function R(){}function p(d){const M=d.data;return M.aborted=!0,F.apply(M.target,M.args)}const ne=ye(L,"open",()=>function(d,M){return d[r]=0==M[2],d[g]=M[1],ne.apply(d,M)}),K=H("fetchTaskAborting"),A=H("fetchTaskScheduling"),T=ye(L,"send",()=>function(d,M){if(!0===n.current[A]||d[r])return T.apply(d,M);{const w={target:d,url:d[g],isPeriodic:!1,args:M,aborted:!1},ie=He("XMLHttpRequest.send",R,w,$,p);d&&!0===d[E]&&!w.aborted&&ie.state===oe&&ie.invoke()}}),F=ye(L,"abort",()=>function(d,M){const w=function Z(d){return d[s]}(d);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[K])return F.apply(d,M)})}(e);const s=H("xhrTask"),r=H("xhrSync"),i=H("xhrListener"),l=H("xhrScheduled"),g=H("xhrURL"),E=H("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function ht(e,n){const s=e.constructor.name;for(let r=0;r<n.length;r++){const i=n[r],l=e[i];if(l){if(!Xe(se(e,i)))continue;e[i]=(E=>{const P=function(){return E.apply(this,Ge(arguments,s+"."+i))};return ge(P,E),P})(l)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function s(r){return function(i){rt(e,r).forEach(g=>{const E=e.PromiseRejectionEvent;if(E){const P=new E(r,{promise:i.promise,reason:i.rejection});g.invoke(P)}})}}e.PromiseRejectionEvent&&(n[H("unhandledPromiseRejectionHandler")]=s("unhandledrejection"),n[H("rejectionHandledHandler")]=s("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(e,n,s)=>{!function kt(e,n){n.patchMethod(e,"queueMicrotask",s=>function(r,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}(e,s)})},416:(I,fe,re)=>{var q=re(62);I.exports=function se(Q,X,ee){return(X=q(X))in Q?Object.defineProperty(Q,X,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Q[X]=ee,Q},I.exports.__esModule=!0,I.exports.default=I.exports},122:(I,fe,re)=>{var q=re(416);function se(X,ee){var ce=Object.keys(X);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(X);ee&&(le=le.filter(function(Re){return Object.getOwnPropertyDescriptor(X,Re).enumerable})),ce.push.apply(ce,le)}return ce}I.exports=function Q(X){for(var ee=1;ee<arguments.length;ee++){var ce=null!=arguments[ee]?arguments[ee]:{};ee%2?se(Object(ce),!0).forEach(function(le){q(X,le,ce[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(ce)):se(Object(ce)).forEach(function(le){Object.defineProperty(X,le,Object.getOwnPropertyDescriptor(ce,le))})}return X},I.exports.__esModule=!0,I.exports.default=I.exports},36:(I,fe,re)=>{var q=re(698).default;I.exports=function se(Q,X){if("object"!==q(Q)||null===Q)return Q;var ee=Q[Symbol.toPrimitive];if(void 0!==ee){var ce=ee.call(Q,X||"default");if("object"!==q(ce))return ce;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===X?String:Number)(Q)},I.exports.__esModule=!0,I.exports.default=I.exports},62:(I,fe,re)=>{var q=re(698).default,se=re(36);I.exports=function Q(X){var ee=se(X,"string");return"symbol"===q(ee)?ee:String(ee)},I.exports.__esModule=!0,I.exports.default=I.exports},698:I=>{function fe(re){return I.exports=fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},I.exports.__esModule=!0,I.exports.default=I.exports,fe(re)}I.exports=fe,I.exports.__esModule=!0,I.exports.default=I.exports}},I=>{I(I.s=321)}]);
!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()}))}();
(self.webpackChunkchat_widget=self.webpackChunkchat_widget||[]).push([[179],{697:(Vl,Zu,Bl)=>{"use strict";var Qo={};function Ki(t){return(Ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function B(t,e,n){return(e=function U(t){var e=function a0(t,e){if("object"!==Ki(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ki(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ki(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ge(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qi(Object(n),!0).forEach(function(r){B(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jt(t){return"function"==typeof t}function Xo(t){const n=t(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}Bl.r(Qo),Bl.d(Qo,{Decoder:()=>$A,Encoder:()=>_ve,PacketType:()=>bt,protocol:()=>mve});const Ms=Xo(t=>function(n){t(this),this.message=n?"".concat(n.length," errors occurred during unsubscription:\n").concat(n.map((r,i)=>"".concat(i+1,") ").concat(r.toString())).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=n});function Pa(t,e){if(t){const n=t.indexOf(e);0<=n&&t.splice(n,1)}}class Qr{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(jt(r))try{r()}catch(o){e=o instanceof Ms?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{np(o)}catch(s){e=null!=e?e:[],s instanceof Ms?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Ms(e)}}add(e){var n;if(e&&e!==this)if(this.closed)np(e);else{if(e instanceof Qr){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}_hasParent(e){const{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){const{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&Pa(n,e)}remove(e){const{_finalizers:n}=this;n&&Pa(n,e),e instanceof Qr&&e._removeParent(this)}}Qr.EMPTY=(()=>{const t=new Qr;return t.closed=!0,t})();const ep=Qr.EMPTY;function tp(t){return t instanceof Qr||t&&"closed"in t&&jt(t.remove)&&jt(t.add)&&jt(t.unsubscribe)}function np(t){jt(t)?t():t.unsubscribe()}const Zo={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},$l={setTimeout(t,e,...n){const{delegate:r}=$l;return null!=r&&r.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){const{delegate:e}=$l;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function zl(t){$l.setTimeout(()=>{const{onUnhandledError:e}=Zo;if(!e)throw t;e(t)})}function Ju(){}const Kx=S("C",void 0,void 0);function S(t,e,n){return{kind:t,value:e,error:n}}let H=null;function Q(t){if(Zo.useDeprecatedSynchronousErrorHandling){const e=!H;if(e&&(H={errorThrown:!1,error:null}),t(),e){const{errorThrown:n,error:r}=H;if(H=null,n)throw r}}else t()}class Y extends Qr{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,tp(e)&&e.add(this)):this.destination=Fe}static create(e,n,r){return new be(e,n,r)}next(e){this.isStopped?ve(function I(t){return S("N",t,void 0)}(e),this):this._next(e)}error(e){this.isStopped?ve(function g(t){return S("E",void 0,t)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?ve(Kx,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const re=Function.prototype.bind;function xe(t,e){return re.call(t,e)}class Ee{constructor(e){this.partialObserver=e}next(e){const{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){we(r)}}error(e){const{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){we(r)}else we(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){we(n)}}}class be extends Y{constructor(e,n,r){let i;if(super(),jt(e)||!e)i={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0};else{let o;this&&Zo.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&xe(e.next,o),error:e.error&&xe(e.error,o),complete:e.complete&&xe(e.complete,o)}):i=e}this.destination=new Ee(i)}}function we(t){Zo.useDeprecatedSynchronousErrorHandling?function X(t){Zo.useDeprecatedSynchronousErrorHandling&&H&&(H.errorThrown=!0,H.error=t)}(t):zl(t)}function ve(t,e){const{onStoppedNotification:n}=Zo;n&&$l.setTimeout(()=>n(t,e))}const Fe={closed:!0,next:Ju,error:function G(t){throw t},complete:Ju},Ue="function"==typeof Symbol&&Symbol.observable||"@@observable";function ut(t){return t}let lt=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){const o=function or(t){return t&&t instanceof Y||function zn(t){return t&&jt(t.next)&&jt(t.error)&&jt(t.complete)}(t)&&tp(t)}(n)?n:new be(n,r,i);return Q(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Xr(r))((i,o)=>{const s=new be({next:a=>{try{n(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Ue](){return this}pipe(...n){return function $n(t){return 0===t.length?ut:1===t.length?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=Xr(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=e=>new t(e),t})();function Xr(t){var e;return null!==(e=null!=t?t:Zo.Promise)&&void 0!==e?e:Promise}const _r=Xo(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let hn=(()=>{class t extends lt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Ul(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new _r}next(n){Q(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Q(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Q(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:i,observers:o}=this;return r||i?ep:(this.currentObservers=null,o.push(n),new Qr(()=>{this.currentObservers=null,Pa(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new lt;return n.source=this,n}}return t.create=(e,n)=>new Ul(e,n),t})();class Ul extends hn{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,e)}error(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,e)}complete(){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===n||n.call(e)}_subscribe(e){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(e))&&void 0!==r?r:ep}}function Lr(t){return e=>{if(function ed(t){return jt(null==t?void 0:t.lift)}(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function vr(t,e,n,r,i){return new rp(t,e,n,r,i)}class rp extends Y{constructor(e,n,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){e.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function Un(t,e){return Lr((n,r)=>{let i=0;n.subscribe(vr(r,o=>{r.next(t.call(e,o,i++))}))})}function u0(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function Os(t){return this instanceof Os?(this.v=t,this):new Os(t)}function Jx(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=function f0(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=t[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const eP=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function tP(t){return jt(null==t?void 0:t.then)}function nP(t){return jt(t[Ue])}function rP(t){return Symbol.asyncIterator&&jt(null==t?void 0:t[Symbol.asyncIterator])}function iP(t){return new TypeError("You provided ".concat(null!==t&&"object"==typeof t?"an invalid object":"'".concat(t,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}const oP=function Xz(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function sP(t){return jt(null==t?void 0:t[oP])}function aP(t){return function Zx(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(h){r[h]&&(i[h]=function(p){return new Promise(function(m,_){o.push([h,p,m,_])>1||a(h,p)})})}function a(h,p){try{!function l(h){h.value instanceof Os?Promise.resolve(h.value.v).then(c,u):d(o[0][2],h)}(r[h](p))}catch(m){d(o[0][3],m)}}function c(h){a("next",h)}function u(h){a("throw",h)}function d(h,p){h(p),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const n=t.getReader();try{for(;;){const{value:r,done:i}=yield Os(n.read());if(i)return yield Os(void 0);yield yield Os(r)}}finally{n.releaseLock()}})}function lP(t){return jt(null==t?void 0:t.getReader)}function Xi(t){if(t instanceof lt)return t;if(null!=t){if(nP(t))return function Zz(t){return new lt(e=>{const n=t[Ue]();if(jt(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(eP(t))return function Jz(t){return new lt(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}(t);if(tP(t))return function eU(t){return new lt(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,zl)})}(t);if(rP(t))return cP(t);if(sP(t))return function tU(t){return new lt(e=>{for(const n of t)if(e.next(n),e.closed)return;e.complete()})}(t);if(lP(t))return function nU(t){return cP(aP(t))}(t)}throw iP(t)}function cP(t){return new lt(e=>{(function rU(t,e){var n,r,i,o;return function Qx(t,e,n,r){return new(n||(n=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof n?o:new n(function(s){s(o)})}(u.value).then(a,l)}c((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){try{for(n=Jx(t);!(r=yield n.next()).done;)if(e.next(r.value),e.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}e.complete()})})(t,e).catch(n=>e.error(n))})}function Jo(t,e,n,r=0,i=!1){const o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function ip(t,e,n=1/0){return jt(e)?ip((r,i)=>Un((o,s)=>e(r,o,i,s))(Xi(t(r,i))),n):("number"==typeof e&&(n=e),Lr((r,i)=>function iU(t,e,n,r,i,o,s,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&e.complete()},p=_=>c<r?m(_):l.push(_),m=_=>{o&&e.next(_),c++;let y=!1;Xi(n(_,u++)).subscribe(vr(e,E=>{null==i||i(E),o?p(E):e.next(E)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&c<r;){const E=l.shift();s?Jo(e,s,()=>m(E)):m(E)}h()}catch(E){e.error(E)}}))};return t.subscribe(vr(e,p,()=>{d=!0,h()})),()=>{null==a||a()}}(r,i,t,n)))}function uP(t=1/0){return ip(ut,t)}const h0=new lt(t=>t.complete());function dP(t){return t&&jt(t.schedule)}function p0(t){return t[t.length-1]}function fP(t){return jt(p0(t))?t.pop():void 0}function td(t){return dP(p0(t))?t.pop():void 0}function op(t,e=0){return Lr((n,r)=>{n.subscribe(vr(r,i=>Jo(r,t,()=>r.next(i),e),()=>Jo(r,t,()=>r.complete(),e),i=>Jo(r,t,()=>r.error(i),e)))})}function sp(t,e=0){return Lr((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function hP(t,e){if(!t)throw new Error("Iterable cannot be null");return new lt(n=>{Jo(n,e,()=>{const r=t[Symbol.asyncIterator]();Jo(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Da(t,e){return e?function fU(t,e){if(null!=t){if(nP(t))return function aU(t,e){return Xi(t).pipe(sp(e),op(e))}(t,e);if(eP(t))return function cU(t,e){return new lt(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}(t,e);if(tP(t))return function lU(t,e){return Xi(t).pipe(sp(e),op(e))}(t,e);if(rP(t))return hP(t,e);if(sP(t))return function uU(t,e){return new lt(n=>{let r;return Jo(n,e,()=>{r=t[oP](),Jo(n,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>jt(null==r?void 0:r.return)&&r.return()})}(t,e);if(lP(t))return function dU(t,e){return hP(aP(t),e)}(t,e)}throw iP(t)}(t,e):Xi(t)}function pP(...t){const e=td(t),n=function sU(t,e){return"number"==typeof p0(t)?t.pop():e}(t,1/0),r=t;return r.length?1===r.length?Xi(r[0]):uP(n)(Da(r,e)):h0}class ct extends hn{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){const{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}function yr(...t){return Da(t,td(t))}function g0(t={}){const{connector:e=(()=>new hn),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,l,c=0,u=!1,d=!1;const h=()=>{null==a||a.unsubscribe(),a=void 0},p=()=>{h(),s=l=void 0,u=d=!1},m=()=>{const _=s;p(),null==_||_.unsubscribe()};return Lr((_,y)=>{c++,!d&&!u&&h();const E=l=null!=l?l:e();y.add(()=>{c--,0===c&&!d&&!u&&(a=m0(m,i))}),E.subscribe(y),!s&&c>0&&(s=new be({next:C=>E.next(C),error:C=>{d=!0,h(),a=m0(p,n,C),E.error(C)},complete:()=>{u=!0,h(),a=m0(p,r),E.complete()}}),Xi(_).subscribe(s))})(o)}}function m0(t,e,...n){if(!0===e)return void t();if(!1===e)return;const r=new be({next:()=>{r.unsubscribe(),t()}});return Xi(e(...n)).subscribe(r)}function nd(t,e){return Lr((n,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();n.subscribe(vr(r,l=>{null==i||i.unsubscribe();let c=0;const u=o++;Xi(t(l,u)).subscribe(i=vr(r,d=>r.next(e?e(l,d,u,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function pU(t,e){return t===e}function zt(t){for(let e in t)if(t[e]===zt)return e;throw Error("Could not find renamed property on target object.")}function ap(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Hn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Hn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function _0(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const gU=zt({__forward_ref__:zt});function Wt(t){return t.__forward_ref__=Wt,t.toString=function(){return Hn(this())},t}function Ze(t){return v0(t)?t():t}function v0(t){return"function"==typeof t&&t.hasOwnProperty(gU)&&t.__forward_ref__===Wt}function y0(t){return t&&!!t.\u0275providers}const gP="https://g.co/ng/security#xss";class he extends Error{constructor(e,n){super(function lp(t,e){const n="NG0".concat(Math.abs(t));return"".concat(n).concat(e?": "+e:"")}(e,n)),this.code=e}}function et(t){return"string"==typeof t?t:null==t?"":String(t)}function b0(t,e){throw e&&" in ".concat(e),new he(-201,!1)}function Di(t,e){null==t&&function Qe(t,e,n,r){throw new Error("ASSERTION ERROR: ".concat(t)+(null==r?"":" [Expected=> ".concat(n," ").concat(r," ").concat(e," <=Actual]")))}(e,t,null,"!=")}function We(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Rn(t){return{providers:t.providers||[],imports:t.imports||[]}}function cp(t){return mP(t,dp)||mP(t,_P)}function mP(t,e){return t.hasOwnProperty(e)?t[e]:null}function up(t){return t&&(t.hasOwnProperty(w0)||t.hasOwnProperty(CU))?t[w0]:null}const dp=zt({\u0275prov:zt}),w0=zt({\u0275inj:zt}),_P=zt({ngInjectableDef:zt}),CU=zt({ngInjectorDef:zt});var _t=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(_t||{});let C0;function Zr(t){const e=C0;return C0=t,e}function yP(t,e,n){const r=cp(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&_t.Optional?null:void 0!==e?e:void b0(Hn(t),"Injector")}const Xt=globalThis;class Ve{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=We({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return"InjectionToken ".concat(this._desc)}}const rd={},A0="__NG_DI_FLAG__",fp="ngTempTokenPath",TU=/\n/gm,wP="__source";let Hl;function Rs(t){const e=Hl;return Hl=t,e}function xU(t,e=_t.Default){if(void 0===Hl)throw new he(-203,!1);return null===Hl?yP(t,void 0,e):Hl.get(t,e&_t.Optional?null:void 0,e)}function Te(t,e=_t.Default){return(function vP(){return C0}()||xU)(Ze(t),e)}function It(t,e=_t.Default){return Te(t,hp(e))}function hp(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function x0(t){const e=[];for(let n=0;n<t.length;n++){const r=Ze(t[n]);if(Array.isArray(r)){if(0===r.length)throw new he(900,!1);let i,o=_t.Default;for(let s=0;s<r.length;s++){const a=r[s],l=PU(a);"number"==typeof l?-1===l?i=a.token:o|=l:i=a}e.push(Te(i,o))}else e.push(Te(r))}return e}function id(t,e){return t[A0]=e,t.prototype[A0]=e,t}function PU(t){return t[A0]}function es(t){return{toString:t}.toString()}var pp=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(pp||{}),ki=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(ki||{});const _o={},Pt=[],gp=zt({\u0275cmp:zt}),P0=zt({\u0275dir:zt}),D0=zt({\u0275pipe:zt}),EP=zt({\u0275mod:zt}),ts=zt({\u0275fac:zt}),od=zt({__NG_ELEMENT_ID__:zt}),SP=zt({__NG_ENV_ID__:zt});function TP(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}function k0(t,e,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],s=n[r++],a=n[r++];t.setAttribute(e,s,a,o)}else{const o=i,s=n[++r];AP(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),r++}}return r}function IP(t){return 3===t||4===t||6===t}function AP(t){return 64===t.charCodeAt(0)}function sd(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?n=i:0===n||xP(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function xP(t,e,n,r,i){let o=0,s=t.length;if(-1===e)s=-1;else for(;o<t.length;){const a=t[o++];if("number"==typeof a){if(a===e){s=-1;break}if(a>e){s=o-1;break}}}for(;o<t.length;){const a=t[o];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}const PP="ng-template";function MU(t,e,n){let r=0,i=!0;for(;r<t.length;){let o=t[r++];if("string"==typeof o&&i){const s=t[r++];if(n&&"class"===o&&-1!==TP(s.toLowerCase(),e,0))return!0}else{if(1===o){for(;r<t.length&&"string"==typeof(o=t[r++]);)if(o.toLowerCase()===e)return!0;return!1}"number"==typeof o&&(i=!1)}}return!1}function DP(t){return 4===t.type&&t.value!==PP}function OU(t,e,n){return e===(4!==t.type||n?t.value:PP)}function RU(t,e,n){let r=4;const i=t.attrs||[],o=function FU(t){for(let e=0;e<t.length;e++)if(IP(t[e]))return e;return t.length}(i);let s=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!OU(t,l,n)||""===l&&1===e.length){if(Zi(r))return!1;s=!0}}else{const c=8&r?l:e[++a];if(8&r&&null!==t.attrs){if(!MU(t.attrs,c,n)){if(Zi(r))return!1;s=!0}continue}const d=NU(8&r?"class":l,i,DP(t),n);if(-1===d){if(Zi(r))return!1;s=!0;continue}if(""!==c){let h;h=d>o?"":i[d+1].toLowerCase();const p=8&r?h:null;if(p&&-1!==TP(p,c,0)||2&r&&c!==h){if(Zi(r))return!1;s=!0}}}}else{if(!s&&!Zi(r)&&!Zi(l))return!1;if(s&&Zi(l))continue;s=!1,r=l|1&r}}return Zi(r)||s}function Zi(t){return 0==(1&t)}function NU(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let o=!1;for(;i<e.length;){const s=e[i];if(s===t)return i;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=e[++i];for(;"string"==typeof a;)a=e[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=o?1:2}return-1}return function VU(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function kP(t,e,n=!1){for(let r=0;r<e.length;r++)if(RU(t,e[r],n))return!0;return!1}function BU(t,e){e:for(let n=0;n<e.length;n++){const r=e[n];if(t.length===r.length){for(let i=0;i<t.length;i++)if(t[i]!==r[i])continue e;return!0}}return!1}function MP(t,e){return t?":not("+e.trim()+")":e}function $U(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&r){const a=t[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Zi(s)&&(e+=MP(o,i),i=""),r=s,o=o||!Zi(r);n++}return""!==i&&(e+=MP(o,i)),e}function Bt(t){return es(()=>{var e;const n=RP(t),r=ge(ge({},n),{},{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===pp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:null!==(e=t.signals)&&void 0!==e&&e,data:t.data||{},encapsulation:t.encapsulation||ki.Emulated,styles:t.styles||Pt,_:null,schemas:t.schemas||null,tView:null,id:""});NP(r);const i=t.dependencies;return r.directiveDefs=mp(i,!1),r.pipeDefs=mp(i,!0),r.id=function YU(t){let e=0;const n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const i of n)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}(r),r})}function jU(t){return Ct(t)||ar(t)}function GU(t){return null!==t}function jn(t){return es(()=>({type:t.type,bootstrap:t.bootstrap||Pt,declarations:t.declarations||Pt,imports:t.imports||Pt,exports:t.exports||Pt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function OP(t,e){if(null==t)return _o;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}function Ke(t){return es(()=>{const e=RP(t);return NP(e),e})}function sr(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ct(t){return t[gp]||null}function ar(t){return t[P0]||null}function Fr(t){return t[D0]||null}function RP(t){const e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||_o,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Pt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:OP(t.inputs,e),outputs:OP(t.outputs)}}function NP(t){var e;null===(e=t.features)||void 0===e||e.forEach(n=>n(t))}function mp(t,e){if(!t)return null;const n=e?Fr:jU;return()=>("function"==typeof t?t():t).map(r=>n(r)).filter(GU)}const vn=0,Ne=1,ot=2,un=3,Ji=4,ld=5,br=6,jl=7,Sn=8,Ns=9,Gl=10,tt=11,cd=12,LP=13,ql=14,Tn=15,ud=16,Wl=17,vo=18,dd=19,FP=20,Ls=21,ns=22,fd=23,hd=24,ft=25,M0=1,VP=2,yo=7,Yl=9,lr=11;function Jr(t){return Array.isArray(t)&&"object"==typeof t[M0]}function Vr(t){return Array.isArray(t)&&!0===t[M0]}function O0(t){return 0!=(4&t.flags)}function Ma(t){return t.componentOffset>-1}function vp(t){return 1==(1&t.flags)}function eo(t){return!!t.template}function R0(t){return 0!=(512&t[ot])}function Oa(t,e){return t.hasOwnProperty(ts)?t[ts]:null}let cr=null,yp=!1;function Mi(t){const e=cr;return cr=t,e}const zP={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function HP(t){if(!gd(t)||t.dirty){if(!t.producerMustRecompute(t)&&!qP(t))return void(t.dirty=!1);t.producerRecomputeValue(t),t.dirty=!1}}function GP(t){var e;t.dirty=!0,function jP(t){if(void 0===t.liveConsumerNode)return;const e=yp;yp=!0;try{for(const n of t.liveConsumerNode)n.dirty||GP(n)}finally{yp=e}}(t),null===(e=t.consumerMarkedDirty)||void 0===e||e.call(t,t)}function L0(t){return t&&(t.nextProducerIndex=0),Mi(t)}function F0(t,e){if(Mi(e),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(gd(t))for(let n=t.nextProducerIndex;n<t.producerNode.length;n++)bp(t.producerNode[n],t.producerIndexOfThis[n]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function qP(t){Kl(t);for(let e=0;e<t.producerNode.length;e++){const n=t.producerNode[e],r=t.producerLastReadVersion[e];if(r!==n.version||(HP(n),r!==n.version))return!0}return!1}function WP(t){if(Kl(t),gd(t))for(let e=0;e<t.producerNode.length;e++)bp(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function bp(t,e){if(function KP(t){var e,n;null!==(e=t.liveConsumerNode)&&void 0!==e||(t.liveConsumerNode=[]),null!==(n=t.liveConsumerIndexOfThis)&&void 0!==n||(t.liveConsumerIndexOfThis=[])}(t),Kl(t),1===t.liveConsumerNode.length)for(let r=0;r<t.producerNode.length;r++)bp(t.producerNode[r],t.producerIndexOfThis[r]);const n=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[n],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[n],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){const r=t.liveConsumerIndexOfThis[e],i=t.liveConsumerNode[e];Kl(i),i.producerIndexOfThis[r]=e}}function gd(t){var e,n;return t.consumerIsAlwaysLive||(null!==(e=null==t||null===(n=t.liveConsumerNode)||void 0===n?void 0:n.length)&&void 0!==e?e:0)>0}function Kl(t){var e,n,r;null!==(e=t.producerNode)&&void 0!==e||(t.producerNode=[]),null!==(n=t.producerIndexOfThis)&&void 0!==n||(t.producerIndexOfThis=[]),null!==(r=t.producerLastReadVersion)&&void 0!==r||(t.producerLastReadVersion=[])}let QP=null;function JP(t){const e=Mi(null);try{return t()}finally{Mi(e)}}const eD=()=>{},aH=(()=>ge(ge({},zP),{},{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:eD}))();class tD{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function bo(){return nD}function nD(t){return t.type.prototype.ngOnChanges&&(t.setInput=cH),lH}function lH(){const t=iD(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===_o)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function cH(t,e,n,r){const i=this.declaredInputs[n],o=iD(t)||function uH(t,e){return t[rD]=e}(t,{previous:_o,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[i];s[i]=new tD(l&&l.currentValue,e,a===_o),t[r]=e}bo.ngInherit=!0;const rD="__ngSimpleChanges__";function iD(t){return t[rD]||null}const wo=function(t,e,n){},oD="svg";function Zt(t){for(;Array.isArray(t);)t=t[vn];return t}function wp(t,e){return Zt(e[t])}function ei(t,e){return Zt(e[t.index])}function aD(t,e){return t.data[e]}function Ql(t,e){return t[e]}function pi(t,e){const n=e[t];return Jr(n)?n:n[vn]}function Vs(t,e){return null==e?null:t[e]}function lD(t){t[Wl]=0}function mH(t){1024&t[ot]||(t[ot]|=1024,uD(t,1))}function cD(t){1024&t[ot]&&(t[ot]&=-1025,uD(t,-1))}function uD(t,e){let n=t[un];if(null===n)return;n[ld]+=e;let r=n;for(n=n[un];null!==n&&(1===e&&1===r[ld]||-1===e&&0===r[ld]);)n[ld]+=e,r=n,n=n[un]}const Xe={lFrame:wD(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function hD(){return Xe.bindingsEnabled}function Xl(){return null!==Xe.skipHydrationRootTNode}function pe(){return Xe.lFrame.lView}function Et(){return Xe.lFrame.tView}function J(t){return Xe.lFrame.contextLView=t,t[Sn]}function ee(t){return Xe.lFrame.contextLView=null,t}function ur(){let t=pD();for(;null!==t&&64===t.type;)t=t.parent;return t}function pD(){return Xe.lFrame.currentTNode}function Co(t,e){const n=Xe.lFrame;n.currentTNode=t,n.isParent=e}function U0(){return Xe.lFrame.isParent}function H0(){Xe.lFrame.isParent=!1}function Br(){const t=Xe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function rs(){return Xe.lFrame.bindingIndex}function Zl(){return Xe.lFrame.bindingIndex++}function is(t){const e=Xe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function xH(t,e){const n=Xe.lFrame;n.bindingIndex=n.bindingRootIndex=t,j0(e)}function j0(t){Xe.lFrame.currentDirectiveIndex=t}function vD(){return Xe.lFrame.currentQueryIndex}function q0(t){Xe.lFrame.currentQueryIndex=t}function DH(t){const e=t[Ne];return 2===e.type?e.declTNode:1===e.type?t[br]:null}function yD(t,e,n){if(n&_t.SkipSelf){let i=e,o=t;for(;!(i=i.parent,null!==i||n&_t.Host||(i=DH(o),null===i||(o=o[ql],10&i.type))););if(null===i)return!1;e=i,t=o}const r=Xe.lFrame=bD();return r.currentTNode=e,r.lView=t,!0}function W0(t){const e=bD(),n=t[Ne];Xe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function bD(){const t=Xe.lFrame,e=null===t?null:t.child;return null===e?wD(t):e}function wD(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function CD(){const t=Xe.lFrame;return Xe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ED=CD;function Y0(){const t=CD();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function $r(){return Xe.lFrame.selectedIndex}function Ra(t){Xe.lFrame.selectedIndex=t}function pn(){const t=Xe.lFrame;return aD(t.tView,t.selectedIndex)}function Ie(){Xe.lFrame.currentNamespace=oD}function st(){!function RH(){Xe.lFrame.currentNamespace=null}()}let TD=!0;function Cp(){return TD}function Bs(t){TD=t}function Ep(t,e){for(let c=e.directiveStart,u=e.directiveEnd;c<u;c++){const h=t.data[c].type.prototype,{ngAfterContentInit:p,ngAfterContentChecked:m,ngAfterViewInit:_,ngAfterViewChecked:y,ngOnDestroy:E}=h;var n,r,i,o,s,a,l;p&&(null!==(n=t.contentHooks)&&void 0!==n?n:t.contentHooks=[]).push(-c,p),m&&((null!==(r=t.contentHooks)&&void 0!==r?r:t.contentHooks=[]).push(c,m),(null!==(i=t.contentCheckHooks)&&void 0!==i?i:t.contentCheckHooks=[]).push(c,m)),_&&(null!==(o=t.viewHooks)&&void 0!==o?o:t.viewHooks=[]).push(-c,_),y&&((null!==(s=t.viewHooks)&&void 0!==s?s:t.viewHooks=[]).push(c,y),(null!==(a=t.viewCheckHooks)&&void 0!==a?a:t.viewCheckHooks=[]).push(c,y)),null!=E&&(null!==(l=t.destroyHooks)&&void 0!==l?l:t.destroyHooks=[]).push(c,E)}}function Sp(t,e,n){ID(t,e,3,n)}function Tp(t,e,n,r){(3&t[ot])===n&&ID(t,e,n,r)}function K0(t,e){let n=t[ot];(3&n)===e&&(n&=8191,n+=1,t[ot]=n)}function ID(t,e,n,r){const o=null!=r?r:-1,s=e.length-1;let a=0;for(let l=void 0!==r?65535&t[Wl]:0;l<s;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=r&&a>=r)break}else e[l]<0&&(t[Wl]+=65536),(a<o||-1==o)&&(LH(t,n,e,l),t[Wl]=(4294901760&t[Wl])+l+2),l++}function AD(t,e){wo(4,t,e);const n=Mi(null);try{e.call(t)}finally{Mi(n),wo(5,t,e)}}function LH(t,e,n,r){const i=n[r]<0,o=n[r+1],a=t[i?-n[r]:n[r]];i?t[ot]>>13<t[Wl]>>16&&(3&t[ot])===e&&(t[ot]+=8192,AD(a,o)):AD(a,o)}const Jl=-1;class _d{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function X0(t){return t!==Jl}function vd(t){return 32767&t}function yd(t,e){let n=function $H(t){return t>>16}(t),r=e;for(;n>0;)r=r[ql],n--;return r}let Z0=!0;function Ip(t){const e=Z0;return Z0=t,e}const xD=255,PD=5;let zH=0;const Eo={};function Ap(t,e){const n=DD(t,e);if(-1!==n)return n;const r=e[Ne];r.firstCreatePass&&(t.injectorIndex=e.length,J0(r.data,t),J0(e,null),J0(r.blueprint,null));const i=xp(t,e),o=t.injectorIndex;if(X0(i)){const s=vd(i),a=yd(i,e),l=a[Ne].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=i,o}function J0(t,e){t.push(0,0,0,0,0,0,0,0,e)}function DD(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function xp(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){if(r=FD(i),null===r)return Jl;if(n++,i=i[ql],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Jl}function eb(t,e,n){!function UH(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(od)&&(r=n[od]),null==r&&(r=n[od]=zH++);const i=r&xD;e.data[t+(i>>PD)]|=1<<i}(t,e,n)}function kD(t,e,n){if(n&_t.Optional||void 0!==t)return t;b0(0,"NodeInjector")}function MD(t,e,n,r){if(n&_t.Optional&&void 0===r&&(r=null),!(n&(_t.Self|_t.Host))){const i=t[Ns],o=Zr(void 0);try{return i?i.get(e,r,n&_t.Optional):yP(e,r,n&_t.Optional)}finally{Zr(o)}}return kD(r,0,n)}function OD(t,e,n,r=_t.Default,i){if(null!==t){if(2048&e[ot]&&!(r&_t.Self)){const s=function YH(t,e,n,r,i){let o=t,s=e;for(;null!==o&&null!==s&&2048&s[ot]&&!(512&s[ot]);){const a=RD(o,s,n,r|_t.Self,Eo);if(a!==Eo)return a;let l=o.parent;if(!l){const c=s[FP];if(c){const u=c.get(n,Eo,r);if(u!==Eo)return u}l=FD(s),s=s[ql]}o=l}return i}(t,e,n,r,Eo);if(s!==Eo)return s}const o=RD(t,e,n,r,Eo);if(o!==Eo)return o}return MD(e,n,r,i)}function RD(t,e,n,r,i){const o=function GH(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(od)?t[od]:void 0;return"number"==typeof e?e>=0?e&xD:WH:e}(n);if("function"==typeof o){if(!yD(e,t,r))return r&_t.Host?kD(i,0,r):MD(e,n,r,i);try{let s;if(s=o(r),null!=s||r&_t.Optional)return s;b0()}finally{ED()}}else if("number"==typeof o){let s=null,a=DD(t,e),l=Jl,c=r&_t.Host?e[Tn][br]:null;for((-1===a||r&_t.SkipSelf)&&(l=-1===a?xp(t,e):e[a+8],l!==Jl&&LD(r,!1)?(s=e[Ne],a=vd(l),e=yd(l,e)):a=-1);-1!==a;){const u=e[Ne];if(ND(o,a,u.data)){const d=jH(a,e,n,s,r,c);if(d!==Eo)return d}l=e[a+8],l!==Jl&&LD(r,e[Ne].data[a+8]===c)&&ND(o,a,e)?(s=u,a=vd(l),e=yd(l,e)):a=-1}}return i}function jH(t,e,n,r,i,o){const s=e[Ne],a=s.data[t+8],u=Pp(a,s,n,null==r?Ma(a)&&Z0:r!=s&&0!=(3&a.type),i&_t.Host&&o===a);return null!==u?Na(e,s,u,a):Eo}function Pp(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=1048575&o,l=t.directiveStart,u=o>>20,h=i?a+u:t.directiveEnd;for(let p=r?a:a+u;p<h;p++){const m=s[p];if(p<l&&n===m||p>=l&&m.type===n)return p}if(i){const p=s[l];if(p&&eo(p)&&p.type===n)return l}return null}function Na(t,e,n,r){let i=t[n];const o=e.data;if(function FH(t){return t instanceof _d}(i)){const s=i;s.resolving&&function mU(t,e){const n=e?". Dependency path: ".concat(e.join(" > ")," > ").concat(t):"";throw new he(-200,"Circular dependency in DI detected for ".concat(t).concat(n))}(function Vt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():et(t)}(o[n]));const a=Ip(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Zr(s.injectImpl):null;yD(t,r,_t.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function NH(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){var s,a;const d=nD(e);(null!==(s=n.preOrderHooks)&&void 0!==s?s:n.preOrderHooks=[]).push(t,d),(null!==(a=n.preOrderCheckHooks)&&void 0!==a?a:n.preOrderCheckHooks=[]).push(t,d)}var l,c,u;i&&(null!==(l=n.preOrderHooks)&&void 0!==l?l:n.preOrderHooks=[]).push(0-t,i),o&&((null!==(c=n.preOrderHooks)&&void 0!==c?c:n.preOrderHooks=[]).push(t,o),(null!==(u=n.preOrderCheckHooks)&&void 0!==u?u:n.preOrderCheckHooks=[]).push(t,o))}(n,o[n],e)}finally{null!==c&&Zr(c),Ip(a),s.resolving=!1,ED()}}return i}function ND(t,e,n){return!!(n[e+(t>>PD)]&1<<t)}function LD(t,e){return!(t&_t.Self||t&_t.Host&&e)}class zr{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return OD(this._tNode,this._lView,e,hp(r),n)}}function WH(){return new zr(ur(),pe())}function Jt(t){return es(()=>{const e=t.prototype.constructor,n=e[ts]||tb(e),r=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){const o=i[ts]||tb(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function tb(t){return v0(t)?()=>{const e=tb(Ze(t));return e&&e()}:Oa(t)}function FD(t){const e=t[Ne],n=e.type;return 2===n?e.declTNode:1===n?t[br]:null}const tc="__parameters__";function rc(t,e,n){return es(()=>{const r=function rb(t){return function(...n){if(t){const r=t(...n);for(const i in r)this[i]=r[i]}}}(e);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(tc)?l[tc]:Object.defineProperty(l,tc,{value:[]})[tc];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}function oc(t,e){t.forEach(n=>Array.isArray(n)?oc(n,e):e(n))}function BD(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Dp(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Cd(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}function gi(t,e,n){let r=sc(t,e);return r>=0?t[1|r]=n:(r=~r,function tj(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function ib(t,e){const n=sc(t,e);if(n>=0)return t[1|n]}function sc(t,e){return function $D(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=t[o<<n];if(e===s)return o<<n;s>e?i=o:r=o+1}return~(i<<n)}(t,e,1)}const to=id(rc("Optional"),8),sb=id(rc("SkipSelf"),4);function Lp(t){return 128==(128&t.flags)}var $s=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}($s||{});const Cj=/^>|^->|<!--|-->|--!>|<!-$/g,Ej=/(<|>)/g,Sj="\u200b$1\u200b";const ub=new Map;let Tj=0;const fb="__ngContext__";function wr(t,e){Jr(e)?(t[fb]=e[dd],function Aj(t){ub.set(t[dd],t)}(e)):t[fb]=e}let hb;function pb(t,e){return hb(t,e)}function Td(t){const e=t[un];return Vr(e)?e[un]:e}function sk(t){return lk(t[cd])}function ak(t){return lk(t[Ji])}function lk(t){for(;null!==t&&!Vr(t);)t=t[Ji];return t}function cc(t,e,n,r,i){if(null!=r){let o,s=!1;Vr(r)?o=r:Jr(r)&&(s=!0,r=r[vn]);const a=Zt(r);0===t&&null!==n?null==i?fk(e,n,a):La(e,n,a,i||null,!0):1===t&&null!==n?La(e,n,a,i||null,!0):2===t?function Hp(t,e,n){const r=zp(t,e);r&&function qj(t,e,n,r){t.removeChild(e,n,r)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function Kj(t,e,n,r,i){const o=n[yo];o!==Zt(n)&&cc(e,t,r,o,i);for(let a=lr;a<n.length;a++){const l=n[a];Ad(l[Ne],l,t,e,r,o)}}(e,t,o,n,i)}}function gb(t,e){return t.createComment(function ZD(t){return t.replace(Cj,e=>e.replace(Ej,Sj))}(e))}function Bp(t,e,n){return t.createElement(e,n)}function uk(t,e){const n=t[Yl],r=n.indexOf(e);cD(e),n.splice(r,1)}function $p(t,e){if(t.length<=lr)return;const n=lr+e,r=t[n];if(r){const i=r[ud];null!==i&&i!==t&&uk(i,r),e>0&&(t[n-1][Ji]=r[Ji]);const o=Dp(t,lr+e);!function Vj(t,e){Ad(t,e,e[tt],2,null,null),e[vn]=null,e[br]=null}(r[Ne],r);const s=o[vo];null!==s&&s.detachView(o[Ne]),r[un]=null,r[Ji]=null,r[ot]&=-129}return r}function mb(t,e){if(!(256&e[ot])){const n=e[tt];e[fd]&&WP(e[fd]),e[hd]&&WP(e[hd]),n.destroyNode&&Ad(t,e,n,3,null,null),function zj(t){let e=t[cd];if(!e)return _b(t[Ne],t);for(;e;){let n=null;if(Jr(e))n=e[cd];else{const r=e[lr];r&&(n=r)}if(!n){for(;e&&!e[Ji]&&e!==t;)Jr(e)&&_b(e[Ne],e),e=e[un];null===e&&(e=t),Jr(e)&&_b(e[Ne],e),n=e&&e[Ji]}e=n}}(e)}}function _b(t,e){if(!(256&e[ot])){e[ot]&=-129,e[ot]|=256,function Gj(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const i=e[n[r]];if(!(i instanceof _d)){const o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=i[o[s]],l=o[s+1];wo(4,a,l);try{l.call(a)}finally{wo(5,a,l)}}else{wo(4,i,o);try{o.call(i)}finally{wo(5,i,o)}}}}}(t,e),function jj(t,e){const n=t.cleanup,r=e[jl];if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const s=n[o+3];s>=0?r[s]():r[-s].unsubscribe(),o+=2}else n[o].call(r[n[o+1]]);null!==r&&(e[jl]=null);const i=e[Ls];if(null!==i){e[Ls]=null;for(let o=0;o<i.length;o++)(0,i[o])()}}(t,e),1===e[Ne].type&&e[tt].destroy();const n=e[ud];if(null!==n&&Vr(e[un])){n!==e[un]&&uk(n,e);const r=e[vo];null!==r&&r.detachView(t)}!function xj(t){ub.delete(t[dd])}(e)}}function vb(t,e,n){return function dk(t,e,n){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[vn];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:o}=t.data[r.directiveStart+i];if(o===ki.None||o===ki.Emulated)return null}return ei(r,n)}}(t,e.parent,n)}function La(t,e,n,r,i){t.insertBefore(e,n,r,i)}function fk(t,e,n){t.appendChild(e,n)}function hk(t,e,n,r,i){null!==r?La(t,e,n,r,i):fk(t,e,n)}function zp(t,e){return t.parentNode(e)}function pk(t,e,n){return mk(t,e,n)}let yb,jp,Eb,Gp,mk=function gk(t,e,n){return 40&t.type?ei(t,n):null};function Up(t,e,n,r){const i=vb(t,r,e),o=e[tt],a=pk(r.parent||e[br],r,e);if(null!=i)if(Array.isArray(n))for(let l=0;l<n.length;l++)hk(o,i,n[l],a,!1);else hk(o,i,n,a,!1);void 0!==yb&&yb(o,r,e,n,i)}function Id(t,e){if(null!==e){const n=e.type;if(3&n)return ei(e,t);if(4&n)return bb(-1,t[e.index]);if(8&n){const r=e.child;if(null!==r)return Id(t,r);{const i=t[e.index];return Vr(i)?bb(-1,i):Zt(i)}}if(32&n)return pb(e,t)()||Zt(t[e.index]);{const r=vk(t,e);return null!==r?Array.isArray(r)?r[0]:Id(Td(t[Tn]),r):Id(t,e.next)}}return null}function vk(t,e){return null!==e?t[Tn][br].projection[e.projection]:null}function bb(t,e){const n=lr+t+1;if(n<e.length){const r=e[n],i=r[Ne].firstChild;if(null!==i)return Id(r,i)}return e[yo]}function wb(t,e,n,r,i,o,s){for(;null!=n;){const a=r[n.index],l=n.type;if(s&&0===e&&(a&&wr(Zt(a),r),n.flags|=2),32!=(32&n.flags))if(8&l)wb(t,e,n.child,r,i,o,!1),cc(e,t,i,a,o);else if(32&l){const c=pb(n,r);let u;for(;u=c();)cc(e,t,i,u,o);cc(e,t,i,a,o)}else 16&l?bk(t,e,r,n,i,o):cc(e,t,i,a,o);n=s?n.projectionNext:n.next}}function Ad(t,e,n,r,i,o){wb(n,r,t.firstChild,e,i,o,!1)}function bk(t,e,n,r,i,o){const s=n[Tn],l=s[br].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)cc(e,t,i,l[c],o);else{let c=l;const u=s[un];Lp(r)&&(c.flags|=128),wb(t,e,c,u,i,o,!0)}}function wk(t,e,n){""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function Ck(t,e,n){const{mergedAttrs:r,classes:i,styles:o}=n;null!==r&&k0(t,e,r),null!==i&&wk(t,e,i),null!==o&&function Xj(t,e,n){t.setAttribute(e,"style",n)}(t,e,o)}function uc(t){var e;return(null===(e=function Cb(){if(void 0===jp&&(jp=null,Xt.trustedTypes))try{jp=Xt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return jp}())||void 0===e?void 0:e.createHTML(t))||t}function dc(){if(void 0!==Eb)return Eb;if(typeof document<"u")return document;throw new he(210,!1)}function Ek(t){var e;return(null===(e=function Sb(){if(void 0===Gp&&(Gp=null,Xt.trustedTypes))try{Gp=Xt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Gp}())||void 0===e?void 0:e.createHTML(t))||t}class Fa{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see ".concat(gP,")")}}class nG extends Fa{getTypeName(){return"HTML"}}class rG extends Fa{getTypeName(){return"Style"}}class iG extends Fa{getTypeName(){return"Script"}}class oG extends Fa{getTypeName(){return"URL"}}class sG extends Fa{getTypeName(){return"ResourceURL"}}function mi(t){return t instanceof Fa?t.changingThisBreaksApplicationSecurity:t}function So(t,e){const n=function aG(t){return t instanceof Fa&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(n," (see ").concat(gP,")"))}return n===e}class hG{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const n=(new window.DOMParser).parseFromString(uc(e),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(e):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class pG{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){const n=this.inertDocument.createElement("template");return n.innerHTML=uc(e),n}}const mG=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function qp(t){return(t=String(t)).match(mG)?t:"unsafe:"+t}function os(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function xd(...t){const e={};for(const n of t)for(const r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}const Ak=os("area,br,col,hr,img,wbr"),xk=os("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Pk=os("rp,rt"),Tb=xd(Ak,xd(xk,os("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")),xd(Pk,os("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")),xd(Pk,xk)),Ib=os("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Dk=xd(Ib,os("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"),os("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")),_G=os("script,style,template");class vG{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let n=e.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(e){const n=e.nodeName.toLowerCase();if(!Tb.hasOwnProperty(n))return this.sanitizedSomething=!0,!_G.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=e.attributes;for(let i=0;i<r.length;i++){const o=r.item(i),s=o.name,a=s.toLowerCase();if(!Dk.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;Ib[a]&&(l=qp(l)),this.buf.push(" ",s,'="',kk(l),'"')}return this.buf.push(">"),!0}endElement(e){const n=e.nodeName.toLowerCase();Tb.hasOwnProperty(n)&&!Ak.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(e){this.buf.push(kk(e))}checkClobberedElement(e,n){if(n&&(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return n}}const yG=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bG=/([^\#-~ |!])/g;function kk(t){return t.replace(/&/g,"&amp;").replace(yG,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(bG,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Wp;function Mk(t,e){let n=null;try{Wp=Wp||function Ik(t){const e=new pG(t);return function gG(){try{return!!(new window.DOMParser).parseFromString(uc(""),"text/html")}catch(t){return!1}}()?new hG(e):e}(t);let r=e?String(e):"";n=Wp.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Wp.getInertBodyElement(r)}while(r!==o);return uc((new vG).sanitizeChildren(Ab(n)||n))}finally{if(n){const r=Ab(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ab(t){return"content"in t&&function wG(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ri=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ri||{});function Pd(t){const e=Dd();return e?Ek(e.sanitize(Ri.HTML,t)||""):So(t,"HTML")?Ek(mi(t)):Mk(dc(),et(t))}function Nn(t){const e=Dd();return e?e.sanitize(Ri.URL,t)||"":So(t,"URL")?mi(t):qp(et(t))}function Dd(){const t=pe();return t&&t[Gl].sanitizer}const Yp=new Ve("ENVIRONMENT_INITIALIZER"),Rk=new Ve("INJECTOR",-1),Nk=new Ve("INJECTOR_DEF_TYPES");class xb{get(e,n=rd){if(n===rd){const r=new Error("NullInjectorError: No provider for ".concat(Hn(e),"!"));throw r.name="NullInjectorError",r}return n}}function xG(...t){return{\u0275providers:Lk(0,t),\u0275fromNgModule:!0}}function Lk(t,...e){const n=[],r=new Set;let i;const o=s=>{n.push(s)};return oc(e,s=>{const a=s;Kp(a,o,[],r)&&(i||(i=[]),i.push(a))}),void 0!==i&&Fk(i,o),n}function Fk(t,e){for(let n=0;n<t.length;n++){const{ngModule:r,providers:i}=t[n];Db(i,o=>{e(o,r)})}}function Kp(t,e,n,r){if(!(t=Ze(t)))return!1;let i=null,o=up(t);const s=!o&&Ct(t);if(o||s){if(s&&!s.standalone)return!1;i=t}else{const l=t.ngModule;if(o=up(l),!o)return!1;i=l}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Kp(c,e,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;r.add(i);try{oc(o.imports,u=>{Kp(u,e,n,r)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&Fk(c,e)}if(!a){const c=Oa(i)||(()=>new i);e({provide:i,useFactory:c,deps:Pt},i),e({provide:Nk,useValue:i,multi:!0},i),e({provide:Yp,useValue:()=>Te(i),multi:!0},i)}const l=o.providers;if(null!=l&&!a){const c=t;Db(l,u=>{e(u,c)})}}}return i!==t&&void 0!==t.providers}function Db(t,e){for(let n of t)y0(n)&&(n=n.\u0275providers),Array.isArray(n)?Db(n,e):e(n)}const PG=zt({provide:String,useValue:zt});function kb(t){return null!==t&&"object"==typeof t&&PG in t}function Va(t){return"function"==typeof t}const Mb=new Ve("Set Injector scope."),Qp={},kG={};let Ob;function Xp(){return void 0===Ob&&(Ob=new xb),Ob}class To{}class fc extends To{get destroyed(){return this._destroyed}constructor(e,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Nb(e,s=>this.processProvider(s)),this.records.set(Rk,hc(void 0,this)),i.has("environment")&&this.records.set(To,hc(void 0,this));const o=this.records.get(Mb);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Nk.multi,Pt,_t.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();const n=Rs(this),r=Zr(void 0);try{return e()}finally{Rs(n),Zr(r)}}get(e,n=rd,r=_t.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(SP))return e[SP](this);r=hp(r);const o=Rs(this),s=Zr(void 0);try{if(!(r&_t.SkipSelf)){let l=this.records.get(e);if(void 0===l){const c=function LG(t){return"function"==typeof t||"object"==typeof t&&t instanceof Ve}(e)&&cp(e);l=c&&this.injectableDefInScope(c)?hc(Rb(e),Qp):null,this.records.set(e,l)}if(null!=l)return this.hydrate(e,l)}return(r&_t.Self?Xp():this.parent).get(e,n=r&_t.Optional&&n===rd?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[fp]=a[fp]||[]).unshift(Hn(e)),o)throw a;return function DU(t,e,n,r){const i=t[fp];throw e[wP]&&i.unshift(e[wP]),t.message=function kU(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let i=Hn(e);if(Array.isArray(e))i=e.map(Hn).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Hn(a)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(t.replace(TU,"\n  "))}("\n"+t.message,i,n,r),t.ngTokenPath=i,t[fp]=null,t}(a,e,"R3InjectorError",this.source)}throw a}finally{Zr(s),Rs(o)}}resolveInjectorInitializers(){const e=Rs(this),n=Zr(void 0);try{const i=this.get(Yp.multi,Pt,_t.Self);for(const o of i)o()}finally{Rs(e),Zr(n)}}toString(){const e=[],n=this.records;for(const r of n.keys())e.push(Hn(r));return"R3Injector[".concat(e.join(", "),"]")}assertNotDestroyed(){if(this._destroyed)throw new he(205,!1)}processProvider(e){let n=Va(e=Ze(e))?e:Ze(e&&e.provide);const r=function OG(t){return kb(t)?hc(void 0,t.useValue):hc($k(t),Qp)}(e);if(Va(e)||!0!==e.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=hc(void 0,Qp,!0),i.factory=()=>x0(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n){return n.value===Qp&&(n.value=kG,n.value=n.factory()),"object"==typeof n.value&&n.value&&function NG(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=Ze(e.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){const n=this._onDestroyHooks.indexOf(e);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Rb(t){const e=cp(t),n=null!==e?e.factory:Oa(t);if(null!==n)return n;if(t instanceof Ve)throw new he(204,!1);if(t instanceof Function)return function MG(t){const e=t.length;if(e>0)throw Cd(e,"?"),new he(204,!1);const n=function wU(t){return t&&(t[dp]||t[_P])||null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new he(204,!1)}function $k(t,e,n){let r;if(Va(t)){const i=Ze(t);return Oa(i)||Rb(i)}if(kb(t))r=()=>Ze(t.useValue);else if(function Bk(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...x0(t.deps||[]));else if(function Vk(t){return!(!t||!t.useExisting)}(t))r=()=>Te(Ze(t.useExisting));else{const i=Ze(t&&(t.useClass||t.provide));if(!function RG(t){return!!t.deps}(t))return Oa(i)||Rb(i);r=()=>new i(...x0(t.deps))}return r}function hc(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Nb(t,e){for(const n of t)Array.isArray(n)?Nb(n,e):n&&y0(n)?Nb(n.\u0275providers,e):e(n)}const Zp=new Ve("AppId",{providedIn:"root",factory:()=>FG}),FG="ng",zk=new Ve("Platform Initializer"),Io=new Ve("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Uk=new Ve("AnimationModuleType"),Hk=new Ve("CSP nonce",{providedIn:"root",factory:()=>{var t;return(null===(t=dc().body)||void 0===t||null===(t=t.querySelector("[ngCspNonce]"))||void 0===t?void 0:t.getAttribute("ngCspNonce"))||null}});let jk=(t,e,n)=>null;function $b(t,e,n=!1){return jk(t,e,n)}class WG{}class Wk{}class KG{resolveComponentFactory(e){throw function YG(t){const e=Error("No component factory found for ".concat(Hn(t),"."));return e.ngComponent=t,e}(e)}}let _c=(()=>{class e{}return e.NULL=new KG,e})();function QG(){return vc(ur(),pe())}function vc(t,e){return new Cr(ei(t,e))}let Cr=(()=>{class e{constructor(r){this.nativeElement=r}}return e.__NG_ELEMENT_ID__=QG,e})();function XG(t){return t instanceof Cr?t.nativeElement:t}class Rd{}let ss=(()=>{class e{constructor(){this.destroyNode=null}}return e.__NG_ELEMENT_ID__=()=>function ZG(){const t=pe(),n=pi(ur().index,t);return(Jr(n)?n:t)[tt]}(),e})(),JG=(()=>{var t;class e{}return(t=e).\u0275prov=We({token:t,providedIn:"root",factory:()=>null}),e})();class yc{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Kk=new yc("16.2.12"),Hb={};function Jk(t,e=null,n=null,r){const i=e3(t,e,n,r);return i.resolveInjectorInitializers(),i}function e3(t,e=null,n=null,r,i=new Set){const o=[n||Pt,xG(t)];return r=r||("object"==typeof t?void 0:Hn(t)),new fc(o,e||Xp(),r||null,i)}let Er=(()=>{var t;class e{static create(r,i){if(Array.isArray(r))return Jk({name:""},i,r,"");{var o;const s=null!==(o=r.name)&&void 0!==o?o:"";return Jk({name:s},r.parent,r.providers,s)}}}return(t=e).THROW_IF_NOT_FOUND=rd,t.NULL=new xb,t.\u0275prov=We({token:t,providedIn:"any",factory:()=>Te(Rk)}),t.__NG_ELEMENT_ID__=-1,e})();function Gb(t){return t.ngOriginalError}class as{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Gb(e);for(;n&&Gb(n);)n=Gb(n);return n||null}}function Wb(t){return e=>{setTimeout(t,void 0,e)}}const de=class sq extends hn{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){let i=e,o=n||(()=>null),s=r;if(e&&"object"==typeof e){var a,l,c;const d=e;i=null===(a=d.next)||void 0===a?void 0:a.bind(d),o=null===(l=d.error)||void 0===l?void 0:l.bind(d),s=null===(c=d.complete)||void 0===c?void 0:c.bind(d)}this.__isAsync&&(o=Wb(o),i&&(i=Wb(i)),s&&(s=Wb(s)));const u=super.subscribe({next:i,error:o,complete:s});return e instanceof Qr&&e.add(u),u}};function n3(...t){}class Dt{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new de(!1),this.onMicrotaskEmpty=new de(!1),this.onStable=new de(!1),this.onError=new de(!1),typeof Zone>"u")throw new he(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function aq(){const t="function"==typeof Xt.requestAnimationFrame;let e=Xt[t?"requestAnimationFrame":"setTimeout"],n=Xt[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&n){const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function uq(t){const e=()=>{!function cq(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Xt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Kb(t),t.isCheckStableRunning=!0,Yb(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Kb(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(function fq(t){var e;return!(!Array.isArray(t)||1!==t.length)&&!0===(null===(e=t[0].data)||void 0===e?void 0:e.__ignore_ng_zone__)}(a))return n.invokeTask(i,o,s,a);try{return r3(t),n.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),i3(t)}},onInvoke:(n,r,i,o,s,a,l)=>{try{return r3(t),n.invoke(i,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),i3(t)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Kb(t),Yb(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Dt.isInAngularZone())throw new he(909,!1)}static assertNotInAngularZone(){if(Dt.isInAngularZone())throw new he(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,lq,n3,n3);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const lq={};function Yb(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Kb(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function r3(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function i3(t){t._nesting--,Yb(t)}class dq{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new de,this.onMicrotaskEmpty=new de,this.onStable=new de,this.onError=new de}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}}const o3=new Ve("",{providedIn:"root",factory:s3});function s3(){const t=It(Dt);let e=!0;return pP(new lt(i=>{e=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{i.next(e),i.complete()})}),new lt(i=>{let o;t.runOutsideAngular(()=>{o=t.onStable.subscribe(()=>{Dt.assertNotInAngularZone(),queueMicrotask(()=>{!e&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(e=!0,i.next(!0))})})});const s=t.onUnstable.subscribe(()=>{Dt.assertInAngularZone(),e&&(e=!1,t.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(g0()))}function Ba(t){return t.ownerDocument}let Qb=(()=>{var t;class e{constructor(){this.renderDepth=0,this.handler=null}begin(){var r;null===(r=this.handler)||void 0===r||r.validateBegin(),this.renderDepth++}end(){var r;this.renderDepth--,0===this.renderDepth&&(null===(r=this.handler)||void 0===r||r.execute())}ngOnDestroy(){var r;null===(r=this.handler)||void 0===r||r.destroy(),this.handler=null}}return(t=e).\u0275prov=We({token:t,providedIn:"root",factory:()=>new t}),e})();function Nd(t){for(;t;){t[ot]|=64;const e=Td(t);if(R0(t)&&!e)return t;t=e}return null}const d3=new Ve("",{providedIn:"root",factory:()=>!1});let Ld=null;function g3(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:v3()}function m3(t,e){var n;const r=v3();null!==(n=r.producerNode)&&void 0!==n&&n.length&&(t[e]=Ld,r.lView=t,Ld=_3())}const wq=ge(ge({},zP),{},{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Nd(t.lView)},lView:null});function _3(){return Object.create(wq)}function v3(){var t;return null!==(t=Ld)&&void 0!==t||(Ld=_3()),Ld}const nt={};function b(t){y3(Et(),pe(),$r()+t,!1)}function y3(t,e,n,r){if(!r)if(3==(3&e[ot])){const o=t.preOrderCheckHooks;null!==o&&Sp(e,o,n)}else{const o=t.preOrderHooks;null!==o&&Tp(e,o,0,n)}Ra(n)}function te(t,e=_t.Default){const n=pe();return null===n?Te(t,e):OD(ur(),n,Ze(t),e)}function ag(t,e,n,r,i,o,s,a,l,c,u){const d=e.blueprint.slice();return d[vn]=i,d[ot]=140|r,(null!==c||t&&2048&t[ot])&&(d[ot]|=2048),lD(d),d[un]=d[ql]=t,d[Sn]=n,d[Gl]=s||t&&t[Gl],d[tt]=a||t&&t[tt],d[Ns]=l||t&&t[Ns]||null,d[br]=o,d[dd]=function Ij(){return Tj++}(),d[ns]=u,d[FP]=c,d[Tn]=2==e.type?t[Tn]:d,d}function Cc(t,e,n,r,i){let o=t.data[e];if(null===o)o=function Xb(t,e,n,r,i){const o=pD(),s=U0(),l=t.data[e]=function Dq(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return Xl()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,n,e,r,i);return null===t.firstChild&&(t.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(t,e,n,r,i),function AH(){return Xe.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const s=function md(){const t=Xe.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Co(o,!0),o}function Fd(t,e,n,r){if(0===n)return-1;const i=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function b3(t,e,n,r,i){const o=g3(e,fd),s=$r(),a=2&r;try{Ra(-1),a&&e.length>ft&&y3(t,e,ft,!1),wo(a?2:0,i);const c=a?o:null,u=L0(c);try{null!==c&&(c.dirty=!1),n(r,i)}finally{F0(c,u)}}finally{a&&null===e[fd]&&m3(e,fd),Ra(s),wo(a?3:1,i)}}function Zb(t,e,n){if(O0(e)){const r=Mi(null);try{const o=e.directiveEnd;for(let s=e.directiveStart;s<o;s++){const a=t.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}finally{Mi(r)}}}function Jb(t,e,n){hD()&&(function Fq(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;Ma(n)&&function jq(t,e,n){const r=ei(e,t),i=w3(n);let s=16;n.signals?s=4096:n.onPush&&(s=64);const a=lg(t,ag(t,i,null,s,r,e,null,t[Gl].rendererFactory.createRenderer(r,n),null,null,null));t[e.index]=a}(e,n,t.data[i+n.componentOffset]),t.firstCreatePass||Ap(n,e),wr(r,e);const s=n.initialInputs;for(let a=i;a<o;a++){const l=t.data[a],c=Na(e,t,a,n);wr(c,e),null!==s&&Gq(0,a-i,c,l,0,s),eo(l)&&(pi(n.index,e)[Sn]=Na(e,t,a,n))}}(t,e,n,ei(n,e)),64==(64&n.flags)&&I3(t,e,n))}function e1(t,e,n=ei){const r=e.localNames;if(null!==r){let i=e.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(e,t):t[s];t[i++]=a}}}function w3(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=t1(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function t1(t,e,n,r,i,o,s,a,l,c,u){const d=ft+r,h=d+i,p=function Sq(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:nt);return n}(d,h),m="function"==typeof c?c():c;return p[Ne]={type:t,blueprint:p,template:n,queries:null,viewQuery:a,declTNode:e,data:p.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:m,incompleteFirstPass:!1,ssrId:u}}let C3=t=>null;function E3(t,e,n,r){for(let i in t)if(t.hasOwnProperty(i)){n=null===n?{}:n;const o=t[i];null===r?S3(n,e,i,o):r.hasOwnProperty(i)&&S3(n,e,r[i],o)}return n}function S3(t,e,n,r){t.hasOwnProperty(n)?t[n].push(e,r):t[n]=[e,r]}function n1(t,e,n,r){if(hD()){const i=null===r?null:{"":-1},o=function Bq(t,e){const n=t.directiveRegistry;let r=null,i=null;if(n)for(let s=0;s<n.length;s++){const a=n[s];if(kP(e,a.selectors,!1))if(r||(r=[]),eo(a))if(null!==a.findHostDirectiveDefs){const l=[];i=i||new Map,a.findHostDirectiveDefs(a,l,i),r.unshift(...l,a),r1(t,e,l.length)}else r.unshift(a),r1(t,e,0);else{var o;i=i||new Map,null===(o=a.findHostDirectiveDefs)||void 0===o||o.call(a,a,r,i),r.push(a)}}return null===r?null:[r,i]}(t,n);let s,a;null===o?s=a=null:[s,a]=o,null!==s&&T3(t,e,n,s,i,a),i&&function $q(t,e,n){if(e){const r=t.localNames=[];for(let i=0;i<e.length;i+=2){const o=n[e[i+1]];if(null==o)throw new he(-301,!1);r.push(e[i],o)}}}(n,r,i)}n.mergedAttrs=sd(n.mergedAttrs,n.attrs)}function T3(t,e,n,r,i,o){for(let d=0;d<r.length;d++)eb(Ap(n,e),t,r[d].type);!function Uq(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}(n,t.data.length,r.length);for(let d=0;d<r.length;d++){const h=r[d];h.providersResolver&&h.providersResolver(h)}let s=!1,a=!1,l=Fd(t,e,r.length,null);for(let d=0;d<r.length;d++){const h=r[d];n.mergedAttrs=sd(n.mergedAttrs,h.hostAttrs),Hq(t,n,e,l,h),zq(l,h,i),null!==h.contentQueries&&(n.flags|=4),(null!==h.hostBindings||null!==h.hostAttrs||0!==h.hostVars)&&(n.flags|=64);const p=h.type.prototype;var c,u;!s&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((null!==(c=t.preOrderHooks)&&void 0!==c?c:t.preOrderHooks=[]).push(n.index),s=!0),a||!p.ngOnChanges&&!p.ngDoCheck||((null!==(u=t.preOrderCheckHooks)&&void 0!==u?u:t.preOrderCheckHooks=[]).push(n.index),a=!0),l++}!function kq(t,e,n){const i=e.directiveEnd,o=t.data,s=e.attrs,a=[];let l=null,c=null;for(let u=e.directiveStart;u<i;u++){const d=o[u],h=n?n.get(d):null,m=h?h.outputs:null;l=E3(d.inputs,u,l,h?h.inputs:null),c=E3(d.outputs,u,c,m);const _=null===l||null===s||DP(e)?null:qq(l,u,s);a.push(_)}null!==l&&(l.hasOwnProperty("class")&&(e.flags|=8),l.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=l,e.outputs=c}(t,n,o)}function I3(t,e,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,s=function PH(){return Xe.lFrame.currentDirectiveIndex}();try{Ra(o);for(let a=r;a<i;a++){const l=t.data[a],c=e[a];j0(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&Vq(l,c)}}finally{Ra(-1),j0(s)}}function Vq(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function r1(t,e,n){var r;e.componentOffset=n,(null!==(r=t.components)&&void 0!==r?r:t.components=[]).push(e.index)}function zq(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;eo(e)&&(n[""]=t)}}function Hq(t,e,n,r,i){t.data[r]=i;const o=i.factory||(i.factory=Oa(i.type)),s=new _d(o,eo(i),te);t.blueprint[r]=s,n[r]=s,function Nq(t,e,n,r,i){const o=i.hostBindings;if(o){let s=t.hostBindingOpCodes;null===s&&(s=t.hostBindingOpCodes=[]);const a=~e.index;(function Lq(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,o)}}(t,e,r,Fd(t,n,i.hostVars,nt),i)}function Ao(t,e,n,r,i,o){const s=ei(t,e);!function o1(t,e,n,r,i,o,s){if(null==o)t.removeAttribute(e,i,n);else{const a=null==s?et(o):s(o,r||"",i);t.setAttribute(e,i,a,n)}}(e[tt],s,o,t.value,n,r,i)}function Gq(t,e,n,r,i,o){const s=o[e];if(null!==s)for(let a=0;a<s.length;)A3(r,n,s[a++],s[a++],s[a++])}function A3(t,e,n,r,i){const o=Mi(null);try{const s=t.inputTransforms;null!==s&&s.hasOwnProperty(r)&&(i=s[r].call(e,i)),null!==t.setInput?t.setInput(e,i,n,r):e[r]=i}finally{Mi(o)}}function qq(t,e,n){let r=null,i=0;for(;i<n.length;){const o=n[i];if(0!==o)if(5!==o){if("number"==typeof o)break;if(t.hasOwnProperty(o)){null===r&&(r=[]);const s=t[o];for(let a=0;a<s.length;a+=2)if(s[a]===e){r.push(o,s[a+1],n[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function x3(t,e,n,r){return[t,!0,!1,e,null,0,r,n,null,null,null]}function P3(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r+1];if(-1!==o){const s=t.data[o];q0(n[r]),s.contentQueries(2,e[o],o)}}}function lg(t,e){return t[cd]?t[LP][Ji]=e:t[cd]=e,t[LP]=e,e}function s1(t,e,n){q0(0);const r=Mi(null);try{e(t,n)}finally{Mi(r)}}function D3(t){return t[jl]||(t[jl]=[])}function k3(t){return t.cleanup||(t.cleanup=[])}function O3(t,e){const n=t[Ns],r=n?n.get(as,null):null;r&&r.handleError(e)}function a1(t,e,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++];A3(t.data[s],e[s],r,a,i)}}function cs(t,e,n){const r=wp(e,t);!function ck(t,e,n){t.setValue(e,n)}(t[tt],r,n)}function Wq(t,e){const n=pi(e,t),r=n[Ne];!function Yq(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n);const i=n[vn];null!==i&&null===n[ns]&&(n[ns]=$b(i,n[Ns])),l1(r,n,n[Sn])}function l1(t,e,n){W0(e);try{const r=t.viewQuery;null!==r&&s1(1,r,n);const i=t.template;null!==i&&b3(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&P3(t,e),t.staticViewQueries&&s1(2,t.viewQuery,n);const o=t.components;null!==o&&function Kq(t,e){for(let n=0;n<e.length;n++)Wq(t,e[n])}(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[ot]&=-5,Y0()}}let R3=(()=>{var t;class e{constructor(){this.all=new Set,this.queue=new Map}create(r,i,o){const s=typeof Zone>"u"?null:Zone.current,a=function sH(t,e,n){const r=Object.create(aH);n&&(r.consumerAllowSignalWrites=!0),r.fn=t,r.schedule=e;const i=s=>{r.cleanupFn=s};return r.ref={notify:()=>GP(r),run:()=>{if(r.dirty=!1,r.hasRun&&!qP(r))return;r.hasRun=!0;const s=L0(r);try{r.cleanupFn(),r.cleanupFn=eD,r.fn(i)}finally{F0(r,s)}},cleanup:()=>r.cleanupFn()},r.ref}(r,u=>{this.all.has(u)&&this.queue.set(u,s)},o);let l;this.all.add(a),a.notify();const c=()=>{var u;a.cleanup(),null===(u=l)||void 0===u||u(),this.all.delete(a),this.queue.delete(a)};return l=null==i?void 0:i.onDestroy(c),{destroy:c}}flush(){if(0!==this.queue.size)for(const[r,i]of this.queue)this.queue.delete(r),i?i.run(()=>r.run()):r.run()}get isQueueEmpty(){return 0===this.queue.size}}return(t=e).\u0275prov=We({token:t,providedIn:"root",factory:()=>new t}),e})();function cg(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(let s=0;s<e.length;s++){const a=e[s];"number"==typeof a?o=a:1==o?i=_0(i,a):2==o&&(r=_0(r,a+": "+e[++s]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}function Vd(t,e,n,r,i=!1){for(;null!==n;){const o=e[n.index];null!==o&&r.push(Zt(o)),Vr(o)&&N3(o,r);const s=n.type;if(8&s)Vd(t,e,n.child,r);else if(32&s){const a=pb(n,e);let l;for(;l=a();)r.push(l)}else if(16&s){const a=vk(e,n);if(Array.isArray(a))r.push(...a);else{const l=Td(e[Tn]);Vd(l[Ne],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function N3(t,e){for(let n=lr;n<t.length;n++){const r=t[n],i=r[Ne].firstChild;null!==i&&Vd(r[Ne],r,i,e)}t[yo]!==t[vn]&&e.push(t[yo])}function ug(t,e,n,r=!0){const i=e[Gl],o=i.rendererFactory,s=i.afterRenderEventManager;var l;null===(l=o.begin)||void 0===l||l.call(o),null==s||s.begin();try{L3(t,e,t.template,n)}catch(d){throw r&&O3(e,d),d}finally{var c,u;null===(c=o.end)||void 0===c||c.call(o),null===(u=i.effectManager)||void 0===u||u.flush(),null==s||s.end()}}function L3(t,e,n,r){var i;const o=e[ot];if(256!=(256&o)){null===(i=e[Gl].effectManager)||void 0===i||i.flush(),W0(e);try{lD(e),function mD(t){return Xe.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&b3(t,e,n,2,r);const a=3==(3&o);if(a){const u=t.preOrderCheckHooks;null!==u&&Sp(e,u,null)}else{const u=t.preOrderHooks;null!==u&&Tp(e,u,0,null),K0(e,0)}if(function Zq(t){for(let e=sk(t);null!==e;e=ak(e)){if(!e[VP])continue;const n=e[Yl];for(let r=0;r<n.length;r++){mH(n[r])}}}(e),F3(e,2),null!==t.contentQueries&&P3(t,e),a){const u=t.contentCheckHooks;null!==u&&Sp(e,u)}else{const u=t.contentHooks;null!==u&&Tp(e,u,1),K0(e,1)}!function Eq(t,e){const n=t.hostBindingOpCodes;if(null===n)return;const r=g3(e,hd);try{for(let i=0;i<n.length;i++){const o=n[i];if(o<0)Ra(~o);else{const s=o,a=n[++i],l=n[++i];xH(a,s),r.dirty=!1;const c=L0(r);try{l(2,e[s])}finally{F0(r,c)}}}}finally{null===e[hd]&&m3(e,hd),Ra(-1)}}(t,e);const l=t.components;null!==l&&B3(e,l,0);const c=t.viewQuery;if(null!==c&&s1(2,c,r),a){const u=t.viewCheckHooks;null!==u&&Sp(e,u)}else{const u=t.viewHooks;null!==u&&Tp(e,u,2),K0(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),e[ot]&=-73,cD(e)}finally{Y0()}}}function F3(t,e){for(let n=sk(t);null!==n;n=ak(n))for(let r=lr;r<n.length;r++)V3(n[r],e)}function Jq(t,e,n){V3(pi(e,t),n)}function V3(t,e){if(!function pH(t){return 128==(128&t[ot])}(t))return;const n=t[Ne],r=t[ot];if(80&r&&0===e||1024&r||2===e)L3(n,t,n.template,t[Sn]);else if(t[ld]>0){F3(t,1);const i=n.components;null!==i&&B3(t,i,1)}}function B3(t,e,n){for(let r=0;r<e.length;r++)Jq(t,e[r],n)}class Bd{get rootNodes(){const e=this._lView,n=e[Ne];return Vd(n,e,n.firstChild,[])}constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Sn]}set context(e){this._lView[Sn]=e}get destroyed(){return 256==(256&this._lView[ot])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[un];if(Vr(e)){const n=e[8],r=n?n.indexOf(this):-1;r>-1&&($p(e,r),Dp(n,r))}this._attachedToViewContainer=!1}mb(this._lView[Ne],this._lView)}onDestroy(e){!function dD(t,e){if(256==(256&t[ot]))throw new he(911,!1);null===t[Ls]&&(t[Ls]=[]),t[Ls].push(e)}(this._lView,e)}markForCheck(){Nd(this._cdRefInjectingView||this._lView)}detach(){this._lView[ot]&=-129}reattach(){this._lView[ot]|=128}detectChanges(){ug(this._lView[Ne],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new he(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $j(t,e){Ad(t,e,e[tt],2,null,null)}(this._lView[Ne],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new he(902,!1);this._appRef=e}}class eW extends Bd{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;ug(e[Ne],e,e[Sn],!1)}checkNoChanges(){}get context(){return null}}class $3 extends _c{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Ct(e);return new $d(n,this.ngModule)}}function z3(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}class nW{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=hp(r);const i=this.injector.get(e,Hb,r);return i!==Hb||n===Hb?i:this.parentInjector.get(e,n,r)}}class $d extends Wk{get inputs(){const e=this.componentDef,n=e.inputTransforms,r=z3(e.inputs);if(null!==n)for(const i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return z3(this.componentDef.outputs)}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function zU(t){return t.map($U).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}create(e,n,r,i){var o;let s=(i=i||this.ngModule)instanceof To?i:null===(o=i)||void 0===o?void 0:o.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const a=s?new nW(e,s):e,l=a.get(Rd,null);if(null===l)throw new he(407,!1);const h={rendererFactory:l,sanitizer:a.get(JG,null),effectManager:a.get(R3,null),afterRenderEventManager:a.get(Qb,null)},p=l.createRenderer(null,this.componentDef),m=this.componentDef.selectors[0][0]||"div",_=r?function Tq(t,e,n,r){const o=r.get(d3,!1)||n===ki.ShadowDom,s=t.selectRootElement(e,o);return function Iq(t){C3(t)}(s),s}(p,r,this.componentDef.encapsulation,a):Bp(p,m,function tW(t){const e=t.toLowerCase();return"svg"===e?oD:"math"===e?"math":null}(m)),C=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let k=null;null!==_&&(k=$b(_,a,!0));const j=t1(0,null,null,1,0,null,null,null,null,null,null),q=ag(null,j,null,C,null,null,h,p,a,null,k);let K,N;W0(q);try{const P=this.componentDef;let V,F=null;P.findHostDirectiveDefs?(V=[],F=new Map,P.findHostDirectiveDefs(P,V,F),V.push(P)):V=[P];const R=function iW(t,e){const n=t[Ne],r=ft;return t[r]=e,Cc(n,r,2,"#host",null)}(q,_),O=function oW(t,e,n,r,i,o,s){const a=i[Ne];!function sW(t,e,n,r){for(const i of t)e.mergedAttrs=sd(e.mergedAttrs,i.hostAttrs);null!==e.mergedAttrs&&(cg(e,e.mergedAttrs,!0),null!==n&&Ck(r,n,e))}(r,t,e,s);let l=null;null!==e&&(l=$b(e,i[Ns]));const c=o.rendererFactory.createRenderer(e,n);let u=16;n.signals?u=4096:n.onPush&&(u=64);const d=ag(i,w3(n),null,u,i[t.index],t,o,c,null,null,l);return a.firstCreatePass&&r1(a,t,r.length-1),lg(i,d),i[t.index]=d}(R,_,P,V,q,h,p);N=aD(j,ft),_&&function lW(t,e,n,r){if(r)k0(t,n,["ng-version",Kk.full]);else{const{attrs:i,classes:o}=function UU(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!Zi(i))break;i=o}r++}return{attrs:e,classes:n}}(e.selectors[0]);i&&k0(t,n,i),o&&o.length>0&&wk(t,n,o.join(" "))}}(p,P,_,r),void 0!==n&&function cW(t,e,n){const r=t.projection=[];for(let i=0;i<e.length;i++){const o=n[i];r.push(null!=o?Array.from(o):null)}}(N,this.ngContentSelectors,n),K=function aW(t,e,n,r,i,o){const s=ur(),a=i[Ne],l=ei(s,i);T3(a,i,s,n,null,r);for(let u=0;u<n.length;u++)wr(Na(i,a,s.directiveStart+u,s),i);I3(a,i,s),l&&wr(l,i);const c=Na(i,a,s.directiveStart+s.componentOffset,s);if(t[Sn]=i[Sn]=c,null!==o)for(const u of o)u(c,e);return Zb(a,s,t),c}(O,P,V,F,q,[uW]),l1(j,q,null)}finally{Y0()}return new rW(this.componentType,K,vc(N,q),q,N)}}class rW extends WG{constructor(e,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new eW(i),this.componentType=e}setInput(e,n){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[e])){var o;if(null!==(o=this.previousInputValues)&&void 0!==o||(this.previousInputValues=new Map),this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;const s=this._rootLView;a1(s[Ne],s,i,e,n),this.previousInputValues.set(e,n),Nd(pi(this._tNode.index,s))}}get injector(){return new zr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}function uW(){const t=ur();Ep(pe()[Ne],t)}function ht(t){let e=function U3(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const r=[t];for(;e;){let i;if(eo(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new he(903,!1);i=e.\u0275dir}if(i){if(n){r.push(i);const s=t;s.inputs=dg(t.inputs),s.inputTransforms=dg(t.inputTransforms),s.declaredInputs=dg(t.declaredInputs),s.outputs=dg(t.outputs);const a=i.hostBindings;a&&pW(t,a);const l=i.viewQuery,c=i.contentQueries;if(l&&fW(t,l),c&&hW(t,c),ap(t.inputs,i.inputs),ap(t.declaredInputs,i.declaredInputs),ap(t.outputs,i.outputs),null!==i.inputTransforms&&(null===s.inputTransforms&&(s.inputTransforms={}),ap(s.inputTransforms,i.inputTransforms)),eo(i)&&i.data.animation){const u=t.data;u.animation=(u.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(t),a===ht&&(n=!1)}}e=Object.getPrototypeOf(e)}!function dW(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=sd(i.hostAttrs,n=sd(n,i.hostAttrs))}}(r)}function dg(t){return t===_o?{}:t===Pt?[]:t}function fW(t,e){const n=t.viewQuery;t.viewQuery=n?(r,i)=>{e(r,i),n(r,i)}:e}function hW(t,e){const n=t.contentQueries;t.contentQueries=n?(r,i,o)=>{e(r,i,o),n(r,i,o)}:e}function pW(t,e){const n=t.hostBindings;t.hostBindings=n?(r,i)=>{e(r,i),n(r,i)}:e}function fg(t){return!!c1(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function c1(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function xo(t,e,n){return t[e]=n}function zd(t,e){return t[e]}function Sr(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function $a(t,e,n,r){const i=Sr(t,e,n);return Sr(t,e+1,r)||i}function hg(t,e,n,r,i){const o=$a(t,e,n,r);return Sr(t,e+2,i)||o}function Ni(t,e,n,r,i,o){const s=$a(t,e,n,r);return $a(t,e+2,i,o)||s}function vt(t,e,n,r){const i=pe();return Sr(i,Zl(),e)&&(Et(),Ao(pn(),i,t,e,n,r)),vt}function z(t,e,n,r,i,o,s,a){const l=pe(),c=Et(),u=t+ft,d=c.firstCreatePass?function $W(t,e,n,r,i,o,s,a,l){const c=e.consts,u=Cc(e,t,4,s||null,Vs(c,a));n1(e,n,u,Vs(c,l)),Ep(e,u);const d=u.tView=t1(2,u,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,n,r,i,o,s):c.data[u];Co(d,!1);const h=iM(c,l,d,t);Cp()&&Up(c,l,h,d),wr(h,l),lg(l,l[u]=x3(h,l,h,d)),vp(d)&&Jb(c,l,d),null!=s&&e1(l,d,a)}"^(\\d+)*(".concat("b","|").concat("h",")*(.*)");let iM=function oM(t,e,n,r){return Bs(!0),e[tt].createComment("")};function Gd(t){return Ql(function IH(){return Xe.lFrame.contextLView}(),ft+t)}function T(t,e,n){const r=pe();return Sr(r,Zl(),e)&&function _i(t,e,n,r,i,o,s,a){const l=ei(e,n);let u,c=e.inputs;!a&&null!=c&&(u=c[r])?(a1(t,n,u,r,i),Ma(e)&&function Oq(t,e){const n=pi(e,t);16&n[ot]||(n[ot]|=64)}(n,e.index)):3&e.type&&(r=function Mq(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),i=null!=s?s(i,e.value||"",r):i,o.setProperty(l,r,i))}(Et(),pn(),r,t,e,r[tt],n,!1),T}function g1(t,e,n,r,i){const s=i?"class":"style";a1(t,n,e.inputs[s],s,r)}function A(t,e,n,r){const i=pe(),o=Et(),s=ft+t,a=i[tt],l=o.firstCreatePass?function jW(t,e,n,r,i,o){const s=e.consts,l=Cc(e,t,2,r,Vs(s,i));return n1(e,n,l,Vs(s,o)),null!==l.attrs&&cg(l,l.attrs,!1),null!==l.mergedAttrs&&cg(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(s,o,i,e,n,r):o.data[s],c=sM(o,i,l,a,e,t);i[s]=c;const u=vp(l);return Co(l,!0),Ck(a,c,l),32!=(32&l.flags)&&Cp()&&Up(o,i,c,l),0===function vH(){return Xe.lFrame.elementDepthCount}()&&wr(c,i),function yH(){Xe.lFrame.elementDepthCount++}(),u&&(Jb(o,i,l),Zb(o,l,i)),null!==r&&e1(i,l),A}function M(){let t=ur();U0()?H0():(t=t.parent,Co(t,!1));const e=t;(function wH(t){return Xe.skipHydrationRootTNode===t})(e)&&function TH(){Xe.skipHydrationRootTNode=null}(),function bH(){Xe.lFrame.elementDepthCount--}();const n=Et();return n.firstCreatePass&&(Ep(n,t),O0(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function VH(t){return 0!=(8&t.flags)}(e)&&g1(n,e,pe(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function BH(t){return 0!=(16&t.flags)}(e)&&g1(n,e,pe(),e.stylesWithoutHost,!1),M}function ue(t,e,n,r){return A(t,e,n,r),M(),ue}let sM=(t,e,n,r,i,o)=>(Bs(!0),Bp(r,i,function SD(){return Xe.lFrame.currentNamespace}()));function Tr(t,e,n){const r=pe(),i=Et(),o=t+ft,s=i.firstCreatePass?function WW(t,e,n,r,i){const o=e.consts,s=Vs(o,r),a=Cc(e,t,8,"ng-container",s);return null!==s&&cg(a,s,!0),n1(e,n,a,Vs(o,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(o,i,r,e,n):i.data[o];Co(s,!0);const a=aM(i,r,s,t);return r[o]=a,Cp()&&Up(i,r,a,s),wr(a,r),vp(s)&&(Jb(i,r,s),Zb(i,s,r)),null!=n&&e1(r,s),Tr}function Ir(){let t=ur();const e=Et();return U0()?H0():(t=t.parent,Co(t,!1)),e.firstCreatePass&&(Ep(e,t),O0(t)&&e.queries.elementEnd(t)),Ir}function za(t,e,n){return Tr(t,e,n),Ir(),za}let aM=(t,e,n,r)=>(Bs(!0),gb(e[tt],""));function Me(){return pe()}function _g(t){return!!t&&"function"==typeof t.then}function lM(t){return!!t&&"function"==typeof t.subscribe}function fe(t,e,n,r){const i=pe(),o=Et(),s=ur();return function uM(t,e,n,r,i,o,s){const a=vp(r),c=t.firstCreatePass&&k3(t),u=e[Sn],d=D3(e);let h=!0;if(3&r.type||s){const _=ei(r,e),y=s?s(_):_,E=d.length,C=s?j=>s(Zt(j[r.index])):r.index;let k=null;if(!s&&a&&(k=function QW(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const s=i[o];if(s===n&&i[o+1]===r){const a=e[jl],l=i[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,e,i,r.index)),null!==k)(k.__ngLastListenerFn__||k).__ngNextListenerFn__=o,k.__ngLastListenerFn__=o,h=!1;else{o=fM(r,e,u,o,!1);const j=n.listen(y,i,o);d.push(o,j),c&&c.push(i,C,E,E+1)}}else o=fM(r,e,u,o,!1);const p=r.outputs;let m;if(h&&null!==p&&(m=p[i])){const _=m.length;if(_)for(let y=0;y<_;y+=2){const q=e[m[y]][m[y+1]].subscribe(o),K=d.length;d.push(o,q),c&&c.push(i,r.index,K,-(K+1))}}}(o,i,i[tt],s,t,e,r),fe}function dM(t,e,n,r){try{return wo(6,e,n),!1!==n(r)}catch(i){return O3(t,i),!1}finally{wo(7,e,n)}}function fM(t,e,n,r,i){return function o(s){if(s===Function)return r;Nd(t.componentOffset>-1?pi(t.index,e):e);let l=dM(e,n,r,s),c=o.__ngNextListenerFn__;for(;c;)l=dM(e,n,c,s)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&s.preventDefault(),l}}function x(t=1){return function kH(t){return(Xe.lFrame.contextLView=function MH(t,e){for(;t>0;)e=e[ql],t--;return e}(t,Xe.lFrame.contextLView))[Sn]}(t)}function XW(t,e){let n=null;const r=function LU(t){const e=t.attrs;if(null!=e){const n=e.indexOf(5);if(!(1&n))return e[n+1]}return null}(t);for(let i=0;i<e.length;i++){const o=e[i];if("*"!==o){if(null===r?kP(t,o,!0):BU(r,o))return i}else n=i}return n}function vg(t){const e=pe()[Tn][br];if(!e.projection){const r=e.projection=Cd(t?t.length:1,null),i=r.slice();let o=e.child;for(;null!==o;){const s=t?XW(o,t):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o),o=o.next}}}function zs(t,e=0,n){const r=pe(),i=Et(),o=Cc(i,ft+t,16,null,n||null);null===o.projection&&(o.projection=e),H0(),(!r[ns]||Xl())&&32!=(32&o.flags)&&function Yj(t,e,n){bk(e[tt],0,e,n,vb(t,n,e),pk(n.parent||e[br],n,e))}(i,r,o)}function yg(t,e){return t<<17|e<<2}function Us(t){return t>>17&32767}function _1(t){return 2|t}function Ua(t){return(131068&t)>>2}function v1(t,e){return-131069&t|e<<2}function y1(t){return 1|t}function CM(t,e,n,r,i){const o=t[n+1],s=null===e;let a=r?Us(o):Ua(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];rY(t[a],e)&&(l=!0,t[a+1]=r?y1(u):_1(u)),a=r?Us(u):Ua(u)}l&&(t[n+1]=r?_1(o):y1(o))}function rY(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&sc(t,e)>=0}const qn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function EM(t){return t.substring(qn.key,qn.keyEnd)}function iY(t){return t.substring(qn.value,qn.valueEnd)}function SM(t,e){const n=qn.textEnd;return n===e?-1:(e=qn.keyEnd=function aY(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,qn.key=e,n),Mc(t,e,n))}function TM(t,e){const n=qn.textEnd;let r=qn.key=Mc(t,e,n);return n===r?-1:(r=qn.keyEnd=function lY(t,e,n){let r;for(;e<n&&(45===(r=t.charCodeAt(e))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)e++;return e}(t,r,n),r=AM(t,r,n),r=qn.value=Mc(t,r,n),r=qn.valueEnd=function cY(t,e,n){let r=-1,i=-1,o=-1,s=e,a=s;for(;s<n;){const l=t.charCodeAt(s++);if(59===l)return a;34===l||39===l?a=s=xM(t,l,s,n):e===s-4&&85===o&&82===i&&76===r&&40===l?a=s=xM(t,41,s,n):l>32&&(a=s),o=i,i=r,r=-33&l}return a}(t,r,n),AM(t,r,n))}function IM(t){qn.key=0,qn.keyEnd=0,qn.value=0,qn.valueEnd=0,qn.textEnd=t.length}function Mc(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function AM(t,e,n,r){return(e=Mc(t,e,n))<n&&e++,e}function xM(t,e,n,r){let i=-1,o=n;for(;o<r;){const s=t.charCodeAt(o++);if(s==e&&92!==i)return o;i=92==s&&92===i?0:s}throw new Error}function Xn(t,e,n){return no(t,e,n,!1),Xn}function qd(t,e){return no(t,e,null,!0),qd}function Zn(t){ro(kM,uY,t,!1)}function uY(t,e){for(let n=function sY(t){return IM(t),TM(t,Mc(t,0,qn.textEnd))}(e);n>=0;n=TM(e,n))kM(t,EM(e),iY(e))}function Li(t){ro(mY,Po,t,!0)}function Po(t,e){for(let n=function oY(t){return IM(t),SM(t,Mc(t,0,qn.textEnd))}(e);n>=0;n=SM(e,n))gi(t,EM(e),!0)}function no(t,e,n,r){const i=pe(),o=Et(),s=is(2);o.firstUpdatePass&&DM(o,t,s,r),e!==nt&&Sr(i,s,e)&&MM(o,o.data[$r()],i,i[tt],t,i[s+1]=function vY(t,e){return null==t||""===t||("string"==typeof e?t+=e:"object"==typeof t&&(t=Hn(mi(t)))),t}(e,n),r,s)}function ro(t,e,n,r){const i=Et(),o=is(2);i.firstUpdatePass&&DM(i,null,o,r);const s=pe();if(n!==nt&&Sr(s,o,n)){const a=i.data[$r()];if(RM(a,r)&&!PM(i,o)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(n=_0(l,n||"")),g1(i,a,s,n,r)}else!function _Y(t,e,n,r,i,o,s,a){i===nt&&(i=Pt);let l=0,c=0,u=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const h=l<i.length?i[l+1]:void 0,p=c<o.length?o[c+1]:void 0;let _,m=null;u===d?(l+=2,c+=2,h!==p&&(m=d,_=p)):null===d||null!==u&&u<d?(l+=2,m=u):(c+=2,m=d,_=p),null!==m&&MM(t,e,n,r,m,_,s,a),u=l<i.length?i[l]:null,d=c<o.length?o[c]:null}}(i,a,s,s[tt],s[o+1],s[o+1]=function gY(t,e,n){if(null==n||""===n)return Pt;const r=[],i=mi(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)t(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&t(r,o,i[o]);else"string"==typeof i&&e(r,i);return r}(t,e,n),r,o)}}function PM(t,e){return e>=t.expandoStartIndex}function DM(t,e,n,r){const i=t.data;if(null===i[n+1]){const o=i[$r()],s=PM(t,n);RM(o,r)&&null===e&&!s&&(e=!1),e=function dY(t,e,n,r){const i=function G0(t){const e=Xe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=Wd(n=b1(null,t,e,n,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==i)if(n=b1(i,t,e,n,r),null===o){let l=function fY(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Ua(r))return t[Us(r)]}(t,e,r);void 0!==l&&Array.isArray(l)&&(l=b1(null,t,e,l[1],r),l=Wd(l,e.attrs,r),function hY(t,e,n,r){t[Us(n?e.classBindings:e.styleBindings)]=r}(t,e,r,l))}else o=function pY(t,e,n){let r;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++)r=Wd(r,t[o].hostAttrs,n);return Wd(r,e.attrs,n)}(t,e,r)}return void 0!==o&&(r?e.residualClasses=o:e.residualStyles=o),n}(i,o,e,r),function tY(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=Us(s),l=Ua(s);t[r]=n;let u,c=!1;if(Array.isArray(n)?(u=n[1],(null===u||sc(n,u)>0)&&(c=!0)):u=n,i)if(0!==l){const h=Us(t[a+1]);t[r+1]=yg(h,a),0!==h&&(t[h+1]=v1(t[h+1],r)),t[a+1]=function JW(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=yg(a,0),0!==a&&(t[a+1]=v1(t[a+1],r)),a=r;else t[r+1]=yg(l,0),0===a?a=r:t[l+1]=v1(t[l+1],r),l=r;c&&(t[r+1]=_1(t[r+1])),CM(t,u,r,!0),CM(t,u,r,!1),function nY(t,e,n,r,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&sc(o,e)>=0&&(n[r+1]=y1(n[r+1]))}(e,u,t,r,o),s=yg(a,l),o?e.classBindings=s:e.styleBindings=s}(i,o,e,n,s,r)}}function b1(t,e,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=e[a],r=Wd(r,o.hostAttrs,i),o!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Wd(t,e,n){const r=n?1:2;let i=-1;if(null!==e)for(let o=0;o<e.length;o++){const s=e[o];"number"==typeof s?i=s:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),gi(t,s,!!n||e[++o]))}return void 0===t?null:t}function kM(t,e,n){gi(t,e,mi(n))}function mY(t,e,n){const r=String(e);""!==r&&!r.includes(" ")&&gi(t,r,n)}function MM(t,e,n,r,i,o,s,a){if(!(3&e.type))return;const l=t.data,c=l[a+1],u=function eY(t){return 1==(1&t)}(c)?OM(l,e,n,i,Ua(c),s):void 0;bg(u)||(bg(o)||function ZW(t){return 2==(2&t)}(c)&&(o=OM(l,null,n,i,a,s)),function Qj(t,e,n,r,i){if(e)i?t.addClass(n,r):t.removeClass(n,r);else{let o=-1===r.indexOf("-")?void 0:$s.DashCase;null==i?t.removeStyle(n,r,o):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=$s.Important),t.setStyle(n,r,i,o))}}(r,s,wp($r(),n),i,o))}function OM(t,e,n,r,i,o){const s=null===e;let a;for(;i>0;){const l=t[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=n[i+1];h===nt&&(h=d?Pt:void 0);let p=d?ib(h,r):u===r?h:void 0;if(c&&!bg(p)&&(p=ib(l,r)),bg(p)&&(a=p,s))return a;const m=t[i+1];i=s?Us(m):Ua(m)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(a=ib(l,r))}return a}function bg(t){return void 0!==t}function RM(t,e){return 0!=(t.flags&(e?8:16))}function ce(t,e=""){const n=pe(),r=Et(),i=t+ft,o=r.firstCreatePass?Cc(r,i,1,e,null):r.data[i],s=NM(r,n,o,e,t);n[i]=s,Cp()&&Up(r,n,s,o),Co(o,!1)}let NM=(t,e,n,r,i)=>(Bs(!0),function Vp(t,e){return t.createText(e)}(e[tt],r));function je(t){return Ge("",t,""),je}function Ge(t,e,n){const r=pe(),i=function Sc(t,e,n,r){return Sr(t,Zl(),n)?e+et(n)+r:nt}(r,t,e,n);return i!==nt&&cs(r,$r(),i),Ge}function ni(t,e,n,r,i){const o=pe(),s=function Tc(t,e,n,r,i,o){const a=$a(t,rs(),n,i);return is(2),a?e+et(n)+r+et(i)+o:nt}(o,t,e,n,r,i);return s!==nt&&cs(o,$r(),s),ni}function Oc(t,e,n,r,i,o,s){const a=pe(),l=function Ic(t,e,n,r,i,o,s,a){const c=hg(t,rs(),n,i,s);return is(3),c?e+et(n)+r+et(i)+o+et(s)+a:nt}(a,t,e,n,r,i,o,s);return l!==nt&&cs(a,$r(),l),Oc}function Yd(t,e,n,r,i,o,s,a,l,c,u){const d=pe(),h=function xc(t,e,n,r,i,o,s,a,l,c,u,d){const h=rs();let p=Ni(t,h,n,i,s,l);return p=Sr(t,h+4,u)||p,is(5),p?e+et(n)+r+et(i)+o+et(s)+a+et(l)+c+et(u)+d:nt}(d,t,e,n,r,i,o,s,a,l,c,u);return h!==nt&&cs(d,$r(),h),Yd}const Ha=void 0;var $Y=["en",[["a","p"],["AM","PM"],Ha],[["AM","PM"],Ha,Ha],[["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"]],Ha,[["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"]],Ha,[["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}",Ha,"{1} 'at' {0}",Ha],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function BY(t){const n=Math.floor(Math.abs(t)),r=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Rc={};function Ur(t){const e=function zY(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=JM(e);if(n)return n;const r=e.split("-")[0];if(n=JM(r),n)return n;if("en"===r)return $Y;throw new he(701,!1)}function JM(t){return t in Rc||(Rc[t]=Xt.ng&&Xt.ng.common&&Xt.ng.common.locales&&Xt.ng.common.locales[t]),Rc[t]}var en=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(en||{});const Nc="en-US";let eO=Nc;function E1(t,e,n,r,i){if(t=Ze(t),Array.isArray(t))for(let o=0;o<t.length;o++)E1(t[o],e,n,r,i);else{const o=Et(),s=pe(),a=ur();let l=Va(t)?t:Ze(t.provide);const c=$k(t),u=1048575&a.providerIndexes,d=a.directiveStart,h=a.providerIndexes>>20;if(Va(t)||!t.multi){const p=new _d(c,i,te),m=T1(l,e,i?u:u+h,d);-1===m?(eb(Ap(a,s),o,l),S1(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{const p=T1(l,e,u+h,d),m=T1(l,e,u,u+h),y=m>=0&&n[m];if(i&&!y||!i&&!(p>=0&&n[p])){eb(Ap(a,s),o,l);const E=function BK(t,e,n,r,i){const o=new _d(t,n,te);return o.multi=[],o.index=e,o.componentProviders=0,TO(o,i,r&&!n),o}(i?VK:FK,n.length,i,r,c);!i&&y&&(n[m].providerFactory=E),S1(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(E),s.push(E)}else S1(o,t,p>-1?p:m,TO(n[i?m:p],c,!i&&r));!i&&r&&y&&n[m].componentProviders++}}}function S1(t,e,n,r){const i=Va(e),o=function DG(t){return!!t.useClass}(e);if(i||o){const l=(o?Ze(e.useClass):e).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const u=c.indexOf(n);-1===u?c.push(n,[r,l]):c[u+1].push(r,l)}else c.push(n,l)}}}function TO(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function T1(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function FK(t,e,n,r){return I1(this.multi,[])}function VK(t,e,n,r){const i=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=Na(n,n[Ne],this.providerFactory.index,r);o=a.slice(0,s),I1(i,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],I1(i,o);return o}function I1(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function rn(t,e=[]){return n=>{n.providersResolver=(r,i)=>function LK(t,e,n){const r=Et();if(r.firstCreatePass){const i=eo(t);E1(n,r.data,r.blueprint,i,!0),E1(e,r.data,r.blueprint,i,!1)}}(r,i?i(t):t,e)}}class ja{}class $K{}class A1 extends ja{constructor(e,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new $3(this);const i=function hi(t,e){const n=t[EP]||null;if(!n&&!0===e)throw new Error("Type ".concat(Hn(t)," does not have '\u0275mod' property."));return n}(e);this._bootstrapComponents=function ls(t){return t instanceof Function?t():t}(i.bootstrap),this._r3Injector=e3(e,n,[{provide:ja,useValue:this},{provide:_c,useValue:this.componentFactoryResolver},...r],Hn(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(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class x1 extends $K{constructor(e){super(),this.moduleType=e}create(e){return new A1(this.moduleType,e,[])}}class IO extends ja{constructor(e){super(),this.componentFactoryResolver=new $3(this),this.instance=null;const n=new fc([...e.providers,{provide:ja,useValue:this},{provide:_c,useValue:this.componentFactoryResolver}],e.parent||Xp(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}let jK=(()=>{var t;class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const i=Lk(0,r.type),o=i.length>0?function HK(t,e,n=null){return new IO({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}([i],this._injector,"Standalone[".concat(r.type.name,"]")):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return(t=e).\u0275prov=We({token:t,providedIn:"environment",factory:()=>new t(Te(To))}),e})();function us(t){t.getStandaloneInjector=e=>e.get(jK).getOrCreateStandaloneInjector(t)}function Fi(t,e,n){const r=Br()+t,i=pe();return i[r]===nt?xo(i,r,n?e.call(n):e()):zd(i,r)}function $e(t,e,n,r){return RO(pe(),Br(),t,e,n,r)}function ds(t,e,n,r,i){return NO(pe(),Br(),t,e,n,r,i)}function D1(t,e,n,r,i,o){return LO(pe(),Br(),t,e,n,r,i,o)}function Ga(t,e,n,r,i,o,s){return FO(pe(),Br(),t,e,n,r,i,o,s)}function ef(t,e){const n=t[e];return n===nt?void 0:n}function RO(t,e,n,r,i,o){const s=e+n;return Sr(t,s,i)?xo(t,s+1,o?r.call(o,i):r(i)):ef(t,s+1)}function NO(t,e,n,r,i,o,s){const a=e+n;return $a(t,a,i,o)?xo(t,a+2,s?r.call(s,i,o):r(i,o)):ef(t,a+2)}function LO(t,e,n,r,i,o,s,a){const l=e+n;return hg(t,l,i,o,s)?xo(t,l+3,a?r.call(a,i,o,s):r(i,o,s)):ef(t,l+3)}function FO(t,e,n,r,i,o,s,a,l){const c=e+n;return Ni(t,c,i,o,s,a)?xo(t,c+4,l?r.call(l,i,o,s,a):r(i,o,s,a)):ef(t,c+4)}function ye(t,e){const n=Et();let r;const i=t+ft;var o;n.firstCreatePass?(r=function rQ(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}}(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(null!==(o=n.destroyHooks)&&void 0!==o?o:n.destroyHooks=[]).push(i,r.onDestroy)):r=n.data[i];const s=r.factory||(r.factory=Oa(r.type)),l=Zr(te);try{const c=Ip(!1),u=s();return Ip(c),function HW(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,pe(),i,u),u}finally{Zr(l)}}function Ce(t,e,n){const r=t+ft,i=pe(),o=Ql(i,r);return nf(i,r)?RO(i,Br(),e,o.transform,n,o):o.transform(n)}function k1(t,e,n,r){const i=t+ft,o=pe(),s=Ql(o,i);return nf(o,i)?NO(o,Br(),e,s.transform,n,r,s):s.transform(n,r)}function M1(t,e,n,r,i){const o=t+ft,s=pe(),a=Ql(s,o);return nf(s,o)?LO(s,Br(),e,a.transform,n,r,i,a):a.transform(n,r,i)}function tf(t,e,n,r,i,o){const s=t+ft,a=pe(),l=Ql(a,s);return nf(a,s)?FO(a,Br(),e,l.transform,n,r,i,o,l):l.transform(n,r,i,o)}function nf(t,e){return t[Ne].data[e].pure}function oQ(){return this._results[Symbol.iterator]()}class O1{get changes(){return this._changes||(this._changes=new de)}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 n=O1.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=oQ)}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,n){return this._results.reduce(e,n)}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,n){const r=this;r.dirty=!1;const i=function Oi(t){return t.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function JH(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=e[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(r._results,i,n))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function aQ(t,e,n,r=!0){const i=e[Ne];if(function Uj(t,e,n,r){const i=lr+r,o=n.length;r>0&&(n[i-1][Ji]=e),r<o-lr?(e[Ji]=n[i],BD(n,lr+r,e)):(n.push(e),e[Ji]=null),e[un]=n;const s=e[ud];null!==s&&n!==s&&function Hj(t,e){const n=t[Yl];e[Tn]!==e[un][un][Tn]&&(t[VP]=!0),null===n?t[Yl]=[e]:n.push(e)}(s,e);const a=e[vo];null!==a&&a.insertView(t),e[ot]|=128}(i,e,t,n),r){const o=bb(n,t),s=e[tt],a=zp(s,t[yo]);null!==a&&function Bj(t,e,n,r,i,o){r[vn]=i,r[br]=e,Ad(t,r,n,1,i,o)}(i,t[br],s,e,a,o)}}let io=(()=>{class e{}return e.__NG_ELEMENT_ID__=uQ,e})();const lQ=io,cQ=class extends lQ{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){var e;return(null===(e=this._declarationTContainer.tView)||void 0===e?void 0:e.ssrId)||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){const i=function sQ(t,e,n,r){var i,o;const s=e.tView,c=ag(t,s,n,4096&t[ot]?4096:16,null,e,null,null,null,null!==(i=null==r?void 0:r.injector)&&void 0!==i?i:null,null!==(o=null==r?void 0:r.hydrationInfo)&&void 0!==o?o:null);c[ud]=t[e.index];const d=t[vo];return null!==d&&(c[vo]=d.createEmbeddedView(s)),l1(s,c,n),c}(this._declarationLView,this._declarationTContainer,e,{injector:n,hydrationInfo:r});return new Bd(i)}};function uQ(){return Tg(ur(),pe())}function Tg(t,e){return 4&t.type?new cQ(e,t,vc(t,e)):null}let Do=(()=>{class e{}return e.__NG_ELEMENT_ID__=mQ,e})();function mQ(){return GO(ur(),pe())}const _Q=Do,HO=class extends _Q{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return vc(this._hostTNode,this._hostLView)}get injector(){return new zr(this._hostTNode,this._hostLView)}get parentInjector(){const e=xp(this._hostTNode,this._hostLView);if(X0(e)){const n=yd(e,this._hostLView),r=vd(e);return new zr(n[Ne].data[r+8],n)}return new zr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=jO(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-lr}createEmbeddedView(e,n,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const a=e.createEmbeddedViewImpl(n||{},o,null);return this.insertImpl(a,i,false),a}createComponent(e,n,r,i,o){var s,l;const c=e&&!function wd(t){return"function"==typeof t}(e);let u;if(c)u=n;else{const C=n||{};u=C.index,r=C.injector,i=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef}const d=c?e:new $d(Ct(e)),h=r||this.parentInjector;if(!o&&null==d.ngModule){const k=(c?h:this.parentInjector).get(To,null);k&&(o=k)}const p=Ct(null!==(s=d.componentType)&&void 0!==s?s:{}),m=(null==p?void 0:p.id,null),_=null!==(l=null==m?void 0:m.firstChild)&&void 0!==l?l:null,y=d.create(h,i,_,o),E=!!m&&!Lp(this._hostTNode);return this.insertImpl(y.hostView,u,E),y}insert(e,n){return this.insertImpl(e,n,!1)}insertImpl(e,n,r){const i=e._lView;if(function gH(t){return Vr(t[un])}(i)){const l=this.indexOf(e);if(-1!==l)this.detach(l);else{const c=i[un],u=new HO(c,c[br],c[un]);u.detach(u.indexOf(e))}}const s=this._adjustIndex(n),a=this._lContainer;return aQ(a,i,s,!r),e.attachToViewContainerRef(),BD(R1(a),s,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=jO(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),r=$p(this._lContainer,n);r&&(Dp(R1(this._lContainer),n),mb(r[Ne],r))}detach(e){const n=this._adjustIndex(e,-1),r=$p(this._lContainer,n);return r&&null!=Dp(R1(this._lContainer),n)?new Bd(r):null}_adjustIndex(e,n=0){return null==e?this.length+n:e}};function jO(t){return t[8]}function R1(t){return t[8]||(t[8]=[])}function GO(t,e){let n;const r=e[t.index];return Vr(r)?n=r:(n=x3(r,e,null,t),e[t.index]=n,lg(e,n)),qO(n,e,t,r),new HO(n,t,e)}let qO=function WO(t,e,n,r){if(t[yo])return;let i;i=8&n.type?Zt(r):function vQ(t,e){const n=t[tt],r=n.createComment(""),i=ei(e,t);return La(n,zp(n,i),r,function Wj(t,e){return t.nextSibling(e)}(n,i),!1),r}(e,n),t[yo]=i};class N1{constructor(e){this.queryList=e,this.matches=null}clone(){return new N1(this.queryList)}setDirty(){this.queryList.setDirty()}}class L1{constructor(e=[]){this.queries=e}createEmbeddedView(e){const n=e.queries;if(null!==n){const r=null!==e.contentQueries?e.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){const s=n.getByIndex(o);i.push(this.queries[s.indexInDeclarationView].clone())}return new L1(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)null!==ZO(e,n).matches&&this.queries[n].setDirty()}}class YO{constructor(e,n,r=null){this.predicate=e,this.flags=n,this.read=r}}class F1{constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){const i=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(e,i);o&&(o.indexInDeclarationView=r,null!==n?n.push(o):n=[o])}return null!==n?new F1(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class V1{constructor(e,n=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new V1(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=e.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(e,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];this.matchTNodeWithReadOption(e,n,wQ(n,o)),this.matchTNodeWithReadOption(e,n,Pp(n,e,o,!1,!1))}else r===io?4&n.type&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,Pp(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===Cr||i===Do||i===io&&4&n.type)this.addMatch(n.index,-2);else{const o=Pp(n,e,i,!1,!1);null!==o&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(e,n){null===this.matches?this.matches=[e,n]:this.matches.push(e,n)}}function wQ(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function EQ(t,e,n,r){return-1===n?function CQ(t,e){return 11&t.type?vc(t,e):4&t.type?Tg(t,e):null}(e,t):-2===n?function SQ(t,e,n){return n===Cr?vc(e,t):n===io?Tg(e,t):n===Do?GO(e,t):void 0}(t,e,r):Na(t,t[Ne],n,e)}function KO(t,e,n,r){const i=e[vo].queries[r];if(null===i.matches){const o=t.data,s=n.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:EQ(e,o[c],s[l+1],n.metadata.read))}i.matches=a}return i.matches}function B1(t,e,n,r){const i=t.queries.getByIndex(n),o=i.matches;if(null!==o){const s=KO(t,e,i,n);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)r.push(s[a/2]);else{const c=o[a+1],u=e[-l];for(let d=lr;d<u.length;d++){const h=u[d];h[ud]===h[un]&&B1(h[Ne],h,c,r)}if(null!==u[Yl]){const d=u[Yl];for(let h=0;h<d.length;h++){const p=d[h];B1(p[Ne],p,c,r)}}}}}return r}function Vi(t){const e=pe(),n=Et(),r=vD();q0(r+1);const i=ZO(n,r);if(t.dirty&&function hH(t){return 4==(4&t[ot])}(e)===(2==(2&i.metadata.flags))){if(null===i.matches)t.reset([]);else{const o=i.crossesNgTemplate?B1(n,e,r,[]):KO(n,e,i,r);t.reset(o,XG),t.notifyOnChanges()}return!0}return!1}function ko(t,e,n){const r=Et();r.firstCreatePass&&(XO(r,new YO(t,e,n),-1),2==(2&e)&&(r.staticViewQueries=!0)),QO(r,pe(),e)}function $1(t,e,n,r){const i=Et();if(i.firstCreatePass){const o=ur();XO(i,new YO(e,n,r),o.index),function IQ(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(i,t),2==(2&n)&&(i.staticContentQueries=!0)}QO(i,pe(),n)}function Bi(){return function TQ(t,e){return t[vo].queries[e].queryList}(pe(),vD())}function QO(t,e,n){const r=new O1(4==(4&n));(function Pq(t,e,n,r){const i=D3(e);i.push(n),t.firstCreatePass&&k3(t).push(r,i.length-1)})(t,e,r,r.destroy),null===e[vo]&&(e[vo]=new L1),e[vo].queries.push(new N1(r))}function XO(t,e,n){null===t.queries&&(t.queries=new F1),t.queries.track(new V1(e,n))}function ZO(t,e){return t.queries.getByIndex(e)}function JO(t,e){return Tg(t,e)}const WQ=new Ve("Application Initializer");let G1=(()=>{var t;class e{constructor(){var r;this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o}),this.appInits=null!==(r=It(WQ,{optional:!0}))&&void 0!==r?r:[]}runInitializers(){if(this.initialized)return;const r=[];for(const o of this.appInits){const s=o();if(_g(s))r.push(s);else if(lM(s)){const a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});r.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),0===r.length&&i(),this.initialized=!0}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const fs=new Ve("LocaleId",{providedIn:"root",factory:()=>It(fs,_t.Optional|_t.SkipSelf)||function KQ(){return typeof $localize<"u"&&$localize.locale||Nc}()}),QQ=new Ve("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let q1=(()=>{var t;class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ct(!1)}add(){this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const bR=new Ve(""),Pg=new Ve("");let X1,K1=(()=>{var t;class e{constructor(r,i,o){this._ngZone=r,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,X1||(function bX(t){X1=t}(o),o.addToWindow(i)),this._watchAngularEvents(),r.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:()=>{Dt.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(r)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),r(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:r,timeoutId:s,updateCb:o})}whenStable(r,i,o){if(o&&!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(r,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,i,o){return[]}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(Dt),Te(Q1),Te(Pg))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})(),Q1=(()=>{var t;class e{constructor(){this._applications=new Map}registerApplication(r,i){this._applications.set(r,i)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,i=!0){var o,s;return null!==(o=null===(s=X1)||void 0===s?void 0:s.findTestabilityInTree(this,r,i))&&void 0!==o?o:null}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"platform"}),e})(),Hs=null;const wR=new Ve("AllowMultipleToken"),Z1=new Ve("PlatformDestroyListeners"),CR=new Ve("appBootstrapListener");function TR(t,e,n=[]){const r="Platform: ".concat(e),i=new Ve(r);return(o=[])=>{let s=J1();if(!s||s.injector.get(wR,!1)){const a=[...n,...o,{provide:i,useValue:!0}];t?t(a):function EX(t){if(Hs&&!Hs.get(wR,!1))throw new he(400,!1);(function ER(){!function tH(t){QP=t}(()=>{throw new he(600,!1)})})(),Hs=t;const e=t.get(AR);(function SR(t){const e=t.get(zk,null);null==e||e.forEach(n=>n())})(t)}(function IR(t=[],e){return Er.create({name:e,providers:[{provide:Mb,useValue:"platform"},{provide:Z1,useValue:new Set([()=>Hs=null])},...t]})}(a,r))}return function TX(t){const e=J1();if(!e)throw new he(401,!1);return e}()}}function J1(){var t,e;return null!==(t=null===(e=Hs)||void 0===e?void 0:e.get(AR))&&void 0!==t?t:null}let AR=(()=>{var t;class e{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,i){const o=function IX(t="zone.js",e){return"noop"===t?new dq:"zone.js"===t?new Dt(e):t}(null==i?void 0:i.ngZone,function xR(t){var e,n;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(e=null==t?void 0:t.eventCoalescing)&&void 0!==e&&e,shouldCoalesceRunChangeDetection:null!==(n=null==t?void 0:t.runCoalescing)&&void 0!==n&&n}}({eventCoalescing:null==i?void 0:i.ngZoneEventCoalescing,runCoalescing:null==i?void 0:i.ngZoneRunCoalescing}));return o.run(()=>{const s=function UK(t,e,n){return new A1(t,e,n)}(r.moduleType,this.injector,function OR(t){return[{provide:Dt,useFactory:t},{provide:Yp,multi:!0,useFactory:()=>{const e=It(xX,{optional:!0});return()=>e.initialize()}},{provide:MR,useFactory:AX},{provide:o3,useFactory:s3}]}(()=>o)),a=s.injector.get(as,null);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{Dg(this._modules,s),l.unsubscribe()})}),function PR(t,e,n){try{const r=n();return _g(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(a,o,()=>{const l=s.injector.get(G1);return l.runInitializers(),l.donePromise.then(()=>(function tO(t){Di(t,"Expected localeId to be defined"),"string"==typeof t&&(eO=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(fs,Nc)||Nc),this._moduleDoBootstrap(s),s))})})}bootstrapModule(r,i=[]){const o=DR({},i);return function wX(t,e,n){const r=new x1(n);return Promise.resolve(r)}(0,0,r).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(r){const i=r.injector.get(qa);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!r.instance.ngDoBootstrap)throw new he(-403,!1);r.instance.ngDoBootstrap(i)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new he(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const r=this._injector.get(Z1,null);r&&(r.forEach(i=>i()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(Er))},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"platform"}),e})();function DR(t,e){return Array.isArray(e)?e.reduce(DR,t):ge(ge({},t),e)}let qa=(()=>{var t;class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=It(MR),this.zoneIsStable=It(o3),this.componentTypes=[],this.components=[],this.isStable=It(q1).hasPendingTasks.pipe(nd(r=>r?yr(!1):this.zoneIsStable),function hU(t,e=ut){return t=null!=t?t:pU,Lr((n,r)=>{let i,o=!0;n.subscribe(vr(r,s=>{const a=e(s);(o||!t(i,a))&&(o=!1,i=a,r.next(s))}))})}(),g0()),this._injector=It(To)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){const o=r instanceof Wk;if(!this._injector.get(G1).done)throw!o&&function ad(t){const e=Ct(t)||ar(t)||Fr(t);return null!==e&&e.standalone}(r),new he(405,!1);let a;a=o?r:this._injector.get(_c).resolveComponentFactory(r),this.componentTypes.push(a.componentType);const l=function CX(t){return t.isBoundToModule}(a)?void 0:this._injector.get(ja),u=a.create(Er.NULL,[],i||a.selector,l),d=u.location.nativeElement,h=u.injector.get(bR,null);return null==h||h.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Dg(this.components,u),null==h||h.unregisterApplication(d)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new he(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){const i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){const i=r;Dg(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const i=this._injector.get(CR,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Dg(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new he(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function Dg(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const MR=new Ve("",{providedIn:"root",factory:()=>It(as).handleError.bind(void 0)});function AX(){const t=It(Dt),e=It(as);return n=>t.runOutsideAngular(()=>e.handleError(n))}let xX=(()=>{var t;class e{constructor(){this.zone=It(Dt),this.applicationRef=It(qa)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var r;null===(r=this._onMicrotaskEmptySubscription)||void 0===r||r.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();let Vc=(()=>{class e{}return e.__NG_ELEMENT_ID__=DX,e})();function DX(t){return function kX(t,e,n){if(Ma(t)&&!n){const r=pi(t.index,e);return new Bd(r,r)}return 47&t.type?new Bd(e[Tn],e):null}(ur(),pe(),16==(16&t))}class FR{constructor(){}supports(e){return fg(e)}create(e){return new FX(e)}}const LX=(t,e)=>e;class FX{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||LX}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const s=!r||n&&n.currentIndex<BR(r,i,o)?n:r,a=BR(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)i++;else{o||(o=[]);const c=a-i,u=l-i;if(c!=u){for(let h=0;h<c;h++){const p=h<o.length?o[h]:o[h]=0,m=p+h;u<=m&&m<c&&(o[h]=p+1)}o[s.previousIndex]=u-c}}a!==l&&e(s,a,l)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)e(n)}diff(e){if(null==e&&(e=[]),!fg(e))throw new he(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i,o,s,n=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)o=e[a],s=this._trackByFn(a,o),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,o,s,a)),Object.is(n.item,o)||this._addIdentityChange(n,o)):(n=this._mismatch(n,o,s,a),r=!0),n=n._next}else i=0,function CW(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Symbol.iterator]();let r;for(;!(r=n.next()).done;)e(r.value)}}(e,a=>{s=this._trackByFn(i,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),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,n,r,i){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,o,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,o,i)):e=this._addAfter(new VX(n,r),o,i),e}_verifyReinsertion(e,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=n}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,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,o=e._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){const i=null===n?this._itHead:n._next;return e._next=i,e._prev=n,null===i?this._itTail=e:i._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new VR),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,r=e._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new VR),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,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class VX{constructor(e,n){this.item=e,this.trackById=n,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 BX{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,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const n=e._prevDup,r=e._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class VR{constructor(){this.map=new Map}put(e){const n=e.trackById;let r=this.map.get(n);r||(r=new BX,this.map.set(n,r)),r.add(e)}get(e,n){const i=this.map.get(e);return i?i.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function BR(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+e+i}class $R{constructor(){}supports(e){return e instanceof Map||c1(e)}create(){return new $X}}class $X{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 n;for(n=this._mapHead;null!==n;n=n._next)e(n)}forEachPreviousItem(e){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)e(n)}forEachChangedItem(e){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}diff(e){if(e){if(!(e instanceof Map||c1(e)))throw new he(900,!1)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(r,i)=>{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){const r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const i=this._records.get(e);this._maybeAddToChanges(i,n);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new zX(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,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,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}}class zX{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 zR(){return new Og([new FR])}let Og=(()=>{var t;class e{constructor(r){this.factories=r}static create(r,i){if(null!=i){const o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||zR()),deps:[[e,new sb,new to]]}}find(r){const i=this.factories.find(o=>o.supports(r));if(null!=i)return i;throw new he(901,!1)}}return(t=e).\u0275prov=We({token:t,providedIn:"root",factory:zR}),e})();function UR(){return new af([new $R])}let af=(()=>{var t;class e{constructor(r){this.factories=r}static create(r,i){if(i){const o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||UR()),deps:[[e,new sb,new to]]}}find(r){const i=this.factories.find(o=>o.supports(r));if(i)return i;throw new he(901,!1)}}return(t=e).\u0275prov=We({token:t,providedIn:"root",factory:UR}),e})();const jX=TR(null,"core",[]);let GX=(()=>{var t;class e{constructor(r){}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(qa))},t.\u0275mod=jn({type:t}),t.\u0275inj=Rn({}),e})();function ow(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let sw=null;function lf(){return sw}class iZ{}const dr=new Ve("DocumentToken"),XR={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 Ng=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(Ng||{}),In=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(In||{});function $i(t,e){const n=Ur(t),r=n[en.NumberSymbols][e];if(typeof r>"u"){if(e===In.CurrencyDecimal)return n[en.NumberSymbols][In.Decimal];if(e===In.CurrencyGroup)return n[en.NumberSymbols][In.Group]}return r}const OZ=/^(\d+)?\.((\d+)(-(\d+))?)?$/,n4=22,jg=".",uf="0",RZ=";",NZ=",",dw="#";function FZ(t,e,n,r,i){const s=function hw(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(RZ),i=r[0],o=r[1],s=-1!==i.indexOf(jg)?i.split(jg):[i.substring(0,i.lastIndexOf(uf)+1),i.substring(i.lastIndexOf(uf)+1)],a=s[0],l=s[1]||"";n.posPre=a.substring(0,a.indexOf(dw));for(let u=0;u<l.length;u++){const d=l.charAt(u);d===uf?n.minFrac=n.maxFrac=u+1:d===dw?n.maxFrac=u+1:n.posSuf+=d}const c=a.split(NZ);if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){const u=i.length-n.posPre.length-n.posSuf.length,d=o.indexOf(dw);n.negPre=o.substring(0,d).replace(/'/g,""),n.negSuf=o.slice(d+u).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function aw(t,e){return Ur(t)[en.NumberFormats][e]}(e,Ng.Currency),$i(e,In.MinusSign));return s.minFrac=function yZ(t){let e;const n=XR[t];return n&&(e=n[2]),"number"==typeof e?e:2}(r),s.maxFrac=s.minFrac,function fw(t,e,n,r,i,o,s=!1){let a="",l=!1;if(isFinite(t)){let c=function zZ(t){let r,i,o,s,a,e=Math.abs(t)+"",n=0;for((i=e.indexOf(jg))>-1&&(e=e.replace(jg,"")),(o=e.search(/e/i))>0?(i<0&&(i=o),i+=+e.slice(o+1),e=e.substring(0,o)):i<0&&(i=e.length),o=0;e.charAt(o)===uf;o++);if(o===(a=e.length))r=[0],i=1;else{for(a--;e.charAt(a)===uf;)a--;for(i-=o,r=[],s=0;o<=a;o++,s++)r[s]=Number(e.charAt(o))}return i>n4&&(r=r.splice(0,n4-1),n=i-1,i=1),{digits:r,exponent:n,integerLen:i}}(t);s&&(c=function $Z(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let u=e.minInt,d=e.minFrac,h=e.maxFrac;if(o){const C=o.match(OZ);if(null===C)throw new Error("".concat(o," is not a valid digit info"));const k=C[1],j=C[3],q=C[5];null!=k&&(u=pw(k)),null!=j&&(d=pw(j)),null!=q?h=pw(q):null!=j&&d>h&&(h=d)}!function UZ(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction (".concat(e,") is higher than the maximum (").concat(n,")."));let r=t.digits,i=r.length-t.integerLen;const o=Math.min(Math.max(e,i),n);let s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0}else{i=Math.max(0,i),t.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let l=0!==o;const c=e+t.integerLen,u=r.reduceRight(function(d,h,p,m){return m[p]=(h+=d)<10?h:h-10,l&&(0===m[p]&&p>=c?m.pop():l=!1),h>=10?1:0},0);u&&(r.unshift(u),t.integerLen++)}(c,d,h);let p=c.digits,m=c.integerLen;const _=c.exponent;let y=[];for(l=p.every(C=>!C);m<u;m++)p.unshift(0);for(;m<0;m++)p.unshift(0);m>0?y=p.splice(m,p.length):(y=p,p=[0]);const E=[];for(p.length>=e.lgSize&&E.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)E.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&E.unshift(p.join("")),a=E.join($i(n,r)),y.length&&(a+=$i(n,i)+y.join("")),_&&(a+=$i(n,In.Exponential)+"+"+_)}else a=$i(n,In.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,s,e,In.CurrencyGroup,In.CurrencyDecimal,i).replace("\xa4",n).replace("\xa4","").trim()}function pw(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function o4(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}const mw=/\s+/,s4=[];let yi=(()=>{var t;class e{constructor(r,i,o,s){this._iterableDiffers=r,this._keyValueDiffers=i,this._ngEl=o,this._renderer=s,this.initialClasses=s4,this.stateMap=new Map}set klass(r){this.initialClasses=null!=r?r.trim().split(mw):s4}set ngClass(r){this.rawClass="string"==typeof r?r.trim().split(mw):r}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const r=this.rawClass;if(Array.isArray(r)||r instanceof Set)for(const i of r)this._updateState(i,!0);else if(null!=r)for(const i of Object.keys(r))this._updateState(i,!!r[i]);this._applyStateDiff()}_updateState(r,i){const o=this.stateMap.get(r);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(r,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const r of this.stateMap){const i=r[0],o=r[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(r,i){(r=r.trim()).length>0&&r.split(mw).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Og),te(af),te(Cr),te(ss))},t.\u0275dir=Ke({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class GZ{constructor(e,n,r,i){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let oi=(()=>{var t;class e{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,i,o){this._viewContainer=r,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const r=this._ngForOf;!this._differ&&r&&(this._differ=this._differs.find(r).create(this.ngForTrackBy))}if(this._differ){const r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){const i=this._viewContainer;r.forEachOperation((o,s,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new GZ(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===s?void 0:s);else if(null!==s){const l=i.get(s);i.move(l,a),l4(l,o)}});for(let o=0,s=i.length;o<s;o++){const l=i.get(o).context;l.index=o,l.count=s,l.ngForOf=this._ngForOf}r.forEachIdentityChange(o=>{l4(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(r,i){return!0}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Do),te(io),te(Og))},t.\u0275dir=Ke({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function l4(t,e){t.context.$implicit=e.item}let Wn=(()=>{var t;class e{constructor(r,i){this._viewContainer=r,this._context=new qZ,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){c4("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){c4("ngIfElse",r),this._elseTemplateRef=r,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(r,i){return!0}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Do),te(io))},t.\u0275dir=Ke({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class qZ{constructor(){this.$implicit=null,this.ngIf=null}}function c4(t,e){if(e&&!e.createEmbeddedView)throw new Error("".concat(t," must be a TemplateRef, but received '").concat(Hn(e),"'."))}class _w{constructor(e,n){this._viewContainerRef=e,this._templateRef=n,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 Ya=(()=>{var t;class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(r){this._ngSwitch=r,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(r){this._defaultViews.push(r)}_matchCase(r){const i=r==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(r){if(this._defaultViews.length>0&&r!==this._defaultUsed){this._defaultUsed=r;for(const i of this._defaultViews)i.enforceState(r)}}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275dir=Ke({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),e})(),df=(()=>{var t;class e{constructor(r,i,o){this.ngSwitch=o,o._addCase(),this._view=new _w(r,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Do),te(io),te(Ya,9))},t.\u0275dir=Ke({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),e})(),vw=(()=>{var t;class e{constructor(r,i,o){o._addDefault(new _w(r,i))}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Do),te(io),te(Ya,9))},t.\u0275dir=Ke({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),e})(),fr=(()=>{var t;class e{constructor(r,i,o){this._ngEl=r,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(r){this._ngStyle=r,!this._differ&&r&&(this._differ=this._differs.find(r).create())}ngDoCheck(){if(this._differ){const r=this._differ.diff(this._ngStyle);r&&this._applyChanges(r)}}_setStyle(r,i){const[o,s]=r.split("."),a=-1===o.indexOf("-")?void 0:$s.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,s?"".concat(i).concat(s):i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(r){r.forEachRemovedItem(i=>this._setStyle(i.key,null)),r.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),r.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Cr),te(af),te(ss))},t.\u0275dir=Ke({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),e})(),yw=(()=>{var t;class e{constructor(r){this._viewContainerRef=r,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(r){if(r.ngTemplateOutlet||r.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:s,ngTemplateOutletInjector:a}=this;this._viewRef=i.createEmbeddedView(o,s,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&r.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Do))},t.\u0275dir=Ke({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[bo]}),e})();function so(t,e){return new he(2100,!1)}class YZ{createSubscription(e,n){return JP(()=>e.subscribe({next:n,error:r=>{throw r}}))}dispose(e){JP(()=>e.unsubscribe())}}class KZ{createSubscription(e,n){return e.then(n,r=>{throw r})}dispose(e){}}const QZ=new KZ,XZ=new YZ;let js=(()=>{var t;class e{constructor(r){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=r}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(r){return this._obj?r!==this._obj?(this._dispose(),this.transform(r)):this._latestValue:(r&&this._subscribe(r),this._latestValue)}_subscribe(r){this._obj=r,this._strategy=this._selectStrategy(r),this._subscription=this._strategy.createSubscription(r,i=>this._updateLatestValue(r,i))}_selectStrategy(r){if(_g(r))return QZ;if(lM(r))return XZ;throw so()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(r,i){r===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Vc,16))},t.\u0275pipe=sr({name:"async",type:t,pure:!1,standalone:!0}),e})(),bw=(()=>{var t;class e{transform(r){if(null==r)return null;if("string"!=typeof r)throw so();return r.toUpperCase()}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275pipe=sr({name:"uppercase",type:t,pure:!0,standalone:!0}),e})(),ww=(()=>{var t;class e{constructor(r,i="USD"){this._locale=r,this._defaultCurrencyCode=i}transform(r,i=this._defaultCurrencyCode,o="symbol",s,a){if(!function Cw(t){return!(null==t||""===t||t!=t)}(r))return null;a=a||this._locale,"boolean"==typeof o&&(o=o?"symbol":"code");let l=i||this._defaultCurrencyCode;"code"!==o&&(l="symbol"===o||"symbol-narrow"===o?function _Z(t,e,n="en"){const r=function hZ(t){return Ur(t)[en.Currencies]}(n)[t]||XR[t]||[],i=r[1];return"narrow"===e&&"string"==typeof i?i:r[0]||t}(l,"symbol"===o?"wide":"narrow",a):o);try{return FZ(function Ew(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error("".concat(t," is not a number"));return t}(r),a,l,i,s)}catch(c){throw so()}}}return(t=e).\u0275fac=function(r){return new(r||t)(te(fs,16),te(QQ,16))},t.\u0275pipe=sr({name:"currency",type:t,pure:!0,standalone:!0}),e})();let Sw=(()=>{var t;class e{transform(r,i,o){if(null==r)return null;if(!this.supports(r))throw so();return r.slice(i,o)}supports(r){return"string"==typeof r||Array.isArray(r)}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275pipe=sr({name:"slice",type:t,pure:!1,standalone:!0}),e})(),$c=(()=>{var t;class e{}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275mod=jn({type:t}),t.\u0275inj=Rn({}),e})();const f4="browser";function h4(t){return t===f4}function p4(t){return"server"===t}class g4{}class BJ extends iZ{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Aw extends BJ{static makeCurrent(){!function rZ(t){sw||(sw=t)}(new Aw)}onAndCancel(e,n,r){return e.addEventListener(n,r),()=>{e.removeEventListener(n,r)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||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,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function $J(){return hf=hf||document.querySelector("base"),hf?hf.getAttribute("href"):null}();return null==n?null:function zJ(t){Wg=Wg||document.createElement("a"),Wg.setAttribute("href",t);const e=Wg.pathname;return"/"===e.charAt(0)?e:"/".concat(e)}(n)}resetBaseElement(){hf=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return o4(document.cookie,e)}}let Wg,hf=null,HJ=(()=>{var t;class e{build(){return new XMLHttpRequest}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();const xw=new Ve("EventManagerPlugins");let b4=(()=>{var t;class e{constructor(r,i){this._zone=i,this._eventNameToPlugin=new Map,r.forEach(o=>{o.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}getZone(){return this._zone}_findPluginFor(r){let i=this._eventNameToPlugin.get(r);if(i)return i;if(i=this._plugins.find(s=>s.supports(r)),!i)throw new he(5101,!1);return this._eventNameToPlugin.set(r,i),i}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(xw),Te(Dt))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();class w4{constructor(e){this._doc=e}}const Pw="ng-app-id";let C4=(()=>{var t;class e{constructor(r,i,o,s={}){this.doc=r,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=p4(s),this.resetHostNodes()}addStyles(r){for(const i of r)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(r){for(const i of r)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const r=this.styleNodesInDOM;r&&(r.forEach(i=>i.remove()),r.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(const i of this.getAllStyles())this.addStyleToHost(r,i)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(const i of this.hostNodes)this.addStyleToHost(i,r)}onStyleRemoved(r){var i;const o=this.styleRef;null===(i=o.get(r))||void 0===i||null===(i=i.elements)||void 0===i||i.forEach(s=>s.remove()),o.delete(r)}collectServerRenderedStyles(){var r;const i=null===(r=this.doc.head)||void 0===r?void 0:r.querySelectorAll("style[".concat(Pw,'="').concat(this.appId,'"]'));if(null!=i&&i.length){const o=new Map;return i.forEach(s=>{null!=s.textContent&&o.set(s.textContent,s)}),o}return null}changeUsageCount(r,i){const o=this.styleRef;if(o.has(r)){const s=o.get(r);return s.usage+=i,s.usage}return o.set(r,{usage:i,elements:[]}),i}getStyleElement(r,i){const o=this.styleNodesInDOM,s=null==o?void 0:o.get(i);if((null==s?void 0:s.parentNode)===r)return o.delete(i),s.removeAttribute(Pw),s;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Pw,this.appId),a}}addStyleToHost(r,i){var o;const s=this.getStyleElement(r,i);r.appendChild(s);const a=this.styleRef,l=null===(o=a.get(i))||void 0===o?void 0:o.elements;l?l.push(s):a.set(i,{elements:[s],usage:1})}resetHostNodes(){const r=this.hostNodes;r.clear(),r.add(this.doc.head)}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(dr),Te(Zp),Te(Hk,8),Te(Io))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();const Dw={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/"},kw=/%COMP%/g,jJ="_nghost-".concat("%COMP%"),GJ="_ngcontent-".concat("%COMP%"),WJ=new Ve("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function S4(t,e){return e.map(n=>n.replace(kw,t))}let Mw=(()=>{var t;class e{constructor(r,i,o,s,a,l,c,u=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=p4(l),this.defaultRenderer=new Ow(r,a,c,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ki.ShadowDom&&(i=ge(ge({},i),{},{encapsulation:ki.Emulated}));const o=this.getOrCreateRenderer(r,i);return o instanceof I4?o.applyToHost(r):o instanceof Rw&&o.applyStyles(),o}getOrCreateRenderer(r,i){const o=this.rendererByCompId;let s=o.get(i.id);if(!s){const a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case ki.Emulated:s=new I4(c,u,i,this.appId,d,a,l,h);break;case ki.ShadowDom:return new XJ(c,u,r,i,a,l,this.nonce,h);default:s=new Rw(c,u,i,d,a,l,h)}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(b4),Te(C4),Te(Zp),Te(WJ),Te(dr),Te(Io),Te(Dt),Te(Hk))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();class Ow{constructor(e,n,r,i){this.eventManager=e,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?this.doc.createElementNS(Dw[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(T4(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(T4(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?this.doc.querySelector(e):e;if(!r)throw new he(-5104,!1);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;const o=Dw[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const i=Dw[r];i?e.removeAttributeNS(i,n):e.removeAttribute("".concat(r,":").concat(n))}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&($s.DashCase|$s.Important)?e.style.setProperty(n,r,i&$s.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&$s.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){if("string"==typeof e&&!(e=lf().getGlobalEventTarget(this.doc,e)))throw new Error("Unsupported event target ".concat(e," for event ").concat(n));return this.eventManager.addEventListener(e,n,this.decoratePreventDefault(r))}decoratePreventDefault(e){return n=>{if("__ngUnwrap__"===n)return e;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>e(n)):e(n))&&n.preventDefault()}}}function T4(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class XJ extends Ow{constructor(e,n,r,i,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=S4(i.id,i.styles);for(const u of c){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Rw extends Ow{constructor(e,n,r,i,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=l?S4(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class I4 extends Rw{constructor(e,n,r,i,o,s,a,l){const c=i+"-"+r.id;super(e,n,r,o,s,a,l,c),this.contentAttr=function YJ(t){return GJ.replace(kw,t)}(c),this.hostAttr=function KJ(t){return jJ.replace(kw,t)}(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}let ZJ=(()=>{var t;class e extends w4{constructor(r){super(r)}supports(r){return!0}addEventListener(r,i,o){return r.addEventListener(i,o,!1),()=>this.removeEventListener(r,i,o)}removeEventListener(r,i,o){return r.removeEventListener(i,o)}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(dr))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();const A4=["alt","control","meta","shift"],JJ={"\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"},eee={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let tee=(()=>{var t;class e extends w4{constructor(r){super(r)}supports(r){return null!=e.parseEventName(r)}addEventListener(r,i,o){const s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>lf().onAndCancel(r,s.domEventName,a))}static parseEventName(r){const i=r.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const s=e._normalizeKey(i.pop());let a="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),a="code."),A4.forEach(u=>{const d=i.indexOf(u);d>-1&&(i.splice(d,1),a+=u+".")}),a+=s,0!=i.length||0===s.length)return null;const c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(r,i){let o=JJ[r.key]||r.key,s="";return i.indexOf("code.")>-1&&(o=r.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),A4.forEach(a=>{a!==o&&(0,eee[a])(r)&&(s+=a+".")}),s+=o,s===i)}static eventCallback(r,i,o){return s=>{e.matchEventFullKeyCode(s,r)&&o.runGuarded(()=>i(s))}}static _normalizeKey(r){return"esc"===r?"escape":r}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(dr))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();const P4=[{provide:Io,useValue:f4},{provide:zk,useValue:function nee(){Aw.makeCurrent()},multi:!0},{provide:dr,useFactory:function iee(){return function tG(t){Eb=t}(document),document},deps:[]}],oee=TR(jX,"browser",P4),see=new Ve(""),D4=[{provide:Pg,useClass:class UJ{addToWindow(e){Xt.getAngularTestability=(r,i=!0)=>{const o=e.findTestabilityInTree(r,i);if(null==o)throw new he(5103,!1);return o},Xt.getAllAngularTestabilities=()=>e.getAllTestabilities(),Xt.getAllAngularRootElements=()=>e.getAllRootElements(),Xt.frameworkStabilizers||(Xt.frameworkStabilizers=[]),Xt.frameworkStabilizers.push(r=>{const i=Xt.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const i=e.getTestability(n);return null!=i?i:r?lf().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}},deps:[]},{provide:bR,useClass:K1,deps:[Dt,Q1,Pg]},{provide:K1,useClass:K1,deps:[Dt,Q1,Pg]}],k4=[{provide:Mb,useValue:"root"},{provide:as,useFactory:function ree(){return new as},deps:[]},{provide:xw,useClass:ZJ,multi:!0,deps:[dr,Dt,Io]},{provide:xw,useClass:tee,multi:!0,deps:[dr]},Mw,C4,b4,{provide:Rd,useExisting:Mw},{provide:g4,useClass:HJ,deps:[]},[]];let M4=(()=>{var t;class e{constructor(r){}static withServerTransition(r){return{ngModule:e,providers:[{provide:Zp,useValue:r.appId}]}}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(see,12))},t.\u0275mod=jn({type:t}),t.\u0275inj=Rn({providers:[...k4,...D4],imports:[$c,GX]}),e})(),O4=(()=>{var t;class e{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(dr))},t.\u0275prov=We({token:t,factory:function(r){let i=null;return i=r?new r:function lee(){return new O4(Te(dr))}(),i},providedIn:"root"}),e})();typeof window<"u"&&window;let L4=(()=>{var t;class e{}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275prov=We({token:t,factory:function(r){let i=null;return i=r?new(r||t):Te(F4),i},providedIn:"root"}),e})(),F4=(()=>{var t;class e extends L4{constructor(r){super(),this._doc=r}sanitize(r,i){if(null==i)return null;switch(r){case Ri.NONE:return i;case Ri.HTML:return So(i,"HTML")?mi(i):Mk(this._doc,String(i)).toString();case Ri.STYLE:return So(i,"Style")?mi(i):i;case Ri.SCRIPT:if(So(i,"Script"))return mi(i);throw new he(5200,!1);case Ri.URL:return So(i,"URL")?mi(i):qp(String(i));case Ri.RESOURCE_URL:if(So(i,"ResourceURL"))return mi(i);throw new he(5201,!1);default:throw new he(5202,!1)}}bypassSecurityTrustHtml(r){return function lG(t){return new nG(t)}(r)}bypassSecurityTrustStyle(r){return function cG(t){return new rG(t)}(r)}bypassSecurityTrustScript(r){return function uG(t){return new iG(t)}(r)}bypassSecurityTrustUrl(r){return function dG(t){return new oG(t)}(r)}bypassSecurityTrustResourceUrl(r){return function fG(t){return new sG(t)}(r)}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(dr))},t.\u0275prov=We({token:t,factory:function(r){let i=null;return i=r?new r:function fee(t){return new F4(t.get(dr))}(Te(Er)),i},providedIn:"root"}),e})();const B4_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 $4(t,e){return jt(e)?ip(t,e,1):ip(t,1)}function z4(t){return Lr((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}class Yg{}class Kg{}class Ui{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?"string"==typeof e?this.lazyInit=()=>{this.headers=new Map,e.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof Ui?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(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){const n=new Ui;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Ui?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){const n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,n);const i=("a"===e.op?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":const o=e.value;if(o){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}setHeaderEntries(e,n){const r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}}class pee{encodeKey(e){return U4(e)}encodeValue(e){return U4(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const mee=/%(\d[a-f0-9])/gi,_ee={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function U4(t){return encodeURIComponent(t).replace(mee,(e,n)=>{var r;return null!==(r=_ee[n])&&void 0!==r?r:e})}function Qg(t){return"".concat(t)}class qs{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new pee,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function gee(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{const r=e.fromObject[n],i=Array.isArray(r)?r.map(Qg):[Qg(r)];this.map.set(n,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){const n=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const n=new qs({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}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 n=("a"===e.op?this.map.get(e.param):void 0)||[];n.push(Qg(e.value)),this.map.set(e.param,n);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const i=r.indexOf(Qg(e.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class vee{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),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 H4(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function j4(t){return typeof Blob<"u"&&t instanceof Blob}function G4(t){return typeof FormData<"u"&&t instanceof FormData}class pf{constructor(e,n,r,i){let o;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function yee(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Ui),this.context||(this.context=new vee),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":a<n.length-1?"&":"")+s}}else this.params=new qs,this.urlWithParams=n}serializeBody(){return null===this.body?null:H4(this.body)||j4(this.body)||G4(this.body)||function bee(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof qs?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||G4(this.body)?null:j4(this.body)?this.body.type||null:H4(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof qs?"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 n;const r=e.method||this.method,i=e.url||this.url,o=e.responseType||this.responseType,s=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!==(n=e.context)&&void 0!==n?n:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,p)=>h.set(p,e.setHeaders[p]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,p)=>h.set(p,e.setParams[p]),u)),new pf(r,i,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a})}}var zc=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(zc||{});class Lw{constructor(e,n=200,r="OK"){this.headers=e.headers||new Ui,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class Fw extends Lw{constructor(e={}){super(e),this.type=zc.ResponseHeader}clone(e={}){return new Fw({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 Uc extends Lw{constructor(e={}){super(e),this.type=zc.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Uc({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 q4 extends Lw{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 ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),this.error=e.error||null}}function Vw(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Xg=(()=>{var t;class e{constructor(r){this.handler=r}request(r,i,o={}){let s;if(r instanceof pf)s=r;else{let c,u;c=o.headers instanceof Ui?o.headers:new Ui(o.headers),o.params&&(u=o.params instanceof qs?o.params:new qs({fromObject:o.params})),s=new pf(r,i,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const a=yr(s).pipe($4(c=>this.handler.handle(c)));if(r instanceof pf||"events"===o.observe)return a;const l=a.pipe(function hee(t,e){return Lr((n,r)=>{let i=0;n.subscribe(vr(r,o=>t.call(e,o,i++)&&r.next(o)))})}(c=>c instanceof Uc));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(Un(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(Un(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(Un(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return l.pipe(Un(c=>c.body))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}delete(r,i={}){return this.request("DELETE",r,i)}get(r,i={}){return this.request("GET",r,i)}head(r,i={}){return this.request("HEAD",r,i)}jsonp(r,i){return this.request("JSONP",r,{params:(new qs).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(r,i={}){return this.request("OPTIONS",r,i)}patch(r,i,o={}){return this.request("PATCH",r,Vw(o,i))}post(r,i,o={}){return this.request("POST",r,Vw(o,i))}put(r,i,o={}){return this.request("PUT",r,Vw(o,i))}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(Yg))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();function K4(t,e){return e(t)}function Cee(t,e){return(n,r)=>e.intercept(n,{handle:i=>t(i,r)})}const See=new Ve(""),gf=new Ve(""),Q4=new Ve("");function Tee(){let t=null;return(e,n)=>{var r;null===t&&(t=(null!==(r=It(See,{optional:!0}))&&void 0!==r?r:[]).reduceRight(Cee,K4));const i=It(q1),o=i.add();return t(e,n).pipe(z4(()=>i.remove(o)))}}let X4=(()=>{var t;class e extends Yg{constructor(r,i){super(),this.backend=r,this.injector=i,this.chain=null,this.pendingTasks=It(q1)}handle(r){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(gf),...this.injector.get(Q4,[])]));this.chain=o.reduceRight((s,a)=>function Eee(t,e,n){return(r,i)=>n.runInContext(()=>e(r,o=>t(o,i)))}(s,a,this.injector),K4)}const i=this.pendingTasks.add();return this.chain(r,o=>this.backend.handle(o)).pipe(z4(()=>this.pendingTasks.remove(i)))}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(Kg),Te(To))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();const Pee=/^\)\]\}',?\n/;let J4=(()=>{var t;class e{constructor(r){this.xhrFactory=r}handle(r){if("JSONP"===r.method)throw new he(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?Da(i.\u0275loadImpl()):yr(null)).pipe(nd(()=>new lt(s=>{const a=i.build();if(a.open(r.method,r.urlWithParams),r.withCredentials&&(a.withCredentials=!0),r.headers.forEach((y,E)=>a.setRequestHeader(y,E.join(","))),r.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!r.headers.has("Content-Type")){const y=r.detectContentTypeHeader();null!==y&&a.setRequestHeader("Content-Type",y)}if(r.responseType){const y=r.responseType.toLowerCase();a.responseType="json"!==y?y:"text"}const l=r.serializeBody();let c=null;const u=()=>{if(null!==c)return c;const y=a.statusText||"OK",E=new Ui(a.getAllResponseHeaders()),C=function Dee(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||r.url;return c=new Fw({headers:E,status:a.status,statusText:y,url:C}),c},d=()=>{let{headers:y,status:E,statusText:C,url:k}=u(),j=null;204!==E&&(j=typeof a.response>"u"?a.responseText:a.response),0===E&&(E=j?200:0);let q=E>=200&&E<300;if("json"===r.responseType&&"string"==typeof j){const K=j;j=j.replace(Pee,"");try{j=""!==j?JSON.parse(j):null}catch(N){j=K,q&&(q=!1,j={error:N,text:j})}}q?(s.next(new Uc({body:j,headers:y,status:E,statusText:C,url:k||void 0})),s.complete()):s.error(new q4({error:j,headers:y,status:E,statusText:C,url:k||void 0}))},h=y=>{const{url:E}=u(),C=new q4({error:y,status:a.status||0,statusText:a.statusText||"Unknown Error",url:E||void 0});s.error(C)};let p=!1;const m=y=>{p||(s.next(u()),p=!0);let E={type:zc.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(E.total=y.total),"text"===r.responseType&&a.responseText&&(E.partialText=a.responseText),s.next(E)},_=y=>{let E={type:zc.UploadProgress,loaded:y.loaded};y.lengthComputable&&(E.total=y.total),s.next(E)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),r.reportProgress&&(a.addEventListener("progress",m),null!==l&&a.upload&&a.upload.addEventListener("progress",_)),a.send(l),s.next({type:zc.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),r.reportProgress&&(a.removeEventListener("progress",m),null!==l&&a.upload&&a.upload.removeEventListener("progress",_)),a.readyState!==a.DONE&&a.abort()}})))}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(g4))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();const Bw=new Ve("XSRF_ENABLED"),eN=new Ve("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),tN=new Ve("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class nN{}let Oee=(()=>{var t;class e{constructor(r,i,o){this.doc=r,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=o4(r,this.cookieName),this.lastCookieString=r),this.lastToken}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(dr),Te(Io),Te(eN))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();function Ree(t,e){const n=t.url.toLowerCase();if(!It(Bw)||"GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e(t);const r=It(nN).getToken(),i=It(tN);return null!=r&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),e(t)}var Ws=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Ws||{});function Ka(t,e){return{\u0275kind:t,\u0275providers:e}}function Nee(...t){const e=[Xg,J4,X4,{provide:Yg,useExisting:X4},{provide:Kg,useExisting:J4},{provide:gf,useValue:Ree,multi:!0},{provide:Bw,useValue:!0},{provide:nN,useClass:Oee}];for(const n of t)e.push(...n.\u0275providers);return function Pb(t){return{\u0275providers:t}}(e)}const rN=new Ve("LEGACY_INTERCEPTOR_FN");let Fee=(()=>{var t;class e{}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275mod=jn({type:t}),t.\u0275inj=Rn({providers:[Nee(Ka(Ws.LegacyInterceptors,[{provide:rN,useFactory:Tee},{provide:gf,useExisting:rN,multi:!0}]))]}),e})();class iN{}class Hee{}const gs="*";function oN(t,e){return{type:7,name:t,definitions:e,options:{}}}function mf(t,e=null){return{type:4,styles:e,timings:t}}function sN(t,e=null){return{type:2,steps:t,options:e}}function Mo(t){return{type:6,styles:t,offset:null}}function $w(t,e,n){return{type:0,name:t,styles:e,options:n}}function _f(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}class vf{constructor(e=0,n=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+n}_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(){queueMicrotask(()=>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 n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class aN{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 n=0,r=0,i=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,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 n=e*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){const e=this.players.reduce((n,r)=>null===n||r.totalTime>n.totalTime?r:n,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}function lN(t){return new he(3e3,!1)}function Ys(t){switch(t.length){case 0:return new vf;case 1:return t[0];default:return new aN(t)}}function cN(t,e,n=new Map,r=new Map){const i=[],o=[];let s=-1,a=null;if(e.forEach(l=>{const c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((h,p)=>{let m=p,_=h;if("offset"!==p)switch(m=t.normalizePropertyName(m,i),_){case"!":_=n.get(p);break;case gs:_=r.get(p);break;default:_=t.normalizeStyleValue(p,m,_,i)}d.set(m,_)}),u||o.push(d),a=d,s=c}),i.length)throw function fte(t){return new he(3502,!1)}();return o}function Uw(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Hw(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Hw(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Hw(n,"destroy",t)))}}function Hw(t,e,n){const r=n.totalTime,o=jw(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),s=t._data;return null!=s&&(o._data=s),o}function jw(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function bi(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function uN(t){const e=t.indexOf(":");return[t.substring(1,e),t.slice(e+1)]}const Ste=(()=>typeof document>"u"?null:document.documentElement)();function Gw(t){const e=t.parentNode||t.host||null;return e===Ste?null:e}let Qa=null,dN=!1;function fN(t,e){for(;e;){if(e===t)return!0;e=Gw(e)}return!1}function hN(t,e,n){if(n)return Array.from(t.querySelectorAll(e));const r=t.querySelector(e);return r?[r]:[]}let pN=(()=>{var t;class e{validateStyleProperty(r){return function Ite(t){Qa||(Qa=function Ate(){return typeof document<"u"?document.body:null}()||{},dN=!!Qa.style&&"WebkitAppearance"in Qa.style);let e=!0;return Qa.style&&!function Tte(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Qa.style,!e&&dN&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Qa.style)),e}(r)}matchesElement(r,i){return!1}containsElement(r,i){return fN(r,i)}getParentElement(r){return Gw(r)}query(r,i,o){return hN(r,i,o)}computeStyle(r,i,o){return o||""}animate(r,i,o,s,a,l=[],c){return new vf(o,s)}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})(),qw=(()=>{class e{}return e.NOOP=new pN,e})();const xte=1e3,Ww="ng-enter",Jg="ng-leave",em="ng-trigger",tm=".ng-trigger",mN="ng-animating",Yw=".ng-animating";function ms(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Kw(parseFloat(e[1]),e[2])}function Kw(t,e){return"s"===e?t*xte:t}function nm(t,e,n){return t.hasOwnProperty("duration")?t:function Dte(t,e,n){let i,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(lN()),{duration:0,delay:0,easing:""};i=Kw(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Kw(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else i=t;if(!n){let a=!1,l=e.length;i<0&&(e.push(function jee(){return new he(3100,!1)}()),a=!0),o<0&&(e.push(function Gee(){return new he(3101,!1)}()),a=!0),a&&e.splice(l,0,lN())}return{duration:i,delay:o,easing:s}}(t,e,n)}function yf(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function _N(t){const e=new Map;return Object.keys(t).forEach(n=>{e.set(n,t[n])}),e}function Ks(t,e=new Map,n){if(n)for(let[r,i]of n)e.set(r,i);for(let[r,i]of t)e.set(r,i);return e}function Oo(t,e,n){e.forEach((r,i)=>{const o=Xw(i);n&&!n.has(i)&&n.set(i,t.style[o]),t.style[o]=r})}function Xa(t,e){e.forEach((n,r)=>{const i=Xw(r);t.style[i]=""})}function bf(t){return Array.isArray(t)?1==t.length?t[0]:sN(t):t}const Qw=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function yN(t){let e=[];if("string"==typeof t){let n;for(;n=Qw.exec(t);)e.push(n[1]);Qw.lastIndex=0}return e}function wf(t,e,n){const r=t.toString(),i=r.replace(Qw,(o,s)=>{let a=e[s];return null==a&&(n.push(function Wee(t){return new he(3003,!1)}()),a=""),a.toString()});return i==r?t:i}function rm(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Ote=/-+([a-z0-9])/g;function Xw(t){return t.replace(Ote,(...e)=>e[1].toUpperCase())}function wi(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw function Yee(t){return new he(3004,!1)}()}}function bN(t,e){return window.getComputedStyle(t)[e]}const im="*";function Lte(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(r=>function Fte(t,e,n){if(":"==t[0]){const l=function Vte(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(function lte(t){return new he(3016,!1)}()),"* => *"}}(t,n);if("function"==typeof l)return void e.push(l);t=l}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(function ate(t){return new he(3015,!1)}()),e;const i=r[1],o=r[2],s=r[3];e.push(wN(i,s));"<"==o[0]&&!(i==im&&s==im)&&e.push(wN(s,i))}(r,n,e)):n.push(t),n}const om=new Set(["true","1"]),sm=new Set(["false","0"]);function wN(t,e){const n=om.has(t)||sm.has(t),r=om.has(e)||sm.has(e);return(i,o)=>{let s=t==im||t==i,a=e==im||e==o;return!s&&n&&"boolean"==typeof i&&(s=i?om.has(t):sm.has(t)),!a&&r&&"boolean"==typeof o&&(a=o?om.has(e):sm.has(e)),s&&a}}const Bte=new RegExp("s*".concat(":self","s*,?"),"g");function Zw(t,e,n,r){return new $te(t).build(e,n,r)}class $te{constructor(e){this._driver=e}build(e,n,r){const i=new Hte(n);return this._resetContextStyleTimingState(i),wi(this,bf(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,i=n.depCount=0;const o=[],s=[];return"@"==e.name.charAt(0)&&n.errors.push(function Qee(){return new he(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,n))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,n);r+=l.queryCount,i+=l.depCount,s.push(l)}else n.errors.push(function Xee(){return new he(3007,!1)}())}),{type:7,name:e.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(e,n){const r=this.visitStyle(e.styles,n),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){const o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{yN(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(rm(o.values()),n.errors.push(function Zee(t,e){return new he(3008,!1)}()))}return{type:0,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;const r=wi(this,bf(e.animation),n);return{type:1,matchers:Lte(e.expr,n.errors),animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Za(e.options)}}visitSequence(e,n){return{type:2,steps:e.steps.map(r=>wi(this,r,n)),options:Za(e.options)}}visitGroup(e,n){const r=n.currentTime;let i=0;const o=e.steps.map(s=>{n.currentTime=r;const a=wi(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:3,steps:o,options:Za(e.options)}}visitAnimate(e,n){const r=function Gte(t,e){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Jw(nm(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Jw(0,0,"");return o.dynamic=!0,o.strValue=n,o}const i=nm(n,e);return Jw(i.duration,i.delay,i.easing)}(e.timings,n.errors);n.currentAnimateTimings=r;let i,o=e.styles?e.styles:Mo({});if(5==o.type)i=this.visitKeyframes(o,n);else{let s=e.styles,a=!1;if(!s){a=!0;const c={};r.easing&&(c.easing=r.easing),s=Mo(c)}n.currentTime+=r.duration+r.delay;const l=this.visitStyle(s,n);l.isEmptyStep=a,i=l}return n.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(e,n){const r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){const r=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)"string"==typeof a?a===gs?r.push(a):n.errors.push(new he(3002,!1)):r.push(_N(a));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:r,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,n){const r=n.currentAnimateTimings;let i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=n.collectedStyles.get(n.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(n.errors.push(function ete(t,e,n,r,i){return new he(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:i}),n.options&&function Mte(t,e,n){const r=e.params||{},i=yN(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(function qee(t){return new he(3001,!1)}())})}(a,n.options,n.errors)})})}visitKeyframes(e,n){const r={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function tte(){return new he(3011,!1)}()),r;let o=0;const s=[];let a=!1,l=!1,c=0;const u=e.steps.map(E=>{const C=this._makeStyleAst(E,n);let k=null!=C.offset?C.offset:function jte(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(n instanceof Map&&n.has("offset")){const r=n;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const n=t;e=parseFloat(n.get("offset")),n.delete("offset")}return e}(C.styles),j=0;return null!=k&&(o++,j=C.offset=k),l=l||j<0||j>1,a=a||j<c,c=j,s.push(j),C});l&&n.errors.push(function nte(){return new he(3012,!1)}()),a&&n.errors.push(function rte(){return new he(3200,!1)}());const d=e.steps.length;let h=0;o>0&&o<d?n.errors.push(function ite(){return new he(3202,!1)}()):0==o&&(h=1/(d-1));const p=d-1,m=n.currentTime,_=n.currentAnimateTimings,y=_.duration;return u.forEach((E,C)=>{const k=h>0?C==p?1:h*C:s[C],j=k*y;n.currentTime=m+_.delay+j,_.duration=j,this._validateStyleAst(E,n),E.offset=k,r.styles.push(E)}),r}visitReference(e,n){return{type:8,animation:wi(this,bf(e.animation),n),options:Za(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:9,options:Za(e.options)}}visitAnimateRef(e,n){return{type:10,animation:this.visitReference(e.animation,n),options:Za(e.options)}}visitQuery(e,n){const r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;const[o,s]=function zte(t){const e=!!t.split(/\s*,\s*/).find(n=>":self"==n);return e&&(t=t.replace(Bte,"")),t=t.replace(/@\*/g,tm).replace(/@\w+/g,n=>tm+"-"+n.slice(1)).replace(/:animating/g,Yw),[t,e]}(e.selector);n.currentQuerySelector=r.length?r+" "+o:o,bi(n.collectedStyles,n.currentQuerySelector,new Map);const a=wi(this,bf(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Za(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(function ote(){return new he(3013,!1)}());const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:nm(e.timings,n.errors,!0);return{type:12,animation:wi(this,bf(e.animation),n),timings:r,options:null}}}class Hte{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 Za(t){return t?(t=yf(t)).params&&(t.params=function Ute(t){return t?yf(t):null}(t.params)):t={},t}function Jw(t,e,n){return{duration:t,delay:e,easing:n}}function eC(t,e,n,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class am{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Yte=new RegExp(":enter","g"),Qte=new RegExp(":leave","g");function tC(t,e,n,r,i,o=new Map,s=new Map,a,l,c=[]){return(new Xte).buildKeyframes(t,e,n,r,i,o,s,a,l,c)}class Xte{buildKeyframes(e,n,r,i,o,s,a,l,c,u=[]){c=c||new am;const d=new nC(e,n,c,i,o,u,[]);d.options=l;const h=l.delay?ms(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),wi(this,r,d);const p=d.timelines.filter(m=>m.containsAnimation());if(p.length&&a.size){let m;for(let _=p.length-1;_>=0;_--){const y=p[_];if(y.element===n){m=y;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,d.errors,l)}return p.length?p.map(m=>m.buildKeyframes()):[eC(n,[],[],[],0,h,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){const r=n.subInstructions.get(n.element);if(r){const i=n.createSubContext(e.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=e}visitAnimateRef(e,n){const r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,r),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_applyAnimationRefDelays(e,n,r){for(const o of e){const s=null==o?void 0:o.delay;if(s){var i;const a="number"==typeof s?s:ms(wf(s,null!==(i=null==o?void 0:o.params)&&void 0!==i?i:{},n.errors));r.delayNextStep(a)}}}_visitSubInstructions(e,n,r){let o=n.currentTimeline.currentTime;const s=null!=r.duration?ms(r.duration):null,a=null!=r.delay?ms(r.delay):null;return 0!==s&&e.forEach(l=>{const c=n.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),wi(this,e.animation,n),n.previousNode=e}visitSequence(e,n){const r=n.subContextCount;let i=n;const o=e.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=lm);const s=ms(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>wi(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){const r=[];let i=n.currentTimeline.currentTime;const o=e.options&&e.options.delay?ms(e.options.delay):0;e.steps.forEach(s=>{const a=n.createSubContext(e.options);o&&a.delayNextStep(o),wi(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(i),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){const r=e.strValue;return nm(n.params?wf(r,n.params,n.errors):r,n.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){const r=n.currentAnimateTimings=this._visitTiming(e.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());const o=e.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){const r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const o=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(o):r.setStyles(e.styles,o,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){const r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(i+o),n.previousNode=e}visitQuery(e,n){const r=n.currentTimeline.currentTime,i=e.options||{},o=i.delay?ms(i.delay):0;o&&(6===n.previousNode.type||0==r&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=lm);let s=r;const a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{n.currentQueryIndex=u;const d=n.createSubContext(e.options,c);o&&d.delayNextStep(o),c===n.element&&(l=d.currentTimeline),wi(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),l&&(n.currentTimeline.mergeTimelineCollectedStyles(l),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){const r=n.parentContext,i=n.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1);let l=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=n.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;wi(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const lm={};class nC{constructor(e,n,r,i,o,s,a,l){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=lm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new cm(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;const r=e;let i=this.options;null!=r.duration&&(i.duration=ms(r.duration)),null!=r.delay&&(i.delay=ms(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=wf(o[a],s,this.errors))})}}_copyOptions(){const e={};if(this.options){const n=this.options.params;if(n){const r=e.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return e}createSubContext(e=null,n,r){const i=n||this.element,o=new nC(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=lm,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){const i={duration:null!=n?n:e.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+e.delay,easing:""},o=new Zte(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,i,o,s){let a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(Yte,"."+this._enterClassName)).replace(Qte,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=r);0!==r&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!o&&0==a.length&&s.push(function ste(t){return new he(3014,!1)}()),a}}class cm{constructor(e,n,r,i){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,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 n=1===this._keyframes.size&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new cm(this._driver,e,n||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,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||gs),this._currentKeyframe.set(n,gs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&this._previousKeyframe.set("easing",n);const o=i&&i.params||{},s=function Jte(t,e){const n=new Map;let r;return t.forEach(i=>{if("*"===i){r=r||e.keys();for(let o of r)n.set(o,gs)}else Ks(i,n)}),n}(e,this._globalTimelineStyles);for(let[l,c]of s){const u=wf(c,o,r);var a;this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,null!==(a=this._globalTimelineStyles.get(l))&&void 0!==a?a:gs),this._updateStyle(l,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,r)=>{const i=this._styleSummary.get(r);(!i||n.time>i.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const c=Ks(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?e.add(d):u===gs&&n.add(d)}),r||c.set("offset",l/this.duration),i.push(c)});const o=e.size?rm(e.values()):[],s=n.size?rm(n.values()):[];if(r){const a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return eC(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class Zte extends cm{constructor(e,n,r,i,o,s,a=!1){super(e,n,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){const o=[],s=r+n,a=n/s,l=Ks(e[0]);l.set("offset",0),o.push(l);const c=Ks(e[0]);c.set("offset",SN(a)),o.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Ks(e[d]);const p=h.get("offset");h.set("offset",SN((n+p*r)/s)),o.push(h)}r=s,n=0,i="",e=o}return eC(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}function SN(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class rC{}const ene=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 tne extends rC{normalizePropertyName(e,n){return Xw(e)}normalizeStyleValue(e,n,r,i){let o="";const s=r.toString().trim();if(ene.has(n)&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function Kee(t,e){return new he(3005,!1)}())}return s+o}}function TN(t,e,n,r,i,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const iC={};class IN{constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return function nne(t,e,n,r,i){return t.some(o=>o(e,n,r,i))}(this.ast.matchers,e,n,r,i)}buildStyles(e,n,r){let i=this._stateStyles.get("*");return void 0!==e&&(i=this._stateStyles.get(null==e?void 0:e.toString())||i),i?i.buildStyles(n,r):new Map}build(e,n,r,i,o,s,a,l,c,u){var d;const h=[],p=this.ast.options&&this.ast.options.params||iC,_=this.buildStyles(r,a&&a.params||iC,h),y=l&&l.params||iC,E=this.buildStyles(i,y,h),C=new Set,k=new Map,j=new Map,q="void"===i,K={params:rne(y,p),delay:null===(d=this.ast.options)||void 0===d?void 0:d.delay},N=u?[]:tC(e,n,this.ast.animation,o,s,_,E,K,c,h);let P=0;if(N.forEach(F=>{P=Math.max(F.duration+F.delay,P)}),h.length)return TN(n,this._triggerName,r,i,q,_,E,[],[],k,j,P,h);N.forEach(F=>{const R=F.element,O=bi(k,R,new Set);F.preStyleProps.forEach(Se=>O.add(Se));const D=bi(j,R,new Set);F.postStyleProps.forEach(Se=>D.add(Se)),R!==n&&C.add(R)});const V=rm(C.values());return TN(n,this._triggerName,r,i,q,_,E,N,V,k,j,P)}}function rne(t,e){const n=yf(e);for(const r in t)t.hasOwnProperty(r)&&null!=t[r]&&(n[r]=t[r]);return n}class ine{constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){const r=new Map,i=yf(this.defaultParams);return Object.keys(e).forEach(o=>{const s=e[o];null!==s&&(i[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=wf(s,i,n));const l=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,l,s,n),r.set(a,s)})}),r}}class sne{constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(i=>{this.states.set(i.name,new ine(i.style,i.options&&i.options.params||{},r))}),AN(this.states,"true","1"),AN(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new IN(e,i,this.states))}),this.fallbackTransition=function ane(t,e,n){return new IN(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,i){return this.transitionFactories.find(s=>s.match(e,n,r,i))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}}function AN(t,e,n){t.has(e)?t.has(n)||t.set(n,t.get(e)):t.has(n)&&t.set(e,t.get(n))}const lne=new am;class cne{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,n){const r=[],o=Zw(this._driver,n,r,[]);if(r.length)throw function hte(t){return new he(3503,!1)}();this._animations.set(e,o)}_buildPlayer(e,n,r){const i=e.element,o=cN(this._normalizer,e.keyframes,n,r);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){const i=[],o=this._animations.get(e);let s;const a=new Map;if(o?(s=tC(this._driver,n,o,Ww,Jg,new Map,new Map,r,lne,i),s.forEach(u=>{const d=bi(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(i.push(function pte(){return new he(3300,!1)}()),s=[]),i.length)throw function gte(t){return new he(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,gs))})});const c=Ys(s.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 n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);const r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){const n=this._playersById.get(e);if(!n)throw function mte(t){return new he(3301,!1)}();return n}listen(e,n,r,i){const o=jw(n,"","","");return Uw(this._getPlayer(e),r,o,i),()=>{}}command(e,n,r,i){if("register"==r)return void this.register(e,i[0]);if("create"==r)return void this.create(e,n,i[0]||{});const o=this._getPlayer(e);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const xN="ng-animate-queued",oC="ng-animate-disabled",pne=[],PN={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},gne={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ao="__ng_removed";class sC{get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;const r=e&&e.hasOwnProperty("value");if(this.value=function yne(t){return null!=t?t:null}(r?e.value:e),r){const o=yf(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const n=e.params;if(n){const r=this.options.params;Object.keys(n).forEach(i=>{null==r[i]&&(r[i]=n[i])})}}}const Cf="void",aC=new sC(Cf);class mne{constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Hi(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.has(n))throw function _te(t,e){return new he(3302,!1)}();if(null==r||0==r.length)throw function vte(t){return new he(3303,!1)}();if(!function bne(t){return"start"==t||"done"==t}(r))throw function yte(t,e){return new he(3400,!1)}();const o=bi(this._elementListeners,e,[]),s={name:n,phase:r,callback:i};o.push(s);const a=bi(this._engine.statesByElement,e,new Map);return a.has(n)||(Hi(e,em),Hi(e,em+"-"+n),a.set(n,aC)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(n)||a.delete(n)})}}register(e,n){return!this._triggers.has(e)&&(this._triggers.set(e,n),!0)}_getTrigger(e){const n=this._triggers.get(e);if(!n)throw function bte(t){return new he(3401,!1)}();return n}trigger(e,n,r,i=!0){const o=this._getTrigger(n),s=new lC(this.id,n,e);let a=this._engine.statesByElement.get(e);a||(Hi(e,em),Hi(e,em+"-"+n),this._engine.statesByElement.set(e,a=new Map));let l=a.get(n);const c=new sC(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(n,c),l||(l=aC),c.value!==Cf&&l.value===c.value){if(!function Ene(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(l.params,c.params)){const _=[],y=o.matchStyles(l.value,l.params,_),E=o.matchStyles(c.value,c.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{Xa(e,y),Oo(e,E)})}return}const h=bi(this._engine.playersByElement,e,[]);h.forEach(_=>{_.namespaceId==this.id&&_.triggerName==n&&_.queued&&_.destroy()});let p=o.matchTransition(l.value,c.value,e,c.params),m=!1;if(!p){if(!i)return;p=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:p,fromState:l,toState:c,player:s,isFallbackTransition:m}),m||(Hi(e,xN),s.onStart(()=>{Hc(e,xN)})),s.onDone(()=>{let _=this.players.indexOf(s);_>=0&&this.players.splice(_,1);const y=this._engine.playersByElement.get(e);if(y){let E=y.indexOf(s);E>=0&&y.splice(E,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){const r=this._engine.driver.query(e,tm,!0);r.forEach(i=>{if(i[ao])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,n,r,i){const o=this._engine.statesByElement.get(e),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(e,c,Cf,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&Ys(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){const i=new Set;n.forEach(o=>{const s=o.name;if(i.has(s))return;i.add(s);const l=this._triggers.get(s).fallbackTransition,c=r.get(s)||aC,u=new sC(Cf),d=new lC(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,n){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else{let s=e;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,n);else{const o=e[ao];(!o||o===PN)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Hi(e,this._hostClassName)}drainQueuedTransitions(e){const n=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){const l=jw(o,r.triggerName,r.fromState.value,r.toState.value);l._data=e,Uw(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{const o=r.transition.ast.depCount,s=i.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class _ne{_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,o)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){const r=new mne(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){const l=i.get(a);if(l){const c=r.indexOf(l);r.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(e)}else r.push(e);return i.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let i=this._namespaceLookup[e];i&&i.register(n,r)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(n),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const n=new Set,r=this.statesByElement.get(e);if(r)for(let i of r.values())if(i.namespaceId){const o=this._fetchNamespace(i.namespaceId);o&&n.add(o)}return n}trigger(e,n,r,i){if(um(n)){const o=this._fetchNamespace(e);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!um(n))return;const o=n[ao];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Hi(e,oC)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Hc(e,oC))}removeNode(e,n,r){if(um(n)){const i=e?this._fetchNamespace(e):null;i?i.removeNode(n,r):this.markElementAsRemoved(e,n,!1,r);const o=this.namespacesByHostElement.get(n);o&&o.id!==e&&o.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(e,n,r,i,o){this.collectedLeaveElements.push(n),n[ao]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,r,i,o){return um(n)?this._fetchNamespace(e).listen(n,r,i,o):()=>{}}_buildInstruction(e,n,r,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,n,o)}destroyInnerAnimations(e){let n=this.driver.query(e,tm,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,Yw,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ys(this.players).onDone(()=>e());e()})}processLeaveNode(e){var n;const r=e[ao];if(r&&r.setForRemoval){if(e[ao]=PN,r.namespaceId){this.destroyInnerAnimations(e);const i=this._fetchNamespace(r.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}null!==(n=e.classList)&&void 0!==n&&n.contains(oC)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)Hi(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{n=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],n.length?Ys(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw function wte(t){return new he(3402,!1)}()}_flushAnimations(e,n){const r=new am,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(W=>{u.add(W);const ie=this.driver.query(W,".ng-animate-queued",!0);for(let ae=0;ae<ie.length;ae++)u.add(ie[ae])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),p=MN(h,this.collectedEnterElements),m=new Map;let _=0;p.forEach((W,ie)=>{const ae=Ww+_++;m.set(ie,ae),W.forEach(De=>Hi(De,ae))});const y=[],E=new Set,C=new Set;for(let W=0;W<this.collectedLeaveElements.length;W++){const ie=this.collectedLeaveElements[W],ae=ie[ao];ae&&ae.setForRemoval&&(y.push(ie),E.add(ie),ae.hasAnimation?this.driver.query(ie,".ng-star-inserted",!0).forEach(De=>E.add(De)):C.add(ie))}const k=new Map,j=MN(h,Array.from(E));j.forEach((W,ie)=>{const ae=Jg+_++;k.set(ie,ae),W.forEach(De=>Hi(De,ae))}),e.push(()=>{p.forEach((W,ie)=>{const ae=m.get(ie);W.forEach(De=>Hc(De,ae))}),j.forEach((W,ie)=>{const ae=k.get(ie);W.forEach(De=>Hc(De,ae))}),y.forEach(W=>{this.processLeaveNode(W)})});const q=[],K=[];for(let W=this._namespaceList.length-1;W>=0;W--)this._namespaceList[W].drainQueuedTransitions(n).forEach(ae=>{const De=ae.player,qe=ae.element;if(q.push(De),this.collectedEnterElements.length){const $t=qe[ao];if($t&&$t.setForMove){if($t.previousTriggersValues&&$t.previousTriggersValues.has(ae.triggerName)){const Ft=$t.previousTriggersValues.get(ae.triggerName),it=this.statesByElement.get(ae.element);if(it&&it.has(ae.triggerName)){const ln=it.get(ae.triggerName);ln.value=Ft,it.set(ae.triggerName,ln)}}return void De.destroy()}}const Lt=!d||!this.driver.containsElement(d,qe),mt=k.get(qe),xt=m.get(qe),wt=this._buildInstruction(ae,r,xt,mt,Lt);if(wt.errors&&wt.errors.length)return void K.push(wt);if(Lt)return De.onStart(()=>Xa(qe,wt.fromStyles)),De.onDestroy(()=>Oo(qe,wt.toStyles)),void i.push(De);if(ae.isFallbackTransition)return De.onStart(()=>Xa(qe,wt.fromStyles)),De.onDestroy(()=>Oo(qe,wt.toStyles)),void i.push(De);const On=[];wt.timelines.forEach($t=>{$t.stretchStartingKeyframe=!0,this.disabledNodes.has($t.element)||On.push($t)}),wt.timelines=On,r.append(qe,wt.timelines),s.push({instruction:wt,player:De,element:qe}),wt.queriedElements.forEach($t=>bi(a,$t,[]).push(De)),wt.preStyleProps.forEach(($t,Ft)=>{if($t.size){let it=l.get(Ft);it||l.set(Ft,it=new Set),$t.forEach((ln,ir)=>it.add(ir))}}),wt.postStyleProps.forEach(($t,Ft)=>{let it=c.get(Ft);it||c.set(Ft,it=new Set),$t.forEach((ln,ir)=>it.add(ir))})});if(K.length){const W=[];K.forEach(ie=>{W.push(function Cte(t,e){return new he(3505,!1)}())}),q.forEach(ie=>ie.destroy()),this.reportError(W)}const N=new Map,P=new Map;s.forEach(W=>{const ie=W.element;r.has(ie)&&(P.set(ie,ie),this._beforeAnimationBuild(W.player.namespaceId,W.instruction,N))}),i.forEach(W=>{const ie=W.element;this._getPreviousPlayers(ie,!1,W.namespaceId,W.triggerName,null).forEach(De=>{bi(N,ie,[]).push(De),De.destroy()})});const V=y.filter(W=>RN(W,l,c)),F=new Map;kN(F,this.driver,C,c,gs).forEach(W=>{RN(W,l,c)&&V.push(W)});const O=new Map;p.forEach((W,ie)=>{kN(O,this.driver,new Set(W),l,"!")}),V.forEach(W=>{var ie,ae;const De=F.get(W),qe=O.get(W);F.set(W,new Map([...null!==(ie=null==De?void 0:De.entries())&&void 0!==ie?ie:[],...null!==(ae=null==qe?void 0:qe.entries())&&void 0!==ae?ae:[]]))});const D=[],Se=[],Oe={};s.forEach(W=>{const{element:ie,player:ae,instruction:De}=W;if(r.has(ie)){if(u.has(ie))return ae.onDestroy(()=>Oo(ie,De.toStyles)),ae.disabled=!0,ae.overrideTotalTime(De.totalTime),void i.push(ae);let qe=Oe;if(P.size>1){let mt=ie;const xt=[];for(;mt=mt.parentNode;){const wt=P.get(mt);if(wt){qe=wt;break}xt.push(mt)}xt.forEach(wt=>P.set(wt,qe))}const Lt=this._buildAnimation(ae.namespaceId,De,N,o,O,F);if(ae.setRealPlayer(Lt),qe===Oe)D.push(ae);else{const mt=this.playersByElement.get(qe);mt&&mt.length&&(ae.parentPlayer=Ys(mt)),i.push(ae)}}else Xa(ie,De.fromStyles),ae.onDestroy(()=>Oo(ie,De.toStyles)),Se.push(ae),u.has(ie)&&i.push(ae)}),Se.forEach(W=>{const ie=o.get(W.element);if(ie&&ie.length){const ae=Ys(ie);W.setRealPlayer(ae)}}),i.forEach(W=>{W.parentPlayer?W.syncPlayerEvents(W.parentPlayer):W.destroy()});for(let W=0;W<y.length;W++){const ie=y[W],ae=ie[ao];if(Hc(ie,Jg),ae&&ae.hasAnimation)continue;let De=[];if(a.size){let Lt=a.get(ie);Lt&&Lt.length&&De.push(...Lt);let mt=this.driver.query(ie,Yw,!0);for(let xt=0;xt<mt.length;xt++){let wt=a.get(mt[xt]);wt&&wt.length&&De.push(...wt)}}const qe=De.filter(Lt=>!Lt.destroyed);qe.length?wne(this,ie,qe):this.processLeaveNode(ie)}return y.length=0,D.forEach(W=>{this.players.push(W),W.onDone(()=>{W.destroy();const ie=this.players.indexOf(W);this.players.splice(ie,1)}),W.play()}),D}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,i,o){let s=[];if(n){const a=this.playersByQueriedElement.get(e);a&&(s=a)}else{const a=this.playersByElement.get(e);if(a){const l=!o||o==Cf;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||s.push(c)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(e,n,r){const o=n.element,s=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:n.triggerName;for(const l of n.timelines){const c=l.element,u=c!==o,d=bi(r,c,[]);this._getPreviousPlayers(c,u,s,a,n.toState).forEach(p=>{const m=p.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),p.destroy(),d.push(p)})}Xa(o,n.fromStyles)}_buildAnimation(e,n,r,i,o,s){const a=n.triggerName,l=n.element,c=[],u=new Set,d=new Set,h=n.timelines.map(m=>{const _=m.element;u.add(_);const y=_[ao];if(y&&y.removedBeforeQueried)return new vf(m.duration,m.delay);const E=_!==l,C=function Cne(t){const e=[];return ON(t,e),e}((r.get(_)||pne).map(N=>N.getRealPlayer())).filter(N=>!!N.element&&N.element===_),k=o.get(_),j=s.get(_),q=cN(this._normalizer,m.keyframes,k,j),K=this._buildPlayer(m,q,C);if(m.subTimeline&&i&&d.add(_),E){const N=new lC(e,a,_);N.setRealPlayer(K),c.push(N)}return K});c.forEach(m=>{bi(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function vne(t,e,n){let r=t.get(e);if(r){if(r.length){const i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}return r}(this.playersByQueriedElement,m.element,m))}),u.forEach(m=>Hi(m,mN));const p=Ys(h);return p.onDestroy(()=>{u.forEach(m=>Hc(m,mN)),Oo(l,n.toStyles)}),d.forEach(m=>{bi(i,m,[]).push(p)}),p}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new vf(e.duration,e.delay)}}class lC{constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new vf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(i=>Uw(e,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){bi(this._queuedCallbacks,e,[]).push(n)}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 n=this._player;n.triggerCallback&&n.triggerCallback(e)}}function um(t){return t&&1===t.nodeType}function DN(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function kN(t,e,n,r,i){const o=[];n.forEach(l=>o.push(DN(l)));const s=[];r.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=e.computeStyle(c,d,i);u.set(d,h),(!h||0==h.length)&&(c[ao]=gne,s.push(c))}),t.set(c,u)});let a=0;return n.forEach(l=>DN(l,o[a++])),s}function MN(t,e){const n=new Map;if(t.forEach(a=>n.set(a,[])),0==e.length)return n;const i=new Set(e),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=n.has(c)?c:i.has(c)?1:s(c),o.set(a,l),l}return e.forEach(a=>{const l=s(a);1!==l&&n.get(l).push(a)}),n}function Hi(t,e){var n;null===(n=t.classList)||void 0===n||n.add(e)}function Hc(t,e){var n;null===(n=t.classList)||void 0===n||n.remove(e)}function wne(t,e,n){Ys(n).onDone(()=>t.processLeaveNode(e))}function ON(t,e){for(let n=0;n<t.length;n++){const r=t[n];r instanceof aN?ON(r.players,e):e.push(r)}}function RN(t,e,n){const r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(o=>i.add(o)):e.set(t,r),n.delete(t),!0}class dm{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new _ne(e,n,r),this._timelineEngine=new cne(e,n,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(e,n,r,i,o){const s=e+"-"+i;let a=this._triggerCache[s];if(!a){const l=[],u=Zw(this._driver,o,l,[]);if(l.length)throw function dte(t,e){return new he(3404,!1)}();a=function one(t,e,n){return new sne(t,e,n)}(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,i,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,i){this._transitionEngine.insertNode(e,n,r,i)}onRemove(e,n,r){this._transitionEngine.removeNode(e,n,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,i){if("@"==r.charAt(0)){const[o,s]=uN(r);this._timelineEngine.command(o,n,s,i)}else this._transitionEngine.trigger(e,n,r,i)}listen(e,n,r,i,o){if("@"==r.charAt(0)){const[s,a]=uN(r);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(e,n,r,i,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}}let Tne=(()=>{class e{constructor(r,i,o){this._element=r,this._startStyles=i,this._endStyles=o,this._state=0;let s=e.initialStylesByElement.get(r);s||e.initialStylesByElement.set(r,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Oo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Oo(this._element,this._initialStyles),this._endStyles&&(Oo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Xa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Xa(this._element,this._endStyles),this._endStyles=null),Oo(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function cC(t){let e=null;return t.forEach((n,r)=>{(function Ine(t){return"display"===t||"position"===t})(r)&&(e=e||new Map,e.set(r,n))}),e}class NN{constructor(e,n,r,i){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;const n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const n=[];return e.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(e,n,r){return e.animate(this._convertKeyframesToObject(n),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){var e;return+(null!==(e=this.domPlayer.currentTime)&&void 0!==e?e:0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&e.set(i,this._finished?r:bN(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){const n="start"===e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class Ane{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,n){return!1}containsElement(e,n){return fN(e,n)}getParentElement(e){return Gw(e)}query(e,n,r){return hN(e,n,r)}computeStyle(e,n,r){return window.getComputedStyle(e)[n]}animate(e,n,r,i,o,s=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(p=>p instanceof NN);(function Rte(t,e){return 0===t||0===e})(r,i)&&u.forEach(p=>{p.currentSnapshot.forEach((m,_)=>c.set(_,m))});let d=function kte(t){return t.length?t[0]instanceof Map?t:t.map(e=>_N(e)):[]}(n).map(p=>Ks(p));d=function Nte(t,e,n){if(n.size&&e.length){let r=e[0],i=[];if(n.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;o<e.length;o++){let s=e[o];i.forEach(a=>s.set(a,bN(t,a)))}}return e}(e,d,c);const h=function Sne(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=cC(e[0]),e.length>1&&(r=cC(e[e.length-1]))):e instanceof Map&&(n=cC(e)),n||r?new Tne(t,n,r):null}(e,d);return new NN(e,d,l,h)}}let xne=(()=>{var t;class e extends iN{constructor(r,i){super(),this._nextAnimationId=0,this._renderer=r.createRenderer(i.body,{id:"0",encapsulation:ki.None,styles:[],data:{animation:[]}})}build(r){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(r)?sN(r):r;return LN(this._renderer,null,i,"register",[o]),new Pne(i,this._renderer)}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(Rd),Te(dr))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();class Pne extends Hee{constructor(e,n){super(),this._id=e,this._renderer=n}create(e,n){return new Dne(this._id,e,n||{},this._renderer)}}class Dne{constructor(e,n,r,i){this.id=e,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),n)}_command(e,...n){return LN(this._renderer,this.element,this.id,e,n)}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,n;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function LN(t,e,n,r,i){return t.setProperty(e,"@@".concat(n,":").concat(r),i)}const FN="@.disabled";let kne=(()=>{var t;class e{constructor(r,i,o){this.delegate=r,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(s,a)=>{const l=null==a?void 0:a.parentNode(s);l&&a.removeChild(l,s)}}createRenderer(r,i){const s=this.delegate.createRenderer(r,i);if(!(r&&i&&i.data&&i.data.animation)){let d=this._rendererCache.get(s);return d||(d=new VN("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,d)),d}const a=i.id,l=i.id+"-"+this._currentId;this._currentId++,this.engine.register(l,r);const c=d=>{Array.isArray(d)?d.forEach(c):this.engine.registerTrigger(a,l,r,d.name,d)};return i.data.animation.forEach(c),new Mne(this,l,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(r,i,o){r>=0&&r<this._microtaskId?this._zone.run(()=>i(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[a,l]=s;a(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(Rd),Te(dm),Te(Dt))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();class VN{constructor(e,n,r,i){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(e){var n,r;null===(n=(r=this.delegate).destroyNode)||void 0===n||n.call(r,e)}destroy(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),null===(e=this._onDestroy)||void 0===e||e.call(this)}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,i=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,i)}removeChild(e,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,i){this.delegate.setAttribute(e,n,r,i)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,i){this.delegate.setStyle(e,n,r,i)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){"@"==n.charAt(0)&&n==FN?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r){return this.delegate.listen(e,n,r)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}}class Mne extends VN{constructor(e,n,r,i,o){super(n,r,i,o),this.factory=e,this.namespaceId=n}setProperty(e,n,r){"@"==n.charAt(0)?"."==n.charAt(1)&&n==FN?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,n.slice(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r){if("@"==n.charAt(0)){const i=function One(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(e);let o=n.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function Rne(t){const e=t.indexOf(".");return[t.substring(0,e),t.slice(e+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(e,n,r)}}let Nne=(()=>{var t;class e extends dm{constructor(r,i,o,s){super(r.body,i,o)}ngOnDestroy(){this.flush()}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(dr),Te(qw),Te(rC),Te(qa))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),e})();const BN=[{provide:iN,useClass:xne},{provide:rC,useFactory:function Lne(){return new tne}},{provide:dm,useClass:Nne},{provide:Rd,useFactory:function Fne(t,e,n){return new kne(t,e,n)},deps:[Mw,dm,Dt]}],uC=[{provide:qw,useFactory:()=>new Ane},{provide:Uk,useValue:"BrowserAnimations"},...BN],$N=[{provide:qw,useClass:pN},{provide:Uk,useValue:"NoopAnimations"},...BN];let Vne=(()=>{var t;class e{static withConfig(r){return{ngModule:e,providers:r.disableAnimations?$N:uC}}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275mod=jn({type:t}),t.\u0275inj=Rn({providers:uC,imports:[M4]}),e})();function zN(t,e,n,r,i,o,s){try{var a=t[o](s),l=a.value}catch(c){return void n(c)}a.done?e(l):Promise.resolve(l).then(r,i)}function se(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function s(l){zN(o,r,i,s,a,"next",l)}function a(l){zN(o,r,i,s,a,"throw",l)}s(void 0)})}}const UN=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):55296==(64512&i)&&r+1<t.length&&56320==(64512&t.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&t.charCodeAt(++r)),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},HN={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(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){const o=t[i],s=i+1<t.length,a=s?t[i+1]:0,l=i+2<t.length,c=l?t[i+2]:0;let h=(15&a)<<2|c>>6,p=63&c;l||(p=64,s||(h=64)),r.push(n[o>>2],n[(3&o)<<4|a>>4],n[h],n[p])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(UN(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){const l=((7&i)<<18|(63&t[n++])<<12|(63&t[n++])<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(l>>10)),e[r++]=String.fromCharCode(56320+(1023&l))}else{const o=t[n++],s=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const o=n[t.charAt(i++)],a=i<t.length?n[t.charAt(i)]:0;++i;const c=i<t.length?n[t.charAt(i)]:64;++i;const d=i<t.length?n[t.charAt(i)]:64;if(++i,null==o||null==a||null==c||null==d)throw new Une;r.push(o<<2|a>>4),64!==c&&(r.push(a<<4&240|c>>2),64!==d&&r.push(c<<6&192|d))}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class Une extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const hm=function(t){return function(t){const e=UN(t);return HN.encodeByteArray(e,!0)}(t).replace(/\./g,"")},pm=function(t){try{return HN.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},gm=()=>{try{return function Gne(){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 t=process.env.__FIREBASE_DEFAULTS__;return t?JSON.parse(t):void 0})()||(()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const e=t&&pm(t[1]);return e&&JSON.parse(e)})()}catch(t){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(t))}},GN=()=>{var t;return null===(t=gm())||void 0===t?void 0:t.config};class qN{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(n):e(n,r))}}}function si(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}class Qs extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,Qs.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Ef.prototype.create)}}class Ef{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i="".concat(this.service,"/").concat(e),o=this.errors[e],s=o?function lre(t,e){return t.replace(cre,(n,r)=>{const i=e[r];return null!=i?String(i):"<".concat(r,"?>")})}(o,r):"Error",a="".concat(this.serviceName,": ").concat(s," (").concat(i,").");return new Qs(i,a,r)}}const cre=/\{\$([^}]+)}/g;function _m(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const o=t[i],s=e[i];if(YN(o)&&YN(s)){if(!_m(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function YN(t){return null!==t&&"object"==typeof t}function KN(t){const e=[];for(const[n,r]of Object.entries(t))Array.isArray(r)?r.forEach(i=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}class dre{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,r){let i;if(void 0===e&&void 0===n&&void 0===r)throw new Error("Missing Observer.");i=function fre(t,e){if("object"!=typeof t||null===t)return!1;for(const n of e)if(n in t&&"function"==typeof t[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:n,complete:r},void 0===i.next&&(i.next=fC),void 0===i.error&&(i.error=fC),void 0===i.complete&&(i.complete=fC);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch(s){}}),this.observers.push(i),o}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 n=0;n<this.observers.length;n++)this.sendOne(n,e)}sendOne(e,n){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{n(this.observers[e])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function fC(){}function lo(t){return t&&t._delegate?t._delegate:t}class Ja{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const el="[DEFAULT]";class vre{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new qN;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch(i){}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),i=null!==(n=null==e?void 0:e.optional)&&void 0!==n&&n;if(!this.isInitialized(r)&&!this.shouldAutoInitialize()){if(i)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function bre(t){return"EAGER"===t.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:el})}catch(n){}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch(o){}}}}clearInstance(e=el){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}delete(){var e=this;return se(function*(){const n=Array.from(e.instances.values());yield Promise.all([...n.filter(r=>"INTERNAL"in r).map(r=>r.INTERNAL.delete()),...n.filter(r=>"_delete"in r).map(r=>r._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(e=el){return this.instances.has(e)}getOptions(e=el){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error("".concat(this.name,"(").concat(r,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,s]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(o)&&s.resolve(i);return i}onInit(e,n){var r;const i=this.normalizeInstanceIdentifier(n),o=null!==(r=this.onInitCallbacks.get(i))&&void 0!==r?r:new Set;o.add(e),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&e(s,i),()=>{o.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(e,n)}catch(o){}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(t=e,t===el?void 0:t),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(i){}var t;return r||null}normalizeInstanceIdentifier(e=el){return this.component?this.component.multipleInstances?e:el:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class wre{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(this.name));n.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 n=new vre(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}const pC=[];var yt=function(t){return t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT",t}(yt||{});const QN={debug:yt.DEBUG,verbose:yt.VERBOSE,info:yt.INFO,warn:yt.WARN,error:yt.ERROR,silent:yt.SILENT},Cre=yt.INFO,Ere={[yt.DEBUG]:"log",[yt.VERBOSE]:"log",[yt.INFO]:"info",[yt.WARN]:"warn",[yt.ERROR]:"error"},Sre=(t,e,...n)=>{if(e<t.logLevel)return;const r=(new Date).toISOString(),i=Ere[e];if(!i)throw new Error("Attempted to log a message with an invalid logType (value: ".concat(e,")"));console[i]("[".concat(r,"]  ").concat(t.name,":"),...n)};class gC{constructor(e){this.name=e,this._logLevel=Cre,this._logHandler=Sre,this._userLogHandler=null,pC.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in yt))throw new TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?QN[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,yt.DEBUG,...e),this._logHandler(this,yt.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,yt.VERBOSE,...e),this._logHandler(this,yt.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,yt.INFO,...e),this._logHandler(this,yt.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,yt.WARN,...e),this._logHandler(this,yt.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,yt.ERROR,...e),this._logHandler(this,yt.ERROR,...e)}}const Tre=(t,e)=>e.some(n=>t instanceof n);let XN,ZN;const JN=new WeakMap,mC=new WeakMap,e8=new WeakMap,_C=new WeakMap,vC=new WeakMap;let yC={get(t,e,n){if(t instanceof IDBTransaction){if("done"===e)return mC.get(t);if("objectStoreNames"===e)return t.objectStoreNames||e8.get(t);if("store"===e)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Xs(t[e])},set:(t,e,n)=>(t[e]=n,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function Mre(t){return"function"==typeof t?function kre(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Are(){return ZN||(ZN=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(t)?function(...e){return t.apply(bC(this),e),Xs(JN.get(this))}:function(...e){return Xs(t.apply(bC(this),e))}:function(e,...n){const r=t.call(bC(this),e,...n);return e8.set(r,e.sort?e.sort():[e]),Xs(r)}}(t):(t instanceof IDBTransaction&&function Pre(t){if(mC.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",s),t.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",o),t.addEventListener("error",s),t.addEventListener("abort",s)});mC.set(t,e)}(t),Tre(t,function Ire(){return XN||(XN=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(t,yC):t)}function Xs(t){if(t instanceof IDBRequest)return function xre(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",o),t.removeEventListener("error",s)},o=()=>{n(Xs(t.result)),i()},s=()=>{r(t.error),i()};t.addEventListener("success",o),t.addEventListener("error",s)});return e.then(n=>{n instanceof IDBCursor&&JN.set(n,t)}).catch(()=>{}),vC.set(e,t),e}(t);if(_C.has(t))return _C.get(t);const e=Mre(t);return e!==t&&(_C.set(t,e),vC.set(e,t)),e}const bC=t=>vC.get(t),Rre=["get","getKey","getAll","getAllKeys","count"],Nre=["put","add","delete","clear"],wC=new Map;function t8(t,e){if(!(t instanceof IDBDatabase)||e in t||"string"!=typeof e)return;if(wC.get(e))return wC.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=Nre.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Rre.includes(n))return;const o=function(){var s=se(function*(a,...l){const c=this.transaction(a,i?"readwrite":"readonly");let u=c.store;return r&&(u=u.index(l.shift())),(yield Promise.all([u[n](...l),i&&c.done]))[0]});return function(l){return s.apply(this,arguments)}}();return wC.set(e,o),o}!function Dre(t){yC=t(yC)}(t=>ge(ge({},t),{},{get:(e,n,r)=>t8(e,n)||t.get(e,n,r),has:(e,n)=>!!t8(e,n)||t.has(e,n)}));class Lre{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(function Fre(t){const e=t.getComponent();return"VERSION"===(null==e?void 0:e.type)}(n)){const r=n.getImmediate();return"".concat(r.library,"/").concat(r.version)}return null}).filter(n=>n).join(" ")}}const vm="@firebase/app",tl=new gC("@firebase/app"),ym="[DEFAULT]",uie={[vm]:"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","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},nl=new Map,Sf=new Map,Tf=new Map;function n8(t,e){try{t.container.addComponent(e)}catch(n){tl.debug("Component ".concat(e.name," failed to register with FirebaseApp ").concat(t.name),n)}}function jc(t){const e=t.name;if(Tf.has(e))return tl.debug("There were multiple attempts to register component ".concat(e,".")),!1;Tf.set(e,t);for(const n of nl.values())n8(n,t);for(const n of Sf.values())n8(n,t);return!0}function If(t){return void 0!==t.settings}const ji=new Ef("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","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","server-app-deleted":"Firebase Server App has been 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}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class hie{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Ja("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 ji.create("app-deleted",{appName:this._name})}}const bm="10.12.3";function i8(t,e={}){let n=t;"object"!=typeof e&&(e={name:e});const r=Object.assign({name:ym,automaticDataCollectionEnabled:!1},e),i=r.name;if("string"!=typeof i||!i)throw ji.create("bad-app-name",{appName:String(i)});if(n||(n=GN()),!n)throw ji.create("no-options");const o=nl.get(i);if(o){if(_m(n,o.options)&&_m(r,o.config))return o;throw ji.create("duplicate-app",{appName:i})}const s=new wre(i);for(const l of Tf.values())s.addComponent(l);const a=new hie(n,r,s);return nl.set(i,a),a}function o8(t=ym){const e=nl.get(t);if(!e&&t===ym&&GN())return i8();if(!e)throw ji.create("no-app",{appName:t});return e}function s8(){return Array.from(nl.values())}function Ci(t,e,n){var r;let i=null!==(r=uie[t])&&void 0!==r?r:t;n&&(i+="-".concat(n));const o=i.match(/\s|\//),s=e.match(/\s|\//);if(o||s){const a=['Unable to register library "'.concat(i,'" with version "').concat(e,'":')];return o&&a.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),o&&s&&a.push("and"),s&&a.push('version name "'.concat(e,'" contains illegal characters (whitespace or "/")')),void tl.warn(a.join(" "))}jc(new Ja("".concat(i,"-version"),()=>({library:i,version:e}),"VERSION"))}const mie="firebase-heartbeat-database",_ie=1,Af="firebase-heartbeat-store";let SC=null;function a8(){return SC||(SC=function Ore(t,e,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(t,e),a=Xs(s);return r&&s.addEventListener("upgradeneeded",l=>{r(Xs(s.result),l.oldVersion,l.newVersion,Xs(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}(mie,_ie,{upgrade:(t,e)=>{if(0===e)try{t.createObjectStore(Af)}catch(n){console.warn(n)}}}).catch(t=>{throw ji.create("idb-open",{originalErrorMessage:t.message})})),SC}function TC(){return(TC=se(function*(t){try{const n=(yield a8()).transaction(Af),r=yield n.objectStore(Af).get(c8(t));return yield n.done,r}catch(e){if(e instanceof Qs)tl.warn(e.message);else{const n=ji.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});tl.warn(n.message)}}})).apply(this,arguments)}function l8(t,e){return IC.apply(this,arguments)}function IC(){return(IC=se(function*(t,e){try{const r=(yield a8()).transaction(Af,"readwrite");yield r.objectStore(Af).put(e,c8(t)),yield r.done}catch(n){if(n instanceof Qs)tl.warn(n.message);else{const r=ji.create("idb-set",{originalErrorMessage:null==n?void 0:n.message});tl.warn(r.message)}}})).apply(this,arguments)}function c8(t){return"".concat(t.name,"!").concat(t.options.appId)}class wie{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new Eie(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}triggerHeartbeat(){var e=this;return se(function*(){var n,r;const o=e.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=u8();if((null!=(null===(n=e._heartbeatsCache)||void 0===n?void 0:n.heartbeats)||(e._heartbeatsCache=yield e._heartbeatsCachePromise,null!=(null===(r=e._heartbeatsCache)||void 0===r?void 0:r.heartbeats)))&&e._heartbeatsCache.lastSentHeartbeatDate!==s&&!e._heartbeatsCache.heartbeats.some(a=>a.date===s))return e._heartbeatsCache.heartbeats.push({date:s,agent:o}),e._heartbeatsCache.heartbeats=e._heartbeatsCache.heartbeats.filter(a=>{const l=new Date(a.date).valueOf();return Date.now()-l<=2592e6}),e._storage.overwrite(e._heartbeatsCache)})()}getHeartbeatsHeader(){var e=this;return se(function*(){var n;if(null===e._heartbeatsCache&&(yield e._heartbeatsCachePromise),null==(null===(n=e._heartbeatsCache)||void 0===n?void 0:n.heartbeats)||0===e._heartbeatsCache.heartbeats.length)return"";const r=u8(),{heartbeatsToSend:i,unsentEntries:o}=function Cie(t,e=1024){const n=[];let r=t.slice();for(const i of t){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),d8(n)>e){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),d8(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(e._heartbeatsCache.heartbeats),s=hm(JSON.stringify({version:2,heartbeats:i}));return e._heartbeatsCache.lastSentHeartbeatDate=r,o.length>0?(e._heartbeatsCache.heartbeats=o,yield e._storage.overwrite(e._heartbeatsCache)):(e._heartbeatsCache.heartbeats=[],e._storage.overwrite(e._heartbeatsCache)),s})()}}function u8(){return(new Date).toISOString().substring(0,10)}class Eie{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return se(function*(){return!!function ore(){try{return"object"==typeof indexedDB}catch(t){return!1}}()&&function sre(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;e((null===(o=i.error)||void 0===o?void 0:o.message)||"")}}catch(n){e(n)}})}().then(()=>!0).catch(()=>!1)})()}read(){var e=this;return se(function*(){if(yield e._canUseIndexedDBPromise){const r=yield function vie(t){return TC.apply(this,arguments)}(e.app);return null!=r&&r.heartbeats?r:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(e){var n=this;return se(function*(){var r;if(yield n._canUseIndexedDBPromise){const o=yield n.read();return l8(n.app,{lastSentHeartbeatDate:null!==(r=e.lastSentHeartbeatDate)&&void 0!==r?r:o.lastSentHeartbeatDate,heartbeats:e.heartbeats})}})()}add(e){var n=this;return se(function*(){var r;if(yield n._canUseIndexedDBPromise){const o=yield n.read();return l8(n.app,{lastSentHeartbeatDate:null!==(r=e.lastSentHeartbeatDate)&&void 0!==r?r:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...e.heartbeats]})}})()}}function d8(t){return hm(JSON.stringify({version:2,heartbeats:t})).length}!function Sie(t){jc(new Ja("platform-logger",e=>new Lre(e),"PRIVATE")),jc(new Ja("heartbeat",e=>new wie(e),"PRIVATE")),Ci(vm,"0.10.6",t),Ci(vm,"0.10.6","esm2017"),Ci("fire-js","")}(""),Ci("firebase","10.12.3","app");class Aie extends Qr{constructor(e,n){super()}schedule(e,n=0){return this}}const wm={setInterval(t,e,...n){const{delegate:r}=wm;return null!=r&&r.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){const{delegate:e}=wm;return((null==e?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0};class f8 extends Aie{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){var r;if(this.closed)return this;this.state=e;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(e,n,r=0){return wm.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return n;null!=n&&wm.clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let i,r=!1;try{this.work(e)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:e,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Pa(r,this),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}}const AC={now:()=>(AC.delegate||Date).now(),delegate:void 0};class xf{constructor(e,n=xf.now){this.schedulerActionCtor=e,this.now=n}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n)}}xf.now=AC.now;class h8 extends xf{constructor(e,n=xf.now){super(e,n),this.actions=[],this._active=!1}flush(e){const{actions:n}=this;if(this._active)return void n.push(e);let r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}}const Die=new class Pie extends h8{}(class xie extends f8{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}schedule(e,n=0){return n>0?super.schedule(e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}execute(e,n){return n>0||this.closed?super.execute(e,n):this._execute(e,n)}requestAsyncId(e,n,r=0){return null!=r&&r>0||null==r&&this.delay>0?super.requestAsyncId(e,n,r):(e.flush(this),0)}}),p8=new h8(f8),kie=p8;function Pf(t,e,n){const r=jt(t)||e||n?{next:t,error:e,complete:n}:t;return r?Lr((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(vr(o,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),o.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),o.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):ut}const xC=new yc("ANGULARFIRE2_VERSION");const PC=(t,e)=>{const n=e?[e]:s8(),r=[];return n.forEach(i=>{i.container.getProvider(t).instances.forEach(s=>{r.includes(s)||r.push(s)})}),r};class Mie{constructor(){return PC(Oie)}}const Oie="app-check";function Gc(){}class m8{constructor(e,n=Die){B(this,"zone",void 0),B(this,"delegate",void 0),this.zone=e,this.delegate=n}now(){return this.delegate.now()}schedule(e,n,r){const i=this.zone;return this.delegate.schedule(function(s){i.runGuarded(()=>{e.apply(this,[s])})},n,r)}}class Rie{constructor(e){B(this,"zone",void 0),B(this,"task",null),this.zone=e}call(e,n){const r=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Gc,{},Gc,Gc)),n.pipe(Pf({next:r,complete:r,error:r})).subscribe(e).add(r)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let _8=(()=>{var t;class e{constructor(r){B(this,"ngZone",void 0),B(this,"outsideAngular",void 0),B(this,"insideAngular",void 0),this.ngZone=r,this.outsideAngular=r.runOutsideAngular(()=>new m8(Zone.current)),this.insideAngular=r.run(()=>new m8(Zone.current,p8)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return t=e,B(e,"\u0275fac",function(r){return new(r||t)(Te(Dt))}),B(e,"\u0275prov",We({token:t,factory:t.\u0275fac,providedIn:"root"})),e})();function qc(){const t=globalThis.\u0275AngularFireScheduler;if(!t)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 t}function rl(t){return qc().ngZone.run(()=>t())}function Lie(t){return function Fie(t){return function(n){return(n=n.lift(new Rie(t.ngZone))).pipe(sp(t.outsideAngular),op(t.insideAngular))}}(qc())(t)}const Vie=(t,e)=>function(){const r=arguments;return e&&setTimeout(()=>{"scheduled"===e.state&&e.invoke()},10),rl(()=>t.apply(void 0,r))},Gi=(t,e)=>function(){let n;const r=arguments;for(let o=0;o<arguments.length;o++)"function"==typeof r[o]&&(e&&(n||(n=rl(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Gc,{},Gc,Gc)))),r[o]=Vie(r[o],n));const i=function Nie(t){return qc().ngZone.runOutsideAngular(()=>t())}(()=>t.apply(this,r));if(!e){if(i instanceof lt){const o=qc();return i.pipe(sp(o.outsideAngular),op(o.insideAngular))}return rl(()=>i)}return i instanceof lt?i.pipe(Lie):i instanceof Promise?rl(()=>new Promise((o,s)=>i.then(a=>rl(()=>o(a)),a=>rl(()=>s(a))))):"function"==typeof i&&n?function(){return setTimeout(()=>{n&&"scheduled"===n.state&&n.invoke()},10),i.apply(this,arguments)}:rl(()=>i)};class Df{constructor(e){return e}}class v8{constructor(){return s8()}}const DC=new Ve("angularfire2._apps"),$ie={provide:Df,useFactory:function Bie(t){return t&&1===t.length?t[0]:new Df(o8())},deps:[[new to,DC]]},zie={provide:v8,deps:[[new to,DC]]};function Uie(t){return(e,n)=>{const r=e.runOutsideAngular(()=>t(n));return new Df(r)}}let Hie=(()=>{var t;class e{constructor(r){Ci("angularfire",xC.full,"core"),Ci("angularfire",xC.full,"app"),Ci("angular",Kk.full,r.toString())}}return t=e,B(e,"\u0275fac",function(r){return new(r||t)(Te(Io))}),B(e,"\u0275mod",jn({type:t})),B(e,"\u0275inj",Rn({providers:[$ie,zie]})),e})();function jie(t,...e){return{ngModule:Hie,providers:[{provide:DC,useFactory:Uie(t),multi:!0,deps:[Dt,Er,_8,...e]}]}}const Gie=Gi(i8,!0);const qie=function y8(){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."}},b8=new Ef("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."}),Cm=new gC("@firebase/auth");function Em(t,...e){Cm.logLevel<=yt.ERROR&&Cm.error("Auth (".concat(bm,"): ").concat(t),...e)}function ai(t,...e){throw MC(t,...e)}function qi(t,...e){return MC(t,...e)}function kC(t,e,n){const r=Object.assign(Object.assign({},qie()),{[e]:n});return new Ef("auth","Firebase",r).create(e,{appName:t.name})}function Jn(t){return kC(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function MC(t,...e){if("string"!=typeof t){const n=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=t.name),t._errorFactory.create(n,...r)}return b8.create(t,...e)}function Ae(t,e,...n){if(!t)throw MC(e,...n)}function Ro(t){const e="INTERNAL ASSERTION FAILED: "+t;throw Em(e),new Error(e)}function Zs(t,e){t||Ro(e)}function w8(){var t;return typeof self<"u"&&(null===(t=self.location)||void 0===t?void 0:t.protocol)||null}function Yie(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function OC(){return"http:"===w8()||"https:"===w8()}()||function nre(){const t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}()||"connection"in navigator))||navigator.onLine}class Mf{constructor(e,n){this.shortDelay=e,this.longDelay=n,Zs(n>e,"Short delay should be less than long delay!"),this.isMobile=function Jne(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(si())}()||function rre(){return"object"==typeof navigator&&"ReactNative"===navigator.product}()}get(){return Yie()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}class C8{static initialize(e,n,r){this.fetchImpl=e,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void Ro("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:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void Ro("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:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void Ro("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Qie={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:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",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",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",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",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},Xie=new Mf(3e4,6e4);function on(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}function sn(t,e,n,r){return NC.apply(this,arguments)}function NC(){return(NC=se(function*(t,e,n,r,i={}){return E8(t,i,se(function*(){let o={},s={};r&&("GET"===e?s=r:o={body:JSON.stringify(r)});const a=KN(Object.assign({key:t.config.apiKey},s)).slice(1),l=yield t._getAdditionalHeaders();return l["Content-Type"]="application/json",t.languageCode&&(l["X-Firebase-Locale"]=t.languageCode),C8.fetch()(S8(t,t.config.apiHost,n,a),Object.assign({method:e,headers:l,referrerPolicy:"no-referrer"},o))}))})).apply(this,arguments)}function E8(t,e,n){return LC.apply(this,arguments)}function LC(){return(LC=se(function*(t,e,n){t._canInitEmulator=!1;const r=Object.assign(Object.assign({},Qie),e);try{const i=new Jie(t),o=yield Promise.race([n(),i.promise]);i.clearNetworkTimeout();const s=yield o.json();if("needConfirmation"in s)throw Of(t,"account-exists-with-different-credential",s);if(o.ok&&!("errorMessage"in s))return s;{const a=o.ok?s.errorMessage:s.error.message,[l,c]=a.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===l)throw Of(t,"credential-already-in-use",s);if("EMAIL_EXISTS"===l)throw Of(t,"email-already-in-use",s);if("USER_DISABLED"===l)throw Of(t,"user-disabled",s);const u=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw kC(t,u,c);ai(t,u)}}catch(i){if(i instanceof Qs)throw i;ai(t,"network-request-failed",{message:String(i)})}})).apply(this,arguments)}function S8(t,e,n,r){const i="".concat(e).concat(n,"?").concat(r);return t.config.emulator?function RC(t,e){Zs(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?"".concat(n).concat(e.startsWith("/")?e.slice(1):e):n}(t.config,i):"".concat(t.config.apiScheme,"://").concat(i)}class Jie{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(qi(this.auth,"network-request-failed")),Xie.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Of(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=qi(t,e,r);return i.customData._tokenResponse=n,i}function $C(){return($C=se(function*(t,e){return sn(t,"POST","/v1/accounts:delete",e)})).apply(this,arguments)}function P8(t,e){return UC.apply(this,arguments)}function UC(){return(UC=se(function*(t,e){return sn(t,"POST","/v1/accounts:lookup",e)})).apply(this,arguments)}function Rf(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch(e){}}function HC(){return(HC=se(function*(t,e=!1){const n=lo(t),r=yield n.getIdToken(e),i=Sm(r);Ae(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const o="object"==typeof i.firebase?i.firebase:void 0,s=null==o?void 0:o.sign_in_provider;return{claims:i,token:r,authTime:Rf(jC(i.auth_time)),issuedAtTime:Rf(jC(i.iat)),expirationTime:Rf(jC(i.exp)),signInProvider:s||null,signInSecondFactor:(null==o?void 0:o.sign_in_second_factor)||null}})).apply(this,arguments)}function jC(t){return 1e3*Number(t)}function Sm(t){const[e,n,r]=t.split(".");if(void 0===e||void 0===n||void 0===r)return Em("JWT malformed, contained fewer than 3 sections"),null;try{const i=pm(n);return i?JSON.parse(i):(Em("Failed to decode base64 JWT payload"),null)}catch(i){return Em("Caught error parsing JWT payload as JSON",null==i?void 0:i.toString()),null}}function D8(t){const e=Sm(t);return Ae(e,"internal-error"),Ae(typeof e.exp<"u","internal-error"),Ae(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}function vs(t,e){return GC.apply(this,arguments)}function GC(){return(GC=se(function*(t,e,n=!1){if(n)return e;try{return yield e}catch(r){throw r instanceof Qs&&function ioe({code:t}){return"auth/user-disabled"===t||"auth/user-token-expired"===t}(r)&&t.auth.currentUser===t&&(yield t.auth.signOut()),r}})).apply(this,arguments)}class ooe{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 n;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),r}{this.errorBackoff=3e4;const i=(null!==(n=this.user.stsTokenManager.expirationTime)&&void 0!==n?n:0)-Date.now()-3e5;return Math.max(0,i)}}schedule(e=!1){var n=this;if(!this.isRunning)return;const r=this.getInterval(e);this.timerId=setTimeout(se(function*(){yield n.iteration()}),r)}iteration(){var e=this;return se(function*(){try{yield e.user.getIdToken(!0)}catch(n){return void("auth/network-request-failed"===(null==n?void 0:n.code)&&e.schedule(!0))}e.schedule()})()}}class qC{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=Rf(this.lastLoginAt),this.creationTime=Rf(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function Nf(t){return WC.apply(this,arguments)}function WC(){return(WC=se(function*(t){var e;const n=t.auth,r=yield t.getIdToken(),i=yield vs(t,P8(n,{idToken:r}));Ae(null==i?void 0:i.users.length,n,"internal-error");const o=i.users[0];t._notifyReloadListener(o);const s=null!==(e=o.providerUserInfo)&&void 0!==e&&e.length?k8(o.providerUserInfo):[],a=function aoe(t,e){return[...t.filter(r=>!e.some(i=>i.providerId===r.providerId)),...e]}(t.providerData,s),u=!!t.isAnonymous&&!(t.email&&o.passwordHash||null!=a&&a.length),d={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:a,metadata:new qC(o.createdAt,o.lastLoginAt),isAnonymous:u};Object.assign(t,d)})).apply(this,arguments)}function YC(){return(YC=se(function*(t){const e=lo(t);yield Nf(e),yield e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)})).apply(this,arguments)}function k8(t){return t.map(e=>{var{providerId:n}=e,r=u0(e,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}function KC(){return(KC=se(function*(t,e){const n=yield E8(t,{},se(function*(){const r=KN({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:o}=t.config,s=S8(t,i,"/v1/token","key=".concat(o)),a=yield t._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",C8.fetch()(s,{method:"POST",headers:a,body:r})}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}})).apply(this,arguments)}function QC(){return(QC=se(function*(t,e){return sn(t,"POST","/v2/accounts:revokeToken",on(t,e))})).apply(this,arguments)}class Yc{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Ae(e.idToken,"internal-error"),Ae(typeof e.idToken<"u","internal-error"),Ae(typeof e.refreshToken<"u","internal-error");const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):D8(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}updateFromIdToken(e){Ae(0!==e.length,"internal-error");const n=D8(e);this.updateTokensAndExpiration(e,null,n)}getToken(e,n=!1){var r=this;return se(function*(){return n||!r.accessToken||r.isExpired?(Ae(r.refreshToken,e,"user-token-expired"),r.refreshToken?(yield r.refresh(e,r.refreshToken),r.accessToken):null):r.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(e,n){var r=this;return se(function*(){const{accessToken:i,refreshToken:o,expiresIn:s}=yield function loe(t,e){return KC.apply(this,arguments)}(e,n);r.updateTokensAndExpiration(i,o,Number(s))})()}updateTokensAndExpiration(e,n,r){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*r}static fromJSON(e,n){const{refreshToken:r,accessToken:i,expirationTime:o}=n,s=new Yc;return r&&(Ae("string"==typeof r,"internal-error",{appName:e}),s.refreshToken=r),i&&(Ae("string"==typeof i,"internal-error",{appName:e}),s.accessToken=i),o&&(Ae("number"==typeof o,"internal-error",{appName:e}),s.expirationTime=o),s}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 Yc,this.toJSON())}_performRefresh(){return Ro("not implemented")}}function Js(t,e){Ae("string"==typeof t||typeof t>"u","internal-error",{appName:e})}class ys{constructor(e){var{uid:n,auth:r,stsTokenManager:i}=e,o=u0(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new ooe(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new qC(o.createdAt||void 0,o.lastLoginAt||void 0)}getIdToken(e){var n=this;return se(function*(){const r=yield vs(n,n.stsTokenManager.getToken(n.auth,e));return Ae(r,n.auth,"internal-error"),n.accessToken!==r&&(n.accessToken=r,yield n.auth._persistUserIfCurrent(n),n.auth._notifyListenersIfCurrent(n)),r})()}getIdTokenResult(e){return function roe(t){return HC.apply(this,arguments)}(this,e)}reload(){return function soe(t){return YC.apply(this,arguments)}(this)}_assign(e){this!==e&&(Ae(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(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const n=new ys(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){Ae(!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,n=!1){var r=this;return se(function*(){let i=!1;e.idToken&&e.idToken!==r.stsTokenManager.accessToken&&(r.stsTokenManager.updateFromServerResponse(e),i=!0),n&&(yield Nf(r)),yield r.auth._persistUserIfCurrent(r),i&&r.auth._notifyListenersIfCurrent(r)})()}delete(){var e=this;return se(function*(){if(If(e.auth.app))return Promise.reject(Jn(e.auth));const n=yield e.getIdToken();return yield vs(e,function toe(t,e){return $C.apply(this,arguments)}(e.auth,{idToken:n})),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,n){var r,i,o,s,a,l,c,u;const d=null!==(r=n.displayName)&&void 0!==r?r:void 0,h=null!==(i=n.email)&&void 0!==i?i:void 0,p=null!==(o=n.phoneNumber)&&void 0!==o?o:void 0,m=null!==(s=n.photoURL)&&void 0!==s?s:void 0,_=null!==(a=n.tenantId)&&void 0!==a?a:void 0,y=null!==(l=n._redirectEventId)&&void 0!==l?l:void 0,E=null!==(c=n.createdAt)&&void 0!==c?c:void 0,C=null!==(u=n.lastLoginAt)&&void 0!==u?u:void 0,{uid:k,emailVerified:j,isAnonymous:q,providerData:K,stsTokenManager:N}=n;Ae(k&&N,e,"internal-error");const P=Yc.fromJSON(this.name,N);Ae("string"==typeof k,e,"internal-error"),Js(d,e.name),Js(h,e.name),Ae("boolean"==typeof j,e,"internal-error"),Ae("boolean"==typeof q,e,"internal-error"),Js(p,e.name),Js(m,e.name),Js(_,e.name),Js(y,e.name),Js(E,e.name),Js(C,e.name);const V=new ys({uid:k,auth:e,email:h,emailVerified:j,displayName:d,isAnonymous:q,photoURL:m,phoneNumber:p,tenantId:_,stsTokenManager:P,createdAt:E,lastLoginAt:C});return K&&Array.isArray(K)&&(V.providerData=K.map(F=>Object.assign({},F))),y&&(V._redirectEventId=y),V}static _fromIdTokenResponse(e,n,r=!1){return se(function*(){const i=new Yc;i.updateFromServerResponse(n);const o=new ys({uid:n.localId,auth:e,stsTokenManager:i,isAnonymous:r});return yield Nf(o),o})()}static _fromGetAccountInfoResponse(e,n,r){return se(function*(){const i=n.users[0];Ae(void 0!==i.localId,"internal-error");const o=void 0!==i.providerUserInfo?k8(i.providerUserInfo):[],s=!(i.email&&i.passwordHash||null!=o&&o.length),a=new Yc;a.updateFromIdToken(r);const l=new ys({uid:i.localId,auth:e,stsTokenManager:a,isAnonymous:s}),c={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:o,metadata:new qC(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash||null!=o&&o.length)};return Object.assign(l,c),l})()}}const M8=new Map;function bs(t){Zs(t instanceof Function,"Expected a class definition");let e=M8.get(t);return e?(Zs(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,M8.set(t,e),e)}const O8=(()=>{class t{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return se(function*(){return!0})()}_set(n,r){var i=this;return se(function*(){i.storage[n]=r})()}_get(n){var r=this;return se(function*(){const i=r.storage[n];return void 0===i?null:i})()}_remove(n){var r=this;return se(function*(){delete r.storage[n]})()}_addListener(n,r){}_removeListener(n,r){}}return t.type="NONE",t})();function Tm(t,e,n){return"firebase:".concat(t,":").concat(e,":").concat(n)}class Kc{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:i,name:o}=this.auth;this.fullUserKey=Tm(this.userKey,i.apiKey,o),this.fullPersistenceKey=Tm("persistence",i.apiKey,o),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}getCurrentUser(){var e=this;return se(function*(){const n=yield e.persistence._get(e.fullUserKey);return n?ys._fromJSON(e.auth,n):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(e){var n=this;return se(function*(){if(n.persistence===e)return;const r=yield n.getCurrentUser();return yield n.removeCurrentUser(),n.persistence=e,r?n.setCurrentUser(r):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(e,n,r="authUser"){return se(function*(){if(!n.length)return new Kc(bs(O8),e,r);const i=(yield Promise.all(n.map(function(){var c=se(function*(u){if(yield u._isAvailable())return u});return function(u){return c.apply(this,arguments)}}()))).filter(c=>c);let o=i[0]||bs(O8);const s=Tm(r,e.config.apiKey,e.name);let a=null;for(const c of n)try{const u=yield c._get(s);if(u){const d=ys._fromJSON(e,u);c!==o&&(a=d),o=c;break}}catch(u){}const l=i.filter(c=>c._shouldAllowMigration);return o._shouldAllowMigration&&l.length?(o=l[0],a&&(yield o._set(s,a.toJSON())),yield Promise.all(n.map(function(){var c=se(function*(u){if(u!==o)try{yield u._remove(s)}catch(d){}});return function(u){return c.apply(this,arguments)}}())),new Kc(o,e,r)):new Kc(o,e,r)})()}}function R8(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(function F8(t=si()){return/iemobile/i.test(t)}(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(function N8(t=si()){return/firefox\//i.test(t)}(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(function B8(t=si()){return/blackberry/i.test(t)}(e))return"Blackberry";if(function $8(t=si()){return/webos/i.test(t)}(e))return"Webos";if(function XC(t=si()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}(e))return"Safari";if((e.includes("chrome/")||function L8(t=si()){return/crios\//i.test(t)}(e))&&!e.includes("edge/"))return"Chrome";if(function V8(t=si()){return/android/i.test(t)}(e))return"Android";{const r=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==r?void 0:r.length))return r[1]}return"Other"}function z8(t,e=[]){let n;switch(t){case"Browser":n=R8(si());break;case"Worker":n="".concat(R8(si()),"-").concat(t);break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return"".concat(n,"/JsCore/").concat(bm,"/").concat(r)}class foe{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const r=o=>new Promise((s,a)=>{try{s(e(o))}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}runMiddleware(e){var n=this;return se(function*(){if(n.auth.currentUser===e)return;const r=[];try{for(const i of n.queue)yield i(e),i.onAbort&&r.push(i.onAbort)}catch(i){r.reverse();for(const o of r)try{o()}catch(s){}throw n.auth._errorFactory.create("login-blocked",{originalMessage:null==i?void 0:i.message})}})()}}function ZC(){return(ZC=se(function*(t,e={}){return sn(t,"GET","/v2/passwordPolicy",on(t,e))})).apply(this,arguments)}class goe{constructor(e){var n,r,i,o;const s=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(n=s.minPasswordLength)&&void 0!==n?n:6,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),void 0!==s.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),void 0!==s.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),void 0!==s.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),void 0!==s.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(i=null===(r=e.allowedNonAlphanumericCharacters)||void 0===r?void 0:r.join(""))&&void 0!==i?i:"",this.forceUpgradeOnSignin=null!==(o=e.forceUpgradeOnSignin)&&void 0!==o&&o,this.schemaVersion=e.schemaVersion}validatePassword(e){var n,r,i,o,s,a;const l={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,l),this.validatePasswordCharacterOptions(e,l),l.isValid&&(l.isValid=null===(n=l.meetsMinPasswordLength)||void 0===n||n),l.isValid&&(l.isValid=null===(r=l.meetsMaxPasswordLength)||void 0===r||r),l.isValid&&(l.isValid=null===(i=l.containsLowercaseLetter)||void 0===i||i),l.isValid&&(l.isValid=null===(o=l.containsUppercaseLetter)||void 0===o||o),l.isValid&&(l.isValid=null===(s=l.containsNumericCharacter)||void 0===s||s),l.isValid&&(l.isValid=null===(a=l.containsNonAlphanumericCharacter)||void 0===a||a),l}validatePasswordLengthOptions(e,n){const r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=e.length>=r),i&&(n.meetsMaxPasswordLength=e.length<=i)}validatePasswordCharacterOptions(e,n){let r;this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);for(let i=0;i<e.length;i++)r=e.charAt(i),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,n,r,i,o){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=o))}}class moe{constructor(e,n,r,i){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new U8(this),this.idTokenSubscription=new U8(this),this.beforeStateQueue=new foe(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=b8,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},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,n){var r=this;return n&&(this._popupRedirectResolver=bs(n)),this._initializationPromise=this.queue(se(function*(){var i,o;if(!r._deleted&&(r.persistenceManager=yield Kc.create(r,e),!r._deleted)){if(null!==(i=r._popupRedirectResolver)&&void 0!==i&&i._shouldInitProactively)try{yield r._popupRedirectResolver._initialize(r)}catch(s){}yield r.initializeCurrentUser(n),r.lastNotifiedUid=(null===(o=r.currentUser)||void 0===o?void 0:o.uid)||null,!r._deleted&&(r._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var e=this;return se(function*(){if(e._deleted)return;const n=yield e.assertedPersistence.getCurrentUser();if(e.currentUser||n){if(e.currentUser&&n&&e.currentUser.uid===n.uid)return e._currentUser._assign(n),void(yield e.currentUser.getIdToken());yield e._updateCurrentUser(n,!0)}})()}initializeCurrentUserFromIdToken(e){var n=this;return se(function*(){try{const r=yield P8(n,{idToken:e}),i=yield ys._fromGetAccountInfoResponse(n,r,e);yield n.directlySetCurrentUser(i)}catch(r){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",r),yield n.directlySetCurrentUser(null)}})()}initializeCurrentUser(e){var n=this;return se(function*(){var r;if(If(n.app)){const a=n.app.settings.authIdToken;return a?new Promise(l=>{setTimeout(()=>n.initializeCurrentUserFromIdToken(a).then(l,l))}):n.directlySetCurrentUser(null)}const i=yield n.assertedPersistence.getCurrentUser();let o=i,s=!1;if(e&&n.config.authDomain){yield n.getOrInitRedirectPersistenceManager();const a=null===(r=n.redirectUser)||void 0===r?void 0:r._redirectEventId,l=null==o?void 0:o._redirectEventId,c=yield n.tryRedirectSignIn(e);(!a||a===l)&&null!=c&&c.user&&(o=c.user,s=!0)}if(!o)return n.directlySetCurrentUser(null);if(!o._redirectEventId){if(s)try{yield n.beforeStateQueue.runMiddleware(o)}catch(a){o=i,n._popupRedirectResolver._overrideRedirectResult(n,()=>Promise.reject(a))}return o?n.reloadAndSetCurrentUserOrClear(o):n.directlySetCurrentUser(null)}return Ae(n._popupRedirectResolver,n,"argument-error"),yield n.getOrInitRedirectPersistenceManager(),n.redirectUser&&n.redirectUser._redirectEventId===o._redirectEventId?n.directlySetCurrentUser(o):n.reloadAndSetCurrentUserOrClear(o)})()}tryRedirectSignIn(e){var n=this;return se(function*(){let r=null;try{r=yield n._popupRedirectResolver._completeRedirectFn(n,e,!0)}catch(i){yield n._setRedirectUser(null)}return r})()}reloadAndSetCurrentUserOrClear(e){var n=this;return se(function*(){try{yield Nf(e)}catch(r){if("auth/network-request-failed"!==(null==r?void 0:r.code))return n.directlySetCurrentUser(null)}return n.directlySetCurrentUser(e)})()}useDeviceLanguage(){this.languageCode=function Kie(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}()}_delete(){var e=this;return se(function*(){e._deleted=!0})()}updateCurrentUser(e){var n=this;return se(function*(){if(If(n.app))return Promise.reject(Jn(n));const r=e?lo(e):null;return r&&Ae(r.auth.config.apiKey===n.config.apiKey,n,"invalid-user-token"),n._updateCurrentUser(r&&r._clone(n))})()}_updateCurrentUser(e,n=!1){var r=this;return se(function*(){if(!r._deleted)return e&&Ae(r.tenantId===e.tenantId,r,"tenant-id-mismatch"),n||(yield r.beforeStateQueue.runMiddleware(e)),r.queue(se(function*(){yield r.directlySetCurrentUser(e),r.notifyAuthListeners()}))})()}signOut(){var e=this;return se(function*(){return If(e.app)?Promise.reject(Jn(e)):(yield e.beforeStateQueue.runMiddleware(null),(e.redirectPersistenceManager||e._popupRedirectResolver)&&(yield e._setRedirectUser(null)),e._updateCurrentUser(null,!0))})()}setPersistence(e){var n=this;return If(this.app)?Promise.reject(Jn(this)):this.queue(se(function*(){yield n.assertedPersistence.setPersistence(bs(e))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(e){var n=this;return se(function*(){n._getPasswordPolicyInternal()||(yield n._updatePasswordPolicy());const r=n._getPasswordPolicyInternal();return r.schemaVersion!==n.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(n._errorFactory.create("unsupported-password-policy-schema-version",{})):r.validatePassword(e)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var e=this;return se(function*(){const n=yield function hoe(t){return ZC.apply(this,arguments)}(e),r=new goe(n);null===e.tenantId?e._projectPasswordPolicy=r:e._tenantPasswordPolicies[e.tenantId]=r})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new Ef("auth","Firebase",e())}onAuthStateChanged(e,n,r){return this.registerStateListener(this.authStateSubscription,e,n,r)}beforeAuthStateChanged(e,n){return this.beforeStateQueue.pushCallback(e,n)}onIdTokenChanged(e,n,r){return this.registerStateListener(this.idTokenSubscription,e,n,r)}authStateReady(){return new Promise((e,n)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},n)}})}revokeAccessToken(e){var n=this;return se(function*(){if(n.currentUser){const r=yield n.currentUser.getIdToken(),i={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:r};null!=n.tenantId&&(i.tenantId=n.tenantId),yield function coe(t,e){return QC.apply(this,arguments)}(n,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,n){var r=this;return se(function*(){const i=yield r.getOrInitRedirectPersistenceManager(n);return null===e?i.removeCurrentUser():i.setCurrentUser(e)})()}getOrInitRedirectPersistenceManager(e){var n=this;return se(function*(){if(!n.redirectPersistenceManager){const r=e&&bs(e)||n._popupRedirectResolver;Ae(r,n,"argument-error"),n.redirectPersistenceManager=yield Kc.create(n,[bs(r._redirectPersistence)],"redirectUser"),n.redirectUser=yield n.redirectPersistenceManager.getCurrentUser()}return n.redirectPersistenceManager})()}_redirectUserForId(e){var n=this;return se(function*(){var r,i;return n._isInitialized&&(yield n.queue(se(function*(){}))),(null===(r=n._currentUser)||void 0===r?void 0:r._redirectEventId)===e?n._currentUser:(null===(i=n.redirectUser)||void 0===i?void 0:i._redirectEventId)===e?n.redirectUser:null})()}_persistUserIfCurrent(e){var n=this;return se(function*(){if(e===n.currentUser)return n.queue(se(function*(){return n.directlySetCurrentUser(e)}))})()}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(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,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=null!==(n=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==n?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,r,i){if(this._deleted)return()=>{};const o="function"==typeof n?n:n.next.bind(n);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ae(a,this,"internal-error"),a.then(()=>{s||o(this.currentUser)}),"function"==typeof n){const l=e.addObserver(n,r,i);return()=>{s=!0,l()}}{const l=e.addObserver(n);return()=>{s=!0,l()}}}directlySetCurrentUser(e){var n=this;return se(function*(){n.currentUser&&n.currentUser!==e&&n._currentUser._stopProactiveRefresh(),e&&n.isProactiveRefreshEnabled&&e._startProactiveRefresh(),n.currentUser=e,e?yield n.assertedPersistence.setCurrentUser(e):yield n.assertedPersistence.removeCurrentUser()})()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Ae(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=z8(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var e=this;return se(function*(){var n;const r={"X-Client-Version":e.clientVersion};e.app.options.appId&&(r["X-Firebase-gmpid"]=e.app.options.appId);const i=yield null===(n=e.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===n?void 0:n.getHeartbeatsHeader();i&&(r["X-Firebase-Client"]=i);const o=yield e._getAppCheckToken();return o&&(r["X-Firebase-AppCheck"]=o),r})()}_getAppCheckToken(){var e=this;return se(function*(){var n;const r=yield null===(n=e.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===n?void 0:n.getToken();return null!=r&&r.error&&function Wie(t,...e){Cm.logLevel<=yt.WARN&&Cm.warn("Auth (".concat(bm,"): ").concat(t),...e)}("Error while retrieving App Check token: ".concat(r.error)),null==r?void 0:r.token})()}}class U8{constructor(e){this.auth=e,this.observer=null,this.addObserver=function ure(t,e){const n=new dre(t,e);return n.subscribe.bind(n)}(n=>this.observer=n)}get next(){return Ae(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Lf={loadJS:()=>se(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};(function H8(t){return"__".concat(t).concat(Math.floor(1e6*Math.random()))})("rcb"),new Mf(3e4,6e4),new Mf(2e3,1e4),new Mf(3e4,6e4),new Mf(5e3,15e3),encodeURIComponent("fac");var e,b6="@firebase/auth";class yae{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 n=this;return se(function*(){return n.assertAuthConfigured(),yield n.auth._initializationPromise,n.auth.currentUser?{accessToken:yield n.auth.currentUser.getIdToken(e)}:null})()}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const n=this.auth.onIdTokenChanged(r=>{e((null==r?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const n=this.internalListeners.get(e);n&&(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){Ae(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}null===(e=gm())||void 0===e||"_".concat("authIdTokenMaxAge"),function _oe(t){Lf=t}({loadJS:t=>new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=i=>{const o=qi("internal-error");o.customData=i,n(o)},r.type="text/javascript",r.charset="UTF-8",function Tae(){var t,e;return null!==(e=null===(t=document.getElementsByTagName("head"))||void 0===t?void 0:t[0])&&void 0!==e?e:document}().appendChild(r)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function wae(t){jc(new Ja("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;Ae(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:s,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:z8(t)},c=new moe(r,i,o,l);return function Toe(t,e){const n=(null==e?void 0:e.persistence)||[],r=(Array.isArray(n)?n:[n]).map(bs);null!=e&&e.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,null==e?void 0:e.popupRedirectResolver)}(c,n),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),jc(new Ja("auth-internal",e=>{const n=function An(t){return lo(t)}(e.getProvider("auth").getImmediate());return new yae(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),Ci(b6,"1.7.5",function bae(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(t)),Ci(b6,"1.7.5","esm2017")}("Browser");class S6{constructor(){return PC("auth")}}var al,A6,T6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},I6={};(function(){var t;function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function i(N,P,V){V||(V=0);var F=Array(16);if("string"==typeof P)for(var R=0;16>R;++R)F[R]=P.charCodeAt(V++)|P.charCodeAt(V++)<<8|P.charCodeAt(V++)<<16|P.charCodeAt(V++)<<24;else for(R=0;16>R;++R)F[R]=P[V++]|P[V++]<<8|P[V++]<<16|P[V++]<<24;var O=N.g[3],D=(P=N.g[0])+(O^(V=N.g[1])&((R=N.g[2])^O))+F[0]+3614090360&4294967295;D=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=(V=(R=(O=(P=V+(D<<7&4294967295|D>>>25))+((D=O+(R^P&(V^R))+F[1]+3905402710&4294967295)<<12&4294967295|D>>>20))+((D=R+(V^O&(P^V))+F[2]+606105819&4294967295)<<17&4294967295|D>>>15))+((D=V+(P^R&(O^P))+F[3]+3250441966&4294967295)<<22&4294967295|D>>>10))+((D=P+(O^V&(R^O))+F[4]+4118548399&4294967295)<<7&4294967295|D>>>25))+((D=O+(R^P&(V^R))+F[5]+1200080426&4294967295)<<12&4294967295|D>>>20))+((D=R+(V^O&(P^V))+F[6]+2821735955&4294967295)<<17&4294967295|D>>>15))+((D=V+(P^R&(O^P))+F[7]+4249261313&4294967295)<<22&4294967295|D>>>10))+((D=P+(O^V&(R^O))+F[8]+1770035416&4294967295)<<7&4294967295|D>>>25))+((D=O+(R^P&(V^R))+F[9]+2336552879&4294967295)<<12&4294967295|D>>>20))+((D=R+(V^O&(P^V))+F[10]+4294925233&4294967295)<<17&4294967295|D>>>15))+((D=V+(P^R&(O^P))+F[11]+2304563134&4294967295)<<22&4294967295|D>>>10))+((D=P+(O^V&(R^O))+F[12]+1804603682&4294967295)<<7&4294967295|D>>>25))+((D=O+(R^P&(V^R))+F[13]+4254626195&4294967295)<<12&4294967295|D>>>20))+((D=R+(V^O&(P^V))+F[14]+2792965006&4294967295)<<17&4294967295|D>>>15))+((D=V+(P^R&(O^P))+F[15]+1236535329&4294967295)<<22&4294967295|D>>>10))+((D=P+(R^O&(V^R))+F[1]+4129170786&4294967295)<<5&4294967295|D>>>27))+((D=O+(V^R&(P^V))+F[6]+3225465664&4294967295)<<9&4294967295|D>>>23))+((D=R+(P^V&(O^P))+F[11]+643717713&4294967295)<<14&4294967295|D>>>18))+((D=V+(O^P&(R^O))+F[0]+3921069994&4294967295)<<20&4294967295|D>>>12))+((D=P+(R^O&(V^R))+F[5]+3593408605&4294967295)<<5&4294967295|D>>>27))+((D=O+(V^R&(P^V))+F[10]+38016083&4294967295)<<9&4294967295|D>>>23))+((D=R+(P^V&(O^P))+F[15]+3634488961&4294967295)<<14&4294967295|D>>>18))+((D=V+(O^P&(R^O))+F[4]+3889429448&4294967295)<<20&4294967295|D>>>12))+((D=P+(R^O&(V^R))+F[9]+568446438&4294967295)<<5&4294967295|D>>>27))+((D=O+(V^R&(P^V))+F[14]+3275163606&4294967295)<<9&4294967295|D>>>23))+((D=R+(P^V&(O^P))+F[3]+4107603335&4294967295)<<14&4294967295|D>>>18))+((D=V+(O^P&(R^O))+F[8]+1163531501&4294967295)<<20&4294967295|D>>>12))+((D=P+(R^O&(V^R))+F[13]+2850285829&4294967295)<<5&4294967295|D>>>27))+((D=O+(V^R&(P^V))+F[2]+4243563512&4294967295)<<9&4294967295|D>>>23))+((D=R+(P^V&(O^P))+F[7]+1735328473&4294967295)<<14&4294967295|D>>>18))+((D=V+(O^P&(R^O))+F[12]+2368359562&4294967295)<<20&4294967295|D>>>12))+((D=P+(V^R^O)+F[5]+4294588738&4294967295)<<4&4294967295|D>>>28))+((D=O+(P^V^R)+F[8]+2272392833&4294967295)<<11&4294967295|D>>>21))+((D=R+(O^P^V)+F[11]+1839030562&4294967295)<<16&4294967295|D>>>16))+((D=V+(R^O^P)+F[14]+4259657740&4294967295)<<23&4294967295|D>>>9))+((D=P+(V^R^O)+F[1]+2763975236&4294967295)<<4&4294967295|D>>>28))+((D=O+(P^V^R)+F[4]+1272893353&4294967295)<<11&4294967295|D>>>21))+((D=R+(O^P^V)+F[7]+4139469664&4294967295)<<16&4294967295|D>>>16))+((D=V+(R^O^P)+F[10]+3200236656&4294967295)<<23&4294967295|D>>>9))+((D=P+(V^R^O)+F[13]+681279174&4294967295)<<4&4294967295|D>>>28))+((D=O+(P^V^R)+F[0]+3936430074&4294967295)<<11&4294967295|D>>>21))+((D=R+(O^P^V)+F[3]+3572445317&4294967295)<<16&4294967295|D>>>16))+((D=V+(R^O^P)+F[6]+76029189&4294967295)<<23&4294967295|D>>>9))+((D=P+(V^R^O)+F[9]+3654602809&4294967295)<<4&4294967295|D>>>28))+((D=O+(P^V^R)+F[12]+3873151461&4294967295)<<11&4294967295|D>>>21))+((D=R+(O^P^V)+F[15]+530742520&4294967295)<<16&4294967295|D>>>16))+((D=V+(R^O^P)+F[2]+3299628645&4294967295)<<23&4294967295|D>>>9))+((D=P+(R^(V|~O))+F[0]+4096336452&4294967295)<<6&4294967295|D>>>26))+((D=O+(V^(P|~R))+F[7]+1126891415&4294967295)<<10&4294967295|D>>>22))+((D=R+(P^(O|~V))+F[14]+2878612391&4294967295)<<15&4294967295|D>>>17))+((D=V+(O^(R|~P))+F[5]+4237533241&4294967295)<<21&4294967295|D>>>11))+((D=P+(R^(V|~O))+F[12]+1700485571&4294967295)<<6&4294967295|D>>>26))+((D=O+(V^(P|~R))+F[3]+2399980690&4294967295)<<10&4294967295|D>>>22))+((D=R+(P^(O|~V))+F[10]+4293915773&4294967295)<<15&4294967295|D>>>17))+((D=V+(O^(R|~P))+F[1]+2240044497&4294967295)<<21&4294967295|D>>>11))+((D=P+(R^(V|~O))+F[8]+1873313359&4294967295)<<6&4294967295|D>>>26))+((D=O+(V^(P|~R))+F[15]+4264355552&4294967295)<<10&4294967295|D>>>22))+((D=R+(P^(O|~V))+F[6]+2734768916&4294967295)<<15&4294967295|D>>>17))+((D=V+(O^(R|~P))+F[13]+1309151649&4294967295)<<21&4294967295|D>>>11))+((O=(P=V+((D=P+(R^(V|~O))+F[4]+4149444226&4294967295)<<6&4294967295|D>>>26))+((D=O+(V^(P|~R))+F[11]+3174756917&4294967295)<<10&4294967295|D>>>22))^((R=O+((D=R+(P^(O|~V))+F[2]+718787259&4294967295)<<15&4294967295|D>>>17))|~P))+F[9]+3951481745&4294967295,N.g[0]=N.g[0]+P&4294967295,N.g[1]=N.g[1]+(R+(D<<21&4294967295|D>>>11))&4294967295,N.g[2]=N.g[2]+R&4294967295,N.g[3]=N.g[3]+O&4294967295}function s(N,P){this.h=P;for(var V=[],F=!0,R=N.length-1;0<=R;R--){var O=0|N[R];F&&O==P||(V[R]=O,F=!1)}this.g=V}(function e(N,P){function V(){}V.prototype=P.prototype,N.D=P.prototype,N.prototype=new V,N.prototype.constructor=N,N.C=function(F,R,O){for(var D=Array(arguments.length-2),Se=2;Se<arguments.length;Se++)D[Se-2]=arguments[Se];return P.prototype[R].apply(F,D)}})(r,function n(){this.blockSize=-1}),r.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},r.prototype.u=function(N,P){void 0===P&&(P=N.length);for(var V=P-this.blockSize,F=this.B,R=this.h,O=0;O<P;){if(0==R)for(;O<=V;)i(this,N,O),O+=this.blockSize;if("string"==typeof N){for(;O<P;)if(F[R++]=N.charCodeAt(O++),R==this.blockSize){i(this,F),R=0;break}}else for(;O<P;)if(F[R++]=N[O++],R==this.blockSize){i(this,F),R=0;break}}this.h=R,this.o+=P},r.prototype.v=function(){var N=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);N[0]=128;for(var P=1;P<N.length-8;++P)N[P]=0;var V=8*this.o;for(P=N.length-8;P<N.length;++P)N[P]=255&V,V/=256;for(this.u(N),N=Array(16),P=V=0;4>P;++P)for(var F=0;32>F;F+=8)N[V++]=this.g[P]>>>F&255;return N};var a={};function l(N){return-128<=N&&128>N?function o(N,P){var V=a;return Object.prototype.hasOwnProperty.call(V,N)?V[N]:V[N]=P(N)}(N,function(P){return new s([0|P],0>P?-1:0)}):new s([0|N],0>N?-1:0)}function c(N){if(isNaN(N)||!isFinite(N))return d;if(0>N)return y(c(-N));for(var P=[],V=1,F=0;N>=V;F++)P[F]=N/V|0,V*=4294967296;return new s(P,0)}var d=l(0),h=l(1),p=l(16777216);function m(N){if(0!=N.h)return!1;for(var P=0;P<N.g.length;P++)if(0!=N.g[P])return!1;return!0}function _(N){return-1==N.h}function y(N){for(var P=N.g.length,V=[],F=0;F<P;F++)V[F]=~N.g[F];return new s(V,~N.h).add(h)}function E(N,P){return N.add(y(P))}function C(N,P){for(;(65535&N[P])!=N[P];)N[P+1]+=N[P]>>>16,N[P]&=65535,P++}function k(N,P){this.g=N,this.h=P}function j(N,P){if(m(P))throw Error("division by zero");if(m(N))return new k(d,d);if(_(N))return P=j(y(N),P),new k(y(P.g),y(P.h));if(_(P))return P=j(N,y(P)),new k(y(P.g),P.h);if(30<N.g.length){if(_(N)||_(P))throw Error("slowDivide_ only works with positive integers.");for(var V=h,F=P;0>=F.l(N);)V=q(V),F=q(F);var R=K(V,1),O=K(F,1);for(F=K(F,2),V=K(V,2);!m(F);){var D=O.add(F);0>=D.l(N)&&(R=R.add(V),O=D),F=K(F,1),V=K(V,1)}return P=E(N,R.j(P)),new k(R,P)}for(R=d;0<=N.l(P);){for(V=Math.max(1,Math.floor(N.m()/P.m())),F=48>=(F=Math.ceil(Math.log(V)/Math.LN2))?1:Math.pow(2,F-48),D=(O=c(V)).j(P);_(D)||0<D.l(N);)D=(O=c(V-=F)).j(P);m(O)&&(O=h),R=R.add(O),N=E(N,D)}return new k(R,N)}function q(N){for(var P=N.g.length+1,V=[],F=0;F<P;F++)V[F]=N.i(F)<<1|N.i(F-1)>>>31;return new s(V,N.h)}function K(N,P){var V=P>>5;P%=32;for(var F=N.g.length-V,R=[],O=0;O<F;O++)R[O]=0<P?N.i(O+V)>>>P|N.i(O+V+1)<<32-P:N.i(O+V);return new s(R,N.h)}(t=s.prototype).m=function(){if(_(this))return-y(this).m();for(var N=0,P=1,V=0;V<this.g.length;V++){var F=this.i(V);N+=(0<=F?F:4294967296+F)*P,P*=4294967296}return N},t.toString=function(N){if(2>(N=N||10)||36<N)throw Error("radix out of range: "+N);if(m(this))return"0";if(_(this))return"-"+y(this).toString(N);for(var P=c(Math.pow(N,6)),V=this,F="";;){var R=j(V,P).g,O=((0<(V=E(V,R.j(P))).g.length?V.g[0]:V.h)>>>0).toString(N);if(m(V=R))return O+F;for(;6>O.length;)O="0"+O;F=O+F}},t.i=function(N){return 0>N?0:N<this.g.length?this.g[N]:this.h},t.l=function(N){return _(N=E(this,N))?-1:m(N)?0:1},t.abs=function(){return _(this)?y(this):this},t.add=function(N){for(var P=Math.max(this.g.length,N.g.length),V=[],F=0,R=0;R<=P;R++){var O=F+(65535&this.i(R))+(65535&N.i(R)),D=(O>>>16)+(this.i(R)>>>16)+(N.i(R)>>>16);F=D>>>16,V[R]=(D&=65535)<<16|(O&=65535)}return new s(V,-2147483648&V[V.length-1]?-1:0)},t.j=function(N){if(m(this)||m(N))return d;if(_(this))return _(N)?y(this).j(y(N)):y(y(this).j(N));if(_(N))return y(this.j(y(N)));if(0>this.l(p)&&0>N.l(p))return c(this.m()*N.m());for(var P=this.g.length+N.g.length,V=[],F=0;F<2*P;F++)V[F]=0;for(F=0;F<this.g.length;F++)for(var R=0;R<N.g.length;R++){var O=this.i(F)>>>16,D=65535&this.i(F),Se=N.i(R)>>>16,Oe=65535&N.i(R);V[2*F+2*R]+=D*Oe,C(V,2*F+2*R),V[2*F+2*R+1]+=O*Oe,C(V,2*F+2*R+1),V[2*F+2*R+1]+=D*Se,C(V,2*F+2*R+1),V[2*F+2*R+2]+=O*Se,C(V,2*F+2*R+2)}for(F=0;F<P;F++)V[F]=V[2*F+1]<<16|V[2*F];for(F=P;F<2*P;F++)V[F]=0;return new s(V,0)},t.A=function(N){return j(this,N).h},t.and=function(N){for(var P=Math.max(this.g.length,N.g.length),V=[],F=0;F<P;F++)V[F]=this.i(F)&N.i(F);return new s(V,this.h&N.h)},t.or=function(N){for(var P=Math.max(this.g.length,N.g.length),V=[],F=0;F<P;F++)V[F]=this.i(F)|N.i(F);return new s(V,this.h|N.h)},t.xor=function(N){for(var P=Math.max(this.g.length,N.g.length),V=[],F=0;F<P;F++)V[F]=this.i(F)^N.i(F);return new s(V,this.h^N.h)},r.prototype.digest=r.prototype.v,r.prototype.reset=r.prototype.s,r.prototype.update=r.prototype.u,A6=I6.Md5=r,s.prototype.add=s.prototype.add,s.prototype.multiply=s.prototype.j,s.prototype.modulo=s.prototype.A,s.prototype.compare=s.prototype.l,s.prototype.toNumber=s.prototype.m,s.prototype.toString=s.prototype.toString,s.prototype.getBits=s.prototype.i,s.fromNumber=c,s.fromString=function u(N,P){if(0==N.length)throw Error("number format error: empty string");if(2>(P=P||10)||36<P)throw Error("radix out of range: "+P);if("-"==N.charAt(0))return y(u(N.substring(1),P));if(0<=N.indexOf("-"))throw Error('number format error: interior "-" character');for(var V=c(Math.pow(P,8)),F=d,R=0;R<N.length;R+=8){var O=Math.min(8,N.length-R),D=parseInt(N.substring(R,R+O),P);8>O?(O=c(Math.pow(P,O)),F=F.j(O).add(c(D))):F=(F=F.j(V)).add(c(D))}return F},al=I6.Integer=s}).apply(typeof T6<"u"?T6:typeof self<"u"?self:typeof window<"u"?window:{});var x6,P6,Uf,D6,Bm,jS,k6,M6,O6,Vm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cs={};(function(){var t,e="function"==typeof Object.defineProperties?Object.defineProperty:function(f,v,w){return f==Array.prototype||f==Object.prototype||(f[v]=w.value),f},r=function n(f){f=["object"==typeof globalThis&&globalThis,f,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof Vm&&Vm];for(var v=0;v<f.length;++v){var w=f[v];if(w&&w.Math==Math)return w}throw Error("Cannot find global object")}(this);!function i(f,v){if(v)e:{var w=r;f=f.split(".");for(var L=0;L<f.length-1;L++){var Z=f[L];if(!(Z in w))break e;w=w[Z]}(v=v(L=w[f=f[f.length-1]]))!=L&&null!=v&&e(w,f,{configurable:!0,writable:!0,value:v})}}("Array.prototype.values",function(f){return f||function(){return function o(f,v){f instanceof String&&(f+="");var w=0,L=!1,Z={next:function(){if(!L&&w<f.length){var le=w++;return{value:v(le,f[le]),done:!1}}return L=!0,{done:!0,value:void 0}}};return Z[Symbol.iterator]=function(){return Z},Z}(this,function(v,w){return w})}});var s=s||{},a=this||self;function l(f){var v=typeof f;return"array"==(v="object"!=v?v:f?Array.isArray(f)?"array":v:"null")||"object"==v&&"number"==typeof f.length}function c(f){var v=typeof f;return"object"==v&&null!=f||"function"==v}function u(f,v,w){return f.call.apply(f.bind,arguments)}function d(f,v,w){if(!f)throw Error();if(2<arguments.length){var L=Array.prototype.slice.call(arguments,2);return function(){var Z=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(Z,L),f.apply(v,Z)}}return function(){return f.apply(v,arguments)}}function h(f,v,w){return(h=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?u:d).apply(null,arguments)}function p(f,v){var w=Array.prototype.slice.call(arguments,1);return function(){var L=w.slice();return L.push.apply(L,arguments),f.apply(this,L)}}function m(f,v){function w(){}w.prototype=v.prototype,f.aa=v.prototype,f.prototype=new w,f.prototype.constructor=f,f.Qb=function(L,Z,le){for(var ke=Array(arguments.length-2),Qt=2;Qt<arguments.length;Qt++)ke[Qt-2]=arguments[Qt];return v.prototype[Z].apply(L,ke)}}function _(f){const v=f.length;if(0<v){const w=Array(v);for(let L=0;L<v;L++)w[L]=f[L];return w}return[]}function y(f,v){for(let w=1;w<arguments.length;w++){const L=arguments[w];if(l(L)){const Z=f.length||0,le=L.length||0;f.length=Z+le;for(let ke=0;ke<le;ke++)f[Z+ke]=L[ke]}else f.push(L)}}function C(f){return/^[\s\xa0]*$/.test(f)}function k(){var f=a.navigator;return f&&(f=f.userAgent)?f:""}function j(f){return j[" "](f),f}j[" "]=function(){};var q=!(-1==k().indexOf("Gecko")||-1!=k().toLowerCase().indexOf("webkit")&&-1==k().indexOf("Edge")||-1!=k().indexOf("Trident")||-1!=k().indexOf("MSIE")||-1!=k().indexOf("Edge"));function K(f,v,w){for(const L in f)v.call(w,f[L],L,f)}function P(f){const v={};for(const w in f)v[w]=f[w];return v}const V="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function F(f,v){let w,L;for(let Z=1;Z<arguments.length;Z++){for(w in L=arguments[Z],L)f[w]=L[w];for(let le=0;le<V.length;le++)w=V[le],Object.prototype.hasOwnProperty.call(L,w)&&(f[w]=L[w])}}function R(f){var v=1;f=f.split(":");const w=[];for(;0<v&&f.length;)w.push(f.shift()),v--;return f.length&&w.push(f.join(":")),w}function O(f){a.setTimeout(()=>{throw f},0)}function D(){var f=De;let v=null;return f.g&&(v=f.g,f.g=f.g.next,f.g||(f.h=null),v.next=null),v}var Oe=new class E{constructor(v,w){this.i=v,this.j=w,this.h=0,this.g=null}get(){let v;return 0<this.h?(this.h--,v=this.g,this.g=v.next,v.next=null):v=this.i(),v}}(()=>new W,f=>f.reset());class W{constructor(){this.next=this.g=this.h=null}set(v,w){this.h=v,this.g=w,this.next=null}reset(){this.next=this.g=this.h=null}}let ie,ae=!1,De=new class Se{constructor(){this.h=this.g=null}add(v,w){const L=Oe.get();L.set(v,w),this.h?this.h.next=L:this.g=L,this.h=L}},qe=()=>{const f=a.Promise.resolve(void 0);ie=()=>{f.then(Lt)}};var Lt=()=>{for(var f;f=D();){try{f.h.call(f.g)}catch(w){O(w)}var v=Oe;v.j(f),100>v.h&&(v.h++,f.next=v.g,v.g=f)}ae=!1};function mt(){this.s=this.s,this.C=this.C}function xt(f,v){this.type=f,this.g=this.target=v,this.defaultPrevented=!1}mt.prototype.s=!1,mt.prototype.ma=function(){this.s||(this.s=!0,this.N())},mt.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},xt.prototype.h=function(){this.defaultPrevented=!0};var wt=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var f=!1,v=Object.defineProperty({},"passive",{get:function(){f=!0}});try{const w=()=>{};a.addEventListener("test",w,v),a.removeEventListener("test",w,v)}catch(w){}return f}();function On(f,v){if(xt.call(this,f?f.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,f){var w=this.type=f.type,L=f.changedTouches&&f.changedTouches.length?f.changedTouches[0]:null;if(this.target=f.target||f.srcElement,this.g=v,v=f.relatedTarget){if(q){e:{try{j(v.nodeName);var Z=!0;break e}catch(le){}Z=!1}Z||(v=null)}}else"mouseover"==w?v=f.fromElement:"mouseout"==w&&(v=f.toElement);this.relatedTarget=v,L?(this.clientX=void 0!==L.clientX?L.clientX:L.pageX,this.clientY=void 0!==L.clientY?L.clientY:L.pageY,this.screenX=L.screenX||0,this.screenY=L.screenY||0):(this.clientX=void 0!==f.clientX?f.clientX:f.pageX,this.clientY=void 0!==f.clientY?f.clientY:f.pageY,this.screenX=f.screenX||0,this.screenY=f.screenY||0),this.button=f.button,this.key=f.key||"",this.ctrlKey=f.ctrlKey,this.altKey=f.altKey,this.shiftKey=f.shiftKey,this.metaKey=f.metaKey,this.pointerId=f.pointerId||0,this.pointerType="string"==typeof f.pointerType?f.pointerType:di[f.pointerType]||"",this.state=f.state,this.i=f,f.defaultPrevented&&On.aa.h.call(this)}}m(On,xt);var di={2:"touch",3:"pen",4:"mouse"};On.prototype.h=function(){On.aa.h.call(this);var f=this.i;f.preventDefault?f.preventDefault():f.returnValue=!1};var $t="closure_listenable_"+(1e6*Math.random()|0),Ft=0;function it(f,v,w,L,Z){this.listener=f,this.proxy=null,this.src=v,this.type=w,this.capture=!!L,this.ha=Z,this.key=++Ft,this.da=this.fa=!1}function ln(f){f.da=!0,f.listener=null,f.proxy=null,f.src=null,f.ha=null}function ir(f){this.src=f,this.g={},this.h=0}function po(f,v){var w=v.type;if(w in f.g){var le,L=f.g[w],Z=Array.prototype.indexOf.call(L,v,void 0);(le=0<=Z)&&Array.prototype.splice.call(L,Z,1),le&&(ln(v),0==f.g[w].length&&(delete f.g[w],f.h--))}}function Yo(f,v,w,L){for(var Z=0;Z<f.length;++Z){var le=f[Z];if(!le.da&&le.listener==v&&le.capture==!!w&&le.ha==L)return Z}return-1}ir.prototype.add=function(f,v,w,L,Z){var le=f.toString();(f=this.g[le])||(f=this.g[le]=[],this.h++);var ke=Yo(f,v,L,Z);return-1<ke?(v=f[ke],w||(v.fa=!1)):((v=new it(v,this.src,le,!!L,Z)).fa=w,f.push(v)),v};var go="closure_lm_"+(1e6*Math.random()|0),Ko={};function Wu(f,v,w,L,Z){if(L&&L.once)return O$(f,v,w,L,Z);if(Array.isArray(v)){for(var le=0;le<v.length;le++)Wu(f,v[le],w,L,Z);return null}return w=Mx(w),f&&f[$t]?f.K(v,w,c(L)?!!L.capture:!!L,Z):M$(f,v,w,!1,L,Z)}function M$(f,v,w,L,Z,le){if(!v)throw Error("Invalid event type");var ke=c(Z)?!!Z.capture:!!Z,Qt=Dx(f);if(Qt||(f[go]=Qt=new ir(f)),(w=Qt.add(v,w,L,ke,le)).proxy)return w;if(L=function d2e(){const v=f2e;return function f(w){return v.call(f.src,f.listener,w)}}(),w.proxy=L,L.src=f,L.listener=w,f.addEventListener)wt||(Z=ke),void 0===Z&&(Z=!1),f.addEventListener(v.toString(),L,Z);else if(f.attachEvent)f.attachEvent(N$(v.toString()),L);else{if(!f.addListener||!f.removeListener)throw Error("addEventListener and attachEvent are unavailable.");f.addListener(L)}return w}function O$(f,v,w,L,Z){if(Array.isArray(v)){for(var le=0;le<v.length;le++)O$(f,v[le],w,L,Z);return null}return w=Mx(w),f&&f[$t]?f.L(v,w,c(L)?!!L.capture:!!L,Z):M$(f,v,w,!0,L,Z)}function R$(f,v,w,L,Z){if(Array.isArray(v))for(var le=0;le<v.length;le++)R$(f,v[le],w,L,Z);else L=c(L)?!!L.capture:!!L,w=Mx(w),f&&f[$t]?(f=f.i,(v=String(v).toString())in f.g&&-1<(w=Yo(le=f.g[v],w,L,Z))&&(ln(le[w]),Array.prototype.splice.call(le,w,1),0==le.length&&(delete f.g[v],f.h--))):f&&(f=Dx(f))&&(v=f.g[v.toString()],f=-1,v&&(f=Yo(v,w,L,Z)),(w=-1<f?v[f]:null)&&Px(w))}function Px(f){if("number"!=typeof f&&f&&!f.da){var v=f.src;if(v&&v[$t])po(v.i,f);else{var w=f.type,L=f.proxy;v.removeEventListener?v.removeEventListener(w,L,f.capture):v.detachEvent?v.detachEvent(N$(w),L):v.addListener&&v.removeListener&&v.removeListener(L),(w=Dx(v))?(po(w,f),0==w.h&&(w.src=null,v[go]=null)):ln(f)}}}function N$(f){return f in Ko?Ko[f]:Ko[f]="on"+f}function f2e(f,v){if(f.da)f=!0;else{v=new On(v,this);var w=f.listener,L=f.ha||f.src;f.fa&&Px(f),f=w.call(L,v)}return f}function Dx(f){return(f=f[go])instanceof ir?f:null}var kx="__closure_events_fn_"+(1e9*Math.random()>>>0);function Mx(f){return"function"==typeof f?f:(f[kx]||(f[kx]=function(v){return f.handleEvent(v)}),f[kx])}function Or(){mt.call(this),this.i=new ir(this),this.M=this,this.F=null}function Yr(f,v){var w,L=f.F;if(L)for(w=[];L;L=L.F)w.push(L);if(f=f.M,L=v.type||v,"string"==typeof v)v=new xt(v,f);else if(v instanceof xt)v.target=v.target||f;else{var Z=v;F(v=new xt(L,f),Z)}if(Z=!0,w)for(var le=w.length-1;0<=le;le--){var ke=v.g=w[le];Z=Gy(ke,L,!0,v)&&Z}if(Z=Gy(ke=v.g=f,L,!0,v)&&Z,Z=Gy(ke,L,!1,v)&&Z,w)for(le=0;le<w.length;le++)Z=Gy(ke=v.g=w[le],L,!1,v)&&Z}function Gy(f,v,w,L){if(!(v=f.i.g[String(v)]))return!0;v=v.concat();for(var Z=!0,le=0;le<v.length;++le){var ke=v[le];if(ke&&!ke.da&&ke.capture==w){var Qt=ke.listener,mr=ke.ha||ke.src;ke.fa&&po(f.i,ke),Z=!1!==Qt.call(mr,L)&&Z}}return Z&&!L.defaultPrevented}function L$(f,v,w){if("function"==typeof f)w&&(f=h(f,w));else{if(!f||"function"!=typeof f.handleEvent)throw Error("Invalid listener argument");f=h(f.handleEvent,f)}return 2147483647<Number(v)?-1:a.setTimeout(f,v||0)}function F$(f){f.g=L$(()=>{f.g=null,f.i&&(f.i=!1,F$(f))},f.l);const v=f.h;f.h=null,f.m.apply(null,v)}m(Or,mt),Or.prototype[$t]=!0,Or.prototype.removeEventListener=function(f,v,w,L){R$(this,f,v,w,L)},Or.prototype.N=function(){if(Or.aa.N.call(this),this.i){var v,f=this.i;for(v in f.g){for(var w=f.g[v],L=0;L<w.length;L++)ln(w[L]);delete f.g[v],f.h--}}this.F=null},Or.prototype.K=function(f,v,w,L){return this.i.add(String(f),v,!1,w,L)},Or.prototype.L=function(f,v,w,L){return this.i.add(String(f),v,!0,w,L)};class h2e extends mt{constructor(v,w){super(),this.m=v,this.l=w,this.h=null,this.i=!1,this.g=null}j(v){this.h=arguments,this.g?this.i=!0:F$(this)}N(){super.N(),this.g&&(a.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function $h(f){mt.call(this),this.h=f,this.g={}}m($h,mt);var V$=[];function B$(f){K(f.g,function(v,w){this.g.hasOwnProperty(w)&&Px(v)},f),f.g={}}$h.prototype.N=function(){$h.aa.N.call(this),B$(this)},$h.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Ox=a.JSON.stringify,p2e=a.JSON.parse,g2e=class{stringify(f){return a.JSON.stringify(f,void 0)}parse(f){return a.JSON.parse(f,void 0)}};function Rx(){}function z$(){}Rx.prototype.h=null;var zh={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function Nx(){xt.call(this,"d")}function Lx(){xt.call(this,"c")}m(Nx,xt),m(Lx,xt);var Rl={},U$=null;function qy(){return U$=U$||new Or}function H$(f){xt.call(this,Rl.La,f)}function Uh(f){const v=qy();Yr(v,new H$(v))}function j$(f,v){xt.call(this,Rl.STAT_EVENT,f),this.stat=v}function Kr(f){const v=qy();Yr(v,new j$(v,f))}function G$(f,v){xt.call(this,Rl.Ma,f),this.size=v}function Hh(f,v){if("function"!=typeof f)throw Error("Fn must not be null and must be a function");return a.setTimeout(function(){f()},v)}function jh(){this.g=!0}function Yu(f,v,w,L){f.info(function(){return"XMLHTTP TEXT ("+v+"): "+function y2e(f,v){if(!f.g)return v;if(!v)return null;try{var w=JSON.parse(v);if(w)for(f=0;f<w.length;f++)if(Array.isArray(w[f])){var L=w[f];if(!(2>L.length)){var Z=L[1];if(Array.isArray(Z)&&!(1>Z.length)){var le=Z[0];if("noop"!=le&&"stop"!=le&&"close"!=le)for(var ke=1;ke<Z.length;ke++)Z[ke]=""}}}return Ox(w)}catch(Qt){return v}}(f,w)+(L?" "+L:"")})}Rl.La="serverreachability",m(H$,xt),Rl.STAT_EVENT="statevent",m(j$,xt),Rl.Ma="timingevent",m(G$,xt),jh.prototype.xa=function(){this.g=!1},jh.prototype.info=function(){};var Fx,Wy={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},q$={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function Yy(){}function Ia(f,v,w,L){this.j=f,this.i=v,this.l=w,this.R=L||1,this.U=new $h(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new W$}function W$(){this.i=null,this.g="",this.h=!1}m(Yy,Rx),Yy.prototype.g=function(){return new XMLHttpRequest},Yy.prototype.i=function(){return{}},Fx=new Yy;var Y$={},Vx={};function Bx(f,v,w){f.L=1,f.v=Zy(Ds(v)),f.m=w,f.P=!0,K$(f,null)}function K$(f,v){f.F=Date.now(),Ky(f),f.A=Ds(f.v);var w=f.A,L=f.R;Array.isArray(L)||(L=[String(L)]),cz(w.i,"t",L),f.C=0,w=f.j.J,f.h=new W$,f.g=Az(f.j,w?v:null,!f.m),0<f.O&&(f.M=new h2e(h(f.Y,f,f.g),f.O)),v=f.U,w=f.g,L=f.ca;var Z="readystatechange";Array.isArray(Z)||(Z&&(V$[0]=Z.toString()),Z=V$);for(var le=0;le<Z.length;le++){var ke=Wu(w,Z[le],L||v.handleEvent,!1,v.h||v);if(!ke)break;v.g[ke.key]=ke}v=f.H?P(f.H):{},f.m?(f.u||(f.u="POST"),v["Content-Type"]="application/x-www-form-urlencoded",f.g.ea(f.A,f.u,f.m,v)):(f.u="GET",f.g.ea(f.A,f.u,null,v)),Uh(),function m2e(f,v,w,L,Z,le){f.info(function(){if(f.g)if(le)for(var ke="",Qt=le.split("&"),mr=0;mr<Qt.length;mr++){var kt=Qt[mr].split("=");if(1<kt.length){var Rr=kt[0];kt=kt[1];var Nr=Rr.split("_");ke=2<=Nr.length&&"type"==Nr[1]?ke+(Rr+"=")+kt+"&":ke+(Rr+"=redacted&")}}else ke=null;else ke=le;return"XMLHTTP REQ ("+L+") [attempt "+Z+"]: "+v+"\n"+w+"\n"+ke})}(f.i,f.u,f.A,f.l,f.R,f.m)}function Q$(f){return!!f.g&&"GET"==f.u&&2!=f.L&&f.j.Ca}function b2e(f,v){var w=f.C,L=v.indexOf("\n",w);return-1==L?Vx:(w=Number(v.substring(w,L)),isNaN(w)?Y$:(L+=1)+w>v.length?Vx:(v=v.slice(L,L+w),f.C=L+w,v))}function Ky(f){f.S=Date.now()+f.I,X$(f,f.I)}function X$(f,v){if(null!=f.B)throw Error("WatchDog timer not null");f.B=Hh(h(f.ba,f),v)}function $x(f){f.B&&(a.clearTimeout(f.B),f.B=null)}function Gh(f){0==f.j.G||f.J||Ez(f.j,f)}function Nl(f){$x(f);var v=f.M;v&&"function"==typeof v.ma&&v.ma(),f.M=null,B$(f.U),f.g&&(v=f.g,f.g=null,v.abort(),v.ma())}function zx(f,v){try{var w=f.j;if(0!=w.G&&(w.g==f||Ux(w.h,f)))if(!f.K&&Ux(w.h,f)&&3==w.G){try{var L=w.Da.g.parse(v)}catch(kt){L=null}if(Array.isArray(L)&&3==L.length){var Z=L;if(0==Z[0]){e:if(!w.u){if(w.g){if(!(w.g.F+3e3<f.F))break e;r0(w),t0(w)}qx(w),Kr(18)}}else w.za=Z[1],0<w.za-w.T&&37500>Z[2]&&w.F&&0==w.v&&!w.C&&(w.C=Hh(h(w.Za,w),6e3));if(1>=ez(w.h)&&w.ca){try{w.ca()}catch(kt){}w.ca=void 0}}else Fl(w,11)}else if((f.K||w.g==f)&&r0(w),!C(v))for(Z=w.Da.g.parse(v),v=0;v<Z.length;v++){let kt=Z[v];if(w.T=kt[0],kt=kt[1],2==w.G)if("c"==kt[0]){w.K=kt[1],w.ia=kt[2];const Rr=kt[3];null!=Rr&&(w.la=Rr,w.j.info("VER="+w.la));const Nr=kt[4];null!=Nr&&(w.Aa=Nr,w.j.info("SVER="+w.Aa));const Xu=kt[5];null!=Xu&&"number"==typeof Xu&&0<Xu&&(w.L=L=1.5*Xu,w.j.info("backChannelRequestTimeoutMs_="+L)),L=w;const mo=f.g;if(mo){const s0=mo.g?mo.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(s0){var le=L.h;le.g||-1==s0.indexOf("spdy")&&-1==s0.indexOf("quic")&&-1==s0.indexOf("h2")||(le.j=le.l,le.g=new Set,le.h&&(Hx(le,le.h),le.h=null))}if(L.D){const Yx=mo.g?mo.g.getResponseHeader("X-HTTP-Session-Id"):null;Yx&&(L.ya=Yx,cn(L.I,L.D,Yx))}}w.G=3,w.l&&w.l.ua(),w.ba&&(w.R=Date.now()-f.F,w.j.info("Handshake RTT: "+w.R+"ms"));var ke=f;if((L=w).qa=Iz(L,L.J?L.ia:null,L.W),ke.K){tz(L.h,ke);var Qt=ke,mr=L.L;mr&&(Qt.I=mr),Qt.B&&($x(Qt),Ky(Qt)),L.g=ke}else wz(L);0<w.i.length&&n0(w)}else"stop"!=kt[0]&&"close"!=kt[0]||Fl(w,7);else 3==w.G&&("stop"==kt[0]||"close"==kt[0]?"stop"==kt[0]?Fl(w,7):Gx(w):"noop"!=kt[0]&&w.l&&w.l.ta(kt),w.v=0)}Uh()}catch(kt){}}function Z$(f){this.l=f||10,f=a.PerformanceNavigationTiming?0<(f=a.performance.getEntriesByType("navigation")).length&&("hq"==f[0].nextHopProtocol||"h2"==f[0].nextHopProtocol):!!(a.chrome&&a.chrome.loadTimes&&a.chrome.loadTimes()&&a.chrome.loadTimes().wasFetchedViaSpdy),this.j=f?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function J$(f){return!!f.h||!!f.g&&f.g.size>=f.j}function ez(f){return f.h?1:f.g?f.g.size:0}function Ux(f,v){return f.h?f.h==v:!!f.g&&f.g.has(v)}function Hx(f,v){f.g?f.g.add(v):f.h=v}function tz(f,v){f.h&&f.h==v?f.h=null:f.g&&f.g.has(v)&&f.g.delete(v)}function nz(f){if(null!=f.h)return f.i.concat(f.h.D);if(null!=f.g&&0!==f.g.size){let v=f.i;for(const w of f.g.values())v=v.concat(w.D);return v}return _(f.i)}function rz(f,v){if(f.forEach&&"function"==typeof f.forEach)f.forEach(v,void 0);else if(l(f)||"string"==typeof f)Array.prototype.forEach.call(f,v,void 0);else for(var w=function E2e(f){if(f.na&&"function"==typeof f.na)return f.na();if(!f.V||"function"!=typeof f.V){if(typeof Map<"u"&&f instanceof Map)return Array.from(f.keys());if(!(typeof Set<"u"&&f instanceof Set)){if(l(f)||"string"==typeof f){var v=[];f=f.length;for(var w=0;w<f;w++)v.push(w);return v}v=[],w=0;for(const L in f)v[w++]=L;return v}}}(f),L=function C2e(f){if(f.V&&"function"==typeof f.V)return f.V();if(typeof Map<"u"&&f instanceof Map||typeof Set<"u"&&f instanceof Set)return Array.from(f.values());if("string"==typeof f)return f.split("");if(l(f)){for(var v=[],w=f.length,L=0;L<w;L++)v.push(f[L]);return v}for(L in v=[],w=0,f)v[w++]=f[L];return v}(f),Z=L.length,le=0;le<Z;le++)v.call(void 0,L[le],w&&w[le],f)}Ia.prototype.ca=function(f){f=f.target;const v=this.M;v&&3==ks(f)?v.j():this.Y(f)},Ia.prototype.Y=function(f){try{if(f==this.g)e:{const Nr=ks(this.g);var v=this.g.Ba();if(this.g.Z(),!(3>Nr)&&(3!=Nr||this.g&&(this.h.h||this.g.oa()||mz(this.g)))){this.J||4!=Nr||7==v||Uh(),$x(this);var w=this.g.Z();this.X=w;t:if(Q$(this)){var L=mz(this.g);f="";var Z=L.length,le=4==ks(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Nl(this),Gh(this);var ke="";break t}this.h.i=new a.TextDecoder}for(v=0;v<Z;v++)this.h.h=!0,f+=this.h.i.decode(L[v],{stream:!(le&&v==Z-1)});L.length=0,this.h.g+=f,this.C=0,ke=this.h.g}else ke=this.g.oa();if(this.o=200==w,function _2e(f,v,w,L,Z,le,ke){f.info(function(){return"XMLHTTP RESP ("+L+") [ attempt "+Z+"]: "+v+"\n"+w+"\n"+le+" "+ke})}(this.i,this.u,this.A,this.l,this.R,Nr,w),this.o){if(this.T&&!this.K){t:{if(this.g){var Qt,mr=this.g;if((Qt=mr.g?mr.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!C(Qt)){var kt=Qt;break t}}kt=null}if(!(w=kt)){this.o=!1,this.s=3,Kr(12),Nl(this),Gh(this);break e}Yu(this.i,this.l,w,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,zx(this,w)}if(this.P){let mo;for(w=!0;!this.J&&this.C<ke.length;){if(mo=b2e(this,ke),mo==Vx){4==Nr&&(this.s=4,Kr(14),w=!1),Yu(this.i,this.l,null,"[Incomplete Response]");break}if(mo==Y$){this.s=4,Kr(15),Yu(this.i,this.l,ke,"[Invalid Chunk]"),w=!1;break}Yu(this.i,this.l,mo,null),zx(this,mo)}if(Q$(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=Nr||0!=ke.length||this.h.h||(this.s=1,Kr(16),w=!1),this.o=this.o&&w,w){if(0<ke.length&&!this.W){this.W=!0;var Rr=this.j;Rr.g==this&&Rr.ba&&!Rr.M&&(Rr.j.info("Great, no buffering proxy detected. Bytes received: "+ke.length),Wx(Rr),Rr.M=!0,Kr(11))}}else Yu(this.i,this.l,ke,"[Invalid Chunked Response]"),Nl(this),Gh(this)}else Yu(this.i,this.l,ke,null),zx(this,ke);4==Nr&&Nl(this),this.o&&!this.J&&(4==Nr?Ez(this.j,this):(this.o=!1,Ky(this)))}else(function F2e(f){const v={};f=(f.g&&2<=ks(f)&&f.g.getAllResponseHeaders()||"").split("\r\n");for(let L=0;L<f.length;L++){if(C(f[L]))continue;var w=R(f[L]);const Z=w[0];if("string"!=typeof(w=w[1]))continue;w=w.trim();const le=v[Z]||[];v[Z]=le,le.push(w)}!function N(f,v){for(const w in f)v.call(void 0,f[w],w,f)}(v,function(L){return L.join(", ")})})(this.g),400==w&&0<ke.indexOf("Unknown SID")?(this.s=3,Kr(12)):(this.s=0,Kr(13)),Nl(this),Gh(this)}}}catch(Nr){}},Ia.prototype.cancel=function(){this.J=!0,Nl(this)},Ia.prototype.ba=function(){this.B=null;const f=Date.now();0<=f-this.S?(function v2e(f,v){f.info(function(){return"TIMEOUT: "+v})}(this.i,this.A),2!=this.L&&(Uh(),Kr(17)),Nl(this),this.s=2,Gh(this)):X$(this,this.S-f)},Z$.prototype.cancel=function(){if(this.i=nz(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const f of this.g.values())f.cancel();this.g.clear()}};var iz=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Ll(f){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,f instanceof Ll){this.h=f.h,Qy(this,f.j),this.o=f.o,this.g=f.g,Xy(this,f.s),this.l=f.l;var v=f.i,w=new Yh;w.i=v.i,v.g&&(w.g=new Map(v.g),w.h=v.h),oz(this,w),this.m=f.m}else f&&(v=String(f).match(iz))?(this.h=!1,Qy(this,v[1]||"",!0),this.o=qh(v[2]||""),this.g=qh(v[3]||"",!0),Xy(this,v[4]),this.l=qh(v[5]||"",!0),oz(this,v[6]||"",!0),this.m=qh(v[7]||"")):(this.h=!1,this.i=new Yh(null,this.h))}function Ds(f){return new Ll(f)}function Qy(f,v,w){f.j=w?qh(v,!0):v,f.j&&(f.j=f.j.replace(/:$/,""))}function Xy(f,v){if(v){if(v=Number(v),isNaN(v)||0>v)throw Error("Bad port number "+v);f.s=v}else f.s=null}function oz(f,v,w){v instanceof Yh?(f.i=v,function D2e(f,v){v&&!f.j&&(Aa(f),f.i=null,f.g.forEach(function(w,L){var Z=L.toLowerCase();L!=Z&&(az(this,L),cz(this,Z,w))},f)),f.j=v}(f.i,f.h)):(w||(v=Wh(v,x2e)),f.i=new Yh(v,f.h))}function cn(f,v,w){f.i.set(v,w)}function Zy(f){return cn(f,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),f}function qh(f,v){return f?v?decodeURI(f.replace(/%25/g,"%2525")):decodeURIComponent(f):""}function Wh(f,v,w){return"string"==typeof f?(f=encodeURI(f).replace(v,T2e),w&&(f=f.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f):null}function T2e(f){return"%"+((f=f.charCodeAt(0))>>4&15).toString(16)+(15&f).toString(16)}Ll.prototype.toString=function(){var f=[],v=this.j;v&&f.push(Wh(v,sz,!0),":");var w=this.g;return(w||"file"==v)&&(f.push("//"),(v=this.o)&&f.push(Wh(v,sz,!0),"@"),f.push(encodeURIComponent(String(w)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(w=this.s)&&f.push(":",String(w))),(w=this.l)&&(this.g&&"/"!=w.charAt(0)&&f.push("/"),f.push(Wh(w,"/"==w.charAt(0)?A2e:I2e,!0))),(w=this.i.toString())&&f.push("?",w),(w=this.m)&&f.push("#",Wh(w,P2e)),f.join("")};var f,sz=/[#\/\?@]/g,I2e=/[#\?:]/g,A2e=/[#\?]/g,x2e=/[#\?@]/g,P2e=/#/g;function Yh(f,v){this.h=this.g=null,this.i=f||null,this.j=!!v}function Aa(f){f.g||(f.g=new Map,f.h=0,f.i&&function S2e(f,v){if(f){f=f.split("&");for(var w=0;w<f.length;w++){var L=f[w].indexOf("="),Z=null;if(0<=L){var le=f[w].substring(0,L);Z=f[w].substring(L+1)}else le=f[w];v(le,Z?decodeURIComponent(Z.replace(/\+/g," ")):"")}}}(f.i,function(v,w){f.add(decodeURIComponent(v.replace(/\+/g," ")),w)}))}function az(f,v){Aa(f),v=Ku(f,v),f.g.has(v)&&(f.i=null,f.h-=f.g.get(v).length,f.g.delete(v))}function lz(f,v){return Aa(f),v=Ku(f,v),f.g.has(v)}function cz(f,v,w){az(f,v),0<w.length&&(f.i=null,f.g.set(Ku(f,v),_(w)),f.h+=w.length)}function Ku(f,v){return v=String(v),f.j&&(v=v.toLowerCase()),v}function xa(f,v,w,L,Z){try{Z&&(Z.onload=null,Z.onerror=null,Z.onabort=null,Z.ontimeout=null),L(w)}catch(le){}}function O2e(){this.g=new g2e}function R2e(f,v,w){const L=w||"";try{rz(f,function(Z,le){let ke=Z;c(Z)&&(ke=Ox(Z)),v.push(L+le+"="+encodeURIComponent(ke))})}catch(Z){throw v.push(L+"type="+encodeURIComponent("_badmap")),Z}}function Kh(f){this.l=f.Ub||null,this.j=f.eb||!1}function Jy(f,v){Or.call(this),this.D=f,this.o=v,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}function uz(f){f.j.read().then(f.Pa.bind(f)).catch(f.ga.bind(f))}function Qh(f){f.readyState=4,f.l=null,f.j=null,f.v=null,Xh(f)}function Xh(f){f.onreadystatechange&&f.onreadystatechange.call(f)}function dz(f){let v="";return K(f,function(w,L){v+=L,v+=":",v+=w,v+="\r\n"}),v}function jx(f,v,w){e:{for(L in w){var L=!1;break e}L=!0}L||(w=dz(w),"string"==typeof f?null!=w&&encodeURIComponent(String(w)):cn(f,v,w))}function En(f){Or.call(this),this.headers=new Map,this.o=f||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}(t=Yh.prototype).add=function(f,v){Aa(this),this.i=null,f=Ku(this,f);var w=this.g.get(f);return w||this.g.set(f,w=[]),w.push(v),this.h+=1,this},t.forEach=function(f,v){Aa(this),this.g.forEach(function(w,L){w.forEach(function(Z){f.call(v,Z,L,this)},this)},this)},t.na=function(){Aa(this);const f=Array.from(this.g.values()),v=Array.from(this.g.keys()),w=[];for(let L=0;L<v.length;L++){const Z=f[L];for(let le=0;le<Z.length;le++)w.push(v[L])}return w},t.V=function(f){Aa(this);let v=[];if("string"==typeof f)lz(this,f)&&(v=v.concat(this.g.get(Ku(this,f))));else{f=Array.from(this.g.values());for(let w=0;w<f.length;w++)v=v.concat(f[w])}return v},t.set=function(f,v){return Aa(this),this.i=null,lz(this,f=Ku(this,f))&&(this.h-=this.g.get(f).length),this.g.set(f,[v]),this.h+=1,this},t.get=function(f,v){return f&&0<(f=this.V(f)).length?String(f[0]):v},t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const f=[],v=Array.from(this.g.keys());for(var w=0;w<v.length;w++){var L=v[w];const le=encodeURIComponent(String(L)),ke=this.V(L);for(L=0;L<ke.length;L++){var Z=le;""!==ke[L]&&(Z+="="+encodeURIComponent(String(ke[L]))),f.push(Z)}}return this.i=f.join("&")},m(Kh,Rx),Kh.prototype.g=function(){return new Jy(this.l,this.j)},Kh.prototype.i=(f={},function(){return f}),m(Jy,Or),(t=Jy.prototype).open=function(f,v){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.B=f,this.A=v,this.readyState=1,Xh(this)},t.send=function(f){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const v={headers:this.u,method:this.B,credentials:this.m,cache:void 0};f&&(v.body=f),(this.D||a).fetch(new Request(this.A,v)).then(this.Sa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.u=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,Qh(this)),this.readyState=0},t.Sa=function(f){if(this.g&&(this.l=f,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=f.headers,this.readyState=2,Xh(this)),this.g&&(this.readyState=3,Xh(this),this.g)))if("arraybuffer"===this.responseType)f.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof a.ReadableStream<"u"&&"body"in f){if(this.j=f.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;uz(this)}else f.text().then(this.Ra.bind(this),this.ga.bind(this))},t.Pa=function(f){if(this.g){if(this.o&&f.value)this.response.push(f.value);else if(!this.o){var v=f.value?f.value:new Uint8Array(0);(v=this.v.decode(v,{stream:!f.done}))&&(this.response=this.responseText+=v)}f.done?Qh(this):Xh(this),3==this.readyState&&uz(this)}},t.Ra=function(f){this.g&&(this.response=this.responseText=f,Qh(this))},t.Qa=function(f){this.g&&(this.response=f,Qh(this))},t.ga=function(){this.g&&Qh(this)},t.setRequestHeader=function(f,v){this.u.append(f,v)},t.getResponseHeader=function(f){return this.h&&this.h.get(f.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const f=[],v=this.h.entries();for(var w=v.next();!w.done;)f.push((w=w.value)[0]+": "+w[1]),w=v.next();return f.join("\r\n")},Object.defineProperty(Jy.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(f){this.m=f?"include":"same-origin"}}),m(En,Or);var N2e=/^https?$/i,L2e=["POST","PUT"];function fz(f,v){f.h=!1,f.g&&(f.j=!0,f.g.abort(),f.j=!1),f.l=v,f.m=5,hz(f),e0(f)}function hz(f){f.A||(f.A=!0,Yr(f,"complete"),Yr(f,"error"))}function pz(f){if(f.h&&typeof s<"u"&&(!f.v[1]||4!=ks(f)||2!=f.Z()))if(f.u&&4==ks(f))L$(f.Ea,0,f);else if(Yr(f,"readystatechange"),4==ks(f)){f.h=!1;try{const ke=f.Z();e:switch(ke){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var v=!0;break e;default:v=!1}var w;if(!(w=v)){var L;if(L=0===ke){var Z=String(f.D).match(iz)[1]||null;!Z&&a.self&&a.self.location&&(Z=a.self.location.protocol.slice(0,-1)),L=!N2e.test(Z?Z.toLowerCase():"")}w=L}if(w)Yr(f,"complete"),Yr(f,"success");else{f.m=6;try{var le=2<ks(f)?f.g.statusText:""}catch(Qt){le=""}f.l=le+" ["+f.Z()+"]",hz(f)}}finally{e0(f)}}}function e0(f,v){if(f.g){gz(f);const w=f.g,L=f.v[0]?()=>{}:null;f.g=null,f.v=null,v||Yr(f,"ready");try{w.onreadystatechange=L}catch(Z){}}}function gz(f){f.I&&(a.clearTimeout(f.I),f.I=null)}function ks(f){return f.g?f.g.readyState:0}function mz(f){try{if(!f.g)return null;if("response"in f.g)return f.g.response;switch(f.H){case"":case"text":return f.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in f.g)return f.g.mozResponseArrayBuffer}return null}catch(v){return null}}function Zh(f,v,w){return w&&w.internalChannelParams&&w.internalChannelParams[f]||v}function _z(f){this.Aa=0,this.i=[],this.j=new jh,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Zh("failFast",!1,f),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Zh("baseRetryDelayMs",5e3,f),this.cb=Zh("retryDelaySeedMs",1e4,f),this.Wa=Zh("forwardChannelMaxRetries",2,f),this.wa=Zh("forwardChannelRequestTimeoutMs",2e4,f),this.pa=f&&f.xmlHttpFactory||void 0,this.Xa=f&&f.Tb||void 0,this.Ca=f&&f.useFetchStreams||!1,this.L=void 0,this.J=f&&f.supportsCrossDomainXhr||!1,this.K="",this.h=new Z$(f&&f.concurrentRequestLimit),this.Da=new O2e,this.P=f&&f.fastHandshake||!1,this.O=f&&f.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=f&&f.Rb||!1,f&&f.xa&&this.j.xa(),f&&f.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&f&&f.detectBufferingProxy||!1,this.ja=void 0,f&&f.longPollingTimeout&&0<f.longPollingTimeout&&(this.ja=f.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}function Gx(f){if(vz(f),3==f.G){var v=f.U++,w=Ds(f.I);if(cn(w,"SID",f.K),cn(w,"RID",v),cn(w,"TYPE","terminate"),Jh(f,w),(v=new Ia(f,f.j,v)).L=2,v.v=Zy(Ds(w)),w=!1,a.navigator&&a.navigator.sendBeacon)try{w=a.navigator.sendBeacon(v.v.toString(),"")}catch(L){}!w&&a.Image&&((new Image).src=v.v,w=!0),w||(v.g=Az(v.j,null),v.g.ea(v.v)),v.F=Date.now(),Ky(v)}Tz(f)}function t0(f){f.g&&(Wx(f),f.g.cancel(),f.g=null)}function vz(f){t0(f),f.u&&(a.clearTimeout(f.u),f.u=null),r0(f),f.h.cancel(),f.s&&("number"==typeof f.s&&a.clearTimeout(f.s),f.s=null)}function n0(f){if(!J$(f.h)&&!f.s){f.s=!0;var v=f.Ga;ie||qe(),ae||(ie(),ae=!0),De.add(v,f),f.B=0}}function yz(f,v){var w;w=v?v.l:f.U++;const L=Ds(f.I);cn(L,"SID",f.K),cn(L,"RID",w),cn(L,"AID",f.T),Jh(f,L),f.m&&f.o&&jx(L,f.m,f.o),w=new Ia(f,f.j,w,f.B+1),null===f.m&&(w.H=f.o),v&&(f.i=v.D.concat(f.i)),v=bz(f,w,1e3),w.I=Math.round(.5*f.wa)+Math.round(.5*f.wa*Math.random()),Hx(f.h,w),Bx(w,L,v)}function Jh(f,v){f.H&&K(f.H,function(w,L){cn(v,L,w)}),f.l&&rz({},function(w,L){cn(v,L,w)})}function bz(f,v,w){w=Math.min(f.i.length,w);var L=f.l?h(f.l.Na,f.l,f):null;e:{var Z=f.i;let le=-1;for(;;){const ke=["count="+w];-1==le?0<w?(le=Z[0].g,ke.push("ofs="+le)):le=0:ke.push("ofs="+le);let Qt=!0;for(let mr=0;mr<w;mr++){let kt=Z[mr].g;const Rr=Z[mr].map;if(kt-=le,0>kt)le=Math.max(0,Z[mr].g-100),Qt=!1;else try{R2e(Rr,ke,"req"+kt+"_")}catch(Nr){L&&L(Rr)}}if(Qt){L=ke.join("&");break e}}}return f=f.i.splice(0,w),v.D=f,L}function wz(f){if(!f.g&&!f.u){f.Y=1;var v=f.Fa;ie||qe(),ae||(ie(),ae=!0),De.add(v,f),f.v=0}}function qx(f){return!(f.g||f.u||3<=f.v||(f.Y++,f.u=Hh(h(f.Fa,f),Sz(f,f.v)),f.v++,0))}function Wx(f){null!=f.A&&(a.clearTimeout(f.A),f.A=null)}function Cz(f){f.g=new Ia(f,f.j,"rpc",f.Y),null===f.m&&(f.g.H=f.o),f.g.O=0;var v=Ds(f.qa);cn(v,"RID","rpc"),cn(v,"SID",f.K),cn(v,"AID",f.T),cn(v,"CI",f.F?"0":"1"),!f.F&&f.ja&&cn(v,"TO",f.ja),cn(v,"TYPE","xmlhttp"),Jh(f,v),f.m&&f.o&&jx(v,f.m,f.o),f.L&&(f.g.I=f.L);var w=f.g;f=f.ia,w.L=1,w.v=Zy(Ds(v)),w.m=null,w.P=!0,K$(w,f)}function r0(f){null!=f.C&&(a.clearTimeout(f.C),f.C=null)}function Ez(f,v){var w=null;if(f.g==v){r0(f),Wx(f),f.g=null;var L=2}else{if(!Ux(f.h,v))return;w=v.D,tz(f.h,v),L=1}if(0!=f.G)if(v.o)if(1==L){w=v.m?v.m.length:0,v=Date.now()-v.F;var Z=f.B;Yr(L=qy(),new G$(L,w)),n0(f)}else wz(f);else if(3==(Z=v.s)||0==Z&&0<v.X||!(1==L&&function V2e(f,v){return!(ez(f.h)>=f.h.j-(f.s?1:0)||(f.s?(f.i=v.D.concat(f.i),0):1==f.G||2==f.G||f.B>=(f.Va?0:f.Wa)||(f.s=Hh(h(f.Ga,f,v),Sz(f,f.B)),f.B++,0)))}(f,v)||2==L&&qx(f)))switch(w&&0<w.length&&(v=f.h,v.i=v.i.concat(w)),Z){case 1:Fl(f,5);break;case 4:Fl(f,10);break;case 3:Fl(f,6);break;default:Fl(f,2)}}function Sz(f,v){let w=f.Ta+Math.floor(Math.random()*f.cb);return f.isActive()||(w*=2),w*v}function Fl(f,v){if(f.j.info("Error code "+v),2==v){var w=h(f.fb,f),L=f.Xa;const Z=!L;L=new Ll(L||"//www.google.com/images/cleardot.gif"),a.location&&"http"==a.location.protocol||Qy(L,"https"),Zy(L),Z?function k2e(f,v){const w=new jh;if(a.Image){const L=new Image;L.onload=p(xa,w,"TestLoadImage: loaded",!0,v,L),L.onerror=p(xa,w,"TestLoadImage: error",!1,v,L),L.onabort=p(xa,w,"TestLoadImage: abort",!1,v,L),L.ontimeout=p(xa,w,"TestLoadImage: timeout",!1,v,L),a.setTimeout(function(){L.ontimeout&&L.ontimeout()},1e4),L.src=f}else v(!1)}(L.toString(),w):function M2e(f,v){new jh;const L=new AbortController,Z=setTimeout(()=>{L.abort(),xa(0,0,!1,v)},1e4);fetch(f,{signal:L.signal}).then(le=>{clearTimeout(Z),xa(0,0,!!le.ok,v)}).catch(()=>{clearTimeout(Z),xa(0,0,!1,v)})}(L.toString(),w)}else Kr(2);f.G=0,f.l&&f.l.sa(v),Tz(f),vz(f)}function Tz(f){if(f.G=0,f.ka=[],f.l){const v=nz(f.h);(0!=v.length||0!=f.i.length)&&(y(f.ka,v),y(f.ka,f.i),f.h.i.length=0,_(f.i),f.i.length=0),f.l.ra()}}function Iz(f,v,w){var L=w instanceof Ll?Ds(w):new Ll(w);if(""!=L.g)v&&(L.g=v+"."+L.g),Xy(L,L.s);else{var Z=a.location;L=Z.protocol,v=v?v+"."+Z.hostname:Z.hostname,Z=+Z.port;var le=new Ll(null);L&&Qy(le,L),v&&(le.g=v),Z&&Xy(le,Z),w&&(le.l=w),L=le}return v=f.ya,(w=f.D)&&v&&cn(L,w,v),cn(L,"VER",f.la),Jh(f,L),L}function Az(f,v,w){if(v&&!f.J)throw Error("Can't create secondary domain capable XhrIo object.");return(v=new En(f.Ca&&!f.pa?new Kh({eb:w}):f.pa)).Ha(f.J),v}function xz(){}function o0(){}function Pi(f,v){Or.call(this),this.g=new _z(v),this.l=f,this.h=v&&v.messageUrlParams||null,f=v&&v.messageHeaders||null,v&&v.clientProtocolHeaderRequired&&(f?f["X-Client-Protocol"]="webchannel":f={"X-Client-Protocol":"webchannel"}),this.g.o=f,f=v&&v.initMessageHeaders||null,v&&v.messageContentType&&(f?f["X-WebChannel-Content-Type"]=v.messageContentType:f={"X-WebChannel-Content-Type":v.messageContentType}),v&&v.va&&(f?f["X-WebChannel-Client-Profile"]=v.va:f={"X-WebChannel-Client-Profile":v.va}),this.g.S=f,(f=v&&v.Sb)&&!C(f)&&(this.g.m=f),this.v=v&&v.supportsCrossDomainXhr||!1,this.u=v&&v.sendRawJson||!1,(v=v&&v.httpSessionIdParam)&&!C(v)&&(this.g.D=v,null!==(f=this.h)&&v in f&&v in(f=this.h)&&delete f[v]),this.j=new Qu(this)}function Pz(f){Nx.call(this),f.__headers__&&(this.headers=f.__headers__,this.statusCode=f.__status__,delete f.__headers__,delete f.__status__);var v=f.__sm__;if(v){e:{for(const w in v){f=w;break e}f=void 0}(this.i=f)&&(f=this.i,v=null!==v&&f in v?v[f]:void 0),this.data=v}else this.data=f}function Dz(){Lx.call(this),this.status=1}function Qu(f){this.g=f}(t=En.prototype).Ha=function(f){this.J=f},t.ea=function(f,v,w,L){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+f);v=v?v.toUpperCase():"GET",this.D=f,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Fx.g(),this.v=function $$(f){return f.h||(f.h=f.i())}(this.o?this.o:Fx),this.g.onreadystatechange=h(this.Ea,this);try{this.B=!0,this.g.open(v,String(f),!0),this.B=!1}catch(le){return void fz(this,le)}if(f=w||"",w=new Map(this.headers),L)if(Object.getPrototypeOf(L)===Object.prototype)for(var Z in L)w.set(Z,L[Z]);else{if("function"!=typeof L.keys||"function"!=typeof L.get)throw Error("Unknown input type for opt_headers: "+String(L));for(const le of L.keys())w.set(le,L.get(le))}L=Array.from(w.keys()).find(le=>"content-type"==le.toLowerCase()),Z=a.FormData&&f instanceof a.FormData,!(0<=Array.prototype.indexOf.call(L2e,v,void 0))||L||Z||w.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[le,ke]of w)this.g.setRequestHeader(le,ke);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{gz(this),this.u=!0,this.g.send(f),this.u=!1}catch(le){fz(this,le)}},t.abort=function(f){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=f||7,Yr(this,"complete"),Yr(this,"abort"),e0(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),e0(this,!0)),En.aa.N.call(this)},t.Ea=function(){this.s||(this.B||this.u||this.j?pz(this):this.bb())},t.bb=function(){pz(this)},t.isActive=function(){return!!this.g},t.Z=function(){try{return 2<ks(this)?this.g.status:-1}catch(f){return-1}},t.oa=function(){try{return this.g?this.g.responseText:""}catch(f){return""}},t.Oa=function(f){if(this.g){var v=this.g.responseText;return f&&0==v.indexOf(f)&&(v=v.substring(f.length)),p2e(v)}},t.Ba=function(){return this.m},t.Ka=function(){return"string"==typeof this.l?this.l:String(this.l)},(t=_z.prototype).la=8,t.G=1,t.connect=function(f,v,w,L){Kr(0),this.W=f,this.H=v||{},w&&void 0!==L&&(this.H.OSID=w,this.H.OAID=L),this.F=this.X,this.I=Iz(this,null,this.W),n0(this)},t.Ga=function(f){if(this.s)if(this.s=null,1==this.G){if(!f){this.U=Math.floor(1e5*Math.random()),f=this.U++;const Z=new Ia(this,this.j,f);let le=this.o;if(this.S&&(le?(le=P(le),F(le,this.S)):le=this.S),null!==this.m||this.O||(Z.H=le,le=null),this.P)e:{for(var v=0,w=0;w<this.i.length;w++){var L=this.i[w];if(void 0===(L="__data__"in L.map&&"string"==typeof(L=L.map.__data__)?L.length:void 0))break;if(4096<(v+=L)){v=w;break e}if(4096===v||w===this.i.length-1){v=w+1;break e}}v=1e3}else v=1e3;v=bz(this,Z,v),cn(w=Ds(this.I),"RID",f),cn(w,"CVER",22),this.D&&cn(w,"X-HTTP-Session-Id",this.D),Jh(this,w),le&&(this.O?v="headers="+encodeURIComponent(String(dz(le)))+"&"+v:this.m&&jx(w,this.m,le)),Hx(this.h,Z),this.Ua&&cn(w,"TYPE","init"),this.P?(cn(w,"$req",v),cn(w,"SID","null"),Z.T=!0,Bx(Z,w,null)):Bx(Z,w,v),this.G=2}}else 3==this.G&&(f?yz(this,f):0==this.i.length||J$(this.h)||yz(this))},t.Fa=function(){if(this.u=null,Cz(this),this.ba&&!(this.M||null==this.g||0>=this.R)){var f=2*this.R;this.j.info("BP detection timer enabled: "+f),this.A=Hh(h(this.ab,this),f)}},t.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,Kr(10),t0(this),Cz(this))},t.Za=function(){null!=this.C&&(this.C=null,t0(this),qx(this),Kr(19))},t.fb=function(f){f?(this.j.info("Successfully pinged google.com"),Kr(2)):(this.j.info("Failed to ping google.com"),Kr(1))},t.isActive=function(){return!!this.l&&this.l.isActive(this)},(t=xz.prototype).ua=function(){},t.ta=function(){},t.sa=function(){},t.ra=function(){},t.isActive=function(){return!0},t.Na=function(){},o0.prototype.g=function(f,v){return new Pi(f,v)},m(Pi,Or),Pi.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Pi.prototype.close=function(){Gx(this.g)},Pi.prototype.o=function(f){var v=this.g;if("string"==typeof f){var w={};w.__data__=f,f=w}else this.u&&((w={}).__data__=Ox(f),f=w);v.i.push(new class{constructor(f,v){this.g=f,this.map=v}}(v.Ya++,f)),3==v.G&&n0(v)},Pi.prototype.N=function(){this.g.l=null,delete this.j,Gx(this.g),delete this.g,Pi.aa.N.call(this)},m(Pz,Nx),m(Dz,Lx),m(Qu,xz),Qu.prototype.ua=function(){Yr(this.g,"a")},Qu.prototype.ta=function(f){Yr(this.g,new Pz(f))},Qu.prototype.sa=function(f){Yr(this.g,new Dz)},Qu.prototype.ra=function(){Yr(this.g,"b")},o0.prototype.createWebChannel=o0.prototype.g,Pi.prototype.send=Pi.prototype.o,Pi.prototype.open=Pi.prototype.m,Pi.prototype.close=Pi.prototype.close,O6=Cs.createWebChannelTransport=function(){return new o0},M6=Cs.getStatEventTarget=function(){return qy()},k6=Cs.Event=Rl,jS=Cs.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},Wy.NO_ERROR=0,Wy.TIMEOUT=8,Wy.HTTP_ERROR=6,Bm=Cs.ErrorCode=Wy,q$.COMPLETE="complete",D6=Cs.EventType=q$,z$.EventType=zh,zh.OPEN="a",zh.CLOSE="b",zh.ERROR="c",zh.MESSAGE="d",Or.prototype.listen=Or.prototype.K,Uf=Cs.WebChannel=z$,P6=Cs.FetchXmlHttpFactory=Kh,En.prototype.listenOnce=En.prototype.L,En.prototype.getLastError=En.prototype.Ka,En.prototype.getLastErrorCode=En.prototype.Ba,En.prototype.getStatus=En.prototype.Z,En.prototype.getResponseJson=En.prototype.Oa,En.prototype.getResponseText=En.prototype.oa,En.prototype.send=En.prototype.ea,En.prototype.setWithCredentials=En.prototype.Ha,x6=Cs.XhrIo=En}).apply(typeof Vm<"u"?Vm:typeof self<"u"?self:typeof window<"u"?window:{});const R6="@firebase/firestore";class er{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}}er.UNAUTHENTICATED=new er(null),er.GOOGLE_CREDENTIALS=new er("google-credentials-uid"),er.FIRST_PARTY=new er("first-party-uid"),er.MOCK_USER=new er("mock-user");let Qc="10.12.3";const ea=new gC("@firebase/firestore");function Xc(){return ea.logLevel}function me(t,...e){if(ea.logLevel<=yt.DEBUG){const n=e.map(GS);ea.debug("Firestore (".concat(Qc,"): ").concat(t),...n)}}function xn(t,...e){if(ea.logLevel<=yt.ERROR){const n=e.map(GS);ea.error("Firestore (".concat(Qc,"): ").concat(t),...n)}}function Ei(t,...e){if(ea.logLevel<=yt.WARN){const n=e.map(GS);ea.warn("Firestore (".concat(Qc,"): ").concat(t),...n)}}function GS(t){if("string"==typeof t)return t;try{return JSON.stringify(t)}catch(e){return t}}function Be(t="Unexpected state"){const e="FIRESTORE (".concat(Qc,") INTERNAL ASSERTION FAILED: ")+t;throw xn(e),new Error(e)}function ze(t,e){t||Be()}function Pe(t,e){return t}const oe={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 _e extends Qs{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>"".concat(this.name,": [code=").concat(this.code,"]: ").concat(this.message)}}class Yn{constructor(){this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}}class N6{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization","Bearer ".concat(e))}}class Pae{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable(()=>n(er.UNAUTHENTICATED))}shutdown(){}}class Dae{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,n){this.changeListener=n,e.enqueueRetryable(()=>n(this.token.user))}shutdown(){this.changeListener=null}}class kae{constructor(e){this.t=e,this.currentUser=er.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){var r=this;let i=this.i;const o=c=>this.i!==i?(i=this.i,n(c)):Promise.resolve();let s=new Yn;this.o=()=>{this.i++,this.currentUser=this.u(),s.resolve(),s=new Yn,e.enqueueRetryable(()=>o(this.currentUser))};const a=()=>{const c=s;e.enqueueRetryable(se(function*(){yield c.promise,yield o(r.currentUser)}))},l=c=>{me("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):(me("FirebaseAuthCredentialsProvider","Auth not yet detected"),s.resolve(),s=new Yn)}},0),a()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(r=>this.i!==e?(me("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(ze("string"==typeof r.accessToken),new N6(r.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const e=this.auth&&this.auth.getUid();return ze(null===e||"string"==typeof e),new er(e)}}class Mae{constructor(e,n,r){this.l=e,this.h=n,this.P=r,this.type="FirstParty",this.user=er.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const e=this.T();return e&&this.I.set("Authorization",e),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class Oae{constructor(e,n,r){this.l=e,this.h=n,this.P=r}getToken(){return Promise.resolve(new Mae(this.l,this.h,this.P))}start(e,n){e.enqueueRetryable(()=>n(er.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class L6{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 Rae{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,n){const r=o=>{null!=o.error&&me("FirebaseAppCheckTokenProvider","Error getting App Check token; using placeholder token instead. Error: ".concat(o.error.message));const s=o.token!==this.R;return this.R=o.token,me("FirebaseAppCheckTokenProvider","Received ".concat(s?"new":"existing"," token.")),s?n(o.token):Promise.resolve()};this.o=o=>{e.enqueueRetryable(()=>r(o))};const i=o=>{me("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=o,this.appCheck.addTokenListener(this.o)};this.A.onInit(o=>i(o)),setTimeout(()=>{if(!this.appCheck){const o=this.A.getImmediate({optional:!0});o?i(o):me("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(n=>n?(ze("string"==typeof n.token),this.R=n.token,new L6(n.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function Nae(t){const e=typeof self<"u"&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(n);else for(let r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}class F6{static newId(){const n=62*Math.floor(256/62);let r="";for(;r.length<20;){const i=Nae(40);for(let o=0;o<i.length;++o)r.length<20&&i[o]<n&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(i[o]%62))}return r}}function Je(t,e){return t<e?-1:t>e?1:0}function Zc(t,e,n){return t.length===e.length&&t.every((r,i)=>n(r,e[i]))}class gn{constructor(e,n){if(this.seconds=e,this.nanoseconds=n,n<0)throw new _e(oe.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new _e(oe.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(e<-62135596800)throw new _e(oe.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new _e(oe.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return gn.fromMillis(Date.now())}static fromDate(e){return gn.fromMillis(e.getTime())}static fromMillis(e){const n=Math.floor(e/1e3),r=Math.floor(1e6*(e-1e3*n));return new gn(n,r)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?Je(this.nanoseconds,e.nanoseconds):Je(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 He{constructor(e){this.timestamp=e}static fromTimestamp(e){return new He(e)}static min(){return new He(new gn(0,0))}static max(){return new He(new gn(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 Hf{constructor(e,n,r){void 0===n?n=0:n>e.length&&Be(),void 0===r?r=e.length-n:r>e.length-n&&Be(),this.segments=e,this.offset=n,this.len=r}get length(){return this.len}isEqual(e){return 0===Hf.comparator(this,e)}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof Hf?e.forEach(r=>{n.push(r)}):n.push(e),this.construct(n)}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 n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}forEach(e){for(let n=this.offset,r=this.limit();n<r;n++)e(this.segments[n])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,n){const r=Math.min(e.length,n.length);for(let i=0;i<r;i++){const o=e.get(i),s=n.get(i);if(o<s)return-1;if(o>s)return 1}return e.length<n.length?-1:e.length>n.length?1:0}}class pt extends Hf{construct(e,n,r){return new pt(e,n,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const n=[];for(const r of e){if(r.indexOf("//")>=0)throw new _e(oe.INVALID_ARGUMENT,"Invalid segment (".concat(r,"). Paths must not contain // in them."));n.push(...r.split("/").filter(i=>i.length>0))}return new pt(n)}static emptyPath(){return new pt([])}}const Lae=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class dn extends Hf{construct(e,n,r){return new dn(e,n,r)}static isValidIdentifier(e){return Lae.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),dn.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new dn(["__name__"])}static fromServerFormat(e){const n=[];let r="",i=0;const o=()=>{if(0===r.length)throw new _e(oe.INVALID_ARGUMENT,"Invalid field path (".concat(e,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"));n.push(r),r=""};let s=!1;for(;i<e.length;){const a=e[i];if("\\"===a){if(i+1===e.length)throw new _e(oe.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const l=e[i+1];if("\\"!==l&&"."!==l&&"`"!==l)throw new _e(oe.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=l,i+=2}else"`"===a?(s=!s,i++):"."!==a||s?(r+=a,i++):(o(),i++)}if(o(),s)throw new _e(oe.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new dn(n)}static emptyPath(){return new dn([])}}class Re{constructor(e){this.path=e}static fromPath(e){return new Re(pt.fromString(e))}static fromName(e){return new Re(pt.fromString(e).popFirst(5))}static empty(){return new Re(pt.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===pt.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,n){return pt.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new Re(new pt(e.slice()))}}function $6(t){return new Si(t.readTime,t.key,-1)}class Si{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new Si(He.min(),Re.empty(),-1)}static max(){return new Si(He.max(),Re.empty(),-1)}}function WS(t,e){let n=t.readTime.compareTo(e.readTime);return 0!==n?n:(n=Re.comparator(t.documentKey,e.documentKey),0!==n?n:Je(t.largestBatchId,e.largestBatchId))}const z6="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Bae{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}function ta(t){return YS.apply(this,arguments)}function YS(){return YS=se(function*(t){if(t.code!==oe.FAILED_PRECONDITION||t.message!==z6)throw t;me("LocalStore","Unexpectedly lost primary lease")}),YS.apply(this,arguments)}class ne{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(n=>{this.isDone=!0,this.result=n,this.nextCallback&&this.nextCallback(n)},n=>{this.isDone=!0,this.error=n,this.catchCallback&&this.catchCallback(n)})}catch(e){return this.next(void 0,e)}next(e,n){return this.callbackAttached&&Be(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new ne((r,i)=>{this.nextCallback=o=>{this.wrapSuccess(e,o).next(r,i)},this.catchCallback=o=>{this.wrapFailure(n,o).next(r,i)}})}toPromise(){return new Promise((e,n)=>{this.next(e,n)})}wrapUserFunction(e){try{const n=e();return n instanceof ne?n:ne.resolve(n)}catch(n){return ne.reject(n)}}wrapSuccess(e,n){return e?this.wrapUserFunction(()=>e(n)):ne.resolve(n)}wrapFailure(e,n){return e?this.wrapUserFunction(()=>e(n)):ne.reject(n)}static resolve(e){return new ne((n,r)=>{n(e)})}static reject(e){return new ne((n,r)=>{r(e)})}static waitFor(e){return new ne((n,r)=>{let i=0,o=0,s=!1;e.forEach(a=>{++i,a.next(()=>{++o,s&&o===i&&n()},l=>r(l))}),s=!0,o===i&&n()})}static or(e){let n=ne.resolve(!1);for(const r of e)n=n.next(i=>i?ne.resolve(i):r());return n}static forEach(e,n){const r=[];return e.forEach((i,o)=>{r.push(n.call(this,i,o))}),this.waitFor(r)}static mapArray(e,n){return new ne((r,i)=>{const o=e.length,s=new Array(o);let a=0;for(let l=0;l<o;l++){const c=l;n(e[c]).next(u=>{s[c]=u,++a,a===o&&r(s)},u=>i(u))}})}static doWhile(e,n){return new ne((r,i)=>{const o=()=>{!0===e()?n().next(()=>{o()},i):r()};o()})}}function na(t){return"IndexedDbTransactionError"===t.name}let Ti=(()=>{class t{constructor(n,r){this.previousValue=n,r&&(r.sequenceNumberHandler=i=>this.ie(i),this.se=i=>r.writeSequenceNumber(i))}ie(n){return this.previousValue=Math.max(n,this.previousValue),this.previousValue}next(){const n=++this.previousValue;return this.se&&this.se(n),n}}return t.oe=-1,t})();function Gf(t){return null==t}function qf(t){return 0===t&&1/t==-1/0}function X6(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function ra(t,e){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function J6(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}class nn{constructor(e,n){this.comparator=e,this.root=n||hr.EMPTY}insert(e,n){return new nn(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,hr.BLACK,null,null))}remove(e){return new nn(this.comparator,this.root.remove(e,this.comparator).copy(null,null,hr.BLACK,null,null))}get(e){let n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(0===r)return n.value;r<0?n=n.left:r>0&&(n=n.right)}return null}indexOf(e){let n=0,r=this.root;for(;!r.isEmpty();){const i=this.comparator(e,r.key);if(0===i)return n+r.left.size;i<0?r=r.left:(n+=r.left.size+1,r=r.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((n,r)=>(e(n,r),!1))}toString(){const e=[];return this.inorderTraversal((n,r)=>(e.push("".concat(n,":").concat(r)),!1)),"{".concat(e.join(", "),"}")}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Um(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Um(this.root,e,this.comparator,!1)}getReverseIterator(){return new Um(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Um(this.root,e,this.comparator,!0)}}class Um{constructor(e,n,r,i){this.isReverse=i,this.nodeStack=[];let o=1;for(;!e.isEmpty();)if(o=n?r(e.key,n):1,n&&i&&(o*=-1),o<0)e=this.isReverse?e.left:e.right;else{if(0===o){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const n={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 n}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 hr{constructor(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:hr.RED,this.left=null!=i?i:hr.EMPTY,this.right=null!=o?o:hr.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,r,i,o){return new hr(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)}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,n,r){let i=this;const o=r(e,i.key);return i=o<0?i.copy(null,null,null,i.left.insert(e,n,r),null):0===o?i.copy(null,n,null,null,null):i.copy(null,null,null,null,i.right.insert(e,n,r)),i.fixUp()}removeMin(){if(this.left.isEmpty())return hr.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,n){let r,i=this;if(n(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(e,i.key)){if(i.right.isEmpty())return hr.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,hr.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,hr.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),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,n)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw Be();const e=this.left.check();if(e!==this.right.check())throw Be();return e+(this.isRed()?0:1)}}hr.EMPTY=null,hr.RED=!0,hr.BLACK=!1,hr.EMPTY=new class{constructor(){this.size=0}get key(){throw Be()}get value(){throw Be()}get color(){throw Be()}get left(){throw Be()}get right(){throw Be()}copy(e,n,r,i,o){return this}insert(e,n,r){return new hr(e,n)}remove(e,n){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Gt{constructor(e){this.comparator=e,this.data=new nn(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((n,r)=>(e(n),!1))}forEachInRange(e,n){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const i=r.getNext();if(this.comparator(i.key,e[1])>=0)return;n(i.key)}}forEachWhile(e,n){let r;for(r=void 0!==n?this.data.getIteratorFrom(n):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new eL(this.data.getIterator())}getIteratorFrom(e){return new eL(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 n=this;return n.size<e.size&&(n=e,e=this),e.forEach(r=>{n=n.add(r)}),n}isEqual(e){if(!(e instanceof Gt)||this.size!==e.size)return!1;const n=this.data.getIterator(),r=e.data.getIterator();for(;n.hasNext();){const i=n.getNext().key,o=r.getNext().key;if(0!==this.comparator(i,o))return!1}return!0}toArray(){const e=[];return this.forEach(n=>{e.push(n)}),e}toString(){const e=[];return this.forEach(n=>e.push(n)),"SortedSet("+e.toString()+")"}copy(e){const n=new Gt(this.comparator);return n.data=e,n}}class eL{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class li{constructor(e){this.fields=e,e.sort(dn.comparator)}static empty(){return new li([])}unionWith(e){let n=new Gt(dn.comparator);for(const r of this.fields)n=n.add(r);for(const r of e)n=n.add(r);return new li(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return Zc(this.fields,e.fields,(n,r)=>n.isEqual(r))}}class tL extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class Kn{constructor(e){this.binaryString=e}static fromBase64String(e){const n=function(i){try{return atob(i)}catch(o){throw typeof DOMException<"u"&&o instanceof DOMException?new tL("Invalid base64 string: "+o):o}}(e);return new Kn(n)}static fromUint8Array(e){const n=function(i){let o="";for(let s=0;s<i.length;++s)o+=String.fromCharCode(i[s]);return o}(e);return new Kn(n)}[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(n){const r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Je(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Kn.EMPTY_BYTE_STRING=new Kn("");const cle=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Es(t){if(ze(!!t),"string"==typeof t){let e=0;const n=cle.exec(t);if(ze(!!n),n[1]){let i=n[1];i=(i+"000000000").substr(0,9),e=Number(i)}const r=new Date(t);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:bn(t.seconds),nanos:bn(t.nanos)}}function bn(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function Ss(t){return"string"==typeof t?Kn.fromBase64String(t):Kn.fromUint8Array(t)}function Hm(t){var e,n;return"server_timestamp"===(null===(n=((null===(e=null==t?void 0:t.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function jm(t){const e=t.mapValue.fields.__previous_value__;return Hm(e)?jm(e):e}function Wf(t){const e=Es(t.mapValue.fields.__local_write_time__.timestampValue);return new gn(e.seconds,e.nanos)}class ule{constructor(e,n,r,i,o,s,a,l,c){this.databaseId=e,this.appId=n,this.persistenceKey=r,this.host=i,this.ssl=o,this.forceLongPolling=s,this.autoDetectLongPolling=a,this.longPollingOptions=l,this.useFetchStreams=c}}class dl{constructor(e,n){this.projectId=e,this.database=n||"(default)"}static empty(){return new dl("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof dl&&e.projectId===this.projectId&&e.database===this.database}}const ia={mapValue:{fields:{__type__:{stringValue:"__max__"}}}};function oa(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?Hm(t)?4:oL(t)?9007199254740991:10:Be()}function Fo(t,e){if(t===e)return!0;const n=oa(t);if(n!==oa(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Wf(t).isEqual(Wf(e));case 3:return function(i,o){if("string"==typeof i.timestampValue&&"string"==typeof o.timestampValue&&i.timestampValue.length===o.timestampValue.length)return i.timestampValue===o.timestampValue;const s=Es(i.timestampValue),a=Es(o.timestampValue);return s.seconds===a.seconds&&s.nanos===a.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return o=e,Ss(t.bytesValue).isEqual(Ss(o.bytesValue));case 7:return t.referenceValue===e.referenceValue;case 8:return function(i,o){return bn(i.geoPointValue.latitude)===bn(o.geoPointValue.latitude)&&bn(i.geoPointValue.longitude)===bn(o.geoPointValue.longitude)}(t,e);case 2:return function(i,o){if("integerValue"in i&&"integerValue"in o)return bn(i.integerValue)===bn(o.integerValue);if("doubleValue"in i&&"doubleValue"in o){const s=bn(i.doubleValue),a=bn(o.doubleValue);return s===a?qf(s)===qf(a):isNaN(s)&&isNaN(a)}return!1}(t,e);case 9:return Zc(t.arrayValue.values||[],e.arrayValue.values||[],Fo);case 10:return function(i,o){const s=i.mapValue.fields||{},a=o.mapValue.fields||{};if(X6(s)!==X6(a))return!1;for(const l in s)if(s.hasOwnProperty(l)&&(void 0===a[l]||!Fo(s[l],a[l])))return!1;return!0}(t,e);default:return Be()}var o}function Yf(t,e){return void 0!==(t.values||[]).find(n=>Fo(n,e))}function sa(t,e){if(t===e)return 0;const n=oa(t),r=oa(e);if(n!==r)return Je(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Je(t.booleanValue,e.booleanValue);case 2:return function(o,s){const a=bn(o.integerValue||o.doubleValue),l=bn(s.integerValue||s.doubleValue);return a<l?-1:a>l?1:a===l?0:isNaN(a)?isNaN(l)?0:-1:1}(t,e);case 3:return nL(t.timestampValue,e.timestampValue);case 4:return nL(Wf(t),Wf(e));case 5:return Je(t.stringValue,e.stringValue);case 6:return function(o,s){const a=Ss(o),l=Ss(s);return a.compareTo(l)}(t.bytesValue,e.bytesValue);case 7:return function(o,s){const a=o.split("/"),l=s.split("/");for(let c=0;c<a.length&&c<l.length;c++){const u=Je(a[c],l[c]);if(0!==u)return u}return Je(a.length,l.length)}(t.referenceValue,e.referenceValue);case 8:return function(o,s){const a=Je(bn(o.latitude),bn(s.latitude));return 0!==a?a:Je(bn(o.longitude),bn(s.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(o,s){const a=o.values||[],l=s.values||[];for(let c=0;c<a.length&&c<l.length;++c){const u=sa(a[c],l[c]);if(u)return u}return Je(a.length,l.length)}(t.arrayValue,e.arrayValue);case 10:return function(o,s){if(o===ia.mapValue&&s===ia.mapValue)return 0;if(o===ia.mapValue)return 1;if(s===ia.mapValue)return-1;const a=o.fields||{},l=Object.keys(a),c=s.fields||{},u=Object.keys(c);l.sort(),u.sort();for(let d=0;d<l.length&&d<u.length;++d){const h=Je(l[d],u[d]);if(0!==h)return h;const p=sa(a[l[d]],c[u[d]]);if(0!==p)return p}return Je(l.length,u.length)}(t.mapValue,e.mapValue);default:throw Be()}}function nL(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return Je(t,e);const n=Es(t),r=Es(e),i=Je(n.seconds,r.seconds);return 0!==i?i:Je(n.nanos,r.nanos)}function nu(t){return XS(t)}function XS(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?function(n){const r=Es(n);return"time(".concat(r.seconds,",").concat(r.nanos,")")}(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?Ss(t.bytesValue).toBase64():"referenceValue"in t?Re.fromName(t.referenceValue).toString():"geoPointValue"in t?function(n){return"geo(".concat(n.latitude,",").concat(n.longitude,")")}(t.geoPointValue):"arrayValue"in t?function(n){let r="[",i=!0;for(const o of n.values||[])i?i=!1:r+=",",r+=XS(o);return r+"]"}(t.arrayValue):"mapValue"in t?function(n){const r=Object.keys(n.fields||{}).sort();let i="{",o=!0;for(const s of r)o?o=!1:i+=",",i+="".concat(s,":").concat(XS(n.fields[s]));return i+"}"}(t.mapValue):Be()}function fl(t,e){return{referenceValue:"projects/".concat(t.projectId,"/databases/").concat(t.database,"/documents/").concat(e.path.canonicalString())}}function ZS(t){return!!t&&"integerValue"in t}function Kf(t){return!!t&&"arrayValue"in t}function rL(t){return!!t&&"nullValue"in t}function iL(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function Wm(t){return!!t&&"mapValue"in t}function Qf(t){if(t.geoPointValue)return{geoPointValue:Object.assign({},t.geoPointValue)};if(t.timestampValue&&"object"==typeof t.timestampValue)return{timestampValue:Object.assign({},t.timestampValue)};if(t.mapValue){const e={mapValue:{fields:{}}};return ra(t.mapValue.fields,(n,r)=>e.mapValue.fields[n]=Qf(r)),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=Qf(t.arrayValue.values[n]);return e}return Object.assign({},t)}function oL(t){return"__max__"===(((t.mapValue||{}).fields||{}).__type__||{}).stringValue}class pr{constructor(e){this.value=e}static empty(){return new pr({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let n=this.value;for(let r=0;r<e.length-1;++r)if(n=(n.mapValue.fields||{})[e.get(r)],!Wm(n))return null;return n=(n.mapValue.fields||{})[e.lastSegment()],n||null}}set(e,n){this.getFieldsMap(e.popLast())[e.lastSegment()]=Qf(n)}setAll(e){let n=dn.emptyPath(),r={},i=[];e.forEach((s,a)=>{if(!n.isImmediateParentOf(a)){const l=this.getFieldsMap(n);this.applyChanges(l,r,i),r={},i=[],n=a.popLast()}s?r[a.lastSegment()]=Qf(s):i.push(a.lastSegment())});const o=this.getFieldsMap(n);this.applyChanges(o,r,i)}delete(e){const n=this.field(e.popLast());Wm(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return Fo(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let r=0;r<e.length;++r){let i=n.mapValue.fields[e.get(r)];Wm(i)&&i.mapValue.fields||(i={mapValue:{fields:{}}},n.mapValue.fields[e.get(r)]=i),n=i}return n.mapValue.fields}applyChanges(e,n,r){ra(n,(i,o)=>e[i]=o);for(const i of r)delete e[i]}clone(){return new pr(Qf(this.value))}}function lL(t){const e=[];return ra(t.fields,(n,r)=>{const i=new dn([n]);if(Wm(r)){const o=lL(r.mapValue).fields;if(0===o.length)e.push(i);else for(const s of o)e.push(i.child(s))}else e.push(i)}),new li(e)}class an{constructor(e,n,r,i,o,s,a){this.key=e,this.documentType=n,this.version=r,this.readTime=i,this.createTime=o,this.data=s,this.documentState=a}static newInvalidDocument(e){return new an(e,0,He.min(),He.min(),He.min(),pr.empty(),0)}static newFoundDocument(e,n,r,i){return new an(e,1,n,He.min(),r,i,0)}static newNoDocument(e,n){return new an(e,2,n,He.min(),He.min(),pr.empty(),0)}static newUnknownDocument(e,n){return new an(e,3,n,He.min(),He.min(),pr.empty(),2)}convertToFoundDocument(e,n){return!this.createTime.isEqual(He.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=n,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=pr.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=pr.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=He.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 an&&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 an(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return"Document(".concat(this.key,", ").concat(this.version,", ").concat(JSON.stringify(this.data.value),", {createTime: ").concat(this.createTime,"}), {documentType: ").concat(this.documentType,"}), {documentState: ").concat(this.documentState,"})")}}class aa{constructor(e,n){this.position=e,this.inclusive=n}}function cL(t,e,n){let r=0;for(let i=0;i<t.position.length;i++){const o=e[i],s=t.position[i];if(r=o.field.isKeyField()?Re.comparator(Re.fromName(s.referenceValue),n.key):sa(s,n.data.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return r}function uL(t,e){if(null===t)return null===e;if(null===e||t.inclusive!==e.inclusive||t.position.length!==e.position.length)return!1;for(let n=0;n<t.position.length;n++)if(!Fo(t.position[n],e.position[n]))return!1;return!0}class Xf{constructor(e,n="asc"){this.field=e,this.dir=n}}function hle(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}class dL{}class gt extends dL{constructor(e,n,r){super(),this.field=e,this.op=n,this.value=r}static create(e,n,r){return e.isKeyField()?"in"===n||"not-in"===n?this.createKeyFieldInFilter(e,n,r):new ple(e,n,r):"array-contains"===n?new _le(e,r):"in"===n?new _L(e,r):"not-in"===n?new vle(e,r):"array-contains-any"===n?new yle(e,r):new gt(e,n,r)}static createKeyFieldInFilter(e,n,r){return"in"===n?new gle(e,r):new mle(e,r)}matches(e){const n=e.data.field(this.field);return"!="===this.op?null!==n&&this.matchesComparison(sa(n,this.value)):null!==n&&oa(this.value)===oa(n)&&this.matchesComparison(sa(n,this.value))}matchesComparison(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 Be()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Ut extends dL{constructor(e,n){super(),this.filters=e,this.op=n,this.ae=null}static create(e,n){return new Ut(e,n)}matches(e){return ru(this)?void 0===this.filters.find(n=>!n.matches(e)):void 0!==this.filters.find(n=>n.matches(e))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((e,n)=>e.concat(n.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function ru(t){return"and"===t.op}function eT(t){return function fL(t){for(const e of t.filters)if(e instanceof Ut)return!1;return!0}(t)&&ru(t)}function tT(t){if(t instanceof gt)return t.field.canonicalString()+t.op.toString()+nu(t.value);if(eT(t))return t.filters.map(e=>tT(e)).join(",");{const e=t.filters.map(n=>tT(n)).join(",");return"".concat(t.op,"(").concat(e,")")}}function hL(t,e){return t instanceof gt?(r=t,(i=e)instanceof gt&&r.op===i.op&&r.field.isEqual(i.field)&&Fo(r.value,i.value)):t instanceof Ut?function(r,i){return i instanceof Ut&&r.op===i.op&&r.filters.length===i.filters.length&&r.filters.reduce((o,s,a)=>o&&hL(s,i.filters[a]),!0)}(t,e):void Be();var r,i}function gL(t){return t instanceof gt?"".concat((n=t).field.canonicalString()," ").concat(n.op," ").concat(nu(n.value)):t instanceof Ut?function(n){return n.op.toString()+" {"+n.getFilters().map(gL).join(" ,")+"}"}(t):"Filter";var n}class ple extends gt{constructor(e,n,r){super(e,n,r),this.key=Re.fromName(r.referenceValue)}matches(e){const n=Re.comparator(e.key,this.key);return this.matchesComparison(n)}}class gle extends gt{constructor(e,n){super(e,"in",n),this.keys=mL(0,n)}matches(e){return this.keys.some(n=>n.isEqual(e.key))}}class mle extends gt{constructor(e,n){super(e,"not-in",n),this.keys=mL(0,n)}matches(e){return!this.keys.some(n=>n.isEqual(e.key))}}function mL(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map(r=>Re.fromName(r.referenceValue))}class _le extends gt{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return Kf(n)&&Yf(n.arrayValue,this.value)}}class _L extends gt{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return null!==n&&Yf(this.value.arrayValue,n)}}class vle extends gt{constructor(e,n){super(e,"not-in",n)}matches(e){if(Yf(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return null!==n&&!Yf(this.value.arrayValue,n)}}class yle extends gt{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!Kf(n)||!n.arrayValue.values)&&n.arrayValue.values.some(r=>Yf(this.value.arrayValue,r))}}class ble{constructor(e,n=null,r=[],i=[],o=null,s=null,a=null){this.path=e,this.collectionGroup=n,this.orderBy=r,this.filters=i,this.limit=o,this.startAt=s,this.endAt=a,this.ue=null}}function nT(t,e=null,n=[],r=[],i=null,o=null,s=null){return new ble(t,e,n,r,i,o,s)}function hl(t){const e=Pe(t);if(null===e.ue){let n=e.path.canonicalString();null!==e.collectionGroup&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map(r=>tT(r)).join(","),n+="|ob:",n+=e.orderBy.map(r=>{return(o=r).field.canonicalString()+o.dir;var o}).join(","),Gf(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map(r=>nu(r)).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map(r=>nu(r)).join(",")),e.ue=n}return e.ue}function Zf(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(let n=0;n<t.orderBy.length;n++)if(!hle(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(let n=0;n<t.filters.length;n++)if(!hL(t.filters[n],e.filters[n]))return!1;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!uL(t.startAt,e.startAt)&&uL(t.endAt,e.endAt)}function Ym(t){return Re.isDocumentKey(t.path)&&null===t.collectionGroup&&0===t.filters.length}class Ts{constructor(e,n=null,r=[],i=[],o=null,s="F",a=null,l=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=i,this.limit=o,this.limitType=s,this.startAt=a,this.endAt=l,this.ce=null,this.le=null,this.he=null}}function iu(t){return new Ts(t)}function wL(t){return 0===t.filters.length&&null===t.limit&&null==t.startAt&&null==t.endAt&&(0===t.explicitOrderBy.length||1===t.explicitOrderBy.length&&t.explicitOrderBy[0].field.isKeyField())}function rT(t){return null!==t.collectionGroup}function ou(t){const e=Pe(t);if(null===e.ce){e.ce=[];const n=new Set;for(const o of e.explicitOrderBy)e.ce.push(o),n.add(o.field.canonicalString());const r=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(s){let a=new Gt(dn.comparator);return s.filters.forEach(l=>{l.getFlattenedFilters().forEach(c=>{c.isInequality()&&(a=a.add(c.field))})}),a})(e).forEach(o=>{n.has(o.canonicalString())||o.isKeyField()||e.ce.push(new Xf(o,r))}),n.has(dn.keyField().canonicalString())||e.ce.push(new Xf(dn.keyField(),r))}return e.ce}function xr(t){const e=Pe(t);return e.le||(e.le=function EL(t,e){if("F"===t.limitType)return nT(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map(i=>new Xf(i.field,"desc"===i.dir?"asc":"desc"));const n=t.endAt?new aa(t.endAt.position,t.endAt.inclusive):null,r=t.startAt?new aa(t.startAt.position,t.startAt.inclusive):null;return nT(t.path,t.collectionGroup,e,t.filters,t.limit,n,r)}}(e,ou(t))),e.le}function iT(t,e){const n=t.filters.concat([e]);return new Ts(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}function Qm(t,e,n){return new Ts(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function Jf(t,e){return Zf(xr(t),xr(e))&&t.limitType===e.limitType}function SL(t){return"".concat(hl(xr(t)),"|lt:").concat(t.limitType)}function su(t){return"Query(target=".concat(function(n){let r=n.path.canonicalString();return null!==n.collectionGroup&&(r+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(r+=", filters: [".concat(n.filters.map(i=>gL(i)).join(", "),"]")),Gf(n.limit)||(r+=", limit: "+n.limit),n.orderBy.length>0&&(r+=", orderBy: [".concat(n.orderBy.map(i=>{return"".concat((s=i).field.canonicalString()," (").concat(s.dir,")");var s}).join(", "),"]")),n.startAt&&(r+=", startAt: ",r+=n.startAt.inclusive?"b:":"a:",r+=n.startAt.position.map(i=>nu(i)).join(",")),n.endAt&&(r+=", endAt: ",r+=n.endAt.inclusive?"a:":"b:",r+=n.endAt.position.map(i=>nu(i)).join(",")),"Target(".concat(r,")")}(xr(t)),"; limitType=").concat(t.limitType,")")}function eh(t,e){return e.isFoundDocument()&&function(r,i){const o=i.key.path;return null!==r.collectionGroup?i.key.hasCollectionId(r.collectionGroup)&&r.path.isPrefixOf(o):Re.isDocumentKey(r.path)?r.path.isEqual(o):r.path.isImmediateParentOf(o)}(t,e)&&function(r,i){for(const o of ou(r))if(!o.field.isKeyField()&&null===i.data.field(o.field))return!1;return!0}(t,e)&&function(r,i){for(const o of r.filters)if(!o.matches(i))return!1;return!0}(t,e)&&(i=e,!((r=t).startAt&&!function(s,a,l){const c=cL(s,a,l);return s.inclusive?c<=0:c<0}(r.startAt,ou(r),i)||r.endAt&&!function(s,a,l){const c=cL(s,a,l);return s.inclusive?c>=0:c>0}(r.endAt,ou(r),i)));var r,i}function IL(t){return(e,n)=>{let r=!1;for(const i of ou(t)){const o=wle(i,e,n);if(0!==o)return o;r=r||i.field.isKeyField()}return 0}}function wle(t,e,n){const r=t.field.isKeyField()?Re.comparator(e.key,n.key):function(o,s,a){const l=s.data.field(o),c=a.data.field(o);return null!==l&&null!==c?sa(l,c):Be()}(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return Be()}}class Is{constructor(e,n){this.mapKeyFn=e,this.equalsFn=n,this.inner={},this.innerSize=0}get(e){const n=this.mapKeyFn(e),r=this.inner[n];if(void 0!==r)for(const[i,o]of r)if(this.equalsFn(i,e))return o}has(e){return void 0!==this.get(e)}set(e,n){const r=this.mapKeyFn(e),i=this.inner[r];if(void 0===i)return this.inner[r]=[[e,n]],void this.innerSize++;for(let o=0;o<i.length;o++)if(this.equalsFn(i[o][0],e))return void(i[o]=[e,n]);i.push([e,n]),this.innerSize++}delete(e){const n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return!1;for(let i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return 1===r.length?delete this.inner[n]:r.splice(i,1),this.innerSize--,!0;return!1}forEach(e){ra(this.inner,(n,r)=>{for(const[i,o]of r)e(i,o)})}isEmpty(){return J6(this.inner)}size(){return this.innerSize}}const Cle=new nn(Re.comparator);function ci(){return Cle}const AL=new nn(Re.comparator);function th(...t){let e=AL;for(const n of t)e=e.insert(n.key,n);return e}function xL(t){let e=AL;return t.forEach((n,r)=>e=e.insert(n,r.overlayedDocument)),e}function Vo(){return nh()}function PL(){return nh()}function nh(){return new Is(t=>t.toString(),(t,e)=>t.isEqual(e))}const Ele=new nn(Re.comparator),Sle=new Gt(Re.comparator);function at(...t){let e=Sle;for(const n of t)e=e.add(n);return e}const Tle=new Gt(Je);function DL(t,e){if(t.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:qf(e)?"-0":e}}function kL(t){return{integerValue:""+t}}function ML(t,e){return function j6(t){return"number"==typeof t&&Number.isInteger(t)&&!qf(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}(e)?kL(e):DL(t,e)}class Xm{constructor(){this._=void 0}}function Ile(t,e,n){return t instanceof au?function(i,o){const s={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:i.seconds,nanos:i.nanoseconds}}}};return o&&Hm(o)&&(o=jm(o)),o&&(s.fields.__previous_value__=o),{mapValue:s}}(n,e):t instanceof pl?RL(t,e):t instanceof gl?NL(t,e):function(i,o){const s=OL(i,o),a=LL(s)+LL(i.Pe);return ZS(s)&&ZS(i.Pe)?kL(a):DL(i.serializer,a)}(t,e)}function Ale(t,e,n){return t instanceof pl?RL(t,e):t instanceof gl?NL(t,e):n}function OL(t,e){return t instanceof lu?ZS(r=e)||(o=r)&&"doubleValue"in o?e:{integerValue:0}:null;var r,o}class au extends Xm{}class pl extends Xm{constructor(e){super(),this.elements=e}}function RL(t,e){const n=FL(e);for(const r of t.elements)n.some(i=>Fo(i,r))||n.push(r);return{arrayValue:{values:n}}}class gl extends Xm{constructor(e){super(),this.elements=e}}function NL(t,e){let n=FL(e);for(const r of t.elements)n=n.filter(i=>!Fo(i,r));return{arrayValue:{values:n}}}class lu extends Xm{constructor(e,n){super(),this.serializer=e,this.Pe=n}}function LL(t){return bn(t.integerValue||t.doubleValue)}function FL(t){return Kf(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}class rh{constructor(e,n){this.field=e,this.transform=n}}class Ple{constructor(e,n){this.version=e,this.transformResults=n}}class fn{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new fn}static exists(e){return new fn(void 0,e)}static updateTime(e){return new fn(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 Zm(t,e){return void 0!==t.updateTime?e.isFoundDocument()&&e.version.isEqual(t.updateTime):void 0===t.exists||t.exists===e.isFoundDocument()}class Jm{}function VL(t,e){if(!t.hasLocalMutations||e&&0===e.fields.length)return null;if(null===e)return t.isNoDocument()?new uu(t.key,fn.none()):new cu(t.key,t.data,fn.none());{const n=t.data,r=pr.empty();let i=new Gt(dn.comparator);for(let o of e.fields)if(!i.has(o)){let s=n.field(o);null===s&&o.length>1&&(o=o.popLast(),s=n.field(o)),null===s?r.delete(o):r.set(o,s),i=i.add(o)}return new As(t.key,r,new li(i.toArray()),fn.none())}}function Dle(t,e,n){t instanceof cu?function(i,o,s){const a=i.value.clone(),l=zL(i.fieldTransforms,o,s.transformResults);a.setAll(l),o.convertToFoundDocument(s.version,a).setHasCommittedMutations()}(t,e,n):t instanceof As?function(i,o,s){if(!Zm(i.precondition,o))return void o.convertToUnknownDocument(s.version);const a=zL(i.fieldTransforms,o,s.transformResults),l=o.data;l.setAll($L(i)),l.setAll(a),o.convertToFoundDocument(s.version,l).setHasCommittedMutations()}(t,e,n):e.convertToNoDocument(n.version).setHasCommittedMutations()}function ih(t,e,n,r){return t instanceof cu?function(o,s,a,l){if(!Zm(o.precondition,s))return a;const c=o.value.clone(),u=UL(o.fieldTransforms,l,s);return c.setAll(u),s.convertToFoundDocument(s.version,c).setHasLocalMutations(),null}(t,e,n,r):t instanceof As?function(o,s,a,l){if(!Zm(o.precondition,s))return a;const c=UL(o.fieldTransforms,l,s),u=s.data;return u.setAll($L(o)),u.setAll(c),s.convertToFoundDocument(s.version,u).setHasLocalMutations(),null===a?null:a.unionWith(o.fieldMask.fields).unionWith(o.fieldTransforms.map(d=>d.field))}(t,e,n,r):(a=n,Zm(t.precondition,s=e)?(s.convertToNoDocument(s.version).setHasLocalMutations(),null):a);var s,a}function kle(t,e){let n=null;for(const r of t.fieldTransforms){const i=e.data.field(r.field),o=OL(r.transform,i||null);null!=o&&(null===n&&(n=pr.empty()),n.set(r.field,o))}return n||null}function BL(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&(i=e.fieldTransforms,!!(void 0===(r=t.fieldTransforms)&&void 0===i||r&&i&&Zc(r,i,(o,s)=>function xle(t,e){return t.field.isEqual(e.field)&&(i=e.transform,(r=t.transform)instanceof pl&&i instanceof pl||r instanceof gl&&i instanceof gl?Zc(r.elements,i.elements,Fo):r instanceof lu&&i instanceof lu?Fo(r.Pe,i.Pe):r instanceof au&&i instanceof au);var r,i}(o,s))))&&(0===t.type?t.value.isEqual(e.value):1!==t.type||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask));var r,i}class cu extends Jm{constructor(e,n,r,i=[]){super(),this.key=e,this.value=n,this.precondition=r,this.fieldTransforms=i,this.type=0}getFieldMask(){return null}}class As extends Jm{constructor(e,n,r,i,o=[]){super(),this.key=e,this.data=n,this.fieldMask=r,this.precondition=i,this.fieldTransforms=o,this.type=1}getFieldMask(){return this.fieldMask}}function $L(t){const e=new Map;return t.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const r=t.data.field(n);e.set(n,r)}}),e}function zL(t,e,n){const r=new Map;ze(t.length===n.length);for(let i=0;i<n.length;i++){const o=t[i],s=o.transform,a=e.data.field(o.field);r.set(o.field,Ale(s,a,n[i]))}return r}function UL(t,e,n){const r=new Map;for(const i of t){const o=i.transform,s=n.data.field(i.field);r.set(i.field,Ile(o,s,e))}return r}class uu extends Jm{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class sT extends Jm{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class aT{constructor(e,n,r,i){this.batchId=e,this.localWriteTime=n,this.baseMutations=r,this.mutations=i}applyToRemoteDocument(e,n){const r=n.mutationResults;for(let i=0;i<this.mutations.length;i++){const o=this.mutations[i];o.key.isEqual(e.key)&&Dle(o,e,r[i])}}applyToLocalView(e,n){for(const r of this.baseMutations)r.key.isEqual(e.key)&&(n=ih(r,e,n,this.localWriteTime));for(const r of this.mutations)r.key.isEqual(e.key)&&(n=ih(r,e,n,this.localWriteTime));return n}applyToLocalDocumentSet(e,n){const r=PL();return this.mutations.forEach(i=>{const o=e.get(i.key),s=o.overlayedDocument;let a=this.applyToLocalView(s,o.mutatedFields);a=n.has(i.key)?null:a;const l=VL(s,a);null!==l&&r.set(i.key,l),s.isValidDocument()||s.convertToNoDocument(He.min())}),r}keys(){return this.mutations.reduce((e,n)=>e.add(n.key),at())}isEqual(e){return this.batchId===e.batchId&&Zc(this.mutations,e.mutations,(n,r)=>BL(n,r))&&Zc(this.baseMutations,e.baseMutations,(n,r)=>BL(n,r))}}class lT{constructor(e,n,r,i){this.batch=e,this.commitVersion=n,this.mutationResults=r,this.docVersions=i}static from(e,n,r){ze(e.mutations.length===r.length);let i=Ele;const o=e.mutations;for(let s=0;s<o.length;s++)i=i.insert(o[s].key,r[s].version);return new lT(e,n,r,i)}}class cT{constructor(e,n){this.largestBatchId=e,this.mutation=n}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return"Overlay{\n      largestBatchId: ".concat(this.largestBatchId,",\n      mutation: ").concat(this.mutation.toString(),"\n    }")}}class Mle{constructor(e,n){this.count=e,this.unchangedNames=n}}var Vn,St;function GL(t){if(void 0===t)return xn("GRPC error has no .code"),oe.UNKNOWN;switch(t){case Vn.OK:return oe.OK;case Vn.CANCELLED:return oe.CANCELLED;case Vn.UNKNOWN:return oe.UNKNOWN;case Vn.DEADLINE_EXCEEDED:return oe.DEADLINE_EXCEEDED;case Vn.RESOURCE_EXHAUSTED:return oe.RESOURCE_EXHAUSTED;case Vn.INTERNAL:return oe.INTERNAL;case Vn.UNAVAILABLE:return oe.UNAVAILABLE;case Vn.UNAUTHENTICATED:return oe.UNAUTHENTICATED;case Vn.INVALID_ARGUMENT:return oe.INVALID_ARGUMENT;case Vn.NOT_FOUND:return oe.NOT_FOUND;case Vn.ALREADY_EXISTS:return oe.ALREADY_EXISTS;case Vn.PERMISSION_DENIED:return oe.PERMISSION_DENIED;case Vn.FAILED_PRECONDITION:return oe.FAILED_PRECONDITION;case Vn.ABORTED:return oe.ABORTED;case Vn.OUT_OF_RANGE:return oe.OUT_OF_RANGE;case Vn.UNIMPLEMENTED:return oe.UNIMPLEMENTED;case Vn.DATA_LOSS:return oe.DATA_LOSS;default:return Be()}}(St=Vn||(Vn={}))[St.OK=0]="OK",St[St.CANCELLED=1]="CANCELLED",St[St.UNKNOWN=2]="UNKNOWN",St[St.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",St[St.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",St[St.NOT_FOUND=5]="NOT_FOUND",St[St.ALREADY_EXISTS=6]="ALREADY_EXISTS",St[St.PERMISSION_DENIED=7]="PERMISSION_DENIED",St[St.UNAUTHENTICATED=16]="UNAUTHENTICATED",St[St.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",St[St.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",St[St.ABORTED=10]="ABORTED",St[St.OUT_OF_RANGE=11]="OUT_OF_RANGE",St[St.UNIMPLEMENTED=12]="UNIMPLEMENTED",St[St.INTERNAL=13]="INTERNAL",St[St.UNAVAILABLE=14]="UNAVAILABLE",St[St.DATA_LOSS=15]="DATA_LOSS";const Ole=new al([4294967295,4294967295],0);function WL(t){const e=function qL(){return new TextEncoder}().encode(t),n=new A6;return n.update(e),new Uint8Array(n.digest())}function YL(t){const e=new DataView(t.buffer),n=e.getUint32(0,!0),r=e.getUint32(4,!0),i=e.getUint32(8,!0),o=e.getUint32(12,!0);return[new al([n,r],0),new al([i,o],0)]}class uT{constructor(e,n,r){if(this.bitmap=e,this.padding=n,this.hashCount=r,n<0||n>=8)throw new oh("Invalid padding: ".concat(n));if(r<0)throw new oh("Invalid hash count: ".concat(r));if(e.length>0&&0===this.hashCount)throw new oh("Invalid hash count: ".concat(r));if(0===e.length&&0!==n)throw new oh("Invalid padding when bitmap length is 0: ".concat(n));this.Ie=8*e.length-n,this.Te=al.fromNumber(this.Ie)}Ee(e,n,r){let i=e.add(n.multiply(al.fromNumber(r)));return 1===i.compare(Ole)&&(i=new al([i.getBits(0),i.getBits(1)],0)),i.modulo(this.Te).toNumber()}de(e){return 0!=(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.Ie)return!1;const n=WL(e),[r,i]=YL(n);for(let o=0;o<this.hashCount;o++){const s=this.Ee(r,i,o);if(!this.de(s))return!1}return!0}static create(e,n,r){const i=e%8==0?0:8-e%8,o=new Uint8Array(Math.ceil(e/8)),s=new uT(o,i,n);return r.forEach(a=>s.insert(a)),s}insert(e){if(0===this.Ie)return;const n=WL(e),[r,i]=YL(n);for(let o=0;o<this.hashCount;o++){const s=this.Ee(r,i,o);this.Ae(s)}}Ae(e){const n=Math.floor(e/8);this.bitmap[n]|=1<<e%8}}class oh extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class sh{constructor(e,n,r,i,o){this.snapshotVersion=e,this.targetChanges=n,this.targetMismatches=r,this.documentUpdates=i,this.resolvedLimboDocuments=o}static createSynthesizedRemoteEventForCurrentChange(e,n,r){const i=new Map;return i.set(e,ah.createSynthesizedTargetChangeForCurrentChange(e,n,r)),new sh(He.min(),i,new nn(Je),ci(),at())}}class ah{constructor(e,n,r,i,o){this.resumeToken=e,this.current=n,this.addedDocuments=r,this.modifiedDocuments=i,this.removedDocuments=o}static createSynthesizedTargetChangeForCurrentChange(e,n,r){return new ah(r,n,at(),at(),at())}}class t_{constructor(e,n,r,i){this.Re=e,this.removedTargetIds=n,this.key=r,this.Ve=i}}class KL{constructor(e,n){this.targetId=e,this.me=n}}class QL{constructor(e,n,r=Kn.EMPTY_BYTE_STRING,i=null){this.state=e,this.targetIds=n,this.resumeToken=r,this.cause=i}}class XL{constructor(){this.fe=0,this.ge=JL(),this.pe=Kn.EMPTY_BYTE_STRING,this.ye=!1,this.we=!0}get current(){return this.ye}get resumeToken(){return this.pe}get Se(){return 0!==this.fe}get be(){return this.we}De(e){e.approximateByteSize()>0&&(this.we=!0,this.pe=e)}Ce(){let e=at(),n=at(),r=at();return this.ge.forEach((i,o)=>{switch(o){case 0:e=e.add(i);break;case 2:n=n.add(i);break;case 1:r=r.add(i);break;default:Be()}}),new ah(this.pe,this.ye,e,n,r)}ve(){this.we=!1,this.ge=JL()}Fe(e,n){this.we=!0,this.ge=this.ge.insert(e,n)}Me(e){this.we=!0,this.ge=this.ge.remove(e)}xe(){this.fe+=1}Oe(){this.fe-=1,ze(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class Rle{constructor(e){this.Le=e,this.Be=new Map,this.ke=ci(),this.qe=ZL(),this.Qe=new nn(Je)}Ke(e){for(const n of e.Re)e.Ve&&e.Ve.isFoundDocument()?this.$e(n,e.Ve):this.Ue(n,e.key,e.Ve);for(const n of e.removedTargetIds)this.Ue(n,e.key,e.Ve)}We(e){this.forEachTarget(e,n=>{const r=this.Ge(n);switch(e.state){case 0:this.ze(n)&&r.De(e.resumeToken);break;case 1:r.Oe(),r.Se||r.ve(),r.De(e.resumeToken);break;case 2:r.Oe(),r.Se||this.removeTarget(n);break;case 3:this.ze(n)&&(r.Ne(),r.De(e.resumeToken));break;case 4:this.ze(n)&&(this.je(n),r.De(e.resumeToken));break;default:Be()}})}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.Be.forEach((r,i)=>{this.ze(i)&&n(i)})}He(e){const n=e.targetId,r=e.me.count,i=this.Je(n);if(i){const o=i.target;if(Ym(o))if(0===r){const s=new Re(o.path);this.Ue(n,s,an.newNoDocument(s,He.min()))}else ze(1===r);else{const s=this.Ye(n);if(s!==r){const a=this.Ze(e),l=a?this.Xe(a,e,s):1;0!==l&&(this.je(n),this.Qe=this.Qe.insert(n,2===l?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(e){const n=e.me.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:r="",padding:i=0},hashCount:o=0}=n;let s,a;try{s=Ss(r).toUint8Array()}catch(l){if(l instanceof tL)return Ei("Decoding the base64 bloom filter in existence filter failed ("+l.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw l}try{a=new uT(s,i,o)}catch(l){return Ei(l instanceof oh?"BloomFilter error: ":"Applying bloom filter failed: ",l),null}return 0===a.Ie?null:a}Xe(e,n,r){return n.me.count===r-this.nt(e,n.targetId)?0:2}nt(e,n){const r=this.Le.getRemoteKeysForTarget(n);let i=0;return r.forEach(o=>{const s=this.Le.tt(),a="projects/".concat(s.projectId,"/databases/").concat(s.database,"/documents/").concat(o.path.canonicalString());e.mightContain(a)||(this.Ue(n,o,null),i++)}),i}rt(e){const n=new Map;this.Be.forEach((o,s)=>{const a=this.Je(s);if(a){if(o.current&&Ym(a.target)){const l=new Re(a.target.path);null!==this.ke.get(l)||this.it(s,l)||this.Ue(s,l,an.newNoDocument(l,e))}o.be&&(n.set(s,o.Ce()),o.ve())}});let r=at();this.qe.forEach((o,s)=>{let a=!0;s.forEachWhile(l=>{const c=this.Je(l);return!c||"TargetPurposeLimboResolution"===c.purpose||(a=!1,!1)}),a&&(r=r.add(o))}),this.ke.forEach((o,s)=>s.setReadTime(e));const i=new sh(e,n,this.Qe,this.ke,r);return this.ke=ci(),this.qe=ZL(),this.Qe=new nn(Je),i}$e(e,n){if(!this.ze(e))return;const r=this.it(e,n.key)?2:0;this.Ge(e).Fe(n.key,r),this.ke=this.ke.insert(n.key,n),this.qe=this.qe.insert(n.key,this.st(n.key).add(e))}Ue(e,n,r){if(!this.ze(e))return;const i=this.Ge(e);this.it(e,n)?i.Fe(n,1):i.Me(n),this.qe=this.qe.insert(n,this.st(n).delete(e)),r&&(this.ke=this.ke.insert(n,r))}removeTarget(e){this.Be.delete(e)}Ye(e){const n=this.Ge(e).Ce();return this.Le.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}xe(e){this.Ge(e).xe()}Ge(e){let n=this.Be.get(e);return n||(n=new XL,this.Be.set(e,n)),n}st(e){let n=this.qe.get(e);return n||(n=new Gt(Je),this.qe=this.qe.insert(e,n)),n}ze(e){const n=null!==this.Je(e);return n||me("WatchChangeAggregator","Detected inactive target",e),n}Je(e){const n=this.Be.get(e);return n&&n.Se?null:this.Le.ot(e)}je(e){this.Be.set(e,new XL),this.Le.getRemoteKeysForTarget(e).forEach(n=>{this.Ue(e,n,null)})}it(e,n){return this.Le.getRemoteKeysForTarget(e).has(n)}}function ZL(){return new nn(Re.comparator)}function JL(){return new nn(Re.comparator)}const Nle={asc:"ASCENDING",desc:"DESCENDING"},Lle={"<":"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"},Fle={and:"AND",or:"OR"};class Vle{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function dT(t,e){return t.useProto3Json||Gf(e)?e:{value:e}}function du(t,e){return t.useProto3Json?"".concat(new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z",""),".").concat(("000000000"+e.nanoseconds).slice(-9),"Z"):{seconds:""+e.seconds,nanos:e.nanoseconds}}function e5(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function Ble(t,e){return du(t,e.toTimestamp())}function Pn(t){return ze(!!t),He.fromTimestamp(function(n){const r=Es(n);return new gn(r.seconds,r.nanos)}(t))}function fT(t,e){return hT(t,e).canonicalString()}function hT(t,e){const n=(i=t,new pt(["projects",i.projectId,"databases",i.database])).child("documents");var i;return void 0===e?n:n.child(e)}function t5(t){const e=pt.fromString(t);return ze(f5(e)),e}function lh(t,e){return fT(t.databaseId,e.path)}function Bo(t,e){const n=t5(e);if(n.get(1)!==t.databaseId.projectId)throw new _e(oe.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new _e(oe.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new Re(i5(n))}function n5(t,e){return fT(t.databaseId,e)}function pT(t){return new pt(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function i5(t){return ze(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function o5(t,e,n){return{name:lh(t,e),fields:n.value.mapValue.fields}}function a5(t,e){return{documents:[n5(t,e.path)]}}function n_(t,e){const n={structuredQuery:{}},r=e.path;let i;null!==e.collectionGroup?(i=r,n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(i=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=n5(t,i);const o=function(c){if(0!==c.length)return d5(Ut.create(c,"and"))}(e.filters);o&&(n.structuredQuery.where=o);const s=function(c){if(0!==c.length)return c.map(u=>{return{field:la((h=u).field),direction:jle(h.dir)};var h})}(e.orderBy);s&&(n.structuredQuery.orderBy=s);const a=dT(t,e.limit);return null!==a&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt={before:(c=e.startAt).inclusive,values:c.position}),e.endAt&&(n.structuredQuery.endAt=function(c){return{before:!c.inclusive,values:c.position}}(e.endAt)),{_t:n,parent:i};var c}function c5(t){let e=function r5(t){const e=t5(t);return 4===e.length?pt.emptyPath():i5(e)}(t.parent);const n=t.structuredQuery,r=n.from?n.from.length:0;let i=null;if(r>0){ze(1===r);const u=n.from[0];u.allDescendants?i=u.collectionId:e=e.child(u.collectionId)}let o=[];n.where&&(o=function(d){const h=u5(d);return h instanceof Ut&&eT(h)?h.getFilters():[h]}(n.where));let s=[];n.orderBy&&(s=n.orderBy.map(h=>{return new Xf(fu((m=h).field),function(y){switch(y){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(m.direction));var m}));let a=null;n.limit&&(a=function(d){let h;return h="object"==typeof d?d.value:d,Gf(h)?null:h}(n.limit));let l=null;var d;n.startAt&&(l=new aa((d=n.startAt).values||[],!!d.before));let c=null;return n.endAt&&(c=function(d){return new aa(d.values||[],!d.before)}(n.endAt)),function bL(t,e,n,r,i,o,s,a){return new Ts(t,e,n,r,i,o,s,a)}(e,i,s,o,a,"F",l,c)}function u5(t){return void 0!==t.unaryFilter?function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=fu(n.unaryFilter.field);return gt.create(r,"==",{doubleValue:NaN});case"IS_NULL":const i=fu(n.unaryFilter.field);return gt.create(i,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const o=fu(n.unaryFilter.field);return gt.create(o,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const s=fu(n.unaryFilter.field);return gt.create(s,"!=",{nullValue:"NULL_VALUE"});default:return Be()}}(t):void 0!==t.fieldFilter?gt.create(fu((n=t).fieldFilter.field),function(i){switch(i){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 Be()}}(n.fieldFilter.op),n.fieldFilter.value):void 0!==t.compositeFilter?function(n){return Ut.create(n.compositeFilter.filters.map(r=>u5(r)),function(i){switch(i){case"AND":return"and";case"OR":return"or";default:return Be()}}(n.compositeFilter.op))}(t):Be();var n}function jle(t){return Nle[t]}function Gle(t){return Lle[t]}function qle(t){return Fle[t]}function la(t){return{fieldPath:t.canonicalString()}}function fu(t){return dn.fromServerFormat(t.fieldPath)}function d5(t){return t instanceof gt?function(n){if("=="===n.op){if(iL(n.value))return{unaryFilter:{field:la(n.field),op:"IS_NAN"}};if(rL(n.value))return{unaryFilter:{field:la(n.field),op:"IS_NULL"}}}else if("!="===n.op){if(iL(n.value))return{unaryFilter:{field:la(n.field),op:"IS_NOT_NAN"}};if(rL(n.value))return{unaryFilter:{field:la(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:la(n.field),op:Gle(n.op),value:n.value}}}(t):t instanceof Ut?function(n){const r=n.getFilters().map(i=>d5(i));return 1===r.length?r[0]:{compositeFilter:{op:qle(n.op),filters:r}}}(t):Be()}function Wle(t){const e=[];return t.fields.forEach(n=>e.push(n.canonicalString())),{fieldPaths:e}}function f5(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}class xs{constructor(e,n,r,i,o=He.min(),s=He.min(),a=Kn.EMPTY_BYTE_STRING,l=null){this.target=e,this.targetId=n,this.purpose=r,this.sequenceNumber=i,this.snapshotVersion=o,this.lastLimboFreeSnapshotVersion=s,this.resumeToken=a,this.expectedCount=l}withSequenceNumber(e){return new xs(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new xs(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new xs(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new xs(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class h5{constructor(e){this.ct=e}}function mT(t){const e=c5({parent:t.parent,structuredQuery:t.structuredQuery});return"LAST"===t.limitType?Qm(e,e.limit,"L"):e}class yl{constructor(){}Pt(e,n){this.It(e,n),n.Tt()}It(e,n){if("nullValue"in e)this.Et(n,5);else if("booleanValue"in e)this.Et(n,10),n.dt(e.booleanValue?1:0);else if("integerValue"in e)this.Et(n,15),n.dt(bn(e.integerValue));else if("doubleValue"in e){const r=bn(e.doubleValue);isNaN(r)?this.Et(n,13):(this.Et(n,15),qf(r)?n.dt(0):n.dt(r))}else if("timestampValue"in e){let r=e.timestampValue;this.Et(n,20),"string"==typeof r&&(r=Es(r)),n.At("".concat(r.seconds||"")),n.dt(r.nanos||0)}else if("stringValue"in e)this.Rt(e.stringValue,n),this.Vt(n);else if("bytesValue"in e)this.Et(n,30),n.ft(Ss(e.bytesValue)),this.Vt(n);else if("referenceValue"in e)this.gt(e.referenceValue,n);else if("geoPointValue"in e){const r=e.geoPointValue;this.Et(n,45),n.dt(r.latitude||0),n.dt(r.longitude||0)}else"mapValue"in e?oL(e)?this.Et(n,Number.MAX_SAFE_INTEGER):(this.yt(e.mapValue,n),this.Vt(n)):"arrayValue"in e?(this.wt(e.arrayValue,n),this.Vt(n)):Be()}Rt(e,n){this.Et(n,25),this.St(e,n)}St(e,n){n.At(e)}yt(e,n){const r=e.fields||{};this.Et(n,55);for(const i of Object.keys(r))this.Rt(i,n),this.It(r[i],n)}wt(e,n){const r=e.values||[];this.Et(n,50);for(const i of r)this.It(i,n)}gt(e,n){this.Et(n,37),Re.fromName(e).path.forEach(r=>{this.Et(n,60),this.St(r,n)})}Et(e,n){e.dt(n)}Vt(e){e.dt(2)}}yl.bt=new yl;class tce{constructor(){this._n=new CT}addToCollectionParentIndex(e,n){return this._n.add(n),ne.resolve()}getCollectionParents(e,n){return ne.resolve(this._n.getEntries(n))}addFieldIndex(e,n){return ne.resolve()}deleteFieldIndex(e,n){return ne.resolve()}deleteAllFieldIndexes(e){return ne.resolve()}createTargetIndexes(e,n){return ne.resolve()}getDocumentsMatchingTarget(e,n){return ne.resolve(null)}getIndexType(e,n){return ne.resolve(0)}getFieldIndexes(e,n){return ne.resolve([])}getNextCollectionGroupToUpdate(e){return ne.resolve(null)}getMinOffset(e,n){return ne.resolve(Si.min())}getMinOffsetFromCollectionGroup(e,n){return ne.resolve(Si.min())}updateCollectionGroup(e,n,r){return ne.resolve()}updateIndexEntries(e,n){return ne.resolve()}}class CT{constructor(){this.index={}}add(e){const n=e.lastSegment(),r=e.popLast(),i=this.index[n]||new Gt(pt.comparator),o=!i.has(r);return this.index[n]=i.add(r),o}has(e){const n=e.lastSegment(),r=e.popLast(),i=this.index[n];return i&&i.has(r)}getEntries(e){return(this.index[e]||new Gt(pt.comparator)).toArray()}}new Uint8Array(0);class Pr{constructor(e,n,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=r}static withCacheSize(e){return new Pr(e,Pr.DEFAULT_COLLECTION_PERCENTILE,Pr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Pr.DEFAULT_COLLECTION_PERCENTILE=10,Pr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Pr.DEFAULT=new Pr(41943040,Pr.DEFAULT_COLLECTION_PERCENTILE,Pr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Pr.DISABLED=new Pr(-1,0,0);class wl{constructor(e){this.On=e}next(){return this.On+=2,this.On}static Nn(){return new wl(0)}static Ln(){return new wl(-1)}}class ace{constructor(){this.changes=new Is(e=>e.toString(),(e,n)=>e.isEqual(n)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,n){this.assertNotApplied(),this.changes.set(e,an.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const r=this.changes.get(n);return void 0!==r?ne.resolve(r):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}class uce{constructor(e,n){this.overlayedDocument=e,this.mutatedFields=n}}class $5{constructor(e,n,r,i){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=r,this.indexManager=i}getDocument(e,n){let r=null;return this.documentOverlayCache.getOverlay(e,n).next(i=>(r=i,this.remoteDocumentCache.getEntry(e,n))).next(i=>(null!==r&&ih(r.mutation,i,li.empty(),gn.now()),i))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.getLocalViewOfDocuments(e,r,at()).next(()=>r))}getLocalViewOfDocuments(e,n,r=at()){const i=Vo();return this.populateOverlays(e,i,n).next(()=>this.computeViews(e,n,i,r).next(o=>{let s=th();return o.forEach((a,l)=>{s=s.insert(a,l.overlayedDocument)}),s}))}getOverlayedDocuments(e,n){const r=Vo();return this.populateOverlays(e,r,n).next(()=>this.computeViews(e,n,r,at()))}populateOverlays(e,n,r){const i=[];return r.forEach(o=>{n.has(o)||i.push(o)}),this.documentOverlayCache.getOverlays(e,i).next(o=>{o.forEach((s,a)=>{n.set(s,a)})})}computeViews(e,n,r,i){let o=ci();const s=nh(),a=nh();return n.forEach((l,c)=>{const u=r.get(c.key);i.has(c.key)&&(void 0===u||u.mutation instanceof As)?o=o.insert(c.key,c):void 0!==u?(s.set(c.key,u.mutation.getFieldMask()),ih(u.mutation,c,u.mutation.getFieldMask(),gn.now())):s.set(c.key,li.empty())}),this.recalculateAndSaveOverlays(e,o).next(l=>(l.forEach((c,u)=>s.set(c,u)),n.forEach((c,u)=>{var d;return a.set(c,new uce(u,null!==(d=s.get(c))&&void 0!==d?d:null))}),a))}recalculateAndSaveOverlays(e,n){const r=nh();let i=new nn((s,a)=>s-a),o=at();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next(s=>{for(const a of s)a.keys().forEach(l=>{const c=n.get(l);if(null===c)return;let u=r.get(l)||li.empty();u=a.applyToLocalView(c,u),r.set(l,u);const d=(i.get(a.batchId)||at()).add(l);i=i.insert(a.batchId,d)})}).next(()=>{const s=[],a=i.getReverseIterator();for(;a.hasNext();){const l=a.getNext(),c=l.key,u=l.value,d=PL();u.forEach(h=>{if(!o.has(h)){const p=VL(n.get(h),r.get(h));null!==p&&d.set(h,p),o=o.add(h)}}),s.push(this.documentOverlayCache.saveOverlays(e,c,d))}return ne.waitFor(s)}).next(()=>r)}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.recalculateAndSaveOverlays(e,r))}getDocumentsMatchingQuery(e,n,r,i){return Re.isDocumentKey((s=n).path)&&null===s.collectionGroup&&0===s.filters.length?this.getDocumentsMatchingDocumentQuery(e,n.path):rT(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,r,i):this.getDocumentsMatchingCollectionQuery(e,n,r,i);var s}getNextDocuments(e,n,r,i){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,r,i).next(o=>{const s=i-o.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,r.largestBatchId,i-o.size):ne.resolve(Vo());let a=-1,l=o;return s.next(c=>ne.forEach(c,(u,d)=>(a<d.largestBatchId&&(a=d.largestBatchId),o.get(u)?ne.resolve():this.remoteDocumentCache.getEntry(e,u).next(h=>{l=l.insert(u,h)}))).next(()=>this.populateOverlays(e,c,o)).next(()=>this.computeViews(e,l,c,at())).next(u=>({batchId:a,changes:xL(u)})))})}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new Re(n)).next(r=>{let i=th();return r.isFoundDocument()&&(i=i.insert(r.key,r)),i})}getDocumentsMatchingCollectionGroupQuery(e,n,r,i){const o=n.collectionGroup;let s=th();return this.indexManager.getCollectionParents(e,o).next(a=>ne.forEach(a,l=>{const c=(d=n,h=l.child(o),new Ts(h,null,d.explicitOrderBy.slice(),d.filters.slice(),d.limit,d.limitType,d.startAt,d.endAt));var d,h;return this.getDocumentsMatchingCollectionQuery(e,c,r,i).next(u=>{u.forEach((d,h)=>{s=s.insert(d,h)})})}).next(()=>s))}getDocumentsMatchingCollectionQuery(e,n,r,i){let o;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,r.largestBatchId).next(s=>(o=s,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,r,o,i))).next(s=>{o.forEach((l,c)=>{const u=c.getKey();null===s.get(u)&&(s=s.insert(u,an.newInvalidDocument(u)))});let a=th();return s.forEach((l,c)=>{const u=o.get(l);void 0!==u&&ih(u.mutation,c,li.empty(),gn.now()),eh(n,c)&&(a=a.insert(l,c))}),a})}}class dce{constructor(e){this.serializer=e,this.cr=new Map,this.lr=new Map}getBundleMetadata(e,n){return ne.resolve(this.cr.get(n))}saveBundleMetadata(e,n){return this.cr.set(n.id,{id:(i=n).id,version:i.version,createTime:Pn(i.createTime)}),ne.resolve();var i}getNamedQuery(e,n){return ne.resolve(this.lr.get(n))}saveNamedQuery(e,n){return this.lr.set(n.name,{name:(i=n).name,query:mT(i.bundledQuery),readTime:Pn(i.readTime)}),ne.resolve();var i}}class fce{constructor(){this.overlays=new nn(Re.comparator),this.hr=new Map}getOverlay(e,n){return ne.resolve(this.overlays.get(n))}getOverlays(e,n){const r=Vo();return ne.forEach(n,i=>this.getOverlay(e,i).next(o=>{null!==o&&r.set(i,o)})).next(()=>r)}saveOverlays(e,n,r){return r.forEach((i,o)=>{this.ht(e,n,o)}),ne.resolve()}removeOverlaysForBatchId(e,n,r){const i=this.hr.get(r);return void 0!==i&&(i.forEach(o=>this.overlays=this.overlays.remove(o)),this.hr.delete(r)),ne.resolve()}getOverlaysForCollection(e,n,r){const i=Vo(),o=n.length+1,s=new Re(n.child("")),a=this.overlays.getIteratorFrom(s);for(;a.hasNext();){const l=a.getNext().value,c=l.getKey();if(!n.isPrefixOf(c.path))break;c.path.length===o&&l.largestBatchId>r&&i.set(l.getKey(),l)}return ne.resolve(i)}getOverlaysForCollectionGroup(e,n,r,i){let o=new nn((c,u)=>c-u);const s=this.overlays.getIterator();for(;s.hasNext();){const c=s.getNext().value;if(c.getKey().getCollectionGroup()===n&&c.largestBatchId>r){let u=o.get(c.largestBatchId);null===u&&(u=Vo(),o=o.insert(c.largestBatchId,u)),u.set(c.getKey(),c)}}const a=Vo(),l=o.getIterator();for(;l.hasNext()&&(l.getNext().value.forEach((c,u)=>a.set(c,u)),!(a.size()>=i)););return ne.resolve(a)}ht(e,n,r){const i=this.overlays.get(r.key);if(null!==i){const s=this.hr.get(i.largestBatchId).delete(r.key);this.hr.set(i.largestBatchId,s)}this.overlays=this.overlays.insert(r.key,new cT(n,r));let o=this.hr.get(n);void 0===o&&(o=at(),this.hr.set(n,o)),this.hr.set(n,o.add(r.key))}}class ET{constructor(){this.Pr=new Gt(nr.Ir),this.Tr=new Gt(nr.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(e,n){const r=new nr(e,n);this.Pr=this.Pr.add(r),this.Tr=this.Tr.add(r)}dr(e,n){e.forEach(r=>this.addReference(r,n))}removeReference(e,n){this.Ar(new nr(e,n))}Rr(e,n){e.forEach(r=>this.removeReference(r,n))}Vr(e){const n=new Re(new pt([])),r=new nr(n,e),i=new nr(n,e+1),o=[];return this.Tr.forEachInRange([r,i],s=>{this.Ar(s),o.push(s.key)}),o}mr(){this.Pr.forEach(e=>this.Ar(e))}Ar(e){this.Pr=this.Pr.delete(e),this.Tr=this.Tr.delete(e)}gr(e){const n=new Re(new pt([])),r=new nr(n,e),i=new nr(n,e+1);let o=at();return this.Tr.forEachInRange([r,i],s=>{o=o.add(s.key)}),o}containsKey(e){const n=new nr(e,0),r=this.Pr.firstAfterOrEqual(n);return null!==r&&e.isEqual(r.key)}}class nr{constructor(e,n){this.key=e,this.pr=n}static Ir(e,n){return Re.comparator(e.key,n.key)||Je(e.pr,n.pr)}static Er(e,n){return Je(e.pr,n.pr)||Re.comparator(e.key,n.key)}}class hce{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutationQueue=[],this.yr=1,this.wr=new Gt(nr.Ir)}checkEmpty(e){return ne.resolve(0===this.mutationQueue.length)}addMutationBatch(e,n,r,i){const o=this.yr;this.yr++;const s=new aT(o,n,r,i);this.mutationQueue.push(s);for(const a of i)this.wr=this.wr.add(new nr(a.key,o)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return ne.resolve(s)}lookupMutationBatch(e,n){return ne.resolve(this.Sr(n))}getNextMutationBatchAfterBatchId(e,n){const i=this.br(n+1),o=i<0?0:i;return ne.resolve(this.mutationQueue.length>o?this.mutationQueue[o]:null)}getHighestUnacknowledgedBatchId(){return ne.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(e){return ne.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const r=new nr(n,0),i=new nr(n,Number.POSITIVE_INFINITY),o=[];return this.wr.forEachInRange([r,i],s=>{const a=this.Sr(s.pr);o.push(a)}),ne.resolve(o)}getAllMutationBatchesAffectingDocumentKeys(e,n){let r=new Gt(Je);return n.forEach(i=>{const o=new nr(i,0),s=new nr(i,Number.POSITIVE_INFINITY);this.wr.forEachInRange([o,s],a=>{r=r.add(a.pr)})}),ne.resolve(this.Dr(r))}getAllMutationBatchesAffectingQuery(e,n){const r=n.path,i=r.length+1;let o=r;Re.isDocumentKey(o)||(o=o.child(""));const s=new nr(new Re(o),0);let a=new Gt(Je);return this.wr.forEachWhile(l=>{const c=l.key.path;return!!r.isPrefixOf(c)&&(c.length===i&&(a=a.add(l.pr)),!0)},s),ne.resolve(this.Dr(a))}Dr(e){const n=[];return e.forEach(r=>{const i=this.Sr(r);null!==i&&n.push(i)}),n}removeMutationBatch(e,n){ze(0===this.Cr(n.batchId,"removed")),this.mutationQueue.shift();let r=this.wr;return ne.forEach(n.mutations,i=>{const o=new nr(i.key,n.batchId);return r=r.delete(o),this.referenceDelegate.markPotentiallyOrphaned(e,i.key)}).next(()=>{this.wr=r})}Mn(e){}containsKey(e,n){const r=new nr(n,0),i=this.wr.firstAfterOrEqual(r);return ne.resolve(n.isEqual(i&&i.key))}performConsistencyCheck(e){return ne.resolve()}Cr(e,n){return this.br(e)}br(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}Sr(e){const n=this.br(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}class pce{constructor(e){this.vr=e,this.docs=new nn(Re.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const r=n.key,i=this.docs.get(r),o=i?i.size:0,s=this.vr(n);return this.docs=this.docs.insert(r,{document:n.mutableCopy(),size:s}),this.size+=s-o,this.indexManager.addToCollectionParentIndex(e,r.path.popLast())}removeEntry(e){const n=this.docs.get(e);n&&(this.docs=this.docs.remove(e),this.size-=n.size)}getEntry(e,n){const r=this.docs.get(n);return ne.resolve(r?r.document.mutableCopy():an.newInvalidDocument(n))}getEntries(e,n){let r=ci();return n.forEach(i=>{const o=this.docs.get(i);r=r.insert(i,o?o.document.mutableCopy():an.newInvalidDocument(i))}),ne.resolve(r)}getDocumentsMatchingQuery(e,n,r,i){let o=ci();const s=n.path,a=new Re(s.child("")),l=this.docs.getIteratorFrom(a);for(;l.hasNext();){const{key:c,value:{document:u}}=l.getNext();if(!s.isPrefixOf(c.path))break;c.path.length>s.length+1||WS($6(u),r)<=0||(i.has(u.key)||eh(n,u))&&(o=o.insert(u.key,u.mutableCopy()))}return ne.resolve(o)}getAllFromCollectionGroup(e,n,r,i){Be()}Fr(e,n){return ne.forEach(this.docs,r=>n(r))}newChangeBuffer(e){return new gce(this)}getSize(e){return ne.resolve(this.size)}}class gce extends ace{constructor(e){super(),this.ar=e}applyChanges(e){const n=[];return this.changes.forEach((r,i)=>{i.isValidDocument()?n.push(this.ar.addEntry(e,i)):this.ar.removeEntry(r)}),ne.waitFor(n)}getFromCache(e,n){return this.ar.getEntry(e,n)}getAllFromCache(e,n){return this.ar.getEntries(e,n)}}class mce{constructor(e){this.persistence=e,this.Mr=new Is(n=>hl(n),Zf),this.lastRemoteSnapshotVersion=He.min(),this.highestTargetId=0,this.Or=0,this.Nr=new ET,this.targetCount=0,this.Lr=wl.Nn()}forEachTarget(e,n){return this.Mr.forEach((r,i)=>n(i)),ne.resolve()}getLastRemoteSnapshotVersion(e){return ne.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return ne.resolve(this.Or)}allocateTargetId(e){return this.highestTargetId=this.Lr.next(),ne.resolve(this.highestTargetId)}setTargetsMetadata(e,n,r){return r&&(this.lastRemoteSnapshotVersion=r),n>this.Or&&(this.Or=n),ne.resolve()}qn(e){this.Mr.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.Lr=new wl(n),this.highestTargetId=n),e.sequenceNumber>this.Or&&(this.Or=e.sequenceNumber)}addTargetData(e,n){return this.qn(n),this.targetCount+=1,ne.resolve()}updateTargetData(e,n){return this.qn(n),ne.resolve()}removeTargetData(e,n){return this.Mr.delete(n.target),this.Nr.Vr(n.targetId),this.targetCount-=1,ne.resolve()}removeTargets(e,n,r){let i=0;const o=[];return this.Mr.forEach((s,a)=>{a.sequenceNumber<=n&&null===r.get(a.targetId)&&(this.Mr.delete(s),o.push(this.removeMatchingKeysForTargetId(e,a.targetId)),i++)}),ne.waitFor(o).next(()=>i)}getTargetCount(e){return ne.resolve(this.targetCount)}getTargetData(e,n){const r=this.Mr.get(n)||null;return ne.resolve(r)}addMatchingKeys(e,n,r){return this.Nr.dr(n,r),ne.resolve()}removeMatchingKeys(e,n,r){this.Nr.Rr(n,r);const i=this.persistence.referenceDelegate,o=[];return i&&n.forEach(s=>{o.push(i.markPotentiallyOrphaned(e,s))}),ne.waitFor(o)}removeMatchingKeysForTargetId(e,n){return this.Nr.Vr(n),ne.resolve()}getMatchingKeysForTargetId(e,n){const r=this.Nr.gr(n);return ne.resolve(r)}containsKey(e,n){return ne.resolve(this.Nr.containsKey(n))}}class ST{constructor(e,n){this.Br={},this.overlays={},this.kr=new Ti(0),this.qr=!1,this.qr=!0,this.referenceDelegate=e(this),this.Qr=new mce(this),this.indexManager=new tce,this.remoteDocumentCache=new pce(r=>this.referenceDelegate.Kr(r)),this.serializer=new h5(n),this.$r=new dce(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new fce,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let r=this.Br[e.toKey()];return r||(r=new hce(n,this.referenceDelegate),this.Br[e.toKey()]=r),r}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(e,n,r){me("MemoryPersistence","Starting transaction:",e);const i=new _ce(this.kr.next());return this.referenceDelegate.Ur(),r(i).next(o=>this.referenceDelegate.Wr(i).next(()=>o)).toPromise().then(o=>(i.raiseOnCommittedEvent(),o))}Gr(e,n){return ne.or(Object.values(this.Br).map(r=>()=>r.containsKey(e,n)))}}class _ce extends Bae{constructor(e){super(),this.currentSequenceNumber=e}}class u_{constructor(e){this.persistence=e,this.zr=new ET,this.jr=null}static Hr(e){return new u_(e)}get Jr(){if(this.jr)return this.jr;throw Be()}addReference(e,n,r){return this.zr.addReference(r,n),this.Jr.delete(r.toString()),ne.resolve()}removeReference(e,n,r){return this.zr.removeReference(r,n),this.Jr.add(r.toString()),ne.resolve()}markPotentiallyOrphaned(e,n){return this.Jr.add(n.toString()),ne.resolve()}removeTarget(e,n){this.zr.Vr(n.targetId).forEach(i=>this.Jr.add(i.toString()));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,n.targetId).next(i=>{i.forEach(o=>this.Jr.add(o.toString()))}).next(()=>r.removeTargetData(e,n))}Ur(){this.jr=new Set}Wr(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ne.forEach(this.Jr,r=>{const i=Re.fromPath(r);return this.Yr(e,i).next(o=>{o||n.removeEntry(i,He.min())})}).next(()=>(this.jr=null,n.apply(e)))}updateLimboDocument(e,n){return this.Yr(e,n).next(r=>{r?this.Jr.delete(n.toString()):this.Jr.add(n.toString())})}Kr(e){return 0}Yr(e,n){return ne.or([()=>ne.resolve(this.zr.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.Gr(e,n)])}}class xT{constructor(e,n,r,i){this.targetId=e,this.fromCache=n,this.qi=r,this.Qi=i}static Ki(e,n){let r=at(),i=at();for(const o of n.docChanges)switch(o.type){case 0:r=r.add(o.doc.key);break;case 1:i=i.add(o.doc.key)}return new xT(e,n.fromCache,r,i)}}class yce{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}class U5{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=function ire(){return!function ere(){var t;const e=null===(t=gm())||void 0===t?void 0:t.forceEnvironment;if("node"===e)return!0;if("browser"===e)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(n){return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}()?8:function U6(t){const e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)}(si())>0?6:4}initialize(e,n){this.zi=e,this.indexManager=n,this.$i=!0}getDocumentsMatchingQuery(e,n,r,i){const o={result:null};return this.ji(e,n).next(s=>{o.result=s}).next(()=>{if(!o.result)return this.Hi(e,n,i,r).next(s=>{o.result=s})}).next(()=>{if(o.result)return;const s=new yce;return this.Ji(e,n,s).next(a=>{if(o.result=a,this.Ui)return this.Yi(e,n,s,a.size)})}).next(()=>o.result)}Yi(e,n,r,i){return r.documentReadCount<this.Wi?(Xc()<=yt.DEBUG&&me("QueryEngine","SDK will not create cache indexes for query:",su(n),"since it only creates cache indexes for collection contains","more than or equal to",this.Wi,"documents"),ne.resolve()):(Xc()<=yt.DEBUG&&me("QueryEngine","Query:",su(n),"scans",r.documentReadCount,"local documents and returns",i,"documents as results."),r.documentReadCount>this.Gi*i?(Xc()<=yt.DEBUG&&me("QueryEngine","The SDK decides to create cache indexes for query:",su(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,xr(n))):ne.resolve())}ji(e,n){if(wL(n))return ne.resolve(null);let r=xr(n);return this.indexManager.getIndexType(e,r).next(i=>0===i?null:(null!==n.limit&&1===i&&(n=Qm(n,null,"F"),r=xr(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next(o=>{const s=at(...o);return this.zi.getDocuments(e,s).next(a=>this.indexManager.getMinOffset(e,r).next(l=>{const c=this.Zi(n,a);return this.Xi(n,c,s,l.readTime)?this.ji(e,Qm(n,null,"F")):this.es(e,c,n,l)}))})))}Hi(e,n,r,i){return wL(n)||i.isEqual(He.min())?ne.resolve(null):this.zi.getDocuments(e,r).next(o=>{const s=this.Zi(n,o);return this.Xi(n,s,r,i)?ne.resolve(null):(Xc()<=yt.DEBUG&&me("QueryEngine","Re-using previous result from %s to execute query: %s",i.toString(),su(n)),this.es(e,s,n,function B6(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,i=He.fromTimestamp(1e9===r?new gn(n+1,0):new gn(n,r));return new Si(i,Re.empty(),e)}(i,-1)).next(a=>a))})}Zi(e,n){let r=new Gt(IL(e));return n.forEach((i,o)=>{eh(e,o)&&(r=r.add(o))}),r}Xi(e,n,r,i){if(null===e.limit)return!1;if(r.size!==n.size)return!0;const o="F"===e.limitType?n.last():n.first();return!!o&&(o.hasPendingWrites||o.version.compareTo(i)>0)}Ji(e,n,r){return Xc()<=yt.DEBUG&&me("QueryEngine","Using full collection scan to execute query:",su(n)),this.zi.getDocumentsMatchingQuery(e,n,Si.min(),r)}es(e,n,r,i){return this.zi.getDocumentsMatchingQuery(e,r,i).next(o=>(n.forEach(s=>{o=o.insert(s.key,s)}),o))}}class bce{constructor(e,n,r,i){this.persistence=e,this.ts=n,this.serializer=i,this.ns=new nn(Je),this.rs=new Is(o=>hl(o),Zf),this.ss=new Map,this.os=e.getRemoteDocumentCache(),this.Qr=e.getTargetCache(),this.$r=e.getBundleCache(),this._s(r)}_s(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new $5(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",n=>e.collect(n,this.ns))}}function j5(t,e){return PT.apply(this,arguments)}function PT(){return PT=se(function*(t,e){const n=Pe(t);return yield n.persistence.runTransaction("Handle user change","readonly",r=>{let i;return n.mutationQueue.getAllMutationBatches(r).next(o=>(i=o,n._s(e),n.mutationQueue.getAllMutationBatches(r))).next(o=>{const s=[],a=[];let l=at();for(const c of i){s.push(c.batchId);for(const u of c.mutations)l=l.add(u.key)}for(const c of o){a.push(c.batchId);for(const u of c.mutations)l=l.add(u.key)}return n.localDocuments.getDocuments(r,l).next(c=>({us:c,removedBatchIds:s,addedBatchIds:a}))})})}),PT.apply(this,arguments)}function G5(t){const e=Pe(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",n=>e.Qr.getLastRemoteSnapshotVersion(n))}function Ece(t,e){const n=Pe(t);return n.persistence.runTransaction("Get next mutation batch","readonly",r=>(void 0===e&&(e=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e)))}function vu(t,e,n){return DT.apply(this,arguments)}function DT(){return DT=se(function*(t,e,n){const r=Pe(t),i=r.ns.get(e),o=n?"readwrite":"readwrite-primary";try{n||(yield r.persistence.runTransaction("Release target",o,s=>r.persistence.referenceDelegate.removeTarget(s,i)))}catch(s){if(!na(s))throw s;me("LocalStore","Failed to update sequence numbers for target ".concat(e,": ").concat(s))}r.ns=r.ns.remove(e),r.rs.delete(i.target)}),DT.apply(this,arguments)}function h_(t,e,n){const r=Pe(t);let i=He.min(),o=at();return r.persistence.runTransaction("Execute query","readwrite",s=>function(l,c,u){const d=Pe(l),h=d.rs.get(u);return void 0!==h?ne.resolve(d.ns.get(h)):d.Qr.getTargetData(c,u)}(r,s,xr(e)).next(a=>{if(a)return i=a.lastLimboFreeSnapshotVersion,r.Qr.getMatchingKeysForTargetId(s,a.targetId).next(l=>{o=l})}).next(()=>r.ts.getDocumentsMatchingQuery(s,e,n?i:He.min(),n?o:at())).next(a=>(function K5(t,e,n){let r=t.ss.get(e)||He.min();n.forEach((i,o)=>{o.readTime.compareTo(r)>0&&(r=o.readTime)}),t.ss.set(e,r)}(r,function TL(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}(e),a),{documents:a,hs:o})))}class NT{constructor(){this.activeTargetIds=function oT(){return Tle}()}As(e){this.activeTargetIds=this.activeTargetIds.add(e)}Rs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}ds(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class Z5{constructor(){this.no=new NT,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e){return this.no.As(e),this.ro[e]||"not-current"}updateQueryState(e,n,r){this.ro[e]=n}removeLocalQueryTarget(e){this.no.Rs(e)}isLocalQueryTarget(e){return this.no.activeTargetIds.has(e)}clearQueryState(e){delete this.ro[e]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(e){return this.no.activeTargetIds.has(e)}start(){return this.no=new NT,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class Ice{io(e){}shutdown(){}}class J5{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(e){this.uo.push(e)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){me("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.uo)e(0)}ao(){me("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.uo)e(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let m_=null;function FT(){return null===m_?m_=268435456+Math.round(2147483648*Math.random()):m_++,"0x"+m_.toString(16)}const Ace={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class xce{constructor(e){this.lo=e.lo,this.ho=e.ho}Po(e){this.Io=e}To(e){this.Eo=e}Ao(e){this.Ro=e}onMessage(e){this.Vo=e}close(){this.ho()}send(e){this.lo(e)}mo(){this.Io()}fo(){this.Eo()}po(e){this.Ro(e)}yo(e){this.Vo(e)}}const Dr="WebChannelConnection";class Pce extends class{constructor(n){this.databaseInfo=n,this.databaseId=n.databaseId;const r=n.ssl?"https":"http",i=encodeURIComponent(this.databaseId.projectId),o=encodeURIComponent(this.databaseId.database);this.wo=r+"://"+n.host,this.So="projects/".concat(i,"/databases/").concat(o),this.bo="(default)"===this.databaseId.database?"project_id=".concat(i):"project_id=".concat(i,"&database_id=").concat(o)}get Do(){return!1}Co(n,r,i,o,s){const a=FT(),l=this.vo(n,r.toUriEncodedString());me("RestConnection","Sending RPC '".concat(n,"' ").concat(a,":"),l,i);const c={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(c,o,s),this.Mo(n,l,c,i).then(u=>(me("RestConnection","Received RPC '".concat(n,"' ").concat(a,": "),u),u),u=>{throw Ei("RestConnection","RPC '".concat(n,"' ").concat(a," failed with error: "),u,"url: ",l,"request:",i),u})}xo(n,r,i,o,s,a){return this.Co(n,r,i,o,s)}Fo(n,r,i){n["X-Goog-Api-Client"]="gl-js/ fire/"+Qc,n["Content-Type"]="text/plain",this.databaseInfo.appId&&(n["X-Firebase-GMPID"]=this.databaseInfo.appId),r&&r.headers.forEach((o,s)=>n[s]=o),i&&i.headers.forEach((o,s)=>n[s]=o)}vo(n,r){const i=Ace[n];return"".concat(this.wo,"/v1/").concat(r,":").concat(i)}terminate(){}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Mo(e,n,r,i){const o=FT();return new Promise((s,a)=>{const l=new x6;l.setWithCredentials(!0),l.listenOnce(D6.COMPLETE,()=>{try{switch(l.getLastErrorCode()){case Bm.NO_ERROR:const u=l.getResponseJson();me(Dr,"XHR for RPC '".concat(e,"' ").concat(o," received:"),JSON.stringify(u)),s(u);break;case Bm.TIMEOUT:me(Dr,"RPC '".concat(e,"' ").concat(o," timed out")),a(new _e(oe.DEADLINE_EXCEEDED,"Request time out"));break;case Bm.HTTP_ERROR:const d=l.getStatus();if(me(Dr,"RPC '".concat(e,"' ").concat(o," failed with status:"),d,"response text:",l.getResponseText()),d>0){let h=l.getResponseJson();Array.isArray(h)&&(h=h[0]);const p=null==h?void 0:h.error;if(p&&p.status&&p.message){const m=function(y){const E=y.toLowerCase().replace(/_/g,"-");return Object.values(oe).indexOf(E)>=0?E:oe.UNKNOWN}(p.status);a(new _e(m,p.message))}else a(new _e(oe.UNKNOWN,"Server responded with status "+l.getStatus()))}else a(new _e(oe.UNAVAILABLE,"Connection failed."));break;default:Be()}}finally{me(Dr,"RPC '".concat(e,"' ").concat(o," completed."))}});const c=JSON.stringify(i);me(Dr,"RPC '".concat(e,"' ").concat(o," sending request:"),i),l.send(n,"POST",c,r,15)})}Oo(e,n,r){const i=FT(),o=[this.wo,"/","google.firestore.v1.Firestore","/",e,"/channel"],s=O6(),a=M6(),l={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/".concat(this.databaseId.projectId,"/databases/").concat(this.databaseId.database)},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},c=this.longPollingOptions.timeoutSeconds;void 0!==c&&(l.longPollingTimeout=Math.round(1e3*c)),this.useFetchStreams&&(l.xmlHttpFactory=new P6({})),this.Fo(l.initMessageHeaders,n,r),l.encodeInitMessageHeaders=!0;const u=o.join("");me(Dr,"Creating RPC '".concat(e,"' stream ").concat(i,": ").concat(u),l);const d=s.createWebChannel(u,l);let h=!1,p=!1;const m=new xce({lo:y=>{p?me(Dr,"Not sending because RPC '".concat(e,"' stream ").concat(i," is closed:"),y):(h||(me(Dr,"Opening RPC '".concat(e,"' stream ").concat(i," transport.")),d.open(),h=!0),me(Dr,"RPC '".concat(e,"' stream ").concat(i," sending:"),y),d.send(y))},ho:()=>d.close()}),_=(y,E,C)=>{y.listen(E,k=>{try{C(k)}catch(j){setTimeout(()=>{throw j},0)}})};return _(d,Uf.EventType.OPEN,()=>{p||(me(Dr,"RPC '".concat(e,"' stream ").concat(i," transport opened.")),m.mo())}),_(d,Uf.EventType.CLOSE,()=>{p||(p=!0,me(Dr,"RPC '".concat(e,"' stream ").concat(i," transport closed")),m.po())}),_(d,Uf.EventType.ERROR,y=>{p||(p=!0,Ei(Dr,"RPC '".concat(e,"' stream ").concat(i," transport errored:"),y),m.po(new _e(oe.UNAVAILABLE,"The operation could not be completed")))}),_(d,Uf.EventType.MESSAGE,y=>{var E;if(!p){const C=y.data[0];ze(!!C);const j=C.error||(null===(E=C[0])||void 0===E?void 0:E.error);if(j){me(Dr,"RPC '".concat(e,"' stream ").concat(i," received error:"),j);const q=j.status;let K=function(V){const F=Vn[V];if(void 0!==F)return GL(F)}(q),N=j.message;void 0===K&&(K=oe.INTERNAL,N="Unknown error status: "+q+" with message "+j.message),p=!0,m.po(new _e(K,N)),d.close()}else me(Dr,"RPC '".concat(e,"' stream ").concat(i," received:"),C),m.yo(C)}}),_(a,k6.STAT_EVENT,y=>{y.stat===jS.PROXY?me(Dr,"RPC '".concat(e,"' stream ").concat(i," detected buffering proxy")):y.stat===jS.NOPROXY&&me(Dr,"RPC '".concat(e,"' stream ").concat(i," detected no buffering proxy"))}),setTimeout(()=>{m.fo()},0),m}}function __(){return typeof document<"u"?document:null}function _h(t){return new Vle(t,!0)}class VT{constructor(e,n,r=1e3,i=1.5,o=6e4){this.oi=e,this.timerId=n,this.No=r,this.Lo=i,this.Bo=o,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(e){this.cancel();const n=Math.floor(this.ko+this.Uo()),r=Math.max(0,Date.now()-this.Qo),i=Math.max(0,n-r);i>0&&me("ExponentialBackoff","Backing off for ".concat(i," ms (base delay: ").concat(this.ko," ms, delay with jitter: ").concat(n," ms, last attempt: ").concat(r," ms ago)")),this.qo=this.oi.enqueueAfterDelay(this.timerId,i,()=>(this.Qo=Date.now(),e())),this.ko*=this.Lo,this.ko<this.No&&(this.ko=this.No),this.ko>this.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class tF{constructor(e,n,r,i,o,s,a,l){this.oi=e,this.Go=r,this.zo=i,this.connection=o,this.authCredentialsProvider=s,this.appCheckCredentialsProvider=a,this.listener=l,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new VT(e,n)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var e=this;return se(function*(){e.Zo()&&(yield e.close(0))})()}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(e){this.s_(),this.stream.send(e)}r_(){var e=this;return se(function*(){if(e.Xo())return e.close(0)})()}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}close(e,n){var r=this;return se(function*(){r.s_(),r.o_(),r.Yo.cancel(),r.jo++,4!==e?r.Yo.reset():n&&n.code===oe.RESOURCE_EXHAUSTED?(xn(n.toString()),xn("Using maximum backoff delay to prevent overloading the backend."),r.Yo.Ko()):n&&n.code===oe.UNAUTHENTICATED&&3!==r.state&&(r.authCredentialsProvider.invalidateToken(),r.appCheckCredentialsProvider.invalidateToken()),null!==r.stream&&(r.__(),r.stream.close(),r.stream=null),r.state=e,yield r.listener.Ao(n)})()}__(){}auth(){this.state=1;const e=this.a_(this.jo),n=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([r,i])=>{this.jo===n&&this.u_(r,i)},r=>{e(()=>{const i=new _e(oe.UNKNOWN,"Fetching auth token failed: "+r.message);return this.c_(i)})})}u_(e,n){const r=this.a_(this.jo);this.stream=this.l_(e,n),this.stream.Po(()=>{r(()=>this.listener.Po())}),this.stream.To(()=>{r(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(i=>{r(()=>this.c_(i))}),this.stream.onMessage(i=>{r(()=>this.onMessage(i))})}e_(){var e=this;this.state=5,this.Yo.$o(se(function*(){e.state=0,e.start()}))}c_(e){return me("PersistentStream","close with error: ".concat(e)),this.stream=null,this.close(4,e)}a_(e){return n=>{this.oi.enqueueAndForget(()=>this.jo===e?n():(me("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class Dce extends tF{constructor(e,n,r,i,o,s){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,r,i,s),this.serializer=o}l_(e,n){return this.connection.Oo("Listen",e,n)}onMessage(e){this.Yo.reset();const n=function zle(t,e){let n;if("targetChange"in e){const r="NO_CHANGE"===(c=e.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===c?1:"REMOVE"===c?2:"CURRENT"===c?3:"RESET"===c?4:Be(),i=e.targetChange.targetIds||[],o=function(c,u){return c.useProto3Json?(ze(void 0===u||"string"==typeof u),Kn.fromBase64String(u||"")):(ze(void 0===u||u instanceof Buffer||u instanceof Uint8Array),Kn.fromUint8Array(u||new Uint8Array))}(t,e.targetChange.resumeToken),s=e.targetChange.cause,a=s&&function(c){const u=void 0===c.code?oe.UNKNOWN:GL(c.code);return new _e(u,c.message||"")}(s);n=new QL(r,i,o,a||null)}else if("documentChange"in e){const r=e.documentChange,i=Bo(t,r.document.name),o=Pn(r.document.updateTime),s=r.document.createTime?Pn(r.document.createTime):He.min(),a=new pr({mapValue:{fields:r.document.fields}}),l=an.newFoundDocument(i,o,s,a);n=new t_(r.targetIds||[],r.removedTargetIds||[],l.key,l)}else if("documentDelete"in e){const r=e.documentDelete,i=Bo(t,r.document),o=r.readTime?Pn(r.readTime):He.min(),s=an.newNoDocument(i,o);n=new t_([],r.removedTargetIds||[],s.key,s)}else if("documentRemove"in e){const r=e.documentRemove,i=Bo(t,r.document);n=new t_([],r.removedTargetIds||[],i,null)}else{if(!("filter"in e))return Be();{const r=e.filter,{count:i=0,unchangedNames:o}=r,s=new Mle(i,o);n=new KL(r.targetId,s)}}var c;return n}(this.serializer,e),r=function(o){if(!("targetChange"in o))return He.min();const s=o.targetChange;return s.targetIds&&s.targetIds.length?He.min():s.readTime?Pn(s.readTime):He.min()}(e);return this.listener.h_(n,r)}P_(e){const n={};n.database=pT(this.serializer),n.addTarget=function(o,s){let a;const l=s.target;if(a=Ym(l)?{documents:a5(o,l)}:{query:n_(o,l)._t},a.targetId=s.targetId,s.resumeToken.approximateByteSize()>0){a.resumeToken=e5(o,s.resumeToken);const c=dT(o,s.expectedCount);null!==c&&(a.expectedCount=c)}else if(s.snapshotVersion.compareTo(He.min())>0){a.readTime=du(o,s.snapshotVersion.toTimestamp());const c=dT(o,s.expectedCount);null!==c&&(a.expectedCount=c)}return a}(this.serializer,e);const r=function Hle(t,e){const n=function(i){switch(i){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return Be()}}(e.purpose);return null==n?null:{"goog-listen-tags":n}}(0,e);r&&(n.labels=r),this.i_(n)}I_(e){const n={};n.database=pT(this.serializer),n.removeTarget=e,this.i_(n)}}class kce extends tF{constructor(e,n,r,i,o,s){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,r,i,s),this.serializer=o,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(e,n){return this.connection.Oo("Write",e,n)}onMessage(e){if(ze(!!e.streamToken),this.lastStreamToken=e.streamToken,this.T_){this.Yo.reset();const n=function Ule(t,e){return t&&t.length>0?(ze(void 0!==e),t.map(n=>function(i,o){let s=Pn(i.updateTime?i.updateTime:o);return s.isEqual(He.min())&&(s=Pn(o)),new Ple(s,i.transformResults||[])}(n,e))):[]}(e.writeResults,e.commitTime),r=Pn(e.commitTime);return this.listener.A_(r,n)}return ze(!e.writeResults||0===e.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const e={};e.database=pT(this.serializer),this.i_(e)}d_(e){const n={streamToken:this.lastStreamToken,writes:e.map(r=>function ch(t,e){let n;if(e instanceof cu)n={update:o5(t,e.key,e.value)};else if(e instanceof uu)n={delete:lh(t,e.key)};else if(e instanceof As)n={update:o5(t,e.key,e.data),updateMask:Wle(e.fieldMask)};else{if(!(e instanceof sT))return Be();n={verify:lh(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(r=>function(o,s){const a=s.transform;if(a instanceof au)return{fieldPath:s.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof pl)return{fieldPath:s.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof gl)return{fieldPath:s.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof lu)return{fieldPath:s.field.canonicalString(),increment:a.Pe};throw Be()}(0,r))),e.precondition.isNone||(n.currentDocument=void 0!==(o=e.precondition).updateTime?{updateTime:Ble(t,o.updateTime)}:void 0!==o.exists?{exists:o.exists}:Be()),n;var o}(this.serializer,r))};this.i_(n)}}class Mce extends class{}{constructor(e,n,r,i){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=r,this.serializer=i,this.m_=!1}f_(){if(this.m_)throw new _e(oe.FAILED_PRECONDITION,"The client has already been terminated.")}Co(e,n,r,i){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([o,s])=>this.connection.Co(e,hT(n,r),i,o,s)).catch(o=>{throw"FirebaseError"===o.name?(o.code===oe.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new _e(oe.UNKNOWN,o.toString())})}xo(e,n,r,i,o){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,a])=>this.connection.xo(e,hT(n,r),i,s,a,o)).catch(s=>{throw"FirebaseError"===s.name?(s.code===oe.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new _e(oe.UNKNOWN,s.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class Oce{constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(e){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_("Connection failed 1 times. Most recent error: ".concat(e.toString())),this.S_("Offline")))}set(e){this.C_(),this.g_=0,"Online"===e&&(this.y_=!1),this.S_(e)}S_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}b_(e){const n="Could not reach Cloud Firestore backend. ".concat(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.y_?(xn(n),this.y_=!1):me("OnlineStateTracker",n)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class Rce{constructor(e,n,r,i,o){var s=this;this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=o,this.O_.io(a=>{r.enqueueAndForget(se(function*(){var l;fa(s)&&(me("RemoteStore","Restarting streams for network reachability change."),yield(l=se(function*(u){const d=Pe(u);d.M_.add(4),yield yu(d),d.N_.set("Unknown"),d.M_.delete(4),yield vh(d)}),function c(u){return l.apply(this,arguments)})(s))}))}),this.N_=new Oce(r,i)}}function vh(t){return BT.apply(this,arguments)}function BT(){return BT=se(function*(t){if(fa(t))for(const e of t.x_)yield e(!0)}),BT.apply(this,arguments)}function yu(t){return $T.apply(this,arguments)}function $T(){return $T=se(function*(t){for(const e of t.x_)yield e(!1)}),$T.apply(this,arguments)}function v_(t,e){const n=Pe(t);n.F_.has(e.targetId)||(n.F_.set(e.targetId,e),HT(n)?UT(n):Cu(n).Xo()&&zT(n,e))}function bu(t,e){const n=Pe(t),r=Cu(n);n.F_.delete(e),r.Xo()&&nF(n,e),0===n.F_.size&&(r.Xo()?r.n_():fa(n)&&n.N_.set("Unknown"))}function zT(t,e){if(t.L_.xe(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(He.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}Cu(t).P_(e)}function nF(t,e){t.L_.xe(e),Cu(t).I_(e)}function UT(t){t.L_=new Rle({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),ot:e=>t.F_.get(e)||null,tt:()=>t.datastore.serializer.databaseId}),Cu(t).start(),t.N_.w_()}function HT(t){return fa(t)&&!Cu(t).Zo()&&t.F_.size>0}function fa(t){return 0===Pe(t).M_.size}function rF(t){t.L_=void 0}function Nce(t){return jT.apply(this,arguments)}function jT(){return jT=se(function*(t){t.N_.set("Online")}),jT.apply(this,arguments)}function Lce(t){return GT.apply(this,arguments)}function GT(){return GT=se(function*(t){t.F_.forEach((e,n)=>{zT(t,e)})}),GT.apply(this,arguments)}function Fce(t,e){return qT.apply(this,arguments)}function qT(){return qT=se(function*(t,e){rF(t),HT(t)?(t.N_.D_(e),UT(t)):t.N_.set("Unknown")}),qT.apply(this,arguments)}function Vce(t,e,n){return WT.apply(this,arguments)}function WT(){return WT=se(function*(t,e,n){if(t.N_.set("Online"),e instanceof QL&&2===e.state&&e.cause)try{yield(r=se(function*(o,s){const a=s.cause;for(const l of s.targetIds)o.F_.has(l)&&(yield o.remoteSyncer.rejectListen(l,a),o.F_.delete(l),o.L_.removeTarget(l))}),function i(o,s){return r.apply(this,arguments)})(t,e)}catch(r){me("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),yield y_(t,r)}else if(e instanceof t_?t.L_.Ke(e):e instanceof KL?t.L_.He(e):t.L_.We(e),!n.isEqual(He.min()))try{const r=yield G5(t.localStore);n.compareTo(r)>=0&&(yield function(o,s){const a=o.L_.rt(s);return a.targetChanges.forEach((l,c)=>{if(l.resumeToken.approximateByteSize()>0){const u=o.F_.get(c);u&&o.F_.set(c,u.withResumeToken(l.resumeToken,s))}}),a.targetMismatches.forEach((l,c)=>{const u=o.F_.get(l);if(!u)return;o.F_.set(l,u.withResumeToken(Kn.EMPTY_BYTE_STRING,u.snapshotVersion)),nF(o,l);const d=new xs(u.target,l,c,u.sequenceNumber);zT(o,d)}),o.remoteSyncer.applyRemoteEvent(a)}(t,n))}catch(r){me("RemoteStore","Failed to raise snapshot:",r),yield y_(t,r)}var r}),WT.apply(this,arguments)}function y_(t,e,n){return YT.apply(this,arguments)}function YT(){return YT=se(function*(t,e,n){if(!na(e))throw e;t.M_.add(1),yield yu(t),t.N_.set("Offline"),n||(n=()=>G5(t.localStore)),t.asyncQueue.enqueueRetryable(se(function*(){me("RemoteStore","Retrying IndexedDB access"),yield n(),t.M_.delete(1),yield vh(t)}))}),YT.apply(this,arguments)}function iF(t,e){return e().catch(n=>y_(t,n,e))}function wu(t){return KT.apply(this,arguments)}function KT(){return KT=se(function*(t){const e=Pe(t),n=ha(e);let r=e.v_.length>0?e.v_[e.v_.length-1].batchId:-1;for(;Bce(e);)try{const i=yield Ece(e.localStore,r);if(null===i){0===e.v_.length&&n.n_();break}r=i.batchId,$ce(e,i)}catch(i){yield y_(e,i)}oF(e)&&sF(e)}),KT.apply(this,arguments)}function Bce(t){return fa(t)&&t.v_.length<10}function $ce(t,e){t.v_.push(e);const n=ha(t);n.Xo()&&n.E_&&n.d_(e.mutations)}function oF(t){return fa(t)&&!ha(t).Zo()&&t.v_.length>0}function sF(t){ha(t).start()}function zce(t){return QT.apply(this,arguments)}function QT(){return QT=se(function*(t){ha(t).V_()}),QT.apply(this,arguments)}function Uce(t){return XT.apply(this,arguments)}function XT(){return XT=se(function*(t){const e=ha(t);for(const n of t.v_)e.d_(n.mutations)}),XT.apply(this,arguments)}function Hce(t,e,n){return ZT.apply(this,arguments)}function ZT(){return ZT=se(function*(t,e,n){const r=t.v_.shift(),i=lT.from(r,e,n);yield iF(t,()=>t.remoteSyncer.applySuccessfulWrite(i)),yield wu(t)}),ZT.apply(this,arguments)}function jce(t,e){return JT.apply(this,arguments)}function JT(){return JT=se(function*(t,e){var n;e&&ha(t).E_&&(yield(n=se(function*(i,o){if(function jL(t){switch(t){default:return Be();case oe.CANCELLED:case oe.UNKNOWN:case oe.DEADLINE_EXCEEDED:case oe.RESOURCE_EXHAUSTED:case oe.INTERNAL:case oe.UNAVAILABLE:case oe.UNAUTHENTICATED:return!1;case oe.INVALID_ARGUMENT:case oe.NOT_FOUND:case oe.ALREADY_EXISTS:case oe.PERMISSION_DENIED:case oe.FAILED_PRECONDITION:case oe.ABORTED:case oe.OUT_OF_RANGE:case oe.UNIMPLEMENTED:case oe.DATA_LOSS:return!0}}(a=o.code)&&a!==oe.ABORTED){const s=i.v_.shift();ha(i).t_(),yield iF(i,()=>i.remoteSyncer.rejectFailedWrite(s.batchId,o)),yield wu(i)}var a}),function r(i,o){return n.apply(this,arguments)})(t,e)),oF(t)&&sF(t)}),JT.apply(this,arguments)}function aF(t,e){return eI.apply(this,arguments)}function eI(){return eI=se(function*(t,e){const n=Pe(t);n.asyncQueue.verifyOperationInProgress(),me("RemoteStore","RemoteStore received new credentials");const r=fa(n);n.M_.add(3),yield yu(n),r&&n.N_.set("Unknown"),yield n.remoteSyncer.handleCredentialChange(e),n.M_.delete(3),yield vh(n)}),eI.apply(this,arguments)}function nI(){return nI=se(function*(t,e){const n=Pe(t);e?(n.M_.delete(2),yield vh(n)):e||(n.M_.add(2),yield yu(n),n.N_.set("Unknown"))}),nI.apply(this,arguments)}function Cu(t){return t.B_||(t.B_=function(n,r,i){const o=Pe(n);return o.f_(),new Dce(r,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,i)}(t.datastore,t.asyncQueue,{Po:Nce.bind(null,t),To:Lce.bind(null,t),Ao:Fce.bind(null,t),h_:Vce.bind(null,t)}),t.x_.push(function(){var e=se(function*(n){n?(t.B_.t_(),HT(t)?UT(t):t.N_.set("Unknown")):(yield t.B_.stop(),rF(t))});return function(n){return e.apply(this,arguments)}}())),t.B_}function ha(t){return t.k_||(t.k_=function(n,r,i){const o=Pe(n);return o.f_(),new kce(r,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,i)}(t.datastore,t.asyncQueue,{Po:()=>Promise.resolve(),To:zce.bind(null,t),Ao:jce.bind(null,t),R_:Uce.bind(null,t),A_:Hce.bind(null,t)}),t.x_.push(function(){var e=se(function*(n){n?(t.k_.t_(),yield wu(t)):(yield t.k_.stop(),t.v_.length>0&&(me("RemoteStore","Stopping write stream with ".concat(t.v_.length," pending writes")),t.v_=[]))});return function(n){return e.apply(this,arguments)}}())),t.k_}class rI{constructor(e,n,r,i,o){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=r,this.op=i,this.removalCallback=o,this.deferred=new Yn,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(s=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,n,r,i,o){const s=Date.now()+r,a=new rI(e,n,s,i,o);return a.start(r),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new _e(oe.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 Eu(t,e){if(xn("AsyncQueue","".concat(e,": ").concat(t)),na(t))return new _e(oe.UNAVAILABLE,"".concat(e,": ").concat(t));throw t}class Su{constructor(e){this.comparator=e?(n,r)=>e(n,r)||Re.comparator(n.key,r.key):(n,r)=>Re.comparator(n.key,r.key),this.keyedMap=th(),this.sortedSet=new nn(this.comparator)}static emptySet(e){return new Su(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 n=this.keyedMap.get(e);return n?this.sortedSet.indexOf(n):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((n,r)=>(e(n),!1))}add(e){const n=this.delete(e.key);return n.copy(n.keyedMap.insert(e.key,e),n.sortedSet.insert(e,null))}delete(e){const n=this.get(e);return n?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(n)):this}isEqual(e){if(!(e instanceof Su)||this.size!==e.size)return!1;const n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();for(;n.hasNext();){const i=n.getNext().key,o=r.getNext().key;if(!i.isEqual(o))return!1}return!0}toString(){const e=[];return this.forEach(n=>{e.push(n.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}copy(e,n){const r=new Su;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r}}class lF{constructor(){this.q_=new nn(Re.comparator)}track(e){const n=e.doc.key,r=this.q_.get(n);r?0!==e.type&&3===r.type?this.q_=this.q_.insert(n,e):3===e.type&&1!==r.type?this.q_=this.q_.insert(n,{type:r.type,doc:e.doc}):2===e.type&&2===r.type?this.q_=this.q_.insert(n,{type:2,doc:e.doc}):2===e.type&&0===r.type?this.q_=this.q_.insert(n,{type:0,doc:e.doc}):1===e.type&&0===r.type?this.q_=this.q_.remove(n):1===e.type&&2===r.type?this.q_=this.q_.insert(n,{type:1,doc:r.doc}):0===e.type&&1===r.type?this.q_=this.q_.insert(n,{type:2,doc:e.doc}):Be():this.q_=this.q_.insert(n,e)}Q_(){const e=[];return this.q_.inorderTraversal((n,r)=>{e.push(r)}),e}}class Tu{constructor(e,n,r,i,o,s,a,l,c){this.query=e,this.docs=n,this.oldDocs=r,this.docChanges=i,this.mutatedKeys=o,this.fromCache=s,this.syncStateChanged=a,this.excludesMetadataChanges=l,this.hasCachedResults=c}static fromInitialDocuments(e,n,r,i,o){const s=[];return n.forEach(a=>{s.push({type:0,doc:a})}),new Tu(e,n,Su.emptySet(n),s,r,i,!0,!1,o)}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)&&Jf(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const n=this.docChanges,r=e.docChanges;if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(n[i].type!==r[i].type||!n[i].doc.isEqual(r[i].doc))return!1;return!0}}class Gce{constructor(){this.K_=void 0,this.U_=[]}W_(){return this.U_.some(e=>e.G_())}}class qce{constructor(){this.queries=new Is(e=>SL(e),Jf),this.onlineState="Unknown",this.z_=new Set}}function iI(t,e){return oI.apply(this,arguments)}function oI(){return oI=se(function*(t,e){const n=Pe(t);let r=3;const i=e.query;let o=n.queries.get(i);o?!o.W_()&&e.G_()&&(r=2):(o=new Gce,r=e.G_()?0:1);try{switch(r){case 0:o.K_=yield n.onListen(i,!0);break;case 1:o.K_=yield n.onListen(i,!1);break;case 2:yield n.onFirstRemoteStoreListen(i)}}catch(s){const a=Eu(s,"Initialization of query '".concat(su(e.query),"' failed"));return void e.onError(a)}n.queries.set(i,o),o.U_.push(e),e.j_(n.onlineState),o.K_&&e.H_(o.K_)&&lI(n)}),oI.apply(this,arguments)}function sI(t,e){return aI.apply(this,arguments)}function aI(){return aI=se(function*(t,e){const n=Pe(t),r=e.query;let i=3;const o=n.queries.get(r);if(o){const s=o.U_.indexOf(e);s>=0&&(o.U_.splice(s,1),0===o.U_.length?i=e.G_()?0:1:!o.W_()&&e.G_()&&(i=2))}switch(i){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}),aI.apply(this,arguments)}function Wce(t,e){const n=Pe(t);let r=!1;for(const i of e){const s=n.queries.get(i.query);if(s){for(const a of s.U_)a.H_(i)&&(r=!0);s.K_=i}}r&&lI(n)}function Yce(t,e,n){const r=Pe(t),i=r.queries.get(e);if(i)for(const o of i.U_)o.onError(n);r.queries.delete(e)}function lI(t){t.z_.forEach(e=>{e.next()})}var cI,cF;(cF=cI||(cI={})).J_="default",cF.Cache="cache";class uI{constructor(e,n,r){this.query=e,this.Y_=n,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=r||{}}H_(e){if(!this.options.includeMetadataChanges){const r=[];for(const i of e.docChanges)3!==i.type&&r.push(i);e=new Tu(e.query,e.docs,e.oldDocs,r,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.Z_?this.ea(e)&&(this.Y_.next(e),n=!0):this.ta(e,this.onlineState)&&(this.na(e),n=!0),this.X_=e,n}onError(e){this.Y_.error(e)}j_(e){this.onlineState=e;let n=!1;return this.X_&&!this.Z_&&this.ta(this.X_,e)&&(this.na(this.X_),n=!0),n}ta(e,n){return!e.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==n))&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===n)}ea(e){return e.docChanges.length>0||!!(e.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==e.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(e){e=Tu.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Z_=!0,this.Y_.next(e)}G_(){return this.options.source!==cI.Cache}}class fF{constructor(e){this.key=e}}class hF{constructor(e){this.key=e}}class pF{constructor(e,n){this.query=e,this.la=n,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=at(),this.mutatedKeys=at(),this.Ia=IL(e),this.Ta=new Su(this.Ia)}get Ea(){return this.la}da(e,n){const r=n?n.Aa:new lF,i=n?n.Ta:this.Ta;let o=n?n.mutatedKeys:this.mutatedKeys,s=i,a=!1;const l="F"===this.query.limitType&&i.size===this.query.limit?i.last():null,c="L"===this.query.limitType&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((u,d)=>{const h=i.get(u),p=eh(this.query,d)?d:null,m=!!h&&this.mutatedKeys.has(h.key),_=!!p&&(p.hasLocalMutations||this.mutatedKeys.has(p.key)&&p.hasCommittedMutations);let y=!1;h&&p?h.data.isEqual(p.data)?m!==_&&(r.track({type:3,doc:p}),y=!0):this.Ra(h,p)||(r.track({type:2,doc:p}),y=!0,(l&&this.Ia(p,l)>0||c&&this.Ia(p,c)<0)&&(a=!0)):!h&&p?(r.track({type:0,doc:p}),y=!0):h&&!p&&(r.track({type:1,doc:h}),y=!0,(l||c)&&(a=!0)),y&&(p?(s=s.add(p),o=_?o.add(u):o.delete(u)):(s=s.delete(u),o=o.delete(u)))}),null!==this.query.limit)for(;s.size>this.query.limit;){const u="F"===this.query.limitType?s.last():s.first();s=s.delete(u.key),o=o.delete(u.key),r.track({type:1,doc:u})}return{Ta:s,Aa:r,Xi:a,mutatedKeys:o}}Ra(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}applyChanges(e,n,r,i){const o=this.Ta;this.Ta=e.Ta,this.mutatedKeys=e.mutatedKeys;const s=e.Aa.Q_();s.sort((u,d)=>function(p,m){const _=y=>{switch(y){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Be()}};return _(p)-_(m)}(u.type,d.type)||this.Ia(u.doc,d.doc)),this.Va(r),i=null!=i&&i;const a=n&&!i?this.ma():[],l=0===this.Pa.size&&this.current&&!i?1:0,c=l!==this.ha;return this.ha=l,0!==s.length||c?{snapshot:new Tu(this.query,e.Ta,o,s,e.mutatedKeys,0===l,c,!1,!!r&&r.resumeToken.approximateByteSize()>0),fa:a}:{fa:a}}j_(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new lF,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(e){return!this.la.has(e)&&!!this.Ta.has(e)&&!this.Ta.get(e).hasLocalMutations}Va(e){e&&(e.addedDocuments.forEach(n=>this.la=this.la.add(n)),e.modifiedDocuments.forEach(n=>{}),e.removedDocuments.forEach(n=>this.la=this.la.delete(n)),this.current=e.current)}ma(){if(!this.current)return[];const e=this.Pa;this.Pa=at(),this.Ta.forEach(r=>{this.ga(r.key)&&(this.Pa=this.Pa.add(r.key))});const n=[];return e.forEach(r=>{this.Pa.has(r)||n.push(new hF(r))}),this.Pa.forEach(r=>{e.has(r)||n.push(new fF(r))}),n}pa(e){this.la=e.hs,this.Pa=at();const n=this.da(e.documents);return this.applyChanges(n,!0)}ya(){return Tu.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class Xce{constructor(e,n,r){this.query=e,this.targetId=n,this.view=r}}class Zce{constructor(e){this.key=e,this.wa=!1}}class Jce{constructor(e,n,r,i,o,s){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=i,this.currentUser=o,this.maxConcurrentLimboResolutions=s,this.Sa={},this.ba=new Is(a=>SL(a),Jf),this.Da=new Map,this.Ca=new Set,this.va=new nn(Re.comparator),this.Fa=new Map,this.Ma=new ET,this.xa={},this.Oa=new Map,this.Na=wl.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function eue(t,e){return dI.apply(this,arguments)}function dI(){return dI=se(function*(t,e,n=!0){const r=b_(t);let i;const o=r.ba.get(e);return o?(r.sharedClientState.addLocalQueryTarget(o.targetId),i=o.view.ya()):i=yield gF(r,e,n,!0),i}),dI.apply(this,arguments)}function tue(t,e){return fI.apply(this,arguments)}function fI(){return fI=se(function*(t,e){const n=b_(t);yield gF(n,e,!0,!1)}),fI.apply(this,arguments)}function gF(t,e,n,r){return hI.apply(this,arguments)}function hI(){return hI=se(function*(t,e,n,r){const i=yield function _u(t,e){const n=Pe(t);return n.persistence.runTransaction("Allocate target","readwrite",r=>{let i;return n.Qr.getTargetData(r,e).next(o=>o?(i=o,ne.resolve(i)):n.Qr.allocateTargetId(r).next(s=>(i=new xs(e,s,"TargetPurposeListen",r.currentSequenceNumber),n.Qr.addTargetData(r,i).next(()=>i))))}).then(r=>{const i=n.ns.get(r.targetId);return(null===i||r.snapshotVersion.compareTo(i.snapshotVersion)>0)&&(n.ns=n.ns.insert(r.targetId,r),n.rs.set(e,r.targetId)),r})}(t.localStore,xr(e)),o=i.targetId,s=n?t.sharedClientState.addLocalQueryTarget(o):"not-current";let a;return r&&(a=yield function pI(t,e,n,r,i){return gI.apply(this,arguments)}(t,e,o,"current"===s,i.resumeToken)),t.isPrimaryClient&&n&&v_(t.remoteStore,i),a}),hI.apply(this,arguments)}function gI(){return gI=se(function*(t,e,n,r,i){t.Ba=(d,h,p)=>{return(m=se(function*(y,E,C,k){let j=E.view.da(C);j.Xi&&(j=yield h_(y.localStore,E.query,!1).then(({documents:P})=>E.view.da(P,j)));const q=k&&k.targetChanges.get(E.targetId),K=k&&null!=k.targetMismatches.get(E.targetId),N=E.view.applyChanges(j,y.isPrimaryClient,q,K);return II(y,E.targetId,N.fa),N.snapshot}),function _(y,E,C,k){return m.apply(this,arguments)})(t,d,h,p);var m};const o=yield h_(t.localStore,e,!0),s=new pF(e,o.hs),a=s.da(o.documents),l=ah.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==t.onlineState,i),c=s.applyChanges(a,t.isPrimaryClient,l);II(t,n,c.fa);const u=new Xce(e,n,s);return t.ba.set(e,u),t.Da.has(n)?t.Da.get(n).push(e):t.Da.set(n,[e]),c.snapshot}),gI.apply(this,arguments)}function nue(t,e,n){return mI.apply(this,arguments)}function mI(){return mI=se(function*(t,e,n){const r=Pe(t),i=r.ba.get(e),o=r.Da.get(i.targetId);if(o.length>1)return r.Da.set(i.targetId,o.filter(s=>!Jf(s,e))),void r.ba.delete(e);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(i.targetId),r.sharedClientState.isActiveQueryTarget(i.targetId)||(yield vu(r.localStore,i.targetId,!1).then(()=>{r.sharedClientState.clearQueryState(i.targetId),n&&bu(r.remoteStore,i.targetId),Iu(r,i.targetId)}).catch(ta))):(Iu(r,i.targetId),yield vu(r.localStore,i.targetId,!0))}),mI.apply(this,arguments)}function rue(t,e){return _I.apply(this,arguments)}function _I(){return _I=se(function*(t,e){const n=Pe(t),r=n.ba.get(e),i=n.Da.get(r.targetId);n.isPrimaryClient&&1===i.length&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),bu(n.remoteStore,r.targetId))}),_I.apply(this,arguments)}function vI(){return vI=se(function*(t,e,n){const r=function FI(t){const e=Pe(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=sue.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=aue.bind(null,e),e}(t);try{const i=yield function(s,a){const l=Pe(s),c=gn.now(),u=a.reduce((p,m)=>p.add(m.key),at());let d,h;return l.persistence.runTransaction("Locally write mutations","readwrite",p=>{let m=ci(),_=at();return l.os.getEntries(p,u).next(y=>{m=y,m.forEach((E,C)=>{C.isValidDocument()||(_=_.add(E))})}).next(()=>l.localDocuments.getOverlayedDocuments(p,m)).next(y=>{d=y;const E=[];for(const C of a){const k=kle(C,d.get(C.key).overlayedDocument);null!=k&&E.push(new As(C.key,k,lL(k.value.mapValue),fn.exists(!0)))}return l.mutationQueue.addMutationBatch(p,c,E,a)}).next(y=>{h=y;const E=y.applyToLocalDocumentSet(d,_);return l.documentOverlayCache.saveOverlays(p,y.batchId,E)})}).then(()=>({batchId:h.batchId,changes:xL(d)}))}(r.localStore,e);r.sharedClientState.addPendingMutation(i.batchId),function(s,a,l){let c=s.xa[s.currentUser.toKey()];c||(c=new nn(Je)),c=c.insert(a,l),s.xa[s.currentUser.toKey()]=c}(r,i.batchId,n),yield Ps(r,i.changes),yield wu(r.remoteStore)}catch(i){const o=Eu(i,"Failed to persist write");n.reject(o)}}),vI.apply(this,arguments)}function mF(t,e){return yI.apply(this,arguments)}function yI(){return yI=se(function*(t,e){const n=Pe(t);try{const r=yield function Cce(t,e){const n=Pe(t),r=e.snapshotVersion;let i=n.ns;return n.persistence.runTransaction("Apply remote event","readwrite-primary",o=>{const s=n.os.newChangeBuffer({trackRemovals:!0});i=n.ns;const a=[];e.targetChanges.forEach((u,d)=>{const h=i.get(d);if(!h)return;a.push(n.Qr.removeMatchingKeys(o,u.removedDocuments,d).next(()=>n.Qr.addMatchingKeys(o,u.addedDocuments,d)));let p=h.withSequenceNumber(o.currentSequenceNumber);var _,y,E;null!==e.targetMismatches.get(d)?p=p.withResumeToken(Kn.EMPTY_BYTE_STRING,He.min()).withLastLimboFreeSnapshotVersion(He.min()):u.resumeToken.approximateByteSize()>0&&(p=p.withResumeToken(u.resumeToken,r)),i=i.insert(d,p),y=p,E=u,(0===(_=h).resumeToken.approximateByteSize()||y.snapshotVersion.toMicroseconds()-_.snapshotVersion.toMicroseconds()>=3e8||E.addedDocuments.size+E.modifiedDocuments.size+E.removedDocuments.size>0)&&a.push(n.Qr.updateTargetData(o,p))});let l=ci(),c=at();if(e.documentUpdates.forEach(u=>{e.resolvedLimboDocuments.has(u)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(o,u))}),a.push(function q5(t,e,n){let r=at(),i=at();return n.forEach(o=>r=r.add(o)),e.getEntries(t,r).next(o=>{let s=ci();return n.forEach((a,l)=>{const c=o.get(a);l.isFoundDocument()!==c.isFoundDocument()&&(i=i.add(a)),l.isNoDocument()&&l.version.isEqual(He.min())?(e.removeEntry(a,l.readTime),s=s.insert(a,l)):!c.isValidDocument()||l.version.compareTo(c.version)>0||0===l.version.compareTo(c.version)&&c.hasPendingWrites?(e.addEntry(l),s=s.insert(a,l)):me("LocalStore","Ignoring outdated watch update for ",a,". Current version:",c.version," Watch version:",l.version)}),{cs:s,ls:i}})}(o,s,e.documentUpdates).next(u=>{l=u.cs,c=u.ls})),!r.isEqual(He.min())){const u=n.Qr.getLastRemoteSnapshotVersion(o).next(d=>n.Qr.setTargetsMetadata(o,o.currentSequenceNumber,r));a.push(u)}return ne.waitFor(a).next(()=>s.apply(o)).next(()=>n.localDocuments.getLocalViewOfDocuments(o,l,c)).next(()=>l)}).then(o=>(n.ns=i,o))}(n.localStore,e);e.targetChanges.forEach((i,o)=>{const s=n.Fa.get(o);s&&(ze(i.addedDocuments.size+i.modifiedDocuments.size+i.removedDocuments.size<=1),i.addedDocuments.size>0?s.wa=!0:i.modifiedDocuments.size>0?ze(s.wa):i.removedDocuments.size>0&&(ze(s.wa),s.wa=!1))}),yield Ps(n,r,e)}catch(r){yield ta(r)}}),yI.apply(this,arguments)}function _F(t,e,n){const r=Pe(t);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){const i=[];r.ba.forEach((o,s)=>{const a=s.view.j_(e);a.snapshot&&i.push(a.snapshot)}),function(s,a){const l=Pe(s);l.onlineState=a;let c=!1;l.queries.forEach((u,d)=>{for(const h of d.U_)h.j_(a)&&(c=!0)}),c&&lI(l)}(r.eventManager,e),i.length&&r.Sa.h_(i),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}function oue(t,e,n){return bI.apply(this,arguments)}function bI(){return bI=se(function*(t,e,n){const r=Pe(t);r.sharedClientState.updateQueryState(e,"rejected",n);const i=r.Fa.get(e),o=i&&i.key;if(o){let s=new nn(Re.comparator);s=s.insert(o,an.newNoDocument(o,He.min()));const a=at().add(o),l=new sh(He.min(),new Map,new nn(Je),s,a);yield mF(r,l),r.va=r.va.remove(o),r.Fa.delete(e),AI(r)}else yield vu(r.localStore,e,!1).then(()=>Iu(r,e,n)).catch(ta)}),bI.apply(this,arguments)}function sue(t,e){return wI.apply(this,arguments)}function wI(){return wI=se(function*(t,e){const n=Pe(t),r=e.batch.batchId;try{const i=yield function wce(t,e){const n=Pe(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",r=>{const i=e.batch.keys(),o=n.os.newChangeBuffer({trackRemovals:!0});return function(a,l,c,u){const d=c.batch,h=d.keys();let p=ne.resolve();return h.forEach(m=>{p=p.next(()=>u.getEntry(l,m)).next(_=>{const y=c.docVersions.get(m);ze(null!==y),_.version.compareTo(y)<0&&(d.applyToRemoteDocument(_,c),_.isValidDocument()&&(_.setReadTime(c.commitVersion),u.addEntry(_)))})}),p.next(()=>a.mutationQueue.removeMutationBatch(l,d))}(n,r,e,o).next(()=>o.apply(r)).next(()=>n.mutationQueue.performConsistencyCheck(r)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(r,i,e.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,function(a){let l=at();for(let c=0;c<a.mutationResults.length;++c)a.mutationResults[c].transformResults.length>0&&(l=l.add(a.batch.mutations[c].key));return l}(e))).next(()=>n.localDocuments.getDocuments(r,i))})}(n.localStore,e);TI(n,r,null),SI(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),yield Ps(n,i)}catch(i){yield ta(i)}}),wI.apply(this,arguments)}function aue(t,e,n){return CI.apply(this,arguments)}function CI(){return CI=se(function*(t,e,n){const r=Pe(t);try{const i=yield function(s,a){const l=Pe(s);return l.persistence.runTransaction("Reject batch","readwrite-primary",c=>{let u;return l.mutationQueue.lookupMutationBatch(c,a).next(d=>(ze(null!==d),u=d.keys(),l.mutationQueue.removeMutationBatch(c,d))).next(()=>l.mutationQueue.performConsistencyCheck(c)).next(()=>l.documentOverlayCache.removeOverlaysForBatchId(c,u,a)).next(()=>l.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(c,u)).next(()=>l.localDocuments.getDocuments(c,u))})}(r.localStore,e);TI(r,e,n),SI(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),yield Ps(r,i)}catch(i){yield ta(i)}}),CI.apply(this,arguments)}function SI(t,e){(t.Oa.get(e)||[]).forEach(n=>{n.resolve()}),t.Oa.delete(e)}function TI(t,e,n){const r=Pe(t);let i=r.xa[r.currentUser.toKey()];if(i){const o=i.get(e);o&&(n?o.reject(n):o.resolve(),i=i.remove(e)),r.xa[r.currentUser.toKey()]=i}}function Iu(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const r of t.Da.get(e))t.ba.delete(r),n&&t.Sa.ka(r,n);t.Da.delete(e),t.isPrimaryClient&&t.Ma.Vr(e).forEach(r=>{t.Ma.containsKey(r)||vF(t,r)})}function vF(t,e){t.Ca.delete(e.path.canonicalString());const n=t.va.get(e);null!==n&&(bu(t.remoteStore,n),t.va=t.va.remove(e),t.Fa.delete(n),AI(t))}function II(t,e,n){for(const r of n)r instanceof fF?(t.Ma.addReference(r.key,e),cue(t,r)):r instanceof hF?(me("SyncEngine","Document no longer in limbo: "+r.key),t.Ma.removeReference(r.key,e),t.Ma.containsKey(r.key)||vF(t,r.key)):Be()}function cue(t,e){const n=e.key,r=n.path.canonicalString();t.va.get(n)||t.Ca.has(r)||(me("SyncEngine","New document in limbo: "+n),t.Ca.add(r),AI(t))}function AI(t){for(;t.Ca.size>0&&t.va.size<t.maxConcurrentLimboResolutions;){const e=t.Ca.values().next().value;t.Ca.delete(e);const n=new Re(pt.fromString(e)),r=t.Na.next();t.Fa.set(r,new Zce(n)),t.va=t.va.insert(n,r),v_(t.remoteStore,new xs(xr(iu(n.path)),r,"TargetPurposeLimboResolution",Ti.oe))}}function Ps(t,e,n){return xI.apply(this,arguments)}function xI(){return xI=se(function*(t,e,n){const r=Pe(t),i=[],o=[],s=[];var a;r.ba.isEmpty()||(r.ba.forEach((a,l)=>{s.push(r.Ba(l,e,n).then(c=>{var u;if((c||n)&&r.isPrimaryClient){const d=c?!c.fromCache:null===(u=null==n?void 0:n.targetChanges.get(l.targetId))||void 0===u?void 0:u.current;r.sharedClientState.updateQueryState(l.targetId,d?"current":"not-current")}if(c){i.push(c);const d=xT.Ki(l.targetId,c);o.push(d)}}))}),yield Promise.all(s),r.Sa.h_(i),yield(a=se(function*(c,u){const d=Pe(c);try{yield d.persistence.runTransaction("notifyLocalViewChanges","readwrite",h=>ne.forEach(u,p=>ne.forEach(p.qi,m=>d.persistence.referenceDelegate.addReference(h,p.targetId,m)).next(()=>ne.forEach(p.Qi,m=>d.persistence.referenceDelegate.removeReference(h,p.targetId,m)))))}catch(h){if(!na(h))throw h;me("LocalStore","Failed to update sequence numbers: "+h)}for(const h of u){const p=h.targetId;if(!h.fromCache){const m=d.ns.get(p),y=m.withLastLimboFreeSnapshotVersion(m.snapshotVersion);d.ns=d.ns.insert(p,y)}}}),function l(c,u){return a.apply(this,arguments)})(r.localStore,o))}),xI.apply(this,arguments)}function uue(t,e){return PI.apply(this,arguments)}function PI(){return PI=se(function*(t,e){const n=Pe(t);if(!n.currentUser.isEqual(e)){me("SyncEngine","User change. New user:",e.toKey());const r=yield j5(n.localStore,e);n.currentUser=e,(o=n).Oa.forEach(a=>{a.forEach(l=>{l.reject(new _e(oe.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),o.Oa.clear(),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),yield Ps(n,r.us)}var o}),PI.apply(this,arguments)}function due(t,e){const n=Pe(t),r=n.Fa.get(e);if(r&&r.wa)return at().add(r.key);{let i=at();const o=n.Da.get(e);if(!o)return i;for(const s of o){const a=n.ba.get(s);i=i.unionWith(a.view.Ea)}return i}}function b_(t){const e=Pe(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=mF.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=due.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=oue.bind(null,e),e.Sa.h_=Wce.bind(null,e.eventManager),e.Sa.ka=Yce.bind(null,e.eventManager),e}class w_{constructor(){this.synchronizeTabs=!1}initialize(e){var n=this;return se(function*(){n.serializer=_h(e.databaseInfo.databaseId),n.sharedClientState=n.createSharedClientState(e),n.persistence=n.createPersistence(e),yield n.persistence.start(),n.localStore=n.createLocalStore(e),n.gcScheduler=n.createGarbageCollectionScheduler(e,n.localStore),n.indexBackfillerScheduler=n.createIndexBackfillerScheduler(e,n.localStore)})()}createGarbageCollectionScheduler(e,n){return null}createIndexBackfillerScheduler(e,n){return null}createLocalStore(e){return function H5(t,e,n,r){return new bce(t,e,n,r)}(this.persistence,new U5,e.initialUser,this.serializer)}createPersistence(e){return new ST(u_.Hr,this.serializer)}createSharedClientState(e){return new Z5}terminate(){var e=this;return se(function*(){var n,r;null===(n=e.gcScheduler)||void 0===n||n.stop(),null===(r=e.indexBackfillerScheduler)||void 0===r||r.stop(),e.sharedClientState.shutdown(),yield e.persistence.shutdown()})()}}class Au{initialize(e,n){var r=this;return se(function*(){r.localStore||(r.localStore=e.localStore,r.sharedClientState=e.sharedClientState,r.datastore=r.createDatastore(n),r.remoteStore=r.createRemoteStore(n),r.eventManager=r.createEventManager(n),r.syncEngine=r.createSyncEngine(n,!e.synchronizeTabs),r.sharedClientState.onlineStateHandler=i=>_F(r.syncEngine,i,1),r.remoteStore.remoteSyncer.handleCredentialChange=uue.bind(null,r.syncEngine),yield function tI(t,e){return nI.apply(this,arguments)}(r.remoteStore,r.syncEngine.isPrimaryClient))})()}createEventManager(e){return new qce}createDatastore(e){const n=_h(e.databaseInfo.databaseId),r=new Pce(e.databaseInfo);return new Mce(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return r=this.localStore,i=this.datastore,o=e.asyncQueue,s=n=>_F(this.syncEngine,n,0),a=J5.D()?new J5:new Ice,new Rce(r,i,o,s,a);var r,i,o,s,a}createSyncEngine(e,n){return function(i,o,s,a,l,c,u){const d=new Jce(i,o,s,a,l,c);return u&&(d.La=!0),d}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}terminate(){var e=this;return se(function*(){var n,r;yield(r=se(function*(o){const s=Pe(o);me("RemoteStore","RemoteStore shutting down."),s.M_.add(5),yield yu(s),s.O_.shutdown(),s.N_.set("Unknown")}),function i(o){return r.apply(this,arguments)})(e.remoteStore),null===(n=e.datastore)||void 0===n||n.terminate()})()}}class C_{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Ka(this.observer.next,e)}error(e){this.observer.error?this.Ka(this.observer.error,e):xn("Uncaught Error in snapshot listener:",e.toString())}$a(){this.muted=!0}Ka(e,n){this.muted||setTimeout(()=>{this.muted||e(n)},0)}}class Sue{constructor(e,n,r,i){var o=this;this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=i,this.user=er.UNAUTHENTICATED,this.clientId=F6.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(r,function(){var s=se(function*(a){me("FirestoreClient","Received user=",a.uid),yield o.authCredentialListener(a),o.user=a});return function(a){return s.apply(this,arguments)}}()),this.appCheckCredentials.start(r,s=>(me("FirestoreClient","Received new app check token=",s),this.appCheckCredentialListener(s,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new _e(oe.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var e=this;this.asyncQueue.enterRestrictedMode();const n=new Yn;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(se(function*(){try{e._onlineComponents&&(yield e._onlineComponents.terminate()),e._offlineComponents&&(yield e._offlineComponents.terminate()),e.authCredentials.shutdown(),e.appCheckCredentials.shutdown(),n.resolve()}catch(r){const i=Eu(r,"Failed to shutdown persistence");n.reject(i)}})),n.promise}}function E_(t,e){return VI.apply(this,arguments)}function VI(){return VI=se(function*(t,e){t.asyncQueue.verifyOperationInProgress(),me("FirestoreClient","Initializing OfflineComponentProvider");const n=t.configuration;yield e.initialize(n);let r=n.initialUser;t.setCredentialChangeListener(function(){var i=se(function*(o){r.isEqual(o)||(yield j5(e.localStore,o),r=o)});return function(o){return i.apply(this,arguments)}}()),e.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=e}),VI.apply(this,arguments)}function BI(t,e){return $I.apply(this,arguments)}function $I(){return $I=se(function*(t,e){t.asyncQueue.verifyOperationInProgress();const n=yield function zI(t){return UI.apply(this,arguments)}(t);me("FirestoreClient","Initializing OnlineComponentProvider"),yield e.initialize(n,t.configuration),t.setCredentialChangeListener(r=>aF(e.remoteStore,r)),t.setAppCheckTokenChangeListener((r,i)=>aF(e.remoteStore,i)),t._onlineComponents=e}),$I.apply(this,arguments)}function UI(){return UI=se(function*(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){me("FirestoreClient","Using user provided OfflineComponentProvider");try{yield E_(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!function SF(t){return"FirebaseError"===t.name?t.code===oe.FAILED_PRECONDITION||t.code===oe.UNIMPLEMENTED:!(typeof DOMException<"u"&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code}(n))throw n;Ei("Error using user provided cache. Falling back to memory cache: "+n),yield E_(t,new w_)}}else me("FirestoreClient","Using default OfflineComponentProvider"),yield E_(t,new w_);return t._offlineComponents}),UI.apply(this,arguments)}function S_(t){return HI.apply(this,arguments)}function HI(){return HI=se(function*(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(me("FirestoreClient","Using user provided OnlineComponentProvider"),yield BI(t,t._uninitializedComponentsProvider._online)):(me("FirestoreClient","Using default OnlineComponentProvider"),yield BI(t,new Au))),t._onlineComponents}),HI.apply(this,arguments)}function Pu(t){return GI.apply(this,arguments)}function GI(){return GI=se(function*(t){const e=yield S_(t),n=e.eventManager;return n.onListen=eue.bind(null,e.syncEngine),n.onUnlisten=nue.bind(null,e.syncEngine),n.onFirstRemoteStoreListen=tue.bind(null,e.syncEngine),n.onLastRemoteStoreUnlisten=rue.bind(null,e.syncEngine),n}),GI.apply(this,arguments)}function DF(t){const e={};return void 0!==t.timeoutSeconds&&(e.timeoutSeconds=t.timeoutSeconds),e}const kF=new Map;function qI(t,e,n){if(!n)throw new _e(oe.INVALID_ARGUMENT,"Function ".concat(t,"() cannot be called with an empty ").concat(e,"."))}function MF(t){if(!Re.isDocumentKey(t))throw new _e(oe.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but ".concat(t," has ").concat(t.length,"."))}function OF(t){if(Re.isDocumentKey(t))throw new _e(oe.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but ".concat(t," has ").concat(t.length,"."))}function T_(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(t="".concat(t.substring(0,20),"...")),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";{const e=(r=t).constructor?r.constructor.name:null;return e?"a custom ".concat(e," object"):"an object"}}var r;return"function"==typeof t?"a function":Be()}function dt(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new _e(oe.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=T_(t);throw new _e(oe.INVALID_ARGUMENT,"Expected type '".concat(e.name,"', but it was: ").concat(n))}}return t}class NF{constructor(e){var n,r;if(void 0===e.host){if(void 0!==e.ssl)throw new _e(oe.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===(n=e.ssl)||void 0===n||n;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new _e(oe.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}(function Lue(t,e,n,r){if(!0===e&&!0===r)throw new _e(oe.INVALID_ARGUMENT,"".concat(t," and ").concat(n," cannot be used together."))})("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==e.experimentalAutoDetectLongPolling&&!e.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=DF(null!==(r=e.experimentalLongPollingOptions)&&void 0!==r?r:{}),function(o){if(void 0!==o.timeoutSeconds){if(isNaN(o.timeoutSeconds))throw new _e(oe.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(o.timeoutSeconds," (must not be NaN)"));if(o.timeoutSeconds<5)throw new _e(oe.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(o.timeoutSeconds," (minimum allowed value is 5)"));if(o.timeoutSeconds>30)throw new _e(oe.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(o.timeoutSeconds," (maximum allowed value is 30)"))}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}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.experimentalLongPollingOptions.timeoutSeconds===e.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class yh{constructor(e,n,r,i){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=r,this._app=i,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new NF({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new _e(oe.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 _e(oe.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 NF(e),void 0!==e.credentials&&(this._authCredentials=function(r){if(!r)return new Pae;switch(r.type){case"firstParty":return new Oae(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new _e(oe.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(n){const r=kF.get(n);r&&(me("ComponentProvider","Removing Datastore"),kF.delete(n),r.terminate())}(this),Promise.resolve()}}class gr{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new gr(this.firestore,e,this._query)}}class Dn{constructor(e,n,r){this.converter=n,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new $o(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new Dn(this.firestore,e,this._key)}}class $o extends gr{constructor(e,n,r){super(e,n,iu(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new Dn(this.firestore,null,new Re(e))}withConverter(e){return new $o(this.firestore,e,this._path)}}function Vue(t,e,...n){if(t=lo(t),qI("collection","path",e),t instanceof yh){const r=pt.fromString(e,...n);return OF(r),new $o(t,null,r)}{if(!(t instanceof Dn||t instanceof $o))throw new _e(oe.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(pt.fromString(e,...n));return OF(r),new $o(t.firestore,null,r)}}function LF(t,e,...n){if(t=lo(t),1===arguments.length&&(e=F6.newId()),qI("doc","path",e),t instanceof yh){const r=pt.fromString(e,...n);return MF(r),new Dn(t,null,new Re(r))}{if(!(t instanceof Dn||t instanceof $o))throw new _e(oe.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(pt.fromString(e,...n));return MF(r),new Dn(t.firestore,t instanceof $o?t.converter:null,new Re(r))}}class Bue{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new VT(this,"async_queue_retry"),this.hu=()=>{const n=__();n&&me("AsyncQueue","Visibility state changed to "+n.visibilityState),this.Yo.Wo()};const e=__();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Pu(),this.Iu(e)}enterRestrictedMode(e){if(!this.ou){this.ou=!0,this.cu=e||!1;const n=__();n&&"function"==typeof n.removeEventListener&&n.removeEventListener("visibilitychange",this.hu)}}enqueue(e){if(this.Pu(),this.ou)return new Promise(()=>{});const n=new Yn;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)).then(()=>n.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.su.push(e),this.Tu()))}Tu(){var e=this;return se(function*(){if(0!==e.su.length){try{yield e.su[0](),e.su.shift(),e.Yo.reset()}catch(n){if(!na(n))throw n;me("AsyncQueue","Operation failed with retryable error: "+n)}e.su.length>0&&e.Yo.$o(()=>e.Tu())}})()}Iu(e){const n=this.iu.then(()=>(this.uu=!0,e().catch(r=>{throw this.au=r,this.uu=!1,xn("INTERNAL UNHANDLED ERROR: ",function(s){let a=s.message||"";return s.stack&&(a=s.stack.includes(s.message)?s.stack:s.message+"\n"+s.stack),a}(r)),r}).then(r=>(this.uu=!1,r))));return this.iu=n,n}enqueueAfterDelay(e,n,r){this.Pu(),this.lu.indexOf(e)>-1&&(n=0);const i=rI.createAndSchedule(this,e,n,r,o=>this.Eu(o));return this._u.push(i),i}Pu(){this.au&&Be()}verifyOperationInProgress(){}du(){var e=this;return se(function*(){let n;do{n=e.iu,yield n}while(n!==e.iu)})()}Au(e){for(const n of this._u)if(n.timerId===e)return!0;return!1}Ru(e){return this.du().then(()=>{this._u.sort((n,r)=>n.targetTimeMs-r.targetTimeMs);for(const n of this._u)if(n.skipDelay(),"all"!==e&&n.timerId===e)break;return this.du()})}Vu(e){this.lu.push(e)}Eu(e){const n=this._u.indexOf(e);this._u.splice(n,1)}}function WI(t){return function(n,r){if("object"!=typeof n||null===n)return!1;const i=n;for(const o of["next","error","complete"])if(o in i&&"function"==typeof i[o])return!0;return!1}(t)}class qt extends yh{constructor(e,n,r,i){super(e,n,r,i),this.type="firestore",this._queue=new Bue,this._persistenceKey=(null==i?void 0:i.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||VF(this),this._firestoreClient.terminate()}}function zue(t,e){const r="string"==typeof t?t:e||"(default)",i=function r8(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}("object"==typeof t?t:o8(),"firestore").getImmediate({identifier:r});if(!i._initialized){const o=(t=>{const e=(t=>{var e,n;return null===(n=null===(e=gm())||void 0===e?void 0:e.emulatorHosts)||void 0===n?void 0:n[t]})(t);if(!e)return;const n=e.lastIndexOf(":");if(n<=0||n+1===e.length)throw new Error("Invalid host ".concat(e," with no separate hostname and port!"));const r=parseInt(e.substring(n+1),10);return"["===e[0]?[e.substring(1,n-1),r]:[e.substring(0,n),r]})("firestore");o&&function Fue(t,e,n,r={}){var i;const o=(t=dt(t,yh))._getSettings(),s="".concat(e,":").concat(n);if("firestore.googleapis.com"!==o.host&&o.host!==s&&Ei("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),t._setSettings(Object.assign(Object.assign({},o),{host:s,ssl:!1})),r.mockUserToken){let a,l;if("string"==typeof r.mockUserToken)a=r.mockUserToken,l=er.MOCK_USER;else{a=function Zne(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const r=e||"demo-project",i=t.iat||0,o=t.sub||t.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s=Object.assign({iss:"https://securetoken.google.com/".concat(r),aud:r,iat:i,exp:i+3600,auth_time:i,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},t);return[hm(JSON.stringify({alg:"none",type:"JWT"})),hm(JSON.stringify(s)),""].join(".")}(r.mockUserToken,null===(i=t._app)||void 0===i?void 0:i.options.projectId);const c=r.mockUserToken.sub||r.mockUserToken.user_id;if(!c)throw new _e(oe.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");l=new er(c)}t._authCredentials=new Dae(new N6(a,l))}}(i,...o)}return i}function mn(t){return t._firestoreClient||VF(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function VF(t){var e,n,r;const i=t._freezeSettings(),o=(l=(null===(e=t._app)||void 0===e?void 0:e.options.appId)||"",new ule(t._databaseId,l,t._persistenceKey,(u=i).host,u.ssl,u.experimentalForceLongPolling,u.experimentalAutoDetectLongPolling,DF(u.experimentalLongPollingOptions),u.useFetchStreams));var l,u;t._firestoreClient=new Sue(t._authCredentials,t._appCheckCredentials,t._queue,o),null!==(n=i.localCache)&&void 0!==n&&n._offlineComponentProvider&&null!==(r=i.localCache)&&void 0!==r&&r._onlineComponentProvider&&(t._firestoreClient._uninitializedComponentsProvider={_offlineKind:i.localCache.kind,_offline:i.localCache._offlineComponentProvider,_online:i.localCache._onlineComponentProvider})}class El{constructor(e){this._byteString=e}static fromBase64String(e){try{return new El(Kn.fromBase64String(e))}catch(n){throw new _e(oe.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new El(Kn.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 Du{constructor(...e){for(let n=0;n<e.length;++n)if(0===e[n].length)throw new _e(oe.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new dn(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class I_{constructor(e){this._methodName=e}}class YI{constructor(e,n){if(!isFinite(e)||e<-90||e>90)throw new _e(oe.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(n)||n<-180||n>180)throw new _e(oe.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+n);this._lat=e,this._long=n}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 Je(this._lat,e._lat)||Je(this._long,e._long)}}const Hue=/^__.*__$/;class jue{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return null!==this.fieldMask?new As(e,this.data,this.fieldMask,n,this.fieldTransforms):new cu(e,this.data,n,this.fieldTransforms)}}function UF(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Be()}}class A_{constructor(e,n,r,i,o,s){this.settings=e,this.databaseId=n,this.serializer=r,this.ignoreUndefinedProperties=i,void 0===o&&this.mu(),this.fieldTransforms=o||[],this.fieldMask=s||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(e){return new A_(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(e){var n;const r=null===(n=this.path)||void 0===n?void 0:n.child(e),i=this.gu({path:r,yu:!1});return i.wu(e),i}Su(e){var n;const r=null===(n=this.path)||void 0===n?void 0:n.child(e),i=this.gu({path:r,yu:!1});return i.mu(),i}bu(e){return this.gu({path:void 0,yu:!0})}Du(e){return P_(e,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(e){return void 0!==this.fieldMask.find(n=>e.isPrefixOf(n))||void 0!==this.fieldTransforms.find(n=>e.isPrefixOf(n.field))}mu(){if(this.path)for(let e=0;e<this.path.length;e++)this.wu(this.path.get(e))}wu(e){if(0===e.length)throw this.Du("Document fields must not be empty");if(UF(this.fu)&&Hue.test(e))throw this.Du('Document fields cannot begin and end with "__"')}}class Gue{constructor(e,n,r){this.databaseId=e,this.ignoreUndefinedProperties=n,this.serializer=r||_h(e)}Fu(e,n,r,i=!1){return new A_({fu:e,methodName:n,vu:r,path:dn.emptyPath(),yu:!1,Cu:i},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function ku(t){const e=t._freezeSettings(),n=_h(t._databaseId);return new Gue(t._databaseId,!!e.ignoreUndefinedProperties,n)}function KI(t,e,n,r,i,o={}){const s=t.Fu(o.merge||o.mergeFields?2:0,e,n,i);e2("Data must be an object, but it was:",s,r);const a=WF(r,s);let l,c;if(o.merge)l=new li(s.fieldMask),c=s.fieldTransforms;else if(o.mergeFields){const u=[];for(const d of o.mergeFields){const h=Ch(e,d,n);if(!s.contains(h))throw new _e(oe.INVALID_ARGUMENT,"Field '".concat(h,"' is specified in your field mask but missing from your input data."));KF(u,h)||u.push(h)}l=new li(u),c=s.fieldTransforms.filter(d=>l.covers(d.field))}else l=null,c=s.fieldTransforms;return new jue(new pr(a),l,c)}class QI extends I_{_toFieldTransform(e){return new rh(e.path,new au)}isEqual(e){return e instanceof QI}}class XI extends I_{constructor(e,n){super(e),this.Mu=n}_toFieldTransform(e){const n=function HF(t,e,n){return new A_({fu:3,vu:e.settings.vu,methodName:t._methodName,yu:n},e.databaseId,e.serializer,e.ignoreUndefinedProperties)}(this,e,!0),r=this.Mu.map(o=>Sl(o,n)),i=new pl(r);return new rh(e.path,i)}isEqual(e){return e instanceof XI&&_m(this.Mu,e.Mu)}}function Sl(t,e){if(YF(t=lo(t)))return e2("Unsupported field value:",e,t),WF(t,e);if(t instanceof I_)return function(r,i){if(!UF(i.fu))throw i.Du("".concat(r._methodName,"() can only be used with update() and set()"));if(!i.path)throw i.Du("".concat(r._methodName,"() is not currently supported inside arrays"));const o=r._toFieldTransform(i);o&&i.fieldTransforms.push(o)}(t,e),null;if(void 0===t&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.yu&&4!==e.fu)throw e.Du("Nested arrays are not supported");return function(r,i){const o=[];let s=0;for(const a of r){let l=Sl(a,i.bu(s));null==l&&(l={nullValue:"NULL_VALUE"}),o.push(l),s++}return{arrayValue:{values:o}}}(t,e)}return function(r,i){if(null===(r=lo(r)))return{nullValue:"NULL_VALUE"};if("number"==typeof r)return ML(i.serializer,r);if("boolean"==typeof r)return{booleanValue:r};if("string"==typeof r)return{stringValue:r};if(r instanceof Date){const o=gn.fromDate(r);return{timestampValue:du(i.serializer,o)}}if(r instanceof gn){const o=new gn(r.seconds,1e3*Math.floor(r.nanoseconds/1e3));return{timestampValue:du(i.serializer,o)}}if(r instanceof YI)return{geoPointValue:{latitude:r.latitude,longitude:r.longitude}};if(r instanceof El)return{bytesValue:e5(i.serializer,r._byteString)};if(r instanceof Dn){const o=i.databaseId,s=r.firestore._databaseId;if(!s.isEqual(o))throw i.Du("Document reference is for database ".concat(s.projectId,"/").concat(s.database," but should be for database ").concat(o.projectId,"/").concat(o.database));return{referenceValue:fT(r.firestore._databaseId||i.databaseId,r._key.path)}}throw i.Du("Unsupported field value: ".concat(T_(r)))}(t,e)}function WF(t,e){const n={};return J6(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):ra(t,(r,i)=>{const o=Sl(i,e.pu(r));null!=o&&(n[r]=o)}),{mapValue:{fields:n}}}function YF(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof gn||t instanceof YI||t instanceof El||t instanceof Dn||t instanceof I_)}function e2(t,e,n){if(!YF(n)||"object"!=typeof(i=n)||null===i||Object.getPrototypeOf(i)!==Object.prototype&&null!==Object.getPrototypeOf(i)){const r=T_(n);throw e.Du("an object"===r?t+" a custom object":t+" "+r)}var i}function Ch(t,e,n){if((e=lo(e))instanceof Du)return e._internalPath;if("string"==typeof e)return x_(t,e);throw P_("Field path arguments must be of type string or ",t,!1,void 0,n)}const que=new RegExp("[~\\*/\\[\\]]");function x_(t,e,n){if(e.search(que)>=0)throw P_("Invalid field path (".concat(e,"). Paths must not contain '~', '*', '/', '[', or ']'"),t,!1,void 0,n);try{return new Du(...e.split("."))._internalPath}catch(r){throw P_("Invalid field path (".concat(e,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"),t,!1,void 0,n)}}function P_(t,e,n,r,i){const o=r&&!r.isEmpty(),s=void 0!==i;let a="Function ".concat(e,"() called with invalid data");n&&(a+=" (via `toFirestore()`)"),a+=". ";let l="";return(o||s)&&(l+=" (found",o&&(l+=" in field ".concat(r)),s&&(l+=" in document ".concat(i)),l+=")"),new _e(oe.INVALID_ARGUMENT,a+t+l)}function KF(t,e){return t.some(n=>n.isEqual(e))}class t2{constructor(e,n,r,i,o){this._firestore=e,this._userDataWriter=n,this._key=r,this._document=i,this._converter=o}get id(){return this._key.path.lastSegment()}get ref(){return new Dn(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new Wue(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 n=this._document.data.field(D_("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n)}}}class Wue extends t2{data(){return super.data()}}function D_(t,e){return"string"==typeof e?x_(t,e):e instanceof Du?e._internalPath:e._delegate._internalPath}class n2{}class XF extends n2{}function Yue(t,e,...n){let r=[];e instanceof n2&&r.push(e),r=r.concat(n),function(o){const s=o.filter(l=>l instanceof Mu).length,a=o.filter(l=>l instanceof Eh).length;if(s>1||s>0&&a>0)throw new _e(oe.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(r);for(const i of r)t=i._apply(t);return t}class Eh extends XF{constructor(e,n,r){super(),this._field=e,this._op=n,this._value=r,this.type="where"}static _create(e,n,r){return new Eh(e,n,r)}_apply(e){const n=this._parse(e);return t9(e._query,n),new gr(e.firestore,e.converter,iT(e._query,n))}_parse(e){const n=ku(e.firestore);return function(o,s,a,l,c,u,d){let h;if(c.isKeyField()){if("array-contains"===u||"array-contains-any"===u)throw new _e(oe.INVALID_ARGUMENT,"Invalid Query. You can't perform '".concat(u,"' queries on documentId()."));if("in"===u||"not-in"===u){e9(d,u);const p=[];for(const m of d)p.push(JF(l,o,m));h={arrayValue:{values:p}}}else h=JF(l,o,d)}else"in"!==u&&"not-in"!==u&&"array-contains-any"!==u||e9(d,u),h=function qF(t,e,n,r=!1){return Sl(n,t.Fu(r?4:3,e))}(a,"where",d,"in"===u||"not-in"===u);return gt.create(c,u,h)}(e._query,0,n,e.firestore._databaseId,this._field,this._op,this._value)}}class Mu extends n2{constructor(e,n){super(),this.type=e,this._queryConstraints=n}static _create(e,n){return new Mu(e,n)}_parse(e){const n=this._queryConstraints.map(r=>r._parse(e)).filter(r=>r.getFilters().length>0);return 1===n.length?n[0]:Ut.create(n,this._getOperator())}_apply(e){const n=this._parse(e);return 0===n.getFilters().length?e:(function(i,o){let s=i;const a=o.getFlattenedFilters();for(const l of a)t9(s,l),s=iT(s,l)}(e._query,n),new gr(e.firestore,e.converter,iT(e._query,n)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class r2 extends XF{constructor(e,n){super(),this._field=e,this._direction=n,this.type="orderBy"}static _create(e,n){return new r2(e,n)}_apply(e){const n=function(i,o,s){if(null!==i.startAt)throw new _e(oe.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==i.endAt)throw new _e(oe.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new Xf(o,s)}(e._query,this._field,this._direction);return new gr(e.firestore,e.converter,function(i,o){const s=i.explicitOrderBy.concat([o]);return new Ts(i.path,i.collectionGroup,s,i.filters.slice(),i.limit,i.limitType,i.startAt,i.endAt)}(e._query,n))}}function Kue(t,e="asc"){const n=e,r=D_("orderBy",t);return r2._create(r,n)}function JF(t,e,n){if("string"==typeof(n=lo(n))){if(""===n)throw new _e(oe.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!rT(e)&&-1!==n.indexOf("/"))throw new _e(oe.INVALID_ARGUMENT,"Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '".concat(n,"' contains a '/' character."));const r=e.path.child(pt.fromString(n));if(!Re.isDocumentKey(r))throw new _e(oe.INVALID_ARGUMENT,"Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '".concat(r,"' is not because it has an odd number of segments (").concat(r.length,")."));return fl(t,new Re(r))}if(n instanceof Dn)return fl(t,n._key);throw new _e(oe.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ".concat(T_(n),"."))}function e9(t,e){if(!Array.isArray(t)||0===t.length)throw new _e(oe.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '".concat(e.toString(),"' filters."))}function t9(t,e){const n=function(i,o){for(const s of i)for(const a of s.getFlattenedFilters())if(o.indexOf(a.op)>=0)return a.op;return null}(t.filters,function(i){switch(i){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(null!==n)throw new _e(oe.INVALID_ARGUMENT,n===e.op?"Invalid query. You cannot use more than one '".concat(e.op.toString(),"' filter."):"Invalid query. You cannot use '".concat(e.op.toString(),"' filters with '").concat(n.toString(),"' filters."))}class Que{convertValue(e,n="none"){switch(oa(e)){case 0:return null;case 1:return e.booleanValue;case 2:return bn(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,n);case 5:return e.stringValue;case 6:return this.convertBytes(Ss(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,n);case 10:return this.convertObject(e.mapValue,n);default:throw Be()}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const r={};return ra(e,(i,o)=>{r[i]=this.convertValue(o,n)}),r}convertGeoPoint(e){return new YI(bn(e.latitude),bn(e.longitude))}convertArray(e,n){return(e.values||[]).map(r=>this.convertValue(r,n))}convertServerTimestamp(e,n){switch(n){case"previous":const r=jm(e);return null==r?null:this.convertValue(r,n);case"estimate":return this.convertTimestamp(Wf(e));default:return null}}convertTimestamp(e){const n=Es(e);return new gn(n.seconds,n.nanos)}convertDocumentKey(e,n){const r=pt.fromString(e);ze(f5(r));const i=new dl(r.get(1),r.get(3)),o=new Re(r.popFirst(5));return i.isEqual(n)||xn("Document ".concat(o," contains a document reference within a different database (").concat(i.projectId,"/").concat(i.database,") which is not supported. It will be treated as a reference in the current database (").concat(n.projectId,"/").concat(n.database,") instead.")),o}}class Tl{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class Ou extends t2{constructor(e,n,r,i,o,s){super(e,n,r,i,s),this._firestore=e,this._firestoreImpl=e,this.metadata=o}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new R_(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(n,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,n={}){if(this._document){const r=this._document.data.field(D_("DocumentSnapshot.get",e));if(null!==r)return this._userDataWriter.convertValue(r,n.serverTimestamps)}}}class R_ extends Ou{data(e={}){return super.data(e)}}class Ru{constructor(e,n,r,i){this._firestore=e,this._userDataWriter=n,this._snapshot=i,this.metadata=new Tl(i.hasPendingWrites,i.fromCache),this.query=r}get docs(){const e=[];return this.forEach(n=>e.push(n)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,n){this._snapshot.docs.forEach(r=>{e.call(n,new R_(this._firestore,this._userDataWriter,r.key,r,new Tl(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const n=!!e.includeMetadataChanges;if(n&&this._snapshot.excludesMetadataChanges)throw new _e(oe.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===n||(this._cachedChanges=function(i,o){if(i._snapshot.oldDocs.isEmpty()){let s=0;return i._snapshot.docChanges.map(a=>({type:"added",doc:new R_(i._firestore,i._userDataWriter,a.doc.key,a.doc,new Tl(i._snapshot.mutatedKeys.has(a.doc.key),i._snapshot.fromCache),i.query.converter),oldIndex:-1,newIndex:s++}))}{let s=i._snapshot.oldDocs;return i._snapshot.docChanges.filter(a=>o||3!==a.type).map(a=>{const l=new R_(i._firestore,i._userDataWriter,a.doc.key,a.doc,new Tl(i._snapshot.mutatedKeys.has(a.doc.key),i._snapshot.fromCache),i.query.converter);let c=-1,u=-1;return 0!==a.type&&(c=s.indexOf(a.doc.key),s=s.delete(a.doc.key)),1!==a.type&&(s=s.add(a.doc),u=s.indexOf(a.doc.key)),{type:Zue(a.type),doc:l,oldIndex:c,newIndex:u}})}}(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}}function Zue(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Be()}}function Jue(t){t=dt(t,Dn);const e=dt(t.firestore,qt);return function xF(t,e,n={}){const r=new Yn;return t.asyncQueue.enqueueAndForget(se(function*(){return function(o,s,a,l,c){const u=new C_({next:h=>{s.enqueueAndForget(()=>sI(o,d));const p=h.docs.has(a);!p&&h.fromCache?c.reject(new _e(oe.UNAVAILABLE,"Failed to get document because the client is offline.")):p&&h.fromCache&&l&&"server"===l.source?c.reject(new _e(oe.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.)')):c.resolve(h)},error:h=>c.reject(h)}),d=new uI(iu(a.path),u,{includeMetadataChanges:!0,ra:!0});return iI(o,d)}(yield Pu(t),t.asyncQueue,e,n,r)})),r.promise}(mn(e),t._key).then(n=>s2(e,t,n))}class pa extends Que{constructor(e){super(),this.firestore=e}convertBytes(e){return new El(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new Dn(this.firestore,null,n)}}function ede(t,e,n){t=dt(t,Dn);const r=dt(t.firestore,qt),i=function o2(t,e,n){let r;return r=t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e,r}(t.converter,e,n);return function Sh(t,e){return function(r,i){const o=new Yn;return r.asyncQueue.enqueueAndForget(se(function*(){return function iue(t,e,n){return vI.apply(this,arguments)}(yield function jI(t){return S_(t).then(e=>e.syncEngine)}(r),i,o)})),o.promise}(mn(t),e)}(r,[KI(ku(r),"setDoc",t._key,i,null!==t.converter,n).toMutation(t._key,fn.none())])}function s2(t,e,n){const r=n.docs.get(e._key),i=new pa(t);return new Ou(t,i,e._key,r,new Tl(n.hasPendingWrites,n.fromCache),e.converter)}function hde(){return new QI("serverTimestamp")}function pde(...t){return new XI("arrayUnion",t)}!function(e,n=!0){Qc=bm,jc(new Ja("firestore",(r,{instanceIdentifier:i,options:o})=>{const s=r.getProvider("app").getImmediate(),a=new qt(new kae(r.getProvider("auth-internal")),new Rae(r.getProvider("app-check-internal")),function(c,u){if(!Object.prototype.hasOwnProperty.apply(c.options,["projectId"]))throw new _e(oe.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new dl(c.options.projectId,u)}(s,i),s);return o=Object.assign({useFetchStreams:n},o),a._setSettings(o),a},"PUBLIC").setMultipleInstances(!0)),Ci(R6,"4.6.4",e),Ci(R6,"4.6.4","esm2017")}();var F_=function(){return F_=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},F_.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var mde={includeMetadataChanges:!1};function c2(t,e){return void 0===e&&(e=mde),new lt(function(n){var r=function tde(t,...e){var n,r,i;t=lo(t);let o={includeMetadataChanges:!1,source:"default"},s=0;"object"!=typeof e[s]||WI(e[s])||(o=e[s],s++);const a={includeMetadataChanges:o.includeMetadataChanges,source:o.source};if(WI(e[s])){const d=e[s];e[s]=null===(n=d.next)||void 0===n?void 0:n.bind(d),e[s+1]=null===(r=d.error)||void 0===r?void 0:r.bind(d),e[s+2]=null===(i=d.complete)||void 0===i?void 0:i.bind(d)}let l,c,u;if(t instanceof Dn)c=dt(t.firestore,qt),u=iu(t._key.path),l={next:d=>{e[s]&&e[s](s2(c,t,d))},error:e[s+1],complete:e[s+2]};else{const d=dt(t,gr);c=dt(d.firestore,qt),u=d._query;const h=new pa(c);l={next:p=>{e[s]&&e[s](new Ru(c,h,d,p))},error:e[s+1],complete:e[s+2]},function QF(t){if("L"===t.limitType&&0===t.explicitOrderBy.length)throw new _e(oe.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(t._query)}return function(h,p,m,_){const y=new C_(_),E=new uI(p,y,m);return h.asyncQueue.enqueueAndForget(se(function*(){return iI(yield Pu(h),E)})),()=>{y.$a(),h.asyncQueue.enqueueAndForget(se(function*(){return sI(yield Pu(h),E)}))}}(mn(c),u,a,l)}(t,e,{next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return{unsubscribe:r}})}function vde(t,e){return void 0===e&&(e={}),function _de(t){return c2(t,{includeMetadataChanges:!0})}(t).pipe(Un(function(n){return s9(n,e)}))}function s9(t,e){var n;void 0===e&&(e={});var r=t.data(e);return t.exists()&&"object"==typeof r&&null!==r&&e.idField?F_(F_({},r),((n={})[e.idField]=t.id,n)):r}function Sde(t,e){return void 0===e&&(e={}),function Ede(t){return c2(t,{includeMetadataChanges:!0}).pipe(Un(function(e){return e.docs}))}(t).pipe(Un(function(n){return n.map(function(r){return s9(r,e)})}))}class Th{constructor(e){return e}}const u9="firestore",f2=new Ve("angularfire2.firestore-instances");function xde(t){return(e,n)=>{const r=e.runOutsideAngular(()=>t(n));return new Th(r)}}const Pde={provide:class Ide{constructor(){return PC(u9)}},deps:[[new to,f2]]},Dde={provide:Th,useFactory:function Ade(t,e){const n=function g8(t,e,n){if(e){if(1===e.length)return e[0];const o=e.filter(s=>s.app===n);if(1===o.length)return o[0]}return n.container.getProvider(t).getImmediate({optional:!0})}(u9,t,e);return n&&new Th(n)},deps:[[new to,f2],Df]};let kde=(()=>{var t;class e{constructor(){Ci("angularfire",xC.full,"fst")}}return t=e,B(e,"\u0275fac",function(r){return new(r||t)}),B(e,"\u0275mod",jn({type:t})),B(e,"\u0275inj",Rn({providers:[Dde,Pde]})),e})();function Mde(t,...e){return{ngModule:kde,providers:[{provide:f2,useFactory:xde(t),multi:!0,deps:[Dt,Er,_8,v8,[new to,S6],[new to,Mie],...e]}]}}const Ode=Gi(Sde,!0),d9=Gi(vde,!0),f9=Gi(pde,!0),V_=Gi(Vue,!0),Gr=Gi(LF,!0),B_=Gi(Jue,!0),Rde=Gi(zue,!0),Nde=Gi(Kue,!0),Lde=Gi(Yue,!0),$_=Gi(hde,!0),Nu=Gi(ede,!0);class h9 extends hn{constructor(e=1/0,n=1/0,r=AC){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){const{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(e),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;s<o.length&&!e.closed;s+=r?1:2)e.next(o[s]);return this._checkFinalizedStatuses(e),n}_trimBuffer(){const{_bufferSize:e,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!i){const s=n.now();let a=0;for(let l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}}}const z_={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if(typeof window>"u")return z_.schedule(t,0);if(typeof window.requestAnimationFrame>"u")return z_.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};let h2;function Gde(t,e,n){let r=n;return function Vde(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((i,o)=>!("*"===i||!function $de(t,e){if(!h2){const n=Element.prototype;h2=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&h2.call(t,e)}(t,i)||(r=o,0))),r}class Wde{constructor(e,n){this.componentFactory=n.get(_c).resolveComponentFactory(e)}create(e){return new Yde(this.componentFactory,e)}}class Yde{constructor(e,n){this.componentFactory=e,this.injector=n,this.eventEmitters=new h9(1),this.events=this.eventEmitters.pipe(nd(r=>pP(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(Dt),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=z_.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,n,r){this.runInZone(()=>{var i;r&&(n=r.call(null===(i=this.componentRef)||void 0===i?void 0:i.instance,n)),null!==this.componentRef?function zde(t,e){return t===e||t!=t&&e!=e}(n,this.getInputValue(e))&&(void 0!==n||!this.unchangedInputs.has(e))||(this.recordInputChange(e,n),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=n,this.scheduleDetectChanges()):this.initialInputValues.set(e,n)})}initializeComponent(e){const n=Er.create({providers:[],parent:this.injector}),r=function jde(t,e){const n=t.childNodes,r=e.map(()=>[]);let i=-1;e.some((o,s)=>"*"===o&&(i=s,!0));for(let o=0,s=n.length;o<s;++o){const a=n[o],l=Gde(a,e,i);-1!==l&&r[l].push(a)}return r}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Vc),this.implementsOnChanges=function Bde(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(qa).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e,transform:n})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e),n)}),this.initialInputValues.clear()}initializeOutputs(e){const n=this.componentFactory.outputs.map(({propName:r,templateName:i})=>e.instance[r].pipe(Un(s=>({name:i,value:s}))));this.eventEmitters.next(n)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const n=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(n)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=z_.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,n){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[e];if(r)return void(r.currentValue=n);const i=this.unchangedInputs.has(e),o=i?void 0:this.getInputValue(e);this.inputChanges[e]=new tD(o,n,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class Kde extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}let Il=(()=>{var t;class e{constructor(){this.showChatBox=new ct(!1)}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function p9(t=0,e,n=kie){let r=-1;return null!=e&&(dP(e)?n=e:r=e),new lt(i=>{let o=function Xde(t){return t instanceof Date&&!isNaN(t)}(t)?+t-n.now():t;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Tt(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function U_(t){return(U_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function H_(t){return(H_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function Kt(t){Tt(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===H_(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):(("string"==typeof t||"[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 At(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function g9(t,e){return Tt(2,arguments),function efe(t,e){Tt(2,arguments);var n=Kt(t).getTime(),r=At(e);return new Date(n+r)}(t,-At(e))}function Lu(t){Tt(1,arguments);var n=Kt(t),r=n.getUTCDay(),i=(r<1?7:0)+r-1;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function m9(t){Tt(1,arguments);var e=Kt(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Lu(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=Lu(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function _9(t){Tt(1,arguments);var e=Kt(t),n=Lu(e).getTime()-function rfe(t){Tt(1,arguments);var e=m9(t),n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),Lu(n)}(e).getTime();return Math.round(n/6048e5)+1}var v9={};function Fu(){return v9}function Al(t,e){var n,r,i,o,s,a,l,c;Tt(1,arguments);var u=Fu(),d=At(null!==(n=null!==(r=null!==(i=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Kt(t),p=h.getUTCDay(),m=(p<d?7:0)+p-d;return h.setUTCDate(h.getUTCDate()-m),h.setUTCHours(0,0,0,0),h}function p2(t,e){var n,r,i,o,s,a,l,c;Tt(1,arguments);var u=Kt(t),d=u.getUTCFullYear(),h=Fu(),p=At(null!==(n=null!==(r=null!==(i=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==r?r:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var _=Al(m,e),y=new Date(0);y.setUTCFullYear(d,0,p),y.setUTCHours(0,0,0,0);var E=Al(y,e);return u.getTime()>=_.getTime()?d+1:u.getTime()>=E.getTime()?d:d-1}function y9(t,e){Tt(1,arguments);var n=Kt(t),r=Al(n,e).getTime()-function ofe(t,e){var n,r,i,o,s,a,l,c;Tt(1,arguments);var u=Fu(),d=At(null!==(n=null!==(r=null!==(i=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),h=p2(t,e),p=new Date(0);return p.setUTCFullYear(h,0,d),p.setUTCHours(0,0,0,0),Al(p,e)}(n,e).getTime();return Math.round(r/6048e5)+1}function Ht(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var afe={y:function(e,n){var r=e.getUTCFullYear(),i=r>0?r:1-r;return Ht("yy"===n?i%100:i,n.length)},M:function(e,n){var r=e.getUTCMonth();return"M"===n?String(r+1):Ht(r+1,2)},d:function(e,n){return Ht(e.getUTCDate(),n.length)},a:function(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(e,n){return Ht(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Ht(e.getUTCHours(),n.length)},m:function(e,n){return Ht(e.getUTCMinutes(),n.length)},s:function(e,n){return Ht(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,i=e.getUTCMilliseconds();return Ht(Math.floor(i*Math.pow(10,r-3)),n.length)}};const ga=afe;var lfe={G:function(e,n,r){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});default:return r.era(i,{width:"wide"})}},y:function(e,n,r){if("yo"===n){var i=e.getUTCFullYear();return r.ordinalNumber(i>0?i:1-i,{unit:"year"})}return ga.y(e,n)},Y:function(e,n,r,i){var o=p2(e,i),s=o>0?o:1-o;return"YY"===n?Ht(s%100,2):"Yo"===n?r.ordinalNumber(s,{unit:"year"}):Ht(s,n.length)},R:function(e,n){return Ht(m9(e),n.length)},u:function(e,n){return Ht(e.getUTCFullYear(),n.length)},Q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Ht(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Ht(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,r){var i=e.getUTCMonth();switch(n){case"M":case"MM":return ga.M(e,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,r){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Ht(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,r,i){var o=y9(e,i);return"wo"===n?r.ordinalNumber(o,{unit:"week"}):Ht(o,n.length)},I:function(e,n,r){var i=_9(e);return"Io"===n?r.ordinalNumber(i,{unit:"week"}):Ht(i,n.length)},d:function(e,n,r){return"do"===n?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):ga.d(e,n)},D:function(e,n,r){var i=function nfe(t){Tt(1,arguments);var e=Kt(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime();return Math.floor((n-r)/864e5)+1}(e);return"Do"===n?r.ordinalNumber(i,{unit:"dayOfYear"}):Ht(i,n.length)},E:function(e,n,r){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return Ht(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return Ht(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,r){var i=e.getUTCDay(),o=0===i?7:i;switch(n){case"i":return String(o);case"ii":return Ht(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,r){var o=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,r){var o,i=e.getUTCHours();switch(o=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,r){var o,i=e.getUTCHours();switch(o=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,r){if("ho"===n){var i=e.getUTCHours()%12;return 0===i&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return ga.h(e,n)},H:function(e,n,r){return"Ho"===n?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ga.H(e,n)},K:function(e,n,r){var i=e.getUTCHours()%12;return"Ko"===n?r.ordinalNumber(i,{unit:"hour"}):Ht(i,n.length)},k:function(e,n,r){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===n?r.ordinalNumber(i,{unit:"hour"}):Ht(i,n.length)},m:function(e,n,r){return"mo"===n?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ga.m(e,n)},s:function(e,n,r){return"so"===n?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ga.s(e,n)},S:function(e,n){return ga.S(e,n)},X:function(e,n,r,i){var s=(i._originalDate||e).getTimezoneOffset();if(0===s)return"Z";switch(n){case"X":return w9(s);case"XXXX":case"XX":return xl(s);default:return xl(s,":")}},x:function(e,n,r,i){var s=(i._originalDate||e).getTimezoneOffset();switch(n){case"x":return w9(s);case"xxxx":case"xx":return xl(s);default:return xl(s,":")}},O:function(e,n,r,i){var s=(i._originalDate||e).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+b9(s,":");default:return"GMT"+xl(s,":")}},z:function(e,n,r,i){var s=(i._originalDate||e).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+b9(s,":");default:return"GMT"+xl(s,":")}},t:function(e,n,r,i){return Ht(Math.floor((i._originalDate||e).getTime()/1e3),n.length)},T:function(e,n,r,i){return Ht((i._originalDate||e).getTime(),n.length)}};function b9(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var s=e||"";return n+String(i)+s+Ht(o,2)}function w9(t,e){return t%60==0?(t>0?"-":"+")+Ht(Math.abs(t)/60,2):xl(t,e)}function xl(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t);return r+Ht(Math.floor(i/60),2)+n+Ht(i%60,2)}const cfe=lfe;var C9=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},E9=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},dfe={p:E9,P:function(e,n){var s,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return C9(e,n);switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;default:s=n.dateTime({width:"full"})}return s.replace("{{date}}",C9(i,n)).replace("{{time}}",E9(o,n))}};const g2=dfe;function j_(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var ffe=["D","DD"],hfe=["YY","YYYY"];function S9(t){return-1!==ffe.indexOf(t)}function T9(t){return-1!==hfe.indexOf(t)}function G_(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; 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 m2(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const wfe={date:m2({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:m2({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:m2({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Cfe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ih(t){return function(e,n){var i;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=null!=n&&n.width?String(n.width):o;i=t.formattingValues[s]||t.formattingValues[o]}else{var a=t.defaultWidth,l=null!=n&&n.width?String(n.width):t.defaultWidth;i=t.values[l]||t.values[a]}return i[t.argumentCallback?t.argumentCallback(e):e]}}var Mfe={ordinalNumber:function(e,n){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Ih({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ih({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:Ih({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:Ih({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:Ih({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"})};const Ofe=Mfe;function Ah(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=e.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!o)return null;var c,s=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function Nfe(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}(a,function(d){return d.test(s)}):function Rfe(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}(a,function(d){return d.test(s)});return c=t.valueCallback?t.valueCallback(l):l,{value:c=n.valueCallback?n.valueCallback(c):c,rest:e.slice(s.length)}}}var Kfe={ordinalNumber:function Lfe(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];return{value:s=n.valueCallback?n.valueCallback(s):s,rest:e.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Ah({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:Ah({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:Ah({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:Ah({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:Ah({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const I9={code:"en-US",formatDistance:function(e,n,r){var i,o=pfe[e];return i="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i},formatLong:wfe,formatRelative:function(e,n,r,i){return Cfe[e]},localize:Ofe,match:Kfe,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Xfe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Zfe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Jfe=/^'([^]*?)'?$/,ehe=/''/g,the=/[a-zA-Z]/;function zo(t,e,n){var r,i,o,s,a,l,c,u,d,h,p,m,_,y,E,C,k,j;Tt(2,arguments);var q=String(e),K=Fu(),N=null!==(r=null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:K.locale)&&void 0!==r?r:I9,P=At(null!==(o=null!==(s=null!==(a=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:K.firstWeekContainsDate)&&void 0!==s?s:null===(d=K.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==o?o:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=At(null!==(p=null!==(m=null!==(_=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(E=n.locale)||void 0===E||null===(C=E.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==_?_:K.weekStartsOn)&&void 0!==m?m:null===(k=K.locale)||void 0===k||null===(j=k.options)||void 0===j?void 0:j.weekStartsOn)&&void 0!==p?p:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var F=Kt(t);if(!function Jde(t){if(Tt(1,arguments),!function Zde(t){return Tt(1,arguments),t instanceof Date||"object"===U_(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=Kt(t);return!isNaN(Number(e))}(F))throw new RangeError("Invalid time value");var O=g9(F,j_(F)),D={firstWeekContainsDate:P,weekStartsOn:V,locale:N,_originalDate:F},Se=q.match(Zfe).map(function(Oe){var W=Oe[0];return"p"===W||"P"===W?(0,g2[W])(Oe,N.formatLong):Oe}).join("").match(Xfe).map(function(Oe){if("''"===Oe)return"'";var W=Oe[0];if("'"===W)return function nhe(t){var e=t.match(Jfe);return e?e[1].replace(ehe,"'"):t}(Oe);var ie=cfe[W];if(ie)return!(null!=n&&n.useAdditionalWeekYearTokens)&&T9(Oe)&&G_(Oe,e,String(t)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&S9(Oe)&&G_(Oe,e,String(t)),ie(O,Oe,N.localize,D);if(W.match(the))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return Oe}).join("");return Se}function rhe(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function q_(t){return(q_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function A9(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_2(t,e)}function _2(t,e){return(_2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function x9(t){var e=function ohe(){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(t){return!1}}();return function(){var i,r=W_(t);if(e){var o=W_(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function ihe(t,e){return!e||"object"!==q_(e)&&"function"!=typeof e?v2(t):e}(this,i)}}function v2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function W_(t){return(W_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function y2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b2(t,e,n){return e&&P9(t.prototype,e),n&&P9(t,n),t}function w2(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var D9=function(){function t(){y2(this,t),w2(this,"subPriority",0)}return b2(t,[{key:"validate",value:function(n,r){return!0}}]),t}(),ahe=function(t){A9(n,t);var e=x9(n);function n(r,i,o,s,a){var l;return y2(this,n),(l=e.call(this)).value=r,l.validateValue=i,l.setValue=o,l.priority=s,a&&(l.subPriority=a),l}return b2(n,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,s){return this.setValue(i,o,this.value,s)}}]),n}(D9),lhe=function(t){A9(n,t);var e=x9(n);function n(){var r;y2(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return w2(v2(r=e.call.apply(e,[this].concat(o))),"priority",10),w2(v2(r),"subPriority",-1),r}return b2(n,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var s=new Date(0);return s.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),s.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),s}}]),n}(D9);function k9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Rt=function(){function t(){!function che(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function uhe(t,e,n){e&&k9(t.prototype,e),n&&k9(t,n)}(t,[{key:"run",value:function(n,r,i,o){var s=this.parse(n,r,i,o);return s?{setter:new ahe(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(n,r,i){return!0}}]),t}();function Y_(t){return(Y_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function M9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function C2(t,e){return(C2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function E2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function K_(t){return(K_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function O9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _he=function(t){!function hhe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&C2(t,e)}(n,t);var e=function phe(t){var e=function mhe(){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(t){return!1}}();return function(){var i,r=K_(t);if(e){var o=K_(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function ghe(t,e){return!e||"object"!==Y_(e)&&"function"!=typeof e?E2(t):e}(this,i)}}(n);function n(){var r;!function dhe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return O9(E2(r=e.call.apply(e,[this].concat(o))),"priority",140),O9(E2(r),"incompatibleTokens",["R","u","t","T"]),r}return function fhe(t,e,n){e&&M9(t.prototype,e),n&&M9(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"G":case"GG":case"GGG":return s.era(i,{width:"abbreviated"})||s.era(i,{width:"narrow"});case"GGGGG":return s.era(i,{width:"narrow"});default:return s.era(i,{width:"wide"})||s.era(i,{width:"abbreviated"})||s.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,s){return o.era=s,i.setUTCFullYear(s,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Rt),S2=(Math.pow(10,8),6e4),T2=36e5,kn_month=/^(1[0-2]|0?\d)/,kn_date=/^(3[0-1]|[0-2]?\d)/,kn_dayOfYear=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,kn_week=/^(5[0-3]|[0-4]?\d)/,kn_hour23h=/^(2[0-3]|[0-1]?\d)/,kn_hour24h=/^(2[0-4]|[0-1]?\d)/,kn_hour11h=/^(1[0-1]|0?\d)/,kn_hour12h=/^(1[0-2]|0?\d)/,kn_minute=/^[0-5]?\d/,kn_second=/^[0-5]?\d/,kn_singleDigit=/^\d/,kn_twoDigits=/^\d{1,2}/,kn_threeDigits=/^\d{1,3}/,kn_fourDigits=/^\d{1,4}/,kn_anyDigitsSigned=/^-?\d+/,kn_singleDigitSigned=/^-?\d/,kn_twoDigitsSigned=/^-?\d{1,2}/,kn_threeDigitsSigned=/^-?\d{1,3}/,kn_fourDigitsSigned=/^-?\d{1,4}/,Uo_basicOptionalMinutes=/^([+-])(\d{2})(\d{2})?|Z/,Uo_basic=/^([+-])(\d{2})(\d{2})|Z/,Uo_basicOptionalSeconds=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Uo_extended=/^([+-])(\d{2}):(\d{2})|Z/,Uo_extendedOptionalSeconds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Mn(t,e){return t&&{value:e(t.value),rest:t.rest}}function _n(t,e){var n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function Ho(t,e){var n=e.match(t);if(!n)return null;if("Z"===n[0])return{value:0,rest:e.slice(1)};var r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(i*T2+o*S2+1e3*s),rest:e.slice(n[0].length)}}function N9(t){return _n(kn_anyDigitsSigned,t)}function wn(t,e){switch(t){case 1:return _n(kn_singleDigit,e);case 2:return _n(kn_twoDigits,e);case 3:return _n(kn_threeDigits,e);case 4:return _n(kn_fourDigits,e);default:return _n(new RegExp("^\\d{1,"+t+"}"),e)}}function Q_(t,e){switch(t){case 1:return _n(kn_singleDigitSigned,e);case 2:return _n(kn_twoDigitsSigned,e);case 3:return _n(kn_threeDigitsSigned,e);case 4:return _n(kn_fourDigitsSigned,e);default:return _n(new RegExp("^-?\\d{1,"+t+"}"),e)}}function I2(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function L9(t,e){var i,n=e>0,r=n?e:1-e;if(r<=50)i=t||100;else{var o=r+50;i=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return n?i:1-i}function F9(t){return t%400==0||t%4==0&&t%100!=0}function X_(t){return(X_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function V9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function A2(t,e){return(A2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function x2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Z_(t){return(Z_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function B9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dhe=function(t){!function Ihe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&A2(t,e)}(n,t);var e=function Ahe(t){var e=function Phe(){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(t){return!1}}();return function(){var i,r=Z_(t);if(e){var o=Z_(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function xhe(t,e){return!e||"object"!==X_(e)&&"function"!=typeof e?x2(t):e}(this,i)}}(n);function n(){var r;!function She(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return B9(x2(r=e.call.apply(e,[this].concat(o))),"priority",130),B9(x2(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return function The(t,e,n){e&&V9(t.prototype,e),n&&V9(t,n)}(n,[{key:"parse",value:function(i,o,s){var a=function(c){return{year:c,isTwoDigitYear:"yy"===o}};switch(o){case"y":return Mn(wn(4,i),a);case"yo":return Mn(s.ordinalNumber(i,{unit:"year"}),a);default:return Mn(wn(o.length,i),a)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,s){var a=i.getUTCFullYear();if(s.isTwoDigitYear){var l=L9(s.year,a);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}return i.setUTCFullYear("era"in o&&1!==o.era?1-s.year:s.year,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Rt);function J_(t){return(J_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function $9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function P2(t,e){return(P2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function D2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ev(t){return(ev=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function z9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fhe=function(t){!function Ohe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P2(t,e)}(n,t);var e=function Rhe(t){var e=function Lhe(){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(t){return!1}}();return function(){var i,r=ev(t);if(e){var o=ev(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Nhe(t,e){return!e||"object"!==J_(e)&&"function"!=typeof e?D2(t):e}(this,i)}}(n);function n(){var r;!function khe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return z9(D2(r=e.call.apply(e,[this].concat(o))),"priority",130),z9(D2(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return function Mhe(t,e,n){e&&$9(t.prototype,e),n&&$9(t,n)}(n,[{key:"parse",value:function(i,o,s){var a=function(c){return{year:c,isTwoDigitYear:"YY"===o}};switch(o){case"Y":return Mn(wn(4,i),a);case"Yo":return Mn(s.ordinalNumber(i,{unit:"year"}),a);default:return Mn(wn(o.length,i),a)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,s,a){var l=p2(i,a);if(s.isTwoDigitYear){var c=L9(s.year,l);return i.setUTCFullYear(c,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Al(i,a)}return i.setUTCFullYear("era"in o&&1!==o.era?1-s.year:s.year,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Al(i,a)}}]),n}(Rt);function tv(t){return(tv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function U9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k2(t,e){return(k2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function M2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nv(t){return(nv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function H9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jhe=function(t){!function $he(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k2(t,e)}(n,t);var e=function zhe(t){var e=function Hhe(){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(t){return!1}}();return function(){var i,r=nv(t);if(e){var o=nv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Uhe(t,e){return!e||"object"!==tv(e)&&"function"!=typeof e?M2(t):e}(this,i)}}(n);function n(){var r;!function Vhe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return H9(M2(r=e.call.apply(e,[this].concat(o))),"priority",130),H9(M2(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return function Bhe(t,e,n){e&&U9(t.prototype,e),n&&U9(t,n)}(n,[{key:"parse",value:function(i,o){return Q_("R"===o?4:o.length,i)}},{key:"set",value:function(i,o,s){var a=new Date(0);return a.setUTCFullYear(s,0,4),a.setUTCHours(0,0,0,0),Lu(a)}}]),n}(Rt);function rv(t){return(rv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function j9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O2(t,e){return(O2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function R2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iv(t){return(iv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function G9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xhe=function(t){!function Whe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O2(t,e)}(n,t);var e=function Yhe(t){var e=function Qhe(){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(t){return!1}}();return function(){var i,r=iv(t);if(e){var o=iv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Khe(t,e){return!e||"object"!==rv(e)&&"function"!=typeof e?R2(t):e}(this,i)}}(n);function n(){var r;!function Ghe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return G9(R2(r=e.call.apply(e,[this].concat(o))),"priority",130),G9(R2(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return function qhe(t,e,n){e&&j9(t.prototype,e),n&&j9(t,n)}(n,[{key:"parse",value:function(i,o){return Q_("u"===o?4:o.length,i)}},{key:"set",value:function(i,o,s){return i.setUTCFullYear(s,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(Rt);function ov(t){return(ov="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function q9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function N2(t,e){return(N2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function L2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sv(t){return(sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function W9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ipe=function(t){!function epe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&N2(t,e)}(n,t);var e=function tpe(t){var e=function rpe(){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(t){return!1}}();return function(){var i,r=sv(t);if(e){var o=sv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function npe(t,e){return!e||"object"!==ov(e)&&"function"!=typeof e?L2(t):e}(this,i)}}(n);function n(){var r;!function Zhe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return W9(L2(r=e.call.apply(e,[this].concat(o))),"priority",120),W9(L2(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return function Jhe(t,e,n){e&&q9(t.prototype,e),n&&q9(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"Q":case"QQ":return wn(o.length,i);case"Qo":return s.ordinalNumber(i,{unit:"quarter"});case"QQQ":return s.quarter(i,{width:"abbreviated",context:"formatting"})||s.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(i,{width:"narrow",context:"formatting"});default:return s.quarter(i,{width:"wide",context:"formatting"})||s.quarter(i,{width:"abbreviated",context:"formatting"})||s.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth(3*(s-1),1),i.setUTCHours(0,0,0,0),i}}]),n}(Rt);function av(t){return(av="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function Y9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function F2(t,e){return(F2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function V2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lv(t){return(lv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function K9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dpe=function(t){!function ape(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&F2(t,e)}(n,t);var e=function lpe(t){var e=function upe(){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(t){return!1}}();return function(){var i,r=lv(t);if(e){var o=lv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function cpe(t,e){return!e||"object"!==av(e)&&"function"!=typeof e?V2(t):e}(this,i)}}(n);function n(){var r;!function ope(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return K9(V2(r=e.call.apply(e,[this].concat(o))),"priority",120),K9(V2(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return function spe(t,e,n){e&&Y9(t.prototype,e),n&&Y9(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"q":case"qq":return wn(o.length,i);case"qo":return s.ordinalNumber(i,{unit:"quarter"});case"qqq":return s.quarter(i,{width:"abbreviated",context:"standalone"})||s.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(i,{width:"narrow",context:"standalone"});default:return s.quarter(i,{width:"wide",context:"standalone"})||s.quarter(i,{width:"abbreviated",context:"standalone"})||s.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth(3*(s-1),1),i.setUTCHours(0,0,0,0),i}}]),n}(Rt);function cv(t){return(cv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function Q9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function B2(t,e){return(B2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function $2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uv(t){return(uv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function X9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vpe=function(t){!function ppe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&B2(t,e)}(n,t);var e=function gpe(t){var e=function _pe(){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(t){return!1}}();return function(){var i,r=uv(t);if(e){var o=uv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function mpe(t,e){return!e||"object"!==cv(e)&&"function"!=typeof e?$2(t):e}(this,i)}}(n);function n(){var r;!function fpe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return X9($2(r=e.call.apply(e,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),X9($2(r),"priority",110),r}return function hpe(t,e,n){e&&Q9(t.prototype,e),n&&Q9(t,n)}(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c-1};switch(o){case"M":return Mn(_n(kn_month,i),a);case"MM":return Mn(wn(2,i),a);case"Mo":return Mn(s.ordinalNumber(i,{unit:"month"}),a);case"MMM":return s.month(i,{width:"abbreviated",context:"formatting"})||s.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(i,{width:"narrow",context:"formatting"});default:return s.month(i,{width:"wide",context:"formatting"})||s.month(i,{width:"abbreviated",context:"formatting"})||s.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(Rt);function dv(t){return(dv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function Z9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function z2(t,e){return(z2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function U2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fv(t){return(fv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function J9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Tpe=function(t){!function wpe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&z2(t,e)}(n,t);var e=function Cpe(t){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(t){return!1}}();return function(){var i,r=fv(t);if(e){var o=fv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Epe(t,e){return!e||"object"!==dv(e)&&"function"!=typeof e?U2(t):e}(this,i)}}(n);function n(){var r;!function ype(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return J9(U2(r=e.call.apply(e,[this].concat(o))),"priority",110),J9(U2(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return function bpe(t,e,n){e&&Z9(t.prototype,e),n&&Z9(t,n)}(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c-1};switch(o){case"L":return Mn(_n(kn_month,i),a);case"LL":return Mn(wn(2,i),a);case"Lo":return Mn(s.ordinalNumber(i,{unit:"month"}),a);case"LLL":return s.month(i,{width:"abbreviated",context:"standalone"})||s.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(i,{width:"narrow",context:"standalone"});default:return s.month(i,{width:"wide",context:"standalone"})||s.month(i,{width:"abbreviated",context:"standalone"})||s.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(Rt);function hv(t){return(hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function eV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function H2(t,e){return(H2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function j2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pv(t){return(pv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function tV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ope=function(t){!function Ppe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&H2(t,e)}(n,t);var e=function Dpe(t){var e=function Mpe(){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(t){return!1}}();return function(){var i,r=pv(t);if(e){var o=pv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function kpe(t,e){return!e||"object"!==hv(e)&&"function"!=typeof e?j2(t):e}(this,i)}}(n);function n(){var r;!function Ape(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return tV(j2(r=e.call.apply(e,[this].concat(o))),"priority",100),tV(j2(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return function xpe(t,e,n){e&&eV(t.prototype,e),n&&eV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"w":return _n(kn_week,i);case"wo":return s.ordinalNumber(i,{unit:"week"});default:return wn(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,s,a){return Al(function Ipe(t,e,n){Tt(2,arguments);var r=Kt(t),i=At(e),o=y9(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(i,s,a),a)}}]),n}(Rt);function gv(t){return(gv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function nV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function G2(t,e){return(G2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function q2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mv(t){return(mv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function rV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zpe=function(t){!function Fpe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&G2(t,e)}(n,t);var e=function Vpe(t){var e=function $pe(){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(t){return!1}}();return function(){var i,r=mv(t);if(e){var o=mv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Bpe(t,e){return!e||"object"!==gv(e)&&"function"!=typeof e?q2(t):e}(this,i)}}(n);function n(){var r;!function Npe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return rV(q2(r=e.call.apply(e,[this].concat(o))),"priority",100),rV(q2(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return function Lpe(t,e,n){e&&nV(t.prototype,e),n&&nV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"I":return _n(kn_week,i);case"Io":return s.ordinalNumber(i,{unit:"week"});default:return wn(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,s){return Lu(function Rpe(t,e){Tt(2,arguments);var n=Kt(t),r=At(e),i=_9(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(i,s))}}]),n}(Rt);function _v(t){return(_v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function iV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function W2(t,e){return(W2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function vv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yv(t){return(yv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function Y2(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ype=[31,28,31,30,31,30,31,31,30,31,30,31],Kpe=[31,29,31,30,31,30,31,31,30,31,30,31],Qpe=function(t){!function jpe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&W2(t,e)}(n,t);var e=function Gpe(t){var e=function Wpe(){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(t){return!1}}();return function(){var i,r=yv(t);if(e){var o=yv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function qpe(t,e){return!e||"object"!==_v(e)&&"function"!=typeof e?vv(t):e}(this,i)}}(n);function n(){var r;!function Upe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Y2(vv(r=e.call.apply(e,[this].concat(o))),"priority",90),Y2(vv(r),"subPriority",1),Y2(vv(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return function Hpe(t,e,n){e&&iV(t.prototype,e),n&&iV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"d":return _n(kn_date,i);case"do":return s.ordinalNumber(i,{unit:"date"});default:return wn(o.length,i)}}},{key:"validate",value:function(i,o){var a=F9(i.getUTCFullYear()),l=i.getUTCMonth();return a?o>=1&&o<=Kpe[l]:o>=1&&o<=Ype[l]}},{key:"set",value:function(i,o,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),n}(Rt);function bv(t){return(bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function oV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function K2(t,e){return(K2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function wv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Cv(t){return(Cv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function Q2(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rge=function(t){!function Jpe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&K2(t,e)}(n,t);var e=function ege(t){var e=function nge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var i,r=Cv(t);if(e){var o=Cv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function tge(t,e){return!e||"object"!==bv(e)&&"function"!=typeof e?wv(t):e}(this,i)}}(n);function n(){var r;!function Xpe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Q2(wv(r=e.call.apply(e,[this].concat(o))),"priority",90),Q2(wv(r),"subpriority",1),Q2(wv(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return function Zpe(t,e,n){e&&oV(t.prototype,e),n&&oV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"D":case"DD":return _n(kn_dayOfYear,i);case"Do":return s.ordinalNumber(i,{unit:"date"});default:return wn(o.length,i)}}},{key:"validate",value:function(i,o){return F9(i.getUTCFullYear())?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),n}(Rt);function X2(t,e,n){var r,i,o,s,a,l,c,u;Tt(2,arguments);var d=Fu(),h=At(null!==(r=null!==(i=null!==(o=null!==(s=null==n?void 0:n.weekStartsOn)&&void 0!==s?s:null==n||null===(a=n.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==i?i:null===(c=d.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==r?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Kt(t),m=At(e),C=((m%7+7)%7<h?7:0)+m-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+C),p}function Ev(t){return(Ev="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function sV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Z2(t,e){return(Z2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function J2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sv(t){return(Sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function aV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uge=function(t){!function sge(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Z2(t,e)}(n,t);var e=function age(t){var e=function cge(){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(t){return!1}}();return function(){var i,r=Sv(t);if(e){var o=Sv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function lge(t,e){return!e||"object"!==Ev(e)&&"function"!=typeof e?J2(t):e}(this,i)}}(n);function n(){var r;!function ige(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return aV(J2(r=e.call.apply(e,[this].concat(o))),"priority",90),aV(J2(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return function oge(t,e,n){e&&sV(t.prototype,e),n&&sV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"E":case"EE":case"EEE":return s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});default:return s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return(i=X2(i,s,a)).setUTCHours(0,0,0,0),i}}]),n}(Rt);function Tv(t){return(Tv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function lV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function eA(t,e){return(eA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function tA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Iv(t){return(Iv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function cV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _ge=function(t){!function hge(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&eA(t,e)}(n,t);var e=function pge(t){var e=function mge(){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(t){return!1}}();return function(){var i,r=Iv(t);if(e){var o=Iv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function gge(t,e){return!e||"object"!==Tv(e)&&"function"!=typeof e?tA(t):e}(this,i)}}(n);function n(){var r;!function dge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return cV(tA(r=e.call.apply(e,[this].concat(o))),"priority",90),cV(tA(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return function fge(t,e,n){e&&lV(t.prototype,e),n&&lV(t,n)}(n,[{key:"parse",value:function(i,o,s,a){var l=function(u){var d=7*Math.floor((u-1)/7);return(u+a.weekStartsOn+6)%7+d};switch(o){case"e":case"ee":return Mn(wn(o.length,i),l);case"eo":return Mn(s.ordinalNumber(i,{unit:"day"}),l);case"eee":return s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"eeeee":return s.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});default:return s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return(i=X2(i,s,a)).setUTCHours(0,0,0,0),i}}]),n}(Rt);function Av(t){return(Av="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function uV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nA(t,e){return(nA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function rA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xv(t){return(xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function dV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sge=function(t){!function bge(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nA(t,e)}(n,t);var e=function wge(t){var e=function Ege(){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(t){return!1}}();return function(){var i,r=xv(t);if(e){var o=xv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Cge(t,e){return!e||"object"!==Av(e)&&"function"!=typeof e?rA(t):e}(this,i)}}(n);function n(){var r;!function vge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return dV(rA(r=e.call.apply(e,[this].concat(o))),"priority",90),dV(rA(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return function yge(t,e,n){e&&uV(t.prototype,e),n&&uV(t,n)}(n,[{key:"parse",value:function(i,o,s,a){var l=function(u){var d=7*Math.floor((u-1)/7);return(u+a.weekStartsOn+6)%7+d};switch(o){case"c":case"cc":return Mn(wn(o.length,i),l);case"co":return Mn(s.ordinalNumber(i,{unit:"day"}),l);case"ccc":return s.day(i,{width:"abbreviated",context:"standalone"})||s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"});case"ccccc":return s.day(i,{width:"narrow",context:"standalone"});case"cccccc":return s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"});default:return s.day(i,{width:"wide",context:"standalone"})||s.day(i,{width:"abbreviated",context:"standalone"})||s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return(i=X2(i,s,a)).setUTCHours(0,0,0,0),i}}]),n}(Rt);function Pv(t){return(Pv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function fV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function iA(t,e){return(iA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function oA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dv(t){return(Dv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function hV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Mge=function(t){!function xge(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&iA(t,e)}(n,t);var e=function Pge(t){var e=function kge(){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(t){return!1}}();return function(){var i,r=Dv(t);if(e){var o=Dv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Dge(t,e){return!e||"object"!==Pv(e)&&"function"!=typeof e?oA(t):e}(this,i)}}(n);function n(){var r;!function Ige(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return hV(oA(r=e.call.apply(e,[this].concat(o))),"priority",90),hV(oA(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return function Age(t,e,n){e&&fV(t.prototype,e),n&&fV(t,n)}(n,[{key:"parse",value:function(i,o,s){var a=function(c){return 0===c?7:c};switch(o){case"i":case"ii":return wn(o.length,i);case"io":return s.ordinalNumber(i,{unit:"day"});case"iii":return Mn(s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a);case"iiiii":return Mn(s.day(i,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Mn(s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a);default:return Mn(s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,s){return i=function Tge(t,e){Tt(2,arguments);var n=At(e);n%7==0&&(n-=7);var i=Kt(t),l=((n%7+7)%7<1?7:0)+n-i.getUTCDay();return i.setUTCDate(i.getUTCDate()+l),i}(i,s),i.setUTCHours(0,0,0,0),i}}]),n}(Rt);function kv(t){return(kv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function pV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sA(t,e){return(sA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function aA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mv(t){return(Mv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function gV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Bge=function(t){!function Nge(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sA(t,e)}(n,t);var e=function Lge(t){var e=function Vge(){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(t){return!1}}();return function(){var i,r=Mv(t);if(e){var o=Mv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Fge(t,e){return!e||"object"!==kv(e)&&"function"!=typeof e?aA(t):e}(this,i)}}(n);function n(){var r;!function Oge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return gV(aA(r=e.call.apply(e,[this].concat(o))),"priority",80),gV(aA(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return function Rge(t,e,n){e&&pV(t.prototype,e),n&&pV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"a":case"aa":case"aaa":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(i,{width:"narrow",context:"formatting"});default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(I2(s),0,0,0),i}}]),n}(Rt);function Ov(t){return(Ov="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function mV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lA(t,e){return(lA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function cA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rv(t){return(Rv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function _V(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qge=function(t){!function Uge(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&lA(t,e)}(n,t);var e=function Hge(t){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(t){return!1}}();return function(){var i,r=Rv(t);if(e){var o=Rv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function jge(t,e){return!e||"object"!==Ov(e)&&"function"!=typeof e?cA(t):e}(this,i)}}(n);function n(){var r;!function $ge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return _V(cA(r=e.call.apply(e,[this].concat(o))),"priority",80),_V(cA(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return function zge(t,e,n){e&&mV(t.prototype,e),n&&mV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"b":case"bb":case"bbb":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(i,{width:"narrow",context:"formatting"});default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(I2(s),0,0,0),i}}]),n}(Rt);function Nv(t){return(Nv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function vV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function uA(t,e){return(uA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function dA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lv(t){return(Lv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function yV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jge=function(t){!function Kge(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&uA(t,e)}(n,t);var e=function Qge(t){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(t){return!1}}();return function(){var i,r=Lv(t);if(e){var o=Lv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Xge(t,e){return!e||"object"!==Nv(e)&&"function"!=typeof e?dA(t):e}(this,i)}}(n);function n(){var r;!function Wge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return yV(dA(r=e.call.apply(e,[this].concat(o))),"priority",80),yV(dA(r),"incompatibleTokens",["a","b","t","T"]),r}return function Yge(t,e,n){e&&vV(t.prototype,e),n&&vV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"B":case"BB":case"BBB":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(i,{width:"narrow",context:"formatting"});default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(I2(s),0,0,0),i}}]),n}(Rt);function Fv(t){return(Fv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function bV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fA(t,e){return(fA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function hA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vv(t){return(Vv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function wV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sme=function(t){!function nme(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fA(t,e)}(n,t);var e=function rme(t){var e=function ome(){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(t){return!1}}();return function(){var i,r=Vv(t);if(e){var o=Vv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function ime(t,e){return!e||"object"!==Fv(e)&&"function"!=typeof e?hA(t):e}(this,i)}}(n);function n(){var r;!function eme(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return wV(hA(r=e.call.apply(e,[this].concat(o))),"priority",70),wV(hA(r),"incompatibleTokens",["H","K","k","t","T"]),r}return function tme(t,e,n){e&&bV(t.prototype,e),n&&bV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"h":return _n(kn_hour12h,i);case"ho":return s.ordinalNumber(i,{unit:"hour"});default:return wn(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return i.setUTCHours(a&&s<12?s+12:a||12!==s?s:0,0,0,0),i}}]),n}(Rt);function Bv(t){return(Bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function CV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pA(t,e){return(pA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function gA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $v(t){return($v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function EV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hme=function(t){!function cme(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pA(t,e)}(n,t);var e=function ume(t){var e=function fme(){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(t){return!1}}();return function(){var i,r=$v(t);if(e){var o=$v(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function dme(t,e){return!e||"object"!==Bv(e)&&"function"!=typeof e?gA(t):e}(this,i)}}(n);function n(){var r;!function ame(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return EV(gA(r=e.call.apply(e,[this].concat(o))),"priority",70),EV(gA(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return function lme(t,e,n){e&&CV(t.prototype,e),n&&CV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"H":return _n(kn_hour23h,i);case"Ho":return s.ordinalNumber(i,{unit:"hour"});default:return wn(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,s){return i.setUTCHours(s,0,0,0),i}}]),n}(Rt);function zv(t){return(zv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function SV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mA(t,e){return(mA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function _A(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uv(t){return(Uv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function TV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bme=function(t){!function mme(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&mA(t,e)}(n,t);var e=function _me(t){var e=function yme(){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(t){return!1}}();return function(){var i,r=Uv(t);if(e){var o=Uv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function vme(t,e){return!e||"object"!==zv(e)&&"function"!=typeof e?_A(t):e}(this,i)}}(n);function n(){var r;!function pme(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return TV(_A(r=e.call.apply(e,[this].concat(o))),"priority",70),TV(_A(r),"incompatibleTokens",["h","H","k","t","T"]),r}return function gme(t,e,n){e&&SV(t.prototype,e),n&&SV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"K":return _n(kn_hour11h,i);case"Ko":return s.ordinalNumber(i,{unit:"hour"});default:return wn(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return i.setUTCHours(a&&s<12?s+12:s,0,0,0),i}}]),n}(Rt);function Hv(t){return(Hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function IV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vA(t,e){return(vA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function yA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jv(t){return(jv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function AV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ame=function(t){!function Eme(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vA(t,e)}(n,t);var e=function Sme(t){var e=function Ime(){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(t){return!1}}();return function(){var i,r=jv(t);if(e){var o=jv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Tme(t,e){return!e||"object"!==Hv(e)&&"function"!=typeof e?yA(t):e}(this,i)}}(n);function n(){var r;!function wme(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return AV(yA(r=e.call.apply(e,[this].concat(o))),"priority",70),AV(yA(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return function Cme(t,e,n){e&&IV(t.prototype,e),n&&IV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"k":return _n(kn_hour24h,i);case"ko":return s.ordinalNumber(i,{unit:"hour"});default:return wn(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,s){return i.setUTCHours(s<=24?s%24:s,0,0,0),i}}]),n}(Rt);function Gv(t){return(Gv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function xV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bA(t,e){return(bA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function wA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qv(t){return(qv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function PV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Rme=function(t){!function Dme(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bA(t,e)}(n,t);var e=function kme(t){var e=function Ome(){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(t){return!1}}();return function(){var i,r=qv(t);if(e){var o=qv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Mme(t,e){return!e||"object"!==Gv(e)&&"function"!=typeof e?wA(t):e}(this,i)}}(n);function n(){var r;!function xme(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return PV(wA(r=e.call.apply(e,[this].concat(o))),"priority",60),PV(wA(r),"incompatibleTokens",["t","T"]),r}return function Pme(t,e,n){e&&xV(t.prototype,e),n&&xV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"m":return _n(kn_minute,i);case"mo":return s.ordinalNumber(i,{unit:"minute"});default:return wn(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCMinutes(s,0,0),i}}]),n}(Rt);function Wv(t){return(Wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function DV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function CA(t,e){return(CA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function EA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yv(t){return(Yv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function kV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zme=function(t){!function Fme(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&CA(t,e)}(n,t);var e=function Vme(t){var e=function $me(){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(t){return!1}}();return function(){var i,r=Yv(t);if(e){var o=Yv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Bme(t,e){return!e||"object"!==Wv(e)&&"function"!=typeof e?EA(t):e}(this,i)}}(n);function n(){var r;!function Nme(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return kV(EA(r=e.call.apply(e,[this].concat(o))),"priority",50),kV(EA(r),"incompatibleTokens",["t","T"]),r}return function Lme(t,e,n){e&&DV(t.prototype,e),n&&DV(t,n)}(n,[{key:"parse",value:function(i,o,s){switch(o){case"s":return _n(kn_second,i);case"so":return s.ordinalNumber(i,{unit:"second"});default:return wn(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCSeconds(s,0),i}}]),n}(Rt);function Kv(t){return(Kv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function MV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function SA(t,e){return(SA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function TA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qv(t){return(Qv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function OV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yme=function(t){!function jme(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&SA(t,e)}(n,t);var e=function Gme(t){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(t){return!1}}();return function(){var i,r=Qv(t);if(e){var o=Qv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function qme(t,e){return!e||"object"!==Kv(e)&&"function"!=typeof e?TA(t):e}(this,i)}}(n);function n(){var r;!function Ume(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return OV(TA(r=e.call.apply(e,[this].concat(o))),"priority",30),OV(TA(r),"incompatibleTokens",["t","T"]),r}return function Hme(t,e,n){e&&MV(t.prototype,e),n&&MV(t,n)}(n,[{key:"parse",value:function(i,o){return Mn(wn(o.length,i),function(l){return Math.floor(l*Math.pow(10,3-o.length))})}},{key:"set",value:function(i,o,s){return i.setUTCMilliseconds(s),i}}]),n}(Rt);function Xv(t){return(Xv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function RV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function IA(t,e){return(IA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function AA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zv(t){return(Zv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function NV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var t_e=function(t){!function Xme(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&IA(t,e)}(n,t);var e=function Zme(t){var e=function e_e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var i,r=Zv(t);if(e){var o=Zv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function Jme(t,e){return!e||"object"!==Xv(e)&&"function"!=typeof e?AA(t):e}(this,i)}}(n);function n(){var r;!function Kme(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return NV(AA(r=e.call.apply(e,[this].concat(o))),"priority",10),NV(AA(r),"incompatibleTokens",["t","T","x"]),r}return function Qme(t,e,n){e&&RV(t.prototype,e),n&&RV(t,n)}(n,[{key:"parse",value:function(i,o){switch(o){case"X":return Ho(Uo_basicOptionalMinutes,i);case"XX":return Ho(Uo_basic,i);case"XXXX":return Ho(Uo_basicOptionalSeconds,i);case"XXXXX":return Ho(Uo_extendedOptionalSeconds,i);default:return Ho(Uo_extended,i)}}},{key:"set",value:function(i,o,s){return o.timestampIsSet?i:new Date(i.getTime()-s)}}]),n}(Rt);function Jv(t){return(Jv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function LV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xA(t,e){return(xA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function PA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ey(t){return(ey=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function FV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l_e=function(t){!function i_e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xA(t,e)}(n,t);var e=function o_e(t){var e=function a_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(t){return!1}}();return function(){var i,r=ey(t);if(e){var o=ey(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function s_e(t,e){return!e||"object"!==Jv(e)&&"function"!=typeof e?PA(t):e}(this,i)}}(n);function n(){var r;!function n_e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return FV(PA(r=e.call.apply(e,[this].concat(o))),"priority",10),FV(PA(r),"incompatibleTokens",["t","T","X"]),r}return function r_e(t,e,n){e&&LV(t.prototype,e),n&&LV(t,n)}(n,[{key:"parse",value:function(i,o){switch(o){case"x":return Ho(Uo_basicOptionalMinutes,i);case"xx":return Ho(Uo_basic,i);case"xxxx":return Ho(Uo_basicOptionalSeconds,i);case"xxxxx":return Ho(Uo_extendedOptionalSeconds,i);default:return Ho(Uo_extended,i)}}},{key:"set",value:function(i,o,s){return o.timestampIsSet?i:new Date(i.getTime()-s)}}]),n}(Rt);function ty(t){return(ty="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function VV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function DA(t,e){return(DA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function kA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ny(t){return(ny=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function BV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g_e=function(t){!function d_e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&DA(t,e)}(n,t);var e=function f_e(t){var e=function p_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(t){return!1}}();return function(){var i,r=ny(t);if(e){var o=ny(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function h_e(t,e){return!e||"object"!==ty(e)&&"function"!=typeof e?kA(t):e}(this,i)}}(n);function n(){var r;!function c_e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return BV(kA(r=e.call.apply(e,[this].concat(o))),"priority",40),BV(kA(r),"incompatibleTokens","*"),r}return function u_e(t,e,n){e&&VV(t.prototype,e),n&&VV(t,n)}(n,[{key:"parse",value:function(i){return N9(i)}},{key:"set",value:function(i,o,s){return[new Date(1e3*s),{timestampIsSet:!0}]}}]),n}(Rt);function ry(t){return(ry="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function $V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function MA(t,e){return(MA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function OA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iy(t){return(iy=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function zV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var C_e=function(t){!function v_e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&MA(t,e)}(n,t);var e=function y_e(t){var e=function w_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(t){return!1}}();return function(){var i,r=iy(t);if(e){var o=iy(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function b_e(t,e){return!e||"object"!==ry(e)&&"function"!=typeof e?OA(t):e}(this,i)}}(n);function n(){var r;!function m_e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return zV(OA(r=e.call.apply(e,[this].concat(o))),"priority",20),zV(OA(r),"incompatibleTokens","*"),r}return function __e(t,e,n){e&&$V(t.prototype,e),n&&$V(t,n)}(n,[{key:"parse",value:function(i){return N9(i)}},{key:"set",value:function(i,o,s){return[new Date(s),{timestampIsSet:!0}]}}]),n}(Rt),E_e={G:new _he,y:new Dhe,Y:new Fhe,R:new jhe,u:new Xhe,Q:new ipe,q:new dpe,M:new vpe,L:new Tpe,w:new Ope,I:new zpe,d:new Qpe,D:new rge,E:new uge,e:new _ge,c:new Sge,i:new Mge,a:new Bge,b:new qge,B:new Jge,h:new sme,H:new hme,K:new bme,k:new Ame,m:new Rme,s:new zme,S:new Yme,X:new t_e,x:new l_e,t:new g_e,T:new C_e};function oy(t){return(oy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function UV(t,e){var n;if(typeof Symbol>"u"||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function S_e(t,e){if(t){if("string"==typeof t)return HV(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HV(t,e)}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(c){throw c},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&null!=n.return&&n.return()}finally{if(s)throw a}}}}function HV(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var T_e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,I_e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A_e=/^'([^]*?)'?$/,x_e=/''/g,P_e=/\S/,D_e=/[a-zA-Z]/;function Bu(t,e,n,r){var i,o,s,a,l,c,u,d,h,p,m,_,y,E,C,k,j,q;Tt(3,arguments);var K=String(t),N=String(e),P=Fu(),V=null!==(i=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:P.locale)&&void 0!==i?i:I9;if(!V.match)throw new RangeError("locale must contain match property");var F=At(null!==(s=null!==(a=null!==(l=null!==(c=null==r?void 0:r.firstWeekContainsDate)&&void 0!==c?c:null==r||null===(u=r.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:P.firstWeekContainsDate)&&void 0!==a?a:null===(h=P.locale)||void 0===h||null===(p=h.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==s?s:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=At(null!==(m=null!==(_=null!==(y=null!==(E=null==r?void 0:r.weekStartsOn)&&void 0!==E?E:null==r||null===(C=r.locale)||void 0===C||null===(k=C.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==y?y:P.weekStartsOn)&&void 0!==_?_:null===(j=P.locale)||void 0===j||null===(q=j.options)||void 0===q?void 0:q.weekStartsOn)&&void 0!==m?m:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===N)return""===K?Kt(n):new Date(NaN);var ie,O={firstWeekContainsDate:F,weekStartsOn:R,locale:V},D=[new lhe],Se=N.match(I_e).map(function(Ft){var it=Ft[0];return it in g2?(0,g2[it])(Ft,V.formatLong):Ft}).join("").match(T_e),Oe=[],W=UV(Se);try{var ae=function(){var it=ie.value;!(null!=r&&r.useAdditionalWeekYearTokens)&&T9(it)&&G_(it,N,t),(null==r||!r.useAdditionalDayOfYearTokens)&&S9(it)&&G_(it,N,t);var ln=it[0],ir=E_e[ln];if(ir){var po=ir.incompatibleTokens;if(Array.isArray(po)){var Yo=Oe.find(function(Ko){return po.includes(Ko.token)||Ko.token===ln});if(Yo)throw new RangeError("The format string mustn't contain `".concat(Yo.fullToken,"` and `").concat(it,"` at the same time"))}else if("*"===ir.incompatibleTokens&&Oe.length>0)throw new RangeError("The format string mustn't contain `".concat(it,"` and any other token at the same time"));Oe.push({token:ln,fullToken:it});var go=ir.run(K,it,V.match,O);if(!go)return{v:new Date(NaN)};D.push(go.setter),K=go.rest}else{if(ln.match(D_e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ln+"`");if("''"===it?it="'":"'"===ln&&(it=function k_e(t){return t.match(A_e)[1].replace(x_e,"'")}(it)),0!==K.indexOf(it))return{v:new Date(NaN)};K=K.slice(it.length)}};for(W.s();!(ie=W.n()).done;){var De=ae();if("object"===oy(De))return De.v}}catch(Ft){W.e(Ft)}finally{W.f()}if(K.length>0&&P_e.test(K))return new Date(NaN);var qe=D.map(function(Ft){return Ft.priority}).sort(function(Ft,it){return it-Ft}).filter(function(Ft,it,ln){return ln.indexOf(Ft)===it}).map(function(Ft){return D.filter(function(it){return it.priority===Ft}).sort(function(it,ln){return ln.subPriority-it.subPriority})}).map(function(Ft){return Ft[0]}),Lt=Kt(n);if(isNaN(Lt.getTime()))return new Date(NaN);var On,mt=g9(Lt,j_(Lt)),xt={},wt=UV(qe);try{for(wt.s();!(On=wt.n()).done;){var di=On.value;if(!di.validate(mt,O))return new Date(NaN);var $t=di.set(mt,xt,O);Array.isArray($t)?(mt=$t[0],rhe(xt,$t[1])):mt=$t}}catch(Ft){wt.e(Ft)}finally{wt.f()}return mt}function sy(t,e){Tt(2,arguments);var n=Kt(t),r=Kt(e);return n.getTime()<r.getTime()}function ay(t,e){Tt(2,arguments);var n=Kt(t),r=Kt(e);return n.getTime()>r.getTime()}function jV(t,e){Tt(2,arguments);var n=Kt(t),r=At(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function GV(t,e){Tt(2,arguments);var n=Kt(t),r=At(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());return o.setMonth(n.getMonth()+r+1,0),i>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function ly(t){return(ly="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function RA(t,e){if(Tt(2,arguments),!e||"object"!==ly(e))return new Date(NaN);var n=e.years?At(e.years):0,r=e.months?At(e.months):0,i=e.weeks?At(e.weeks):0,o=e.days?At(e.days):0,s=e.hours?At(e.hours):0,a=e.minutes?At(e.minutes):0,l=e.seconds?At(e.seconds):0,c=Kt(t),u=r||n?GV(c,r+12*n):c,d=o||i?jV(u,o+7*i):u,m=1e3*(l+60*(a+60*s));return new Date(d.getTime()+m)}let Ii=(()=>{var t;class e{constructor(){this.devMode=!1,this.logMode=!1}setDebugMode(r){this.logMode||(this.logMode=r)}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const jo=Object.create(null);jo.open="0",jo.close="1",jo.ping="2",jo.pong="3",jo.message="4",jo.upgrade="5",jo.noop="6";const cy=Object.create(null);Object.keys(jo).forEach(t=>{cy[jo[t]]=t});const M_e={type:"error",data:"parser error"},O_e="function"==typeof Blob||typeof Blob<"u"&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),R_e="function"==typeof ArrayBuffer,qV=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+r)},n.readAsDataURL(t)},WV=({type:t,data:e},n,r)=>O_e&&e instanceof Blob?n?r(e):qV(e,r):R_e&&(e instanceof ArrayBuffer||(t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer)(e))?n?r(e):qV(new Blob([e]),r):r(jo[t]+(e||"")),xh=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<64;t++)xh["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(t)]=t;const V_e="function"==typeof ArrayBuffer,$_e=(t,e)=>{if(V_e){const n=(t=>{let r,o,s,a,l,e=.75*t.length,n=t.length,i=0;"="===t[t.length-1]&&(e--,"="===t[t.length-2]&&e--);const c=new ArrayBuffer(e),u=new Uint8Array(c);for(r=0;r<n;r+=4)o=xh[t.charCodeAt(r)],s=xh[t.charCodeAt(r+1)],a=xh[t.charCodeAt(r+2)],l=xh[t.charCodeAt(r+3)],u[i++]=o<<2|s>>4,u[i++]=(15&s)<<4|a>>2,u[i++]=(3&a)<<6|63&l;return c})(t);return YV(n,e)}return{base64:!0,data:t}},YV=(t,e)=>"blob"===e&&t instanceof ArrayBuffer?new Blob([t]):t,KV=(t,e)=>{if("string"!=typeof t)return{type:"message",data:YV(t,e)};const n=t.charAt(0);return"b"===n?{type:"message",data:$_e(t.substring(1),e)}:cy[n]?t.length>1?{type:cy[n],data:t.substring(1)}:{type:cy[n]}:M_e},QV=String.fromCharCode(30);function Bn(t){if(t)return function H_e(t){for(var e in Bn.prototype)t[e]=Bn.prototype[e];return t}(t)}Bn.prototype.on=Bn.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},Bn.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},Bn.prototype.off=Bn.prototype.removeListener=Bn.prototype.removeAllListeners=Bn.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,i=0;i<n.length;i++)if((r=n[i])===e||r.fn===e){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},Bn.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e)}return this},Bn.prototype.emitReserved=Bn.prototype.emit,Bn.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},Bn.prototype.hasListeners=function(t){return!!this.listeners(t).length};const ma=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function ZV(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const j_e=setTimeout,G_e=clearTimeout;function uy(t,e){e.useNativeTimers?(t.setTimeoutFn=j_e.bind(ma),t.clearTimeoutFn=G_e.bind(ma)):(t.setTimeoutFn=setTimeout.bind(ma),t.clearTimeoutFn=clearTimeout.bind(ma))}function W_e(t){return"string"==typeof t?function Y_e(t){let e=0,n=0;for(let r=0,i=t.length;r<i;r++)e=t.charCodeAt(r),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))}class K_e extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}}class JV extends Bn{constructor(e){super(),this.writable=!1,uy(this,e),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,n,r){return super.emitReserved("error",new K_e(e,n,r)),this}open(){return("closed"===this.readyState||""===this.readyState)&&(this.readyState="opening",this.doOpen()),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=KV(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}}const e7="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),dy=64,t7={};let r7,n7=0,_a=0;function i7(t){let e="";do{e=e7[t%dy]+e,t=Math.floor(t/dy)}while(t>0);return e}function o7(){const t=i7(+new Date);return t!==r7?(n7=0,r7=t):t+"."+i7(n7++)}for(;_a<dy;_a++)t7[e7[_a]]=_a;function s7(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}let a7=!1;try{a7=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(t){}const X_e=a7;function l7(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||X_e))return new XMLHttpRequest}catch(n){}if(!e)try{return new(ma[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function Z_e(){}const J_e=null!=new l7({xdomain:!1}).responseType;let fy=(()=>{class t extends Bn{constructor(n,r){super(),uy(this,r),this.opts=r,this.method=r.method||"GET",this.uri=n,this.async=!1!==r.async,this.data=void 0!==r.data?r.data:null,this.create()}create(){const n=ZV(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd,n.xscheme=!!this.opts.xs;const r=this.xhr=new l7(n);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch(i){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{r.setRequestHeader("Accept","*/*")}catch(i){}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof r.status?r.status:0)},0))},r.send(this.data)}catch(i){return void this.setTimeoutFn(()=>{this.onError(i)},0)}typeof document<"u"&&(this.index=t.requestsCount++,t.requests[this.index]=this)}onError(n){this.emitReserved("error",n,this.xhr),this.cleanup(!0)}cleanup(n){if(!(typeof this.xhr>"u"||null===this.xhr)){if(this.xhr.onreadystatechange=Z_e,n)try{this.xhr.abort()}catch(r){}typeof document<"u"&&delete t.requests[this.index],this.xhr=null}}onLoad(){const n=this.xhr.responseText;null!==n&&(this.emitReserved("data",n),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}return t.requestsCount=0,t.requests={},t})();function c7(){for(let t in fy.requests)fy.requests.hasOwnProperty(t)&&fy.requests[t].abort()}typeof document<"u"&&("function"==typeof attachEvent?attachEvent("onunload",c7):"function"==typeof addEventListener&&addEventListener("onpagehide"in ma?"pagehide":"unload",c7,!1));const u7="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,n)=>n(e,0),hy=ma.WebSocket||ma.MozWebSocket,d7=typeof navigator<"u"&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),rve={websocket:class nve extends JV{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,r=d7?{}:ZV(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=d7?new hy(e,n,r):n?new hy(e,n):new hy(e)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=n===e.length-1;WV(e[n],this.supportsBinary,o=>{try{this.ws.send(o)}catch(a){}i&&u7(()=>{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 n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&("wss"===n&&443!==Number(this.opts.port)||"ws"===n&&80!==Number(this.opts.port))&&(r=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=o7()),this.supportsBinary||(e.b64=1);const i=s7(e);return n+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}check(){return!!hy}},polling:class eve extends JV{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const r="https:"===location.protocol;let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port,this.xs=e.secure!==r}this.supportsBinary=J_e&&!(e&&e.forceBase64)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((t,e)=>{const n=t.split(QV),r=[];for(let i=0;i<n.length;i++){const o=KV(n[i],e);if(r.push(o),"error"===o.type)break}return r})(e,this.socket.binaryType).forEach(r=>{if("opening"===this.readyState&&"open"===r.type&&this.onOpen(),"close"===r.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((t,e)=>{const n=t.length,r=new Array(n);let i=0;t.forEach((o,s)=>{WV(o,!1,a=>{r[s]=a,++i===n&&e(r.join(QV))})})})(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.query||{};const n=this.opts.secure?"https":"http";let r="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=o7()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&("https"===n&&443!==Number(this.opts.port)||"http"===n&&80!==Number(this.opts.port))&&(r=":"+this.opts.port);const i=s7(e);return n+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new fy(this.uri(),e)}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}},ive=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ove=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function LA(t){const e=t,n=t.indexOf("["),r=t.indexOf("]");-1!=n&&-1!=r&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let i=ive.exec(t||""),o={},s=14;for(;s--;)o[ove[s]]=i[s]||"";return-1!=n&&-1!=r&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function sve(t,e){const r=e.replace(/\/{2,9}/g,"/").split("/");return("/"==e.slice(0,1)||0===e.length)&&r.splice(0,1),"/"==e.slice(-1)&&r.splice(r.length-1,1),r}(0,o.path),o.queryKey=function ave(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}(0,o.query),o}let f7=(()=>{class t extends Bn{constructor(n,r={}){super(),n&&"object"==typeof n&&(r=n,n=null),n?(n=LA(n),r.hostname=n.host,r.secure="https"===n.protocol||"wss"===n.protocol,r.port=n.port,n.query&&(r.query=n.query)):r.host&&(r.hostname=LA(r.host).host),uy(this,r),this.secure=null!=r.secure?r.secure:typeof location<"u"&&"https:"===location.protocol,r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},r),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=function Q_e(t){let e={},n=t.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[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(n){const r=Object.assign({},this.opts.query);r.EIO=4,r.transport=n,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts.transportOptions[n],this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new rve[n](i)}open(){let n;if(this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))n="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);n=this.transports[0]}this.readyState="opening";try{n=this.createTransport(n)}catch(r){return this.transports.shift(),void this.open()}n.open(),this.setTransport(n)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",r=>this.onClose("transport close",r))}probe(n){let r=this.createTransport(n),i=!1;t.priorWebsocketSuccess=!1;const o=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",h=>{if(!i)if("pong"===h.type&&"probe"===h.data){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;t.priorWebsocketSuccess="websocket"===r.name,this.transport.pause(()=>{i||"closed"!==this.readyState&&(d(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){i||(i=!0,d(),r.close(),r=null)}const a=h=>{const p=new Error("probe error: "+h);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function l(){a("transport closed")}function c(){a("socket closed")}function u(h){r&&h.name!==r.name&&s()}const d=()=>{r.removeListener("open",o),r.removeListener("error",a),r.removeListener("close",l),this.off("close",c),this.off("upgrading",u)};r.once("open",o),r.once("error",a),r.once("close",l),this.once("close",c),this.once("upgrading",u),r.open()}onOpen(){if(this.readyState="open",t.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){let n=0;const r=this.upgrades.length;for(;n<r;n++)this.probe(this.upgrades[n])}}onPacket(n){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const r=new Error("server error");r.code=n.data,this.onError(r);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data)}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this.upgrades=this.filterUpgrades(n.upgrades),this.pingInterval=n.pingInterval,this.pingTimeout=n.pingTimeout,this.maxPayload=n.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 n=this.getWritablePackets();this.transport.send(n),this.prevBufferLen=n.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i<this.writeBuffer.length;i++){const o=this.writeBuffer[i].data;if(o&&(r+=W_e(o)),i>0&&r>this.maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}write(n,r,i){return this.sendPacket("message",n,r,i),this}send(n,r,i){return this.sendPacket("message",n,r,i),this}sendPacket(n,r,i,o){if("function"==typeof r&&(o=r,r=void 0),"function"==typeof i&&(o=i,i=null),"closing"===this.readyState||"closed"===this.readyState)return;(i=i||{}).compress=!1!==i.compress;const s={type:n,data:r,options:i};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){const n=()=>{this.onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),n()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():n()}):this.upgrading?i():n()),this}onError(n){t.priorWebsocketSuccess=!1,this.emitReserved("error",n),this.onClose("transport error",n)}onClose(n,r){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",n,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(n){const r=[];let i=0;const o=n.length;for(;i<o;i++)~this.transports.indexOf(n[i])&&r.push(n[i]);return r}}return t.protocol=4,t})();const cve="function"==typeof ArrayBuffer,uve=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,h7=Object.prototype.toString,dve="function"==typeof Blob||typeof Blob<"u"&&"[object BlobConstructor]"===h7.call(Blob),fve="function"==typeof File||typeof File<"u"&&"[object FileConstructor]"===h7.call(File);function FA(t){return cve&&(t instanceof ArrayBuffer||uve(t))||dve&&t instanceof Blob||fve&&t instanceof File}function py(t,e){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(py(t[n]))return!0;return!1}if(FA(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return py(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&py(t[n]))return!0;return!1}function hve(t){const e=[],r=t;return r.data=VA(t.data,e),r.attachments=e.length,{packet:r,buffers:e}}function VA(t,e){if(!t)return t;if(FA(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}if(Array.isArray(t)){const n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=VA(t[r],e);return n}if("object"==typeof t&&!(t instanceof Date)){const n={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=VA(t[r],e));return n}return t}function pve(t,e){return t.data=BA(t.data,e),delete t.attachments,t}function BA(t,e){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=BA(t[n],e);else if("object"==typeof t)for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=BA(t[n],e));return t}const gve=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],mve=5;var bt=function(t){return t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK",t}(bt||{});class _ve{constructor(e){this.replacer=e}encode(e){return e.type!==bt.EVENT&&e.type!==bt.ACK||!py(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===bt.EVENT?bt.BINARY_EVENT:bt.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let n=""+e.type;return(e.type===bt.BINARY_EVENT||e.type===bt.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=hve(e),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function p7(t){return"[object Object]"===Object.prototype.toString.call(t)}class $A extends Bn{constructor(e){super(),this.reviver=e}add(e){let n;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const r=n.type===bt.BINARY_EVENT;r||n.type===bt.BINARY_ACK?(n.type=r?bt.EVENT:bt.ACK,this.reconstructor=new vve(n),0===n.attachments&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else{if(!FA(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n))}}decodeString(e){let n=0;const r={type:Number(e.charAt(0))};if(void 0===bt[r.type])throw new Error("unknown packet type "+r.type);if(r.type===bt.BINARY_EVENT||r.type===bt.BINARY_ACK){const o=n+1;for(;"-"!==e.charAt(++n)&&n!=e.length;);const s=e.substring(o,n);if(s!=Number(s)||"-"!==e.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(s)}if("/"===e.charAt(n+1)){const o=n+1;for(;++n&&","!==e.charAt(n)&&n!==e.length;);r.nsp=e.substring(o,n)}else r.nsp="/";const i=e.charAt(n+1);if(""!==i&&Number(i)==i){const o=n+1;for(;++n;){const s=e.charAt(n);if(null==s||Number(s)!=s){--n;break}if(n===e.length)break}r.id=Number(e.substring(o,n+1))}if(e.charAt(++n)){const o=this.tryParse(e.substr(n));if(!$A.isPayloadValid(r.type,o))throw new Error("invalid payload");r.data=o}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(n){return!1}}static isPayloadValid(e,n){switch(e){case bt.CONNECT:return p7(n);case bt.DISCONNECT:return void 0===n;case bt.CONNECT_ERROR:return"string"==typeof n||p7(n);case bt.EVENT:case bt.BINARY_EVENT:return Array.isArray(n)&&("number"==typeof n[0]||"string"==typeof n[0]&&-1===gve.indexOf(n[0]));case bt.ACK:case bt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class vve{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=pve(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function co(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const yve=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class g7 extends Bn{constructor(e,n,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[co(e,"open",this.onopen.bind(this)),co(e,"packet",this.onpacket.bind(this)),co(e,"error",this.onerror.bind(this)),co(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,...n){if(yve.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');n.unshift(e);const r={type:bt.EVENT,data:n,options:{}};if(r.options.compress=!1!==this.flags.compress,"function"==typeof n[n.length-1]){const s=this.ids++,a=n.pop();this._registerAckCallback(s,a),r.id=s}return this.flags.volatile&&(!(this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable)||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,n){const r=this.flags.timeout;if(void 0===r)return void(this.acks[e]=n);const i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===e&&this.sendBuffer.splice(o,1);n.call(this,new Error("operation has timed out"))},r);this.acks[e]=(...o)=>{this.io.clearTimeoutFn(i),n.apply(this,[null,...o])}}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this.packet({type:bt.CONNECT,data:e})}):this.packet({type:bt.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case bt.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 bt.EVENT:case bt.BINARY_EVENT:this.onevent(e);break;case bt.ACK:case bt.BINARY_ACK:this.onack(e);break;case bt.DISCONNECT:this.ondisconnect();break;case bt.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r)}}onevent(e){const n=e.data||[];null!=e.id&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,e)}super.emit.apply(this,e)}ack(e){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:bt.ACK,id:e,data:i}))}}onack(e){const n=this.acks[e.id];"function"==typeof n&&(n.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:bt.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 n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,e.data)}}}function zu(t){this.ms=(t=t||{}).min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}zu.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=1&Math.floor(10*e)?t+n:t-n}return 0|Math.min(t,this.max)},zu.prototype.reset=function(){this.attempts=0},zu.prototype.setMin=function(t){this.ms=t},zu.prototype.setMax=function(t){this.max=t},zu.prototype.setJitter=function(t){this.jitter=t};class zA extends Bn{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(n=e,e=void 0),(n=n||{}).path=n.path||"/socket.io",this.opts=n,uy(this,n),this.reconnection(!1!==n.reconnection),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=n.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new zu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==n.timeout?2e4:n.timeout),this._readyState="closed",this.uri=e;const i=n.parser||Qo;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==n.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 n;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(n=this.backoff)||void 0===n||n.setMin(e),this)}randomizationFactor(e){var n;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(n=this.backoff)||void 0===n||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(n=this.backoff)||void 0===n||n.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 f7(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=co(n,"open",function(){r.onopen(),e&&e()}),o=co(n,"error",s=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",s),e?e(s):r.maybeReconnectOnOpen()});if(!1!==this._timeout){const s=this._timeout;0===s&&i();const a=this.setTimeoutFn(()=>{i(),n.close(),n.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(co(e,"ping",this.onping.bind(this)),co(e,"data",this.ondata.bind(this)),co(e,"error",this.onerror.bind(this)),co(e,"close",this.onclose.bind(this)),co(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){u7(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r||(r=new g7(this,e,n),this.nsps[e]=r),r}_destroy(e){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),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 n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Ph={};function gy(t,e){"object"==typeof t&&(e=t,t=void 0);const n=function lve(t,e="",n){let r=t;n=n||typeof location<"u"&&location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(t=typeof n<"u"?n.protocol+"//"+t:"https://"+t),r=LA(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+e,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(t,(e=e||{}).path||"/socket.io"),r=n.source,i=n.id;let l;return e.forceNew||e["force new connection"]||!1===e.multiplex||Ph[i]&&n.path in Ph[i].nsps?l=new zA(r,e):(Ph[i]||(Ph[i]=new zA(r,e)),l=Ph[i]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(gy,{Manager:zA,Socket:g7,io:gy,connect:gy});let bve=(()=>{var t;class e{constructor(r){this.debugService=r,this.socketReceived$=new ct(null),this.hasConnected=!1,this.wsServer="https://api2.guestchat.com/ws",this.debugService.devMode&&(this.wsServer="http://localhost/ws")}connect(){this.hasConnected||(this.debugService.logMode&&console.log("Connecting to WS Server"),this.socket=gy(this.wsServer),this.hasConnected=!0,this.socket.on("message-down",r=>{this.socketReceived$.next(r)}))}joinRoom(r){r!==this.chatId&&(this.debugService.logMode&&console.log("Connecting to Room: ",r),this.chatId&&this.socket.emit("leave-room",r),this.chatId=r,this.socket.emit("join-room",r))}addMessage(r){this.socket.volatile.emit("message-up",this.chatId,{message:r})}addUserIsTyping(r){this.socket||this.connect(),this.socket.volatile.emit("message-up",this.chatId,{userTyping:r})}ngOnDestroy(){this.socket&&this.socket.disconnect()}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(Ii))},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function Pl(t){return!!t&&(t instanceof lt||jt(t.lift)&&jt(t.subscribe))}const{isArray:wve}=Array,{getPrototypeOf:Cve,prototype:Eve,keys:Sve}=Object;function m7(t){if(1===t.length){const e=t[0];if(wve(e))return{args:e,keys:null};if(function Tve(t){return t&&"object"==typeof t&&Cve(t)===Eve}(e)){const n=Sve(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}const{isArray:Ive}=Array;function _7(t){return Un(e=>function Ave(t,e){return Ive(e)?t(...e):t(e)}(t,e))}function v7(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}function y7(...t){const e=fP(t),{args:n,keys:r}=m7(t),i=new lt(o=>{const{length:s}=n;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u<s;u++){let d=!1;Xi(n[u]).subscribe(vr(o,h=>{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(r?v7(r,a):a),o.complete())}))}});return e?i.pipe(_7(e)):i}function my(...t){return function xve(){return uP(1)}()(Da(t,td(t)))}function b7(t){return new lt(e=>{Xi(t()).subscribe(e)})}function _y(t){return t<=0?()=>h0:Lr((e,n)=>{let r=0;e.subscribe(vr(n,i=>{++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function w7(t,e,n){let r,i=!1;return t&&"object"==typeof t?({bufferSize:r=1/0,windowTime:e=1/0,refCount:i=!1,scheduler:n}=t):r=null!=t?t:1/0,g0({connector:()=>new h9(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}class Dh{}let C7=(()=>{class t extends Dh{getTranslation(n){return yr({})}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=Jt(t)))(r||t)}}(),t.\u0275prov=We({token:t,factory:t.\u0275fac}),t})();class UA{}let E7=(()=>{class t{handle(n){return n.key}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=We({token:t,factory:t.\u0275fac}),t})();function vy(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,o,s,n=typeof t;if(n==typeof e&&"object"==n){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(o in s=Object.create(null),t){if(!vy(t[o],e[o]))return!1;s[o]=!0}for(o in e)if(!(o in s)&&typeof e[o]<"u")return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(o=0;o<i;o++)if(!vy(t[o],e[o]))return!1;return!0}}return!1}function va(t){return typeof t<"u"&&null!==t}function HA(t){return t&&"object"==typeof t&&!Array.isArray(t)}function S7(t,e){let n=Object.assign({},t);return HA(t)&&HA(e)&&Object.keys(e).forEach(r=>{HA(e[r])?r in t?n[r]=S7(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Object.assign(n,{[r]:e[r]})}),n}class yy{}let T7=(()=>{class t extends yy{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(n,r){let i;return i="string"==typeof n?this.interpolateString(n,r):"function"==typeof n?this.interpolateFunction(n,r):n,i}getValue(n,r){let i="string"==typeof r?r.split("."):[r];r="";do{r+=i.shift(),!va(n)||!va(n[r])||"object"!=typeof n[r]&&i.length?i.length?r+=".":n=void 0:(n=n[r],r="")}while(i.length);return n}interpolateFunction(n,r){return n(r)}interpolateString(n,r){return r?n.replace(this.templateMatcher,(i,o)=>{let s=this.getValue(r,o);return va(s)?s:i}):n}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=Jt(t)))(r||t)}}(),t.\u0275prov=We({token:t,factory:t.\u0275fac}),t})();class by{}let I7=(()=>{class t extends by{compile(n,r){return n}compileTranslations(n,r){return n}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=Jt(t)))(r||t)}}(),t.\u0275prov=We({token:t,factory:t.\u0275fac}),t})();class A7{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new de,this.onLangChange=new de,this.onDefaultLangChange=new de}}const jA=new Ve("USE_STORE"),GA=new Ve("USE_DEFAULT_LANG"),qA=new Ve("DEFAULT_LANGUAGE"),WA=new Ve("USE_EXTEND");let qr=(()=>{class t{constructor(n,r,i,o,s,a=!0,l=!1,c=!1,u){this.store=n,this.currentLoader=r,this.compiler=i,this.parser=o,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.extend=c,this.pending=!1,this._onTranslationChange=new de,this._onLangChange=new de,this._onDefaultLangChange=new de,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(n){this.isolate?this._defaultLang=n:this.store.defaultLang=n}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(n){this.isolate?this._currentLang=n:this.store.currentLang=n}get langs(){return this.isolate?this._langs:this.store.langs}set langs(n){this.isolate?this._langs=n:this.store.langs=n}get translations(){return this.isolate?this._translations:this.store.translations}set translations(n){this.isolate?this._translations=n:this.store.translations=n}setDefaultLang(n){if(n===this.defaultLang)return;let r=this.retrieveTranslations(n);typeof r<"u"?(null==this.defaultLang&&(this.defaultLang=n),r.pipe(_y(1)).subscribe(i=>{this.changeDefaultLang(n)})):this.changeDefaultLang(n)}getDefaultLang(){return this.defaultLang}use(n){if(n===this.currentLang)return yr(this.translations[n]);let r=this.retrieveTranslations(n);return typeof r<"u"?(this.currentLang||(this.currentLang=n),r.pipe(_y(1)).subscribe(i=>{this.changeLang(n)}),r):(this.changeLang(n),yr(this.translations[n]))}retrieveTranslations(n){let r;return(typeof this.translations[n]>"u"||this.extend)&&(this._translationRequests[n]=this._translationRequests[n]||this.getTranslation(n),r=this._translationRequests[n]),r}getTranslation(n){this.pending=!0;const r=this.currentLoader.getTranslation(n).pipe(w7(1),_y(1));return this.loadingTranslations=r.pipe(Un(i=>this.compiler.compileTranslations(i,n)),w7(1),_y(1)),this.loadingTranslations.subscribe({next:i=>{this.translations[n]=this.extend&&this.translations[n]?ge(ge({},i),this.translations[n]):i,this.updateLangs(),this.pending=!1},error:i=>{this.pending=!1}}),r}setTranslation(n,r,i=!1){r=this.compiler.compileTranslations(r,n),this.translations[n]=(i||this.extend)&&this.translations[n]?S7(this.translations[n],r):r,this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}getLangs(){return this.langs}addLangs(n){n.forEach(r=>{-1===this.langs.indexOf(r)&&this.langs.push(r)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(n,r,i){let o;if(r instanceof Array){let s={},a=!1;for(let l of r)s[l]=this.getParsedResult(n,l,i),Pl(s[l])&&(a=!0);return a?y7(r.map(c=>Pl(s[c])?s[c]:yr(s[c]))).pipe(Un(c=>{let u={};return c.forEach((d,h)=>{u[r[h]]=d}),u})):s}if(n&&(o=this.parser.interpolate(this.parser.getValue(n,r),i)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],r),i)),typeof o>"u"){let s={key:r,translateService:this};typeof i<"u"&&(s.interpolateParams=i),o=this.missingTranslationHandler.handle(s)}return typeof o<"u"?o:r}get(n,r){if(!va(n)||!n.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe($4(i=>Pl(i=this.getParsedResult(i,n,r))?i:yr(i)));{let i=this.getParsedResult(this.translations[this.currentLang],n,r);return Pl(i)?i:yr(i)}}getStreamOnTranslationChange(n,r){if(!va(n)||!n.length)throw new Error('Parameter "key" required');return my(b7(()=>this.get(n,r)),this.onTranslationChange.pipe(nd(i=>{const o=this.getParsedResult(i.translations,n,r);return"function"==typeof o.subscribe?o:yr(o)})))}stream(n,r){if(!va(n)||!n.length)throw new Error('Parameter "key" required');return my(b7(()=>this.get(n,r)),this.onLangChange.pipe(nd(i=>{const o=this.getParsedResult(i.translations,n,r);return Pl(o)?o:yr(o)})))}instant(n,r){if(!va(n)||!n.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],n,r);if(Pl(i)){if(n instanceof Array){let o={};return n.forEach((s,a)=>{o[n[a]]=n[a]}),o}return n}return i}set(n,r,i=this.currentLang){this.translations[i][n]=this.compiler.compile(r,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(n){this.currentLang=n,this.onLangChange.emit({lang:n,translations:this.translations[n]}),null==this.defaultLang&&this.changeDefaultLang(n)}changeDefaultLang(n){this.defaultLang=n,this.onDefaultLangChange.emit({lang:n,translations:this.translations[n]})}reloadLang(n){return this.resetLang(n),this.getTranslation(n)}resetLang(n){this._translationRequests[n]=void 0,this.translations[n]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let n=window.navigator.languages?window.navigator.languages[0]:null;return n=n||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof n>"u"?void 0:(-1!==n.indexOf("-")&&(n=n.split("-")[0]),-1!==n.indexOf("_")&&(n=n.split("_")[0]),n)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let n=window.navigator.languages?window.navigator.languages[0]:null;return n=n||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,n}}return t.\u0275fac=function(n){return new(n||t)(Te(A7),Te(Dh),Te(by),Te(yy),Te(UA),Te(GA),Te(jA),Te(WA),Te(qA))},t.\u0275prov=We({token:t,factory:t.\u0275fac}),t})(),uo=(()=>{class t{constructor(n,r){this.translate=n,this._ref=r,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(n,r,i){let o=s=>{this.value=void 0!==s?s:n,this.lastKey=n,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,n,r);Pl(s.subscribe)?s.subscribe(o):o(s)}this.translate.get(n,r).subscribe(o)}transform(n,...r){if(!n||!n.length)return n;if(vy(n,this.lastKey)&&vy(r,this.lastParams))return this.value;let i;if(va(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){let o=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(o)}catch(s){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: ".concat(r[0]))}}else"object"==typeof r[0]&&!Array.isArray(r[0])&&(i=r[0]);return this.lastKey=n,this.lastParams=r,this.updateValue(n,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(n,i,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(n,i,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(n,i))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(n){return new(n||t)(te(qr,16),te(Vc,16))},t.\u0275pipe=sr({name:"translate",type:t,pure:!1}),t.\u0275prov=We({token:t,factory:t.\u0275fac}),t})(),Pve=(()=>{class t{static forRoot(n={}){return{ngModule:t,providers:[n.loader||{provide:Dh,useClass:C7},n.compiler||{provide:by,useClass:I7},n.parser||{provide:yy,useClass:T7},n.missingTranslationHandler||{provide:UA,useClass:E7},A7,{provide:jA,useValue:n.isolate},{provide:GA,useValue:n.useDefaultLang},{provide:WA,useValue:n.extend},{provide:qA,useValue:n.defaultLanguage},qr]}}static forChild(n={}){return{ngModule:t,providers:[n.loader||{provide:Dh,useClass:C7},n.compiler||{provide:by,useClass:I7},n.parser||{provide:yy,useClass:T7},n.missingTranslationHandler||{provide:UA,useClass:E7},{provide:jA,useValue:n.isolate},{provide:GA,useValue:n.useDefaultLang},{provide:WA,useValue:n.extend},{provide:qA,useValue:n.defaultLanguage},qr]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=jn({type:t}),t.\u0275inj=Rn({}),t})(),x7=(()=>{var t;class e{constructor(r){this.debugService=r,this.mode="first",this.paths={first:{newMessage:"https://chat-lriaqt4o7q-uc.a.run.app/newQuestion",directIntent:"https://chat-lriaqt4o7q-uc.a.run.app/newDirectIntent",contactMeta:"https://us-central1-guestchat-live.cloudfunctions.net/saveContactMeta",liveChatRequest:"https://chat-lriaqt4o7q-uc.a.run.app/newWantLiveChat",ownBooknowClicked:"https://chat-lriaqt4o7q-uc.a.run.app/ownHostBooknowClicked",detectLanguage:"https://chat-lriaqt4o7q-uc.a.run.app/detectLanguage",postData:"https://chat-lriaqt4o7q-uc.a.run.app/newPostRequest",addRequest:"https://chat-lriaqt4o7q-uc.a.run.app/newRequest",submit:"https://chat-lriaqt4o7q-uc.a.run.app/submit",bankPotentialRevenue:"https://chat-lriaqt4o7q-uc.a.run.app/bankPotentialRevenue"},fallback:{newMessage:"https://api2.guestchat.com/newQuestion",directIntent:"https://chat-lriaqt4o7q-uc.a.run.app/newDirectIntent",contactMeta:"https://us-central1-guestchat-live.cloudfunctions.net/saveContactMeta",liveChatRequest:"https://chat-lriaqt4o7q-uc.a.run.app/newWantLiveChat",ownBooknowClicked:"https://chat-lriaqt4o7q-uc.a.run.app/ownHostBooknowClicked",detectLanguage:"https://chat-lriaqt4o7q-uc.a.run.app/detectLanguage",postData:"https://chat-lriaqt4o7q-uc.a.run.app/newPostRequest",addRequest:"https://chat-lriaqt4o7q-uc.a.run.app/newRequest",submit:"https://chat-lriaqt4o7q-uc.a.run.app/submit",bankPotentialRevenue:"https://chat-lriaqt4o7q-uc.a.run.app/bankPotentialRevenue"},dev:{newMessage:"http://127.0.0.1:5001/guestchat-live/us-central1/chat/newQuestion",directIntent:"http://127.0.0.1:5001/guestchat-live/us-central1/chat/newDirectIntent",contactMeta:"https://us-central1-guestchat-live.cloudfunctions.net/saveContactMeta",liveChatRequest:"http://127.0.0.1:5001/guestchat-live/us-central1/chat/newWantLiveChat",ownBooknowClicked:"http://127.0.0.1:5001/guestchat-live/us-central1/chat/ownHostBooknowClicked",detectLanguage:"https://api2.guestchat.com/detectLanguage",postData:"http://127.0.0.1:5001/guestchat-live/us-central1/chat/newPostRequest",addRequest:"http://127.0.0.1:5001/guestchat-live/us-central1/chat/newRequest",submit:"http://127.0.0.1:5001/guestchat-live/us-central1/chat/submit",bankPotentialRevenue:"http://localhost:3000/chat/bankPotentialRevenue"}},this.debugService.devMode&&(this.mode="dev")}getServerPath(r){return this.paths[this.mode][r]}gotoFallBack(){this.mode="fallback"}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(Ii))},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),P7=(()=>{var t;class e{constructor(r){this.title=r,this.activeReseller$=new ct({}),this.resellers=[{domains:["admin.guestchat.com"],name:"GuestChat Sales",normalName:"GuestChat",emailFrom:"GuestChat <noreply@mg.guestchat.com>",logoOnWhite:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/guestchat-onwhite.png?alt=media&token=6577db49-fd5e-4795-97bb-6da32d2342d6",logoOnColour:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/guestchat-on-colour.png?alt=media&token=f8008bb7-8d07-468a-8e7f-fae0e994fb5e",dfProjectId:"guestchat-sjtxut",agentType:"Hotel",signupEmail:"nima@guestchat.com",showPoweredByOnWidget:!1,poweredByNavigationLink:"https://admin.guestchat.com/",gdrpLink:"https://guestchat.com/data-processing-term"},{domains:["portugal.guestchat.com"],name:"GuestChat Portugal",normalName:"GuestChat Portugal",emailFrom:"GuestChat <noreply@mg.guestchat.com>",logoOnWhite:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/Logo%20Portugal.png?alt=media&token=095df1d7-32f8-4140-9885-4611c341a5b3",logoOnColour:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/Image20240624212507.png?alt=media&token=9ef72519-0f3b-49e7-8f3f-1757a38897e0",dfProjectId:"guestchat-sjtxut",agentType:"Hotel",signupEmail:"nima@guestchat.com",showPoweredByOnWidget:!1,poweredByNavigationLink:"",gdrpLink:"https://guestchat.com/data-processing-term"},{domains:["cwcadmin.guestchat.com"],name:"C&W Business",normalName:"C&W Business",emailFrom:"C&W Business <noreply@mg.guestchat.com>",logoOnWhite:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/C%26W%20Business.png?alt=media&token=a6d17823-5f69-49bf-ac99-58cfecb1c82e",logoOnColour:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/cwoncolour.png?alt=media&token=89c1fb7f-7b2b-447f-b8f4-4026ab52039c",dfProjectId:"guestchat-sjtxut",agentType:"Hotel",signupEmail:"andrew.fazio@cwc.com, Michelle.Adams@cwc.com, nima@guestchat.com",showPoweredByOnWidget:!1,poweredByNavigationLink:"",gdrpLink:"https://guestchat.com/data-processing-term"},{domains:["chatadmin.zenturo.com"],name:"Zenturo",normalName:"Zenturo Chat Admin",emailFrom:"Zenturo Chat Admin <noreply@mg.guestchat.com>",logoOnWhite:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/Zenturo%20Logo.png?alt=media&token=5985d1f0-f3c5-4a41-a7ca-d20e12dca0a9",logoOnColour:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/Zenturo%20Logo.png?alt=media&token=5985d1f0-f3c5-4a41-a7ca-d20e12dca0a9",dfProjectId:"lawyers-dddr",agentType:"Lawyers",signupEmail:"nima@guestchat.com",showPoweredByOnWidget:!0,poweredByNavigationLink:"https://chat.zenturo.com",gdrpLink:"https://guestchat.com/data-processing-term"},{domains:["chatadmin.weexpand.com"],name:"WeExpand",normalName:"WeExpand",emailFrom:"WeExpand <noreply@mg.guestchat.com>",logoOnWhite:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/WeExpand_LOGO_Trans03.webp?alt=media&token=fcd23497-2371-44b3-a7a6-4582a691fc3c",logoOnColour:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/WeExpand_LOGO_Trans03.webp?alt=media&token=fcd23497-2371-44b3-a7a6-4582a691fc3c",dfProjectId:"guestchat-dev",agentType:"Basic Business",signupEmail:"raymond.mak@weexpand.co",showPoweredByOnWidget:!1,poweredByNavigationLink:"",gdrpLink:"https://guestchat.com/data-processing-term"},{domains:["forechat.ai"],name:"ForeGroup",normalName:"ForeGroup",emailFrom:"ForeGroup <noreply@mg.guestchat.com>",logoOnWhite:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/Forechat_-_dark.png?alt=media&token=a7b198c6-ed9f-4a31-8641-b30594a50357",logoOnColour:"https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/Forechat_-_light.png?alt=media&token=9f486b49-f13b-4c65-8be0-34167b11dae6",dfProjectId:"golf-xqql",agentType:"Golf",signupEmail:"mellet@foregroup.com",showPoweredByOnWidget:!1,poweredByNavigationLink:"",gdrpLink:"https://guestchat.com/data-processing-term"}],this.activeReseller=this.resellers[0]}setActiveReseller(r){var i=this;return se(function*(){if(!r)return i.activeReseller=i.resellers[0],void i.activeReseller$.next(i.activeReseller);const o=i.resellers.findIndex(s=>s.name===r);o>-1?(i.activeReseller=i.resellers[o],i.activeReseller$.next(i.activeReseller)):(i.activeReseller=i.resellers[0],i.activeReseller$.next(i.activeReseller))})()}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(O4))},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),Qn=(()=>{var t;class e{constructor(r,i,o,s,a,l,c,u){this.afs=r,this.http=i,this.debugService=o,this.wsService=s,this.translateService=a,this.popupService=l,this.serversService=c,this.resellerService=u,this.allowBot$=new ct(!1),this.fullMode$=new ct(!1),this.showButton$=new ct(!0),this.showButtonAfterScroll$=new ct(null),this.allowIceBreakers$=new ct(!1),this.hasOpened$=new ct(!1),this.hasGDRP$=new ct(!1),this.clientGDPRLink$=new ct(null),this.hasLLMDisclaimer$=new ct(!1),this.subProperties$=new ct([]),this.subPropertyParentId$=new ct(null),this.clientId$=new ct(null),this.blockRequests$=new ct(!1),this.isMobile$=new ct(!1),this.disableWidgetPopupForMobile$=new ct(!1),this.showEngagements=!1,this.botSettingsBS=new ct(null),this.engagements$=new ct([]),this.agentId=null,this.chat$=new ct(null),this.messages$=new ct([]),this.userSend=new hn,this.canPostReply$=new ct(!0),this.botIsTyping$=new ct(!1),this.agentIsTyping$=new ct(!1),this.postIsLoading$=new ct(!1),this.showStructuredInput$=new ct(null),this.forceSubmissionBeforeChat$=new ct(!1),this.bookingEngine=null,this.timerObs=new lt,this.hasSentContactMeta=!1,this.userIsTypingLast=!1,this.liveChatOnlyMode$=new ct(!1),this.liveChatSettings$=new ct(null),this.botImage$=new ct(null),this.otherLanguages$=new ct([]),this.translationsActive=!1,this.allowChildren$=new ct(!0),this.responseIntelligence="dialogflow",this.numberSentBefore=0,this.defaultLanguage="en";const d=window.sessionStorage.getItem("opened");null!=d&&this.hasOpened$.next("true"===d),this.headers=(new Ui).set("content-type","application/json").set("authorization","Bearer cvisdj dsiofhosf340sdfm;234m;mcsdsgsgse"),this.timerObs=p9(5e3,3e4),this.socketSub=this.wsService.socketReceived$.subscribe(h=>{h&&null!==h.agentTyping&&this.agentIsTyping$.getValue()!==h.agentTyping&&this.agentIsTyping$.next(h.agentTyping)})}generateNewChatId(r){const i=Gr(V_(this.afs,"Clients/".concat(r,"/Chats/"))).id;return window.localStorage.setItem("chatId",i),window.sessionStorage.setItem("clientId",r),window.localStorage.setItem("chatTime",(new Date).toISOString()),this.hasSentContactMeta=!1,i}initServer(r,i,o=!1,s=!1){var a=this;return se(function*(){if(o){const u={lastPing:$_(),paths:f9(location.href),isActive:!0};Nu(Gr(a.afs,"Clients/".concat(a.clientId,"/Chats/").concat(a.sessionId)),u,{merge:!0})}a.botIsTyping$.next(!1),a.startedChat=new Date,a.clientId=r,a.sessionId=i,a.debugService.logMode&&console.log(r,i);const l=yield B_(Gr(a.afs,"Clients/".concat(r)));if(l.exists()){var c;const u=ge(ge({},l.data()),{},{id:l.id});if(a.debugService.logMode&&console.log(u),a.disableWidgetPopupForMobile$.next(!!u.disableWidgetPopupForMobile&&u.disableWidgetPopupForMobile),u.showEngagements&&(a.showEngagements=!0,u.engagements)){const d=Object.keys(u.engagements).map(h=>ge({id:h},u.engagements[h]));a.engagements$.next(d)}if("multi-property-sojj"===u.dfProjectId&&u.subProperties&&u.subProperties.length>0&&(a.subProperties$.next(u.subProperties),a.subPropertyParentId$.next(u.id)),a.clientId$.next(u.id),a.agentId=u.dfProjectId,a.liveChatOnlyMode$.next(null!=u.liveChatOnly&&u.liveChatOnly),u.translationsActive&&(a.translationsActive=u.translationsActive),u.defaultLanguage&&(a.defaultLanguage=u.defaultLanguage||"en"),u.defaultLanguage&&u.translationsActive){const d=window.sessionStorage.getItem("selectedLanguage");a.translateService.use(d&&""!==d?d:u.defaultLanguage)}else a.translateService.use("en");if(void 0!==u.blockRequests&&a.blockRequests$.next(u.blockRequests),a.botSettingsBS.next(ge({},u.botSettings)),null!=u&&u.botSettings&&null!==(c=u.botSettings)&&void 0!==c&&c.showButtonAfterScroll?a.showButtonAfterScroll$.next(!0):a.showButtonAfterScroll$.next(!1),a.botImage$.next({img:u.botSettings.botImgUrl,title:u.botSettings.title}),(u.active||s)&&(a.subscribeToChat(r,i,a.agentId,u.responseIntelligence),a.getLiveChatSettings(),a.subscribeToTimer()),null!==u.debugMode&&a.debugService.setDebugMode(u.debugMode),null!=u.responseIntelligence&&(a.responseIntelligence=u.responseIntelligence),a.hasGDRP$.next(!!u.gdrpShow),a.clientGDPRLink$.next(u.gdrpPageUrl&&""!==u.gdrpPageUrl?u.gdrpPageUrl:"https://guestchat.com/data-processing-term"),a.resellerService.setActiveReseller(null!=u&&u.resellerName?u.resellerName:null),a.hasLLMDisclaimer$.next(!!u.llmDisclaimerShow),a.bookingEngine=u.bookingEngine?u.bookingEngine:null,u.bookNowButton&&u.bookNowButton.type&&(a.bookNowButtonSettings=u.bookNowButton),o||(u.pageBlockUrls?-1===u.pageBlockUrls.split(",").map(p=>p.trim()).findIndex(p=>location.href.indexOf(p)>-1)?a.allowBot$.next(u.active||s):a.allowBot$.next(!1):a.allowBot$.next(u.active||s)),u.otherLanguages){const d=new Set([u.defaultLanguage,...u.otherLanguages]),h=[];d.forEach(p=>{"en"===p||"EN"===p?h.unshift("en"):h.push(p)}),a.otherLanguages$.next(h)}u.botSettings.iceBreakers&&u.botSettings.iceBreakers.length&&u.botSettings.iceBreakers.length>0&&a.allowIceBreakers$.next(!0),u.blockChildren&&a.allowChildren$.next(!1),a.fullMode$.getValue()&&(a.popupService.showChatBox.next(!0),a.showButton$.next(!1),window.sessionStorage.setItem("opened","true"),a.hasOpened$.next(!0),window.sessionStorage.setItem("iceBreakerOpened","true"))}})()}getClientAndSession(){return{clientId:this.clientId,sessionId:this.sessionId,agentId:this.agentId,interface:"widget",languageCode:this.translateService.currentLang,defaultLanguage:this.defaultLanguage,responseIntelligence:this.responseIntelligence}}subscribeToTimer(){this.timerSub&&this.timerSub.unsubscribe(),this.timerSub=this.timerObs.subscribe(()=>{const r={lastPing:$_(),paths:f9(location.href),isActive:!0};Nu(Gr(this.afs,"Clients/".concat(this.clientId,"/Chats/").concat(this.sessionId)),r,{merge:!0}),ay(new Date,RA(this.startedChat,{minutes:30}))&&this.timerSub&&this.timerSub.unsubscribe()})}subscribeToChat(r,i,o,s){this.messagesSub&&(this.messagesSub.unsubscribe(),this.messages$.next([]));const a={isActive:!0,date:$_()};let l="";Intl.DateTimeFormat().resolvedOptions().timeZone&&(l=Intl.DateTimeFormat().resolvedOptions().timeZone);const c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Mobi/i.test(navigator.userAgent);this.isMobile$.next(c);const u=this.botSettingsBS.getValue(),d=this.liveChatOnlyMode$.getValue(),h={clientId:r,agentId:o,interface:"widget",respondAs:"",languageCode:this.translateService.currentLang,defaultLanguage:this.defaultLanguage||"en",responseIntelligence:s,date:$_(),botAnswer:!0,isActive:!0,hasMessages:!1,sessionId:i,allowedBotFailures:u.allowedBotFailures,currentBotFailures:0,intents:[],timezone:l,liveChatRequested:d,liveChatRequestAccepted:!d,isMobile:c,requestsProcessed:0,ownBookNowClicked:!1,hasCapturedEmail:!1,toProcessSmartValues:!0,smartValues:{}};B_(Gr(this.afs,"Clients/".concat(r,"/Chats/").concat(i))).then(p=>{p.exists()&&p.data().clientId?Nu(Gr(this.afs,"Clients/".concat(r,"/Chats/").concat(i)),a,{merge:!0}).catch(_=>console.log(_)):Nu(Gr(this.afs,"Clients/".concat(r,"/Chats/").concat(i)),h,{merge:!0})}),this.messagesSub=Ode(Lde(V_(this.afs,"Clients/".concat(r,"/Chats/").concat(i,"/Messages")),Nde("date","asc")),{idField:"id"}).pipe(Pf(p=>{const _=p[p.length-1];if(_&&"User"!==_.sender)if("Bot"===_.sender){const E=this.botSettingsBS.getValue();this.botImage$.next({img:E.botImgUrl,title:E.title})}else _.senderImage?this.botImage$.getValue().img!==_.senderImage&&this.botImage$.next({img:_.senderImage,title:_.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:_.sender});const y={};p.forEach(E=>{E.smartValues&&Object.keys(E.smartValues).forEach(C=>{y[C]=E.smartValues[C]})}),Object.keys(y).forEach(E=>{window.sessionStorage.setItem(E,y[E])}),this.numberSentBefore=p.filter(E=>"User"===E.sender&&E.mustRespond).length||0})).subscribe(p=>{this.messages$.next(p),p.length>0&&(this.wsService.connect(),this.wsService.joinRoom(i))}),this.chatSub=d9(Gr(this.afs,"Clients/".concat(r,"/Chats/").concat(i))).subscribe(p=>{p&&p.languageCode!==this.translateService.currentLang&&this.translateService.use(p.languageCode)})}checkDay(r,i){const o=r.split(",").map(u=>u.trim()),s=o[1].split("-").map(u=>u.trim());"open 24 hours"===s[0]&&(s[0]="08:00 AM");const a=Bu(zo(new Date,"dd MMM yyyy")+" "+s[0]+" "+i,"dd MMM yyyy h:mm aa X",new Date),l=zo(a,"EEEE"),c=o[0];return"Weekdays"===c?"monday"===l.toLowerCase()||"tuesday"===l.toLowerCase()||"wednesday"===l.toLowerCase()||"thursday"===l.toLowerCase()||"friday"===l.toLowerCase():"Weekends"===c?"saturday"===l.toLowerCase()||"sunday"===l.toLowerCase():c.toLowerCase()===l.toLowerCase()}checkHoursInRange(r,i){const s=r.split(",").map(c=>c.trim())[1].split("-").map(c=>c.trim());if("open 24 hours"===s[0])return!0;const a=Bu(zo(new Date,"dd MMM yyyy")+" "+s[0]+" "+i,"dd MMM yyyy h:mm aa X",new Date),l=Bu(zo(new Date,"dd MMM yyyy")+" "+s[1]+" "+i,"dd MMM yyyy h:mm aa X",new Date);return sy(new Date,l)&&ay(new Date,a)}getLiveChatSettings(){var r=this;return se(function*(){const i=yield B_(Gr(r.afs,"LiveChat/".concat(r.clientId)));if(i.exists()){const o=i.data();let s=o.liveChatAvailable;const a=null!=o.hasCallAgent&&null!=o.hasCallAgent&&o.hasCallAgent;if("Based on business hours"===o.basedOn){const l=o.timezone?o.timezone.timeValue.replace(/:/g,""):"-0400",c=o.businessHours;s=!1,o.hasCallAgent&&c&&c.length>0&&(c[0].indexOf("every day")>-1?s=r.checkHoursInRange(c[0],l):c.forEach(u=>{const d=r.checkHoursInRange(u,l),h=r.checkDay(u,l);d&&h&&(s=!0)}))}r.liveChatSettings$.next({liveChatAvailable:s,hasCallAgent:a})}})()}showErrorMessage(){const r=this.messages$.getValue(),i={id:"error"+100*Math.random(),date:null,reply:!0,textResponse:this.translateService.instant("technicalDifficulties"),mediaResponse:[],urlsResponse:[],showStructuredInput:!1,relatedIntents:[],roomsResponse:[],askForCallMeBack:!0};r.push(i),this.messages$.next(r)}detectLanguage(r){return new Promise(i=>{this.http.post(this.serversService.getServerPath("detectLanguage"),{text:r},{headers:this.headers}).subscribe({next:o=>{i(o.code)},error:()=>{i("en")}})})}addMessage(r,i=!0,o=1,s=null){var a=this;return se(function*(){let l;if(i){const c=a.otherLanguages$.getValue();if(a.numberSentBefore<2&&c.length>0){const u=yield a.detectLanguage(r);a.debugService&&console.log("Detected language: ",u),u&&c.indexOf(u)>-1&&(a.changeLanguage(u),l=u,window.sessionStorage.setItem("selectedLanguage",u))}}return new Promise(c=>{const u=a.getClientAndSession();let d="";d=s||Gr(V_(a.afs,"Clients/".concat(a.clientId,"/Chats/").concat(a.sessionId,"/Messages"))).id;const h=i&&!a.liveChatOnlyMode$.getValue(),p=ge(ge({},u),{},{languageCode:l||u.languageCode,message:r,mustRespond:h,preId:d});if(1===o){const m={id:d,reply:!1,question:r};a.wsService.addMessage(r),a.userSend.next(m)}a.liveChatOnlyMode$.getValue()||a.botIsTyping$.next(!0),a.userIsTyping(!1),a.http.post(a.serversService.getServerPath("newMessage"),p,{headers:a.headers}).subscribe({next:()=>{c("success")},error:()=>{1===o?(a.serversService.gotoFallBack(),a.addMessage(r,i,o+1,d)):(a.botIsTyping$.next(!1),a.postIsLoading$.next(!1),a.showErrorMessage())}}),a.saveContactMeta()})})()}changeLanguage(r){const i=this.getClientAndSession();Nu(Gr(this.afs,"Clients/".concat(i.clientId,"/Chats/").concat(i.sessionId)),{languageCode:r},{merge:!0}).catch(o=>console.log(o))}addDirectIntentQuestion(r,i,o=1,s=null){return new Promise(a=>{const l=this.getClientAndSession();let c="";c=s||Gr(V_(this.afs,"Clients/".concat(this.clientId,"/Chats/").concat(this.sessionId,"/Messages"))).id;const u=ge(ge({},l),{},{intentId:r,preId:c,message:i});1===o&&this.userSend.next({id:c,reply:!1,question:i}),this.botIsTyping$.next(!0),this.http.post(this.serversService.getServerPath("directIntent"),u,{headers:this.headers}).subscribe({next:()=>{a("success")},error:()=>{1===o?(this.serversService.gotoFallBack(),this.addDirectIntentQuestion(r,i,o+1,c)):(this.botIsTyping$.next(!1),this.postIsLoading$.next(!1),this.showErrorMessage())}}),this.saveContactMeta()})}saveContactMeta(){if(this.hasSentContactMeta)return;this.hasSentContactMeta=!0;const r=this.getClientAndSession();this.http.post(this.serversService.getServerPath("contactMeta"),r,{headers:this.headers}).subscribe({next:()=>{},error:()=>{}})}addLiveChatRequest(r=1){return new Promise(i=>{const o=this.getClientAndSession();this.userIsTyping(!1),this.botIsTyping$.next(!0),this.http.post(this.serversService.getServerPath("liveChatRequest"),o,{headers:this.headers}).subscribe({next:()=>{i("success")},error:()=>{1===r?(this.serversService.gotoFallBack(),this.addLiveChatRequest(r+1)):(this.botIsTyping$.next(!1),this.postIsLoading$.next(!1),this.showErrorMessage())}})})}ownBooknowClicked(){return new Promise(r=>{const i=this.getClientAndSession(),o={clientId:i.clientId,sessionId:i.sessionId,agentId:i.agentId};this.http.post(this.serversService.getServerPath("ownBooknowClicked"),o,{headers:this.headers}).subscribe({next:()=>{r("success")},error:()=>{r("success")}})})}userIsTyping(r){try{this.userIsTypingLast!=r&&(this.userIsTypingLast=r,this.wsService.addUserIsTyping(r))}catch(i){console.log("")}}alsoGetMasterMultiProprty(r){var i=this;return se(function*(){const o=yield B_(Gr(i.afs,"Clients/".concat(r)));if(o.exists()){const s=o.data();"multi-property-sojj"===s.dfProjectId&&s.subProperties&&s.subProperties.length>0&&i.subProperties$.next(s.subProperties)}})()}get getClientId(){return this.clientId}cycleResponseIntelligence(){return"dialogflow"===this.responseIntelligence?(this.responseIntelligence="llm","Large Language model"):"llm"===this.responseIntelligence?(this.responseIntelligence="dialogflow","Default Mode"):void 0}ngOnDestroy(){var r=this;return se(function*(){r.messagesSub&&r.messagesSub.unsubscribe(),r.timerSub&&r.timerSub.unsubscribe(),r.socketSub&&r.socketSub.unsubscribe(),r.chatSub&&r.chatSub.unsubscribe(),r.userIsTyping(!1)})()}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(Th),Te(Xg),Te(Ii),Te(bve),Te(qr),Te(Il),Te(x7),Te(P7))},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function ui(...t){const e=td(t),n=fP(t),{args:r,keys:i}=m7(t);if(0===r.length)return Da([],e);const o=new lt(function Dve(t,e,n=ut){return r=>{D7(e,()=>{const{length:i}=t,o=new Array(i);let s=i,a=i;for(let l=0;l<i;l++)D7(e,()=>{const c=Da(t[l],e);let u=!1;c.subscribe(vr(r,d=>{o[l]=d,u||(u=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,e,i?s=>v7(i,s):ut));return n?o.pipe(_7(n)):o}function D7(t,e,n){t?Jo(n,t,e):e()}function kve(t,e){if(1&t){const n=Me();A(0,"div",1),fe("click",function(){return J(n),ee(x().onCloseGreeting())}),A(1,"div",2),fe("click",function(i){return J(n),ee(x().onStopBubble(i))}),A(2,"div",3)(3,"div",4)(4,"div",5),ce(5),M(),A(6,"div",6),ce(7),M(),A(8,"div",7)(9,"div",8),fe("click",function(){J(n);const i=x();return ee(i.onHandleIntent(i.hitch.popup.openIntentId,i.hitch.popup.openIntentName))}),ce(10),M()()(),ue(11,"div",3),M()()()}if(2&t){const n=x();b(1),T("ngStyle",n.getShapeStyle),b(1),T("ngStyle",n.getTemplateStyle),b(1),T("ngStyle",n.getContentStyle),b(1),T("ngStyle",n.getTextStyle),b(1),Ge(" ",n.hitch.popup.text," "),b(1),T("ngStyle",n.getSubTextStyle),b(1),Ge(" ",n.hitch.popup.textSub," "),b(2),T("ngStyle",n.getButtonStyle),b(1),Ge(" ",n.hitch.popup.buttonLabel," "),b(1),T("ngStyle",n.getPrettyStyle)}}let Mve=(()=>{var t;class e{set func(r){this.hitch=r,this.updateFormatting()}constructor(r,i){this.chatService=r,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 de}updateFormatting(){let r;this.hitch.media&&(r=this.hitch.media[Math.floor(Math.random()*this.hitch.media.length)]);const i=this.hexToRgb(this.hitch.popup.primaryColor);this.smartBackground=i&&r.path?"above"===this.hitch.popup.template?"linear-gradient(0deg, rgba(".concat(i.r,", ").concat(i.g,", ").concat(i.b,", 0.6), rgba(").concat(i.r,", ").concat(i.g,", ").concat(i.b,', 0.7)), url("').concat(r.path,'")'):'url("'.concat(r.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 ge(ge({},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(r,i){this.chatService.addDirectIntentQuestion(r,i),this.chatService.hasOpened$.next(!0),this.onToggleVisible(!0)}onStopBubble(r){r.stopPropagation()}onToggleVisible(r=null){let i=this.popupService.showChatBox.getValue();null!==r&&(i=!r),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(r){const i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);return i?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:null}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn),te(Il))},t.\u0275cmp=Bt({type:t,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(r,i){1&r&&z(0,kve,12,10,"div",0),2&r&&T("ngIf",i.overlayMode)},dependencies:[Wn,fr],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:0;top:0;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}"]}),e})();const Ove=function(t){return{"ice-action":t}};function Rve(t,e){if(1&t){const n=Me();A(0,"span",9),fe("click",function(){const o=J(n).$implicit;return ee(x(2).onHandleIceItem(o))}),ce(1),M()}if(2&t){const n=e.$implicit;T("ngClass",$e(2,Ove,"textOnly"!==n.type)),b(1),Ge(" ",n.translated," ")}}const Nve=function(t,e,n,r){return{left:t,right:e,bar:n,"side-bar":r}},Lve=function(t,e){return{left:t,right:e}};function Fve(t,e){if(1&t){const n=Me();A(0,"div",1)(1,"div",2),fe("click",function(){return J(n),ee(x().onCloseGreeting())}),Ie(),A(2,"svg",3),ue(3,"path",4),M()(),st(),A(4,"div",5)(5,"div",6)(6,"div",7)(7,"div"),z(8,Rve,2,4,"span",8),M()()()()()}if(2&t){const n=x();T("@flipNow",n.flipNowState)("ngClass",Ga(5,Nve,"left"==n.botSettings.screenPosition,"right"==n.botSettings.screenPosition,"bar"==n.botSettings.buttonShape,"side-bar"==n.botSettings.buttonShape))("ngStyle",n.greetingStyle),b(1),T("ngClass",ds(10,Lve,"left"==n.botSettings.screenPosition,"right"==n.botSettings.screenPosition)),b(7),T("ngForOf",n.iceBreaker.items)}}let Vve=(()=>{var t;class e{set func(r){this.iceBreakers=r,this.startIceBreaker()}constructor(r,i,o){this.chatService=r,this.translateService=i,this.popupService=o,this.botSettings={title:"",openingLine:"",botImgUrl:null,backgroundColors:["#FFFFFF","#FFFFFF"],screenPosition:"right"},this.greetingStyle={},this.flipNowState="normal",this.iceBreaker=null,this.iceBreakerHasRun=!1,this.toggleIceBreaker=new de}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(r=>{r&&(this.botSettings=r,"left"===r.screenPosition?"round"===r.buttonShape?this.greetingStyle={bottom:r.bottomSpacing+"px",left:+r.fromSideSpacing+85+"px"}:"bar"===r.buttonShape?this.greetingStyle={bottom:"50px",left:+r.fromSideSpacing+"px"}:"side-bar"===r.buttonShape&&(this.greetingStyle={bottom:r.bottomSpacing+50+"px",left:"50px"}):"round"===r.buttonShape?this.greetingStyle={bottom:r.bottomSpacing+"px",right:+r.fromSideSpacing+85+"px"}:"bar"===r.buttonShape?this.greetingStyle={bottom:"50px",right:+r.fromSideSpacing+"px"}:"side-bar"===r.buttonShape&&(this.greetingStyle={bottom:r.bottomSpacing+50+"px",right:"50px"}))})}setActiveIceBreaker(r){const i=this.translateService.currentLang,o=[];r.items.forEach(s=>{o.push(ge(ge({},s),{},{translated:"en"===i?s.text:s.textTranslations[i],translatedPlaceText:"en"===i?s.placeText:s.placeTextTranslations[i]}))}),this.iceBreaker=ge(ge({},r),{},{items:o})}startIceBreaker(){let r=1;this.chatService.hasOpened$.getValue()||(this.setActiveIceBreaker(this.iceBreakers.iceBreakers[0]),this.iceBreakerInterval=setInterval(()=>{this.chatService.hasOpened$.getValue()?clearInterval(this.iceBreakerInterval):(this.flipNowState="flip",setTimeout(()=>{this.setActiveIceBreaker(this.iceBreakers.iceBreakers[r]),this.flipNowState="normal"},100),r++,r>=this.iceBreakers.iceBreakers.length&&(r=0))},1e3*this.iceBreakers.iceBreakerDelay))}onHandleIceItem(r){if(window.sessionStorage.setItem("iceBreakerOpened","true"),"directIntent"===r.type){let i=r.action;r.translatedPlaceText&&(i=r.translatedPlaceText),this.chatService.addDirectIntentQuestion(r.action,i)}if("quickActionButtons"===r.type){const i=this.botSettings.quickActionButtons.find(o=>o.dialogflowId===r.action);if(i)if("post"===i.structuredInput.submit){const o=ge(ge({},i.structuredInput),{},{preMessage:i.preText,intent:i.dialogflowId});this.chatService.showStructuredInput$.next(o),this.chatService.forceSubmissionBeforeChat$.next(!1)}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(r=null){let i=this.popupService.showChatBox.getValue();null!==r&&(i=!r),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(t=e).\u0275fac=function(r){return new(r||t)(te(Qn),te(qr),te(Il))},t.\u0275cmp=Bt({type:t,selectors:[["ngx-ice-breaker"]],inputs:{func:["iceBreakers","func"]},outputs:{toggleIceBreaker:"toggleIceBreaker"},decls:1,vars:1,consts:[["id","gc_greeting_box",3,"ngClass","ngStyle",4,"ngIf"],["id","gc_greeting_box",3,"ngClass","ngStyle"],["id","gc_close_button",3,"ngClass","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512"],["d","M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"],["id","gc_opening_line"],["id","gc_opening_text"],[1,"ice-item"],["style","display: inline;",3,"ngClass","click",4,"ngFor","ngForOf"],[2,"display","inline",3,"ngClass","click"]],template:function(r,i){1&r&&z(0,Fve,9,13,"div",0),2&r&&T("ngIf",i.iceBreaker)},dependencies:[yi,oi,Wn,fr],styles:['#gc_greeting_box[_ngcontent-%COMP%]{z-index:100000;width:300px;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:240px;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 _ngcontent-%COMP%_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:[oN("flipNow",[$w("normal",Mo({transform:"rotateX(0deg)"})),$w("flip",Mo({transform:"rotateX(90deg)"})),_f("normal <=> flip",[mf("100ms ease-in-out")])])]}}),e})();const Bve=function(t,e,n,r){return{left:t,right:e,bar:n,"side-bar":r}},$ve=function(t,e){return{left:t,right:e}};let zve=(()=>{var t;class e{set func(r){this.smallPopup=r,this.updateFormatting()}constructor(r,i){this.chatService=r,this.popupService=i,this.botSettings={title:"",openingLine:"",botImgUrl:null,backgroundColors:["#FFFFFF","#FFFFFF"],screenPosition:"right"},this.greetingStyle={},this.contentStyle={},this.textStyle={},this.smartBackground="",this.toggleSmallPopup=new de}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(r=>{r&&(this.botSettings=r,"left"===r.screenPosition?"round"===r.buttonShape?this.greetingStyle={bottom:r.bottomSpacing+"px",left:+r.fromSideSpacing+85+"px"}:"bar"===r.buttonShape?this.greetingStyle={bottom:"50px",left:+r.fromSideSpacing+"px"}:"side-bar"===r.buttonShape&&(this.greetingStyle={bottom:r.bottomSpacing+50+"px",left:"50px"}):"round"===r.buttonShape?this.greetingStyle={bottom:r.bottomSpacing+"px",right:+r.fromSideSpacing+85+"px"}:"bar"===r.buttonShape?this.greetingStyle={bottom:"50px",right:+r.fromSideSpacing+"px"}:"side-bar"===r.buttonShape&&(this.greetingStyle={bottom:r.bottomSpacing+50+"px",right:"50px"}))})}updateFormatting(){let r;this.smallPopup.media&&(r=this.smallPopup.media[Math.floor(Math.random()*this.smallPopup.media.length)]);const i=this.hexToRgb(this.smallPopup.popup.primaryColor);this.smartBackground=i&&r.path?"above"===this.smallPopup.popup.template?"linear-gradient(0deg, rgba(".concat(i.r,", ").concat(i.g,", ").concat(i.b,", 0.6), rgba(").concat(i.r,", ").concat(i.g,", ").concat(i.b,', 0.7)), url("').concat(r.path,'")'):'url("'.concat(r.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(r,i){this.chatService.addDirectIntentQuestion(r,i),this.chatService.hasOpened$.next(!0),this.onToggleVisible(!0)}onToggleVisible(r=null){let i=this.popupService.showChatBox.getValue();null!==r&&(i=!r),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 ge(ge(ge({},this.textStyle),this.contentStyle),{},{background:this.smartBackground,"background-size":"cover"})}hexToRgb(r){const i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);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(t=e).\u0275fac=function(r){return new(r||t)(te(Qn),te(Il))},t.\u0275cmp=Bt({type:t,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(r,i){1&r&&(A(0,"div",0)(1,"div",1),fe("click",function(){return i.onCloseGreeting()}),Ie(),A(2,"svg",2),ue(3,"path",3),M()(),st(),A(4,"div",4),fe("click",function(){return i.onHandelIntent(i.smallPopup.popup.openIntentId,i.smallPopup.popup.openIntentName)}),A(5,"div",5),ce(6),M()()()),2&r&&(T("ngClass",Ga(5,Bve,"left"==i.botSettings.screenPosition,"right"==i.botSettings.screenPosition,"bar"==i.botSettings.buttonShape,"side-bar"==i.botSettings.buttonShape))("ngStyle",i.greetingStyle),b(1),T("ngClass",ds(10,$ve,"left"==i.botSettings.screenPosition,"right"==i.botSettings.screenPosition)),b(4),T("ngStyle",i.getPrettyStyle),b(1),Ge(" ",i.smallPopup.popup.text," "))},dependencies:[yi,fr],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}']}),e})();function Uve(t,e){if(1&t){const n=Me();A(0,"ngx-hitch",5),fe("toggleHitch",function(i){return J(n),ee(x().onToggleHitch(i))}),M()}2&t&&T("hitch",x().hitch)}function Hve(t,e){if(1&t){const n=Me();A(0,"ngx-ice-breaker",6),fe("toggleIceBreaker",function(i){return J(n),ee(x().onToggleIceBreaker(i))}),M()}2&t&&T("iceBreakers",x().iceBreakers)}function jve(t,e){if(1&t){const n=Me();A(0,"ngx-small-popup",7),fe("toggleSmallPopup",function(i){return J(n),ee(x().onToggleSmallPopup(i))}),M()}2&t&&T("smallPopup",x().smallPopup)}function Gve(t,e){1&t&&(A(0,"span",13),ce(1),ye(2,"translate"),M()),2&t&&(b(1),Ge(" ",Ce(2,1,"chatNow")," "))}function qve(t,e){1&t&&(A(0,"span")(1,"span",14),ce(2),ye(3,"translate"),M()()),2&t&&(b(2),Ge(" ",Ce(3,1,"chatNow")," "))}function Wve(t,e){if(1&t&&ue(0,"img",15),2&t){const n=x(2);T("src",n.whosTalking.img,Nn)("ngStyle",n.avatarStyle)}}const k7=function(t,e,n,r){return{left:t,bar:e,"side-bar":n,round:r}};function Yve(t,e){if(1&t){const n=Me();A(0,"button",8),fe("click",function(){return J(n),ee(x().onToggleVisible())}),z(1,Gve,3,3,"span",9),z(2,qve,4,3,"span",10),z(3,Wve,1,2,"img",11),A(4,"div",12),ce(5,"1"),M()()}if(2&t){const n=x();Xn("animation","shine"!==n.animation?n.animationStyle:""),T("ngClass",Ga(7,k7,"left"==n.botSettings.screenPosition,"bar"==n.botSettings.buttonShape,"side-bar"==n.botSettings.buttonShape,"round"==n.botSettings.buttonShape))("ngStyle",n.buttonStyle),b(1),T("ngIf","bar"==n.botSettings.buttonShape),b(1),T("ngIf","side-bar"==n.botSettings.buttonShape),b(1),T("ngIf",n.whosTalking.img)}}function Kve(t,e){1&t&&ue(0,"div",18),2&t&&Xn("animation",x(2).animationStyle)}function Qve(t,e){if(1&t){const n=Me();A(0,"div",16),fe("click",function(){return J(n),ee(x().onToggleVisible())}),z(1,Kve,1,2,"div",17),M()}if(2&t){const n=x();T("ngClass",Ga(3,k7,"left"==n.botSettings.screenPosition,"bar"==n.botSettings.buttonShape,"side-bar"==n.botSettings.buttonShape,"round"==n.botSettings.buttonShape))("ngStyle",n.buttonStyle),b(1),T("ngIf",""!==n.animationStyle)}}let Xve=(()=>{var t;class e{onClick(r){this.triggerEvents.clicks++,this.triggerEvents$.next(ge({},this.triggerEvents))}onScroll(r){const i=r.target.children[0].scrollTop;this.scrollTriggered||(this.triggerEvents.scroll=i,this.triggerEvents$.next(ge({},this.triggerEvents))),this.afterScroll$.getValue()||(2*this.firstPagePercentageHeight<this.documentHeight?i>this.firstPagePercentageHeight&&(this.afterScroll$.next(!0),window.sessionStorage.setItem("scrollTriggerActivated","true")):(this.afterScroll$.next(!0),window.sessionStorage.setItem("scrollTriggerActivated","true")))}onMouseMove(r){if(!this.mouseTriggered){const i=r.pageY;this.mouseLastPosition>=this.triggerEvents.scroll+10&&i<=this.triggerEvents.scroll+10&&(this.triggerEvents.mouse=!0,this.triggerEvents$.next(ge({},this.triggerEvents)),this.mouseTriggered=!0),this.mouseLastPosition=i}}constructor(r,i,o){this.popupService=r,this.chatService=i,this.debugService=o,this.botSettings={title:"",openingLine:"",botImgUrl:null,backgroundColors:["#FFFFFF","#FFFFFF"],screenPosition:"right"},this.avatarStyle={},this.buttonStyle={background:"linear-gradient(to bottom right,  #FFFFFF , #FFFFFF)",bottom:"50px",right:"50px",size:"70px"},this.animationStyle="",this.greetingStyle={},this.whosTalking={img:null,title:null},this.showButton$=new lt,this.showHitch=!1,this.showIceBreaker=!1,this.showSmallPopup=!1,this.triggerEvents={clicks:0,time:0,scroll:0,mouse:!1},this.triggerEvents$=new ct(this.triggerEvents),this.activeEngagementsOnThisPage=[],this.useNewEngagementMethod=!1,this.firstPagePercentageHeight=.8*window.innerHeight,this.documentHeight=window.document.documentElement.scrollHeight,this.scrollTriggered=!1,this.mouseTriggered=!1,this.mouseLastPosition=0,this.afterScroll$=new ct(!1),this.showButton$=ui([this.chatService.showButton$,this.chatService.allowBot$,this.afterScroll$]).pipe(Un(([s,a,l])=>s&&a&&l))}ngOnInit(){this.showButtonAfterScrollSub=this.chatService.showButtonAfterScroll$.subscribe(r=>{if(null!==r)if(!0===r){const i=window.parent.document,o=i.documentElement.scrollHeight>i.documentElement.clientHeight;"true"===window.sessionStorage.getItem("scrollTriggerActivated")?(this.afterScroll$.next(!0),window.sessionStorage.setItem("scrollTriggerActivated","true")):o?(this.afterScroll$.next(!1),window.sessionStorage.setItem("scrollTriggerActivated","false")):(this.afterScroll$.next(!0),window.sessionStorage.setItem("scrollTriggerActivated","true"))}else this.afterScroll$.next(!0),window.sessionStorage.setItem("scrollTriggerActivated","true")}),this.startTimer(),this.triggerSub=this.triggerEvents$.subscribe(r=>{let i=!1;this.showHitch||this.showIceBreaker||this.showSmallPopup||this.activeEngagementsOnThisPage.length>0&&this.activeEngagementsOnThisPage.forEach(o=>{if(!(this.showHitch||this.showIceBreaker||this.showSmallPopup)&&("firstLoadDelay"===o.trigger.type&&o.trigger.value===r.time&&(i=!0,clearInterval(this.engagementInterval)),"numberClicks"===o.trigger.type&&o.trigger.value===r.clicks&&(i=!0),"scrollDownPercentage"===o.trigger.type&&r.scroll>=o.trigger.value&&(this.scrollTriggered=!0,i=!0),"movingToExit"===o.trigger.type&&r.mouse&&(i=!0,this.triggerEvents.mouse=!1,this.afterScroll$.getValue()||(this.afterScroll$.next(!0),window.sessionStorage.setItem("scrollTriggerActivated","true"))),i)){if("openChatWindow"===o.action&&this.onToggleVisible(!0),"showIceBreakers"===o.action&&o.iceBreakers&&o.iceBreakers.length>0){const s=window.sessionStorage.getItem("iceBreakerOpened");(!s||"true"!==s)&&(this.iceBreakers={iceBreakers:o.iceBreakers,iceBreakerDelay:o.iceBreakerDelay},this.showIceBreaker=!0)}if("showSmallPopup"===o.action){const s=window.sessionStorage.getItem("showSmallPopupOpened");(!s||"true"!==s)&&(this.smallPopup=o,this.showSmallPopup=!0)}"showBigPopup"===o.action&&(this.hitch=o,this.showHitch=!0)}})}),this.dataSub=ui([this.chatService.botSettingsBS,this.chatService.engagements$,this.chatService.allowBot$]).subscribe(([r,i,o])=>{o&&(this.debugService.logMode&&console.log(r,i),r&&(this.botSettings=r,this.avatarStyle={"background-color":r.backgroundColors[0]},this.animation="none",r.animation&&(this.animation=r.animation,this.startAnimationLoop(r.animationRepeat||0,1e3*(r.animationDelay||6))),"round"===r.buttonShape?(this.buttonStyle="left"===r.screenPosition?{"background-color":r.backgroundColors[0],bottom:r.bottomSpacing+"px",left:r.fromSideSpacing+"px",height:(r.buttonSize||"70")+"px",width:(r.buttonSize||"70")+"px"}:{"background-color":r.backgroundColors[0],bottom:r.bottomSpacing+"px",right:r.fromSideSpacing+"px",height:(r.buttonSize||"70")+"px",width:(r.buttonSize||"70")+"px"},this.avatarStyle={"background-color":r.backgroundColors[0],height:(r.buttonSize||"70")+"px",width:(r.buttonSize||"70")+"px"}):"bar"===r.buttonShape?this.buttonStyle="left"===r.screenPosition?{"background-color":r.backgroundColors[0],left:r.fromSideSpacing+"px"}:{"background-color":r.backgroundColors[0],right:r.fromSideSpacing+"px"}:"side-bar"===r.buttonShape&&(this.buttonStyle="left"===r.screenPosition?{"background-color":r.backgroundColors[0],left:"0px",bottom:r.bottomSpacing+"px"}:{"background-color":r.backgroundColors[0],right:"0px",bottom:r.bottomSpacing+"px"}),this.useNewEngagementMethod=this.chatService.showEngagements,this.useNewEngagementMethod?i&&i.length>0&&(this.activeEngagementsOnThisPage=[],i.forEach(s=>{s.active&&(s.showOnAllPages||s.showOnPages&&s.showOnPages.split(",").map(c=>null==c?void 0:c.trim()).findIndex(c=>window.location.href.indexOf(c)>-1)>-1)&&this.activeEngagementsOnThisPage.push(s)})):this.showOldEngagements()))}),this.whosTalkingSub&&this.whosTalkingSub.unsubscribe(),this.whosTalkingSub=this.chatService.botImage$.subscribe(r=>{r&&(this.whosTalking=r)})}startAnimationLoop(r,i){this.animationTimerSub=p9(1e3,i).subscribe(o=>{if(r>0&&o>=r)this.animationTimerSub.unsubscribe();else{switch(this.animation){case"blink":this.animationStyle="gc-blink 0.6s both 1";break;case"flip-over":this.animationStyle="gc-flip-over 2s cubic-bezier(0.455, 0.030, 0.515, 0.955) both 1";break;case"shine":this.animationStyle="gc-shine 3s both 1";break;case"jello":this.animationStyle="gc-jello 0.9s both 1"}setTimeout(()=>{this.animationStyle=""},5e3)}})}showOldEngagements(){this.botSettings.greetDelay>0&&setTimeout(()=>{var r,i,o;const s=(null===(r=this.chatService)||void 0===r||null===(r=r.hasOpened$)||void 0===r?void 0:r.getValue())||!1,a=(null===(i=this.chatService)||void 0===i||null===(i=i.isMobile$)||void 0===i?void 0:i.getValue())||!1,l=(null===(o=this.chatService)||void 0===o||null===(o=o.disableWidgetPopupForMobile$)||void 0===o?void 0:o.getValue())||!1;(!s&&!a||!s&&a&&!l)&&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 o=!1;i&&"true"===i&&(o=!0),o||(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(ge({},this.triggerEvents)))},1e3)}onToggleHitch(r){this.showHitch=r}onToggleIceBreaker(r){r||window.sessionStorage.setItem("iceBreakerOpened","true"),this.showIceBreaker=r}onToggleSmallPopup(r){r||window.sessionStorage.setItem("showSmallPopupOpened","true"),this.showSmallPopup=r}onToggleVisible(r=null){let i=this.popupService.showChatBox.getValue();null!==r&&(i=!r),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.whosTalkingSub&&this.whosTalkingSub.unsubscribe(),this.engagementInterval&&clearInterval(this.engagementInterval),this.dataSub&&this.dataSub.unsubscribe(),this.triggerSub&&this.triggerSub.unsubscribe(),this.animationTimerSub&&this.animationTimerSub.unsubscribe(),this.showButtonAfterScrollSub&&this.showButtonAfterScrollSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Il),te(Qn),te(Ii))},t.\u0275cmp=Bt({type:t,selectors:[["gc-start-button"]],hostBindings:function(r,i){1&r&&fe("click",function(s){return i.onClick(s)},0,Ba)("scroll",function(s){return i.onScroll(s)},!1,Ba)("mousemove",function(s){return i.onMouseMove(s)},!1,Ba)},decls:8,vars:11,consts:[[3,"hitch","toggleHitch",4,"ngIf"],[3,"iceBreakers","toggleIceBreaker",4,"ngIf"],[3,"smallPopup","toggleSmallPopup",4,"ngIf"],["class","gc-button",3,"ngClass","ngStyle","animation","click",4,"ngIf"],["class","gc-button animation-invisible-overlay","style","background: none !important",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"],[1,"gc-button","animation-invisible-overlay",2,"background","none !important",3,"ngClass","ngStyle","click"],["class","shine-div",3,"animation",4,"ngIf"],[1,"shine-div"]],template:function(r,i){1&r&&(z(0,Uve,1,1,"ngx-hitch",0),z(1,Hve,1,1,"ngx-ice-breaker",1),ye(2,"async"),z(3,jve,1,1,"ngx-small-popup",2),ye(4,"async"),z(5,Yve,6,12,"button",3),ye(6,"async"),z(7,Qve,2,8,"div",4)),2&r&&(T("ngIf",i.showHitch),b(1),T("ngIf",Ce(2,5,i.showIceBreaker&&i.showButton$)),b(2),T("ngIf",Ce(4,7,i.showSmallPopup&&i.showButton$)),b(2),T("ngIf",Ce(6,9,i.showButton$)),b(2),T("ngIf","shine"===i.animation))},dependencies:[yi,Wn,fr,Mve,Vve,zve,js,uo],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:0!important}.gc-button .spin-div:before{content:"";position:absolute;width:110%;height:110%;top:-10px;left:-10px;border-radius:50%;border:5px solid transparent;border-top-color:rgba(6,144,221,.48);animation:spin-reverse 1.3s linear infinite}.gc-button #gc_exclamation{background-color:red;width:18px;height:18px;border-radius:50%;position:absolute;font-size:12px;line-height:18px;z-index:100}.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:0;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:0;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(-91deg);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:0}.gc-button.side-bar #gc_exclamation{display:none}@media screen and (max-height: 400px){button.chat-open{top:7vh}}@keyframes spin-reverse{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}.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}}.animation-invisible-overlay{overflow:hidden;background-color:transparent!important;box-shadow:none}.animation-invisible-overlay .shine-div{width:200%;height:40%;min-height:30px;rotate:-10deg;left:-20px;position:absolute;background:linear-gradient(to bottom,rgba(255,255,255,.07),rgba(255,255,255,.55),rgba(255,255,255,.082));-webkit-text-fill-color:transparent}@keyframes gc-shine{0%{top:-160%}to{top:160%}}@keyframes gc-flip-over{0%{transform:translate(0) translateZ(0) rotateY(0);transform-origin:100% 50%}40%{transform:translate(100%) translateZ(160px) rotateY(-180deg);transform-origin:0% 50%}}@keyframes gc-blink{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes gc-jello{0%{transform:scaleZ(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleZ(1)}}\n'],encapsulation:3}),e})();function Go(...t){const e=td(t);return Lr((n,r)=>{(e?my(t,n,e):my(t,n)).subscribe(r)})}let M7=(()=>{var t;class e{constructor(r,i){this._renderer=r,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(r,i){this._renderer.setProperty(this._elementRef.nativeElement,r,i)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}}return(t=e).\u0275fac=function(r){return new(r||t)(te(ss),te(Cr))},t.\u0275dir=Ke({type:t}),e})(),Dl=(()=>{var t;class e extends M7{}return(t=e).\u0275fac=function(){let n;return function(i){return(n||(n=Jt(t)))(i||t)}}(),t.\u0275dir=Ke({type:t,features:[ht]}),e})();const fo=new Ve("NgValueAccessor"),Jve={provide:fo,useExisting:Wt(()=>Uu),multi:!0},tye=new Ve("CompositionEventMode");let Uu=(()=>{var t;class e extends M7{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function eye(){const t=lf()?lf().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(r){this.setProperty("value",null==r?"":r)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}}return(t=e).\u0275fac=function(r){return new(r||t)(te(ss),te(Cr),te(tye,8))},t.\u0275dir=Ke({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){1&r&&fe("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:[rn([Jve]),ht]}),e})();function ya(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}const kr=new Ve("NgValidators"),ba=new Ve("NgAsyncValidators"),nye=/^(?=.{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 F7(t){return ya(t.value)?{required:!0}:null}function B7(t){return ya(t.value)||nye.test(t.value)?null:{email:!0}}function wy(t){return null}function H7(t){return null!=t}function j7(t){return _g(t)?Da(t):t}function G7(t){let e={};return t.forEach(n=>{e=null!=n?ge(ge({},e),n):e}),0===Object.keys(e).length?null:e}function q7(t,e){return e.map(n=>n(t))}function W7(t){return t.map(e=>function rye(t){return!t.validate}(e)?e:n=>e.validate(n))}function YA(t){return null!=t?function Y7(t){if(!t)return null;const e=t.filter(H7);return 0==e.length?null:function(n){return G7(q7(n,e))}}(W7(t)):null}function KA(t){return null!=t?function K7(t){if(!t)return null;const e=t.filter(H7);return 0==e.length?null:function(n){return y7(q7(n,e).map(j7)).pipe(Un(G7))}}(W7(t)):null}function Q7(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function QA(t){return t?Array.isArray(t)?t:[t]:[]}function Cy(t,e){return Array.isArray(t)?t.includes(e):t===e}function J7(t,e){const n=QA(e);return QA(t).forEach(i=>{Cy(n,i)||n.push(i)}),n}function eB(t,e){return QA(e).filter(n=>!Cy(t,n))}class tB{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=YA(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=KA(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=void 0){this.control&&this.control.reset(e)}hasError(e,n){return!!this.control&&this.control.hasError(e,n)}getError(e,n){return this.control?this.control.getError(e,n):null}}class Wr extends tB{get formDirective(){return null}get path(){return null}}class wa extends tB{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class nB{constructor(e){this._cd=e}get isTouched(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.touched)}get isUntouched(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.untouched)}get isPristine(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.pristine)}get isDirty(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.dirty)}get isValid(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.valid)}get isInvalid(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.invalid)}get isPending(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.pending)}get isSubmitted(){var e;return!(null===(e=this._cd)||void 0===e||!e.submitted)}}let Ey=(()=>{var t;class e extends nB{constructor(r){super(r)}}return(t=e).\u0275fac=function(r){return new(r||t)(te(wa,2))},t.\u0275dir=Ke({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&qd("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:[ht]}),e})(),rB=(()=>{var t;class e extends nB{constructor(r){super(r)}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Wr,10))},t.\u0275dir=Ke({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&qd("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:[ht]}),e})();const kh="VALID",Ty="INVALID",Hu="PENDING",Mh="DISABLED";function JA(t){return(Iy(t)?t.validators:t)||null}function ex(t,e){return(Iy(e)?e.asyncValidators:t)||null}function Iy(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class aB{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}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===kh}get invalid(){return this.status===Ty}get pending(){return this.status==Hu}get disabled(){return this.status===Mh}get enabled(){return this.status!==Mh}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._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(J7(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(J7(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(eB(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(eB(e,this._rawAsyncValidators))}hasValidator(e){return Cy(this._rawValidators,e)}hasAsyncValidator(e){return Cy(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(n=>{n.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(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Hu,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=Mh,this.errors=null,this._forEachChild(r=>{r.disable(ge(ge({},e),{},{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ge(ge({},e),{},{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=kh,this._forEachChild(r=>{r.enable(ge(ge({},e),{},{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(ge(ge({},e),{},{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kh||this.status===Hu)&&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(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mh:kh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Hu,this._hasOwnPendingAsyncValidator=!0;const n=j7(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(!1!==n.emitEvent)}get(e){let n=e;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(e,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}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 de,this.statusChanges=new de}_calculateStatus(){return this._allControlsDisabled()?Mh:this.errors?Ty:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Hu)?Hu:this._anyControlsHaveStatus(Ty)?Ty:kh}_anyControlsHaveStatus(e){return this._anyControls(n=>n.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){Iy(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function aye(t){return Array.isArray(t)?YA(t):t||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function lye(t){return Array.isArray(t)?KA(t):t||null}(this._rawAsyncValidators)}}class tx extends aB{constructor(e,n,r){super(JA(n),ex(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){(function sB(t,e,n){t._forEachChild((r,i)=>{if(void 0===n[i])throw new he(1002,"")})})(this,0,e),Object.keys(e).forEach(r=>{(function oB(t,e,n){const r=t.controls;if(!(e?Object.keys(r):r).length)throw new he(1e3,"");if(!r[n])throw new he(1001,"")})(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(Object.keys(e).forEach(r=>{const i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,i)=>{r.reset(e?e[i]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&e(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(e,n){let r=e;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}const ju=new Ve("CallSetDisabledState",{providedIn:"root",factory:()=>Ay}),Ay="always";function Oh(t,e,n=Ay){var r,i;nx(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||"always"===n)&&(null===(r=(i=e.valueAccessor).setDisabledState)||void 0===r||r.call(i,t.disabled)),function dye(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&lB(t,e)})}(t,e),function hye(t,e){const n=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function fye(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&lB(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function uye(t,e){if(e.valueAccessor.setDisabledState){const n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function Dy(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function nx(t,e){const n=function X7(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(Q7(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=function Z7(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(Q7(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const i=()=>t.updateValueAndValidity();Dy(e._rawValidators,i),Dy(e._rawAsyncValidators,i)}function lB(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}const vye={provide:Wr,useExisting:Wt(()=>My)},Rh=(()=>Promise.resolve())();let My=(()=>{var t;class e extends Wr{constructor(r,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new de,this.form=new tx({},YA(r),KA(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(r){Rh.then(()=>{const i=this._findContainer(r.path);r.control=i.registerControl(r.name,r.control),Oh(r.control,r,this.callSetDisabledState),r.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(r)})}getControl(r){return this.form.get(r.path)}removeControl(r){Rh.then(()=>{const i=this._findContainer(r.path);i&&i.removeControl(r.name),this._directives.delete(r)})}addFormGroup(r){Rh.then(()=>{const i=this._findContainer(r.path),o=new tx({});(function cB(t,e){nx(t,e)})(o,r),i.registerControl(r.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(r){Rh.then(()=>{const i=this._findContainer(r.path);i&&i.removeControl(r.name)})}getFormGroup(r){return this.form.get(r.path)}updateModel(r,i){Rh.then(()=>{this.form.get(r.path).setValue(i)})}setValue(r){this.control.setValue(r)}onSubmit(r){var i;return this.submitted=!0,function uB(t,e){t._syncPendingControls(),e.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(r),"dialog"===(null==r||null===(i=r.target)||void 0===i?void 0:i.method)}onReset(){this.resetForm()}resetForm(r=void 0){this.form.reset(r),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(r){return r.pop(),r.length?this.form.get(r):this.form}}return(t=e).\u0275fac=function(r){return new(r||t)(te(kr,10),te(ba,10),te(ju,8))},t.\u0275dir=Ke({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,i){1&r&&fe("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rn([vye]),ht]}),e})();function dB(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function fB(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const hB=class extends aB{constructor(e=null,n,r){super(JA(n),ex(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Iy(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=fB(e)?e.value:e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){dB(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){dB(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){fB(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}},wye={provide:wa,useExisting:Wt(()=>Nh)},mB=(()=>Promise.resolve())();let Nh=(()=>{var t;class e extends wa{constructor(r,i,o,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new hB,this._registered=!1,this.name="",this.update=new de,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=function ox(t,e){if(!e)return null;let n,r,i;return Array.isArray(e),e.forEach(o=>{o.constructor===Uu?n=o:function mye(t){return Object.getPrototypeOf(t.constructor)===Dl}(o)?r=o:i=o}),i||r||n||null}(0,s)}ngOnChanges(r){if(this._checkForErrors(),!this._registered||"name"in r){if(this._registered&&(this._checkName(),this.formDirective)){const i=r.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in r&&this._updateDisabled(r),function ix(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(r,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(r){this.viewModel=r,this.update.emit(r)}_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(){Oh(this.control,this,this.callSetDisabledState),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(r){mB.then(()=>{var i;this.control.setValue(r,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(r){const i=r.isDisabled.currentValue,o=0!==i&&ow(i);mB.then(()=>{var s;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()})}_getPath(r){return this._parent?function xy(t,e){return[...e.path,t]}(r,this._parent):[r]}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Wr,9),te(kr,10),te(ba,10),te(fo,10),te(Vc,8),te(ju,8))},t.\u0275dir=Ke({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[rn([wye]),ht,bo]}),e})(),_B=(()=>{var t;class e{}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275dir=Ke({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),yB=(()=>{var t;class e{}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275mod=jn({type:t}),t.\u0275inj=Rn({}),e})();const kye={provide:fo,useExisting:Wt(()=>Oy),multi:!0};function IB(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}let Oy=(()=>{var t;class e extends Dl{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(r){this._compareWith=r}writeValue(r){this.value=r;const o=IB(this._getOptionId(r),r);this.setProperty("value",o)}registerOnChange(r){this.onChange=i=>{this.value=this._getOptionValue(i),r(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(r){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),r))return i;return null}_getOptionValue(r){const i=function Mye(t){return t.split(":")[0]}(r);return this._optionMap.has(i)?this._optionMap.get(i):r}}return(t=e).\u0275fac=function(){let n;return function(i){return(n||(n=Jt(t)))(i||t)}}(),t.\u0275dir=Ke({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,i){1&r&&fe("change",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[rn([kye]),ht]}),e})(),AB=(()=>{var t;class e{constructor(r,i,o){this._element=r,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(r){null!=this._select&&(this._select._optionMap.set(this.id,r),this._setElementValue(IB(this.id,r)),this._select.writeValue(this._select.value))}set value(r){this._setElementValue(r),this._select&&this._select.writeValue(this._select.value)}_setElementValue(r){this._renderer.setProperty(this._element.nativeElement,"value",r)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Cr),te(ss),te(Oy,9))},t.\u0275dir=Ke({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Oye={provide:fo,useExisting:Wt(()=>cx),multi:!0};function xB(t,e){return null==t?"".concat(e):("string"==typeof e&&(e="'".concat(e,"'")),e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}let cx=(()=>{var t;class e extends Dl{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(r){this._compareWith=r}writeValue(r){let i;if(this.value=r,Array.isArray(r)){const o=r.map(s=>this._getOptionId(s));i=(s,a)=>{s._setSelected(o.indexOf(a.toString())>-1)}}else i=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(r){this.onChange=i=>{const o=[],s=i.selectedOptions;if(void 0!==s){const a=s;for(let l=0;l<a.length;l++){const u=this._getOptionValue(a[l].value);o.push(u)}}else{const a=i.options;for(let l=0;l<a.length;l++){const c=a[l];if(c.selected){const u=this._getOptionValue(c.value);o.push(u)}}}this.value=o,r(o)}}_registerOption(r){const i=(this._idCounter++).toString();return this._optionMap.set(i,r),i}_getOptionId(r){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,r))return i;return null}_getOptionValue(r){const i=function Rye(t){return t.split(":")[0]}(r);return this._optionMap.has(i)?this._optionMap.get(i)._value:r}}return(t=e).\u0275fac=function(){let n;return function(i){return(n||(n=Jt(t)))(i||t)}}(),t.\u0275dir=Ke({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,i){1&r&&fe("change",function(s){return i.onChange(s.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[rn([Oye]),ht]}),e})(),PB=(()=>{var t;class e{constructor(r,i,o){this._element=r,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(r){null!=this._select&&(this._value=r,this._setElementValue(xB(this.id,r)),this._select.writeValue(this._select.value))}set value(r){this._select?(this._value=r,this._setElementValue(xB(this.id,r)),this._select.writeValue(this._select.value)):this._setElementValue(r)}_setElementValue(r){this._renderer.setProperty(this._element.nativeElement,"value",r)}_setSelected(r){this._renderer.setProperty(this._element.nativeElement,"selected",r)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Cr),te(ss),te(cx,9))},t.\u0275dir=Ke({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),kl=(()=>{var t;class e{constructor(){this._validator=wy}ngOnChanges(r){if(this.inputName in r){const i=this.normalizeInput(r[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):wy,this._onChange&&this._onChange()}}validate(r){return this._validator(r)}registerOnValidatorChange(r){this._onChange=r}enabled(r){return null!=r}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275dir=Ke({type:t,features:[bo]}),e})();const Fye={provide:kr,useExisting:Wt(()=>Ry),multi:!0};let Ry=(()=>{var t;class e extends kl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=ow,this.createValidator=r=>F7}enabled(r){return r}}return(t=e).\u0275fac=function(){let n;return function(i){return(n||(n=Jt(t)))(i||t)}}(),t.\u0275dir=Ke({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,i){2&r&&vt("required",i._enabled?"":null)},inputs:{required:"required"},features:[rn([Fye]),ht]}),e})();const Bye={provide:kr,useExisting:Wt(()=>ux),multi:!0};let ux=(()=>{var t;class e extends kl{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=ow,this.createValidator=r=>B7}enabled(r){return r}}return(t=e).\u0275fac=function(){let n;return function(i){return(n||(n=Jt(t)))(i||t)}}(),t.\u0275dir=Ke({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[rn([Bye]),ht]}),e})(),Hye=(()=>{var t;class e{}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275mod=jn({type:t}),t.\u0275inj=Rn({imports:[yB]}),e})(),Gye=(()=>{var t;class e{static withConfig(r){var i;return{ngModule:e,providers:[{provide:ju,useValue:null!==(i=r.callSetDisabledState)&&void 0!==i?i:Ay}]}}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275mod=jn({type:t}),t.\u0275inj=Rn({imports:[Hye]}),e})();function Ny(t){return(Ny="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function VB(t,e){if(Tt(2,arguments),!e||"object"!==Ny(e))return new Date(NaN);var n=e.years?At(e.years):0,r=e.months?At(e.months):0,i=e.weeks?At(e.weeks):0,o=e.days?At(e.days):0,s=e.hours?At(e.hours):0,a=e.minutes?At(e.minutes):0,l=e.seconds?At(e.seconds):0,c=function Wye(t,e){return Tt(2,arguments),GV(t,-At(e))}(t,r+12*n),u=function qye(t,e){return Tt(2,arguments),jV(t,-At(e))}(c,o+7*i),p=1e3*(l+60*(a+60*s));return new Date(u.getTime()-p)}function Ml(t){Tt(1,arguments);var e=Kt(t);return e.setHours(0,0,0,0),e}function BB(t,e){Tt(2,arguments);var n=Ml(t),r=Ml(e);return n.getTime()===r.getTime()}let $B=(()=>{var t;class e{constructor(r,i,o,s){this.http=r,this.chatService=i,this.debugService=o,this.serversService=s,this.headers=(new Ui).set("content-type","application/json").set("authorization","Bearer cvisdj dsiofhosf340sdfm;234m;mcsdsgsgse")}addRequest(r,i=1){var o=this;return se(function*(){return new Promise(s=>{o.chatService.postIsLoading$.next(!0);const a=ge(ge({},o.chatService.getClientAndSession()),r);o.chatService.botIsTyping$.next(!0),o.http.post(o.serversService.getServerPath("addRequest"),a,{headers:o.headers}).subscribe({next:()=>{o.chatService.postIsLoading$.next(!1),s("success")},error:()=>{1===i?(o.serversService.gotoFallBack(),o.addRequest(r,i+1)):(o.chatService.botIsTyping$.next(!1),o.chatService.postIsLoading$.next(!1),o.chatService.showErrorMessage(),s("error"))}})})})()}addSubmit(r,i,o,s,a=1){return new Promise(l=>{this.chatService.postIsLoading$.next(!0);const c=ge(ge({},this.chatService.getClientAndSession()),{},{interface:"widget",submitType:r,intent:i,message:o,data:s});this.debugService.logMode&&console.log(c),this.http.post(this.serversService.getServerPath("submit"),c,{headers:this.headers}).subscribe({next:u=>{u.success?(this.chatService.postIsLoading$.next(!1),l("success")):(this.chatService.botIsTyping$.next(!1),this.chatService.postIsLoading$.next(!1),l("error"))},error:()=>{1===a?(this.serversService.gotoFallBack(),this.addSubmit(r,i,o,s,a+1)):(this.chatService.botIsTyping$.next(!1),this.chatService.postIsLoading$.next(!1),this.chatService.canPostReply$.next(!0),this.chatService.showErrorMessage(),l("error"))}})})}addPost(r,i="roomRAI",o=1){var s=this;return se(function*(){return new Promise(a=>{s.chatService.postIsLoading$.next(!0);const l=ge(ge(ge({},s.chatService.getClientAndSession()),{},{interface:"widget"},r),{},{postType:i});s.debugService.logMode&&console.log(l),s.http.post(s.serversService.getServerPath("postData"),l,{headers:s.headers}).subscribe({next:c=>{c.length>0?(s.chatService.postIsLoading$.next(!1),a("success")):(s.chatService.botIsTyping$.next(!1),s.chatService.postIsLoading$.next(!1),a("error"))},error:()=>{1===o?(s.serversService.gotoFallBack(),s.addPost(r,i,o+1)):(s.chatService.botIsTyping$.next(!1),s.chatService.postIsLoading$.next(!1),s.chatService.canPostReply$.next(!0),s.chatService.showErrorMessage(),a("error"))}})})})()}savePotentialRevenue(r,i,o){var s=this;return se(function*(){return new Promise(a=>{const l=r*i,c=ge(ge({},s.chatService.getClientAndSession()),{},{bookingValue:l,bookingNumNights:i,bookingDate:o,bookingClicked:!0});s.http.post(s.serversService.getServerPath("bankPotentialRevenue"),c,{headers:s.headers}).subscribe({next:()=>{a("success")},error:()=>{a("success")}})})})()}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(Xg),Te(Qn),Te(Ii),Te(x7))},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),Mr=(()=>{class t{}return B(t,"STARTS_WITH","startsWith"),B(t,"CONTAINS","contains"),B(t,"NOT_CONTAINS","notContains"),B(t,"ENDS_WITH","endsWith"),B(t,"EQUALS","equals"),B(t,"NOT_EQUALS","notEquals"),B(t,"IN","in"),B(t,"LESS_THAN","lt"),B(t,"LESS_THAN_OR_EQUAL_TO","lte"),B(t,"GREATER_THAN","gt"),B(t,"GREATER_THAN_OR_EQUAL_TO","gte"),B(t,"BETWEEN","between"),B(t,"IS","is"),B(t,"IS_NOT","isNot"),B(t,"BEFORE","before"),B(t,"AFTER","after"),B(t,"DATE_IS","dateIs"),B(t,"DATE_IS_NOT","dateIsNot"),B(t,"DATE_BEFORE","dateBefore"),B(t,"DATE_AFTER","dateAfter"),t})(),Kye=(()=>{var t;class e{constructor(){B(this,"clickSource",new hn),B(this,"clickObservable",this.clickSource.asObservable())}add(r){r&&this.clickSource.next(r)}}return t=e,B(e,"\u0275fac",function(r){return new(r||t)}),B(e,"\u0275prov",We({token:t,factory:t.\u0275fac,providedIn:"root"})),e})(),dx=(()=>{var t;class e{constructor(){B(this,"ripple",!1),B(this,"inputStyle","outlined"),B(this,"overlayOptions",{}),B(this,"filterMatchModeOptions",{text:[Mr.STARTS_WITH,Mr.CONTAINS,Mr.NOT_CONTAINS,Mr.ENDS_WITH,Mr.EQUALS,Mr.NOT_EQUALS],numeric:[Mr.EQUALS,Mr.NOT_EQUALS,Mr.LESS_THAN,Mr.LESS_THAN_OR_EQUAL_TO,Mr.GREATER_THAN,Mr.GREATER_THAN_OR_EQUAL_TO],date:[Mr.DATE_IS,Mr.DATE_IS_NOT,Mr.DATE_BEFORE,Mr.DATE_AFTER]}),B(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",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],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"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}}),B(this,"zIndex",{modal:1100,overlay:1e3,menu:1e3,tooltip:1100}),B(this,"translationSource",new hn),B(this,"translationObserver",this.translationSource.asObservable())}getTranslation(r){return this.translation[r]}setTranslation(r){this.translation=ge(ge({},this.translation),r),this.translationSource.next(this.translation)}}return t=e,B(e,"\u0275fac",function(r){return new(r||t)}),B(e,"\u0275prov",We({token:t,factory:t.\u0275fac,providedIn:"root"})),e})(),Qye=(()=>{var t;class e{constructor(r){B(this,"template",void 0),B(this,"type",void 0),B(this,"name",void 0),this.template=r}getType(){return this.name}}return t=e,B(e,"\u0275fac",function(r){return new(r||t)(te(io))}),B(e,"\u0275dir",Ke({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})),e})(),Ly=(()=>{var t;class e{}return t=e,B(e,"\u0275fac",function(r){return new(r||t)}),B(e,"\u0275mod",jn({type:t})),B(e,"\u0275inj",Rn({imports:[$c]})),e})(),qo=(()=>{class t{}return B(t,"STARTS_WITH","startsWith"),B(t,"CONTAINS","contains"),B(t,"NOT_CONTAINS","notContains"),B(t,"ENDS_WITH","endsWith"),B(t,"EQUALS","equals"),B(t,"NOT_EQUALS","notEquals"),B(t,"NO_FILTER","noFilter"),B(t,"LT","lt"),B(t,"LTE","lte"),B(t,"GT","gt"),B(t,"GTE","gte"),B(t,"IS","is"),B(t,"IS_NOT","isNot"),B(t,"BEFORE","before"),B(t,"AFTER","after"),B(t,"CLEAR","clear"),B(t,"APPLY","apply"),B(t,"MATCH_ALL","matchAll"),B(t,"MATCH_ANY","matchAny"),B(t,"ADD_RULE","addRule"),B(t,"REMOVE_RULE","removeRule"),B(t,"ACCEPT","accept"),B(t,"REJECT","reject"),B(t,"CHOOSE","choose"),B(t,"UPLOAD","upload"),B(t,"CANCEL","cancel"),B(t,"PENDING","pending"),B(t,"FILE_SIZE_TYPES","fileSizeTypes"),B(t,"DAY_NAMES","dayNames"),B(t,"DAY_NAMES_SHORT","dayNamesShort"),B(t,"DAY_NAMES_MIN","dayNamesMin"),B(t,"MONTH_NAMES","monthNames"),B(t,"MONTH_NAMES_SHORT","monthNamesShort"),B(t,"FIRST_DAY_OF_WEEK","firstDayOfWeek"),B(t,"TODAY","today"),B(t,"WEEK_HEADER","weekHeader"),B(t,"WEAK","weak"),B(t,"MEDIUM","medium"),B(t,"STRONG","strong"),B(t,"PASSWORD_PROMPT","passwordPrompt"),B(t,"EMPTY_MESSAGE","emptyMessage"),B(t,"EMPTY_FILTER_MESSAGE","emptyFilterMessage"),t})(),Le=(()=>{class t{static addClass(n,r){n&&r&&(n.classList?n.classList.add(r):n.className+=" "+r)}static addMultipleClasses(n,r){if(n&&r)if(n.classList){let i=r.trim().split(" ");for(let o=0;o<i.length;o++)n.classList.add(i[o])}else{let i=r.split(" ");for(let o=0;o<i.length;o++)n.className+=" "+i[o]}}static removeClass(n,r){n&&r&&(n.classList?n.classList.remove(r):n.className=n.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(n,r){n&&r&&[r].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(o=>this.removeClass(n,o)))}static hasClass(n,r){return!(!n||!r)&&(n.classList?n.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(n.className))}static siblings(n){return Array.prototype.filter.call(n.parentNode.children,function(r){return r!==n})}static find(n,r){return Array.from(n.querySelectorAll(r))}static findSingle(n,r){return this.isElement(n)?n.querySelector(r):null}static index(n){let r=n.parentNode.childNodes,i=0;for(var o=0;o<r.length;o++){if(r[o]==n)return i;1==r[o].nodeType&&i++}return-1}static indexWithinGroup(n,r){let i=n.parentNode?n.parentNode.childNodes:[],o=0;for(var s=0;s<i.length;s++){if(i[s]==n)return o;i[s].attributes&&i[s].attributes[r]&&1==i[s].nodeType&&o++}return-1}static appendOverlay(n,r,i="self"){"self"!==i&&n&&r&&this.appendChild(n,r)}static alignOverlay(n,r,i="self",o=!0){n&&r&&(o&&(n.style.minWidth="".concat(t.getOuterWidth(r),"px")),"self"===i?this.relativePosition(n,r):this.absolutePosition(n,r))}static relativePosition(n,r){const i=E=>{if(E)return"relative"===getComputedStyle(E).getPropertyValue("position")?E:i(E.parentElement)},o=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:this.getHiddenElementDimensions(n),s=r.offsetHeight,a=r.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),d=i(n),h=(null==d?void 0:d.getBoundingClientRect())||{top:-1*l,left:-1*c};let p,m;a.top+s+o.height>u.height?(p=a.top-h.top-o.height,n.style.transformOrigin="bottom",a.top+p<0&&(p=-1*a.top)):(p=s+a.top-h.top,n.style.transformOrigin="top");const _=a.left+o.width-u.width;m=o.width>u.width?-1*(a.left-h.left):_>0?a.left-h.left-_:a.left-h.left,n.style.top=p+"px",n.style.left=m+"px"}static absolutePosition(n,r){const i=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:this.getHiddenElementDimensions(n),o=i.height,s=i.width,a=r.offsetHeight,l=r.offsetWidth,c=r.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),h=this.getViewport();let p,m;c.top+a+o>h.height?(p=c.top+u-o,n.style.transformOrigin="bottom",p<0&&(p=u)):(p=a+c.top+u,n.style.transformOrigin="top"),m=c.left+s>h.width?Math.max(0,c.left+d+l-s):c.left+d,n.style.top=p+"px",n.style.left=m+"px"}static getParents(n,r=[]){return null===n.parentNode?r:this.getParents(n.parentNode,r.concat([n.parentNode]))}static getScrollableParents(n){let r=[];if(n){let i=this.getParents(n);const o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of i){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&s(d)&&r.push(d)}}9!==a.nodeType&&s(a)&&r.push(a)}}return r}static getHiddenElementOuterHeight(n){n.style.visibility="hidden",n.style.display="block";let r=n.offsetHeight;return n.style.display="none",n.style.visibility="visible",r}static getHiddenElementOuterWidth(n){n.style.visibility="hidden",n.style.display="block";let r=n.offsetWidth;return n.style.display="none",n.style.visibility="visible",r}static getHiddenElementDimensions(n){let r={};return n.style.visibility="hidden",n.style.display="block",r.width=n.offsetWidth,r.height=n.offsetHeight,n.style.display="none",n.style.visibility="visible",r}static scrollInView(n,r){let i=getComputedStyle(n).getPropertyValue("borderTopWidth"),o=i?parseFloat(i):0,s=getComputedStyle(n).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=n.getBoundingClientRect(),u=r.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,d=n.scrollTop,h=n.clientHeight,p=this.getOuterHeight(r);u<0?n.scrollTop=d+u:u+p>h&&(n.scrollTop=d+u-h+p)}static fadeIn(n,r){n.style.opacity=0;let i=+new Date,o=0,s=function(){o=+n.style.opacity.replace(",",".")+((new Date).getTime()-i)/r,n.style.opacity=o,i=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(n,r){var i=1,a=50/r;let l=setInterval(()=>{(i-=a)<=0&&(i=0,clearInterval(l)),n.style.opacity=i},50)}static getWindowScrollTop(){let n=document.documentElement;return(window.pageYOffset||n.scrollTop)-(n.clientTop||0)}static getWindowScrollLeft(){let n=document.documentElement;return(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}static matches(n,r){var i=Element.prototype;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(s){return-1!==[].indexOf.call(document.querySelectorAll(s),this)}).call(n,r)}static getOuterWidth(n,r){let i=n.offsetWidth;if(r){let o=getComputedStyle(n);i+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return i}static getHorizontalPadding(n){let r=getComputedStyle(n);return parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)}static getHorizontalMargin(n){let r=getComputedStyle(n);return parseFloat(r.marginLeft)+parseFloat(r.marginRight)}static innerWidth(n){let r=n.offsetWidth,i=getComputedStyle(n);return r+=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),r}static width(n){let r=n.offsetWidth,i=getComputedStyle(n);return r-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),r}static getInnerHeight(n){let r=n.offsetHeight,i=getComputedStyle(n);return r+=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),r}static getOuterHeight(n,r){let i=n.offsetHeight;if(r){let o=getComputedStyle(n);i+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return i}static getHeight(n){let r=n.offsetHeight,i=getComputedStyle(n);return r-=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),r}static getWidth(n){let r=n.offsetWidth,i=getComputedStyle(n);return r-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),r}static getViewport(){let n=window,r=document,i=r.documentElement,o=r.getElementsByTagName("body")[0];return{width:n.innerWidth||i.clientWidth||o.clientWidth,height:n.innerHeight||i.clientHeight||o.clientHeight}}static getOffset(n){var r=n.getBoundingClientRect();return{top:r.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:r.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(n,r){let i=n.parentNode;if(!i)throw"Can't replace element";return i.replaceChild(r,n)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var n=window.navigator.userAgent;return n.indexOf("MSIE ")>0||(n.indexOf("Trident/")>0?(n.indexOf("rv:"),!0):n.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(n,r){if(this.isElement(r))r.appendChild(n);else{if(!(r&&r.el&&r.el.nativeElement))throw"Cannot append "+r+" to "+n;r.el.nativeElement.appendChild(n)}}static removeChild(n,r){if(this.isElement(r))r.removeChild(n);else{if(!r.el||!r.el.nativeElement)throw"Cannot remove "+n+" from "+r;r.el.nativeElement.removeChild(n)}}static removeElement(n){"remove"in Element.prototype?n.remove():n.parentNode.removeChild(n)}static isElement(n){return"object"==typeof HTMLElement?n instanceof HTMLElement:n&&"object"==typeof n&&null!==n&&1===n.nodeType&&"string"==typeof n.nodeName}static calculateScrollbarWidth(n){if(n){let r=getComputedStyle(n);return n.offsetWidth-n.clientWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let r=document.createElement("div");r.className="p-scrollbar-measure",document.body.appendChild(r);let i=r.offsetWidth-r.clientWidth;return document.body.removeChild(r),this.calculatedScrollbarWidth=i,i}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let r=n.offsetHeight-n.clientHeight;return document.body.removeChild(n),this.calculatedScrollbarWidth=r,r}static invokeElementMethod(n,r,i){n[r].apply(n,i)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(n){}}static getBrowser(){if(!this.browser){let n=this.resolveUserAgent();this.browser={},n.browser&&(this.browser[n.browser]=!0,this.browser.version=n.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let n=navigator.userAgent.toLowerCase(),r=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:r[1]||"",version:r[2]||"0"}}static isInteger(n){return Number.isInteger?Number.isInteger(n):"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}static isHidden(n){return!n||null===n.offsetParent}static isVisible(n){return n&&null!=n.offsetParent}static isExist(n){return null!==n&&typeof n<"u"&&n.nodeName&&n.parentNode}static focus(n,r){n&&document.activeElement!==n&&n.focus(r)}static getFocusableElements(n,r=""){let i=this.find(n,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,',\n                [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n                input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n                select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n                textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n                [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n                [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r)),o=[];for(let s of i)"none"!=getComputedStyle(s).display&&"hidden"!=getComputedStyle(s).visibility&&o.push(s);return o}static getFirstFocusableElement(n,r){const i=this.getFocusableElements(n,r);return i.length>0?i[0]:null}static getLastFocusableElement(n,r){const i=this.getFocusableElements(n,r);return i.length>0?i[i.length-1]:null}static getNextFocusableElement(n,r=!1){const i=t.getFocusableElements(n);let o=0;if(i&&i.length>0){const s=i.indexOf(i[0].ownerDocument.activeElement);r?o=-1==s||0===s?i.length-1:s-1:-1!=s&&s!==i.length-1&&(o=s+1)}return i[o]}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(n,r){if(!n)return null;switch(n){case"document":return document;case"window":return window;case"@next":return null==r?void 0:r.nextElementSibling;case"@prev":return null==r?void 0:r.previousElementSibling;case"@parent":return null==r?void 0:r.parentElement;case"@grandparent":return null==r?void 0:r.parentElement.parentElement;default:const i=typeof n;if("string"===i)return document.querySelector(n);if("object"===i&&n.hasOwnProperty("nativeElement"))return this.isExist(n.nativeElement)?n.nativeElement:void 0;const s=(a=n)&&a.constructor&&a.call&&a.apply?n():n;return s&&9===s.nodeType||this.isExist(s)?s:null}var a}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(n,r){if(n){const i=n.getAttribute(r);return isNaN(i)?"true"===i||"false"===i?"true"===i:i:+i}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(n="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,n)}static unblockBodyScroll(n="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,n)}}return B(t,"zindex",1e3),B(t,"calculatedScrollbarWidth",null),B(t,"calculatedScrollbarHeight",null),B(t,"browser",void 0),t})();class Xye{constructor(e,n=(()=>{})){B(this,"element",void 0),B(this,"listener",void 0),B(this,"scrollableParents",void 0),this.element=e,this.listener=n}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}}class Wo{static equals(e,n,r){return r?this.resolveFieldData(e,r)===this.resolveFieldData(n,r):this.equalsByValue(e,n)}static equalsByValue(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){var o,s,a,r=Array.isArray(e),i=Array.isArray(n);if(r&&i){if((s=e.length)!=n.length)return!1;for(o=s;0!=o--;)if(!this.equalsByValue(e[o],n[o]))return!1;return!0}if(r!=i)return!1;var l=this.isDate(e),c=this.isDate(n);if(l!=c)return!1;if(l&&c)return e.getTime()==n.getTime();var u=e instanceof RegExp,d=n instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==n.toString();var h=Object.keys(e);if((s=h.length)!==Object.keys(n).length)return!1;for(o=s;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,h[o]))return!1;for(o=s;0!=o--;)if(!this.equalsByValue(e[a=h[o]],n[a]))return!1;return!0}return e!=e&&n!=n}static resolveFieldData(e,n){if(e&&n){if(this.isFunction(n))return n(e);if(-1==n.indexOf("."))return e[n];{let r=n.split("."),i=e;for(let o=0,s=r.length;o<s;++o){if(null==i)return null;i=i[r[o]]}return i}}return null}static isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)}static reorderArray(e,n,r){e&&n!==r&&(r>=e.length&&(r%=e.length,n%=e.length),e.splice(r,0,e.splice(n,1)[0]))}static insertIntoOrderedArray(e,n,r,i){if(r.length>0){let o=!1;for(let s=0;s<r.length;s++)if(this.findIndexInList(r[s],i)>n){r.splice(s,0,e),o=!0;break}o||r.push(e)}else r.push(e)}static findIndexInList(e,n){let r=-1;if(n)for(let i=0;i<n.length;i++)if(n[i]==e){r=i;break}return r}static contains(e,n){if(null!=e&&n&&n.length)for(let r of n)if(this.equals(e,r))return!0;return!1}static removeAccents(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}static isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}static isEmpty(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!this.isDate(e)&&"object"==typeof e&&0===Object.keys(e).length}static isNotEmpty(e){return!this.isEmpty(e)}static compare(e,n,r,i=1){let o=-1;const s=this.isEmpty(e),a=this.isEmpty(n);return o=s&&a?0:s?i:a?-i:"string"==typeof e&&"string"==typeof n?e.localeCompare(n,r,{numeric:!0}):e<n?-1:e>n?1:0,o}static sort(e,n,r=1,i,o=1){return(1===o?r:o)*Wo.compare(e,n,i,r)}static merge(e,n){if(null!=e||null!=n)return null!=e&&"object"!=typeof e||null!=n&&"object"!=typeof n?null!=e&&"string"!=typeof e||null!=n&&"string"!=typeof n?n||e:[e||"",n||""].join(" "):ge(ge({},e||{}),n||{})}static isPrintableCharacter(e=""){return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)}static getItemValue(e,...n){return this.isFunction(e)?e(...n):e}static findLastIndex(e,n){let r=-1;if(this.isNotEmpty(e))try{r=e.findLastIndex(n)}catch(i){r=e.lastIndexOf([...e].reverse().find(n))}return r}static findLast(e,n){let r;if(this.isNotEmpty(e))try{r=e.findLast(n)}catch(i){r=[...e].reverse().find(n)}return r}}var zB=0;function UB(t="pn_id_"){return zB++,"".concat(t).concat(zB)}var Fy=function Zye(){let t=[];const i=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:i,set:(o,s,a)=>{s&&(s.style.zIndex=String(((o,s)=>{let a=t.length>0?t[t.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+2;return t.push({key:o,value:l}),l})(o,a)))},clear:o=>{o&&((o=>{t=t.filter(s=>s.value!==o)})(i(o)),o.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const Jye=["*"];let Ol=(()=>{var t;class e{constructor(){B(this,"label",void 0),B(this,"spin",!1),B(this,"styleClass",void 0),B(this,"role",void 0),B(this,"ariaLabel",void 0),B(this,"ariaHidden",void 0)}ngOnInit(){this.getAttributes()}getAttributes(){const r=Wo.isEmpty(this.label);this.role=r?void 0:"img",this.ariaLabel=r?void 0:this.label,this.ariaHidden=r}getClassNames(){return"p-icon ".concat(this.styleClass?this.styleClass+" ":"").concat(this.spin?"p-icon-spin":"")}}return t=e,B(e,"\u0275fac",function(r){return new(r||t)}),B(e,"\u0275cmp",Bt({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[us],ngContentSelectors:Jye,decls:1,vars:0,template:function(r,i){1&r&&(vg(),zs(0))},encapsulation:2,changeDetection:0})),e})(),e0e=(()=>{var t;class e extends Ol{constructor(...r){super(...r),B(this,"pathId",void 0)}ngOnInit(){this.pathId="url(#"+UB()+")"}}return t=e,B(e,"\u0275fac",function(){let n;return function(i){return(n||(n=Jt(t)))(i||t)}}()),B(e,"\u0275cmp",Bt({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[ht,us],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(r,i){1&r&&(Ie(),A(0,"svg",0)(1,"g"),ue(2,"path",1),M(),A(3,"defs")(4,"clipPath",2),ue(5,"rect",3),M()()()),2&r&&(Li(i.getClassNames()),vt("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),b(1),vt("clip-path",i.pathId),b(3),T("id",i.pathId))},encapsulation:2})),e})(),t0e=(()=>{var t;class e{constructor(r,i,o,s,a,l){B(this,"document",void 0),B(this,"platformId",void 0),B(this,"renderer",void 0),B(this,"el",void 0),B(this,"zone",void 0),B(this,"config",void 0),B(this,"animationListener",void 0),B(this,"mouseDownListener",void 0),B(this,"timeout",void 0),this.document=r,this.platformId=i,this.renderer=o,this.el=s,this.zone=a,this.config=l}ngAfterViewInit(){h4(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(r){var i;let o=this.getInk();if(!o||"none"===(null===(i=this.document.defaultView)||void 0===i?void 0:i.getComputedStyle(o,null).display))return;if(Le.removeClass(o,"p-ink-active"),!Le.getHeight(o)&&!Le.getWidth(o)){let c=Math.max(Le.getOuterWidth(this.el.nativeElement),Le.getOuterHeight(this.el.nativeElement));o.style.height=c+"px",o.style.width=c+"px"}let s=Le.getOffset(this.el.nativeElement),a=r.pageX-s.left+this.document.body.scrollTop-Le.getWidth(o)/2,l=r.pageY-s.top+this.document.body.scrollLeft-Le.getHeight(o)/2;this.renderer.setStyle(o,"top",l+"px"),this.renderer.setStyle(o,"left",a+"px"),Le.addClass(o,"p-ink-active"),this.timeout=setTimeout(()=>{let c=this.getInk();c&&Le.removeClass(c,"p-ink-active")},401)}getInk(){const r=this.el.nativeElement.children;for(let i=0;i<r.length;i++)if("string"==typeof r[i].className&&-1!==r[i].className.indexOf("p-ink"))return r[i];return null}resetInk(){let r=this.getInk();r&&Le.removeClass(r,"p-ink-active")}onAnimationEnd(r){this.timeout&&clearTimeout(this.timeout),Le.removeClass(r.currentTarget,"p-ink-active")}create(){let r=this.renderer.createElement("span");this.renderer.addClass(r,"p-ink"),this.renderer.appendChild(this.el.nativeElement,r),this.renderer.setAttribute(r,"aria-hidden","true"),this.renderer.setAttribute(r,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(r,"animationend",this.onAnimationEnd.bind(this)))}remove(){let r=this.getInk();r&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,Le.removeElement(r))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return t=e,B(e,"\u0275fac",function(r){return new(r||t)(te(dr),te(Io),te(ss),te(Cr),te(Dt),te(dx,8))}),B(e,"\u0275dir",Ke({type:t,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]})),e})(),HB=(()=>{var t;class e{}return t=e,B(e,"\u0275fac",function(r){return new(r||t)}),B(e,"\u0275mod",jn({type:t})),B(e,"\u0275inj",Rn({imports:[$c]})),e})();const Ca={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let f0e=(()=>{var t;class e{get label(){return this._label}set label(r){this._label=r,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(r){this._icon=r,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(r){this._loading=r,this.initialized&&(this.updateIcon(),this.setStyleClass())}get htmlElement(){return this.el.nativeElement}constructor(r,i){B(this,"el",void 0),B(this,"document",void 0),B(this,"iconPos","left"),B(this,"loadingIcon",void 0),B(this,"_label",void 0),B(this,"_icon",void 0),B(this,"_loading",!1),B(this,"initialized",void 0),B(this,"_internalClasses",Object.values(Ca)),B(this,"spinnerIcon",'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" class="p-icon-spin">\n        <g clip-path="url(#clip0_417_21408)">\n            <path\n                d="M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z"\n                fill="currentColor"\n            />\n        </g>\n        <defs>\n            <clipPath id="clip0_417_21408">\n                <rect width="14" height="14" fill="white" />\n            </clipPath>\n        </defs>\n    </svg>'),this.el=r,this.document=i}ngAfterViewInit(){Le.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const r=[Ca.button,Ca.component];return this.icon&&!this.label&&Wo.isEmpty(this.htmlElement.textContent)&&r.push(Ca.iconOnly),this.loading&&(r.push(Ca.disabled,Ca.loading),!this.icon&&this.label&&r.push(Ca.labelOnly),this.icon&&!this.label&&!Wo.isEmpty(this.htmlElement.textContent)&&r.push(Ca.iconOnly)),r}setStyleClass(){const r=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...r)}createLabel(){if(this.label){let r=this.document.createElement("span");this.icon&&!this.label&&r.setAttribute("aria-hidden","true"),r.className="p-button-label",r.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(r)}}createIcon(){if(this.icon||this.loading){let r=this.document.createElement("span");r.className="p-button-icon",r.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&Le.addClass(r,i);let o=this.getIconClass();o&&Le.addMultipleClasses(r,o),!this.loadingIcon&&this.loading&&(r.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(r,this.htmlElement.firstChild)}}updateLabel(){let r=Le.findSingle(this.htmlElement,".p-button-label");this.label?r?r.textContent=this.label:this.createLabel():r&&this.htmlElement.removeChild(r)}updateIcon(){let r=Le.findSingle(this.htmlElement,".p-button-icon"),i=Le.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&r?r.innerHTML=this.spinnerIcon:null!=r&&r.innerHTML&&(r.innerHTML=""),r?r.className=this.iconPos?"p-button-icon "+(i?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}}return t=e,B(e,"\u0275fac",function(r){return new(r||t)(te(Cr),te(dr))}),B(e,"\u0275dir",Ke({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})),e})(),jB=(()=>{var t;class e{}return t=e,B(e,"\u0275fac",function(r){return new(r||t)}),B(e,"\u0275mod",jn({type:t})),B(e,"\u0275inj",Rn({imports:[$c,HB,Ly,e0e,Ly]})),e})(),GB=(()=>{var t;class e extends Ol{}return t=e,B(e,"\u0275fac",function(){let n;return function(i){return(n||(n=Jt(t)))(i||t)}}()),B(e,"\u0275cmp",Bt({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[ht,us],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(r,i){1&r&&(Ie(),A(0,"svg",0),ue(1,"path",1),M()),2&r&&(Li(i.getClassNames()),vt("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})),e})(),qB=(()=>{var t;class e extends Ol{}return t=e,B(e,"\u0275fac",function(){let n;return function(i){return(n||(n=Jt(t)))(i||t)}}()),B(e,"\u0275cmp",Bt({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[ht,us],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(r,i){1&r&&(Ie(),A(0,"svg",0),ue(1,"path",1),M()),2&r&&(Li(i.getClassNames()),vt("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})),e})(),WB=(()=>{var t;class e extends Ol{}return t=e,B(e,"\u0275fac",function(){let n;return function(i){return(n||(n=Jt(t)))(i||t)}}()),B(e,"\u0275cmp",Bt({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[ht,us],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(r,i){1&r&&(Ie(),A(0,"svg",0),ue(1,"path",1),M()),2&r&&(Li(i.getClassNames()),vt("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})),e})(),YB=(()=>{var t;class e extends Ol{}return t=e,B(e,"\u0275fac",function(){let n;return function(i){return(n||(n=Jt(t)))(i||t)}}()),B(e,"\u0275cmp",Bt({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[ht,us],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(r,i){1&r&&(Ie(),A(0,"svg",0),ue(1,"path",1),M()),2&r&&(Li(i.getClassNames()),vt("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})),e})(),KB=(()=>{var t;class e extends Ol{}return t=e,B(e,"\u0275fac",function(){let n;return function(i){return(n||(n=Jt(t)))(i||t)}}()),B(e,"\u0275cmp",Bt({type:t,selectors:[["TimesIcon"]],standalone:!0,features:[ht,us],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(r,i){1&r&&(Ie(),A(0,"svg",0),ue(1,"path",1),M()),2&r&&(Li(i.getClassNames()),vt("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})),e})(),QB=(()=>{var t;class e extends Ol{}return t=e,B(e,"\u0275fac",function(){let n;return function(i){return(n||(n=Jt(t)))(i||t)}}()),B(e,"\u0275cmp",Bt({type:t,selectors:[["CalendarIcon"]],standalone:!0,features:[ht,us],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(r,i){1&r&&(Ie(),A(0,"svg",0),ue(1,"path",1),M()),2&r&&(Li(i.getClassNames()),vt("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2})),e})();const h0e=["container"],p0e=["inputfield"],g0e=["contentWrapper"];function m0e(t,e){if(1&t){const n=Me();A(0,"TimesIcon",10),fe("click",function(){return J(n),ee(x(3).clear())}),M()}2&t&&T("styleClass","p-calendar-clear-icon")}function _0e(t,e){}function v0e(t,e){1&t&&z(0,_0e,0,0,"ng-template")}function y0e(t,e){if(1&t){const n=Me();A(0,"span",11),fe("click",function(){return J(n),ee(x(3).clear())}),z(1,v0e,1,0,null,12),M()}if(2&t){const n=x(3);b(1),T("ngTemplateOutlet",n.clearIconTemplate)}}function b0e(t,e){if(1&t&&(Tr(0),z(1,m0e,1,1,"TimesIcon",8),z(2,y0e,2,1,"span",9),Ir()),2&t){const n=x(2);b(1),T("ngIf",!n.clearIconTemplate),b(1),T("ngIf",n.clearIconTemplate)}}function w0e(t,e){1&t&&ue(0,"span",15),2&t&&T("ngClass",x(3).icon)}function C0e(t,e){1&t&&ue(0,"CalendarIcon")}function E0e(t,e){}function S0e(t,e){1&t&&z(0,E0e,0,0,"ng-template")}function T0e(t,e){if(1&t&&(Tr(0),z(1,C0e,1,0,"CalendarIcon",6),z(2,S0e,1,0,null,12),Ir()),2&t){const n=x(3);b(1),T("ngIf",!n.triggerIconTemplate),b(1),T("ngTemplateOutlet",n.triggerIconTemplate)}}function I0e(t,e){if(1&t){const n=Me();A(0,"button",13),fe("click",function(i){J(n),x();const o=Gd(1);return ee(x().onButtonClick(i,o))}),z(1,w0e,1,1,"span",14),z(2,T0e,3,2,"ng-container",6),M()}if(2&t){const n=x(2);T("disabled",n.disabled),vt("aria-label",n.iconButtonAriaLabel)("aria-expanded",n.overlayVisible)("aria-controls",n.panelId),b(1),T("ngIf",n.icon),b(1),T("ngIf",!n.icon)}}function A0e(t,e){if(1&t){const n=Me();A(0,"input",4,5),fe("focus",function(i){return J(n),ee(x().onInputFocus(i))})("keydown",function(i){return J(n),ee(x().onInputKeydown(i))})("click",function(){return J(n),ee(x().onInputClick())})("blur",function(i){return J(n),ee(x().onInputBlur(i))})("input",function(i){return J(n),ee(x().onUserInput(i))}),M(),z(2,b0e,3,2,"ng-container",6),z(3,I0e,3,6,"button",7)}if(2&t){const n=x();Li(n.inputStyleClass),T("value",n.inputFieldValue)("readonly",n.readonlyInput)("ngStyle",n.inputStyle)("placeholder",n.placeholder||"")("disabled",n.disabled)("ngClass","p-inputtext p-component"),vt("id",n.inputId)("name",n.name)("required",n.required)("aria-required",n.required)("aria-expanded",n.overlayVisible)("aria-controls",n.panelId)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("tabindex",n.tabindex)("inputmode",n.touchUI?"off":null),b(2),T("ngIf",n.showClear&&!n.disabled&&null!=n.value),b(1),T("ngIf",n.showIcon)}}function x0e(t,e){1&t&&za(0)}function P0e(t,e){1&t&&ue(0,"ChevronLeftIcon",37),2&t&&T("styleClass","p-datepicker-prev-icon")}function D0e(t,e){}function k0e(t,e){1&t&&z(0,D0e,0,0,"ng-template")}function M0e(t,e){if(1&t&&(A(0,"span",38),z(1,k0e,1,0,null,12),M()),2&t){const n=x(5);b(1),T("ngTemplateOutlet",n.previousIconTemplate)}}function O0e(t,e){if(1&t){const n=Me();A(0,"button",35),fe("keydown",function(i){return J(n),ee(x(4).onContainerButtonKeydown(i))})("click",function(i){return J(n),ee(x(4).onPrevButtonClick(i))}),z(1,P0e,1,1,"ChevronLeftIcon",32),z(2,M0e,2,1,"span",36),M()}if(2&t){const n=x(4);vt("aria-label",n.prevIconAriaLabel),b(1),T("ngIf",!n.previousIconTemplate),b(1),T("ngIf",n.previousIconTemplate)}}function R0e(t,e){if(1&t){const n=Me();A(0,"button",39),fe("click",function(i){return J(n),ee(x(4).switchToMonthView(i))})("keydown",function(i){return J(n),ee(x(4).onContainerButtonKeydown(i))}),ce(1),M()}if(2&t){const n=x().$implicit,r=x(3);T("disabled",r.switchViewButtonDisabled()),vt("aria-label",r.getTranslation("chooseMonth")),b(1),Ge(" ",r.getMonthName(n.month)," ")}}function N0e(t,e){if(1&t){const n=Me();A(0,"button",40),fe("click",function(i){return J(n),ee(x(4).switchToYearView(i))})("keydown",function(i){return J(n),ee(x(4).onContainerButtonKeydown(i))}),ce(1),M()}if(2&t){const n=x().$implicit,r=x(3);T("disabled",r.switchViewButtonDisabled()),vt("aria-label",r.getTranslation("chooseYear")),b(1),Ge(" ",r.getYear(n)," ")}}function L0e(t,e){if(1&t&&(Tr(0),ce(1),Ir()),2&t){const n=x(5);b(1),ni("",n.yearPickerValues()[0]," - ",n.yearPickerValues()[n.yearPickerValues().length-1],"")}}function F0e(t,e){1&t&&za(0)}const fx=function(t){return{$implicit:t}};function V0e(t,e){if(1&t&&(A(0,"span",41),z(1,L0e,2,2,"ng-container",6),z(2,F0e,1,0,"ng-container",42),M()),2&t){const n=x(4);b(1),T("ngIf",!n.decadeTemplate),b(1),T("ngTemplateOutlet",n.decadeTemplate)("ngTemplateOutletContext",$e(3,fx,n.yearPickerValues))}}function B0e(t,e){1&t&&ue(0,"ChevronRightIcon",37),2&t&&T("styleClass","p-datepicker-next-icon")}function $0e(t,e){}function z0e(t,e){1&t&&z(0,$0e,0,0,"ng-template")}function U0e(t,e){if(1&t&&(A(0,"span",43),z(1,z0e,1,0,null,12),M()),2&t){const n=x(4);b(1),T("ngTemplateOutlet",n.nextIconTemplate)}}function H0e(t,e){if(1&t&&(A(0,"th",49)(1,"span"),ce(2),M()()),2&t){const n=x(5);b(2),je(n.getTranslation("weekHeader"))}}function j0e(t,e){if(1&t&&(A(0,"th",50)(1,"span"),ce(2),M()()),2&t){const n=e.$implicit;b(2),je(n)}}function G0e(t,e){if(1&t&&(A(0,"td",53)(1,"span",54),ce(2),M()()),2&t){const n=x().index,r=x(2).$implicit;b(2),Ge(" ",r.weekNumbers[n]," ")}}function q0e(t,e){if(1&t&&(Tr(0),ce(1),Ir()),2&t){const n=x(2).$implicit;b(1),je(n.day)}}function W0e(t,e){1&t&&za(0)}function Y0e(t,e){if(1&t&&(Tr(0),z(1,W0e,1,0,"ng-container",42),Ir()),2&t){const n=x(2).$implicit,r=x(6);b(1),T("ngTemplateOutlet",r.dateTemplate)("ngTemplateOutletContext",$e(2,fx,n))}}function K0e(t,e){1&t&&za(0)}function Q0e(t,e){if(1&t&&(Tr(0),z(1,K0e,1,0,"ng-container",42),Ir()),2&t){const n=x(2).$implicit,r=x(6);b(1),T("ngTemplateOutlet",r.disabledDateTemplate)("ngTemplateOutletContext",$e(2,fx,n))}}function X0e(t,e){if(1&t&&(A(0,"div",57),ce(1),M()),2&t){const n=x(2).$implicit;b(1),Ge(" ",n.day," ")}}const hx=function(t,e){return{"p-highlight":t,"p-disabled":e}};function Z0e(t,e){if(1&t){const n=Me();Tr(0),A(1,"span",55),fe("click",function(i){J(n);const o=x().$implicit;return ee(x(6).onDateSelect(i,o))})("keydown",function(i){J(n);const o=x().$implicit,s=x(3).index;return ee(x(3).onDateCellKeydown(i,o,s))}),z(2,q0e,2,1,"ng-container",6),z(3,Y0e,2,4,"ng-container",6),z(4,Q0e,2,4,"ng-container",6),M(),z(5,X0e,2,1,"div",56),Ir()}if(2&t){const n=x().$implicit,r=x(6);b(1),T("ngClass",ds(5,hx,r.isSelected(n)&&n.selectable,!n.selectable)),b(1),T("ngIf",!r.dateTemplate&&(n.selectable||!r.disabledDateTemplate)),b(1),T("ngIf",n.selectable||!r.disabledDateTemplate),b(1),T("ngIf",!n.selectable),b(1),T("ngIf",r.isSelected(n))}}const J0e=function(t,e){return{"p-datepicker-other-month":t,"p-datepicker-today":e}};function ebe(t,e){if(1&t&&(A(0,"td",15),z(1,Z0e,6,8,"ng-container",6),M()),2&t){const n=e.$implicit,r=x(6);T("ngClass",ds(3,J0e,n.otherMonth,n.today)),vt("aria-label",n.day),b(1),T("ngIf",!n.otherMonth||r.showOtherMonths)}}function tbe(t,e){if(1&t&&(A(0,"tr"),z(1,G0e,3,1,"td",51),z(2,ebe,2,6,"td",52),M()),2&t){const n=e.$implicit,r=x(5);b(1),T("ngIf",r.showWeek),b(1),T("ngForOf",n)}}function nbe(t,e){if(1&t&&(A(0,"div",44)(1,"table",45)(2,"thead")(3,"tr"),z(4,H0e,3,1,"th",46),z(5,j0e,3,1,"th",47),M()(),A(6,"tbody"),z(7,tbe,3,2,"tr",48),M()()()),2&t){const n=x().$implicit,r=x(3);b(4),T("ngIf",r.showWeek),b(1),T("ngForOf",r.weekDays),b(2),T("ngForOf",n.dates)}}function rbe(t,e){if(1&t){const n=Me();A(0,"div",24)(1,"div",25),z(2,O0e,3,3,"button",26),A(3,"div",27),z(4,R0e,2,3,"button",28),z(5,N0e,2,3,"button",29),z(6,V0e,3,5,"span",30),M(),A(7,"button",31),fe("keydown",function(i){return J(n),ee(x(3).onContainerButtonKeydown(i))})("click",function(i){return J(n),ee(x(3).onNextButtonClick(i))}),z(8,B0e,1,1,"ChevronRightIcon",32),z(9,U0e,2,1,"span",33),M()(),z(10,nbe,8,3,"div",34),M()}if(2&t){const n=e.index,r=x(3);b(2),T("ngIf",0===n),b(2),T("ngIf","date"===r.currentView),b(1),T("ngIf","year"!==r.currentView),b(1),T("ngIf","year"===r.currentView),b(1),Xn("display",1===r.numberOfMonths||n===r.numberOfMonths-1?"inline-flex":"none"),vt("aria-label",r.nextIconAriaLabel),b(1),T("ngIf",!r.nextIconTemplate),b(1),T("ngIf",r.nextIconTemplate),b(1),T("ngIf","date"===r.currentView)}}function ibe(t,e){if(1&t&&(A(0,"div",57),ce(1),M()),2&t){const n=x().$implicit;b(1),Ge(" ",n," ")}}function obe(t,e){if(1&t){const n=Me();A(0,"span",60),fe("click",function(i){const s=J(n).index;return ee(x(4).onMonthSelect(i,s))})("keydown",function(i){const s=J(n).index;return ee(x(4).onMonthCellKeydown(i,s))}),ce(1),z(2,ibe,2,1,"div",56),M()}if(2&t){const n=e.$implicit,r=e.index,i=x(4);T("ngClass",ds(3,hx,i.isMonthSelected(r),i.isMonthDisabled(r))),b(1),Ge(" ",n," "),b(1),T("ngIf",i.isMonthSelected(r))}}function sbe(t,e){if(1&t&&(A(0,"div",58),z(1,obe,3,6,"span",59),M()),2&t){const n=x(3);b(1),T("ngForOf",n.monthPickerValues())}}function abe(t,e){if(1&t&&(A(0,"div",57),ce(1),M()),2&t){const n=x().$implicit;b(1),Ge(" ",n," ")}}function lbe(t,e){if(1&t){const n=Me();A(0,"span",63),fe("click",function(i){const s=J(n).$implicit;return ee(x(4).onYearSelect(i,s))})("keydown",function(i){const s=J(n).$implicit;return ee(x(4).onYearCellKeydown(i,s))}),ce(1),z(2,abe,2,1,"div",56),M()}if(2&t){const n=e.$implicit,r=x(4);T("ngClass",ds(3,hx,r.isYearSelected(n),r.isYearDisabled(n))),b(1),Ge(" ",n," "),b(1),T("ngIf",r.isYearSelected(n))}}function cbe(t,e){if(1&t&&(A(0,"div",61),z(1,lbe,3,6,"span",62),M()),2&t){const n=x(3);b(1),T("ngForOf",n.yearPickerValues())}}function ube(t,e){if(1&t&&(Tr(0),A(1,"div",20),z(2,rbe,11,10,"div",21),M(),z(3,sbe,2,1,"div",22),z(4,cbe,2,1,"div",23),Ir()),2&t){const n=x(2);b(2),T("ngForOf",n.months),b(1),T("ngIf","month"===n.currentView),b(1),T("ngIf","year"===n.currentView)}}function dbe(t,e){1&t&&ue(0,"ChevronUpIcon")}function fbe(t,e){}function hbe(t,e){1&t&&z(0,fbe,0,0,"ng-template")}function pbe(t,e){1&t&&(Tr(0),ce(1,"0"),Ir())}function gbe(t,e){1&t&&ue(0,"ChevronDownIcon")}function mbe(t,e){}function _be(t,e){1&t&&z(0,mbe,0,0,"ng-template")}function vbe(t,e){1&t&&ue(0,"ChevronUpIcon")}function ybe(t,e){}function bbe(t,e){1&t&&z(0,ybe,0,0,"ng-template")}function wbe(t,e){1&t&&(Tr(0),ce(1,"0"),Ir())}function Cbe(t,e){1&t&&ue(0,"ChevronDownIcon")}function Ebe(t,e){}function Sbe(t,e){1&t&&z(0,Ebe,0,0,"ng-template")}function Tbe(t,e){if(1&t&&(A(0,"div",67)(1,"span"),ce(2),M()()),2&t){const n=x(3);b(2),je(n.timeSeparator)}}function Ibe(t,e){1&t&&ue(0,"ChevronUpIcon")}function Abe(t,e){}function xbe(t,e){1&t&&z(0,Abe,0,0,"ng-template")}function Pbe(t,e){1&t&&(Tr(0),ce(1,"0"),Ir())}function Dbe(t,e){1&t&&ue(0,"ChevronDownIcon")}function kbe(t,e){}function Mbe(t,e){1&t&&z(0,kbe,0,0,"ng-template")}function Obe(t,e){if(1&t){const n=Me();A(0,"div",72)(1,"button",66),fe("keydown",function(i){return J(n),ee(x(3).onContainerButtonKeydown(i))})("keydown.enter",function(i){return J(n),ee(x(3).incrementSecond(i))})("keydown.space",function(i){return J(n),ee(x(3).incrementSecond(i))})("mousedown",function(i){return J(n),ee(x(3).onTimePickerElementMouseDown(i,2,1))})("mouseup",function(i){return J(n),ee(x(3).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return J(n),ee(x(3).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return J(n),ee(x(3).onTimePickerElementMouseUp(i))})("mouseleave",function(){return J(n),ee(x(3).onTimePickerElementMouseLeave())}),z(2,Ibe,1,0,"ChevronUpIcon",6),z(3,xbe,1,0,null,12),M(),A(4,"span"),z(5,Pbe,2,0,"ng-container",6),ce(6),M(),A(7,"button",66),fe("keydown",function(i){return J(n),ee(x(3).onContainerButtonKeydown(i))})("keydown.enter",function(i){return J(n),ee(x(3).decrementSecond(i))})("keydown.space",function(i){return J(n),ee(x(3).decrementSecond(i))})("mousedown",function(i){return J(n),ee(x(3).onTimePickerElementMouseDown(i,2,-1))})("mouseup",function(i){return J(n),ee(x(3).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return J(n),ee(x(3).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return J(n),ee(x(3).onTimePickerElementMouseUp(i))})("mouseleave",function(){return J(n),ee(x(3).onTimePickerElementMouseLeave())}),z(8,Dbe,1,0,"ChevronDownIcon",6),z(9,Mbe,1,0,null,12),M()()}if(2&t){const n=x(3);b(1),vt("aria-label",n.getTranslation("nextSecond")),b(1),T("ngIf",!n.incrementIconTemplate),b(1),T("ngTemplateOutlet",n.incrementIconTemplate),b(2),T("ngIf",n.currentSecond<10),b(1),je(n.currentSecond),b(1),vt("aria-label",n.getTranslation("prevSecond")),b(1),T("ngIf",!n.decrementIconTemplate),b(1),T("ngTemplateOutlet",n.decrementIconTemplate)}}function Rbe(t,e){1&t&&ue(0,"ChevronUpIcon")}function Nbe(t,e){}function Lbe(t,e){1&t&&z(0,Nbe,0,0,"ng-template")}function Fbe(t,e){1&t&&ue(0,"ChevronDownIcon")}function Vbe(t,e){}function Bbe(t,e){1&t&&z(0,Vbe,0,0,"ng-template")}function $be(t,e){if(1&t){const n=Me();A(0,"div",73)(1,"button",74),fe("keydown",function(i){return J(n),ee(x(3).onContainerButtonKeydown(i))})("click",function(i){return J(n),ee(x(3).toggleAMPM(i))})("keydown.enter",function(i){return J(n),ee(x(3).toggleAMPM(i))}),z(2,Rbe,1,0,"ChevronUpIcon",6),z(3,Lbe,1,0,null,12),M(),A(4,"span"),ce(5),M(),A(6,"button",74),fe("keydown",function(i){return J(n),ee(x(3).onContainerButtonKeydown(i))})("click",function(i){return J(n),ee(x(3).toggleAMPM(i))})("keydown.enter",function(i){return J(n),ee(x(3).toggleAMPM(i))}),z(7,Fbe,1,0,"ChevronDownIcon",6),z(8,Bbe,1,0,null,12),M()()}if(2&t){const n=x(3);b(1),vt("aria-label",n.getTranslation("am")),b(1),T("ngIf",!n.incrementIconTemplate),b(1),T("ngTemplateOutlet",n.incrementIconTemplate),b(2),je(n.pm?"PM":"AM"),b(1),vt("aria-label",n.getTranslation("pm")),b(1),T("ngIf",!n.decrementIconTemplate),b(1),T("ngTemplateOutlet",n.decrementIconTemplate)}}function zbe(t,e){if(1&t){const n=Me();A(0,"div",64)(1,"div",65)(2,"button",66),fe("keydown",function(i){return J(n),ee(x(2).onContainerButtonKeydown(i))})("keydown.enter",function(i){return J(n),ee(x(2).incrementHour(i))})("keydown.space",function(i){return J(n),ee(x(2).incrementHour(i))})("mousedown",function(i){return J(n),ee(x(2).onTimePickerElementMouseDown(i,0,1))})("mouseup",function(i){return J(n),ee(x(2).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return J(n),ee(x(2).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return J(n),ee(x(2).onTimePickerElementMouseUp(i))})("mouseleave",function(){return J(n),ee(x(2).onTimePickerElementMouseLeave())}),z(3,dbe,1,0,"ChevronUpIcon",6),z(4,hbe,1,0,null,12),M(),A(5,"span"),z(6,pbe,2,0,"ng-container",6),ce(7),M(),A(8,"button",66),fe("keydown",function(i){return J(n),ee(x(2).onContainerButtonKeydown(i))})("keydown.enter",function(i){return J(n),ee(x(2).decrementHour(i))})("keydown.space",function(i){return J(n),ee(x(2).decrementHour(i))})("mousedown",function(i){return J(n),ee(x(2).onTimePickerElementMouseDown(i,0,-1))})("mouseup",function(i){return J(n),ee(x(2).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return J(n),ee(x(2).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return J(n),ee(x(2).onTimePickerElementMouseUp(i))})("mouseleave",function(){return J(n),ee(x(2).onTimePickerElementMouseLeave())}),z(9,gbe,1,0,"ChevronDownIcon",6),z(10,_be,1,0,null,12),M()(),A(11,"div",67)(12,"span"),ce(13),M()(),A(14,"div",68)(15,"button",66),fe("keydown",function(i){return J(n),ee(x(2).onContainerButtonKeydown(i))})("keydown.enter",function(i){return J(n),ee(x(2).incrementMinute(i))})("keydown.space",function(i){return J(n),ee(x(2).incrementMinute(i))})("mousedown",function(i){return J(n),ee(x(2).onTimePickerElementMouseDown(i,1,1))})("mouseup",function(i){return J(n),ee(x(2).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return J(n),ee(x(2).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return J(n),ee(x(2).onTimePickerElementMouseUp(i))})("mouseleave",function(){return J(n),ee(x(2).onTimePickerElementMouseLeave())}),z(16,vbe,1,0,"ChevronUpIcon",6),z(17,bbe,1,0,null,12),M(),A(18,"span"),z(19,wbe,2,0,"ng-container",6),ce(20),M(),A(21,"button",66),fe("keydown",function(i){return J(n),ee(x(2).onContainerButtonKeydown(i))})("keydown.enter",function(i){return J(n),ee(x(2).decrementMinute(i))})("keydown.space",function(i){return J(n),ee(x(2).decrementMinute(i))})("mousedown",function(i){return J(n),ee(x(2).onTimePickerElementMouseDown(i,1,-1))})("mouseup",function(i){return J(n),ee(x(2).onTimePickerElementMouseUp(i))})("keyup.enter",function(i){return J(n),ee(x(2).onTimePickerElementMouseUp(i))})("keyup.space",function(i){return J(n),ee(x(2).onTimePickerElementMouseUp(i))})("mouseleave",function(){return J(n),ee(x(2).onTimePickerElementMouseLeave())}),z(22,Cbe,1,0,"ChevronDownIcon",6),z(23,Sbe,1,0,null,12),M()(),z(24,Tbe,3,1,"div",69),z(25,Obe,10,8,"div",70),z(26,$be,9,7,"div",71),M()}if(2&t){const n=x(2);b(2),vt("aria-label",n.getTranslation("nextHour")),b(1),T("ngIf",!n.incrementIconTemplate),b(1),T("ngTemplateOutlet",n.incrementIconTemplate),b(2),T("ngIf",n.currentHour<10),b(1),je(n.currentHour),b(1),vt("aria-label",n.getTranslation("prevHour")),b(1),T("ngIf",!n.decrementIconTemplate),b(1),T("ngTemplateOutlet",n.decrementIconTemplate),b(3),je(n.timeSeparator),b(2),vt("aria-label",n.getTranslation("nextMinute")),b(1),T("ngIf",!n.incrementIconTemplate),b(1),T("ngTemplateOutlet",n.incrementIconTemplate),b(2),T("ngIf",n.currentMinute<10),b(1),je(n.currentMinute),b(1),vt("aria-label",n.getTranslation("prevMinute")),b(1),T("ngIf",!n.decrementIconTemplate),b(1),T("ngTemplateOutlet",n.decrementIconTemplate),b(1),T("ngIf",n.showSeconds),b(1),T("ngIf",n.showSeconds),b(1),T("ngIf","12"==n.hourFormat)}}const XB=function(t){return[t]};function Ube(t,e){if(1&t){const n=Me();A(0,"div",75)(1,"button",76),fe("keydown",function(i){return J(n),ee(x(2).onContainerButtonKeydown(i))})("click",function(i){return J(n),ee(x(2).onTodayButtonClick(i))}),M(),A(2,"button",76),fe("keydown",function(i){return J(n),ee(x(2).onContainerButtonKeydown(i))})("click",function(i){return J(n),ee(x(2).onClearButtonClick(i))}),M()()}if(2&t){const n=x(2);b(1),T("label",n.getTranslation("today"))("ngClass",$e(4,XB,n.todayButtonStyleClass)),b(1),T("label",n.getTranslation("clear"))("ngClass",$e(6,XB,n.clearButtonStyleClass))}}function Hbe(t,e){1&t&&za(0)}const jbe=function(t,e,n,r,i,o){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":e,"p-datepicker-timeonly":n,"p-datepicker-multiple-month":r,"p-datepicker-monthpicker":i,"p-datepicker-touch-ui":o}},ZB=function(t,e){return{showTransitionParams:t,hideTransitionParams:e}},Gbe=function(t){return{value:"visibleTouchUI",params:t}},qbe=function(t){return{value:"visible",params:t}};function Wbe(t,e){if(1&t){const n=Me();A(0,"div",16,17),fe("@overlayAnimation.start",function(i){return J(n),ee(x().onOverlayAnimationStart(i))})("@overlayAnimation.done",function(i){return J(n),ee(x().onOverlayAnimationDone(i))})("click",function(i){return J(n),ee(x().onOverlayClick(i))}),zs(2),z(3,x0e,1,0,"ng-container",12),z(4,ube,5,3,"ng-container",6),z(5,zbe,27,20,"div",18),z(6,Ube,3,8,"div",19),zs(7,1),z(8,Hbe,1,0,"ng-container",12),M()}if(2&t){const n=x();Li(n.panelStyleClass),T("ngStyle",n.panelStyle)("ngClass",function OO(t,e,n,r,i,o,s,a,l){const c=Br()+t,u=pe(),d=Ni(u,c,n,r,i,o);return $a(u,c+4,s,a)||d?xo(u,c+6,l?e.call(l,n,r,i,o,s,a):e(n,r,i,o,s,a)):zd(u,c+6)}(14,jbe,n.inline,n.disabled,n.timeOnly,n.numberOfMonths>1,"month"===n.view,n.touchUI))("@overlayAnimation",n.touchUI?$e(24,Gbe,ds(21,ZB,n.showTransitionOptions,n.hideTransitionOptions)):$e(29,qbe,ds(26,ZB,n.showTransitionOptions,n.hideTransitionOptions)))("@.disabled",!0===n.inline),vt("aria-label",n.getTranslation("chooseDate"))("role",n.inline?null:"dialog")("aria-modal",n.inline?null:"true"),b(3),T("ngTemplateOutlet",n.headerTemplate),b(1),T("ngIf",!n.timeOnly),b(1),T("ngIf",(n.showTime||n.timeOnly)&&"date"===n.currentView),b(1),T("ngIf",n.showButtonBar),b(2),T("ngTemplateOutlet",n.footerTemplate)}}const Ybe=[[["p-header"]],[["p-footer"]]],Kbe=function(t,e,n,r){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":e,"p-calendar-disabled":n,"p-focus":r}},Qbe=["p-header","p-footer"],Xbe={provide:fo,useExisting:Wt(()=>px),multi:!0};let px=(()=>{var t;class e{get minDate(){return this._minDate}set minDate(r){this._minDate=r,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(r){this._maxDate=r,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(r){this._disabledDates=r,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(r){this._disabledDays=r,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(r){if(this._yearRange=r,r){const i=r.split(":"),o=parseInt(i[0]),s=parseInt(i[1]);this.populateYearOptions(o,s)}}get showTime(){return this._showTime}set showTime(r){this._showTime=r,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(r){this._responsiveOptions=r,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(r){this._numberOfMonths=r,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(r){this._firstDayOfWeek=r,this.createWeekDays()}set locale(r){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(r){this._view=r,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(r){if(this._defaultDate=r,this.initialized){const i=r||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}set content(r){this.contentViewChild=r,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.getTranslation("year"===this.currentView?"prevDecade":"month"===this.currentView?"prevYear":"prevMonth")}get nextIconAriaLabel(){return this.getTranslation("year"===this.currentView?"nextDecade":"month"===this.currentView?"nextYear":"nextMonth")}constructor(r,i,o,s,a,l,c){B(this,"document",void 0),B(this,"el",void 0),B(this,"renderer",void 0),B(this,"cd",void 0),B(this,"zone",void 0),B(this,"config",void 0),B(this,"overlayService",void 0),B(this,"style",void 0),B(this,"styleClass",void 0),B(this,"inputStyle",void 0),B(this,"inputId",void 0),B(this,"name",void 0),B(this,"inputStyleClass",void 0),B(this,"placeholder",void 0),B(this,"ariaLabelledBy",void 0),B(this,"ariaLabel",void 0),B(this,"iconAriaLabel",void 0),B(this,"disabled",void 0),B(this,"dateFormat",void 0),B(this,"multipleSeparator",","),B(this,"rangeSeparator","-"),B(this,"inline",!1),B(this,"showOtherMonths",!0),B(this,"selectOtherMonths",void 0),B(this,"showIcon",void 0),B(this,"icon",void 0),B(this,"appendTo",void 0),B(this,"readonlyInput",void 0),B(this,"shortYearCutoff","+10"),B(this,"monthNavigator",void 0),B(this,"yearNavigator",void 0),B(this,"hourFormat","24"),B(this,"timeOnly",void 0),B(this,"stepHour",1),B(this,"stepMinute",1),B(this,"stepSecond",1),B(this,"showSeconds",!1),B(this,"required",void 0),B(this,"showOnFocus",!0),B(this,"showWeek",!1),B(this,"showClear",!1),B(this,"dataType","date"),B(this,"selectionMode","single"),B(this,"maxDateCount",void 0),B(this,"showButtonBar",void 0),B(this,"todayButtonStyleClass","p-button-text"),B(this,"clearButtonStyleClass","p-button-text"),B(this,"autoZIndex",!0),B(this,"baseZIndex",0),B(this,"panelStyleClass",void 0),B(this,"panelStyle",void 0),B(this,"keepInvalid",!1),B(this,"hideOnDateTimeSelect",!0),B(this,"touchUI",void 0),B(this,"timeSeparator",":"),B(this,"focusTrap",!0),B(this,"showTransitionOptions",".12s cubic-bezier(0, 0, 0.2, 1)"),B(this,"hideTransitionOptions",".1s linear"),B(this,"tabindex",void 0),B(this,"onFocus",new de),B(this,"onBlur",new de),B(this,"onClose",new de),B(this,"onSelect",new de),B(this,"onClear",new de),B(this,"onInput",new de),B(this,"onTodayClick",new de),B(this,"onClearClick",new de),B(this,"onMonthChange",new de),B(this,"onYearChange",new de),B(this,"onClickOutside",new de),B(this,"onShow",new de),B(this,"templates",void 0),B(this,"containerViewChild",void 0),B(this,"inputfieldViewChild",void 0),B(this,"contentViewChild",void 0),B(this,"value",void 0),B(this,"dates",void 0),B(this,"months",void 0),B(this,"weekDays",void 0),B(this,"currentMonth",void 0),B(this,"currentYear",void 0),B(this,"currentHour",void 0),B(this,"currentMinute",void 0),B(this,"currentSecond",void 0),B(this,"pm",void 0),B(this,"mask",void 0),B(this,"maskClickListener",void 0),B(this,"overlay",void 0),B(this,"responsiveStyleElement",void 0),B(this,"overlayVisible",void 0),B(this,"onModelChange",()=>{}),B(this,"onModelTouched",()=>{}),B(this,"calendarElement",void 0),B(this,"timePickerTimer",void 0),B(this,"documentClickListener",void 0),B(this,"animationEndListener",void 0),B(this,"ticksTo1970",void 0),B(this,"yearOptions",void 0),B(this,"focus",void 0),B(this,"isKeydown",void 0),B(this,"filled",void 0),B(this,"inputFieldValue",null),B(this,"_minDate",void 0),B(this,"_maxDate",void 0),B(this,"_showTime",void 0),B(this,"_yearRange",void 0),B(this,"preventDocumentListener",void 0),B(this,"dateTemplate",void 0),B(this,"headerTemplate",void 0),B(this,"footerTemplate",void 0),B(this,"disabledDateTemplate",void 0),B(this,"decadeTemplate",void 0),B(this,"previousIconTemplate",void 0),B(this,"nextIconTemplate",void 0),B(this,"triggerIconTemplate",void 0),B(this,"clearIconTemplate",void 0),B(this,"decrementIconTemplate",void 0),B(this,"incrementIconTemplate",void 0),B(this,"_disabledDates",void 0),B(this,"_disabledDays",void 0),B(this,"selectElement",void 0),B(this,"todayElement",void 0),B(this,"focusElement",void 0),B(this,"scrollHandler",void 0),B(this,"documentResizeListener",void 0),B(this,"navigationState",null),B(this,"isMonthNavigate",void 0),B(this,"initialized",void 0),B(this,"translationSubscription",void 0),B(this,"_locale",void 0),B(this,"_responsiveOptions",void 0),B(this,"currentView",void 0),B(this,"attributeSelector",void 0),B(this,"panelId",void 0),B(this,"_numberOfMonths",1),B(this,"_firstDayOfWeek",void 0),B(this,"_view","date"),B(this,"preventFocus",void 0),B(this,"_defaultDate",void 0),B(this,"window",void 0),B(this,"convertTo24Hour",function(u,d){return"12"==this.hourFormat?12===u?d?12:0:d?u+12:u:u}),this.document=r,this.el=i,this.renderer=o,this.cd=s,this.zone=a,this.config=l,this.overlayService=c,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=UB(),this.panelId=this.attributeSelector+"_panel";const r=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=r.getMonth(),this.currentYear=r.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(r),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.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(r=>{switch(r.getType()){case"date":default:this.dateTemplate=r.template;break;case"decade":this.decadeTemplate=r.template;break;case"disabledDate":this.disabledDateTemplate=r.template;break;case"header":this.headerTemplate=r.template;break;case"previousicon":this.previousIconTemplate=r.template;break;case"nexticon":this.nextIconTemplate=r.template;break;case"triggericon":this.triggerIconTemplate=r.template;break;case"clearicon":this.clearIconTemplate=r.template;break;case"decrementicon":this.decrementIconTemplate=r.template;break;case"incrementicon":this.incrementIconTemplate=r.template;break;case"footer":this.footerTemplate=r.template}})}ngAfterViewInit(){var r;this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.disabled&&(this.initFocusableCell(),1===this.numberOfMonths))&&(this.contentViewChild.nativeElement.style.width=Le.getOuterWidth(null===(r=this.containerViewChild)||void 0===r?void 0:r.nativeElement)+"px")}getTranslation(r){return this.config.getTranslation(r)}populateYearOptions(r,i){this.yearOptions=[];for(let o=r;o<=i;o++)this.yearOptions.push(o)}createWeekDays(){this.weekDays=[];let r=this.getFirstDateOfWeek(),i=this.getTranslation(qo.DAY_NAMES_MIN);for(let o=0;o<7;o++)this.weekDays.push(i[r]),r=6==r?0:++r}monthPickerValues(){let r=[];for(let i=0;i<=11;i++)r.push(this.config.getTranslation("monthNamesShort")[i]);return r}yearPickerValues(){let r=[],i=this.currentYear-this.currentYear%10;for(let o=0;o<10;o++)r.push(i+o);return r}createMonths(r,i){this.months=this.months=[];for(let o=0;o<this.numberOfMonths;o++){let s=r+o,a=i;s>11&&(s=s%11-1,a=i+1),this.months.push(this.createMonth(s,a))}}getWeekNumber(r){let i=new Date(r.getTime());i.setDate(i.getDate()+4-(i.getDay()||7));let o=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((o-i.getTime())/864e5)/7)+1}createMonth(r,i){let o=[],s=this.getFirstDayOfMonthIndex(r,i),a=this.getDaysCountInMonth(r,i),l=this.getDaysCountInPrevMonth(r,i),c=1,u=new Date,d=[],h=Math.ceil((a+s)/7);for(let p=0;p<h;p++){let m=[];if(0==p){for(let y=l-s+1;y<=l;y++){let E=this.getPreviousMonthAndYear(r,i);m.push({day:y,month:E.month,year:E.year,otherMonth:!0,today:this.isToday(u,y,E.month,E.year),selectable:this.isSelectable(y,E.month,E.year,!0)})}let _=7-m.length;for(let y=0;y<_;y++)m.push({day:c,month:r,year:i,today:this.isToday(u,c,r,i),selectable:this.isSelectable(c,r,i,!1)}),c++}else for(let _=0;_<7;_++){if(c>a){let y=this.getNextMonthAndYear(r,i);m.push({day:c-a,month:y.month,year:y.year,otherMonth:!0,today:this.isToday(u,c-a,y.month,y.year),selectable:this.isSelectable(c-a,y.month,y.year,!0)})}else m.push({day:c,month:r,year:i,today:this.isToday(u,c,r,i),selectable:this.isSelectable(c,r,i,!1)});c++}this.showWeek&&d.push(this.getWeekNumber(new Date(m[0].year,m[0].month,m[0].day))),o.push(m)}return{month:r,year:i,dates:o,weekNumbers:d}}initTime(r){this.pm=r.getHours()>11,this.showTime?(this.currentMinute=r.getMinutes(),this.currentSecond=r.getSeconds(),this.setCurrentHourPM(r.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(r){this.disabled?r.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(r){this.disabled?r.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(){this.currentYear--;let r=this.yearOptions;if(this.yearNavigator&&this.currentYear<r[0]){let i=r[r.length-1]-r[0];this.populateYearOptions(r[0]-i,r[r.length-1]-i)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){this.currentYear++;let r=this.yearOptions;if(this.yearNavigator&&this.currentYear>r[r.length-1]){let i=r[r.length-1]-r[0];this.populateYearOptions(r[0]+i,r[r.length-1]+i)}}switchToMonthView(r){this.setCurrentView("month"),r.preventDefault()}switchToYearView(r){this.setCurrentView("year"),r.preventDefault()}onDateSelect(r,i){!this.disabled&&i.selectable?(this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((o,s)=>!this.isDateEquals(o,i)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{r.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),r.preventDefault()):r.preventDefault()}shouldSelectDate(r){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(r,i){"month"===this.view?this.onDateSelect(r,{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(r,i){"year"===this.view?this.onDateSelect(r,{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 r="";if(this.value)if(this.isSingleSelection())r=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i<this.value.length;i++)r+=this.formatDateTime(this.value[i]),i!==this.value.length-1&&(r+=this.multipleSeparator+" ");else if(this.isRangeSelection()&&this.value&&this.value.length){let o=this.value[1];r=this.formatDateTime(this.value[0]),o&&(r+=" "+this.rangeSeparator+" "+this.formatDateTime(o))}this.inputFieldValue=r,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(r){let i=this.keepInvalid?r:null;return this.isValidDate(r)&&(this.timeOnly?i=this.formatTime(r):(i=this.formatDate(r,this.getDateFormat()),this.showTime&&(i+=" "+this.formatTime(r)))),i}setCurrentHourPM(r){"12"==this.hourFormat?(this.pm=r>11,this.currentHour=r>=12?12==r?12:r-12:0==r?12:r):this.currentHour=r}setCurrentView(r){this.currentView=r,this.cd.detectChanges(),this.alignOverlay()}selectDate(r){let i=new Date(r.year,r.month,r.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 o=this.value[0],s=this.value[1];!s&&i.getTime()>=o.getTime()?s=i:(o=i,s=null),this.updateModel([o,s])}else this.updateModel([i,null]);this.onSelect.emit(i)}updateModel(r){if(this.value=r,"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;Array.isArray(this.value)&&(i=this.value.map(o=>this.formatDateTime(o))),this.onModelChange(i)}}getFirstDayOfMonthIndex(r,i){let o=new Date;o.setDate(1),o.setMonth(r),o.setFullYear(i);let s=o.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(r,i){return 32-this.daylightSavingAdjust(new Date(i,r,32)).getDate()}getDaysCountInPrevMonth(r,i){let o=this.getPreviousMonthAndYear(r,i);return this.getDaysCountInMonth(o.month,o.year)}getPreviousMonthAndYear(r,i){let o,s;return 0===r?(o=11,s=i-1):(o=r-1,s=i),{month:o,year:s}}getNextMonthAndYear(r,i){let o,s;return 11===r?(o=0,s=i+1):(o=r+1,s=i),{month:o,year:s}}getSundayIndex(){let r=this.getFirstDateOfWeek();return r>0?7-r:0}isSelected(r){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,r);if(this.isMultipleSelection()){let i=!1;for(let o of this.value)if(i=this.isDateEquals(o,r),i)break;return i}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],r)||this.isDateEquals(this.value[1],r)||this.isDateBetween(this.value[0],this.value[1],r):this.isDateEquals(this.value[0],r):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(r){if(this.isComparable()&&!this.isMultipleSelection()){const[i,o]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,r,1);return s>=i&&s<=(null!=o?o:i)}return!1}isMonthDisabled(r){for(let i=1;i<this.getDaysCountInMonth(r,this.currentYear)+1;i++)if(this.isSelectable(i,r,this.currentYear,!1))return!1;return!0}isYearDisabled(r){return!this.isSelectable(1,this.currentMonth,r,!1)}isYearSelected(r){if(this.isComparable()){let i=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&i.getFullYear()===r}return!1}isDateEquals(r,i){return!(!r||!Wo.isDate(r))&&r.getDate()===i.day&&r.getMonth()===i.month&&r.getFullYear()===i.year}isDateBetween(r,i,o){if(Wo.isDate(r)&&Wo.isDate(i)){let a=new Date(o.year,o.month,o.day);return r.getTime()<=a.getTime()&&i.getTime()>=a.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(r,i,o,s){return r.getDate()===i&&r.getMonth()===o&&r.getFullYear()===s}isSelectable(r,i,o,s){let a=!0,l=!0,c=!0,u=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>o||this.minDate.getFullYear()===o&&(this.minDate.getMonth()>i||this.minDate.getMonth()===i&&this.minDate.getDate()>r))&&(a=!1),this.maxDate&&(this.maxDate.getFullYear()<o||this.maxDate.getFullYear()===o&&(this.maxDate.getMonth()<i||this.maxDate.getMonth()===i&&this.maxDate.getDate()<r))&&(l=!1),this.disabledDates&&(c=!this.isDateDisabled(r,i,o)),this.disabledDays&&(u=!this.isDayDisabled(r,i,o)),a&&l&&c&&u)}isDateDisabled(r,i,o){if(this.disabledDates)for(let s of this.disabledDates)if(s.getFullYear()===o&&s.getMonth()===i&&s.getDate()===r)return!0;return!1}isDayDisabled(r,i,o){if(this.disabledDays){let a=new Date(o,i,r).getDay();return-1!==this.disabledDays.indexOf(a)}return!1}onInputFocus(r){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(r)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(r){this.focus=!1,this.onBlur.emit(r),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(r,i){this.overlayVisible?this.hideOverlay():(i.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(r){this.overlayService.add({originalEvent:r,target:this.el.nativeElement})}getMonthName(r){return this.config.getTranslation("monthNames")[r]}getYear(r){return"month"===this.currentView?this.currentYear:r.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(r){this.navigationState={backward:!0,button:!0},this.navBackward(r)}onNextButtonClick(r){this.navigationState={backward:!1,button:!0},this.navForward(r)}onContainerButtonKeydown(r){var i;switch(r.which){case 9:this.inline||this.trapFocus(r);break;case 27:null===(i=this.inputfieldViewChild)||void 0===i||i.nativeElement.focus(),this.overlayVisible=!1,r.preventDefault()}}onInputKeydown(r){if(this.isKeydown=!0,40===r.keyCode&&this.contentViewChild)this.trapFocus(r);else if(27===r.keyCode){var i;this.overlayVisible&&(null===(i=this.inputfieldViewChild)||void 0===i||i.nativeElement.focus(),this.overlayVisible=!1,r.preventDefault())}else 13===r.keyCode?this.overlayVisible&&(this.overlayVisible=!1,r.preventDefault()):9===r.keyCode&&this.contentViewChild&&(Le.getFocusableElements(this.contentViewChild.nativeElement).forEach(o=>o.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(r,i,o){const s=r.currentTarget,a=s.parentElement;switch(r.which){case 40:{s.tabIndex="-1";let c=Le.index(a),u=a.parentElement.nextElementSibling;u?Le.hasClass(u.children[c].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(r)):(u.children[c].children[0].tabIndex="0",u.children[c].children[0].focus()):(this.navigationState={backward:!1},this.navForward(r)),r.preventDefault();break}case 38:{s.tabIndex="-1";let c=Le.index(a),u=a.parentElement.previousElementSibling;if(u){let d=u.children[c].children[0];Le.hasClass(d,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(r)):(d.tabIndex="0",d.focus())}else this.navigationState={backward:!0},this.navBackward(r);r.preventDefault();break}case 37:{s.tabIndex="-1";let c=a.previousElementSibling;if(c){let u=c.children[0];Le.hasClass(u,"p-disabled")||Le.hasClass(u.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,o):(u.tabIndex="0",u.focus())}else this.navigateToMonth(!0,o);r.preventDefault();break}case 39:{s.tabIndex="-1";let c=a.nextElementSibling;if(c){let u=c.children[0];Le.hasClass(u,"p-disabled")?this.navigateToMonth(!1,o):(u.tabIndex="0",u.focus())}else this.navigateToMonth(!1,o);r.preventDefault();break}case 13:case 32:this.onDateSelect(r,i),r.preventDefault();break;case 27:var l;null===(l=this.inputfieldViewChild)||void 0===l||l.nativeElement.focus(),this.overlayVisible=!1,r.preventDefault();break;case 9:this.inline||this.trapFocus(r)}}onMonthCellKeydown(r,i){const o=r.currentTarget;switch(r.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,a=Le.index(o);let c=s[40===r.which?a+3:a-3];c&&(c.tabIndex="0",c.focus()),r.preventDefault();break}case 37:{o.tabIndex="-1";let c=o.previousElementSibling;c?(c.tabIndex="0",c.focus()):(this.navigationState={backward:!0},this.navBackward(r)),r.preventDefault();break}case 39:{o.tabIndex="-1";let c=o.nextElementSibling;c?(c.tabIndex="0",c.focus()):(this.navigationState={backward:!1},this.navForward(r)),r.preventDefault();break}case 13:case 32:this.onMonthSelect(r,i),r.preventDefault();break;case 27:var l;null===(l=this.inputfieldViewChild)||void 0===l||l.nativeElement.focus(),this.overlayVisible=!1,r.preventDefault();break;case 9:this.inline||this.trapFocus(r)}}onYearCellKeydown(r,i){const o=r.currentTarget;switch(r.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,a=Le.index(o);let c=s[40===r.which?a+2:a-2];c&&(c.tabIndex="0",c.focus()),r.preventDefault();break}case 37:{o.tabIndex="-1";let c=o.previousElementSibling;c?(c.tabIndex="0",c.focus()):(this.navigationState={backward:!0},this.navBackward(r)),r.preventDefault();break}case 39:{o.tabIndex="-1";let c=o.nextElementSibling;c?(c.tabIndex="0",c.focus()):(this.navigationState={backward:!1},this.navForward(r)),r.preventDefault();break}case 13:case 32:this.onYearSelect(r,i),r.preventDefault();break;case 27:var l;null===(l=this.inputfieldViewChild)||void 0===l||l.nativeElement.focus(),this.overlayVisible=!1,r.preventDefault();break;case 9:this.trapFocus(r)}}navigateToMonth(r,i){if(r)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)"),a=s[s.length-1];a.tabIndex="0",a.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 r;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&&(r=i[i.length-1])}else r=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)");r&&(r.tabIndex="0",r.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){var r;const i=null===(r=this.contentViewChild)||void 0===r?void 0:r.nativeElement;let o;if("month"===this.currentView){let s=Le.find(i,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),a=Le.findSingle(i,".p-monthpicker .p-monthpicker-month.p-highlight");s.forEach(l=>l.tabIndex=-1),o=a||s[0],0===s.length&&Le.find(i,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(c=>c.tabIndex=-1)}else if("year"===this.currentView){let s=Le.find(i,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),a=Le.findSingle(i,".p-yearpicker .p-yearpicker-year.p-highlight");s.forEach(l=>l.tabIndex=-1),o=a||s[0],0===s.length&&Le.find(i,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(c=>c.tabIndex=-1)}else if(o=Le.findSingle(i,"span.p-highlight"),!o){let s=Le.findSingle(i,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");o=s||Le.findSingle(i,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}o&&(o.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||o.focus()},1),this.preventFocus=!1)}trapFocus(r){let i=Le.getFocusableElements(this.contentViewChild.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let o=i.indexOf(i[0].ownerDocument.activeElement);if(r.shiftKey)if(-1==o||0===o)if(this.focusTrap)i[i.length-1].focus();else{if(-1===o)return this.hideOverlay();if(0===o)return}else i[o-1].focus();else if(-1==o)if(this.timeOnly)i[0].focus();else{let s=0;for(let a=0;a<i.length;a++)"SPAN"===i[a].tagName&&(s=a);i[s].focus()}else if(o===i.length-1){if(!this.focusTrap&&-1!=o)return this.hideOverlay();i[0].focus()}else i[o+1].focus()}else i[0].focus();r.preventDefault()}onMonthDropdownChange(r){this.currentMonth=parseInt(r),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(r){this.currentYear=parseInt(r),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}validateTime(r,i,o,s){let a=this.value;const l=this.convertTo24Hour(r,s);this.isRangeSelection()&&(a=this.value[1]||this.value[0]),this.isMultipleSelection()&&(a=this.value[this.value.length-1]);const c=a?a.toDateString():null;return!(this.minDate&&c&&this.minDate.toDateString()===c&&(this.minDate.getHours()>l||this.minDate.getHours()===l&&(this.minDate.getMinutes()>i||this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o))||this.maxDate&&c&&this.maxDate.toDateString()===c&&(this.maxDate.getHours()<l||this.maxDate.getHours()===l&&(this.maxDate.getMinutes()<i||this.maxDate.getMinutes()===i&&this.maxDate.getSeconds()<o)))}incrementHour(r){let o=this.currentHour+this.stepHour,s=this.pm;"24"==this.hourFormat?o=o>=24?o-24:o:"12"==this.hourFormat&&(this.currentHour<12&&o>11&&(s=!this.pm),o=o>=13?o-12:o),this.validateTime(o,this.currentMinute,this.currentSecond,s)&&(this.currentHour=o,this.pm=s),r.preventDefault()}onTimePickerElementMouseDown(r,i,o){this.disabled||(this.repeat(r,null,i,o),r.preventDefault())}onTimePickerElementMouseUp(r){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(r,i,o,s){let a=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(r,100,o,s),this.cd.markForCheck()},a),o){case 0:1===s?this.incrementHour(r):this.decrementHour(r);break;case 1:1===s?this.incrementMinute(r):this.decrementMinute(r);break;case 2:1===s?this.incrementSecond(r):this.decrementSecond(r)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(r){let i=this.currentHour-this.stepHour,o=this.pm;"24"==this.hourFormat?i=i<0?24+i:i:"12"==this.hourFormat&&(12===this.currentHour&&(o=!this.pm),i=i<=0?12+i:i),this.validateTime(i,this.currentMinute,this.currentSecond,o)&&(this.currentHour=i,this.pm=o),r.preventDefault()}incrementMinute(r){let i=this.currentMinute+this.stepMinute;i=i>59?i-60:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),r.preventDefault()}decrementMinute(r){let i=this.currentMinute-this.stepMinute;i=i<0?60+i:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),r.preventDefault()}incrementSecond(r){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),r.preventDefault()}decrementSecond(r){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),r.preventDefault()}updateTime(){let r=this.value;this.isRangeSelection()&&(r=this.value[1]||this.value[0]),this.isMultipleSelection()&&(r=this.value[this.value.length-1]),r=r?new Date(r.getTime()):new Date,r.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),r.setMinutes(this.currentMinute),r.setSeconds(this.currentSecond),this.isRangeSelection()&&(r=this.value[1]?[this.value[0],r]:[r,null]),this.isMultipleSelection()&&(r=[...this.value.slice(0,-1),r]),this.updateModel(r),this.onSelect.emit(r),this.updateInputfield()}toggleAMPM(r){const i=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,i)&&(this.pm=i,this.updateTime()),r.preventDefault()}onUserInput(r){if(!this.isKeydown)return;this.isKeydown=!1;let i=r.target.value;try{let o=this.parseValueFromString(i);this.isValidSelection(o)?(this.updateModel(o),this.updateUI()):this.keepInvalid&&this.updateModel(o)}catch(o){this.updateModel(this.keepInvalid?i:null)}this.filled=null!=i&&i.length,this.onInput.emit(r)}isValidSelection(r){let i=!0;return this.isSingleSelection()?this.isSelectable(r.getDate(),r.getMonth(),r.getFullYear(),!1)||(i=!1):r.every(o=>this.isSelectable(o.getDate(),o.getMonth(),o.getFullYear(),!1))&&this.isRangeSelection()&&(i=r.length>1&&r[1]>r[0]),i}parseValueFromString(r){if(!r||0===r.trim().length)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(r);else if(this.isMultipleSelection()){let o=r.split(this.multipleSeparator);i=[];for(let s of o)i.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let o=r.split(" "+this.rangeSeparator+" ");i=[];for(let s=0;s<o.length;s++)i[s]=this.parseDateTime(o[s].trim())}return i}parseDateTime(r){let i,o=r.split(" ");if(this.timeOnly)i=new Date,this.populateTime(i,o[0],o[1]);else{const s=this.getDateFormat();if(this.showTime){let a="12"==this.hourFormat?o.pop():null,l=o.pop();i=this.parseDate(o.join(" "),s),this.populateTime(i,l,a)}else i=this.parseDate(r,s)}return i}populateTime(r,i,o){if("12"==this.hourFormat&&!o)throw"Invalid Time";this.pm="PM"===o||"pm"===o;let s=this.parseTime(i);r.setHours(s.hour),r.setMinutes(s.minute),r.setSeconds(s.second)}isValidDate(r){return Wo.isDate(r)&&Wo.isNotEmpty(r)}updateUI(){let r=this.value;Array.isArray(r)&&(r=r[0]);let i=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:r&&this.isValidDate(r)?r: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(){var r;null===(r=this.inputfieldViewChild)||void 0===r||r.nativeElement.focus(),this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){if(!this.inline)if(this.overlayVisible)this.hideOverlay();else{var r;this.showOverlay(),null===(r=this.inputfieldViewChild)||void 0===r||r.nativeElement.focus()}}onOverlayAnimationStart(r){switch(r.toState){case"visible":case"visibleTouchUI":var i;this.inline||(this.overlay=r.element,null===(i=this.overlay)||void 0===i||i.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?Fy.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):Fy.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(r));break;case"void":this.onOverlayHide(),this.onClose.emit(r)}}onOverlayAnimationDone(r){switch(r.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&Fy.clear(r.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.document.body.appendChild(this.overlay):Le.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){if(this.touchUI)this.enableModality(this.overlay);else if(this.overlay)if(this.appendTo){var r,i,o;"date"===this.view?(this.overlay.style.width=Le.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=Le.getOuterWidth(null===(i=this.inputfieldViewChild)||void 0===i?void 0:i.nativeElement)+"px"):this.overlay.style.width=Le.getOuterWidth(null===(o=this.inputfieldViewChild)||void 0===o?void 0:o.nativeElement)+"px",Le.absolutePosition(this.overlay,null===(r=this.inputfieldViewChild)||void 0===r?void 0:r.nativeElement)}else{var s;Le.relativePosition(this.overlay,null===(s=this.inputfieldViewChild)||void 0===s?void 0:s.nativeElement)}}enableModality(r){!this.mask&&this.touchUI&&(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(r.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",o=>{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),Le.blockBodyScroll())}disableModality(){this.mask&&(Le.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let i,r=this.document.body.children;for(let o=0;o<r.length;o++)if(Le.hasClass(r[o],"p-datepicker-mask-scrollblocker")){i=!0;break}i||Le.unblockBodyScroll(),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}writeValue(r){if(this.value=r,this.value&&"string"==typeof this.value)try{this.value=this.parseValueFromString(this.value)}catch(i){this.keepInvalid&&(this.value=r)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(r){this.onModelChange=r}registerOnTouched(r){this.onModelTouched=r}setDisabledState(r){this.disabled=r,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(qo.FIRST_DAY_OF_WEEK)}formatDate(r,i){if(!r)return"";let o;const s=d=>{const h=o+1<i.length&&i.charAt(o+1)===d;return h&&o++,h},a=(d,h,p)=>{let m=""+h;if(s(d))for(;m.length<p;)m="0"+m;return m},l=(d,h,p,m)=>s(d)?m[h]:p[h];let c="",u=!1;if(r)for(o=0;o<i.length;o++)if(u)"'"!==i.charAt(o)||s("'")?c+=i.charAt(o):u=!1;else switch(i.charAt(o)){case"d":c+=a("d",r.getDate(),2);break;case"D":c+=l("D",r.getDay(),this.getTranslation(qo.DAY_NAMES_SHORT),this.getTranslation(qo.DAY_NAMES));break;case"o":c+=a("o",Math.round((new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime()-new Date(r.getFullYear(),0,0).getTime())/864e5),3);break;case"m":c+=a("m",r.getMonth()+1,2);break;case"M":c+=l("M",r.getMonth(),this.getTranslation(qo.MONTH_NAMES_SHORT),this.getTranslation(qo.MONTH_NAMES));break;case"y":c+=s("y")?r.getFullYear():(r.getFullYear()%100<10?"0":"")+r.getFullYear()%100;break;case"@":c+=r.getTime();break;case"!":c+=1e4*r.getTime()+this.ticksTo1970;break;case"'":s("'")?c+="'":u=!0;break;default:c+=i.charAt(o)}return c}formatTime(r){if(!r)return"";let i="",o=r.getHours(),s=r.getMinutes(),a=r.getSeconds();return"12"==this.hourFormat&&o>11&&12!=o&&(o-=12),i+="12"==this.hourFormat&&0===o?12:o<10?"0"+o:o,i+=":",i+=s<10?"0"+s:s,this.showSeconds&&(i+=":",i+=a<10?"0"+a:a),"12"==this.hourFormat&&(i+=r.getHours()>11?" PM":" AM"),i}parseTime(r){let i=r.split(":");if(i.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(i[0]),a=parseInt(i[1]),l=this.showSeconds?parseInt(i[2]):null;if(isNaN(s)||isNaN(a)||s>23||a>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(l)||l>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:a,second:l}}parseDate(r,i){if(null==i||null==r)throw"Invalid arguments";if(""===(r="object"==typeof r?r.toString():r+""))return null;let o,s,a,_,l=0,c="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),u=-1,d=-1,h=-1,p=-1,m=!1,y=j=>{let q=o+1<i.length&&i.charAt(o+1)===j;return q&&o++,q},E=j=>{let q=y(j),K="@"===j?14:"!"===j?20:"y"===j&&q?4:"o"===j?3:2,P=new RegExp("^\\d{"+("y"===j?K:1)+","+K+"}"),V=r.substring(l).match(P);if(!V)throw"Missing number at position "+l;return l+=V[0].length,parseInt(V[0],10)},C=(j,q,K)=>{let N=-1,P=y(j)?K:q,V=[];for(let F=0;F<P.length;F++)V.push([F,P[F]]);V.sort((F,R)=>-(F[1].length-R[1].length));for(let F=0;F<V.length;F++){let R=V[F][1];if(r.substr(l,R.length).toLowerCase()===R.toLowerCase()){N=V[F][0],l+=R.length;break}}if(-1!==N)return N+1;throw"Unknown name at position "+l},k=()=>{if(r.charAt(l)!==i.charAt(o))throw"Unexpected literal at position "+l;l++};for("month"===this.view&&(h=1),o=0;o<i.length;o++)if(m)"'"!==i.charAt(o)||y("'")?k():m=!1;else switch(i.charAt(o)){case"d":h=E("d");break;case"D":C("D",this.getTranslation(qo.DAY_NAMES_SHORT),this.getTranslation(qo.DAY_NAMES));break;case"o":p=E("o");break;case"m":d=E("m");break;case"M":d=C("M",this.getTranslation(qo.MONTH_NAMES_SHORT),this.getTranslation(qo.MONTH_NAMES));break;case"y":u=E("y");break;case"@":_=new Date(E("@")),u=_.getFullYear(),d=_.getMonth()+1,h=_.getDate();break;case"!":_=new Date((E("!")-this.ticksTo1970)/1e4),u=_.getFullYear(),d=_.getMonth()+1,h=_.getDate();break;case"'":y("'")?k():m=!0;break;default:k()}if(l<r.length&&(a=r.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===u?u=(new Date).getFullYear():u<100&&(u+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u<=c?0:-100)),p>-1)for(d=1,h=p;s=this.getDaysCountInMonth(u,d-1),!(h<=s);)d++,h-=s;if("year"===this.view&&(d=-1===d?1:d,h=-1===h?1:h),_=this.daylightSavingAdjust(new Date(u,d-1,h)),_.getFullYear()!==u||_.getMonth()+1!==d||_.getDate()!==h)throw"Invalid date";return _}daylightSavingAdjust(r){return r?(r.setHours(r.getHours()>12?r.getHours()+2:0),r):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(r){const i=new Date,o={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(i.getMonth(),i.getFullYear()),this.onDateSelect(r,o),this.onTodayClick.emit(r)}onClearButtonClick(r){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(r)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let r="";if(this.responsiveOptions){let i=[...this.responsiveOptions].filter(o=>!(!o.breakpoint||!o.numMonths)).sort((o,s)=>-1*o.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let o=0;o<i.length;o++){let{breakpoint:s,numMonths:a}=i[o],l="\n                        .p-datepicker[".concat(this.attributeSelector,"] .p-datepicker-group:nth-child(").concat(a,") .p-datepicker-next {\n                            display: inline-flex !important;\n                        }\n                    ");for(let c=a;c<this.numberOfMonths;c++)l+="\n                            .p-datepicker[".concat(this.attributeSelector,"] .p-datepicker-group:nth-child(").concat(c+1,") {\n                                display: none !important;\n                            }\n                        ");r+="\n                        @media screen and (max-width: ".concat(s,") {\n                            ").concat(l,"\n                        }\n                    ")}}this.responsiveStyleElement.innerHTML=r}}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:this.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.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){var r;this.scrollHandler||(this.scrollHandler=new Xye(null===(r=this.containerViewChild)||void 0===r?void 0:r.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(r){return!(this.el.nativeElement.isSameNode(r.target)||this.isNavIconClicked(r)||this.el.nativeElement.contains(r.target)||this.overlay&&this.overlay.contains(r.target))}isNavIconClicked(r){return Le.hasClass(r.target,"p-datepicker-prev")||Le.hasClass(r.target,"p-datepicker-prev-icon")||Le.hasClass(r.target,"p-datepicker-next")||Le.hasClass(r.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&&Fy.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return t=e,B(e,"\u0275fac",function(r){return new(r||t)(te(dr),te(Cr),te(ss),te(Vc),te(Dt),te(dx),te(Kye))}),B(e,"\u0275cmp",Bt({type:t,selectors:[["p-calendar"]],contentQueries:function(r,i,o){if(1&r&&$1(o,Qye,4),2&r){let s;Vi(s=Bi())&&(i.templates=s)}},viewQuery:function(r,i){if(1&r&&(ko(h0e,5),ko(p0e,5),ko(g0e,5)),2&r){let o;Vi(o=Bi())&&(i.containerViewChild=o.first),Vi(o=Bi())&&(i.inputfieldViewChild=o.first),Vi(o=Bi())&&(i.content=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(r,i){2&r&&qd("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",ariaLabel:"ariaLabel",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",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},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:[rn([Xbe])],ngContentSelectors:Qbe,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["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"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["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-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",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"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[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,"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(r,i){1&r&&(vg(Ybe),A(0,"span",0,1),z(2,A0e,4,20,"ng-template",2),z(3,Wbe,9,31,"div",3),M()),2&r&&(Li(i.styleClass),T("ngClass",Ga(6,Kbe,i.showIcon,i.timeOnly,i.disabled,i.focus||i.overlayVisible))("ngStyle",i.style),b(2),T("ngIf",!i.inline),b(1),T("ngIf",i.inline||i.overlayVisible))},dependencies:function(){return[yi,oi,Wn,yw,fr,f0e,t0e,GB,qB,WB,YB,KB,QB]},styles:["@layer primeng{.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:[oN("overlayAnimation",[$w("visibleTouchUI",Mo({transform:"translate(-50%,-50%)",opacity:1})),_f("void => visible",[Mo({opacity:0,transform:"scaleY(0.8)"}),mf("{{showTransitionParams}}",Mo({opacity:1,transform:"*"}))]),_f("visible => void",[mf("{{hideTransitionParams}}",Mo({opacity:0}))]),_f("void => visibleTouchUI",[Mo({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),mf("{{showTransitionParams}}")]),_f("visibleTouchUI => void",[mf("{{hideTransitionParams}}",Mo({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})),e})(),Zbe=(()=>{var t;class e{}return t=e,B(e,"\u0275fac",function(r){return new(r||t)}),B(e,"\u0275mod",jn({type:t})),B(e,"\u0275inj",Rn({imports:[$c,jB,Ly,HB,GB,qB,WB,YB,KB,QB,jB,Ly]})),e})(),Jbe=(()=>{class t{constructor(n){this.hostEl=n,n.isOutsideClicked=r=>{const i=r.path||r.composedPath&&r.composedPath(),o=r.target.shadowRoot?i[0]:r.target;return!(this.hostEl.el.nativeElement.isSameNode(o)||this.hostEl.el.nativeElement.contains(o)||this.hostEl.overlay&&this.hostEl.overlay.contains(o))}}}return t.\u0275fac=function(n){return new(n||t)(te(px,11))},t.\u0275dir=Ke({type:t,selectors:[["","psdCalendar",""]]}),t})();Le.getScrollableParents=t=>{let e=[];if(t){let n=Le.getParents(t).filter(o=>!(o instanceof ShadowRoot));const r=/(auto|scroll)/,i=o=>{let s=window.getComputedStyle(o,null);return r.test(s.getPropertyValue("overflow"))||r.test(s.getPropertyValue("overflowX"))||r.test(s.getPropertyValue("overflowY"))};for(let o of n){let s=1===o.nodeType&&o.dataset.scrollselectors;if(s){let a=s.split(",");for(let l of a){let c=Le.findSingle(o,l);c&&i(c)&&e.push(c)}}9!==o.nodeType&&i(o)&&e.push(o)}}return e};let e1e=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=jn({type:t}),t.\u0275inj=Rn({}),t})();function t1e(t,e){if(1&t){const n=Me();A(0,"div")(1,"input",17),fe("keyup",function(i){J(n);const o=x(2).index;return ee(x(2).onKeyup(i,o))})("ngModelChange",function(i){return J(n),ee(x(2).$implicit.value=i)}),M()()}if(2&t){const n=x(2).$implicit;b(1),T("type",n.inputValidation)("email","email"==n.inputValidation)("disabled",n.disabled)("name",n.dataVar)("ngModel",n.value)("required",n.required)}}function n1e(t,e){if(1&t){const n=Me();A(0,"div")(1,"textarea",18),fe("ngModelChange",function(i){return J(n),ee(x(2).$implicit.value=i)})("keyup",function(i){J(n);const o=x(2).index;return ee(x(2).onKeyup(i,o))}),M()()}if(2&t){const n=x(2).$implicit;b(1),T("name",n.dataVar)("ngModel",n.value)("disabled",n.disabled)("required",n.required)}}function r1e(t,e){if(1&t){const n=Me();A(0,"div")(1,"p-calendar",19),fe("ngModelChange",function(i){return J(n),ee(x(2).$implicit.value=i)})("onSelect",function(i){J(n);const o=x(2),s=o.$implicit,a=o.index;return ee(x(2).onChangeDate(i,s.dataVar,a))}),M()()}if(2&t){const n=x(2).$implicit,r=x(2);b(1),T("minDate",r.minDate)("name",n.dataVar)("ngModel",n.value)("required",n.required)("monthNavigator",!0)("disabled",n.disabled)("yearNavigator",!0)}}function i1e(t,e){if(1&t){const n=Me();A(0,"div")(1,"p-calendar",20),fe("ngModelChange",function(i){return J(n),ee(x(2).$implicit.value=i)}),M()()}if(2&t){const n=x(2).$implicit;b(1),T("name",n.dataVar)("disabled",n.disabled)("ngModel",n.value)("required",n.required)("timeOnly",!0)}}function o1e(t,e){if(1&t&&(A(0,"option",23),ce(1),M()),2&t){const n=e.$implicit;T("value",null==n?null:n.value),b(1),Ge(" ",n.translatedLabel," ")}}const s1e=function(t){return{"background-color":t}};function a1e(t,e){if(1&t){const n=Me();A(0,"div")(1,"select",21),fe("ngModelChange",function(i){return J(n),ee(x(2).$implicit.value=i)}),z(2,o1e,2,2,"option",22),M()()}if(2&t){const n=x(2).$implicit;b(1),T("name",n.dataVar)("ngModel",n.value)("disabled",n.disabled)("required",n.required)("ngStyle",$e(6,s1e,n.disabled?"#f0f0f0":"white")),b(1),T("ngForOf",n.dropDownOptions)}}function l1e(t,e){if(1&t&&(A(0,"div")(1,"label",14),ce(2),M(),A(3,"div",15),z(4,t1e,2,6,"div",16),z(5,n1e,2,4,"div",16),z(6,r1e,2,7,"div",16),z(7,i1e,2,5,"div",16),z(8,a1e,3,8,"div",16),M()()),2&t){const n=x().$implicit;b(1),T("for",n.dataVar),b(1),ni("",n.workedLabel," ",n.required?"*":"",""),b(1),T("ngSwitch",n.type),b(1),T("ngSwitchCase","input"),b(1),T("ngSwitchCase","textarea"),b(1),T("ngSwitchCase","date"),b(1),T("ngSwitchCase","time"),b(1),T("ngSwitchCase","dropdown")}}function c1e(t,e){if(1&t&&(A(0,"div",12),z(1,l1e,9,9,"div",13),M()),2&t){const n=e.$implicit,r=x(2);b(1),T("ngIf",("numberChildren"!==n.dataVar||"numberChildren"===n.dataVar&&r.allowChildren)&&!(null!=n&&n.isHidden))}}function u1e(t,e){if(1&t){const n=Me();A(0,"div",28),fe("click",function(){return J(n),ee(x(3).onExpandLanguages())}),ce(1),ye(2,"uppercase"),ye(3,"async"),M()}if(2&t){const n=x(3);b(1),Ge(" ",Ce(2,1,Ce(3,3,n.activeLanguageFlag$))," ")}}function d1e(t,e){if(1&t){const n=Me();A(0,"li",32),fe("click",function(){const o=J(n).$implicit;return ee(x(4).onSelectLanguage(o.value))}),ce(1),ye(2,"uppercase"),M()}if(2&t){const n=e.$implicit;b(1),Ge(" ",Ce(2,1,n.label)," ")}}function f1e(t,e){if(1&t&&(A(0,"div",29,30)(2,"ul"),z(3,d1e,3,3,"li",31),M()()),2&t){const n=x(3);b(3),T("ngForOf",n.languagesDD)}}function h1e(t,e){if(1&t&&(A(0,"div",24)(1,"div",25),z(2,u1e,4,5,"div",26),z(3,f1e,4,1,"div",27),M()()),2&t){const n=x(2);b(2),T("ngIf",n.translationsActive),b(1),T("ngIf",n.languageOptionsOpen)}}function p1e(t,e){if(1&t){const n=Me();A(0,"button",33),fe("click",function(){return J(n),ee(x(2).onClose())}),ce(1),ye(2,"translate"),M()}2&t&&(T("ngStyle",x(2).backgroundCancel),b(1),je(Ce(2,2,"back")))}function g1e(t,e){if(1&t){const n=Me();A(0,"div",1)(1,"form",2,3)(3,"div",4)(4,"span",5),ce(5),M(),z(6,c1e,2,1,"div",6),M()(),A(7,"div",7),z(8,h1e,4,2,"div",8),A(9,"div",9),z(10,p1e,3,4,"button",10),A(11,"button",11),fe("click",function(){J(n);const i=Gd(2);return ee(x().onSubmit(i))}),ce(12),ye(13,"translate"),M()()()()}if(2&t){const n=Gd(2),r=x();b(5),je(r.formText),b(1),T("ngForOf",r.formObj.inputs),b(2),T("ngIf",r.forceSubmissionBeforeChat),b(2),T("ngIf",!r.forceSubmissionBeforeChat),b(1),T("disabled",!n.valid)("ngStyle",r.backgroundSuccess),b(1),je(Ce(13,7,"submit"))}}let m1e=(()=>{var t;class e{onClickedOutside(){this.languageOptionsOpen&&!1===this.laguageChooserEvent&&(this.languageOptionsOpen=!1),this.laguageChooserEvent=!1}constructor(r,i,o,s,a){this.chatService=r,this.debugService=i,this.submitService=o,this.translateService=s,this.config=a,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,this.showDownText="",this.forceSubmissionBeforeChat=!1,this.languagesDD=[],this.translationsActive=!1,this.laguageChooserEvent=!1,this.languageOptionsOpen=!1,this.activeLanguageFlag$=this.translateService.onLangChange.pipe(Go({lang:this.translateService.currentLang}),Un(l=>l.lang))}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(r=>{r&&(r.textColor&&(this.textColor=r.textColor),this.backgroundCancel={"background-color":r.backgroundColors[1],color:this.textColor},this.backgroundSuccess={"background-color":r.backgroundColors[0],color:this.textColor})}),this.structuredInputSub=ui([this.chatService.showStructuredInput$,this.chatService.forceSubmissionBeforeChat$,this.translateService.onLangChange.pipe(Go({lang:this.translateService.currentLang}))]).subscribe(([r,i,o])=>{if(this.forceSubmissionBeforeChat=i||!1,r){this.formText=null,this.formText=r&&r.structuredInputFormText&&""!==r.structuredInputFormText&&"en"===o.lang?r.structuredInputFormText:r&&r.structuredInputFormTextTranslations&&r.structuredInputFormTextTranslations[o.lang]&&""!==r.structuredInputFormTextTranslations[o.lang]?r.structuredInputFormTextTranslations[o.lang]:this.translateService.instant("pleaseComplete"),this.formObj=ge(ge({},r),{},{inputs:r.inputs.map(u=>{let d=u.label;d=u.translatedLabels&&"en"===o.lang?u.label:u.translatedLabels&&u.translatedLabels[o.lang]?u.translatedLabels[o.lang]:this.translateService.instant("dataVar."+u.dataVar);let h=[];return"dropdown"===u.type&&u.dropDownOptions&&u.dropDownOptions.length>0&&(h=u.dropDownOptions.map(p=>{let m=p.label;return p.translatedLabels&&"en"===o.lang?m=p.label:p.translatedLabels&&p.translatedLabels[o.lang]&&(m=p.translatedLabels[o.lang]),{translatedLabel:m,value:null!=p&&p.value?null==p?void 0:p.value:null==p?void 0:p.label}})),ge(ge({},u),{},{workedLabel:d,dropDownOptions:h})})}),this.populateFields(),this.hasData=!0;const s=this.translateService.instant("dayNamesShort").split(","),a={};s&&(a.dayNamesShort=s.map(u=>u.trim()));const l=this.translateService.instant("monthNamesShort").split(",");l&&(a.monthNamesShort=l.map(u=>u.trim()));const c=this.translateService.instant("monthNames").split(",");c&&(a.monthNames=c.map(u=>u.trim())),Object.keys(a).length>0&&this.config.setTranslation(a)}}),this.allowChildrenSub=this.chatService.allowChildren$.subscribe(r=>{this.allowChildren=r}),this.languagesSub=this.chatService.otherLanguages$.subscribe(r=>{this.translationsActive=this.chatService.translationsActive,this.languagesDD=[...r.map(i=>{switch(i){case"en":return{label:"English",value:"en"};case"af":return{label:"Afrikaans",value:"af"};case"nl":return{label:"Dutch",value:"nl"};case"fr":return{label:"French",value:"fr"};case"de":return{label:"German",value:"de"};case"pt":return{label:"Portuguese",value:"pt"};case"es":return{label:"Spanish",value:"es"};case"it":return{label:"Italian",value:"it"};case"el":return{label:"Greek",value:"el"};case"tl":return{label:"Filipino (Tagalog)",value:"tl"};case"zh":return{label:"Chinese Mandarin",value:"zh"};case"xh":return{label:"Xhosa",value:"xh"};default:return{label:i,value:i}}})]})}onExpandLanguages(){this.languageOptionsOpen||(this.laguageChooserEvent=!0),this.languageOptionsOpen=!this.languageOptionsOpen}onSelectLanguage(r){this.chatService.changeLanguage(r),this.languageOptionsOpen=!1,window.sessionStorage.setItem("selectedLanguage",r)}onClose(){this.chatService.showStructuredInput$.next(null),this.chatService.forceSubmissionBeforeChat$.next(!1)}onChangeDate(r,i,o){if(this.debugService.logMode&&console.log(r,i,o),"checkinDate"===i&&r){const s=this.formObj.inputs.findIndex(a=>"checkOutDate"===a.dataVar);if(s>-1){const a=RA(r,{days:1});this.formObj.inputs[s].value?(sy(this.formObj.inputs[s].value,r)&&(this.formObj.inputs[s].value=a),BB(this.formObj.inputs[s].value,r)&&(this.formObj.inputs[s].value=a)):this.formObj.inputs[s].value=a}}if("checkOutDate"===i&&r){const s=this.formObj.inputs.findIndex(a=>"checkinDate"===a.dataVar);s>-1&&this.formObj.inputs[s].value&&(sy(r,this.formObj.inputs[s].value)||BB(r,this.formObj.inputs[s].value))&&(this.formObj.inputs[s].value=VB(this.formObj.inputs[s].value,{days:1}))}}onKeyup(r,i){const o=this.chatService.getClientId;("3U7FhXtxoR1LhbaBw4OH"===o||"E78oLuo56gxY4uvzUF8u"===o||"BA9aPj5PNFblo2NOFbFq"===o||"Rlz2M5RbtpEmFB2b6VWS"===o||"izDI30AOtin5dneyfL4Y"===o)&&("Space"===r.code&&" "!==this.formObj.inputs[i].value[this.formObj.inputs[i].value.length-1]&&(this.formObj.inputs[i].value+=" "),r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation())}onSubmit(r){var i=this;return se(function*(){const o=i.formObj.inputs.reduce((a,l)=>{if(a||(a=""),!l.isHidden){let c=l.value;if("date"===l.type&&(c=zo(l.value,"yyyy-MM-dd")),"time"===l.type&&(c=zo(l.value,"K:mm b")),"dropdown"===l.type){const u=l.dropDownOptions.findIndex(d=>d.value===l.value);u>-1&&(c=l.dropDownOptions[u].translatedLabel)}if(null!=l.value){const u=l.workedLabel||i.translateService.instant("dataVar."+l.dataVar);if("numberChildren"===l.dataVar){if(i.allowChildren){const d=l.workedLabel||i.translateService.instant("dataVar."+l.dataVar);return a+"*".concat(d,"* : ").concat(c," \n")}return a+""}return a+"*".concat(u,"* : ").concat(c," \n")}}return a},""),s={};Object.keys(r.value).forEach((a,l)=>{s[a]="date"===i.formObj.inputs[l].type?zo(Ml(new Date(r.value[a])),"yyyy-MM-dd"):"time"===i.formObj.inputs[l].type?zo(new Date(r.value[a]),"HH:mm"):r.value[a],window.sessionStorage.setItem(a,s[a])});for(const a of i.formObj.inputs)a.isHidden&&(s[a.dataVar]="date"===a.type?zo(Ml(new Date(a.value)),"yyyy-MM-dd"):"time"===a.type?zo(new Date(a.value),"HH:mm"):a.value);i.chatService.addMessage(o,!1),setTimeout(()=>{i.submitService.addSubmit(i.formObj.submit,i.formObj.intent,o,s)},200),i.onClose()})()}populateFields(){this.formObj.inputs.forEach(r=>{if(r.value)"date"===r.type&&(r.value=Bu(r.value,"yyyy-MM-dd",new Date)),"time"===r.type&&(r.value=Bu(r.value,"HH:mm",new Date));else{const i=r.dataVar,o=window.sessionStorage.getItem(i);r.value="checkinDate"===i?o?new Date(o):new Date:"checkOutDate"===i?o?new Date(o):RA(new Date,{days:1}):"numberAdults"===i?o||"2":"numberChildren"===i?o||"0":"date"===r.type?o?new Date(o):new Date:"time"===r.type?o?Bu(o,"HH:mm",new Date):new Date:o||r.value}})}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe(),this.structuredInputSub&&this.structuredInputSub.unsubscribe(),this.allowChildrenSub&&this.allowChildrenSub.unsubscribe(),this.languagesSub&&this.languagesSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn),te(Ii),te($B),te(qr),te(dx))},t.\u0275cmp=Bt({type:t,selectors:[["app-structured-input"]],hostBindings:function(r,i){1&r&&fe("click",function(s){return i.onClickedOutside(s)},0,Ba)},decls:1,vars:1,consts:[["class","gc-form-content",4,"ngIf"],[1,"gc-form-content"],["action",""],["f","ngForm"],[1,"gc-form-entry"],[1,"gc-form-text"],["class","form-item",4,"ngFor","ngForOf"],[1,"gc-footer"],["class","gc-entry-container",4,"ngIf"],[1,"buttons"],[3,"ngStyle","click",4,"ngIf"],[3,"disabled","ngStyle","click"],[1,"form-item"],[4,"ngIf"],[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","keyup"],["psdCalendar","","dateFormat","D, dd M yy","yearRange","2024:2030",3,"minDate","name","ngModel","required","monthNavigator","disabled","yearNavigator","ngModelChange","onSelect"],["psdCalendar","","dateFormat","D, dd M yy",3,"name","disabled","ngModel","required","timeOnly","ngModelChange"],[3,"name","ngModel","disabled","required","ngStyle","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"gc-entry-container"],[1,"gc-left-items"],["class","gc-language-select",3,"click",4,"ngIf"],["class","gc-language-options",4,"ngIf"],[1,"gc-language-select",3,"click"],[1,"gc-language-options"],["languageChooser",""],[3,"click",4,"ngFor","ngForOf"],[3,"click"],[3,"ngStyle","click"]],template:function(r,i){1&r&&z(0,g1e,14,9,"div",0),2&r&&T("ngIf",i.hasData)},dependencies:[oi,Wn,fr,Ya,df,_B,AB,PB,Uu,Oy,Ey,rB,Ry,ux,Nh,My,px,Jbe,js,bw,uo],styles:["button[disabled]{background-color:#d1d5db!important;color:#9ca3af!important;cursor:not-allowed!important;transform:none!important;box-shadow:none!important}input.ng-invalid.ng-touched{border:1px solid #e53e3e!important;box-shadow:0 0 0 3px rgba(229,62,62,.1)!important}form{margin:0}.gc-form-text{margin-top:0;font-size:15px;color:#000;font-weight:600;margin-bottom:10px}.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:0;font-family:Roboto,sans-serif;height:calc(100% - 108px);padding:32px 24px 40px;width:calc(100% - 48px);display:inline-flex;flex-direction:column;justify-content:flex-start;overflow-y:auto;overflow-x:hidden;box-sizing:content-box;background-color:#fff}.gc-form-content form .gc-form-entry h3{margin:0 0 32px;font-size:24px;font-weight:500;color:#2d3748;text-align:left}.gc-form-content form .gc-form-entry .pre-message{margin-top:0;font-size:12px;line-height:14px;margin-bottom:10px}.gc-form-content form .gc-form-entry .pre-message p{margin:0;font-size:12px}.gc-form-content form .gc-form-entry .pre-message ul,.gc-form-content form .gc-form-entry .pre-message ol{margin:5px;padding-left:15px;font-size:12px}.gc-form-content form .gc-form-entry .pre-message h1,.gc-form-content form .gc-form-entry .pre-message h2,.gc-form-content form .gc-form-entry .pre-message h3{margin:0;font-size:12px}.gc-form-content form .gc-form-entry .form-item{width:100%;margin:0 0 12px}.gc-form-content form .gc-form-entry .form-item label{color:#4a5568;font-family:Roboto,sans-serif;font-size:14px;font-weight:500;line-height:20px;margin-bottom:8px;display:block}.gc-form-content form .gc-form-entry .form-item input,.gc-form-content form .gc-form-entry .form-item textarea{font-size:16px;font-weight:400;line-height:24px;padding:12px 16px;margin-bottom:0;width:calc(100% - 34px);background-color:#f7fafc;border:1px solid #e2e8f0;border-radius:6px;box-sizing:content-box;color:#2d3748;font-family:Roboto,sans-serif;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:all .15s ease}.gc-form-content form .gc-form-entry .form-item input:focus,.gc-form-content form .gc-form-entry .form-item textarea:focus{outline:none;border-color:#4299e1;background-color:#fff;box-shadow:0 0 0 3px rgba(66,153,225,.1)}.gc-form-content form .gc-form-entry .form-item input:disabled,.gc-form-content form .gc-form-entry .form-item textarea:disabled{color:#a0aec0;background-color:#edf2f7;border-color:#e2e8f0}.gc-form-content form .gc-form-entry .form-item select{font-size:16px;font-weight:400;line-height:24px;padding:12px 16px;margin-bottom:0;width:calc(100% - 34px);background-color:#f7fafc;border:1px solid #e2e8f0;border-radius:6px;box-sizing:content-box;color:#2d3748;font-family:Roboto,sans-serif;cursor:pointer;transition:all .15s ease}.gc-form-content form .gc-form-entry .form-item select:focus{outline:none;border-color:#4299e1;background-color:#fff;box-shadow:0 0 0 3px rgba(66,153,225,.1)}.gc-form-content form .gc-form-entry .form-item select:disabled{color:#a0aec0;background-color:#edf2f7;border-color:#e2e8f0;cursor:not-allowed}.gc-form-content .gc-footer{position:absolute;left:0;bottom:0;font-family:Roboto,sans-serif;padding:20px 24px;height:40px;background:#f8fafc;display:flex;justify-content:space-between;width:calc(100% - 48px);box-sizing:content-box}.gc-form-content .gc-footer .buttons{float:right;display:flex;flex-direction:row;justify-content:flex-end;gap:10px;width:100%}.gc-form-content .gc-footer .buttons button{font-family:Roboto,sans-serif;font-size:14px;font-weight:500;padding:10px 20px;margin-right:12px;color:#fff;cursor:pointer;border-radius:6px;border:none;transition:all .15s ease;min-width:80px}.gc-form-content .gc-footer .buttons button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,0,0,.15)}.gc-form-content .gc-footer .buttons button:active:not(:disabled){transform:translateY(0)}.gc-form-content .gc-footer .gc-entry-container{display:flex;flex-direction:row;height:50px;font-family:Roboto,sans-serif}.gc-form-content .gc-footer .gc-entry-container .gc-left-items{width:calc(100% - 55px)}.gc-form-content .gc-footer .gc-entry-container .gc-left-items .gc-language-select{height:30px;line-height:30px;text-align:center;width:30px;padding:2px;display:inline-block;border-radius:50%;margin-top:6px;margin-left:2px;background-color:#e4e4e7;font-size:12px;cursor:pointer}.gc-form-content .gc-footer .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-form-content .gc-footer .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-form-content .gc-footer .gc-entry-container .gc-left-items input.has-languages-select{width:calc(100% - 48px)!important;margin-left:2px}.gc-form-content .gc-footer .gc-entry-container .gc-left-items input:focus{outline:none}.gc-form-content .gc-footer .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-form-content .gc-footer .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-form-content .gc-footer .gc-entry-container .gc-left-items .gc-language-options li img{width:30px;height:30px;object-fit:contain}.gc-form-content .gc-footer .gc-entry-container .gc-left-items .gc-language-options li:hover{background-color:#d3d3d3}.gc-form-content .gc-footer .gc-entry-container .gc-left-items .gc-language-options ul{padding:0;margin:0}.gc-form-content .gc-footer .gc-entry-container .icon-container{display:flex;width:40px;height:40px;border-radius:50%;justify-content:center;margin:auto;cursor:pointer}.gc-form-content .gc-footer .gc-entry-container .icon-container svg{width:18px;height:18px;align-self:center}.gc-form-content .gc-footer .gc-entry-container .icon-container svg path{fill:#6e6e6e}.gc-form-content .gc-footer .gc-entry-container.blank{background-color:#edf1f4}\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-hidden-accessible{display:none}.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}),e})(),JB=(()=>{var t;class e{constructor(r,i){this.element=r,this.zone=i,this.resized=new de,this.observer=new ResizeObserver(o=>this.zone.run(()=>this.observe(o)))}ngOnInit(){this.observer.observe(this.element.nativeElement)}ngOnDestroy(){this.observer&&this.observer.disconnect()}observe(r){const i=r[0],o=new _1e(i.contentRect,this.oldRect);this.oldRect=i.contentRect,this.resized.emit(o)}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Cr),te(Dt))},t.\u0275dir=Ke({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),e})();class _1e{constructor(e,n){this.newRect=e,this.oldRect=n,this.isFirst=null==n}}const gx=function(t){return{color:t}};function v1e(t,e){if(1&t){const n=Me();A(0,"button",10),fe("click",function(){const o=J(n).$implicit;return ee(x(2).onPerformAction(o))}),ce(1),M()}if(2&t){const n=e.$implicit,r=x(2);T("ngStyle",$e(2,gx,r.textColor)),b(1),je(n.translatedVal)}}function y1e(t,e){if(1&t&&(A(0,"div",9),z(1,v1e,2,4,"button",4),M()),2&t){const n=x();b(1),T("ngForOf",n.secondaryActions)}}function b1e(t,e){if(1&t){const n=Me();A(0,"button",10),fe("click",function(){const o=J(n).$implicit;return ee(x().onDirectIntent(o))}),ce(1),M()}if(2&t){const n=e.$implicit,r=x();T("ngStyle",$e(2,gx,r.textColor)),b(1),je(n.translatedVal)}}function w1e(t,e){if(1&t){const n=Me();A(0,"button",11),fe("click",function(){const o=J(n).$implicit;return ee(x().onPerformAction(o))}),ce(1),M()}if(2&t){const n=e.$implicit;b(1),je(n.translatedVal)}}function C1e(t,e){1&t&&(A(0,"span"),ce(1),ye(2,"translate"),M()),2&t&&(b(1),je(Ce(2,1,"less")))}function E1e(t,e){1&t&&(A(0,"span"),ce(1),ye(2,"translate"),M()),2&t&&(b(1),je(Ce(2,1,"more")))}const S1e=function(t){return{bounce:t}},T1e=function(t){return{fill:t}};function I1e(t,e){if(1&t){const n=Me();A(0,"div",12),fe("click",function(){return J(n),ee(x().onExpandSecondary())}),A(1,"div",13),Ie(),A(2,"svg",14),ue(3,"path",15),M()(),st(),A(4,"p",16),z(5,C1e,3,3,"span",17),z(6,E1e,3,3,"span",17),M()()}if(2&t){const n=x();T("ngStyle",$e(5,gx,n.textColor)),b(1),T("ngClass",$e(7,S1e,!n.secondaryExpanded)),b(2),T("ngStyle",$e(9,T1e,n.textColor)),b(2),T("ngIf",n.secondaryExpanded),b(1),T("ngIf",!n.secondaryExpanded)}}let A1e=(()=>{var t;class e{set forceOpen(r){r&&(this.secondaryExpanded||(this.secondaryExpanded=!0))}set func(r){this.relatedIntents$.next(r)}constructor(r,i,o){this.chatService=r,this.debugService=i,this.translateService=o,this.coreActions=[],this.secondaryActions=[],this.secondaryExpanded=!1,this.haveRelatedIntents=!1,this.relatedIntents=[],this.relatedIntents$=new ct([]),this.relatedIntentsHeight=0,this.textColor="blue",this.scrollNow=new de,this.newActionAreaHeight=new de,this.lastHeight=0}ngOnInit(){this.newActionAreaHeight.emit(0),this.settingsSub=ui([this.translateService.onLangChange.pipe(Go({lang:this.translateService.currentLang})),this.chatService.botSettingsBS]).subscribe(([r,i])=>{i&&("en"===r.lang?(this.coreActions=i.quickActionButtons.map(o=>ge(ge({},o),{},{translatedVal:o.publicText})),this.secondaryActions=i.secondaryButtons.map(o=>ge(ge({},o),{},{translatedVal:o.publicText}))):(this.coreActions=i.quickActionButtons.map(o=>{let s=o.publicText;return o.translations[r.lang]&&""!==o.translations[r.lang]&&(s=o.translations[r.lang]),ge(ge({},o),{},{translatedVal:s})}),this.secondaryActions=i.secondaryButtons.map(o=>{let s=o.publicText;return o.translations[r.lang]&&""!==o.translations[r.lang]&&(s=o.translations[r.lang]),ge(ge({},o),{},{translatedVal:s})})),this.textColor=i.backgroundColors[0])}),this.activeLanguageSub=ui([this.translateService.onLangChange.pipe(Go({lang:this.translateService.currentLang})),this.relatedIntents$]).subscribe(([r,i])=>{this.relatedIntents=i.map("en"===r.lang?o=>ge(ge({},o),{},{translatedVal:o.name}):o=>{let s=o.name;return o.translations[r.lang]&&""!==o.translations[r.lang]&&(s=o.translations[r.lang]),ge(ge({},o),{},{translatedVal:s})}),this.haveRelatedIntents=i.length>0})}onExpandSecondary(){this.secondaryExpanded=!this.secondaryExpanded,this.debugService.logMode&&console.log(this.secondaryExpanded)}onPerformAction(r){var i;if(this.debugService.logMode&&console.log(r),"post"===(null==r||null===(i=r.structuredInput)||void 0===i?void 0:i.submit)){const o=ge(ge({},r.structuredInput),{},{preMessage:r.preText,intent:r.dialogflowId});this.chatService.showStructuredInput$.next(o),this.chatService.forceSubmissionBeforeChat$.next(!1)}else r.url?window.open(r.url,"_blank"):(this.chatService.addDirectIntentQuestion(r.dialogflowId,r.translatedVal),this.scrollNow.emit("now"))}onDirectIntent(r){this.chatService.addDirectIntentQuestion(r.dialogflowId,r.translatedVal),this.scrollNow.emit("now")}onResized(r){r.newRect.height!==this.lastHeight&&(this.lastHeight=r.newRect.height,this.newActionAreaHeight.emit(r.newRect.height))}ngOnDestroy(){this.settingsSub&&this.settingsSub.unsubscribe(),this.activeLanguageSub&&this.activeLanguageSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn),te(Ii),te(qr))},t.\u0275cmp=Bt({type:t,selectors:[["app-quick-actions"]],inputs:{forceOpen:"forceOpen",func:["related-intents","func"]},outputs:{scrollNow:"scrollNow",newActionAreaHeight:"newActionAreaHeight"},decls:9,vars:6,consts:[[1,"action-area",3,"resized"],[1,"gc_scroll"],["id","secondaryActions",4,"ngIf"],[1,"related-intents",3,"hidden"],[3,"ngStyle","click",4,"ngFor","ngForOf"],[1,"quick-actions",3,"hidden"],[1,"core-actions"],[3,"click",4,"ngFor","ngForOf"],["class","more-box",3,"ngStyle","click",4,"ngIf"],["id","secondaryActions"],[3,"ngStyle","click"],[3,"click"],[1,"more-box",3,"ngStyle","click"],[1,"icon",3,"ngClass"],["version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","viewBox","0 0 330 330"],["d","M325.606,229.393l-150.004-150C172.79,76.58,168.974,75,164.996,75c-3.979,0-7.794,1.581-10.607,4.394\n                            l-149.996,150c-5.858,5.858-5.858,15.355,0,21.213c5.857,5.857,15.355,5.858,21.213,0l139.39-139.393l139.397,139.393\n                            C307.322,253.536,311.161,255,315,255c3.839,0,7.678-1.464,10.607-4.394C331.464,244.748,331.464,235.251,325.606,229.393z",3,"ngStyle"],[1,"more-text"],[4,"ngIf"]],template:function(r,i){1&r&&(A(0,"div",0),fe("resized",function(s){return i.onResized(s)}),A(1,"div",1),z(2,y1e,2,1,"div",2),A(3,"div",3),z(4,b1e,2,4,"button",4),M()(),A(5,"div",5)(6,"div",6),z(7,w1e,2,1,"button",7),M(),z(8,I1e,7,11,"div",8),M()()),2&r&&(b(2),T("ngIf",i.secondaryExpanded),b(1),T("hidden",!i.haveRelatedIntents),b(1),T("ngForOf",i.relatedIntents),b(1),T("hidden",0===i.coreActions.length),b(2),T("ngForOf",i.coreActions),b(1),T("ngIf",i.secondaryActions.length>0))},dependencies:[yi,oi,Wn,fr,JB,uo],styles:[".action-area[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:hidden;display:flex;flex-direction:column;font-family:Roboto,sans-serif}.action-area[_ngcontent-%COMP%]   .gc_scroll[_ngcontent-%COMP%]{max-height:80px;overflow-y:auto;display:flex;flex-direction:column-reverse}.action-area[_ngcontent-%COMP%]   .gc_scroll[_ngcontent-%COMP%]   .related-intents[_ngcontent-%COMP%]{width:100%;margin:0;display:inline-flex;flex-wrap:wrap;justify-content:center;font-family:Roboto,sans-serif}.action-area[_ngcontent-%COMP%]   .gc_scroll[_ngcontent-%COMP%]   #secondaryActions[_ngcontent-%COMP%]{width:100%;background-color:#fff;color:#000;display:flex;justify-content:center;font-family:Roboto,sans-serif}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]{height:44px}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .core-actions[_ngcontent-%COMP%]{width:calc(100% - 45px);height:44px;vertical-align:super;font-family:Roboto,sans-serif;overflow-x:auto;overflow-y:hidden;white-space:nowrap;display:inline-flex;justify-content:space-evenly}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .more-box[_ngcontent-%COMP%]{display:inline-block;width:40px;height:40px;vertical-align:top;font-family:Roboto,sans-serif;cursor:pointer}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .more-box[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{height:22px;text-align:center;margin:auto;display:block}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .more-box[_ngcontent-%COMP%]   .icon.bounce[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{transform:rotate(0);animation:_ngcontent-%COMP%_bounce-gc 2s infinite alternate;-webkit-animation:_ngcontent-%COMP%_bounce-gc 2s infinite alternate}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .more-box[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{padding-bottom:10px;transform:rotate(180deg);width:15px}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .more-box[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{fill:#000}.action-area[_ngcontent-%COMP%]   .quick-actions[_ngcontent-%COMP%]   .more-box[_ngcontent-%COMP%]   .more-text[_ngcontent-%COMP%]{text-align:center;height:12px;margin:0;font-weight:800;font-size:10px;line-height:12px;vertical-align:bottom}.action-area[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{text-transform:none;margin:7px 5px;padding:6px 10px;background-color:#edf1f4;color:#6e6e6e;border:none;border-radius:25px;font-size:14px;line-height:14px;white-space:nowrap;cursor:pointer;box-shadow:2px 2px 5px #d3d3d3;font-weight:700;font-family:Roboto,sans-serif}.action-area[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.2)}.action-area[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:lightgrey}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:darkgrey}@keyframes _ngcontent-%COMP%_bounce-gc{0%,40%,80%,to{margin-top:5px}60%{margin-top:10px}}.bounce[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_bounce-gc}"]}),e})();function x1e(t,e){if(1&t&&(A(0,"div",2)(1,"div",3)(2,"h3",4),ce(3),M(),A(4,"p",5),ce(5),ye(6,"translate"),M()()()),2&t){const n=x();b(3),je(n.preview.url),b(2),je(Ce(6,2,"previewNotAvailable"))}}function P1e(t,e){if(1&t&&(A(0,"div",8),ue(1,"img",9),M()),2&t){const n=x(2);b(1),T("src",n.preview.image,Nn)}}const D1e=function(t){return{"no-image":t}};function k1e(t,e){if(1&t&&(A(0,"div",2),z(1,P1e,2,1,"div",6),A(2,"div",7)(3,"h3",4),ce(4),M(),A(5,"p",5),ce(6),M()()()),2&t){const n=x();b(1),T("ngIf",n.preview.image),b(1),T("ngClass",$e(4,D1e,!n.preview.image)),b(2),je(n.preview.title),b(2),je(n.preview.description)}}let M1e=(()=>{var t;class e{constructor(){this.color="#2bc9d8"}set f(r){this.color=["#2bc9d8","#3e69de","#ffbc30","#ff9230","#018d9a","#0c36aa","#fdab00","#fd7700"][r]}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275cmp=Bt({type:t,selectors:[["app-link-preview"]],inputs:{preview:"preview",f:["index","f"]},decls:3,vars:3,consts:[["target","_blank",2,"text-decoration","none","color","black",3,"href"],["class","gc-preview-container",4,"ngIf"],[1,"gc-preview-container"],[1,"gc-text-container",2,"width","100%"],[1,"gc-header"],[1,"gc-description"],["class","gc-image",4,"ngIf"],[1,"gc-text-container",3,"ngClass"],[1,"gc-image"],[3,"src"]],template:function(r,i){1&r&&(A(0,"a",0),z(1,x1e,7,4,"div",1),z(2,k1e,7,6,"div",1),M()),2&r&&(T("href",i.preview.url,Nn),b(1),T("ngIf",""===i.preview.title),b(1),T("ngIf",""!=i.preview.title))},dependencies:[yi,Wn,uo],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}),e})(),O1e=(()=>{var t;class e{constructor(r){this.chatService=r,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(r=>{this.botSettings=r,this.backgroundSuccess={"background-color":r.backgroundColors[0]}})}ngOnDestroy(){this.botSettingsSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn))},t.\u0275cmp=Bt({type:t,selectors:[["app-typing-animation"]],decls:7,vars:0,consts:[[1,"each-msg"],[1,"message","reply"],[1,"msg-text"],["id","wave"],[1,"dot"]],template:function(r,i){1&r&&(A(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),ue(4,"span",4)(5,"span",4)(6,"span",4),M()()()())},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:0;bottom:0}.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:_ngcontent-%COMP%_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 _ngcontent-%COMP%_wave{0%,60%,to{transform:initial}30%{transform:translateY(15px)}}"]}),e})();function e$(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function mx(t={},e={}){Object.keys(e).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:e$(e[n])&&e$(t[n])&&Object.keys(e[n]).length>0&&mx(t[n],e[n])})}const t$={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 Ai(){const t=typeof document<"u"?document:{};return mx(t,t$),t}const N1e={document:t$,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:t=>typeof setTimeout>"u"?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function rr(){const t=typeof window<"u"?window:{};return mx(t,N1e),t}class Ea extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function L1e(t){const e=t.__proto__;Object.defineProperty(t,"__proto__",{get:()=>e,set(n){e.__proto__=n}})}(this))}}function Lh(t=[]){const e=[];return t.forEach(n=>{Array.isArray(n)?e.push(...Lh(n)):e.push(n)}),e}function n$(t,e){return Array.prototype.filter.call(t,e)}function rt(t,e){const n=rr(),r=Ai();let i=[];if(!e&&t instanceof Ea)return t;if(!t)return new Ea(i);if("string"==typeof t){const o=t.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){let s="div";0===o.indexOf("<li")&&(s="ul"),0===o.indexOf("<tr")&&(s="tbody"),(0===o.indexOf("<td")||0===o.indexOf("<th"))&&(s="tr"),0===o.indexOf("<tbody")&&(s="table"),0===o.indexOf("<option")&&(s="select");const a=r.createElement(s);a.innerHTML=o;for(let l=0;l<a.childNodes.length;l+=1)i.push(a.childNodes[l])}else i=function B1e(t,e){if("string"!=typeof t)return[t];const n=[],r=e.querySelectorAll(t);for(let i=0;i<r.length;i+=1)n.push(r[i]);return n}(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)i.push(t);else if(Array.isArray(t)){if(t instanceof Ea)return t;i=t}return new Ea(function F1e(t){const e=[];for(let n=0;n<t.length;n+=1)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(i))}rt.fn=Ea.prototype;const Cwe="resize scroll".split(" ");function Cn(t){return function e(...n){if(typeof n[0]>"u"){for(let r=0;r<this.length;r+=1)Cwe.indexOf(t)<0&&(t in this[r]?this[r][t]():rt(this[r]).trigger(t));return this}return this.on(t,...n)}}Cn("click"),Cn("blur"),Cn("focus"),Cn("focusin"),Cn("focusout"),Cn("keyup"),Cn("keydown"),Cn("keypress"),Cn("submit"),Cn("change"),Cn("mousedown"),Cn("mousemove"),Cn("mouseup"),Cn("mouseenter"),Cn("mouseleave"),Cn("mouseout"),Cn("mouseover"),Cn("touchstart"),Cn("touchend"),Cn("touchmove"),Cn("resize"),Cn("scroll");const r$={addClass:function $1e(...t){const e=Lh(t.map(n=>n.split(" ")));return this.forEach(n=>{n.classList.add(...e)}),this},removeClass:function z1e(...t){const e=Lh(t.map(n=>n.split(" ")));return this.forEach(n=>{n.classList.remove(...e)}),this},hasClass:function H1e(...t){const e=Lh(t.map(n=>n.split(" ")));return n$(this,n=>e.filter(r=>n.classList.contains(r)).length>0).length>0},toggleClass:function U1e(...t){const e=Lh(t.map(n=>n.split(" ")));this.forEach(n=>{e.forEach(r=>{n.classList.toggle(r)})})},attr:function j1e(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(t,e);else for(const r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this},removeAttr:function G1e(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},transform:function q1e(t){for(let e=0;e<this.length;e+=1)this[e].style.transform=t;return this},transition:function W1e(t){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof t?"".concat(t,"ms"):t;return this},on:function Y1e(...t){let[e,n,r,i]=t;function o(c){const u=c.target;if(!u)return;const d=c.target.dom7EventData||[];if(d.indexOf(c)<0&&d.unshift(c),rt(u).is(n))r.apply(u,d);else{const h=rt(u).parents();for(let p=0;p<h.length;p+=1)rt(h[p]).is(n)&&r.apply(h[p],d)}}function s(c){const u=c&&c.target&&c.target.dom7EventData||[];u.indexOf(c)<0&&u.unshift(c),r.apply(this,u)}"function"==typeof t[1]&&([e,r,i]=t,n=void 0),i||(i=!1);const a=e.split(" ");let l;for(let c=0;c<this.length;c+=1){const u=this[c];if(n)for(l=0;l<a.length;l+=1){const d=a[l];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[d]||(u.dom7LiveListeners[d]=[]),u.dom7LiveListeners[d].push({listener:r,proxyListener:o}),u.addEventListener(d,o,i)}else for(l=0;l<a.length;l+=1){const d=a[l];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[d]||(u.dom7Listeners[d]=[]),u.dom7Listeners[d].push({listener:r,proxyListener:s}),u.addEventListener(d,s,i)}}return this},off:function K1e(...t){let[e,n,r,i]=t;"function"==typeof t[1]&&([e,r,i]=t,n=void 0),i||(i=!1);const o=e.split(" ");for(let s=0;s<o.length;s+=1){const a=o[s];for(let l=0;l<this.length;l+=1){const c=this[l];let u;if(!n&&c.dom7Listeners?u=c.dom7Listeners[a]:n&&c.dom7LiveListeners&&(u=c.dom7LiveListeners[a]),u&&u.length)for(let d=u.length-1;d>=0;d-=1){const h=u[d];r&&h.listener===r||r&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===r?(c.removeEventListener(a,h.proxyListener,i),u.splice(d,1)):r||(c.removeEventListener(a,h.proxyListener,i),u.splice(d,1))}}}return this},trigger:function Q1e(...t){const e=rr(),n=t[0].split(" "),r=t[1];for(let i=0;i<n.length;i+=1){const o=n[i];for(let s=0;s<this.length;s+=1){const a=this[s];if(e.CustomEvent){const l=new e.CustomEvent(o,{detail:r,bubbles:!0,cancelable:!0});a.dom7EventData=t.filter((c,u)=>u>0),a.dispatchEvent(l),a.dom7EventData=[],delete a.dom7EventData}}}return this},transitionEnd:function X1e(t){const e=this;return t&&e.on("transitionend",function n(r){r.target===this&&(t.call(this,r),e.off("transitionend",n))}),this},outerWidth:function Z1e(t){if(this.length>0){if(t){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 J1e(t){if(this.length>0){if(t){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 twe(){const t=rr();return this[0]?t.getComputedStyle(this[0],null):{}},offset:function ewe(){if(this.length>0){const t=rr(),e=Ai(),n=this[0],r=n.getBoundingClientRect(),i=e.body;return{top:r.top+(n===t?t.scrollY:n.scrollTop)-(n.clientTop||i.clientTop||0),left:r.left+(n===t?t.scrollX:n.scrollLeft)-(n.clientLeft||i.clientLeft||0)}}return null},css:function nwe(t,e){const n=rr();let r;if(1===arguments.length){if("string"!=typeof t){for(r=0;r<this.length;r+=1)for(const i in t)this[r].style[i]=t[i];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(r=0;r<this.length;r+=1)this[r].style[t]=e;return this}return this},each:function rwe(t){return t?(this.forEach((e,n)=>{t.apply(e,[e,n])}),this):this},html:function owe(t){if(typeof t>"u")return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function swe(t){if(typeof t>"u")return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function awe(t){const e=rr(),n=Ai(),r=this[0];let i,o;if(!r||typeof t>"u")return!1;if("string"==typeof t){if(r.matches)return r.matches(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);for(i=rt(t),o=0;o<i.length;o+=1)if(i[o]===r)return!0;return!1}if(t===n)return r===n;if(t===e)return r===e;if(t.nodeType||t instanceof Ea){for(i=t.nodeType?[t]:t,o=0;o<i.length;o+=1)if(i[o]===r)return!0;return!1}return!1},index:function lwe(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function cwe(t){if(typeof t>"u")return this;const e=this.length;if(t>e-1)return rt([]);if(t<0){const n=e+t;return rt(n<0?[]:[this[n]])}return rt([this[t]])},append:function uwe(...t){let e;const n=Ai();for(let r=0;r<t.length;r+=1){e=t[r];for(let i=0;i<this.length;i+=1)if("string"==typeof e){const o=n.createElement("div");for(o.innerHTML=e;o.firstChild;)this[i].appendChild(o.firstChild)}else if(e instanceof Ea)for(let o=0;o<e.length;o+=1)this[i].appendChild(e[o]);else this[i].appendChild(e)}return this},prepend:function dwe(t){const e=Ai();let n,r;for(n=0;n<this.length;n+=1)if("string"==typeof t){const i=e.createElement("div");for(i.innerHTML=t,r=i.childNodes.length-1;r>=0;r-=1)this[n].insertBefore(i.childNodes[r],this[n].childNodes[0])}else if(t instanceof Ea)for(r=0;r<t.length;r+=1)this[n].insertBefore(t[r],this[n].childNodes[0]);else this[n].insertBefore(t,this[n].childNodes[0]);return this},next:function fwe(t){return this.length>0?t?this[0].nextElementSibling&&rt(this[0].nextElementSibling).is(t)?rt([this[0].nextElementSibling]):rt([]):rt(this[0].nextElementSibling?[this[0].nextElementSibling]:[]):rt([])},nextAll:function hwe(t){const e=[];let n=this[0];if(!n)return rt([]);for(;n.nextElementSibling;){const r=n.nextElementSibling;t?rt(r).is(t)&&e.push(r):e.push(r),n=r}return rt(e)},prev:function pwe(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&rt(e.previousElementSibling).is(t)?rt([e.previousElementSibling]):rt([]):rt(e.previousElementSibling?[e.previousElementSibling]:[])}return rt([])},prevAll:function gwe(t){const e=[];let n=this[0];if(!n)return rt([]);for(;n.previousElementSibling;){const r=n.previousElementSibling;t?rt(r).is(t)&&e.push(r):e.push(r),n=r}return rt(e)},parent:function mwe(t){const e=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(t?rt(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return rt(e)},parents:function _we(t){const e=[];for(let n=0;n<this.length;n+=1){let r=this[n].parentNode;for(;r;)t?rt(r).is(t)&&e.push(r):e.push(r),r=r.parentNode}return rt(e)},closest:function vwe(t){let e=this;return typeof t>"u"?rt([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function ywe(t){const e=[];for(let n=0;n<this.length;n+=1){const r=this[n].querySelectorAll(t);for(let i=0;i<r.length;i+=1)e.push(r[i])}return rt(e)},children:function bwe(t){const e=[];for(let n=0;n<this.length;n+=1){const r=this[n].children;for(let i=0;i<r.length;i+=1)(!t||rt(r[i]).is(t))&&e.push(r[i])}return rt(e)},filter:function iwe(t){return rt(n$(this,t))},remove:function wwe(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}};Object.keys(r$).forEach(t=>{Object.defineProperty(rt.fn,t,{value:r$[t],writable:!0})});const Nt=rt;function _x(t,e=0){return setTimeout(t,e)}function Fh(){return Date.now()}function Vy(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function Iwe(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function xi(...t){const e=Object(t[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<t.length;r+=1){const i=t[r];if(null!=i&&!Iwe(i)){const o=Object.keys(Object(i)).filter(s=>n.indexOf(s)<0);for(let s=0,a=o.length;s<a;s+=1){const l=o[s],c=Object.getOwnPropertyDescriptor(i,l);void 0!==c&&c.enumerable&&(Vy(e[l])&&Vy(i[l])?i[l].__swiper__?e[l]=i[l]:xi(e[l],i[l]):!Vy(e[l])&&Vy(i[l])?(e[l]={},i[l].__swiper__?e[l]=i[l]:xi(e[l],i[l])):e[l]=i[l])}}}return e}function By(t,e,n){t.style.setProperty(e,n)}function i$({swiper:t,targetPosition:e,side:n}){const r=rr(),i=-t.translate;let s,o=null;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(t.cssModeFrameID);const l=e>i?"next":"prev",c=(d,h)=>"next"===l&&d>=h||"prev"===l&&d<=h,u=()=>{s=(new Date).getTime(),null===o&&(o=s);const d=Math.max(Math.min((s-o)/a,1),0),h=.5-Math.cos(d*Math.PI)/2;let p=i+h*(e-i);if(c(p,e)&&(p=e),t.wrapperEl.scrollTo({[n]:p}),c(p,e))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:p})}),void r.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=r.requestAnimationFrame(u)};u()}let vx,yx,bx;function o$(){return vx||(vx=function Awe(){const t=rr(),e=Ai();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),passiveListener:function(){let r=!1;try{const i=Object.defineProperty({},"passive",{get(){r=!0}});t.addEventListener("testPassiveListener",null,i)}catch(i){}return r}(),gestures:"ongesturestart"in t}}()),vx}const Rwe={on(t,e,n){const r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof e)return r;const i=n?"unshift":"push";return t.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][i](e)}),r},once(t,e,n){const r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof e)return r;function i(...o){r.off(t,i),i.__emitterProxy&&delete i.__emitterProxy,e.apply(r,o)}return i.__emitterProxy=e,r.on(t,i,n)},onAny(t,e){const n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof t)return n;const r=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[r](t),n},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(r=>{typeof e>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,o)=>{(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&n.eventsListeners[r].splice(o,1)})}),n},emit(...t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let n,r,i;return"string"==typeof t[0]||Array.isArray(t[0])?(n=t[0],r=t.slice(1,t.length),i=e):(n=t[0].events,r=t[0].data,i=t[0].context||e),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(s=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(a=>{a.apply(i,[s,...r])}),e.eventsListeners&&e.eventsListeners[s]&&e.eventsListeners[s].forEach(a=>{a.apply(i,r)})}),e}},jwe={updateSize:function Nwe(){const t=this;let e,n;const r=t.$el;e=typeof t.params.width<"u"&&null!==t.params.width?t.params.width:r[0].clientWidth,n=typeof t.params.height<"u"&&null!==t.params.height?t.params.height:r[0].clientHeight,!(0===e&&t.isHorizontal()||0===n&&t.isVertical())&&(e=e-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),n=n-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))},updateSlides:function Lwe(){const t=this;function e(F){return t.isHorizontal()?F:{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"}[F]}function n(F,R){return parseFloat(F.getPropertyValue(e(R))||0)}const r=t.params,{$wrapperEl:i,size:o,rtlTranslate:s,wrongRTL:a}=t,l=t.virtual&&r.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,u=i.children(".".concat(t.params.slideClass)),d=l?t.virtual.slides.length:u.length;let h=[];const p=[],m=[];let _=r.slidesOffsetBefore;"function"==typeof _&&(_=r.slidesOffsetBefore.call(t));let y=r.slidesOffsetAfter;"function"==typeof y&&(y=r.slidesOffsetAfter.call(t));const E=t.snapGrid.length,C=t.slidesGrid.length;let k=r.spaceBetween,j=-_,q=0,K=0;if(typeof o>"u")return;"string"==typeof k&&k.indexOf("%")>=0&&(k=parseFloat(k.replace("%",""))/100*o),t.virtualSize=-k,u.css(s?{marginLeft:"",marginBottom:"",marginTop:""}:{marginRight:"",marginBottom:"",marginTop:""}),r.centeredSlides&&r.cssMode&&(By(t.wrapperEl,"--swiper-centered-offset-before",""),By(t.wrapperEl,"--swiper-centered-offset-after",""));const N=r.grid&&r.grid.rows>1&&t.grid;let P;N&&t.grid.initSlides(d);const V="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter(F=>typeof r.breakpoints[F].slidesPerView<"u").length>0;for(let F=0;F<d;F+=1){P=0;const R=u.eq(F);if(N&&t.grid.updateSlide(F,R,d,e),"none"!==R.css("display")){if("auto"===r.slidesPerView){V&&(u[F].style[e("width")]="");const O=getComputedStyle(R[0]),D=R[0].style.transform,Se=R[0].style.webkitTransform;if(D&&(R[0].style.transform="none"),Se&&(R[0].style.webkitTransform="none"),r.roundLengths)P=t.isHorizontal()?R.outerWidth(!0):R.outerHeight(!0);else{const Oe=n(O,"width"),W=n(O,"padding-left"),ie=n(O,"padding-right"),ae=n(O,"margin-left"),De=n(O,"margin-right"),qe=O.getPropertyValue("box-sizing");if(qe&&"border-box"===qe)P=Oe+ae+De;else{const{clientWidth:Lt,offsetWidth:mt}=R[0];P=Oe+W+ie+ae+De+(mt-Lt)}}D&&(R[0].style.transform=D),Se&&(R[0].style.webkitTransform=Se),r.roundLengths&&(P=Math.floor(P))}else P=(o-(r.slidesPerView-1)*k)/r.slidesPerView,r.roundLengths&&(P=Math.floor(P)),u[F]&&(u[F].style[e("width")]="".concat(P,"px"));u[F]&&(u[F].swiperSlideSize=P),m.push(P),r.centeredSlides?(j=j+P/2+q/2+k,0===q&&0!==F&&(j=j-o/2-k),0===F&&(j=j-o/2-k),Math.abs(j)<.001&&(j=0),r.roundLengths&&(j=Math.floor(j)),K%r.slidesPerGroup==0&&h.push(j),p.push(j)):(r.roundLengths&&(j=Math.floor(j)),(K-Math.min(t.params.slidesPerGroupSkip,K))%t.params.slidesPerGroup==0&&h.push(j),p.push(j),j=j+P+k),t.virtualSize+=P+k,q=P,K+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+y,s&&a&&("slide"===r.effect||"coverflow"===r.effect)&&i.css({width:"".concat(t.virtualSize+r.spaceBetween,"px")}),r.setWrapperSize&&i.css({[e("width")]:"".concat(t.virtualSize+r.spaceBetween,"px")}),N&&t.grid.updateWrapperSize(P,h,e),!r.centeredSlides){const F=[];for(let R=0;R<h.length;R+=1){let O=h[R];r.roundLengths&&(O=Math.floor(O)),h[R]<=t.virtualSize-o&&F.push(O)}h=F,Math.floor(t.virtualSize-o)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-o)}if(0===h.length&&(h=[0]),0!==r.spaceBetween){const F=t.isHorizontal()&&s?"marginLeft":e("marginRight");u.filter((R,O)=>!r.cssMode||O!==u.length-1).css({[F]:"".concat(k,"px")})}if(r.centeredSlides&&r.centeredSlidesBounds){let F=0;m.forEach(O=>{F+=O+(r.spaceBetween?r.spaceBetween:0)}),F-=r.spaceBetween;const R=F-o;h=h.map(O=>O<0?-_:O>R?R+y:O)}if(r.centerInsufficientSlides){let F=0;if(m.forEach(R=>{F+=R+(r.spaceBetween?r.spaceBetween:0)}),F-=r.spaceBetween,F<o){const R=(o-F)/2;h.forEach((O,D)=>{h[D]=O-R}),p.forEach((O,D)=>{p[D]=O+R})}}if(Object.assign(t,{slides:u,snapGrid:h,slidesGrid:p,slidesSizesGrid:m}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){By(t.wrapperEl,"--swiper-centered-offset-before","".concat(-h[0],"px")),By(t.wrapperEl,"--swiper-centered-offset-after","".concat(t.size/2-m[m.length-1]/2,"px"));const F=-t.snapGrid[0],R=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(O=>O+F),t.slidesGrid=t.slidesGrid.map(O=>O+R)}if(d!==c&&t.emit("slidesLengthChange"),h.length!==E&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==C&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),!(l||r.cssMode||"slide"!==r.effect&&"fade"!==r.effect)){const F="".concat(r.containerModifierClass,"backface-hidden"),R=t.$el.hasClass(F);d<=r.maxBackfaceHiddenSlides?R||t.$el.addClass(F):R&&t.$el.removeClass(F)}},updateAutoHeight:function Fwe(t){const e=this,n=[],r=e.virtual&&e.params.virtual.enabled;let o,i=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const s=a=>r?e.slides.filter(l=>parseInt(l.getAttribute("data-swiper-slide-index"),10)===a)[0]:e.slides.eq(a)[0];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||Nt([])).each(a=>{n.push(a)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const a=e.activeIndex+o;if(a>e.slides.length&&!r)break;n.push(s(a))}else n.push(s(e.activeIndex));for(o=0;o<n.length;o+=1)if(typeof n[o]<"u"){const a=n[o].offsetHeight;i=a>i?a:i}(i||0===i)&&e.$wrapperEl.css("height","".concat(i,"px"))},updateSlidesOffset:function Vwe(){const t=this,e=t.slides;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop},updateSlidesProgress:function Bwe(t=this&&this.translate||0){const e=this,n=e.params,{slides:r,rtlTranslate:i,snapGrid:o}=e;if(0===r.length)return;typeof r[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let s=-t;i&&(s=t),r.removeClass(n.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let a=0;a<r.length;a+=1){const l=r[a];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const u=(s+(n.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+n.spaceBetween),d=(s-o[0]+(n.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+n.spaceBetween),h=-(s-c),p=h+e.slidesSizesGrid[a];(h>=0&&h<e.size-1||p>1&&p<=e.size||h<=0&&p>=e.size)&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(a),r.eq(a).addClass(n.slideVisibleClass)),l.progress=i?-u:u,l.originalProgress=i?-d:d}e.visibleSlides=Nt(e.visibleSlides)},updateProgress:function $we(t){const e=this;typeof t>"u"&&(t=e&&e.translate&&e.translate*(e.rtlTranslate?-1:1)||0);const n=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:o,isEnd:s}=e;const a=o,l=s;0===r?(i=0,o=!0,s=!0):(i=(t-e.minTranslate())/r,o=i<=0,s=i>=1),Object.assign(e,{progress:i,isBeginning:o,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),o&&!a&&e.emit("reachBeginning toEdge"),s&&!l&&e.emit("reachEnd toEdge"),(a&&!o||l&&!s)&&e.emit("fromEdge"),e.emit("progress",i)},updateSlidesClasses:function zwe(){const t=this,{slides:e,params:n,$wrapperEl:r,activeIndex:i,realIndex:o}=t,s=t.virtual&&n.virtual.enabled;let a;e.removeClass("".concat(n.slideActiveClass," ").concat(n.slideNextClass," ").concat(n.slidePrevClass," ").concat(n.slideDuplicateActiveClass," ").concat(n.slideDuplicateNextClass," ").concat(n.slideDuplicatePrevClass)),a=s?t.$wrapperEl.find(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(i,'"]')):e.eq(i),a.addClass(n.slideActiveClass),n.loop&&(a.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(o,'"]')).addClass(n.slideDuplicateActiveClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(o,'"]')).addClass(n.slideDuplicateActiveClass));let l=a.nextAll(".".concat(n.slideClass)).eq(0).addClass(n.slideNextClass);n.loop&&0===l.length&&(l=e.eq(0),l.addClass(n.slideNextClass));let c=a.prevAll(".".concat(n.slideClass)).eq(0).addClass(n.slidePrevClass);n.loop&&0===c.length&&(c=e.eq(-1),c.addClass(n.slidePrevClass)),n.loop&&(l.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicateNextClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicateNextClass),c.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(c.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicatePrevClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(c.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function Uwe(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:r,snapGrid:i,params:o,activeIndex:s,realIndex:a,snapIndex:l}=e;let u,c=t;if(typeof c>"u"){for(let h=0;h<r.length;h+=1)typeof r[h+1]<"u"?n>=r[h]&&n<r[h+1]-(r[h+1]-r[h])/2?c=h:n>=r[h]&&n<r[h+1]&&(c=h+1):n>=r[h]&&(c=h);o.normalizeSlideIndex&&(c<0||typeof c>"u")&&(c=0)}if(i.indexOf(n)>=0)u=i.indexOf(n);else{const h=Math.min(o.slidesPerGroupSkip,c);u=h+Math.floor((c-h)/o.slidesPerGroup)}if(u>=i.length&&(u=i.length-1),c===s)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:s,activeIndex:c}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),a!==d&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")},updateClickedSlide:function Hwe(t){const e=this,n=e.params,r=Nt(t).closest(".".concat(n.slideClass))[0];let o,i=!1;if(r)for(let s=0;s<e.slides.length;s+=1)if(e.slides[s]===r){i=!0,o=s;break}if(!r||!i)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=r,e.clickedIndex=e.virtual&&e.params.virtual.enabled?parseInt(Nt(r).attr("data-swiper-slide-index"),10):o,n.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}},Qwe={getTranslate:function Gwe(t=(this.isHorizontal()?"x":"y")){const{params:n,rtlTranslate:r,translate:i,$wrapperEl:o}=this;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let s=function Twe(t,e="x"){const n=rr();let r,i,o;const s=function Swe(t){const e=rr();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}(t);return n.WebKitCSSMatrix?(i=s.transform||s.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix("none"===i?"":i)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),"x"===e&&(i=n.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===e&&(i=n.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}(o[0],t);return r&&(s=-s),s||0},setTranslate:function qwe(t,e){const n=this,{rtlTranslate:r,params:i,$wrapperEl:o,wrapperEl:s,progress:a}=n;let d,l=0,c=0;n.isHorizontal()?l=r?-t:t:c=t,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:i.virtualTranslate||o.transform("translate3d(".concat(l,"px, ").concat(c,"px, ").concat(0,"px)")),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c;const h=n.maxTranslate()-n.minTranslate();d=0===h?0:(t-n.minTranslate())/h,d!==a&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)},minTranslate:function Wwe(){return-this.snapGrid[0]},maxTranslate:function Ywe(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function Kwe(t=0,e=this.params.speed,n=!0,r=!0,i){const o=this,{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(u=r&&t>l?l:r&&t<c?c:t,o.updateProgress(u),s.cssMode){const d=o.isHorizontal();if(0===e)a[d?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return i$({swiper:o,targetPosition:-u,side:d?"left":"top"}),!0;a.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===e?(o.setTransition(0),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",e,i),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",e,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(h){!o||o.destroyed||h.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,n&&o.emit("transitionEnd"))}),o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd))),!0}};function s$({swiper:t,runCallbacks:e,direction:n,step:r}){const{activeIndex:i,previousIndex:o}=t;let s=n;if(s||(s=i>o?"next":i<o?"prev":"reset"),t.emit("transition".concat(r)),e&&i!==o){if("reset"===s)return void t.emit("slideResetTransition".concat(r));t.emit("slideChangeTransition".concat(r)),t.emit("next"===s?"slideNextTransition".concat(r):"slidePrevTransition".concat(r))}}const eCe={setTransition:function Xwe(t,e){const n=this;n.params.cssMode||n.$wrapperEl.transition(t),n.emit("setTransition",t,e)},transitionStart:function Zwe(t=!0,e){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),s$({swiper:n,runCallbacks:t,direction:e,step:"Start"}))},transitionEnd:function Jwe(t=!0,e){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),s$({swiper:n,runCallbacks:t,direction:e,step:"End"}))}},lCe={slideTo:function tCe(t=0,e=this.params.speed,n=!0,r,i){if("number"!=typeof t&&"string"!=typeof t)throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. [".concat(typeof t,"] given."));if("string"==typeof t){const k=parseInt(t,10);if(!isFinite(k))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. [".concat(t,"] given."));t=k}const o=this;let s=t;s<0&&(s=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:h,wrapperEl:p,enabled:m}=o;if(o.animating&&a.preventInteractionOnTransition||!m&&!r&&!i)return!1;const _=Math.min(o.params.slidesPerGroupSkip,s);let y=_+Math.floor((s-_)/o.params.slidesPerGroup);y>=l.length&&(y=l.length-1);const E=-l[y];if(a.normalizeSlideIndex)for(let k=0;k<c.length;k+=1){const j=-Math.floor(100*E),q=Math.floor(100*c[k]),K=Math.floor(100*c[k+1]);typeof c[k+1]<"u"?j>=q&&j<K-(K-q)/2?s=k:j>=q&&j<K&&(s=k+1):j>=q&&(s=k)}if(o.initialized&&s!==d&&(!o.allowSlideNext&&E<o.translate&&E<o.minTranslate()||!o.allowSlidePrev&&E>o.translate&&E>o.maxTranslate()&&(d||0)!==s))return!1;let C;if(s!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(E),C=s>d?"next":s<d?"prev":"reset",h&&-E===o.translate||!h&&E===o.translate)return o.updateActiveIndex(s),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==a.effect&&o.setTranslate(E),"reset"!==C&&(o.transitionStart(n,C),o.transitionEnd(n,C)),!1;if(a.cssMode){const k=o.isHorizontal(),j=h?E:-E;if(0===e){const q=o.virtual&&o.params.virtual.enabled;q&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),p[k?"scrollLeft":"scrollTop"]=j,q&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1})}else{if(!o.support.smoothScroll)return i$({swiper:o,targetPosition:j,side:k?"left":"top"}),!0;p.scrollTo({[k?"left":"top"]:j,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(E),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,r),o.transitionStart(n,C),0===e?o.transitionEnd(n,C):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(j){!o||o.destroyed||j.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,C))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function nCe(t=0,e=this.params.speed,n=!0,r){if("string"==typeof t){const s=parseInt(t,10);if(!isFinite(s))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. [".concat(t,"] given."));t=s}const i=this;let o=t;return i.params.loop&&(o+=i.loopedSlides),i.slideTo(o,e,n,r)},slideNext:function rCe(t=this.params.speed,e=!0,n){const r=this,{animating:i,enabled:o,params:s}=r;if(!o)return r;let a=s.slidesPerGroup;"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<s.slidesPerGroupSkip?1:a;if(s.loop){if(i&&s.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return r.slideTo(s.rewind&&r.isEnd?0:r.activeIndex+l,t,e,n)},slidePrev:function iCe(t=this.params.speed,e=!0,n){const r=this,{params:i,animating:o,snapGrid:s,slidesGrid:a,rtlTranslate:l,enabled:c}=r;if(!c)return r;if(i.loop){if(o&&i.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function d(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const h=d(l?r.translate:-r.translate),p=s.map(y=>d(y));let m=s[p.indexOf(h)-1];if(typeof m>"u"&&i.cssMode){let y;s.forEach((E,C)=>{h>=E&&(y=C)}),typeof y<"u"&&(m=s[y>0?y-1:y])}let _=0;return typeof m<"u"&&(_=a.indexOf(m),_<0&&(_=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(_=_-r.slidesPerViewDynamic("previous",!0)+1,_=Math.max(_,0))),r.slideTo(i.rewind&&r.isBeginning?r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1:_,t,e,n)},slideReset:function oCe(t=this.params.speed,e=!0,n){return this.slideTo(this.activeIndex,t,e,n)},slideToClosest:function sCe(t=this.params.speed,e=!0,n,r=.5){const i=this;let o=i.activeIndex;const s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const c=i.snapGrid[a];l-c>(i.snapGrid[a+1]-c)*r&&(o+=i.params.slidesPerGroup)}else{const c=i.snapGrid[a-1];l-c<=(i.snapGrid[a]-c)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,t,e,n)},slideToClickedSlide:function aCe(){const t=this,{params:e,$wrapperEl:n}=t,r="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let o,i=t.clickedIndex;if(e.loop){if(t.animating)return;o=parseInt(Nt(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?i<t.loopedSlides-r/2||i>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),i=n.children(".".concat(e.slideClass,'[data-swiper-slide-index="').concat(o,'"]:not(.').concat(e.slideDuplicateClass,")")).eq(0).index(),_x(()=>{t.slideTo(i)})):t.slideTo(i):i>t.slides.length-r?(t.loopFix(),i=n.children(".".concat(e.slideClass,'[data-swiper-slide-index="').concat(o,'"]:not(.').concat(e.slideDuplicateClass,")")).eq(0).index(),_x(()=>{t.slideTo(i)})):t.slideTo(i)}else t.slideTo(i)}},fCe={loopCreate:function cCe(){const t=this,e=Ai(),{params:n,$wrapperEl:r}=t,i=r.children().length>0?Nt(r.children()[0].parentNode):r;i.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass)).remove();let o=i.children(".".concat(n.slideClass));if(n.loopFillGroupWithBlank){const l=n.slidesPerGroup-o.length%n.slidesPerGroup;if(l!==n.slidesPerGroup){for(let c=0;c<l;c+=1){const u=Nt(e.createElement("div")).addClass("".concat(n.slideClass," ").concat(n.slideBlankClass));i.append(u)}o=i.children(".".concat(n.slideClass))}}"auto"===n.slidesPerView&&!n.loopedSlides&&(n.loopedSlides=o.length),t.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>o.length&&t.params.loopedSlidesLimit&&(t.loopedSlides=o.length);const s=[],a=[];o.each((l,c)=>{Nt(l).attr("data-swiper-slide-index",c)});for(let l=0;l<t.loopedSlides;l+=1){const c=l-Math.floor(l/o.length)*o.length;a.push(o.eq(c)[0]),s.unshift(o.eq(o.length-c-1)[0])}for(let l=0;l<a.length;l+=1)i.append(Nt(a[l].cloneNode(!0)).addClass(n.slideDuplicateClass));for(let l=s.length-1;l>=0;l-=1)i.prepend(Nt(s[l].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function uCe(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:n,loopedSlides:r,allowSlidePrev:i,allowSlideNext:o,snapGrid:s,rtlTranslate:a}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const u=-s[e]-t.getTranslate();e<r?(l=n.length-3*r+e,l+=r,t.slideTo(l,0,!1,!0)&&0!==u&&t.setTranslate((a?-t.translate:t.translate)-u)):e>=n.length-r&&(l=-n.length+e+r,l+=r,t.slideTo(l,0,!1,!0)&&0!==u&&t.setTranslate((a?-t.translate:t.translate)-u)),t.allowSlidePrev=i,t.allowSlideNext=o,t.emit("loopFix")},loopDestroy:function dCe(){const{$wrapperEl:e,params:n,slides:r}=this;e.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,",.").concat(n.slideClass,".").concat(n.slideBlankClass)).remove(),r.removeAttr("data-swiper-slide-index")}};function _Ce(t){const e=this,n=Ai(),r=rr(),i=e.touchEventsData,{params:o,touches:s,enabled:a}=e;if(!a||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let l=t;l.originalEvent&&(l=l.originalEvent);let c=Nt(l.target);if("wrapper"===o.touchEventsTarget&&!c.closest(e.wrapperEl).length||(i.isTouchEvent="touchstart"===l.type,!i.isTouchEvent&&"which"in l&&3===l.which)||!i.isTouchEvent&&"button"in l&&l.button>0||i.isTouched&&i.isMoved)return;const u=!!o.noSwipingClass&&""!==o.noSwipingClass,d=t.composedPath?t.composedPath():t.path;u&&l.target&&l.target.shadowRoot&&d&&(c=Nt(d[0]));const h=o.noSwipingSelector?o.noSwipingSelector:".".concat(o.noSwipingClass);if(o.noSwiping&&(l.target&&l.target.shadowRoot?function mCe(t,e=this){return function n(r){if(!r||r===Ai()||r===rr())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(t);return i||r.getRootNode?i||n(r.getRootNode().host):null}(e)}(h,c[0]):c.closest(h)[0]))return void(e.allowClick=!0);if(o.swipeHandler&&!c.closest(o.swipeHandler)[0])return;s.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,s.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;const m=s.currentX,_=s.currentY,y=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,E=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(y&&(m<=E||m>=r.innerWidth-E)){if("prevent"!==y)return;t.preventDefault()}if(Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=m,s.startY=_,i.touchStartTime=Fh(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==l.type){let C=!0;c.is(i.focusableElements)&&(C=!1,"SELECT"===c[0].nodeName&&(i.isTouched=!1)),n.activeElement&&Nt(n.activeElement).is(i.focusableElements)&&n.activeElement!==c[0]&&n.activeElement.blur(),(o.touchStartForcePreventDefault||C&&e.allowTouchMove&&o.touchStartPreventDefault)&&!c[0].isContentEditable&&l.preventDefault()}e.params.freeMode&&e.params.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function vCe(t){const e=Ai(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:s,enabled:a}=n;if(!a)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l));if(r.isTouchEvent&&"touchmove"!==l.type)return;const c="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),u="touchmove"===l.type?c.pageX:l.pageX,d="touchmove"===l.type?c.pageY:l.pageY;if(l.preventedByNestedSwiper)return o.startX=u,void(o.startY=d);if(!n.allowTouchMove)return Nt(l.target).is(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=Fh()));if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(d<o.startY&&n.translate<=n.maxTranslate()||d>o.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(u<o.startX&&n.translate<=n.maxTranslate()||u>o.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&Nt(l.target).is(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=u,o.currentY=d;const h=o.currentX-o.startX,p=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(h**2+p**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let E;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:h*h+p*p>=25&&(E=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,r.isScrolling=n.isHorizontal()?E>i.touchAngle:90-E>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation(),r.isMoved||(i.loop&&!i.cssMode&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,i.grabCursor&&(!0===n.allowSlideNext||!0===n.allowSlidePrev)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)),n.emit("sliderMove",l),r.isMoved=!0;let m=n.isHorizontal()?h:p;o.diff=m,m*=i.touchRatio,s&&(m=-m),n.swipeDirection=m>0?"prev":"next",r.currentTranslate=m+r.startTranslate;let _=!0,y=i.resistanceRatio;if(i.touchReleaseOnEdges&&(y=0),m>0&&r.currentTranslate>n.minTranslate()?(_=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+m)**y)):m<0&&r.currentTranslate<n.maxTranslate()&&(_=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-m)**y)),_&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(m)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function yCe(t){const e=this,n=e.touchEventsData,{params:r,touches:i,rtlTranslate:o,slidesGrid:s,enabled:a}=e;if(!a)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",l),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const c=Fh(),u=c-n.touchStartTime;if(e.allowClick){const C=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(C&&C[0]||l.target),e.emit("tap click",l),u<300&&c-n.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(n.lastClickTime=Fh(),_x(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let d;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,d=r.followFinger?o?e.translate:-e.translate:-n.currentTranslate,r.cssMode)return;if(e.params.freeMode&&r.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:d});let h=0,p=e.slidesSizesGrid[0];for(let C=0;C<s.length;C+=C<r.slidesPerGroupSkip?1:r.slidesPerGroup){const k=C<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof s[C+k]<"u"?d>=s[C]&&d<s[C+k]&&(h=C,p=s[C+k]-s[C]):d>=s[C]&&(h=C,p=s[s.length-1]-s[s.length-2])}let m=null,_=null;r.rewind&&(e.isBeginning?_=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(m=0));const y=(d-s[h])/p,E=h<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(u>r.longSwipesMs){if(!r.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(y>=r.longSwipesRatio?r.rewind&&e.isEnd?m:h+E:h),"prev"===e.swipeDirection&&(y>1-r.longSwipesRatio?e.slideTo(h+E):null!==_&&y<0&&Math.abs(y)>r.longSwipesRatio?e.slideTo(_):e.slideTo(h))}else{if(!r.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||l.target!==e.navigation.nextEl&&l.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(null!==m?m:h+E),"prev"===e.swipeDirection&&e.slideTo(null!==_?_:h)):e.slideTo(l.target===e.navigation.nextEl?h+E:h)}}function a$(){const t=this,{params:e,el:n}=t;if(n&&0===n.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),t.slideTo(("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slides.length-1:t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=i,t.allowSlideNext=r,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function bCe(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function wCe(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:r}=t;if(!r)return;let i;t.previousTranslate=t.translate,t.translate=t.isHorizontal()?-e.scrollLeft:-e.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const o=t.maxTranslate()-t.minTranslate();i=0===o?0:(t.translate-t.minTranslate())/o,i!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let l$=!1;function CCe(){}const c$=(t,e)=>{const n=Ai(),{params:r,touchEvents:i,el:o,wrapperEl:s,device:a,support:l}=t,c=!!r.nested,u="on"===e?"addEventListener":"removeEventListener",d=e;if(l.touch){const h=!("touchstart"!==i.start||!l.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};o[u](i.start,t.onTouchStart,h),o[u](i.move,t.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),o[u](i.end,t.onTouchEnd,h),i.cancel&&o[u](i.cancel,t.onTouchEnd,h)}else o[u](i.start,t.onTouchStart,!1),n[u](i.move,t.onTouchMove,c),n[u](i.end,t.onTouchEnd,!1);(r.preventClicks||r.preventClicksPropagation)&&o[u]("click",t.onClick,!0),r.cssMode&&s[u]("scroll",t.onScroll),t[d](r.updateOnWindowResize?a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate":"observerUpdate",a$,!0)},TCe={attachEvents:function ECe(){const t=this,e=Ai(),{params:n,support:r}=t;t.onTouchStart=_Ce.bind(t),t.onTouchMove=vCe.bind(t),t.onTouchEnd=yCe.bind(t),n.cssMode&&(t.onScroll=wCe.bind(t)),t.onClick=bCe.bind(t),r.touch&&!l$&&(e.addEventListener("touchstart",CCe),l$=!0),c$(t,"on")},detachEvents:function SCe(){c$(this,"off")}},u$=(t,e)=>t.grid&&e.grid&&e.grid.rows>1,xCe={setBreakpoint:function ICe(){const t=this,{activeIndex:e,initialized:n,loopedSlides:r=0,params:i,$el:o}=t,s=i.breakpoints;if(!s||s&&0===Object.keys(s).length)return;const a=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const c=(a in s?s[a]:void 0)||t.originalParams,u=u$(t,i),d=u$(t,c),h=i.enabled;u&&!d?(o.removeClass("".concat(i.containerModifierClass,"grid ").concat(i.containerModifierClass,"grid-column")),t.emitContainerClasses()):!u&&d&&(o.addClass("".concat(i.containerModifierClass,"grid")),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===i.grid.fill)&&o.addClass("".concat(i.containerModifierClass,"grid-column")),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(y=>{const E=i[y]&&i[y].enabled,C=c[y]&&c[y].enabled;E&&!C&&t[y].disable(),!E&&C&&t[y].enable()});const p=c.direction&&c.direction!==i.direction,m=i.loop&&(c.slidesPerView!==i.slidesPerView||p);p&&n&&t.changeDirection(),xi(t.params,c);const _=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),h&&!_?t.disable():!h&&_&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",c),m&&n&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-r+t.loopedSlides,0,!1)),t.emit("breakpoint",c)},getBreakpoint:function ACe(t,e="window",n){if(!t||"container"===e&&!n)return;let r=!1;const i=rr(),o="window"===e?i.innerHeight:n.clientHeight,s=Object.keys(t).map(a=>{if("string"==typeof a&&0===a.indexOf("@")){const l=parseFloat(a.substr(1));return{value:o*l,point:a}}return{value:a,point:a}});s.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<s.length;a+=1){const{point:l,value:c}=s[a];"window"===e?i.matchMedia("(min-width: ".concat(c,"px)")).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}},MCe={addClasses:function DCe(){const t=this,{classNames:e,params:n,rtl:r,$el:i,device:o,support:s}=t,a=function PCe(t,e){const n=[];return t.forEach(r=>{"object"==typeof r?Object.keys(r).forEach(i=>{r[i]&&n.push(e+i)}):"string"==typeof r&&n.push(e+r)}),n}(["initialized",n.direction,{"pointer-events":!s.touch},{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...a),i.addClass([...e].join(" ")),t.emitContainerClasses()},removeClasses:function kCe(){const{$el:e,classNames:n}=this;e.removeClass(n.join(" ")),this.emitContainerClasses()}},NCe={loadImage:function OCe(t,e,n,r,i,o){const s=rr();let a;function l(){o&&o()}Nt(t).parent("picture")[0]||t.complete&&i||!e?l():(a=new s.Image,a.onload=l,a.onerror=l,r&&(a.sizes=r),n&&(a.srcset=n),e&&(a.src=e))},preloadImages:function RCe(){const t=this;function e(){typeof t>"u"||null===t||!t||t.destroyed||(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(let n=0;n<t.imagesToLoad.length;n+=1){const r=t.imagesToLoad[n];t.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,e)}}},d$={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 VCe(t,e){return function(r={}){const i=Object.keys(r)[0],o=r[i];"object"==typeof o&&null!==o?(["navigation","pagination","scrollbar"].indexOf(i)>=0&&!0===t[i]&&(t[i]={auto:!0}),i in t&&"enabled"in o?(!0===t[i]&&(t[i]={enabled:!0}),"object"==typeof t[i]&&!("enabled"in t[i])&&(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),xi(e,r)):xi(e,r)):xi(e,r)}}const wx={eventsEmitter:Rwe,update:jwe,translate:Qwe,transition:eCe,slide:lCe,loop:fCe,grabCursor:{setGrabCursor:function hCe(t){const e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;n.style.cursor="move",n.style.cursor=t?"grabbing":"grab"},unsetGrabCursor:function pCe(){const t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:TCe,breakpoints:xCe,checkOverflow:{checkOverflow:function LCe(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:r}=n;if(r){const i=t.slides.length-1;t.isLocked=t.size>t.slidesGrid[i]+t.slidesSizesGrid[i]+2*r}else t.isLocked=1===t.snapGrid.length;!0===n.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===n.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:MCe,images:NCe},Cx={};class Yi{constructor(...e){let n,r;if(1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?r=e[0]:[n,r]=e,r||(r={}),r=xi({},r),n&&!r.el&&(r.el=n),r.el&&Nt(r.el).length>1){const a=[];return Nt(r.el).each(l=>{const c=xi({},r,{el:l});a.push(new Yi(c))}),a}const i=this;i.__swiper__=!0,i.support=o$(),i.device=function Pwe(t={}){return yx||(yx=function xwe({userAgent:t}={}){const e=o$(),n=rr(),r=n.navigator.platform,i=t||n.navigator.userAgent,o={ios:!1,android:!1},s=n.screen.width,a=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===r;let p="MacIntel"===r;return!c&&p&&e.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf("".concat(s,"x").concat(a))>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),l&&!h&&(o.os="android",o.android=!0),(c||d||u)&&(o.os="ios",o.ios=!0),o}(t)),yx}({userAgent:r.userAgent}),i.browser=function kwe(){return bx||(bx=function Dwe(){const t=rr();return{isSafari:function e(){const n=t.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),bx}(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],r.modules&&Array.isArray(r.modules)&&i.modules.push(...r.modules);const o={};i.modules.forEach(a=>{a({swiper:i,extendParams:VCe(r,o),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const s=xi({},d$,o);return i.params=xi({},s,Cx,r),i.originalParams=xi({},i.params),i.passedParams=xi({},r),i.params&&i.params.on&&Object.keys(i.params.on).forEach(a=>{i.on(a,i.params.on[a])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),i.$=Nt,Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:Nt(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEvents:function(){const l=["touchstart","touchmove","touchend","touchcancel"],c=["pointerdown","pointermove","pointerup"];return i.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},i.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},i.support.touch||!i.params.simulateTouch?i.touchEventsTouch:i.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:Fh(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,n){const r=this;e=Math.min(Math.max(e,0),1);const i=r.minTranslate(),s=(r.maxTranslate()-i)*e+i;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(r=>0===r.indexOf("swiper")||0===r.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return n.destroyed?"":e.className.split(" ").filter(r=>0===r.indexOf("swiper-slide")||0===r.indexOf(n.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.each(r=>{const i=e.getSlideClasses(r);n.push({slideEl:r,classNames:i}),e.emit("_slideClass",r,i)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e="current",n=!1){const{params:i,slides:o,slidesGrid:s,slidesSizesGrid:a,size:l,activeIndex:c}=this;let u=1;if(i.centeredSlides){let h,d=o[c].swiperSlideSize;for(let p=c+1;p<o.length;p+=1)o[p]&&!h&&(d+=o[p].swiperSlideSize,u+=1,d>l&&(h=!0));for(let p=c-1;p>=0;p-=1)o[p]&&!h&&(d+=o[p].swiperSlideSize,u+=1,d>l&&(h=!0))}else if("current"===e)for(let d=c+1;d<o.length;d+=1)(n?s[d]+a[d]-s[c]<l:s[d]-s[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)s[c]-s[d]<l&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:n,params:r}=e;function i(){const a=Math.min(Math.max(e.rtlTranslate?-1*e.translate:e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let o;r.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(i(),e.params.autoHeight&&e.updateAutoHeight()):(o=e.slideTo(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slides.length-1:e.activeIndex,0,!1,!0),o||i()),r.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n=!0){const r=this,i=r.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(r.$el.removeClass("".concat(r.params.containerModifierClass).concat(i)).addClass("".concat(r.params.containerModifierClass).concat(e)),r.emitContainerClasses(),r.params.direction=e,r.slides.each(o=>{"vertical"===e?o.style.width="":o.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(e){const n=this;n.rtl&&"rtl"===e||!n.rtl&&"ltr"===e||(n.rtl="rtl"===e,n.rtlTranslate="horizontal"===n.params.direction&&n.rtl,n.rtl?(n.$el.addClass("".concat(n.params.containerModifierClass,"rtl")),n.el.dir="rtl"):(n.$el.removeClass("".concat(n.params.containerModifierClass,"rtl")),n.el.dir="ltr"),n.update())}mount(e){const n=this;if(n.mounted)return!0;const r=Nt(e||n.params.el);if(!(e=r[0]))return!1;e.swiper=n;const i=()=>".".concat((n.params.wrapperClass||"").trim().split(" ").join("."));let s=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const a=Nt(e.shadowRoot.querySelector(i()));return a.children=l=>r.children(l),a}return r.children?r.children(i()):Nt(r).children(i())})();if(0===s.length&&n.params.createElements){const l=Ai().createElement("div");s=Nt(l),l.className=n.params.wrapperClass,r.append(l),r.children(".".concat(n.params.slideClass)).each(c=>{s.append(c)})}return Object.assign(n,{$el:r,el:e,$wrapperEl:s,wrapperEl:s[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===n.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===s.css("display")}),!0}init(e){const n=this;return n.initialized||!1===n.mount(e)||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.params.loop&&n.loopCreate(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.preloadImages&&n.preloadImages(),n.slideTo(n.params.loop?n.params.initialSlide+n.loopedSlides:n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.attachEvents(),n.initialized=!0,n.emit("init"),n.emit("afterInit")),n}destroy(e=!0,n=!0){const r=this,{params:i,$el:o,$wrapperEl:s,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),o.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),!1!==e&&(r.$el[0].swiper=null,function Ewe(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch(r){}try{delete e[n]}catch(r){}})}(r)),r.destroyed=!0),null}static extendDefaults(e){xi(Cx,e)}static get extendedDefaults(){return Cx}static get defaults(){return d$}static installModule(e){Yi.prototype.__modules__||(Yi.prototype.__modules__=[]);const n=Yi.prototype.__modules__;"function"==typeof e&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>Yi.installModule(n)),Yi):(Yi.installModule(e),Yi)}}Object.keys(wx).forEach(t=>{Object.keys(wx[t]).forEach(e=>{Yi.prototype[e]=wx[t][e]})}),Yi.use([function Mwe({swiper:t,on:e,emit:n}){const r=rr();let i=null,o=null;const s=()=>{!t||t.destroyed||!t.initialized||(n("beforeResize"),n("resize"))},c=()=>{!t||t.destroyed||!t.initialized||n("orientationchange")};e("init",()=>{t.params.resizeObserver&&typeof r.ResizeObserver<"u"?!t||t.destroyed||!t.initialized||(i=new ResizeObserver(u=>{o=r.requestAnimationFrame(()=>{const{width:d,height:h}=t;let p=d,m=h;u.forEach(({contentBoxSize:_,contentRect:y,target:E})=>{E&&E!==t.el||(p=y?y.width:(_[0]||_).inlineSize,m=y?y.height:(_[0]||_).blockSize)}),(p!==d||m!==h)&&s()})}),i.observe(t.el)):(r.addEventListener("resize",s),r.addEventListener("orientationchange",c))}),e("destroy",()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&t.el&&(i.unobserve(t.el),i=null),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",c)})},function Owe({swiper:t,extendParams:e,on:n,emit:r}){const i=[],o=rr(),s=(c,u={})=>{const h=new(o.MutationObserver||o.WebkitMutationObserver)(p=>{if(1===p.length)return void r("observerUpdate",p[0]);const m=function(){r("observerUpdate",p[0])};o.requestAnimationFrame?o.requestAnimationFrame(m):o.setTimeout(m,0)});h.observe(c,{attributes:typeof u.attributes>"u"||u.attributes,childList:typeof u.childList>"u"||u.childList,characterData:typeof u.characterData>"u"||u.characterData}),i.push(h)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(t.params.observer){if(t.params.observeParents){const c=t.$el.parents();for(let u=0;u<c.length;u+=1)s(c[u])}s(t.$el[0],{childList:t.params.observeSlideChildren}),s(t.$wrapperEl[0],{attributes:!1})}}),n("destroy",()=>{i.forEach(c=>{c.disconnect()}),i.splice(0,i.length)})}]);const Sa=Yi;function f$(t){const{effect:e,swiper:n,on:r,setTranslate:i,setTransition:o,overwriteParams:s,perspective:a,recreateShadows:l,getEffectParams:c}=t;let u;r("beforeInit",()=>{if(n.params.effect!==e)return;n.classNames.push("".concat(n.params.containerModifierClass).concat(e)),a&&a()&&n.classNames.push("".concat(n.params.containerModifierClass,"3d"));const d=s?s():{};Object.assign(n.params,d),Object.assign(n.originalParams,d)}),r("setTranslate",()=>{n.params.effect===e&&i()}),r("setTransition",(d,h)=>{n.params.effect===e&&o(h)}),r("transitionEnd",()=>{if(n.params.effect===e&&l){if(!c||!c().slideShadows)return;n.slides.each(d=>{n.$(d).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()}),l()}}),r("virtualUpdate",()=>{n.params.effect===e&&(n.slides.length||(u=!0),requestAnimationFrame(()=>{u&&n.slides&&n.slides.length&&(i(),u=!1)}))})}function h$({swiper:t,extendParams:e,on:n}){e({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const r=(a,l,c)=>{let u=a.find(c?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),d=a.find(c?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===u.length&&(u=Nt('<div class="swiper-slide-shadow-'.concat(c?"left":"top",'"></div>')),a.append(u)),0===d.length&&(d=Nt('<div class="swiper-slide-shadow-'.concat(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))};f$({effect:"cube",swiper:t,on:n,setTranslate:()=>{const{$el:a,$wrapperEl:l,slides:c,width:u,height:d,rtlTranslate:h,size:p,browser:m}=t,_=t.params.cubeEffect,y=t.isHorizontal(),E=t.virtual&&t.params.virtual.enabled;let k,C=0;_.shadow&&(y?(k=l.find(".swiper-cube-shadow"),0===k.length&&(k=Nt('<div class="swiper-cube-shadow"></div>'),l.append(k)),k.css({height:"".concat(u,"px")})):(k=a.find(".swiper-cube-shadow"),0===k.length&&(k=Nt('<div class="swiper-cube-shadow"></div>'),a.append(k))));for(let q=0;q<c.length;q+=1){const K=c.eq(q);let N=q;E&&(N=parseInt(K.attr("data-swiper-slide-index"),10));let P=90*N,V=Math.floor(P/360);h&&(P=-P,V=Math.floor(-P/360));const F=Math.max(Math.min(K[0].progress,1),-1);let R=0,O=0,D=0;N%4==0?(R=4*-V*p,D=0):(N-1)%4==0?(R=0,D=4*-V*p):(N-2)%4==0?(R=p+4*V*p,D=p):(N-3)%4==0&&(R=-p,D=3*p+4*p*V),h&&(R=-R),y||(O=R,R=0);const Se="rotateX(".concat(y?0:-P,"deg) rotateY(").concat(y?P:0,"deg) translate3d(").concat(R,"px, ").concat(O,"px, ").concat(D,"px)");F<=1&&F>-1&&(C=90*N+90*F,h&&(C=90*-N-90*F)),K.transform(Se),_.slideShadows&&r(K,F,y)}if(l.css({"-webkit-transform-origin":"50% 50% -".concat(p/2,"px"),"transform-origin":"50% 50% -".concat(p/2,"px")}),_.shadow)if(y)k.transform("translate3d(0px, ".concat(u/2+_.shadowOffset,"px, ").concat(-u/2,"px) rotateX(90deg) rotateZ(0deg) scale(").concat(_.shadowScale,")"));else{const q=Math.abs(C)-90*Math.floor(Math.abs(C)/90),K=1.5-(Math.sin(2*q*Math.PI/360)/2+Math.cos(2*q*Math.PI/360)/2),P=_.shadowScale/K,V=_.shadowOffset;k.transform("scale3d(".concat(_.shadowScale,", 1, ").concat(P,") translate3d(0px, ").concat(d/2+V,"px, ").concat(-d/2/P,"px) rotateX(-90deg)"))}const j=m.isSafari||m.isWebView?-p/2:0;l.transform("translate3d(0px,0,".concat(j,"px) rotateX(").concat(t.isHorizontal()?0:C,"deg) rotateY(").concat(t.isHorizontal()?-C:0,"deg)")),l[0].style.setProperty("--swiper-cube-translate-z","".concat(j,"px"))},setTransition:a=>{const{$el:l,slides:c}=t;c.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a),t.params.cubeEffect.shadow&&!t.isHorizontal()&&l.find(".swiper-cube-shadow").transition(a)},recreateShadows:()=>{const a=t.isHorizontal();t.slides.each(l=>{const c=Math.max(Math.min(l.progress,1),-1);r(Nt(l),c,a)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function p$(t,e,n){const r="swiper-slide-shadow".concat(n?"-".concat(n):""),i=t.transformEl?e.find(t.transformEl):e;let o=i.children(".".concat(r));return o.length||(o=Nt('<div class="swiper-slide-shadow'.concat(n?"-".concat(n):"",'"></div>')),i.append(o)),o}function BCe(t,e){return t.transformEl?e.find(t.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):e}function g$({swiper:t,extendParams:e,on:n}){e({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const r=(a,l,c)=>{let u=t.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),d=t.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===u.length&&(u=p$(c,a,t.isHorizontal()?"left":"top")),0===d.length&&(d=p$(c,a,t.isHorizontal()?"right":"bottom")),u.length&&(u[0].style.opacity=Math.max(-l,0)),d.length&&(d[0].style.opacity=Math.max(l,0))};f$({effect:"flip",swiper:t,on:n,setTranslate:()=>{const{slides:a,rtlTranslate:l}=t,c=t.params.flipEffect;for(let u=0;u<a.length;u+=1){const d=a.eq(u);let h=d[0].progress;t.params.flipEffect.limitRotation&&(h=Math.max(Math.min(d[0].progress,1),-1));const p=d[0].swiperSlideOffset;let _=-180*h,y=0,E=t.params.cssMode?-p-t.translate:-p,C=0;t.isHorizontal()?l&&(_=-_):(C=E,E=0,y=-_,_=0),d[0].style.zIndex=-Math.abs(Math.round(h))+a.length,c.slideShadows&&r(d,h,c);const k="translate3d(".concat(E,"px, ").concat(C,"px, 0px) rotateX(").concat(y,"deg) rotateY(").concat(_,"deg)");BCe(c,d).transform(k)}},setTransition:a=>{const{transformEl:l}=t.params.flipEffect;(l?t.slides.find(l):t.slides).transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a),function $Ce({swiper:t,duration:e,transformEl:n,allSlides:r}){const{slides:i,activeIndex:o,$wrapperEl:s}=t;if(t.params.virtualTranslate&&0!==e){let l,a=!1;l=r?n?i.find(n):i:n?i.eq(o).find(n):i.eq(o),l.transitionEnd(()=>{if(a||!t||t.destroyed)return;a=!0,t.animating=!1;const c=["webkitTransitionEnd","transitionend"];for(let u=0;u<c.length;u+=1)s.trigger(c[u])})}}({swiper:t,duration:a,transformEl:l})},recreateShadows:()=>{const a=t.params.flipEffect;t.slides.each(l=>{const c=Nt(l);let u=c[0].progress;t.params.flipEffect.limitRotation&&(u=Math.max(Math.min(l.progress,1),-1)),r(c,u,a)})},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function m$(t,e){var n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function _$(t,e){Tt(2,arguments);var n=Kt(t),r=Kt(e),i=m$(n,r),o=Math.abs(function UCe(t,e){Tt(2,arguments);var n=Ml(t),r=Ml(e),i=n.getTime()-j_(n),o=r.getTime()-j_(r);return Math.round((i-o)/864e5)}(n,r));n.setDate(n.getDate()-i*o);var a=i*(o-+(m$(n,r)===-i));return 0===a?0:a}let $y=(()=>{var t;class e{constructor(){this.showFloating$=new ct({show:!1})}}return(t=e).\u0275fac=function(r){return new(r||t)},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const HCe=["prevElRef"],jCe=["nextElRef"],GCe=["scrollbarElRef"],qCe=["paginationElRef"];function WCe(t,e){1&t&&(Tr(0),ue(1,"div",6,7)(3,"div",8,9),Ir())}function YCe(t,e){1&t&&ue(0,"div",10,11)}function KCe(t,e){1&t&&ue(0,"div",12,13)}function QCe(t,e){}function XCe(t,e){1&t&&z(0,QCe,0,0,"ng-template")}function ZCe(t,e){}function JCe(t,e){1&t&&z(0,ZCe,0,0,"ng-template")}function eEe(t,e){}function tEe(t,e){1&t&&z(0,eEe,0,0,"ng-template")}function nEe(t,e){}const v$=function(t){return{$implicit:t}};function rEe(t,e){if(1&t&&(A(0,"div",3),z(1,nEe,0,0,"ng-template",18),M()),2&t){const n=x().$implicit;T("ngClass",x(2).zoomContainerClass),b(1),T("ngTemplateOutlet",n.template)("ngTemplateOutletContext",$e(3,v$,n.slideData))}}function iEe(t,e){}function oEe(t,e){if(1&t&&(Tr(0),z(1,iEe,0,0,"ng-template",18),Ir()),2&t){const n=x().$implicit;b(1),T("ngTemplateOutlet",n.template)("ngTemplateOutletContext",$e(2,v$,n.slideData))}}function sEe(t,e){if(1&t&&(A(0,"div",15),z(1,rEe,2,5,"div",16),z(2,oEe,2,4,"ng-container",17),M()),2&t){const n=e.$implicit,r=x().key,i=x();Zn(i.style),T("ngClass",(n.class?n.class+" ":"")+i.slideClass+(""!==r?" "+i.slideDuplicateClass:""))("ngSwitch",n.zoom),vt("data-swiper-slide-index",n.virtualIndex?n.virtualIndex:n.slideIndex)("data-swiper-autoplay",n.autoplayDelay),b(1),T("ngSwitchCase",!0)}}function aEe(t,e){1&t&&(z(0,sEe,3,7,"div",14),ye(1,"async")),2&t&&T("ngForOf",Ce(1,1,e.loopSlides))}const lEe=[[["","slot","container-start"]],[["","slot","wrapper-start"]],[["","slot","wrapper-end"]],[["","slot","container-end"]]],cEe=function(t){return{loopSlides:t,key:"prepend"}},uEe=function(t){return{loopSlides:t,key:""}},dEe=function(t){return{loopSlides:t,key:"append"}},fEe=["[slot=container-start]","[slot=wrapper-start]","[slot=wrapper-end]","[slot=container-end]"],y$=["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 Gu(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function Ex(t){return typeof t<"u"&&"boolean"!=typeof t&&!0===t.enabled}function b$(t,e,n){return!0===zy(t)&&e&&!e.el||!("boolean"!=typeof e&&e.el!==(null==n?void 0:n.nativeElement)&&("string"==typeof e.el||"object"==typeof e.el))}function Ta(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof t[r]>"u"?t[r]=e[r]:t[r]&&!e[r]||(Gu(e[r])&&Gu(t[r])&&Object.keys(e[r]).length>0?e[r].__swiper__?t[r]=e[r]:Ta(t[r],e[r]):t[r]=e[r])})}function zy(t){return null!=t&&"false"!=="".concat(t)}const hEe=["pagination","navigation","scrollbar","virtual"];function Uy(t,e={}){return Gu(t)?t:!0===zy(t)&&e}function Sx(t={}){const e={on:{}},n={};Ta(e,Sa.defaults),Ta(e,Sa.extendedDefaults),e._emitClasses=!0,e.init=!1;const r={},i=y$.map(o=>o.replace(/_/,""));return Object.keys(t).forEach(o=>{const s=o.replace(/^_/,"");i.indexOf(s)>=0?Gu(t[o])?(e[s]={},n[s]={},Ta(e[s],t[o]),Ta(n[s],t[o])):(e[s]=t[o],n[s]=t[o]):r[s]=t[o]}),["navigation","pagination","scrollbar"].forEach(o=>{!0===e[o]&&(e[o]={}),!1===e[o]&&delete e[o]}),{params:e,passedParams:n,rest:r}}y$.map(t=>t.replace(/_/,""));let qu=(()=>{class t{constructor(n){this.template=n,this.class="",this.autoplayDelay=null,this.slideData={isActive:!1,isPrev:!1,isNext:!1,isVisible:!1,isDuplicate:!1}}set ngClass(n){this.class=[this.class||"",n].join(" ")}set zoom(n){this._zoom=zy(n)}get zoom(){return this._zoom}get classNames(){return this._classNames}set classNames(n){this._classNames!==n&&(this._classNames=n,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(n){return n.some(r=>this._classNames.indexOf(r)>=0)}}return t.\u0275fac=function(n){return new(n||t)(te(io))},t.\u0275dir=Ke({type:t,selectors:[["ng-template","swiperSlide",""]],inputs:{virtualIndex:"virtualIndex",class:"class",ngClass:"ngClass",autoplayDelay:["data-swiper-autoplay","autoplayDelay"],zoom:"zoom"}}),t})(),Vh=(()=>{class t{constructor(n,r,i,o){this._ngZone=n,this.elementRef=r,this._changeDetectorRef=i,this._platformId=o,this.slideClass="swiper-slide",this.wrapperClass="swiper-wrapper",this.showNavigation=!0,this.showPagination=!0,this.showScrollbar=!0,this.s__beforeBreakpoint=new de,this.s__containerClasses=new de,this.s__slideClass=new de,this.s__swiper=new de,this.s_activeIndexChange=new de,this.s_afterInit=new de,this.s_autoplay=new de,this.s_autoplayStart=new de,this.s_autoplayStop=new de,this.s_autoplayPause=new de,this.s_autoplayResume=new de,this.s_beforeDestroy=new de,this.s_beforeInit=new de,this.s_beforeLoopFix=new de,this.s_beforeResize=new de,this.s_beforeSlideChangeStart=new de,this.s_beforeTransitionStart=new de,this.s_breakpoint=new de,this.s_changeDirection=new de,this.s_click=new de,this.s_doubleTap=new de,this.s_doubleClick=new de,this.s_destroy=new de,this.s_fromEdge=new de,this.s_hashChange=new de,this.s_hashSet=new de,this.s_imagesReady=new de,this.s_init=new de,this.s_keyPress=new de,this.s_lazyImageLoad=new de,this.s_lazyImageReady=new de,this.s_loopFix=new de,this.s_momentumBounce=new de,this.s_navigationHide=new de,this.s_navigationShow=new de,this.s_navigationPrev=new de,this.s_navigationNext=new de,this.s_observerUpdate=new de,this.s_orientationchange=new de,this.s_paginationHide=new de,this.s_paginationRender=new de,this.s_paginationShow=new de,this.s_paginationUpdate=new de,this.s_progress=new de,this.s_reachBeginning=new de,this.s_reachEnd=new de,this.s_realIndexChange=new de,this.s_resize=new de,this.s_scroll=new de,this.s_scrollbarDragEnd=new de,this.s_scrollbarDragMove=new de,this.s_scrollbarDragStart=new de,this.s_setTransition=new de,this.s_setTranslate=new de,this.s_slideChange=new de,this.s_slideChangeTransitionEnd=new de,this.s_slideChangeTransitionStart=new de,this.s_slideNextTransitionEnd=new de,this.s_slideNextTransitionStart=new de,this.s_slidePrevTransitionEnd=new de,this.s_slidePrevTransitionStart=new de,this.s_slideResetTransitionStart=new de,this.s_slideResetTransitionEnd=new de,this.s_sliderMove=new de,this.s_sliderFirstMove=new de,this.s_slidesLengthChange=new de,this.s_slidesGridLengthChange=new de,this.s_snapGridLengthChange=new de,this.s_snapIndexChange=new de,this.s_tap=new de,this.s_toEdge=new de,this.s_touchEnd=new de,this.s_touchMove=new de,this.s_touchMoveOpposite=new de,this.s_touchStart=new de,this.s_transitionEnd=new de,this.s_transitionStart=new de,this.s_update=new de,this.s_zoomChange=new de,this.s_swiper=new de,this.s_lock=new de,this.s_unlock=new de,this._activeSlides=new hn,this.containerClasses="swiper",this.slidesChanges=s=>{this.slides=s.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=yr(this.slides.slice(this.slides.length-this.loopedSlides)),this.appendSlides=yr(this.slides.slice(0,this.loopedSlides))),this._changeDetectorRef.detectChanges()},this.style=null,this.updateVirtualSlides=s=>{!this.swiperRef||this.currentVirtualData&&this.currentVirtualData.from===s.from&&this.currentVirtualData.to===s.to&&this.currentVirtualData.offset===s.offset||(this.style=this.swiperRef.isHorizontal()?{[this.swiperRef.rtlTranslate?"right":"left"]:"".concat(s.offset,"px")}:{top:"".concat(s.offset,"px")},this.currentVirtualData=s,this._activeSlides.next(s.slides),this._ngZone.run(()=>{this._changeDetectorRef.detectChanges()}),this._ngZone.runOutsideAngular(()=>{this.swiperRef.updateSlides(),this.swiperRef.updateProgress(),this.swiperRef.updateSlidesClasses(),Ex(this.swiperRef.params.lazy)&&this.swiperRef.lazy.load(),this.swiperRef.virtual.update(!0)}))}}set navigation(n){var r,i,o;const s="boolean"!=typeof this._navigation&&""!==this._navigation?null===(r=this._navigation)||void 0===r?void 0:r.nextEl:null,a="boolean"!=typeof this._navigation&&""!==this._navigation?null===(i=this._navigation)||void 0===i?void 0:i.prevEl:null;this._navigation=Uy(n,{nextEl:s||null,prevEl:a||null}),this.showNavigation=!(!0!==zy(n)||this._navigation&&"boolean"!=typeof this._navigation&&this._navigation.prevEl!==(null===(o=this._prevElRef)||void 0===o?void 0:o.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(n){var r;const i="boolean"!=typeof this._pagination&&""!==this._pagination?null===(r=this._pagination)||void 0===r?void 0:r.el:null;this._pagination=Uy(n,{el:i||null}),this.showPagination=b$(n,this._pagination,this._paginationElRef)}get pagination(){return this._pagination}set scrollbar(n){var r;const i="boolean"!=typeof this._scrollbar&&""!==this._scrollbar?null===(r=this._scrollbar)||void 0===r?void 0:r.el:null;this._scrollbar=Uy(n,{el:i||null}),this.showScrollbar=b$(n,this._scrollbar,this._scrollbarElRef)}get scrollbar(){return this._scrollbar}set virtual(n){this._virtual=Uy(n)}get virtual(){return this._virtual}set config(n){this.updateSwiper(n);const{params:r}=Sx(n);Object.assign(this,r)}set prevElRef(n){this._prevElRef=n,this._setElement(n,this.navigation,"navigation","prevEl")}set nextElRef(n){this._nextElRef=n,this._setElement(n,this.navigation,"navigation","nextEl")}set scrollbarElRef(n){this._scrollbarElRef=n,this._setElement(n,this.scrollbar,"scrollbar")}set paginationElRef(n){this._paginationElRef=n,this._setElement(n,this.pagination,"pagination")}get activeSlides(){return this.virtual?this._activeSlides:yr(this.slides)}get zoomContainerClass(){return this.zoom&&"boolean"!=typeof this.zoom?this.zoom.containerClass:"swiper-zoom-container"}_setElement(n,r,i,o="el"){if(!r||!n)return;if(n.nativeElement){if(r[o]===n.nativeElement)return;r[o]=n.nativeElement}const s={};s[i]=!0,this.updateInitSwiper(s)}ngOnInit(){const{params:n}=Sx(this);Object.assign(this,n)}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:n}=Sx(this);Object.assign(this,n),this._ngZone.runOutsideAngular(()=>{n.init=!1,n.virtual||(n.observer=!0),n.onAny=(l,...c)=>{const u=this["s_"+l];u&&u.emit([...c])},Object.assign(n.on,{_containerClasses:(l,c)=>{setTimeout(()=>{this.containerClasses=c})},_slideClasses:(l,c)=>{c.forEach(({slideEl:u,classNames:d},h)=>{const p=u.getAttribute("data-swiper-slide-index"),m=p?parseInt(p):h;if(this.virtual){const _=this.slides.find(y=>y.virtualIndex&&y.virtualIndex===m);if(_)return void(_.classNames=d)}this.slides[m]&&(this.slides[m].classNames=d)}),this._changeDetectorRef.detectChanges()}});const s=new Sa(n);s.loopCreate=()=>{},s.loopDestroy=()=>{},n.loop&&(s.loopedSlides=this.loopedSlides);const a=Ex(s.params.virtual);if(s.virtual&&a){s.virtual.slides=this.slides;const l={cache:!1,slides:this.slides,renderExternal:this.updateVirtualSlides,renderExternalUpdate:!1};Ta(s.params.virtual,l),Ta(s.originalParams.virtual,l)}if(h4(this._platformId)){this.swiperRef=s.init(this.elementRef.nativeElement);const l=Ex(this.swiperRef.params.virtual);this.swiperRef.virtual&&l&&this.swiperRef.virtual.update(!0),this._changeDetectorRef.detectChanges()}})}ngOnChanges(n){this.updateSwiper(n),this._changeDetectorRef.detectChanges()}updateInitSwiper(n){n&&this.swiperRef&&!this.swiperRef.destroyed&&this._ngZone.runOutsideAngular(()=>{const{pagination:i,navigation:o,scrollbar:s,thumbs:l}=this.swiperRef;n.pagination&&(this.pagination&&"boolean"!=typeof this.pagination&&this.pagination.el&&i&&!i.el?(this.updateParameter("pagination",this.pagination),i.init(),i.render(),i.update()):(i.destroy(),i.el=null)),n.scrollbar&&(this.scrollbar&&"boolean"!=typeof this.scrollbar&&this.scrollbar.el&&s&&!s.el?(this.updateParameter("scrollbar",this.scrollbar),s.init(),s.updateSize(),s.setTranslate()):(s.destroy(),s.el=null)),n.navigation&&(this.navigation&&"boolean"!=typeof this.navigation&&this.navigation.prevEl&&this.navigation.nextEl&&o&&!o.prevEl&&!o.nextEl?(this.updateParameter("navigation",this.navigation),o.init(),o.update()):o.prevEl&&o.nextEl&&(o.destroy(),o.nextEl=null,o.prevEl=null)),n.thumbs&&this.thumbs&&this.thumbs.swiper&&(this.updateParameter("thumbs",this.thumbs),l.init()&&l.update(!0)),n.controller&&this.controller&&this.controller.control&&(this.swiperRef.controller.control=this.controller.control),this.swiperRef.update()})}updateSwiper(n){this._ngZone.runOutsideAngular(()=>{var r,i;if(!n.config&&n&&this.swiperRef&&!this.swiperRef.destroyed){for(const o in n){if(hEe.indexOf(o)>=0)continue;const s=null!==(i=null===(r=n[o])||void 0===r?void 0:r.currentValue)&&void 0!==i?i:n[o];this.updateParameter(o,s)}n.allowSlideNext&&(this.swiperRef.allowSlideNext=this.allowSlideNext),n.allowSlidePrev&&(this.swiperRef.allowSlidePrev=this.allowSlidePrev),n.direction&&this.swiperRef.changeDirection(this.direction,!1),n.breakpoints&&(this.loop&&!this.loopedSlides&&this.calcLoopedSlides(),this.swiperRef.currentBreakpoint=null,this.swiperRef.setBreakpoint()),(n.thumbs||n.controller)&&this.updateInitSwiper(n),this.swiperRef.update()}})}calcLoopedSlides(){if(!this.loop)return!1;let n=this.slidesPerView;if(this.breakpoints){const i=Sa.prototype.getBreakpoint(this.breakpoints),o=i in this.breakpoints?this.breakpoints[i]:void 0;o&&o.slidesPerView&&(n=o.slidesPerView)}if("auto"===n)return this.loopedSlides=this.slides.length,this.slides.length;let r=this.loopedSlides||n;return!!r&&(this.loopAdditionalSlides&&(r+=this.loopAdditionalSlides),r>this.slides.length&&(r=this.slides.length),this.loopedSlides=r,!0)}updateParameter(n,r){if(!this.swiperRef||this.swiperRef.destroyed)return;const i=n.replace(/^_/,""),o=Gu(this.swiperRef.params[i]);"enabled"!==i?o&&Gu(r)?Ta(this.swiperRef.params[i],r):this.swiperRef.params[i]=r:!0===r?this.swiperRef.enable():!1===r&&this.swiperRef.disable()}ngOnDestroy(){this._ngZone.runOutsideAngular(()=>{var n;null===(n=this.swiperRef)||void 0===n||n.destroy(!0,!1)})}}return t.\u0275fac=function(n){return new(n||t)(te(Dt),te(Cr),te(Vc),te(Io))},t.\u0275cmp=Bt({type:t,selectors:[["swiper"],["","swiper",""]],contentQueries:function(n,r,i){if(1&n&&$1(i,qu,4),2&n){let o;Vi(o=Bi())&&(r.slidesEl=o)}},viewQuery:function(n,r){if(1&n&&(ko(HCe,5),ko(jCe,5),ko(GCe,5),ko(qCe,5)),2&n){let i;Vi(i=Bi())&&(r.prevElRef=i.first),Vi(i=Bi())&&(r.nextElRef=i.first),Vi(i=Bi())&&(r.scrollbarElRef=i.first),Vi(i=Bi())&&(r.paginationElRef=i.first)}},hostVars:2,hostBindings:function(n,r){2&n&&Li(r.containerClasses)},inputs:{enabled:"enabled",on:"on",direction:"direction",touchEventsTarget:"touchEventsTarget",initialSlide:"initialSlide",speed:"speed",cssMode:"cssMode",updateOnWindowResize:"updateOnWindowResize",resizeObserver:"resizeObserver",nested:"nested",focusableElements:"focusableElements",width:"width",height:"height",preventInteractionOnTransition:"preventInteractionOnTransition",userAgent:"userAgent",url:"url",edgeSwipeDetection:"edgeSwipeDetection",edgeSwipeThreshold:"edgeSwipeThreshold",freeMode:"freeMode",autoHeight:"autoHeight",setWrapperSize:"setWrapperSize",virtualTranslate:"virtualTranslate",effect:"effect",breakpoints:"breakpoints",spaceBetween:"spaceBetween",slidesPerView:"slidesPerView",maxBackfaceHiddenSlides:"maxBackfaceHiddenSlides",grid:"grid",slidesPerGroup:"slidesPerGroup",slidesPerGroupSkip:"slidesPerGroupSkip",centeredSlides:"centeredSlides",centeredSlidesBounds:"centeredSlidesBounds",slidesOffsetBefore:"slidesOffsetBefore",slidesOffsetAfter:"slidesOffsetAfter",normalizeSlideIndex:"normalizeSlideIndex",centerInsufficientSlides:"centerInsufficientSlides",watchOverflow:"watchOverflow",roundLengths:"roundLengths",touchRatio:"touchRatio",touchAngle:"touchAngle",simulateTouch:"simulateTouch",shortSwipes:"shortSwipes",longSwipes:"longSwipes",longSwipesRatio:"longSwipesRatio",longSwipesMs:"longSwipesMs",followFinger:"followFinger",allowTouchMove:"allowTouchMove",threshold:"threshold",touchMoveStopPropagation:"touchMoveStopPropagation",touchStartPreventDefault:"touchStartPreventDefault",touchStartForcePreventDefault:"touchStartForcePreventDefault",touchReleaseOnEdges:"touchReleaseOnEdges",uniqueNavElements:"uniqueNavElements",resistance:"resistance",resistanceRatio:"resistanceRatio",watchSlidesProgress:"watchSlidesProgress",grabCursor:"grabCursor",preventClicks:"preventClicks",preventClicksPropagation:"preventClicksPropagation",slideToClickedSlide:"slideToClickedSlide",preloadImages:"preloadImages",updateOnImagesReady:"updateOnImagesReady",loop:"loop",loopAdditionalSlides:"loopAdditionalSlides",loopedSlides:"loopedSlides",loopedSlidesLimit:"loopedSlidesLimit",loopFillGroupWithBlank:"loopFillGroupWithBlank",loopPreventsSlide:"loopPreventsSlide",rewind:"rewind",allowSlidePrev:"allowSlidePrev",allowSlideNext:"allowSlideNext",swipeHandler:"swipeHandler",noSwiping:"noSwiping",noSwipingClass:"noSwipingClass",noSwipingSelector:"noSwipingSelector",passiveListeners:"passiveListeners",containerModifierClass:"containerModifierClass",slideClass:"slideClass",slideBlankClass:"slideBlankClass",slideActiveClass:"slideActiveClass",slideDuplicateActiveClass:"slideDuplicateActiveClass",slideVisibleClass:"slideVisibleClass",slideDuplicateClass:"slideDuplicateClass",slideNextClass:"slideNextClass",slideDuplicateNextClass:"slideDuplicateNextClass",slidePrevClass:"slidePrevClass",slideDuplicatePrevClass:"slideDuplicatePrevClass",wrapperClass:"wrapperClass",runCallbacksOnInit:"runCallbacksOnInit",observeParents:"observeParents",observeSlideChildren:"observeSlideChildren",a11y:"a11y",autoplay:"autoplay",controller:"controller",coverflowEffect:"coverflowEffect",cubeEffect:"cubeEffect",fadeEffect:"fadeEffect",flipEffect:"flipEffect",creativeEffect:"creativeEffect",cardsEffect:"cardsEffect",hashNavigation:"hashNavigation",history:"history",keyboard:"keyboard",lazy:"lazy",mousewheel:"mousewheel",parallax:"parallax",thumbs:"thumbs",zoom:"zoom",slidesPerGroupAuto:"slidesPerGroupAuto",class:"class",id:"id",navigation:"navigation",pagination:"pagination",scrollbar:"scrollbar",virtual:"virtual",config:"config"},outputs:{s__beforeBreakpoint:"_beforeBreakpoint",s__containerClasses:"_containerClasses",s__slideClass:"_slideClass",s__swiper:"_swiper",s_activeIndexChange:"activeIndexChange",s_afterInit:"afterInit",s_autoplay:"autoplay",s_autoplayStart:"autoplayStart",s_autoplayStop:"autoplayStop",s_autoplayPause:"autoplayPause",s_autoplayResume:"autoplayResume",s_beforeDestroy:"beforeDestroy",s_beforeInit:"beforeInit",s_beforeLoopFix:"beforeLoopFix",s_beforeResize:"beforeResize",s_beforeSlideChangeStart:"beforeSlideChangeStart",s_beforeTransitionStart:"beforeTransitionStart",s_breakpoint:"breakpoint",s_changeDirection:"changeDirection",s_click:"click",s_doubleTap:"doubleTap",s_doubleClick:"doubleClick",s_destroy:"destroy",s_fromEdge:"fromEdge",s_hashChange:"hashChange",s_hashSet:"hashSet",s_imagesReady:"imagesReady",s_init:"init",s_keyPress:"keyPress",s_lazyImageLoad:"lazyImageLoad",s_lazyImageReady:"lazyImageReady",s_loopFix:"loopFix",s_momentumBounce:"momentumBounce",s_navigationHide:"navigationHide",s_navigationShow:"navigationShow",s_navigationPrev:"navigationPrev",s_navigationNext:"navigationNext",s_observerUpdate:"observerUpdate",s_orientationchange:"orientationchange",s_paginationHide:"paginationHide",s_paginationRender:"paginationRender",s_paginationShow:"paginationShow",s_paginationUpdate:"paginationUpdate",s_progress:"progress",s_reachBeginning:"reachBeginning",s_reachEnd:"reachEnd",s_realIndexChange:"realIndexChange",s_resize:"resize",s_scroll:"scroll",s_scrollbarDragEnd:"scrollbarDragEnd",s_scrollbarDragMove:"scrollbarDragMove",s_scrollbarDragStart:"scrollbarDragStart",s_setTransition:"setTransition",s_setTranslate:"setTranslate",s_slideChange:"slideChange",s_slideChangeTransitionEnd:"slideChangeTransitionEnd",s_slideChangeTransitionStart:"slideChangeTransitionStart",s_slideNextTransitionEnd:"slideNextTransitionEnd",s_slideNextTransitionStart:"slideNextTransitionStart",s_slidePrevTransitionEnd:"slidePrevTransitionEnd",s_slidePrevTransitionStart:"slidePrevTransitionStart",s_slideResetTransitionStart:"slideResetTransitionStart",s_slideResetTransitionEnd:"slideResetTransitionEnd",s_sliderMove:"sliderMove",s_sliderFirstMove:"sliderFirstMove",s_slidesLengthChange:"slidesLengthChange",s_slidesGridLengthChange:"slidesGridLengthChange",s_snapGridLengthChange:"snapGridLengthChange",s_snapIndexChange:"snapIndexChange",s_tap:"tap",s_toEdge:"toEdge",s_touchEnd:"touchEnd",s_touchMove:"touchMove",s_touchMoveOpposite:"touchMoveOpposite",s_touchStart:"touchStart",s_transitionEnd:"transitionEnd",s_transitionStart:"transitionStart",s_update:"update",s_zoomChange:"zoomChange",s_swiper:"swiper",s_lock:"lock",s_unlock:"unlock"},features:[bo],ngContentSelectors:fEe,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(n,r){if(1&n&&(vg(lEe),zs(0),z(1,WCe,5,0,"ng-container",0),z(2,YCe,2,0,"div",1),z(3,KCe,2,0,"div",2),A(4,"div",3),zs(5,1),z(6,XCe,1,0,null,4),z(7,JCe,1,0,null,4),z(8,tEe,1,0,null,4),zs(9,2),M(),zs(10,3),z(11,aEe,2,3,"ng-template",null,5,JO)),2&n){const i=Gd(12);b(1),T("ngIf",r.navigation&&r.showNavigation),b(1),T("ngIf",r.scrollbar&&r.showScrollbar),b(1),T("ngIf",r.pagination&&r.showPagination),b(1),T("ngClass",r.wrapperClass),vt("id",r.id),b(2),T("ngTemplateOutlet",i)("ngTemplateOutletContext",$e(11,cEe,r.prependSlides)),b(1),T("ngTemplateOutlet",i)("ngTemplateOutletContext",$e(13,uEe,r.activeSlides)),b(1),T("ngTemplateOutlet",i)("ngTemplateOutletContext",$e(15,dEe,r.appendSlides))}},dependencies:[Wn,yi,yw,oi,Ya,df,vw,js],styles:["swiper{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),pEe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=jn({type:t}),t.\u0275inj=Rn({imports:[[$c]]}),t})();function gEe(t,e){if(1&t&&ue(0,"img",36),2&t){const n=x(2).$implicit;T("src",n.useRoomImage,Nn)("alt",n.title)}}const mEe=function(t){return{"background-color":t}};function _Ee(t,e){if(1&t&&(A(0,"div",37)(1,"span"),Ie(),A(2,"svg",38),ue(3,"path",39),M()(),st(),A(4,"span"),ce(5),M()()),2&t){const n=x(2).$implicit,r=x();T("ngStyle",$e(2,mEe,r.mainColor)),b(5),Ge(" ",n.otherRoomPhotosUrls.length," ")}}function vEe(t,e){if(1&t&&(A(0,"span"),Ie(),A(1,"svg",40),ue(2,"path",41),M(),st(),A(3,"span"),ce(4),M()()),2&t){const n=x(2).$implicit,r=x();b(2),Xn("fill",r.mainColor),b(1),Xn("color",r.mainColor),b(1),ni(" ",n.roomSizeValue," ",n.roomSizeUnit," ")}}function yEe(t,e){if(1&t&&(Ie(),A(0,"svg",42),ue(1,"path",43),M()),2&t){const n=x(3);b(1),Xn("fill",n.mainColor)}}function bEe(t,e){if(1&t&&(Ie(),A(0,"svg",44),ue(1,"path",43),M()),2&t){const n=x(3);b(1),Xn("fill",n.mainColor)}}function wEe(t,e){1&t&&(A(0,"span"),ce(1),ye(2,"translate"),M()),2&t&&(b(1),je(" "+Ce(2,1,"or")+" "))}function CEe(t,e){1&t&&(A(0,"span"),ce(1),ye(2,"translate"),M()),2&t&&(b(1),je(" "+Ce(2,1,"and")+" "))}function EEe(t,e){if(1&t&&(A(0,"span"),z(1,wEe,3,3,"span",17),z(2,CEe,3,3,"span",17),M()),2&t){const n=x().$implicit;b(1),T("ngIf",n.or),b(1),T("ngIf",!n.or)}}function SEe(t,e){if(1&t&&(Ie(),st(),A(0,"span"),z(1,EEe,3,2,"span",17),A(2,"span",45),ce(3),ye(4,"translate"),M()()),2&t){const n=e.$implicit,r=e.index;b(1),T("ngIf",0!==r),b(2),ni(""," "+n.numberOfBeds," ",Ce(4,3,"bedType."+n.bedType),"")}}function TEe(t,e){if(1&t&&(A(0,"span"),ce(1),ye(2,"slice"),M()),2&t){const n=x(3).$implicit,r=x();b(1),je(M1(2,1,r.getRoomDescription(n),0,65))}}function IEe(t,e){if(1&t&&(A(0,"span"),ce(1),M()),2&t){const n=x(3).$implicit,r=x();b(1),je(r.getRoomDescription(n))}}const Tx=function(t){return{color:t}};function AEe(t,e){if(1&t&&(A(0,"span",51),ce(1),ye(2,"translate"),M()),2&t){const n=x(5);T("ngStyle",$e(4,Tx,n.mainColor)),b(1),Ge(" ...",Ce(2,2,"more")," ")}}function xEe(t,e){if(1&t&&(A(0,"span",51),ce(1),ye(2,"translate"),M()),2&t){const n=x(5);T("ngStyle",$e(4,Tx,n.mainColor)),b(1),Ge("...",Ce(2,2,"less"),"")}}function PEe(t,e){if(1&t){const n=Me();A(0,"span",49),fe("click",function(){return J(n),ee(x(4).onToggleReadMore())}),z(1,AEe,3,6,"span",50),z(2,xEe,3,6,"span",50),M()}if(2&t){const n=x(4);b(1),T("ngIf",!n.readmore),b(1),T("ngIf",n.readmore)}}function DEe(t,e){if(1&t&&(Ie(),st(),A(0,"div",46)(1,"div",47),z(2,TEe,3,5,"span",17),z(3,IEe,2,1,"span",17),z(4,PEe,3,2,"span",48),M()()),2&t){const n=x(2).$implicit,r=x();b(2),T("ngIf",!r.readmore),b(1),T("ngIf",r.readmore),b(1),T("ngIf",r.getRoomDescription(n).length>65)}}function kEe(t,e){if(1&t&&(A(0,"span",27),Ie(),A(1,"svg",54),ue(2,"path",55),M(),ce(3),ye(4,"translate"),M()),2&t){const n=x(4);b(2),Xn("fill",n.mainColor),b(1),Ge(" ",Ce(4,3,"ammenities.flatScreenTV")," ")}}function MEe(t,e){if(1&t&&(A(0,"span",27),Ie(),A(1,"svg",56),ue(2,"path",57),M(),ce(3),ye(4,"translate"),M()),2&t){const n=x(4);b(2),Xn("fill",n.mainColor),b(1),Ge(" ",Ce(4,3,"ammenities.freeWifi")," ")}}function OEe(t,e){if(1&t&&(A(0,"span",27),Ie(),A(1,"svg",58),ue(2,"path",59),M(),ce(3),ye(4,"translate"),M()),2&t){const n=x(4);b(2),Xn("fill",n.mainColor),b(1),Ge(" ",Ce(4,3,"ammenities.airconditioning")," ")}}function REe(t,e){if(1&t&&(A(0,"div")(1,"span",52),z(2,kEe,5,5,"span",53),z(3,MEe,5,5,"span",53),z(4,OEe,5,5,"span",53),M()()),2&t){const n=e.$implicit;b(1),T("ngSwitch",n),b(1),T("ngSwitchCase","Flat-screen TV"),b(1),T("ngSwitchCase","WiFi"),b(1),T("ngSwitchCase","Air conditioning")}}function NEe(t,e){if(1&t&&(A(0,"div",60)(1,"div",61),ce(2),ye(3,"currency"),M(),A(4,"div",62)(5,"span",63),ce(6),ye(7,"translate"),M()()()),2&t){const n=x(2).$implicit;b(2),je(tf(3,2,n.rate,n.currency,"code","1.0-0")),b(4),je(Ce(7,7,"perNight"))}}function LEe(t,e){if(1&t&&(A(0,"div",64)(1,"span"),ce(2),ye(3,"translate"),M()()),2&t){const n=x(2).$implicit;b(2),Ge(" ",Ce(3,1,"secretRates."+n.showSecretRatesText)," ")}}const w$=function(t,e,n){return{"background-color":t,color:e,"border-color":n}};function FEe(t,e){if(1&t){const n=Me();A(0,"a",65)(1,"button",66),fe("mouseover",function(){return J(n),ee(x(3).hover=!0)})("mouseleave",function(){return J(n),ee(x(3).hover=!1)})("click",function(){J(n);const i=x(2).$implicit;return ee(x().onBookNow(i))}),ce(2),M()()}if(2&t){const n=x(2).$implicit,r=x();T("href",n.cta,Nn),b(1),T("ngStyle",D1(3,w$,r.hover?"white":r.mainColor,r.hover?r.mainColor:"white",r.mainColor)),b(1),je(r.bookNowButton)}}function VEe(t,e){if(1&t){const n=Me();A(0,"button",66),fe("mouseover",function(){return J(n),ee(x(3).hover=!0)})("mouseleave",function(){return J(n),ee(x(3).hover=!1)})("click",function(){J(n);const i=x(2).$implicit;return ee(x().onBookNow(i))}),ce(1),M()}if(2&t){const n=x(3);T("ngStyle",D1(2,w$,n.hover?"white":n.mainColor,n.hover?n.mainColor:"white",n.mainColor)),b(1),je(n.bookNowButton)}}const C$=function(t){return{fill:t}};function BEe(t,e){if(1&t){const n=Me();A(0,"div",4),fe("click",function(){J(n);const i=x().$implicit;return ee(x().onOpenImages(i))}),z(1,gEe,1,2,"img",5),z(2,_Ee,6,4,"div",6),M(),A(3,"div",7)(4,"div",8),fe("click",function(i){return J(n),ee(x(2).onSlidePrev(i))}),Ie(),A(5,"svg",9),ue(6,"path",10),M()(),st(),A(7,"div",11),ce(8),M(),A(9,"div",12),fe("click",function(i){return J(n),ee(x(2).onSlideNext(i))}),Ie(),A(10,"svg",13),ue(11,"path",14),M()()(),st(),A(12,"div",15)(13,"div",16),z(14,vEe,5,6,"span",17),A(15,"span",18),ce(16),ye(17,"translate"),z(18,yEe,2,2,"svg",19),z(19,bEe,2,2,"svg",20),ce(20),M(),A(21,"span",21),Ie(),A(22,"svg",22)(23,"defs")(24,"style"),ce(25," .fa-secondary { opacity: .4 } "),M()(),ue(26,"path",23)(27,"path",24),M(),z(28,SEe,5,5,"span",2),M()(),z(29,DEe,5,3,"div",25),st(),A(30,"div",26),z(31,REe,5,4,"div",2),A(32,"div",27),Ie(),A(33,"svg",28),ue(34,"path",29),M(),ce(35),ye(36,"translate"),M()()(),st(),A(37,"div",30),z(38,NEe,8,9,"div",31),z(39,LEe,4,3,"div",32),A(40,"div",33),z(41,FEe,3,7,"a",34),z(42,VEe,2,6,"button",35),M()()}if(2&t){const n=x().$implicit,r=x();b(1),T("ngIf",n.imageUrl),b(1),T("ngIf",n.otherRoomPhotosUrls.length>0),b(1),T("ngStyle",$e(33,Tx,r.mainColor)),b(3),T("ngStyle",$e(35,C$,r.mainColor)),b(2),Ge(" ",r.getRoomTitle(n)," "),b(3),T("ngStyle",$e(37,C$,r.mainColor)),b(3),T("ngIf",n.roomSizeValue),b(1),Xn("color",r.mainColor),b(1),Ge("",Ce(17,29,"maxGuests"),": "),b(2),T("ngForOf",n.adultOccupancy),b(1),T("ngForOf",n.childrenOccupancy),b(1),Ge(" ",n.maximumOccupancy," "),b(1),Xn("color",r.mainColor),b(5),Xn("fill",r.mainColor),b(1),Xn("fill",r.mainColor),b(1),T("ngForOf",n.beds),b(1),T("ngIf",r.getRoomDescription(n)),b(2),T("ngForOf",n.featuredAmmenities),b(3),Xn("fill",r.mainColor),b(1),Ge(" ",Ce(36,31,"roomViews."+n.roomView)," "),b(3),T("ngIf",n.rate),b(1),T("ngIf",n.showSecretRatesAvailable),b(2),T("ngIf",""!==n.cta&&"link"===n.bookNowAction&&n.openNewTab),b(1),T("ngIf",!n.openNewTab||"link"!==n.bookNowAction)}}function $Ee(t,e){1&t&&z(0,BEe,43,39,"ng-template",3)}Sa.use([g$]);let zEe=(()=>{var t;class e{set func(r){this.debugService.logMode&&console.log(r);let i=null;if(i=this.decorateUrlGtag(),r){var o,s,a,l;if(this.msg=r,r.raiRequest&&(this.raiRequest={adults:(null==r||null===(o=r.raiRequest)||void 0===o||null===(o=o.adults)||void 0===o?void 0:o.toString())||null,children:(null==r||null===(s=r.raiRequest)||void 0===s||null===(s=s.children)||void 0===s?void 0:s.toString())||null,from:(null==r||null===(a=r.raiRequest)||void 0===a?void 0:a.from)||null,to:(null==r||null===(l=r.raiRequest)||void 0===l?void 0:l.to)||null}),this.carouselItems=[],r.roomCategoriesObj&&Object.keys(r.roomCategoriesObj).length>0){this.hasRoomBetterInfo=!0;const c=[];Object.keys(r.roomCategoriesObj).forEach(u=>{let d={imageUrl:"",title:"",cta:null,unitsAvailable:0,rate:null,currency:"",openNewTab:!0};if(r.roomsResponse.length>0){const q=r.roomsResponse.findIndex(K=>K.roomCategoryId===u);q>-1&&(d=r.roomsResponse[q])}let h=d.imageUrl,p=d.imageUrl;r.roomCategoriesObj[u].roomPhotoUrl&&(h=r.roomCategoriesObj[u].roomPhotoUrl,p=r.roomCategoriesObj[u].roomPhotoUrl800w?r.roomCategoriesObj[u].roomPhotoUrl800w:r.roomCategoriesObj[u].roomPhotoUrl);const m=r.roomCategoriesObj[u];let _=null,y=null;if(r.raiRequest&&r.raiRequest.from){const q=new Date(r.raiRequest.from);r.raiRequest&&m.ratesByDate&&m.ratesByDate.length>0&&m.ratesByDate.forEach(K=>{K.range.start&&K.range.end&&ay(q,Ml(K.range.start.toDate()))&&sy(q,function R1e(t){Tt(1,arguments);var e=Kt(t);return e.setHours(23,59,59,999),e}(K.range.end.toDate()))&&(_=K.rate,y=K.currency)})}let E=[];r.roomCategoriesObj[u].otherRoomPhotosUrls&&(E=r.roomCategoriesObj[u].otherRoomPhotosUrls);let C="";if(C=d.cta?d.cta:m.fallbackBookingUrl,i&&C){const q=C.includes("?")?"&":"?";C+=q+i}const k={imageUrl:h,useRoomImage:p,title:m.roomName,roomSizeValue:m.roomSizeValue,roomSizeUnit:"squareMeter"==m.roomSizeUnit?"m\xb2":"ft\xb2",roomView:m.roomView,adultOccupancy:Array(+m.adultOccupancy).fill(0).map((q,K)=>K),childrenOccupancy:Array(+m.childrenOccupancy).fill(0).map((q,K)=>K),maximumOccupancy:m.maximumOccupancy,description:m.shortSellingText,descriptionTranslations:m.shortSellingTextTranslations,featuredAmmenities:m.featuredAmmenities,showSecretRatesAvailable:m.showSecretRatesAvailable,showSecretRatesText:m.showSecretRatesText,bookNowAction:m.bookNowAction?m.bookNowAction:"link",cta:C,structuredInputs:m.structuredInputs||[],openNewTab:null==d.openNewTab||d.openNewTab,unitsAvailable:d.unitsAvailable,rate:d.rate||_,currency:d.currency||y,order:m.order,beds:m.beds,otherRoomPhotosUrls:E,roomNameTranslations:m.roomNameTranslations,hotelId:d.hotelId||null,ratePlanId:d.ratePlanId||null,roomId:d.roomId||null};"smily"===this.chatService.bookingEngine?null!==k.rate&&(m.maximumOccupancy&&r.raiRequest&&(r.raiRequest.adults||r.raiRequest.children)?+m.maximumOccupancy&&(+r.raiRequest.adults||0)+(+r.raiRequest.children||0)<=+m.maximumOccupancy&&c.push(k):c.push(k)):c.push(k)}),this.carouselItems=c.sort((u,d)=>d.order<u.order?1:-1)}else this.carouselItems=this.msg.roomsResponse;if(r.raiRequest){const c=new Date(r.raiRequest.from),u=new Date(r.raiRequest.to);this.bookingDate=c,this.bookingNumNights=_$(u,c)}this.debugService.logMode&&console.log("Carousel",this.carouselItems)}}constructor(r,i,o,s,a){this.chatService=r,this.submitService=i,this.floatingService=o,this.debugService=s,this.translateService=a,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,this.bookNowButton="Book Now"}ngOnInit(){this.botSettingsSub=ui([this.chatService.botSettingsBS,this.translateService.onLangChange.pipe(Go({lang:this.translateService.currentLang}))]).subscribe(([r,i])=>{r&&(this.mainColor=r.backgroundColors[0],this.bookNowButton=r.bookNowButtonText&&""!==r.bookNowButtonText.textResponse?"en"===i.lang?r.bookNowButtonText.textResponse:r.bookNowButtonText.textResponseTranslations[i.lang]&&""!==r.bookNowButtonText.textResponseTranslations[i.lang]?r.bookNowButtonText.textResponseTranslations[i.lang]:this.translateService.instant("bookNow"):this.translateService.instant("bookNow"))})}onSwiperLoaded(r){this.swiper=r}onSlideNext(r){r.stopPropagation(),this.swiper.slideNext()}onSlidePrev(r){r.stopPropagation(),this.swiper.slidePrev()}onToggleReadMore(){this.readmore=!this.readmore}onBookNow(r){if(r.rate){const i=r.rate.toString().match(/\d+(\.\d+)?/);this.submitService.savePotentialRevenue(+i[0],this.bookingNumNights,this.bookingDate)}else this.submitService.savePotentialRevenue(0,this.bookingNumNights,this.bookingDate);if(r&&r.cta&&""!==r.cta&&"link"===r.bookNowAction&&(r.openNewTab?window.open(r.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}],r.hotelId,"USD",r.roomId,r.ratePlanId,null,null,"en",!0,null)),r&&"request"===r.bookNowAction){const i={submit:"request",preMessage:this.translateService.instant("pleaseComplete"),inputs:r.structuredInputs,intent:"Book now"};this.chatService.showStructuredInput$.next(i),this.chatService.forceSubmissionBeforeChat$.next(!1)}}onOpenImages(r){const i=[r.imageUrl,...r.otherRoomPhotosUrls];this.floatingService.showFloating$.next({imageUrls:i.map(o=>({path:o})),type:"image",show:!0,startingIndex:0})}getRoomTitle(r){const i=this.translateService.currentLang;return"en"!==i&&i?r.roomNameTranslations&&r.roomNameTranslations[i]?r.roomNameTranslations[i]:r.roomName:r.title}getRoomDescription(r){const i=this.translateService.currentLang;return"en"===i?r.description:r.descriptionTranslations&&r.descriptionTranslations[i]?r.descriptionTranslations[i]:r.description}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe()}decorateUrlGtag(){const r=document.links;let i=null;return Object.keys(r).forEach(o=>{if(!i&&r[o].href&&r[o].href.includes("_ga")&&r[o].href.includes("_gl")){const s=r[o].href.indexOf("_gl=");s>-1&&(i=r[o].href.slice(s))}}),i}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn),te($B),te($y),te(Ii),te(qr))},t.\u0275cmp=Bt({type:t,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"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 70 70",2,"margin","3px 0 0 3px"],["d","M 30 0 L 0 25 L 30 50 Z",3,"ngStyle"],[1,"image-title"],[1,"gc_swiper-button-next",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 70 70",2,"margin","3px 0 0 -1px"],["d","M 20 0 L 50 25 L 20 50 Z",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"],["target","_blank",3,"href",4,"ngIf"],["class","book-now",3,"ngStyle","mouseover","mouseleave","click",4,"ngIf"],[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"],["target","_blank",3,"href"],[1,"book-now",3,"ngStyle","mouseover","mouseleave","click"]],template:function(r,i){1&r&&(A(0,"div",0)(1,"swiper",1),fe("swiper",function(s){return i.onSwiperLoaded(s)}),z(2,$Ee,1,0,null,2),M()()),2&r&&(b(1),T("config",i.config),b(1),T("ngForOf",i.carouselItems))},dependencies:[oi,Wn,fr,Ya,df,Vh,qu,Sw,ww,uo],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:0;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:5px 2px 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}),e})(),UEe=(()=>{var t;class e{constructor(r){this.http=r,this.path="https://firebasestorage.googleapis.com/v0/b/guestchat-live.appspot.com/o/translations.json?alt=media&token=6aba8d48-41dc-460d-8ff2-9d259aaa5452",this.cachedValues=[],this.loading=!1}wait(r){return new Promise(i=>setTimeout(i,r))}getTranslations(){var r=this;return se(function*(){return r.loading&&(yield r.wait(400)),r.cachedValues.length>0?r.cachedValues:new Promise((i,o)=>{r.http.get(r.path).subscribe({next:s=>{null!=s&&s.data&&(r.cachedValues=s.data,r.loading=!1),i(r.cachedValues)},error:s=>{console.log(s),i([])}})})})()}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(Xg))},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const E$=function(){return{"background-color":"#22a992"}};function HEe(t,e){1&t&&(A(0,"div",38),Ie(),A(1,"svg",39)(2,"g",40),ue(3,"path",41)(4,"path",42),M(),A(5,"defs")(6,"clipPath",43),ue(7,"rect",44),M()()(),st(),A(8,"div",45),ce(9),ye(10,"translate"),M()()),2&t&&(Zn(Fi(5,E$)),b(9),je(Ce(10,3,"gauvendi.lowestPrice")))}function jEe(t,e){if(1&t&&(A(0,"div",49),ce(1),ye(2,"translate"),ye(3,"translate"),M()),2&t){const n=x(4).$implicit;b(1),Oc(" ",Ce(2,3,"for")," ",n.adultCount," ",Ce(3,5,"settingsRooms.adults")," ")}}function GEe(t,e){if(1&t&&(A(0,"div",49),ce(1),ye(2,"translate"),ye(3,"translate"),ye(4,"translate"),M()),2&t){const n=x(4).$implicit;b(1),Yd(" ",Ce(2,5,"for")," ",n.adultCount," ",Ce(3,7,"settingsRooms.adults")," ",n.childrenCount," ",Ce(4,9,"children")," ")}}const S$=function(){return{"background-color":"#dd2020"}};function qEe(t,e){if(1&t&&(A(0,"div",38),Ie(),A(1,"svg",39),ue(2,"path",46),M(),st(),A(3,"div",45)(4,"div",47),ce(5),ye(6,"translate"),M(),z(7,jEe,4,7,"div",48),z(8,GEe,5,11,"div",48),M()()),2&t){const n=x(3).$implicit;Zn(Fi(7,S$)),b(5),Ge(" ",Ce(6,5,"gauvendi.mostPopular")," "),b(2),T("ngIf",!n.childrenCount),b(1),T("ngIf",n.childrenCount)}}function WEe(t,e){if(1&t&&(A(0,"div",49),ce(1),ye(2,"translate"),ye(3,"translate"),M()),2&t){const n=x(4).$implicit;b(1),Oc(" ",Ce(2,3,"for")," ",n.adultCount," ",Ce(3,5,"settingsRooms.adults")," ")}}function YEe(t,e){if(1&t&&(A(0,"div",49),ce(1),ye(2,"translate"),ye(3,"translate"),ye(4,"translate"),M()),2&t){const n=x(4).$implicit;b(1),Yd(" ",Ce(2,5,"for")," ",n.adultCount," ",Ce(3,7,"settingsRooms.adults")," ",n.childrenCount," ",Ce(4,9,"children")," ")}}const T$=function(){return{"background-color":"#f6b736"}};function KEe(t,e){if(1&t&&(A(0,"div",38),Ie(),A(1,"svg",39)(2,"g",50),ue(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54)(7,"path",55)(8,"path",56),M(),A(9,"defs")(10,"clipPath",57),ue(11,"rect",44),M()()(),st(),A(12,"div",45)(13,"div",47),ce(14),ye(15,"translate"),M(),z(16,WEe,4,7,"div",48),z(17,YEe,5,11,"div",48),M()()),2&t){const n=x(3).$implicit;Zn(Fi(7,T$)),b(14),Ge(" ",Ce(15,5,"gauvendi.ourTip")," "),b(2),T("ngIf",!n.childrenCount),b(1),T("ngIf",n.childrenCount)}}function QEe(t,e){1&t&&ue(0,"img",58),2&t&&T("src",x(3).$implicit.roomPhotosUrls[0],Nn)}function XEe(t,e){if(1&t&&(A(0,"div",59)(1,"span"),Ie(),A(2,"svg",60),ue(3,"path",61),M()(),st(),A(4,"span"),ce(5),M()()),2&t){const n=x(3).$implicit;b(5),Ge(" ",n.roomPhotosUrls.length," ")}}function ZEe(t,e){if(1&t&&(A(0,"div",62),Ie(),A(1,"svg",63),ue(2,"path",64),M(),st(),A(3,"div",65),ce(4),ye(5,"translate"),M()()),2&t){const n=x(3).$implicit;b(4),ni(" ",n.adultCount," ",Ce(5,2,"settingsRooms.adults")," ")}}function JEe(t,e){if(1&t&&(A(0,"div",66),Ie(),A(1,"svg",63)(2,"g",67),ue(3,"path",68)(4,"path",69)(5,"path",70),M()(),st(),A(6,"div",65),ce(7),ye(8,"translate"),M()()),2&t){const n=x(3).$implicit;b(7),ni(" ",n.childrenCount," ",Ce(8,2,"children")," ")}}function eSe(t,e){if(1&t&&(A(0,"div",71),Ie(),A(1,"svg",63),ue(2,"path",72),M(),st(),A(3,"div",65),ce(4),ye(5,"translate"),M()()),2&t){const n=x(3).$implicit;b(4),ni(" ",n.numberOfAccommodations," ",Ce(5,2,"accommodation")," ")}}function tSe(t,e){if(1&t&&(A(0,"div",73),Ie(),A(1,"svg",63),ue(2,"path",74)(3,"path",75)(4,"path",76)(5,"path",77)(6,"path",78)(7,"path",79),M(),st(),A(8,"div",65),ce(9),M()()),2&t){const n=x(3).$implicit;b(9),Ge(" ",n.roomSize,"m\xb2 ")}}const nSe=function(t){return{"background-color":t}};function rSe(t,e){if(1&t&&(A(0,"div",84)(1,"div",85),Ie(),A(2,"svg",86),ue(3,"path",87),M()(),st(),A(4,"div",88),ce(5),M()()),2&t){const n=x().$implicit,r=x(3).$implicit,i=x(2);Zn($e(3,nSe,"Lowest Price"===r.label||"Recommended"===r.label?"#22a992":"Most Popular"===r.label?"#dd2020":"Our Tip"===r.label?"#f6b736":"#22a992")),b(5),Ge(" ",i.translationsObj[n.name]&&i.translationsObj[n.name][i.lang.toUpperCase()]?i.translationsObj[n.name][i.lang.toUpperCase()]:n.name," ")}}function iSe(t,e){1&t&&(A(0,"div",89),Ie(),A(1,"svg",90),ue(2,"path",91),M()())}function oSe(t,e){if(1&t&&(A(0,"div",92),ce(1),M()),2&t){const n=x().$implicit,r=x(5);b(1),Ge(" ",r.translationsObj[n.name]&&r.translationsObj[n.name][r.lang.toUpperCase()]?r.translationsObj[n.name][r.lang.toUpperCase()]:n.name," ")}}function sSe(t,e){if(1&t&&(A(0,"div",80),z(1,rSe,6,5,"div",81),z(2,iSe,3,0,"div",82),z(3,oSe,2,1,"div",83),M()),2&t){const n=e.$implicit;b(1),T("ngIf",n.popularFeature),b(1),T("ngIf",!n.popularFeature),b(1),T("ngIf",!n.popularFeature)}}function aSe(t,e){if(1&t&&(A(0,"div",93)(1,"span"),ce(2),ye(3,"translate"),M()()),2&t){const n=x(3).$implicit;b(2),ni(" +",n.retailFeatures.length-10," ",Ce(3,2,"more")," ")}}const I$=function(t){return{color:t}},Hy=function(){return{fill:"black"}};function lSe(t,e){if(1&t){const n=Me();A(0,"div",15),z(1,HEe,11,6,"div",16),z(2,qEe,9,8,"div",16),z(3,KEe,18,8,"div",16),A(4,"div",17),fe("click",function(){J(n);const i=x(2).$implicit;return ee(x(2).onOpenImages(i))}),z(5,QEe,1,1,"img",18),z(6,XEe,6,1,"div",19),M(),A(7,"div",20)(8,"div",21),fe("click",function(i){return J(n),ee(x(4).onSlidePrev(i))}),Ie(),A(9,"svg",22),ue(10,"path",23),M()(),st(),A(11,"div",24),ce(12),M(),A(13,"div",25),fe("click",function(i){return J(n),ee(x(4).onSlideNext(i))}),Ie(),A(14,"svg",22),ue(15,"path",26),M()()(),st(),A(16,"div",27)(17,"div",28)(18,"div",29),z(19,ZEe,6,4,"div",30),z(20,JEe,9,4,"div",31),M(),z(21,eSe,6,4,"div",32),z(22,tSe,10,1,"div",33),M(),A(23,"div",34)(24,"div",35),z(25,sSe,4,3,"div",36),ye(26,"slice"),z(27,aSe,4,4,"div",37),M()()()()}if(2&t){const n=x(2).$implicit,r=x(2);b(1),T("ngIf","Lowest Price"===n.label&&"Direct"!==n.label),b(1),T("ngIf","Most Popular"===n.label&&"Direct"!==n.label),b(1),T("ngIf","Our Tip"===n.label&&"Direct"!==n.label),b(2),T("ngIf",n.roomPhotosUrls[0]),b(1),T("ngIf",n.roomPhotosUrls.length>0),b(1),T("ngStyle",$e(19,I$,r.mainColor)),b(3),T("ngStyle",Fi(21,Hy)),b(2),Ge(" ",r.getRoomTitle(n)," "),b(3),T("ngStyle",Fi(22,Hy)),b(4),T("ngIf",n.adultCount>0),b(1),T("ngIf",n.childrenCount>0),b(1),T("ngIf",n.roomSize),b(1),T("ngIf",n.roomSize),b(3),T("ngForOf",M1(26,15,n.retailFeatures,0,10)),b(2),T("ngIf",n.retailFeatures.length>10)}}function cSe(t,e){1&t&&(A(0,"div",38),Ie(),A(1,"svg",39)(2,"g",40),ue(3,"path",41)(4,"path",42),M(),A(5,"defs")(6,"clipPath",43),ue(7,"rect",44),M()()(),st(),A(8,"div",45),ce(9),ye(10,"translate"),M()()),2&t&&(Zn(Fi(5,E$)),b(9),je(Ce(10,3,"gauvendi.lowestPrice")))}function uSe(t,e){1&t&&(A(0,"div",38),Ie(),A(1,"svg",39),ue(2,"path",46),M(),st(),A(3,"div",45),ce(4),ye(5,"translate"),M()()),2&t&&(Zn(Fi(5,S$)),b(4),je(Ce(5,3,"gauvendi.mostPopular")))}function dSe(t,e){if(1&t&&(A(0,"div",49),ce(1),ye(2,"translate"),ye(3,"translate"),M()),2&t){const n=x(4).$implicit;b(1),Oc(" ",Ce(2,3,"for")," ",n.adultCount," ",Ce(3,5,"settingsRooms.adults")," ")}}function fSe(t,e){if(1&t&&(A(0,"div",49),ce(1),ye(2,"translate"),ye(3,"translate"),ye(4,"translate"),M()),2&t){const n=x(4).$implicit;b(1),Yd(" ",Ce(2,5,"for")," ",n.adultCount," ",Ce(3,7,"settingsRooms.adults")," ",n.childrenCount," ",Ce(4,9,"children")," ")}}function hSe(t,e){if(1&t&&(A(0,"div",38),Ie(),A(1,"svg",39)(2,"g",50),ue(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54)(7,"path",55)(8,"path",56),M(),A(9,"defs")(10,"clipPath",57),ue(11,"rect",44),M()()(),st(),A(12,"div",45)(13,"div",47),ce(14),ye(15,"translate"),M(),z(16,dSe,4,7,"div",48),z(17,fSe,5,11,"div",48),M()()),2&t){const n=x(3).$implicit;Zn(Fi(7,T$)),b(14),Ge(" ",Ce(15,5,"gauvendi.ourTip")," "),b(2),T("ngIf",!n.childrenCount),b(1),T("ngIf",n.childrenCount)}}function pSe(t,e){if(1&t&&(A(0,"div",62),Ie(),A(1,"svg",63),ue(2,"path",64),M(),st(),A(3,"div",65),ce(4),ye(5,"translate"),M()()),2&t){const n=x(3).$implicit;b(4),ni(" ",n.totalAdultCount," ",Ce(5,2,"settingsRooms.adults")," ")}}function gSe(t,e){if(1&t&&(A(0,"div",66),Ie(),A(1,"svg",63)(2,"g",67),ue(3,"path",68)(4,"path",69)(5,"path",70),M()(),st(),A(6,"div",65),ce(7),ye(8,"translate"),M()()),2&t){const n=x(3).$implicit;b(7),ni(" ",n.totalChildrenCount," ",Ce(8,2,"children")," ")}}function mSe(t,e){if(1&t&&(A(0,"div",71),Ie(),A(1,"svg",63),ue(2,"path",72),M(),st(),A(3,"div",65),ce(4),ye(5,"translate"),M()()),2&t){const n=x(3).$implicit;b(4),ni(" ",n.numberOfAccommodations," ",Ce(5,2,"accommodations")," ")}}function _Se(t,e){1&t&&ue(0,"img",58),2&t&&T("src",x(4).$implicit.roomPhotosUrls[0],Nn)}function vSe(t,e){if(1&t&&(A(0,"div",99),z(1,_Se,1,1,"img",18),A(2,"div",100)(3,"div",101),ce(4),M(),ue(5,"div",102),M()()),2&t){const n=x(3).$implicit;b(1),T("ngIf",n.roomPhotosUrls[0]),b(3),Ge("#1 ",n.title,"")}}const ySe=function(){return[]};function bSe(t,e){if(1&t){const n=Me();A(0,"div",94),z(1,cSe,11,6,"div",16),z(2,uSe,6,6,"div",16),z(3,hSe,18,8,"div",16),A(4,"div",95)(5,"div",96),ce(6),ye(7,"translate"),ye(8,"translate"),M(),A(9,"div",97)(10,"div",29),z(11,pSe,6,4,"div",30),z(12,gSe,9,4,"div",31),M(),z(13,mSe,6,4,"div",32),M()(),A(14,"div",17),fe("click",function(){J(n);const i=x(2).$implicit;return ee(x(2).onOpenImages(i))}),z(15,vSe,6,2,"div",98),M(),A(16,"div",20)(17,"div",21),fe("click",function(i){return J(n),ee(x(4).onSlidePrev(i))}),Ie(),A(18,"svg",22),ue(19,"path",23),M()(),st(),ue(20,"div",24),A(21,"div",25),fe("click",function(i){return J(n),ee(x(4).onSlideNext(i))}),Ie(),A(22,"svg",22),ue(23,"path",26),M()()()()}if(2&t){const n=x(2).$implicit,r=x(2);b(1),T("ngIf","Lowest Price"===n.label&&"Direct"!==n.label),b(1),T("ngIf","Most Popular"===n.label&&"Direct"!==n.label),b(1),T("ngIf","Our Tip"===n.label&&"Direct"!==n.label),b(3),Oc(" ",Ce(7,13,"combinationOf")," ",n.numberOfAccommodations," ",Ce(8,15,"units")," "),b(5),T("ngIf",n.adultCount>0),b(1),T("ngIf",n.childrenCount>0),b(1),T("ngIf",n.roomSize),b(2),T("ngForOf",Fi(17,ySe).constructor(2)),b(1),T("ngStyle",$e(18,I$,r.mainColor)),b(3),T("ngStyle",Fi(20,Hy)),b(4),T("ngStyle",Fi(21,Hy))}}function wSe(t,e){if(1&t&&(A(0,"div",103),ce(1),ye(2,"currency"),A(3,"span",104),ce(4),ye(5,"translate"),M()()),2&t){const n=x(2).$implicit;b(1),Ge(" ",tf(2,2,n.averageDailyRate,n.currency,"symbol-narrow","1.0-2")," "),b(3),je(Ce(5,7,"/night"))}}function CSe(t,e){if(1&t&&(A(0,"div",103),ce(1),ye(2,"currency"),M()),2&t){const n=x(2).$implicit;b(1),Ge(" ",tf(2,1,n.totalGrossAmount,n.currency,"symbol-narrow","1.2")," ")}}function ESe(t,e){if(1&t&&(A(0,"div",9),ce(1),ye(2,"currency"),A(3,"span",104),ce(4),ye(5,"translate"),M()()),2&t){const n=x(2).$implicit;b(1),Ge(" ",tf(2,2,n.averageDailyRate,n.currency,"symbol-narrow","1.0-2")," "),b(3),je(Ce(5,7,"perUnit/night"))}}function SSe(t,e){if(1&t){const n=Me();z(0,lSe,28,23,"div",5),z(1,bSe,24,22,"div",6),A(2,"div",7)(3,"div",8)(4,"div",9)(5,"span",10),ce(6),ye(7,"translate"),M()(),z(8,wSe,6,9,"div",11),z(9,CSe,3,6,"div",11),z(10,ESe,6,9,"div",12),A(11,"div",9)(12,"span",10),ce(13),ye(14,"translate"),M()()(),A(15,"div",13)(16,"button",14),fe("click",function(){J(n);const i=x().$implicit;return ee(x(2).onBookNow(i))}),ce(17),ye(18,"translate"),M()()()}if(2&t){const n=x().$implicit;T("ngIf",1===n.numberOfAccommodations),b(1),T("ngIf",n.numberOfAccommodations>1),b(5),je(Ce(7,8,"from")),b(2),T("ngIf",1===n.numberOfAccommodations),b(1),T("ngIf",n.numberOfAccommodations>1),b(1),T("ngIf",n.numberOfAccommodations>1),b(3),je(Ce(14,10,"includesTaxesAndFees")),b(4),je(Ce(18,12,"clientEdit.tabs.BookNow"))}}function TSe(t,e){1&t&&z(0,SSe,19,14,"ng-template",4)}function ISe(t,e){if(1&t){const n=Me();A(0,"div",1)(1,"swiper",2),fe("swiper",function(i){return J(n),ee(x().onSwiperLoaded(i))}),z(2,TSe,1,0,null,3),M()()}if(2&t){const n=x();b(1),T("config",n.config),b(1),T("ngForOf",n.carouselItems)}}Sa.use([g$]);let ASe=(()=>{var t;class e{set func(r){if(r&&(this.msg=r,this.carouselItems=[],r.gauvendiRoomsResponse&&r.gauvendiRoomsResponse.length>0?(this.hasRoomBetterInfo=!0,this.carouselItems=r.gauvendiRoomsResponse.sort((i,o)=>o.label>i.label?1:-1)):this.carouselItems=this.msg.gauvendiRoomsResponse,r.raiRequest)){const i=new Date(r.raiRequest.from),o=new Date(r.raiRequest.to);this.bookingDate=i,this.bookingNumNights=_$(o,i)}}constructor(r,i,o,s,a){this.chatService=r,this.floatingService=i,this.debugService=o,this.translateService=s,this.gauvendiTranslationsService=a,this.canShowSwiper=!1,this.hasRoomBetterInfo=!1,this.hover=!1,this.translationsObj={},this.lang="en",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.msg={number:1},this.carouselItems=[],this.mainColor="blue",this.activeIndex=0,this.readmore=!1,this.bookNowButton="Book Now"}ngOnInit(){this.gauvendiTranslationsService.getTranslations().then(r=>{const i={};r.forEach(o=>{i[o.name]?i[o.name][o.language]=o.translated_name:i[o.name]={[o.language]:o.translated_name}}),this.translationsObj=i}),this.botSettingsSub=ui([this.chatService.botSettingsBS,this.translateService.onLangChange.pipe(Go({lang:this.translateService.currentLang}))]).subscribe(([r,i])=>{this.lang=i.lang,r&&(this.mainColor=r.backgroundColors[0],this.bookNowButton=r.bookNowButtonText&&""!==r.bookNowButtonText.textResponse?"en"===i.lang?r.bookNowButtonText.textResponse:r.bookNowButtonText.textResponseTranslations[i.lang]&&""!==r.bookNowButtonText.textResponseTranslations[i.lang]?r.bookNowButtonText.textResponseTranslations[i.lang]:this.translateService.instant("bookNow"):this.translateService.instant("bookNow"))})}onSwiperLoaded(r){this.swiper=r}onSlideNext(r){r.stopPropagation(),this.swiper.slideNext()}onSlidePrev(r){r.stopPropagation(),this.swiper.slidePrev()}onToggleReadMore(){this.readmore=!this.readmore}onBookNow(r){window.open(r.bookingLink,"_blank")}onOpenImages(r){const i=[...r.otherRoomPhotosUrls];this.floatingService.showFloating$.next({imageUrls:i.map(o=>({path:o})),type:"image",show:!0,startingIndex:0})}getRoomTitle(r){const i=this.translateService.currentLang;if("en"===i||!i)return r.title;const o=r.title.split("|"),s=o[0]?o[0].trim():null;return s&&this.translationsObj[s]&&this.translationsObj[s][i.toUpperCase()]?this.translationsObj[s][i.toUpperCase()]+(o.slice(1).join("|")?" |"+o.slice(1).join("|"):""):r.title}getRoomDescription(r){const i=this.translateService.currentLang;return"en"===i?r.description:r.descriptionTranslations&&r.descriptionTranslations[i]?r.descriptionTranslations[i]:r.description}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn),te($y),te(Ii),te(qr),te(UEe))},t.\u0275cmp=Bt({type:t,selectors:[["app-gauvendi-swiper"]],inputs:{func:["message","func"]},decls:1,vars:1,consts:[["style","margin: -8px -12px;",4,"ngIf"],[2,"margin","-8px -12px"],[3,"config","swiper"],[4,"ngFor","ngForOf"],["swiperSlide",""],["class","body",4,"ngIf"],["class","multi-rooms",4,"ngIf"],[1,"gc-book-now"],[1,"gc-rate"],[1,"gc_price_detail"],[2,"font-size","10px","line-height","12px"],["class","gc-price","style","font-size: 20px;",4,"ngIf"],["class","gc_price_detail",4,"ngIf"],[1,"gc-book-button"],[1,"book-now-btn",3,"click"],[1,"body"],["class","recommendation-label",3,"style",4,"ngIf"],[1,"image-swiper",3,"click"],["alt","This is an image",3,"src",4,"ngIf"],["class","more-available",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",2,"padding-top","3px"],[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-room-detail"],[1,"gc-feature-list"],[1,"number-of-persons"],["class","number-of-adults",4,"ngIf"],["class","number-of-children",4,"ngIf"],["class","number-of-rooms",4,"ngIf"],["class","room-size",4,"ngIf"],[1,"gc-retail-feature-list"],[1,"retail-features"],["class","retail-feature",4,"ngFor","ngForOf"],["class","show-more",4,"ngIf"],[1,"recommendation-label"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","viewBox","0 0 20 20","fill","none"],["clip-path","url(#clip0_2329_96193)"],["d","M17.3464 2.6543H11.8103C11.2785 2.6543 10.7787 2.86137 10.4027 3.23738L2.57308 11.067C2.19706 11.443 1.98999 11.9429 1.98999 12.4746C1.98999 13.0063 2.19706 13.5062 2.57308 13.8822L8.10917 19.4181C8.49722 19.8062 9.00698 20.0002 9.51671 20.0002C10.0264 20.0002 10.5362 19.8061 10.9242 19.418L18.7539 11.5884C19.1299 11.2123 19.337 10.7125 19.337 10.1808V4.64484C19.337 3.54727 18.4441 2.6543 17.3464 2.6543ZM14.6923 9.28961C13.5947 9.28961 12.7017 8.39664 12.7017 7.29902C12.7017 6.20141 13.5947 5.30844 14.6923 5.30844C15.7899 5.30844 16.6829 6.20141 16.6829 7.29902C16.6829 8.39664 15.7899 9.28961 14.6923 9.28961Z","fill","#F8F7FA"],["d","M16.0195 0H10.4834C9.9516 0 9.45176 0.20707 9.07578 0.583086L1.24617 8.41273C0.870156 8.78871 0.663086 9.28859 0.663086 9.82031C0.663086 10.2362 0.790273 10.6323 1.02543 10.9652C1.18164 10.6602 1.38555 10.3777 1.63492 10.1284L9.46449 2.29879C10.0911 1.67219 10.9242 1.32707 11.8104 1.32707H17.3465C17.5396 1.32707 17.7286 1.34457 17.9127 1.37641C17.6532 0.578516 16.9028 0 16.0195 0Z","fill","#F8F7FA"],["id","clip0_2329_96193"],["width","20","height","20","fill","white"],[1,"text"],["d","M11.872 19C13.7587 18.8953 15.5098 18.0773 16.6673 16.753C17.2397 16.0918 17.6425 15.3267 17.8418 14.5161C18.6474 11.334 16.2179 8.493 14.0937 6.17432C13.9919 6.06212 13.8902 5.94917 13.7884 5.84073C12.5673 4.47444 12.1306 2.68863 12.6097 1C9.9343 1.94563 7.7253 3.70518 6.38124 5.95668C5.68165 7.08618 5.18134 8.30199 4.89726 9.56321C4.54959 8.84273 4.33759 8.07309 4.25703 7.29257C2.67978 9.43938 1.52652 11.9532 2.19219 14.5462C2.3957 15.3496 2.79426 16.1001 3.36241 16.753C4.51143 18.0664 6.24132 18.8844 8.11537 18.9966C6.87731 18.3215 6.39396 16.9406 6.99179 15.7661C7.7677 14.2651 9.28559 13.1694 9.9979 11.6346C10.7102 13.1694 12.2281 14.2651 13.004 15.7661C13.6018 16.9444 13.1143 18.3287 11.872 19Z","fill","#F8F7FA"],[1,""],["class","sub-text",4,"ngIf"],[1,"sub-text"],["clip-path","url(#clip0_2329_96457)"],["d","M17.684 6.16878L12.4597 5.68425L10.3845 0.865372C10.2392 0.527949 9.76076 0.527949 9.61549 0.865372L7.54025 5.68421L2.31598 6.16878C1.95016 6.20269 1.80235 6.65769 2.07832 6.90015L6.02005 10.3629L4.86649 15.4812C4.78571 15.8396 5.17278 16.1208 5.48864 15.9333L9.99998 13.2545L14.5113 15.9333C14.8272 16.1208 15.2142 15.8396 15.1335 15.4812L13.9799 10.3629L17.9216 6.90015C18.1976 6.65769 18.0498 6.20269 17.684 6.16878Z","fill","#F8F7FA"],["d","M4.65932 0.70026C4.92565 1.07018 5.67737 2.65886 6.10714 3.58472C6.17471 3.73027 5.9921 3.86175 5.87549 3.75148C5.13381 3.05023 3.86565 1.83335 3.59932 1.46339C3.38858 1.17069 3.45502 0.762565 3.74776 0.551822C4.04045 0.34108 4.44858 0.407564 4.65932 0.70026Z","fill","#F8F7FA"],["d","M15.3407 0.70026C15.0744 1.07018 14.3227 2.65886 13.8929 3.58472C13.8253 3.73027 14.0079 3.86175 14.1245 3.75148C14.8662 3.05023 16.1343 1.83331 16.4007 1.46339C16.6114 1.17069 16.545 0.762565 16.2523 0.551822C15.9596 0.34108 15.5514 0.407564 15.3407 0.70026Z","fill","#F8F7FA"],["d","M19.5493 11.5482C19.116 11.4069 17.374 11.1734 16.3613 11.0453C16.2022 11.0251 16.1324 11.2391 16.2728 11.3166C17.1663 11.8102 18.7109 12.6486 19.1443 12.79C19.4872 12.9018 19.8558 12.7145 19.9677 12.3716C20.0795 12.0286 19.8922 11.66 19.5493 11.5482Z","fill","#F8F7FA"],["d","M0.450725 11.5482C0.884086 11.4069 2.62608 11.1734 3.6387 11.0453C3.79788 11.0251 3.86765 11.2391 3.72722 11.3166C2.83374 11.8102 1.28909 12.6486 0.855726 12.79C0.512835 12.9018 0.144201 12.7145 0.0323652 12.3716C-0.079471 12.0286 0.107834 11.66 0.450725 11.5482Z","fill","#F8F7FA"],["d","M9.36694 18.9183C9.36694 18.4624 9.68511 16.7339 9.8773 15.7315C9.90749 15.5739 10.1325 15.5739 10.1627 15.7315C10.3549 16.7339 10.6731 18.4624 10.6731 18.9183C10.6731 19.2789 10.3807 19.5713 10.02 19.5713C9.65933 19.5714 9.36694 19.2789 9.36694 18.9183Z","fill","#F8F7FA"],["id","clip0_2329_96457"],["alt","This is an image",3,"src"],[1,"more-available"],["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"],[1,"number-of-adults"],["xmlns","http://www.w3.org/2000/svg","width","14","height","15","viewBox","0 0 14 15","fill","none"],["xmlns","http://www.w3.org/2000/svg","d","M14 12.0664C14 12.2477 13.933 12.4216 13.8136 12.5498C13.6943 12.678 13.5324 12.75 13.3636 12.75H5.72727C5.5585 12.75 5.39664 12.678 5.2773 12.5498C5.15795 12.4216 5.09091 12.2477 5.09091 12.0664C5.09091 10.9786 5.49318 9.93536 6.20923 9.16616C6.92528 8.39697 7.89645 7.96484 8.90909 7.96484H10.1818C11.1945 7.96484 12.1656 8.39697 12.8817 9.16616C13.5977 9.93536 14 10.9786 14 12.0664ZM9.54545 1.8125C9.04201 1.8125 8.54987 1.97287 8.13128 2.27333C7.71268 2.57378 7.38642 3.00083 7.19376 3.50048C7.0011 4.00012 6.95069 4.54991 7.04891 5.08033C7.14713 5.61074 7.38956 6.09796 7.74555 6.48037C8.10153 6.86278 8.55509 7.1232 9.04886 7.22871C9.54263 7.33422 10.0544 7.28007 10.5196 7.07311C10.9847 6.86615 11.3822 6.51568 11.6619 6.06601C11.9416 5.61635 12.0909 5.08768 12.0909 4.54688C12.0909 3.82167 11.8227 3.12617 11.3454 2.61338C10.868 2.10058 10.2206 1.8125 9.54545 1.8125ZM3.81818 1.8125C3.31474 1.8125 2.8226 1.97287 2.404 2.27333C1.98541 2.57378 1.65915 3.00083 1.46649 3.50048C1.27383 4.00012 1.22342 4.54991 1.32164 5.08033C1.41985 5.61074 1.66229 6.09796 2.01827 6.48037C2.37426 6.86278 2.82782 7.1232 3.32159 7.22871C3.81536 7.33422 4.32716 7.28007 4.79229 7.07311C5.25741 6.86615 5.65495 6.51568 5.93465 6.06601C6.21435 5.61635 6.36364 5.08768 6.36364 4.54688C6.36364 3.82167 6.09546 3.12617 5.61809 2.61338C5.14072 2.10058 4.49328 1.8125 3.81818 1.8125ZM3.81818 12.0664C3.81724 11.3484 3.94893 10.6373 4.20563 9.97428C4.46233 9.3113 4.83894 8.70962 5.31364 8.2041C4.92516 8.04655 4.51342 7.9655 4.09818 7.96484H3.53818C2.60031 7.96665 1.70134 8.36767 1.03817 9.08006C0.374994 9.79246 0.00168228 10.7582 0 11.7656V12.0664C0 12.2477 0.0670452 12.4216 0.186387 12.5498C0.305728 12.678 0.467589 12.75 0.636364 12.75H3.93273C3.85864 12.5308 3.8199 12.2996 3.81818 12.0664Z","fill","#000"],[2,"margin-top","2px"],[1,"number-of-children"],["clip-path","url(#clip0_2329_96105)"],["d","M7.87498 2.6875C6.89683 2.44263 7.44295 1.42724 7.43749 0.9375C5.2025 1.48846 5.6875 3.5625 5.6875 3.5625L7.0553 3.52821L7.87498 2.6875Z","fill","#000"],["d","M4.72068 13.3333C4.56463 13.3253 4.41709 13.2597 4.3066 13.1492C4.19612 13.0387 4.13052 12.8912 4.1225 12.7351C4.1225 11.9505 4.1225 10.0913 4.1225 9.79224C4.13215 9.64136 4.10818 9.49022 4.0523 9.34974C3.99643 9.20925 3.91005 9.08293 3.79941 8.9799C2.63444 7.83339 1.47686 6.67211 0.322963 5.51268C0.203351 5.39613 0.11271 5.25318 0.0583075 5.09529C0.00390501 4.93739 -0.0127455 4.76894 0.00969086 4.60345C0.0321272 4.43796 0.0930263 4.28003 0.187505 4.14232C0.281985 4.00461 0.407415 3.89095 0.553741 3.81046C0.760114 3.6972 0.997666 3.65397 1.23071 3.68726C1.46375 3.72055 1.6797 3.82857 1.8461 3.99508C2.26704 4.41233 2.68429 4.83388 3.09784 5.25975C3.60925 5.78592 4.11327 6.31948 4.62467 6.8475C4.93639 7.16592 5.30897 7.41839 5.72023 7.58991C6.13149 7.76142 6.57305 7.84848 7.01864 7.84589C7.46423 7.84331 7.90475 7.75114 8.314 7.57487C8.72324 7.39859 9.09286 7.14182 9.40087 6.81981C10.3055 5.87454 11.2212 4.94404 12.1351 4.00985C12.2691 3.86225 12.4424 3.75589 12.6347 3.70324C12.8269 3.6506 13.0302 3.65385 13.2207 3.71261C13.3983 3.76259 13.5599 3.85801 13.6894 3.98946C13.8189 4.1209 13.9119 4.28383 13.9592 4.46218C14.0127 4.64784 14.0136 4.84472 13.9618 5.03086C13.9099 5.217 13.8074 5.38508 13.6657 5.51637L10.7523 8.44265C10.5381 8.65681 10.3258 8.87282 10.1098 9.08329C10.0408 9.14576 9.98535 9.22176 9.94692 9.30655C9.90849 9.39135 9.8879 9.48314 9.88643 9.57623C9.88643 10.0009 9.88643 11.9339 9.87535 12.7351C9.87634 12.814 9.86155 12.8922 9.83183 12.9652C9.80212 13.0382 9.7581 13.1046 9.70236 13.1603C9.64661 13.2161 9.58027 13.2601 9.50725 13.2898C9.43423 13.3195 9.356 13.3343 9.27717 13.3333H4.72068Z","fill","#000"],["d","M9.3417 4.51691C9.34207 4.97984 9.20517 5.43249 8.94832 5.81763C8.69147 6.20277 8.3262 6.50311 7.89869 6.68069C7.47117 6.85826 7.0006 6.9051 6.54647 6.81528C6.09233 6.72546 5.67502 6.50301 5.3473 6.17606C5.01957 5.8491 4.79613 5.43232 4.70524 4.9784C4.61434 4.52448 4.66007 4.05381 4.83663 3.62587C5.0132 3.19793 5.31268 2.83195 5.69721 2.57419C6.08174 2.31643 6.53406 2.17847 6.99699 2.17774C7.30458 2.17725 7.60924 2.23738 7.89357 2.3547C8.1779 2.47201 8.43633 2.64421 8.65408 2.86145C8.87183 3.07868 9.04464 3.3367 9.16262 3.62075C9.28061 3.90481 9.34146 4.20933 9.3417 4.51691Z","fill","#000"],[1,"number-of-rooms"],["d","M13.1249 5.23844C13.1249 4.71687 13.0201 4.21141 12.815 3.73379C12.6158 3.27376 12.3312 2.8606 11.9688 2.50605C11.6064 2.1515 11.1841 1.87313 10.7139 1.67827C10.2272 1.47609 9.70903 1.375 9.17591 1.375C8.64278 1.375 8.12613 1.47756 7.63793 1.67827C7.16771 1.87313 6.74539 2.1515 6.38298 2.50605C6.02057 2.8606 5.73604 3.27376 5.53686 3.73379C5.3302 4.20995 5.22687 4.71687 5.22687 5.23844C5.22687 5.89041 5.3946 6.52919 5.71357 7.09764L0.985813 11.7185C0.876492 11.8255 0.842048 11.9881 0.909438 12.1419C0.922916 12.1742 0.945379 12.2035 0.970837 12.2284L2.0296 13.2642C2.05506 13.2891 2.08501 13.3096 2.11796 13.3243C2.2752 13.3902 2.44143 13.358 2.55075 13.2495L3.20518 12.6093L4.14714 13.5308C4.1726 13.5557 4.20255 13.5763 4.23548 13.5909C4.39272 13.6568 4.55896 13.6246 4.66827 13.5162L5.71206 12.495C5.73752 12.4701 5.75849 12.4408 5.77346 12.4086C5.84085 12.2548 5.8079 12.0921 5.69709 11.9852L4.7701 11.0783L7.27401 8.62719C7.85356 8.93926 8.50799 9.10335 9.17439 9.10335C9.70752 9.10335 10.2242 9.00079 10.7124 8.80007C11.1826 8.60522 11.6049 8.32685 11.9673 7.9723C12.3297 7.61776 12.6142 7.20461 12.8134 6.74455C13.0201 6.26547 13.1249 5.76001 13.1249 5.23844Z","fill","#000"],[1,"room-size"],["d","M11.5454 3.41992H10.2629V4.70487H11.5454V3.41992Z","fill","#000"],["d","M9.49386 3.41992H8.21143V4.70487H9.49386V3.41992Z","fill","#000"],["d","M7.4421 3.41992H6.15967V4.70487H7.4421V3.41992Z","fill","#000"],["d","M10.2629 5.47482V6.75977H11.5454V5.47482H10.2629Z","fill","#000"],["d","M10.2629 7.53146V8.81641H11.5454V7.53146H10.2629Z","fill","#000"],["d","M12.9001 11.9021L10.195 10.1786C10.1642 10.1591 10.1287 10.1482 10.0922 10.147C10.0558 10.1458 10.0196 10.1544 9.98759 10.1718C9.95554 10.1893 9.92871 10.215 9.90987 10.2463C9.89103 10.2776 9.88085 10.3133 9.8804 10.3499V11.4258H3.564V5.11586H4.64124C4.67772 5.1154 4.71341 5.10521 4.74465 5.08633C4.77589 5.06745 4.80154 5.04057 4.81896 5.00846C4.83638 4.97634 4.84494 4.94016 4.84375 4.90363C4.84257 4.86709 4.83169 4.83154 4.81223 4.80062L3.0972 2.09195C3.07848 2.06367 3.05307 2.04048 3.02324 2.02444C2.9934 2.0084 2.96007 2 2.92621 2C2.89235 2 2.85901 2.0084 2.82918 2.02444C2.79934 2.04048 2.77393 2.06367 2.75521 2.09195L1.03163 4.80062C1.01217 4.83154 1.00129 4.86709 1.00011 4.90363C0.998926 4.94016 1.00749 4.97634 1.0249 5.00846C1.04232 5.04057 1.06797 5.06745 1.09921 5.08633C1.13045 5.10521 1.16614 5.1154 1.20262 5.11586H2.28328V11.6503C2.28328 11.9324 2.39515 12.2031 2.59429 12.4026C2.79343 12.6021 3.06351 12.7142 3.34513 12.7142H9.8804V13.797C9.88085 13.8335 9.89103 13.8693 9.90987 13.9006C9.92871 13.9319 9.95554 13.9576 9.98759 13.975C10.0196 13.9925 10.0558 14.0011 10.0922 13.9999C10.1287 13.9987 10.1642 13.9878 10.195 13.9683L12.9001 12.255C12.9306 12.2368 12.9558 12.2109 12.9733 12.18C12.9908 12.1491 13 12.1141 13 12.0786C13 12.043 12.9908 12.0081 12.9733 11.9771C12.9558 11.9462 12.9306 11.9204 12.9001 11.9021Z","fill","#000"],[1,"retail-feature"],["class","popular-feature",3,"style",4,"ngIf"],["class","feature-icon",4,"ngIf"],["class","feature-text",4,"ngIf"],[1,"popular-feature"],[1,"popular-feature-icon"],["xmlns","http://www.w3.org/2000/svg","width","12","height","11","viewBox","0 0 12 11","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.67339 0.66974C6.54739 0.412826 6.28617 0.25 6.00002 0.25C5.71387 0.25 5.45266 0.412825 5.32665 0.669739L4.00041 3.37383L1.39079 3.758C1.11006 3.79932 0.87669 3.99554 0.787785 4.26501C0.698879 4.53448 0.769661 4.83105 0.970678 5.03132L2.92678 6.98015L2.26863 9.87903C2.20408 10.1634 2.31017 10.4593 2.54064 10.6379C2.77112 10.8165 3.08421 10.8454 3.34342 10.7118L6.00002 9.34363L8.65662 10.7118C8.91583 10.8454 9.22892 10.8165 9.4594 10.6379C9.68988 10.4593 9.79596 10.1634 9.73141 9.87903L9.07326 6.98015L11.0294 5.03132C11.2304 4.83105 11.3012 4.53448 11.2123 4.26501C11.1234 3.99554 10.89 3.79932 10.6093 3.758L7.99964 3.37383L6.67339 0.66974Z","fill","#F8F7FA"],[1,"popular-feature-text"],[1,"feature-icon"],["xmlns","http://www.w3.org/2000/svg","width","16","height","17","viewBox","0 0 16 17","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.8405 3.94714C14.1458 4.22703 14.1664 4.70146 13.8865 5.0068L6.55319 13.0068C6.41496 13.1576 6.22113 13.2454 6.01662 13.2498C5.8121 13.2543 5.61464 13.175 5.47 13.0303L2.13666 9.697C1.84377 9.40411 1.84377 8.92923 2.13666 8.63634C2.42956 8.34345 2.90443 8.34345 3.19732 8.63634L5.97677 11.4158L12.7808 3.99321C13.0607 3.68787 13.5351 3.66724 13.8405 3.94714Z","fill","#9a0f13"],[1,"feature-text"],[1,"show-more"],[1,"multi-rooms"],[1,"accommodation-data"],[1,"title"],[1,"data"],["class","image-container",4,"ngFor","ngForOf"],[1,"image-container"],[1,"room-data"],[1,"room-title"],[1,"room-detail"],[1,"gc-price",2,"font-size","20px"],[2,"font-size","10px"]],template:function(r,i){1&r&&z(0,ISe,3,2,"div",0),2&r&&T("ngIf",i.carouselItems.length>0)},dependencies:[oi,Wn,fr,Vh,qu,Sw,ww,uo],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:0;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;height:unset!important;border-radius:18px;box-sizing:content-box;display:flex;flex-direction:column;justify-content:space-between}.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 .multi-rooms .accommodation-data{margin:70px 0 0 10px}.swiper-slide .multi-rooms .accommodation-data .title{font-size:14px;margin-bottom:5px}.swiper-slide .multi-rooms .accommodation-data .data{display:flex;flex-direction:row;justify-content:flex-start;gap:10px;font-size:12px}.swiper-slide .multi-rooms .accommodation-data .data .number-of-persons{display:flex;flex-direction:column;justify-content:flex-start;align-items:left;color:#000;gap:5px}.swiper-slide .multi-rooms .accommodation-data .data .number-of-persons .number-of-adults,.swiper-slide .multi-rooms .accommodation-data .data .number-of-persons .number-of-children{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;color:#000;gap:5px}.swiper-slide .multi-rooms .accommodation-data .data .number-of-rooms{display:flex;flex-direction:row;justify-content:flex-start;align-items:top;color:#000;gap:5px}.swiper-slide .multi-rooms .image-swiper{margin:30px 0 20px 40px;height:170px}.swiper-slide .multi-rooms .image-swiper .image-container{position:absolute;top:0;left:0;display:flex;flex-direction:column;justify-content:flex-start;width:200px;border:none;border-radius:20px;box-shadow:0 0 10px rgba(0,0,0,.1)}.swiper-slide .multi-rooms .image-swiper .image-container img{height:120px;width:200px;border:none}.swiper-slide .multi-rooms .image-swiper .image-container:nth-child(odd){left:20px;transform:rotate(10deg)}.swiper-slide .multi-rooms .image-swiper .image-container:nth-child(2n){transform:rotate(-10deg)}.swiper-slide .multi-rooms .image-swiper .room-data{height:50px;background-color:#fff;border-bottom-left-radius:20px;border-bottom-right-radius:20px}.swiper-slide .multi-rooms .image-swiper .room-data .room-title{padding:5px 10px 0;font-size:12px}.swiper-slide .multi-rooms .image-swiper .room-data .room-detail{font-size:10px;display:flex;flex-direction:row;justify-content:flex-start;padding:0 10px;gap:10px}.swiper-slide .multi-rooms .image-swiper .room-data .room-detail .number-of-persons{display:flex;flex-direction:column;justify-content:flex-start;align-items:left;color:#000;gap:5px}.swiper-slide .multi-rooms .image-swiper .room-data .room-detail .number-of-persons .number-of-adults,.swiper-slide .multi-rooms .image-swiper .room-data .room-detail .number-of-persons .number-of-children,.swiper-slide .multi-rooms .image-swiper .room-data .room-detail .room-size,.swiper-slide .multi-rooms .image-swiper .room-data .room-detail .number-of-rooms{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;color:#000;gap:5px}.swiper-slide .recommendation-label{position:absolute;top:18px;left:0;z-index:10;height:44px;border-radius:0 10px 10px 0;color:#fff;font-size:14px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;padding:0 10px}.swiper-slide .recommendation-label .text{padding-bottom:3px}.swiper-slide .recommendation-label .text .sub-text{font-size:12px}.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:13px;line-height:20px;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-room-detail{width:100%;display:flex;flex-direction:column;justify-content:flex-start}.swiper-slide .gc-room-detail .gc-feature-list{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;padding:0 10px;font-size:12px;margin:5px 0 10px}.swiper-slide .gc-room-detail .gc-feature-list .number-of-persons{display:flex;flex-direction:column;justify-content:flex-start;align-items:left;color:#000;gap:5px}.swiper-slide .gc-room-detail .gc-feature-list .number-of-persons .number-of-adults,.swiper-slide .gc-room-detail .gc-feature-list .number-of-persons .number-of-children,.swiper-slide .gc-room-detail .gc-feature-list .room-size,.swiper-slide .gc-room-detail .gc-feature-list .number-of-rooms{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;color:#000;gap:5px}.swiper-slide .gc-room-detail .gc-retail-feature-list{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;padding:0 10px;font-size:12px;margin:5px 0 10px;flex-wrap:wrap}.swiper-slide .gc-room-detail .gc-retail-feature-list .retail-features{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:5px}.swiper-slide .gc-room-detail .gc-retail-feature-list .retail-features .retail-feature{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:5px;color:#000}.swiper-slide .gc-room-detail .gc-retail-feature-list .retail-features .retail-feature .feature-text{text-wrap:nowrap}.swiper-slide .gc-room-detail .gc-retail-feature-list .retail-features .retail-feature .popular-feature{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:5px;color:#fff;padding:3px 10px;border-radius:10px}.swiper-slide .gc-room-detail .gc-retail-feature-list .retail-features .show-more{margin-left:5px}.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}.swiper-slide .gc-book-now{position:relative;bottom:10px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:10px 10px 0}.swiper-slide .gc-book-now .gc-rate{display:flex;flex-direction:column;justify-content:flex-start;align-items:left}.swiper-slide .gc-book-now .gc-book-button{display:flex;flex-direction:column;justify-content:flex-end;height:100%}.swiper-slide .gc-book-now .gc-book-button .book-now-btn{cursor:pointer;height:40px;background-color:#faf2f3;color:#9a0f13;border:1px solid #faf2f3;border-radius:10px;float:bottom}.swiper-slide .gc-book-now .gc-book-button .book-now-btn:hover{background-color:#9a0f13;color:#fff;border:1px solid #9a0f13}\n'],encapsulation:3}),e})();function xSe(t,e){if(1&t){const n=Me();A(0,"div",2),fe("click",function(){return J(n),ee(x().onRequestLiveChat())}),ue(1,"img",3),A(2,"span",4),ce(3),ye(4,"translate"),M()()}if(2&t){const n=x();b(1),T("src",n.botImage,Nn),b(2),je(Ce(4,2,"intervention.requestLiveAgent"))}}function PSe(t,e){if(1&t){const n=Me();A(0,"div",2),fe("click",function(){return J(n),ee(x().onCall())}),A(1,"span",5),Ie(),A(2,"svg",6),ue(3,"path",7),M()(),st(),A(4,"span",4),ce(5),ye(6,"translate"),M()()}2&t&&(b(5),je(Ce(6,1,"intervention.callUs")))}function DSe(t,e){if(1&t){const n=Me();A(0,"div",2),fe("click",function(){return J(n),ee(x().onOpenForm())}),A(1,"span",5),Ie(),A(2,"svg",8),ue(3,"path",9),M()(),st(),A(4,"span",4),ce(5),ye(6,"translate"),M()()}2&t&&(b(5),je(Ce(6,1,"intervention.sendUsAMessage")))}function kSe(t,e){if(1&t){const n=Me();A(0,"div",2),fe("click",function(){J(n);const i=x();return ee(i.onOpenLink(i.fallbackCommunication.fbUrl))}),A(1,"span",5),Ie(),A(2,"svg",10)(3,"g",11)(4,"linearGradient",12),ue(5,"stop",13)(6,"stop",14),M(),ue(7,"path",15)(8,"path",16),M()()(),st(),A(9,"span",4),ce(10,"Facebook Messenger"),M()()}}function MSe(t,e){if(1&t){const n=Me();A(0,"div",2),fe("click",function(){J(n);const i=x();return ee(i.onOpenLink(i.fallbackCommunication.whatsappUrl))}),A(1,"span",5),Ie(),A(2,"svg",17),ue(3,"path",18),A(4,"linearGradient",19),ue(5,"stop",20)(6,"stop",21),M(),ue(7,"path",22)(8,"image",23)(9,"path",24)(10,"path",25),M()(),st(),A(11,"span",4),ce(12,"Whatsapp"),M()()}}function OSe(t,e){if(1&t){const n=Me();A(0,"div",2),fe("click",function(){return J(n),ee(x().onReceiveCallBack())}),A(1,"span",5),Ie(),A(2,"svg",26),ue(3,"path",27),M()(),st(),A(4,"span",4),ce(5),ye(6,"translate"),M()()}2&t&&(b(5),je(Ce(6,1,"intervention.receiveCallBack")))}let RSe=(()=>{var t;class e{constructor(r,i){this.chatService=r,this.translateService=i,this.fallbackCommunication={hasCallUs:!1,callUsNumber:"",hasWhatsapp:!1,whatsappUrl:"",hasfbMessenger:!1,fbUrl:"",hasReceiveCallBack:!1,hasMessageUs:!0},this.liveChatSettings={liveChatAvailable:!1},this.scrollNow=new de,this.liveChatOnlyMode=!1,this.liveChatSomebodyIsAround=!0}ngOnInit(){this.liveChatModeSub=this.chatService.liveChatOnlyMode$.subscribe(r=>{this.liveChatOnlyMode=r}),this.liveChatSettingsSub=this.chatService.liveChatSettings$.subscribe(r=>{this.liveChatSettings=r}),this.botSettingsSub=this.chatService.botSettingsBS.subscribe(r=>{r&&(this.botImage=r.botImgUrl,r.fallbackCommunication&&(this.fallbackCommunication=ge(ge({},r.fallbackCommunication),{},{hasMessageUs:null==r.fallbackCommunication.hasMessageUs||r.fallbackCommunication.hasMessageUs})))})}onRequestLiveChat(){this.chatService.addLiveChatRequest(),this.scrollNow.emit("now")}onOpenLink(r){""!==r&&window.open(r,"_blank")}onOpenForm(){const r={submit:"request",inputs:[{label:"Name and surname",dataVar:"nameSurname",type:"input",placeholder:"Name and surname",inputValidation:"text",value:"",disabled:!1,required:!0},{label:"Contact number",dataVar:"contactNumber",type:"input",placeholder:"Contact number",inputValidation:"tel",value:"",disabled:!1,required:!0},{label:"Email address",dataVar:"contactEmail",type:"input",placeholder:"Email address",inputValidation:"email",value:"",disabled:!1,required:!0},{label:"Message",dataVar:"message",type:"textarea",placeholder:"Message",inputValidation:"text",value:"",disabled:!1,required:!0}],preMessage:this.translateService.instant("completeForm"),intent:"Contact Form"};this.chatService.showStructuredInput$.next(r),this.chatService.forceSubmissionBeforeChat$.next(!1)}onReceiveCallBack(){const r={submit:"request",inputs:[{label:"Name and surname",dataVar:"nameSurname",type:"input",placeholder:"Name and surname",inputValidation:"text",value:"",required:!0,disabled:!1},{label:"Contact number",dataVar:"contactNumber",type:"input",placeholder:"Contact number",inputValidation:"tel",value:"",disabled:!1,required:!0}],preMessage:this.translateService.instant("completeForm"),intent:"Receive Call Back"};this.chatService.showStructuredInput$.next(r),this.chatService.forceSubmissionBeforeChat$.next(!1)}onCall(){window.open("tel:"+this.fallbackCommunication.callUsNumber,"_system")}ngOnDestroy(){this.liveChatSettingsSub&&this.liveChatSettingsSub.unsubscribe(),this.botSettingsSub&&this.botSettingsSub.unsubscribe(),this.liveChatModeSub&&this.liveChatModeSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn),te(qr))},t.\u0275cmp=Bt({type:t,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(r,i){1&r&&(A(0,"div",0),z(1,xSe,5,4,"div",1),z(2,PSe,7,3,"div",1),z(3,DSe,7,3,"div",1),z(4,kSe,11,0,"div",1),z(5,MSe,13,0,"div",1),z(6,OSe,7,3,"div",1),M()),2&r&&(b(1),T("ngIf",i.liveChatSettings.liveChatAvailable&&i.liveChatSettings.hasCallAgent&&!i.liveChatOnlyMode&&i.liveChatSomebodyIsAround),b(1),T("ngIf",i.fallbackCommunication.hasCallUs&&i.fallbackCommunication.callUsNumber),b(1),T("ngIf",i.fallbackCommunication.hasMessageUs),b(1),T("ngIf",i.fallbackCommunication.hasfbMessenger),b(1),T("ngIf",i.fallbackCommunication.hasWhatsapp),b(1),T("ngIf",i.fallbackCommunication.hasReceiveCallBack))},dependencies:[Wn,uo],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}"]}),e})();const Ix=function(t){return{"background-color":t}};let NSe=(()=>{var t;class e{constructor(r,i){this.chatService=r,this.translateService=i,this.textColor="black"}ngOnInit(){this.settingsSub=this.chatService.botSettingsBS.subscribe(r=>{r&&(this.textColor=r.backgroundColors[0])})}onPerformAction(r){switch(r){case"bookDirect":this.chatService.addDirectIntentQuestion("book_direct",this.translateService.instant("intervention.bookingOptions"));break;case"other":this.chatService.addMessage(this.translateService.instant("intervention.anotherQuestion"));break;case"liveAgent":this.chatService.addDirectIntentQuestion("call_action",this.translateService.instant("intervention.liveAgent"))}}ngOnDestroy(){this.settingsSub&&this.settingsSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn),te(qr))},t.\u0275cmp=Bt({type:t,selectors:[["app-intervention"]],inputs:{msg:"msg"},decls:10,vars:18,consts:[["id","gc-intervention-container"],[3,"ngStyle","click"]],template:function(r,i){1&r&&(A(0,"div",0)(1,"button",1),fe("click",function(){return i.onPerformAction("bookDirect")}),ce(2),ye(3,"translate"),M(),A(4,"button",1),fe("click",function(){return i.onPerformAction("other")}),ce(5),ye(6,"translate"),M(),A(7,"button",1),fe("click",function(){return i.onPerformAction("liveAgent")}),ce(8),ye(9,"translate"),M()()),2&r&&(b(1),T("ngStyle",$e(12,Ix,i.textColor)),b(1),je(Ce(3,6,"intervention.bookingOptions")),b(2),T("ngStyle",$e(14,Ix,i.textColor)),b(1),je(Ce(6,8,"intervention.anotherQuestion")),b(2),T("ngStyle",$e(16,Ix,i.textColor)),b(1),je(Ce(9,10,"intervention.liveAgent")))},dependencies:[fr,uo],styles:["#gc-intervention-container[_ngcontent-%COMP%]{width:calc(100% + 95px);margin-left:-39px;display:flex;justify-content:center;flex-wrap:wrap}#gc-intervention-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{text-transform:none;margin:7px 5px;padding:6px 8px;color:#fff;border:none;border-radius:25px;font-size:14px;line-height:14px;white-space:nowrap;cursor:pointer;box-shadow:2px 2px 5px #d3d3d3;font-weight:700;font-family:Roboto,sans-serif}"]}),e})(),A$=(()=>{var t;class e{constructor(r){this.sanitizer=r}transform(r,i){switch(i){case"html":return this.sanitizer.bypassSecurityTrustHtml(r);case"style":return this.sanitizer.bypassSecurityTrustStyle(r);case"script":return this.sanitizer.bypassSecurityTrustScript(r);case"url":return this.sanitizer.bypassSecurityTrustUrl(r);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(r);default:throw new Error("Invalid safe type specified: ".concat(i))}}}return(t=e).\u0275fac=function(r){return new(r||t)(te(L4,16))},t.\u0275pipe=sr({name:"safe",type:t,pure:!0}),e})();function LSe(t,e){if(1&t){const n=Me();A(0,"img",9),fe("click",function(){J(n);const i=x(2).index;return ee(x().onOpenImage(i))}),M()}2&t&&T("src",x(2).$implicit.usePath,Nn)}function FSe(t,e){if(1&t&&(A(0,"video",15,16),ue(2,"source",17),M()),2&t){const n=x(4).$implicit;b(2),T("src",n.path,Nn)}}function VSe(t,e){if(1&t&&(A(0,"div",13),z(1,FSe,3,1,"video",14),M()),2&t){const n=x(3).$implicit;b(1),T("ngIf",n.path)}}function BSe(t,e){if(1&t){const n=Me();A(0,"div",18),fe("click",function(){J(n);const i=x(3).index;return ee(x().onOpenImage(i))}),Ie(),A(1,"svg",19),ue(2,"path",20),M()()}}function $Se(t,e){if(1&t&&(A(0,"div",10),z(1,VSe,2,1,"div",11),z(2,BSe,3,0,"div",12),M()),2&t){const n=x(2).$implicit;b(1),T("ngIf","video/mp4"===n.type),b(1),T("ngIf","video/mp4"!==n.type)}}function zSe(t,e){if(1&t&&(A(0,"h3",28),ce(1),M()),2&t){const n=x(3).$implicit;b(1),je(n.translatedTitle)}}const USe=function(t){return{"align-desc-center":t}};function HSe(t,e){if(1&t&&(ue(0,"p",29),ye(1,"safe")),2&t){const n=x(3).$implicit;T("ngClass",$e(5,USe,!(null!=n&&n.price||n.translatedCTAButtonText&&n.linkUrl&&""!==n.linkUrl)))("innerHtml",k1(1,2,n.translatedDescription,"html"),Pd)}}function jSe(t,e){1&t&&(A(0,"div",30),ce(1),ye(2,"translate"),M()),2&t&&(b(1),Ge(" ...",Ce(2,1,"more"),""))}function GSe(t,e){if(1&t&&(A(0,"h3",35),ce(1),M()),2&t){const n=x(4).$implicit;b(1),je(null==n?null:n.price)}}const qSe=function(t){return{"background-color":t,color:"white",border:"0px","box-shadow":"none",margin:"auto",cursor:"pointer",padding:"5px 15px","border-radius":"5px"}};function WSe(t,e){if(1&t){const n=Me();A(0,"button",36),fe("click",function(){J(n);const i=x(4).index;return ee(x().onOpenImage(i))}),ce(1),M()}if(2&t){const n=x(4).$implicit,r=x();T("ngStyle",$e(2,qSe,r.mainColor)),b(1),Ge(" ",n.translatedCTAButtonText," ")}}function YSe(t,e){if(1&t&&(A(0,"div",31),z(1,GSe,2,1,"h3",32),A(2,"div",33),z(3,WSe,2,4,"button",34),M()()),2&t){const n=x(3).$implicit;b(1),T("ngIf",null==n?null:n.price),b(2),T("ngIf",n.translatedCTAButtonText&&n.linkUrl&&""!==n.linkUrl)}}const KSe=function(t){return{"gc-title-only":t}},QSe=function(t){return{"full-width":t}};function XSe(t,e){if(1&t){const n=Me();A(0,"div",21),fe("click",function(){J(n);const i=x(2).index;return ee(x().onOpenImage(i))}),z(1,zSe,2,1,"h3",22),A(2,"div",23)(3,"div",24),z(4,HSe,2,7,"p",25),z(5,jSe,3,3,"div",26),M(),z(6,YSe,4,2,"div",27),M()()}if(2&t){const n=x(2).$implicit;T("ngClass",$e(6,KSe,!n.translatedDescription||""===n.translatedDescription)),b(1),T("ngIf",n.translatedTitle),b(2),T("ngClass",$e(8,QSe,!(null!=n&&n.price||n.translatedCTAButtonText&&n.linkUrl&&""!==n.linkUrl))),b(1),T("ngIf",n.translatedDescription&&n.translatedDescription.length>0),b(1),T("ngIf",n.translatedDescription&&n.translatedDescription.length>100),b(1),T("ngIf",(null==n?null:n.price)||n.translatedCTAButtonText&&n.linkUrl&&""!==n.linkUrl)}}const x$=function(t){return{"background-color":t}};function ZSe(t,e){if(1&t){const n=Me();A(0,"div",37),fe("click",function(){return J(n),ee(x(3).onSlidePrev())}),Ie(),A(1,"svg",38),ue(2,"path",39),M()()}if(2&t){const n=x(3);T("ngStyle",$e(1,x$,n.mainColor))}}function JSe(t,e){if(1&t){const n=Me();A(0,"div",40),fe("click",function(){return J(n),ee(x(3).onSlideNext())}),Ie(),A(1,"svg",41),ue(2,"path",42),M()()}if(2&t){const n=x(3);T("ngStyle",$e(1,x$,n.mainColor))}}function eTe(t,e){if(1&t&&(z(0,LSe,1,1,"img",4),z(1,$Se,3,2,"div",5),z(2,XSe,7,10,"div",6),z(3,ZSe,3,3,"div",7),z(4,JSe,3,3,"div",8)),2&t){const n=x().$implicit,r=x();T("ngIf",n.isImage),b(1),T("ngIf",!n.isImage),b(1),T("ngIf",n.translatedTitle||n.translatedDescription||n.ctaButtonText&&""!==n.ctaButtonText),b(1),T("ngIf",r.config.loop),b(1),T("ngIf",r.config.loop)}}function tTe(t,e){1&t&&z(0,eTe,5,5,"ng-template",3)}Sa.use([h$]);let nTe=(()=>{var t;class e{set func(r){this.items$.next(r.mediaResponse||[])}constructor(r,i,o){this.chatService=r,this.floatingService=i,this.translateService=o,this.items$=new ct([]),this.carouselItems=[],this.config={loop:!0,effect:"cube",grabCursor:!0,cubeEffect:{shadow:!1,slideShadows:!1}},this.mainColor="blue",this.carouselItems$=ui([this.items$,this.translateService.onLangChange.pipe(Go({lang:this.translateService.currentLang}))]).pipe(Pf(([s,a])=>{this.config=s.length>1?{loop:!0,effect:"cube",grabCursor:!0,cubeEffect:{shadow:!1,slideShadows:!1}}:{loop:!1,effect:"cube",grabCursor:!0,cubeEffect:{shadow:!1,slideShadows:!1}}}),Un(([s,a])=>s.map(l=>ge(ge({},l),{},{usePath:l.path400w?l.path400w:l.path,isImage:l.type.indexOf("image")>-1,translatedTitle:"en"===a.lang||null==l.titleTranslations||void 0===l.titleTranslations[a.lang]?l.title:l.titleTranslations[a.lang],translatedDescription:"en"===a.lang||null==l.descriptionTranslations||null==l.descriptionTranslations[a.lang]?l.description:l.descriptionTranslations[a.lang],translatedCTAButtonText:"en"===a.lang||null==l.ctaButtonTextTranslations||null==l.ctaButtonTextTranslations[a.lang]?l.ctaButtonText:l.ctaButtonTextTranslations[a.lang]}))),Pf(s=>{this.carouselItems=s}))}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(r=>{r&&(this.mainColor=r.backgroundColors[0])})}onSwiperLoaded(r){this.swiper=r}onSlideNext(){this.swiper.slideNext()}onSlidePrev(){this.swiper.slidePrev()}goToUrl(r){""!==r&&window.open(r,"_blank")}onOpenImage(r){this.carouselItems[r].linkUrl?this.goToUrl(this.carouselItems[r].linkUrl):this.carouselItems[r].isImage?setTimeout(()=>{const i=this.carouselItems.filter(o=>o.isImage);this.floatingService.showFloating$.next({imageUrls:i,type:"image",show:!0,startingIndex:i.findIndex(o=>o.id===this.carouselItems[r].id)})},10):this.goToUrl(this.carouselItems[r].path)}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn),te($y),te(qr))},t.\u0275cmp=Bt({type:t,selectors:[["app-swiper"]],inputs:{func:["message","func"]},decls:4,vars:5,consts:[[2,"margin","10px -12px"],[3,"config","initialSlide","swiper"],[4,"ngFor","ngForOf"],["swiperSlide",""],["class","image-swiper","alt","",3,"src","click",4,"ngIf"],["class","doc-swiper",4,"ngIf"],["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"],["alt","",1,"image-swiper",3,"src","click"],[1,"doc-swiper"],["class","video-viewer-component",4,"ngIf"],["class","pdf-file-component",3,"click",4,"ngIf"],[1,"video-viewer-component"],["controls","","class","video","disablePictureInPicture","","style","width: 100%; display: inline-block; max-height: 150px","crossorigin","anonymous",4,"ngIf"],["controls","","disablePictureInPicture","","crossorigin","anonymous",1,"video",2,"width","100%","display","inline-block","max-height","150px"],["vid",""],["type","video/mp4",3,"src"],[1,"pdf-file-component",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"],[1,"gc-image-extra",3,"ngClass","click"],["class","gc-image-title",4,"ngIf"],[1,"media-content"],[1,"media-content-left",3,"ngClass"],["class","gc-image-description",3,"ngClass","innerHtml",4,"ngIf"],["class","gc-more",4,"ngIf"],["class","media-content-right",4,"ngIf"],[1,"gc-image-title"],[1,"gc-image-description",3,"ngClass","innerHtml"],[1,"gc-more"],[1,"media-content-right"],["class","gc-image-price",4,"ngIf"],[1,"image-cta-button"],[3,"ngStyle","click",4,"ngIf"],[1,"gc-image-price"],[3,"ngStyle","click"],[1,"gc_swiper-button-prev",3,"ngStyle","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 70 70",2,"margin","3px 0 0 3px"],["fill","white","d","M 30 0 L 0 25 L 30 50 Z"],[1,"gc_swiper-button-next",3,"ngStyle","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 70 70",2,"margin","3px 0 0 -1px"],["fill","white","d","M 20 0 L 50 25 L 20 50 Z"]],template:function(r,i){1&r&&(A(0,"div",0)(1,"swiper",1),fe("swiper",function(s){return i.onSwiperLoaded(s)}),z(2,tTe,1,0,null,2),ye(3,"async"),M()()),2&r&&(b(1),T("config",i.config)("initialSlide",0),b(1),T("ngForOf",Ce(3,3,i.carouselItems$)))},dependencies:[yi,oi,Wn,fr,Vh,qu,js,uo,A$],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:0;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 .doc-swiper{max-height:170px;height:100%;width:100%;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .doc-swiper svg{height:160px;display:block;margin:5px auto}.swiper-slide .gc-image-extra{position:relative;width:100%;height:auto;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:5px 2px 2px;font-size:16px;line-height:16px;height:16px;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 .media-content{display:flex;flex-direction:row;margin-top:7.5px}.swiper-slide .gc-image-extra .media-content .media-content-left{padding:0 5px;width:60%;height:auto;justify-content:flex-start}.swiper-slide .gc-image-extra .media-content .media-content-left .gc-image-description{font-family:Roboto,sans-serif!important;margin:2px;font-size:12px;height:28px;line-height:14px;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc-image-extra .media-content .media-content-left .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 .media-content .media-content-left .gc-image-description.align-desc-center{text-align:center}.swiper-slide .gc-image-extra .media-content .media-content-left.full-width{width:100%;justify-content:center}.swiper-slide .gc-image-extra .media-content .media-content-right{width:40%;padding:0 5px;height:auto;display:flex;flex-direction:column;justify-content:center}.swiper-slide .gc-image-extra .media-content .gc-image-price{font-family:Roboto,sans-serif!important;margin:2px;font-size:15px;line-height:15px;height:16px;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 .media-content .image-cta-button{width:100%;display:flex;flex-direction:row;justify-content:space-around}.swiper-slide .gc-image-extra .gc-more{position:absolute;bottom:-16px;left:0;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}),e})();function rTe(t,e){if(1&t&&(A(0,"h3",15),ce(1),M()),2&t){const n=x(3).$implicit;b(1),je(n.name)}}function iTe(t,e){1&t&&(ue(0,"p",16),ye(1,"safe")),2&t&&T("innerHtml",k1(1,1,x(3).$implicit.description,"html"),Pd)}const oTe=function(t){return{"gc-title-only":t}},Ax=function(t){return{"background-color":t}};function sTe(t,e){if(1&t){const n=Me();A(0,"div",10),z(1,rTe,2,1,"h3",11),z(2,iTe,2,4,"p",12),A(3,"div",13)(4,"button",14),fe("click",function(){J(n);const i=x(2).$implicit;return ee(x(2).onScopeToClient(i))}),ce(5),ye(6,"translate"),M()()()}if(2&t){const n=x(2).$implicit,r=x(2);T("ngClass",$e(7,oTe,!n.description||""===n.description)),b(1),T("ngIf",n.name),b(1),T("ngIf",n.description),b(2),T("ngStyle",$e(9,Ax,r.primaryColor)),b(1),Ge(" ",Ce(6,5,"subProperty.chatToThisProperty")," ")}}function aTe(t,e){if(1&t){const n=Me();A(0,"div",17),fe("click",function(){return J(n),ee(x(4).onSlidePrev())}),Ie(),A(1,"svg",18),ue(2,"path",19),M()()}if(2&t){const n=x(4);T("ngStyle",$e(1,Ax,n.primaryColor))}}function lTe(t,e){if(1&t){const n=Me();A(0,"div",20),fe("click",function(){return J(n),ee(x(4).onSlideNext())}),Ie(),A(1,"svg",21),ue(2,"path",22),M()()}if(2&t){const n=x(4);T("ngStyle",$e(1,Ax,n.primaryColor))}}function cTe(t,e){if(1&t&&(ue(0,"img",6),z(1,sTe,7,11,"div",7),z(2,aTe,3,3,"div",8),z(3,lTe,3,3,"div",9)),2&t){const n=x().$implicit,r=x(2);T("src",n.imageUrl,Nn),b(1),T("ngIf",n.name||n.description),b(1),T("ngIf",r.properties.length>1),b(1),T("ngIf",r.properties.length>1)}}function uTe(t,e){1&t&&z(0,cTe,4,4,"ng-template",5)}function dTe(t,e){if(1&t){const n=Me();A(0,"div",2)(1,"swiper",3),fe("swiper",function(i){return J(n),ee(x().onSwiperLoaded(i))}),z(2,uTe,1,0,null,4),M()()}if(2&t){const n=x();b(1),T("config",n.config)("initialSlide",0),b(1),T("ngForOf",n.filteredProperties)}}function fTe(t,e){if(1&t){const n=Me();A(0,"div",30),fe("click",function(){const o=J(n).$implicit;return ee(x(3).onScopeToClient(o))}),A(1,"div",31),ue(2,"img",32),A(3,"div",33)(4,"span",34),ce(5),M(),A(6,"span",35),ce(7),M()()(),A(8,"div",36),Ie(),A(9,"svg",37),ue(10,"path",38),M()()()}if(2&t){const n=e.$implicit;b(2),T("src",null==n?null:n.imageUrl,Nn)("alt",null==n?null:n.name),b(3),je(n.name),b(2),je(null==n?null:n.description)}}function hTe(t,e){if(1&t&&(A(0,"div",27),z(1,fTe,11,4,"div",29),M()),2&t){const n=x(2);b(1),T("ngForOf",n.filteredProperties)}}function pTe(t,e){1&t&&(A(0,"span",39),ce(1),ye(2,"translate"),M()),2&t&&(b(1),Ge(" ",Ce(2,1,"subProperty.noPropertiesFound"),". "))}function gTe(t,e){if(1&t){const n=Me();A(0,"div",23)(1,"div",24)(2,"input",25),fe("ngModelChange",function(i){return J(n),ee(x().filterString=i)})("input",function(){return J(n),ee(x().filterProperties())}),ye(3,"translate"),M()(),z(4,hTe,2,1,"div",26),A(5,"div",27),z(6,pTe,3,3,"span",28),M()()}if(2&t){const n=x();b(2),T("ngModel",n.filterString)("placeholder",Ce(3,4,"subProperty.searchProperty")),b(2),T("ngIf",(null==n.filteredProperties?null:n.filteredProperties.length)>0),b(2),T("ngIf",0===(null==n.filteredProperties?null:n.filteredProperties.length))}}let mTe=(()=>{var t;class e{constructor(r){this.chatService=r,this.properties=[],this.filteredProperties=[],this.primaryColor="darkblue",this.chatToUsStyle={color:"darkblue"},this.config={loop:!0,effect:"cube",grabCursor:!0,cubeEffect:{shadow:!1,slideShadows:!1}},this.isPreview=!1}ngOnInit(){const r=window.location.hostname;this.isPreview=!!(r.includes("widget-guestchat.web.app")||r.includes("localhost")||r.includes("widget-guestchat")),this.propertiesSub=this.chatService.subProperties$.subscribe(i=>{this.properties=i,this.filterProperties()}),this.botSettingsSub=this.chatService.botSettingsBS.subscribe(i=>{i&&(this.chatToUsStyle={color:i.backgroundColors[0]},this.primaryColor=i.backgroundColors[0])})}onScopeToClient(r){const i=window.localStorage.getItem("chatId");window.sessionStorage.setItem("clientId",r.clientId),this.chatService.initServer(r.clientId,i,!1,this.isPreview)}filterProperties(){this.filteredProperties=this.filterString&&""!==this.filterString?this.properties.filter(r=>{var i;return r.name.toLowerCase().replace(/\s+/g,"").includes(this.filterString.toLowerCase().replace(/\s+/g,""))||(null==r||null===(i=r.description)||void 0===i||null===(i=i.toLowerCase())||void 0===i||null===(i=i.replace(/\s+/g,""))||void 0===i?void 0:i.includes(this.filterString.toLowerCase().replace(/\s+/g,"")))}):[...this.properties]}onSwiperLoaded(r){this.swiper=r}onSlideNext(){this.swiper.slideNext()}onSlidePrev(){this.swiper.slidePrev()}ngOnDestroy(){this.propertiesSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn))},t.\u0275cmp=Bt({type:t,selectors:[["app-sub-property-select"]],decls:2,vars:2,consts:[["style","margin: 10px -12px",4,"ngIf"],["class","custom-dropdown",4,"ngIf"],[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","viewBox","0 0 70 70",2,"margin","3px 0 0 3px"],["fill","white","d","M 30 0 L 0 25 L 30 50 Z"],[1,"gc_swiper-button-next",3,"ngStyle","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 70 70",2,"margin","3px 0 0 -1px"],["fill","white","d","M 20 0 L 50 25 L 20 50 Z"],[1,"custom-dropdown"],[1,"dropdown-input"],["type","text",1,"search-input",3,"ngModel","placeholder","ngModelChange","input"],["class","dropdown-options",4,"ngIf"],[1,"dropdown-options"],["style","margin: 5px",4,"ngIf"],["class","option-item",3,"click",4,"ngFor","ngForOf"],[1,"option-item",3,"click"],[1,"content-wrapper"],[1,"property-image",3,"src","alt"],[1,"property-name-description"],[1,"property-name"],[1,"property-description"],[1,"carrot-icon"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 24 24","fill","none","stroke","#4f4f4f","stroke-width","2.25","stroke-linecap","round","stroke-linejoin","round",1,"lucide","lucide-chevron-right-icon","lucide-chevron-right"],["d","m9 18 6-6-6-6"],[2,"margin","5px"]],template:function(r,i){1&r&&(z(0,dTe,3,3,"div",0),z(1,gTe,7,6,"div",1)),2&r&&(T("ngIf",i.properties&&i.properties.length<6),b(1),T("ngIf",i.properties&&i.properties.length>5))},dependencies:[yi,oi,Wn,fr,Uu,Ey,Nh,Vh,qu,uo,A$],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:0;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:"";background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-slide-duplicate{visibility:hidden!important}.swiper-slide-active{visibility:visible!important}.swiper-slide{cursor:pointer;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide:not(.swiper-slide-visible){visibility:hidden!important}.swiper-slide .image-swiper{max-height:170px;height:100%;width:100%;object-fit:cover;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc-image-extra{position:relative;width:100%;height:70px;font-family:Roboto,sans-serif!important;cursor:pointer}.swiper-slide .gc-image-extra.gc-title-only{height:35px}.swiper-slide .gc-image-extra .gc-image-title{font-family:Roboto,sans-serif!important;margin:2px;font-size:14px;line-height:14px;height:15px;overflow:hidden;width:100%;white-space:pre;text-overflow:ellipsis;text-align:center;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc-image-extra .gc-image-description{font-family:Roboto,sans-serif!important;margin:2px;font-size:12px;height:28px;line-height:14px;overflow:hidden;text-align:center;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc-image-extra .gc-image-description p{-webkit-margin-before:0px;margin-block-start:0px;-webkit-margin-after:0px;margin-block-end:0px;margin:2px!important;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-slide .gc_swiper-button-prev,.swiper-slide .gc_swiper-button-next{position:absolute;width:18px;box-sizing:content-box;height:22px;opacity:.8;line-height:26px;margin-top:0;padding:5px 0;top:60px;z-index:100011;cursor:pointer;border-radius:2px;text-align:center;background-image:none;backface-visibility:hidden;-moz-backface-visibility:hidden;-webkit-backface-visibility:hidden}.swiper-slide .gc_swiper-button-prev svg,.swiper-slide .gc_swiper-button-next svg{height:22px}.swiper-slide .gc_swiper-button-prev{left:12px;background-position:left}.swiper-slide .gc_swiper-button-next{right:12px;background-position:right}.swiper-cube .swiper-cube-shadow{display:none!important}.custom-dropdown{width:100%;max-width:400px;margin:0 auto}.custom-dropdown .dropdown-input{min-width:200px;width:100%}.custom-dropdown .dropdown-input .search-input{width:calc(100% - 30px);padding:10px;margin:0 5px;border:1px solid #ccc;border-radius:4px;font-size:14px}.custom-dropdown .dropdown-input .search-input:focus{outline:none;border-color:var(--primary-color, darkblue)}.custom-dropdown .dropdown-options{border-radius:4px;max-height:300px;overflow-y:auto;display:none;display:block}.custom-dropdown .dropdown-options .option-item{display:flex;align-items:center;justify-content:space-between;padding:10px;cursor:pointer;transition:background-color .2s}.custom-dropdown .dropdown-options .option-item:hover{background-color:#f5f5f5}.custom-dropdown .dropdown-options .option-item .content-wrapper{display:flex;align-items:center;flex:1}.custom-dropdown .dropdown-options .option-item .property-image{width:40px;height:40px;border-radius:4px;object-fit:cover}.custom-dropdown .dropdown-options .option-item .property-name-description{display:flex;flex-direction:column;justify-content:flex-start;text-align:left;margin-left:10px;flex:1}.custom-dropdown .dropdown-options .option-item .property-name-description .property-name{font-size:14px;color:#333}.custom-dropdown .dropdown-options .option-item .property-name-description .property-description{font-size:10px;color:#666}.custom-dropdown .dropdown-options .option-item .carrot-icon{margin-left:5px;font-weight:700;font-size:16px;color:#666}::-webkit-scrollbar{width:2.5px}::-webkit-scrollbar-thumb{background:lightgrey}::-webkit-scrollbar-thumb:hover{background:darkgrey}\n'],encapsulation:3}),e})();var _Te=Bl(846);function vTe(t,e){1&t&&ue(0,"span",10),2&t&&T("innerHTML",x().$implicit.value,Pd)}function yTe(t,e){if(1&t&&(A(0,"span",11),ce(1),M()),2&t){const n=x().$implicit;b(1),je(n.value)}}function bTe(t,e){1&t&&(Ie(),A(0,"svg",25),ue(1,"path",26),M())}function wTe(t,e){1&t&&(Ie(),A(0,"svg",27),ue(1,"path",28),M())}function CTe(t,e){1&t&&(Ie(),A(0,"svg",29),ue(1,"path",30),M())}function ETe(t,e){1&t&&(Ie(),A(0,"svg",31),ue(1,"path",32),M())}function STe(t,e){1&t&&(Ie(),A(0,"svg",29),ue(1,"path",33),M())}function TTe(t,e){1&t&&(Ie(),A(0,"svg",27),ue(1,"path",34),M())}function ITe(t,e){1&t&&(Ie(),A(0,"svg",29),ue(1,"path",35),M())}function ATe(t,e){1&t&&(Ie(),A(0,"svg",27),ue(1,"path",36),M())}function xTe(t,e){1&t&&(Ie(),A(0,"svg",27),ue(1,"path",37),M())}function PTe(t,e){1&t&&(Ie(),A(0,"svg",31),ue(1,"path",38),M())}function DTe(t,e){1&t&&(Ie(),A(0,"svg",39),ue(1,"path",40),M())}function kTe(t,e){1&t&&(Ie(),A(0,"svg",41),ue(1,"path",42),M())}function MTe(t,e){1&t&&(Ie(),A(0,"svg",27),ue(1,"path",43),M())}function OTe(t,e){if(1&t&&(A(0,"div",12)(1,"span",13),z(2,bTe,2,0,"svg",14),z(3,wTe,2,0,"svg",15),z(4,CTe,2,0,"svg",16),z(5,ETe,2,0,"svg",17),z(6,STe,2,0,"svg",16),z(7,TTe,2,0,"svg",15),z(8,ITe,2,0,"svg",18),z(9,ATe,2,0,"svg",19),z(10,xTe,2,0,"svg",15),z(11,PTe,2,0,"svg",20),z(12,DTe,2,0,"svg",21),z(13,kTe,2,0,"svg",22),z(14,MTe,2,0,"svg",23),M(),A(15,"span",24),ce(16),M()()),2&t){const n=x().$implicit;b(1),T("ngSwitch",n.value),b(1),T("ngSwitchCase","Restaurant"),b(1),T("ngSwitchCase","Bar"),b(1),T("ngSwitchCase","Pool"),b(1),T("ngSwitchCase","Spa"),b(1),T("ngSwitchCase","Gym"),b(1),T("ngSwitchCase","Room Service"),b(1),T("ngSwitchCase","Free WiFi"),b(1),T("ngSwitchCase","Business Center"),b(1),T("ngSwitchCase","Luggage Storage"),b(1),T("ngSwitchCase","Conference Facilities"),b(1),T("ngSwitchCase","Laundry"),b(1),T("ngSwitchCase","Free Parking"),b(3),Ge(" ",n.value," ")}}function RTe(t,e){if(1&t&&(A(0,"span",44)(1,"a",45),ce(2),M()()),2&t){const n=x().$implicit;b(1),T("href",n.link,Nn),b(1),je(n.value)}}function NTe(t,e){if(1&t&&(A(0,"span"),ce(1),M()),2&t){const n=e.$implicit;b(1),je(n)}}function LTe(t,e){if(1&t&&(A(0,"div",46),z(1,NTe,2,1,"span",47),M()),2&t){const n=x().$implicit;b(1),T("ngForOf",n.value)}}function FTe(t,e){if(1&t&&(A(0,"div",4),z(1,vTe,1,1,"span",5),z(2,yTe,2,1,"span",6),z(3,OTe,17,14,"div",7),z(4,RTe,3,2,"span",8),z(5,LTe,2,1,"div",9),M()),2&t){const n=e.$implicit;b(1),T("ngIf","text"===n.type),b(1),T("ngIf","line"===n.type),b(1),T("ngIf","list"===n.type),b(1),T("ngIf","link"===n.type),b(1),T("ngIf","table"===n.type)}}const VTe=function(t){return{reply:t}};function BTe(t,e){if(1&t&&(A(0,"div",1)(1,"div",2),z(2,FTe,6,5,"div",3),M()()),2&t){const n=e.$implicit,r=x();T("ngClass",$e(3,VTe,r.reply))("ngStyle",r.backgroundColorStyle),b(2),T("ngForOf",n)}}let $Te=(()=>{var t;class e{constructor(r){this.chatService=r,this.reply=!0,this.textResponses=[],this.backgroundColorStyle={"background-color":"white"},this.responseSplitter=i=>i&&""!==i?i.split(new RegExp("(?<!-)--(?!-)")).map(s=>{const a=s.replace(/(^|\n)\s*([0-9A-Z]?\.?\s*\*\*.*?\*\*[:\s]*|\*\*[^*]+\*\*[:\s]*)/gm,"$1\n$2\n\n"),l=new _Te.Converter;l.setOption("tables",!0);const c=this.pullOutLinks(a);return"text"===c[0].type?("string"!=typeof c[0].value||(c[0].value=l.makeHtml(c[0].value)),c):c}):[]}ngOnInit(){this.botSettingsSub=this.chatService.botSettingsBS.subscribe(r=>{r&&(this.reply||(("#FFF"===r.backgroundColors[0]||"#fff"===r.backgroundColors[0]||"#ffffff"===r.backgroundColors[0]||"#FFFFFF"===r.backgroundColors[0])&&(this.backgroundColorStyle={"background-color":"grey"}),this.backgroundColorStyle={"background-color":r.backgroundColors[0]}))}),this.textResponses=this.responseSplitter(this.msg)}pullOutLinks(r){const i=[],o=r.replace(/ {2}\t/gm,"").trim();let s="text",a=0;for(let l=1;l<o.length;l++)if(">"===o[l]&&">"===o[l-1]&&(a+2<l&&i.push({type:"text",value:o.slice(a,l-1).trim()}),s="link",a=l+1),"["===o[l]&&"["===o[l-1]&&(a+2<l&&i.push({type:"text",value:o.slice(a,l-1).trim()}),s="table",a=l),"#"===o[l-1]&&"("===o[l]&&(a+2<l&&i.push({type:"text",value:o.slice(a,l-1).trim()}),s="list",a=l+1),"&"===o[l-1]&&"&"===o[l]&&(a+2<l&&i.push({type:"line",value:o.slice(a,l-1).trim()}),s="line",a=l+1)," "===o[l]&&"link"===s&&a+2<l||"]"===o[l]&&"]"===o[l-1]||"#"===o[l-1]&&")"===o[l]||"&"===o[l-1]&&"&"===o[l]||l===o.length-1){if("table"===s)i.push({type:"table",value:o.slice(a+1,l-1).split(",").map(c=>c.trim()).filter(c=>""!==c)});else if("link"===s){const c=o.slice(a,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:o.slice(a,l-1).trim()}:{type:s,value:o.slice(a,l+1).trim()});a=l+1,s="text"}return 0===i.length&&i.push({type:"text",value:o.trim()}),i}ngOnDestroy(){this.botSettingsSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn))},t.\u0275cmp=Bt({type:t,selectors:[["app-text-response"]],inputs:{msg:"msg",reply:"reply"},decls:1,vars:1,consts:[["class","msg-block blocks",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],[1,"msg-block","blocks",3,"ngClass","ngStyle"],[1,"msg-text"],["class","message-segment",4,"ngFor","ngForOf"],[1,"message-segment"],["class","gc-inline-text",3,"innerHTML",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",3,"innerHTML"],[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"]],template:function(r,i){1&r&&z(0,BTe,3,5,"div",0),2&r&&T("ngForOf",i.textResponses)},dependencies:[yi,oi,Wn,fr,Ya,df,vw],styles:[".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}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;margin:0;display:inline-block;font-size:14px;line-height:19px;text-align:left;white-space:pre-line;width:100%}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]{vertical-align:top}.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%}.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}.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}.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}.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}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]   .gc-inline-line[_ngcontent-%COMP%]{display:block;width:100%}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text p{margin:0;line-height:19px}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text ul{margin:5px;padding-left:20px}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text ol{margin:5px;padding-left:15px}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text h1{margin:0;font-size:18px}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text h2{margin:0;font-size:16px}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text h3{margin:0;font-size:15px}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text h4{margin:0;font-size:14px}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text h5{margin:0;font-size:14px}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text h6{margin:0;font-size:14px}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text table{width:100%;border-collapse:collapse;margin-top:10px;margin-bottom:10px}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text th, .msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text td{border:1px solid black;padding:8px}.msg-block[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]   .message-segment[_ngcontent-%COMP%]     .gc-inline-text th{text-align:left}.msg-block.blocks[_ngcontent-%COMP%]{margin-bottom:6px}.msg-block.reply[_ngcontent-%COMP%]{padding:10px;box-sizing:content-box;background:white!important;color:#000;border-bottom-left-radius:0;border-bottom-right-radius:18px;line-height:19px}.msg-block.reply[_ngcontent-%COMP%]   .msg-text[_ngcontent-%COMP%]{white-space:normal!important}.msg-block[_ngcontent-%COMP%]   .msg-link[_ngcontent-%COMP%]{display:block}.msg-block.openStructuredDiv[_ngcontent-%COMP%]{margin-top:8px;text-align:center}.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}"]}),e})(),zTe=(()=>{var t;class e{constructor(r){this.translateService=r}transform(r,i){const s=new Intl.RelativeTimeFormat(this.translateService.currentLang,{localeMatcher:"best fit",numeric:"always",style:"long"});if(r){const a=Math.floor((+new Date-+new Date(r))/1e3);if(a<29)return this.translateService.instant("justNow");const l={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};for(const c in l)if(Math.floor(a/l[c])>0)return s.format(-Math.floor(a/l[c]),c)}return r}}return(t=e).\u0275fac=function(r){return new(r||t)(te(qr,16))},t.\u0275pipe=sr({name:"relativeTime",type:t,pure:!0}),e})();function UTe(t,e){1&t&&(A(0,"div",7),ue(1,"app-sub-property-select"),M())}function HTe(t,e){if(1&t){const n=Me();A(0,"div",7)(1,"button",10),fe("click",function(){J(n);const i=x().$implicit;return ee(x().onOpenExtraInput(i))}),ce(2),M()()}if(2&t){const n=x().$implicit,r=x();b(1),T("ngStyle",r.backgroundSuccess),b(1),je(r.getTranslationForButton(n))}}function jTe(t,e){1&t&&(A(0,"div",7),ue(1,"app-live-chat-response"),M())}function GTe(t,e){if(1&t&&(A(0,"div",2),ue(1,"app-text-response",8),z(2,HTe,3,2,"div",9),z(3,jTe,2,0,"div",3),M()),2&t){const n=e.$implicit;b(1),T("msg",n.textResponse)("reply",!0),b(1),T("ngIf",n.showStructuredInput),b(1),T("ngIf","liveChatOptions"===n.responseClass)}}function qTe(t,e){1&t&&(A(0,"div",7),ue(1,"app-sub-property-select"),M())}function WTe(t,e){1&t&&(A(0,"div",18),ue(1,"app-intervention"),M())}function YTe(t,e){if(1&t){const n=Me();A(0,"div",7)(1,"app-live-chat-response",19),fe("scrollNow",function(){return J(n),ee(x(3).onScrollNow())}),M()()}if(2&t){const n=x(2).$implicit;b(1),T("liveChatSomebodyIsAround",n.liveChatSomebodyIsAround)}}function KTe(t,e){if(1&t&&(A(0,"div",20),ue(1,"app-availability-swiper",21),M()),2&t){const n=x(2).$implicit;b(1),T("message",n)}}function QTe(t,e){if(1&t&&(A(0,"div",20),ue(1,"app-gauvendi-swiper",21),M()),2&t){const n=x(2).$implicit;b(1),T("message",n)}}function XTe(t,e){if(1&t&&(A(0,"div",23),ue(1,"app-link-preview",24),M()),2&t){const n=e.$implicit,r=e.index;b(1),T("preview",n)("index",r)}}function ZTe(t,e){if(1&t&&(A(0,"div"),z(1,XTe,2,2,"div",22),M()),2&t){const n=x(2).$implicit;b(1),T("ngForOf",n.urlsResponse)}}function JTe(t,e){if(1&t&&(A(0,"div",25),ue(1,"app-swiper",21),M()),2&t){const n=x(2).$implicit;b(1),T("message",n)}}function eIe(t,e){if(1&t){const n=Me();A(0,"div",7)(1,"button",10),fe("click",function(){J(n);const i=x(2).$implicit;return ee(x().onOpenExtraInput(i))}),ce(2),M()()}if(2&t){const n=x(2).$implicit,r=x();b(1),T("ngStyle",r.backgroundSuccess),b(1),je(r.getTranslationForButton(n))}}function tIe(t,e){if(1&t&&(A(0,"div",2),ue(1,"app-text-response",8),z(2,WTe,2,0,"div",15),z(3,YTe,2,1,"div",3),z(4,KTe,2,1,"div",16),z(5,QTe,2,1,"div",16),z(6,ZTe,2,1,"div",6),z(7,JTe,2,1,"div",17),z(8,eIe,3,2,"div",9),M()),2&t){const n=x().$implicit,r=x();b(1),T("msg",n.textResponse)("reply",!0),b(1),T("ngIf","serverEvent-intervention"===n.responseClass),b(1),T("ngIf","liveChatOptions"===n.responseClass||"liveChatNobodyAround"===n.responseClass||"call_action"==n.intentId),b(1),T("ngIf","roomRAI"===n.responseClass||"room_categories"===n.intentId),b(1),T("ngIf","gauvendi"===n.responseClass),b(1),T("ngIf",n.urlsResponse&&n.urlsResponse.length>0),b(1),T("ngIf",n.mediaResponse&&n.mediaResponse.length>0),b(1),T("ngIf",n.showStructuredInput&&!r.blockRequests)}}function nIe(t,e){1&t&&ue(0,"app-text-response",8),2&t&&T("msg",x().$implicit.question)("reply",!1)}const rIe=function(t){return{"user-send":t}};function iIe(t,e){if(1&t&&(A(0,"div",26)(1,"div",27),ce(2),ye(3,"relativeTime"),M()()),2&t){const n=x().$implicit;b(1),T("ngClass",$e(5,rIe,!n.reply)),b(1),ni(" ",Ce(3,3,n.date.toDate())," ","Bot"!=n.sender&&"User"!=n.sender?n.sender:null," ")}}const oIe=function(t){return{"own-message":t}};function sIe(t,e){if(1&t){const n=Me();A(0,"div",11),fe("click",function(){const o=J(n).$implicit;return ee(x().onFocusMessage(o))}),z(1,tIe,9,9,"div",12),A(2,"div",2),z(3,nIe,1,2,"app-text-response",13),M(),z(4,iIe,4,7,"div",14),M()}if(2&t){const n=e.$implicit;T("ngClass",$e(4,oIe,!n.reply)),b(1),T("ngIf",n.reply),b(2),T("ngIf",!n.reply),b(1),T("ngIf",n.date)}}function aIe(t,e){1&t&&ue(0,"app-typing-animation")}let lIe=(()=>{var t;class e{set f(r){this.debugService.logMode&&console.log("got messages",r),r.length>0?(this.noMessages?(this.messages=r.map(i=>ge(ge({},i),{},{liveChatSomebodyIsAround:this.liveChatSomebodyIsAround})),this.debugService.logMode&&console.log("First",this.messages),this.scrollNow.emit(500+20*this.messages.length)):(r.forEach(i=>{const o=this.messages.findIndex(a=>a.id===i.id),s=ge(ge({},i),{},{swiperIndex:0,liveChatSomebodyIsAround:this.liveChatSomebodyIsAround});-1===o&&i.reply?(this.chatService.botIsTyping$.next(!1),"liveChatNobodyAround"===s.responseClass&&(this.liveChatSomebodyIsAround=!1,s.liveChatSomebodyIsAround=!1),"liveChatNotifyingAgent"===s.responseClass&&this.chatService.botIsTyping$.next(!0),this.messages.push(s),this.debugService.logMode&&console.log(s)):-1!==o||i.reply?i.id===this.userMessage.id&&(this.messages[o]=i):(this.messages.push(s),this.debugService.logMode&&console.log(s))}),this.scrollNow.emit(250)),this.noMessages=!1):this.messages=[]}constructor(r,i,o){this.chatService=r,this.debugService=i,this.translateService=o,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 de,this.scrollNow=new de,this.liveChatSomebodyIsAround=!0,this.blockRequests=!1,this.scopedAsParentOfSubProperties$=ui([this.chatService.clientId$,this.chatService.subPropertyParentId$,this.chatService.subProperties$]).pipe(Un(([s,a,l])=>a?s===a?"bottom":"top":"none"))}ngOnInit(){this.botSettingsSub=ui([this.chatService.botSettingsBS,this.translateService.onLangChange.pipe(Go({lang:this.translateService.currentLang}))]).subscribe(([i,o])=>{if(i){this.botSettings=ge({},i),this.backgroundSuccess={"background-color":i.backgroundColors[0]};let s=this.botSettings.openingLine;"en"!==o.lang&&this.botSettings.openingLineTranslations&&this.botSettings.openingLineTranslations[o.lang]&&(s=this.botSettings.openingLineTranslations[o.lang]);let a=this.botSettings.showStructuredInput;(!this.botSettings.structuredInputForm||!this.botSettings.structuredInputForm.inputs||0===this.botSettings.structuredInputForm.inputs.length||this.botSettings.forceSubmissionBeforeChat)&&(a=!1),this.preMessages=[{reply:!0,textResponse:s,showStructuredInput:a,structuredInputForm:this.botSettings.structuredInputForm,showStructuredInputButtonText:this.botSettings.showStructuredInputButtonText,showStructuredInputButtonTextTranslations:this.botSettings.showStructuredInputButtonTextTranslations}]}}),this.liveChatSub=ui([this.chatService.liveChatOnlyMode$,this.chatService.liveChatSettings$,this.translateService.onLangChange.pipe(Go({lang:this.translateService.currentLang}))]).subscribe(([i,o,s])=>{o&&i&&!o.liveChatAvailable&&(this.preMessages=[{reply:!0,responseClass:"liveChatOptions",textResponse:this.translateService.instant("currentlyOffLine")}])}),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 r=ui([this.chatService.botIsTyping$,this.chatService.postIsLoading$,this.chatService.agentIsTyping$]);this.typingSub=r.subscribe(([i,o,s])=>{i||o||s?(this.showTyping=!0,this.scrollNow.emit()):this.showTyping=!1}),this.blockRequestsSub=this.chatService.blockRequests$.subscribe(i=>{this.blockRequests=i})}onOpenExtraInput(r){let i=null;null!=r&&r.textResponse&&(i=null==r?void 0:r.textResponse);const o=ge(ge({},r.structuredInputForm),{},{preMessage:i,intent:r.intentId});this.chatService.showStructuredInput$.next(o),this.chatService.forceSubmissionBeforeChat$.next(!1)}onFocusMessage(r){this.focusMessage.emit(r)}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}]}),this.chatService.forceSubmissionBeforeChat$.next(!1)}getTranslationForButton(r){const i=this.translateService.currentLang;return"en"===i?r.showStructuredInputButtonText?r.showStructuredInputButtonText:"Open Request Form":r.showStructuredInputButtonTextTranslations&&r.showStructuredInputButtonTextTranslations[i]?r.showStructuredInputButtonTextTranslations[i]:r.showStructuredInputButtonText}onScrollNow(){this.scrollNow.emit(100)}ngOnDestroy(){this.botSettingsSub&&this.botSettingsSub.unsubscribe(),this.typingSub&&this.typingSub.unsubscribe(),this.blockRequestsSub&&this.blockRequestsSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn),te(Ii),te(qr))},t.\u0275cmp=Bt({type:t,selectors:[["app-messages-display"]],inputs:{f:["messages","f"]},outputs:{focusMessage:"focusMessage",scrollNow:"scrollNow"},decls:11,vars:9,consts:[[1,"messages"],[1,"each-msg"],[1,"message"],["class","msg-block  reply",4,"ngIf"],["class","message",4,"ngFor","ngForOf"],["class","each-msg",3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"msg-block","reply"],[3,"msg","reply"],["class","openStructuredDiv","class","msg-block  reply",4,"ngIf"],[3,"ngStyle","click"],[1,"each-msg",3,"ngClass","click"],["class","message",4,"ngIf"],[3,"msg","reply",4,"ngIf"],["class","msg-date-container",4,"ngIf"],["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"],[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"],[1,"msg-date-container"],[1,"msg-date",3,"ngClass"]],template:function(r,i){1&r&&(A(0,"div",0)(1,"div",1)(2,"div",2),z(3,UTe,2,0,"div",3),ye(4,"async"),M(),z(5,GTe,4,4,"div",4),A(6,"div",2),z(7,qTe,2,0,"div",3),ye(8,"async"),M()(),z(9,sIe,5,6,"div",5),z(10,aIe,1,0,"app-typing-animation",6),M()),2&r&&(b(3),T("ngIf","top"===Ce(4,5,i.scopedAsParentOfSubProperties$)),b(2),T("ngForOf",i.preMessages),b(2),T("ngIf","bottom"===Ce(8,7,i.scopedAsParentOfSubProperties$)),b(2),T("ngForOf",i.messages),b(1),T("ngIf",i.showTyping))},dependencies:[yi,oi,Wn,fr,M1e,O1e,zEe,ASe,RSe,NSe,nTe,mTe,$Te,js,zTe],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:0;bottom:0}.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}"]}),e})();const cIe=["scrollToHere"],uIe=["textInput"];function dIe(t,e){if(1&t){const n=Me();A(0,"div",24),fe("click",function(){return J(n),ee(x().onEasterEgg())}),ue(1,"img",25),M()}if(2&t){const n=x();b(1),T("src",n.whosTalking.img,Nn)}}const ho=function(t){return{fill:t}};function fIe(t,e){if(1&t&&(Ie(),A(0,"svg",28)(1,"g"),ue(2,"path",29)(3,"path",30)(4,"path",31)(5,"path",32)(6,"path",33)(7,"path",34)(8,"path",35)(9,"path",36),M()()),2&t){const n=x(2);b(2),T("ngStyle",$e(8,ho,n.textColor)),b(1),T("ngStyle",$e(10,ho,n.textColor)),b(1),T("ngStyle",$e(12,ho,n.textColor)),b(1),T("ngStyle",$e(14,ho,n.textColor)),b(1),T("ngStyle",$e(16,ho,n.textColor)),b(1),T("ngStyle",$e(18,ho,n.textColor)),b(1),T("ngStyle",$e(20,ho,n.textColor)),b(1),T("ngStyle",$e(22,ho,n.textColor))}}function hIe(t,e){if(1&t&&(Ie(),A(0,"svg",37)(1,"g"),ue(2,"path",38),M()()),2&t){const n=x(2);b(2),T("ngStyle",$e(1,ho,n.textColor))}}function pIe(t,e){if(1&t){const n=Me();Ie(),st(),A(0,"div",8),fe("click",function(){return J(n),ee(x().onToggleMaximize())}),z(1,fIe,10,24,"svg",26),z(2,hIe,3,3,"svg",27),M()}if(2&t){const n=x();b(1),T("ngIf",!n.maximized),b(1),T("ngIf",n.maximized)}}function gIe(t,e){if(1&t){const n=Me();Ie(),st(),A(0,"div",8),fe("click",function(){return J(n),ee(x().onClose())}),Ie(),A(1,"svg",39),ue(2,"path",40),M()()}if(2&t){const n=x();b(2),T("ngStyle",$e(1,ho,n.textColor))}}function mIe(t,e){if(1&t){const n=Me();Ie(),st(),A(0,"div",41)(1,"ul")(2,"li",42),fe("click",function(){return J(n),ee(x().onResetChat())}),ce(3),ye(4,"translate"),M()()()}2&t&&(b(3),Ge(" ",Ce(4,1,"restart.Conversation")," "))}function _Ie(t,e){1&t&&(Ie(),st(),A(0,"div",43),ue(1,"app-structured-input"),M())}function vIe(t,e){if(1&t&&(Ie(),st(),A(0,"div",44),ce(1),ye(2,"async"),M()),2&t){const n=x();b(1),Ge(" ",Ce(2,1,n.otherAgentActive$)," ")}}function yIe(t,e){if(1&t&&(A(0,"div"),ce(1),ye(2,"translate"),A(3,"a",45),ye(4,"async"),ce(5),ye(6,"translate"),M()()),2&t){const n=x();b(1),Ge(" ",Ce(2,3,"gdrpAgreeing")," "),b(2),T("href",Ce(4,5,n.clientGDPRLink$),Nn),b(2),je(Ce(6,7,"gdrpDataProcessing"))}}function bIe(t,e){1&t&&(A(0,"div"),ce(1),ye(2,"translate"),M()),2&t&&(b(1),Ge(" ",Ce(2,1,"poweredByLLM")," "))}function wIe(t,e){if(1&t){const n=Me();A(0,"div",60),fe("click",function(){return J(n),ee(x(3).onExpandLanguages())}),ce(1),ye(2,"uppercase"),ye(3,"async"),M()}if(2&t){const n=x(3);b(1),Ge(" ",Ce(2,1,Ce(3,3,n.activeLanguageFlag$))," ")}}function CIe(t,e){if(1&t){const n=Me();A(0,"li",42),fe("click",function(){const o=J(n).$implicit;return ee(x(4).onSelectLanguage(o.value))}),ce(1),ye(2,"uppercase"),M()}if(2&t){const n=e.$implicit;b(1),Ge(" ",Ce(2,1,n.label)," ")}}function EIe(t,e){if(1&t&&(A(0,"div",61,62)(2,"ul"),z(3,CIe,3,3,"li",63),M()()),2&t){const n=x(3);b(3),T("ngForOf",n.languagesDD)}}const SIe=function(t){return{"has-languages-select":t}};function TIe(t,e){if(1&t){const n=Me();A(0,"div",51)(1,"div",52),z(2,wIe,4,5,"div",53),A(3,"input",54,55),fe("ngModelChange",function(i){return J(n),ee(x(2).inputText=i)})("keyup",function(i){return J(n),ee(x(2).onKeyup(i))}),ye(5,"translate"),M(),z(6,EIe,4,1,"div",56),M(),A(7,"div",57),fe("click",function(){return J(n),ee(x(2).onSendText())}),Ie(),A(8,"svg",58),ue(9,"path",59),M()()()}if(2&t){const n=x(2);b(2),T("ngIf",n.translationsActive),b(1),T("ngModel",n.inputText)("placeholder",Ce(5,5,"typeMessage"))("ngClass",$e(7,SIe,n.translationsActive)),b(3),T("ngIf",n.languageOptionsOpen)}}function IIe(t,e){1&t&&ue(0,"div",64)}function AIe(t,e){if(1&t&&(A(0,"div",65),ce(1),ye(2,"translate"),A(3,"a",45),ce(4),M()()),2&t){const n=x(2);b(1),Ge(" ",Ce(2,3,"poweredByZenturo")," "),b(2),T("href",n.activeReseller.poweredByNavigationLink,Nn),b(1),je(n.activeReseller.name)}}const P$=function(t){return{"extra-open":t}},xIe=function(t){return{height:t}};function PIe(t,e){if(1&t){const n=Me();A(0,"div",46)(1,"app-quick-actions",47),fe("newActionAreaHeight",function(i){return J(n),ee(x().onNewActionAreaHeight(i))})("scrollNow",function(){return J(n),ee(x().onScrollToBottom())}),M(),z(2,TIe,10,9,"div",48),ye(3,"async"),z(4,IIe,1,0,"div",49),ye(5,"async"),z(6,AIe,5,5,"div",50),M()}if(2&t){const n=x();T("ngClass",$e(11,P$,n.extraInputOpen))("ngStyle",$e(13,xIe,n.inputContainerHeight)),b(1),T("related-intents",n.relatedIntents)("forceOpen",n.forceOpenSecondaryBar),b(1),T("ngIf",Ce(3,7,n.showTextInputBox$)),b(2),T("ngIf",!Ce(5,9,n.showTextInputBox$)),b(2),T("ngIf",null==n.activeReseller?null:n.activeReseller.showPoweredByOnWidget)}}const DIe=function(t,e,n,r){return{open:t,left:e,maximized:n,fullMode:r}},kIe=function(t){return{color:t}},MIe=function(t){return{hidden:t}};let OIe=(()=>{var t;class e{onClickedOutside(){"open"===this.state&&(this.chatOptionsOpen&&!1===this.expandOptionsEvent&&(this.chatOptionsOpen=!1),this.expandOptionsEvent=!1,this.languageOptionsOpen&&!1===this.laguageChooserEvent&&(this.languageOptionsOpen=!1),this.laguageChooserEvent=!1)}constructor(r,i,o,s,a){this.chatService=r,this.popupService=i,this.debugService=o,this.translateService=s,this.resellersService=a,this.state="close",this.chatOptionsOpen=!1,this.popupHeight=0,this.messages=[],this.inputText="",this.lastInputText="",this.botSettings={title:"",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.isPreview=!1,this.forceOpenSecondaryBar=!1,this.languagesDD=[],this.languageOptionsOpen=!1,this.translationsActive=!1,this.maximized=!1,this.easterEggClicked=0,this.otherAgentActive$=new ct(""),this.expandOptionsEvent=!1,this.laguageChooserEvent=!1,this.fullMode=!1,this.msgLimitExceeded=!1,this.activeLanguageFlag$=this.translateService.onLangChange.pipe(Go({lang:this.translateService.currentLang}),Un(l=>l.lang)),this.hasGDRP$=this.chatService.hasGDRP$,this.clientGDPRLink$=this.chatService.clientGDPRLink$,this.hasLLMDisclaimer$=this.chatService.hasLLMDisclaimer$,this.showTextInputBox$=ui([this.chatService.clientId$,this.chatService.subPropertyParentId$,this.chatService.liveChatOnlyMode$,this.chatService.liveChatSettings$]).pipe(Un(([l,c,u,d])=>u?!(!d||!d.liveChatAvailable):!(c&&c===l)))}ngOnInit(){const r=window.location.hostname;this.isPreview=!!(r.includes("widget-guestchat.web.app")||r.includes("localhost")||r.includes("widget-guestchat")),this.resellerSub=this.resellersService.activeReseller$.subscribe(i=>{this.activeReseller=i}),this.messagesSub=ui([this.chatService.messages$,this.chatService.canPostReply$,this.popupService.showChatBox]).subscribe(([i,o,s])=>{const a=i.length;if(s)if(a>0){const c=i[a-1];if(!c.reply)return void(this.messages=i.slice());var l;if(i.forEach(u=>{"tooManyMessages"!==u.eventName||(this.msgLimitExceeded=!0)}),c.roomCategoriesObj&&Object.keys(null==c?void 0:c.roomCategoriesObj).length>0&&(this.forceOpenSecondaryBar=!0),o)return this.messages=i.slice(),void((null===(l=c.relatedIntents)||void 0===l?void 0:l.length)>0?(this.relatedIntents=c.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=>{if(i)if(this.botSettings=i,this.backgroundSuccess={"background-color":i.backgroundColors[0]},i.textColor&&(this.textColor=i.textColor),this.translationsActive=this.chatService.translationsActive,this.messages&&0!==this.messages.length)this.chatService.showStructuredInput$.next(null),this.chatService.forceSubmissionBeforeChat$.next(!1);else if(this.botSettings.showStructuredInput&&this.botSettings.forceSubmissionBeforeChat&&this.botSettings.structuredInputForm&&this.botSettings.structuredInputForm.inputs&&this.botSettings.structuredInputForm.inputs.length>0){const o=ge(ge({},this.botSettings.structuredInputForm),{},{structuredInputFormText:this.botSettings.structuredInputFormText?this.botSettings.structuredInputFormText:null,structuredInputFormTextTranslations:this.botSettings.structuredInputFormTextTranslations?this.botSettings.structuredInputFormTextTranslations:null});this.chatService.showStructuredInput$.next(o),this.chatService.forceSubmissionBeforeChat$.next(!0)}else this.chatService.showStructuredInput$.next(null),this.chatService.forceSubmissionBeforeChat$.next(!1)}),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=this.chatService.otherLanguages$.subscribe(i=>{this.languagesDD=[...i.map(o=>{switch(o){case"en":return{label:"English",value:"en"};case"af":return{label:"Afrikaans",value:"af"};case"nl":return{label:"Dutch",value:"nl"};case"fr":return{label:"French",value:"fr"};case"de":return{label:"German",value:"de"};case"pt":return{label:"Portuguese",value:"pt"};case"es":return{label:"Spanish",value:"es"};case"it":return{label:"Italian",value:"it"};case"el":return{label:"Greek",value:"el"};case"tl":return{label:"Filipino (Tagalog)",value:"tl"};case"zh":return{label:"Chinese Mandarin",value:"zh"};case"xh":return{label:"Xhosa",value:"xh"};default:return{label:o,value:o}}})]}),this.fullModeSub=this.chatService.fullMode$.subscribe(i=>{this.fullMode=i})}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(r){if("ArrowUp"===r.key)this.inputText=this.lastInputText;else if("Enter"===r.key)this.onSendText();else{const i=this.chatService.getClientId;("3U7FhXtxoR1LhbaBw4OH"===i||"E78oLuo56gxY4uvzUF8u"===i||"BA9aPj5PNFblo2NOFbFq"===i||"Rlz2M5RbtpEmFB2b6VWS"===i||"izDI30AOtin5dneyfL4Y"===i)&&"Space"===r.code&&(" "!==this.inputText[this.inputText.length-1]&&(this.inputText+=" "),r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation()),this.chatService.userIsTyping(!!(this.inputText&&this.inputText.length>0))}}onMouseLeave(){this.chatService.userIsTyping(!1)}onSendText(){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(r=100){try{setTimeout(()=>{this.scrollToHere&&this.scrollToHere.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"})},r)}catch(i){console.log("")}}onExpandOptions(){this.chatOptionsOpen||(this.expandOptionsEvent=!0),this.chatOptionsOpen=!this.chatOptionsOpen}onExpandLanguages(){this.languageOptionsOpen||(this.laguageChooserEvent=!0),this.languageOptionsOpen=!this.languageOptionsOpen}onToggleMaximize(){this.maximized=!this.maximized}onFocusMessage(r){r.reply&&r.relatedIntents&&r.relatedIntents.length>0?(this.relatedIntents=r.relatedIntents,this.haveRelatedIntents=!0):(this.relatedIntents=[],this.haveRelatedIntents=!1)}onResetChat(){const r=this.chatService.getClientAndSession().clientId,i=this.chatService.generateNewChatId(r);this.msgLimitExceeded&&(this.msgLimitExceeded=!1),this.chatService.initServer(r,i,!0,this.isPreview),this.messages=[],this.chatService.showButton$.next(!1)}onNewActionAreaHeight(r){r!==this.quickActionsHeight&&(this.quickActionsHeight=r)}onResized(r){this.popupHeight!==r.newRect.height&&(this.popupHeight=r.newRect.height)}get columnContainerHeight(){var r,i;return this.msgLimitExceeded?this.popupHeight-(null!==(r=this.activeReseller)&&void 0!==r&&r.showPoweredByOnWidget?20:0)-76+"px":this.popupHeight-(null!==(i=this.activeReseller)&&void 0!==i&&i.showPoweredByOnWidget?20:0)-76-50-this.quickActionsHeight+"px"}get inputContainerHeight(){var r;return 50+this.quickActionsHeight+(null!==(r=this.activeReseller)&&void 0!==r&&r.showPoweredByOnWidget?20:0)+"px"}onSelectLanguage(r){this.chatService.changeLanguage(r),this.languageOptionsOpen=!1,window.sessionStorage.setItem("selectedLanguage",r)}onEasterEgg(){if(this.easterEggClicked++,this.easterEggClicked%4==0){const r=this.chatService.cycleResponseIntelligence();this.otherAgentActive$.next(r)}}ngOnDestroy(){this.messagesSub.unsubscribe(),this.showthisSub.unsubscribe(),this.botSettingsSub.unsubscribe(),this.whosTalkingSub.unsubscribe(),this.showStructuredInputSub.unsubscribe(),this.languagesSub.unsubscribe(),this.fullModeSub.unsubscribe(),this.resellerSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Qn),te(Il),te(Ii),te(qr),te(P7))},t.\u0275cmp=Bt({type:t,selectors:[["gc-chat-area"]],viewQuery:function(r,i){if(1&r&&(ko(cIe,5),ko(uIe,5)),2&r){let o;Vi(o=Bi())&&(i.scrollToHere=o.first),Vi(o=Bi())&&(i.myInputField=o.first)}},hostBindings:function(r,i){1&r&&fe("click",function(s){return i.onClickedOutside(s)},0,Ba)},decls:30,vars:38,consts:[[1,"gc-main-container",3,"ngClass","resized","mouseleave"],[1,"gc-chat-window",3,"ngStyle"],[1,"gc-chat-heading"],[1,"chatting-with"],["class","available-operators",3,"click",4,"ngIf"],[1,"chat-name",3,"ngStyle"],[1,"gc-title"],[1,"operations"],[1,"gc-ops-icon",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 128 512"],["d","M64 208c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zM16 104c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48zm0 304c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48z",3,"ngStyle"],["class","gc-ops-icon",3,"click",4,"ngIf"],["id","chatOptions",4,"ngIf"],["class","extra-input",4,"ngIf"],["class","extra-notification",4,"ngIf"],[1,"column-container",3,"ngClass"],[1,"chat-container",3,"ngClass"],["scrollContainer",""],[3,"messages","focusMessage","scrollNow"],[2,"height","1px"],["scrollToHere",""],[1,"gc-gdrp"],[4,"ngIf"],["class","gc-input-container",3,"ngClass","ngStyle",4,"ngIf"],[1,"available-operators",3,"click"],["alt","",3,"src"],["version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512","style","width: 13px; margin-left: 5px;",0,"xml","space","preserve",4,"ngIf"],["version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512","style","width: 16px",0,"xml","space","preserve",4,"ngIf"],["version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512",0,"xml","space","preserve",2,"width","13px","margin-left","5px"],["d","M369.8,56.9h85.3v85.3c0,15.7,12.7,28.4,28.4,28.4s28.4-12.7,28.4-28.4V28.4c0-7.5-3-14.8-8.3-20.1S491,0,483.6,0H369.8\n        c-15.7,0-28.4,12.7-28.4,28.4C341.3,44.2,354.1,56.9,369.8,56.9z",3,"ngStyle"],["d","M333,219.2L503.7,48.6c11.1-11.1,11.1-29.1,0-40.2s-29.1-11.1-40.2,0L292.8,179c-11.1,11.1-11.1,29.1,0,40.2\n        C303.9,230.3,321.9,230.3,333,219.2",3,"ngStyle"],["d","M142.2,455.1H56.9v-85.3c0-15.7-12.7-28.4-28.4-28.4S0,354.1,0,369.8v113.8c0,7.5,3,14.8,8.3,20.1\n        C13.6,509,21,512,28.4,512h113.8c15.7,0,28.4-12.7,28.4-28.4C170.7,467.8,157.9,455.1,142.2,455.1z",3,"ngStyle"],["d","M48.6,503.7L219.2,333c11.1-11.1,11.1-29.1,0-40.2c-11.1-11.1-29.1-11.1-40.2,0L8.3,463.4c-11.1,11.1-11.1,29.1,0,40.2\n        C19.4,514.8,37.4,514.8,48.6,503.7",3,"ngStyle"],["d","M369.8,512h113.8c7.5,0,14.8-3,20.1-8.3c5.3-5.3,8.3-12.6,8.3-20.1V369.8c0-15.7-12.7-28.4-28.4-28.4s-28.4,12.7-28.4,28.4\n        v85.3h-85.3c-15.7,0-28.4,12.7-28.4,28.4C341.3,499.3,354.1,512,369.8,512z",3,"ngStyle"],["d","M292.8,333l170.7,170.7c11.1,11.1,29.1,11.1,40.2,0c11.1-11.1,11.1-29.1,0-40.2L333,292.8c-11.1-11.1-29.1-11.1-40.2,0\n        C281.7,303.9,281.7,321.9,292.8,333",3,"ngStyle"],["d","M142.2,0H28.4C21,0,13.6,3,8.3,8.3C3,13.6,0,21,0,28.4v113.8c0,15.7,12.7,28.4,28.4,28.4s28.4-12.7,28.4-28.4V56.9h85.3\n        c15.7,0,28.4-12.7,28.4-28.4C170.7,12.7,157.9,0,142.2,0z",3,"ngStyle"],["d","M8.3,48.6L179,219.2c11.1,11.1,29.1,11.1,40.2,0s11.1-29.1,0-40.2L48.6,8.3C37.4-2.8,19.4-2.8,8.3,8.3\n        C-2.8,19.4-2.8,37.4,8.3,48.6",3,"ngStyle"],["version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 512 512",0,"xml","space","preserve",2,"width","16px"],["d","M28.9,0L0,28.9l146.6,146.6h-112v40.3h181.1V34.6h-40.3v112L28.9,0z M483.1,0L336.5,146.6v-112h-40.3v181.1h181.1v-40.3\n        h-112L512,28.9L483.1,0z M34.6,296.3v40.3h112L0,483.1L28.9,512l146.6-146.6v112h40.3V296.3H34.6z M296.3,296.3v181.1h40.3v-112\n        L483.1,512l28.9-28.9L365.4,336.5h112v-40.3H296.3z",3,"ngStyle"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512"],["d","M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z",3,"ngStyle"],["id","chatOptions"],[3,"click"],[1,"extra-input"],[1,"extra-notification"],["target","_blank",3,"href"],[1,"gc-input-container",3,"ngClass","ngStyle"],[3,"related-intents","forceOpen","newActionAreaHeight","scrollNow"],["class","gc-entry-container",4,"ngIf"],["class","entry-container blank",4,"ngIf"],["class","reseller-powered-by-message",4,"ngIf"],[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"],["languageChooser",""],[3,"click",4,"ngFor","ngForOf"],[1,"entry-container","blank"],[1,"reseller-powered-by-message"]],template:function(r,i){1&r&&(A(0,"div",0),fe("resized",function(s){return i.onResized(s)})("mouseleave",function(){return i.onMouseLeave()}),A(1,"div",1)(2,"div",2)(3,"div",3),z(4,dIe,2,1,"div",4),A(5,"div",5)(6,"div",6),ce(7),M()()(),A(8,"div",7)(9,"div",8),fe("click",function(){return i.onExpandOptions()}),Ie(),A(10,"svg",9),ue(11,"path",10),M()(),z(12,pIe,3,2,"div",11),z(13,gIe,3,3,"div",11),z(14,mIe,5,3,"div",12),M()(),z(15,_Ie,2,0,"div",13),z(16,vIe,3,3,"div",14),ye(17,"async"),st(),A(18,"div",15)(19,"div",16,17)(21,"app-messages-display",18),fe("focusMessage",function(s){return i.onFocusMessage(s)})("scrollNow",function(s){return i.onScrollToBottom(s)}),M(),ue(22,"div",19,20),M(),A(24,"div",21),z(25,yIe,7,9,"div",22),ye(26,"async"),z(27,bIe,3,3,"div",22),ye(28,"async"),M()(),z(29,PIe,7,15,"div",23),M()()),2&r&&(T("ngClass",Ga(25,DIe,"open"==i.state,"left"==i.botSettings.screenPosition,i.maximized,i.fullMode)),b(1),T("ngStyle",i.backgroundSuccess),b(3),T("ngIf",i.whosTalking.title),b(1),T("ngStyle",$e(30,kIe,i.textColor)),b(2),Ge(" ",i.whosTalking.title," "),b(4),T("ngStyle",$e(32,ho,i.textColor)),b(1),T("ngIf",!i.fullMode),b(1),T("ngIf",!i.fullMode),b(1),T("ngIf",i.chatOptionsOpen),b(1),T("ngIf",i.extraInputOpen),b(1),T("ngIf",""!==Ce(17,19,i.otherAgentActive$)),b(2),Xn("height",i.columnContainerHeight),T("ngClass",$e(34,P$,i.extraInputOpen)),b(1),T("ngClass",$e(36,MIe,i.extraInputOpen)),b(2),T("messages",i.messages),b(4),T("ngIf",0===i.messages.length&&Ce(26,21,i.hasGDRP$)),b(2),T("ngIf",Ce(28,23,i.hasLLMDisclaimer$)),b(2),T("ngIf",!i.msgLimitExceeded))},dependencies:[yi,oi,Wn,fr,Uu,Ey,Nh,m1e,A1e,lIe,JB,js,bw,uo],styles:['@import"https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap";.gc-main-container{height:75vh;max-width:375px;z-index:100014;position:fixed;bottom:15px;right:15px;width:calc(100vw - 50px);border-radius:16px;box-shadow:0 0 10px rgba(0,0,0,.3);transform:translateY(calc(100% + 55px));text-align:left;display:none;box-sizing:content-box}.gc-main-container.open{transform:translateY(0);display:block}.gc-main-container.left{left:15px}.gc-main-container.maximized{max-width:none;height:95vh}.gc-main-container.fullMode{width:100%;border-radius:0;height:calc(100% - 10px);position:static;max-width:none}.gc-main-container.fullMode .gc-chat-window,.gc-main-container.fullMode .gc-input-container{border-radius:0!important}.gc-main-container .gc-chat-window{font-family:Roboto,sans-serif;height:100%;border-radius:16px;position:relative;overflow-y:hidden;box-sizing:content-box;letter-spacing:0!important}.gc-main-container .gc-chat-window .gc-chat-heading{position:absolute;width:100%;color:#fff;margin-left:0;padding:0;height:76px;vertical-align:super;font-size:14px;white-space:nowrap;display:flex;justify-content:space-between;box-sizing:content-box}.gc-main-container .gc-chat-window .gc-chat-heading .chatting-with{margin-left:8px;display:inline-block;vertical-align:top;overflow-x:hidden;overflow-y:hidden;width:calc(100% - 76px);box-sizing:content-box}.gc-main-container .gc-chat-window .gc-chat-heading .chatting-with .available-operators{display:inline-block;height:76px;width:54px}.gc-main-container .gc-chat-window .gc-chat-heading .chatting-with .available-operators img{margin:13px 0;width:50px;height:50px;border-radius:50%}.gc-main-container .gc-chat-window .gc-chat-heading .chatting-with .chat-name{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;vertical-align:top;width:calc(100% - 56px);box-sizing:content-box;height:76px}.gc-main-container .gc-chat-window .gc-chat-heading .chatting-with .chat-name .gc-title{width:100%;margin:auto;text-align:center;white-space:pre-line;font-size:16px;line-height:20px;font-weight:700}.gc-main-container .gc-chat-window .gc-chat-heading .operations{display:inline-block;padding:0 10px;width:80px;box-sizing:content-box}.gc-main-container .gc-chat-window .gc-chat-heading .operations .gc-ops-icon{display:inline-block;vertical-align:top;width:26px;padding:26px 0;cursor:pointer}.gc-main-container .gc-chat-window .gc-chat-heading .operations .gc-ops-icon svg{width:27px;height:22px}.gc-main-container .gc-chat-window .gc-chat-heading .operations #chatOptions{position:absolute;right:50px;top:55px;box-shadow:0 0 5px #d3d3d3;background-color:#fff;color:#000;font-size:14px;padding:0 4px;line-height:40px;z-index:100004;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;background-color:#edf1f4;bottom:0;width:100%;font-size:10px;text-align:center;color:#000}.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:30px;line-height:30px;text-align:center;width:30px;padding:2px;display:inline-block;border-radius:50%;margin-top:6px;margin-left:2px;background-color:#e4e4e7;font-size:12px;cursor:pointer}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-select img{width:25px;height:25px;margin:auto;object-fit:cover;border-radius:50%;display:block}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items input{font-family:Roboto,sans-serif;width:calc(100% - 16px)!important;line-height:30px;margin-left:10px;font-size:14px;background-color:rgba(255,255,255,.9);height:40px;border:none;padding:1px 2px;vertical-align:top}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items input.has-languages-select{width:calc(100% - 48px)!important;margin-left:2px}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items input:focus{outline:none}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-options{position:absolute;bottom:50px;box-shadow:0 0 5px #d3d3d3;background-color:#fff;color:#000;font-size:14px;line-height:40px;z-index:100002;box-sizing:content-box}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-options li{list-style-type:none;padding:0 6px;border-radius:4px;cursor:pointer;height:36px}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-options li img{width:30px;height:30px;object-fit:contain}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-options li:hover{background-color:#d3d3d3}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .gc-left-items .gc-language-options ul{padding:0;margin:0}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .icon-container{display:flex;width:40px;height:40px;border-radius:50%;justify-content:center;margin:auto;cursor:pointer}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .icon-container svg{width:18px;height:18px;align-self:center}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container .icon-container svg path{fill:#6e6e6e}.gc-main-container .gc-chat-window .gc-input-container .gc-entry-container.blank{background-color:#edf1f4}.reseller-powered-by-message{width:100%;text-align:center;font-size:10px;line-height:19px}@media screen and (max-width: 400px){.main-container{position:fixed;width:100%;height:100%;top:0;left:0!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}),e})();function RIe(t,e){1&t&&ue(0,"img",17),2&t&&T("src",x(2).$implicit.path,Nn)}function NIe(t,e){if(1&t&&(A(0,"div",18)(1,"div"),ce(2),M(),A(3,"div",19),ue(4,"div",20),M()()),2&t){const n=x(2).$implicit;b(2),Ge(" ",n.translatedTitle," "),b(2),T("innerHTML",n.translatedDescription,Pd)}}const D$=function(t){return{"background-color":t}};function LIe(t,e){if(1&t&&(A(0,"div",21),Ie(),A(1,"svg",22),ue(2,"path",23),M()()),2&t){const n=x(5);T("ngStyle",$e(1,D$,n.mainColor))}}function FIe(t,e){if(1&t&&(A(0,"div",24),Ie(),A(1,"svg",25),ue(2,"path",26),M()()),2&t){const n=x(5);T("ngStyle",$e(1,D$,n.mainColor))}}function VIe(t,e){if(1&t){const n=Me();z(0,RIe,1,1,"img",11),z(1,NIe,5,2,"div",12),A(2,"div",13),fe("click",function(i){return J(n),ee(x(4).onSlidePrev(i))}),z(3,LIe,3,3,"div",14),M(),A(4,"div",15),fe("click",function(i){return J(n),ee(x(4).onSlideNext(i))}),z(5,FIe,3,3,"div",16),M()}if(2&t){const n=x().$implicit,r=x(3);T("ngIf",n.path),b(1),T("ngIf",n.translatedTitle),b(2),T("ngIf",r.floatDisplay.imageUrls.length>1),b(2),T("ngIf",r.floatDisplay.imageUrls.length>1)}}function BIe(t,e){1&t&&z(0,VIe,6,4,"ng-template",10)}function $Ie(t,e){if(1&t){const n=Me();Ie(),st(),A(0,"swiper",8),fe("swiper",function(i){return J(n),ee(x(2).onSwiperLoaded(i))}),z(1,BIe,1,0,null,9),M()}if(2&t){const n=x(2);T("config",n.config),b(1),T("ngForOf",n.floatDisplay.imageUrls)}}function zIe(t,e){if(1&t&&(Ie(),st(),A(0,"div"),ue(1,"img",17),M()),2&t){const n=x(2);b(1),T("src",n.floatDisplay.imageUrls[0].path,Nn)}}function UIe(t,e){if(1&t){const n=Me();A(0,"div",1),fe("click",function(){return J(n),ee(x().onClose())}),A(1,"div",2)(2,"div",3),fe("click",function(){return J(n),ee(x().onClose())}),Ie(),A(3,"svg",4),ue(4,"path",5),M()(),z(5,$Ie,2,2,"swiper",6),z(6,zIe,2,1,"div",7),M()()}if(2&t){const n=x();b(5),T("ngIf",!n.onlyOneMode),b(1),T("ngIf",n.onlyOneMode)}}Sa.use([h$]);let HIe=(()=>{var t;class e{constructor(r,i,o){this.floatingService=r,this.debugService=i,this.chatService=o,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(r=>{this.debugService.logMode&&console.log(r),this.floatDisplay=r,r.show&&(this.activeIndex=r.startingIndex?r.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(r=>{r&&(this.mainColor=r.backgroundColors[0])})}onSwiperLoaded(r){this.swiper=r}onSlideNext(r){this.swiper.slideNext(),r.stopPropagation()}onSlidePrev(r){this.swiper.slidePrev(),r.stopPropagation()}onClose(){this.floatingService.showFloating$.next({show:!1})}ngOnDestroy(){this.floatingSub&&this.floatingSub.unsubscribe()}}return(t=e).\u0275fac=function(r){return new(r||t)(te($y),te(Ii),te(Qn))},t.\u0275cmp=Bt({type:t,selectors:[["app-floating-display"]],decls:1,vars:1,consts:[["id","gc_floating",3,"click",4,"ngIf"],["id","gc_floating",3,"click"],["id","gc_floating_container"],["id","gc_close",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512"],["d","M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"],[3,"config","swiper",4,"ngIf"],[4,"ngIf"],[3,"config","swiper"],[4,"ngFor","ngForOf"],["swiperSlide",""],["class","image-swiper","alt","",3,"src",4,"ngIf"],["class","title",4,"ngIf"],[1,"gc-click-area","gc-left",3,"click"],["class","gc_swiper-button-prev",3,"ngStyle",4,"ngIf"],[1,"gc-click-area","gc-right",3,"click"],["class","gc_swiper-button-next",3,"ngStyle",4,"ngIf"],["alt","",1,"image-swiper",3,"src"],[1,"title"],[1,"description"],[3,"innerHTML"],[1,"gc_swiper-button-prev",3,"ngStyle"],["xmlns","http://www.w3.org/2000/svg","fill","white","viewBox","0 0 224 512"],["d","M224 367.952V144.057c0-42.638-51.731-64.151-81.941-33.941l-112 111.943c-18.745 18.745-18.746 49.137 0 67.882l112 111.952C172.208 432.042 224 410.675 224 367.952zM64 256l112-112v224L64 256z"],[1,"gc_swiper-button-next",3,"ngStyle"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 70 70",2,"margin","3px 0 0 -1px"],["fill","white","d","M 20 0 L 50 25 L 20 50 Z"]],template:function(r,i){1&r&&z(0,UIe,7,2,"div",0),2&r&&T("ngIf",i.floatDisplay.show)},dependencies:[oi,Wn,fr,Vh,qu],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:0;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:0;left:0}#gc_floating #gc_floating_container{position:relative;width:90%;max-width:800px}#gc_floating #gc_floating_container #gc_close{position:absolute;right:0;top:0;height:40px;width:40px;cursor:pointer}#gc_floating #gc_floating_container #gc_close svg{width:30px;height:30px;margin:auto}#gc_floating #gc_floating_container #gc_close svg path{fill:#fff}#gc_floating #gc_floating_container img{margin-top:30px;width:100%}#gc_floating #gc_floating_container .swiper-slide-duplicate{visibility:hidden!important}#gc_floating #gc_floating_container .swiper-slide-active{visibility:visible!important}#gc_floating #gc_floating_container .swiper-slide{cursor:pointer}#gc_floating #gc_floating_container .swiper-slide:not(.swiper-slide-visible){visibility:hidden!important}#gc_floating #gc_floating_container .swiper-slide .image-swiper{width:100%;object-fit:contain}#gc_floating #gc_floating_container .swiper-slide .title{background-color:#fff;padding:4px;position:absolute;bottom:5px;left:9px;width:calc(100% - 26px);text-align:center;font-weight:700;font-family:Roboto,sans-serif}#gc_floating #gc_floating_container .swiper-slide .title .description{font-weight:400}#gc_floating #gc_floating_container .swiper-slide .gc-click-area{position:absolute;height:calc(100% - 30px);width:50px;top:30px}#gc_floating #gc_floating_container .swiper-slide .gc-click-area.gc-right{right:0}#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}),e})();function jIe(t,e){1&t&&ue(0,"gc-chat-area")}let GIe=(()=>{var t;class e{onClickedOutside(r){if(this.chatService.bookNowButtonSettings){var i;const o=this.getXPath(r.target);r.target.localName===this.chatService.bookNowButtonSettings.type&&(r.target.id===this.chatService.bookNowButtonSettings.id||(null===(i=r.target)||void 0===i||null===(i=i.className)||void 0===i?void 0:i.indexOf(this.chatService.bookNowButtonSettings.className))>-1||o===this.chatService.bookNowButtonSettings.id)&&(this.debugService.logMode&&console.log("Booking clicked"),this.chatService.ownBooknowClicked())}this.debugService.logMode&&(console.log(),console.log("Item clicked - Element:",r.target.localName),console.log("Item clicked - Element Id",r.target.id,this.getXPath(r.target)),console.log("Item clicked - Element Class:",r.target.className))}set func(r){r&&(this.key=r,this.loadData())}getXPath(r){if(r&&r.nodeType===Node.ELEMENT_NODE){const i=this.getElementIndex(r),o=this.getXPath(r.parentNode),s=r.tagName.toLowerCase();return"".concat(o,"/").concat(s,"[").concat(i+1,"]").replace("/html[1]/body[1]","")}return r&&r.nodeType===Node.DOCUMENT_NODE?"/html[1]":""}getElementIndex(r){if(!r.parentNode)return 0;let i=0,o=r.previousElementSibling;for(;o;)i++,o=o.previousElementSibling;return i}constructor(r,i,o){this.popupService=r,this.chatService=i,this.debugService=o,this.isPreview=!1}ngOnInit(){const r=window.location.search;if(r){const i=new URLSearchParams(r);if(i){null==i||i.forEach((s,a)=>{window.sessionStorage.setItem(a,s),this.debugService.logMode&&console.log("Query param saved: ".concat(a,"=").concat(s))});const o=i.get("cId");if(o){this.key=o,window.sessionStorage.removeItem("clientId");const s=i.get("sId");s&&window.localStorage.setItem("chatId",s),window.sessionStorage.setItem("iceBreakerOpened","true"),this.chatService.hasOpened$.next(!0),window.sessionStorage.setItem("opened","true"),this.chatService.fullMode$.next(!0),this.loadData()}}}}loadData(){const r=window.location.hostname;this.isPreview=!!(r.includes("widget-guestchat.web.app")||r.includes("localhost")||r.includes("widget-guestchat"));const i=window.localStorage.getItem("chatId"),o=window.localStorage.getItem("chatTime");let a,s=window.sessionStorage.getItem("clientId");this.key&&this.key!==s&&(window.sessionStorage.setItem("clientId",this.key),s=this.key),o&&(a=this.differenceDays(new Date(o))),this.sessionId=i&&0===a?i:this.chatService.generateNewChatId(this.key),s?(this.chatService.initServer(s,this.sessionId,!1,this.isPreview),this.chatService.alsoGetMasterMultiProprty(this.key)):this.chatService.initServer(this.key,this.sessionId,!1,this.isPreview)}differenceDays(r){const o=(new Date).getTime(),s=r.getTime();return Math.round((o-s)/864e5)}}return(t=e).\u0275fac=function(r){return new(r||t)(te(Il),te(Qn),te(Ii))},t.\u0275cmp=Bt({type:t,selectors:[["chat-widget"]],hostBindings:function(r,i){1&r&&fe("click",function(s){return i.onClickedOutside(s)},0,Ba)},inputs:{func:["key","func"]},decls:4,vars:3,consts:[[4,"ngIf"]],template:function(r,i){1&r&&(ue(0,"app-floating-display")(1,"gc-start-button"),z(2,jIe,1,0,"gc-chat-area",0),ye(3,"async")),2&r&&(b(2),T("ngIf",Ce(3,1,i.popupService.showChatBox)))},dependencies:[Wn,Xve,OIe,HIe,js],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:0!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:0;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 _ngcontent-%COMP%_iceBreakerAnimation{0%{transform:rotateX(0)}50%{transform:rotateX(90deg)}to{transform:rotateX(0)}}']}),e})();var jy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},WIe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,YIe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,KIe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Bh(t){return t?parseInt(t):1}function xx(t){return t&&parseFloat(t.replace(",","."))||0}var n2e=[31,null,31,30,31,30,31,31,30,31,30,31];function k$(t){return t%400==0||t%4==0&&t%100!=0}class l2e{constructor(e){this.afs=e}getTranslation(e){if("fallback"===e)return yr({chatNow:"Chat now"});const n=window.localStorage.getItem("gc-langCacheDate-"+e);if(n&&ay(function qIe(t,e){var n;Tt(1,arguments);var r=At(null!==(n=null==e?void 0:e.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var o,i=function QIe(t){var r,e={},n=t.split(jy.dateTimeDelimiter);if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],jy.timeZoneDelimiter.test(e.date)&&(e.date=t.split(jy.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){var i=jy.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}(t);if(i.date){var s=function XIe(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:t.slice((r[1]||r[2]).length)}}(i.date,r);o=function ZIe(t,e){if(null===e)return new Date(NaN);var n=t.match(WIe);if(!n)return new Date(NaN);var r=!!n[4],i=Bh(n[1]),o=Bh(n[2])-1,s=Bh(n[3]),a=Bh(n[4]),l=Bh(n[5])-1;if(r)return function o2e(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}(0,a,l)?function t2e(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var o=7*(e-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}(e,a,l):new Date(NaN);var c=new Date(0);return function r2e(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(n2e[e]||(k$(t)?29:28))}(e,o,s)&&function i2e(t,e){return e>=1&&e<=(k$(t)?366:365)}(e,i)?(c.setUTCFullYear(e,o,Math.max(i,s)),c):new Date(NaN)}(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,a=o.getTime(),l=0;if(i.time&&(l=function JIe(t){var e=t.match(YIe);if(!e)return NaN;var n=xx(e[1]),r=xx(e[2]),i=xx(e[3]);return function s2e(t,e,n){return 24===t?0===e&&0===n:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}(n,r,i)?n*T2+r*S2+1e3*i:NaN}(i.time),isNaN(l)))return new Date(NaN);if(!i.timezone){var u=new Date(a+l),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return c=function e2e(t){if("Z"===t)return 0;var e=t.match(KIe);if(!e)return 0;var n="+"===e[1]?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return function a2e(t,e){return e>=0&&e<=59}(0,i)?n*(r*T2+i*S2):NaN}(i.timezone),isNaN(c)?new Date(NaN):new Date(a+l+c)}(JSON.parse(n)),VB(new Date,{days:1}))){const r=window.localStorage.getItem("gc-cachedLanguages-"+e);if(r)return yr(JSON.parse(r))}return d9(Gr(this.afs,"TranslationsWidget/".concat(e))).pipe(Pf(r=>{r&&(window.localStorage.setItem("gc-cachedLanguages-"+e,JSON.stringify(r)),window.localStorage.setItem("gc-langCacheDate-"+e,JSON.stringify(new Date)))}))}}function c2e(t){return new l2e(t)}let u2e=(()=>{var t;class e{constructor(r){this.injector=r}ngDoBootstrap(){if(!customElements.get("chat-widget")){const r=function Qde(t,e){const r=function Hde(t,e){return e.get(_c).resolveComponentFactory(t).inputs}(t,e.injector),i=e.strategyFactory||new Wde(t,e.injector),o=function Ude(t){const e={};return t.forEach(({propName:n,templateName:r,transform:i})=>{e[function Fde(t){return t.replace(/[A-Z]/g,e=>"-".concat(e.toLowerCase()))}(r)]=[n,i]}),e}(r);class s extends Kde{get ngElementStrategy(){if(!this._ngElementStrategy){const l=this._ngElementStrategy=i.create(this.injector||e.injector);r.forEach(({propName:c,transform:u})=>{if(!this.hasOwnProperty(c))return;const d=this[c];delete this[c],l.setInputValue(c,d,u)})}return this._ngElementStrategy}constructor(l){super(),this.injector=l}attributeChangedCallback(l,c,u,d){const[h,p]=o[l];this.ngElementStrategy.setInputValue(h,u,p)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{const c=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(c)})}}return s.observedAttributes=Object.keys(o),r.forEach(({propName:a,transform:l})=>{Object.defineProperty(s.prototype,a,{get(){return this.ngElementStrategy.getInputValue(a)},set(c){this.ngElementStrategy.setInputValue(a,c,l)},configurable:!0,enumerable:!0})}),s}(GIe,{injector:this.injector});customElements.define("chat-widget",r)}}}return(t=e).\u0275fac=function(r){return new(r||t)(Te(Er))},t.\u0275mod=jn({type:t}),t.\u0275inj=Rn({imports:[M4,jie(()=>Gie(B4_firebase)),Mde(()=>Rde()),Fee,Vne,Gye,Zbe,pEe,e1e,Pve.forRoot({defaultLanguage:"fallback",loader:{provide:Dh,useFactory:c2e,deps:[Th]}})]}),e})();oee().bootstrapModule(u2e).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},846:function(Vl,Zu,Bl){var Qo;(function(){function Ki(g){"use strict";var I={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `\xab\xab\xab` and `\xbb\xbb\xbb` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===g)return JSON.parse(JSON.stringify(I));var S={};for(var H in I)I.hasOwnProperty(H)&&(S[H]=I[H].defaultValue);return S}var U={},B={},Qi={},ge=Ki(!0),jt="vanilla",Xo={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:Ki(!0),allOn:function a0(){"use strict";var g=Ki(!0),I={};for(var S in g)g.hasOwnProperty(S)&&(I[S]=!0);return I}()};function Ms(g,I){"use strict";var S=I?"Error in "+I+" extension->":"Error in unnamed extension",H={valid:!0,error:""};U.helper.isArray(g)||(g=[g]);for(var Q=0;Q<g.length;++Q){var X=S+" sub-extension "+Q+": ",Y=g[Q];if("object"!=typeof Y)return H.valid=!1,H.error=X+"must be an object, but "+typeof Y+" given",H;if(!U.helper.isString(Y.type))return H.valid=!1,H.error=X+'property "type" must be a string, but '+typeof Y.type+" given",H;var re=Y.type=Y.type.toLowerCase();if("language"===re&&(re=Y.type="lang"),"html"===re&&(re=Y.type="output"),"lang"!==re&&"output"!==re&&"listener"!==re)return H.valid=!1,H.error=X+"type "+re+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',H;if("listener"===re){if(U.helper.isUndefined(Y.listeners))return H.valid=!1,H.error=X+'. Extensions of type "listener" must have a property called "listeners"',H}else if(U.helper.isUndefined(Y.filter)&&U.helper.isUndefined(Y.regex))return H.valid=!1,H.error=X+re+' extensions must define either a "regex" property or a "filter" method',H;if(Y.listeners){if("object"!=typeof Y.listeners)return H.valid=!1,H.error=X+'"listeners" property must be an object but '+typeof Y.listeners+" given",H;for(var xe in Y.listeners)if(Y.listeners.hasOwnProperty(xe)&&"function"!=typeof Y.listeners[xe])return H.valid=!1,H.error=X+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+xe+" must be a function but "+typeof Y.listeners[xe]+" given",H}if(Y.filter){if("function"!=typeof Y.filter)return H.valid=!1,H.error=X+'"filter" must be a function, but '+typeof Y.filter+" given",H}else if(Y.regex){if(U.helper.isString(Y.regex)&&(Y.regex=new RegExp(Y.regex,"g")),!(Y.regex instanceof RegExp))return H.valid=!1,H.error=X+'"regex" property must either be a string or a RegExp object, but '+typeof Y.regex+" given",H;if(U.helper.isUndefined(Y.replace))return H.valid=!1,H.error=X+'"regex" extensions must implement a replace string or function',H}}return H}function Pa(g,I){"use strict";return"\xa8E"+I.charCodeAt(0)+"E"}U.helper={},U.extensions={},U.setOption=function(g,I){"use strict";return ge[g]=I,this},U.getOption=function(g){"use strict";return ge[g]},U.getOptions=function(){"use strict";return ge},U.resetOptions=function(){"use strict";ge=Ki(!0)},U.setFlavor=function(g){"use strict";if(!Xo.hasOwnProperty(g))throw Error(g+" flavor was not found");U.resetOptions();var I=Xo[g];for(var S in jt=g,I)I.hasOwnProperty(S)&&(ge[S]=I[S])},U.getFlavor=function(){"use strict";return jt},U.getFlavorOptions=function(g){"use strict";if(Xo.hasOwnProperty(g))return Xo[g]},U.getDefaultOptions=function(g){"use strict";return Ki(g)},U.subParser=function(g,I){"use strict";if(U.helper.isString(g)){if(!(typeof I<"u")){if(B.hasOwnProperty(g))return B[g];throw Error("SubParser named "+g+" not registered!")}B[g]=I}},U.extension=function(g,I){"use strict";if(!U.helper.isString(g))throw Error("Extension 'name' must be a string");if(g=U.helper.stdExtName(g),U.helper.isUndefined(I)){if(!Qi.hasOwnProperty(g))throw Error("Extension named "+g+" is not registered!");return Qi[g]}"function"==typeof I&&(I=I()),U.helper.isArray(I)||(I=[I]);var S=Ms(I,g);if(!S.valid)throw Error(S.error);Qi[g]=I},U.getAllExtensions=function(){"use strict";return Qi},U.removeExtension=function(g){"use strict";delete Qi[g]},U.resetExtensions=function(){"use strict";Qi={}},U.validateExtension=function(g){"use strict";var I=Ms(g,null);return!!I.valid||(console.warn(I.error),!1)},U.hasOwnProperty("helper")||(U.helper={}),U.helper.isString=function(g){"use strict";return"string"==typeof g||g instanceof String},U.helper.isFunction=function(g){"use strict";return g&&"[object Function]"==={}.toString.call(g)},U.helper.isArray=function(g){"use strict";return Array.isArray(g)},U.helper.isUndefined=function(g){"use strict";return typeof g>"u"},U.helper.forEach=function(g,I){"use strict";if(U.helper.isUndefined(g))throw new Error("obj param is required");if(U.helper.isUndefined(I))throw new Error("callback param is required");if(!U.helper.isFunction(I))throw new Error("callback param must be a function/closure");if("function"==typeof g.forEach)g.forEach(I);else if(U.helper.isArray(g))for(var S=0;S<g.length;S++)I(g[S],S,g);else{if("object"!=typeof g)throw new Error("obj does not seem to be an array or an iterable object");for(var H in g)g.hasOwnProperty(H)&&I(g[H],H,g)}},U.helper.stdExtName=function(g){"use strict";return g.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},U.helper.escapeCharactersCallback=Pa,U.helper.escapeCharacters=function(g,I,S){"use strict";var H="(["+I.replace(/([\[\]\\])/g,"\\$1")+"])";S&&(H="\\\\"+H);var Q=new RegExp(H,"g");return g.replace(Q,Pa)},U.helper.unescapeHTMLEntities=function(g){"use strict";return g.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var Qr=function(g,I,S,H){"use strict";var Ee,be,we,G,ve,Q=H||"",X=Q.indexOf("g")>-1,Y=new RegExp(I+"|"+S,"g"+Q.replace(/g/g,"")),re=new RegExp(I,Q.replace(/g/g,"")),xe=[];do{for(Ee=0;we=Y.exec(g);)if(re.test(we[0]))Ee++||(G=(be=Y.lastIndex)-we[0].length);else if(Ee&&! --Ee&&(xe.push({left:{start:G,end:be},match:{start:be,end:we.index},right:{start:we.index,end:ve=we.index+we[0].length},wholeMatch:{start:G,end:ve}}),!X))return xe}while(Ee&&(Y.lastIndex=be));return xe};U.helper.matchRecursiveRegExp=function(g,I,S,H){"use strict";for(var Q=Qr(g,I,S,H),X=[],Y=0;Y<Q.length;++Y)X.push([g.slice(Q[Y].wholeMatch.start,Q[Y].wholeMatch.end),g.slice(Q[Y].match.start,Q[Y].match.end),g.slice(Q[Y].left.start,Q[Y].left.end),g.slice(Q[Y].right.start,Q[Y].right.end)]);return X},U.helper.replaceRecursiveRegExp=function(g,I,S,H,Q){"use strict";if(!U.helper.isFunction(I)){var X=I;I=function(){return X}}var Y=Qr(g,S,H,Q),re=g,xe=Y.length;if(xe>0){var Ee=[];0!==Y[0].wholeMatch.start&&Ee.push(g.slice(0,Y[0].wholeMatch.start));for(var be=0;be<xe;++be)Ee.push(I(g.slice(Y[be].wholeMatch.start,Y[be].wholeMatch.end),g.slice(Y[be].match.start,Y[be].match.end),g.slice(Y[be].left.start,Y[be].left.end),g.slice(Y[be].right.start,Y[be].right.end))),be<xe-1&&Ee.push(g.slice(Y[be].wholeMatch.end,Y[be+1].wholeMatch.start));Y[xe-1].wholeMatch.end<g.length&&Ee.push(g.slice(Y[xe-1].wholeMatch.end)),re=Ee.join("")}return re},U.helper.regexIndexOf=function(g,I,S){"use strict";if(!U.helper.isString(g))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(I instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var H=g.substring(S||0).search(I);return H>=0?H+(S||0):H},U.helper.splitAtIndex=function(g,I){"use strict";if(!U.helper.isString(g))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[g.substring(0,I),g.substring(I)]},U.helper.encodeEmailAddress=function(g){"use strict";var I=[function(S){return"&#"+S.charCodeAt(0)+";"},function(S){return"&#x"+S.charCodeAt(0).toString(16)+";"},function(S){return S}];return g.replace(/./g,function(S){if("@"===S)S=I[Math.floor(2*Math.random())](S);else{var H=Math.random();S=H>.9?I[2](S):H>.45?I[1](S):I[0](S)}return S})},U.helper.padEnd=function(I,S,H){"use strict";return S>>=0,H=String(H||" "),I.length>S?String(I):((S-=I.length)>H.length&&(H+=H.repeat(S/H.length)),String(I)+H.slice(0,S))},typeof console>"u"&&(console={warn:function(g){"use strict";alert(g)},log:function(g){"use strict";alert(g)},error:function(g){"use strict";throw g}}),U.helper.regexes={asteriskDashAndColon:/([*_:~])/g},U.helper.emojis={"+1":"\u{1f44d}","-1":"\u{1f44e}",100:"\u{1f4af}",1234:"\u{1f522}","1st_place_medal":"\u{1f947}","2nd_place_medal":"\u{1f948}","3rd_place_medal":"\u{1f949}","8ball":"\u{1f3b1}",a:"\u{1f170}\ufe0f",ab:"\u{1f18e}",abc:"\u{1f524}",abcd:"\u{1f521}",accept:"\u{1f251}",aerial_tramway:"\u{1f6a1}",airplane:"\u2708\ufe0f",alarm_clock:"\u23f0",alembic:"\u2697\ufe0f",alien:"\u{1f47d}",ambulance:"\u{1f691}",amphora:"\u{1f3fa}",anchor:"\u2693\ufe0f",angel:"\u{1f47c}",anger:"\u{1f4a2}",angry:"\u{1f620}",anguished:"\u{1f627}",ant:"\u{1f41c}",apple:"\u{1f34e}",aquarius:"\u2652\ufe0f",aries:"\u2648\ufe0f",arrow_backward:"\u25c0\ufe0f",arrow_double_down:"\u23ec",arrow_double_up:"\u23eb",arrow_down:"\u2b07\ufe0f",arrow_down_small:"\u{1f53d}",arrow_forward:"\u25b6\ufe0f",arrow_heading_down:"\u2935\ufe0f",arrow_heading_up:"\u2934\ufe0f",arrow_left:"\u2b05\ufe0f",arrow_lower_left:"\u2199\ufe0f",arrow_lower_right:"\u2198\ufe0f",arrow_right:"\u27a1\ufe0f",arrow_right_hook:"\u21aa\ufe0f",arrow_up:"\u2b06\ufe0f",arrow_up_down:"\u2195\ufe0f",arrow_up_small:"\u{1f53c}",arrow_upper_left:"\u2196\ufe0f",arrow_upper_right:"\u2197\ufe0f",arrows_clockwise:"\u{1f503}",arrows_counterclockwise:"\u{1f504}",art:"\u{1f3a8}",articulated_lorry:"\u{1f69b}",artificial_satellite:"\u{1f6f0}",astonished:"\u{1f632}",athletic_shoe:"\u{1f45f}",atm:"\u{1f3e7}",atom_symbol:"\u269b\ufe0f",avocado:"\u{1f951}",b:"\u{1f171}\ufe0f",baby:"\u{1f476}",baby_bottle:"\u{1f37c}",baby_chick:"\u{1f424}",baby_symbol:"\u{1f6bc}",back:"\u{1f519}",bacon:"\u{1f953}",badminton:"\u{1f3f8}",baggage_claim:"\u{1f6c4}",baguette_bread:"\u{1f956}",balance_scale:"\u2696\ufe0f",balloon:"\u{1f388}",ballot_box:"\u{1f5f3}",ballot_box_with_check:"\u2611\ufe0f",bamboo:"\u{1f38d}",banana:"\u{1f34c}",bangbang:"\u203c\ufe0f",bank:"\u{1f3e6}",bar_chart:"\u{1f4ca}",barber:"\u{1f488}",baseball:"\u26be\ufe0f",basketball:"\u{1f3c0}",basketball_man:"\u26f9\ufe0f",basketball_woman:"\u26f9\ufe0f&zwj;\u2640\ufe0f",bat:"\u{1f987}",bath:"\u{1f6c0}",bathtub:"\u{1f6c1}",battery:"\u{1f50b}",beach_umbrella:"\u{1f3d6}",bear:"\u{1f43b}",bed:"\u{1f6cf}",bee:"\u{1f41d}",beer:"\u{1f37a}",beers:"\u{1f37b}",beetle:"\u{1f41e}",beginner:"\u{1f530}",bell:"\u{1f514}",bellhop_bell:"\u{1f6ce}",bento:"\u{1f371}",biking_man:"\u{1f6b4}",bike:"\u{1f6b2}",biking_woman:"\u{1f6b4}&zwj;\u2640\ufe0f",bikini:"\u{1f459}",biohazard:"\u2623\ufe0f",bird:"\u{1f426}",birthday:"\u{1f382}",black_circle:"\u26ab\ufe0f",black_flag:"\u{1f3f4}",black_heart:"\u{1f5a4}",black_joker:"\u{1f0cf}",black_large_square:"\u2b1b\ufe0f",black_medium_small_square:"\u25fe\ufe0f",black_medium_square:"\u25fc\ufe0f",black_nib:"\u2712\ufe0f",black_small_square:"\u25aa\ufe0f",black_square_button:"\u{1f532}",blonde_man:"\u{1f471}",blonde_woman:"\u{1f471}&zwj;\u2640\ufe0f",blossom:"\u{1f33c}",blowfish:"\u{1f421}",blue_book:"\u{1f4d8}",blue_car:"\u{1f699}",blue_heart:"\u{1f499}",blush:"\u{1f60a}",boar:"\u{1f417}",boat:"\u26f5\ufe0f",bomb:"\u{1f4a3}",book:"\u{1f4d6}",bookmark:"\u{1f516}",bookmark_tabs:"\u{1f4d1}",books:"\u{1f4da}",boom:"\u{1f4a5}",boot:"\u{1f462}",bouquet:"\u{1f490}",bowing_man:"\u{1f647}",bow_and_arrow:"\u{1f3f9}",bowing_woman:"\u{1f647}&zwj;\u2640\ufe0f",bowling:"\u{1f3b3}",boxing_glove:"\u{1f94a}",boy:"\u{1f466}",bread:"\u{1f35e}",bride_with_veil:"\u{1f470}",bridge_at_night:"\u{1f309}",briefcase:"\u{1f4bc}",broken_heart:"\u{1f494}",bug:"\u{1f41b}",building_construction:"\u{1f3d7}",bulb:"\u{1f4a1}",bullettrain_front:"\u{1f685}",bullettrain_side:"\u{1f684}",burrito:"\u{1f32f}",bus:"\u{1f68c}",business_suit_levitating:"\u{1f574}",busstop:"\u{1f68f}",bust_in_silhouette:"\u{1f464}",busts_in_silhouette:"\u{1f465}",butterfly:"\u{1f98b}",cactus:"\u{1f335}",cake:"\u{1f370}",calendar:"\u{1f4c6}",call_me_hand:"\u{1f919}",calling:"\u{1f4f2}",camel:"\u{1f42b}",camera:"\u{1f4f7}",camera_flash:"\u{1f4f8}",camping:"\u{1f3d5}",cancer:"\u264b\ufe0f",candle:"\u{1f56f}",candy:"\u{1f36c}",canoe:"\u{1f6f6}",capital_abcd:"\u{1f520}",capricorn:"\u2651\ufe0f",car:"\u{1f697}",card_file_box:"\u{1f5c3}",card_index:"\u{1f4c7}",card_index_dividers:"\u{1f5c2}",carousel_horse:"\u{1f3a0}",carrot:"\u{1f955}",cat:"\u{1f431}",cat2:"\u{1f408}",cd:"\u{1f4bf}",chains:"\u26d3",champagne:"\u{1f37e}",chart:"\u{1f4b9}",chart_with_downwards_trend:"\u{1f4c9}",chart_with_upwards_trend:"\u{1f4c8}",checkered_flag:"\u{1f3c1}",cheese:"\u{1f9c0}",cherries:"\u{1f352}",cherry_blossom:"\u{1f338}",chestnut:"\u{1f330}",chicken:"\u{1f414}",children_crossing:"\u{1f6b8}",chipmunk:"\u{1f43f}",chocolate_bar:"\u{1f36b}",christmas_tree:"\u{1f384}",church:"\u26ea\ufe0f",cinema:"\u{1f3a6}",circus_tent:"\u{1f3aa}",city_sunrise:"\u{1f307}",city_sunset:"\u{1f306}",cityscape:"\u{1f3d9}",cl:"\u{1f191}",clamp:"\u{1f5dc}",clap:"\u{1f44f}",clapper:"\u{1f3ac}",classical_building:"\u{1f3db}",clinking_glasses:"\u{1f942}",clipboard:"\u{1f4cb}",clock1:"\u{1f550}",clock10:"\u{1f559}",clock1030:"\u{1f565}",clock11:"\u{1f55a}",clock1130:"\u{1f566}",clock12:"\u{1f55b}",clock1230:"\u{1f567}",clock130:"\u{1f55c}",clock2:"\u{1f551}",clock230:"\u{1f55d}",clock3:"\u{1f552}",clock330:"\u{1f55e}",clock4:"\u{1f553}",clock430:"\u{1f55f}",clock5:"\u{1f554}",clock530:"\u{1f560}",clock6:"\u{1f555}",clock630:"\u{1f561}",clock7:"\u{1f556}",clock730:"\u{1f562}",clock8:"\u{1f557}",clock830:"\u{1f563}",clock9:"\u{1f558}",clock930:"\u{1f564}",closed_book:"\u{1f4d5}",closed_lock_with_key:"\u{1f510}",closed_umbrella:"\u{1f302}",cloud:"\u2601\ufe0f",cloud_with_lightning:"\u{1f329}",cloud_with_lightning_and_rain:"\u26c8",cloud_with_rain:"\u{1f327}",cloud_with_snow:"\u{1f328}",clown_face:"\u{1f921}",clubs:"\u2663\ufe0f",cocktail:"\u{1f378}",coffee:"\u2615\ufe0f",coffin:"\u26b0\ufe0f",cold_sweat:"\u{1f630}",comet:"\u2604\ufe0f",computer:"\u{1f4bb}",computer_mouse:"\u{1f5b1}",confetti_ball:"\u{1f38a}",confounded:"\u{1f616}",confused:"\u{1f615}",congratulations:"\u3297\ufe0f",construction:"\u{1f6a7}",construction_worker_man:"\u{1f477}",construction_worker_woman:"\u{1f477}&zwj;\u2640\ufe0f",control_knobs:"\u{1f39b}",convenience_store:"\u{1f3ea}",cookie:"\u{1f36a}",cool:"\u{1f192}",policeman:"\u{1f46e}",copyright:"\xa9\ufe0f",corn:"\u{1f33d}",couch_and_lamp:"\u{1f6cb}",couple:"\u{1f46b}",couple_with_heart_woman_man:"\u{1f491}",couple_with_heart_man_man:"\u{1f468}&zwj;\u2764\ufe0f&zwj;\u{1f468}",couple_with_heart_woman_woman:"\u{1f469}&zwj;\u2764\ufe0f&zwj;\u{1f469}",couplekiss_man_man:"\u{1f468}&zwj;\u2764\ufe0f&zwj;\u{1f48b}&zwj;\u{1f468}",couplekiss_man_woman:"\u{1f48f}",couplekiss_woman_woman:"\u{1f469}&zwj;\u2764\ufe0f&zwj;\u{1f48b}&zwj;\u{1f469}",cow:"\u{1f42e}",cow2:"\u{1f404}",cowboy_hat_face:"\u{1f920}",crab:"\u{1f980}",crayon:"\u{1f58d}",credit_card:"\u{1f4b3}",crescent_moon:"\u{1f319}",cricket:"\u{1f3cf}",crocodile:"\u{1f40a}",croissant:"\u{1f950}",crossed_fingers:"\u{1f91e}",crossed_flags:"\u{1f38c}",crossed_swords:"\u2694\ufe0f",crown:"\u{1f451}",cry:"\u{1f622}",crying_cat_face:"\u{1f63f}",crystal_ball:"\u{1f52e}",cucumber:"\u{1f952}",cupid:"\u{1f498}",curly_loop:"\u27b0",currency_exchange:"\u{1f4b1}",curry:"\u{1f35b}",custard:"\u{1f36e}",customs:"\u{1f6c3}",cyclone:"\u{1f300}",dagger:"\u{1f5e1}",dancer:"\u{1f483}",dancing_women:"\u{1f46f}",dancing_men:"\u{1f46f}&zwj;\u2642\ufe0f",dango:"\u{1f361}",dark_sunglasses:"\u{1f576}",dart:"\u{1f3af}",dash:"\u{1f4a8}",date:"\u{1f4c5}",deciduous_tree:"\u{1f333}",deer:"\u{1f98c}",department_store:"\u{1f3ec}",derelict_house:"\u{1f3da}",desert:"\u{1f3dc}",desert_island:"\u{1f3dd}",desktop_computer:"\u{1f5a5}",male_detective:"\u{1f575}\ufe0f",diamond_shape_with_a_dot_inside:"\u{1f4a0}",diamonds:"\u2666\ufe0f",disappointed:"\u{1f61e}",disappointed_relieved:"\u{1f625}",dizzy:"\u{1f4ab}",dizzy_face:"\u{1f635}",do_not_litter:"\u{1f6af}",dog:"\u{1f436}",dog2:"\u{1f415}",dollar:"\u{1f4b5}",dolls:"\u{1f38e}",dolphin:"\u{1f42c}",door:"\u{1f6aa}",doughnut:"\u{1f369}",dove:"\u{1f54a}",dragon:"\u{1f409}",dragon_face:"\u{1f432}",dress:"\u{1f457}",dromedary_camel:"\u{1f42a}",drooling_face:"\u{1f924}",droplet:"\u{1f4a7}",drum:"\u{1f941}",duck:"\u{1f986}",dvd:"\u{1f4c0}","e-mail":"\u{1f4e7}",eagle:"\u{1f985}",ear:"\u{1f442}",ear_of_rice:"\u{1f33e}",earth_africa:"\u{1f30d}",earth_americas:"\u{1f30e}",earth_asia:"\u{1f30f}",egg:"\u{1f95a}",eggplant:"\u{1f346}",eight_pointed_black_star:"\u2734\ufe0f",eight_spoked_asterisk:"\u2733\ufe0f",electric_plug:"\u{1f50c}",elephant:"\u{1f418}",email:"\u2709\ufe0f",end:"\u{1f51a}",envelope_with_arrow:"\u{1f4e9}",euro:"\u{1f4b6}",european_castle:"\u{1f3f0}",european_post_office:"\u{1f3e4}",evergreen_tree:"\u{1f332}",exclamation:"\u2757\ufe0f",expressionless:"\u{1f611}",eye:"\u{1f441}",eye_speech_bubble:"\u{1f441}&zwj;\u{1f5e8}",eyeglasses:"\u{1f453}",eyes:"\u{1f440}",face_with_head_bandage:"\u{1f915}",face_with_thermometer:"\u{1f912}",fist_oncoming:"\u{1f44a}",factory:"\u{1f3ed}",fallen_leaf:"\u{1f342}",family_man_woman_boy:"\u{1f46a}",family_man_boy:"\u{1f468}&zwj;\u{1f466}",family_man_boy_boy:"\u{1f468}&zwj;\u{1f466}&zwj;\u{1f466}",family_man_girl:"\u{1f468}&zwj;\u{1f467}",family_man_girl_boy:"\u{1f468}&zwj;\u{1f467}&zwj;\u{1f466}",family_man_girl_girl:"\u{1f468}&zwj;\u{1f467}&zwj;\u{1f467}",family_man_man_boy:"\u{1f468}&zwj;\u{1f468}&zwj;\u{1f466}",family_man_man_boy_boy:"\u{1f468}&zwj;\u{1f468}&zwj;\u{1f466}&zwj;\u{1f466}",family_man_man_girl:"\u{1f468}&zwj;\u{1f468}&zwj;\u{1f467}",family_man_man_girl_boy:"\u{1f468}&zwj;\u{1f468}&zwj;\u{1f467}&zwj;\u{1f466}",family_man_man_girl_girl:"\u{1f468}&zwj;\u{1f468}&zwj;\u{1f467}&zwj;\u{1f467}",family_man_woman_boy_boy:"\u{1f468}&zwj;\u{1f469}&zwj;\u{1f466}&zwj;\u{1f466}",family_man_woman_girl:"\u{1f468}&zwj;\u{1f469}&zwj;\u{1f467}",family_man_woman_girl_boy:"\u{1f468}&zwj;\u{1f469}&zwj;\u{1f467}&zwj;\u{1f466}",family_man_woman_girl_girl:"\u{1f468}&zwj;\u{1f469}&zwj;\u{1f467}&zwj;\u{1f467}",family_woman_boy:"\u{1f469}&zwj;\u{1f466}",family_woman_boy_boy:"\u{1f469}&zwj;\u{1f466}&zwj;\u{1f466}",family_woman_girl:"\u{1f469}&zwj;\u{1f467}",family_woman_girl_boy:"\u{1f469}&zwj;\u{1f467}&zwj;\u{1f466}",family_woman_girl_girl:"\u{1f469}&zwj;\u{1f467}&zwj;\u{1f467}",family_woman_woman_boy:"\u{1f469}&zwj;\u{1f469}&zwj;\u{1f466}",family_woman_woman_boy_boy:"\u{1f469}&zwj;\u{1f469}&zwj;\u{1f466}&zwj;\u{1f466}",family_woman_woman_girl:"\u{1f469}&zwj;\u{1f469}&zwj;\u{1f467}",family_woman_woman_girl_boy:"\u{1f469}&zwj;\u{1f469}&zwj;\u{1f467}&zwj;\u{1f466}",family_woman_woman_girl_girl:"\u{1f469}&zwj;\u{1f469}&zwj;\u{1f467}&zwj;\u{1f467}",fast_forward:"\u23e9",fax:"\u{1f4e0}",fearful:"\u{1f628}",feet:"\u{1f43e}",female_detective:"\u{1f575}\ufe0f&zwj;\u2640\ufe0f",ferris_wheel:"\u{1f3a1}",ferry:"\u26f4",field_hockey:"\u{1f3d1}",file_cabinet:"\u{1f5c4}",file_folder:"\u{1f4c1}",film_projector:"\u{1f4fd}",film_strip:"\u{1f39e}",fire:"\u{1f525}",fire_engine:"\u{1f692}",fireworks:"\u{1f386}",first_quarter_moon:"\u{1f313}",first_quarter_moon_with_face:"\u{1f31b}",fish:"\u{1f41f}",fish_cake:"\u{1f365}",fishing_pole_and_fish:"\u{1f3a3}",fist_raised:"\u270a",fist_left:"\u{1f91b}",fist_right:"\u{1f91c}",flags:"\u{1f38f}",flashlight:"\u{1f526}",fleur_de_lis:"\u269c\ufe0f",flight_arrival:"\u{1f6ec}",flight_departure:"\u{1f6eb}",floppy_disk:"\u{1f4be}",flower_playing_cards:"\u{1f3b4}",flushed:"\u{1f633}",fog:"\u{1f32b}",foggy:"\u{1f301}",football:"\u{1f3c8}",footprints:"\u{1f463}",fork_and_knife:"\u{1f374}",fountain:"\u26f2\ufe0f",fountain_pen:"\u{1f58b}",four_leaf_clover:"\u{1f340}",fox_face:"\u{1f98a}",framed_picture:"\u{1f5bc}",free:"\u{1f193}",fried_egg:"\u{1f373}",fried_shrimp:"\u{1f364}",fries:"\u{1f35f}",frog:"\u{1f438}",frowning:"\u{1f626}",frowning_face:"\u2639\ufe0f",frowning_man:"\u{1f64d}&zwj;\u2642\ufe0f",frowning_woman:"\u{1f64d}",middle_finger:"\u{1f595}",fuelpump:"\u26fd\ufe0f",full_moon:"\u{1f315}",full_moon_with_face:"\u{1f31d}",funeral_urn:"\u26b1\ufe0f",game_die:"\u{1f3b2}",gear:"\u2699\ufe0f",gem:"\u{1f48e}",gemini:"\u264a\ufe0f",ghost:"\u{1f47b}",gift:"\u{1f381}",gift_heart:"\u{1f49d}",girl:"\u{1f467}",globe_with_meridians:"\u{1f310}",goal_net:"\u{1f945}",goat:"\u{1f410}",golf:"\u26f3\ufe0f",golfing_man:"\u{1f3cc}\ufe0f",golfing_woman:"\u{1f3cc}\ufe0f&zwj;\u2640\ufe0f",gorilla:"\u{1f98d}",grapes:"\u{1f347}",green_apple:"\u{1f34f}",green_book:"\u{1f4d7}",green_heart:"\u{1f49a}",green_salad:"\u{1f957}",grey_exclamation:"\u2755",grey_question:"\u2754",grimacing:"\u{1f62c}",grin:"\u{1f601}",grinning:"\u{1f600}",guardsman:"\u{1f482}",guardswoman:"\u{1f482}&zwj;\u2640\ufe0f",guitar:"\u{1f3b8}",gun:"\u{1f52b}",haircut_woman:"\u{1f487}",haircut_man:"\u{1f487}&zwj;\u2642\ufe0f",hamburger:"\u{1f354}",hammer:"\u{1f528}",hammer_and_pick:"\u2692",hammer_and_wrench:"\u{1f6e0}",hamster:"\u{1f439}",hand:"\u270b",handbag:"\u{1f45c}",handshake:"\u{1f91d}",hankey:"\u{1f4a9}",hatched_chick:"\u{1f425}",hatching_chick:"\u{1f423}",headphones:"\u{1f3a7}",hear_no_evil:"\u{1f649}",heart:"\u2764\ufe0f",heart_decoration:"\u{1f49f}",heart_eyes:"\u{1f60d}",heart_eyes_cat:"\u{1f63b}",heartbeat:"\u{1f493}",heartpulse:"\u{1f497}",hearts:"\u2665\ufe0f",heavy_check_mark:"\u2714\ufe0f",heavy_division_sign:"\u2797",heavy_dollar_sign:"\u{1f4b2}",heavy_heart_exclamation:"\u2763\ufe0f",heavy_minus_sign:"\u2796",heavy_multiplication_x:"\u2716\ufe0f",heavy_plus_sign:"\u2795",helicopter:"\u{1f681}",herb:"\u{1f33f}",hibiscus:"\u{1f33a}",high_brightness:"\u{1f506}",high_heel:"\u{1f460}",hocho:"\u{1f52a}",hole:"\u{1f573}",honey_pot:"\u{1f36f}",horse:"\u{1f434}",horse_racing:"\u{1f3c7}",hospital:"\u{1f3e5}",hot_pepper:"\u{1f336}",hotdog:"\u{1f32d}",hotel:"\u{1f3e8}",hotsprings:"\u2668\ufe0f",hourglass:"\u231b\ufe0f",hourglass_flowing_sand:"\u23f3",house:"\u{1f3e0}",house_with_garden:"\u{1f3e1}",houses:"\u{1f3d8}",hugs:"\u{1f917}",hushed:"\u{1f62f}",ice_cream:"\u{1f368}",ice_hockey:"\u{1f3d2}",ice_skate:"\u26f8",icecream:"\u{1f366}",id:"\u{1f194}",ideograph_advantage:"\u{1f250}",imp:"\u{1f47f}",inbox_tray:"\u{1f4e5}",incoming_envelope:"\u{1f4e8}",tipping_hand_woman:"\u{1f481}",information_source:"\u2139\ufe0f",innocent:"\u{1f607}",interrobang:"\u2049\ufe0f",iphone:"\u{1f4f1}",izakaya_lantern:"\u{1f3ee}",jack_o_lantern:"\u{1f383}",japan:"\u{1f5fe}",japanese_castle:"\u{1f3ef}",japanese_goblin:"\u{1f47a}",japanese_ogre:"\u{1f479}",jeans:"\u{1f456}",joy:"\u{1f602}",joy_cat:"\u{1f639}",joystick:"\u{1f579}",kaaba:"\u{1f54b}",key:"\u{1f511}",keyboard:"\u2328\ufe0f",keycap_ten:"\u{1f51f}",kick_scooter:"\u{1f6f4}",kimono:"\u{1f458}",kiss:"\u{1f48b}",kissing:"\u{1f617}",kissing_cat:"\u{1f63d}",kissing_closed_eyes:"\u{1f61a}",kissing_heart:"\u{1f618}",kissing_smiling_eyes:"\u{1f619}",kiwi_fruit:"\u{1f95d}",koala:"\u{1f428}",koko:"\u{1f201}",label:"\u{1f3f7}",large_blue_circle:"\u{1f535}",large_blue_diamond:"\u{1f537}",large_orange_diamond:"\u{1f536}",last_quarter_moon:"\u{1f317}",last_quarter_moon_with_face:"\u{1f31c}",latin_cross:"\u271d\ufe0f",laughing:"\u{1f606}",leaves:"\u{1f343}",ledger:"\u{1f4d2}",left_luggage:"\u{1f6c5}",left_right_arrow:"\u2194\ufe0f",leftwards_arrow_with_hook:"\u21a9\ufe0f",lemon:"\u{1f34b}",leo:"\u264c\ufe0f",leopard:"\u{1f406}",level_slider:"\u{1f39a}",libra:"\u264e\ufe0f",light_rail:"\u{1f688}",link:"\u{1f517}",lion:"\u{1f981}",lips:"\u{1f444}",lipstick:"\u{1f484}",lizard:"\u{1f98e}",lock:"\u{1f512}",lock_with_ink_pen:"\u{1f50f}",lollipop:"\u{1f36d}",loop:"\u27bf",loud_sound:"\u{1f50a}",loudspeaker:"\u{1f4e2}",love_hotel:"\u{1f3e9}",love_letter:"\u{1f48c}",low_brightness:"\u{1f505}",lying_face:"\u{1f925}",m:"\u24c2\ufe0f",mag:"\u{1f50d}",mag_right:"\u{1f50e}",mahjong:"\u{1f004}\ufe0f",mailbox:"\u{1f4eb}",mailbox_closed:"\u{1f4ea}",mailbox_with_mail:"\u{1f4ec}",mailbox_with_no_mail:"\u{1f4ed}",man:"\u{1f468}",man_artist:"\u{1f468}&zwj;\u{1f3a8}",man_astronaut:"\u{1f468}&zwj;\u{1f680}",man_cartwheeling:"\u{1f938}&zwj;\u2642\ufe0f",man_cook:"\u{1f468}&zwj;\u{1f373}",man_dancing:"\u{1f57a}",man_facepalming:"\u{1f926}&zwj;\u2642\ufe0f",man_factory_worker:"\u{1f468}&zwj;\u{1f3ed}",man_farmer:"\u{1f468}&zwj;\u{1f33e}",man_firefighter:"\u{1f468}&zwj;\u{1f692}",man_health_worker:"\u{1f468}&zwj;\u2695\ufe0f",man_in_tuxedo:"\u{1f935}",man_judge:"\u{1f468}&zwj;\u2696\ufe0f",man_juggling:"\u{1f939}&zwj;\u2642\ufe0f",man_mechanic:"\u{1f468}&zwj;\u{1f527}",man_office_worker:"\u{1f468}&zwj;\u{1f4bc}",man_pilot:"\u{1f468}&zwj;\u2708\ufe0f",man_playing_handball:"\u{1f93e}&zwj;\u2642\ufe0f",man_playing_water_polo:"\u{1f93d}&zwj;\u2642\ufe0f",man_scientist:"\u{1f468}&zwj;\u{1f52c}",man_shrugging:"\u{1f937}&zwj;\u2642\ufe0f",man_singer:"\u{1f468}&zwj;\u{1f3a4}",man_student:"\u{1f468}&zwj;\u{1f393}",man_teacher:"\u{1f468}&zwj;\u{1f3eb}",man_technologist:"\u{1f468}&zwj;\u{1f4bb}",man_with_gua_pi_mao:"\u{1f472}",man_with_turban:"\u{1f473}",tangerine:"\u{1f34a}",mans_shoe:"\u{1f45e}",mantelpiece_clock:"\u{1f570}",maple_leaf:"\u{1f341}",martial_arts_uniform:"\u{1f94b}",mask:"\u{1f637}",massage_woman:"\u{1f486}",massage_man:"\u{1f486}&zwj;\u2642\ufe0f",meat_on_bone:"\u{1f356}",medal_military:"\u{1f396}",medal_sports:"\u{1f3c5}",mega:"\u{1f4e3}",melon:"\u{1f348}",memo:"\u{1f4dd}",men_wrestling:"\u{1f93c}&zwj;\u2642\ufe0f",menorah:"\u{1f54e}",mens:"\u{1f6b9}",metal:"\u{1f918}",metro:"\u{1f687}",microphone:"\u{1f3a4}",microscope:"\u{1f52c}",milk_glass:"\u{1f95b}",milky_way:"\u{1f30c}",minibus:"\u{1f690}",minidisc:"\u{1f4bd}",mobile_phone_off:"\u{1f4f4}",money_mouth_face:"\u{1f911}",money_with_wings:"\u{1f4b8}",moneybag:"\u{1f4b0}",monkey:"\u{1f412}",monkey_face:"\u{1f435}",monorail:"\u{1f69d}",moon:"\u{1f314}",mortar_board:"\u{1f393}",mosque:"\u{1f54c}",motor_boat:"\u{1f6e5}",motor_scooter:"\u{1f6f5}",motorcycle:"\u{1f3cd}",motorway:"\u{1f6e3}",mount_fuji:"\u{1f5fb}",mountain:"\u26f0",mountain_biking_man:"\u{1f6b5}",mountain_biking_woman:"\u{1f6b5}&zwj;\u2640\ufe0f",mountain_cableway:"\u{1f6a0}",mountain_railway:"\u{1f69e}",mountain_snow:"\u{1f3d4}",mouse:"\u{1f42d}",mouse2:"\u{1f401}",movie_camera:"\u{1f3a5}",moyai:"\u{1f5ff}",mrs_claus:"\u{1f936}",muscle:"\u{1f4aa}",mushroom:"\u{1f344}",musical_keyboard:"\u{1f3b9}",musical_note:"\u{1f3b5}",musical_score:"\u{1f3bc}",mute:"\u{1f507}",nail_care:"\u{1f485}",name_badge:"\u{1f4db}",national_park:"\u{1f3de}",nauseated_face:"\u{1f922}",necktie:"\u{1f454}",negative_squared_cross_mark:"\u274e",nerd_face:"\u{1f913}",neutral_face:"\u{1f610}",new:"\u{1f195}",new_moon:"\u{1f311}",new_moon_with_face:"\u{1f31a}",newspaper:"\u{1f4f0}",newspaper_roll:"\u{1f5de}",next_track_button:"\u23ed",ng:"\u{1f196}",no_good_man:"\u{1f645}&zwj;\u2642\ufe0f",no_good_woman:"\u{1f645}",night_with_stars:"\u{1f303}",no_bell:"\u{1f515}",no_bicycles:"\u{1f6b3}",no_entry:"\u26d4\ufe0f",no_entry_sign:"\u{1f6ab}",no_mobile_phones:"\u{1f4f5}",no_mouth:"\u{1f636}",no_pedestrians:"\u{1f6b7}",no_smoking:"\u{1f6ad}","non-potable_water":"\u{1f6b1}",nose:"\u{1f443}",notebook:"\u{1f4d3}",notebook_with_decorative_cover:"\u{1f4d4}",notes:"\u{1f3b6}",nut_and_bolt:"\u{1f529}",o:"\u2b55\ufe0f",o2:"\u{1f17e}\ufe0f",ocean:"\u{1f30a}",octopus:"\u{1f419}",oden:"\u{1f362}",office:"\u{1f3e2}",oil_drum:"\u{1f6e2}",ok:"\u{1f197}",ok_hand:"\u{1f44c}",ok_man:"\u{1f646}&zwj;\u2642\ufe0f",ok_woman:"\u{1f646}",old_key:"\u{1f5dd}",older_man:"\u{1f474}",older_woman:"\u{1f475}",om:"\u{1f549}",on:"\u{1f51b}",oncoming_automobile:"\u{1f698}",oncoming_bus:"\u{1f68d}",oncoming_police_car:"\u{1f694}",oncoming_taxi:"\u{1f696}",open_file_folder:"\u{1f4c2}",open_hands:"\u{1f450}",open_mouth:"\u{1f62e}",open_umbrella:"\u2602\ufe0f",ophiuchus:"\u26ce",orange_book:"\u{1f4d9}",orthodox_cross:"\u2626\ufe0f",outbox_tray:"\u{1f4e4}",owl:"\u{1f989}",ox:"\u{1f402}",package:"\u{1f4e6}",page_facing_up:"\u{1f4c4}",page_with_curl:"\u{1f4c3}",pager:"\u{1f4df}",paintbrush:"\u{1f58c}",palm_tree:"\u{1f334}",pancakes:"\u{1f95e}",panda_face:"\u{1f43c}",paperclip:"\u{1f4ce}",paperclips:"\u{1f587}",parasol_on_ground:"\u26f1",parking:"\u{1f17f}\ufe0f",part_alternation_mark:"\u303d\ufe0f",partly_sunny:"\u26c5\ufe0f",passenger_ship:"\u{1f6f3}",passport_control:"\u{1f6c2}",pause_button:"\u23f8",peace_symbol:"\u262e\ufe0f",peach:"\u{1f351}",peanuts:"\u{1f95c}",pear:"\u{1f350}",pen:"\u{1f58a}",pencil2:"\u270f\ufe0f",penguin:"\u{1f427}",pensive:"\u{1f614}",performing_arts:"\u{1f3ad}",persevere:"\u{1f623}",person_fencing:"\u{1f93a}",pouting_woman:"\u{1f64e}",phone:"\u260e\ufe0f",pick:"\u26cf",pig:"\u{1f437}",pig2:"\u{1f416}",pig_nose:"\u{1f43d}",pill:"\u{1f48a}",pineapple:"\u{1f34d}",ping_pong:"\u{1f3d3}",pisces:"\u2653\ufe0f",pizza:"\u{1f355}",place_of_worship:"\u{1f6d0}",plate_with_cutlery:"\u{1f37d}",play_or_pause_button:"\u23ef",point_down:"\u{1f447}",point_left:"\u{1f448}",point_right:"\u{1f449}",point_up:"\u261d\ufe0f",point_up_2:"\u{1f446}",police_car:"\u{1f693}",policewoman:"\u{1f46e}&zwj;\u2640\ufe0f",poodle:"\u{1f429}",popcorn:"\u{1f37f}",post_office:"\u{1f3e3}",postal_horn:"\u{1f4ef}",postbox:"\u{1f4ee}",potable_water:"\u{1f6b0}",potato:"\u{1f954}",pouch:"\u{1f45d}",poultry_leg:"\u{1f357}",pound:"\u{1f4b7}",rage:"\u{1f621}",pouting_cat:"\u{1f63e}",pouting_man:"\u{1f64e}&zwj;\u2642\ufe0f",pray:"\u{1f64f}",prayer_beads:"\u{1f4ff}",pregnant_woman:"\u{1f930}",previous_track_button:"\u23ee",prince:"\u{1f934}",princess:"\u{1f478}",printer:"\u{1f5a8}",purple_heart:"\u{1f49c}",purse:"\u{1f45b}",pushpin:"\u{1f4cc}",put_litter_in_its_place:"\u{1f6ae}",question:"\u2753",rabbit:"\u{1f430}",rabbit2:"\u{1f407}",racehorse:"\u{1f40e}",racing_car:"\u{1f3ce}",radio:"\u{1f4fb}",radio_button:"\u{1f518}",radioactive:"\u2622\ufe0f",railway_car:"\u{1f683}",railway_track:"\u{1f6e4}",rainbow:"\u{1f308}",rainbow_flag:"\u{1f3f3}\ufe0f&zwj;\u{1f308}",raised_back_of_hand:"\u{1f91a}",raised_hand_with_fingers_splayed:"\u{1f590}",raised_hands:"\u{1f64c}",raising_hand_woman:"\u{1f64b}",raising_hand_man:"\u{1f64b}&zwj;\u2642\ufe0f",ram:"\u{1f40f}",ramen:"\u{1f35c}",rat:"\u{1f400}",record_button:"\u23fa",recycle:"\u267b\ufe0f",red_circle:"\u{1f534}",registered:"\xae\ufe0f",relaxed:"\u263a\ufe0f",relieved:"\u{1f60c}",reminder_ribbon:"\u{1f397}",repeat:"\u{1f501}",repeat_one:"\u{1f502}",rescue_worker_helmet:"\u26d1",restroom:"\u{1f6bb}",revolving_hearts:"\u{1f49e}",rewind:"\u23ea",rhinoceros:"\u{1f98f}",ribbon:"\u{1f380}",rice:"\u{1f35a}",rice_ball:"\u{1f359}",rice_cracker:"\u{1f358}",rice_scene:"\u{1f391}",right_anger_bubble:"\u{1f5ef}",ring:"\u{1f48d}",robot:"\u{1f916}",rocket:"\u{1f680}",rofl:"\u{1f923}",roll_eyes:"\u{1f644}",roller_coaster:"\u{1f3a2}",rooster:"\u{1f413}",rose:"\u{1f339}",rosette:"\u{1f3f5}",rotating_light:"\u{1f6a8}",round_pushpin:"\u{1f4cd}",rowing_man:"\u{1f6a3}",rowing_woman:"\u{1f6a3}&zwj;\u2640\ufe0f",rugby_football:"\u{1f3c9}",running_man:"\u{1f3c3}",running_shirt_with_sash:"\u{1f3bd}",running_woman:"\u{1f3c3}&zwj;\u2640\ufe0f",sa:"\u{1f202}\ufe0f",sagittarius:"\u2650\ufe0f",sake:"\u{1f376}",sandal:"\u{1f461}",santa:"\u{1f385}",satellite:"\u{1f4e1}",saxophone:"\u{1f3b7}",school:"\u{1f3eb}",school_satchel:"\u{1f392}",scissors:"\u2702\ufe0f",scorpion:"\u{1f982}",scorpius:"\u264f\ufe0f",scream:"\u{1f631}",scream_cat:"\u{1f640}",scroll:"\u{1f4dc}",seat:"\u{1f4ba}",secret:"\u3299\ufe0f",see_no_evil:"\u{1f648}",seedling:"\u{1f331}",selfie:"\u{1f933}",shallow_pan_of_food:"\u{1f958}",shamrock:"\u2618\ufe0f",shark:"\u{1f988}",shaved_ice:"\u{1f367}",sheep:"\u{1f411}",shell:"\u{1f41a}",shield:"\u{1f6e1}",shinto_shrine:"\u26e9",ship:"\u{1f6a2}",shirt:"\u{1f455}",shopping:"\u{1f6cd}",shopping_cart:"\u{1f6d2}",shower:"\u{1f6bf}",shrimp:"\u{1f990}",signal_strength:"\u{1f4f6}",six_pointed_star:"\u{1f52f}",ski:"\u{1f3bf}",skier:"\u26f7",skull:"\u{1f480}",skull_and_crossbones:"\u2620\ufe0f",sleeping:"\u{1f634}",sleeping_bed:"\u{1f6cc}",sleepy:"\u{1f62a}",slightly_frowning_face:"\u{1f641}",slightly_smiling_face:"\u{1f642}",slot_machine:"\u{1f3b0}",small_airplane:"\u{1f6e9}",small_blue_diamond:"\u{1f539}",small_orange_diamond:"\u{1f538}",small_red_triangle:"\u{1f53a}",small_red_triangle_down:"\u{1f53b}",smile:"\u{1f604}",smile_cat:"\u{1f638}",smiley:"\u{1f603}",smiley_cat:"\u{1f63a}",smiling_imp:"\u{1f608}",smirk:"\u{1f60f}",smirk_cat:"\u{1f63c}",smoking:"\u{1f6ac}",snail:"\u{1f40c}",snake:"\u{1f40d}",sneezing_face:"\u{1f927}",snowboarder:"\u{1f3c2}",snowflake:"\u2744\ufe0f",snowman:"\u26c4\ufe0f",snowman_with_snow:"\u2603\ufe0f",sob:"\u{1f62d}",soccer:"\u26bd\ufe0f",soon:"\u{1f51c}",sos:"\u{1f198}",sound:"\u{1f509}",space_invader:"\u{1f47e}",spades:"\u2660\ufe0f",spaghetti:"\u{1f35d}",sparkle:"\u2747\ufe0f",sparkler:"\u{1f387}",sparkles:"\u2728",sparkling_heart:"\u{1f496}",speak_no_evil:"\u{1f64a}",speaker:"\u{1f508}",speaking_head:"\u{1f5e3}",speech_balloon:"\u{1f4ac}",speedboat:"\u{1f6a4}",spider:"\u{1f577}",spider_web:"\u{1f578}",spiral_calendar:"\u{1f5d3}",spiral_notepad:"\u{1f5d2}",spoon:"\u{1f944}",squid:"\u{1f991}",stadium:"\u{1f3df}",star:"\u2b50\ufe0f",star2:"\u{1f31f}",star_and_crescent:"\u262a\ufe0f",star_of_david:"\u2721\ufe0f",stars:"\u{1f320}",station:"\u{1f689}",statue_of_liberty:"\u{1f5fd}",steam_locomotive:"\u{1f682}",stew:"\u{1f372}",stop_button:"\u23f9",stop_sign:"\u{1f6d1}",stopwatch:"\u23f1",straight_ruler:"\u{1f4cf}",strawberry:"\u{1f353}",stuck_out_tongue:"\u{1f61b}",stuck_out_tongue_closed_eyes:"\u{1f61d}",stuck_out_tongue_winking_eye:"\u{1f61c}",studio_microphone:"\u{1f399}",stuffed_flatbread:"\u{1f959}",sun_behind_large_cloud:"\u{1f325}",sun_behind_rain_cloud:"\u{1f326}",sun_behind_small_cloud:"\u{1f324}",sun_with_face:"\u{1f31e}",sunflower:"\u{1f33b}",sunglasses:"\u{1f60e}",sunny:"\u2600\ufe0f",sunrise:"\u{1f305}",sunrise_over_mountains:"\u{1f304}",surfing_man:"\u{1f3c4}",surfing_woman:"\u{1f3c4}&zwj;\u2640\ufe0f",sushi:"\u{1f363}",suspension_railway:"\u{1f69f}",sweat:"\u{1f613}",sweat_drops:"\u{1f4a6}",sweat_smile:"\u{1f605}",sweet_potato:"\u{1f360}",swimming_man:"\u{1f3ca}",swimming_woman:"\u{1f3ca}&zwj;\u2640\ufe0f",symbols:"\u{1f523}",synagogue:"\u{1f54d}",syringe:"\u{1f489}",taco:"\u{1f32e}",tada:"\u{1f389}",tanabata_tree:"\u{1f38b}",taurus:"\u2649\ufe0f",taxi:"\u{1f695}",tea:"\u{1f375}",telephone_receiver:"\u{1f4de}",telescope:"\u{1f52d}",tennis:"\u{1f3be}",tent:"\u26fa\ufe0f",thermometer:"\u{1f321}",thinking:"\u{1f914}",thought_balloon:"\u{1f4ad}",ticket:"\u{1f3ab}",tickets:"\u{1f39f}",tiger:"\u{1f42f}",tiger2:"\u{1f405}",timer_clock:"\u23f2",tipping_hand_man:"\u{1f481}&zwj;\u2642\ufe0f",tired_face:"\u{1f62b}",tm:"\u2122\ufe0f",toilet:"\u{1f6bd}",tokyo_tower:"\u{1f5fc}",tomato:"\u{1f345}",tongue:"\u{1f445}",top:"\u{1f51d}",tophat:"\u{1f3a9}",tornado:"\u{1f32a}",trackball:"\u{1f5b2}",tractor:"\u{1f69c}",traffic_light:"\u{1f6a5}",train:"\u{1f68b}",train2:"\u{1f686}",tram:"\u{1f68a}",triangular_flag_on_post:"\u{1f6a9}",triangular_ruler:"\u{1f4d0}",trident:"\u{1f531}",triumph:"\u{1f624}",trolleybus:"\u{1f68e}",trophy:"\u{1f3c6}",tropical_drink:"\u{1f379}",tropical_fish:"\u{1f420}",truck:"\u{1f69a}",trumpet:"\u{1f3ba}",tulip:"\u{1f337}",tumbler_glass:"\u{1f943}",turkey:"\u{1f983}",turtle:"\u{1f422}",tv:"\u{1f4fa}",twisted_rightwards_arrows:"\u{1f500}",two_hearts:"\u{1f495}",two_men_holding_hands:"\u{1f46c}",two_women_holding_hands:"\u{1f46d}",u5272:"\u{1f239}",u5408:"\u{1f234}",u55b6:"\u{1f23a}",u6307:"\u{1f22f}\ufe0f",u6708:"\u{1f237}\ufe0f",u6709:"\u{1f236}",u6e80:"\u{1f235}",u7121:"\u{1f21a}\ufe0f",u7533:"\u{1f238}",u7981:"\u{1f232}",u7a7a:"\u{1f233}",umbrella:"\u2614\ufe0f",unamused:"\u{1f612}",underage:"\u{1f51e}",unicorn:"\u{1f984}",unlock:"\u{1f513}",up:"\u{1f199}",upside_down_face:"\u{1f643}",v:"\u270c\ufe0f",vertical_traffic_light:"\u{1f6a6}",vhs:"\u{1f4fc}",vibration_mode:"\u{1f4f3}",video_camera:"\u{1f4f9}",video_game:"\u{1f3ae}",violin:"\u{1f3bb}",virgo:"\u264d\ufe0f",volcano:"\u{1f30b}",volleyball:"\u{1f3d0}",vs:"\u{1f19a}",vulcan_salute:"\u{1f596}",walking_man:"\u{1f6b6}",walking_woman:"\u{1f6b6}&zwj;\u2640\ufe0f",waning_crescent_moon:"\u{1f318}",waning_gibbous_moon:"\u{1f316}",warning:"\u26a0\ufe0f",wastebasket:"\u{1f5d1}",watch:"\u231a\ufe0f",water_buffalo:"\u{1f403}",watermelon:"\u{1f349}",wave:"\u{1f44b}",wavy_dash:"\u3030\ufe0f",waxing_crescent_moon:"\u{1f312}",wc:"\u{1f6be}",weary:"\u{1f629}",wedding:"\u{1f492}",weight_lifting_man:"\u{1f3cb}\ufe0f",weight_lifting_woman:"\u{1f3cb}\ufe0f&zwj;\u2640\ufe0f",whale:"\u{1f433}",whale2:"\u{1f40b}",wheel_of_dharma:"\u2638\ufe0f",wheelchair:"\u267f\ufe0f",white_check_mark:"\u2705",white_circle:"\u26aa\ufe0f",white_flag:"\u{1f3f3}\ufe0f",white_flower:"\u{1f4ae}",white_large_square:"\u2b1c\ufe0f",white_medium_small_square:"\u25fd\ufe0f",white_medium_square:"\u25fb\ufe0f",white_small_square:"\u25ab\ufe0f",white_square_button:"\u{1f533}",wilted_flower:"\u{1f940}",wind_chime:"\u{1f390}",wind_face:"\u{1f32c}",wine_glass:"\u{1f377}",wink:"\u{1f609}",wolf:"\u{1f43a}",woman:"\u{1f469}",woman_artist:"\u{1f469}&zwj;\u{1f3a8}",woman_astronaut:"\u{1f469}&zwj;\u{1f680}",woman_cartwheeling:"\u{1f938}&zwj;\u2640\ufe0f",woman_cook:"\u{1f469}&zwj;\u{1f373}",woman_facepalming:"\u{1f926}&zwj;\u2640\ufe0f",woman_factory_worker:"\u{1f469}&zwj;\u{1f3ed}",woman_farmer:"\u{1f469}&zwj;\u{1f33e}",woman_firefighter:"\u{1f469}&zwj;\u{1f692}",woman_health_worker:"\u{1f469}&zwj;\u2695\ufe0f",woman_judge:"\u{1f469}&zwj;\u2696\ufe0f",woman_juggling:"\u{1f939}&zwj;\u2640\ufe0f",woman_mechanic:"\u{1f469}&zwj;\u{1f527}",woman_office_worker:"\u{1f469}&zwj;\u{1f4bc}",woman_pilot:"\u{1f469}&zwj;\u2708\ufe0f",woman_playing_handball:"\u{1f93e}&zwj;\u2640\ufe0f",woman_playing_water_polo:"\u{1f93d}&zwj;\u2640\ufe0f",woman_scientist:"\u{1f469}&zwj;\u{1f52c}",woman_shrugging:"\u{1f937}&zwj;\u2640\ufe0f",woman_singer:"\u{1f469}&zwj;\u{1f3a4}",woman_student:"\u{1f469}&zwj;\u{1f393}",woman_teacher:"\u{1f469}&zwj;\u{1f3eb}",woman_technologist:"\u{1f469}&zwj;\u{1f4bb}",woman_with_turban:"\u{1f473}&zwj;\u2640\ufe0f",womans_clothes:"\u{1f45a}",womans_hat:"\u{1f452}",women_wrestling:"\u{1f93c}&zwj;\u2640\ufe0f",womens:"\u{1f6ba}",world_map:"\u{1f5fa}",worried:"\u{1f61f}",wrench:"\u{1f527}",writing_hand:"\u270d\ufe0f",x:"\u274c",yellow_heart:"\u{1f49b}",yen:"\u{1f4b4}",yin_yang:"\u262f\ufe0f",yum:"\u{1f60b}",zap:"\u26a1\ufe0f",zipper_mouth_face:"\u{1f910}",zzz:"\u{1f4a4}",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},U.Converter=function(g){"use strict";var I={},S=[],H=[],Q={},X=jt,Y={parsed:{},raw:"",format:""};function xe(G,ve){if(ve=ve||null,U.helper.isString(G)){if(ve=G=U.helper.stdExtName(G),U.extensions[G])return console.warn("DEPRECATION WARNING: "+G+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function Ee(G,ve){"function"==typeof G&&(G=G(new U.Converter)),U.helper.isArray(G)||(G=[G]);var Fe=Ms(G,ve);if(!Fe.valid)throw Error(Fe.error);for(var Ue=0;Ue<G.length;++Ue)switch(G[Ue].type){case"lang":S.push(G[Ue]);break;case"output":H.push(G[Ue]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(U.extensions[G],G);if(U.helper.isUndefined(Qi[G]))throw Error('Extension "'+G+'" could not be loaded. It was either not found or is not a valid extension.');G=Qi[G]}"function"==typeof G&&(G=G()),U.helper.isArray(G)||(G=[G]);var Fe=Ms(G,ve);if(!Fe.valid)throw Error(Fe.error);for(var Ue=0;Ue<G.length;++Ue){switch(G[Ue].type){case"lang":S.push(G[Ue]);break;case"output":H.push(G[Ue])}if(G[Ue].hasOwnProperty("listeners"))for(var ut in G[Ue].listeners)G[Ue].listeners.hasOwnProperty(ut)&&be(ut,G[Ue].listeners[ut])}}function be(G,ve){if(!U.helper.isString(G))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof G+" given");if("function"!=typeof ve)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof ve+" given");Q.hasOwnProperty(G)||(Q[G]=[]),Q[G].push(ve)}!function re(){for(var G in g=g||{},ge)ge.hasOwnProperty(G)&&(I[G]=ge[G]);if("object"!=typeof g)throw Error("Converter expects the passed parameter to be an object, but "+typeof g+" was passed instead.");for(var ve in g)g.hasOwnProperty(ve)&&(I[ve]=g[ve]);I.extensions&&U.helper.forEach(I.extensions,xe)}(),this._dispatch=function(ve,Fe,Ue,ut){if(Q.hasOwnProperty(ve))for(var Ye=0;Ye<Q[ve].length;++Ye){var $n=Q[ve][Ye](ve,Fe,this,Ue,ut);$n&&typeof $n<"u"&&(Fe=$n)}return Fe},this.listen=function(G,ve){return be(G,ve),this},this.makeHtml=function(G){if(!G)return G;var ve={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:S,outputModifiers:H,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return G=(G=(G=(G=(G=G.replace(/\xa8/g,"\xa8T")).replace(/\$/g,"\xa8D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g,"&nbsp;"),I.smartIndentationFix&&(G=function we(G){var ve=G.match(/^\s*/)[0].length,Fe=new RegExp("^\\s{0,"+ve+"}","gm");return G.replace(Fe,"")}(G)),G="\n\n"+G+"\n\n",G=(G=U.subParser("detab")(G,I,ve)).replace(/^[ \t]+$/gm,""),U.helper.forEach(S,function(Fe){G=U.subParser("runExtension")(Fe,G,I,ve)}),G=U.subParser("metadata")(G,I,ve),G=U.subParser("hashPreCodeTags")(G,I,ve),G=U.subParser("githubCodeBlocks")(G,I,ve),G=U.subParser("hashHTMLBlocks")(G,I,ve),G=U.subParser("hashCodeTags")(G,I,ve),G=U.subParser("stripLinkDefinitions")(G,I,ve),G=U.subParser("blockGamut")(G,I,ve),G=U.subParser("unhashHTMLSpans")(G,I,ve),G=(G=(G=U.subParser("unescapeSpecialChars")(G,I,ve)).replace(/\xa8D/g,"$$")).replace(/\xa8T/g,"\xa8"),G=U.subParser("completeHTMLDocument")(G,I,ve),U.helper.forEach(H,function(Fe){G=U.subParser("runExtension")(Fe,G,I,ve)}),Y=ve.metadata,G},this.makeMarkdown=this.makeMd=function(G,ve){if(G=(G=(G=G.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \t]+</,">\xa8NBSP;<"),!ve){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");ve=window.document}var Fe=ve.createElement("div");Fe.innerHTML=G;var Ue={preList:function Xr(zn){for(var or=zn.querySelectorAll("pre"),_r=[],hn=0;hn<or.length;++hn)if(1===or[hn].childElementCount&&"code"===or[hn].firstChild.tagName.toLowerCase()){var Ul=or[hn].firstChild.innerHTML.trim(),ed=or[hn].firstChild.getAttribute("data-language")||"";if(""===ed)for(var Lr=or[hn].firstChild.className.split(" "),vr=0;vr<Lr.length;++vr){var rp=Lr[vr].match(/^language-(.+)$/);if(null!==rp){ed=rp[1];break}}Ul=U.helper.unescapeHTMLEntities(Ul),_r.push(Ul),or[hn].outerHTML='<precode language="'+ed+'" precodenum="'+hn.toString()+'"></precode>'}else _r.push(or[hn].innerHTML),or[hn].innerHTML="",or[hn].setAttribute("prenum",hn.toString());return _r}(Fe)};!function lt(zn){for(var or=0;or<zn.childNodes.length;++or){var _r=zn.childNodes[or];3===_r.nodeType?/\S/.test(_r.nodeValue)||/^[ ]+$/.test(_r.nodeValue)?(_r.nodeValue=_r.nodeValue.split("\n").join(" "),_r.nodeValue=_r.nodeValue.replace(/(\s)+/g,"$1")):(zn.removeChild(_r),--or):1===_r.nodeType&&lt(_r)}}(Fe);for(var ut=Fe.childNodes,Ye="",$n=0;$n<ut.length;$n++)Ye+=U.subParser("makeMarkdown.node")(ut[$n],Ue);return Ye},this.setOption=function(G,ve){I[G]=ve},this.getOption=function(G){return I[G]},this.getOptions=function(){return I},this.addExtension=function(G,ve){xe(G,ve=ve||null)},this.useExtension=function(G){xe(G)},this.setFlavor=function(G){if(!Xo.hasOwnProperty(G))throw Error(G+" flavor was not found");var ve=Xo[G];for(var Fe in X=G,ve)ve.hasOwnProperty(Fe)&&(I[Fe]=ve[Fe])},this.getFlavor=function(){return X},this.removeExtension=function(G){U.helper.isArray(G)||(G=[G]);for(var ve=0;ve<G.length;++ve){for(var Fe=G[ve],Ue=0;Ue<S.length;++Ue)S[Ue]===Fe&&S.splice(Ue,1);for(var ut=0;ut<H.length;++ut)H[ut]===Fe&&H.splice(ut,1)}},this.getAllExtensions=function(){return{language:S,output:H}},this.getMetadata=function(G){return G?Y.raw:Y.parsed},this.getMetadataFormat=function(){return Y.format},this._setMetadataPair=function(G,ve){Y.parsed[G]=ve},this._setMetadataFormat=function(G){Y.format=G},this._setMetadataRaw=function(G){Y.raw=G}},U.subParser("anchors",function(g,I,S){"use strict";var H=function(Q,X,Y,re,xe,Ee,be){if(U.helper.isUndefined(be)&&(be=""),Y=Y.toLowerCase(),Q.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)re="";else if(!re){if(Y||(Y=X.toLowerCase().replace(/ ?\n/g," ")),re="#"+Y,U.helper.isUndefined(S.gUrls[Y]))return Q;re=S.gUrls[Y],U.helper.isUndefined(S.gTitles[Y])||(be=S.gTitles[Y])}var we='<a href="'+(re=re.replace(U.helper.regexes.asteriskDashAndColon,U.helper.escapeCharactersCallback))+'"';return""!==be&&null!==be&&(we+=' title="'+(be=(be=be.replace(/"/g,"&quot;")).replace(U.helper.regexes.asteriskDashAndColon,U.helper.escapeCharactersCallback))+'"'),I.openLinksInNewWindow&&!/^#/.test(re)&&(we+=' rel="noopener noreferrer" target="\xa8E95Eblank"'),we+">"+X+"</a>"};return g=(g=(g=(g=(g=S.converter._dispatch("anchors.before",g,I,S)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,H)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,H)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,H)).replace(/\[([^\[\]]+)]()()()()()/g,H),I.ghMentions&&(g=g.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,function(Q,X,Y,re,xe){if("\\"===Y)return X+re;if(!U.helper.isString(I.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var Ee=I.ghMentionsLink.replace(/\{u}/g,xe),be="";return I.openLinksInNewWindow&&(be=' rel="noopener noreferrer" target="\xa8E95Eblank"'),X+'<a href="'+Ee+'"'+be+">"+re+"</a>"})),S.converter._dispatch("anchors.after",g,I,S)});var ep=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,tp=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,np=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,Zo=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,$l=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,zl=function(g){"use strict";return function(I,S,H,Q,X,Y,re){var xe=H=H.replace(U.helper.regexes.asteriskDashAndColon,U.helper.escapeCharactersCallback),Ee="",be="",we=S||"",G=re||"";return/^www\./i.test(H)&&(H=H.replace(/^www\./i,"http://www.")),g.excludeTrailingPunctuationFromURLs&&Y&&(Ee=Y),g.openLinksInNewWindow&&(be=' rel="noopener noreferrer" target="\xa8E95Eblank"'),we+'<a href="'+H+'"'+be+">"+xe+"</a>"+Ee+G}},Ju=function(g,I){"use strict";return function(S,H,Q){var X="mailto:";return H=H||"",Q=U.subParser("unescapeSpecialChars")(Q,g,I),g.encodeEmails?(X=U.helper.encodeEmailAddress(X+Q),Q=U.helper.encodeEmailAddress(Q)):X+=Q,H+'<a href="'+X+'">'+Q+"</a>"}};U.subParser("autoLinks",function(g,I,S){"use strict";return g=(g=(g=S.converter._dispatch("autoLinks.before",g,I,S)).replace(np,zl(I))).replace($l,Ju(I,S)),S.converter._dispatch("autoLinks.after",g,I,S)}),U.subParser("simplifiedAutoLinks",function(g,I,S){"use strict";return I.simplifiedAutoLink&&(g=(g=(g=S.converter._dispatch("simplifiedAutoLinks.before",g,I,S)).replace(I.excludeTrailingPunctuationFromURLs?tp:ep,zl(I))).replace(Zo,Ju(I,S)),g=S.converter._dispatch("simplifiedAutoLinks.after",g,I,S)),g}),U.subParser("blockGamut",function(g,I,S){"use strict";return g=S.converter._dispatch("blockGamut.before",g,I,S),g=U.subParser("blockQuotes")(g,I,S),g=U.subParser("headers")(g,I,S),g=U.subParser("horizontalRule")(g,I,S),g=U.subParser("lists")(g,I,S),g=U.subParser("codeBlocks")(g,I,S),g=U.subParser("tables")(g,I,S),g=U.subParser("hashHTMLBlocks")(g,I,S),g=U.subParser("paragraphs")(g,I,S),S.converter._dispatch("blockGamut.after",g,I,S)}),U.subParser("blockQuotes",function(g,I,S){"use strict";g=S.converter._dispatch("blockQuotes.before",g,I,S);var H=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return I.splitAdjacentBlockquotes&&(H=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),g=(g+="\n\n").replace(H,function(Q){return Q=(Q=(Q=Q.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/\xa80/g,"")).replace(/^[ \t]+$/gm,""),Q=U.subParser("githubCodeBlocks")(Q,I,S),Q=(Q=(Q=U.subParser("blockGamut")(Q,I,S)).replace(/(^|\n)/g,"$1  ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(X,Y){var re=Y;return(re=re.replace(/^  /gm,"\xa80")).replace(/\xa80/g,"")}),U.subParser("hashBlock")("<blockquote>\n"+Q+"\n</blockquote>",I,S)}),S.converter._dispatch("blockQuotes.after",g,I,S)}),U.subParser("codeBlocks",function(g,I,S){"use strict";return g=S.converter._dispatch("codeBlocks.before",g,I,S),g=(g=(g+="\xa80").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=\xa80))/g,function(Q,X,Y){var re=X,xe=Y,Ee="\n";return re=U.subParser("outdent")(re,I,S),re=U.subParser("encodeCode")(re,I,S),re=(re=(re=U.subParser("detab")(re,I,S)).replace(/^\n+/g,"")).replace(/\n+$/g,""),I.omitExtraWLInCodeBlocks&&(Ee=""),re="<pre><code>"+re+Ee+"</code></pre>",U.subParser("hashBlock")(re,I,S)+xe})).replace(/\xa80/,""),S.converter._dispatch("codeBlocks.after",g,I,S)}),U.subParser("codeSpans",function(g,I,S){"use strict";return typeof(g=S.converter._dispatch("codeSpans.before",g,I,S))>"u"&&(g=""),g=g.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(H,Q,X,Y){var re=Y;return re=(re=re.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),re=Q+"<code>"+(re=U.subParser("encodeCode")(re,I,S))+"</code>",U.subParser("hashHTMLSpans")(re,I,S)}),S.converter._dispatch("codeSpans.after",g,I,S)}),U.subParser("completeHTMLDocument",function(g,I,S){"use strict";if(!I.completeHTMLDocument)return g;g=S.converter._dispatch("completeHTMLDocument.before",g,I,S);var H="html",Q="<!DOCTYPE HTML>\n",X="",Y='<meta charset="utf-8">\n',re="",xe="";for(var Ee in typeof S.metadata.parsed.doctype<"u"&&(Q="<!DOCTYPE "+S.metadata.parsed.doctype+">\n",("html"===(H=S.metadata.parsed.doctype.toString().toLowerCase())||"html5"===H)&&(Y='<meta charset="utf-8">')),S.metadata.parsed)if(S.metadata.parsed.hasOwnProperty(Ee))switch(Ee.toLowerCase()){case"doctype":break;case"title":X="<title>"+S.metadata.parsed.title+"</title>\n";break;case"charset":Y="html"===H||"html5"===H?'<meta charset="'+S.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+S.metadata.parsed.charset+'">\n';break;case"language":case"lang":re=' lang="'+S.metadata.parsed[Ee]+'"',xe+='<meta name="'+Ee+'" content="'+S.metadata.parsed[Ee]+'">\n';break;default:xe+='<meta name="'+Ee+'" content="'+S.metadata.parsed[Ee]+'">\n'}return g=Q+"<html"+re+">\n<head>\n"+X+Y+xe+"</head>\n<body>\n"+g.trim()+"\n</body>\n</html>",S.converter._dispatch("completeHTMLDocument.after",g,I,S)}),U.subParser("detab",function(g,I,S){"use strict";return g=(g=(g=(g=(g=(g=S.converter._dispatch("detab.before",g,I,S)).replace(/\t(?=\t)/g,"    ")).replace(/\t/g,"\xa8A\xa8B")).replace(/\xa8B(.+?)\xa8A/g,function(H,Q){for(var X=Q,Y=4-X.length%4,re=0;re<Y;re++)X+=" ";return X})).replace(/\xa8A/g,"    ")).replace(/\xa8B/g,""),S.converter._dispatch("detab.after",g,I,S)}),U.subParser("ellipsis",function(g,I,S){"use strict";return I.ellipsis&&(g=(g=S.converter._dispatch("ellipsis.before",g,I,S)).replace(/\.\.\./g,"\u2026"),g=S.converter._dispatch("ellipsis.after",g,I,S)),g}),U.subParser("emoji",function(g,I,S){"use strict";return I.emoji?(g=(g=S.converter._dispatch("emoji.before",g,I,S)).replace(/:([\S]+?):/g,function(Q,X){return U.helper.emojis.hasOwnProperty(X)?U.helper.emojis[X]:Q}),S.converter._dispatch("emoji.after",g,I,S)):g}),U.subParser("encodeAmpsAndAngles",function(g,I,S){"use strict";return g=(g=(g=(g=(g=S.converter._dispatch("encodeAmpsAndAngles.before",g,I,S)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;")).replace(/<(?![a-z\/?$!])/gi,"&lt;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;"),S.converter._dispatch("encodeAmpsAndAngles.after",g,I,S)}),U.subParser("encodeBackslashEscapes",function(g,I,S){"use strict";return g=(g=(g=S.converter._dispatch("encodeBackslashEscapes.before",g,I,S)).replace(/\\(\\)/g,U.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,U.helper.escapeCharactersCallback),S.converter._dispatch("encodeBackslashEscapes.after",g,I,S)}),U.subParser("encodeCode",function(g,I,S){"use strict";return g=(g=S.converter._dispatch("encodeCode.before",g,I,S)).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,U.helper.escapeCharactersCallback),S.converter._dispatch("encodeCode.after",g,I,S)}),U.subParser("escapeSpecialCharsWithinTagAttributes",function(g,I,S){"use strict";return g=(g=(g=S.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",g,I,S)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(X){return X.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,U.helper.escapeCharactersCallback)})).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(X){return X.replace(/([\\`*_~=|])/g,U.helper.escapeCharactersCallback)}),S.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",g,I,S)}),U.subParser("githubCodeBlocks",function(g,I,S){"use strict";return I.ghCodeBlocks?(g=S.converter._dispatch("githubCodeBlocks.before",g,I,S),g=(g=(g+="\xa80").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(H,Q,X,Y){var re=I.omitExtraWLInCodeBlocks?"":"\n";return Y=U.subParser("encodeCode")(Y,I,S),Y="<pre><code"+(X?' class="'+X+" language-"+X+'"':"")+">"+(Y=(Y=(Y=U.subParser("detab")(Y,I,S)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+re+"</code></pre>",Y=U.subParser("hashBlock")(Y,I,S),"\n\n\xa8G"+(S.ghCodeBlocks.push({text:H,codeblock:Y})-1)+"G\n\n"})).replace(/\xa80/,""),S.converter._dispatch("githubCodeBlocks.after",g,I,S)):g}),U.subParser("hashBlock",function(g,I,S){"use strict";return g=(g=S.converter._dispatch("hashBlock.before",g,I,S)).replace(/(^\n+|\n+$)/g,""),g="\n\n\xa8K"+(S.gHtmlBlocks.push(g)-1)+"K\n\n",S.converter._dispatch("hashBlock.after",g,I,S)}),U.subParser("hashCodeTags",function(g,I,S){"use strict";return g=S.converter._dispatch("hashCodeTags.before",g,I,S),g=U.helper.replaceRecursiveRegExp(g,function(Q,X,Y,re){var xe=Y+U.subParser("encodeCode")(X,I,S)+re;return"\xa8C"+(S.gHtmlSpans.push(xe)-1)+"C"},"<code\\b[^>]*>","</code>","gim"),S.converter._dispatch("hashCodeTags.after",g,I,S)}),U.subParser("hashElement",function(g,I,S){"use strict";return function(H,Q){var X=Q;return X=(X=(X=X.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),"\n\n\xa8K"+(S.gHtmlBlocks.push(X)-1)+"K\n\n"}}),U.subParser("hashHTMLBlocks",function(g,I,S){"use strict";g=S.converter._dispatch("hashHTMLBlocks.before",g,I,S);var H=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],Q=function(G,ve,Fe,Ue){var ut=G;return-1!==Fe.search(/\bmarkdown\b/)&&(ut=Fe+S.converter.makeHtml(ve)+Ue),"\n\n\xa8K"+(S.gHtmlBlocks.push(ut)-1)+"K\n\n"};I.backslashEscapesHTMLTags&&(g=g.replace(/\\<(\/?[^>]+?)>/g,function(G,ve){return"&lt;"+ve+"&gt;"}));for(var X=0;X<H.length;++X)for(var Y,re=new RegExp("^ {0,3}(<"+H[X]+"\\b[^>]*>)","im"),xe="<"+H[X]+"\\b[^>]*>",Ee="</"+H[X]+">";-1!==(Y=U.helper.regexIndexOf(g,re));){var be=U.helper.splitAtIndex(g,Y),we=U.helper.replaceRecursiveRegExp(be[1],Q,xe,Ee,"im");if(we===be[1])break;g=be[0].concat(we)}return g=g.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,U.subParser("hashElement")(g,I,S)),g=(g=U.helper.replaceRecursiveRegExp(g,function(G){return"\n\n\xa8K"+(S.gHtmlBlocks.push(G)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,U.subParser("hashElement")(g,I,S)),S.converter._dispatch("hashHTMLBlocks.after",g,I,S)}),U.subParser("hashHTMLSpans",function(g,I,S){"use strict";function H(Q){return"\xa8C"+(S.gHtmlSpans.push(Q)-1)+"C"}return g=(g=(g=(g=(g=S.converter._dispatch("hashHTMLSpans.before",g,I,S)).replace(/<[^>]+?\/>/gi,function(Q){return H(Q)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(Q){return H(Q)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(Q){return H(Q)})).replace(/<[^>]+?>/gi,function(Q){return H(Q)}),S.converter._dispatch("hashHTMLSpans.after",g,I,S)}),U.subParser("unhashHTMLSpans",function(g,I,S){"use strict";g=S.converter._dispatch("unhashHTMLSpans.before",g,I,S);for(var H=0;H<S.gHtmlSpans.length;++H){for(var Q=S.gHtmlSpans[H],X=0;/\xa8C(\d+)C/.test(Q);){var Y=RegExp.$1;if(Q=Q.replace("\xa8C"+Y+"C",S.gHtmlSpans[Y]),10===X){console.error("maximum nesting of 10 spans reached!!!");break}++X}g=g.replace("\xa8C"+H+"C",Q)}return S.converter._dispatch("unhashHTMLSpans.after",g,I,S)}),U.subParser("hashPreCodeTags",function(g,I,S){"use strict";return g=S.converter._dispatch("hashPreCodeTags.before",g,I,S),g=U.helper.replaceRecursiveRegExp(g,function(Q,X,Y,re){var xe=Y+U.subParser("encodeCode")(X,I,S)+re;return"\n\n\xa8G"+(S.ghCodeBlocks.push({text:Q,codeblock:xe})-1)+"G\n\n"},"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),S.converter._dispatch("hashPreCodeTags.after",g,I,S)}),U.subParser("headers",function(g,I,S){"use strict";g=S.converter._dispatch("headers.before",g,I,S);var H=isNaN(parseInt(I.headerLevelStart))?1:parseInt(I.headerLevelStart),X=I.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;function re(xe){var Ee,be;if(I.customizedHeaderId){var we=xe.match(/\{([^{]+?)}\s*$/);we&&we[1]&&(xe=we[1])}return Ee=xe,be=U.helper.isString(I.prefixHeaderId)?I.prefixHeaderId:!0===I.prefixHeaderId?"section-":"",I.rawPrefixHeaderId||(Ee=be+Ee),Ee=I.ghCompatibleHeaderId?Ee.replace(/ /g,"-").replace(/&amp;/g,"").replace(/\xa8T/g,"").replace(/\xa8D/g,"").replace(/[&+$,\/:;=?@"#{}|^\xa8~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():I.rawHeaderId?Ee.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/\xa8T/g,"\xa8").replace(/\xa8D/g,"$").replace(/["']/g,"-").toLowerCase():Ee.replace(/[^\w]/g,"").toLowerCase(),I.rawPrefixHeaderId&&(Ee=be+Ee),S.hashLinkCounts[Ee]?Ee=Ee+"-"+S.hashLinkCounts[Ee]++:S.hashLinkCounts[Ee]=1,Ee}return g=(g=(g=g.replace(I.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,function(xe,Ee){var be=U.subParser("spanGamut")(Ee,I,S),we=I.noHeaderId?"":' id="'+re(Ee)+'"',ve="<h"+H+we+">"+be+"</h"+H+">";return U.subParser("hashBlock")(ve,I,S)})).replace(X,function(xe,Ee){var be=U.subParser("spanGamut")(Ee,I,S),we=I.noHeaderId?"":' id="'+re(Ee)+'"',G=H+1,ve="<h"+G+we+">"+be+"</h"+G+">";return U.subParser("hashBlock")(ve,I,S)})).replace(I.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm,function(xe,Ee,be){var we=be;I.customizedHeaderId&&(we=be.replace(/\s?\{([^{]+?)}\s*$/,""));var G=U.subParser("spanGamut")(we,I,S),ve=I.noHeaderId?"":' id="'+re(be)+'"',Fe=H-1+Ee.length,Ue="<h"+Fe+ve+">"+G+"</h"+Fe+">";return U.subParser("hashBlock")(Ue,I,S)}),S.converter._dispatch("headers.after",g,I,S)}),U.subParser("horizontalRule",function(g,I,S){"use strict";g=S.converter._dispatch("horizontalRule.before",g,I,S);var H=U.subParser("hashBlock")("<hr />",I,S);return g=(g=(g=g.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,H)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,H)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,H),S.converter._dispatch("horizontalRule.after",g,I,S)}),U.subParser("images",function(g,I,S){"use strict";function Ee(be,we,G,ve,Fe,Ue,ut,Ye){var $n=S.gUrls,lt=S.gTitles,Xr=S.gDimensions;if(G=G.toLowerCase(),Ye||(Ye=""),be.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)ve="";else if(""===ve||null===ve){if((""===G||null===G)&&(G=we.toLowerCase().replace(/ ?\n/g," ")),ve="#"+G,U.helper.isUndefined($n[G]))return be;ve=$n[G],U.helper.isUndefined(lt[G])||(Ye=lt[G]),U.helper.isUndefined(Xr[G])||(Fe=Xr[G].width,Ue=Xr[G].height)}we=we.replace(/"/g,"&quot;").replace(U.helper.regexes.asteriskDashAndColon,U.helper.escapeCharactersCallback);var zn='<img src="'+(ve=ve.replace(U.helper.regexes.asteriskDashAndColon,U.helper.escapeCharactersCallback))+'" alt="'+we+'"';return Ye&&U.helper.isString(Ye)&&(zn+=' title="'+(Ye=Ye.replace(/"/g,"&quot;").replace(U.helper.regexes.asteriskDashAndColon,U.helper.escapeCharactersCallback))+'"'),Fe&&Ue&&(zn+=' width="'+(Fe="*"===Fe?"auto":Fe)+'"',zn+=' height="'+(Ue="*"===Ue?"auto":Ue)+'"'),zn+" />"}return g=(g=(g=(g=(g=(g=S.converter._dispatch("images.before",g,I,S)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,Ee)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function xe(be,we,G,ve,Fe,Ue,ut,Ye){return Ee(be,we,G,ve=ve.replace(/\s/g,""),Fe,Ue,0,Ye)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,Ee)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,Ee)).replace(/!\[([^\[\]]+)]()()()()()/g,Ee),S.converter._dispatch("images.after",g,I,S)}),U.subParser("italicsAndBold",function(g,I,S){"use strict";function H(Q,X,Y){return X+Q+Y}return g=S.converter._dispatch("italicsAndBold.before",g,I,S),g=I.literalMidWordUnderscores?(g=(g=g.replace(/\b___(\S[\s\S]*?)___\b/g,function(Q,X){return H(X,"<strong><em>","</em></strong>")})).replace(/\b__(\S[\s\S]*?)__\b/g,function(Q,X){return H(X,"<strong>","</strong>")})).replace(/\b_(\S[\s\S]*?)_\b/g,function(Q,X){return H(X,"<em>","</em>")}):(g=(g=g.replace(/___(\S[\s\S]*?)___/g,function(Q,X){return/\S$/.test(X)?H(X,"<strong><em>","</em></strong>"):Q})).replace(/__(\S[\s\S]*?)__/g,function(Q,X){return/\S$/.test(X)?H(X,"<strong>","</strong>"):Q})).replace(/_([^\s_][\s\S]*?)_/g,function(Q,X){return/\S$/.test(X)?H(X,"<em>","</em>"):Q}),g=I.literalMidWordAsterisks?(g=(g=g.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(Q,X,Y){return H(Y,X+"<strong><em>","</em></strong>")})).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(Q,X,Y){return H(Y,X+"<strong>","</strong>")})).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(Q,X,Y){return H(Y,X+"<em>","</em>")}):(g=(g=g.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(Q,X){return/\S$/.test(X)?H(X,"<strong><em>","</em></strong>"):Q})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(Q,X){return/\S$/.test(X)?H(X,"<strong>","</strong>"):Q})).replace(/\*([^\s*][\s\S]*?)\*/g,function(Q,X){return/\S$/.test(X)?H(X,"<em>","</em>"):Q}),S.converter._dispatch("italicsAndBold.after",g,I,S)}),U.subParser("lists",function(g,I,S){"use strict";function H(Y,re){S.gListLevel++,Y=Y.replace(/\n{2,}$/,"\n");var xe=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(\xa80| {0,3}([*+-]|\d+[.])[ \t]+))/gm,Ee=/\n[ \t]*\n(?!\xa80)/.test(Y+="\xa80");return I.disableForced4SpacesIndentedSublists&&(xe=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(\xa80|\2([*+-]|\d+[.])[ \t]+))/gm),Y=(Y=Y.replace(xe,function(be,we,G,ve,Fe,Ue,ut){ut=ut&&""!==ut.trim();var Ye=U.subParser("outdent")(Fe,I,S),$n="";return Ue&&I.tasklists&&($n=' class="task-list-item" style="list-style-type: none;"',Ye=Ye.replace(/^[ \t]*\[(x|X| )?]/m,function(){var lt='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return ut&&(lt+=" checked"),lt+">"})),Ye=Ye.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(lt){return"\xa8A"+lt}),we||Ye.search(/\n{2,}/)>-1?(Ye=U.subParser("githubCodeBlocks")(Ye,I,S),Ye=U.subParser("blockGamut")(Ye,I,S)):(Ye=(Ye=U.subParser("lists")(Ye,I,S)).replace(/\n$/,""),Ye=(Ye=U.subParser("hashHTMLBlocks")(Ye,I,S)).replace(/\n\n+/g,"\n\n"),Ye=Ee?U.subParser("paragraphs")(Ye,I,S):U.subParser("spanGamut")(Ye,I,S)),"<li"+$n+">"+(Ye=Ye.replace("\xa8A",""))+"</li>\n"})).replace(/\xa80/g,""),S.gListLevel--,re&&(Y=Y.replace(/\s+$/,"")),Y}function Q(Y,re){if("ol"===re){var xe=Y.match(/^ *(\d+)\./);if(xe&&"1"!==xe[1])return' start="'+xe[1]+'"'}return""}function X(Y,re,xe){var Ee=I.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,be=I.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,we="ul"===re?Ee:be,G="";if(-1!==Y.search(we))!function Fe(Ue){var ut=Ue.search(we),Ye=Q(Y,re);-1!==ut?(G+="\n\n<"+re+Ye+">\n"+H(Ue.slice(0,ut),!!xe)+"</"+re+">\n",we="ul"==(re="ul"===re?"ol":"ul")?Ee:be,Fe(Ue.slice(ut))):G+="\n\n<"+re+Ye+">\n"+H(Ue,!!xe)+"</"+re+">\n"}(Y);else{var ve=Q(Y,re);G="\n\n<"+re+ve+">\n"+H(Y,!!xe)+"</"+re+">\n"}return G}return g=S.converter._dispatch("lists.before",g,I,S),g+="\xa80",g=(g=S.gListLevel?g.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(\xa80|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(Y,re,xe){return X(re,xe.search(/[*+-]/g)>-1?"ul":"ol",!0)}):g.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(\xa80|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(Y,re,xe,Ee){return X(xe,Ee.search(/[*+-]/g)>-1?"ul":"ol",!1)})).replace(/\xa80/,""),S.converter._dispatch("lists.after",g,I,S)}),U.subParser("metadata",function(g,I,S){"use strict";if(!I.metadata)return g;function H(Q){S.metadata.raw=Q,(Q=(Q=Q.replace(/&/g,"&amp;").replace(/"/g,"&quot;")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,function(X,Y,re){return S.metadata.parsed[Y]=re,""})}return g=(g=(g=(g=S.converter._dispatch("metadata.before",g,I,S)).replace(/^\s*\xab\xab\xab+(\S*?)\n([\s\S]+?)\n\xbb\xbb\xbb+\n/,function(Q,X,Y){return H(Y),"\xa8M"})).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(Q,X,Y){return X&&(S.metadata.format=X),H(Y),"\xa8M"})).replace(/\xa8M/g,""),S.converter._dispatch("metadata.after",g,I,S)}),U.subParser("outdent",function(g,I,S){"use strict";return g=(g=(g=S.converter._dispatch("outdent.before",g,I,S)).replace(/^(\t|[ ]{1,4})/gm,"\xa80")).replace(/\xa80/g,""),S.converter._dispatch("outdent.after",g,I,S)}),U.subParser("paragraphs",function(g,I,S){"use strict";for(var H=(g=(g=(g=S.converter._dispatch("paragraphs.before",g,I,S)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),Q=[],X=H.length,Y=0;Y<X;Y++){var re=H[Y];re.search(/\xa8(K|G)(\d+)\1/g)>=0?Q.push(re):re.search(/\S/)>=0&&(re=(re=U.subParser("spanGamut")(re,I,S)).replace(/^([ \t]*)/g,"<p>"),Q.push(re+="</p>"))}for(X=Q.length,Y=0;Y<X;Y++){for(var xe="",Ee=Q[Y],be=!1;/\xa8(K|G)(\d+)\1/.test(Ee);){var we=RegExp.$1,G=RegExp.$2;xe=(xe="K"===we?S.gHtmlBlocks[G]:be?U.subParser("encodeCode")(S.ghCodeBlocks[G].text,I,S):S.ghCodeBlocks[G].codeblock).replace(/\$/g,"$$$$"),Ee=Ee.replace(/(\n\n)?\xa8(K|G)\d+\2(\n\n)?/,xe),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(Ee)&&(be=!0)}Q[Y]=Ee}return g=(g=(g=Q.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),S.converter._dispatch("paragraphs.after",g,I,S)}),U.subParser("runExtension",function(g,I,S,H){"use strict";if(g.filter)I=g.filter(I,H.converter,S);else if(g.regex){var Q=g.regex;Q instanceof RegExp||(Q=new RegExp(Q,"g")),I=I.replace(Q,g.replace)}return I}),U.subParser("spanGamut",function(g,I,S){"use strict";return g=S.converter._dispatch("spanGamut.before",g,I,S),g=U.subParser("codeSpans")(g,I,S),g=U.subParser("escapeSpecialCharsWithinTagAttributes")(g,I,S),g=U.subParser("encodeBackslashEscapes")(g,I,S),g=U.subParser("images")(g,I,S),g=U.subParser("anchors")(g,I,S),g=U.subParser("autoLinks")(g,I,S),g=U.subParser("simplifiedAutoLinks")(g,I,S),g=U.subParser("emoji")(g,I,S),g=U.subParser("underline")(g,I,S),g=U.subParser("italicsAndBold")(g,I,S),g=U.subParser("strikethrough")(g,I,S),g=U.subParser("ellipsis")(g,I,S),g=U.subParser("hashHTMLSpans")(g,I,S),g=U.subParser("encodeAmpsAndAngles")(g,I,S),I.simpleLineBreaks?/\n\n\xa8K/.test(g)||(g=g.replace(/\n+/g,"<br />\n")):g=g.replace(/  +\n/g,"<br />\n"),S.converter._dispatch("spanGamut.after",g,I,S)}),U.subParser("strikethrough",function(g,I,S){"use strict";return I.strikethrough&&(g=(g=S.converter._dispatch("strikethrough.before",g,I,S)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(Q,X){return function H(Q){return I.simplifiedAutoLink&&(Q=U.subParser("simplifiedAutoLinks")(Q,I,S)),"<del>"+Q+"</del>"}(X)}),g=S.converter._dispatch("strikethrough.after",g,I,S)),g}),U.subParser("stripLinkDefinitions",function(g,I,S){"use strict";var X=function(Y,re,xe,Ee,be,we,G){return re=re.toLowerCase(),g.toLowerCase().split(re).length-1<2?Y:(S.gUrls[re]=xe.match(/^data:.+?\/.+?;base64,/)?xe.replace(/\s/g,""):U.subParser("encodeAmpsAndAngles")(xe,I,S),we?we+G:(G&&(S.gTitles[re]=G.replace(/"|'/g,"&quot;")),I.parseImgDimensions&&Ee&&be&&(S.gDimensions[re]={width:Ee,height:be}),""))};return g=(g=(g=(g+="\xa80").replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=\xa80)|(?=\n\[))/gm,X)).replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=\xa80))/gm,X)).replace(/\xa80/,"")}),U.subParser("tables",function(g,I,S){"use strict";if(!I.tables)return g;function X(be){return/^:[ \t]*--*$/.test(be)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(be)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(be)?' style="text-align:center;"':""}function Y(be,we){var G="";return be=be.trim(),(I.tablesHeaderId||I.tableHeaderId)&&(G=' id="'+be.replace(/ /g,"_").toLowerCase()+'"'),"<th"+G+we+">"+(be=U.subParser("spanGamut")(be,I,S))+"</th>\n"}function re(be,we){return"<td"+we+">"+U.subParser("spanGamut")(be,I,S)+"</td>\n"}function Ee(be){var we,G=be.split("\n");for(we=0;we<G.length;++we)/^ {0,3}\|/.test(G[we])&&(G[we]=G[we].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(G[we])&&(G[we]=G[we].replace(/\|[ \t]*$/,"")),G[we]=U.subParser("codeSpans")(G[we],I,S);var ve=G[0].split("|").map(function(zn){return zn.trim()}),Fe=G[1].split("|").map(function(zn){return zn.trim()}),Ue=[],ut=[],Ye=[],$n=[];for(G.shift(),G.shift(),we=0;we<G.length;++we)""!==G[we].trim()&&Ue.push(G[we].split("|").map(function(zn){return zn.trim()}));if(ve.length<Fe.length)return be;for(we=0;we<Fe.length;++we)Ye.push(X(Fe[we]));for(we=0;we<ve.length;++we)U.helper.isUndefined(Ye[we])&&(Ye[we]=""),ut.push(Y(ve[we],Ye[we]));for(we=0;we<Ue.length;++we){for(var lt=[],Xr=0;Xr<ut.length;++Xr)U.helper.isUndefined(Ue[we][Xr]),lt.push(re(Ue[we][Xr],Ye[Xr]));$n.push(lt)}return function xe(be,we){for(var G="<table>\n<thead>\n<tr>\n",ve=be.length,Fe=0;Fe<ve;++Fe)G+=be[Fe];for(G+="</tr>\n</thead>\n<tbody>\n",Fe=0;Fe<we.length;++Fe){G+="<tr>\n";for(var Ue=0;Ue<ve;++Ue)G+=we[Fe][Ue];G+="</tr>\n"}return G+"</tbody>\n</table>\n"}(ut,$n)}return g=(g=(g=(g=S.converter._dispatch("tables.before",g,I,S)).replace(/\\(\|)/g,U.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|\xa80)/gm,Ee)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|\xa80)/gm,Ee),S.converter._dispatch("tables.after",g,I,S)}),U.subParser("underline",function(g,I,S){"use strict";return I.underline&&(g=S.converter._dispatch("underline.before",g,I,S),g=(g=I.literalMidWordUnderscores?(g=g.replace(/\b___(\S[\s\S]*?)___\b/g,function(H,Q){return"<u>"+Q+"</u>"})).replace(/\b__(\S[\s\S]*?)__\b/g,function(H,Q){return"<u>"+Q+"</u>"}):(g=g.replace(/___(\S[\s\S]*?)___/g,function(H,Q){return/\S$/.test(Q)?"<u>"+Q+"</u>":H})).replace(/__(\S[\s\S]*?)__/g,function(H,Q){return/\S$/.test(Q)?"<u>"+Q+"</u>":H})).replace(/(_)/g,U.helper.escapeCharactersCallback),g=S.converter._dispatch("underline.after",g,I,S)),g}),U.subParser("unescapeSpecialChars",function(g,I,S){"use strict";return g=(g=S.converter._dispatch("unescapeSpecialChars.before",g,I,S)).replace(/\xa8E(\d+)E/g,function(H,Q){var X=parseInt(Q);return String.fromCharCode(X)}),S.converter._dispatch("unescapeSpecialChars.after",g,I,S)}),U.subParser("makeMarkdown.blockquote",function(g,I){"use strict";var S="";if(g.hasChildNodes())for(var H=g.childNodes,Q=H.length,X=0;X<Q;++X){var Y=U.subParser("makeMarkdown.node")(H[X],I);""!==Y&&(S+=Y)}return"> "+(S=S.trim()).split("\n").join("\n> ")}),U.subParser("makeMarkdown.codeBlock",function(g,I){"use strict";var S=g.getAttribute("language"),H=g.getAttribute("precodenum");return"```"+S+"\n"+I.preList[H]+"\n```"}),U.subParser("makeMarkdown.codeSpan",function(g){"use strict";return"`"+g.innerHTML+"`"}),U.subParser("makeMarkdown.emphasis",function(g,I){"use strict";var S="";if(g.hasChildNodes()){S+="*";for(var H=g.childNodes,Q=H.length,X=0;X<Q;++X)S+=U.subParser("makeMarkdown.node")(H[X],I);S+="*"}return S}),U.subParser("makeMarkdown.header",function(g,I,S){"use strict";var H=new Array(S+1).join("#"),Q="";if(g.hasChildNodes()){Q=H+" ";for(var X=g.childNodes,Y=X.length,re=0;re<Y;++re)Q+=U.subParser("makeMarkdown.node")(X[re],I)}return Q}),U.subParser("makeMarkdown.hr",function(){"use strict";return"---"}),U.subParser("makeMarkdown.image",function(g){"use strict";var I="";return g.hasAttribute("src")&&(I+="!["+g.getAttribute("alt")+"](",I+="<"+g.getAttribute("src")+">",g.hasAttribute("width")&&g.hasAttribute("height")&&(I+=" ="+g.getAttribute("width")+"x"+g.getAttribute("height")),g.hasAttribute("title")&&(I+=' "'+g.getAttribute("title")+'"'),I+=")"),I}),U.subParser("makeMarkdown.links",function(g,I){"use strict";var S="";if(g.hasChildNodes()&&g.hasAttribute("href")){var H=g.childNodes,Q=H.length;S="[";for(var X=0;X<Q;++X)S+=U.subParser("makeMarkdown.node")(H[X],I);S+="](",S+="<"+g.getAttribute("href")+">",g.hasAttribute("title")&&(S+=' "'+g.getAttribute("title")+'"'),S+=")"}return S}),U.subParser("makeMarkdown.list",function(g,I,S){"use strict";var H="";if(!g.hasChildNodes())return"";for(var Q=g.childNodes,X=Q.length,Y=g.getAttribute("start")||1,re=0;re<X;++re)typeof Q[re].tagName>"u"||"li"!==Q[re].tagName.toLowerCase()||(H+=("ol"===S?Y.toString()+". ":"- ")+U.subParser("makeMarkdown.listItem")(Q[re],I),++Y);return(H+="\n\x3c!-- --\x3e\n").trim()}),U.subParser("makeMarkdown.listItem",function(g,I){"use strict";for(var S="",H=g.childNodes,Q=H.length,X=0;X<Q;++X)S+=U.subParser("makeMarkdown.node")(H[X],I);return/\n$/.test(S)?S=S.split("\n").join("\n    ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):S+="\n",S}),U.subParser("makeMarkdown.node",function(g,I,S){"use strict";S=S||!1;var H="";if(3===g.nodeType)return U.subParser("makeMarkdown.txt")(g,I);if(8===g.nodeType)return"\x3c!--"+g.data+"--\x3e\n\n";if(1!==g.nodeType)return"";switch(g.tagName.toLowerCase()){case"h1":S||(H=U.subParser("makeMarkdown.header")(g,I,1)+"\n\n");break;case"h2":S||(H=U.subParser("makeMarkdown.header")(g,I,2)+"\n\n");break;case"h3":S||(H=U.subParser("makeMarkdown.header")(g,I,3)+"\n\n");break;case"h4":S||(H=U.subParser("makeMarkdown.header")(g,I,4)+"\n\n");break;case"h5":S||(H=U.subParser("makeMarkdown.header")(g,I,5)+"\n\n");break;case"h6":S||(H=U.subParser("makeMarkdown.header")(g,I,6)+"\n\n");break;case"p":S||(H=U.subParser("makeMarkdown.paragraph")(g,I)+"\n\n");break;case"blockquote":S||(H=U.subParser("makeMarkdown.blockquote")(g,I)+"\n\n");break;case"hr":S||(H=U.subParser("makeMarkdown.hr")(g,I)+"\n\n");break;case"ol":S||(H=U.subParser("makeMarkdown.list")(g,I,"ol")+"\n\n");break;case"ul":S||(H=U.subParser("makeMarkdown.list")(g,I,"ul")+"\n\n");break;case"precode":S||(H=U.subParser("makeMarkdown.codeBlock")(g,I)+"\n\n");break;case"pre":S||(H=U.subParser("makeMarkdown.pre")(g,I)+"\n\n");break;case"table":S||(H=U.subParser("makeMarkdown.table")(g,I)+"\n\n");break;case"code":H=U.subParser("makeMarkdown.codeSpan")(g,I);break;case"em":case"i":H=U.subParser("makeMarkdown.emphasis")(g,I);break;case"strong":case"b":H=U.subParser("makeMarkdown.strong")(g,I);break;case"del":H=U.subParser("makeMarkdown.strikethrough")(g,I);break;case"a":H=U.subParser("makeMarkdown.links")(g,I);break;case"img":H=U.subParser("makeMarkdown.image")(g,I);break;default:H=g.outerHTML+"\n\n"}return H}),U.subParser("makeMarkdown.paragraph",function(g,I){"use strict";var S="";if(g.hasChildNodes())for(var H=g.childNodes,Q=H.length,X=0;X<Q;++X)S+=U.subParser("makeMarkdown.node")(H[X],I);return S.trim()}),U.subParser("makeMarkdown.pre",function(g,I){"use strict";var S=g.getAttribute("prenum");return"<pre>"+I.preList[S]+"</pre>"}),U.subParser("makeMarkdown.strikethrough",function(g,I){"use strict";var S="";if(g.hasChildNodes()){S+="~~";for(var H=g.childNodes,Q=H.length,X=0;X<Q;++X)S+=U.subParser("makeMarkdown.node")(H[X],I);S+="~~"}return S}),U.subParser("makeMarkdown.strong",function(g,I){"use strict";var S="";if(g.hasChildNodes()){S+="**";for(var H=g.childNodes,Q=H.length,X=0;X<Q;++X)S+=U.subParser("makeMarkdown.node")(H[X],I);S+="**"}return S}),U.subParser("makeMarkdown.table",function(g,I){"use strict";var Y,re,S="",H=[[],[]],Q=g.querySelectorAll("thead>tr>th"),X=g.querySelectorAll("tbody>tr");for(Y=0;Y<Q.length;++Y){var xe=U.subParser("makeMarkdown.tableCell")(Q[Y],I),Ee="---";if(Q[Y].hasAttribute("style"))switch(Q[Y].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":Ee=":---";break;case"text-align:right;":Ee="---:";break;case"text-align:center;":Ee=":---:"}H[0][Y]=xe.trim(),H[1][Y]=Ee}for(Y=0;Y<X.length;++Y){var we=H.push([])-1,G=X[Y].getElementsByTagName("td");for(re=0;re<Q.length;++re){var ve=" ";typeof G[re]<"u"&&(ve=U.subParser("makeMarkdown.tableCell")(G[re],I)),H[we].push(ve)}}var Fe=3;for(Y=0;Y<H.length;++Y)for(re=0;re<H[Y].length;++re){var Ue=H[Y][re].length;Ue>Fe&&(Fe=Ue)}for(Y=0;Y<H.length;++Y){for(re=0;re<H[Y].length;++re)H[Y][re]=1===Y?":"===H[Y][re].slice(-1)?U.helper.padEnd(H[Y][re].slice(-1),Fe-1,"-")+":":U.helper.padEnd(H[Y][re],Fe,"-"):U.helper.padEnd(H[Y][re],Fe);S+="| "+H[Y].join(" | ")+" |\n"}return S.trim()}),U.subParser("makeMarkdown.tableCell",function(g,I){"use strict";var S="";if(!g.hasChildNodes())return"";for(var H=g.childNodes,Q=H.length,X=0;X<Q;++X)S+=U.subParser("makeMarkdown.node")(H[X],I,!0);return S.trim()}),U.subParser("makeMarkdown.txt",function(g){"use strict";var I=g.nodeValue;return I=(I=I.replace(/ +/g," ")).replace(/\xa8NBSP;/g," "),(I=(I=(I=(I=(I=(I=(I=(I=U.helper.unescapeHTMLEntities(I)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}),void 0!==(Qo=function(){"use strict";return U}.call(Zu,Bl,Zu,Vl))&&(Vl.exports=Qo)}).call(this)}},Vl=>{Vl(Vl.s=697)}]);