/*! For license information please see main.f6ca1d24.js.LICENSE.txt */ (()=>{var e,t,n={3925:(e,t,n)=>{"use strict";n.d(t,{C4:()=>x,EW:()=>He,Gc:()=>Se,IG:()=>Ne,IJ:()=>Ue,KR:()=>De,Kh:()=>ke,Pr:()=>qe,R1:()=>We,X2:()=>c,bl:()=>E,fE:()=>Le,g8:()=>Ae,hV:()=>Qe,hZ:()=>M,i9:()=>Fe,ju:()=>Ie,lJ:()=>Me,qA:()=>F,tB:()=>Te,u4:()=>N,uY:()=>a,ux:()=>Re,wB:()=>Ge,yC:()=>s});var o=n(9949);let r,i;class s{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=r,!e&&r&&(this.index=(r.scopes||(r.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e0)return;let e;for(;u;){let t=u;for(u=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function f(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function m(e){let t,n=e.depsTail,o=n;for(;o;){const e=o.prevDep;-1===o.version?(o===n&&(n=e),v(o),_(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=t,e.depsTail=n}function g(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&b(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function b(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===S)return;e.globalVersion=S;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!g(e))return void(e.flags&=-3);const n=i,r=y;i=e,y=!0;try{f(e);const n=e.fn(e._value);(0===t.version||(0,o.$H)(n,e._value))&&(e._value=n,t.version++)}catch(e){throw t.version++,e}finally{i=n,y=r,m(e),e.flags&=-3}}function v(e){const{dep:t,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)v(e)}}function _(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let y=!0;const w=[];function x(){w.push(y),y=!1}function E(){const e=w.pop();y=void 0===e||e}function k(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=i;i=void 0;try{t()}finally{i=e}}}let S=0;class T{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class C{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!i||!y||i===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==i)t=this.activeLink=new T(i,this),i.deps?(t.prevDep=i.depsTail,i.depsTail.nextDep=t,i.depsTail=t):i.deps=i.depsTail=t,4&i.flags&&A(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=i.depsTail,t.nextDep=void 0,i.depsTail.nextDep=t,i.depsTail=t,i.deps===t&&(i.deps=e)}return t}trigger(e){this.version++,S++,this.notify(e)}notify(e){p();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{h()}}}function A(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)A(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const O=new WeakMap,L=Symbol(""),I=Symbol(""),R=Symbol("");function N(e,t,n){if(y&&i){let t=O.get(e);t||O.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=new C),o.track()}}function M(e,t,n,r,i,s){const a=O.get(e);if(!a)return void S++;const l=e=>{e&&e.trigger()};if(p(),"clear"===t)a.forEach(l);else{const i=(0,o.cy)(e),s=i&&(0,o.yI)(n);if(i&&"length"===n){const e=Number(r);a.forEach(((t,n)=>{("length"===n||n===R||!(0,o.Bm)(n)&&n>=e)&&l(t)}))}else switch(void 0!==n&&l(a.get(n)),s&&l(a.get(R)),t){case"add":i?s&&l(a.get("length")):(l(a.get(L)),(0,o.CE)(e)&&l(a.get(I)));break;case"delete":i||(l(a.get(L)),(0,o.CE)(e)&&l(a.get(I)));break;case"set":(0,o.CE)(e)&&l(a.get(L))}}h()}function P(e){const t=Re(e);return t===e?t:(N(t,0,R),Le(e)?t:t.map(Me))}function F(e){return N(e=Re(e),0,R),e}const D={__proto__:null,[Symbol.iterator](){return U(this,Symbol.iterator,Me)},concat(...e){return P(this).concat(...e.map((e=>(0,o.cy)(e)?P(e):e)))},entries(){return U(this,"entries",(e=>(e[1]=Me(e[1]),e)))},every(e,t){return $(this,"every",e,t,void 0,arguments)},filter(e,t){return $(this,"filter",e,t,(e=>e.map(Me)),arguments)},find(e,t){return $(this,"find",e,t,Me,arguments)},findIndex(e,t){return $(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return $(this,"findLast",e,t,Me,arguments)},findLastIndex(e,t){return $(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return $(this,"forEach",e,t,void 0,arguments)},includes(...e){return B(this,"includes",e)},indexOf(...e){return B(this,"indexOf",e)},join(e){return P(this).join(e)},lastIndexOf(...e){return B(this,"lastIndexOf",e)},map(e,t){return $(this,"map",e,t,void 0,arguments)},pop(){return q(this,"pop")},push(...e){return q(this,"push",e)},reduce(e,...t){return W(this,"reduce",e,t)},reduceRight(e,...t){return W(this,"reduceRight",e,t)},shift(){return q(this,"shift")},some(e,t){return $(this,"some",e,t,void 0,arguments)},splice(...e){return q(this,"splice",e)},toReversed(){return P(this).toReversed()},toSorted(e){return P(this).toSorted(e)},toSpliced(...e){return P(this).toSpliced(...e)},unshift(...e){return q(this,"unshift",e)},values(){return U(this,"values",Me)}};function U(e,t,n){const o=F(e),r=o[t]();return o===e||Le(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.value&&(e.value=n(e.value)),e}),r}const j=Array.prototype;function $(e,t,n,o,r,i){const s=F(e),a=s!==e&&!Le(e),l=s[t];if(l!==j[t]){const t=l.apply(e,i);return a?Me(t):t}let c=n;s!==e&&(a?c=function(t,o){return n.call(this,Me(t),o,e)}:n.length>2&&(c=function(t,o){return n.call(this,t,o,e)}));const u=l.call(s,c,o);return a&&r?r(u):u}function W(e,t,n,o){const r=F(e);let i=n;return r!==e&&(Le(e)?n.length>3&&(i=function(t,o,r){return n.call(this,t,o,r,e)}):i=function(t,o,r){return n.call(this,t,Me(o),r,e)}),r[t](i,...o)}function B(e,t,n){const o=Re(e);N(o,0,R);const r=o[t](...n);return-1!==r&&!1!==r||!Ie(n[0])?r:(n[0]=Re(n[0]),o[t](...n))}function q(e,t,n=[]){x(),p();const o=Re(e)[t].apply(e,n);return h(),E(),o}const z=(0,o.pD)("__proto__,__v_isRef,__isVue"),H=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(o.Bm));function Y(e){(0,o.Bm)(e)||(e=String(e));const t=Re(this);return N(t,0,e),t.hasOwnProperty(e)}class V{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?Ee:xe:i?we:ye).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=(0,o.cy)(e);if(!r){let e;if(s&&(e=D[t]))return e;if("hasOwnProperty"===t)return Y}const a=Reflect.get(e,t,Fe(e)?e:n);return((0,o.Bm)(t)?H.has(t):z(t))?a:(r||N(e,0,t),i?a:Fe(a)?s&&(0,o.yI)(t)?a:a.value:(0,o.Gv)(a)?r?Te(a):ke(a):a)}}class X extends V{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){const t=Oe(i);if(Le(n)||Oe(n)||(i=Re(i),n=Re(n)),!(0,o.cy)(e)&&Fe(i)&&!Fe(n))return!t&&(i.value=n,!0)}const s=(0,o.cy)(e)&&(0,o.yI)(t)?Number(t)e,ee=e=>Reflect.getPrototypeOf(e);function te(e,t,n=!1,r=!1){const i=Re(e=e.__v_raw),s=Re(t);n||((0,o.$H)(t,s)&&N(i,0,t),N(i,0,s));const{has:a}=ee(i),l=r?J:n?Pe:Me;return a.call(i,t)?l(e.get(t)):a.call(i,s)?l(e.get(s)):void(e!==i&&e.get(t))}function ne(e,t=!1){const n=this.__v_raw,r=Re(n),i=Re(e);return t||((0,o.$H)(e,i)&&N(r,0,e),N(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function oe(e,t=!1){return e=e.__v_raw,!t&&N(Re(e),0,L),Reflect.get(e,"size",e)}function re(e,t=!1){t||Le(e)||Oe(e)||(e=Re(e));const n=Re(this);return ee(n).has.call(n,e)||(n.add(e),M(n,"add",e,e)),this}function ie(e,t,n=!1){n||Le(t)||Oe(t)||(t=Re(t));const r=Re(this),{has:i,get:s}=ee(r);let a=i.call(r,e);a||(e=Re(e),a=i.call(r,e));const l=s.call(r,e);return r.set(e,t),a?(0,o.$H)(t,l)&&M(r,"set",e,t):M(r,"add",e,t),this}function se(e){const t=Re(this),{has:n,get:o}=ee(t);let r=n.call(t,e);r||(e=Re(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&M(t,"delete",e,void 0),i}function ae(){const e=Re(this),t=0!==e.size,n=e.clear();return t&&M(e,"clear",void 0,void 0),n}function le(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Re(i),a=t?J:e?Pe:Me;return!e&&N(s,0,L),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function ce(e,t,n){return function(...r){const i=this.__v_raw,s=Re(i),a=(0,o.CE)(s),l="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,u=i[e](...r),d=n?J:t?Pe:Me;return!t&&N(s,0,c?I:L),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function ue(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function de(){const e={get(e){return te(this,e)},get size(){return oe(this)},has:ne,add:re,set:ie,delete:se,clear:ae,forEach:le(!1,!1)},t={get(e){return te(this,e,!1,!0)},get size(){return oe(this)},has:ne,add(e){return re.call(this,e,!0)},set(e,t){return ie.call(this,e,t,!0)},delete:se,clear:ae,forEach:le(!1,!0)},n={get(e){return te(this,e,!0)},get size(){return oe(this,!0)},has(e){return ne.call(this,e,!0)},add:ue("add"),set:ue("set"),delete:ue("delete"),clear:ue("clear"),forEach:le(!0,!1)},o={get(e){return te(this,e,!0,!0)},get size(){return oe(this,!0)},has(e){return ne.call(this,e,!0)},add:ue("add"),set:ue("set"),delete:ue("delete"),clear:ue("clear"),forEach:le(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=ce(r,!1,!1),n[r]=ce(r,!0,!1),t[r]=ce(r,!1,!0),o[r]=ce(r,!0,!0)})),[e,n,t,o]}const[pe,he,fe,me]=de();function ge(e,t){const n=t?e?me:fe:e?he:pe;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get((0,o.$3)(n,r)&&r in t?n:t,r,i)}const be={get:ge(!1,!1)},ve={get:ge(!1,!0)},_e={get:ge(!0,!1)},ye=new WeakMap,we=new WeakMap,xe=new WeakMap,Ee=new WeakMap;function ke(e){return Oe(e)?e:Ce(e,!1,Q,be,ye)}function Se(e){return Ce(e,!1,Z,ve,we)}function Te(e){return Ce(e,!0,K,_e,xe)}function Ce(e,t,n,r,i){if(!(0,o.Gv)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const a=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,o.Zf)(l));var l;if(0===a)return e;const c=new Proxy(e,2===a?r:n);return i.set(e,c),c}function Ae(e){return Oe(e)?Ae(e.__v_raw):!(!e||!e.__v_isReactive)}function Oe(e){return!(!e||!e.__v_isReadonly)}function Le(e){return!(!e||!e.__v_isShallow)}function Ie(e){return!!e&&!!e.__v_raw}function Re(e){const t=e&&e.__v_raw;return t?Re(t):e}function Ne(e){return!(0,o.$3)(e,"__v_skip")&&Object.isExtensible(e)&&(0,o.yQ)(e,"__v_skip",!0),e}const Me=e=>(0,o.Gv)(e)?ke(e):e,Pe=e=>(0,o.Gv)(e)?Te(e):e;function Fe(e){return!!e&&!0===e.__v_isRef}function De(e){return je(e,!1)}function Ue(e){return je(e,!0)}function je(e,t){return Fe(e)?e:new $e(e,t)}class $e{constructor(e,t){this.dep=new C,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Re(e),this._value=t?e:Me(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Le(e)||Oe(e);e=n?e:Re(e),(0,o.$H)(e,t)&&(this._rawValue=e,this._value=n?e:Me(e),this.dep.trigger())}}function We(e){return Fe(e)?e.value:e}const Be={get:(e,t,n)=>"__v_raw"===t?e:We(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Fe(r)&&!Fe(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function qe(e){return Ae(e)?e:new Proxy(e,Be)}class ze{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new C(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=S-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){this.flags|=16,i!==this&&this.dep.notify()}get value(){const e=this.dep.track();return b(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function He(e,t,n=!1){let r,i;return(0,o.Tn)(e)?r=e:(r=e.get,i=e.set),new ze(r,i,n)}const Ye={},Ve=new WeakMap;let Xe;function Ge(e,t,n=o.MZ){const{immediate:i,deep:s,once:a,scheduler:l,augmentJob:u,call:d}=n,p=e=>s?e:Le(e)||!1===s||0===s?Qe(e,1):Qe(e);let h,f,m,g,b=!1,v=!1;if(Fe(e)?(f=()=>e.value,b=Le(e)):Ae(e)?(f=()=>p(e),b=!0):(0,o.cy)(e)?(v=!0,b=e.some((e=>Ae(e)||Le(e))),f=()=>e.map((e=>Fe(e)?e.value:Ae(e)?p(e):(0,o.Tn)(e)?d?d(e,2):e():void 0))):f=(0,o.Tn)(e)?t?d?()=>d(e,2):e:()=>{if(m){x();try{m()}finally{E()}}const t=Xe;Xe=h;try{return d?d(e,3,[g]):e(g)}finally{Xe=t}}:o.tE,t&&s){const e=f,t=!0===s?1/0:s;f=()=>Qe(e(),t)}const _=r,y=()=>{h.stop(),_&&(0,o.TF)(_.effects,h)};if(a)if(t){const e=t;t=(...t)=>{e(...t),y()}}else{const e=f;f=()=>{e(),y()}}let w=v?new Array(e.length).fill(Ye):Ye;const k=e=>{if(1&h.flags&&(h.dirty||e))if(t){const e=h.run();if(s||b||(v?e.some(((e,t)=>(0,o.$H)(e,w[t]))):(0,o.$H)(e,w))){m&&m();const n=Xe;Xe=h;try{const n=[e,w===Ye?void 0:v&&w[0]===Ye?[]:w,g];d?d(t,3,n):t(...n),w=e}finally{Xe=n}}}else h.run()};return u&&u(k),h=new c(f),h.scheduler=l?()=>l(k,!1):k,g=e=>function(e,t=!1,n=Xe){if(n){let t=Ve.get(n);t||Ve.set(n,t=[]),t.push(e)}}(e,!1,h),m=h.onStop=()=>{const e=Ve.get(h);if(e){if(d)d(e,4);else for(const t of e)t();Ve.delete(h)}},t?i?k(!0):w=h.run():l?l(k.bind(null,!0),!0):h.run(),y.pause=h.pause.bind(h),y.resume=h.resume.bind(h),y.stop=y,y}function Qe(e,t=1/0,n){if(t<=0||!(0,o.Gv)(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Fe(e))Qe(e.value,t,n);else if((0,o.cy)(e))for(let o=0;o{Qe(e,t,n)}));else if((0,o.Qd)(e)){for(const o in e)Qe(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Qe(e[o],t,n)}return e}},5149:(e,t,n)=>{"use strict";n.d(t,{$V:()=>ee,$u:()=>pe,$y:()=>Ee,CE:()=>nn,Df:()=>X,EW:()=>Fn,EY:()=>Yt,FK:()=>Ht,Gt:()=>Ke,Gy:()=>D,K9:()=>gt,Lk:()=>cn,MZ:()=>V,Ng:()=>dn,OW:()=>z,Q3:()=>fn,QP:()=>j,Qi:()=>A,RG:()=>Oe,WQ:()=>Ze,Wv:()=>on,bF:()=>un,bo:()=>I,dY:()=>b,eW:()=>hn,eX:()=>Ae,g2:()=>we,gN:()=>ke,h:()=>Dn,hi:()=>fe,jt:()=>O,k6:()=>L,nI:()=>En,nT:()=>kt,pI:()=>Ce,pM:()=>G,pR:()=>B,qL:()=>s,sV:()=>ue,tY:()=>$t,uX:()=>Kt,v6:()=>vn,wB:()=>St,xo:()=>he});var o=n(3925),r=n(9949);function i(e,t,n,o){try{return o?e(...o):e()}catch(e){a(e,t,n)}}function s(e,t,n,o){if((0,r.Tn)(e)){const s=i(e,t,n,o);return s&&(0,r.yL)(s)&&s.catch((e=>{a(e,t,n)})),s}if((0,r.cy)(e)){const r=[];for(let i=0;i=E(n)?u.push(e):u.splice(function(e){let t=l?d+1:0,n=u.length;for(;t>>1,r=u[o],i=E(r);iE(e)-E(t)));if(p.length=0,h)return void h.push(...e);for(h=e,f=0;fnull==e.id?2&e.flags?-1:1/0:e.id;function k(e){c=!1,l=!0,r.tE;try{for(d=0;d{o._d&&en(-1);const r=C(t);let i;try{i=e(...n)}finally{C(r),o._d&&en(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function I(e,t){if(null===S)return e;const n=Pn(S),i=e.dirs||(e.dirs=[]);for(let e=0;ee.__isTeleport,P=Symbol("_leaveCb"),F=Symbol("_enterCb");function D(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ue((()=>{e.isMounted=!0})),he((()=>{e.isUnmounting=!0})),e}const U=[Function,Array],j={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:U,onEnter:U,onAfterEnter:U,onEnterCancelled:U,onBeforeLeave:U,onLeave:U,onAfterLeave:U,onLeaveCancelled:U,onBeforeAppear:U,onAppear:U,onAfterAppear:U,onAppearCancelled:U},$=e=>{const t=e.subTree;return t.component?$(t.component):t};function W(e){let t=e[0];if(e.length>1){let n=!1;for(const o of e)if(o.type!==Vt){t=o,n=!0;break}}return t}const B={name:"BaseTransition",props:j,setup(e,{slots:t}){const n=En(),r=D();return()=>{const i=t.default&&X(t.default(),!0);if(!i||!i.length)return;const s=W(i),a=(0,o.ux)(e),{mode:l}=a;if(r.isLeaving)return H(s);const c=Y(s);if(!c)return H(s);let u=z(c,a,r,n,(e=>u=e));c.type!==Vt&&V(c,u);const d=n.subTree,p=d&&Y(d);if(p&&p.type!==Vt&&!sn(c,p)&&$(n).type!==Vt){const e=z(p,a,r,n);if(V(p,e),"out-in"===l&&c.type!==Vt)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave},H(s);"in-out"===l&&c.type!==Vt&&(e.delayLeave=(e,t,n)=>{q(r,p)[String(p.key)]=p,e[P]=()=>{t(),e[P]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function q(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function z(e,t,n,o,i){const{appear:a,mode:l,persisted:c=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:p,onEnterCancelled:h,onBeforeLeave:f,onLeave:m,onAfterLeave:g,onLeaveCancelled:b,onBeforeAppear:v,onAppear:_,onAfterAppear:y,onAppearCancelled:w}=t,x=String(e.key),E=q(n,e),k=(e,t)=>{e&&s(e,o,9,t)},S=(e,t)=>{const n=t[1];k(e,t),(0,r.cy)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},T={mode:l,persisted:c,beforeEnter(t){let o=u;if(!n.isMounted){if(!a)return;o=v||u}t[P]&&t[P](!0);const r=E[x];r&&sn(e,r)&&r.el[P]&&r.el[P](),k(o,[t])},enter(e){let t=d,o=p,r=h;if(!n.isMounted){if(!a)return;t=_||d,o=y||p,r=w||h}let i=!1;const s=e[F]=t=>{i||(i=!0,k(t?r:o,[e]),T.delayedLeave&&T.delayedLeave(),e[F]=void 0)};t?S(t,[e,s]):s()},leave(t,o){const r=String(e.key);if(t[F]&&t[F](!0),n.isUnmounting)return o();k(f,[t]);let i=!1;const s=t[P]=n=>{i||(i=!0,o(),k(n?b:g,[t]),t[P]=void 0,E[r]===e&&delete E[r])};E[r]=e,m?S(m,[t,s]):s()},clone(e){const r=z(e,t,n,o,i);return i&&i(r),r}};return T}function H(e){if(ne(e))return(e=pn(e)).children=null,e}function Y(e){if(!ne(e))return M(e.type)&&e.children?W(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&(0,r.Tn)(n.default))return n.default()}}function V(e,t){6&e.shapeFlag&&e.component?(e.transition=t,V(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function X(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let e=0;e(0,r.X$)({name:e.name},t,{setup:e}))():e}function Q(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function K(e,t,n,s,a=!1){if((0,r.cy)(e))return void e.forEach(((e,o)=>K(e,t&&((0,r.cy)(t)?t[o]:t),n,s,a)));if(J(s)&&!a)return;const l=4&s.shapeFlag?Pn(s.component):s.el,c=a?null:l,{i:u,r:d}=e,p=t&&t.r,h=u.refs===r.MZ?u.refs={}:u.refs,f=u.setupState,m=(0,o.ux)(f),g=f===r.MZ?()=>!1:e=>(0,r.$3)(m,e);if(null!=p&&p!==d&&((0,r.Kg)(p)?(h[p]=null,g(p)&&(f[p]=null)):(0,o.i9)(p)&&(p.value=null)),(0,r.Tn)(d))i(d,u,12,[c,h]);else{const t=(0,r.Kg)(d),i=(0,o.i9)(d);if(t||i){const o=()=>{if(e.f){const n=t?g(d)?f[d]:h[d]:d.value;a?(0,r.cy)(n)&&(0,r.TF)(n,l):(0,r.cy)(n)?n.includes(l)||n.push(l):t?(h[d]=[l],g(d)&&(f[d]=h[d])):(d.value=[l],e.k&&(h[e.k]=d.value))}else t?(h[d]=c,g(d)&&(f[d]=c)):i&&(d.value=c,e.k&&(h[e.k]=c))};c?(o.id=-1,mt(o,n)):o()}}}const Z=e=>8===e.nodeType,J=e=>!!e.type.__asyncLoader;function ee(e){(0,r.Tn)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,hydrate:l,timeout:c,suspensible:u=!0,onError:d}=e;let p,h=null,f=0;const m=()=>{let e;return h||(e=h=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),d)return new Promise(((t,n)=>{d(e,(()=>t((f++,h=null,m()))),(()=>n(e)),f+1)}));throw e})).then((t=>e!==h&&h?h:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),p=t,t))))};return G({name:"AsyncComponentWrapper",__asyncLoader:m,__asyncHydrate(e,t,n){const o=l?()=>{const o=l(n,(t=>function(e,t){if(Z(e)&&"["===e.data){let n=1,o=e.nextSibling;for(;o;){if(1===o.nodeType)t(o);else if(Z(o))if("]"===o.data){if(0==--n)break}else"["===o.data&&n++;o=o.nextSibling}}else t(e)}(e,t)));o&&(t.bum||(t.bum=[])).push(o)}:n;p?o():m().then((()=>!t.isUnmounted&&o()))},get __asyncResolved(){return p},setup(){const e=xn;if(Q(e),p)return()=>te(p,e);const t=t=>{h=null,a(t,e,13,!i)};if(u&&e.suspense||In)return m().then((t=>()=>te(t,e))).catch((e=>(t(e),()=>i?un(i,{error:e}):null)));const r=(0,o.KR)(!1),l=(0,o.KR)(),d=(0,o.KR)(!!s);return s&&setTimeout((()=>{d.value=!1}),s),null!=c&&setTimeout((()=>{if(!r.value&&!l.value){const e=new Error(`Async component timed out after ${c}ms.`);t(e),l.value=e}}),c),m().then((()=>{r.value=!0,e.parent&&ne(e.parent.vnode)&&e.parent.update()})).catch((e=>{t(e),l.value=e})),()=>r.value&&p?te(p,e):l.value&&i?un(i,{error:l.value}):n&&!d.value?un(n):void 0}})}function te(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=un(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const ne=e=>e.type.__isKeepAlive;function oe(e,t){ie(e,"a",t)}function re(e,t){ie(e,"da",t)}function ie(e,t,n=xn){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ae(t,o,n),n){let e=n.parent;for(;e&&e.parent;)ne(e.parent.vnode)&&se(o,t,n,e),e=e.parent}}function se(e,t,n,o){const i=ae(t,e,o,!0);fe((()=>{(0,r.TF)(o[t],i)}),n)}function ae(e,t,n=xn,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{(0,o.C4)();const i=Tn(n),a=s(t,n,e,r);return i(),(0,o.bl)(),a});return r?i.unshift(a):i.push(a),a}}RegExp,RegExp;const le=e=>(t,n=xn)=>{In&&"sp"!==e||ae(e,((...e)=>t(...e)),n)},ce=le("bm"),ue=le("m"),de=le("bu"),pe=le("u"),he=le("bum"),fe=le("um"),me=le("sp"),ge=le("rtg"),be=le("rtc");function ve(e,t=xn){ae("ec",e,t)}const _e="components",ye="directives";function we(e,t){return Se(_e,e,!0,t)||e}const xe=Symbol.for("v-ndc");function Ee(e){return(0,r.Kg)(e)?Se(_e,e,!1)||e:e||xe}function ke(e){return Se(ye,e)}function Se(e,t,n=!0,o=!1){const i=S||xn;if(i){const n=i.type;if(e===_e){const e=function(e,t=!0){return(0,r.Tn)(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===(0,r.PT)(t)||e===(0,r.ZH)((0,r.PT)(t))))return n}const s=Te(i[e]||n[e],t)||Te(i.appContext[e],t);return!s&&o?n:s}}function Te(e,t){return e&&(e[t]||e[(0,r.PT)(t)]||e[(0,r.ZH)((0,r.PT)(t))])}function Ce(e,t,n,i){let s;const a=n&&n[i],l=(0,r.cy)(e);if(l||(0,r.Kg)(e)){let n=!1;l&&(0,o.g8)(e)&&(n=!(0,o.fE)(e),e=(0,o.qA)(e)),s=new Array(e.length);for(let r=0,i=e.length;rt(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);s=new Array(n.length);for(let o=0,r=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Oe(e,t,n={},o,r){if(S.ce||S.parent&&J(S.parent)&&S.parent.ce)return"default"!==t&&(n.name=t),Kt(),on(Ht,null,[un("slot",n,o&&o())],64);let i=e[t];i&&i._c&&(i._d=!1),Kt();const s=i&&Le(i(n)),a=on(Ht,{key:(n.key||s&&s.key||`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&1===e._?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Le(e){return e.some((e=>!rn(e)||e.type!==Vt&&!(e.type===Ht&&!Le(e.children))))?e:null}const Ie=e=>e?An(e)?Pn(e):Ie(e.parent):null,Re=(0,r.X$)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ie(e.parent),$root:e=>Ie(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>je(e),$forceUpdate:e=>e.f||(e.f=()=>{v(e.update)}),$nextTick:e=>e.n||(e.n=b.bind(e.proxy)),$watch:e=>Ct.bind(e)}),Ne=(e,t)=>e!==r.MZ&&!e.__isScriptSetup&&(0,r.$3)(e,t),Me={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:s,props:a,accessCache:l,type:c,appContext:u}=e;let d;if("$"!==t[0]){const o=l[t];if(void 0!==o)switch(o){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return a[t]}else{if(Ne(i,t))return l[t]=1,i[t];if(s!==r.MZ&&(0,r.$3)(s,t))return l[t]=2,s[t];if((d=e.propsOptions[0])&&(0,r.$3)(d,t))return l[t]=3,a[t];if(n!==r.MZ&&(0,r.$3)(n,t))return l[t]=4,n[t];Fe&&(l[t]=0)}}const p=Re[t];let h,f;return p?("$attrs"===t&&(0,o.u4)(e.attrs,"get",""),p(e)):(h=c.__cssModules)&&(h=h[t])?h:n!==r.MZ&&(0,r.$3)(n,t)?(l[t]=4,n[t]):(f=u.config.globalProperties,(0,r.$3)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:o,setupState:i,ctx:s}=e;return Ne(i,t)?(i[t]=n,!0):o!==r.MZ&&(0,r.$3)(o,t)?(o[t]=n,!0):!((0,r.$3)(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:s}},a){let l;return!!n[a]||e!==r.MZ&&(0,r.$3)(e,a)||Ne(t,a)||(l=s[0])&&(0,r.$3)(l,a)||(0,r.$3)(o,a)||(0,r.$3)(Re,a)||(0,r.$3)(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,r.$3)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Pe(e){return(0,r.cy)(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let Fe=!0;function De(e,t,n){s((0,r.cy)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Ue(e,t,n,o){let i=o.includes(".")?At(n,o):()=>n[o];if((0,r.Kg)(e)){const n=t[e];(0,r.Tn)(n)&&St(i,n)}else if((0,r.Tn)(e))St(i,e.bind(n));else if((0,r.Gv)(e))if((0,r.cy)(e))e.forEach((e=>Ue(e,t,n,o)));else{const o=(0,r.Tn)(e.handler)?e.handler.bind(n):t[e.handler];(0,r.Tn)(o)&&St(i,o,e)}}function je(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,l=s.get(t);let c;return l?c=l:i.length||n||o?(c={},i.length&&i.forEach((e=>$e(c,e,a,!0))),$e(c,t,a)):c=t,(0,r.Gv)(t)&&s.set(t,c),c}function $e(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&$e(e,i,n,!0),r&&r.forEach((t=>$e(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=We[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const We={data:Be,props:Ye,emits:Ye,methods:He,computed:He,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:He,directives:He,watch:function(e,t){if(!e)return t;if(!t)return e;const n=(0,r.X$)(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n},provide:Be,inject:function(e,t){return He(qe(e),qe(t))}};function Be(e,t){return t?e?function(){return(0,r.X$)((0,r.Tn)(e)?e.call(this,this):e,(0,r.Tn)(t)?t.call(this,this):t)}:t:e}function qe(e){if((0,r.cy)(e)){const t={};for(let n=0;n(a.has(e)||(e&&(0,r.Tn)(e.install)?(a.add(e),e.install(u,...t)):(0,r.Tn)(e)&&(a.add(e),e(u,...t))),u),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),u),component:(e,t)=>t?(i.components[e]=t,u):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,u):i.directives[e],mount(r,s,a){if(!c){const l=u._ceVNode||un(n,o);return l.appContext=i,!0===a?a="svg":!1===a&&(a=void 0),s&&t?t(l,r):e(l,r,a),c=!0,u._container=r,r.__vue_app__=u,Pn(l.component)}},onUnmount(e){l.push(e)},unmount(){c&&(s(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,u),runWithContext(e){const t=Qe;Qe=u;try{return e()}finally{Qe=t}}};return u}}let Qe=null;function Ke(e,t){if(xn){let n=xn.provides;const o=xn.parent&&xn.parent.provides;o===n&&(n=xn.provides=Object.create(o)),n[e]=t}}function Ze(e,t,n=!1){const o=xn||S;if(o||Qe){const i=Qe?Qe._context.provides:o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,r.Tn)(t)?t.call(o&&o.proxy):t}}const Je={},et=()=>Object.create(Je),tt=e=>Object.getPrototypeOf(e)===Je;function nt(e,t,n,i){const[s,a]=e.propsOptions;let l,c=!1;if(t)for(let o in t){if((0,r.SU)(o))continue;const u=t[o];let d;s&&(0,r.$3)(s,d=(0,r.PT)(o))?a&&a.includes(d)?(l||(l={}))[d]=u:n[d]=u:Rt(e.emitsOptions,o)||o in i&&u===i[o]||(i[o]=u,c=!0)}if(a){const t=(0,o.ux)(n),i=l||r.MZ;for(let o=0;o{c=!0;const[n,o]=it(e,t,!0);(0,r.X$)(a,n),o&&l.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!s&&!c)return(0,r.Gv)(e)&&o.set(e,r.Oj),r.Oj;if((0,r.cy)(s))for(let e=0;e"_"===e[0]||"$stable"===e,lt=e=>(0,r.cy)(e)?e.map(mn):[mn(e)],ct=(e,t,n)=>{if(t._n)return t;const o=L(((...e)=>lt(t(...e))),n);return o._c=!1,o},ut=(e,t,n)=>{const o=e._ctx;for(const n in e){if(at(n))continue;const i=e[n];if((0,r.Tn)(i))t[n]=ct(0,i,o);else if(null!=i){const e=lt(i);t[n]=()=>e}}},dt=(e,t)=>{const n=lt(t);e.slots.default=()=>n},pt=(e,t,n)=>{for(const o in t)(n||"_"!==o)&&(e[o]=t[o])},ht=(e,t,n)=>{const o=e.slots=et();if(32&e.vnode.shapeFlag){const e=t._;e?(pt(o,t,n),n&&(0,r.yQ)(o,"_",e,!0)):ut(t,o)}else t&&dt(e,t)},ft=(e,t,n)=>{const{vnode:o,slots:i}=e;let s=!0,a=r.MZ;if(32&o.shapeFlag){const e=t._;e?n&&1===e?s=!1:pt(i,t,n):(s=!t.$stable,ut(t,i)),a=t}else t&&(dt(e,t),a={default:1});if(s)for(const e in i)at(e)||null!=a[e]||delete i[e]},mt=function(e,t){t&&t.pendingBranch?(0,r.cy)(e)?t.effects.push(...e):t.effects.push(e):y(e)};function gt(e){return function(e,t){"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&((0,r.We)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1),(0,r.We)().__VUE__=!0;const{insert:n,remove:s,patchProp:l,createElement:c,createText:u,createComment:d,setText:p,setElementText:h,parentNode:f,nextSibling:m,setScopeId:g=r.tE,insertStaticContent:b}=e,_=(e,t,n,o=null,r=null,i=null,s=void 0,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!sn(e,t)&&(o=Z(e),H(e,r,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Yt:y(e,t,n,o);break;case Vt:E(e,t,n,o);break;case Xt:null==e&&k(t,n,o,s);break;case Ht:P(e,t,n,o,r,i,s,a,l);break;default:1&d?T(e,t,n,o,r,i,s,a,l):6&d?F(e,t,n,o,r,i,s,a,l):(64&d||128&d)&&c.process(e,t,n,o,r,i,s,a,l,oe)}null!=u&&r&&K(u,e&&e.ref,i,t||e,!t)},y=(e,t,o,r)=>{if(null==e)n(t.el=u(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},E=(e,t,o,r)=>{null==e?n(t.el=d(t.children||""),o,r):t.el=e.el},k=(e,t,n,o)=>{[e.el,e.anchor]=b(e.children,t,n,o,e.el,e.anchor)},S=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),s(e),e=n;s(t)},T=(e,t,n,o,r,i,s,a,l)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?C(t,n,o,r,i,s,a,l):L(e,t,r,i,s,a,l)},C=(e,t,o,i,s,a,u,d)=>{let p,f;const{props:m,shapeFlag:g,transition:b,dirs:v}=e;if(p=e.el=c(e.type,a,m&&m.is,m),8&g?h(p,e.children):16&g&&O(e.children,p,null,i,s,bt(e,a),u,d),v&&R(e,null,i,"created"),A(p,e,e.scopeId,u,i),m){for(const e in m)"value"===e||(0,r.SU)(e)||l(p,e,null,m[e],a,i);"value"in m&&l(p,"value",null,m.value,a),(f=m.onVnodeBeforeMount)&&_n(f,i,e)}v&&R(e,null,i,"beforeMount");const _=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(s,b);_&&b.beforeEnter(p),n(p,t,o),((f=m&&m.onVnodeMounted)||_||v)&&mt((()=>{f&&_n(f,i,e),_&&b.enter(p),v&&R(e,null,i,"mounted")}),s)},A=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let c=l;c{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||r.MZ,m=t.props||r.MZ;let g;if(n&&vt(n,!1),(g=m.onVnodeBeforeUpdate)&&_n(g,n,t,e),p&&R(t,e,n,"beforeUpdate"),n&&vt(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(c,""),d?I(e.dynamicChildren,d,c,n,o,bt(t,i),s):a||W(e,t,c,null,n,o,bt(t,i),s,!1),u>0){if(16&u)M(c,f,m,n,i);else if(2&u&&f.class!==m.class&&l(c,"class",null,m.class,i),4&u&&l(c,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{g&&_n(g,n,t,e),p&&R(t,e,n,"updated")}),o)},I=(e,t,n,o,r,i,s)=>{for(let a=0;a{if(t!==n){if(t!==r.MZ)for(const s in t)(0,r.SU)(s)||s in n||l(e,s,t[s],null,i,o);for(const s in n){if((0,r.SU)(s))continue;const a=n[s],c=t[s];a!==c&&"value"!==s&&l(e,s,c,a,i,o)}"value"in n&&l(e,"value",t.value,n.value,i)}},P=(e,t,o,r,i,s,a,l,c)=>{const d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(d,o,r),n(p,o,r),O(t.children||[],o,p,i,s,a,l,c)):h>0&&64&h&&f&&e.dynamicChildren?(I(e.dynamicChildren,f,o,i,s,a,l),(null!=t.key||i&&t===i.subTree)&&_t(e,t,!0)):W(e,t,o,p,i,s,a,l,c)},F=(e,t,n,o,r,i,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,l):D(t,n,o,r,i,s,l):U(e,t,l)},D=(e,t,n,s,l,c,u)=>{const d=e.component=function(e,t,n){const i=e.type,s=(t?t.appContext:e.appContext)||yn,a={uid:wn++,vnode:e,type:i,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new o.yC(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:it(i,s),emitsOptions:It(i,s),emit:null,emitted:null,propsDefaults:r.MZ,inheritAttrs:i.inheritAttrs,ctx:r.MZ,data:r.MZ,props:r.MZ,attrs:r.MZ,slots:r.MZ,refs:r.MZ,setupState:r.MZ,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Lt.bind(null,a),e.ce&&e.ce(a),a}(e,s,l);if(ne(e)&&(d.ctx.renderer=oe),function(e,t=!1,n=!1){t&&Sn(t);const{props:s,children:l}=e.vnode,c=An(e);!function(e,t,n,r=!1){const i={},s=et();e.propsDefaults=Object.create(null),nt(e,t,i,s);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:(0,o.Gc)(i):e.type.props?e.props=i:e.props=s,e.attrs=s}(e,s,c,t),ht(e,l,n);const u=c?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Me);const{setup:s}=n;if(s){const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Mn),slots:e.slots,emit:e.emit,expose:t}}(e):null,l=Tn(e);(0,o.C4)();const c=i(s,e,0,[e.props,n]);if((0,o.bl)(),l(),(0,r.yL)(c)){if(J(e)||Q(e),c.then(Cn,Cn),t)return c.then((n=>{Rn(e,n,t)})).catch((t=>{a(t,e,0)}));e.asyncDep=c}else Rn(e,c,t)}else Nn(e,t)}(e,t):void 0;t&&Sn(!1)}(d,!1,u),d.asyncDep){if(l&&l.registerDep(d,j,u),!e.el){const e=d.subTree=un(Vt);E(null,e,t,n)}}else j(d,e,t,n,l,c,u)},U=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!a||a&&a.$stable)||o!==s&&(o?!s||Ft(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?Ft(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:u}=e;{const n=yt(e);if(n)return t&&(t.el=u.el,$(e,t,l)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let d,p=t;vt(e,!1),t?(t.el=u.el,$(e,t,l)):t=u,n&&(0,r.DY)(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&_n(d,i,t,u),vt(e,!0);const h=Nt(e),m=e.subTree;e.subTree=h,_(m,h,f(m.el),Z(m),e,s,a),t.el=h.el,null===p&&Dt(e,h.el),o&&mt(o,s),(d=t.props&&t.props.onVnodeUpdated)&&mt((()=>_n(d,i,t,u)),s)}else{let o;const{el:l,props:c}=t,{bm:u,m:d,parent:p,root:h,type:f}=e,m=J(t);if(vt(e,!1),u&&(0,r.DY)(u),!m&&(o=c&&c.onVnodeBeforeMount)&&_n(o,p,t),vt(e,!0),l&&ie){const t=()=>{e.subTree=Nt(e),ie(l,e.subTree,e,s,null)};m&&f.__asyncHydrate?f.__asyncHydrate(l,e,t):t()}else{h.ce&&h.ce._injectChildStyle(f);const o=e.subTree=Nt(e);_(null,o,n,i,e,s,a),t.el=o.el}if(d&&mt(d,s),!m&&(o=c&&c.onVnodeMounted)){const e=t;mt((()=>_n(o,p,e)),s)}(256&t.shapeFlag||p&&J(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&mt(e.a,s),e.isMounted=!0,t=n=i=null}};e.scope.on();const u=e.effect=new o.X2(c);e.scope.off();const d=e.update=u.run.bind(u),p=e.job=u.runIfDirty.bind(u);p.i=e,p.id=e.uid,u.scheduler=()=>v(p),vt(e,!0),d()},$=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:a,vnode:{patchFlag:l}}=e,c=(0,o.ux)(s),[u]=e.propsOptions;let d=!1;if(!(i||l>0)||16&l){let o;nt(e,t,s,a)&&(d=!0);for(const i in c)t&&((0,r.$3)(t,i)||(o=(0,r.Tg)(i))!==i&&(0,r.$3)(t,o))||(u?!n||void 0===n[i]&&void 0===n[o]||(s[i]=ot(u,c,i,void 0,e,!0)):delete s[i]);if(a!==c)for(const e in a)t&&(0,r.$3)(t,e)||(delete a[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void q(c,d,n,o,r,i,s,a,l);if(256&p)return void B(c,d,n,o,r,i,s,a,l)}8&f?(16&u&&G(c,r,i),d!==c&&h(n,d)):16&u?16&f?q(c,d,n,o,r,i,s,a,l):G(c,r,i,!0):(8&u&&h(n,""),16&f&&O(d,n,o,r,i,s,a,l))},B=(e,t,n,o,i,s,a,l,c)=>{e=e||r.Oj,t=t||r.Oj;const u=e.length,d=t.length,p=Math.min(u,d);let h;for(h=0;hd?G(e,i,s,!0,!1,p):O(t,n,o,i,s,a,l,c,p)},q=(e,t,n,o,i,s,a,l,c)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],r=t[u]=c?gn(t[u]):mn(t[u]);if(!sn(o,r))break;_(o,r,n,null,i,s,a,l,c),u++}for(;u<=p&&u<=h;){const o=e[p],r=t[h]=c?gn(t[h]):mn(t[h]);if(!sn(o,r))break;_(o,r,n,null,i,s,a,l,c),p--,h--}if(u>p){if(u<=h){const e=h+1,r=eh)for(;u<=p;)H(e[u],i,s,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=c?gn(t[u]):mn(t[u]);null!=e.key&&g.set(e.key,u)}let b,v=0;const y=h-m+1;let w=!1,x=0;const E=new Array(y);for(u=0;u=y){H(o,i,s,!0);continue}let r;if(null!=o.key)r=g.get(o.key);else for(b=m;b<=h;b++)if(0===E[b-m]&&sn(o,t[b])){r=b;break}void 0===r?H(o,i,s,!0):(E[r-m]=u+1,r>=x?x=r:w=!0,_(o,t[r],n,null,i,s,a,l,c),v++)}const k=w?function(e){const t=e.slice(),n=[0];let o,r,i,s,a;const l=e.length;for(o=0;o>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(E):r.Oj;for(b=k.length-1,u=y-1;u>=0;u--){const e=m+u,r=t[e],p=e+1{const{el:s,type:a,transition:l,children:c,shapeFlag:u}=e;if(6&u)z(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)a.move(e,t,o,oe);else if(a!==Ht)if(a!==Xt)if(2!==r&&1&u&&l)if(0===r)l.beforeEnter(s),n(s,t,o),mt((()=>l.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,a=()=>n(s,t,o),c=()=>{e(s,(()=>{a(),i&&i()}))};r?r(s,a,c):c()}else n(s,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(s,t,o);for(let e=0;e{const{type:i,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:h}=e;if(-2===d&&(r=!1),null!=a&&K(a,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,m=!J(e);let g;if(m&&(g=s&&s.onVnodeBeforeUnmount)&&_n(g,t,e),6&u)X(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);f&&R(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,oe,o):c&&!c.hasOnce&&(i!==Ht||d>0&&64&d)?G(c,t,n,!1,!0):(i===Ht&&384&d||!r&&16&u)&&G(l,t,n),o&&Y(e)}(m&&(g=s&&s.onVnodeUnmounted)||f)&&mt((()=>{g&&_n(g,t,e),f&&R(e,null,t,"unmounted")}),n)},Y=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Ht)return void V(n,o);if(t===Xt)return void S(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},V=(e,t)=>{let n;for(;e!==t;)n=m(e),s(e),e=n;s(t)},X=(e,t,n)=>{const{bum:o,scope:i,job:s,subTree:a,um:l,m:c,a:u}=e;wt(c),wt(u),o&&(0,r.DY)(o),i.stop(),s&&(s.flags|=8,H(a,e,t,n)),l&&mt(l,t),mt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},G=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s{if(6&e.shapeFlag)return Z(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[N];return n?m(n):t};let ee=!1;const te=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):_(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ee||(ee=!0,w(),x(),ee=!1)},oe={p:_,um:H,m:z,r:Y,mt:D,mc:O,pc:W,pbc:I,n:Z,o:e};let re,ie;return t&&([re,ie]=t(oe)),{render:te,hydrate:re,createApp:Ge(te,re)}}(e)}function bt({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function vt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function _t(e,t,n=!1){const o=e.children,i=t.children;if((0,r.cy)(o)&&(0,r.cy)(i))for(let e=0;eZe(xt);function kt(e,t){return Tt(e,null,t)}function St(e,t,n){return Tt(e,t,n)}function Tt(e,t,n=r.MZ){const{immediate:i,deep:a,flush:l,once:c}=n,u=(0,r.X$)({},n);let d;if(In)if("sync"===l){const e=Et();d=e.__watcherHandles||(e.__watcherHandles=[])}else{if(t&&!i)return{stop:r.tE,resume:r.tE,pause:r.tE};u.once=!0}const p=xn;u.call=(e,t,n)=>s(e,p,t,n);let h=!1;"post"===l?u.scheduler=e=>{mt(e,p&&p.suspense)}:"sync"!==l&&(h=!0,u.scheduler=(e,t)=>{t?e():v(e)}),u.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const f=(0,o.wB)(e,t,u);return d&&d.push(f),f}function Ct(e,t,n){const o=this.proxy,i=(0,r.Kg)(e)?e.includes(".")?At(o,e):()=>o[e]:e.bind(o,o);let s;(0,r.Tn)(t)?s=t:(s=t.handler,n=t);const a=Tn(this),l=Tt(i,s.bind(o),n);return a(),l}function At(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${(0,r.PT)(t)}Modifiers`]||e[`${(0,r.Tg)(t)}Modifiers`];function Lt(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||r.MZ;let i=n;const a=t.startsWith("update:"),l=a&&Ot(o,t.slice(7));let c;l&&(l.trim&&(i=n.map((e=>(0,r.Kg)(e)?e.trim():e))),l.number&&(i=n.map(r.bB)));let u=o[c=(0,r.rU)(t)]||o[c=(0,r.rU)((0,r.PT)(t))];!u&&a&&(u=o[c=(0,r.rU)((0,r.Tg)(t))]),u&&s(u,e,6,i);const d=o[c+"Once"];if(d){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,s(d,e,6,i)}}function It(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(void 0!==i)return i;const s=e.emits;let a={},l=!1;if(!(0,r.Tn)(e)){const o=e=>{const n=It(e,t,!0);n&&(l=!0,(0,r.X$)(a,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||l?((0,r.cy)(s)?s.forEach((e=>a[e]=null)):(0,r.X$)(a,s),(0,r.Gv)(e)&&o.set(e,a),a):((0,r.Gv)(e)&&o.set(e,null),null)}function Rt(e,t){return!(!e||!(0,r.Mp)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,r.$3)(e,t[0].toLowerCase()+t.slice(1))||(0,r.$3)(e,(0,r.Tg)(t))||(0,r.$3)(e,t))}function Nt(e){const{type:t,vnode:n,proxy:o,withProxy:i,propsOptions:[s],slots:l,attrs:c,emit:u,render:d,renderCache:p,props:h,data:f,setupState:m,ctx:g,inheritAttrs:b}=e,v=C(e);let _,y;try{if(4&n.shapeFlag){const e=i||o,t=e;_=mn(d.call(t,e,p,h,m,f,g)),y=c}else{const e=t;_=mn(e.length>1?e(h,{attrs:c,slots:l,emit:u}):e(h,null)),y=t.props?c:Mt(c)}}catch(t){Gt.length=0,a(t,e,1),_=un(Vt)}let w=_;if(y&&!1!==b){const e=Object.keys(y),{shapeFlag:t}=w;e.length&&7&t&&(s&&e.some(r.CP)&&(y=Pt(y,s)),w=pn(w,y,!1,!0))}return n.dirs&&(w=pn(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&V(w,n.transition),_=w,C(v),_}const Mt=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,r.Mp)(n))&&((t||(t={}))[n]=e[n]);return t},Pt=(e,t)=>{const n={};for(const o in e)(0,r.CP)(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Ft(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let jt=0;const $t={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,a,l,c){if(null==e)!function(e,t,n,o,r,i,s,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),p=e.suspense=Bt(e,r,o,t,d,n,i,s,a,l);c(null,p.pendingBranch=e.ssContent,d,null,o,p,i,s),p.deps>0?(Wt(e,"onPending"),Wt(e,"onFallback"),c(null,e.ssFallback,t,n,o,null,i,s),zt(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,i,s,a,l,c);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,i,s,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:b}=d;if(m)d.pendingBranch=p,sn(p,m)?(l(m,p,d.hiddenContainer,null,r,d,i,s,a),d.deps<=0?d.resolve():g&&(b||(l(f,h,n,o,r,null,i,s,a),zt(d,h)))):(d.pendingId=jt++,b?(d.isHydrating=!1,d.activeBranch=m):c(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,p,d.hiddenContainer,null,r,d,i,s,a),d.deps<=0?d.resolve():(l(f,h,n,o,r,null,i,s,a),zt(d,h))):f&&sn(p,f)?(l(f,p,n,o,r,d,i,s,a),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,r,d,i,s,a),d.deps<=0&&d.resolve()));else if(f&&sn(p,f))l(f,p,n,o,r,d,i,s,a),zt(d,p);else if(Wt(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=jt++,l(null,p,d.hiddenContainer,null,r,d,i,s,a),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,o,r,s,a,l,c)}},hydrate:function(e,t,n,o,r,i,s,a,l){const c=t.suspense=Bt(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,i,s);return 0===c.deps&&c.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=qt(o?n.default:n),e.ssFallback=o?qt(n.fallback):un(Vt)}};function Wt(e,t){const n=e.props&&e.props[t];(0,r.Tn)(n)&&n()}function Bt(e,t,n,o,i,s,l,c,u,d,p=!1){const{p:h,m:f,um:m,n:g,o:{parentNode:b,remove:v}}=d;let _;const w=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);w&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const x=e.props?(0,r.Ro)(e.props.timeout):void 0,E=s,k={vnode:e,parent:t,parentComponent:n,namespace:l,container:o,hiddenContainer:i,deps:0,pendingId:jt++,timeout:"number"==typeof x?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:i,pendingId:a,effects:l,parentComponent:c,container:u}=k;let d=!1;k.isHydrating?k.isHydrating=!1:e||(d=r&&i.transition&&"out-in"===i.transition.mode,d&&(r.transition.afterLeave=()=>{a===k.pendingId&&(f(i,u,s===E?g(r):s,0),y(l))}),r&&(b(r.el)===u&&(s=g(r)),m(r,c,k,!0)),d||f(i,u,s,0)),zt(k,i),k.pendingBranch=null,k.isInFallback=!1;let p=k.parent,h=!1;for(;p;){if(p.pendingBranch){p.effects.push(...l),h=!0;break}p=p.parent}h||d||y(l),k.effects=[],w&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Wt(o,"onResolve")},fallback(e){if(!k.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:i}=k;Wt(t,"onFallback");const s=g(n),a=()=>{k.isInFallback&&(h(null,e,r,s,o,null,i,c,u),zt(k,e))},l=e.transition&&"out-in"===e.transition.mode;l&&(n.transition.afterLeave=a),k.isInFallback=!0,m(n,o,null,!0),l||a()},move(e,t,n){k.activeBranch&&f(k.activeBranch,e,t,n),k.container=e},next:()=>k.activeBranch&&g(k.activeBranch),registerDep(e,t,n){const o=!!k.pendingBranch;o&&k.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{a(t,e,0)})).then((i=>{if(e.isUnmounted||k.isUnmounted||k.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Rn(e,i,!1),r&&(s.el=r);const a=!r&&e.subTree.el;t(e,s,b(r||e.subTree.el),r?null:g(e.subTree),k,l,n),a&&v(a),Dt(e,s.el),o&&0==--k.deps&&k.resolve()}))},unmount(e,t){k.isUnmounted=!0,k.activeBranch&&m(k.activeBranch,n,e,t),k.pendingBranch&&m(k.pendingBranch,n,e,t)}};return k}function qt(e){let t;if((0,r.Tn)(e)){const n=Jt&&e._c;n&&(e._d=!1,Kt()),e=e(),n&&(e._d=!0,t=Qt,Zt())}if((0,r.cy)(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function zt(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Dt(o,r))}const Ht=Symbol.for("v-fgt"),Yt=Symbol.for("v-txt"),Vt=Symbol.for("v-cmt"),Xt=Symbol.for("v-stc"),Gt=[];let Qt=null;function Kt(e=!1){Gt.push(Qt=e?null:[])}function Zt(){Gt.pop(),Qt=Gt[Gt.length-1]||null}let Jt=1;function en(e){Jt+=e,e<0&&Qt&&(Qt.hasOnce=!0)}function tn(e){return e.dynamicChildren=Jt>0?Qt||r.Oj:null,Zt(),Jt>0&&Qt&&Qt.push(e),e}function nn(e,t,n,o,r,i){return tn(cn(e,t,n,o,r,i,!0))}function on(e,t,n,o,r){return tn(un(e,t,n,o,r,!0))}function rn(e){return!!e&&!0===e.__v_isVNode}function sn(e,t){return e.type===t.type&&e.key===t.key}const an=({key:e})=>null!=e?e:null,ln=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?(0,r.Kg)(e)||(0,o.i9)(e)||(0,r.Tn)(e)?{i:S,r:e,k:t,f:!!n}:e:null);function cn(e,t=null,n=null,o=0,i=null,s=(e===Ht?0:1),a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&an(t),ref:t&&ln(t),scopeId:T,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:S};return l?(bn(c,n),128&s&&e.normalize(c)):n&&(c.shapeFlag|=(0,r.Kg)(n)?8:16),Jt>0&&!a&&Qt&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&Qt.push(c),c}const un=function(e,t=null,n=null,i=0,s=null,a=!1){if(e&&e!==xe||(e=Vt),rn(e)){const o=pn(e,t,!0);return n&&bn(o,n),Jt>0&&!a&&Qt&&(6&o.shapeFlag?Qt[Qt.indexOf(e)]=o:Qt.push(o)),o.patchFlag=-2,o}if(l=e,(0,r.Tn)(l)&&"__vccOpts"in l&&(e=e.__vccOpts),t){t=dn(t);let{class:e,style:n}=t;e&&!(0,r.Kg)(e)&&(t.class=(0,r.C4)(e)),(0,r.Gv)(n)&&((0,o.ju)(n)&&!(0,r.cy)(n)&&(n=(0,r.X$)({},n)),t.style=(0,r.Tr)(n))}var l;return cn(e,t,n,i,s,(0,r.Kg)(e)?1:Ut(e)?128:M(e)?64:(0,r.Gv)(e)?4:(0,r.Tn)(e)?2:0,a,!0)};function dn(e){return e?(0,o.ju)(e)||tt(e)?(0,r.X$)({},e):e:null}function pn(e,t,n=!1,o=!1){const{props:i,ref:s,patchFlag:a,children:l,transition:c}=e,u=t?vn(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&an(u),ref:t&&t.ref?n&&s?(0,r.cy)(s)?s.concat(ln(t)):[s,ln(t)]:ln(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ht?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&V(d,c.clone(d)),d}function hn(e=" ",t=0){return un(Yt,null,e,t)}function fn(e="",t=!1){return t?(Kt(),on(Vt,null,e)):un(Vt,null,e)}function mn(e){return null==e||"boolean"==typeof e?un(Vt):(0,r.cy)(e)?un(Ht,null,e.slice()):"object"==typeof e?gn(e):un(Yt,null,String(e))}function gn(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:pn(e)}function bn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if((0,r.cy)(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),bn(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||tt(t)?3===o&&S&&(1===S.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=S}}else(0,r.Tn)(t)?(t={default:t,_ctx:S},n=32):(t=String(t),64&o?(n=16,t=[hn(t)]):n=8);e.children=t,e.shapeFlag|=n}function vn(...e){const t={};for(let n=0;nxn||S;let kn,Sn;{const e=(0,r.We)(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};kn=t("__VUE_INSTANCE_SETTERS__",(e=>xn=e)),Sn=t("__VUE_SSR_SETTERS__",(e=>In=e))}const Tn=e=>{const t=xn;return kn(e),e.scope.on(),()=>{e.scope.off(),kn(t)}},Cn=()=>{xn&&xn.scope.off(),kn(null)};function An(e){return 4&e.vnode.shapeFlag}let On,Ln,In=!1;function Rn(e,t,n){(0,r.Tn)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,r.Gv)(t)&&(e.setupState=(0,o.Pr)(t)),Nn(e,n)}function Nn(e,t,n){const i=e.type;if(!e.render){if(!t&&On&&!i.render){const t=i.template||je(e).template;if(t){const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:a}=i,l=(0,r.X$)((0,r.X$)({isCustomElement:n,delimiters:s},o),a);i.render=On(t,l)}}e.render=i.render||r.tE,Ln&&Ln(e)}{const t=Tn(e);(0,o.C4)();try{!function(e){const t=je(e),n=e.proxy,i=e.ctx;Fe=!1,t.beforeCreate&&De(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:l,watch:c,provide:u,inject:d,created:p,beforeMount:h,mounted:f,beforeUpdate:m,updated:g,activated:b,deactivated:v,beforeDestroy:_,beforeUnmount:y,destroyed:w,unmounted:x,render:E,renderTracked:k,renderTriggered:S,errorCaptured:T,serverPrefetch:C,expose:A,inheritAttrs:O,components:L,directives:I,filters:R}=t;if(d&&function(e,t){(0,r.cy)(e)&&(e=qe(e));for(const n in e){const i=e[n];let s;s=(0,r.Gv)(i)?"default"in i?Ze(i.from||n,i.default,!0):Ze(i.from||n):Ze(i),(0,o.i9)(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(d,i),l)for(const e in l){const t=l[e];(0,r.Tn)(t)&&(i[e]=t.bind(n))}if(s){const t=s.call(n,n);(0,r.Gv)(t)&&(e.data=(0,o.Kh)(t))}if(Fe=!0,a)for(const e in a){const t=a[e],o=(0,r.Tn)(t)?t.bind(n,n):(0,r.Tn)(t.get)?t.get.bind(n,n):r.tE,s=!(0,r.Tn)(t)&&(0,r.Tn)(t.set)?t.set.bind(n):r.tE,l=Fn({get:o,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const e in c)Ue(c[e],i,n,e);if(u){const e=(0,r.Tn)(u)?u.call(n):u;Reflect.ownKeys(e).forEach((t=>{Ke(t,e[t])}))}function N(e,t){(0,r.cy)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(p&&De(p,e,"c"),N(ce,h),N(ue,f),N(de,m),N(pe,g),N(oe,b),N(re,v),N(ve,T),N(be,k),N(ge,S),N(he,y),N(fe,x),N(me,C),(0,r.cy)(A))if(A.length){const t=e.exposed||(e.exposed={});A.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});E&&e.render===r.tE&&(e.render=E),null!=O&&(e.inheritAttrs=O),L&&(e.components=L),I&&(e.directives=I),C&&Q(e)}(e)}finally{(0,o.bl)(),t()}}}const Mn={get:(e,t)=>((0,o.u4)(e,"get",""),e[t])};function Pn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy((0,o.Pr)((0,o.IG)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Re?Re[n](e):void 0,has:(e,t)=>t in e||t in Re})):e.proxy}const Fn=(e,t)=>(0,o.EW)(e,t,In);function Dn(e,t,n){const o=arguments.length;return 2===o?(0,r.Gv)(t)&&!(0,r.cy)(t)?rn(t)?un(e,null,[t]):un(e,t):un(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&rn(n)&&(n=[n]),un(e,t,n))}const Un="3.5.5"},2547:(e,t,n)=>{"use strict";n.d(t,{D$:()=>le,Ef:()=>me,Jo:()=>Q,XX:()=>fe,aG:()=>O,eB:()=>g,hp:()=>re,jR:()=>ue});var o=n(5149),r=n(9949);let i;n(3925);const s="undefined"!=typeof window&&window.trustedTypes;if(s)try{i=s.createPolicy("vue",{createHTML:e=>e})}catch(e){}const a=i?e=>i.createHTML(e):e=>e,l="undefined"!=typeof document?document:null,c=l&&l.createElement("template"),u={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?l.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?l.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?l.createElement(e,{is:n}):l.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>l.createTextNode(e),createComment:e=>l.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>l.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{c.innerHTML=a("svg"===o?`${e}`:"mathml"===o?`${e}`:e);const r=c.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},d="transition",p="animation",h=Symbol("_vtc"),f={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},m=(0,r.X$)({},o.QP,f),g=(e=>(e.displayName="Transition",e.props=m,e))(((e,{slots:t})=>(0,o.h)(o.pR,function(e){const t={};for(const n in e)n in f||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:u=a,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if((0,r.Gv)(e))return[_(e.enter),_(e.leave)];{const t=_(e);return[t,t]}}(i),E=g&&g[0],S=g&&g[1],{onBeforeEnter:T,onEnter:C,onEnterCancelled:A,onLeave:O,onLeaveCancelled:L,onBeforeAppear:I=T,onAppear:R=C,onAppearCancelled:N=A}=t,M=(e,t,n)=>{w(e,t?d:l),w(e,t?u:a),n&&n()},P=(e,t)=>{e._isLeaving=!1,w(e,p),w(e,m),w(e,h),t&&t()},F=e=>(t,n)=>{const r=e?R:C,i=()=>M(t,e,n);b(r,[t,i]),x((()=>{w(t,e?c:s),y(t,e?d:l),v(r)||k(t,o,E,i)}))};return(0,r.X$)(t,{onBeforeEnter(e){b(T,[e]),y(e,s),y(e,a)},onBeforeAppear(e){b(I,[e]),y(e,c),y(e,u)},onEnter:F(!1),onAppear:F(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>P(e,t);y(e,p),y(e,h),document.body.offsetHeight,x((()=>{e._isLeaving&&(w(e,p),y(e,m),v(O)||k(e,o,S,n))})),b(O,[e,n])},onEnterCancelled(e){M(e,!1),b(A,[e])},onAppearCancelled(e){M(e,!0),b(N,[e])},onLeaveCancelled(e){P(e),b(L,[e])}})}(e),t))),b=(e,t=[])=>{(0,r.cy)(e)?e.forEach((e=>e(...t))):e&&e(...t)},v=e=>!!e&&((0,r.cy)(e)?e.some((e=>e.length>1)):e.length>1);function _(e){return(0,r.Ro)(e)}function y(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[h]||(e[h]=new Set)).add(t)}function w(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[h];n&&(n.delete(t),n.size||(e[h]=void 0))}function x(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let E=0;function k(e,t,n,o){const r=e._endId=++E,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o(`${d}Delay`),i=o(`${d}Duration`),s=S(r,i),a=o(`${p}Delay`),l=o(`${p}Duration`),c=S(a,l);let u=null,h=0,f=0;return t===d?s>0&&(u=d,h=s,f=i.length):t===p?c>0&&(u=p,h=c,f=l.length):(h=Math.max(s,c),u=h>0?s>c?d:p:null,f=u?u===d?i.length:l.length:0),{type:u,timeout:h,propCount:f,hasTransform:u===d&&/\b(transform|all)(,|$)/.test(o(`${d}Property`).toString())}}(e,t);if(!s)return o();const c=s+"end";let u=0;const h=()=>{e.removeEventListener(c,f),i()},f=t=>{t.target===e&&++u>=l&&h()};setTimeout((()=>{uT(t)+T(e[n]))))}function T(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}const C=Symbol("_vod"),A=Symbol("_vsh"),O={beforeMount(e,{value:t},{transition:n}){e[C]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):L(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),L(e,!0),o.enter(e)):o.leave(e,(()=>{L(e,!1)})):L(e,t))},beforeUnmount(e,{value:t}){L(e,t)}};function L(e,t){e.style.display=t?e[C]:"none",e[A]=!t}const I=Symbol(""),R=/(^|;)\s*display\s*:/,N=/\s*!important$/;function M(e,t,n){if((0,r.cy)(n))n.forEach((n=>M(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=F[t];if(n)return n;let o=(0,r.PT)(t);if("filter"!==o&&o in e)return F[t]=o;o=(0,r.ZH)(o);for(let n=0;nB||(q.then((()=>B=0)),B=Date.now()),H=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;"undefined"!=typeof HTMLElement&&HTMLElement,Symbol("_moveCb"),Symbol("_enterCb");const Y=e=>{const t=e.props["onUpdate:modelValue"]||!1;return(0,r.cy)(t)?e=>(0,r.DY)(t,e):t};function V(e){e.target.composing=!0}function X(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const G=Symbol("_assign"),Q={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[G]=Y(i);const s=o||i.props&&"number"===i.props.type;j(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=(0,r.bB)(o)),e[G](o)})),n&&j(e,"change",(()=>{e.value=e.value.trim()})),t||(j(e,"compositionstart",V),j(e,"compositionend",X),j(e,"change",X))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:i,number:s}},a){if(e[G]=Y(a),e.composing)return;const l=null==t?"":t;if((!s&&"number"!==e.type||/^0\d/.test(e.value)?e.value:(0,r.bB)(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(i&&e.value.trim()===l)return}e.value=l}}},K={deep:!0,created(e,t,n){e[G]=Y(n),j(e,"change",(()=>{const t=e._modelValue,n=ne(e),o=e.checked,i=e[G];if((0,r.cy)(t)){const e=(0,r.u3)(t,n),s=-1!==e;if(o&&!s)i(t.concat(n));else if(!o&&s){const n=[...t];n.splice(e,1),i(n)}}else if((0,r.vM)(t)){const e=new Set(t);o?e.add(n):e.delete(n),i(e)}else i(oe(e,o))}))},mounted:Z,beforeUpdate(e,t,n){e[G]=Y(n),Z(e,t,n)}};function Z(e,{value:t,oldValue:n},o){let i;e._modelValue=t,i=(0,r.cy)(t)?(0,r.u3)(t,o.props.value)>-1:(0,r.vM)(t)?t.has(o.props.value):(0,r.BX)(t,oe(e,!0)),e.checked!==i&&(e.checked=i)}const J={created(e,{value:t},n){e.checked=(0,r.BX)(t,n.props.value),e[G]=Y(n),j(e,"change",(()=>{e[G](ne(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[G]=Y(o),t!==n&&(e.checked=(0,r.BX)(t,o.props.value))}},ee={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const s=(0,r.vM)(t);j(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?(0,r.bB)(ne(e)):ne(e)));e[G](e.multiple?s?new Set(t):t:t[0]),e._assigning=!0,(0,o.dY)((()=>{e._assigning=!1}))})),e[G]=Y(i)},mounted(e,{value:t,modifiers:{number:n}}){te(e,t)},beforeUpdate(e,t,n){e[G]=Y(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||te(e,t)}};function te(e,t,n){const o=e.multiple,i=(0,r.cy)(t);if(!o||i||(0,r.vM)(t)){for(let n=0,s=e.options.length;nString(e)===String(a))):(0,r.u3)(t,a)>-1}else s.selected=t.has(a);else if((0,r.BX)(ne(s),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ne(e){return"_value"in e?e._value:e.value}function oe(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const re={created(e,t,n){ie(e,t,n,null,"created")},mounted(e,t,n){ie(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){ie(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){ie(e,t,n,o,"updated")}};function ie(e,t,n,o,r){const i=function(e,t){switch(e){case"SELECT":return ee;case"TEXTAREA":return Q;default:switch(t){case"checkbox":return K;case"radio":return J;default:return Q}}}(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const se=["ctrl","shift","alt","meta"],ae={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>se.some((n=>e[`${n}Key`]&&!t.includes(n)))},le=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=(0,r.Tg)(n.key);return t.some((e=>e===o||ce[e]===o))?e(n):void 0})},de=(0,r.X$)({patchProp:(e,t,n,i,s,l)=>{const c="svg"===s;"class"===t?function(e,t,n){const o=e[h];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,c):"style"===t?function(e,t,n){const o=e.style,i=(0,r.Kg)(n);let s=!1;if(n&&!i){if(t)if((0,r.Kg)(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&M(o,t,"")}else for(const e in t)null==n[e]&&M(o,e,"");for(const e in n)"display"===e&&(s=!0),M(o,e,n[e])}else if(i){if(t!==n){const e=o[I];e&&(n+=";"+e),o.cssText=n,s=R.test(n)}}else t&&e.removeAttribute("style");C in e&&(e[C]=s?o.display:"",e[A]&&(o.display="none"))}(e,n,i):(0,r.Mp)(t)?(0,r.CP)(t)||function(e,t,n,i,s=null){const a=e[$]||(e[$]={}),l=a[t];if(i&&l)l.value=i;else{const[n,c]=function(e){let t;if(W.test(e)){let n;for(t={};n=e.match(W);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):(0,r.Tg)(e.slice(2)),t]}(t);if(i){const l=a[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();(0,o.qL)(function(e,t){if((0,r.cy)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=z(),n}(i,s);j(e,n,l,c)}else l&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,l,c),a[t]=void 0)}}(e,t,0,i,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&H(t)&&(0,r.Tn)(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!H(t)||!(0,r.Kg)(n))&&(t in e||!(!e._isVueCE||!/[A-Z]/.test(t)&&(0,r.Kg)(n)))}(e,t,i,c))?(function(e,t,n){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?a(n):n));const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,i=null==n?"checkbox"===e.type?"on":"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let i=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=(0,r.Y2)(n):null==n&&"string"===o?(n="",i=!0):"number"===o&&(n=0,i=!0)}try{e[t]=n}catch(e){}i&&e.removeAttribute(t)}(e,t,i),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||U(e,t,i,c,0,"value"!==t)):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),U(e,t,i,c))}},u);let pe;function he(){return pe||(pe=(0,o.K9)(de))}const fe=(...e)=>{he().render(...e)},me=(...e)=>{const t=he().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if((0,r.Kg)(e))return document.querySelector(e);return e}(e);if(!o)return;const i=t._component;(0,r.Tn)(i)||i.render||i.template||(i.template=o.innerHTML),1===o.nodeType&&(o.textContent="");const s=n(o,!1,function(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t}},9949:(e,t,n)=>{"use strict";function o(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}n.d(t,{$3:()=>h,$H:()=>D,BH:()=>z,BX:()=>ee,Bm:()=>w,C4:()=>Q,CE:()=>m,CP:()=>c,DY:()=>U,Gv:()=>x,J$:()=>Z,Kg:()=>y,MZ:()=>r,Mp:()=>l,NO:()=>a,Oj:()=>i,PT:()=>R,Qd:()=>C,Ro:()=>W,SU:()=>O,TF:()=>d,Tg:()=>M,Tn:()=>_,Tr:()=>H,We:()=>q,X$:()=>u,Y2:()=>J,ZH:()=>P,Zf:()=>T,_B:()=>K,bB:()=>$,cy:()=>f,gd:()=>v,pD:()=>o,rU:()=>F,tE:()=>s,u3:()=>te,vM:()=>g,v_:()=>oe,yI:()=>A,yL:()=>E,yQ:()=>j});const r={},i=[],s=()=>{},a=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,h=(e,t)=>p.call(e,t),f=Array.isArray,m=e=>"[object Map]"===S(e),g=e=>"[object Set]"===S(e),b=e=>"[object Date]"===S(e),v=e=>"[object RegExp]"===S(e),_=e=>"function"==typeof e,y=e=>"string"==typeof e,w=e=>"symbol"==typeof e,x=e=>null!==e&&"object"==typeof e,E=e=>(x(e)||_(e))&&_(e.then)&&_(e.catch),k=Object.prototype.toString,S=e=>k.call(e),T=e=>S(e).slice(8,-1),C=e=>"[object Object]"===S(e),A=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,O=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),L=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,R=L((e=>e.replace(I,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,M=L((e=>e.replace(N,"-$1").toLowerCase())),P=L((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=L((e=>e?`on${P(e)}`:"")),D=(e,t)=>!Object.is(e,t),U=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},$=e=>{const t=parseFloat(e);return isNaN(t)?e:t},W=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let B;const q=()=>B||(B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),z=o("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function H(e){if(f(e)){const t={};for(let n=0;n{if(e){const n=e.split(V);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Q(e){let t="";if(y(e))t=e;else if(f(e))for(let n=0;nee(e,t)))}const ne=e=>!(!e||!0!==e.__v_isRef),oe=e=>y(e)?e:null==e?"":f(e)||x(e)&&(e.toString===k||!_(e.toString))?ne(e)?oe(e.value):JSON.stringify(e,re,2):String(e),re=(e,t)=>ne(t)?re(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[ie(t,o)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ie(e)))}:w(t)?ie(t):!x(t)||f(t)||C(t)?t:String(t),ie=(e,t="")=>{var n;return w(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}},9416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4331:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorData=void 0;var o=n(8850),r=n(5323);t.ErrorData=function(e){this.code=null===(null==e?void 0:e.code)||void 0===(null==e?void 0:e.code)?r.UploadErrorCodes.Unknown:e.code,this.error=null==e?void 0:e.error,[r.UploadErrorCodes.MaxFileSizeExceeded,r.UploadErrorCodes.CatchError].indexOf(this.code)>-1?this.uploadFileState=o.FileUploadStateEnum.ErrorComplete:this.uploadFileState=o.FileUploadStateEnum.Error,this.message=(null==e?void 0:e.message)?"Send file error: ".concat(e.message):"Send file: error code - ".concat(r.UploadErrorCodes[this.code])}},8850:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FileUploadStateEnum=void 0,(n=t.FileUploadStateEnum||(t.FileUploadStateEnum={}))[n.Queue=0]="Queue",n[n.ReadyForUpload=1]="ReadyForUpload",n[n.Uploading=2]="Uploading",n[n.Complete=3]="Complete",n[n.Error=4]="Error",n[n.ErrorComplete=5]="ErrorComplete"},9577:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(9416),t),r(n(4331),t),r(n(8850),t),r(n(8784),t),r(n(7692),t),r(n(2787),t),r(n(5323),t),r(n(6988),t),r(n(7525),t)},8784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7692:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2787:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5323:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.UploadErrorCodes=void 0,(n=t.UploadErrorCodes||(t.UploadErrorCodes={}))[n.Unknown=-1]="Unknown",n[n.NoErrors=0]="NoErrors",n[n.MaxFileSizeExceeded=1]="MaxFileSizeExceeded",n[n.Disconnected=2]="Disconnected",n[n.CatchError=3]="CatchError",n[n.TimeoutStarting=4]="TimeoutStarting",n[n.EmptyFile=5]="EmptyFile"},6988:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n-1){var n=this.pState===r.FileUploadStateEnum.ErrorComplete?this.error||!0:null;this.onComplete(n,this)}this.onStateChanged&&this.onStateChanged(this.state,this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uploadAttemptsMade",{get:function(){return this.uploadAttempt},enumerable:!1,configurable:!0}),e}();t.UploadFile=i},7525:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},28:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});const o={node_host:"chat.yhelper.net/clients",debug:!1,ping_interval_seconds:10}},1898:(e,t,n)=>{"use strict";var o,r;n.d(t,{Wy:()=>f,Vt:()=>c,Ag:()=>o,L0:()=>r,Oh:()=>u,aL:()=>h,JY:()=>p,bw:()=>i,G6:()=>a,Wk:()=>l,Bn:()=>s,ZF:()=>d}),function(e){e.metrics="metrics",e.openWindow="windowOpened",e.closeWindow="windowClosed",e.init="init",e.appMounted="appMounted",e.chatError="chat:main:error",e.changeWidgetSettings="changeWidgetSettings",e.showPopUp="showPopUp",e.closePopUp="closePopUp",e.getStorage="getStorage",e.setKeyToStorage="setKeyToStorage",e.removeKeyFromStorage="removeKeyFromStorage",e.linkTransfer="transferLinks",e.unreadCounter="refreshUnreadCounter",e.mockWithCallback="mockWithCallback",e.mockReady="mockReady"}(o||(o={})),function(e){e.openWindow="show",e.closeWindow="close",e.openChat="openChat",e.openRegistrationChat="openRegistrationChat",e.openAutoChat="openAutoChat",e.refuseChat="refuseChat",e.refreshUserInfo="refreshUserInfo",e.connect="connect",e.openForm="openForm",e.storage="storage",e.clearStorage="clearStorage",e.mockData="mockData",e.mockCallbackData="mockCallbackData"}(r||(r={}));const i={FAQ:{path:"/",name:"FAQ"},HISTORY:{path:"/history",name:"History"},HISTORY_DETAIL:{path:"/history/:historyId",name:"History detail"},FAQ_ANSWER:{path:"/faq-answer/:faqId",name:"FAQ answer"},CHAT:{path:"/chat",name:"Chat"},OFFLINE_FORM:{path:"/offline-form",name:"Offline form"},OFFLINE_FORM_SUCCESS:{path:"/offline-form/success",name:"Offline form success"},PROBLEM_FORM:{path:"/problem-form",name:"Problem form"},FEEDBACK:{path:"/feedback",name:"Feedback"},CHAT_FLOW:{path:"/chat-flow",name:"Chat flow"},RATING:{path:"/rating",name:"Rating"},RATING_FORM:{path:"/rating-form/:formId",name:"Rating form"},FALLBACK_LOCALES:{path:"/fallback-locales",name:"Fallback locales"},DOCUMENT_CHECKING:{path:"/documents-checking",name:"Documents checking"}};var s,a,l,c,u,d;!function(e){e.none="",e.white="white",e.blue="blue",e.brown="brown",e.darkblue="darkblue",e.lightred="lightred",e.brightred="brightred",e.gray="gray",e.black="black",e.yellowgradient="yellowgradient",e.greengradient="greengradient",e.purplegradient="purplegradient",e.whiteblue="whiteblue"}(s||(s={})),function(e){e.default="default",e.highSierra="high-sierra",e.mavericks="mavericks",e.yosemite="yosemite",e.elCapitan="el-capitan",e.mojave="mojave",e.catalina="catalina",e.monterey="monterey",e.sonoma="sonoma",e.ventura="ventura",e.bigSur="big-sur",e.elysium="elysium"}(a||(a={})),function(e){e.default="default",e.blaze="blaze",e.shard="shard",e.inferno="inferno",e.ember="ember",e.vortex="vortex"}(l||(l={})),function(e){e.connectionInfo="client:connect.info",e.getHistory="client:chat.history",e.getChatHistoryDetails="client:chat.historyDetails",e.mainLog="client:main.log",e.userInfo="main:user.info",e.changeLocale="client:change.locale",e.faqSearch="client:faq:searchFullText",e.getPossibleFaq="client:faq:possible",e.getFaqById="client:faq:searchById",e.getChat="client:chat.get",e.refreshCaptcha="client:chat.captcha",e.sendMessage="client:chat.message",e.chatMessagePreview="client:chat.preview",e.chatFinish="client:chat.finish",e.messageDelivered="client:chat.delivered",e.offlineRequest="client:chat.request",e.canOpenInvitation="client:chat.canOpenInvitation",e.refuseChat="client:chat.refuse",e.inviteOperator="client:chat.inviteOperator",e.inviteInternationalOperator="client:chat.inviteInternationalOperator",e.sendInvoice="client:chat.sendInvoice",e.getFormById="client:form:searchById",e.sendForm="client:form:send",e.documentChecking="client:documentChecking",e.requestProblemList="client:chat.requestProblemList",e.operateDonate="client:chat.operateDonate",e.chatOperatorCharacter="client:chat.operatorCharacter",e.requireResponse="client:chat.requireResponse",e.checkAiAssistantStatus="client:assistant.status"}(c||(c={})),function(e){e.connect="connect",e.connectError="connect_error",e.disconnect="disconnect",e.mainError="main:error",e.markMessagesRead="client:chat.markMessagesRead",e.operatorChanged="system:operator.changed",e.connected="connected",e.documentCheckingRequested="documentCheckingRequested",e.storage="storage",e.clientInfo="client:info",e.captchaShow="client:captcha.show",e.chatInit="client:chat.init",e.message="client:chat.message",e.updateMessage="client:chat.updateMessage",e.chatFinish="client:chat.close",e.chatToProcess="client:chat.toprocess",e.chatPush="client:chat.push",e.operatorTypingMessage="operator:chat.typingMessage",e.chatInitError="client:chat.initError",e.changeLocale="client:change.locale",e.canOpenInvitation="client:chat.canOpenInvitation",e.chatOperatorCharacter="client:chat.operatorCharacter",e.operatorDonateResult="client:chat.operatorDonateResult",e.internationalOperatorInvited="client:chat.intOperatorInvited",e.requireResponse="client:chat.requireResponse",e.updateFormFieldValue="client:chat.updateFieldValue",e.formCompleted="client:formCompleted"}(u||(u={})),function(e){e[e.CLOSED=0]="CLOSED",e[e.HIDDEN=1]="HIDDEN",e[e.OPEN=2]="OPEN"}(d||(d={}));const p=10,h=2500,f=3e3},9337:(e,t,n)=>{"use strict";function o(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}n.d(t,{F:()=>o})},9761:(e,t,n)=>{"use strict";n.d(t,{aV:()=>x,jI:()=>C,jJ:()=>Y,z9:()=>V.A});var o=n(5149),r=n(9949);const i={key:1,class:"d-flex align-center direction-column"},s=(0,o.pM)({name:"AppActionButton",props:{icon:{type:String,required:!1},type:{type:String,default:"button"},position:{type:String,default:"left",required:!1},config:{type:Object,required:!1,default:void 0}},computed:{defaultClassNames(){return"button"===this.type?["d-i-flex","justify-center","t-align-center","radius-5"]:[]}}});var a=n(5292),l=n.n(a),c=n(9893),u=n.n(c),d=n(9383),p=n.n(d),h=n(6884),f=n.n(h),m=n(9088),g=n.n(m),b=n(7997),v=n.n(b),_=n(2765),y={};y.styleTagTransform=v(),y.setAttributes=f(),y.insert=p().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=g(),l()(_.A,y),_.A&&_.A.locals&&_.A.locals;var w=n(9890);const x=(0,w.A)(s,[["render",function(e,t,n,s,a,l){const c=(0,o.g2)("app-icon");return(0,o.uX)(),(0,o.CE)("button",{class:(0,r.C4)(["button d-flex align-center",e.defaultClassNames])},["icon"===e.type?((0,o.uX)(),(0,o.CE)(o.FK,{key:0},[(0,o.bF)(c,{icon:e.icon,config:e.config},null,8,["icon","config"]),(0,o.RG)(e.$slots,"default",{},void 0,!0)],64)):((0,o.uX)(),(0,o.CE)("span",i,[(0,o.RG)(e.$slots,"default",{},void 0,!0)]))],2)}],["__scopeId","data-v-c1c59c50"]]),E={class:"footer"},k=(0,o.pM)({name:"AppFooter"});var S=n(1943),T={};T.styleTagTransform=v(),T.setAttributes=f(),T.insert=p().bind(null,"head"),T.domAPI=u(),T.insertStyleElement=g(),l()(S.A,T),S.A&&S.A.locals&&S.A.locals;const C=(0,w.A)(k,[["render",function(e,t,n,r,i,s){return(0,o.uX)(),(0,o.CE)("div",E,[(0,o.RG)(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-18fadd1a"]]),A={class:"header"},O={class:"header__wrap d-flex align-center justify-s-between"},L={key:0,class:"header__icon d-i-flex h-20"},I={class:"ml-8 size-16"},R={class:"header__actions d-i-flex align-center ml-auto h-20"};var N=n(1898),M=n(579),P=n(2547);const F={class:"lang__select f-column size-10 weight-500 bg-asfalto px-8 py-4 radius-2"},D=["onClick"],U={class:"size-12"},j=(0,o.pM)({name:"LanguageSelector",props:{icon:Boolean},data:()=>({showLanguagesDropdown:!1}),computed:{localesList(){return this.$translates.localesList.value}},methods:{setLocale(e){const{locale_id:t}=e;this.$subscriptions.add(this.$chatService.changeLocale({locale_id:t}).subscribe()),this.closeLanguageDropdown()},toggleShowLanguageDropdown(){this.showLanguagesDropdown=!this.showLanguagesDropdown,this.showLanguagesDropdown&&this.$nextTick((()=>{var e,t;const n=null!==(e=this.$refs.langList)&&void 0!==e?e:null;null===(t=null==n?void 0:n.ps)||void 0===t||t.update()}))},closeLanguageDropdown(){this.showLanguagesDropdown=!1}}});var $=n(9219),W={};W.styleTagTransform=v(),W.setAttributes=f(),W.insert=p().bind(null,"head"),W.domAPI=u(),W.insertStyleElement=g(),l()($.A,W),$.A&&$.A.locals&&$.A.locals;const B=(0,w.A)(j,[["render",function(e,t,n,i,s,a){const l=(0,o.g2)("app-icon"),c=(0,o.g2)("perfect-scrollbar"),u=(0,o.gN)("click-outside");return(0,o.bo)(((0,o.uX)(),(0,o.CE)("div",{class:"lang pos-relative",onClick:t[0]||(t[0]=function(){return e.toggleShowLanguageDropdown&&e.toggleShowLanguageDropdown(...arguments)})},[(0,o.Lk)("button",F,(0,r.v_)(e.$i18n.locale),1),(0,o.Lk)("div",{class:(0,r.C4)(["lang__menu radius-10",{"d-none":!e.showLanguagesDropdown}])},[(0,o.Lk)("div",{class:(0,r.C4)(["lang__menu__list bg-rio radius-10",{"with-icon":e.icon}])},[(0,o.bF)(c,{ref:"langList",class:"show-always w-100-p"},{default:(0,o.k6)((()=>[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.localesList,(t=>((0,o.uX)(),(0,o.CE)("div",{class:(0,r.C4)(["list-item pointer d-flex align-center py-10 weight-500",[e.icon?"justify-start p-4":"justify-center",{active:e.$i18n.locale===t.name}]]),onClick:(0,P.D$)((n=>e.setLocale(t)),["stop"])},[e.icon?((0,o.uX)(),(0,o.Wv)(l,{key:0,icon:t.name,config:{type:"flag"},class:"icon mr-8"},null,8,["icon"])):(0,o.Q3)("v-if",!0),(0,o.Lk)("span",U,(0,r.v_)(t.name),1),e.icon&&e.$i18n.locale===t.name?((0,o.uX)(),(0,o.Wv)(l,{key:1,icon:"success",class:"active ml-auto size-10"})):(0,o.Q3)("v-if",!0)],10,D)))),256))])),_:1},512)],2)],2)])),[[u,e.closeLanguageDropdown]])}]]),q=(0,o.pM)({name:"AppHeader",components:{LanguageSelector:B},props:{config:Object,title:String,description:String},emits:["back","hide","close"],data:()=>({defaultConfig:{hide:!0,close:!0,back:!1,languageSelector:!1}}),computed:{mergedConfig(){return Object.assign(Object.assign({},this.defaultConfig),this.config||{})}},methods:{canDefaultAction(e){const t=this.mergedConfig[e];return"object"==typeof t?!!(null==t?void 0:t.defaultAction):t},canEmitOnAction(e){var t;const n=this.mergedConfig[e];return!this.canDefaultAction(e)||"object"!=typeof n||null===(t=null==n?void 0:n.emitOnDefaultAction)||void 0===t||t},back(){this.canDefaultAction("back")&&this.$router.go(-1),this.canEmitOnAction("back")&&this.$emit("back")},hide(){this.canDefaultAction("hide")&&M.j.closeWindow(!1,N.ZF.HIDDEN),this.canEmitOnAction("hide")&&this.$emit("hide")},close(){this.canDefaultAction("close")&&(M.j.closeWindow(),this.$nextTick((()=>{this.$router.replace({name:N.bw.FAQ.name})}))),this.canEmitOnAction("close")&&this.$emit("close")}}});var z=n(7275),H={};H.styleTagTransform=v(),H.setAttributes=f(),H.insert=p().bind(null,"head"),H.domAPI=u(),H.insertStyleElement=g(),l()(z.A,H),z.A&&z.A.locals&&z.A.locals;const Y=(0,w.A)(q,[["render",function(e,t,n,i,s,a){const l=(0,o.g2)("app-action-button"),c=(0,o.g2)("language-selector");return(0,o.uX)(),(0,o.CE)("div",A,[(0,o.Lk)("div",O,[e.mergedConfig.back?((0,o.uX)(),(0,o.CE)("div",L,[(0,o.bF)(l,{class:"size-18 d-flex align-center text-esmeralda",icon:"whole-arrow-left",type:"icon",onClick:e.back},{default:(0,o.k6)((()=>[(0,o.Lk)("span",I,(0,r.v_)(e.$t("cmn_back")),1)])),_:1},8,["onClick"])])):(0,o.Q3)("v-if",!0),(0,o.Q3)("Custom content place"),(0,o.RG)(e.$slots,"default",{},void 0,!0),(0,o.Lk)("div",R,[e.mergedConfig.languageSelector?((0,o.uX)(),(0,o.Wv)(c,{key:0,class:"m-4",icon:!1})):(0,o.Q3)("v-if",!0),e.mergedConfig.hide?((0,o.uX)(),(0,o.Wv)(l,{key:1,class:"m-4 size-16",icon:"collapse",title:e.$t("cmn_hide"),type:"icon",onClick:e.hide},null,8,["title","onClick"])):(0,o.Q3)("v-if",!0),e.mergedConfig.close?((0,o.uX)(),(0,o.Wv)(l,{key:2,class:"m-4 size-16",icon:"cross",title:e.$t("cmn_close"),type:"icon",onClick:e.close},null,8,["title","onClick"])):(0,o.Q3)("v-if",!0)])])])}],["__scopeId","data-v-77163e76"]]);var V=n(7813)},7311:(e,t,n)=>{"use strict";n.d(t,{uu:()=>f,MS:()=>k,f4:()=>j,g6:()=>S,wb:()=>T,f5:()=>$,kr:()=>I,yG:()=>R,Tg:()=>W,kS:()=>v,u7:()=>_,e0:()=>B,ri:()=>q,w2:()=>y,oo:()=>x,GF:()=>w,CJ:()=>M,LH:()=>N,zX:()=>A,DD:()=>F,$z:()=>C,Jr:()=>E,tP:()=>b,qk:()=>Q,X9:()=>m,pL:()=>O,gc:()=>X,Wh:()=>U,ZA:()=>P,Mj:()=>D,Hs:()=>g,WW:()=>z,jm:()=>H,IN:()=>Y,hC:()=>V,qb:()=>G});var o={};n.r(o),n.d(o,{APP_SETTINGS:()=>i,DECODED_EMOJI_BLOCK:()=>u,DECODED_EMOJI_SUPPORT_STYLE:()=>d,EMOJI_CONTAINER_TYPE:()=>p,FAQ_QUESTIONS_LIST_LIMIT:()=>l,NO_ANSWER_FOR_MY_QUESTION_MIN_LENGTH:()=>c,OPERATOR_DONATE_TIMER_SECONDS:()=>s,UploaderOptions:()=>a});var r=n(28);const i={audioContainerId:"sh_container_audio",clientWindowShowValue:"cws_value",clientWindowStateActualValue:"cws_status",sessionStorageKey:"sessionid",newVisitorKey:"newVisitor",storagePrefix:"JSFrame.",shownPopups:"shownpopups",lastCallTimeStorageKey:"lastcalltime",linksAttribute:"global-href-value",unreadMessagesKey:"unread-chat-messages",operatorCharactersDialogStarted:"chat_operator_character_dialog",logSocketEventsKey:"log_socket_events"},s=5,a=Object.assign({maxFileSize:5e6,uploadAttempts:1,initFileTransferTimeout:15e3},r.c.uploader||{}),l=6,c=12,u="widget_emoji",d="d-i-block w-24 h-24 mx-2",p="i",h=o,{APP_SETTINGS:f,OPERATOR_DONATE_TIMER_SECONDS:m,UploaderOptions:g,NO_ANSWER_FOR_MY_QUESTION_MIN_LENGTH:b,DECODED_EMOJI_BLOCK:v,DECODED_EMOJI_SUPPORT_STYLE:_,EMOJI_CONTAINER_TYPE:y,FAQ_QUESTIONS_LIST_LIMIT:w}=h,x=[{namespace:"popular_smiles",icons:[{icon:"angel",unicodes:["👼"]},{icon:"angry",unicodes:["😠"]},{icon:"cat-angry",unicodes:["😾"]},{icon:"cat-happy",unicodes:["😺"]},{icon:"cat-love",unicodes:["😻"]},{icon:"cool",unicodes:["😎"]},{icon:"crazy",unicodes:["😛"]},{icon:"cry",unicodes:["😭"]},{icon:"dizzy",unicodes:["😵"]},{icon:"drool",unicodes:["🤤"]},{icon:"glasses",unicodes:["🤓"]},{icon:"lol",unicodes:["😂"]},{icon:"money-mouth-face",unicodes:["🤑"]},{icon:"sad",unicodes:["😥"]},{icon:"smile",unicodes:["🙂"]}]},{namespace:"smiles",icons:[{icon:"anxious-face-with-sweat",unicodes:["😰"]},{icon:"check-mark-button",unicodes:["✅"]},{icon:"cherry-blossom",unicodes:["🌸"]},{icon:"crying",unicodes:["🥲"]},{icon:"evil",unicodes:["😠"]},{icon:"eyes",unicodes:["👀"]},{icon:"face-with-raised-eyebrow",unicodes:["🤨"]},{icon:"four-leaf-clover",unicodes:["🍀"]},{icon:"handshake",unicodes:["🤝"]},{icon:"happy",unicodes:["😄"]},{icon:"hit",unicodes:["🤬"]},{icon:"hushed",unicodes:["😯"]},{icon:"in-love",unicodes:["😍"]},{icon:"love",unicodes:["🥰"]},{icon:"magnifying-glass-tilted-left",unicodes:["🔍"]},{icon:"man-shrugging",unicodes:["🤷"]},{icon:"mask",unicodes:["😷"]},{icon:"money-with-wings",unicodes:["💸"]},{icon:"monster",unicodes:["👾"]},{icon:"monster-happy",unicodes:["🤡"]},{icon:"nausea",unicodes:["🤢"]},{icon:"nerd",unicodes:["🤓"]},{icon:"ninja",unicodes:["🥷"]},{icon:"party",unicodes:["🥳"]},{icon:"patch",unicodes:["😵"]},{icon:"pirate",unicodes:["☠"]},{icon:"pleading-face",unicodes:["🥺"]},{icon:"red-heart",unicodes:["❤"]},{icon:"rocket",unicodes:["🚀"]},{icon:"scared",unicodes:["😱","😨"]},{icon:"see-no-evil-monkey",unicodes:["🙈"]},{icon:"shocked",unicodes:["😲"]},{icon:"sleeping",unicodes:["😴"]},{icon:"slot-machine",unicodes:["🎰"]},{icon:"stuck-out-tongue",unicodes:["😛"]},{icon:"thermometer",unicodes:["🤒"]},{icon:"triumph",unicodes:["🤬","😤"]},{icon:"tulip",unicodes:["🌷"]},{icon:"upside-down",unicodes:["🙃"]},{icon:"volcano",unicodes:["🌋"]},{icon:"vomiting",unicodes:["🤮"]},{icon:"vulcan-salute",unicodes:["🖖"]},{icon:"waving-hand",unicodes:["👋"]},{icon:"wow",unicodes:["🤩"]},{icon:"writing-hand",unicodes:["✍"]},{icon:"yawn",unicodes:["🥱"]},{icon:"zany",unicodes:["🤪"]}]},{namespace:"gambling",icons:[{icon:"7",unicodes:["7️⃣"]},{icon:"18",unicodes:["🔞"]},{icon:"apple",unicodes:["🍎"]},{icon:"billiard",unicodes:["8️⃣"]},{icon:"billiards",unicodes:["🎱"]},{icon:"bowtie",unicodes:["⧓"]},{icon:"cherry",unicodes:["🍒"]},{icon:"chip-1",unicodes:["♢"]},{icon:"chip-2",unicodes:["♤"]},{icon:"clover",unicodes:["♣️"]},{icon:"clubs",unicodes:["🎴"]},{icon:"croupier-boy",unicodes:["🤵"]},{icon:"croupier-girl",unicodes:["🤵‍♀️"]},{icon:"crown",unicodes:["👑"]},{icon:"diamond",unicodes:["💎"]},{icon:"dices",unicodes:["🎲"]},{icon:"dress",unicodes:["👗"]},{icon:"exchange",unicodes:["💱"]},{icon:"flame",unicodes:["🔥"]},{icon:"gold-medal",unicodes:["🥇"]},{icon:"grapes",unicodes:["🍇"]},{icon:"hat",unicodes:["🎩"]},{icon:"heart",unicodes:["♥","❤️"]},{icon:"pepper",unicodes:["🌶"]},{icon:"star",unicodes:["⭐"]},{icon:"strawberry",unicodes:["🍓"]},{icon:"target",unicodes:["🎯"]},{icon:"treasure",unicodes:["🗃"]}]},{namespace:"hands",icons:[{icon:"hand",unicodes:["🫱"]},{icon:"hand-2",unicodes:["🫲"]},{icon:"hold",unicodes:["✋"]},{icon:"ok",unicodes:["👌"]},{icon:"pointing",unicodes:["👉"]},{icon:"pointing-2",unicodes:["👈"]},{icon:"thumb-down",unicodes:["👎"]},{icon:"thumb-up",unicodes:["👍"]}]},{namespace:"new_year",icons:[{icon:"santa-claus",unicodes:["🎅"]},{icon:"christmas-tree",unicodes:["🎄"]},{icon:"bottle-with-popping-cork",unicodes:["🍾"]},{icon:"clinking-glasses",unicodes:["🥂"]},{icon:"party-popper",unicodes:["🎉"]},{icon:"confetti-ball",unicodes:["🎊"]},{icon:"wrapped-gift",unicodes:["🎁"]}]}],E=[];var k,S,T,C,A;!function(e){e[e.STATUS_DISABLED=0]="STATUS_DISABLED",e[e.STATUS_ENABLED=1]="STATUS_ENABLED"}(k||(k={})),function(e){e[e.STATUS_DEFERRED=0]="STATUS_DEFERRED",e[e.STATUS_PENDING=1]="STATUS_PENDING",e[e.STATUS_IN_PROCESS=2]="STATUS_IN_PROCESS",e[e.STATUS_FINISHED=3]="STATUS_FINISHED"}(S||(S={})),function(e){e[e.CLIENT=0]="CLIENT",e[e.PUSH=1]="PUSH",e[e.AUTO=2]="AUTO",e[e.DEFERRED=3]="DEFERRED",e[e.CLIENT_OFFLINE_REQUEST=4]="CLIENT_OFFLINE_REQUEST",e[e.VERIFICATION=5]="VERIFICATION",e[e.CLIENT_TELEGRAM=6]="CLIENT_TELEGRAM",e[e.TELEGRAM_DEFERRED=7]="TELEGRAM_DEFERRED",e[e.ASSISTANT=8]="ASSISTANT"}(T||(T={})),function(e){e[e.MESSAGE=0]="MESSAGE",e[e.PRIVATE=1]="PRIVATE",e[e.TOPIC=2]="TOPIC",e[e.FORM=3]="FORM",e[e.ATTACH=7]="ATTACH",e[e.TAG=9]="TAG",e[e.FORM_SEND=10]="FORM_SEND",e[e.AUTO_MESSAGE_WAIT=11]="AUTO_MESSAGE_WAIT",e[e.ROBOT=12]="ROBOT",e[e.INVOICE=13]="INVOICE",e[e.INVOICE_SEND=14]="INVOICE_SEND",e[e.QUICK_LINK=16]="QUICK_LINK"}(C||(C={})),function(e){e[e.FROM_INTERNAL_DIALOG=1]="FROM_INTERNAL_DIALOG",e[e.FROM_INTERNAL_CALL=2]="FROM_INTERNAL_CALL",e[e.FROM_INTERNAL_UNKNOWN=3]="FROM_INTERNAL_UNKNOWN",e[e.FROM_CHAT_MESSAGE=4]="FROM_CHAT_MESSAGE",e[e.FROM_FAQ=5]="FROM_FAQ"}(A||(A={}));const O="#require_response";var L;!function(e){e.Telegram="telegram"}(L||(L={}));const I={[L.Telegram]:{icon:"telegram"}};var R,N,M;!function(e){e[e.none=0]="none",e[e.negative=1]="negative",e[e.positive=5]="positive"}(R||(R={})),function(e){e[e.text=0]="text",e[e.textarea=1]="textarea",e[e.select=2]="select",e[e.stars=3]="stars",e[e.datepicker=4]="datepicker",e[e.number=5]="number",e[e.attachment=6]="attachment",e[e.datetimePicker=7]="datetimePicker"}(N||(N={})),function(e){e.datePicker="date-picker",e.datetimePicker="datetime-picker",e.stars="stars",e.text="text-input",e.attachment="attachment"}(M||(M={}));const P=500;var F,D;!function(e){e[e.Backspace=8]="Backspace",e[e.Delete=46]="Delete",e[e.Enter=13]="Enter",e[e.Space=32]="Space",e[e.Left=37]="Left",e[e.Right=39]="Right"}(F||(F={})),function(e){e[e.SHOW_CHAT=1]="SHOW_CHAT",e[e.OPEN_CHAT_FROM_GENERAL=2]="OPEN_CHAT_FROM_GENERAL",e[e.FAQ_VIEW=3]="FAQ_VIEW",e[e.OPEN_CHAT_FROM_FAQ=4]="OPEN_CHAT_FROM_FAQ",e[e.FAQ_HELPED=5]="FAQ_HELPED",e[e.OPEN_HISTORY=6]="OPEN_HISTORY",e[e.OPEN_FORM=7]="OPEN_FORM",e[e.OPEN_ASSISTANT=8]="OPEN_ASSISTANT"}(D||(D={}));const U=56,j=Symbol("app_instance"),$=Symbol("operators_characters_feature"),W=Symbol("chat_state"),B=Symbol("document_visibility"),q=Symbol("donates"),z=Symbol("widget_behaviour"),H=Symbol("widget_project_settings"),Y=Symbol("widget_settings"),V=Symbol("window_state"),X={aiAssistEnabled:!1,allowDialogHistory:!0,allowOpenChatFromFaqList:!0,chatFlowAddQuestionTriggerForStartChat:!1,chatFlowDisableOpenChatFromInput:!1,chatFlowForceEnabled:!1,faqAnswerGotoFeedbackInsteadOfChat:!1,feedbackShowOpenChatButton:!1,hideFeedbackOnFAQ:!1},G="v3.6.1.072292768";var Q;!function(e){e[e.chat_operator=1]="chat_operator",e[e.chat=2]="chat",e[e.feedback=3]="feedback",e[e.faq_answer=4]="faq_answer",e[e.rating=5]="rating",e[e.chat_flow=6]="chat_flow",e[e.fallback_locales=7]="fallback_locales"}(Q||(Q={}))},1051:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});class o{constructor(e){this.file=e,this.upload={inProgress:!1,uploadErrors:null};const{name:t,size:n}=e;this.name=t,this.size=n}}},4132:()=>{"use strict";String.fromCodePoint||function(e){const t=function(){const t=[];let n=0,o="";for(let r=0,i=arguments.length;r!==i;++r){let i=+(r<0||arguments.length<=r?void 0:arguments[r]);if(!(i<1114111&&i>>>0===i))throw RangeError("Invalid code point: "+i);i<=65535?n=t.push(i):(i-=65536,n=t.push(55296+(i>>10),i%1024+56320)),n>=16383&&(o+=e(...t),t.length=0)}return o+e(...t)};try{Object.defineProperty(String,"fromCodePoint",{value:t,configurable:!0,writable:!0})}catch(e){String.fromCodePoint=t}}(String.fromCharCode)},128:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(3925),r=n(7311),i=n(6441),s=n(862),a=n(3628),l=n(1704);const c=new class{constructor(){this.getOutgoingId=(()=>{let e=1;return()=>e++})()}getSystemMessage(e){return this.parse({id:-1,type_id:r.$z.MESSAGE,timestamp:new Date,sender:{is_system_message:1,type:"support",photo:null},content:e,delivered:1})}generateWidgetMessageId(e){return`${(new Date).getTime()}:${e}:${this.getOutgoingId()}`}getOutgoingTextMessage(e,t,n,o){return this.getOutgoingMessage(e,n,o,{type_id:r.$z.MESSAGE,content:t})}transformMessage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.decodeHtml(e);return t=(0,l.iQ)(t),t=(0,l.j1)(t),t}decodeHtml(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=document.createElement("textarea");return t.innerHTML=e,setTimeout((()=>t.remove())),t.value}parse(e){var t,n,l;const c="user"===e.sender.type,u=!!e.sender.is_system_message,d=!c&&!u&&[r.$z.MESSAGE,r.$z.ROBOT].indexOf(e.type_id)>-1,p=(0,o.Kh)(Object.assign(Object.assign({},e),{is_user_reply:c,is_system_reply:u,is_operator_reply:d,is_deleted:!1,reply_to:e.reply_to?this.parse(e.reply_to):null,allow_reply_to:!u&&e.id>0&&[r.$z.MESSAGE,r.$z.ATTACH,r.$z.ROBOT].indexOf(e.type_id)>-1&&!(null===(t=e.content)||void 0===t?void 0:t.donate)}));switch(p.type_id){case r.$z.QUICK_LINK:p.is_deleted=!p.content.link,p.content.title=p.reply_to_message_preview=this.decodeHtml(p.content.title);break;case r.$z.MESSAGE:case r.$z.ROBOT:p.is_deleted=!p.content,p.content=p.reply_to_message_preview=this.transformMessage(p.content),a.A.decode(p.content,(e=>{p.content=p.reply_to_message_preview=e}));break;case r.$z.ATTACH:p.reply_to_message_preview=p.content.name;break;case r.$z.FORM:p.reply_to_message_preview=p.content.title,p.content.form=s.A.transformFormFieldsToFormControls(p.content.fields_definition),p.content.has_answer=p.content.fields_definition.every((e=>"value"in e));break;case r.$z.INVOICE_SEND:{const{$translates:e}=i.y.globalProperties,t=(null===(l=null===(n=p.content)||void 0===n?void 0:n.successInvoices)||void 0===l?void 0:l.length)?e.getTranslate("inv_sent_success"):e.getTranslate("inv_sent_error");p.reply_to_message_preview=p.content.result_text=t;break}}return p}getDonateSuccessMessage(e){let{donate_image:t}=e;return this.parse({content:{donate:{purchaseId:0},base:t,name:"",size:""},delivered:1,type_id:r.$z.ATTACH,id:(new Date).getTime(),sender:{type:"user",photo:null,is_system_message:0},timestamp:new Date})}getOutgoingMessage(e,t,n,r){const i=(0,o.Kh)(Object.assign(Object.assign({},this.parse(Object.assign(Object.assign({},r),{reply_to_id:t,id:-1,timestamp:new Date,sender:{is_system_message:0,type:"user",photo:null},delivered:0}))),{wm_id:e,outgoing_state:{resend:()=>{i.outgoing_state.is_sending=!0,n()}}}));return i}}},3628:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(175),r=n(9168),i=n(1693),s=n(6583),a=n(7708),l=n(7813),c=n(7311),u=n(8298);const d=new class{constructor(){var e,t;this.emojisList=c.oo,this.preparedNamespaceSearch=this.emojisList.reduce(((e,t)=>{let{namespace:n,icons:o}=t;const r=[];return o.forEach((e=>{let{unicodes:t}=e;r.push(...t)})),e[n]=r,e}),{}),this.supportedEmojis=Object.values(this.preparedNamespaceSearch).reduce(((e,t)=>[...e,...t]),[]).sort(((e,t)=>t.length-e.length)),this.supportedEmojisRegExp=new RegExp(`(${this.supportedEmojis.join("|")})`,"gm"),this.supportedEmojisUnicodesRegExp=new RegExp(`(${this.supportedEmojis.map((e=>this.emojiEncode(e))).join("|")})`,"gm"),this.emojiIconAsyncComponent=u.Cs.registerComponent(l.A,{icon:"",config:{type:"emoji",namespace:""}}),this.$decodeText=new o.B,this.$decodeText.pipe((0,a.T)((e=>{let{text:t,cb:n}=e;return{text:this.replaceUnicodeToEmojis(String(null!=t?t:"")),cb:n}})),(e=e=>{const{text:t}=null!=e?e:{};return t&&t.match(this.supportedEmojisRegExp)?this.emojiIconAsyncComponent.waitComponentInit("EmojiIcon").pipe((0,a.T)((()=>e))):(0,s.of)(e)},(0,i.T)(t)?(0,r.Z)(e,t,1):(0,r.Z)(e,1))).subscribe((e=>{let{text:t,cb:n}=e;t=t.replace(this.supportedEmojisRegExp,(e=>{const t=this.searchEmojiImageByCode(e);if(null==t?void 0:t.icon){const n=document.createElement(c.w2);return n.contentEditable="false",n.className=`${c.kS} ${c.u7}`,n.setAttribute("data-code",e),this.emojiIconAsyncComponent.componentLoader.renderToContainer(n,{icon:t.icon,config:{type:"emoji",namespace:t.namespace}}),n.outerHTML}return""})),n(t)}))}decode(e,t){this.$decodeText.next({text:e,cb:t})}encode(e){const t=document.createElement("div");t.innerHTML=e;const n=t.querySelectorAll(`.${c.kS}`);return[].forEach.call(n,(e=>{var t;e.outerHTML=null!==(t=e.getAttribute("data-code"))&&void 0!==t?t:""})),this.replaceUnicodeToEmojis(t.innerHTML)}emojiDecode(e){return e.split(" ").map((e=>{const t=parseInt(e,void 0);return String.fromCodePoint(t)})).join("")}emojiEncode(e){if(1===e.length)return"0x"+e.charCodeAt(0).toString(16);if(e.length>1){const t=[];for(let n=0;n=55296&&e.charCodeAt(n)<=56319?e.charCodeAt(n+1)>=56320&&e.charCodeAt(n+1)<=57343&&t.push(1024*(e.charCodeAt(n)-55296)+(e.charCodeAt(n+1)-56320)+65536):(e.charCodeAt(n)<55296||e.charCodeAt(n)>57343)&&t.push(e.charCodeAt(n));return t.map((e=>`0x${e.toString(16)}`)).join(" ")}return""}searchEmojiImageByCode(e){const t=Object.keys(this.preparedNamespaceSearch).find((t=>{const{[t]:n}=this.preparedNamespaceSearch;return n.includes(e)}));if(t){const n=this.emojisList.find((e=>{let{namespace:n}=e;return n===t}));if(n){const t=n.icons.find((t=>t.unicodes.includes(e)));if(t)return Object.assign({namespace:n.namespace},t)}}}replaceUnicodeToEmojis(e){return null==e?void 0:e.replace(this.supportedEmojisUnicodesRegExp,(e=>this.emojiDecode(e)))}}},4313:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(3925),r=n(5149),i=n(175),s=n(8863),a=n(1704),l=n(1898);const c=new class{constructor(){this.searchTextModels={},this.cache={},this.cacheChange=new i.B,this.cachedAnswers={},this.cachedAnswersChange=new i.B,this.defaultFaqList=[],this._faqList=(0,o.KR)([]),(0,r.wB)((()=>s.kW.status),(e=>{e===l.ZF.CLOSED&&this.resetAllSearchTextModels()}),{immediate:!0})}get faqList(){return this._faqList}init(e){this.defaultFaqList=[...e],this.setFaq({questions:e})}getSearchTextModel(e){return this.searchTextModels[e]=this.searchTextModels[e]||(0,o.KR)(""),this.searchTextModels[e]}resetSearchTextModel(e){e in this.searchTextModels&&(this.searchTextModels[e].value="")}resetAllSearchTextModels(){Object.keys(this.searchTextModels).forEach((e=>{this.resetSearchTextModel(e)}))}setFaq(e){const{questions:t=[],search:n=null}=e||{};this.faqList.value=t,n&&this.setCache(n,t)}setCachedAnswers(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];null==e||e.forEach((e=>{(null==e?void 0:e.id)&&(null==e?void 0:e.answer)&&(this.cachedAnswers[e.id]=e,this.cachedAnswersChange.next(this.cachedAnswers))}))}setCache(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(Array.isArray(t)){const n=(0,a.vM)(e);if(n){const e=this.cache[n]=t.map((e=>((null==e?void 0:e.answer)&&(e.answer=(0,a.iQ)(e.answer,!1)),e)));this.cacheChange.next(this.cache),this.setCachedAnswers(e)}}}getCache(e){const t=(0,a.vM)(e);return this.cache[t]}removeCache(e){const t=(0,a.vM)(e);delete this.cache[t]}resetAllCache(){this.cache={},this.cacheChange.next(this.cache)}getCachedAnswer(e){var t;return null!==(t=this.cachedAnswers[e])&&void 0!==t?t:null}getPossibleQuestions(){return this.getCache({possibleQuestions:1})||[]}resetPossibleQuestions(){this.removeCache({possibleQuestions:1})}applyEmptyFaqList(){this.setFaq({questions:[]})}applyFaqDefaultList(){this.setFaq({questions:[...this.defaultFaqList]})}}},862:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(175),r=n(7311),i=n(1704),s=n(1051);const a=new class{constructor(){this.cache={},this.cacheChange=new o.B}setCache(e,t){const n=(0,i.vM)(e);n&&(this.cache[n]=t,this.cacheChange.next(this.cache))}getCache(e){var t;const n=(0,i.vM)(e);return null!==(t=this.cache[n])&&void 0!==t?t:null}removeCache(e){const t=(0,i.vM)(e);delete this.cache[t],this.cacheChange.next(this.cache)}transformFormFieldToFormControl(e){var t;switch(e.type){case r.CJ.text:return{type:r.LH.text,modelName:e.name,model:e.value?e.value.toString():"",label:e.label,validator(){return e.required&&!this.model?{required:!0}:String(this.model).length>r.ZA?{maxLength:!0}:null}};case r.CJ.stars:return{type:r.LH.stars,modelName:e.name,model:e.value&&!isNaN(+e.value)?+e.value:1,label:e.label,validator(){return e.required&&!this.model?{required:!0}:null}};case r.CJ.datePicker:case r.CJ.datetimePicker:return{type:e.type===r.CJ.datePicker?r.LH.datepicker:r.LH.datetimePicker,modelName:e.name,model:e.value?e.value.toString():"",label:e.label,validator(){return e.required&&!this.model?{required:!0}:null}};case r.CJ.attachment:const n=null!==(t=e.value)&&void 0!==t?t:null;return{type:r.LH.attachment,modelName:e.name,model:n,label:e.label,validator(){return e.required&&!this.model?{required:!0}:this.model instanceof s.E?this.model.upload.uploadErrors:null}};default:return e.type,null}}transformFormFieldsToFormControls(e){return(e||[]).reduce(((e,t)=>{const n=this.transformFormFieldToFormControl(t);return n&&e.push(n),e}),[])}isEmailString(){return/^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/.test(String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim())}isPhoneString(){return/^\+?[-()0-9\s]{10,20}$/i.test(String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim())}getAttachmentFieldsForUpload(e){return e.filter((e=>e.type===r.CJ.attachment&&e.value instanceof s.E))}}},7746:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var o=n(175),r=n(2198),i=n(6814),s=n(8146),a=n(7311),l=n(8863),c=n(6906);const u=new class{constructor(){this.operatorDonateBuyResult=new o.B,this._showGiftsSelection=new r.t(!1),this.$giftsSelectionVisible=this._showGiftsSelection.pipe((0,i.B)(5)),this.operatorDonateBuyResult.pipe((0,s.p)((e=>!!(null==e?void 0:e.donate_id)&&!e.error)),(0,i.B)(1e3*a.X9)).subscribe((e=>{this.handleDonateBuyResult(e.donate_id)}))}closeGiftsSelection(){this._showGiftsSelection.next(!1)}toggleGiftsSelection(){this._showGiftsSelection.next(!this._showGiftsSelection.value)}getDonateList(){var e;return null===(e=l.Ez.list)||void 0===e?void 0:e.map((e=>Object.assign({},e)))}handleDonateBuyResult(e){var t;const n=(null===(t=l.Ez.list)||void 0===t?void 0:t.find((t=>{let{donate_id:n}=t;return n===e})))||null;n&&c.fo.setOperatorDonateId(n.donate_id)}}},1857:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(3925),r=n(5149),i=n(1898),s=n(6441);const a=new class{constructor(){this.unreadMessages=(0,o.Kh)(new Set),(0,r.wB)(this.unreadMessages,(()=>{this.notifyParent()}),{immediate:!0})}get unreadMessagesCount(){return this.unreadMessages.size}removeMessages(e){e.forEach((e=>{this.unreadMessages.delete(e)}))}addMessages(e){e.forEach((e=>{let{id:t}=e;this.unreadMessages.add(t)}))}resetCounter(){this.unreadMessages.clear()}notifyParent(){s.o.sendMessage(i.Ag.unreadCounter,{count:this.unreadMessagesCount})}}},8529:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var o=n(175),r=n(4629),i=n(7688),s=n(380),a=n(9168),l=n(9739),c=n(1693),u=n(7708),d=Array.isArray;var p=["addListener","removeListener"],h=["addEventListener","removeEventListener"],f=["on","off"];function m(e,t,n,o){if((0,c.T)(n)&&(o=n,n=void 0),o)return m(e,t,n).pipe((b=o,(0,u.T)((function(e){return function(e,t){return d(t)?e.apply(void 0,(0,r.fX)([],(0,r.zs)(t))):e(t)}(b,e)}))));var b,v=(0,r.zs)(function(e){return(0,c.T)(e.addEventListener)&&(0,c.T)(e.removeEventListener)}(e)?h.map((function(o){return function(r){return e[o](t,r,n)}})):function(e){return(0,c.T)(e.addListener)&&(0,c.T)(e.removeListener)}(e)?p.map(g(e,t)):function(e){return(0,c.T)(e.on)&&(0,c.T)(e.off)}(e)?f.map(g(e,t)):[],2),_=v[0],y=v[1];if(!_&&(0,l.X)(e))return(0,a.Z)((function(e){return m(e,t,n)}))((0,i.Tg)(e));if(!_)throw new TypeError("Invalid event target");return new s.c((function(e){var t=function(){for(var t=[],n=0;n{this._windowResize.next(e)}))}get deepLinkNavigationTimeout(){return(0,b.v)((()=>/FxiOS/.test(navigator.userAgent)?(0,v.of)(!0):(0,_.O)(this.$windowBlur.pipe((0,u.T)((()=>!0))),(0,y.O)(x.Wy).pipe((0,u.T)((()=>!1)))))).pipe((0,u.T)((e=>({navigated:e}))),(0,w.s)(1))}}},8298:(e,t,n)=>{"use strict";n.d(t,{gt:()=>r,Cs:()=>p,J_:()=>m,wE:()=>g.A,gP:()=>v,br:()=>w,iJ:()=>E,wW:()=>k});var o=n(1898);const r=new class{constructor(){this.routeStates=[]}get appRouter(){return this._appRouter}initRouter(e){this._appRouter=e}get go(){return this.appRouter.go.bind(this.appRouter)}get push(){return this.appRouter.push.bind(this.appRouter)}get replace(){return this.appRouter.replace.bind(this.appRouter)}disableHistoryForIframe(e){window.self!==window.top&&(e.destroy(),this.appRouter.push=e=>(this.routeStates.push(this.appRouter.currentRoute.value),this.appRouter.replace(e)),this.appRouter.go=e=>{const t=this.routeStates.splice(e,Math.abs(e)).shift()||"/";this.appRouter.replace(t)})}isCurrentRoute(e){var t,n,r;const i=o.bw[e];return(null==i?void 0:i.name)===(null===(r=null===(n=null===(t=this.appRouter)||void 0===t?void 0:t.currentRoute)||void 0===n?void 0:n.value)||void 0===r?void 0:r.name)}};var i=n(2547),s=n(5149),a=n(2198),l=n(8146),c=n(2623),u=n(9283);class d{constructor(e,t,n){this.component=e,this.coldStartProps=t,this.context=n,this.lastRenderContainer=null,this._status="waiting"}get status(){return this._status}set status(e){this._status=e}renderToContainer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.coldStartProps;return this.lastRenderContainer=null,this.lastRenderContainer=e,this.renderedComponent?(this.renderedComponent.props=t,(0,i.XX)(this.renderedComponent,this.lastRenderContainer)):console.warn("Component is not ready"),this.lastRenderContainer}coldRenderComponent(){this._status="initiation",this.renderedComponent=(0,s.h)(this.component,(0,s.v6)(this.coldStartProps)),this.renderedComponent.appContext=this.context;const e=document.createElement("div");this.renderToContainer(e)}}const p=new class{constructor(){this.contextApp=(0,i.Ef)({}),this.componentsLoaders={},this.initedComponentsMap={},this.$initedComponentsMap=new a.t(this.initedComponentsMap),this.init()}registerComponent(e,t){var n;const o=this,r=null!==(n=null==e?void 0:e.name)&&void 0!==n?n:"unknown";return this.componentsLoaders[r]=this.componentsLoaders[r]||new d(e,t,this.contextApp._context),this.registerNewComponentInitedMap(r),{componentLoader:this.componentsLoaders[r],waitComponentInit(e){return o.registerNewComponentInitedMap(e),o.$initedComponentsMap.pipe((0,l.p)((t=>"waiting"===this.componentLoader.status||t[e])),(0,c.M)((t=>{t[e]||this.componentLoader.coldRenderComponent()})),(0,l.p)((t=>t[e])),(0,u.s)(1))}}}registerNewComponentInitedMap(e){e in this.initedComponentsMap||(this.initedComponentsMap[e]=!1,this.$initedComponentsMap.next(this.initedComponentsMap))}updateValueInComponentsInitedMap(e,t){e in this.initedComponentsMap&&(this.initedComponentsMap[e]=t,this.$initedComponentsMap.next(this.initedComponentsMap))}init(){const e=this;this.contextApp.mixin({mounted(){var t;const n=(0,s.nI)(),o=null!==(t=null==n?void 0:n.type.name)&&void 0!==t?t:"unknown";e.componentsLoaders[o]&&(e.componentsLoaders[o].status="inited"),e.updateValueInComponentsInitedMap(o,!0)}})}};var h=n(7311);class f{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;this.tagName=e,this.clickCallback=t,this.className=n}addClickListener(e){e.classList.contains(this.className)||(e.classList.add(this.className),e.addEventListener("click",(()=>{this.clickCallback(e)})))}}const m=new class{constructor(){this.tagsList=[new f("hyperlink",this.onHyperlinkClick.bind(this)),new f("faqquestion",this.onFaqQuestionClick.bind(this),"question"),new f("faqform",this.onFaqFormLinkClick.bind(this))],this.searchElementsQuery=this.tagsList.map((e=>{let{tagName:t,className:n}=e;return`${t}:not(.${n})`})).join(", ")}initService(e,t){this.observer||(this.$router=e,this.$chatService=t,this.observer=new MutationObserver((()=>this.onDomChanged())),this.observer.observe(document,{childList:!0,subtree:!0,characterData:!0}))}onDomChanged(){document.querySelectorAll(this.searchElementsQuery).forEach((e=>{const t=this.tagsList.find((t=>t.tagName.toUpperCase()===e.tagName));null==t||t.addClickListener(e)}))}onHyperlinkClick(e){const{route:t}=(null==e?void 0:e.dataset)||{};if(t)switch(String(t).toLowerCase()){case"offline-form":this.$router.push({name:o.bw.OFFLINE_FORM.name});break;case"history":this.$chatService.sendLog(h.Mj.OPEN_HISTORY),this.$router.push({name:o.bw.HISTORY.name});break;default:this.$router.push({name:o.bw.FAQ.name})}}onFaqQuestionClick(e){var t;const n=+((null==e?void 0:e.id)||(null===(t=null==e?void 0:e.dataset)||void 0===t?void 0:t.id));n&&(this.$chatService.sendLog(h.Mj.FAQ_VIEW,{faqId:n}),this.$router.push({name:o.bw.FAQ_ANSWER.name,params:{faqId:n}}))}onFaqFormLinkClick(e){const{formId:t}=(null==e?void 0:e.dataset)||{};t&&this.$chatService.openFormFromFaq(t)}};var g=n(8529),b=n(28);const v=new class{constructor(){this.log=()=>{},this.error=()=>{},b.c.debug&&(this.log=function(){return console.log(...arguments)},this.error=function(){return console.error(...arguments)})}};var _=n(175),y=n(5520);const w=new class{constructor(){this.replyToSubject=new _.B,this.$replyToTargetChange=this.replyToSubject.pipe((0,y.F)())}setReplyToMessage(e){this.replyToSubject.next(e)}};var x=n(1234);const E=new class{sanitizeHtml(e,t){const n=this.getConfig(t);try{return(0,x.sanitize)(e,n)}catch(e){return""}}getConfig(e){const t={KEEP_CONTENT:!1,ALLOWED_TAGS:[h.w2,"#text"],ALLOWED_ATTR:["class","data-code","contenteditable"],ALLOWED_URI_REGEXP:/^(?:(?:(?:f|ht)tps?):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i};return(null==e?void 0:e.allowImages)&&(t.ALLOWED_TAGS.push("img"),t.ALLOWED_ATTR.push("src")),t}},k=new class{constructor(){this._resetVoiceRecord=new _.B,this.$resetVoiceRecord=this._resetVoiceRecord.asObservable()}resetVoiceRecord(e){this._resetVoiceRecord.next({resetChunks:e})}}},6441:(e,t,n)=>{"use strict";n.d(t,{y:()=>o,o:()=>l});const o=new class{get globalProperties(){var e,t;return(null===(t=null===(e=this._instance)||void 0===e?void 0:e.config)||void 0===t?void 0:t.globalProperties)||{}}setInitialized(e){this._instance=e}};var r=n(175),i=n(8146),s=n(7311),a=n(1898);const l=new class{constructor(){this.onMessage=new r.B,this.queue=[],this._messageId=0,window.addEventListener("message",this.frameListener.bind(this)),document.addEventListener("click",(e=>{if(this.parentWindow){const t=e.target;t&&t.hasAttribute(s.uu.linksAttribute)&&(e.preventDefault(),this.sendMessage(a.Ag.linkTransfer,{href:t.getAttribute(s.uu.linksAttribute),target:t.getAttribute("target")}))}}))}sendMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=this._messageId++,o={event:e,data:t,messageId:n};return this.parentWindow?this.parentWindow.postMessage(o,this.origin):this.addToQueue(o),n}sendMessageWithAwait(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=this.sendMessage(e,n);return this.listen(t).pipe((0,i.p)((e=>{let{messageId:t}=e;return t===o})))}listen(e){return this.onMessage.pipe((0,i.p)((t=>{let{event:n}=t;return n===e})))}addToQueue(e){this.queue.push(e)}applyQueue(){for(;this.queue.length;){const e=this.queue.shift();e&&this.sendMessage(e.event,e.data)}}frameListener(e){if(e.data){const{data:t=null,event:n,messageId:o}=e.data;n&&(n===a.L0.connect&&(this.parentWindow=e.source,this.origin="null"===e.origin?"*":e.origin,this.applyQueue()),this.onMessage.next({data:t,event:n,messageId:o}))}}}},6050:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var o=n(2198),r=n(8146),i=n(7708),s=n(7311),a=n(1898),l=n(6583),c=n(9283),u=n(6441);class d{constructor(e){this.type=e,this.data={},this.data=this.getData()}get length(){return Object.keys(this.data).length}clear(){this.data={},this.clearData()}getItem(e){return void 0===this.data[e]?null:this.data[e]}key(e){var t;return null!==(t=Object.keys(this.data)[e])&&void 0!==t?t:null}removeItem(e){delete this.data[e],this.setData(this.data)}setItem(e,t){this.data[e]=String(t),this.setData(this.data)}createCookie(e,t,n){let o,r;n?(o=new Date,o.setTime(o.getTime()+24*n*60*60*1e3),r="; expires="+o.toUTCString()):r="",document.cookie=e+"="+t+r+"; path=/"}readCookie(e){const t=e+"=",n=document.cookie.split(";");let o;for(let e=0;e{let{data:r}=o;return r&&Object.keys(r).forEach((n=>{e.setItem(n,r[n]),t.setItem(n,r[n])})),n})))}}};const h=new class{constructor(){this.initialized=new o.t(!1),this.storagePrefix="",u.o.onMessage.pipe((0,r.p)((e=>{let{event:t}=e;return t===a.L0.clearStorage}))).subscribe((()=>{this.clearByPrefix()}))}connect(){return p.getStorage().pipe((0,i.T)((e=>{const{postfix:t}=e,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);re))).subscribe((()=>{const e=new RegExp(`^${this.storagePrefix||s.uu.storagePrefix}`);for(const t in this.storage.localStorage)t.match(e)&&this.remove(t)}))}getStorageKey(e){return-1!==(null==e?void 0:e.indexOf(s.uu.storagePrefix))?e:`${this.storagePrefix||s.uu.storagePrefix}${e}`}}},2206:(e,t,n)=>{"use strict";n.d(t,{n:()=>o.A});var o=n(6050)},3978:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(7003),r=n(3925),i=n(7311),s=n(28),a=n(2206),l=n(694);class c extends o.A{get state(){return(0,r.tB)(super.state)}get sessionId(){return a.n.get(this.sessionKey)}set sessionId(e){a.n.set(this.sessionKey,e)}get currentPage(){var e,t;return null!==(t=null!==(e=this._state.location.href)&&void 0!==e?e:null===location||void 0===location?void 0:location.href)&&void 0!==t?t:""}get chatHost(){return this._state.chat_host||s.c.node_host}get authConnectionData(){const{user_id:e,widget_id:t,signature:n,uniq_outside_id:o}=this._state;return{user_id:e,widget_id:t,signature:n,uniq_outside_id:o,session_id:this.sessionId,current_page:this.currentPage,version:i.qb,timestamp:new Date}}get sessionKey(){return`${i.uu.sessionStorageKey}-${this._state.widget_id}`}}const u=new c(l.A)},6906:(e,t,n)=>{"use strict";n.d(t,{ZZ:()=>o.Z,vz:()=>a,fo:()=>h,B1:()=>g,OG:()=>_,$2:()=>y.$,w5:()=>k,jT:()=>S.j});var o=n(3978),r=n(7003),i=n(968);class s extends r.A{handleCharacterChange(e){const t=e?(i.A.characters_list||[]).find((t=>{let{id:n}=t;return n===e})):null,{never_prompt:n}=this.state.operator_character;this.updateState({operator_character:{selected_character:t||null,never_prompt:n}})}setNeverPrompt(){const{selected_character:e}=this.state.operator_character;this.updateState({operator_character:{selected_character:e,never_prompt:!1}})}}const a=new s(i.A);var l=n(6441),c=n(128),u=n(8113),d=n(7311);class p extends r.A{get chatIsOpen(){return!!this.state.chat_id}get clientMsgsCount(){let e=0;return this._state.messages.forEach((t=>{"user"===t.sender.type?e++:"support"===t.sender.type&&0===t.sender.is_system_message&&(e=0)})),e}handleChatToProcess(e){const{operator_data:t,greeting_auto_message:n}=e||{};if(this.setOperatorData(t),n){const e=c.A.parse(n);this.addMessage(e)}else this.addOperatorJoinedSystemMessage()}handleOperatorChanged(e){const{operator_data:t}=e||{};this.setOperatorData(null==e?void 0:e.operator_data),t&&this.addOperatorJoinedSystemMessage()}setOperatorData(e){const{name:t="",operator_label:n="",operator_donate_id:o=null,photo:r=""}=e||{};if(this._state.operator_data={name:t,operator_donate_id:o,operator_label:n,photo:r},e&&!this._state.operator_data.operator_label){const{$translates:e}=l.y.globalProperties;this._state.operator_data.operator_label=(null==e?void 0:e.getTranslate("cmn_operator_label"))||""}}setOperatorDonateId(e){this._state.operator_data&&(this._state.operator_data.operator_donate_id=e)}resetState(){const e=this.copyState(),{operator_data:t}=this.state;super.resetState(),this.setOperatorData(t),this.setPreviousState(e)}setStartChatMessage(e){this._state.start_chat_message=e||""}addMessage(e){var t;if(e.reply_to_id){const n=null===(t=this._state.messages)||void 0===t?void 0:t.find((t=>{let{id:n}=t;return e.reply_to_id===n}));n&&(e.reply_to=n)}return this._state.messages.push(e),this.moveUnsentLocalMessagesToTheEnd(),e}updateMessage(e){const t=c.A.parse(e),n=e=>{e.type_id=t.type_id,e.content=t.content,e.reply_to_message_preview=t.reply_to_message_preview,e.is_deleted=t.is_deleted};this._state.messages.forEach((e=>{var o;e.id===t.id?n(e):(null===(o=e.reply_to)||void 0===o?void 0:o.id)===t.id&&n(e.reply_to)}))}addSystemMessage(e){this.addMessage(c.A.getSystemMessage(e||""))}setOutgoingMessageSent(e,t){const n=this._state.messages.indexOf(e);this._state.messages.splice(n,1);const o=c.A.parse(t);this.addMessage(o)}handleChatInit(e){const t=(e.messages||[]).map((e=>c.A.parse(e))),n=this.getLocalUnsentMessages(t);t.push(...n),this.resetState(),this.updateState(Object.assign(Object.assign({},e),{messages:t}))}updateState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.updateState(e),this.setOperatorData(e.operator_data)}updateFormFieldControl(e,t){var n;const o=(this._state.messages||[]).find((t=>{let{id:n}=t;return n===e}));if((null==o?void 0:o.type_id)===d.$z.FORM&&(null===(n=o.content)||void 0===n?void 0:n.form)){const e=o.content.form.findIndex((e=>{let{modelName:n}=e;return n===t.modelName}));e>-1&&o.content.form.splice(e,1,t)}}setIntOperatorInvited(){this.updateState({int_operator_invited:!0})}setChatStartCalled(){this.updateState({chat_start_called:!0})}addOperatorJoinedSystemMessage(){var e,t;const{$translates:n}=l.y.globalProperties,o=null==n?void 0:n.getTranslate("fl_operator_joined",{org_group:(null===(e=this.state.operator_data)||void 0===e?void 0:e.operator_label)||"",operator_name:(null===(t=this.state.operator_data)||void 0===t?void 0:t.name)||""}),r=c.A.getSystemMessage(o);this.addMessage(r)}setPreviousState(e){const t=e.chat_id?e:e.previous_chat_state;(null==t?void 0:t.chat_id)&&(t.previous_chat_state=null,this._state.previous_chat_state=t)}moveUnsentLocalMessagesToTheEnd(){const e=e=>{let{id:t,sender:n,wm_id:o}=e;return t<1&&"user"===n.type&&o?1:0};this._state.messages.sort(((t,n)=>e(t)-e(n)))}getLocalUnsentMessages(e){return(this._state.messages||[]).filter((t=>t.id<1&&"user"===t.sender.type&&!!t.wm_id&&!e.find((e=>e.wm_id===t.wm_id))))}}const h=new p(u.A);var f=n(4721);class m extends r.A{updateState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.updateState(e),this.updateDictionary()}updateDictionary(){this._state.dictionary=(this._state.list||[]).reduce(((e,t)=>(e[t.donate_id]=t,e)),{})}}const g=new m(f.A);var b=n(4441);class v extends r.A{updateState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.updateState(e),this.validateSegmentFlowRules(),this.validateChatChannels()}onDocumentCheckingRequested(){this.updateState({enable_document_checking:!1})}validateSegmentFlowRules(){const e=Object.assign({},this.state.segment_flow.rules||{});Object.keys(d.gc).forEach((t=>{t in e||(e[t]=d.gc[t])})),this._state.segment_flow.rules=e}validateChatChannels(){var e;(null===(e=this._state.chat_additional_channels)||void 0===e?void 0:e.length)&&(this._state.chat_additional_channels=this._state.chat_additional_channels.filter((e=>e&&!!d.kr[e.channel])))}}const _=new v(b.A);var y=n(8519),w=n(1898),x=n(4987);class E extends r.A{setTheme(e){var t;const[n]=e.map(this.transformThemeToCompatibility).filter((e=>Object.values(w.G6).includes(null==e?void 0:e.color_scheme)&&Object.values(w.Wk).includes(null==e?void 0:e.design)));this._state.theme=null!==(t=n)&&void 0!==t?t:Object.assign({},x.z)}transformThemeToCompatibility(e){if("string"==typeof e){let t=w.G6.default,n=w.Wk.default;switch(e){case w.Bn.blue:t=w.G6.mavericks,n=w.Wk.blaze;break;case w.Bn.brown:t=w.G6.highSierra,n=w.Wk.shard;break;case w.Bn.darkblue:t=w.G6.yosemite,n=w.Wk.shard;break;case w.Bn.lightred:t=w.G6.elCapitan;break;case w.Bn.brightred:t=w.G6.mojave;break;case w.Bn.gray:t=w.G6.catalina,n=w.Wk.shard;break;case w.Bn.black:n=w.Wk.blaze;break;case w.Bn.yellowgradient:n=w.Wk.shard;break;case w.Bn.greengradient:case w.Bn.purplegradient:n=w.Wk.blaze;break;case w.Bn.whiteblue:n=w.Wk.shard;break;default:t=null,n=null}return{color_scheme:t,design:n}}if("object"==typeof e&&("color_scheme"in e||"design"in e)){const{color_scheme:t=w.G6.default,design:n=w.Wk.default}=e;return{color_scheme:t,design:n}}return null}}const k=new E(x.A);var S=n(579)},7003:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(3925),r=n(1704),i=Reflect.ownKeys;class s{get stateIsRecent(){return!!this.lastMajorUpdate.value&&(!this.lastStateRecentTimeout||this.lastMajorUpdate.value.getTime()>=(new Date).getTime()-this.lastStateRecentTimeout)}get state(){return this._state}constructor(e){this._state=e,this.lastStateRecentTimeout=1e4,this.lastMajorUpdate=(0,o.KR)(),this.initialState=this.copyState()}copyState(){return(0,r.JH)(this.state)}updateState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.state&&e&&(i(this.state).forEach((t=>{t in e&&(this._state[t]=e[t])})),this.refreshMajorUpdateTime())}resetState(){this.state&&Object.assign(this._state,(0,r.JH)(this.initialState))}refreshMajorUpdateTime(){this.lastMajorUpdate.value=new Date}}},8519:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var o=n(7003),r=n(8099);class i extends o.A{getFallbackLocalesById(e){var t,n,o;if("number"==typeof e){const{nested:r}=null!==(o=null===(n=null===(t=this.state)||void 0===t?void 0:t.fallback_locales)||void 0===n?void 0:n.find((t=>(null==t?void 0:t.id)===e)))&&void 0!==o?o:{};return null!=r?r:[]}return[]}}const s=new i(r.A)},579:(e,t,n)=>{"use strict";n.d(t,{j:()=>h});var o=n(7003),r=n(6441),i=n(1898),s=n(2206),a=n(7311),l=n(1475),c=n(5149),u=n(8146),d=n(9283);class p extends o.A{get windowShowSavedState(){var e;return null!==(e=s.n.get(a.uu.clientWindowShowValue))&&void 0!==e?e:1}constructor(){super(l.A),s.n.initialized.pipe((0,u.p)((e=>e)),(0,d.s)(1)).subscribe((()=>{(0,c.wB)((()=>l.A.status),(e=>{s.n.set(a.uu.clientWindowStateActualValue,e)}),{immediate:!0})}))}closeWindow(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.ZF.CLOSED;this._state.status=t,e&&this.saveWindowShowState(),r.o.sendMessage(i.Ag.closeWindow,{closeStatus:t})}openWindow(){this._state.status=i.ZF.OPEN,this.saveWindowShowState(),r.o.sendMessage(i.Ag.openWindow)}saveWindowShowState(){s.n.set(a.uu.clientWindowShowValue,+(this.state.status===i.ZF.OPEN))}}const h=new p},694:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(3925),r=n(1898);const{location:i={}}=window,{userAgent:s=""}=navigator||{},a=-1!==s.toLowerCase().split(" ").indexOf("demoyhelper"),l=(0,o.Kh)({widget_id:0,user_id:0,signature:"",chat_host:"",theme:{color_scheme:r.G6.default,design:r.Wk.default},locale:"",location:{host:null==i?void 0:i.host,href:null==i?void 0:i.href,origin:null==i?void 0:i.origin},uniq_outside_id:"",demo:a})},968:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=(0,n(3925).Kh)({enabled:!1,characters_list:[],operator_character:{selected_character:null,never_prompt:!1}})},8113:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=(0,n(3925).Kh)({chat_id:null,type_id:null,open_type:null,messages:[],status_id:null,pending_time:0,operator_data:null,chat_start_called:!1,start_chat_message:"",int_operator_invited:!1,previous_chat_state:null})},4721:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=(0,n(3925).Kh)({enabled:!1,list:[],currency_symbol:"",dictionary:{}})},8863:(e,t,n)=>{"use strict";n.d(t,{fN:()=>b,xb:()=>v,hg:()=>_,O_:()=>y,h_:()=>w,Cw:()=>x,Ng:()=>E,At:()=>k,hV:()=>S,yq:()=>r.A,sE:()=>i.A,o5:()=>s.A,Fm:()=>u,Ez:()=>d.A,P7:()=>p.A,ML:()=>h.A,kW:()=>m.A});var o=n(7311),r=n(694),i=n(968),s=n(8113),a=n(3925);const l=()=>"visible"===document.visibilityState,c=(0,a.Kh)({visible:l()});document.addEventListener("visibilitychange",(()=>{c.visible=l()}));const u=c;var d=n(4721),p=n(4441),h=n(8099),f=n(4987),m=n(1475);const g=(e,t)=>[e,t],b=g(o.f4,r.A),v=g(o.f5,i.A),_=g(o.Tg,s.A),y=g(o.e0,u),w=g(o.ri,d.A),x=g(o.WW,p.A),E=g(o.jm,h.A),k=g(o.IN,f.A),S=g(o.hC,m.A)},4441:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(3925),r=n(7311);const i=(0,o.Kh)({allow_international_chat:!1,chat_at_once:!1,enable_audio_message:!1,enable_document_checking:!1,hide_start_chat_button:!1,mass_troubles_mode:!1,operators_online:!1,queue_busy:!1,segment_flow:{rules:Object.assign({},r.gc)},show_chat_button_when_offline:!1,chat_additional_channels:null})},8099:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const o=(0,n(3925).Kh)({block:{appearance:"right",position:"bottom"},button:{appearance:"right",position:"bottom",hide:!1},enable_chat_flow:!1,enable_client_emoji:!1,enable_faq_suggest:!1,enable_load_more_history:!1,enable_rating_offline_request:!1,fallback_locales:[],hide_chat_history:!1,hide_greeting_message:!1,min_first_message_length:0})},4987:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,z:()=>i});var o=n(3925),r=n(1898);const i=(0,o.tB)({color_scheme:r.G6.default,design:r.Wk.default}),s=(0,o.Kh)({error_message:"",background_chat:{url:"",file:null,imageName:"",repeat:!1,mask:!1,position:0,size:"",color:""},theme:Object.assign({},i)})},1475:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(3925),r=n(1898);const i=(0,o.Kh)({status:r.ZF.CLOSED})},1704:(e,t,n)=>{"use strict";function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"object"==typeof e?JSON.parse(JSON.stringify(e)):{}}function r(){var e,t,n,o,r;return null!==(r=null===(o=null===(n=null===(t=null===(e=null===window||void 0===window?void 0:window.Intl)||void 0===e?void 0:e.DateTimeFormat)||void 0===t?void 0:t.call(e))||void 0===n?void 0:n.resolvedOptions)||void 0===o?void 0:o.call(n).timeZone)&&void 0!==r?r:""}function i(e){return Object.keys(e||{}).reduce(((t,n)=>t+`${t?"-":""}${n}:${e[n]}`),"")}n.d(t,{JH:()=>o,hw:()=>w,qL:()=>r,vM:()=>i,PD:()=>c,v7:()=>u,S8:()=>v,iW:()=>d,j1:()=>p,iQ:()=>m,Rt:()=>g,ib:()=>b,hD:()=>_,FH:()=>y});var s=n(6660),a=n.n(s),l=n(9337);function c(){var e,t,n,o,r,i,s,c,u,d,p,h,f,m;const g=(new(a())).getResult(),b=(0,l.F)();return g?{mobile:b,userAgent:g.ua,deviceVendor:null!==(t=null===(e=g.device)||void 0===e?void 0:e.vendor)&&void 0!==t?t:null,deviceModel:null!==(o=null===(n=g.device)||void 0===n?void 0:n.model)&&void 0!==o?o:null,deviceType:null!==(i=null===(r=g.device)||void 0===r?void 0:r.type)&&void 0!==i?i:null,browser:null!==(c=null===(s=g.browser)||void 0===s?void 0:s.name)&&void 0!==c?c:null,browserVersion:null!==(d=null===(u=g.browser)||void 0===u?void 0:u.version)&&void 0!==d?d:null,os:null!==(h=null===(p=g.os)||void 0===p?void 0:p.name)&&void 0!==h?h:null,osVersion:null!==(m=null===(f=g.os)||void 0===f?void 0:f.version)&&void 0!==m?m:null}:{mobile:b}}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(window.getSelection){const n=window.getSelection();if(n&&n.anchorNode){if(t&&n.anchorNode.parentElement&&!n.anchorNode.parentElement.closest(t))return;if(n.getRangeAt&&n.rangeCount){let t=n.getRangeAt(0);t.deleteContents();const o=document.createElement("div");o.innerHTML=e;const r=document.createDocumentFragment();let i,s=o.firstChild;for(;s;)i=r.appendChild(s),s=o.firstChild;t.insertNode(r),i&&(t=t.cloneRange(),t.setStartAfter(i),t.collapse(!0),n.removeAllRanges(),n.addRange(t))}}}}function d(e){const t=e;return{scrollTop:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;(null==t?void 0:t.ps)&&(t.ps.element.scrollTop=e,t.ps.update())}}}function p(e){const t={" ":" ","&":"&",""":'"',"<":"<",">":">"};return e.replace(/&(nbsp|amp|quot|lt|gt);/gm,(e=>{var n;return null!==(n=t[e])&&void 0!==n?n:e})).replace(//gim,"\n")}var h=n(7311);function f(e){return(null==e?void 0:e.getElementsByTagName("a"))||[]}function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n="%%link_",o=[],r=document.createElement("div");r.innerHTML=e;let i=f(r);if(t){Object.assign([],i).forEach(((e,t)=>{o.push(e.outerHTML),r.innerHTML=String(r.innerHTML).replace(e.outerHTML,`${n}${t}%%`)}));const e=e=>`${e}`,t=/(?:http(s)?:\/\/){1}(\w|[-.])+(\w|[-._~:/\\?#[\]@!$&'()*+,%;=.])+\b/g;r.innerHTML=String(r.innerText).replace(t,e),o.forEach(((e,t)=>{r.innerHTML=String(r.innerHTML).replace(`${n}${t}%%`,e)}))}return i=f(r),[].forEach.call(i,(e=>{const t=e.getAttribute("href")||"";e.setAttribute(h.uu.linksAttribute,t),e.setAttribute("class","global-link")})),r.innerHTML}function g(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:0;const o=e.element,r=o.scrollTop,i=t.offsetTop-r;let s=0;requestAnimationFrame((function t(a){0===s&&(s=a);const l=a-s;o.scrollTop=function(e,t,n,o){return(e/=o/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}(l,r,i,n),e.update(),l1&&void 0!==arguments[1]?arguments[1]:0;const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return isNaN(+e)?t:+e}(e);return n","^**":"","/%%":"","^%%":"","/##":"","^##":""};return e.replace(t,(e=>{var t;return null!==(t=n[e])&&void 0!==t?t:e}))}return""}},8039:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(8645),r=n.n(o),i=n(278),s=n.n(i)()(r());s.push([e.id,".ps{overflow:hidden !important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover>.ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover>.ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@supports(-ms-overflow-style: none){.ps{overflow:auto !important}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto !important}}.ps{position:relative}",""]);const a=s},2236:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var o=n(8645),r=n.n(o),i=n(278),s=n.n(i),a=n(3021),l=n.n(a),c=new URL(n(8253),n.b),u=new URL(n(4683),n.b),d=new URL(n(3275),n.b),p=new URL(n(7191),n.b),h=new URL(n(8844),n.b),f=s()(r()),m=l()(c),g=l()(c,{hash:"#iefix"}),b=l()(u),v=l()(d),_=l()(p,{hash:"#icomoon"}),y=l()(h);f.push([e.id,`*,*::before,*::after{box-sizing:border-box}*:focus{outline:none}h1,h2,p{margin:0}ul{list-style:none;padding:0}a{color:inherit;text-decoration:inherit;cursor:pointer}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:rgba(0,0,0,0);color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}button::-moz-focus-inner{border:0}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:normal;margin:0}button,input{overflow:visible;border:none;outline:none}input[type=text]{border-radius:0;background-color:unset}input[type=button]{background:none;border-width:unset;padding:0;border-style:unset}textarea{border:none;overflow:auto;outline:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;resize:none;background-color:rgba(0,0,0,0)}body{width:100%;margin:0 auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:#333}@font-face{font-family:"icomoon";src:url(${m});src:url(${g}) format("embedded-opentype"),url(${b}) format("truetype"),url(${v}) format("woff"),url(${_}) format("svg");font-weight:normal;font-style:normal;font-display:block}[class^=icon-],[class*=" icon-"]{font-family:"icomoon" !important;speak:never;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-plus:before{content:""}.icon-minus:before{content:""}.icon-reply:before{content:""}.icon-arrow-up:before{content:""}.icon-arrow-left:before{content:""}.icon-arrow-right:before{content:""}.icon-arrow-down:before{content:""}.icon-dropdown-arrow:before{content:""}.icon-arrow-up-thin:before{content:""}.icon-arrow-left-thin:before{content:""}.icon-arrow-right-thin:before{content:""}.icon-arrow-down-thin:before{content:""}.icon-whole-arrow-up:before{content:""}.icon-whole-arrow-left:before{content:""}.icon-whole-arrow-right:before{content:""}.icon-whole-arrow-down:before{content:""}.icon-attach:before{content:""}.icon-attach-thin:before{content:""}.icon-gallery:before{content:""}.icon-sad:before{content:""}.icon-sad-thin:before{content:""}.icon-happy:before{content:""}.icon-happy-thin:before{content:""}.icon-conversation:before{content:""}.icon-conversation-thin:before{content:""}.icon-video-conversation:before{content:""}.icon-clock:before{content:""}.icon-clock-thin:before{content:""}.icon-clock-alternative:before{content:""}.icon-trash:before{content:""}.icon-headphones:before{content:""}.icon-check-mark:before{content:""}.icon-wrapped-cross:before{content:""}.icon-cross:before{content:""}.icon-article:before{content:""}.icon-article-thin:before{content:""}.icon-document-check:before{content:""}.icon-play:before{content:""}.icon-pause:before{content:""}.icon-dot:before{content:""}.icon-exclamation-mark-circle:before{content:""}.icon-exclamation-mark-triangle:before{content:""}.icon-gear:before{content:""}.icon-gear-thin:before{content:""}.icon-info:before{content:""}.icon-collapse:before{content:""}.icon-mail:before{content:""}.icon-minus-thin:before{content:""}.icon-plus-thin:before{content:""}.icon-pencil:before{content:""}.icon-lock:before{content:""}.icon-lock-thin:before{content:""}.icon-smile:before{content:""}.icon-star-filled:before{content:""}.icon-star:before{content:""}.icon-microphone:before{content:""}.icon-microphone-active:before{content:""}.icon-spiner:before{content:""}.icon-rotate:before{content:""}.icon-search:before{content:""}.icon-telegram:before{content:""}.icon-brand:before{content:""}.icon-social:before{content:""}#main-app .container[data-color-scheme=default],#main-app .container[data-color-scheme=""]{--color-esmeralda:#0059b3;--color-rio:#fff;--color-asfalto:#000614;--color-nefritis:#e5eef7;--color-belice:#3a485b;--color-medianoche:#d0021b;--color-flor:#ccc;--color-sol:#4a4a4a;--color-costero:#669c34;--color-alizarina:#fdb43a;--color-nubes:#7d7a7a;--color-octarina:var(--color-rio);--color-brisa:rgba(0,0,0,0);--color-apicultor:color-mix(in srgb, #fff, var(--color-esmeralda) 80%);--color-condimentado:var(--color-asfalto);--color-lunastorm:var(--color-rio);--color-azureglint:var(--color-rio);--color-magicdusk:var(--color-rio);--color-sparkveil:var(--color-esmeralda);--color-rainbowinspire:var(--color-rio);--color-stellarsilence:var(--color-rio);--color-mar:var(--color-esmeralda);--color-concreto:var(--color-esmeralda);--color-glamour:var(--color-esmeralda);--color-glicinia:inherit;--color-asbesto:inherit;--color-mystidawn:inherit;--color-etherwhirl:inherit;--color-dustdream:inherit;--color-mistgleam:inherit}#main-app .container[data-color-scheme=mavericks]{--color-esmeralda:#157efb;--color-rio:#fff;--color-asfalto:#000;--color-nefritis:#e5eef7;--color-belice:#3a485b;--color-medianoche:#ff1517;--color-flor:#ccc;--color-sol:#4a4a4a;--color-costero:#669c34;--color-alizarina:#fdb43a;--color-nubes:#7d7a7a;--color-octarina:var(--color-rio);--color-brisa:rgba(0,0,0,0);--color-apicultor:color-mix(in srgb, #fff, var(--color-esmeralda) 80%);--color-condimentado:var(--color-asfalto);--color-sparkveil:var(--color-costero);--color-magicdusk:var(--color-rio);--color-azureglint:var(--color-rio);--color-rainbowinspire:var(--color-rio);--color-stellarsilence:var(--color-rio);--color-mar:var(--color-esmeralda);--color-concreto:var(--color-esmeralda);--color-glamour:var(--color-esmeralda);--color-glicinia:inherit;--color-asbesto:inherit;--color-lunastorm:inherit}#main-app .container[data-color-scheme=high-sierra]{--color-esmeralda:#550b06;--color-rio:#fff;--color-asfalto:#000;--color-nefritis:color-mix(in srgb, transparent, var(--color-esmeralda) 5%);--color-belice:var(--color-rio);--color-medianoche:#d0021b;--color-flor:#ccc;--color-sol:var(--color-asfalto);--color-costero:#669c34;--color-alizarina:#fdb43a;--color-nubes:#fff;--color-octarina:#fce401;--color-brisa:rgba(0,0,0,0);--color-apicultor:color-mix(in srgb, #fff, var(--color-esmeralda) 80%);--color-condimentado:#000;--color-lunastorm:#d0021b;--color-azureglint:var(--color-rio);--color-magicdusk:var(--color-octarina);--color-sparkveil:var(--color-costero);--color-mystidawn:--color-rio;--color-dustdream:var(--color-octarina);--color-mistgleam:var(--color-esmeralda);--color-stellarsilence:var(--color-rio);--color-mar:var(--color-esmeralda);--color-concreto:var(--color-esmeralda);--color-glamour:var(--color-esmeralda);--color-glicinia:inherit;--color-asbesto:inherit;--color-rainbowinspire:inherit}#main-app .container[data-color-scheme=yosemite]{--color-esmeralda:#415b90;--color-rio:#fff;--color-asfalto:#000;--color-nefritis:#e5eef7;--color-belice:#3a485b;--color-medianoche:#d0021b;--color-flor:#7e8999;--color-sol:var(--color-esmeralda);--color-costero:#31a100;--color-alizarina:#fdb43a;--color-nubes:#fff;--color-octarina:#5bac8d;--color-brisa:rgba(0,0,0,0);--color-apicultor:color-mix(in srgb, #fff, var(--color-esmeralda) 80%);--color-condimentado:var(--color-rio);--color-lunastorm:var(--color-rio);--color-mystidawn:#e4eef7;--color-dustdream:var(--color-octarina);--color-azureglint:var(--color-rio);--color-magicdusk:var(--color-octarina);--color-mistgleam:var(--color-esmeralda);--color-sparkveil:var(--color-costero);--color-stellarsilence:var(--color-rio);--color-mar:var(--color-esmeralda);--color-concreto:var(--color-esmeralda);--color-glamour:var(--color-esmeralda);--color-glicinia:inherit;--color-asbesto:inherit;--color-rainbowinspire:inherit}#main-app .container[data-color-scheme=el-capitan]{--color-esmeralda:#d7314a;--color-rio:#fff;--color-asfalto:#000;--color-nefritis:color-mix(in srgb, transparent, var(--color-esmeralda) 10%);--color-belice:#3a485b;--color-medianoche:#9a0000;--color-flor:#ccc;--color-sol:#4a4a4a;--color-costero:#669c34;--color-alizarina:#fdb43a;--color-nubes:#fff;--color-octarina:#fce401;--color-brisa:rgba(0,0,0,0);--color-apicultor:color-mix(in srgb, #fff, var(--color-esmeralda) 80%);--color-condimentado:var(--color-esmeralda);--color-sparkveil:var(--color-costero);--color-magicdusk:var(--color-rio);--color-rainbowinspire:var(--color-rio);--color-azureglint:var(--color-rio);--color-dustdream:color-mix(in srgb, transparent, var(--color-esmeralda) 20%);--color-stellarsilence:var(--color-rio);--color-mar:var(--color-esmeralda);--color-concreto:var(--color-esmeralda);--color-glamour:var(--color-esmeralda);--color-glicinia:inherit;--color-asbesto:inherit;--color-lunastorm:inherit}#main-app .container[data-color-scheme=mojave]{--color-esmeralda:#a9071a;--color-asfalto:#000;--color-rio:#fff;--color-nefritis:color-mix(in srgb, transparent, var(--color-esmeralda) 10%);--color-belice:#3a485b;--color-medianoche:#f44;--color-flor:#ccc;--color-sol:#4a4a4a;--color-costero:#669c34;--color-alizarina:#fdb43a;--color-nubes:#7d7a7a;--color-octarina:var(--color-esmeralda);--color-brisa:rgba(0,0,0,0);--color-apicultor:color-mix(in srgb, #fff, var(--color-esmeralda) 80%);--color-condimentado:#000;--color-lunastorm:#d0021b;--color-mystidawn:#fff;--color-etherwhirl:#fff;--color-dustdream:color-mix(in srgb, transparent, var(--color-esmeralda) 40%);--color-azureglint:#fff;--color-magicdusk:#fff;--color-mistgleam:#fff;--color-sparkveil:var(--color-costero);--color-rainbowinspire:var(--color-rio);--color-stellarsilence:#fff;--color-mar:var(--color-esmeralda);--color-concreto:var(--color-esmeralda);--color-glamour:var(--color-esmeralda);--color-glicinia:inherit;--color-asbesto:inherit}#main-app .container[data-color-scheme=catalina]{--color-esmeralda:var(--is-default-design, #eae6e1);--color-rio:#fff;--color-asfalto:#000;--color-nefritis:color-mix(in srgb, transparent, var(--color-asfalto) 20%);--color-belice:color-mix(in srgb, transparent, var(--color-asfalto) 100%);--color-medianoche:#d0021b;--color-flor:#ccc;--color-sol:var(--color-asfalto);--color-costero:#31a100;--color-alizarina:#fdb43a;--color-nubes:#fff;--color-octarina:var(--color-asfalto);--color-brisa:rgba(0,0,0,0);--color-apicultor:color-mix(in srgb, #fff, var(--color-esmeralda) 40%);--color-condimentado:var(--color-asfalto);--color-dustdream:var(--color-esmeralda);--color-azureglint:var(--color-asfalto);--color-magicdusk:linear-gradient(360deg, #F5C45C 0%, #FFE457 100%), linear-gradient(0deg, rgba(254, 182, 0, 0.4), rgba(254, 182, 0, 0.4));--color-mistgleam:var(--color-asfalto);--color-lunastorm:var(--color-asfalto);--color-sparkveil:var(--color-costero);--color-stellarsilence:var(--color-asfalto);--color-mar:var(--color-esmeralda);--color-concreto:var(--color-esmeralda);--color-glamour:var(--color-esmeralda);--color-glicinia:inherit;--color-asbesto:inherit;--color-rainbowinspire:inherit}#main-app .container[data-color-scheme=monterey]{--color-esmeralda:#60c;--color-asfalto:#000;--color-rio:#fff;--color-nefritis:color-mix(in srgb, transparent, var(--color-esmeralda) 10%);--color-belice:#3a485b;--color-medianoche:#d0021b;--color-flor:#ccc;--color-sol:#4a4a4a;--color-costero:#669c34;--color-alizarina:#fdb43a;--color-nubes:#7d7a7a;--color-octarina:var(--color-esmeralda);--color-brisa:rgba(0,0,0,0);--color-apicultor:color-mix(in srgb, #fff, var(--color-esmeralda) 80%);--color-condimentado:#000;--color-lunastorm:#d0021b;--color-mystidawn:#fff;--color-etherwhirl:#fff;--color-dustdream:color-mix(in srgb, transparent, var(--color-esmeralda) 40%);--color-azureglint:#fff;--color-magicdusk:#fff;--color-mistgleam:#fff;--color-sparkveil:var(--color-costero);--color-rainbowinspire:var(--color-rio);--color-stellarsilence:#fff;--color-mar:var(--color-esmeralda);--color-concreto:var(--color-esmeralda);--color-glamour:var(--color-esmeralda);--color-glicinia:inherit;--color-asbesto:inherit}#main-app .container[data-color-scheme=sonoma]{--color-esmeralda:#46423c;--color-rio:#fff;--color-asfalto:#000;--color-nefritis:#f1f1f1;--color-belice:#3a485b;--color-medianoche:#a30606;--color-flor:#7e8999;--color-sol:var(--color-esmeralda);--color-costero:#31a100;--color-alizarina:#fdb43a;--color-nubes:#fff;--color-octarina:#f23138;--color-brisa:rgba(0,0,0,0);--color-apicultor:color-mix(in srgb, #fff, var(--color-esmeralda) 80%);--color-condimentado:var(--color-asfalto);--color-lunastorm:var(--color-rio);--color-mystidawn:#e4eef7;--color-dustdream:var(--color-octarina);--color-azureglint:var(--color-rio);--color-magicdusk:var(--color-apicultor);--color-mistgleam:var(--color-esmeralda);--color-sparkveil:var(--color-costero);--color-stellarsilence:var(--color-rio);--color-glicinia:linear-gradient(180deg, rgb(249, 81, 81) 0%, rgb(231, 20, 20) 11%, rgb(171, 33, 33) 80%, rgb(134, 22, 22) 100%);--color-mar:#cc8736;--color-concreto:#f7f1a6;--color-glamour:var(--color-octarina);--color-asbesto:inherit;--color-rainbowinspire:inherit}#main-app .container[data-color-scheme=ventura]{--color-esmeralda:#f63;--color-rio:#fff;--color-asfalto:#000;--color-nefritis:#e5eef7;--color-belice:#3a485b;--color-medianoche:#d0021b;--color-flor:#7e8999;--color-sol:var(--color-esmeralda);--color-costero:#31a100;--color-alizarina:#fdb43a;--color-nubes:#fff;--color-octarina:#5bac8d;--color-brisa:rgba(0,0,0,0);--color-apicultor:color-mix(in srgb, #fff, var(--color-esmeralda) 80%);--color-condimentado:var(--color-rio);--color-lunastorm:var(--color-rio);--color-mystidawn:#e4eef7;--color-dustdream:var(--color-octarina);--color-azureglint:var(--color-rio);--color-magicdusk:var(--color-octarina);--color-mistgleam:var(--color-esmeralda);--color-sparkveil:var(--color-costero);--color-stellarsilence:var(--color-rio);--color-mar:var(--color-esmeralda);--color-concreto:var(--color-esmeralda);--color-glamour:var(--color-esmeralda);--color-glicinia:inherit;--color-asbesto:inherit;--color-rainbowinspire:inherit}#main-app .container[data-color-scheme=big-sur]{--color-esmeralda:#4879c2;--color-rio:#fff;--color-asfalto:#01032f;--color-nefritis:#eef4ff;--color-belice:#3a485b;--color-medianoche:#d0021b;--color-flor:#7e8999;--color-sol:var(--color-esmeralda);--color-costero:#31a100;--color-alizarina:#fdb43a;--color-nubes:#fff;--color-octarina:var(--color-esmeralda);--color-brisa:rgba(0,0,0,0);--color-apicultor:color-mix(in srgb, #fff, var(--color-esmeralda) 80%);--color-lunastorm:var(--color-rio);--color-mystidawn:#e4eef7;--color-dustdream:var(--color-octarina);--color-azureglint:var(--color-rio);--color-magicdusk:var(--color-octarina);--color-mistgleam:var(--color-esmeralda);--color-sparkveil:var(--color-costero);--color-stellarsilence:var(--color-rio);--color-mar:var(--color-esmeralda);--color-concreto:var(--color-esmeralda);--color-glamour:#bd0f1b;--color-glicinia:#bd0f1b;--color-asbesto:inherit;--color-rainbowinspire:#inherit}#main-app .container[data-color-scheme=elysium]{--color-esmeralda:#232a34;--color-rio:#fff;--color-asfalto:#191f27;--color-nefritis:#35404d;--color-belice:var(--color-rio);--color-medianoche:#d0021b;--color-flor:#ccc;--color-sol:var(--color-asfalto);--color-costero:#669c34;--color-alizarina:#fdb43a;--color-nubes:#7d7a7a;--color-octarina:var(--color-rio);--color-brisa:rgba(0,0,0,0);--color-apicultor:var(--color-asfalto);--color-condimentado:var(--color-asfalto);--color-lunastorm:var(--color-rio);--color-azureglint:var(--color-rio);--color-magicdusk:#ffce3c;--color-sparkveil:var(--color-esmeralda);--color-rainbowinspire:var(--color-rio);--color-stellarsilence:var(--color-rio);--color-mar:var(--color-esmeralda);--color-concreto:var(--color-esmeralda);--color-glamour:var(--color-esmeralda);--color-glicinia:inherit;--color-asbesto:inherit;--color-mystidawn:inherit;--color-etherwhirl:inherit;--color-dustdream:inherit;--color-mistgleam:inherit}#main-app .container[data-design=vortex],#main-app .container[data-design=default],#main-app .container[data-design=""]{--is-default-design:color-mix(in srgb, transparent, #000 60%);--widget-buttons-border-color:linear-gradient(0deg, var(--color-mar) 0%, var(--color-concreto) 100%);--component-character-dialog-item-wrapper-border:color-mix(in srgb, transparent, var(--color-esmeralda) 20%);--component-character-dialog-item-wrapper-border-selected:var(--color-esmeralda);--component-character-dialog-item-loader-color:var(--color-esmeralda);--component-operator-gift-select-popup-value-button-color:var(--color-esmeralda)}#main-app .container[data-design=blaze]{--is-default-design:color-mix(in srgb, transparent, #000 60%);--border-corner:0;--button-corner:10px;--button-corner-inner:calc(var(--button-corner) - 2px);--widget-border-color:color-mix(in srgb, #fff, var(--color-esmeralda) 20%);--widget-buttons-shadow:0 8px 32px color-mix(in srgb, #fff, var(--color-esmeralda) 50%);--widget-buttons-border-color:linear-gradient(0deg, var(--color-mar) 0%, var(--color-concreto) 100%);--header-background:var(--color-esmeralda);--component-header-buttons-color:var(--color-rio);--component-faq-question-item-text-color:var(--color-asfalto);--component-language-selector-border-corner:0;--component-language-selector-menu-list-border-corner:0;--component-language-selector-background:var(--color-rio);--component-language-selector-color:var(--color-asfalto);--component-locales-list-item-color:var(--color-rio);--component-locales-list-item-background:var(--color-esmeralda);--component-locales-list-item-radius:0;--component-character-dialog-header-background:var(--color-esmeralda);--component-character-dialog-header-title-color:var(--color-rio);--component-character-dialog-header-button-color:var(--color-rio);--component-character-dialog-header-margin:0 16px 16px;--view-faq-title-background:var(--color-esmeralda);--view-faq-title-font-weight:400;--view-faq-title-color:var(--color-rio);--view-faq-title-font-transform:uppercase;--view-faq-list-pt:15px;--view-faq-error-background:var(--color-esmeralda);--view-faq-error-color:var(--color-rio);--view-faq-answer-footer-title-color:color-mix(in srgb, transparent, var(--color-belice) 80%);--view-faq-answer-footer-title-weight:400;--view-faq-answer-title-transform:uppercase;--view-faq-answer-title-color:var(--color-esmeralda);--view-faq-answer-title-weight:700;--view-faq-answer-footer-button-inline-color:color-mix(in srgb, transparent, var(--color-belice) 80%);--component-form-control-border-radius:0;--component-form-control-border-width:0 0 1px 0;--component-form-control-control-label-focus:translate(calc(-12px - 10%), calc(-50% - 22px)) scale(0.8);--component-form-control-control-label-blur:translate(-12px, -25%);--component-form-control-control-padding:12px 0;--component-form-control-control-textarea-transform-focus:translate(calc(-12px - 10%), calc(-50% - 10px)) scale(0.8);--component-form-control-control-textarea-transform-blur:translate(-12px, 50%);--component-form-control-control-textarea-height-focus:150px;--component-form-control-control-textarea-height--blur:42.5px;--component-form-control-control-select-focus:translate(-12px, calc(-50% - 22px));--component-form-control-control-select-blur:translate(-12px, -50%);--component-character-dialog-item-wrapper-border:color-mix(in srgb, transparent, var(--color-esmeralda) 20%);--component-character-dialog-item-wrapper-border-selected:var(--color-esmeralda);--component-character-dialog-item-loader-color:var(--color-esmeralda);--view-chat-header-color:var(--color-rio);--view-rating-title-margin:20px}#main-app .container[data-design=shard]{--is-default-design:#eae6e1;--border-corner:16px;--button-corner:initial;--button-corner-inner:calc(var(--button-corner) - 2px);--widget-background:var(--color-esmeralda);--widget-text-color:var(--color-stellarsilence);--widget-placeholder-color:color-mix(in srgb, transparent, var(--widget-text-color) 50%);--widget-border-color:color-mix(in srgb, transparent, var(--widget-text-color) 15%);--widget-global-link:color-mix(in srgb, transparent, var(--widget-text-color) 70%);--widget-hyperlink-link:color-mix(in srgb, transparent, var(--widget-text-color) 70%);--widget-buttons-background:var(--color-magicdusk);--widget-buttons-color:var(--color-condimentado);--widget-buttons-inline-color:color-mix(in srgb, transparent, var(--widget-text-color) 60%);--widget-buttons-border-color:linear-gradient(0deg, var(--color-mar) 0%, var(--color-concreto) 100%);--help-button-background:var(--color-esmeralda);--help-button-icon-background:var(--color-rio);--help-button-title-color:var(--color-rio);--header-background:var(--color-esmeralda);--component-header-buttons-color:var(--color-stellarsilence);--component-header-shadow:color-mix(in srgb, transparent, var(--color-azureglint) 10%);--component-faq-question-item-text-color:var(--widget-text-color);--component-language-selector-color:var(--color-esmeralda);--component-language-selector-background:var(--color-stellarsilence);--component-language-selector-border:var(--color-nefritis);--component-language-selector-color-item:var(--color-asfalto);--component-language-selector-item-background-hover:color-mix(in srgb, var(--widget-background), var(--widget-text-color) 10%);--component-language-selector-item-color-hover:var(--widget-text-color);--component-form-control-palaceholder-color:color-mix(in srgb, transparent, var(--color-stellarsilence) 90%);--component-form-control-palaceholder-background:var(--color-esmeralda);--component-form-control-border-blur:color-mix(in srgb, transparent, var(--color-stellarsilence) 50%);--component-form-control-border-focus:var(--color-stellarsilence);--component-select-control-option-color:var(--color-asfalto);--component-select-control-option-hovered-color:var(--color-condimentado);--component-select-control-option-hover:var(--color-dustdream);--component-locales-list-item-color:var(--widget-text-color);--component-locales-list-item-background:color-mix(in srgb, var(--color-esmeralda), var(--color-rio) 25%);--component-locales-list-item-shadow:var(--color-lunastorm);--component-character-dialog-item-wrapper-border:color-mix(in srgb, transparent, var(--color-azureglint) 20%);--component-character-dialog-item-wrapper-border-selected:var(--color-azureglint);--component-character-dialog-item-loader-color:var(--color-rainbowinspire);--component-character-dialog-header-title-color:var(--color-stellarsilence);--component-character-dialog-header-button-color:var(--color-stellarsilence);--component-chat-messages-unread-color:var(--widget-text-color);--component-chat-messages-unread-background:var(--color-esmeralda);--component-chat-message-item-message-background:var(--color-apicultor);--component-chat-message-item-message-color:var(--color-azureglint);--component-chat-message-item-reply-action-button-color:color-mix(in srgb, transparent, var(--widget-text-color) 50%);--component-stars-control-star-fill-color:var(--color-octarina);--component-operator-gift-select-popup-background:var(--color-esmeralda);--component-operator-gift-select-popup-selection-background:var(--color-apicultor);--component-operator-gift-select-popup-title-color:var(--widget-text-color);--component-operator-gift-select-popup-value-button-color:var(--widget-text-color);--component-emoji-list-wrapper-background:color-mix(in srgb, #000, var(--color-esmeralda) 90%);--component-tabs-button-color:color-mix(in srgb, transparent, var(--widget-text-color, transparent) 50%);--component-tabs-button-active-color:var(--widget-text-color);--component-datepicker-control-button-background:var(--color-mistgleam);--view-faq-title-background:var(--color-esmeralda);--view-faq-title-font-weight:initial;--view-faq-title-color:var(--color-stellarsilence);--view-faq-title-font-transform:initial;--view-faq-list-pt:0px;--view-faq-error-background:var(--color-esmeralda);--view-faq-error-color:var(--widget-text-color);--view-faq-answer-title-color:var(--widget-text-color);--view-faq-answer-title-weight:initial;--view-faq-answer-footer-title-weight:initial;--view-faq-answer-title-transform:initial;--view-faq-answer-footer-button-inline-color:color-mix(in srgb, transparent, var(--widget-text-color) 60%);--view-faq-answer-footer-background:var(--color-esmeralda);--view-faq-answer-footer-title-color:color-mix(in srgb, transparent, var(--widget-text-color) 60%);--view-document-checking-footer:var(--color-esmeralda);--view-document-checking-footer-color:color-mix(in srgb, transparent, var(--widget-text-color) 60%);--view-history-list-item-color:var(--widget-text-color);--view-history-history-date-color:color-mix(in srgb, transparent, var(--widget-text-color) 50%);--view-chat-flow-footer-button-color:var(--widget-text-color);--view-chat-flow-footer-placeholder-color:color-mix(in srgb, transparent, var(--widget-text-color) 50%);--view-rating-positive-background:var(--color-costero);--view-chat-header-color:var(--widget-text-color);--view-chat-footer-buttons-shadow:color-mix(in srgb, transparent, var(--color-azureglint) 30%);--view-rating-title-margin:20px}#main-app .container[data-design=inferno]{--is-default-design:color-mix(in srgb, transparent, #000 60%);--button-corner:12px;--button-corner-inner:calc(var(--button-corner) - 2px);--widget-buttons-background:url(${y}), var(--color-glicinia, var(--color-esmeralda));--widget-buttons-shadow:0 2px 8px rgba(39,39,39,.3);--widget-buttons-border-color:linear-gradient(0deg, var(--color-mar) 0%, var(--color-concreto) 100%);--component-character-dialog-item-wrapper-border:color-mix(in srgb, transparent, var(--color-esmeralda) 20%);--component-character-dialog-item-loader-color:var(--color-mar)}#main-app .container[data-design=ember]{--is-default-design:var(--color-asfalto);--border-corner:16px;--button-corner:50px;--button-corner-inner:calc(var(--button-corner) - 2px);--widget-buttons-background:var(--color-glicinia);--widget-button-outline:2px solid var(--color-glamour);--widget-buttons-inline-color:var(--color-asfalto);--widget-buttons-border-color:var(--color-glamour);--component-faq-question-item-text-color:var(--color-asfalto);--view-faq-answer-footer-button-margin:0 12px;--view-faq-answer-footer-button-inline-color:var(--color-glamour);--component-character-dialog-item-wrapper-border:color-mix(in srgb, transparent, var(--color-esmeralda) 20%)}.bg-esmeralda{background-color:var(--color-esmeralda)}.bg-rio{background-color:var(--color-rio)}.bg-asfalto{background-color:var(--color-asfalto)}.bg-nefritis{background-color:var(--color-nefritis)}.bg-belice{background-color:var(--color-belice)}.bg-medianoche{background-color:var(--color-medianoche)}.bg-flor{background-color:var(--color-flor)}.bg-sol{background-color:var(--color-sol)}.bg-costero{background-color:var(--color-costero)}.bg-alizarina{background-color:var(--color-alizarina)}.bg-nubes{background-color:var(--color-nubes)}.bg-octarina{background-color:var(--color-octarina)}.bg-brisa{background-color:var(--color-brisa)}.bg-apicultor{background-color:var(--color-apicultor)}.bg-condimentado{background-color:var(--color-condimentado)}.bg-lunastorm{background-color:var(--color-lunastorm)}.bg-azureglint{background-color:var(--color-azureglint)}.bg-magicdusk{background-color:var(--color-magicdusk)}.bg-sparkveil{background-color:var(--color-sparkveil)}.bg-rainbowinspire{background-color:var(--color-rainbowinspire)}.bg-stellarsilence{background-color:var(--color-stellarsilence)}.bg-mar{background-color:var(--color-mar)}.bg-concreto{background-color:var(--color-concreto)}.bg-glamour{background-color:var(--color-glamour)}.bg-glicinia{background-color:var(--color-glicinia)}.bg-asbesto{background-color:var(--color-asbesto)}.bg-mystidawn{background-color:var(--color-mystidawn)}.bg-etherwhirl{background-color:var(--color-etherwhirl)}.bg-dustdream{background-color:var(--color-dustdream)}.bg-mistgleam{background-color:var(--color-mistgleam)}.text-esmeralda{color:var(--color-esmeralda)}.text-rio{color:var(--color-rio)}.text-asfalto{color:var(--color-asfalto)}.text-nefritis{color:var(--color-nefritis)}.text-belice{color:var(--color-belice)}.text-medianoche{color:var(--color-medianoche)}.text-flor{color:var(--color-flor)}.text-sol{color:var(--color-sol)}.text-costero{color:var(--color-costero)}.text-alizarina{color:var(--color-alizarina)}.text-nubes{color:var(--color-nubes)}.text-octarina{color:var(--color-octarina)}.text-brisa{color:var(--color-brisa)}.text-apicultor{color:var(--color-apicultor)}.text-condimentado{color:var(--color-condimentado)}.text-lunastorm{color:var(--color-lunastorm)}.text-azureglint{color:var(--color-azureglint)}.text-magicdusk{color:var(--color-magicdusk)}.text-sparkveil{color:var(--color-sparkveil)}.text-rainbowinspire{color:var(--color-rainbowinspire)}.text-stellarsilence{color:var(--color-stellarsilence)}.text-mar{color:var(--color-mar)}.text-concreto{color:var(--color-concreto)}.text-glamour{color:var(--color-glamour)}.text-glicinia{color:var(--color-glicinia)}.text-asbesto{color:var(--color-asbesto)}.text-mystidawn{color:var(--color-mystidawn)}.text-etherwhirl{color:var(--color-etherwhirl)}.text-dustdream{color:var(--color-dustdream)}.text-mistgleam{color:var(--color-mistgleam)}.mt-0{margin-top:0px}.mr-0{margin-right:0px}.mb-0{margin-bottom:0px}.ml-0{margin-left:0px}.mx-0{margin-left:0px;margin-right:0px}.my-0{margin-top:0px;margin-bottom:0px}.m-0{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px}.mt-2{margin-top:2px}.mr-2{margin-right:2px}.mb-2{margin-bottom:2px}.ml-2{margin-left:2px}.mx-2{margin-left:2px;margin-right:2px}.my-2{margin-top:2px;margin-bottom:2px}.m-2{margin-top:2px;margin-right:2px;margin-bottom:2px;margin-left:2px}.mt-4{margin-top:4px}.mr-4{margin-right:4px}.mb-4{margin-bottom:4px}.ml-4{margin-left:4px}.mx-4{margin-left:4px;margin-right:4px}.my-4{margin-top:4px;margin-bottom:4px}.m-4{margin-top:4px;margin-right:4px;margin-bottom:4px;margin-left:4px}.mt-6{margin-top:6px}.mr-6{margin-right:6px}.mb-6{margin-bottom:6px}.ml-6{margin-left:6px}.mx-6{margin-left:6px;margin-right:6px}.my-6{margin-top:6px;margin-bottom:6px}.m-6{margin-top:6px;margin-right:6px;margin-bottom:6px;margin-left:6px}.mt-8{margin-top:8px}.mr-8{margin-right:8px}.mb-8{margin-bottom:8px}.ml-8{margin-left:8px}.mx-8{margin-left:8px;margin-right:8px}.my-8{margin-top:8px;margin-bottom:8px}.m-8{margin-top:8px;margin-right:8px;margin-bottom:8px;margin-left:8px}.mt-10{margin-top:10px}.mr-10{margin-right:10px}.mb-10{margin-bottom:10px}.ml-10{margin-left:10px}.mx-10{margin-left:10px;margin-right:10px}.my-10{margin-top:10px;margin-bottom:10px}.m-10{margin-top:10px;margin-right:10px;margin-bottom:10px;margin-left:10px}.mt-12{margin-top:12px}.mr-12{margin-right:12px}.mb-12{margin-bottom:12px}.ml-12{margin-left:12px}.mx-12{margin-left:12px;margin-right:12px}.my-12{margin-top:12px;margin-bottom:12px}.m-12{margin-top:12px;margin-right:12px;margin-bottom:12px;margin-left:12px}.mt-14{margin-top:14px}.mr-14{margin-right:14px}.mb-14{margin-bottom:14px}.ml-14{margin-left:14px}.mx-14{margin-left:14px;margin-right:14px}.my-14{margin-top:14px;margin-bottom:14px}.m-14{margin-top:14px;margin-right:14px;margin-bottom:14px;margin-left:14px}.mt-16{margin-top:16px}.mr-16{margin-right:16px}.mb-16{margin-bottom:16px}.ml-16{margin-left:16px}.mx-16{margin-left:16px;margin-right:16px}.my-16{margin-top:16px;margin-bottom:16px}.m-16{margin-top:16px;margin-right:16px;margin-bottom:16px;margin-left:16px}.mt-20{margin-top:20px}.mr-20{margin-right:20px}.mb-20{margin-bottom:20px}.ml-20{margin-left:20px}.mx-20{margin-left:20px;margin-right:20px}.my-20{margin-top:20px;margin-bottom:20px}.m-20{margin-top:20px;margin-right:20px;margin-bottom:20px;margin-left:20px}.mt-22{margin-top:22px}.mr-22{margin-right:22px}.mb-22{margin-bottom:22px}.ml-22{margin-left:22px}.mx-22{margin-left:22px;margin-right:22px}.my-22{margin-top:22px;margin-bottom:22px}.m-22{margin-top:22px;margin-right:22px;margin-bottom:22px;margin-left:22px}.mt-24{margin-top:24px}.mr-24{margin-right:24px}.mb-24{margin-bottom:24px}.ml-24{margin-left:24px}.mx-24{margin-left:24px;margin-right:24px}.my-24{margin-top:24px;margin-bottom:24px}.m-24{margin-top:24px;margin-right:24px;margin-bottom:24px;margin-left:24px}.mt-30{margin-top:30px}.mr-30{margin-right:30px}.mb-30{margin-bottom:30px}.ml-30{margin-left:30px}.mx-30{margin-left:30px;margin-right:30px}.my-30{margin-top:30px;margin-bottom:30px}.m-30{margin-top:30px;margin-right:30px;margin-bottom:30px;margin-left:30px}.mt-32{margin-top:32px}.mr-32{margin-right:32px}.mb-32{margin-bottom:32px}.ml-32{margin-left:32px}.mx-32{margin-left:32px;margin-right:32px}.my-32{margin-top:32px;margin-bottom:32px}.m-32{margin-top:32px;margin-right:32px;margin-bottom:32px;margin-left:32px}.mt-40{margin-top:40px}.mr-40{margin-right:40px}.mb-40{margin-bottom:40px}.ml-40{margin-left:40px}.mx-40{margin-left:40px;margin-right:40px}.my-40{margin-top:40px;margin-bottom:40px}.m-40{margin-top:40px;margin-right:40px;margin-bottom:40px;margin-left:40px}.mt-auto{margin-top:auto}.mr-auto{margin-right:auto}.mb-auto{margin-bottom:auto}.ml-auto{margin-left:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-top:auto;margin-bottom:auto}.m-auto{margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto}.pt-0{padding-top:0px}.pr-0{padding-right:0px}.pb-0{padding-bottom:0px}.pl-0{padding-left:0px}.px-0{padding-left:0px;padding-right:0px}.py-0{padding-top:0px;padding-bottom:0px}.p-0{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px}.pt-2{padding-top:2px}.pr-2{padding-right:2px}.pb-2{padding-bottom:2px}.pl-2{padding-left:2px}.px-2{padding-left:2px;padding-right:2px}.py-2{padding-top:2px;padding-bottom:2px}.p-2{padding-top:2px;padding-right:2px;padding-bottom:2px;padding-left:2px}.pt-4{padding-top:4px}.pr-4{padding-right:4px}.pb-4{padding-bottom:4px}.pl-4{padding-left:4px}.px-4{padding-left:4px;padding-right:4px}.py-4{padding-top:4px;padding-bottom:4px}.p-4{padding-top:4px;padding-right:4px;padding-bottom:4px;padding-left:4px}.pt-6{padding-top:6px}.pr-6{padding-right:6px}.pb-6{padding-bottom:6px}.pl-6{padding-left:6px}.px-6{padding-left:6px;padding-right:6px}.py-6{padding-top:6px;padding-bottom:6px}.p-6{padding-top:6px;padding-right:6px;padding-bottom:6px;padding-left:6px}.pt-8{padding-top:8px}.pr-8{padding-right:8px}.pb-8{padding-bottom:8px}.pl-8{padding-left:8px}.px-8{padding-left:8px;padding-right:8px}.py-8{padding-top:8px;padding-bottom:8px}.p-8{padding-top:8px;padding-right:8px;padding-bottom:8px;padding-left:8px}.pt-10{padding-top:10px}.pr-10{padding-right:10px}.pb-10{padding-bottom:10px}.pl-10{padding-left:10px}.px-10{padding-left:10px;padding-right:10px}.py-10{padding-top:10px;padding-bottom:10px}.p-10{padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px}.pt-12{padding-top:12px}.pr-12{padding-right:12px}.pb-12{padding-bottom:12px}.pl-12{padding-left:12px}.px-12{padding-left:12px;padding-right:12px}.py-12{padding-top:12px;padding-bottom:12px}.p-12{padding-top:12px;padding-right:12px;padding-bottom:12px;padding-left:12px}.pt-14{padding-top:14px}.pr-14{padding-right:14px}.pb-14{padding-bottom:14px}.pl-14{padding-left:14px}.px-14{padding-left:14px;padding-right:14px}.py-14{padding-top:14px;padding-bottom:14px}.p-14{padding-top:14px;padding-right:14px;padding-bottom:14px;padding-left:14px}.pt-16{padding-top:16px}.pr-16{padding-right:16px}.pb-16{padding-bottom:16px}.pl-16{padding-left:16px}.px-16{padding-left:16px;padding-right:16px}.py-16{padding-top:16px;padding-bottom:16px}.p-16{padding-top:16px;padding-right:16px;padding-bottom:16px;padding-left:16px}.pt-20{padding-top:20px}.pr-20{padding-right:20px}.pb-20{padding-bottom:20px}.pl-20{padding-left:20px}.px-20{padding-left:20px;padding-right:20px}.py-20{padding-top:20px;padding-bottom:20px}.p-20{padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px}.pt-24{padding-top:24px}.pr-24{padding-right:24px}.pb-24{padding-bottom:24px}.pl-24{padding-left:24px}.px-24{padding-left:24px;padding-right:24px}.py-24{padding-top:24px;padding-bottom:24px}.p-24{padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px}.pt-30{padding-top:30px}.pr-30{padding-right:30px}.pb-30{padding-bottom:30px}.pl-30{padding-left:30px}.px-30{padding-left:30px;padding-right:30px}.py-30{padding-top:30px;padding-bottom:30px}.p-30{padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px}.pt-32{padding-top:32px}.pr-32{padding-right:32px}.pb-32{padding-bottom:32px}.pl-32{padding-left:32px}.px-32{padding-left:32px;padding-right:32px}.py-32{padding-top:32px;padding-bottom:32px}.p-32{padding-top:32px;padding-right:32px;padding-bottom:32px;padding-left:32px}.pt-35{padding-top:35px}.pr-35{padding-right:35px}.pb-35{padding-bottom:35px}.pl-35{padding-left:35px}.px-35{padding-left:35px;padding-right:35px}.py-35{padding-top:35px;padding-bottom:35px}.p-35{padding-top:35px;padding-right:35px;padding-bottom:35px;padding-left:35px}.pt-40{padding-top:40px}.pr-40{padding-right:40px}.pb-40{padding-bottom:40px}.pl-40{padding-left:40px}.px-40{padding-left:40px;padding-right:40px}.py-40{padding-top:40px;padding-bottom:40px}.p-40{padding-top:40px;padding-right:40px;padding-bottom:40px;padding-left:40px}.pt-48{padding-top:48px}.pr-48{padding-right:48px}.pb-48{padding-bottom:48px}.pl-48{padding-left:48px}.px-48{padding-left:48px;padding-right:48px}.py-48{padding-top:48px;padding-bottom:48px}.p-48{padding-top:48px;padding-right:48px;padding-bottom:48px;padding-left:48px}.size-8{font-size:8px}.size-10{font-size:10px}.size-12{font-size:12px}.size-14{font-size:14px}.size-16{font-size:16px}.size-18{font-size:18px}.size-20{font-size:20px}.size-22{font-size:22px}.size-24{font-size:24px}.size-30{font-size:30px}.size-40{font-size:40px}.size-48{font-size:48px}.weight-400{font-weight:400}.weight-500{font-weight:500}.weight-600{font-weight:600}.weight-700{font-weight:700}.l-spacing-0{letter-spacing:0px}.l-spacing-5{letter-spacing:0.5px}.l-spacing-10{letter-spacing:1px}.l-spacing-20{letter-spacing:2px}.l-height-14{line-height:14px}.l-height-16{line-height:16px}.l-height-20{line-height:20px}.l-height-22{line-height:22px}.l-height-24{line-height:24px}.l-height-26{line-height:26px}.l-height-30{line-height:30px}.d-block{display:block}.d-i-block{display:inline-block}.d-flex{display:flex}.d-i-flex{display:inline-flex}.d-grid{display:grid}.d-none{display:none}.align-f-start{align-items:flex-start}.align-center{align-items:center}.align-f-end{align-items:flex-end}.justify-f-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-s-between{justify-content:space-between}.justify-s-around{justify-content:space-around}.direction-row{flex-direction:row}.direction-column{flex-direction:column}.opacity-2{opacity:.2}.opacity-0{opacity:0}.t-align-left{text-align:left}.t-align-right{text-align:right}.t-align-center{text-align:center}.shrink-0{flex-shrink:0}.shrink-1{flex-shrink:1}.grow-0{flex-grow:0}.grow-1{flex-grow:1}.pos-relative{position:relative}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.text-overflow-ellipsis{text-overflow:ellipsis}.text-uppercase{text-transform:uppercase}.space-nowrap{white-space:nowrap}.decoration-underline{text-decoration:underline}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.h-12{height:12px}.h-16{height:16px}.h-20{height:20px}.h-28{height:28px}.h-24{height:24px}.h-32{height:32px}.h-40{height:40px}.h-44{height:44px}.h-48{height:48px}.h-52{height:52px}.h-65{height:65px}.h-95{height:95px}.h-100{height:100px}.h-120{height:120px}.h-128{height:128px}.h-200{height:200px}.h-100-p{height:100%}.w-12{width:12px}.w-16{width:16px}.w-20{width:20px}.w-28{width:28px}.w-24{width:24px}.w-32{width:32px}.w-40{width:40px}.w-44{width:44px}.w-48{width:48px}.w-52{width:52px}.w-65{width:65px}.w-95{width:95px}.w-100{width:100px}.w-120{width:120px}.w-128{width:128px}.w-200{width:200px}.w-100-p{width:100%}.max-w-12{max-width:12px}.max-w-16{max-width:16px}.max-w-20{max-width:20px}.max-w-28{max-width:28px}.max-w-24{max-width:24px}.max-w-32{max-width:32px}.max-w-40{max-width:40px}.max-w-44{max-width:44px}.max-w-48{max-width:48px}.max-w-52{max-width:52px}.max-w-65{max-width:65px}.max-w-95{max-width:95px}.max-w-100{max-width:100px}.max-w-120{max-width:120px}.max-w-128{max-width:128px}.max-w-200{max-width:200px}.aspect-16-9{position:relative}.aspect-16-9:before{display:block;content:"";width:100%;padding-top:56.25%}.aspect-16-9>:nth-child(1){position:absolute;top:0;left:0;right:0;bottom:0}.aspect-4-3{position:relative}.aspect-4-3:before{display:block;content:"";width:100%;padding-top:75%}.aspect-4-3>:nth-child(1){position:absolute;top:0;left:0;right:0;bottom:0}.aspect-1-1{position:relative}.aspect-1-1:before{display:block;content:"";width:100%;padding-top:100%}.aspect-1-1>:nth-child(1){position:absolute;top:0;left:0;right:0;bottom:0}.radius-2{border-radius:2px}.radius-4{border-radius:4px}.radius-5{border-radius:5px}.radius-8{border-radius:8px}.radius-10{border-radius:10px}.radius-16{border-radius:16px}.radius-50{border-radius:50px}.radius-50-p{border-radius:50%}.text-ellipsis{max-width:100%;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;word-wrap:break-word;white-space:nowrap}.ps:hover .ps--scrolling-y>.ps__rail-y,.ps--focus .ps--scrolling-y>.ps__rail-y{opacity:.6}.ps.show-always .ps__rail-y{opacity:.6 !important}.ps__rail-y,.ps__rail-x{box-sizing:border-box}.ps__rail-y.ps--clicking,.ps__rail-y:hover,.ps__rail-x.ps--clicking,.ps__rail-x:hover{background-color:rgba(0,0,0,0) !important}.ps__rail-y{right:2px !important;width:8px !important}.ps__rail-y.ps--clicking,.ps__rail-y:hover{width:8px !important}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:hover .ps__thumb-y{width:4px !important;background-color:rgba(0,0,0,0) !important}.ps__rail-x{height:8px !important}.ps__rail-x.ps--clicking,.ps__rail-x:hover{height:8px !important}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:hover .ps__thumb-x{height:4px !important;background-color:rgba(0,0,0,0) !important}.ps__thumb-y,.ps__thumb-x{overflow:hidden;background-color:rgba(0,0,0,0)}.ps__thumb-y::after,.ps__thumb-x::after{position:absolute;content:"";background-color:#9e9e9e;border-radius:4px}.ps__thumb-y{width:4px}.ps__thumb-y::after{top:5px;left:0;width:100%;height:calc(100% - 10px)}.ps__thumb-x{height:4px}.ps__thumb-x::after{left:5px;width:calc(100% - 10px);height:100%}#main-app{height:100vh}#main-app .container{background-color:var(--widget-background, var(--color-rio));color:var(--widget-text-color, var(--color-asfalto))}@media(min-width: 812px)and (max-width: 926px)and (min-height: 325px)and (max-height: 428px){#main-app .container{padding:0 30px}}#main-app .container.isIphoneLandscape{padding-bottom:20px}#main-app .container.isIphoneWithoutNotch{padding-bottom:initial}#main-app .search .placeholder{color:var(--widget-placeholder-color, var(--color-belice))}#main-app .global-link{text-decoration:underline;cursor:pointer;color:var(--widget-global-link, var(--color-esmeralda))}#main-app .global-link:hover{text-decoration:none}#main-app .hyperlink,#main-app .question,#main-app faqform.faqform{color:var(--widget-hyperlink-link, var(--color-esmeralda));cursor:pointer;transition:opacity .3s}#main-app .hyperlink:hover,#main-app .question:hover,#main-app faqform.faqform:hover{opacity:.6}@media screen and (max-height: 430px)and (orientation: landscape){#main-app .faq__title{padding:0 25px 10px}#main-app .chat{padding-top:10px;padding-bottom:10px}#main-app .chat__link{margin:5px 0}#main-app .feedback{max-height:105px}#main-app .feedback__title{padding:15px 25px 10px}#main-app .operator-character.dialog-wrapper{position:fixed;width:calc(100% - 30px)}#main-app .operator-character.dialog-wrapper>.container .character-row{justify-content:center}}`,""]);const w=f},2765:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(8645),r=n.n(o),i=n(278),s=n.n(i)()(r());s.push([e.id,'.button[data-v-c1c59c50]{color:var(--widget-buttons-inline-color, var(--color-esmeralda));cursor:pointer;transition:all .3s}.button span[data-v-c1c59c50]{z-index:1;align-items:center;justify-content:center;width:100%;height:100%}.button[data-v-c1c59c50] icon{transition:all .3s}.button[data-v-c1c59c50] span{transition:all .3s}.button.outline[data-v-c1c59c50]{border:2px solid var(--widget-text-color, var(--color-nefritis))}.button[data-v-c1c59c50]:disabled{pointer-events:none;cursor:default;opacity:.5}.button[data-v-c1c59c50]:hover{filter:opacity(0.8)}.button[data-v-c1c59c50]:hover icon{filter:opacity(0.8)}.button[data-v-c1c59c50]:hover span{filter:opacity(0.8)}.button.fill[data-v-c1c59c50]{position:relative;color:var(--widget-buttons-color, var(--color-rio));border-radius:var(--button-corner, 5px);box-shadow:var(--widget-buttons-shadow, none);background:var(--widget-buttons-border-color, transparent)}.button.fill[data-v-c1c59c50]:before{content:"";position:absolute;top:2px;left:2px;width:calc(100% - 4px);height:calc(100% - 4px);border-radius:var(--button-corner-inner, 5px);background:var(--widget-buttons-background, var(--color-esmeralda));background-size:6px;z-index:0}',""]);const a=s},1943:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(8645),r=n.n(o),i=n(278),s=n.n(i)()(r());s.push([e.id,".footer[data-v-18fadd1a]{flex-shrink:0;border-top:1px solid var(--widget-border-color, var(--color-nefritis))}",""]);const a=s},7275:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(8645),r=n.n(o),i=n(278),s=n.n(i)()(r());s.push([e.id,".header[data-v-77163e76]{position:relative;z-index:2;flex-shrink:0;padding:20px;background-color:var(--header-background, transparent);box-shadow:var(--component-header-shadow) 0 2px 35px 0}.header .button[data-v-77163e76]{color:var(--component-header-buttons-color, var(--color-esmeralda))}",""]);const a=s},7335:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(8645),r=n.n(o),i=n(278),s=n.n(i)()(r());s.push([e.id,".wrap-icon[data-v-0ba43875]{display:inline-flex}.wrap-icon .icon[data-v-0ba43875]:not(.flags,.emoji){width:100%;height:100%;font-size:100%;line-height:inherit;background-repeat:no-repeat;background-position:center center;background-size:contain}",""]);const a=s},1497:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(8645),r=n.n(o),i=n(278),s=n.n(i)()(r());s.push([e.id,".custom-input[data-v-484b3817]{height:65px;font-size:16px}.placeholder[data-v-484b3817]{position:absolute;top:50%;color:var(--widget-placeholder-color, var(--color-belice));pointer-events:none;transform:translateY(-50%);font-weight:500}.placeholder.indent[data-v-484b3817]{margin-left:26px}.icon-emoji[data-v-484b3817]{position:relative;top:50%;width:24px;height:24px;padding:1px;transform:translateY(-50%)}.popup[data-v-484b3817]{position:absolute;right:0;bottom:100%;left:0;z-index:6;flex-wrap:wrap}.input[data-v-484b3817]{word-break:break-all}.input-innter[data-v-484b3817]{flex-wrap:wrap;color:var(--widget-text-color, var(--color-belice));word-break:break-word;white-space-collapse:break-spaces}.input-innter[data-v-484b3817]:empty{height:100%;text-align:left;display:table-cell;vertical-align:middle;padding-top:22px}.input .search-icon[data-v-484b3817]{font-size:22px;color:var(--color-belice)}",""]);const a=s},2852:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(8645),r=n.n(o),i=n(278),s=n.n(i)()(r());s.push([e.id,".error[data-v-63c24910]{z-index:1;color:var(--view-faq-error-color);background-color:var(--view-faq-error-background);border-top:1px solid var(--widget-border-color, var(--color-nefritis));border-bottom:1px solid var(--widget-border-color, var(--color-nefritis))}",""]);const a=s},163:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(8645),r=n.n(o),i=n(278),s=n.n(i)()(r());s.push([e.id,".button[data-v-62e2a46d]{align-items:flex-start;color:color-mix(in srgb, transparent, var(--widget-text-color, var(--color-esmeralda)) 25%)}.button span[data-v-62e2a46d]{color:var(--component-faq-question-item-text-color, var(--color-esmeralda))}",""]);const a=s},9219:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(8645),r=n.n(o),i=n(278),s=n.n(i)()(r());s.push([e.id,'.lang__select{color:var(--component-language-selector-color, var(--color-rio));background-color:var(--component-language-selector-background, var(--color-asfalto));border-radius:var(--component-language-selector-border-corner, 2px)}.lang__menu{position:absolute;top:32px;left:50%;z-index:20;box-shadow:0 4px 35px 0 rgba(0,0,0,.5);transform:translateX(-50%)}.lang__menu::before{position:absolute;top:-22px;right:50%;z-index:1;content:"";border:10px solid rgba(0,0,0,0);border-bottom:14px solid var(--color-rio);transform:translateX(50%)}.lang__menu__list{position:relative;z-index:2;width:112px;max-height:270px;border-radius:var(--component-language-selector-menu-list-border-corner, 10px)}.lang__menu__list.with-icon{padding:4px}.lang__menu__list .ps{max-height:270px}.lang__menu__list .list-item{color:var(--component-language-selector-color-item, var(--color-asfalto));text-transform:uppercase;cursor:pointer;border-bottom:1px solid var(--component-language-selector-border, var(--color-nefritis))}.lang__menu__list .list-item:first-of-type,.lang__menu__list .list-item:nth-child(1){border-top-left-radius:var(--component-language-selector-menu-list-border-corner, 10px);border-top-right-radius:var(--component-language-selector-menu-list-border-corner, 10px)}.lang__menu__list .list-item:hover{color:var(--component-language-selector-item-color-hover);background-color:var(--component-language-selector-item-background-hover, var(--color-nefritis))}.lang__menu__list .list-item:last-of-type,.lang__menu__list .list-item:nth-last-child(3){border-bottom:none;border-bottom-right-radius:var(--component-language-selector-menu-list-border-corner, 10px);border-bottom-left-radius:var(--component-language-selector-menu-list-border-corner, 10px)}',""]);const a=s},9895:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var o=n(8645),r=n.n(o),i=n(278),s=n.n(i),a=n(3021),l=n.n(a),c=new URL(n(2544),n.b),u=new URL(n(5011),n.b),d=new URL(n(8751),n.b),p=s()(r());p.push([e.id,"@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Open+Sans:wght@300;400;600;700;900&display=swap);"]);var h=l()(c),f=l()(u),m=l()(d);p.push([e.id,`#main-app .container[data-design=vortex],#main-app .container[data-design=default],#main-app .container[data-design=""]{font-family:"Roboto",sans-serif}#main-app .container[data-design=blaze]{font-family:"Open Sans",sans-serif}#main-app .container[data-design=shard]{font-family:"Roboto",sans-serif}#main-app .container[data-design=inferno]{font-family:"Roboto",sans-serif}#main-app .container[data-design=ember]{font-family:"MabryPro",sans-serif}@font-face{font-family:"MabryPro";src:local("MabryPro"),local("MabryPro-Regular"),url(${h}) format("woff");font-weight:400;font-style:normal}@font-face{font-family:"MabryPro";src:local("MabryPro"),local("MabryPro-Medium"),url(${f}) format("woff");font-weight:500;font-style:normal}@font-face{font-family:"MabryPro";src:local("MabryPro"),local("MabryPro-Bold"),url(${m}) format("woff");font-weight:600;font-style:normal}@font-face{font-family:"MabryPro";src:local("MabryPro"),local("MabryPro-Bold"),url(${m}) format("woff");font-weight:700;font-style:normal}`,""]);const g=p},4671:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(8645),r=n.n(o),i=n(278),s=n.n(i)()(r());s.push([e.id,".faq[data-v-e812b8d8]{flex:1;flex-basis:0;border-bottom:1px solid var(--widget-border-color, var(--color-nefritis))}.faq .ps[data-v-e812b8d8]{flex:1;flex-basis:0}.faq .title[data-v-e812b8d8]{font-weight:var(--view-faq-title-font-weight, 600);color:var(--view-faq-title-color, var(--color-asfalto));text-transform:var(--view-faq-title-font-transform, initial);background-color:var(--view-faq-title-background, transparent)}.faq .list[data-v-e812b8d8]{padding-top:var(--view-faq-list-pt, initial)}.footer[data-v-e812b8d8] .button{color:var(--component-faq-question-item-text-color, var(--color-esmeralda))}.footer[data-v-e812b8d8] .button .wrap-icon{color:var(--widget-buttons-inline-color, var(--color-esmeralda))}",""]);const a=s},278:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(o)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},3021:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8645:e=>{"use strict";e.exports=function(e){return e[1]}},1234:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:s,create:a}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),s||(s=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=E(Array.prototype.forEach),d=E(Array.prototype.pop),p=E(Array.prototype.push),h=E(String.prototype.toLowerCase),f=E(String.prototype.toString),m=E(String.prototype.match),g=E(String.prototype.replace),b=E(String.prototype.indexOf),v=E(String.prototype.trim),_=E(Object.prototype.hasOwnProperty),y=E(RegExp.prototype.test),w=(x=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"==typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function S(e){for(let t=0;t/gm),W=s(/\${[\w\W]*}/gm),B=s(/^data-[\-\w.\u00B7-\uFFFF]/),q=s(/^aria-[\-\w]+$/),z=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=s(/^(?:\w+script|data):/i),Y=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=s(/^html$/i),X=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:$,TMPLIT_EXPR:W,DATA_ATTR:B,ARIA_ATTR:q,IS_ALLOWED_URI:z,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:Y,DOCTYPE_NAME:V,CUSTOM_ELEMENT:X});const Q=1,K=3,Z=7,J=8,ee=9,te=function(){return"undefined"==typeof window?null:window};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const o=e=>t(e);if(o.version="3.1.6",o.removed=[],!n||!n.document||n.document.nodeType!==ee)return o.isSupported=!1,o;let{document:r}=n;const s=r,l=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:x,Node:E,Element:S,NodeFilter:j,NamedNodeMap:$=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:W,DOMParser:B,trustedTypes:q}=n,H=S.prototype,Y=C(H,"cloneNode"),X=C(H,"remove"),ne=C(H,"nextSibling"),oe=C(H,"childNodes"),re=C(H,"parentNode");if("function"==typeof x){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ie,se="";const{implementation:ae,createNodeIterator:le,createDocumentFragment:ce,getElementsByTagName:ue}=r,{importNode:de}=s;let pe={};o.isSupported="function"==typeof e&&"function"==typeof re&&ae&&void 0!==ae.createHTMLDocument;const{MUSTACHE_EXPR:he,ERB_EXPR:fe,TMPLIT_EXPR:me,DATA_ATTR:ge,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:_e,CUSTOM_ELEMENT:ye}=G;let{IS_ALLOWED_URI:we}=G,xe=null;const Ee=k({},[...A,...O,...L,...R,...M]);let ke=null;const Se=k({},[...P,...F,...D,...U]);let Te=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Ae=null,Oe=!0,Le=!0,Ie=!1,Re=!0,Ne=!1,Me=!0,Pe=!1,Fe=!1,De=!1,Ue=!1,je=!1,$e=!1,We=!0,Be=!1,qe=!0,ze=!1,He={},Ye=null;const Ve=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Xe=null;const Ge=k({},["audio","video","img","source","image","track"]);let Qe=null;const Ke=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,ot=null;const rt=k({},[Ze,Je,et],f);let it=null;const st=["application/xhtml+xml","text/html"];let at=null,lt=null;const ct=r.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"==typeof e||(e={}),e=T(e),it=-1===st.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===it?f:h,xe=_(e,"ALLOWED_TAGS")?k({},e.ALLOWED_TAGS,at):Ee,ke=_(e,"ALLOWED_ATTR")?k({},e.ALLOWED_ATTR,at):Se,ot=_(e,"ALLOWED_NAMESPACES")?k({},e.ALLOWED_NAMESPACES,f):rt,Qe=_(e,"ADD_URI_SAFE_ATTR")?k(T(Ke),e.ADD_URI_SAFE_ATTR,at):Ke,Xe=_(e,"ADD_DATA_URI_TAGS")?k(T(Ge),e.ADD_DATA_URI_TAGS,at):Ge,Ye=_(e,"FORBID_CONTENTS")?k({},e.FORBID_CONTENTS,at):Ve,Ce=_(e,"FORBID_TAGS")?k({},e.FORBID_TAGS,at):{},Ae=_(e,"FORBID_ATTR")?k({},e.FORBID_ATTR,at):{},He=!!_(e,"USE_PROFILES")&&e.USE_PROFILES,Oe=!1!==e.ALLOW_ARIA_ATTR,Le=!1!==e.ALLOW_DATA_ATTR,Ie=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ne=e.SAFE_FOR_TEMPLATES||!1,Me=!1!==e.SAFE_FOR_XML,Pe=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,$e=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Be=e.SANITIZE_NAMED_PROPS||!1,qe=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||z,tt=e.NAMESPACE||et,Te=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Le=!1),je&&(Ue=!0),He&&(xe=k({},M),ke=[],!0===He.html&&(k(xe,A),k(ke,P)),!0===He.svg&&(k(xe,O),k(ke,F),k(ke,U)),!0===He.svgFilters&&(k(xe,L),k(ke,F),k(ke,U)),!0===He.mathMl&&(k(xe,R),k(ke,D),k(ke,U))),e.ADD_TAGS&&(xe===Ee&&(xe=T(xe)),k(xe,e.ADD_TAGS,at)),e.ADD_ATTR&&(ke===Se&&(ke=T(ke)),k(ke,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&k(Qe,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(Ye===Ve&&(Ye=T(Ye)),k(Ye,e.FORBID_CONTENTS,at)),qe&&(xe["#text"]=!0),Pe&&k(xe,["html","head","body"]),xe.table&&(k(xe,["tbody"]),delete Ce.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ie=e.TRUSTED_TYPES_POLICY,se=ie.createHTML("")}else void 0===ie&&(ie=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(q,l)),null!==ie&&"string"==typeof se&&(se=ie.createHTML(""));i&&i(e),lt=e}},pt=k({},["mi","mo","mn","ms","mtext"]),ht=k({},["foreignobject","annotation-xml"]),ft=k({},["title","style","font","a","script"]),mt=k({},[...O,...L,...I]),gt=k({},[...R,...N]),bt=function(e){p(o.removed,{element:e});try{re(e).removeChild(e)}catch(t){X(e)}},vt=function(e,t){try{p(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Ue||je)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},_t=function(e){let t=null,n=null;if(De)e=""+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&tt===et&&(e=''+e+"");const o=ie?ie.createHTML(e):e;if(tt===et)try{t=(new B).parseFromString(o,it)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?se:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),tt===et?ue.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:i},yt=function(e){return le.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof W&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof $)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},xt=function(e){return"function"==typeof E&&e instanceof E},Et=function(e,t,n){pe[e]&&u(pe[e],(e=>{e.call(o,t,n,lt)}))},kt=function(e){let t=null;if(Et("beforeSanitizeElements",e,null),wt(e))return bt(e),!0;const n=at(e.nodeName);if(Et("uponSanitizeElement",e,{tagName:n,allowedTags:xe}),e.hasChildNodes()&&!xt(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return bt(e),!0;if(e.nodeType===Z)return bt(e),!0;if(Me&&e.nodeType===J&&y(/<[/\w]/g,e.data))return bt(e),!0;if(!xe[n]||Ce[n]){if(!Ce[n]&&Tt(n)){if(Te.tagNameCheck instanceof RegExp&&y(Te.tagNameCheck,n))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))return!1}if(qe&&!Ye[n]){const t=re(e)||e.parentNode,n=oe(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=Y(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ne(e))}}return bt(e),!0}return e instanceof S&&!function(e){let t=re(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=h(e.tagName),o=h(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===et?"svg"===n:t.namespaceURI===Ze?"svg"===n&&("annotation-xml"===o||pt[o]):Boolean(mt[n]):e.namespaceURI===Ze?t.namespaceURI===et?"math"===n:t.namespaceURI===Je?"math"===n&&ht[o]:Boolean(gt[n]):e.namespaceURI===et?!(t.namespaceURI===Je&&!ht[o])&&!(t.namespaceURI===Ze&&!pt[o])&&!gt[n]&&(ft[n]||!mt[n]):!("application/xhtml+xml"!==it||!ot[e.namespaceURI]))}(e)?(bt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ne&&e.nodeType===K&&(t=e.textContent,u([he,fe,me],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(o.removed,{element:e.cloneNode()}),e.textContent=t)),Et("afterSanitizeElements",e,null),!1):(bt(e),!0)},St=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in r||n in ct))return!1;if(Le&&!Ae[t]&&y(ge,t));else if(Oe&&y(be,t));else if(!ke[t]||Ae[t]){if(!(Tt(e)&&(Te.tagNameCheck instanceof RegExp&&y(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&y(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&y(Te.tagNameCheck,n)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))))return!1}else if(Qe[t]);else if(y(we,g(n,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!Xe[e])if(Ie&&!y(ve,g(n,_e,"")));else if(n)return!1;return!0},Tt=function(e){return"annotation-xml"!==e&&m(e,ye)},Ct=function(e){Et("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};let r=t.length;for(;r--;){const i=t[r],{name:s,namespaceURI:a,value:l}=i,c=at(s);let p="value"===s?l:v(l);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,Et("uponSanitizeAttribute",e,n),p=n.attrValue,Me&&y(/((--!?|])>)|<\/(style|title)/i,p)){vt(s,e);continue}if(n.forceKeepAttr)continue;if(vt(s,e),!n.keepAttr)continue;if(!Re&&y(/\/>/i,p)){vt(s,e);continue}Ne&&u([he,fe,me],(e=>{p=g(p,e," ")}));const h=at(e.nodeName);if(St(h,c,p)){if(!Be||"id"!==c&&"name"!==c||(vt(s,e),p="user-content-"+p),ie&&"object"==typeof q&&"function"==typeof q.getAttributeType)if(a);else switch(q.getAttributeType(h,c)){case"TrustedHTML":p=ie.createHTML(p);break;case"TrustedScriptURL":p=ie.createScriptURL(p)}try{a?e.setAttributeNS(a,s,p):e.setAttribute(s,p),wt(e)?bt(e):d(o.removed)}catch(e){}}}Et("afterSanitizeAttributes",e,null)},At=function e(t){let n=null;const o=yt(t);for(Et("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)Et("uponSanitizeShadowNode",n,null),kt(n)||(n.content instanceof c&&e(n.content),Ct(n));Et("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,i=null,a=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xt(e)){if("function"!=typeof e.toString)throw w("toString is not a function");if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Fe||dt(t),o.removed=[],"string"==typeof e&&(ze=!1),ze){if(e.nodeName){const t=at(e.nodeName);if(!xe[t]||Ce[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof E)n=_t("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===Q&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Ue&&!Ne&&!Pe&&-1===e.indexOf("<"))return ie&&$e?ie.createHTML(e):e;if(n=_t(e),!n)return Ue?null:$e?se:""}n&&De&&bt(n.firstChild);const l=yt(ze?e:n);for(;i=l.nextNode();)kt(i)||(i.content instanceof c&&At(i.content),Ct(i));if(ze)return e;if(Ue){if(je)for(a=ce.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(ke.shadowroot||ke.shadowrootmode)&&(a=de.call(s,a,!0)),a}let d=Pe?n.outerHTML:n.innerHTML;return Pe&&xe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&y(V,n.ownerDocument.doctype.name)&&(d="\n"+d),Ne&&u([he,fe,me],(e=>{d=g(d,e," ")})),ie&&$e?ie.createHTML(d):d},o.setConfig=function(){dt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Fe=!0},o.clearConfig=function(){lt=null,Fe=!1},o.isValidAttribute=function(e,t,n){lt||dt({});const o=at(e),r=at(t);return St(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],p(pe[e],t))},o.removeHook=function(e){if(pe[e])return d(pe[e])},o.removeHooks=function(e){pe[e]&&(pe[e]=[])},o.removeAllHooks=function(){pe={}},o}()}()},2198:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var o=n(4629),r=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return(0,o.C6)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,o=e._value;if(t)throw n;return this._throwIfClosed(),o},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(n(175).B)},380:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});var o=n(9680),r=n(6916),i=n(8896),s=n(3887);var a=n(9855),l=n(1693),c=n(3004),u=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i,s=this,a=(i=e)&&i instanceof o.vU||function(e){return e&&(0,l.T)(e.next)&&(0,l.T)(e.error)&&(0,l.T)(e.complete)}(i)&&(0,r.Uv)(i)?e:new o.Ms(e,t,n);return(0,c.Y)((function(){var e=s,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?s._subscribe(a):s._trySubscribe(a))})),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=d(t))((function(t,r){var i=new o.Ms({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[i.s]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";n.d(t,{B:()=>c});var o=n(4629),r=n(380),i=n(6916),s=(0,n(5383).L)((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),a=n(34),l=n(3004),c=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,o.C6)(t,e),t.prototype.lift=function(e){var t=new u(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new s},t.prototype.next=function(e){var t=this;(0,l.Y)((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,o.Ju)(t.currentObservers),s=i.next();!s.done;s=i.next())s.value.next(e)}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;(0,l.Y)((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;(0,l.Y)((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,o=n.hasError,r=n.isStopped,s=n.observers;return o||r?i.Kn:(this.currentObservers=null,s.push(e),new i.yU((function(){t.currentObservers=null,(0,a.o)(s,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,o=t.thrownError,r=t.isStopped;n?e.error(o):r&&e.complete()},t.prototype.asObservable=function(){var e=new r.c;return e.source=this,e},t.create=function(e,t){return new u(e,t)},t}(r.c),u=function(e){function t(t,n){var o=e.call(this)||this;return o.destination=t,o.source=n,o}return(0,o.C6)(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:i.Kn},t}(c)},9680:(e,t,n)=>{"use strict";n.d(t,{Ms:()=>b,vU:()=>h});var o=n(4629),r=n(1693),i=n(6916),s=n(9855),a=n(6712),l=n(8849),c=u("C",void 0,void 0);function u(e,t,n){return{kind:e,value:t,error:n}}var d=n(2332),p=n(3004),h=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,(0,i.Uv)(t)&&t.add(n)):n.destination=y,n}return(0,o.C6)(t,e),t.create=function(e,t,n){return new b(e,t,n)},t.prototype.next=function(e){this.isStopped?_(function(e){return u("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?_(u("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?_(c,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(i.yU),f=Function.prototype.bind;function m(e,t){return f.call(e,t)}var g=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){v(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){v(e)}else v(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){v(e)}},e}(),b=function(e){function t(t,n,o){var i,a,l=e.call(this)||this;return(0,r.T)(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=o?o:void 0}:l&&s.$.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},i={next:t.next&&m(t.next,a),error:t.error&&m(t.error,a),complete:t.complete&&m(t.complete,a)}):i=t,l.destination=new g(i),l}return(0,o.C6)(t,e),t}(h);function v(e){s.$.useDeprecatedSynchronousErrorHandling?(0,p.l)(e):(0,a.m)(e)}function _(e,t){var n=s.$.onStoppedNotification;n&&d.f.setTimeout((function(){return n(e,t)}))}var y={closed:!0,next:l.l,error:function(e){throw e},complete:l.l}},6916:(e,t,n)=>{"use strict";n.d(t,{Kn:()=>l,yU:()=>a,Uv:()=>c});var o=n(4629),r=n(1693),i=(0,n(5383).L)((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}})),s=n(34),a=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,s,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=(0,o.Ju)(l),d=c.next();!d.done;d=c.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}else l.remove(this);var p=this.initialTeardown;if((0,r.T)(p))try{p()}catch(e){a=e instanceof i?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=(0,o.Ju)(h),m=f.next();!m.done;m=f.next()){var g=m.value;try{u(g)}catch(e){a=null!=a?a:[],e instanceof i?a=(0,o.fX)((0,o.fX)([],(0,o.zs)(a)),(0,o.zs)(e.errors)):a.push(e)}}}catch(e){n={error:e}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(n)throw n.error}}}if(a)throw new i(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)u(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,s.o)(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&(0,s.o)(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),l=a.EMPTY;function c(e){return e instanceof a||e&&"closed"in e&&(0,r.T)(e.remove)&&(0,r.T)(e.add)&&(0,r.T)(e.unsubscribe)}function u(e){(0,r.T)(e)?e():e.unsubscribe()}},9855:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var o={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9016:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var o=n(380),r=n(7688);function i(e){return new o.c((function(t){(0,r.Tg)(e()).subscribe(t)}))}},5529:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var o=new(n(380).c)((function(e){return e.complete()}))},3676:(e,t,n)=>{"use strict";n.d(t,{H:()=>y});var o=n(7688),r=n(8071),i=n(5096),s=n(4370);function a(e,t){return void 0===t&&(t=0),(0,i.N)((function(n,o){n.subscribe((0,s._)(o,(function(n){return(0,r.N)(o,e,(function(){return o.next(n)}),t)}),(function(){return(0,r.N)(o,e,(function(){return o.complete()}),t)}),(function(n){return(0,r.N)(o,e,(function(){return o.error(n)}),t)})))}))}function l(e,t){return void 0===t&&(t=0),(0,i.N)((function(n,o){o.add(e.schedule((function(){return n.subscribe(o)}),t))}))}var c=n(380),u=n(4207),d=n(1693);function p(e,t){if(!e)throw new Error("Iterable cannot be null");return new c.c((function(n){(0,r.N)(n,t,(function(){var o=e[Symbol.asyncIterator]();(0,r.N)(n,t,(function(){o.next().then((function(e){e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}var h=n(9065),f=n(5796),m=n(9739),g=n(4799),b=n(3819),v=n(4429),_=n(3026);function y(e,t){return t?function(e,t){if(null!=e){if((0,h.l)(e))return function(e,t){return(0,o.Tg)(e).pipe(l(t),a(t))}(e,t);if((0,m.X)(e))return function(e,t){return new c.c((function(n){var o=0;return t.schedule((function(){o===e.length?n.complete():(n.next(e[o++]),n.closed||this.schedule())}))}))}(e,t);if((0,f.y)(e))return function(e,t){return(0,o.Tg)(e).pipe(l(t),a(t))}(e,t);if((0,b.T)(e))return p(e,t);if((0,g.x)(e))return function(e,t){return new c.c((function(n){var o;return(0,r.N)(n,t,(function(){o=e[u.l](),(0,r.N)(n,t,(function(){var e,t,r;try{t=(e=o.next()).value,r=e.done}catch(e){return void n.error(e)}r?n.complete():n.next(t)}),0,!0)})),function(){return(0,d.T)(null==o?void 0:o.return)&&o.return()}}))}(e,t);if((0,_.U)(e))return function(e,t){return p((0,_.C)(e),t)}(e,t)}throw(0,v.L)(e)}(e,t):(0,o.Tg)(e)}},7688:(e,t,n)=>{"use strict";n.d(t,{Tg:()=>m});var o=n(4629),r=n(9739),i=n(5796),s=n(380),a=n(9065),l=n(3819),c=n(4429),u=n(4799),d=n(3026),p=n(1693),h=n(6712),f=n(8896);function m(e){if(e instanceof s.c)return e;if(null!=e){if((0,a.l)(e))return v=e,new s.c((function(e){var t=v[f.s]();if((0,p.T)(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if((0,r.X)(e))return b=e,new s.c((function(e){for(var t=0;t{"use strict";n.d(t,{h:()=>l});var o=n(5499),r=n(7688),i=n(5529),s=n(4e3),a=n(3676);function l(){for(var e=[],t=0;t{"use strict";n.d(t,{of:()=>i});var o=n(4e3),r=n(3676);function i(){for(var e=[],t=0;t{"use strict";n.d(t,{O:()=>a});var o=n(380),r=n(7688),i=Array.isArray,s=n(4370);function a(){for(var e,t=[],n=0;n{"use strict";n.d(t,{O:()=>s});var o=n(380),r=n(1846),i=n(9672);function s(e,t,n){void 0===e&&(e=0),void 0===n&&(n=r.b);var s=-1;return null!=t&&((0,i.m)(t)?n=t:s=t),new o.c((function(t){var o,r=(o=e)instanceof Date&&!isNaN(o)?+e-n.now():e;r<0&&(r=0);var i=0;return n.schedule((function(){t.closed||(t.next(i++),0<=s?this.schedule(void 0,s):t.complete())}),r)}))}},4370:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var o=n(4629);function r(e,t,n,o,r){return new i(e,t,n,o,r)}var i=function(e){function t(t,n,o,r,i,s){var a=e.call(this,t)||this;return a.onFinalize=i,a.shouldUnsubscribe=s,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=r?function(e){try{r(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=o?function(){try{o()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,o.C6)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(n(9680).vU)},6814:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var o=n(1846),r=n(5096),i=n(4370);function s(e,t){return void 0===t&&(t=o.E),(0,r.N)((function(n,o){var r=null,s=null,a=null,l=function(){if(r){r.unsubscribe(),r=null;var e=s;s=null,o.next(e)}};function c(){var n=a+e,i=t.now();if(i{"use strict";n.d(t,{F:()=>s});var o=n(3887),r=n(5096),i=n(4370);function s(e,t){return void 0===t&&(t=o.D),e=null!=e?e:a,(0,r.N)((function(n,o){var r,s=!0;n.subscribe((0,i._)(o,(function(n){var i=t(n);!s&&e(r,i)||(s=!1,r=i,o.next(n))})))}))}function a(e,t){return e===t}},8146:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var o=n(5096),r=n(4370);function i(e,t){return(0,o.N)((function(n,o){var i=0;n.subscribe((0,r._)(o,(function(n){return e.call(t,n,i++)&&o.next(n)})))}))}},7708:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var o=n(5096),r=n(4370);function i(e,t){return(0,o.N)((function(n,o){var i=0;n.subscribe((0,r._)(o,(function(n){o.next(e.call(t,n,i++))})))}))}},5499:(e,t,n)=>{"use strict";n.d(t,{U:()=>i});var o=n(9168),r=n(3887);function i(e){return void 0===e&&(e=1/0),(0,o.Z)(r.D,e)}},9168:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(7708),r=n(7688),i=n(5096),s=(n(8071),n(4370)),a=n(1693);function l(e,t,n){return void 0===n&&(n=1/0),(0,a.T)(t)?l((function(n,i){return(0,o.T)((function(e,o){return t(n,e,i,o)}))((0,r.Tg)(e(n,i)))}),n):("number"==typeof t&&(n=t),(0,i.N)((function(t,o){return function(e,t,n,o){var i=[],a=0,l=0,c=!1,u=function(){!c||i.length||a||t.complete()},d=function(e){return a{"use strict";n.d(t,{n:()=>s});var o=n(7688),r=n(5096),i=n(4370);function s(e,t){return(0,r.N)((function(n,r){var s=null,a=0,l=!1,c=function(){return l&&!s&&r.complete()};n.subscribe((0,i._)(r,(function(n){null==s||s.unsubscribe();var l=0,u=a++;(0,o.Tg)(e(n,u)).subscribe(s=(0,i._)(r,(function(e){return r.next(t?t(n,e,u,l++):e)}),(function(){s=null,c()})))}),(function(){l=!0,c()})))}))}},9283:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var o=n(5529),r=n(5096),i=n(4370);function s(e){return e<=0?function(){return o.w}:(0,r.N)((function(t,n){var o=0;t.subscribe((0,i._)(n,(function(t){++o<=e&&(n.next(t),e<=o&&n.complete())})))}))}},2394:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var o=n(5096),r=n(4370);function i(e,t){return void 0===t&&(t=!1),(0,o.N)((function(n,o){var i=0;n.subscribe((0,r._)(o,(function(n){var r=e(n,i++);(r||t)&&o.next(n),!r&&o.complete()})))}))}},2623:(e,t,n)=>{"use strict";n.d(t,{M:()=>a});var o=n(1693),r=n(5096),i=n(4370),s=n(3887);function a(e,t,n){var a=(0,o.T)(e)||t||n?{next:e,error:t,complete:n}:e;return a?(0,r.N)((function(e,t){var n;null===(n=a.subscribe)||void 0===n||n.call(a);var o=!0;e.subscribe((0,i._)(t,(function(e){var n;null===(n=a.next)||void 0===n||n.call(a,e),t.next(e)}),(function(){var e;o=!1,null===(e=a.complete)||void 0===e||e.call(a),t.complete()}),(function(e){var n;o=!1,null===(n=a.error)||void 0===n||n.call(a,e),t.error(e)}),(function(){var e,t;o&&(null===(e=a.unsubscribe)||void 0===e||e.call(a)),null===(t=a.finalize)||void 0===t||t.call(a)})))})):s.D}},1846:(e,t,n)=>{"use strict";n.d(t,{b:()=>d,E:()=>u});var o=n(4629),r=function(e){function t(t,n){return e.call(this)||this}return(0,o.C6)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(6916).yU),i={setInterval:function(e,t){for(var n=[],r=2;r{"use strict";n.d(t,{f:()=>r});var o=n(4629),r={setTimeout:function(e,t){for(var n=[],i=2;i{"use strict";n.d(t,{l:()=>o});var o="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},8896:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var o="function"==typeof Symbol&&Symbol.observable||"@@observable"},4e3:(e,t,n)=>{"use strict";n.d(t,{R0:()=>s,lI:()=>i});var o=n(9672);function r(e){return e[e.length-1]}function i(e){return(0,o.m)(r(e))?e.pop():void 0}function s(e,t){return"number"==typeof r(e)?e.pop():t}},34:(e,t,n)=>{"use strict";function o(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}n.d(t,{o:()=>o})},5383:(e,t,n)=>{"use strict";function o(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}n.d(t,{L:()=>o})},3004:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i,l:()=>s});var o=n(9855),r=null;function i(e){if(o.$.useDeprecatedSynchronousErrorHandling){var t=!r;if(t&&(r={errorThrown:!1,error:null}),e(),t){var n=r,i=n.errorThrown,s=n.error;if(r=null,i)throw s}}else e()}function s(e){o.$.useDeprecatedSynchronousErrorHandling&&r&&(r.errorThrown=!0,r.error=e)}},8071:(e,t,n)=>{"use strict";function o(e,t,n,o,r){void 0===o&&(o=0),void 0===r&&(r=!1);var i=t.schedule((function(){n(),r?e.add(this.schedule(null,o)):this.unsubscribe()}),o);if(e.add(i),!r)return i}n.d(t,{N:()=>o})},3887:(e,t,n)=>{"use strict";function o(e){return e}n.d(t,{D:()=>o})},9739:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var o=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},3819:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var o=n(1693);function r(e){return Symbol.asyncIterator&&(0,o.T)(null==e?void 0:e[Symbol.asyncIterator])}},1693:(e,t,n)=>{"use strict";function o(e){return"function"==typeof e}n.d(t,{T:()=>o})},9065:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var o=n(8896),r=n(1693);function i(e){return(0,r.T)(e[o.s])}},4799:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var o=n(4207),r=n(1693);function i(e){return(0,r.T)(null==e?void 0:e[o.l])}},5796:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var o=n(1693);function r(e){return(0,o.T)(null==e?void 0:e.then)}},3026:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,U:()=>s});var o=n(4629),r=n(1693);function i(e){return(0,o.AQ)(this,arguments,(function(){var t,n,r;return(0,o.YH)(this,(function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,o.N3)(t.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,(0,o.N3)(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,(0,o.N3)(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function s(e){return(0,r.T)(null==e?void 0:e.getReader)}},9672:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var o=n(1693);function r(e){return e&&(0,o.T)(e.schedule)}},5096:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var o=n(1693);function r(e){return function(t){if(function(e){return(0,o.T)(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},8849:(e,t,n)=>{"use strict";function o(){}n.d(t,{l:()=>o})},6712:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var o=n(9855),r=n(2332);function i(e){r.f.setTimeout((function(){var t=o.$.onUnhandledError;if(!t)throw e;t(e)}))}},4429:(e,t,n)=>{"use strict";function o(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}n.d(t,{L:()=>o})},1200:e=>{!function(){"use strict";e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,o=e.HTMLElement||e.Element,r=468,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:o.prototype.scroll||l,scrollIntoView:o.prototype.scrollIntoView},s=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,a=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?f.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):i.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?i.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):f.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},o.prototype.scroll=o.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var e=arguments[0].left,t=arguments[0].top;f.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},o.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},o.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var n=function(e){for(;e!==t.body&&!1===p(e);)e=e.parentNode||e.host;return e}(this),o=n.getBoundingClientRect(),r=this.getBoundingClientRect();n!==t.body?(f.call(this,n,n.scrollLeft+r.left-o.left,n.scrollTop+r.top-o.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function l(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(e,t){return"Y"===t?e.clientHeight+a1?1:l,n=.5*(1-Math.cos(Math.PI*a)),o=t.startX+(t.x-t.startX)*n,i=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,o,i),o===t.x&&i===t.y||e.requestAnimationFrame(h.bind(e,t))}function f(n,o,r){var a,c,u,d,p=s();n===t.body?(a=e,c=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=i.scroll):(a=n,c=n.scrollLeft,u=n.scrollTop,d=l),h({scrollable:a,method:d,startTime:p,startX:c,startY:u,x:o,y:r})}}}}()},5292:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},9088:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},6884:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},9893:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7997:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6660:function(e,t,n){var o;!function(r,i){"use strict";var s="function",a="undefined",l="object",c="string",u="major",d="model",p="name",h="type",f="vendor",m="version",g="architecture",b="console",v="mobile",_="tablet",y="smarttv",w="wearable",x="embedded",E="Amazon",k="Apple",S="ASUS",T="BlackBerry",C="Browser",A="Chrome",O="Firefox",L="Google",I="Huawei",R="LG",N="Microsoft",M="Motorola",P="Opera",F="Samsung",D="Sharp",U="Sony",j="Xiaomi",$="Zebra",W="Facebook",B="Chromium OS",q="Mac OS",z=" Browser",H=function(e){for(var t={},n=0;n0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,u):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=u?u.replace(a[1],a[2]):i:this[a[0]]=u?a[1].call(this,u,a[2]):i:4===a.length&&(this[a[0]]=u?a[3].call(this,u.replace(a[1],a[2])):i):this[a]=u||i;d+=2}},Q=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var o=0;o2&&(e[d]="iPad",e[h]=_),e},this.getEngine=function(){var e={};return e[p]=i,e[m]=i,G.call(e,o,y.engine),e},this.getOS=function(){var e={};return e[p]=i,e[m]=i,G.call(e,o,y.os),w&&!e[p]&&b&&b.platform&&"Unknown"!=b.platform&&(e[p]=b.platform.replace(/chrome os/i,B).replace(/macos/i,q)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===c&&e.length>500?X(e,500):e,this},this.setUA(o),this};J.VERSION="1.0.39",J.BROWSER=H([p,m,u]),J.CPU=H([g]),J.DEVICE=H([d,f,h,b,v,y,_,w,x]),J.ENGINE=J.OS=H([p,m]),typeof t!==a?(e.exports&&(t=e.exports=J),t.UAParser=J):n.amdO?(o=function(){return J}.call(t,n,t,e))===i||(e.exports=o):typeof r!==a&&(r.UAParser=J);var ee=typeof r!==a&&(r.jQuery||r.Zepto);if(ee&&!ee.ua){var te=new J;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"==typeof window?window:this)},9890:(e,t)=>{"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}},3580:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var o=n(5149),r=n(9949),i=n(2547);const s={class:"custom-input pos-relative d-flex px-16 size-14"},a=["contenteditable"],l={class:"d-flex direction-row align-center ml-auto"};var c=n(3084),u=n(6814),d=n(7311),p=n(8298),h=n(3628);const f=["pdf","jpg","png","gif"],m=new class{separateBase64Files(e){const t=document.createElement("div"),n=[];t.innerHTML=p.iJ.sanitizeHtml(e,{allowImages:!0});try{t.querySelectorAll("img").forEach(((e,o)=>{const[r="",i=""]=(e.src||"").split(","),s=r.match(/:(.*?);/);if(s&&i){const r=String(s[1]).toLowerCase(),[,a]=r.split("/");if(f.indexOf(a)>-1){const s=atob(i),l=s.length,c=new Uint8Array(l);for(let e=0;en.e(935).then(n.bind(n,2935)))),VoiceRecorder:(0,o.$V)((()=>n.e(656).then(n.bind(n,9656)))),FileUploader:(0,o.$V)((()=>n.e(159).then(n.bind(n,5159))))},props:{config:Object,model:{type:String,required:!0},placeholder:String,prefixIcon:String},emits:{modelChanged:e=>!0,enterDown:e=>!0,voiceRecordFileChanged:e=>!0,voiceRecordingInProgress:e=>!0,pendingFilesChanged:e=>!0,isOpenEmoji:e=>e},setup:()=>({widgetProjectSettingsState:(0,o.WQ)(d.jm)}),data:()=>({defaultConfig:{disabled:!1,fileUploader:!1,voiceRecorder:!1,emojis:!1},voiceRecordingInProgress:!1,voiceRecordFile:null,uploaderQueueQuantity:0,showEmojiBlock:!1,tempDiv:document.createElement("div"),scrollUpdateTrigger:new g.B,formFilesUploading:!1}),computed:{mergedConfig(){return Object.assign(Object.assign({},this.defaultConfig),this.config||{})},uploaderIsBusy(){return this.uploaderQueueQuantity>0}},watch:{voiceRecordFile(e){this.$emit("voiceRecordFileChanged",e)},voiceRecordingInProgress(e){this.$emit("voiceRecordingInProgress",e)},showEmojiBlock(e){this.$emit("isOpenEmoji",e)}},mounted(){this.$watch((()=>this.model),(e=>{"\n"===e&&(e="",this.$nextTick((()=>{this.changeModelEmit()}))),this.applyTextInput(e)}),{immediate:!0}),this.$subscriptions.add(this.$chatService.$uploader.pipe((0,c.n)((e=>e.$uploadFilesInQueue))).subscribe((e=>{this.uploaderQueueQuantity=null!=e?e:0}))),this.$subscriptions.add(this.scrollUpdateTrigger.pipe((0,b.F)(),(0,u.B)(200)).subscribe((()=>{var e;const t=this.getTextInputScroll();null===(e=null==t?void 0:t.ps)||void 0===e||e.update()}))),this.$subscriptions.add(this.$chatService.$formFilesSendingProgress.subscribe((e=>{this.formFilesUploading=!!e})))},methods:{getPreparedText(e){const t=p.iJ.sanitizeHtml(e),n=(0,v.j1)(t);return h.A.encode(n)},getTextInput(){return this.$refs.textInput},getTextInputScroll(){return this.$refs.textInputScroll},handleOnInput(){this.changeModelEmit()},handleOnPaste(e){const t=e=>{const t=e.getData("Text");if(t){const{sanitizedHTML:e,files:n}=m.separateBase64Files(t);this.pasteText(e),n.length&&this.addPendingFiles(n)}};if(e.stopPropagation(),e.preventDefault(),this.mergedConfig.disabled)return;const n=e.clipboardData||window.clipboardData,o=[/^image/i,/^application\/(pdf)$/i];if(n){const e=n.items;if(this.mergedConfig.fileUploader&&(null==e?void 0:e.length)){const r=[];for(let t=0;te.test(n.type)))){const e=n.getAsFile();e&&r.push(e)}}r.length?this.addPendingFiles(r):t(n)}else t(n)}},handleEnterKey(e){null==e||e.preventDefault(),this.$emit("enterDown",e)},changeModelEmit(){var e;const t=this.getTextInput(),n=this.getPreparedText(null!==(e=null==t?void 0:t.innerHTML)&&void 0!==e?e:"");this.$emit("modelChanged",n)},pasteText(e){const t=this.getTextInput();t&&(t.focus(),(0,v.v7)(e,".input"),this.changeModelEmit())},pasteEmoji(e){const[t]=e.unicodes;t&&this.pasteText(t)},applyTextInput(e){var t;const n=this.getTextInput();if(n){const o=(0,v.j1)(null!==(t=n.innerHTML)&&void 0!==t?t:""),r=this.getPreparedText(e);h.A.decode(r,(e=>{this.tempDiv.innerHTML=e,o!==this.tempDiv.innerHTML&&(n.innerHTML=this.tempDiv.innerHTML,(0,v.hD)(n)),this.scrollUpdateTrigger.next(e)}))}},addPendingFiles(e){Array.isArray(e)&&this.$emit("pendingFilesChanged",[...e])}}});var y=n(5292),w=n.n(y),x=n(9893),E=n.n(x),k=n(9383),S=n.n(k),T=n(6884),C=n.n(T),A=n(9088),O=n.n(A),L=n(7997),I=n.n(L),R=n(1497),N={};N.styleTagTransform=I(),N.setAttributes=C(),N.insert=S().bind(null,"head"),N.domAPI=E(),N.insertStyleElement=O(),w()(R.A,N),R.A&&R.A.locals&&R.A.locals;const M=(0,n(9890).A)(_,[["render",function(e,t,n,c,u,d){const p=(0,o.g2)("emoji-list"),h=(0,o.g2)("voice-recorder"),f=(0,o.g2)("app-icon"),m=(0,o.g2)("perfect-scrollbar"),g=(0,o.g2)("file-uploader"),b=(0,o.g2)("app-action-button");return(0,o.uX)(),(0,o.CE)("div",s,[e.mergedConfig.emojis&&e.showEmojiBlock?((0,o.uX)(),(0,o.CE)("div",{key:0,class:"popup d-flex direction-column align-center justify-f-start",onClick:t[1]||(t[1]=e=>{e.preventDefault(),e.stopPropagation()}),onMousedown:t[2]||(t[2]=e=>{e.preventDefault(),e.stopPropagation()})},[(0,o.Q3)("Suspense use for async load component"),((0,o.uX)(),(0,o.Wv)(o.tY,null,{default:(0,o.k6)((()=>[(0,o.bF)(p,{onSelected:t[0]||(t[0]=t=>{e.pasteEmoji(t)})})])),_:1}))],32)):(0,o.Q3)("v-if",!0),e.mergedConfig.voiceRecorder?((0,o.uX)(),(0,o.CE)(o.FK,{key:1},[(0,o.Q3)("Suspense use for async load component"),((0,o.uX)(),(0,o.Wv)(o.tY,null,{default:(0,o.k6)((()=>{var n;return[(0,o.bF)(h,{disabled:e.mergedConfig.disabled,class:"size-22","time-limit":(null===(n=e.mergedConfig.voiceRecorder)||void 0===n?void 0:n.timeLimit)||0,onRecordingStatusChange:t[3]||(t[3]=t=>e.voiceRecordingInProgress=t),onFile:t[4]||(t[4]=t=>e.voiceRecordFile=t)},null,8,["disabled","time-limit"])]})),_:1}))],64)):(0,o.Q3)("v-if",!0),(0,o.Q3)("INPUT"),(0,o.bF)(m,{ref:"textInputScroll",class:(0,r.C4)(["input pos-relative d-flex grow-1 pr-8 align-center l-height-20 overflow-auto",{"d-none":e.voiceRecordingInProgress||e.voiceRecordFile}])},{default:(0,o.k6)((()=>{var n,s;return[e.prefixIcon?((0,o.uX)(),(0,o.Wv)(f,{key:0,class:"d-flex align-center text-belice search-icon",icon:e.prefixIcon,config:e.config,onClick:t[5]||(t[5]=t=>e.getTextInput().focus())},null,8,["icon","config"])):(0,o.Q3)("v-if",!0),(0,o.Lk)("div",{ref:"textInput",class:(0,r.C4)(["input-innter w-100-p d-block",{"ml-8":e.prefixIcon,"w-100-p":!(null===(n=e.model)||void 0===n?void 0:n.length)}]),"disable-resize-check":"true",contenteditable:!e.mergedConfig.disabled,onInput:t[6]||(t[6]=function(){return e.handleOnInput&&e.handleOnInput(...arguments)}),onPaste:t[7]||(t[7]=function(){return e.handleOnPaste&&e.handleOnPaste(...arguments)}),onKeydown:t[8]||(t[8]=(0,i.jR)((function(){return e.handleEnterKey&&e.handleEnterKey(...arguments)}),["enter"])),onKeyup:t[9]||(t[9]=(0,i.jR)((0,i.D$)((function(){return e.handleEnterKey&&e.handleEnterKey(...arguments)}),["ctrl"]),["enter"]))},null,42,a),e.placeholder&&!(null===(s=e.model)||void 0===s?void 0:s.length)?((0,o.uX)(),(0,o.CE)("div",{key:1,class:(0,r.C4)(["placeholder",{indent:e.prefixIcon}])},(0,r.v_)(e.placeholder),3)):(0,o.Q3)("v-if",!0)]})),_:1},8,["class"]),(0,o.Q3)("INPUT END"),(0,o.Lk)("div",l,[e.mergedConfig.fileUploader?((0,o.uX)(),(0,o.CE)(o.FK,{key:0},[(0,o.Q3)("Suspense use for async load component"),((0,o.uX)(),(0,o.Wv)(o.tY,null,{default:(0,o.k6)((()=>[(0,o.bF)(g,{class:"p-2 size-22","is-loading":e.uploaderIsBusy&&!e.formFilesUploading,disabled:e.mergedConfig.disabled||e.formFilesUploading,onFilesChanged:e.addPendingFiles},null,8,["is-loading","disabled","onFilesChanged"])])),_:1}))],64)):(0,o.Q3)("v-if",!0),e.mergedConfig.emojis?((0,o.uX)(),(0,o.Wv)(b,{key:1,class:"p-2 text-esmeralda size-22",disabled:e.mergedConfig.disabled||e.voiceRecordingInProgress,type:"icon",icon:"smile",onClick:t[10]||(t[10]=t=>e.showEmojiBlock=!e.showEmojiBlock)},null,8,["disabled"])):(0,o.Q3)("v-if",!0),(0,o.RG)(e.$slots,"actions",{},void 0,!0)])])}],["__scopeId","data-v-484b3817"]])},7199:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var o=n(5149);const r={class:"pl-14 size-14 t-align-left"},i=(0,o.pM)({name:"FaqQuestionItem",props:{customIcon:String,customClass:{type:String,default:"",required:!1}},computed:{icon(){return this.customIcon||"article"}}});var s=n(5292),a=n.n(s),l=n(9893),c=n.n(l),u=n(9383),d=n.n(u),p=n(6884),h=n.n(p),f=n(9088),m=n.n(f),g=n(7997),b=n.n(g),v=n(163),_={};_.styleTagTransform=b(),_.setAttributes=h(),_.insert=d().bind(null,"head"),_.domAPI=c(),_.insertStyleElement=m(),a()(v.A,_),v.A&&v.A.locals&&v.A.locals;const y=(0,n(9890).A)(i,[["render",function(e,t,n,i,s,a){const l=(0,o.g2)("app-action-button");return(0,o.uX)(),(0,o.Wv)(l,{class:"d-flex align-flex-start py-6 text-esmeralda l-height-16",type:"icon",icon:e.icon},{default:(0,o.k6)((()=>[(0,o.Lk)("span",r,[(0,o.RG)(e.$slots,"default",{},void 0,!0)])])),_:3},8,["icon"])}],["__scopeId","data-v-62e2a46d"]])},1278:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(5149),r=n(9949),i=n(1898),s=n(7311),a=n(7199);const l=(0,o.pM)({name:"FaqQuestionsList",components:{FaqQuestionItem:a.A},props:{questions:{type:Array,required:!0},customClass:String},methods:{goToFaqAnswer(e){const{id:t}=e;this.$chatService.sendLog(s.Mj.FAQ_VIEW,{faqId:t}),this.$router.push({name:i.bw.FAQ_ANSWER.name,params:{faqId:t}})}}}),c=(0,n(9890).A)(l,[["render",function(e,t,n,i,s,a){var l;const c=(0,o.g2)("faq-question-item");return(0,o.uX)(),(0,o.CE)("div",{class:(0,r.C4)(["w-100-p",`${(null===(l=e.customClass)||void 0===l?void 0:l.length)?"scrollbarHide":e.customClass}`])},[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.questions,((t,n)=>((0,o.uX)(),(0,o.Wv)(c,{key:n,class:(0,r.C4)({"mb-0":n===e.questions.length-1,"pt-0":0===n}),onClick:n=>e.goToFaqAnswer(t)},{default:(0,o.k6)((()=>[(0,o.eW)((0,r.v_)(t.question),1)])),_:2},1032,["class","onClick"])))),128)),(0,o.RG)(e.$slots,"custom-items")],2)}]])},4927:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(5149),r=n(175),i=n(6814),s=n(4313),a=n(1278),l=n(7311),c=n(1704);const u=(0,o.pM)({name:"FaqSuggestion",components:{FaqQuestionsList:a.A},props:{model:{type:String,required:!0},emptyByDefault:Boolean,customClass:String,additionalQuestionsLimit:Number},emits:{totalQuestions:e=>!0},setup:()=>({faqList:s.A.faqList}),data:()=>({modelChange:new r.B}),computed:{limitedFaqQuestions(){var e;const t=l.GF+(null!==(e=this.additionalQuestionsLimit)&&void 0!==e?e:0);return this.faqList.slice(0,t)}},watch:{model(e){this.modelChange.next(e)},faqList(){this.$emit("totalQuestions",this.faqList.length)}},mounted(){this.searchFaq(),this.$subscriptions.add(this.modelChange.pipe((0,i.B)(500)).subscribe(this.searchFaq))},methods:{searchFaq(){const e=this.model&&(0,c.j1)(this.model).trim();(null==e?void 0:e.length)>3?this.$chatService.faqSearch(e):this.emptyByDefault?s.A.applyEmptyFaqList():s.A.applyFaqDefaultList(),this.$emit("totalQuestions",this.faqList.length)}}}),d=(0,n(9890).A)(u,[["render",function(e,t,n,r,i,s){const a=(0,o.g2)("faq-questions-list");return(0,o.uX)(),(0,o.Wv)(a,{questions:e.limitedFaqQuestions,"custom-class":e.customClass},{"custom-items":(0,o.k6)((()=>[(0,o.RG)(e.$slots,"custom-items")])),_:3},8,["questions","custom-class"])}]])},7813:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var o=n(5149),r=n(9949);const i=(0,o.pM)({name:"AppIcon",components:{EmojiIcon:(0,o.$V)((()=>n.e(46).then(n.bind(n,1046)))),FlagsIcon:(0,o.$V)((()=>n.e(781).then(n.bind(n,8781))))},props:{icon:String,config:{type:Object}},computed:{computedClass(){var e;return"remote"===(null===(e=this.config)||void 0===e?void 0:e.type)?["w-100-p","h-100-p"]:null},extension(){var e;return"single"===(null===(e=this.config)||void 0===e?void 0:e.type)?this.config.extension||"svg":null}}});var s=n(5292),a=n.n(s),l=n(9893),c=n.n(l),u=n(9383),d=n.n(u),p=n(6884),h=n.n(p),f=n(9088),m=n.n(f),g=n(7997),b=n.n(g),v=n(7335),_={};_.styleTagTransform=b(),_.setAttributes=h(),_.insert=d().bind(null,"head"),_.domAPI=c(),_.insertStyleElement=m(),a()(v.A,_),v.A&&v.A.locals&&v.A.locals;const y=(0,n(9890).A)(i,[["render",function(e,t,n,i,s,a){var l,c,u,d;const p=(0,o.g2)("emoji-icon"),h=(0,o.g2)("flags-icon");return(0,o.uX)(),(0,o.CE)("div",{class:(0,r.C4)(["wrap-icon d-flex align-center",e.computedClass])},["emoji"===(null===(l=e.config)||void 0===l?void 0:l.type)?((0,o.uX)(),(0,o.CE)(o.FK,{key:0},[(0,o.Q3)("Suspense use for async load component"),((0,o.uX)(),(0,o.Wv)(o.tY,null,{default:(0,o.k6)((()=>[(0,o.bF)(p,{class:"icon w-24 h-24",emoji:e.icon,namespace:e.config.namespace},null,8,["emoji","namespace"])])),_:1}))],64)):"flag"===(null===(c=e.config)||void 0===c?void 0:c.type)?((0,o.uX)(),(0,o.CE)(o.FK,{key:1},[(0,o.Q3)("Suspense use for async load component"),((0,o.uX)(),(0,o.Wv)(o.tY,null,{default:(0,o.k6)((()=>[(0,o.bF)(h,{class:"icon",flag:e.icon},null,8,["flag"])])),_:1}))],64)):"remote"===(null===(u=e.config)||void 0===u?void 0:u.type)?((0,o.uX)(),(0,o.CE)("div",{key:2,class:"icon",style:(0,r.Tr)({backgroundImage:`url(${e.config.url})`})},null,4)):"single"===(null===(d=e.config)||void 0===d?void 0:d.type)?((0,o.uX)(),(0,o.CE)("div",{key:3,class:"icon",style:(0,r.Tr)({backgroundImage:`url(./assets/${e.icon}.${e.extension})`})},null,4)):((0,o.uX)(),(0,o.CE)("i",{key:4,class:(0,r.C4)(["icon",`icon-${e.icon}`])},null,2)),(0,o.RG)(e.$slots,"default",{},void 0,!0)],2)}],["__scopeId","data-v-0ba43875"]])},8844:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAABYlAAAWJQFJUiTwAAAFGmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0MzUyLCAyMDIwLzAxLzMwLTE1OjUwOjM4ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDUtMTJUMTM6MDI6MTQrMDM6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA1LTEyVDEzOjAzOjE4KzAzOjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA1LTEyVDEzOjAzOjE4KzAzOjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjRkYzM5YTExLTMyYzYtNGIzYS1hNDE0LWIxNjZhMDA2YTU5MSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0ZGMzOWExMS0zMmM2LTRiM2EtYTQxNC1iMTY2YTAwNmE1OTEiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0ZGMzOWExMS0zMmM2LTRiM2EtYTQxNC1iMTY2YTAwNmE1OTEiPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjRkYzM5YTExLTMyYzYtNGIzYS1hNDE0LWIxNjZhMDA2YTU5MSIgc3RFdnQ6d2hlbj0iMjAyMS0wNS0xMlQxMzowMjoxNCswMzowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIxLjEgKE1hY2ludG9zaCkiLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+5cmlDQAAAb5JREFUKJFNkLsK6kAYhGezm5hgdpN4FytB7LTW0kKx8Ql8Hp9ErSwsVQTxBSwECyHeG7Wx0UIl8T/NyeEUA8N8DAzDer1eWkoJAPh+v/T5fNh8PucA0Gw2w4gBwPP5hCgWi/R8PhGB8XjMd7sdB4B8Pk+dTieMCqlUCrzb7VrpdJqklJhMJny/33PXdWEYBh6PB+Ocs1Kp9FNKkZQSIpfLkVIKw+FQOx6PPJvNEgC8328yTZP5vs8ymYzWaDRCpRSx8/nsjUYjvt1ueRAETAhB0YQgCFjk6/V60Gq1ArFarbTb7aa5rksAyDAM9v1+ybZtvF4vAgDDMJjv+5ppmpzf73enVqv9HMeB4zggIrIsC67r4v8sk8lgMBjoPAgCR9M0KpVKP8/zECkMQ1iWxZRS5HkeZrOZ2Gw2Gq9UKvJ+vzPLsli1Wg2llIjH41BKEecciUQCi8VCrNdrLZlMMl6pVOK2bePxeDAhBMrl8k/XdcRiMdi2jel0yg+HAzdNk1zXhXAch2KxGAMA3/d5KpWidrsdKqWo3+/rp9NJSyQSv79nkSgUCgQgegXX61VbLpek6zq7XC6sUCj8YwDwB554tNWabk+VAAAAAElFTkSuQmCC"},8751:(e,t,n)=>{"use strict";e.exports=n.p+"cbb8101fd3630ad0aeaa.woff"},5011:(e,t,n)=>{"use strict";e.exports=n.p+"8be0fd475a845f7d8b76.woff"},2544:(e,t,n)=>{"use strict";e.exports=n.p+"34df19720c8738c8a4d1.woff"},8253:(e,t,n)=>{"use strict";e.exports=n.p+"35fda75fef78a9d6a876.eot?hvtj7q"},7191:(e,t,n)=>{"use strict";e.exports=n.p+"f10c7498970ee868884c.svg?hvtj7q"},4683:(e,t,n)=>{"use strict";e.exports=n.p+"794900533997bc4beaa4.ttf?hvtj7q"},3275:(e,t,n)=>{"use strict";e.exports=n.p+"beb9fe492eacab52b554.woff?hvtj7q"},4629:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>d,C6:()=>r,Ju:()=>a,N3:()=>u,YH:()=>s,fX:()=>c,sH:()=>i,xN:()=>p,zs:()=>l});var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function i(e,t,n,o){return new(n||(n=Promise))((function(r,i){function s(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((o=o.apply(e,t||[])).next())}))}function s(e,t){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function c(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r1||a(e,t)}))},t&&(o[e]=t(o[e])))}function a(e,t){try{(n=r[e](t)).value instanceof u?Promise.resolve(n.value.v).then(l,c):d(i[0][2],n)}catch(e){d(i[0][3],e)}var n}function l(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function p(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=a(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,r){!function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}(o,r,(t=e[n](t)).done,t.value)}))}}}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},654:(e,t,n)=>{"use strict";n.d(t,{Bt:()=>G,aE:()=>Me,lq:()=>Pe});var o=n(5149),r=n(3925);const i="undefined"!=typeof document;function s(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const a=Object.assign;function l(e,t){const n={};for(const o in t){const r=t[o];n[o]=u(r)?r.map(e):e(r)}return n}const c=()=>{},u=Array.isArray,d=/#/g,p=/&/g,h=/\//g,f=/=/g,m=/\?/g,g=/\+/g,b=/%5B/g,v=/%5D/g,_=/%5E/g,y=/%60/g,w=/%7B/g,x=/%7C/g,E=/%7D/g,k=/%20/g;function S(e){return encodeURI(""+e).replace(x,"|").replace(b,"[").replace(v,"]")}function T(e){return S(e).replace(g,"%2B").replace(k,"+").replace(d,"%23").replace(p,"%26").replace(y,"`").replace(w,"{").replace(E,"}").replace(_,"^")}function C(e){return null==e?"":function(e){return S(e).replace(d,"%23").replace(m,"%3F")}(e).replace(h,"%2F")}function A(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const O=/\/$/,L=e=>e.replace(O,"");function I(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,a=n.length-1;for(i=0;i1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:A(s)}}function R(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function N(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function M(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!P(e[n],t[n]))return!1;return!0}function P(e,t){return u(e)?F(e,t):u(t)?F(t,e):e===t}function F(e,t){return u(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const D={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var U,j;!function(e){e.pop="pop",e.push="push"}(U||(U={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(j||(j={}));const $=/^[^#]+#/;function W(e,t){return e.replace($,"#")+t}const B=()=>({left:window.scrollX,top:window.scrollY});function q(e,t){return(history.state?history.state.position-t:-1)+e}const z=new Map;let H=()=>location.protocol+"//"+location.host;function Y(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),R(n,"")}return R(n,e)+o+r}function V(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?B():null}}function X(e){const t=function(e){const{history:t,location:n}=window,o={value:Y(e,n)},r={value:t.state};function i(o,i,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:H()+e+o;try{t[s?"replaceState":"pushState"](i,"",l),r.value=i}catch(e){console.error(e),n[s?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=a({},r.value,t.state,{forward:e,scroll:B()});i(s.current,s,!0),i(e,a({},V(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,a({},t.state,V(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(i){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),L(e)}(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const l=({state:i})=>{const a=Y(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);u=c?i.position-c.position:0}else o(a);r.forEach((e=>{e(n.value,l,{delta:u,type:U.pop,direction:u?u>0?j.forward:j.back:j.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(a({},e.state,{scroll:B()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=a({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:W.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function G(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),X(e)}function Q(e){return"string"==typeof e||"symbol"==typeof e}const K=Symbol("");var Z;function J(e,t){return a(new Error,{type:e,[K]:!0},t)}function ee(e,t){return e instanceof Error&&K in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(Z||(Z={}));const te="[^/]+?",ne={sensitive:!1,strict:!1,start:!0,end:!0},oe=/[.+*?^${}()[\]/\\]/g;function re(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function ie(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ae={type:0,value:""},le=/[a-zA-Z0-9_]/;function ce(e,t,n){const o=function(e,t){const n=a({},ne,t),o=[];let r=n.start?"^":"";const i=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function p(){c+=a}for(;la(e,t.meta)),{})}function me(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function ge({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function be(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&T(e))):[o&&T(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function _e(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=u(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const ye=Symbol(""),we=Symbol(""),xe=Symbol(""),Ee=Symbol(""),ke=Symbol("");function Se(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Te(e,t,n,o,r,i=e=>e()){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((a,l)=>{const c=e=>{var i;!1===e?l(J(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(i=e)||i&&"object"==typeof i?l(J(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),a())},u=i((()=>e.call(o&&o.instances[r],t,n,c)));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function Ce(e,t,n,o,r=e=>e()){const i=[];for(const a of e)for(const e in a.components){let l=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if(s(l)){const s=(l.__vccOpts||l)[t];s&&i.push(Te(s,n,o,a,e,r))}else{let c=l();i.push((()=>c.then((i=>{if(!i)throw new Error(`Couldn't resolve component "${e}" at "${a.path}"`);const l=(c=i).__esModule||"Module"===c[Symbol.toStringTag]||c.default&&s(c.default)?i.default:i;var c;a.mods[e]=i,a.components[e]=l;const u=(l.__vccOpts||l)[t];return u&&Te(u,n,o,a,e,r)()}))))}}return i}function Ae(e){const t=(0,o.WQ)(xe),n=(0,o.WQ)(Ee),i=(0,o.EW)((()=>{const n=(0,r.R1)(e.to);return t.resolve(n)})),s=(0,o.EW)((()=>{const{matched:e}=i.value,{length:t}=e,o=e[t-1],r=n.matched;if(!o||!r.length)return-1;const s=r.findIndex(N.bind(null,o));if(s>-1)return s;const a=Le(e[t-2]);return t>1&&Le(o)===a&&r[r.length-1].path!==a?r.findIndex(N.bind(null,e[t-2])):s})),a=(0,o.EW)((()=>s.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!u(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,i.value.params))),l=(0,o.EW)((()=>s.value>-1&&s.value===n.matched.length-1&&M(n.params,i.value.params)));return{route:i,href:(0,o.EW)((()=>i.value.href)),isActive:a,isExactActive:l,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[(0,r.R1)(e.replace)?"replace":"push"]((0,r.R1)(e.to)).catch(c):Promise.resolve()}}}const Oe=(0,o.pM)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ae,setup(e,{slots:t}){const n=(0,r.Kh)(Ae(e)),{options:i}=(0,o.WQ)(xe),s=(0,o.EW)((()=>({[Ie(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Ie(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:(0,o.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},r)}}});function Le(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ie=(e,t,n)=>null!=e?e:null!=t?t:n;function Re(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Ne=(0,o.pM)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=(0,o.WQ)(ke),s=(0,o.EW)((()=>e.route||i.value)),l=(0,o.WQ)(we,0),c=(0,o.EW)((()=>{let e=(0,r.R1)(l);const{matched:t}=s.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),u=(0,o.EW)((()=>s.value.matched[c.value]));(0,o.Gt)(we,(0,o.EW)((()=>c.value+1))),(0,o.Gt)(ye,u),(0,o.Gt)(ke,s);const d=(0,r.KR)();return(0,o.wB)((()=>[d.value,u.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&N(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=s.value,i=e.name,l=u.value,c=l&&l.components[i];if(!c)return Re(n.default,{Component:c,route:r});const p=l.props[i],h=p?!0===p?r.params:"function"==typeof p?p(r):p:null,f=(0,o.h)(c,a({},h,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(l.instances[i]=null)},ref:d}));return Re(n.default,{Component:f,route:r})||f}}});function Me(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,u=de(e);u.aliasOf=o&&o.record;const d=me(t,e),p=[u];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)p.push(de(a({},u,{components:o?o.record.components:u.components,path:e,aliasOf:o?o.record:u})))}let h,f;for(const t of p){const{path:a}=t;if(n&&"/"!==a[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(a&&o+a)}if(h=ce(t,n,d),o?o.alias.push(h):(f=f||h,f!==h&&f.alias.push(h),l&&e.name&&!he(h)&&i(e.name)),ge(h)&&s(h),u.children){const e=u.children;for(let t=0;t{i(f)}:c}function i(e){if(Q(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;ie(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(ge(t)&&0===ie(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!he(e)&&o.set(e.record.name,e)}return t=me({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw J(1,{location:e});s=r.record.name,l=a(ue(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&ue(e.params,r.keys.map((e=>e.name)))),i=r.stringify(l)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(l=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw J(1,{location:e,currentLocation:t});s=r.record.name,l=a({},t.params,e.params),i=r.stringify(l)}const c=[];let u=r;for(;u;)c.unshift(u.record),u=u.parent;return{name:s,path:i,params:l,matched:c,meta:fe(c)}},removeRoute:i,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||be,s=e.stringifyQuery||ve,d=e.history,p=Se(),h=Se(),f=Se(),m=(0,r.IJ)(D);let g=D;i&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const b=l.bind(null,(e=>""+e)),v=l.bind(null,C),y=l.bind(null,A);function x(e,o){if(o=a({},o||m.value),"string"==typeof e){const r=I(n,e,o.path),i=t.resolve({path:r.path},o),s=d.createHref(r.fullPath);return a(r,i,{params:y(i.params),hash:A(r.hash),redirectedFrom:void 0,href:s})}let r;if(null!=e.path)r=a({},e,{path:I(n,e.path,o.path).path});else{const t=a({},e.params);for(const e in t)null==t[e]&&delete t[e];r=a({},e,{params:v(t)}),o.params=v(o.params)}const i=t.resolve(r,o),l=e.hash||"";i.params=b(y(i.params));const c=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(s,a({},e,{hash:(u=l,S(u).replace(w,"{").replace(E,"}").replace(_,"^")),path:i.path}));var u;const p=d.createHref(c);return a({fullPath:c,hash:l,query:s===ve?_e(e.query):e.query||{}},i,{redirectedFrom:void 0,href:p})}function k(e){return"string"==typeof e?I(n,e,m.value.path):a({},e)}function T(e,t){if(g!==e)return J(8,{from:t,to:e})}function O(e){return R(e)}function L(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=k(o):{path:o},o.params={}),a({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function R(e,t){const n=g=x(e),o=m.value,r=e.state,i=e.force,l=!0===e.replace,c=L(n);if(c)return R(a(k(c),{state:"object"==typeof c?a({},r,c.state):r,force:i,replace:l}),t||n);const u=n;let d;return u.redirectedFrom=t,!i&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&N(t.matched[o],n.matched[r])&&M(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(s,o,n)&&(d=J(16,{to:u,from:o}),Z(o,o,!0,!1)),(d?Promise.resolve(d):j(u,o)).catch((e=>ee(e)?ee(e,2)?e:K(e):G(e,u,o))).then((e=>{if(e){if(ee(e,2))return R(a({replace:l},k(e.to),{state:"object"==typeof e.to?a({},r,e.to.state):r,force:i}),t||u)}else e=W(u,o,!0,l,r);return $(u,o,e),e}))}function P(e,t){const n=T(e,t);return n?Promise.reject(n):Promise.resolve()}function F(e){const t=oe.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function j(e,t){let n;const[o,r,i]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sN(e,i)))?o.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find((e=>N(e,a)))||r.push(a))}return[n,o,r]}(e,t);n=Ce(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(Te(o,e,t))}));const s=P.bind(null,e,t);return n.push(s),se(n).then((()=>{n=[];for(const o of p.list())n.push(Te(o,e,t));return n.push(s),se(n)})).then((()=>{n=Ce(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(Te(o,e,t))}));return n.push(s),se(n)})).then((()=>{n=[];for(const o of i)if(o.beforeEnter)if(u(o.beforeEnter))for(const r of o.beforeEnter)n.push(Te(r,e,t));else n.push(Te(o.beforeEnter,e,t));return n.push(s),se(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Ce(i,"beforeRouteEnter",e,t,F),n.push(s),se(n)))).then((()=>{n=[];for(const o of h.list())n.push(Te(o,e,t));return n.push(s),se(n)})).catch((e=>ee(e,8)?e:Promise.reject(e)))}function $(e,t,n){f.list().forEach((o=>F((()=>o(e,t,n)))))}function W(e,t,n,o,r){const s=T(e,t);if(s)return s;const l=t===D,c=i?history.state:{};n&&(o||l?d.replace(e.fullPath,a({scroll:l&&c&&c.scroll},r)):d.push(e.fullPath,r)),m.value=e,Z(e,t,n,l),K()}let H;let Y,V=Se(),X=Se();function G(e,t,n){K(e);const o=X.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function K(e){return Y||(Y=!e,H||(H=d.listen(((e,t,n)=>{if(!re.listening)return;const o=x(e),r=L(o);if(r)return void R(a(r,{replace:!0}),o).catch(c);g=o;const s=m.value;var l,u;i&&(l=q(s.fullPath,n.delta),u=B(),z.set(l,u)),j(o,s).catch((e=>ee(e,12)?e:ee(e,2)?(R(e.to,o).then((e=>{ee(e,20)&&!n.delta&&n.type===U.pop&&d.go(-1,!1)})).catch(c),Promise.reject()):(n.delta&&d.go(-n.delta,!1),G(e,o,s)))).then((e=>{(e=e||W(o,s,!1))&&(n.delta&&!ee(e,8)?d.go(-n.delta,!1):n.type===U.pop&&ee(e,20)&&d.go(-1,!1)),$(o,s,e)})).catch(c)}))),V.list().forEach((([t,n])=>e?n(e):t())),V.reset()),e}function Z(t,n,r,s){const{scrollBehavior:a}=e;if(!i||!a)return Promise.resolve();const l=!r&&function(e){const t=z.get(e);return z.delete(e),t}(q(t.fullPath,0))||(s||!r)&&history.state&&history.state.scroll||null;return(0,o.dY)().then((()=>a(t,n,l))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>G(e,t,n)))}const te=e=>d.go(e);let ne;const oe=new Set,re={currentRoute:m,listening:!0,addRoute:function(e,n){let o,r;return Q(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:x,options:e,push:O,replace:function(e){return O(a(k(e),{replace:!0}))},go:te,back:()=>te(-1),forward:()=>te(1),beforeEach:p.add,beforeResolve:h.add,afterEach:f.add,onError:X.add,isReady:function(){return Y&&m.value!==D?Promise.resolve():new Promise(((e,t)=>{V.add([e,t])}))},install(e){e.component("RouterLink",Oe),e.component("RouterView",Ne),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,r.R1)(m)}),i&&!ne&&m.value===D&&(ne=!0,O(d.location).catch((e=>{})));const t={};for(const e in D)Object.defineProperty(t,e,{get:()=>m.value[e],enumerable:!0});e.provide(xe,this),e.provide(Ee,(0,r.Gc)(t)),e.provide(ke,m);const n=e.unmount;oe.add(e),e.unmount=function(){oe.delete(e),oe.size<1&&(g=D,H&&H(),H=null,m.value=D,ne=!1,Y=!1),n()}}};function se(e){return e.reduce(((e,t)=>e.then((()=>F(t)))),Promise.resolve())}return re}function Pe(e){return(0,o.WQ)(Ee)}}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.exports}r.m=n,r.amdO={},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>e+"."+{46:"36ba7841",58:"69f76647",59:"5dc23d61",117:"db82329f",159:"d4edc57c",172:"2b06cee4",181:"6817c6b1",204:"977c7403",220:"7489170b",241:"df4e6626",275:"e11d5d7e",306:"3fcf3c0c",316:"c0292b77",374:"62872b0d",375:"94e11a10",405:"76be9823",434:"e10f88e1",654:"294709cb",656:"57a4790d",660:"883b636e",734:"f39760d8",781:"a2c9d350",823:"561e5afa",862:"42b6aef2",935:"aa2b9a87",958:"19517187",973:"06de27b7"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="VueWidget:",r.l=(n,o,i,s)=>{if(e[n])e[n].push(o);else{var a,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(h);var r=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(o))),t)return t(o)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="./",(()=>{r.b=document.baseURI||self.location.href;var e={792:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=i);var s=r.p+r.u(t),a=new Error;r.l(s,(n=>{if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,o[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,i,[s,a,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);l&&l(r)}for(t&&t(n);c{"use strict";var e={};r.r(e),r.d(e,{Decoder:()=>Qn,Encoder:()=>Xn,PacketType:()=>Vn,protocol:()=>Yn}),r(4132),r(1200);var t=r(5292),n=r.n(t),o=r(9893),i=r.n(o),s=r(9383),a=r.n(s),l=r(6884),c=r.n(l),u=r(9088),d=r.n(u),p=r(7997),h=r.n(p),f=r(8039),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=a().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=d(),n()(f.A,m),f.A&&f.A.locals&&f.A.locals;var g=r(2547),b=r(3084),v=r(7708),_=r(9283),y=r(1898),w=r(5149);const x=r.p+"4782183dbd19cfb682304cd9f07d5690.wav",E=r.p+"d7bd25237711ef51b072d43a2cac5699.ogg",k=r.p+"9d10acacfadffe6372bac7ba82a1bc98.mp3",S=["data-color-scheme","data-design"],T=["id"];var C=r(7311);const A=(0,w.pM)({setup:()=>({widgetSettingsState:(0,w.WQ)(C.IN)}),computed:{APP_SETTINGS:()=>C.uu},beforeMount(){this.$chatService.initialize()}});var O=r(9895),L={};L.styleTagTransform=h(),L.setAttributes=c(),L.insert=a().bind(null,"head"),L.domAPI=i(),L.insertStyleElement=d(),n()(O.A,L),O.A&&O.A.locals&&O.A.locals;var I=r(2236),R={};R.styleTagTransform=h(),R.setAttributes=c(),R.insert=a().bind(null,"head"),R.domAPI=i(),R.insertStyleElement=d(),n()(I.A,R),I.A&&I.A.locals&&I.A.locals;var N=r(9890);const M=(0,N.A)(A,[["render",function(e,t,n,o,r,i){var s,a,l,c;const u=(0,w.g2)("router-view");return(0,w.uX)(),(0,w.CE)("div",{class:"container d-flex direction-column h-100-p overflow-hidden bg-rio","data-color-scheme":null===(a=null===(s=e.widgetSettingsState)||void 0===s?void 0:s.theme)||void 0===a?void 0:a.color_scheme,"data-design":null===(c=null===(l=e.widgetSettingsState)||void 0===l?void 0:l.theme)||void 0===c?void 0:c.design},[(0,w.bF)(u),(0,w.Lk)("audio",{id:e.APP_SETTINGS.audioContainerId},t[0]||(t[0]=[(0,w.Lk)("source",{src:x,type:"audio/wav"},null,-1),(0,w.Lk)("source",{src:E,type:"audio/ogg"},null,-1),(0,w.Lk)("source",{src:k,type:"audio/mp3"},null,-1)]),8,T)],8,S)}]]);var P=r(654),F=r(9949);const D={class:"faq"},U={class:"d-flex direction-column h-100-p"},j={key:1,class:"title pt-12 pb-24 px-35 size-20 weight-600 text-asfalto"},$={class:"ml-14 size-14"},W={class:"ml-14 size-14"},B={class:"ml-14 size-14"},q={class:"ml-14 size-14"},z={class:"ml-14 size-14"},H={class:"ml-14 size-14"};var Y=r(4313);const V={class:"error d-flex direction-column py-16 px-35 t-align-center size-16"},X=(0,w.pM)({name:"ErrorMessage"});var G=r(2852),Q={};Q.styleTagTransform=h(),Q.setAttributes=c(),Q.insert=a().bind(null,"head"),Q.domAPI=i(),Q.insertStyleElement=d(),n()(G.A,Q),G.A&&G.A.locals&&G.A.locals;const K=(0,N.A)(X,[["render",function(e,t,n,o,r,i){const s=(0,w.g2)("app-icon");return(0,w.uX)(),(0,w.CE)("div",V,[(0,w.bF)(s,{class:"text-medianoche mb-4 size-22",icon:"exclamation-mark-triangle"}),(0,w.RG)(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-63c24910"]]);var Z=r(3580),J=r(4927),ee=r(5096);function te(e){return(0,ee.N)((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))}var ne=r(8529),oe=r(6441);const re=(0,w.pM)({name:"ChatChannels",setup:()=>({widgetBehaviourState:(0,w.WQ)(C.WW)}),data:()=>({channelOpeningProcess:{}}),computed:{channels(){var e;return((null===(e=this.widgetBehaviourState)||void 0===e?void 0:e.chat_additional_channels)||[]).map((e=>{const{channel:t}=e;return Object.assign(Object.assign({},C.kr[t]),{buttonTitle:this.$t(`cmn_btn_open_chat_${t}`),openChat:()=>this.openChatViaChannel(e)})}))}},methods:{openChatViaChannel(e){let{channel:t,links:n}=e;if(!this.channelOpeningProcess[t]){this.channelOpeningProcess[t]=!0;const{appDeepLink:e,webLink:o}=n||{};this.$subscriptions.add(ne.A.deepLinkNavigationTimeout.pipe(te((()=>{this.channelOpeningProcess[t]=!1}))).subscribe((e=>{let{navigated:t}=e;t||oe.o.sendMessage(y.Ag.linkTransfer,{href:o,target:"_blank"})}))),oe.o.sendMessage(y.Ag.linkTransfer,{href:e,target:"_self"})}}}}),ie=(0,N.A)(re,[["render",function(e,t,n,o,r,i){return(0,w.uX)(!0),(0,w.CE)(w.FK,null,(0,w.pI)(e.channels,(t=>(0,w.RG)(e.$slots,"channel",{channel:t}))),256)}]]),se=(0,w.pM)({name:"Faq",components:{ChatChannels:ie,ErrorMessage:K,CustomInput:Z.A,FaqSuggestion:J.A},setup:()=>({searchText:Y.A.getSearchTextModel(y.bw.FAQ.name),widgetBehaviourState:(0,w.WQ)(C.WW),widgetProjectSettingsState:(0,w.WQ)(C.jm),widgetSettingsState:(0,w.WQ)(C.IN)}),data:()=>({headerConfig:{languageSelector:!0},faqListEmpty:!0}),computed:{ROUTES:()=>y.bw,segmentFlow(){var e;return null===(e=this.widgetBehaviourState)||void 0===e?void 0:e.segment_flow.rules},aiAssistButtonVisible(){var e;return null===(e=this.segmentFlow)||void 0===e?void 0:e.aiAssistEnabled},openChatButtonVisible(){var e,t;return!(null===(e=this.widgetBehaviourState)||void 0===e?void 0:e.hide_start_chat_button)&&!this.sendReportButtonVisible&&(null===(t=this.segmentFlow)||void 0===t?void 0:t.allowOpenChatFromFaqList)&&!this.aiAssistButtonVisible},sendReportButtonVisible(){var e,t,n;return((null===(e=this.widgetBehaviourState)||void 0===e?void 0:e.mass_troubles_mode)||!(null===(t=this.widgetBehaviourState)||void 0===t?void 0:t.operators_online))&&!(null===(n=this.segmentFlow)||void 0===n?void 0:n.hideFeedbackOnFAQ)},documentCheckingButtonVisible(){var e;return null===(e=this.widgetBehaviourState)||void 0===e?void 0:e.enable_document_checking},chatsHistoryButtonVisible(){var e,t;return!(null===(e=this.widgetProjectSettingsState)||void 0===e?void 0:e.hide_chat_history)&&(null===(t=this.segmentFlow)||void 0===t?void 0:t.allowDialogHistory)}},methods:{goToChat(){this.$chatService.sendLog(C.Mj.OPEN_CHAT_FROM_GENERAL),this.$subscriptions.add(this.$chatService.getRouteForStartChat().subscribe((e=>{this.$router.push(e)})))},goToAIChat(){this.$chatService.sendLog(C.Mj.OPEN_ASSISTANT),this.$subscriptions.add(this.$chatService.getRouteForAiAssist().subscribe((e=>{this.$router.push(e)})))},goToChatsHistory(){this.$chatService.sendLog(C.Mj.OPEN_HISTORY),this.$router.push({name:y.bw.HISTORY.name})}}});var ae=r(4671),le={};le.styleTagTransform=h(),le.setAttributes=c(),le.insert=a().bind(null,"head"),le.domAPI=i(),le.insertStyleElement=d(),n()(ae.A,le),ae.A&&ae.A.locals&&ae.A.locals;const ce=(0,N.A)(se,[["render",function(e,t,n,o,r,i){var s;const a=(0,w.g2)("app-header"),l=(0,w.g2)("error-message"),c=(0,w.g2)("faq-suggestion"),u=(0,w.g2)("perfect-scrollbar"),d=(0,w.g2)("custom-input"),p=(0,w.g2)("app-action-button"),h=(0,w.g2)("chat-channels"),f=(0,w.g2)("app-footer");return(0,w.uX)(),(0,w.CE)(w.FK,null,[(0,w.bF)(a,{config:e.headerConfig},null,8,["config"]),(0,w.Lk)("div",D,[(0,w.Lk)("div",U,[(0,w.Q3)("Error message block"),(null===(s=e.widgetSettingsState)||void 0===s?void 0:s.error_message)?((0,w.uX)(),(0,w.Wv)(l,{key:0},{default:(0,w.k6)((()=>{var t;return[(0,w.eW)((0,F.v_)(null===(t=e.widgetSettingsState)||void 0===t?void 0:t.error_message),1)]})),_:1})):(0,w.Q3)("v-if",!0),(0,w.Q3)("Faq block"),e.faqListEmpty?(0,w.Q3)("v-if",!0):((0,w.uX)(),(0,w.CE)("div",j,(0,F.v_)(e.$t("faq_possible_answer")),1)),(0,w.bF)(u,{class:"list pb-24"},{default:(0,w.k6)((()=>[(0,w.bF)(c,{class:"px-35",model:e.searchText,onTotalQuestions:t[0]||(t[0]=t=>e.faqListEmpty=!t)},null,8,["model"])])),_:1})])]),(0,w.bF)(d,{model:e.searchText,class:"px-40 shrink-0 search",placeholder:e.$t("faq_input_placeholder"),onModelChanged:t[1]||(t[1]=t=>e.searchText=t)},null,8,["model","placeholder"]),(0,w.bF)(f,null,{default:(0,w.k6)((()=>[(0,w.Lk)("div",{class:(0,F.C4)(["px-35 py-14",{"no-faq-title":e.faqListEmpty}])},[(0,w.Q3)("Chat button"),e.openChatButtonVisible?((0,w.uX)(),(0,w.Wv)(p,{key:0,class:"size-14 my-6 w-100-p d-i-flex align-center text-esmeralda",type:"icon",icon:"conversation",onClick:e.goToChat},{default:(0,w.k6)((()=>[(0,w.Lk)("span",$,(0,F.v_)(e.$t("cmn_btn_open_chat")),1)])),_:1},8,["onClick"])):(0,w.Q3)("v-if",!0),(0,w.Q3)("Chat Channels"),e.openChatButtonVisible?((0,w.uX)(),(0,w.Wv)(h,{key:1},{channel:(0,w.k6)((e=>{let{channel:t}=e;return[(0,w.bF)(p,{class:"size-14 my-6 w-100-p d-i-flex align-center text-esmeralda",type:"icon",icon:t.icon,onClick:e=>t.openChat()},{default:(0,w.k6)((()=>[(0,w.Lk)("span",W,(0,F.v_)(t.buttonTitle),1)])),_:2},1032,["icon","onClick"])]})),_:1})):(0,w.Q3)("v-if",!0),(0,w.Q3)("AI assist button"),e.aiAssistButtonVisible?((0,w.uX)(),(0,w.Wv)(p,{key:2,class:"size-14 my-6 w-100-p d-i-flex align-center text-esmeralda",type:"icon",icon:"conversation",onClick:e.goToAIChat},{default:(0,w.k6)((()=>[(0,w.Lk)("span",B,(0,F.v_)(e.$t("cmn_btn_ai_assist")),1)])),_:1},8,["onClick"])):(0,w.Q3)("v-if",!0),(0,w.Q3)("Problem report button"),e.sendReportButtonVisible?((0,w.uX)(),(0,w.Wv)(p,{key:3,class:"size-14 my-6 w-100-p d-i-flex align-center",type:"icon",icon:"conversation",onClick:t[2]||(t[2]=t=>e.$router.push({name:e.ROUTES.FEEDBACK.name}))},{default:(0,w.k6)((()=>[(0,w.Lk)("span",q,(0,F.v_)(e.$t("feb_button")),1)])),_:1})):(0,w.Q3)("v-if",!0),(0,w.Q3)("Document checking button"),e.documentCheckingButtonVisible?((0,w.uX)(),(0,w.Wv)(p,{key:4,class:"size-14 my-6 w-100-p d-i-flex align-center",type:"icon",icon:"document-check",onClick:t[3]||(t[3]=t=>e.$router.push({name:e.ROUTES.DOCUMENT_CHECKING.name}))},{default:(0,w.k6)((()=>[(0,w.Lk)("span",z,(0,F.v_)(e.$t("doc_button")),1)])),_:1})):(0,w.Q3)("v-if",!0),(0,w.Q3)("Chats history button"),e.chatsHistoryButtonVisible?((0,w.uX)(),(0,w.Wv)(p,{key:5,class:"size-14 my-6 w-100-p d-i-flex align-center",type:"icon",icon:"clock",onClick:t[4]||(t[4]=t=>e.goToChatsHistory())},{default:(0,w.k6)((()=>[(0,w.Lk)("span",H,(0,F.v_)(e.$t("cmn_btn_history")),1)])),_:1})):(0,w.Q3)("v-if",!0)],2)])),_:1})],64)}],["__scopeId","data-v-e812b8d8"]]);var ue=r(8298);const de=()=>Promise.all([r.e(823),r.e(958)]).then(r.bind(r,2958)),pe=(0,P.Bt)(),he=(0,P.aE)({history:pe,strict:!0,routes:[Object.assign(Object.assign({},y.bw.FAQ),{component:ce}),Object.assign(Object.assign({},y.bw.HISTORY),{component:()=>r.e(862).then(r.bind(r,4862))}),Object.assign(Object.assign({},y.bw.HISTORY_DETAIL),{component:()=>Promise.all([r.e(660),r.e(275)]).then(r.bind(r,5656))}),Object.assign(Object.assign({},y.bw.FAQ_ANSWER),{component:()=>r.e(405).then(r.bind(r,4405))}),Object.assign(Object.assign({},y.bw.RATING),{component:()=>Promise.all([r.e(823),r.e(660),r.e(204)]).then(r.bind(r,2204))}),Object.assign(Object.assign({},y.bw.OFFLINE_FORM),{component:de}),Object.assign(Object.assign({},y.bw.OFFLINE_FORM_SUCCESS),{component:de}),Object.assign(Object.assign({},y.bw.PROBLEM_FORM),{component:()=>Promise.all([r.e(823),r.e(734)]).then(r.bind(r,1734))}),Object.assign(Object.assign({},y.bw.FEEDBACK),{component:()=>r.e(973).then(r.bind(r,1973))}),Object.assign(Object.assign({},y.bw.CHAT),{component:()=>Promise.all([r.e(660),r.e(241)]).then(r.bind(r,9241)),beforeEnter:(e,t,n)=>{t.name===y.bw.HISTORY.name?n({name:y.bw.FAQ.name}):n()}}),Object.assign(Object.assign({},y.bw.CHAT_FLOW),{component:()=>r.e(58).then(r.bind(r,3058))}),Object.assign(Object.assign({},y.bw.RATING_FORM),{component:()=>Promise.all([r.e(823),r.e(306)]).then(r.bind(r,6306)),beforeEnter:(e,t,n)=>{const{formId:o=""}=null==e?void 0:e.params;o&&!isNaN(+o)&&+o?n():n(new Error("Form id is invalid"))}}),Object.assign(Object.assign({},y.bw.FALLBACK_LOCALES),{component:()=>r.e(117).then(r.bind(r,8117))}),Object.assign(Object.assign({},y.bw.DOCUMENT_CHECKING),{component:()=>r.e(375).then(r.bind(r,9375))})]});ue.gt.initRouter(he),ue.gt.disableHistoryForIframe(pe);const fe=he;var me=r(2206),ge=r(968),be=r(8113);const ve={chatOperatorName(){var e;return(null===(e=be.A.operator_data)||void 0===e?void 0:e.name)||""},chatOperatorPhoto(){var e;return(null===(e=be.A.operator_data)||void 0===e?void 0:e.photo)||""},operatorCharacterName(){var e,t;return ge.A.enabled&&(null===(t=null===(e=ge.A.operator_character)||void 0===e?void 0:e.selected_character)||void 0===t?void 0:t.name)||""},operatorCharacterPhoto(){var e;return ge.A.enabled&&(null===(e=ge.A.operator_character.selected_character)||void 0===e?void 0:e.image)||""},previousChatOperatorName(){var e,t;return(null===(t=null===(e=be.A.previous_chat_state)||void 0===e?void 0:e.operator_data)||void 0===t?void 0:t.name)||""},previousChatOperatorPhoto(){var e,t;return(null===(t=null===(e=be.A.previous_chat_state)||void 0===e?void 0:e.operator_data)||void 0===t?void 0:t.photo)||""}},_e={install:e=>{e.mixin({computed:ve})}};var ye=r(6916);const we={install:e=>{e.mixin({beforeMount(){this.$subscriptions=new ye.yU},unmounted(){this.$subscriptions.unsubscribe()}})}};var xe=r(9016),Ee=r(175);const ke=(()=>{let e;return(0,xe.v)((()=>(e||(e=new Ee.B,document.addEventListener("click",(t=>{e.next(t)}))),e.asObservable())))})(),Se={mounted(e,t){e.$documentClickSubscription=ke.subscribe((n=>{e===n.target||e.contains(n.target)||t.value(n)}))},unmounted(e){var t;null===(t=e.$documentClickSubscription)||void 0===t||t.unsubscribe()}};var Te=r(8863),Ce=r(3978),Ae=r(3925);function Oe(e){return getComputedStyle(e)}function Le(e,t){for(var n in t){var o=t[n];"number"==typeof o&&(o+="px"),e.style[n]=o}return e}function Ie(e){var t=document.createElement("div");return t.className=e,t}var Re="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Ne(e,t){if(!Re)throw new Error("No element matching method supported");return Re.call(e,t)}function Me(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function Pe(e,t){return Array.prototype.filter.call(e.children,(function(e){return Ne(e,t)}))}var Fe={main:"ps",rtl:"ps__rtl",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},De={x:null,y:null};function Ue(e,t){var n=e.element.classList,o=Fe.state.scrolling(t);n.contains(o)?clearTimeout(De[t]):n.add(o)}function je(e,t){De[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(Fe.state.scrolling(t))}),e.settings.scrollingThreshold)}var $e=function(e){this.element=e,this.handlers={}},We={isEmpty:{configurable:!0}};$e.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},$e.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter((function(o){return!(!t||o===t)||(n.element.removeEventListener(e,o,!1),!1)}))},$e.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},We.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every((function(t){return 0===e.handlers[t].length}))},Object.defineProperties($e.prototype,We);var Be=function(){this.eventElements=[]};function qe(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function ze(e,t,n,o,r){var i;if(void 0===o&&(o=!0),void 0===r&&(r=!1),"top"===t)i=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");i=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,o,r){var i=n[0],s=n[1],a=n[2],l=n[3],c=n[4],u=n[5];void 0===o&&(o=!0),void 0===r&&(r=!1);var d=e.element;e.reach[l]=null,d[a]<1&&(e.reach[l]="start"),d[a]>e[i]-e[s]-1&&(e.reach[l]="end"),t&&(d.dispatchEvent(qe("ps-scroll-"+l)),t<0?d.dispatchEvent(qe("ps-scroll-"+c)):t>0&&d.dispatchEvent(qe("ps-scroll-"+u)),o&&function(e,t){Ue(e,t),je(e,t)}(e,l)),e.reach[l]&&(t||r)&&d.dispatchEvent(qe("ps-"+l+"-reach-"+e.reach[l]))}(e,n,i,o,r)}function He(e){return parseInt(e,10)||0}Be.prototype.eventElement=function(e){var t=this.eventElements.filter((function(t){return t.element===e}))[0];return t||(t=new $e(e),this.eventElements.push(t)),t},Be.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},Be.prototype.unbind=function(e,t,n){var o=this.eventElement(e);o.unbind(t,n),o.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(o),1)},Be.prototype.unbindAll=function(){this.eventElements.forEach((function(e){return e.unbindAll()})),this.eventElements=[]},Be.prototype.once=function(e,t,n){var o=this.eventElement(e),r=function(e){o.unbind(t,r),n(e)};o.bind(t,r)};var Ye={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Ve(e){var t=e.element,n=Math.floor(t.scrollTop),o=t.getBoundingClientRect();e.containerWidth=Math.round(o.width),e.containerHeight=Math.round(o.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(Pe(t,Fe.element.rail("x")).forEach((function(e){return Me(e)})),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(Pe(t,Fe.element.rail("y")).forEach((function(e){return Me(e)})),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),function(e,t){var n={width:t.railXWidth},o=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-o:n.top=t.scrollbarXTop+o,Le(t.scrollbarXRail,n);var r={top:o,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?r.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:r.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?r.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:r.left=t.scrollbarYLeft+e.scrollLeft,Le(t.scrollbarYRail,r),Le(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),Le(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(t,e),e.scrollbarXActive?t.classList.add(Fe.state.active("x")):(t.classList.remove(Fe.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=!0===e.isRtl?e.contentWidth:0),e.scrollbarYActive?t.classList.add(Fe.state.active("y")):(t.classList.remove(Fe.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function Xe(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function Ge(e,t){var n=t[0],o=t[1],r=t[2],i=t[3],s=t[4],a=t[5],l=t[6],c=t[7],u=t[8],d=e.element,p=null,h=null,f=null;function m(t){t.touches&&t.touches[0]&&(t[r]=t.touches[0].pageY),d[l]=p+f*(t[r]-h),Ue(e,c),Ve(e),t.stopPropagation(),t.type.startsWith("touch")&&t.changedTouches.length>1&&t.preventDefault()}function g(){je(e,c),e[u].classList.remove(Fe.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",m)}function b(t,s){p=d[l],s&&t.touches&&(t[r]=t.touches[0].pageY),h=t[r],f=(e[o]-e[n])/(e[i]-e[a]),s?e.event.bind(e.ownerDocument,"touchmove",m):(e.event.bind(e.ownerDocument,"mousemove",m),e.event.once(e.ownerDocument,"mouseup",g),t.preventDefault()),e[u].classList.add(Fe.state.clicking),t.stopPropagation()}e.event.bind(e[s],"mousedown",(function(e){b(e)})),e.event.bind(e[s],"touchstart",(function(e){b(e,!0)}))}var Qe={"click-rail":function(e){e.element,e.event.bind(e.scrollbarY,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarYRail,"mousedown",(function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,Ve(e),t.stopPropagation()})),e.event.bind(e.scrollbarX,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarXRail,"mousedown",(function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,Ve(e),t.stopPropagation()}))},"drag-thumb":function(e){Ge(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Ge(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(e){var t=e.element;e.event.bind(e.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(Ne(t,":hover")||Ne(e.scrollbarX,":focus")||Ne(e.scrollbarY,":focus"))){var o,r=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(Ne(o=r,"input,[contenteditable]")||Ne(o,"select,[contenteditable]")||Ne(o,"textarea,[contenteditable]")||Ne(o,"button,[contenteditable]"))return}var i=0,s=0;switch(n.which){case 37:i=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:s=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:i=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:s=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:s=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:s=e.containerHeight;break;case 34:s=-e.containerHeight;break;case 36:s=e.contentHeight;break;case 35:s=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==i||e.settings.suppressScrollY&&0!==s||(t.scrollTop-=s,t.scrollLeft+=i,Ve(e),function(n,o){var r=Math.floor(t.scrollTop);if(0===n){if(!e.scrollbarYActive)return!1;if(0===r&&o>0||r>=e.contentHeight-e.containerHeight&&o<0)return!e.settings.wheelPropagation}var i=t.scrollLeft;if(0===o){if(!e.scrollbarXActive)return!1;if(0===i&&n<0||i>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(i,s)&&n.preventDefault())}}))},wheel:function(e){var t=e.element;function n(n){var o=function(e){var t=e.deltaX,n=-1*e.deltaY;return void 0!==t&&void 0!==n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(n),r=o[0],i=o[1];if(!function(e,n,o){if(!Ye.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(e))return!1;for(var r=e;r&&r!==t;){if(r.classList.contains(Fe.element.consuming))return!0;var i=Oe(r);if(o&&i.overflowY.match(/(scroll|auto)/)){var s=r.scrollHeight-r.clientHeight;if(s>0&&(r.scrollTop>0&&o<0||r.scrollTop0))return!0}if(n&&i.overflowX.match(/(scroll|auto)/)){var a=r.scrollWidth-r.clientWidth;if(a>0&&(r.scrollLeft>0&&n<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(n.target,r,i)){var s=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(i?t.scrollTop-=i*e.settings.wheelSpeed:t.scrollTop+=r*e.settings.wheelSpeed,s=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(r?t.scrollLeft+=r*e.settings.wheelSpeed:t.scrollLeft-=i*e.settings.wheelSpeed,s=!0):(t.scrollTop-=i*e.settings.wheelSpeed,t.scrollLeft+=r*e.settings.wheelSpeed),Ve(e),s=s||function(n,o){var r=Math.floor(t.scrollTop),i=0===t.scrollTop,s=r+t.offsetHeight===t.scrollHeight,a=0===t.scrollLeft,l=t.scrollLeft+t.offsetWidth===t.scrollWidth;return!(Math.abs(o)>Math.abs(n)?i||s:a||l)||!e.settings.wheelPropagation}(r,i),s&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?e.event.bind(t,"wheel",n):void 0!==window.onmousewheel&&e.event.bind(t,"mousewheel",n)},touch:function(e){if(Ye.supportsTouch||Ye.supportsIePointer){var t=e.element,n={},o=0,r={},i=null;Ye.supportsTouch?(e.event.bind(t,"touchstart",c),e.event.bind(t,"touchmove",u),e.event.bind(t,"touchend",d)):Ye.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",c),e.event.bind(t,"pointermove",u),e.event.bind(t,"pointerup",d)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",c),e.event.bind(t,"MSPointerMove",u),e.event.bind(t,"MSPointerUp",d)))}function s(n,o){t.scrollTop-=o,t.scrollLeft-=n,Ve(e)}function a(e){return e.targetTouches?e.targetTouches[0]:e}function l(e){return!(e.pointerType&&"pen"===e.pointerType&&0===e.buttons||(!e.targetTouches||1!==e.targetTouches.length)&&(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function c(e){if(l(e)){var t=a(e);n.pageX=t.pageX,n.pageY=t.pageY,o=(new Date).getTime(),null!==i&&clearInterval(i)}}function u(i){if(l(i)){var c=a(i),u={pageX:c.pageX,pageY:c.pageY},d=u.pageX-n.pageX,p=u.pageY-n.pageY;if(function(e,n,o){if(!t.contains(e))return!1;for(var r=e;r&&r!==t;){if(r.classList.contains(Fe.element.consuming))return!0;var i=Oe(r);if(o&&i.overflowY.match(/(scroll|auto)/)){var s=r.scrollHeight-r.clientHeight;if(s>0&&(r.scrollTop>0&&o<0||r.scrollTop0))return!0}if(n&&i.overflowX.match(/(scroll|auto)/)){var a=r.scrollWidth-r.clientWidth;if(a>0&&(r.scrollLeft>0&&n<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(i.target,d,p))return;s(d,p),n=u;var h=(new Date).getTime(),f=h-o;f>0&&(r.x=d/f,r.y=p/f,o=h),function(n,o){var r=Math.floor(t.scrollTop),i=t.scrollLeft,s=Math.abs(n),a=Math.abs(o);if(a>s){if(o<0&&r===e.contentHeight-e.containerHeight||o>0&&0===r)return 0===window.scrollY&&o>0&&Ye.isChrome}else if(s>a&&(n<0&&i===e.contentWidth-e.containerWidth||n>0&&0===i))return!0;return!0}(d,p)&&i.preventDefault()}}function d(){e.settings.swipeEasing&&(clearInterval(i),i=setInterval((function(){e.isInitialized?clearInterval(i):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(i):e.element?(s(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(i):clearInterval(i)}),10))}}},Ke=function(e,t){var n=this;if(void 0===t&&(t={}),"string"==typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var o in this.element=e,e.classList.add(Fe.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},t)this.settings[o]=t[o];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,i,s=function(){return e.classList.add(Fe.state.focus)},a=function(){return e.classList.remove(Fe.state.focus)};this.isRtl="rtl"===Oe(e).direction,!0===this.isRtl&&e.classList.add(Fe.rtl),this.isNegativeScroll=(i=e.scrollLeft,e.scrollLeft=-1,r=e.scrollLeft<0,e.scrollLeft=i,r),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new Be,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=Ie(Fe.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=Ie(Fe.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=Oe(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=He(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=He(l.borderLeftWidth)+He(l.borderRightWidth),Le(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=He(l.marginLeft)+He(l.marginRight),Le(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Ie(Fe.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=Ie(Fe.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=Oe(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=He(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(e){var t=Oe(e);return He(t.width)+He(t.paddingLeft)+He(t.paddingRight)+He(t.borderLeftWidth)+He(t.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=He(c.borderTopWidth)+He(c.borderBottomWidth),Le(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=He(c.marginTop)+He(c.marginBottom),Le(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(e){return Qe[e](n)})),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",(function(e){return n.onScroll(e)})),Ve(this)};Ke.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Le(this.scrollbarXRail,{display:"block"}),Le(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=He(Oe(this.scrollbarXRail).marginLeft)+He(Oe(this.scrollbarXRail).marginRight),this.railYMarginHeight=He(Oe(this.scrollbarYRail).marginTop)+He(Oe(this.scrollbarYRail).marginBottom),Le(this.scrollbarXRail,{display:"none"}),Le(this.scrollbarYRail,{display:"none"}),Ve(this),ze(this,"top",0,!1,!0),ze(this,"left",0,!1,!0),Le(this.scrollbarXRail,{display:""}),Le(this.scrollbarYRail,{display:""}))},Ke.prototype.onScroll=function(e){this.isAlive&&(Ve(this),ze(this,"top",this.element.scrollTop-this.lastScrollTop),ze(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Ke.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Me(this.scrollbarX),Me(this.scrollbarY),Me(this.scrollbarXRail),Me(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Ke.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(e){return!e.match(/^ps([-_].+|)$/)})).join(" ")};const Ze=Ke,Je=(0,w.pM)({__name:"PerfectScrollbar",props:{tag:{default:"div"},options:{default:()=>({})}},emits:["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"],setup(e,{expose:t,emit:n}){const o=e,r=n,i=(0,Ae.KR)(null),s=(0,Ae.KR)(null);function a(){i.value&&(s.value=new Ze(i.value,o.options),d())}function l(){s.value&&(d(!1),s.value.destroy(),s.value=null)}(0,w.wB)((()=>o.options),(()=>{l(),a()}),{deep:!0}),(0,w.sV)((()=>{i.value&&a()})),(0,w.xo)((()=>{l()}));const c={scroll:u("scroll"),"ps-scroll-y":u("ps-scroll-y"),"ps-scroll-x":u("ps-scroll-x"),"ps-scroll-up":u("ps-scroll-up"),"ps-scroll-down":u("ps-scroll-down"),"ps-scroll-left":u("ps-scroll-left"),"ps-scroll-right":u("ps-scroll-right"),"ps-y-reach-start":u("ps-y-reach-start"),"ps-y-reach-end":u("ps-y-reach-end"),"ps-x-reach-start":u("ps-x-reach-start"),"ps-x-reach-end":u("ps-x-reach-end")};function u(e){return function(t){r(e,t)}}function d(e=!0){var t;null!=(t=s.value)&&t.element&&Object.entries(c).forEach((([t,n])=>{var o,r;e?null==(o=s.value)||o.element.addEventListener(t,n):null==(r=s.value)||r.element.removeEventListener(t,n)}))}return t({ps:s}),(e,t)=>((0,w.uX)(),(0,w.Wv)((0,w.$y)(e.tag),{ref_key:"scrollbar",ref:i,class:"ps"},{default:(0,w.k6)((()=>[(0,w.RG)(e.$slots,"default")])),_:3},512))}}),et={componentName:"PerfectScrollbar"},tt={install(e,t){const n=Object.assign(et,t);e.component(n.componentName,Je)}};var nt=r(2198),ot=r(6583),rt=r(7688),it=r(4370);function st(e){return(0,ee.N)((function(t,n){var o,r=null,i=!1;r=t.subscribe((0,it._)(n,void 0,void 0,(function(s){o=(0,rt.Tg)(e(s,st(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0}))),i&&(r.unsubscribe(),r=null,o.subscribe(n))}))}var at=r(5529),lt=r(2764),ct=r(3676),ut=r(8146),dt=r(2623);function pt(e,t){return t?function(n){return n.pipe(pt((function(n,o){return(0,rt.Tg)(e(n,o)).pipe((0,v.T)((function(e,r){return t(n,e,o,r)})))})))}:(0,ee.N)((function(t,n){var o=0,r=null,i=!1;t.subscribe((0,it._)(n,(function(t){r||(r=(0,it._)(n,void 0,(function(){r=null,i&&n.complete()})),(0,rt.Tg)(e(t,o++)).subscribe(r))}),(function(){i=!0,!r&&n.complete()})))}))}var ht=r(6814),ft=r(1846),mt=r(5499),gt=r(4e3);var bt=r(8849),vt=r(9168);function _t(e,t){return t?function(n){return function(){for(var e=[],t=0;t{const{[e]:t}=this.scripts;return this.checkUrlCondition(t)&&!this.checkShown(+e)})).sort(((e,t)=>{const{[e]:n,[t]:o}=this.scripts;return this.getPossibleScriptRunTime(n)-this.getPossibleScriptRunTime(o)}));if(e){const{[e]:t}=this.scripts;this.timeout=setTimeout((()=>{this.$storage.set(C.uu.lastCallTimeStorageKey,+new Date),this._canOpenInvitationRequest.next({scriptId:+e})}),Math.max(this.getPossibleScriptRunTime(t)-(new Date).getTime(),0))}}renderPushRequest(e){const{solution:t,script_id:n}=e||{},{[n]:o}=this.scripts,r=this.shownPopups.includes(n);if(o)if(this.checkedSolutionsPopups.push(n),t){if(!wt.fo.chatIsOpen&&!r){const e={scriptId:n,text:o.request_text,yesButton:o.yes_button||this.$translates.getTranslate("cmn_btn_positive"),noButton:o.no_button||this.$translates.getTranslate("cmn_btn_negative")};oe.o.sendMessage(y.Ag.showPopUp,e),this.$storage.set(this.lastCallPopupTimeKey,(new Date).getTime()),o.is_smart_popup||(this.shownPopups.push(n),this.$storage.set(this.shownPopupsStorageKey,this.shownPopups)),o.popup_timeout&&o.popup_timeout>0&&setTimeout((()=>{oe.o.sendMessage(y.Ag.closePopUp)}),1e3*o.popup_timeout)}}else this.init()}checkUrlCondition(e){return!e.url_pattern.length||e.url_pattern.some((e=>e&&-1!==wt.ZZ.currentPage.indexOf(e)))}checkShown(e){return this.shownPopups.includes(e)||this.checkedSolutionsPopups.includes(e)}getPossibleScriptRunTime(e){const t=this.lastCallPopupTime,n=t?t+1e3*e.last_invite_timeout:0,o=e.visit_page_timeout>0?this.pageOpenTime+1e3*e.visit_page_timeout:0;return Math.max(n,o)}}var Et=r(1857),kt=r(128);class St{constructor(e,t){this.isSelected=e,this.id=t.id,this.name=t.name,this.description=t.description,this.imageUrl=t.image||""}}class Tt{constructor(e){this.$storage=e,this._showDialog=new nt.t(!1),this.$showDialog=this._showDialog.asObservable()}static getInstance(e){return Tt._instance||(Tt._instance=new Tt(e)),Tt._instance}isDialogCountDownActive(){return this.getTimeToAutoClose()>0}isCharacterDialogVisible(){return this._showDialog.value}showCharacterDialog(e){var t;(e=null!==(t=null!=e?e:Te.sE.auto_close_dialog_timeout)&&void 0!==t?t:60)>0&&this.startAutoCloseCountDown(e),this._showDialog.next(!0)}handleChatInit(e){const{operator_character:t}=e||{};t&&(wt.vz.updateState({operator_character:t}),this.checkOperatorCharacterDialog())}handleOperatorCharacterResponse(e){const{character_id:t,never_prompt:n}=e||{};t?(wt.vz.handleCharacterChange(t.value||0),this.closeDialog()):n&&wt.vz.setNeverPrompt()}isDialogNeededToBeAutoOpened(){var e,t;if(this.isCharacterDialogVisible())return!1;if(this.isDialogCountDownActive()&&this.getTimeToAutoClose()/1e3>10)return!0;const n=this.getStorageSettings(),o=Te.o5.type_id!==C.wb.DEFERRED||Te.o5.status_id===C.g6.STATUS_IN_PROCESS;if(Te.o5.chat_id&&n.chatId!==Te.o5.chat_id&&o){this.saveStorageSettings({chatId:Te.o5.chat_id});const n=!(null===(e=Te.sE.operator_character)||void 0===e?void 0:e.never_prompt);if(!(null===(t=Te.sE.operator_character)||void 0===t?void 0:t.selected_character)&&n)return!0}return!1}resetDialogSavedStates(){this.$storage.remove(C.uu.operatorCharactersDialogStarted)}closeDialog(){this.stopAutoCloseCountDown(),this._showDialog.next(!1)}getSecondsToAutoClose(){const e=this.getStorageSettings().countdown;if(e){const t=(new Date).getTime(),n=Math.round((e-t)/1e3);return n>-1?n:0}return 0}getCharactersGridList(e){return(Te.sE.characters_list||[]).reduce(((t,n)=>{const o=this.getCharacterItem(n);let r=t[t.length-1];return r&&r.length!==e||(r=[],t.push(r)),r.push(o),t}),[])}checkOperatorCharacterDialog(){if(Te.sE.enabled&&this.isDialogNeededToBeAutoOpened()){const e=this.getSecondsToAutoClose();e>0?this.showCharacterDialog(e):this.showCharacterDialog()}}saveStorageSettings(e){var t,n;const o=this.getStorageSettings();o.countdown=null!==(t=e.countdown)&&void 0!==t?t:o.countdown,o.chatId=null!==(n=e.chatId)&&void 0!==n?n:o.chatId,this.$storage.set(C.uu.operatorCharactersDialogStarted,o)}getStorageSettings(){return this.$storage.get(C.uu.operatorCharactersDialogStarted)||{}}stopAutoCloseCountDown(){this.saveStorageSettings({countdown:0})}getCharacterItem(e){var t,n;const o=e.id===(null===(n=null===(t=Te.sE.operator_character)||void 0===t?void 0:t.selected_character)||void 0===n?void 0:n.id);return new St(o,e)}startAutoCloseCountDown(e){this.saveStorageSettings({countdown:(new Date).getTime()+1e3*e})}getTimeToAutoClose(){const e=this.getStorageSettings().countdown;return e?e-(new Date).getTime():-1}}var Ct=r(7746),At=r(862),Ot=r(2394),Lt=r(7607),It=r(380),Rt=r(1693);function Nt(e,t){var n=(0,Rt.T)(e)?e:function(){return e},o=function(e){return e.error(n())};return new It.c(t?function(e){return t.schedule(o,0,e)}:o)}var Mt=r(9577);const Pt={logger:null,initFileTransferTimeout:2e4,uploadAttempts:2,maxFileSize:5242880};class Ft{socket;inputsListening=[];options;queue=[];currentFileUpload;currentFileUploadSubscription;socketOnce;onQueueComplete=new Ee.B;onQueueStart=new Ee.B;onUploadError=new Ee.B;$onUploadError=this.onUploadError.asObservable();$onQueueComplete=this.onQueueComplete.asObservable();$onQueueStart=this.onQueueStart.asObservable();$uploadFilesInQueue=(0,lt.h)(this.onQueueStart,this.onQueueComplete.pipe((0,v.T)((()=>0))));listenersDist={connect:()=>{this.log("connect"),this.uploadNext()},disconnect:()=>{this.log("disconnected"),this.onDisconnected()},fileInputChange:e=>{const t=e.target,n=Array.from(t.files);this.submitFiles(n),t.value=null},yhFileUploadError:(e,t)=>{const n=new Mt.ErrorData(t),o=n.uploadFileState;this.completeWithFile(e,o,n)},yhFileUploadSuccess:e=>{this.completeWithFile(e,Mt.FileUploadStateEnum.Complete)}};constructor(e,t={}){this.socket=e,this.options={...Pt,...t||{}},this.addSocketListeners()}onDisconnected(){this.currentFileUpload?.state===Mt.FileUploadStateEnum.Uploading&&(this.log("canceled due disconnection"),this.completeWithFile(this.currentFileUpload.uniqId,Mt.FileUploadStateEnum.Error,new Mt.ErrorData({code:Mt.UploadErrorCodes.Disconnected})))}completeWithFile(e,t,n){this.currentFileUpload?.uniqId===e?(this.currentFileUpload.error=n??null,this.currentFileUpload.state=t,n&&this.onLoadError(n,this.currentFileUpload),this.cleanupCurrentFile(),this.cleanupSocketOnce(),this.uploadNext()):this.log("This should not happened")}onLoadError(e,t){const n=this.fileUploadScheduled(t);this.log("onLoadError","will emit error:",!n,t?.file.name,e),n||this.onUploadError.next({errorData:e,file:t})}log(...e){"function"==typeof this.options?.logger&&this.options.logger(...e)}switchSocket(e){this.stopListenSocket(),this.socket=e,this.addSocketListeners()}listenOnInput(e){-1===this.inputsListening.indexOf(e)&&(e.addEventListener("change",this.listenersDist.fileInputChange),this.inputsListening.push(e))}submitFiles(e,t,n){(e||[]).forEach((e=>{this.queue.push(new Mt.UploadFile(e,this.socket.id,t,n))})),this.uploadNext()}addSocketListeners(){this.socket.on("disconnect",this.listenersDist.disconnect),this.socket.on("connect",this.listenersDist.connect),this.socket.on("yhFileUploadError",this.listenersDist.yhFileUploadError),this.socket.on("yhFileUploadSuccess",this.listenersDist.yhFileUploadSuccess)}stopListenSocket(){this.socket.off("connect",this.listenersDist.connect),this.socket.off("disconnect",this.listenersDist.disconnect),this.socket.off("yhFileUploadError",this.listenersDist.yhFileUploadError),this.socket.off("yhFileUploadSuccess",this.listenersDist.yhFileUploadSuccess)}destroy(){this.cleanupCurrentFile(),this.cleanupSocketOnce(),this.stopListenInput(),this.stopListenSocket(),Object.keys({yhFileStartReady:null,yhFileUploadError:null,yhFileUploadSuccess:null}).forEach((e=>this.socket.off(e))),this.onQueueStart.complete(),this.onQueueComplete.complete(),this.onUploadError.complete(),this.socket=null}stopListenInput(){this.inputsListening.forEach((e=>{e.removeEventListener("change",this.listenersDist.fileInputChange)}))}cleanupCurrentFile(){this.currentFileUpload=null,this.currentFileUploadSubscription?.unsubscribe(),this.currentFileUploadSubscription=null}cleanupSocketOnce(){this.socketOnce&&(this.socket.off("yhFileStartReady",this.socketOnce),this.socketOnce=null)}uploadNext(){if(this.currentFileUpload)this.log("Upload next break. previous file is loading");else if(this.queue.length){const e=this.queue.filter((e=>e.state===Mt.FileUploadStateEnum.Queue)),t=e[0];if(t){if(this.onQueueStart.next(e.length),!this.socket.connected)return void this.log("Socket disconnected. Waiting for connection...");this.currentFileUpload=t,this.uploadCurrentFile()}else this.completeQueue()}else this.onQueueComplete.next([])}fileUploadScheduled(e){return e.state===Mt.FileUploadStateEnum.Error&&e.uploadAttemptsMade{if(this.fileUploadScheduled(e))return e.state=Mt.FileUploadStateEnum.Queue,!0;e.state===Mt.FileUploadStateEnum.Error&&(e.state=Mt.FileUploadStateEnum.ErrorComplete)})).length>0)return this.uploadNext();const e=this.queue.splice(0,this.queue.length);this.onQueueComplete.next(e)}uploadCurrentFile(){const e=this.currentFileUpload;if(e){this.log("uploadCurrentFile: ",e.uniqId,"attempt:",e.uploadAttemptsMade),e.state=Mt.FileUploadStateEnum.ReadyForUpload;const t=e.params;this.currentFileUploadSubscription=(0,ct.H)(e.arrayBuffer).pipe((0,_.s)(1),(0,Ot.v)((t=>{if(e.file.size>this.options.maxFileSize){const t=new Mt.ErrorData({code:Mt.UploadErrorCodes.MaxFileSizeExceeded});return setTimeout((()=>this.completeWithFile(e.uniqId,t.uploadFileState,t)),0),!1}if(!e.file.size){const t=new Mt.ErrorData({code:Mt.UploadErrorCodes.EmptyFile});return setTimeout((()=>this.completeWithFile(e.uniqId,t.uploadFileState,t)),0),!1}return!!(t?.byteLength>0)||(setTimeout((()=>{this.completeWithFile(e.uniqId,Mt.FileUploadStateEnum.Complete)}),0),!1)})),(0,b.n)((e=>(0,Lt.O)(new It.c((n=>{this.log("Initiating upload for",t.name,t.size),this.socketOnce=o=>{o===t.uniqueId?(this.log("Initiated successfully for",t.name,t.size),n.next({data:{uniqueId:o,arrayBuffer:e}})):n.next({errorData:new Mt.ErrorData({code:Mt.UploadErrorCodes.Unknown,error:"Mismatch file id or invalid data"})})},this.socket.once("yhFileStartReady",this.socketOnce),this.socket.emit("yhFileStart",t)})),(0,yt.O)(this.options.initFileTransferTimeout).pipe((0,v.T)((()=>({errorData:new Mt.ErrorData({code:Mt.UploadErrorCodes.TimeoutStarting,message:"Timeout. Try again later"})})))))))).pipe(st((t=>{const n=new Mt.ErrorData({code:Mt.UploadErrorCodes.CatchError,error:t});return this.completeWithFile(e.uniqId,n.uploadFileState,n),Nt((()=>n))}))).subscribe((n=>{n.data?(this.log("Uploading file",t.name,t.size),e.state=Mt.FileUploadStateEnum.Uploading,this.socket.emit("yhFileUpload",t,n.data.arrayBuffer)):n.errorData&&this.completeWithFile(e.uniqId,n.errorData.uploadFileState,n.errorData)}))}else this.uploadNext()}}const Dt=Object.create(null);Dt.open="0",Dt.close="1",Dt.ping="2",Dt.pong="3",Dt.message="4",Dt.upgrade="5",Dt.noop="6";const Ut=Object.create(null);Object.keys(Dt).forEach((e=>{Ut[Dt[e]]=e}));const jt={type:"error",data:"parser error"},$t="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),Wt="function"==typeof ArrayBuffer,Bt=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,qt=({type:e,data:t},n,o)=>$t&&t instanceof Blob?n?o(t):zt(t,o):Wt&&(t instanceof ArrayBuffer||Bt(t))?n?o(t):zt(new Blob([t]),o):o(Dt[e]+(t||"")),zt=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Ht(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Yt;const Vt="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)Vt["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(e)]=e;const Xt="function"==typeof ArrayBuffer,Gt=(e,t)=>{if("string"!=typeof e)return{type:"message",data:Kt(e,t)};const n=e.charAt(0);return"b"===n?{type:"message",data:Qt(e.substring(1),t)}:Ut[n]?e.length>1?{type:Ut[n],data:e.substring(1)}:{type:Ut[n]}:jt},Qt=(e,t)=>{if(Xt){const n=(e=>{let t,n,o,r,i,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);const c=new ArrayBuffer(s),u=new Uint8Array(c);for(t=0;t>4,u[l++]=(15&o)<<4|r>>2,u[l++]=(3&r)<<6|63&i;return c})(e);return Kt(n,t)}return{base64:!0,data:e}},Kt=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,Zt=String.fromCharCode(30);let Jt;function en(e){return e.reduce(((e,t)=>e+t.length),0)}function tn(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let o=0;for(let r=0;r(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const sn=on.setTimeout,an=on.clearTimeout;function ln(e,t){t.useNativeTimers?(e.setTimeoutFn=sn.bind(on),e.clearTimeoutFn=an.bind(on)):(e.setTimeoutFn=on.setTimeout.bind(on),e.clearTimeoutFn=on.clearTimeout.bind(on))}class cn extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class un extends nn{constructor(e){super(),this.writable=!1,ln(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new cn(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Gt(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}const dn="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),pn=64,hn={};let fn,mn=0,gn=0;function bn(e){let t="";do{t=dn[e%pn]+t,e=Math.floor(e/pn)}while(e>0);return t}function vn(){const e=bn(+new Date);return e!==fn?(mn=0,fn=e):e+"."+bn(mn++)}for(;gn{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=kn.requestsCount++,kn.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=xn,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete kn.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}function Sn(){for(let e in kn.requests)kn.requests.hasOwnProperty(e)&&kn.requests[e].abort()}kn.requestsCount=0,kn.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",Sn):"function"==typeof addEventListener&&addEventListener("onpagehide"in on?"pagehide":"unload",Sn,!1));const Tn="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Cn=on.WebSocket||on.MozWebSocket,An="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),On={websocket:class extends un{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=An?{}:rn(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=An?new Cn(e,t,n):t?new Cn(e,t):new Cn(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.ws.send(e)}catch(e){}o&&Tn((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=vn()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!Cn}},webtransport:class extends un{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=function(e,t){Jt||(Jt=new TextDecoder);const n=[];let o=0,r=-1,i=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(0===o){if(en(n)<1)break;const e=tn(n,1);i=!(128&~e[0]),r=127&e[0],o=r<126?3:126===r?1:2}else if(1===o){if(en(n)<2)break;const e=tn(n,2);r=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),o=3}else if(2===o){if(en(n)<8)break;const e=tn(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){a.enqueue(jt);break}r=i*Math.pow(2,32)+t.getUint32(4),o=3}else{if(en(n)e){a.enqueue(jt);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),o=new TransformStream({transform(e,t){!function(e,t){$t&&e.data instanceof Blob?e.data.arrayBuffer().then(Ht).then(t):Wt&&(e.data instanceof ArrayBuffer||Bt(e.data))?t(Ht(e.data)):qt(e,!1,(e=>{Yt||(Yt=new TextEncoder),t(Yt.encode(e))}))}(e,(n=>{const o=n.length;let r;if(o<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,o);else if(o<65536){r=new Uint8Array(3);const e=new DataView(r.buffer);e.setUint8(0,126),e.setUint16(1,o)}else{r=new Uint8Array(9);const e=new DataView(r.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(o))}e.data&&"string"!=typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)}))}});o.readable.pipeTo(e.writable),this.writer=o.writable.getWriter();const r=()=>{n.read().then((({done:e,value:t})=>{e||(this.onPacket(t),r())})).catch((e=>{}))};r();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t{o&&Tn((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends un{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=En&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(Zt),o=[];for(let e=0;e{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"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,((e,t)=>{const n=e.length,o=new Array(n);let r=0;e.forEach(((e,i)=>{qt(e,!1,(e=>{o[i]=e,++r===n&&t(o.join(Zt))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=vn()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new kn(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},Ln=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,In=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rn(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));let r=Ln.exec(e||""),i={},s=14;for(;s--;)i[In[s]]=r[s]||"";return-1!=n&&-1!=o&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const n=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}(0,i.path),i.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(n[t]=o)})),n}(0,i.query),i}class Nn extends nn{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=Rn(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Rn(t.host).host),ln(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,o=n.length;e{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(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new On[e](n)}open(){let e;if(this.opts.rememberUpgrade&&Nn.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),n=!1;Nn.priorWebsocketSuccess=!1;const o=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Nn.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function r(){n||(n=!0,c(),t.close(),t=null)}const i=e=>{const n=new Error("probe error: "+e);n.transport=t.name,r(),this.emitReserved("upgradeError",n)};function s(){i("transport closed")}function a(){i("socket closed")}function l(e){t&&e.name!==t.name&&r()}const c=()=>{t.removeListener("open",o),t.removeListener("error",i),t.removeListener("close",s),this.off("close",a),this.off("upgrading",l)};t.once("open",o),t.once("error",i),t.once("close",s),this.once("close",a),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",Nn.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{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 e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n=57344?n+=3:(o++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this.maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,o){if("function"==typeof t&&(o=t,t=void 0),"function"==typeof n&&(o=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const r={type:e,data:t,options:n};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),o&&this.once("flush",o),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(e){Nn.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"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",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const o=e.length;for(;n"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Fn=Object.prototype.toString,Dn="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Fn.call(Blob),Un="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===Fn.call(File);function jn(e){return Mn&&(e instanceof ArrayBuffer||Pn(e))||Dn&&e instanceof Blob||Un&&e instanceof File}function $n(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t=0&&e.num{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise(((n,o)=>{const r=(e,t)=>e?o(e):n(t);r.withError=!0,t.push(r),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...o)=>{if(n===this._queue[0])return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...o)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Vn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Vn.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):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 Vn.EVENT:case Vn.BINARY_EVENT:this.onevent(e);break;case Vn.ACK:case Vn.BINARY_ACK:this.onack(e);break;case Vn.DISCONNECT:this.ondisconnect();break;case Vn.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...o){n||(n=!0,t.packet({type:Vn.ACK,id:e,data:o}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}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:Vn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n0&&e.jitter<=1?e.jitter:0,this.attempts=0}to.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},to.prototype.reset=function(){this.attempts=0},to.prototype.setMin=function(e){this.ms=e},to.prototype.setMax=function(e){this.max=e},to.prototype.setJitter=function(e){this.jitter=e};class no extends nn{constructor(t,n){var o;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(n=t,t=void 0),(n=n||{}).path=n.path||"/socket.io",this.opts=n,ln(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!==(o=n.randomizationFactor)&&void 0!==o?o:.5),this.backoff=new to({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==n.timeout?2e4:n.timeout),this._readyState="closed",this.uri=t;const r=n.parser||e;this.encoder=new r.Encoder,this.decoder=new r.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 t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Nn(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=Zn(t,"open",(function(){n.onopen(),e&&e()})),r=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=Zn(t,"error",r);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{o(),r(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(o),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Zn(e,"ping",this.onping.bind(this)),Zn(e,"data",this.ondata.bind(this)),Zn(e,"error",this.onerror.bind(this)),Zn(e,"close",this.onclose.bind(this)),Zn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){Tn((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new eo(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t)if(this.nsps[e].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;ne())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const oo={};function ro(e,t){"object"==typeof e&&(t=e,e=void 0);const n=function(e,t="",n){let o=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),o=Rn(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const r=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+r+":"+o.port+t,o.href=o.protocol+"://"+r+(n&&n.port===o.port?"":":"+o.port),o}(e,(t=t||{}).path||"/socket.io"),o=n.source,r=n.id,i=n.path,s=oo[r]&&i in oo[r].nsps;let a;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?a=new no(o,t):(oo[r]||(oo[r]=new no(o,t)),a=oo[r]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(ro,{Manager:no,Socket:eo,io:ro,connect:ro});class io{get socketId(){var e,t,n;return null!==(n=null!==(t=null===(e=this.socket)||void 0===e?void 0:e.id)&&void 0!==t?t:this._lastSocketId)&&void 0!==n?n:"not-assigned"}get isTransportConnected(){return this.transportConnectedState.value}constructor(e,t){this.host=e,this.getIoSocketParams=t,this.transportConnectedState=new nt.t(!1),this._socketListenSubjects={},this.cachedCallbacksSubjects={},this.$transportConnectedState=this.transportConnectedState.pipe((0,ut.p)((function(e,t){return 1<=t}))),this.$throwErrorOnDisconnect=this.$transportConnectedState.pipe((0,ut.p)((e=>!e)),(0,b.n)((()=>Nt((()=>"Transport disconnected"))))),this.createSocket(),setTimeout((()=>{this.onAfterSocketCreated(this.socket)}))}on(e){return!!this._socketListenSubjects[e]||this.bindSocketEventToSubject(e),this.getListenerSubject(e).asObservable()}once(e){return this.on(e).pipe((0,_.s)(1))}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;ot))}const i=new It.c((t=>{ue.gP.log(`%c↑↻ ${e}`,"color: #fb6016",r),this._emit(e,r,((n,o)=>{if(o)return t.error(o),void t.complete();ue.gP.log(`%c↓↺ ${e}`,"color: #699416",n),t.next(n),t.complete()}))}));return(0,Lt.O)(this.$throwErrorOnDisconnect,i).pipe(st((t=>(ue.gP.log(`%c↓ ERR ${e}`,"color: #699416",t),Nt((()=>t))))))}emitWithCachedCallback(e,t){for(var n,o=arguments.length,r=new Array(o>2?o-2:0),i=2;il[a].pipe((0,_.s)(1),(0,v.T)((t=>({fromCache:e,data:t}))));if(l[a]){if(t())return c(!0);delete l[a]}return l[a]=this.emitWithCallback(e,...r).pipe((0,dt.M)((e=>{l[a]&&(l[a]=(0,ot.of)(e))})),st((e=>(delete l[a],Nt((()=>e)))))),c(!1)}recreateSocket(){ue.gP.log(`${this.constructor.name}: recreateSocket()`),this.completeSocket(),this.createSocket(),this.rebindExistingEventsToSubjects(),this.onAfterSocketCreated(this.socket)}completeSocket(){var e,t;null===(e=this.socket)||void 0===e||e.removeAllListeners(),null===(t=this.socket)||void 0===t||t.disconnect()}onSocketDisconnected(e){this.transportConnectedState.next(!1),this.completeSocket(),this.onAfterDisconnected(e),this.cachedCallbacksSubjects={}}getListenerSubject(e){return this._socketListenSubjects[e]||(this._socketListenSubjects[e]=new Ee.B)}bindSocketEventToSubject(e){const t=this.getListenerSubject(e);ue.gP.log(`${this.constructor.name}: start listening socket.on(${e})`),this.socket.on(e,(n=>{ue.gP.log(`%c↓ ${e}`,"color: #699416",n),t.next(null!=n?n:null)}))}rebindExistingEventsToSubjects(){ue.gP.log(`${this.constructor.name}: rebind socket events to subjects`),Object.keys(this._socketListenSubjects).forEach((e=>{this.bindSocketEventToSubject(e)}))}_emit(e,t,n){var o;return null===(o=this.socket)||void 0===o||o.emit(e,t,n),this}createSocket(){const e=this.getIoSocketParams();this.socket=ro(this.host,e),this.socket.once("connect",(()=>{var e,t;ue.gP.log("%c↓ ONCE:connect","color: #699416"),this._lastSocketId=null!==(t=null===(e=this.socket)||void 0===e?void 0:e.id)&&void 0!==t?t:this._lastSocketId,this.transportConnectedState.next(!0)})),this.socket.once("connect_error",(e=>{ue.gP.log("%c↓ ONCE:connect_error","color: #699416",{error:e}),this.onSocketDisconnected(e)})),this.socket.once("disconnect",(e=>{ue.gP.log("%c↓ ONCE:disconnect","color: #699416",{error:e}),this.onSocketDisconnected(e)}))}}class so{constructor(){}_post(e,t){return this.xhrRequest((n=>{n.open("POST",`${this.api_url}/${e}`),n.send(t)}))}_get(e){return this.xhrRequest((t=>{t.open("GET",`${this.api_url}/${e}`),t.send()}))}xhrRequest(e){return new It.c((t=>{const n=new XMLHttpRequest;e(n),n.onerror=e=>{const o={error:e,xhr:n};t.error(o),t.complete()},n.onload=()=>{const{response:e}=n;200===n.status?t.next(e):t.error(n),t.complete()}}))}}var ao,lo=r(28),co=r(6050);!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.ConnectionInfoSent=2]="ConnectionInfoSent"}(ao||(ao={}));const uo=new class extends so{constructor(){super(),this.eventsStack=[],this.state=ao.None,this.sendingInProcessSubscription=null,this.resendTimeoutSubscription=null;const{node_host:e}=lo.c,t=new URL(/^https?:.*/.test(e)?e:window.location.protocol+e);this.api_url=t.origin,co.A.initialized.pipe((0,ut.p)((e=>e)),(0,_.s)(1)).subscribe((()=>{this.sendNextFromQueue()}))}onSocketCreated(){this.resetLogs(),this.state=ao.Created,this.addEvent({event:"socket:created"})}onEmitConnectionInfo(){this.state=ao.ConnectionInfoSent,this.addEvent({event:`socket↑${y.Vt.connectionInfo}`})}resetLogs(){this.clearStack(),this.state=ao.None}addEvent(e){this.eventsStack.push(Object.assign({timestamp:new Date},e))}onMainErrorReceived(e){this.state===ao.ConnectionInfoSent&&this.addToQueue("start",{socket_id:e,namespace:"error",logs:this.eventsStack}),this.resetLogs(),this.sendNextFromQueue()}loadQueue(){return co.A.get(C.uu.logSocketEventsKey)||[]}saveQueue(e){const{uniqueItems:t}=e.reduce(((e,t)=>(e.ids[t.socket_id]||(e.ids[t.socket_id]=!0,e.uniqueItems.push(t)),e)),{ids:{},uniqueItems:[]});t.length>5&&t.splice(5,t.length),co.A.set(C.uu.logSocketEventsKey,t)}getNextFromQueue(){const e=this.loadQueue();if(e.length>0){const[t]=e.splice(e.length-1,1);return this.saveQueue(e),t}return null}addToQueue(e,t){const n=this.loadQueue();for(var o=arguments.length,r=new Array(o>2?o-2:0),i=2;i{const t=Object.entries(e).map((e=>{let[t,n]=e;return`${t}=${JSON.stringify(n)}`})).join("&");return(0,ot.of)(t)})).pipe((0,v.T)((e=>({params:e,parseOk:!0}))),st((()=>(0,ot.of)({params:"",parseOk:!1}))),(0,b.n)((e=>{const{parseOk:t,params:n}=e||{};return t?this._get(`log?${n}`).pipe(st((e=>{var t;return 0===(null===(t=null==e?void 0:e.xhr)||void 0===t?void 0:t.status)?(0,ot.of)(!0):Nt((()=>e))}))):(0,ot.of)(null)}))).pipe((0,v.T)((()=>!0)),st((()=>(0,ot.of)(!1))),(0,_.s)(1))}sendNextFromQueue(){var e;if(null===(e=this.resendTimeoutSubscription)||void 0===e||e.unsubscribe(),!this.sendingInProcessSubscription){const e=this.getNextFromQueue();e&&(this.sendingInProcessSubscription=this.sendLog(e).subscribe((t=>{this.sendingInProcessSubscription=null,t?this.sendNextFromQueue():(this.addToQueue("end",e),this.resendTimeoutSubscription=(0,yt.O)(1e4).subscribe((()=>this.sendNextFromQueue())))})))}}},po=Object.assign(Object.assign({},C.Hs),{logger:function(){for(var e=arguments.length,t=new Array(e),n=0;n({auth:t(),transports:["websocket"],forceNew:!0,reconnection:!1}))),this.activeSocketAuthorized=!1,this.uploaderBehavior=new nt.t(null),this.$uploader=this.uploaderBehavior.pipe((0,ut.p)((e=>!!e))),this.on(y.Oh.connected).subscribe((()=>{this.authorizedOnce=!0,this.activeSocketAuthorized=!0,uo.resetLogs()})),this.initSocketLogs()}onAfterDisconnected(e){this.activeSocketAuthorized=!1,this.authorizedOnce&&this.reconnectSocket();const t=this.authorizedOnce?"":"no more attempts to reconnect";ue.gP.log(`%cChatTransportService: transport disconnected. ${t}; ${e||""}`,"color: #f26924; font-size: 14px")}onAfterSocketCreated(e){uo.onSocketCreated(),ue.gP.log("%cChatTransportService: new socket created","color: #418c00; background-color: #edfbff;"),this.checkUploaderInitState(e)}checkUploaderInitState(e){this.uploader?(ue.gP.log("%cUploader - switch socket due to new socket","color: #418c00; background-color: #edfbff;"),this.uploader.switchSocket(e)):(this.uploader=new Ft(e,po),this.uploaderBehavior.next(this.uploader),ue.gP.log("%cUploader init due to new socket created","color: #418c00; background-color: #edfbff;"))}initSocketLogs(){this.on(y.Oh.connect).subscribe((()=>{uo.addEvent({event:"socket↓:connect"})})),this.on(y.Oh.connectError).subscribe((()=>{uo.addEvent({event:"socket↓:connect_error"})})),this.on(y.Oh.disconnect).subscribe((()=>{uo.addEvent({event:"socket↓:disconnect"})})),this.on(y.Oh.mainError).subscribe((()=>{uo.addEvent({event:`socket↓:${y.Oh.mainError}`}),uo.onMainErrorReceived(this.socketId)}))}reconnectSocket(){var e;null===(e=this.reconnectTimeout)||void 0===e||e.unsubscribe(),this.reconnectTimeout=(0,yt.O)(3e3).subscribe((()=>{"visible"===document.visibilityState?this.recreateSocket():this.reconnectSocket()}))}}class fo extends io{constructor(){super("",(()=>({}))),this.$uploader=new It.c((()=>{}))}onAfterSocketCreated(){}emitWithCallback(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{let{data:t}=e;return t})))}emit(e){return this}createSocket(){}onAfterDisconnected(){}bindSocketEventToSubject(e){const t=this.getListenerSubject(e);oe.o.listen(y.L0.mockData).pipe((0,v.T)((t=>{let{data:n}=t;const{event:o,data:r}=null!=n?n:{};if(o===e)return r})),(0,ut.p)((e=>void 0!==e))).subscribe((n=>{ue.gP.log(`%c↓ ${e} (Mock)`,"color: #699416",n),t.next(null!=n?n:null)}))}}const mo=Object.assign(Object.assign({},C.Hs),{logger:function(){for(var e=arguments.length,t=new Array(e),n=0;nthis.subject.next(e))))}resetData(){this.subject.next(this.emptyValue)}}var bo=r(1704);const vo=class{get canMessagesBeRead(){return Te.kW.status===y.ZF.OPEN&&Te.Fm.visible}get isChatFlowEnabled(){return Te.ML.enable_chat_flow||Te.P7.segment_flow.rules.chatFlowForceEnabled}constructor(e,t){this.$translates=e,this.$storage=t,this.uploaderProvider=new nt.t(null),this.$uploader=this.uploaderProvider.pipe((0,ut.p)((e=>!!e)),(0,b.n)((e=>e))),this.initState=(()=>{const e=new nt.t(null);return{$initialized:e.pipe((0,ut.p)((e=>!!e)),(0,_.s)(1)),setInitialized:()=>e.next(!0),isInitialized:()=>!!e.value}})(),this.behaviorListeners={captcha:new go(null)},this.faqSearchDone=new Ee.B,this.$faqSearchDone=this.faqSearchDone.asObservable(),this.formFilesSendingProgress=new nt.t(null),this.$formFilesSendingProgress=this.formFilesSendingProgress.pipe((0,ut.p)((e=>"number"==typeof e))),this.pauseUploadErrorSystemMessages=!1,this.scriptsService=new xt(e,t),this.operatorCharacters=Tt.getInstance(t)}listen(e){return this.listenSafe(e)}initialize(){if(!this.initState.isInitialized()){const{chatHost:e}=wt.ZZ;this.transport=Te.yq.demo?new fo:new ho(e,(()=>wt.ZZ.authConnectionData)),this.uploaderProvider.next(this.transport.$uploader),this.setListeners(),this.setFrameListeners(),this.setFormsListeners(),this.setOpenChatTriggers(),this.initState.setInitialized()}}listenBehaviour(e){return this.behaviorListeners[e].$data}getHistory(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.transport.emitWithCallback(y.Vt.getHistory,{limit:e,offset:t})}getHistoryDetail(e,t){return this.transport.emitWithCallback(y.Vt.getChatHistoryDetails,{chatId:e,requireResponseMode:t}).pipe((0,v.T)((e=>({messages:((null==e?void 0:e.messages)||[]).map((e=>kt.A.parse(e))),operator_data:(null==e?void 0:e.operator_data)||null}))))}sendFormFiles(e){let{form_id:t,item_id:n,type_id:o,fields_definition:r}=e;return(0,xe.v)((()=>{const e=At.A.getAttachmentFieldsForUpload(r);return e.length?(this.pauseUploadErrorSystemMessages=!0,this.$uploader.pipe((0,dt.M)((()=>this.formFilesSendingProgress.next(n))),(0,_.s)(1),(0,b.n)((r=>(e.forEach((e=>{e.value.upload.uploadErrors=null,e.value.upload.inProgress=!1;const i={form_file:{field_name:e.name,form_id:t,item_id:n,type_id:o}};r.submitFiles([e.value.file],i,{onStateChanged:t=>{Mt.FileUploadStateEnum.ReadyForUpload===t&&(e.value.upload.inProgress=!0)},onComplete:t=>{e.value.upload.inProgress=!1,e.value.upload.uploadErrors=(()=>{if(t){if(t&&"object"==typeof t)switch(t.code){case Mt.UploadErrorCodes.MaxFileSizeExceeded:return{fileMaxSize:!0};case Mt.UploadErrorCodes.EmptyFile:return{fileZeroSize:!0}}return{unknown:!0}}return null})()}})})),r.$onQueueComplete.pipe((0,_.s)(1),(0,b.n)((()=>{const t=e.reduce(((e,t)=>{let{name:n,value:o}=t;var r;return(null===(r=null==o?void 0:o.upload)||void 0===r?void 0:r.uploadErrors)&&(e[n]=o.upload.uploadErrors),e}),{});return(0,ot.of)({errors:Object.keys(t).length?t:null})})))))),te((()=>{this.formFilesSendingProgress.value===n&&this.formFilesSendingProgress.next(0),this.pauseUploadErrorSystemMessages=!1})))):(0,ot.of)({errors:null})}))}sendForm(e){return(0,xe.v)((()=>{const t=e();return t?this.sendFormFiles(t).pipe((0,b.n)((t=>{let{errors:n}=t;if(n)return(0,ot.of)({errors:n});const o=e();return o?this.transport.emitWithCallback(y.Vt.sendForm,o).pipe((0,v.T)((e=>({errors:null,success:e})))):(0,ot.of)({errors:null})}))):(0,ot.of)({errors:null})}))}sendInvoice(e){this.transport.emitWithCallback(y.Vt.sendInvoice,e).subscribe((e=>{wt.fo.updateMessage(e)}))}sendLog(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]&&arguments[0];return this.transport.emitWithCachedCallback(y.Vt.userInfo,(()=>!e&&wt.OG.stateIsRecent)).pipe((0,dt.M)((e=>{let{data:t,fromCache:n}=e;n||this.handleClientInfoRefresh(t)})),st((e=>(ue.gP.error(e),at.w))))}checkAiOnline(){return this.transport.emitWithCallback(y.Vt.checkAiAssistantStatus).pipe((0,v.T)((e=>{let{status:t}=e;return t===C.MS.STATUS_ENABLED})),(0,b.n)((e=>e?(0,ot.of)(!0):this.refreshUserInfo(!0).pipe((0,v.T)((()=>!1))))))}startNewInternationalChat(){return this.changeLocale({int_locale:!0}).pipe((0,dt.M)((()=>this.startChat())))}changeLocale(e){return this.transport.emitWithCallback(y.Vt.changeLocale,e).pipe((0,dt.M)((e=>{this.handleChangeLocale(e)})))}faqSearch(e){if(e=e.trim()){const t={searchText:e,startPage:ue.gt.isCurrentRoute("FAQ")},n=Y.A.getCache(t);n?(Y.A.setFaq({questions:n}),this.faqSearchDone.next(!0)):this.transport.emitWithCallback(y.Vt.faqSearch,t).subscribe((e=>{Y.A.setFaq(e),this.faqSearchDone.next(!0)}))}}getRouteForStartChat(){return this.refreshUserInfo().pipe((0,_.s)(1),(0,v.T)((()=>Te.o5.chat_id?y.bw.CHAT.path:Te.P7.operators_online?this.isChatFlowEnabled?y.bw.CHAT_FLOW.path:y.bw.CHAT.path:y.bw.FEEDBACK.path)))}getRouteForAiAssist(){return this.checkAiOnline().pipe((0,v.T)((e=>e?{path:y.bw.CHAT_FLOW.path,query:{assistant:1}}:y.bw.FEEDBACK.path)))}getPossibleFaq(){this.transport.emitWithCallback(y.Vt.getPossibleFaq).subscribe((e=>{Y.A.setCache({possibleQuestions:1},null==e?void 0:e.questions)}))}searchFaqById(e){e&&this.transport.emitWithCallback(y.Vt.getFaqById,{id:e}).subscribe((e=>{Y.A.setCache(null==e?void 0:e.search,null==e?void 0:e.questions)}))}getFormById(e){return this.transport.emitWithCallback(y.Vt.getFormById,e).pipe((0,dt.M)((t=>{t&&At.A.setCache(e,t)})))}searchFormById(e,t){if(e&&t){const[n,o]=t.split(";"),r={formId:e,itemId:n,typeId:o};return this.getFormById(r)}return at.w}start(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.startChat(e,{type_id:t?C.wb.ASSISTANT:C.wb.CLIENT})}inviteOperator(){return this.transport.emit(y.Vt.inviteOperator)}inviteInternationalOperator(){this.transport.emit(y.Vt.inviteInternationalOperator)}refreshCaptcha(){this.transport.emit(y.Vt.refreshCaptcha)}sendMessage(e,t){const n=kt.A.generateWidgetMessageId(this.transport.socketId),o={text:e,wm_id:n};let r;t&&(o.reply_to=t);const i=()=>{r||(r=kt.A.getOutgoingTextMessage(n,e,t,i),r.outgoing_state.is_sending=!0,wt.fo.addMessage(r)),this.transport.emitWithCallback(y.Vt.sendMessage,o).subscribe({next:e=>{wt.fo.setOutgoingMessageSent(r,e)},error:()=>{r.outgoing_state.is_sending=!1}})};i()}chatMessagePreview(e){this.transport.emit(y.Vt.chatMessagePreview,{text:e})}clientChatFinish(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.yG.none;var n;const o=Te.o5.chat_id||(null===(n=Te.o5.previous_chat_state)||void 0===n?void 0:n.chat_id);return wt.fo.resetState(),o&&this.transport.emit(y.Vt.chatFinish,{email:e,mark:t}),o}setMessageDelivered(e){const t=(e||[]).filter((e=>{let{delivered:t,is_user_reply:n}=e;return!n&&!t}));return this.setDelivered(t)}setAllMessagesDelivered(){return this.setMessageDelivered(Te.o5.messages)}sendOfflineRequest(e){this.transport.emit(y.Vt.offlineRequest,e)}checkingDocument(){this.transport.emit(y.Vt.documentChecking)}getProblemList(){return this.transport.emitWithCallback(y.Vt.requestProblemList)}sendDonate(e,t,n){const o=Object.assign({},e);t&&(o.to_closed_chat_id=t),this.transport.emitWithCallback(y.Vt.operateDonate,o).subscribe((e=>{Ct.A.operatorDonateBuyResult.next(e),n(e)}))}emitOperatorCharacterNeverPrompt(){this.transport.emit(y.Vt.chatOperatorCharacter,{never_prompt:!0})}emitOperatorCharacter(e){this.transport.emit(y.Vt.chatOperatorCharacter,{character_id:{value:e}})}playAudio(){const e=C.uu.audioContainerId,t=document.getElementById(e),n=t&&t.play();void 0!==n&&n.then((()=>{t&&t.play()})).catch((e=>{console.log(e)}))}getUnreadOperatorMessages(e){return(e||[]).filter((e=>!e.delivered&&!e.is_user_reply&&!e.is_system_reply))}requireResponseSeenChat(e){this.transport.emit(y.Vt.requireResponse,{type:"seen-request",chat_id:e})}requireResponseStartChat(e,t){this.transport.emit(y.Vt.requireResponse,{chat_id:e,message_text:t,type:"start-chat"})}getConnectionData(){const e={new_visitor:!this.$storage.get(C.uu.newVisitorKey),widget_version:C.qb,client_text_timezone:(0,bo.qL)(),navigator:(0,bo.PD)()};return Te.yq.locale&&(e.locale=Te.yq.locale),this.$storage.set(C.uu.newVisitorKey,1),e}setOpenChatTriggers(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;return o=>o.pipe((0,v.T)((o=>({can_open_window:"function"==typeof e?e:()=>e,get_chat:"function"==typeof t?t:()=>t,options:"function"==typeof n?n(o):n}))))},t=e=>t=>t.pipe((0,v.T)((t=>Object.assign(Object.assign({},t),{route:"function"==typeof e?e:()=>e})))),n=()=>Te.P7.operators_online,o=()=>!!wt.jT.windowShowSavedState,r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return n()?e?y.bw.CHAT_FLOW.path:y.bw.CHAT.path:y.bw.FEEDBACK.path},i=(0,lt.h)(this.transport.on(y.Oh.connected).pipe((0,v.T)((e=>null==e?void 0:e.require_response_chat_id))),this.transport.on(y.Oh.requireResponse).pipe((0,ut.p)((e=>"require_response"===(null==e?void 0:e.type)&&!!(null==e?void 0:e.chat_id))),(0,v.T)((e=>{let{chat_id:t}=e;return t})))).pipe((0,ut.p)((e=>!!e)),(0,b.n)((n=>(0,ot.of)(null).pipe(e(!0,!1),t({name:y.bw.HISTORY_DETAIL.name,params:{historyId:n},hash:C.pL}))))),s=this.transport.on(y.Oh.connected).pipe((0,v.T)((e=>null==e?void 0:e.has_active_chat)),(0,ut.p)((e=>!!e)),(0,b.n)((t=>{let{type_id:n}=t;return(0,ot.of)(null).pipe(e(o,!0,{type_id:null!=n?n:C.wb.CLIENT}))})),t(y.bw.CHAT.path)),a=this.transport.on(y.Oh.chatPush).pipe(e(o,!0,{type_id:C.wb.PUSH}),t(y.bw.CHAT.path)),l=oe.o.listen(y.L0.openChat).pipe((0,b.n)((n=>{const{status_id:o,type_id:i}=Te.o5,s=i===C.wb.DEFERRED&&o===C.g6.STATUS_DEFERRED,a=!!n.data.messageText,l=s||a;return(0,ot.of)(n).pipe(e(!0,(()=>r(this.isChatFlowEnabled&&!l)===y.bw.CHAT.path),(e=>{let{data:t}=e;return{message_text:(null==t?void 0:t.messageText)||void 0}})),t((()=>r(this.isChatFlowEnabled&&!l))))}))),c=oe.o.listen(y.L0.openRegistrationChat).pipe(e(!0,n,{type_id:C.wb.VERIFICATION}),t(r)),u=oe.o.listen(y.L0.openAutoChat).pipe(e(!0,n,(e=>{let{data:t}=e;const{scriptId:n=0}=null!=t?t:{};return{type_id:C.wb.AUTO,script_id:n}})),t(r)),d=oe.o.listen(y.L0.openWindow).pipe((0,ut.p)((()=>Te.kW.status!==y.ZF.OPEN)),e(!0,(()=>Te.P7.chat_at_once)),t((()=>Te.P7.chat_at_once?y.bw.CHAT.path:void 0)),(p=()=>{Te.kW.status===y.ZF.OPEN&&this.sendLog(C.Mj.SHOW_CHAT)},e=>e.pipe((0,v.T)((e=>Object.assign(Object.assign({},e),{after_action:p}))))));var p;const h=(0,lt.h)(s,a,l,c,u,d,i).pipe(pt((e=>this.refreshUserInfo().pipe((0,v.T)((()=>e)))))),f=(0,lt.h)(this.listen(y.Oh.chatInit),this.listen(y.Oh.captchaShow)).pipe(e(o,!1),t(y.bw.CHAT.path));(0,lt.h)(h,f).pipe(pt((e=>{const{get_chat:t,options:n}=e;return t()?(this.startChat("",n),f.pipe((0,_.s)(1),(0,v.T)((()=>e)))):(0,ot.of)(e)})),(0,b.n)((e=>{const t=e.route();return t?(0,ct.H)(ue.gt.push(t)).pipe((0,v.T)((()=>e))):(0,ot.of)(e)}))).subscribe((e=>{e.can_open_window()&&wt.jT.openWindow(),"after_action"in e&&e.after_action()}))}openFormFromFaq(e){const t=C.zX.FROM_FAQ;return this.searchAndOpenForm(e,`0;${t}`).pipe((0,_.s)(1)).subscribe((()=>{this.sendLog(C.Mj.OPEN_FORM)}))}searchAndOpenForm(e,t){return this.searchFormById(e,t).pipe((0,ut.p)((e=>!!e)),(0,b.n)((e=>{const t={name:y.bw.RATING_FORM.name,params:{formId:null==e?void 0:e.form_id},query:{itemId:null==e?void 0:e.item_id,typeId:null==e?void 0:e.type_id}};return ue.gt.isCurrentRoute("RATING_FORM")?(0,ct.H)(ue.gt.replace(t)):(0,ct.H)(ue.gt.push(t))})),(0,ut.p)((e=>!e)),st((()=>at.w)))}setFormsListeners(){oe.o.listen(y.L0.openForm).pipe((0,b.n)((e=>{let{data:t}=e;const{formId:n="",additional:o=""}=null!=t?t:{};return this.searchAndOpenForm(n,o)})),pt((()=>this.refreshUserInfo()))).subscribe((()=>{wt.jT.openWindow(),this.sendLog(C.Mj.OPEN_FORM)}))}setFrameListeners(){oe.o.listen(y.L0.closeWindow).subscribe((()=>{wt.jT.closeWindow(!0)})),oe.o.listen(y.L0.refuseChat).subscribe((e=>{let{data:t}=e;this.transport.emit(y.Vt.refuseChat,{script_id:t.scriptId})})),oe.o.listen(y.L0.refreshUserInfo).pipe((0,ht.B)(500),pt((()=>this.refreshUserInfo()))).subscribe()}listenSafe(e){return this.initState.$initialized.pipe((0,b.n)((()=>this.transport.on(e))))}setListeners(){this.transport.on(y.Oh.connect).subscribe((()=>{const e=this.getConnectionData();this.transport.emit(y.Vt.connectionInfo,e),uo.onEmitConnectionInfo(),oe.o.sendMessage(y.Ag.init)})),this.scriptsService.canOpenInvitationRequest.subscribe((e=>{let{scriptId:t}=e;this.transport.emit(y.Vt.canOpenInvitation,{script_id:t})})),this.transport.on(y.Oh.chatInitError).subscribe((()=>{ue.gt.push(y.bw.FAQ.path),wt.fo.resetState()})),this.transport.on(y.Oh.mainError).subscribe((e=>{ue.gP.log(`${y.Oh.mainError}`,e),oe.o.sendMessage(y.Ag.chatError,e||{})})),this.transport.on(y.Oh.storage).subscribe((e=>{Array.isArray(e)&&e.forEach((e=>{const{name:t,value:n}=e||{};"sessionid"===t?wt.ZZ.sessionId=n:this.$storage.set(t,n)}))})),this.transport.on(y.Oh.clientInfo).subscribe((e=>{this.handleClientInfoRefresh(e)})),this.transport.on(y.Oh.connected).subscribe((e=>{this.handleWidgetSettingsRefresh(e)})),this.transport.on(y.Oh.documentCheckingRequested).subscribe((()=>{wt.OG.onDocumentCheckingRequested()})),this.transport.on(y.Oh.operatorChanged).subscribe((e=>{wt.fo.handleOperatorChanged(e)})),this.transport.on(y.Oh.operatorDonateResult).subscribe((e=>{Ct.A.operatorDonateBuyResult.next(e)})),this.transport.on(y.Oh.chatOperatorCharacter).subscribe((e=>{this.operatorCharacters.handleOperatorCharacterResponse(e)})),this.transport.on(y.Oh.chatInit).subscribe((e=>{if(this.behaviorListeners.captcha.resetData(),wt.fo.handleChatInit(e),e.type_id===C.wb.PUSH||e.type_id===C.wb.DEFERRED){const[t]=e.messages;t.delivered&&e.status_id!==C.g6.STATUS_DEFERRED||this.playAudio()}this.operatorCharacters.handleChatInit(e),this.afterChatMessagesReceived(Te.o5.messages||[],!0)})),this.transport.on(y.Oh.message).pipe((0,ut.p)((()=>!!Te.o5.chat_id))).subscribe((e=>{const t=kt.A.parse(e);wt.fo.addMessage(t),this.afterChatMessagesReceived([t])})),this.transport.on(y.Oh.internationalOperatorInvited).subscribe((()=>{wt.fo.setIntOperatorInvited()})),this.transport.on(y.Oh.updateMessage).pipe((0,ut.p)((()=>!!Te.o5.chat_id))).subscribe((e=>{wt.fo.updateMessage(e)})),(0,lt.h)(this.transport.on(y.Oh.chatFinish),this.transport.on(y.Oh.connected).pipe((0,ut.p)((e=>!!Te.o5.chat_id&&!e.has_active_chat)))).pipe(function(e,t){void 0===t&&(t=ft.E);var n=(0,yt.O)(0,t);return _t((function(){return n}))}()).subscribe((()=>{wt.fo.resetState(),Et.A.resetCounter(),this.operatorCharacters.resetDialogSavedStates()})),this.transport.on(y.Oh.chatToProcess).subscribe((e=>{Te.o5.status_id=C.g6.STATUS_IN_PROCESS,this.playAudio(),wt.fo.handleChatToProcess(e),this.afterChatMessagesReceived(Te.o5.messages||[],!0)})),this.transport.on(y.Oh.canOpenInvitation).subscribe((e=>{this.scriptsService.renderPushRequest(e)})),this.transport.on(y.Oh.changeLocale).subscribe((e=>{this.handleChangeLocale(e)})),this.transport.on(y.Oh.markMessagesRead).subscribe((e=>{(Te.o5.messages||[]).forEach((t=>{(null==e?void 0:e.indexOf(t.id))>-1&&(t.delivered=1)})),this.afterChatMessagesReceived(Te.o5.messages||[],!0)})),this.behaviorListeners.captcha.setEventSource(this.transport.on(y.Oh.captchaShow)),this.$uploader.pipe((0,b.n)((e=>e.$onUploadError)),(0,ut.p)((()=>!this.pauseUploadErrorSystemMessages))).subscribe((e=>{var t,n;let o=null===(t=null==e?void 0:e.errorData)||void 0===t?void 0:t.message;switch(null===(n=null==e?void 0:e.errorData)||void 0===n?void 0:n.code){case Mt.UploadErrorCodes.MaxFileSizeExceeded:o=this.uploadMaxSizeErrorText;break;case Mt.UploadErrorCodes.EmptyFile:o=this.emptyFileErrorText}wt.fo.addSystemMessage(o)}))}get emptyFileErrorText(){const{$translates:e}=oe.y.globalProperties;return e.getTranslate("fl_file_size_zero")}get uploadMaxSizeErrorText(){const{$translates:e}=oe.y.globalProperties;return e.getTranslate("fl_file_size_exceeded",{max_size:mo.maxFileSize/1e3/1e3})}afterChatMessagesReceived(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&Et.A.resetCounter();const t=this.getUnreadOperatorMessages(e);t.length&&(this.canMessagesBeRead?this.setDelivered(t):Et.A.addMessages(t))}handleClientInfoRefresh(e){ue.gP.log("handleClientInfoRefresh",e),wt.OG.resetState(),wt.OG.updateState(null==e?void 0:e.widget_behaviour),wt.w5.updateState(null==e?void 0:e.widget_settings),wt.B1.updateState(null==e?void 0:e.donates_feature),wt.vz.updateState(null==e?void 0:e.characters_feature),Y.A.init(e.faq)}handleWidgetSettingsRefresh(e){var t;wt.$2.resetState(),wt.$2.updateState(null==e?void 0:e.project_settings),wt.w5.setTheme([Te.yq.theme,null==e?void 0:e.project_settings.theme]);const n=null!==(t=e.translates)&&void 0!==t?t:{},{translates:o}=n,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const n=Object.assign(Object.assign({},t||{}),{type_id:(null==t?void 0:t.type_id)||C.wb.CLIENT});e&&(n.captcha_text=e),Te.o5.start_chat_message&&(n.message_text=Te.o5.start_chat_message),wt.fo.setChatStartCalled(),this.transport.emit(y.Vt.getChat,n)}setDelivered(e){if(null==e?void 0:e.length){const t=e.map((e=>(e.delivered=1,e.id)));this.transport.emit(y.Vt.messageDelivered,t),Et.A.removeMessages(t)}}},_o={install:e=>{const{globalProperties:t}=e.config,{$translates:n,$storage:o}=t;t.$chatService=new vo(n,o)}},yo="undefined"!=typeof window,wo=(e,t=!1)=>t?Symbol.for(e):Symbol(e),xo=(e,t,n)=>Eo({l:e,k:t,s:n}),Eo=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ko=e=>"number"==typeof e&&isFinite(e),So=e=>"[object Date]"===Wo(e),To=e=>"[object RegExp]"===Wo(e),Co=e=>Bo(e)&&0===Object.keys(e).length,Ao=Object.assign;let Oo;const Lo=()=>Oo||(Oo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function Io(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const Ro=Object.prototype.hasOwnProperty;function No(e,t){return Ro.call(e,t)}const Mo=Array.isArray,Po=e=>"function"==typeof e,Fo=e=>"string"==typeof e,Do=e=>"boolean"==typeof e,Uo=e=>null!==e&&"object"==typeof e,jo=e=>Uo(e)&&Po(e.then)&&Po(e.catch),$o=Object.prototype.toString,Wo=e=>$o.call(e),Bo=e=>{if(!Uo(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function qo(e,t=""){return e.reduce(((e,n,o)=>0===o?e+n:e+t+n),"")}function zo(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ho=e=>!Uo(e)||Mo(e);function Yo(e,t){if(Ho(e)||Ho(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((o=>{Ho(e[o])||Ho(t[o])?t[o]=e[o]:n.push({src:e[o],des:t[o]})}))}}function Vo(e,t,n){const o={start:e,end:t};return null!=n&&(o.source=n),o}const Xo={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};function Go(e,t,n={}){const{domain:o,messages:r,args:i}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=o,s}function Qo(e){throw e}Xo.EXPECTED_TOKEN,Xo.INVALID_TOKEN_IN_PLACEHOLDER,Xo.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,Xo.UNKNOWN_ESCAPE_SEQUENCE,Xo.INVALID_UNICODE_ESCAPE_SEQUENCE,Xo.UNBALANCED_CLOSING_BRACE,Xo.UNTERMINATED_CLOSING_BRACE,Xo.EMPTY_PLACEHOLDER,Xo.NOT_ALLOW_NEST_PLACEHOLDER,Xo.INVALID_LINKED_FORMAT,Xo.MUST_HAVE_MESSAGES_IN_PLURAL,Xo.UNEXPECTED_EMPTY_LINKED_MODIFIER,Xo.UNEXPECTED_EMPTY_LINKED_KEY,Xo.UNEXPECTED_LEXICAL_ANALYSIS,Xo.UNHANDLED_CODEGEN_NODE_TYPE,Xo.UNHANDLED_MINIFIER_NODE_TYPE;const Ko=" ",Zo="\r",Jo="\n",er=String.fromCharCode(8232),tr=String.fromCharCode(8233);function nr(e){const t=e;let n=0,o=1,r=1,i=0;const s=e=>t[e]===Zo&&t[e+1]===Jo,a=e=>t[e]===tr,l=e=>t[e]===er,c=e=>s(e)||a(e)||l(e)?Jo:t[e];function u(){return i=0,(s(e=n)||(e=>t[e]===Jo)(e)||a(e)||l(e))&&(o++,r=0),s(n)&&n++,n++,r++,t[n];var e}return{index:()=>n,line:()=>o,column:()=>r,peekOffset:()=>i,charAt:c,currentChar:()=>c(n),currentPeek:()=>c(n+i),next:u,peek:function(){return s(n+i)&&i++,i++,t[n+i]},reset:function(){n=0,o=1,r=1,i=0},resetPeek:function(e=0){i=e},skipToPeek:function(){const e=n+i;for(;e!==n;)u();i=0}}}const or=void 0,rr="'",ir="tokenizer";function sr(e,t={}){const n=!1!==t.location,o=nr(e),r=()=>o.index(),i=()=>({line:o.line(),column:o.column(),offset:o.index()}),s=i(),a=r(),l={currentType:13,offset:a,startLoc:s,endLoc:s,lastType:13,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,o,...r){const i=c();if(t.column+=o,t.offset+=o,u){const o=Go(e,n?Vo(i.startLoc,t):null,{domain:ir,args:r});u(o)}}function p(e,t,o){e.endLoc=i(),e.currentType=t;const r={type:t};return n&&(r.loc=Vo(e.startLoc,e.endLoc)),null!=o&&(r.value=o),r}const h=e=>p(e,13);function f(e,t){return e.currentChar()===t?(e.next(),t):(d(Xo.EXPECTED_TOKEN,i(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===Ko||e.currentPeek()===Jo;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function b(e){if(e===or)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function _(e,t=!0){const n=(t=!1,o="")=>{const r=e.currentPeek();return"{"===r?t:"@"!==r&&r?"|"===r?!(o===Ko||o===Jo):r===Ko?(e.peek(),n(!0,Ko)):r!==Jo||(e.peek(),n(!0,Jo)):t},o=n();return t&&e.resetPeek(),o}function y(e,t){const n=e.currentChar();return n===or?or:t(n)?(e.next(),n):null}function w(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function x(e){return y(e,w)}function E(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function k(e){return y(e,E)}function S(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function T(e){return y(e,S)}function C(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function A(e){return y(e,C)}function O(e){let t="",n="";for(;t=T(e);)n+=t;return n}function L(e){return e!==rr&&e!==Jo}function I(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return R(e,t,4);case"U":return R(e,t,6);default:return d(Xo.UNKNOWN_ESCAPE_SEQUENCE,i(),0,t),""}}function R(e,t,n){f(e,t);let o="";for(let r=0;r=1&&d(Xo.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),e.next(),n=p(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(Xo.EMPTY_PLACEHOLDER,i(),0),e.next(),n=p(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(Xo.UNTERMINATED_CLOSING_BRACE,i(),0),n=F(e,t)||h(t),t.braceNest=0,n;default:{let o=!0,r=!0,s=!0;if(v(e))return t.braceNest>0&&d(Xo.UNTERMINATED_CLOSING_BRACE,i(),0),n=p(t,1,M(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return d(Xo.UNTERMINATED_CLOSING_BRACE,i(),0),t.braceNest=0,D(e,t);if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const o=b(e.currentPeek());return e.resetPeek(),o}(e,t))return n=p(t,4,function(e){g(e);let t="",n="";for(;t=k(e);)n+=t;return e.currentChar()===or&&d(Xo.UNTERMINATED_CLOSING_BRACE,i(),0),n}(e)),g(e),n;if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const o=function(e){if(e===or)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),o}(e,t))return n=p(t,5,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${O(e)}`):t+=O(e),e.currentChar()===or&&d(Xo.UNTERMINATED_CLOSING_BRACE,i(),0),t}(e)),g(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const o=e.currentPeek()===rr;return e.resetPeek(),o}(e,t))return n=p(t,6,function(e){g(e),f(e,"'");let t="",n="";for(;t=y(e,L);)n+="\\"===t?I(e):t;const o=e.currentChar();return o===Jo||o===or?(d(Xo.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),o===Jo&&(e.next(),f(e,"'")),n):(f(e,"'"),n)}(e)),g(e),n;if(!o&&!r&&!s)return n=p(t,12,function(e){g(e);let t="",n="";for(;t=y(e,N);)n+=t;return n}(e)),d(Xo.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,n.value),g(e),n;break}}return n}function F(e,t){const{currentType:n}=t;let o=null;const r=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||r!==Jo&&r!==Ko||d(Xo.INVALID_LINKED_FORMAT,i(),0),r){case"@":return e.next(),o=p(t,7,"@"),t.inLinked=!0,o;case".":return g(e),e.next(),p(t,8,".");case":":return g(e),e.next(),p(t,9,":");default:return v(e)?(o=p(t,1,M(e)),t.braceNest=0,t.inLinked=!1,o):function(e,t){const{currentType:n}=t;if(7!==n)return!1;m(e);const o="."===e.currentPeek();return e.resetPeek(),o}(e,t)||function(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;m(e);const o=":"===e.currentPeek();return e.resetPeek(),o}(e,t)?(g(e),F(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const o=b(e.currentPeek());return e.resetPeek(),o}(e,t)?(g(e),p(t,11,function(e){let t="",n="";for(;t=x(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(9!==n)return!1;const o=()=>{const t=e.currentPeek();return"{"===t?b(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===Ko||!t)&&(t===Jo?(e.peek(),o()):_(e,!1))},r=o();return e.resetPeek(),r}(e,t)?(g(e),"{"===r?P(e,t)||o:p(t,10,function(e){const t=n=>{const o=e.currentChar();return"{"!==o&&"@"!==o&&"|"!==o&&"("!==o&&")"!==o&&o?o===Ko?n:(n+=o,e.next(),t(n)):n};return t("")}(e))):(7===n&&d(Xo.INVALID_LINKED_FORMAT,i(),0),t.braceNest=0,t.inLinked=!1,D(e,t))}}function D(e,t){let n={type:13};if(t.braceNest>0)return P(e,t)||h(t);if(t.inLinked)return F(e,t)||h(t);switch(e.currentChar()){case"{":return P(e,t)||h(t);case"}":return d(Xo.UNBALANCED_CLOSING_BRACE,i(),0),e.next(),p(t,3,"}");case"@":return F(e,t)||h(t);default:if(v(e))return n=p(t,1,M(e)),t.braceNest=0,t.inLinked=!1,n;if(_(e))return p(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===Ko||n===Jo)if(_(e))t+=n,e.next();else{if(v(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=r(),l.startLoc=i(),o.currentChar()===or?p(l,13):D(o,l)},currentOffset:r,currentPosition:i,context:c}}const ar="parser",lr=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function cr(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function ur(e={}){const t=!1!==e.location,{onError:n}=e;function o(e,o,r,i,...s){const a=e.currentPosition();if(a.offset+=i,a.column+=i,n){const e=Go(o,t?Vo(r,a):null,{domain:ar,args:s});n(e)}}function r(e,n,o){const r={type:e};return t&&(r.start=n,r.end=n,r.loc={start:o,end:o}),r}function i(e,n,o,r){t&&(e.end=n,e.loc&&(e.loc.end=o))}function s(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,i(o,e.currentOffset(),e.currentPosition()),o}function a(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,a=r(5,o,s);return a.index=parseInt(t,10),e.nextToken(),i(a,e.currentOffset(),e.currentPosition()),a}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,a=r(4,o,s);return a.key=t,e.nextToken(),i(a,e.currentOffset(),e.currentPosition()),a}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,a=r(9,o,s);return a.value=t.replace(lr,cr),e.nextToken(),i(a,e.currentOffset(),e.currentPosition()),a}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let s=e.nextToken();if(8===s.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:s,lastStartLoc:a}=n,l=r(8,s,a);return 11!==t.type?(o(e,Xo.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),l.value="",i(l,s,a),{nextConsumeToken:t,node:l}):(null==t.value&&o(e,Xo.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,dr(t)),l.value=t.value||"",i(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,s=t.nextConsumeToken||e.nextToken()}switch(9!==s.type&&o(e,Xo.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,dr(s)),s=e.nextToken(),2===s.type&&(s=e.nextToken()),s.type){case 10:null==s.value&&o(e,Xo.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,dr(s)),n.key=function(e,t){const n=e.context(),o=r(7,n.offset,n.startLoc);return o.value=t,i(o,e.currentOffset(),e.currentPosition()),o}(e,s.value||"");break;case 4:null==s.value&&o(e,Xo.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,dr(s)),n.key=l(e,s.value||"");break;case 5:null==s.value&&o(e,Xo.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,dr(s)),n.key=a(e,s.value||"");break;case 6:null==s.value&&o(e,Xo.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,dr(s)),n.key=c(e,s.value||"");break;default:{o(e,Xo.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const a=e.context(),l=r(7,a.offset,a.startLoc);return l.value="",i(l,a.offset,a.startLoc),n.key=l,i(n,a.offset,a.startLoc),{nextConsumeToken:s,node:n}}}return i(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let d=null;do{const r=d||e.nextToken();switch(d=null,r.type){case 0:null==r.value&&o(e,Xo.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,dr(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&o(e,Xo.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,dr(r)),n.items.push(a(e,r.value||""));break;case 4:null==r.value&&o(e,Xo.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,dr(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&o(e,Xo.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,dr(r)),n.items.push(c(e,r.value||""));break;case 7:{const t=u(e);n.items.push(t.node),d=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return i(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}return{parse:function(n){const s=sr(n,Ao({},e)),a=s.context(),l=r(0,a.offset,a.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=function(e){const t=e.context(),{offset:n,startLoc:s}=t,a=d(e);return 13===t.currentType?a:function(e,t,n,s){const a=e.context();let l=0===s.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(s);do{const t=d(e);l||(l=0===t.items.length),c.cases.push(t)}while(13!==a.currentType);return l&&o(e,Xo.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),i(c,e.currentOffset(),e.currentPosition()),c}(e,n,s,a)}(s),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==a.currentType&&o(s,Xo.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,n[a.offset]||""),i(l,s.currentOffset(),s.currentPosition()),l}}}function dr(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function pr(e,t){for(let n=0;n1){e.push(`${n("plural")}([`),e.indent(o());const r=t.cases.length;for(let n=0;n{const n=Fo(t.mode)?t.mode:"normal",o=Fo(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,a=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:o,breakLineCode:r,needIndent:i}=t,s={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};function a(e,t){s.code+=e}function l(e,t=!0){const n=t?r:"";a(i?n+" ".repeat(e):n)}return!1!==t.location&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:a,indent:function(e=!0){const t=++s.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&l(t)},newline:function(){l(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:o,sourceMap:r,breakLineCode:i,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),a.length>0&&(l.push(`const { ${qo(a.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),gr(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function vr(e,t={}){const n=Ao({},t),o=!!n.jit,r=!!n.minify,i=null==n.optimize||n.optimize,s=ur(n).parse(e);return o?(i&&function(e){const t=e.body;2===t.type?fr(t):t.cases.forEach((e=>fr(e)))}(s),r&&mr(s),{ast:s,code:""}):(function(e){const t=function(e){const t={ast:e,helpers:new Set};return{context:()=>t,helper:e=>(t.helpers.add(e),e)}}(e);t.helper("normalize"),e.body&&hr(e.body,t);const n=t.context();e.helpers=Array.from(n.helpers)}(s,n),br(s,n))}function _r(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,o=t.c||t.cases;return e.plural(o.reduce(((t,n)=>[...t,yr(e,n)]),[]))}return yr(e,n)}(t,e)}function yr(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,wr(e,n)]),[]);return e.normalize(n)}}function wr(e,t){const n=t.t||t.type;switch(n){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(null!=n.i?n.i:n.index))}case 6:{const n=t,o=n.m||n.modifier;return e.linked(wr(e,n.k||n.key),o?wr(e,o):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const xr=e=>e;let Er=Object.create(null);const kr=e=>Uo(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);let Sr=null;const Tr=Cr("function:translate");function Cr(e){return t=>Sr&&Sr.emit(e,t)}const Ar={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Or(e){return Go(e,null,void 0)}function Lr(e,t){return null!=t.locale?Rr(t.locale):Rr(e.locale)}let Ir;function Rr(e){if(Fo(e))return e;if(Po(e)){if(e.resolvedOnce&&null!=Ir)return Ir;if("Function"===e.constructor.name){const t=e();if(jo(t))throw Or(Ar.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Ir=t}throw Or(Ar.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Or(Ar.NOT_SUPPORT_LOCALE_TYPE)}function Nr(e,t,n){return[...new Set([n,...Mo(t)?t:Uo(t)?Object.keys(t):Fo(t)?[t]:[n]])]}function Mr(e,t,n){const o=Fo(n)?n:Hr,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(o);if(!i){i=[];let e=[n];for(;Mo(e);)e=Pr(i,e,t);const s=Mo(t)||!Bo(t)?t:t.default?t.default:null;e=Fo(s)?[s]:s,Mo(e)&&Pr(i,e,!1),r.__localeChainCache.set(o,i)}return i}function Pr(e,t,n){let o=!0;for(let r=0;r`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Xr,Gr,Qr,Kr=null;const Zr=e=>{Kr=e},Jr=()=>Kr;let ei=null;const ti=e=>{ei=e},ni=()=>ei;let oi=0;function ri(e,t,n,o,r){const{missing:i,onWarn:s}=e;if(null!==i){const o=i(e,n,t,r);return Fo(o)?o:t}return t}function ii(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function si(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let i=n+1;i{ci.includes(e)?a[e]=n[e]:i[e]=n[e]})),Fo(o)?i.locale=o:Bo(o)&&(a=o),Bo(r)&&(a=r),[i.key||"",s,i,a]}function di(e,t,n){const o=e;for(const e in n){const n=`${t}__${e}`;o.__datetimeFormatters.has(n)&&o.__datetimeFormatters.delete(n)}}function pi(e,...t){const{numberFormats:n,unresolving:o,fallbackLocale:r,onWarn:i,localeFallbacker:s}=e,{__numberFormatters:a}=e,[l,c,u,d]=fi(...t),p=(Do(u.missingWarn)?u.missingWarn:e.missingWarn,Do(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),h=Lr(e,u),f=s(e,r,h);if(!Fo(l)||""===l)return new Intl.NumberFormat(h,d).format(c);let m,g={},b=null,v=h,_=null;for(let t=0;t{hi.includes(e)?s[e]=n[e]:i[e]=n[e]})),Fo(o)?i.locale=o:Bo(o)&&(s=o),Bo(r)&&(s=r),[i.key||"",a,i,s]}function mi(e,t,n){const o=e;for(const e in n){const n=`${t}__${e}`;o.__numberFormatters.has(n)&&o.__numberFormatters.delete(n)}}const gi=e=>e,bi=e=>"",vi="text",_i=e=>0===e.length?"":qo(e),yi=e=>null==e?"":Mo(e)||Bo(e)&&e.toString===$o?JSON.stringify(e,null,2):String(e);function wi(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}const xi=()=>"",Ei=e=>Po(e);function ki(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:r,messageCompiler:i,fallbackLocale:s,messages:a}=e,[l,c]=Ci(...t),u=(Do(c.missingWarn)?c.missingWarn:e.missingWarn,Do(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,Do(c.escapeParameter)?c.escapeParameter:e.escapeParameter),d=!!c.resolvedMessage,p=Fo(c.default)||Do(c.default)?Do(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:null,h=n||null!=p&&(Fo(p)||Po(p)),f=Lr(e,c);u&&function(e){Mo(e.list)?e.list=e.list.map((e=>Fo(e)?Io(e):e)):Uo(e.named)&&Object.keys(e.named).forEach((t=>{Fo(e.named[t])&&(e.named[t]=Io(e.named[t]))}))}(c);let[m,g,b]=d?[l,f,a[f]||{}]:Si(e,l,f,s),v=m,_=l;if(d||Fo(v)||kr(v)||Ei(v)||h&&(v=p,_=v),!(d||(Fo(v)||kr(v)||Ei(v))&&Fo(g)))return r?zr:l;let y=!1;const w=Ei(v)?v:Ti(e,l,g,v,_,(()=>{y=!0}));if(y)return v;const x=function(e,t,n,o){const{modifiers:r,pluralRules:i,messageResolver:s,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:r,pluralRules:i,messages:(o,r)=>{let i=s(n,o);if(null==i&&(u||r)){const[,,n]=Si(u||e,o,t,a);i=s(n,o)}if(Fo(i)||kr(i)){let n=!1;const r=Ti(e,o,t,i,o,(()=>{n=!0}));return n?xi:r}return Ei(i)?i:xi}};return e.processor&&(d.processor=e.processor),o.list&&(d.list=o.list),o.named&&(d.named=o.named),ko(o.plural)&&(d.pluralIndex=o.plural),d}(e,g,b,c),E=function(e,t,n){return t(n)}(0,w,function(e={}){const t=e.locale,n=function(e){const t=ko(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ko(e.named.count)||ko(e.named.n))?ko(e.named.count)?e.named.count:ko(e.named.n)?e.named.n:t:t}(e),o=Uo(e.pluralRules)&&Fo(t)&&Po(e.pluralRules[t])?e.pluralRules[t]:wi,r=Uo(e.pluralRules)&&Fo(t)&&Po(e.pluralRules[t])?wi:void 0,i=e.list||[],s=e.named||{};function a(t,n){return(Po(e.messages)?e.messages(t,!!n):!!Uo(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):bi)}ko(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);const l=Bo(e.processor)&&Po(e.processor.normalize)?e.processor.normalize:_i,c=Bo(e.processor)&&Po(e.processor.interpolate)?e.processor.interpolate:yi,u={list:e=>i[e],named:e=>s[e],plural:e=>e[o(n,e.length,r)],linked:(t,...n)=>{const[o,r]=n;let i="text",s="";1===n.length?Uo(o)?(s=o.modifier||s,i=o.type||i):Fo(o)&&(s=o||s):2===n.length&&(Fo(o)&&(s=o||s),Fo(r)&&(i=r||i));const l=a(t,!0)(u),c="vnode"===i&&Mo(l)&&s?l[0]:l;return s?(d=s,e.modifiers?e.modifiers[d]:gi)(c,i):c;var d},message:a,type:Bo(e.processor)&&Fo(e.processor.type)?e.processor.type:vi,interpolate:c,normalize:l,values:Ao({},i,s)};return u}(x)),k=o?o(E,l):E;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:Fo(l)?l:Ei(v)?v.key:"",locale:g||(Ei(v)?v.locale:""),format:Fo(v)?v:Ei(v)?v.source:"",message:k};t.meta=Ao({},e.__meta,Jr()||{}),Tr(t)}return k}function Si(e,t,n,o,r,i){const{messages:s,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,o,n);let d,p={},h=null,f=n,m=null;for(let n=0;no;return e.locale=n,e.key=t,e}const l=s(o,function(e,t,n,o,r,i){return{locale:t,key:n,warnHtmlMessage:r,onError:e=>{throw i&&i(e),e},onCacheKey:e=>xo(t,n,e)}}(0,n,r,0,a,i));return l.locale=n,l.key=t,l.source=o,l}function Ci(...e){const[t,n,o]=e,r={};if(!(Fo(t)||ko(t)||Ei(t)||kr(t)))throw Or(Ar.INVALID_ARGUMENT);const i=ko(t)?String(t):(Ei(t),t);return ko(n)?r.plural=n:Fo(n)?r.default=n:Bo(n)&&!Co(n)?r.named=n:Mo(n)&&(r.list=n),ko(o)?r.plural=o:Fo(o)?r.default=o:Bo(o)&&Ao(r,o),[i,r]}"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(Lo().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(Lo().__INTLIFY_DROP_MESSAGE_COMPILER__=!1);const Ai="10.0.1",Oi={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Li(e,...t){return Go(e,null,void 0)}Oi.UNEXPECTED_RETURN_TYPE,Oi.INVALID_ARGUMENT,Oi.MUST_BE_CALL_SETUP_TOP,Oi.NOT_INSTALLED,Oi.UNEXPECTED_ERROR,Oi.REQUIRED_VALUE,Oi.INVALID_VALUE,Oi.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,Oi.NOT_INSTALLED_WITH_PROVIDE,Oi.NOT_COMPATIBLE_LEGACY_VUE_I18N,Oi.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;const Ii=wo("__translateVNode"),Ri=wo("__datetimeParts"),Ni=wo("__numberParts"),Mi=wo("__setPluralRules");wo("__intlifyMeta");const Pi=wo("__injectWithOption"),Fi=wo("__dispose");function Di(e){if(!Uo(e))return e;for(const t in e)if(No(e,t))if(t.includes(".")){const n=t.split("."),o=n.length-1;let r=e,i=!1;for(let e=0;e{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},Yo(n,s[t])):Yo(n,s)}else Fo(e)&&Yo(JSON.parse(e),s)})),null==r&&i)for(const e in s)No(s,e)&&Di(s[e]);return s}function ji(e){return e.type}function $i(e,t,n){let o=Uo(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=Ui(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const r=Object.keys(o);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,o[t])})),Uo(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(Uo(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function Wi(e){return(0,w.bF)(w.EY,null,e,0)}const Bi="__INTLIFY_META__",qi=()=>[],zi=()=>!1;let Hi=0;function Yi(e){return(t,n,o,r)=>e(n,o,(0,w.nI)()||void 0,r)}const Vi=()=>{const e=(0,w.nI)();let t=null;return e&&(t=ji(e)[Bi])?{[Bi]:t}:null};function Xi(e={}){const{__root:t,__injectWithOption:n}=e,o=void 0===t,r=e.flatJson,i=yo?Ae.KR:Ae.IJ;let s=!Do(e.inheritLocale)||e.inheritLocale;const a=i(t&&s?t.locale.value:Fo(e.locale)?e.locale:Hr),l=i(t&&s?t.fallbackLocale.value:Fo(e.fallbackLocale)||Mo(e.fallbackLocale)||Bo(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a.value),c=i(Ui(a.value,e)),u=i(Bo(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),d=i(Bo(e.numberFormats)?e.numberFormats:{[a.value]:{}});let p=t?t.missingWarn:!Do(e.missingWarn)&&!To(e.missingWarn)||e.missingWarn,h=t?t.fallbackWarn:!Do(e.fallbackWarn)&&!To(e.fallbackWarn)||e.fallbackWarn,f=t?t.fallbackRoot:!Do(e.fallbackRoot)||e.fallbackRoot,m=!!e.fallbackFormat,g=Po(e.missing)?e.missing:null,b=Po(e.missing)?Yi(e.missing):null,v=Po(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:!Do(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter;const x=t?t.modifiers:Bo(e.modifiers)?e.modifiers:{};let E,k=e.pluralRules||t&&t.pluralRules;E=(()=>{o&&ti(null);const t={version:Ai,locale:a.value,fallbackLocale:l.value,messages:c.value,modifiers:x,pluralRules:k,missing:null===b?void 0:b,missingWarn:p,fallbackWarn:h,fallbackFormat:m,unresolving:!0,postTranslation:null===v?void 0:v,warnHtmlMessage:_,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=d.value,t.__datetimeFormatters=Bo(E)?E.__datetimeFormatters:void 0,t.__numberFormatters=Bo(E)?E.__numberFormatters:void 0;const n=function(e={}){const t=Po(e.onWarn)?e.onWarn:zo,n=Fo(e.version)?e.version:qr,o=Fo(e.locale)||Po(e.locale)?e.locale:Hr,r=Po(o)?Hr:o,i=Mo(e.fallbackLocale)||Bo(e.fallbackLocale)||Fo(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,s=Bo(e.messages)?e.messages:{[r]:{}},a=Bo(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},l=Bo(e.numberFormats)?e.numberFormats:{[r]:{}},c=Ao({},e.modifiers||{},{upper:(e,t)=>"text"===t&&Fo(e)?e.toUpperCase():"vnode"===t&&Uo(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&Fo(e)?e.toLowerCase():"vnode"===t&&Uo(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&Fo(e)?Vr(e):"vnode"===t&&Uo(e)&&"__v_isVNode"in e?Vr(e.children):e}),u=e.pluralRules||{},d=Po(e.missing)?e.missing:null,p=!Do(e.missingWarn)&&!To(e.missingWarn)||e.missingWarn,h=!Do(e.fallbackWarn)&&!To(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,m=!!e.unresolving,g=Po(e.postTranslation)?e.postTranslation:null,b=Bo(e.processor)?e.processor:null,v=!Do(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter,y=Po(e.messageCompiler)?e.messageCompiler:Xr,w=Po(e.messageResolver)?e.messageResolver:Gr||Br,x=Po(e.localeFallbacker)?e.localeFallbacker:Qr||Nr,E=Uo(e.fallbackContext)?e.fallbackContext:void 0,k=e,S=Uo(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,T=Uo(k.__numberFormatters)?k.__numberFormatters:new Map,C=Uo(k.__meta)?k.__meta:{};oi++;const A={version:n,cid:oi,locale:o,fallbackLocale:i,messages:s,modifiers:c,pluralRules:u,missing:d,missingWarn:p,fallbackWarn:h,fallbackFormat:f,unresolving:m,postTranslation:g,processor:b,warnHtmlMessage:v,escapeParameter:_,messageCompiler:y,messageResolver:w,localeFallbacker:x,fallbackContext:E,onWarn:t,__meta:C};return A.datetimeFormats=a,A.numberFormats=l,A.__datetimeFormatters=S,A.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&function(e,t,n){Sr&&Sr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(A,n,C),A}(t);return o&&ti(n),n})(),ii(E,a.value,l.value);const S=(0,w.EW)({get:()=>a.value,set:e=>{a.value=e,E.locale=a.value}}),T=(0,w.EW)({get:()=>l.value,set:e=>{l.value=e,E.fallbackLocale=l.value,ii(E,a.value,e)}}),C=(0,w.EW)((()=>c.value)),A=(0,w.EW)((()=>u.value)),O=(0,w.EW)((()=>d.value)),L=(e,n,r,i,s,p)=>{let h;a.value,l.value,c.value,u.value,d.value;try{__INTLIFY_PROD_DEVTOOLS__&&Zr(Vi()),o||(E.fallbackContext=t?ni():void 0),h=e(E)}finally{__INTLIFY_PROD_DEVTOOLS__&&Zr(null),o||(E.fallbackContext=void 0)}if("translate exists"!==r&&ko(h)&&h===zr||"translate exists"===r&&!h){const[e,o]=n();return t&&f?i(t):s(e)}if(p(h))return h;throw Li(Oi.UNEXPECTED_RETURN_TYPE)};function I(...e){return L((t=>Reflect.apply(ki,null,[t,...e])),(()=>Ci(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>Fo(e)))}const R={normalize:function(e){return e.map((e=>Fo(e)||ko(e)||Do(e)?Wi(String(e)):e))},interpolate:e=>e,type:"vnode"};function N(e){return c.value[e]||{}}Hi++,t&&yo&&((0,w.wB)(t.locale,(e=>{s&&(a.value=e,E.locale=e,ii(E,a.value,l.value))})),(0,w.wB)(t.fallbackLocale,(e=>{s&&(l.value=e,E.fallbackLocale=e,ii(E,a.value,l.value))})));const M={id:Hi,locale:S,fallbackLocale:T,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,ii(E,a.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:C,get modifiers(){return x},get pluralRules(){return k||{}},get isGlobal(){return o},get missingWarn(){return p},set missingWarn(e){p=e,E.missingWarn=p},get fallbackWarn(){return h},set fallbackWarn(e){h=e,E.fallbackWarn=h},get fallbackRoot(){return f},set fallbackRoot(e){f=e},get fallbackFormat(){return m},set fallbackFormat(e){m=e,E.fallbackFormat=m},get warnHtmlMessage(){return _},set warnHtmlMessage(e){_=e,E.warnHtmlMessage=e},get escapeParameter(){return y},set escapeParameter(e){y=e,E.escapeParameter=e},t:I,getLocaleMessage:N,setLocaleMessage:function(e,t){if(r){const n={[e]:t};for(const e in n)No(n,e)&&Di(n[e]);t=n[e]}c.value[e]=t,E.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{};const n={[e]:t};if(r)for(const e in n)No(n,e)&&Di(n[e]);Yo(t=n[e],c.value[e]),E.messages=c.value},getPostTranslationHandler:function(){return Po(v)?v:null},setPostTranslationHandler:function(e){v=e,E.postTranslation=e},getMissingHandler:function(){return g},setMissingHandler:function(e){null!==e&&(b=Yi(e)),g=e,E.missing=b},[Mi]:function(e){k=e,E.pluralRules=k}};return M.datetimeFormats=A,M.numberFormats=O,M.rt=function(...e){const[t,n,o]=e;if(o&&!Uo(o))throw Li(Oi.INVALID_ARGUMENT);return I(t,n,Ao({resolvedMessage:!0},o||{}))},M.te=function(e,t){return L((()=>{if(!e)return!1;const n=N(Fo(t)?t:a.value),o=E.messageResolver(n,e);return kr(o)||Ei(o)||Fo(o)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),zi,(e=>Do(e)))},M.tm=function(e){const n=function(e){let t=null;const n=Mr(E,l.value,a.value);for(let o=0;oReflect.apply(li,null,[t,...e])),(()=>ui(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Yr),(e=>Fo(e)))},M.n=function(...e){return L((t=>Reflect.apply(pi,null,[t,...e])),(()=>fi(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Yr),(e=>Fo(e)))},M.getDateTimeFormat=function(e){return u.value[e]||{}},M.setDateTimeFormat=function(e,t){u.value[e]=t,E.datetimeFormats=u.value,di(E,e,t)},M.mergeDateTimeFormat=function(e,t){u.value[e]=Ao(u.value[e]||{},t),E.datetimeFormats=u.value,di(E,e,t)},M.getNumberFormat=function(e){return d.value[e]||{}},M.setNumberFormat=function(e,t){d.value[e]=t,E.numberFormats=d.value,mi(E,e,t)},M.mergeNumberFormat=function(e,t){d.value[e]=Ao(d.value[e]||{},t),E.numberFormats=d.value,mi(E,e,t)},M[Pi]=n,M[Ii]=function(...e){return L((t=>{let n;const o=t;try{o.processor=R,n=Reflect.apply(ki,null,[o,...e])}finally{o.processor=null}return n}),(()=>Ci(...e)),"translate",(t=>t[Ii](...e)),(e=>[Wi(e)]),(e=>Mo(e)))},M[Ri]=function(...e){return L((t=>Reflect.apply(li,null,[t,...e])),(()=>ui(...e)),"datetime format",(t=>t[Ri](...e)),qi,(e=>Fo(e)||Mo(e)))},M[Ni]=function(...e){return L((t=>Reflect.apply(pi,null,[t,...e])),(()=>fi(...e)),"number format",(t=>t[Ni](...e)),qi,(e=>Fo(e)||Mo(e)))},M}function Gi(e={}){const t=Xi(function(e){const t=Fo(e.locale)?e.locale:Hr,n=Fo(e.fallbackLocale)||Mo(e.fallbackLocale)||Bo(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,o=Po(e.missing)?e.missing:void 0,r=!Do(e.silentTranslationWarn)&&!To(e.silentTranslationWarn)||!e.silentTranslationWarn,i=!Do(e.silentFallbackWarn)&&!To(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!Do(e.fallbackRoot)||e.fallbackRoot,a=!!e.formatFallbackMessages,l=Bo(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Po(e.postTranslation)?e.postTranslation:void 0,d=!Fo(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,p=!!e.escapeParameterHtml,h=!Do(e.sync)||e.sync;let f=e.messages;if(Bo(e.sharedMessages)){const t=e.sharedMessages;f=Object.keys(t).reduce(((e,n)=>{const o=e[n]||(e[n]={});return Ao(o,t[n]),e}),f||{})}const{__i18n:m,__root:g,__injectWithOption:b}=e,v=e.datetimeFormats,_=e.numberFormats;return{locale:t,fallbackLocale:n,messages:f,flatJson:e.flatJson,datetimeFormats:v,numberFormats:_,missing:o,missingWarn:r,fallbackWarn:i,fallbackRoot:s,fallbackFormat:a,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:h,__i18n:m,__root:g,__injectWithOption:b}}(e)),{__extender:n}=e,o={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return Do(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=Do(e)?!e:e},get silentFallbackWarn(){return Do(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=Do(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t:(...e)=>Reflect.apply(t.t,t,[...e]),rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[n,o,r]=e,i={plural:1};let s=null,a=null;if(!Fo(n))throw Li(Oi.INVALID_ARGUMENT);const l=n;return Fo(o)?i.locale=o:ko(o)?i.plural=o:Mo(o)?s=o:Bo(o)&&(a=o),Fo(r)?i.locale=r:Mo(r)?s=r:Bo(r)&&(a=r),Reflect.apply(t.t,t,[l,s||a||{},i])},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return o.__extender=n,o}function Qi(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Mi](t.pluralizationRules||e.pluralizationRules);const n=Ui(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const Ki={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Zi(){return w.FK}const Ji=(0,w.pM)({name:"i18n-t",props:Ao({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ko(e)||!isNaN(e)}},Ki),setup(e,t){const{slots:n,attrs:o}=t,r=e.i18n||ls({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=Fo(e.plural)?+e.plural:e.plural);const a=function({slots:e},t){return 1===t.length&&"default"===t[0]?(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===w.FK?t.children:[t]]),[]):t.reduce(((t,n)=>{const o=e[n];return o&&(t[n]=o()),t}),{})}(t,i),l=r[Ii](e.keypath,a,s),c=Ao({},o),u=Fo(e.tag)||Uo(e.tag)?e.tag:Zi();return(0,w.h)(u,c,l)}}}),es=Ji;function ts(e,t,n,o){const{slots:r,attrs:i}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),Fo(e.format)?t.key=e.format:Uo(e.format)&&(Fo(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,o)=>n.includes(o)?Ao({},t,{[o]:e.format[o]}):t),{}));const a=o(e.value,t,s);let l=[t.key];Mo(a)?l=a.map(((e,t)=>{const n=r[e.type],o=n?n({[e.type]:e.value,index:t,parts:a}):[e.value];var i;return Mo(i=o)&&!Fo(i[0])&&(o[0].key=`${e.type}-${t}`),o})):Fo(a)&&(l=[a]);const c=Ao({},i),u=Fo(e.tag)||Uo(e.tag)?e.tag:Zi();return(0,w.h)(u,c,l)}}const ns=(0,w.pM)({name:"i18n-n",props:Ao({value:{type:Number,required:!0},format:{type:[String,Object]}},Ki),setup(e,t){const n=e.i18n||ls({useScope:e.scope,__useComponent:!0});return ts(e,t,hi,((...e)=>n[Ni](...e)))}}),os=(0,w.pM)({name:"i18n-d",props:Ao({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ki),setup(e,t){const n=e.i18n||ls({useScope:e.scope,__useComponent:!0});return ts(e,t,ci,((...e)=>n[Ri](...e)))}});function rs(e){if(Fo(e))return{path:e};if(Bo(e)){if(!("path"in e))throw Li(Oi.REQUIRED_VALUE);return e}throw Li(Oi.INVALID_VALUE)}function is(e){const{path:t,locale:n,args:o,choice:r,plural:i}=e,s={},a=o||{};return Fo(n)&&(s.locale=n),ko(r)&&(s.plural=r),ko(i)&&(s.plural=i),[t,a,s]}const ss=wo("global-vue-i18n");function as(e={},t){const n=__VUE_I18N_LEGACY_API__&&Do(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=!Do(e.globalInjection)||e.globalInjection,r=new Map,[i,s]=function(e,t){const n=(0,Ae.uY)(),o=__VUE_I18N_LEGACY_API__&&t?n.run((()=>Gi(e))):n.run((()=>Xi(e)));if(null==o)throw Li(Oi.UNEXPECTED_ERROR);return[n,o]}(e,n),a=wo(""),l={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(e,...t){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,l),Bo(t[0])){const e=t[0];l.__composerExtend=e.__composerExtend,l.__vueI18nExtend=e.__vueI18nExtend}let r=null;!n&&o&&(r=function(e,t){const n=Object.create(null);cs.forEach((e=>{const o=Object.getOwnPropertyDescriptor(t,e);if(!o)throw Li(Oi.UNEXPECTED_ERROR);const r=(0,Ae.i9)(o.value)?{get:()=>o.value.value,set(e){o.value.value=e}}:{get:()=>o.get&&o.get()};Object.defineProperty(n,e,r)})),e.config.globalProperties.$i18n=n,us.forEach((n=>{const o=Object.getOwnPropertyDescriptor(t,n);if(!o||!o.value)throw Li(Oi.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,o)}));return()=>{delete e.config.globalProperties.$i18n,us.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}}(e,l.global)),__VUE_I18N_FULL_INSTALL__&&function(e,t,...n){const o=Bo(n[0])?n[0]:{};(!Do(o.globalInstall)||o.globalInstall)&&([es.name,"I18nT"].forEach((t=>e.component(t,es))),[ns.name,"I18nN"].forEach((t=>e.component(t,ns))),[os.name,"I18nD"].forEach((t=>e.component(t,os)))),e.directive("t",function(e){const t=t=>{const{instance:n,value:o}=t;if(!n||!n.$)throw Li(Oi.UNEXPECTED_ERROR);const r=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return null!=o?o.__composer:e.global.__composer}}(e,n.$),i=rs(o);return[Reflect.apply(r.t,r,[...is(i)]),r]};return{created:(n,o)=>{const[r,i]=t(o);yo&&e.global===i&&(n.__i18nWatcher=(0,w.wB)(i.locale,(()=>{o.instance&&o.instance.$forceUpdate()}))),n.__composer=i,n.textContent=r},unmounted:e=>{yo&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,o=rs(t);e.textContent=Reflect.apply(n.t,n,[...is(o)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}(t))}(e,l,...t),__VUE_I18N_LEGACY_API__&&n&&e.mixin(function(e,t,n){return{beforeCreate(){const o=(0,w.nI)();if(!o)throw Li(Oi.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=Qi(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Gi(o);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Qi(e,r);else{this.$i18n=Gi({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&$i(t,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(o,this.$i18n)},mounted(){},unmounted(){const e=(0,w.nI)();if(!e)throw Li(Oi.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}(s,s.__composer,l));const i=e.unmount;e.unmount=()=>{r&&r(),l.dispose(),i()}},get global(){return s},dispose(){i.stop()},__instances:r,__getInstance:function(e){return r.get(e)||null},__setInstance:function(e,t){r.set(e,t)},__deleteInstance:function(e){r.delete(e)}};return l}function ls(e={}){const t=(0,w.nI)();if(null==t)throw Li(Oi.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Li(Oi.NOT_INSTALLED);const n=function(e){const t=(0,w.WQ)(e.isCE?ss:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Li(e.isCE?Oi.NOT_INSTALLED_WITH_PROVIDE:Oi.UNEXPECTED_ERROR);return t}(t),o=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),r=ji(t),i=function(e,t){return Co(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,r);if("global"===i)return $i(o,e,r),o;if("parent"===i){let r=function(e,t,n=!1){let o=null;const r=t.root;let i=function(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}(t,n);for(;null!=i;){const t=e;if("composition"===e.mode)o=t.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(i);null!=e&&(o=e.__composer,n&&o&&!o[Pi]&&(o=null))}if(null!=o)break;if(r===i)break;i=i.parent}return o}(n,t,e.__useComponent);return null==r&&(r=o),r}const s=n;let a=s.__getInstance(t);if(null==a){const n=Ao({},e);"__i18n"in r&&(n.__i18n=r.__i18n),o&&(n.__root=o),a=Xi(n),s.__composerExtend&&(a[Fi]=s.__composerExtend(a)),function(e,t,n){(0,w.sV)((()=>{}),t),(0,w.hi)((()=>{const o=n;e.__deleteInstance(t);const r=o[Fi];r&&(r(),delete o[Fi])}),t)}(s,t,a),s.__setInstance(t,a)}return a}const cs=["locale","fallbackLocale","availableLocales"],us=["t","rt","d","n","tm","te"];var ds,ps,hs;if("boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(Lo().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(Lo().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(Lo().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(Lo().__INTLIFY_PROD_DEVTOOLS__=!1),ds=function(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Fo(e)){!Do(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||xr)(e),o=Er[n];if(o)return o;const{ast:r,detectError:i}=function(e,t={}){let n=!1;const o=t.onError||Qo;return t.onError=e=>{n=!0,o(e)},{...vr(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),s=_r(r);return i?s:Er[n]=s}{const t=e.cacheKey;if(t){return Er[t]||(Er[t]=_r(e))}return _r(e)}},Xr=ds,ps=function(e,t){if(!Uo(e))return null;let n=Wr.get(t);if(n||(n=function(e){const t=[];let n,o,r,i,s,a,l,c=-1,u=0,d=0;const p=[];function h(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,p[0](),!0}for(p[0]=()=>{void 0===o?o=r:o+=r},p[1]=()=>{void 0!==o&&(t.push(o),o=void 0)},p[2]=()=>{p[0](),d++},p[3]=()=>{if(d>0)d--,u=4,p[0]();else{if(d=0,void 0===o)return!1;if(o=function(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,jr.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}(o),!1===o)return!1;p[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!h()){if(i=$r(n),l=Ur[u],s=l[i]||l.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(a=p[s[1]],a&&(r=n,!1===a())))return;if(7===u)return t}}(t),n&&Wr.set(t,n)),!n)return null;const o=n.length;let r=e,i=0;for(;i{const t=this.translateList[e]||{};Object.keys(t).forEach((n=>{const o=(t[n]||fs[n]||"").toString();o&&this.$i18n.mergeLocaleMessage(e,{[n]:o})}))}))}get localesList(){return this._localesList}get currentLocale(){const e=this.getLocaleByName(this.$i18n.locale);return null!=e?e:null}get currentLocaleId(){var e,t;return null!==(t=null===(e=this.currentLocale)||void 0===e?void 0:e.locale_id)&&void 0!==t?t:null}changeLocale(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ms.defaultLocalization;this.$i18n.locale=String(e).toUpperCase()}getTranslate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.$i18n.t(e,t)}initWithLocale(e,t,n){this.setLocalesList(t);const o=this.getLocaleNameById(e);o&&(this.addLocales(o,n),this.changeLocale(o))}setDefaultTranslateList(){this.translateList={[ms.defaultLocalization]:fs}}addLocales(e,t){this.translateList[e]=t||{},this.translateList=Object.assign({},this.translateList)}setLocalesList(e){this._localesList.value=e}getLocaleNameById(e){const{name:t=null}=this.localesList.value.find((t=>{let{locale_id:n}=t;return n===e}))||{};return t}getLocaleByName(e){return this.localesList.value.find((t=>{let{name:n}=t;return String(n).toUpperCase()===String(e).toUpperCase()}))}}ms.defaultLocalization="DEFAULT_EN";const gs=ms,bs={install:e=>{const{globalProperties:t}=e.config,n=as({locale:gs.defaultLocalization,messages:{}});e.use(n),t.$translates=new gs(n.global)}},vs={install:(e,t)=>{const{globalProperties:n}=e.config;n.$storage=t}};var _s=r(9761);oe.o.listen(y.L0.connect).pipe((0,b.n)((e=>me.n.connect().pipe((0,v.T)((t=>({connectData:e.data,storage:t})))))),(0,_.s)(1)).subscribe((e=>{let{connectData:t,storage:n}=e;const o=(()=>{const e=(0,g.Ef)(M);return e.provide(...Te.fN),e.provide(...Te.xb),e.provide(...Te.hg),e.provide(...Te.O_),e.provide(...Te.h_),e.provide(...Te.Cw),e.provide(...Te.Ng),e.provide(...Te.At),e.provide(...Te.hV),e.component("app-action-button",_s.aV),e.component("app-footer",_s.jI),e.component("app-header",_s.jJ),e.component("app-icon",_s.z9),e.directive("click-outside",Se),e.use(_e),e.use(we),e.use(tt,{componentName:"perfect-scrollbar"}),e.use(bs),e.use(fe),setTimeout((()=>{e.mount("#main-app"),oe.o.sendMessage(y.Ag.appMounted)})),e})();if(Ce.Z.updateState(t),o.use(vs,n),o.use(_o),ue.J_.initService(fe,o.config.globalProperties.$chatService),t.demo&&t.view){const e=()=>{fe.beforeEach((e=>{var n;return!!(null===(n=t.allowedRoutes)||void 0===n?void 0:n.includes(e.name))})),oe.o.sendMessage(y.Ag.mockReady)};fe.replace(t.view).then(e).catch(e)}oe.y.setInitialized(o)}))})()})();