vue-wiguet-chatweb 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ (function(ce,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],d):(ce=typeof globalThis<"u"?globalThis:ce||self,d(ce["vue-wiguet-chatweb"]={},ce.Vue))})(this,function(ce,d){"use strict";//! moment.js
2
+ //! version : 2.29.4
3
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
+ //! license : MIT
5
+ //! momentjs.com
6
+ var es;function u(){return es.apply(null,arguments)}function _n(e){es=e}function B(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function me(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function yt(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(v(e,t))return!1;return!0}function W(e){return e===void 0}function X(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ye(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ts(e,t){var s=[],n,r=e.length;for(n=0;n<r;++n)s.push(t(e[n],n));return s}function le(e,t){for(var s in t)v(t,s)&&(e[s]=t[s]);return v(t,"toString")&&(e.toString=t.toString),v(t,"valueOf")&&(e.valueOf=t.valueOf),e}function q(e,t,s,n){return Ts(e,t,s,n,!0).utc()}function mn(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return e._pf==null&&(e._pf=mn()),e._pf}var gt;Array.prototype.some?gt=Array.prototype.some:gt=function(e){var t=Object(this),s=t.length>>>0,n;for(n=0;n<s;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function wt(e){if(e._isValid==null){var t=y(e),s=gt.call(t.parsedDateParts,function(r){return r!=null}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s);if(e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n}return e._isValid}function $e(e){var t=q(NaN);return e!=null?le(y(t),e):y(t).userInvalidated=!0,t}var ss=u.momentProperties=[],bt=!1;function vt(e,t){var s,n,r,i=ss.length;if(W(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),W(t._i)||(e._i=t._i),W(t._f)||(e._f=t._f),W(t._l)||(e._l=t._l),W(t._strict)||(e._strict=t._strict),W(t._tzm)||(e._tzm=t._tzm),W(t._isUTC)||(e._isUTC=t._isUTC),W(t._offset)||(e._offset=t._offset),W(t._pf)||(e._pf=y(t)),W(t._locale)||(e._locale=t._locale),i>0)for(s=0;s<i;s++)n=ss[s],r=t[n],W(r)||(e[n]=r);return e}function Ie(e){vt(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),bt===!1&&(bt=!0,u.updateOffset(this),bt=!1)}function $(e){return e instanceof Ie||e!=null&&e._isAMomentObject!=null}function ns(e){u.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function A(e,t){var s=!0;return le(function(){if(u.deprecationHandler!=null&&u.deprecationHandler(null,e),s){var n=[],r,i,a,o=arguments.length;for(i=0;i<o;i++){if(r="",typeof arguments[i]=="object"){r+=`
7
+ [`+i+"] ";for(a in arguments[0])v(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[i];n.push(r)}ns(e+`
8
+ Arguments: `+Array.prototype.slice.call(n).join("")+`
9
+ `+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var rs={};function is(e,t){u.deprecationHandler!=null&&u.deprecationHandler(e,t),rs[e]||(ns(t),rs[e]=!0)}u.suppressDeprecationWarnings=!1,u.deprecationHandler=null;function K(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function pn(e){var t,s;for(s in e)v(e,s)&&(t=e[s],K(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function St(e,t){var s=le({},e),n;for(n in t)v(t,n)&&(me(e[n])&&me(t[n])?(s[n]={},le(s[n],e[n]),le(s[n],t[n])):t[n]!=null?s[n]=t[n]:delete s[n]);for(n in e)v(e,n)&&!v(t,n)&&me(e[n])&&(s[n]=le({},s[n]));return s}function kt(e){e!=null&&this.set(e)}var Ot;Object.keys?Ot=Object.keys:Ot=function(e){var t,s=[];for(t in e)v(e,t)&&s.push(t);return s};var yn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function gn(e,t,s){var n=this._calendar[e]||this._calendar.sameElse;return K(n)?n.call(t,s):n}function Q(e,t,s){var n=""+Math.abs(e),r=t-n.length,i=e>=0;return(i?s?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var Dt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,je=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Mt={},Se={};function m(e,t,s,n){var r=n;typeof n=="string"&&(r=function(){return this[n]()}),e&&(Se[e]=r),t&&(Se[t[0]]=function(){return Q(r.apply(this,arguments),t[1],t[2])}),s&&(Se[s]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function wn(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function bn(e){var t=e.match(Dt),s,n;for(s=0,n=t.length;s<n;s++)Se[t[s]]?t[s]=Se[t[s]]:t[s]=wn(t[s]);return function(r){var i="",a;for(a=0;a<n;a++)i+=K(t[a])?t[a].call(r,e):t[a];return i}}function Ge(e,t){return e.isValid()?(t=as(t,e.localeData()),Mt[t]=Mt[t]||bn(t),Mt[t](e)):e.localeData().invalidDate()}function as(e,t){var s=5;function n(r){return t.longDateFormat(r)||r}for(je.lastIndex=0;s>=0&&je.test(e);)e=e.replace(je,n),je.lastIndex=0,s-=1;return e}var vn={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Sn(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(Dt).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var kn="Invalid date";function On(){return this._invalidDate}var Dn="%d",Mn=/\d{1,2}/;function Cn(e){return this._ordinal.replace("%d",e)}var Tn={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Nn(e,t,s,n){var r=this._relativeTime[s];return K(r)?r(e,t,s,n):r.replace(/%d/i,e)}function En(e,t){var s=this._relativeTime[e>0?"future":"past"];return K(s)?s(t):s.replace(/%s/i,t)}var We={};function E(e,t){var s=e.toLowerCase();We[s]=We[s+"s"]=We[t]=e}function F(e){return typeof e=="string"?We[e]||We[e.toLowerCase()]:void 0}function Ct(e){var t={},s,n;for(n in e)v(e,n)&&(s=F(n),s&&(t[s]=e[n]));return t}var os={};function x(e,t){os[e]=t}function xn(e){var t=[],s;for(s in e)v(e,s)&&t.push({unit:s,priority:os[s]});return t.sort(function(n,r){return n.priority-r.priority}),t}function ze(e){return e%4===0&&e%100!==0||e%400===0}function H(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function g(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=H(t)),s}function ke(e,t){return function(s){return s!=null?(cs(this,e,s),u.updateOffset(this,t),this):Ze(this,e)}}function Ze(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function cs(e,t,s){e.isValid()&&!isNaN(s)&&(t==="FullYear"&&ze(e.year())&&e.month()===1&&e.date()===29?(s=g(s),e._d["set"+(e._isUTC?"UTC":"")+t](s,e.month(),tt(s,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](s))}function Yn(e){return e=F(e),K(this[e])?this[e]():this}function In(e,t){if(typeof e=="object"){e=Ct(e);var s=xn(e),n,r=s.length;for(n=0;n<r;n++)this[s[n].unit](e[s[n].unit])}else if(e=F(e),K(this[e]))return this[e](t);return this}var ls=/\d/,V=/\d\d/,ds=/\d{3}/,Tt=/\d{4}/,qe=/[+-]?\d{6}/,D=/\d\d?/,us=/\d\d\d\d?/,hs=/\d\d\d\d\d\d?/,Ke=/\d{1,3}/,Nt=/\d{1,4}/,Qe=/[+-]?\d{1,6}/,Oe=/\d+/,Je=/[+-]?\d+/,Wn=/Z|[+-]\d\d:?\d\d/gi,Xe=/Z|[+-]\d\d(?::?\d\d)?/gi,Vn=/[+-]?\d+(\.\d{1,3})?/,Ve=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,et;et={};function h(e,t,s){et[e]=K(t)?t:function(n,r){return n&&s?s:t}}function Rn(e,t){return v(et,e)?et[e](t._strict,t._locale):new RegExp(Ln(e))}function Ln(e){return R(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,n,r,i){return s||n||r||i}))}function R(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Et={};function k(e,t){var s,n=t,r;for(typeof e=="string"&&(e=[e]),X(t)&&(n=function(i,a){a[t]=g(i)}),r=e.length,s=0;s<r;s++)Et[e[s]]=n}function Re(e,t){k(e,function(s,n,r,i){r._w=r._w||{},t(s,r._w,r,i)})}function Pn(e,t,s){t!=null&&v(Et,e)&&Et[e](t,s._a,s,e)}var Y=0,ee=1,J=2,N=3,j=4,te=5,pe=6,An=7,Fn=8;function Hn(e,t){return(e%t+t)%t}var T;Array.prototype.indexOf?T=Array.prototype.indexOf:T=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function tt(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=Hn(t,12);return e+=(t-s)/12,s===1?ze(e)?29:28:31-s%7%2}m("M",["MM",2],"Mo",function(){return this.month()+1}),m("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),m("MMMM",0,0,function(e){return this.localeData().months(this,e)}),E("month","M"),x("month",8),h("M",D),h("MM",D,V),h("MMM",function(e,t){return t.monthsShortRegex(e)}),h("MMMM",function(e,t){return t.monthsRegex(e)}),k(["M","MM"],function(e,t){t[ee]=g(e)-1}),k(["MMM","MMMM"],function(e,t,s,n){var r=s._locale.monthsParse(e,n,s._strict);r!=null?t[ee]=r:y(s).invalidMonth=e});var Un="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),fs="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_s=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Bn=Ve,$n=Ve;function jn(e,t){return e?B(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||_s).test(t)?"format":"standalone"][e.month()]:B(this._months)?this._months:this._months.standalone}function Gn(e,t){return e?B(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[_s.test(t)?"format":"standalone"][e.month()]:B(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function zn(e,t,s){var n,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=q([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return s?t==="MMM"?(r=T.call(this._shortMonthsParse,a),r!==-1?r:null):(r=T.call(this._longMonthsParse,a),r!==-1?r:null):t==="MMM"?(r=T.call(this._shortMonthsParse,a),r!==-1?r:(r=T.call(this._longMonthsParse,a),r!==-1?r:null)):(r=T.call(this._longMonthsParse,a),r!==-1?r:(r=T.call(this._shortMonthsParse,a),r!==-1?r:null))}function Zn(e,t,s){var n,r,i;if(this._monthsParseExact)return zn.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=q([2e3,n]),s&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!s&&!this._monthsParse[n]&&(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(s&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!s&&this._monthsParse[n].test(e))return n}}function ms(e,t){var s;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=g(t);else if(t=e.localeData().monthsParse(t),!X(t))return e}return s=Math.min(e.date(),tt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,s),e}function ps(e){return e!=null?(ms(this,e),u.updateOffset(this,!0),this):Ze(this,"Month")}function qn(){return tt(this.year(),this.month())}function Kn(e){return this._monthsParseExact?(v(this,"_monthsRegex")||ys.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=Bn),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Qn(e){return this._monthsParseExact?(v(this,"_monthsRegex")||ys.call(this),e?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=$n),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ys(){function e(a,o){return o.length-a.length}var t=[],s=[],n=[],r,i;for(r=0;r<12;r++)i=q([2e3,r]),t.push(this.monthsShort(i,"")),s.push(this.months(i,"")),n.push(this.months(i,"")),n.push(this.monthsShort(i,""));for(t.sort(e),s.sort(e),n.sort(e),r=0;r<12;r++)t[r]=R(t[r]),s[r]=R(s[r]);for(r=0;r<24;r++)n[r]=R(n[r]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}m("Y",0,0,function(){var e=this.year();return e<=9999?Q(e,4):"+"+e}),m(0,["YY",2],0,function(){return this.year()%100}),m(0,["YYYY",4],0,"year"),m(0,["YYYYY",5],0,"year"),m(0,["YYYYYY",6,!0],0,"year"),E("year","y"),x("year",1),h("Y",Je),h("YY",D,V),h("YYYY",Nt,Tt),h("YYYYY",Qe,qe),h("YYYYYY",Qe,qe),k(["YYYYY","YYYYYY"],Y),k("YYYY",function(e,t){t[Y]=e.length===2?u.parseTwoDigitYear(e):g(e)}),k("YY",function(e,t){t[Y]=u.parseTwoDigitYear(e)}),k("Y",function(e,t){t[Y]=parseInt(e,10)});function Le(e){return ze(e)?366:365}u.parseTwoDigitYear=function(e){return g(e)+(g(e)>68?1900:2e3)};var gs=ke("FullYear",!0);function Jn(){return ze(this.year())}function Xn(e,t,s,n,r,i,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,s,n,r,i,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,s,n,r,i,a),o}function Pe(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function st(e,t,s){var n=7+t-s,r=(7+Pe(e,0,n).getUTCDay()-t)%7;return-r+n-1}function ws(e,t,s,n,r){var i=(7+s-n)%7,a=st(e,n,r),o=1+7*(t-1)+i+a,c,_;return o<=0?(c=e-1,_=Le(c)+o):o>Le(e)?(c=e+1,_=o-Le(e)):(c=e,_=o),{year:c,dayOfYear:_}}function Ae(e,t,s){var n=st(e.year(),t,s),r=Math.floor((e.dayOfYear()-n-1)/7)+1,i,a;return r<1?(a=e.year()-1,i=r+se(a,t,s)):r>se(e.year(),t,s)?(i=r-se(e.year(),t,s),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function se(e,t,s){var n=st(e,t,s),r=st(e+1,t,s);return(Le(e)-n+r)/7}m("w",["ww",2],"wo","week"),m("W",["WW",2],"Wo","isoWeek"),E("week","w"),E("isoWeek","W"),x("week",5),x("isoWeek",5),h("w",D),h("ww",D,V),h("W",D),h("WW",D,V),Re(["w","ww","W","WW"],function(e,t,s,n){t[n.substr(0,1)]=g(e)});function er(e){return Ae(e,this._week.dow,this._week.doy).week}var tr={dow:0,doy:6};function sr(){return this._week.dow}function nr(){return this._week.doy}function rr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function ir(e){var t=Ae(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}m("d",0,"do","day"),m("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),m("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),m("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),m("e",0,0,"weekday"),m("E",0,0,"isoWeekday"),E("day","d"),E("weekday","e"),E("isoWeekday","E"),x("day",11),x("weekday",11),x("isoWeekday",11),h("d",D),h("e",D),h("E",D),h("dd",function(e,t){return t.weekdaysMinRegex(e)}),h("ddd",function(e,t){return t.weekdaysShortRegex(e)}),h("dddd",function(e,t){return t.weekdaysRegex(e)}),Re(["dd","ddd","dddd"],function(e,t,s,n){var r=s._locale.weekdaysParse(e,n,s._strict);r!=null?t.d=r:y(s).invalidWeekday=e}),Re(["d","e","E"],function(e,t,s,n){t[n]=g(e)});function ar(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function or(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function xt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var cr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),lr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),dr=Ve,ur=Ve,hr=Ve;function fr(e,t){var s=B(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?xt(s,this._week.dow):e?s[e.day()]:s}function _r(e){return e===!0?xt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function mr(e){return e===!0?xt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function pr(e,t,s){var n,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=q([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return s?t==="dddd"?(r=T.call(this._weekdaysParse,a),r!==-1?r:null):t==="ddd"?(r=T.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=T.call(this._minWeekdaysParse,a),r!==-1?r:null):t==="dddd"?(r=T.call(this._weekdaysParse,a),r!==-1||(r=T.call(this._shortWeekdaysParse,a),r!==-1)?r:(r=T.call(this._minWeekdaysParse,a),r!==-1?r:null)):t==="ddd"?(r=T.call(this._shortWeekdaysParse,a),r!==-1||(r=T.call(this._weekdaysParse,a),r!==-1)?r:(r=T.call(this._minWeekdaysParse,a),r!==-1?r:null)):(r=T.call(this._minWeekdaysParse,a),r!==-1||(r=T.call(this._weekdaysParse,a),r!==-1)?r:(r=T.call(this._shortWeekdaysParse,a),r!==-1?r:null))}function yr(e,t,s){var n,r,i;if(this._weekdaysParseExact)return pr.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=q([2e3,1]).day(n),s&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(s&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(s&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!s&&this._weekdaysParse[n].test(e))return n}}function gr(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=ar(e,this.localeData()),this.add(e-t,"d")):t}function wr(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function br(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=or(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function vr(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||Yt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=dr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Sr(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||Yt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ur),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function kr(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||Yt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=hr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Yt(){function e(f,p){return p.length-f.length}var t=[],s=[],n=[],r=[],i,a,o,c,_;for(i=0;i<7;i++)a=q([2e3,1]).day(i),o=R(this.weekdaysMin(a,"")),c=R(this.weekdaysShort(a,"")),_=R(this.weekdays(a,"")),t.push(o),s.push(c),n.push(_),r.push(o),r.push(c),r.push(_);t.sort(e),s.sort(e),n.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function It(){return this.hours()%12||12}function Or(){return this.hours()||24}m("H",["HH",2],0,"hour"),m("h",["hh",2],0,It),m("k",["kk",2],0,Or),m("hmm",0,0,function(){return""+It.apply(this)+Q(this.minutes(),2)}),m("hmmss",0,0,function(){return""+It.apply(this)+Q(this.minutes(),2)+Q(this.seconds(),2)}),m("Hmm",0,0,function(){return""+this.hours()+Q(this.minutes(),2)}),m("Hmmss",0,0,function(){return""+this.hours()+Q(this.minutes(),2)+Q(this.seconds(),2)});function vs(e,t){m(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}vs("a",!0),vs("A",!1),E("hour","h"),x("hour",13);function Ss(e,t){return t._meridiemParse}h("a",Ss),h("A",Ss),h("H",D),h("h",D),h("k",D),h("HH",D,V),h("hh",D,V),h("kk",D,V),h("hmm",us),h("hmmss",hs),h("Hmm",us),h("Hmmss",hs),k(["H","HH"],N),k(["k","kk"],function(e,t,s){var n=g(e);t[N]=n===24?0:n}),k(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),k(["h","hh"],function(e,t,s){t[N]=g(e),y(s).bigHour=!0}),k("hmm",function(e,t,s){var n=e.length-2;t[N]=g(e.substr(0,n)),t[j]=g(e.substr(n)),y(s).bigHour=!0}),k("hmmss",function(e,t,s){var n=e.length-4,r=e.length-2;t[N]=g(e.substr(0,n)),t[j]=g(e.substr(n,2)),t[te]=g(e.substr(r)),y(s).bigHour=!0}),k("Hmm",function(e,t,s){var n=e.length-2;t[N]=g(e.substr(0,n)),t[j]=g(e.substr(n))}),k("Hmmss",function(e,t,s){var n=e.length-4,r=e.length-2;t[N]=g(e.substr(0,n)),t[j]=g(e.substr(n,2)),t[te]=g(e.substr(r))});function Dr(e){return(e+"").toLowerCase().charAt(0)==="p"}var Mr=/[ap]\.?m?\.?/i,Cr=ke("Hours",!0);function Tr(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var ks={calendar:yn,longDateFormat:vn,invalidDate:kn,ordinal:Dn,dayOfMonthOrdinalParse:Mn,relativeTime:Tn,months:Un,monthsShort:fs,week:tr,weekdays:cr,weekdaysMin:lr,weekdaysShort:bs,meridiemParse:Mr},C={},Fe={},He;function Nr(e,t){var s,n=Math.min(e.length,t.length);for(s=0;s<n;s+=1)if(e[s]!==t[s])return s;return n}function Os(e){return e&&e.toLowerCase().replace("_","-")}function Er(e){for(var t=0,s,n,r,i;t<e.length;){for(i=Os(e[t]).split("-"),s=i.length,n=Os(e[t+1]),n=n?n.split("-"):null;s>0;){if(r=nt(i.slice(0,s).join("-")),r)return r;if(n&&n.length>=s&&Nr(i,n)>=s-1)break;s--}t++}return He}function xr(e){return e.match("^[^/\\\\]*$")!=null}function nt(e){var t=null,s;if(C[e]===void 0&&typeof module<"u"&&module&&module.exports&&xr(e))try{t=He._abbr,s=require,s("./locale/"+e),de(t)}catch{C[e]=null}return C[e]}function de(e,t){var s;return e&&(W(t)?s=ne(e):s=Wt(e,t),s?He=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),He._abbr}function Wt(e,t){if(t!==null){var s,n=ks;if(t.abbr=e,C[e]!=null)is("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=C[e]._config;else if(t.parentLocale!=null)if(C[t.parentLocale]!=null)n=C[t.parentLocale]._config;else if(s=nt(t.parentLocale),s!=null)n=s._config;else return Fe[t.parentLocale]||(Fe[t.parentLocale]=[]),Fe[t.parentLocale].push({name:e,config:t}),null;return C[e]=new kt(St(n,t)),Fe[e]&&Fe[e].forEach(function(r){Wt(r.name,r.config)}),de(e),C[e]}else return delete C[e],null}function Yr(e,t){if(t!=null){var s,n,r=ks;C[e]!=null&&C[e].parentLocale!=null?C[e].set(St(C[e]._config,t)):(n=nt(e),n!=null&&(r=n._config),t=St(r,t),n==null&&(t.abbr=e),s=new kt(t),s.parentLocale=C[e],C[e]=s),de(e)}else C[e]!=null&&(C[e].parentLocale!=null?(C[e]=C[e].parentLocale,e===de()&&de(e)):C[e]!=null&&delete C[e]);return C[e]}function ne(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return He;if(!B(e)){if(t=nt(e),t)return t;e=[e]}return Er(e)}function Ir(){return Ot(C)}function Vt(e){var t,s=e._a;return s&&y(e).overflow===-2&&(t=s[ee]<0||s[ee]>11?ee:s[J]<1||s[J]>tt(s[Y],s[ee])?J:s[N]<0||s[N]>24||s[N]===24&&(s[j]!==0||s[te]!==0||s[pe]!==0)?N:s[j]<0||s[j]>59?j:s[te]<0||s[te]>59?te:s[pe]<0||s[pe]>999?pe:-1,y(e)._overflowDayOfYear&&(t<Y||t>J)&&(t=J),y(e)._overflowWeeks&&t===-1&&(t=An),y(e)._overflowWeekday&&t===-1&&(t=Fn),y(e).overflow=t),e}var Wr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Vr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rr=/Z|[+-]\d\d(?::?\d\d)?/,rt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Rt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Lr=/^\/?Date\((-?\d+)/i,Pr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ar={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ds(e){var t,s,n=e._i,r=Wr.exec(n)||Vr.exec(n),i,a,o,c,_=rt.length,f=Rt.length;if(r){for(y(e).iso=!0,t=0,s=_;t<s;t++)if(rt[t][1].exec(r[1])){a=rt[t][0],i=rt[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(r[3]){for(t=0,s=f;t<s;t++)if(Rt[t][1].exec(r[3])){o=(r[2]||" ")+Rt[t][0];break}if(o==null){e._isValid=!1;return}}if(!i&&o!=null){e._isValid=!1;return}if(r[4])if(Rr.exec(r[4]))c="Z";else{e._isValid=!1;return}e._f=a+(o||"")+(c||""),Pt(e)}else e._isValid=!1}function Fr(e,t,s,n,r,i){var a=[Hr(e),fs.indexOf(t),parseInt(s,10),parseInt(n,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function Hr(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ur(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Br(e,t,s){if(e){var n=bs.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(n!==r)return y(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function $r(e,t,s){if(e)return Ar[e];if(t)return 0;var n=parseInt(s,10),r=n%100,i=(n-r)/100;return i*60+r}function Ms(e){var t=Pr.exec(Ur(e._i)),s;if(t){if(s=Fr(t[4],t[3],t[2],t[5],t[6],t[7]),!Br(t[1],s,e))return;e._a=s,e._tzm=$r(t[8],t[9],t[10]),e._d=Pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function jr(e){var t=Lr.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Ds(e),e._isValid===!1)delete e._isValid;else return;if(Ms(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:u.createFromInputFallback(e)}u.createFromInputFallback=A("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function De(e,t,s){return e??t??s}function Gr(e){var t=new Date(u.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Lt(e){var t,s,n=[],r,i,a;if(!e._d){for(r=Gr(e),e._w&&e._a[J]==null&&e._a[ee]==null&&zr(e),e._dayOfYear!=null&&(a=De(e._a[Y],r[Y]),(e._dayOfYear>Le(a)||e._dayOfYear===0)&&(y(e)._overflowDayOfYear=!0),s=Pe(a,0,e._dayOfYear),e._a[ee]=s.getUTCMonth(),e._a[J]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=r[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[N]===24&&e._a[j]===0&&e._a[te]===0&&e._a[pe]===0&&(e._nextDay=!0,e._a[N]=0),e._d=(e._useUTC?Pe:Xn).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[N]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function zr(e){var t,s,n,r,i,a,o,c,_;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,s=De(t.GG,e._a[Y],Ae(M(),1,4).year),n=De(t.W,1),r=De(t.E,1),(r<1||r>7)&&(c=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,_=Ae(M(),i,a),s=De(t.gg,e._a[Y],_.year),n=De(t.w,_.week),t.d!=null?(r=t.d,(r<0||r>6)&&(c=!0)):t.e!=null?(r=t.e+i,(t.e<0||t.e>6)&&(c=!0)):r=i),n<1||n>se(s,i,a)?y(e)._overflowWeeks=!0:c!=null?y(e)._overflowWeekday=!0:(o=ws(s,n,r,i,a),e._a[Y]=o.year,e._dayOfYear=o.dayOfYear)}u.ISO_8601=function(){},u.RFC_2822=function(){};function Pt(e){if(e._f===u.ISO_8601){Ds(e);return}if(e._f===u.RFC_2822){Ms(e);return}e._a=[],y(e).empty=!0;var t=""+e._i,s,n,r,i,a,o=t.length,c=0,_,f;for(r=as(e._f,e._locale).match(Dt)||[],f=r.length,s=0;s<f;s++)i=r[s],n=(t.match(Rn(i,e))||[])[0],n&&(a=t.substr(0,t.indexOf(n)),a.length>0&&y(e).unusedInput.push(a),t=t.slice(t.indexOf(n)+n.length),c+=n.length),Se[i]?(n?y(e).empty=!1:y(e).unusedTokens.push(i),Pn(i,n,e)):e._strict&&!n&&y(e).unusedTokens.push(i);y(e).charsLeftOver=o-c,t.length>0&&y(e).unusedInput.push(t),e._a[N]<=12&&y(e).bigHour===!0&&e._a[N]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[N]=Zr(e._locale,e._a[N],e._meridiem),_=y(e).era,_!==null&&(e._a[Y]=e._locale.erasConvertYear(_,e._a[Y])),Lt(e),Vt(e)}function Zr(e,t,s){var n;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(n=e.isPM(s),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function qr(e){var t,s,n,r,i,a,o=!1,c=e._f.length;if(c===0){y(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<c;r++)i=0,a=!1,t=vt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],Pt(t),wt(t)&&(a=!0),i+=y(t).charsLeftOver,i+=y(t).unusedTokens.length*10,y(t).score=i,o?i<n&&(n=i,s=t):(n==null||i<n||a)&&(n=i,s=t,a&&(o=!0));le(e,s||t)}function Kr(e){if(!e._d){var t=Ct(e._i),s=t.day===void 0?t.date:t.day;e._a=ts([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Lt(e)}}function Qr(e){var t=new Ie(Vt(Cs(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Cs(e){var t=e._i,s=e._f;return e._locale=e._locale||ne(e._l),t===null||s===void 0&&t===""?$e({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),$(t)?new Ie(Vt(t)):(Ye(t)?e._d=t:B(s)?qr(e):s?Pt(e):Jr(e),wt(e)||(e._d=null),e))}function Jr(e){var t=e._i;W(t)?e._d=new Date(u.now()):Ye(t)?e._d=new Date(t.valueOf()):typeof t=="string"?jr(e):B(t)?(e._a=ts(t.slice(0),function(s){return parseInt(s,10)}),Lt(e)):me(t)?Kr(e):X(t)?e._d=new Date(t):u.createFromInputFallback(e)}function Ts(e,t,s,n,r){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(s===!0||s===!1)&&(n=s,s=void 0),(me(e)&&yt(e)||B(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=s,i._i=e,i._f=t,i._strict=n,Qr(i)}function M(e,t,s,n){return Ts(e,t,s,n,!1)}var Xr=A("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:$e()}),ei=A("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:$e()});function Ns(e,t){var s,n;if(t.length===1&&B(t[0])&&(t=t[0]),!t.length)return M();for(s=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](s))&&(s=t[n]);return s}function ti(){var e=[].slice.call(arguments,0);return Ns("isBefore",e)}function si(){var e=[].slice.call(arguments,0);return Ns("isAfter",e)}var ni=function(){return Date.now?Date.now():+new Date},Ue=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ri(e){var t,s=!1,n,r=Ue.length;for(t in e)if(v(e,t)&&!(T.call(Ue,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<r;++n)if(e[Ue[n]]){if(s)return!1;parseFloat(e[Ue[n]])!==g(e[Ue[n]])&&(s=!0)}return!0}function ii(){return this._isValid}function ai(){return G(NaN)}function it(e){var t=Ct(e),s=t.year||0,n=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,c=t.minute||0,_=t.second||0,f=t.millisecond||0;this._isValid=ri(t),this._milliseconds=+f+_*1e3+c*6e4+o*1e3*60*60,this._days=+a+i*7,this._months=+r+n*3+s*12,this._data={},this._locale=ne(),this._bubble()}function at(e){return e instanceof it}function At(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function oi(e,t,s){var n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0,a;for(a=0;a<n;a++)(s&&e[a]!==t[a]||!s&&g(e[a])!==g(t[a]))&&i++;return i+r}function Es(e,t){m(e,0,0,function(){var s=this.utcOffset(),n="+";return s<0&&(s=-s,n="-"),n+Q(~~(s/60),2)+t+Q(~~s%60,2)})}Es("Z",":"),Es("ZZ",""),h("Z",Xe),h("ZZ",Xe),k(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=Ft(Xe,e)});var ci=/([\+\-]|\d\d)/gi;function Ft(e,t){var s=(t||"").match(e),n,r,i;return s===null?null:(n=s[s.length-1]||[],r=(n+"").match(ci)||["-",0,0],i=+(r[1]*60)+g(r[2]),i===0?0:r[0]==="+"?i:-i)}function Ht(e,t){var s,n;return t._isUTC?(s=t.clone(),n=($(e)||Ye(e)?e.valueOf():M(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+n),u.updateOffset(s,!1),s):M(e).local()}function Ut(e){return-Math.round(e._d.getTimezoneOffset())}u.updateOffset=function(){};function li(e,t,s){var n=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Ft(Xe,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(r=Ut(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),n!==e&&(!t||this._changeInProgress?Ws(this,G(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,u.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:Ut(this)}function di(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ui(e){return this.utcOffset(0,e)}function hi(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ut(this),"m")),this}function fi(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Ft(Wn,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _i(e){return this.isValid()?(e=e?M(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function mi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function pi(){if(!W(this._isDSTShifted))return this._isDSTShifted;var e={},t;return vt(e,this),e=Cs(e),e._a?(t=e._isUTC?q(e._a):M(e._a),this._isDSTShifted=this.isValid()&&oi(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function yi(){return this.isValid()?!this._isUTC:!1}function gi(){return this.isValid()?this._isUTC:!1}function xs(){return this.isValid()?this._isUTC&&this._offset===0:!1}var wi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,bi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function G(e,t){var s=e,n=null,r,i,a;return at(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:X(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(n=wi.exec(e))?(r=n[1]==="-"?-1:1,s={y:0,d:g(n[J])*r,h:g(n[N])*r,m:g(n[j])*r,s:g(n[te])*r,ms:g(At(n[pe]*1e3))*r}):(n=bi.exec(e))?(r=n[1]==="-"?-1:1,s={y:ye(n[2],r),M:ye(n[3],r),w:ye(n[4],r),d:ye(n[5],r),h:ye(n[6],r),m:ye(n[7],r),s:ye(n[8],r)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(a=vi(M(s.from),M(s.to)),s={},s.ms=a.milliseconds,s.M=a.months),i=new it(s),at(e)&&v(e,"_locale")&&(i._locale=e._locale),at(e)&&v(e,"_isValid")&&(i._isValid=e._isValid),i}G.fn=it.prototype,G.invalid=ai;function ye(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function Ys(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function vi(e,t){var s;return e.isValid()&&t.isValid()?(t=Ht(t,e),e.isBefore(t)?s=Ys(e,t):(s=Ys(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function Is(e,t){return function(s,n){var r,i;return n!==null&&!isNaN(+n)&&(is(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=s,s=n,n=i),r=G(s,n),Ws(this,r,e),this}}function Ws(e,t,s,n){var r=t._milliseconds,i=At(t._days),a=At(t._months);e.isValid()&&(n=n??!0,a&&ms(e,Ze(e,"Month")+a*s),i&&cs(e,"Date",Ze(e,"Date")+i*s),r&&e._d.setTime(e._d.valueOf()+r*s),n&&u.updateOffset(e,i||a))}var Si=Is(1,"add"),ki=Is(-1,"subtract");function Vs(e){return typeof e=="string"||e instanceof String}function Oi(e){return $(e)||Ye(e)||Vs(e)||X(e)||Mi(e)||Di(e)||e===null||e===void 0}function Di(e){var t=me(e)&&!yt(e),s=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,a=n.length;for(r=0;r<a;r+=1)i=n[r],s=s||v(e,i);return t&&s}function Mi(e){var t=B(e),s=!1;return t&&(s=e.filter(function(n){return!X(n)&&Vs(e)}).length===0),t&&s}function Ci(e){var t=me(e)&&!yt(e),s=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,i;for(r=0;r<n.length;r+=1)i=n[r],s=s||v(e,i);return t&&s}function Ti(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function Ni(e,t){arguments.length===1&&(arguments[0]?Oi(arguments[0])?(e=arguments[0],t=void 0):Ci(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||M(),n=Ht(s,this).startOf("day"),r=u.calendarFormat(this,n)||"sameElse",i=t&&(K(t[r])?t[r].call(this,s):t[r]);return this.format(i||this.localeData().calendar(r,this,M(s)))}function Ei(){return new Ie(this)}function xi(e,t){var s=$(e)?e:M(e);return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function Yi(e,t){var s=$(e)?e:M(e);return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function Ii(e,t,s,n){var r=$(e)?e:M(e),i=$(t)?t:M(t);return this.isValid()&&r.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(r,s):!this.isBefore(r,s))&&(n[1]===")"?this.isBefore(i,s):!this.isAfter(i,s))):!1}function Wi(e,t){var s=$(e)?e:M(e),n;return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function Vi(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ri(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Li(e,t,s){var n,r,i;if(!this.isValid())return NaN;if(n=Ht(e,this),!n.isValid())return NaN;switch(r=(n.utcOffset()-this.utcOffset())*6e4,t=F(t),t){case"year":i=ot(this,n)/12;break;case"month":i=ot(this,n);break;case"quarter":i=ot(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-r)/864e5;break;case"week":i=(this-n-r)/6048e5;break;default:i=this-n}return s?i:H(i)}function ot(e,t){if(e.date()<t.date())return-ot(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(s,"months"),r,i;return t-n<0?(r=e.clone().add(s-1,"months"),i=(t-n)/(n-r)):(r=e.clone().add(s+1,"months"),i=(t-n)/(r-n)),-(s+i)||0}u.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",u.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Pi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ai(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Ge(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):K(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ge(s,"Z")):Ge(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Fi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,n,r,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(s+n+r+i)}function Hi(e){e||(e=this.isUtc()?u.defaultFormatUtc:u.defaultFormat);var t=Ge(this,e);return this.localeData().postformat(t)}function Ui(e,t){return this.isValid()&&($(e)&&e.isValid()||M(e).isValid())?G({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Bi(e){return this.from(M(),e)}function $i(e,t){return this.isValid()&&($(e)&&e.isValid()||M(e).isValid())?G({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ji(e){return this.to(M(),e)}function Rs(e){var t;return e===void 0?this._locale._abbr:(t=ne(e),t!=null&&(this._locale=t),this)}var Ls=A("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Ps(){return this._locale}var ct=1e3,Me=60*ct,lt=60*Me,As=(365*400+97)*24*lt;function Ce(e,t){return(e%t+t)%t}function Fs(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-As:new Date(e,t,s).valueOf()}function Hs(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-As:Date.UTC(e,t,s)}function Gi(e){var t,s;if(e=F(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Hs:Fs,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ce(t+(this._isUTC?0:this.utcOffset()*Me),lt);break;case"minute":t=this._d.valueOf(),t-=Ce(t,Me);break;case"second":t=this._d.valueOf(),t-=Ce(t,ct);break}return this._d.setTime(t),u.updateOffset(this,!0),this}function zi(e){var t,s;if(e=F(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Hs:Fs,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=lt-Ce(t+(this._isUTC?0:this.utcOffset()*Me),lt)-1;break;case"minute":t=this._d.valueOf(),t+=Me-Ce(t,Me)-1;break;case"second":t=this._d.valueOf(),t+=ct-Ce(t,ct)-1;break}return this._d.setTime(t),u.updateOffset(this,!0),this}function Zi(){return this._d.valueOf()-(this._offset||0)*6e4}function qi(){return Math.floor(this.valueOf()/1e3)}function Ki(){return new Date(this.valueOf())}function Qi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ji(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Xi(){return this.isValid()?this.toISOString():null}function ea(){return wt(this)}function ta(){return le({},y(this))}function sa(){return y(this).overflow}function na(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}m("N",0,0,"eraAbbr"),m("NN",0,0,"eraAbbr"),m("NNN",0,0,"eraAbbr"),m("NNNN",0,0,"eraName"),m("NNNNN",0,0,"eraNarrow"),m("y",["y",1],"yo","eraYear"),m("y",["yy",2],0,"eraYear"),m("y",["yyy",3],0,"eraYear"),m("y",["yyyy",4],0,"eraYear"),h("N",Bt),h("NN",Bt),h("NNN",Bt),h("NNNN",_a),h("NNNNN",ma),k(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,n){var r=s._locale.erasParse(e,n,s._strict);r?y(s).era=r:y(s).invalidEra=e}),h("y",Oe),h("yy",Oe),h("yyy",Oe),h("yyyy",Oe),h("yo",pa),k(["y","yy","yyy","yyyy"],Y),k(["yo"],function(e,t,s,n){var r;s._locale._eraYearOrdinalRegex&&(r=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[Y]=s._locale.eraYearOrdinalParse(e,r):t[Y]=parseInt(e,10)});function ra(e,t){var s,n,r,i=this._eras||ne("en")._eras;for(s=0,n=i.length;s<n;++s){switch(typeof i[s].since){case"string":r=u(i[s].since).startOf("day"),i[s].since=r.valueOf();break}switch(typeof i[s].until){case"undefined":i[s].until=1/0;break;case"string":r=u(i[s].until).startOf("day").valueOf(),i[s].until=r.valueOf();break}}return i}function ia(e,t,s){var n,r,i=this.eras(),a,o,c;for(e=e.toUpperCase(),n=0,r=i.length;n<r;++n)if(a=i[n].name.toUpperCase(),o=i[n].abbr.toUpperCase(),c=i[n].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(o===e)return i[n];break;case"NNNN":if(a===e)return i[n];break;case"NNNNN":if(c===e)return i[n];break}else if([a,o,c].indexOf(e)>=0)return i[n]}function aa(e,t){var s=e.since<=e.until?1:-1;return t===void 0?u(e.since).year():u(e.since).year()+(t-e.offset)*s}function oa(){var e,t,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return n[e].name;return""}function ca(){var e,t,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return n[e].narrow;return""}function la(){var e,t,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return n[e].abbr;return""}function da(){var e,t,s,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=r[e].since<=r[e].until?1:-1,n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return(this.year()-u(r[e].since).year())*s+r[e].offset;return this.year()}function ua(e){return v(this,"_erasNameRegex")||$t.call(this),e?this._erasNameRegex:this._erasRegex}function ha(e){return v(this,"_erasAbbrRegex")||$t.call(this),e?this._erasAbbrRegex:this._erasRegex}function fa(e){return v(this,"_erasNarrowRegex")||$t.call(this),e?this._erasNarrowRegex:this._erasRegex}function Bt(e,t){return t.erasAbbrRegex(e)}function _a(e,t){return t.erasNameRegex(e)}function ma(e,t){return t.erasNarrowRegex(e)}function pa(e,t){return t._eraYearOrdinalRegex||Oe}function $t(){var e=[],t=[],s=[],n=[],r,i,a=this.eras();for(r=0,i=a.length;r<i;++r)t.push(R(a[r].name)),e.push(R(a[r].abbr)),s.push(R(a[r].narrow)),n.push(R(a[r].name)),n.push(R(a[r].abbr)),n.push(R(a[r].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}m(0,["gg",2],0,function(){return this.weekYear()%100}),m(0,["GG",2],0,function(){return this.isoWeekYear()%100});function dt(e,t){m(0,[e,e.length],0,t)}dt("gggg","weekYear"),dt("ggggg","weekYear"),dt("GGGG","isoWeekYear"),dt("GGGGG","isoWeekYear"),E("weekYear","gg"),E("isoWeekYear","GG"),x("weekYear",1),x("isoWeekYear",1),h("G",Je),h("g",Je),h("GG",D,V),h("gg",D,V),h("GGGG",Nt,Tt),h("gggg",Nt,Tt),h("GGGGG",Qe,qe),h("ggggg",Qe,qe),Re(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,n){t[n.substr(0,2)]=g(e)}),Re(["gg","GG"],function(e,t,s,n){t[n]=u.parseTwoDigitYear(e)});function ya(e){return Us.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ga(e){return Us.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function wa(){return se(this.year(),1,4)}function ba(){return se(this.isoWeekYear(),1,4)}function va(){var e=this.localeData()._week;return se(this.year(),e.dow,e.doy)}function Sa(){var e=this.localeData()._week;return se(this.weekYear(),e.dow,e.doy)}function Us(e,t,s,n,r){var i;return e==null?Ae(this,n,r).year:(i=se(e,n,r),t>i&&(t=i),ka.call(this,e,t,s,n,r))}function ka(e,t,s,n,r){var i=ws(e,t,s,n,r),a=Pe(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}m("Q",0,"Qo","quarter"),E("quarter","Q"),x("quarter",7),h("Q",ls),k("Q",function(e,t){t[ee]=(g(e)-1)*3});function Oa(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}m("D",["DD",2],"Do","date"),E("date","D"),x("date",9),h("D",D),h("DD",D,V),h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),k(["D","DD"],J),k("Do",function(e,t){t[J]=g(e.match(D)[0])});var Bs=ke("Date",!0);m("DDD",["DDDD",3],"DDDo","dayOfYear"),E("dayOfYear","DDD"),x("dayOfYear",4),h("DDD",Ke),h("DDDD",ds),k(["DDD","DDDD"],function(e,t,s){s._dayOfYear=g(e)});function Da(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}m("m",["mm",2],0,"minute"),E("minute","m"),x("minute",14),h("m",D),h("mm",D,V),k(["m","mm"],j);var Ma=ke("Minutes",!1);m("s",["ss",2],0,"second"),E("second","s"),x("second",15),h("s",D),h("ss",D,V),k(["s","ss"],te);var Ca=ke("Seconds",!1);m("S",0,0,function(){return~~(this.millisecond()/100)}),m(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),m(0,["SSS",3],0,"millisecond"),m(0,["SSSS",4],0,function(){return this.millisecond()*10}),m(0,["SSSSS",5],0,function(){return this.millisecond()*100}),m(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),m(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),m(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),m(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),E("millisecond","ms"),x("millisecond",16),h("S",Ke,ls),h("SS",Ke,V),h("SSS",Ke,ds);var ue,$s;for(ue="SSSS";ue.length<=9;ue+="S")h(ue,Oe);function Ta(e,t){t[pe]=g(("0."+e)*1e3)}for(ue="S";ue.length<=9;ue+="S")k(ue,Ta);$s=ke("Milliseconds",!1),m("z",0,0,"zoneAbbr"),m("zz",0,0,"zoneName");function Na(){return this._isUTC?"UTC":""}function Ea(){return this._isUTC?"Coordinated Universal Time":""}var l=Ie.prototype;l.add=Si,l.calendar=Ni,l.clone=Ei,l.diff=Li,l.endOf=zi,l.format=Hi,l.from=Ui,l.fromNow=Bi,l.to=$i,l.toNow=ji,l.get=Yn,l.invalidAt=sa,l.isAfter=xi,l.isBefore=Yi,l.isBetween=Ii,l.isSame=Wi,l.isSameOrAfter=Vi,l.isSameOrBefore=Ri,l.isValid=ea,l.lang=Ls,l.locale=Rs,l.localeData=Ps,l.max=ei,l.min=Xr,l.parsingFlags=ta,l.set=In,l.startOf=Gi,l.subtract=ki,l.toArray=Qi,l.toObject=Ji,l.toDate=Ki,l.toISOString=Ai,l.inspect=Fi,typeof Symbol<"u"&&Symbol.for!=null&&(l[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),l.toJSON=Xi,l.toString=Pi,l.unix=qi,l.valueOf=Zi,l.creationData=na,l.eraName=oa,l.eraNarrow=ca,l.eraAbbr=la,l.eraYear=da,l.year=gs,l.isLeapYear=Jn,l.weekYear=ya,l.isoWeekYear=ga,l.quarter=l.quarters=Oa,l.month=ps,l.daysInMonth=qn,l.week=l.weeks=rr,l.isoWeek=l.isoWeeks=ir,l.weeksInYear=va,l.weeksInWeekYear=Sa,l.isoWeeksInYear=wa,l.isoWeeksInISOWeekYear=ba,l.date=Bs,l.day=l.days=gr,l.weekday=wr,l.isoWeekday=br,l.dayOfYear=Da,l.hour=l.hours=Cr,l.minute=l.minutes=Ma,l.second=l.seconds=Ca,l.millisecond=l.milliseconds=$s,l.utcOffset=li,l.utc=ui,l.local=hi,l.parseZone=fi,l.hasAlignedHourOffset=_i,l.isDST=mi,l.isLocal=yi,l.isUtcOffset=gi,l.isUtc=xs,l.isUTC=xs,l.zoneAbbr=Na,l.zoneName=Ea,l.dates=A("dates accessor is deprecated. Use date instead.",Bs),l.months=A("months accessor is deprecated. Use month instead",ps),l.years=A("years accessor is deprecated. Use year instead",gs),l.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",di),l.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",pi);function xa(e){return M(e*1e3)}function Ya(){return M.apply(null,arguments).parseZone()}function js(e){return e}var S=kt.prototype;S.calendar=gn,S.longDateFormat=Sn,S.invalidDate=On,S.ordinal=Cn,S.preparse=js,S.postformat=js,S.relativeTime=Nn,S.pastFuture=En,S.set=pn,S.eras=ra,S.erasParse=ia,S.erasConvertYear=aa,S.erasAbbrRegex=ha,S.erasNameRegex=ua,S.erasNarrowRegex=fa,S.months=jn,S.monthsShort=Gn,S.monthsParse=Zn,S.monthsRegex=Qn,S.monthsShortRegex=Kn,S.week=er,S.firstDayOfYear=nr,S.firstDayOfWeek=sr,S.weekdays=fr,S.weekdaysMin=mr,S.weekdaysShort=_r,S.weekdaysParse=yr,S.weekdaysRegex=vr,S.weekdaysShortRegex=Sr,S.weekdaysMinRegex=kr,S.isPM=Dr,S.meridiem=Tr;function ut(e,t,s,n){var r=ne(),i=q().set(n,t);return r[s](i,e)}function Gs(e,t,s){if(X(e)&&(t=e,e=void 0),e=e||"",t!=null)return ut(e,t,s,"month");var n,r=[];for(n=0;n<12;n++)r[n]=ut(e,n,s,"month");return r}function jt(e,t,s,n){typeof e=="boolean"?(X(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,X(t)&&(s=t,t=void 0),t=t||"");var r=ne(),i=e?r._week.dow:0,a,o=[];if(s!=null)return ut(t,(s+i)%7,n,"day");for(a=0;a<7;a++)o[a]=ut(t,(a+i)%7,n,"day");return o}function Ia(e,t){return Gs(e,t,"months")}function Wa(e,t){return Gs(e,t,"monthsShort")}function Va(e,t,s){return jt(e,t,s,"weekdays")}function Ra(e,t,s){return jt(e,t,s,"weekdaysShort")}function La(e,t,s){return jt(e,t,s,"weekdaysMin")}de("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=g(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),u.lang=A("moment.lang is deprecated. Use moment.locale instead.",de),u.langData=A("moment.langData is deprecated. Use moment.localeData instead.",ne);var re=Math.abs;function Pa(){var e=this._data;return this._milliseconds=re(this._milliseconds),this._days=re(this._days),this._months=re(this._months),e.milliseconds=re(e.milliseconds),e.seconds=re(e.seconds),e.minutes=re(e.minutes),e.hours=re(e.hours),e.months=re(e.months),e.years=re(e.years),this}function zs(e,t,s,n){var r=G(t,s);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function Aa(e,t){return zs(this,e,t,1)}function Fa(e,t){return zs(this,e,t,-1)}function Zs(e){return e<0?Math.floor(e):Math.ceil(e)}function Ha(){var e=this._milliseconds,t=this._days,s=this._months,n=this._data,r,i,a,o,c;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=Zs(Gt(s)+t)*864e5,t=0,s=0),n.milliseconds=e%1e3,r=H(e/1e3),n.seconds=r%60,i=H(r/60),n.minutes=i%60,a=H(i/60),n.hours=a%24,t+=H(a/24),c=H(qs(t)),s+=c,t-=Zs(Gt(c)),o=H(s/12),s%=12,n.days=t,n.months=s,n.years=o,this}function qs(e){return e*4800/146097}function Gt(e){return e*146097/4800}function Ua(e){if(!this.isValid())return NaN;var t,s,n=this._milliseconds;if(e=F(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,s=this._months+qs(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Gt(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function Ba(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+g(this._months/12)*31536e6:NaN}function ie(e){return function(){return this.as(e)}}var $a=ie("ms"),ja=ie("s"),Ga=ie("m"),za=ie("h"),Za=ie("d"),qa=ie("w"),Ka=ie("M"),Qa=ie("Q"),Ja=ie("y");function Xa(){return G(this)}function eo(e){return e=F(e),this.isValid()?this[e+"s"]():NaN}function ge(e){return function(){return this.isValid()?this._data[e]:NaN}}var to=ge("milliseconds"),so=ge("seconds"),no=ge("minutes"),ro=ge("hours"),io=ge("days"),ao=ge("months"),oo=ge("years");function co(){return H(this.days()/7)}var ae=Math.round,Te={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function lo(e,t,s,n,r){return r.relativeTime(t||1,!!s,e,n)}function uo(e,t,s,n){var r=G(e).abs(),i=ae(r.as("s")),a=ae(r.as("m")),o=ae(r.as("h")),c=ae(r.as("d")),_=ae(r.as("M")),f=ae(r.as("w")),p=ae(r.as("y")),O=i<=s.ss&&["s",i]||i<s.s&&["ss",i]||a<=1&&["m"]||a<s.m&&["mm",a]||o<=1&&["h"]||o<s.h&&["hh",o]||c<=1&&["d"]||c<s.d&&["dd",c];return s.w!=null&&(O=O||f<=1&&["w"]||f<s.w&&["ww",f]),O=O||_<=1&&["M"]||_<s.M&&["MM",_]||p<=1&&["y"]||["yy",p],O[2]=t,O[3]=+e>0,O[4]=n,lo.apply(null,O)}function ho(e){return e===void 0?ae:typeof e=="function"?(ae=e,!0):!1}function fo(e,t){return Te[e]===void 0?!1:t===void 0?Te[e]:(Te[e]=t,e==="s"&&(Te.ss=t-1),!0)}function _o(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,n=Te,r,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(n=Object.assign({},Te,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),r=this.localeData(),i=uo(this,!s,n,r),s&&(i=r.pastFuture(+this,i)),r.postformat(i)}var zt=Math.abs;function Ne(e){return(e>0)-(e<0)||+e}function ht(){if(!this.isValid())return this.localeData().invalidDate();var e=zt(this._milliseconds)/1e3,t=zt(this._days),s=zt(this._months),n,r,i,a,o=this.asSeconds(),c,_,f,p;return o?(n=H(e/60),r=H(n/60),e%=60,n%=60,i=H(s/12),s%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=o<0?"-":"",_=Ne(this._months)!==Ne(o)?"-":"",f=Ne(this._days)!==Ne(o)?"-":"",p=Ne(this._milliseconds)!==Ne(o)?"-":"",c+"P"+(i?_+i+"Y":"")+(s?_+s+"M":"")+(t?f+t+"D":"")+(r||n||e?"T":"")+(r?p+r+"H":"")+(n?p+n+"M":"")+(e?p+a+"S":"")):"P0D"}var w=it.prototype;w.isValid=ii,w.abs=Pa,w.add=Aa,w.subtract=Fa,w.as=Ua,w.asMilliseconds=$a,w.asSeconds=ja,w.asMinutes=Ga,w.asHours=za,w.asDays=Za,w.asWeeks=qa,w.asMonths=Ka,w.asQuarters=Qa,w.asYears=Ja,w.valueOf=Ba,w._bubble=Ha,w.clone=Xa,w.get=eo,w.milliseconds=to,w.seconds=so,w.minutes=no,w.hours=ro,w.days=io,w.weeks=co,w.months=ao,w.years=oo,w.humanize=_o,w.toISOString=ht,w.toString=ht,w.toJSON=ht,w.locale=Rs,w.localeData=Ps,w.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ht),w.lang=Ls,m("X",0,0,"unix"),m("x",0,0,"valueOf"),h("x",Je),h("X",Vn),k("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),k("x",function(e,t,s){s._d=new Date(g(e))});//! moment.js
10
+ u.version="2.29.4",_n(M),u.fn=l,u.min=ti,u.max=si,u.now=ni,u.utc=q,u.unix=xa,u.months=Ia,u.isDate=Ye,u.locale=de,u.invalid=$e,u.duration=G,u.isMoment=$,u.weekdays=Va,u.parseZone=Ya,u.localeData=ne,u.isDuration=at,u.monthsShort=Wa,u.weekdaysMin=La,u.defineLocale=Wt,u.updateLocale=Yr,u.locales=Ir,u.weekdaysShort=Ra,u.normalizeUnits=F,u.relativeTimeRounding=ho,u.relativeTimeThreshold=fo,u.calendarFormat=Ti,u.prototype=l,u.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const mo=e=>u(e).format("hh:mm a").toLowerCase(),po=e=>e.toLowerCase().split(" ").map(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}).join(" "),yo={class:"chat-message"},go={class:"message"},wo={class:"detail-message flex justify-content-between"},bo={key:0,class:"mr-5"},vo={key:1,class:"mr-5"},So=d.defineComponent({__name:"ChatMessage",props:{message:{type:Object,required:!0}},setup(e){const t=e,s=d.computed(()=>t.message.responseOrigin);return(n,r)=>{var i;return d.openBlock(),d.createElementBlock("div",yo,[d.createElementVNode("div",{class:d.normalizeClass(["bubble",s.value?"left":"right"])},[d.createElementVNode("div",{class:d.normalizeClass(s.value?"content-left":"content-right")},[d.createElementVNode("div",go,d.toDisplayString(e.message.dataMessage),1),d.createElementVNode("div",wo,[(i=e.message.user)!=null&&i.nombreCompleto?(d.openBlock(),d.createElementBlock("span",bo,d.toDisplayString(d.unref(po)(e.message.user.nombreCompleto)),1)):(d.openBlock(),d.createElementBlock("span",vo)),d.createElementVNode("span",null,d.toDisplayString(d.unref(mo)(e.message.createdAt)),1)])],2)],2)])}}}),Bc="",we=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},ko=we(So,[["__scopeId","data-v-27d93f86"]]);function Oo(){return Ks().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ks(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Do=typeof Proxy=="function",Mo="devtools-plugin:setup",Co="plugin:settings:set";let Ee,Zt;function To(){var e;return Ee!==void 0||(typeof window<"u"&&window.performance?(Ee=!0,Zt=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(Ee=!0,Zt=global.perf_hooks.performance):Ee=!1),Ee}function No(){return To()?Zt.now():Date.now()}class Eo{constructor(t,s){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=s;const n={};if(t.settings)for(const a in t.settings){const o=t.settings[a];n[a]=o.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},n);try{const a=localStorage.getItem(r),o=JSON.parse(a);Object.assign(i,o)}catch{}this.fallbacks={getSettings(){return i},setSettings(a){try{localStorage.setItem(r,JSON.stringify(a))}catch{}i=a},now(){return No()}},s&&s.on(Co,(a,o)=>{a===this.plugin.id&&this.fallbacks.setSettings(o)}),this.proxiedOn=new Proxy({},{get:(a,o)=>this.target?this.target.on[o]:(...c)=>{this.onQueue.push({method:o,args:c})}}),this.proxiedTarget=new Proxy({},{get:(a,o)=>this.target?this.target[o]:o==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(o)?(...c)=>(this.targetQueue.push({method:o,args:c,resolve:()=>{}}),this.fallbacks[o](...c)):(...c)=>new Promise(_=>{this.targetQueue.push({method:o,args:c,resolve:_})})})}async setRealTarget(t){this.target=t;for(const s of this.onQueue)this.target.on[s.method](...s.args);for(const s of this.targetQueue)s.resolve(await this.target[s.method](...s.args))}}function xo(e,t){const s=e,n=Ks(),r=Oo(),i=Do&&s.enableEarlyProxy;if(r&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))r.emit(Mo,e,t);else{const a=i?new Eo(s,r):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:s,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)}}/*!
11
+ * vuex v4.1.0
12
+ * (c) 2022 Evan You
13
+ * @license MIT
14
+ */var Qs="store";function Yo(e){return e===void 0&&(e=null),d.inject(e!==null?e:Qs)}function be(e,t){Object.keys(e).forEach(function(s){return t(e[s],s)})}function Io(e){return e!==null&&typeof e=="object"}function Wo(e){return e&&typeof e.then=="function"}function z(e,t){if(!e)throw new Error("[vuex] "+t)}function Vo(e,t){return function(){return e(t)}}function Js(e,t,s){return t.indexOf(e)<0&&(s&&s.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Xs(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var s=e.state;ft(e,s,[],e._modules.root,!0),qt(e,s,t)}function qt(e,t,s){var n=e._state,r=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,a={},o={},c=d.effectScope(!0);c.run(function(){be(i,function(_,f){a[f]=Vo(_,e),o[f]=d.computed(function(){return a[f]()}),Object.defineProperty(e.getters,f,{get:function(){return o[f].value},enumerable:!0})})}),e._state=d.reactive({data:t}),e._scope=c,e.strict&&Fo(e),n&&s&&e._withCommit(function(){n.data=null}),r&&r.stop()}function ft(e,t,s,n,r){var i=!s.length,a=e._modules.getNamespace(s);if(n.namespaced&&(e._modulesNamespaceMap[a]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+s.join("/")),e._modulesNamespaceMap[a]=n),!i&&!r){var o=Kt(t,s.slice(0,-1)),c=s[s.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&c in o&&console.warn('[vuex] state field "'+c+'" was overridden by a module with the same name at "'+s.join(".")+'"'),o[c]=n.state})}var _=n.context=Ro(e,a,s);n.forEachMutation(function(f,p){var O=a+p;Lo(e,O,f,_)}),n.forEachAction(function(f,p){var O=f.root?p:a+p,b=f.handler||f;Po(e,O,b,_)}),n.forEachGetter(function(f,p){var O=a+p;Ao(e,O,f,_)}),n.forEachChild(function(f,p){ft(e,t,s.concat(p),f,r)})}function Ro(e,t,s){var n=t==="",r={dispatch:n?e.dispatch:function(i,a,o){var c=_t(i,a,o),_=c.payload,f=c.options,p=c.type;if((!f||!f.root)&&(p=t+p,process.env.NODE_ENV!=="production"&&!e._actions[p])){console.error("[vuex] unknown local action type: "+c.type+", global type: "+p);return}return e.dispatch(p,_)},commit:n?e.commit:function(i,a,o){var c=_t(i,a,o),_=c.payload,f=c.options,p=c.type;if((!f||!f.root)&&(p=t+p,process.env.NODE_ENV!=="production"&&!e._mutations[p])){console.error("[vuex] unknown local mutation type: "+c.type+", global type: "+p);return}e.commit(p,_,f)}};return Object.defineProperties(r,{getters:{get:n?function(){return e.getters}:function(){return en(e,t)}},state:{get:function(){return Kt(e.state,s)}}}),r}function en(e,t){if(!e._makeLocalGettersCache[t]){var s={},n=t.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,n)===t){var i=r.slice(n);Object.defineProperty(s,i,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[t]=s}return e._makeLocalGettersCache[t]}function Lo(e,t,s,n){var r=e._mutations[t]||(e._mutations[t]=[]);r.push(function(a){s.call(e,n.state,a)})}function Po(e,t,s,n){var r=e._actions[t]||(e._actions[t]=[]);r.push(function(a){var o=s.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},a);return Wo(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch(function(c){throw e._devtoolHook.emit("vuex:error",c),c}):o})}function Ao(e,t,s,n){if(e._wrappedGetters[t]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(i){return s(n.state,n.getters,i.state,i.getters)}}function Fo(e){d.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&z(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Kt(e,t){return t.reduce(function(s,n){return s[n]},e)}function _t(e,t,s){return Io(e)&&e.type&&(s=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&z(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:s}}var Ho="vuex bindings",tn="vuex:mutations",Qt="vuex:actions",xe="vuex",Uo=0;function Bo(e,t){xo({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Ho]},function(s){s.addTimelineLayer({id:tn,label:"Vuex Mutations",color:sn}),s.addTimelineLayer({id:Qt,label:"Vuex Actions",color:sn}),s.addInspector({id:xe,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),s.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===xe)if(n.filter){var r=[];on(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[an(t._modules.root,"")]}),s.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===xe){var r=n.nodeId;en(t,r),n.state=Go(Zo(t._modules,r),r==="root"?t.getters:t._makeLocalGettersCache,r)}}),s.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===xe){var r=n.nodeId,i=n.path;r!=="root"&&(i=r.split("/").filter(Boolean).concat(i)),t._withCommit(function(){n.set(t._state.data,i,n.state.value)})}}),t.subscribe(function(n,r){var i={};n.payload&&(i.payload=n.payload),i.state=r,s.notifyComponentUpdate(),s.sendInspectorTree(xe),s.sendInspectorState(xe),s.addTimelineEvent({layerId:tn,event:{time:Date.now(),title:n.type,data:i}})}),t.subscribeAction({before:function(n,r){var i={};n.payload&&(i.payload=n.payload),n._id=Uo++,n._time=Date.now(),i.state=r,s.addTimelineEvent({layerId:Qt,event:{time:n._time,title:n.type,groupId:n._id,subtitle:"start",data:i}})},after:function(n,r){var i={},a=Date.now()-n._time;i.duration={_custom:{type:"duration",display:a+"ms",tooltip:"Action duration",value:a}},n.payload&&(i.payload=n.payload),i.state=r,s.addTimelineEvent({layerId:Qt,event:{time:Date.now(),title:n.type,groupId:n._id,subtitle:"end",data:i}})}})})}var sn=8702998,$o=6710886,jo=16777215,nn={label:"namespaced",textColor:jo,backgroundColor:$o};function rn(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function an(e,t){return{id:t||"root",label:rn(t),tags:e.namespaced?[nn]:[],children:Object.keys(e._children).map(function(s){return an(e._children[s],t+s+"/")})}}function on(e,t,s,n){n.includes(s)&&e.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:t.namespaced?[nn]:[]}),Object.keys(t._children).forEach(function(r){on(e,t._children[r],s,n+r+"/")})}function Go(e,t,s){t=s==="root"?t:t[s];var n=Object.keys(t),r={state:Object.keys(e.state).map(function(a){return{key:a,editable:!0,value:e.state[a]}})};if(n.length){var i=zo(t);r.getters=Object.keys(i).map(function(a){return{key:a.endsWith("/")?rn(a):a,editable:!1,value:Jt(function(){return i[a]})}})}return r}function zo(e){var t={};return Object.keys(e).forEach(function(s){var n=s.split("/");if(n.length>1){var r=t,i=n.pop();n.forEach(function(a){r[a]||(r[a]={_custom:{value:{},display:a,tooltip:"Module",abstract:!0}}),r=r[a]._custom.value}),r[i]=Jt(function(){return e[s]})}else t[s]=Jt(function(){return e[s]})}),t}function Zo(e,t){var s=t.split("/").filter(function(n){return n});return s.reduce(function(n,r,i){var a=n[r];if(!a)throw new Error('Missing module "'+r+'" for path "'+t+'".');return i===s.length-1?a:a._children},t==="root"?e:e.root._children)}function Jt(e){try{return e()}catch(t){return t}}var Z=function(t,s){this.runtime=s,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=(typeof n=="function"?n():n)||{}},cn={namespaced:{configurable:!0}};cn.namespaced.get=function(){return!!this._rawModule.namespaced},Z.prototype.addChild=function(t,s){this._children[t]=s},Z.prototype.removeChild=function(t){delete this._children[t]},Z.prototype.getChild=function(t){return this._children[t]},Z.prototype.hasChild=function(t){return t in this._children},Z.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Z.prototype.forEachChild=function(t){be(this._children,t)},Z.prototype.forEachGetter=function(t){this._rawModule.getters&&be(this._rawModule.getters,t)},Z.prototype.forEachAction=function(t){this._rawModule.actions&&be(this._rawModule.actions,t)},Z.prototype.forEachMutation=function(t){this._rawModule.mutations&&be(this._rawModule.mutations,t)},Object.defineProperties(Z.prototype,cn);var ve=function(t){this.register([],t,!1)};ve.prototype.get=function(t){return t.reduce(function(s,n){return s.getChild(n)},this.root)},ve.prototype.getNamespace=function(t){var s=this.root;return t.reduce(function(n,r){return s=s.getChild(r),n+(s.namespaced?r+"/":"")},"")},ve.prototype.update=function(t){ln([],this.root,t)},ve.prototype.register=function(t,s,n){var r=this;n===void 0&&(n=!0),process.env.NODE_ENV!=="production"&&hn(t,s);var i=new Z(s,n);if(t.length===0)this.root=i;else{var a=this.get(t.slice(0,-1));a.addChild(t[t.length-1],i)}s.modules&&be(s.modules,function(o,c){r.register(t.concat(c),o,n)})},ve.prototype.unregister=function(t){var s=this.get(t.slice(0,-1)),n=t[t.length-1],r=s.getChild(n);if(!r){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+n+"', which is not registered");return}r.runtime&&s.removeChild(n)},ve.prototype.isRegistered=function(t){var s=this.get(t.slice(0,-1)),n=t[t.length-1];return s?s.hasChild(n):!1};function ln(e,t,s){if(process.env.NODE_ENV!=="production"&&hn(e,s),t.update(s),s.modules)for(var n in s.modules){if(!t.getChild(n)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+n+"' on hot reloading, manual reload is needed");return}ln(e.concat(n),t.getChild(n),s.modules[n])}}var dn={assert:function(e){return typeof e=="function"},expected:"function"},qo={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},un={getters:dn,mutations:dn,actions:qo};function hn(e,t){Object.keys(un).forEach(function(s){if(t[s]){var n=un[s];be(t[s],function(r,i){z(n.assert(r),Ko(e,s,i,r,n.expected))})}})}function Ko(e,t,s,n,r){var i=t+" should be "+r+' but "'+t+"."+s+'"';return e.length>0&&(i+=' in module "'+e.join(".")+'"'),i+=" is "+JSON.stringify(n)+".",i}var L=function e(t){var s=this;t===void 0&&(t={}),process.env.NODE_ENV!=="production"&&(z(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),z(this instanceof e,"store must be called with the new operator."));var n=t.plugins;n===void 0&&(n=[]);var r=t.strict;r===void 0&&(r=!1);var i=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ve(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var a=this,o=this,c=o.dispatch,_=o.commit;this.dispatch=function(O,b){return c.call(a,O,b)},this.commit=function(O,b,P){return _.call(a,O,b,P)},this.strict=r;var f=this._modules.root.state;ft(this,f,[],this._modules.root),qt(this,f),n.forEach(function(p){return p(s)})},Xt={state:{configurable:!0}};L.prototype.install=function(t,s){t.provide(s||Qs,this),t.config.globalProperties.$store=this;var n=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;n&&Bo(t,this)},Xt.state.get=function(){return this._state.data},Xt.state.set=function(e){process.env.NODE_ENV!=="production"&&z(!1,"use store.replaceState() to explicit replace store state.")},L.prototype.commit=function(t,s,n){var r=this,i=_t(t,s,n),a=i.type,o=i.payload,c=i.options,_={type:a,payload:o},f=this._mutations[a];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+a);return}this._withCommit(function(){f.forEach(function(O){O(o)})}),this._subscribers.slice().forEach(function(p){return p(_,r.state)}),process.env.NODE_ENV!=="production"&&c&&c.silent&&console.warn("[vuex] mutation type: "+a+". Silent option has been removed. Use the filter functionality in the vue-devtools")},L.prototype.dispatch=function(t,s){var n=this,r=_t(t,s),i=r.type,a=r.payload,o={type:i,payload:a},c=this._actions[i];if(!c){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+i);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(o,n.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var _=c.length>1?Promise.all(c.map(function(f){return f(a)})):c[0](a);return new Promise(function(f,p){_.then(function(O){try{n._actionSubscribers.filter(function(b){return b.after}).forEach(function(b){return b.after(o,n.state)})}catch(b){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(b))}f(O)},function(O){try{n._actionSubscribers.filter(function(b){return b.error}).forEach(function(b){return b.error(o,n.state,O)})}catch(b){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(b))}p(O)})})},L.prototype.subscribe=function(t,s){return Js(t,this._subscribers,s)},L.prototype.subscribeAction=function(t,s){var n=typeof t=="function"?{before:t}:t;return Js(n,this._actionSubscribers,s)},L.prototype.watch=function(t,s,n){var r=this;return process.env.NODE_ENV!=="production"&&z(typeof t=="function","store.watch only accepts a function."),d.watch(function(){return t(r.state,r.getters)},s,Object.assign({},n))},L.prototype.replaceState=function(t){var s=this;this._withCommit(function(){s._state.data=t})},L.prototype.registerModule=function(t,s,n){n===void 0&&(n={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(z(Array.isArray(t),"module path must be a string or an Array."),z(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,s),ft(this,this.state,t,this._modules.get(t),n.preserveState),qt(this,this.state)},L.prototype.unregisterModule=function(t){var s=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&z(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var n=Kt(s.state,t.slice(0,-1));delete n[t[t.length-1]]}),Xs(this)},L.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&z(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)},L.prototype.hotUpdate=function(t){this._modules.update(t),Xs(this,!0)},L.prototype._withCommit=function(t){var s=this._committing;this._committing=!0,t(),this._committing=s},Object.defineProperties(L.prototype,Xt);var Qo=Object.defineProperty,Jo=(e,t,s)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Xo=(e,t,s)=>(Jo(e,typeof t!="symbol"?t+"":t,s),s);const Be={LF:`
15
+ `,NULL:"\0"};class he{constructor(t){const{command:s,headers:n,body:r,binaryBody:i,escapeHeaderValues:a,skipContentLengthHeader:o}=t;this.command=s,this.headers=Object.assign({},n||{}),i?(this._binaryBody=i,this.isBinaryBody=!0):(this._body=r||"",this.isBinaryBody=!1),this.escapeHeaderValues=a||!1,this.skipContentLengthHeader=o||!1}get body(){return!this._body&&this.isBinaryBody&&(this._body=new TextDecoder().decode(this._binaryBody)),this._body||""}get binaryBody(){return!this._binaryBody&&!this.isBinaryBody&&(this._binaryBody=new TextEncoder().encode(this._body)),this._binaryBody}static fromRawFrame(t,s){const n={},r=i=>i.replace(/^\s+|\s+$/g,"");for(const i of t.headers.reverse()){i.indexOf(":");const a=r(i[0]);let o=r(i[1]);s&&t.command!=="CONNECT"&&t.command!=="CONNECTED"&&(o=he.hdrValueUnEscape(o)),n[a]=o}return new he({command:t.command,headers:n,binaryBody:t.binaryBody,escapeHeaderValues:s})}toString(){return this.serializeCmdAndHeaders()}serialize(){const t=this.serializeCmdAndHeaders();return this.isBinaryBody?he.toUnit8Array(t,this._binaryBody).buffer:t+this._body+Be.NULL}serializeCmdAndHeaders(){const t=[this.command];this.skipContentLengthHeader&&delete this.headers["content-length"];for(const s of Object.keys(this.headers||{})){const n=this.headers[s];this.escapeHeaderValues&&this.command!=="CONNECT"&&this.command!=="CONNECTED"?t.push(`${s}:${he.hdrValueEscape(`${n}`)}`):t.push(`${s}:${n}`)}return(this.isBinaryBody||!this.isBodyEmpty()&&!this.skipContentLengthHeader)&&t.push(`content-length:${this.bodyLength()}`),t.join(Be.LF)+Be.LF+Be.LF}isBodyEmpty(){return this.bodyLength()===0}bodyLength(){const t=this.binaryBody;return t?t.length:0}static sizeOfUTF8(t){return t?new TextEncoder().encode(t).length:0}static toUnit8Array(t,s){const n=new TextEncoder().encode(t),r=new Uint8Array([0]),i=new Uint8Array(n.length+s.length+r.length);return i.set(n),i.set(s,n.length),i.set(r,n.length+s.length),i}static marshall(t){return new he(t).serialize()}static hdrValueEscape(t){return t.replace(/\\/g,"\\\\").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/:/g,"\\c")}static hdrValueUnEscape(t){return t.replace(/\\r/g,"\r").replace(/\\n/g,`
16
+ `).replace(/\\c/g,":").replace(/\\\\/g,"\\")}}const fn=0,mt=10,pt=13,ec=58;class tc{constructor(t,s){this.onFrame=t,this.onIncomingPing=s,this._encoder=new TextEncoder,this._decoder=new TextDecoder,this._token=[],this._initState()}parseChunk(t,s=!1){let n;if(typeof t=="string"?n=this._encoder.encode(t):n=new Uint8Array(t),s&&n[n.length-1]!==0){const r=new Uint8Array(n.length+1);r.set(n,0),r[n.length]=0,n=r}for(let r=0;r<n.length;r++){const i=n[r];this._onByte(i)}}_collectFrame(t){if(t!==fn&&t!==pt){if(t===mt){this.onIncomingPing();return}this._onByte=this._collectCommand,this._reinjectByte(t)}}_collectCommand(t){if(t!==pt){if(t===mt){this._results.command=this._consumeTokenAsUTF8(),this._onByte=this._collectHeaders;return}this._consumeByte(t)}}_collectHeaders(t){if(t!==pt){if(t===mt){this._setupCollectBody();return}this._onByte=this._collectHeaderKey,this._reinjectByte(t)}}_reinjectByte(t){this._onByte(t)}_collectHeaderKey(t){if(t===ec){this._headerKey=this._consumeTokenAsUTF8(),this._onByte=this._collectHeaderValue;return}this._consumeByte(t)}_collectHeaderValue(t){if(t!==pt){if(t===mt){this._results.headers.push([this._headerKey,this._consumeTokenAsUTF8()]),this._headerKey=void 0,this._onByte=this._collectHeaders;return}this._consumeByte(t)}}_setupCollectBody(){const t=this._results.headers.filter(s=>s[0]==="content-length")[0];t?(this._bodyBytesRemaining=parseInt(t[1],10),this._onByte=this._collectBodyFixedSize):this._onByte=this._collectBodyNullTerminated}_collectBodyNullTerminated(t){if(t===fn){this._retrievedBody();return}this._consumeByte(t)}_collectBodyFixedSize(t){if(this._bodyBytesRemaining--===0){this._retrievedBody();return}this._consumeByte(t)}_retrievedBody(){this._results.binaryBody=this._consumeTokenAsRaw();try{this.onFrame(this._results)}catch(t){console.log("Ignoring an exception thrown by a frame handler. Original exception: ",t)}this._initState()}_consumeByte(t){this._token.push(t)}_consumeTokenAsUTF8(){return this._decoder.decode(this._consumeTokenAsRaw())}_consumeTokenAsRaw(){const t=new Uint8Array(this._token);return this._token=[],t}_initState(){this._results={command:void 0,headers:[],binaryBody:void 0},this._token=[],this._headerKey=void 0,this._onByte=this._collectFrame}}var oe;(function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED"})(oe=oe||(oe={}));var U;(function(e){e[e.ACTIVE=0]="ACTIVE",e[e.DEACTIVATING=1]="DEACTIVATING",e[e.INACTIVE=2]="INACTIVE"})(U=U||(U={}));class I{constructor(t){this.versions=t}supportedVersions(){return this.versions.join(",")}protocolVersions(){return this.versions.map(t=>`v${t.replace(".","")}.stomp`)}}I.V1_0="1.0",I.V1_1="1.1",I.V1_2="1.2",I.default=new I([I.V1_2,I.V1_1,I.V1_0]);function sc(e,t){e.terminate=function(){const s=()=>{};this.onerror=s,this.onmessage=s,this.onopen=s;const n=new Date,r=Math.random().toString().substring(2,8),i=this.onclose;this.onclose=a=>{const o=new Date().getTime()-n.getTime();t(`Discarded socket (#${r}) closed after ${o}ms, with code/reason: ${a.code}/${a.reason}`)},this.close(),i==null||i.call(e,{code:4001,reason:`Quick discarding socket (#${r}) without waiting for the shutdown sequence.`,wasClean:!1})}}class nc{constructor(t,s,n){this._client=t,this._webSocket=s,this._connected=!1,this._serverFrameHandlers={CONNECTED:r=>{this.debug(`connected to server ${r.headers.server}`),this._connected=!0,this._connectedVersion=r.headers.version,this._connectedVersion===I.V1_2&&(this._escapeHeaderValues=!0),this._setupHeartbeat(r.headers),this.onConnect(r)},MESSAGE:r=>{const i=r.headers.subscription,a=this._subscriptions[i]||this.onUnhandledMessage,o=r,c=this,_=this._connectedVersion===I.V1_2?o.headers.ack:o.headers["message-id"];o.ack=(f={})=>c.ack(_,i,f),o.nack=(f={})=>c.nack(_,i,f),a(o)},RECEIPT:r=>{const i=this._receiptWatchers[r.headers["receipt-id"]];i?(i(r),delete this._receiptWatchers[r.headers["receipt-id"]]):this.onUnhandledReceipt(r)},ERROR:r=>{this.onStompError(r)}},this._counter=0,this._subscriptions={},this._receiptWatchers={},this._partialData="",this._escapeHeaderValues=!1,this._lastServerActivityTS=Date.now(),this.debug=n.debug,this.stompVersions=n.stompVersions,this.connectHeaders=n.connectHeaders,this.disconnectHeaders=n.disconnectHeaders,this.heartbeatIncoming=n.heartbeatIncoming,this.heartbeatOutgoing=n.heartbeatOutgoing,this.splitLargeFrames=n.splitLargeFrames,this.maxWebSocketChunkSize=n.maxWebSocketChunkSize,this.forceBinaryWSFrames=n.forceBinaryWSFrames,this.logRawCommunication=n.logRawCommunication,this.appendMissingNULLonIncoming=n.appendMissingNULLonIncoming,this.discardWebsocketOnCommFailure=n.discardWebsocketOnCommFailure,this.onConnect=n.onConnect,this.onDisconnect=n.onDisconnect,this.onStompError=n.onStompError,this.onWebSocketClose=n.onWebSocketClose,this.onWebSocketError=n.onWebSocketError,this.onUnhandledMessage=n.onUnhandledMessage,this.onUnhandledReceipt=n.onUnhandledReceipt,this.onUnhandledFrame=n.onUnhandledFrame}get connectedVersion(){return this._connectedVersion}get connected(){return this._connected}start(){const t=new tc(s=>{const n=he.fromRawFrame(s,this._escapeHeaderValues);this.logRawCommunication||this.debug(`<<< ${n}`),(this._serverFrameHandlers[n.command]||this.onUnhandledFrame)(n)},()=>{this.debug("<<< PONG")});this._webSocket.onmessage=s=>{if(this.debug("Received data"),this._lastServerActivityTS=Date.now(),this.logRawCommunication){const n=s.data instanceof ArrayBuffer?new TextDecoder().decode(s.data):s.data;this.debug(`<<< ${n}`)}t.parseChunk(s.data,this.appendMissingNULLonIncoming)},this._webSocket.onclose=s=>{this.debug(`Connection closed to ${this._webSocket.url}`),this._cleanUp(),this.onWebSocketClose(s)},this._webSocket.onerror=s=>{this.onWebSocketError(s)},this._webSocket.onopen=()=>{const s=Object.assign({},this.connectHeaders);this.debug("Web Socket Opened..."),s["accept-version"]=this.stompVersions.supportedVersions(),s["heart-beat"]=[this.heartbeatOutgoing,this.heartbeatIncoming].join(","),this._transmit({command:"CONNECT",headers:s})}}_setupHeartbeat(t){if(t.version!==I.V1_1&&t.version!==I.V1_2||!t["heart-beat"])return;const[s,n]=t["heart-beat"].split(",").map(r=>parseInt(r,10));if(this.heartbeatOutgoing!==0&&n!==0){const r=Math.max(this.heartbeatOutgoing,n);this.debug(`send PING every ${r}ms`),this._pinger=setInterval(()=>{this._webSocket.readyState===oe.OPEN&&(this._webSocket.send(Be.LF),this.debug(">>> PING"))},r)}if(this.heartbeatIncoming!==0&&s!==0){const r=Math.max(this.heartbeatIncoming,s);this.debug(`check PONG every ${r}ms`),this._ponger=setInterval(()=>{const i=Date.now()-this._lastServerActivityTS;i>r*2&&(this.debug(`did not receive server activity for the last ${i}ms`),this._closeOrDiscardWebsocket())},r)}}_closeOrDiscardWebsocket(){this.discardWebsocketOnCommFailure?(this.debug("Discarding websocket, the underlying socket may linger for a while"),this.discardWebsocket()):(this.debug("Issuing close on the websocket"),this._closeWebsocket())}forceDisconnect(){this._webSocket&&(this._webSocket.readyState===oe.CONNECTING||this._webSocket.readyState===oe.OPEN)&&this._closeOrDiscardWebsocket()}_closeWebsocket(){this._webSocket.onmessage=()=>{},this._webSocket.close()}discardWebsocket(){typeof this._webSocket.terminate!="function"&&sc(this._webSocket,t=>this.debug(t)),this._webSocket.terminate()}_transmit(t){const{command:s,headers:n,body:r,binaryBody:i,skipContentLengthHeader:a}=t,o=new he({command:s,headers:n,body:r,binaryBody:i,escapeHeaderValues:this._escapeHeaderValues,skipContentLengthHeader:a});let c=o.serialize();if(this.logRawCommunication?this.debug(`>>> ${c}`):this.debug(`>>> ${o}`),this.forceBinaryWSFrames&&typeof c=="string"&&(c=new TextEncoder().encode(c)),typeof c!="string"||!this.splitLargeFrames)this._webSocket.send(c);else{let _=c;for(;_.length>0;){const f=_.substring(0,this.maxWebSocketChunkSize);_=_.substring(this.maxWebSocketChunkSize),this._webSocket.send(f),this.debug(`chunk sent = ${f.length}, remaining = ${_.length}`)}}}dispose(){if(this.connected)try{const t=Object.assign({},this.disconnectHeaders);t.receipt||(t.receipt=`close-${this._counter++}`),this.watchForReceipt(t.receipt,s=>{this._closeWebsocket(),this._cleanUp(),this.onDisconnect(s)}),this._transmit({command:"DISCONNECT",headers:t})}catch(t){this.debug(`Ignoring error during disconnect ${t}`)}else(this._webSocket.readyState===oe.CONNECTING||this._webSocket.readyState===oe.OPEN)&&this._closeWebsocket()}_cleanUp(){this._connected=!1,this._pinger&&(clearInterval(this._pinger),this._pinger=void 0),this._ponger&&(clearInterval(this._ponger),this._ponger=void 0)}publish(t){const{destination:s,headers:n,body:r,binaryBody:i,skipContentLengthHeader:a}=t,o=Object.assign({destination:s},n);this._transmit({command:"SEND",headers:o,body:r,binaryBody:i,skipContentLengthHeader:a})}watchForReceipt(t,s){this._receiptWatchers[t]=s}subscribe(t,s,n={}){n=Object.assign({},n),n.id||(n.id=`sub-${this._counter++}`),n.destination=t,this._subscriptions[n.id]=s,this._transmit({command:"SUBSCRIBE",headers:n});const r=this;return{id:n.id,unsubscribe(i){return r.unsubscribe(n.id,i)}}}unsubscribe(t,s={}){s=Object.assign({},s),delete this._subscriptions[t],s.id=t,this._transmit({command:"UNSUBSCRIBE",headers:s})}begin(t){const s=t||`tx-${this._counter++}`;this._transmit({command:"BEGIN",headers:{transaction:s}});const n=this;return{id:s,commit(){n.commit(s)},abort(){n.abort(s)}}}commit(t){this._transmit({command:"COMMIT",headers:{transaction:t}})}abort(t){this._transmit({command:"ABORT",headers:{transaction:t}})}ack(t,s,n={}){n=Object.assign({},n),this._connectedVersion===I.V1_2?n.id=t:n["message-id"]=t,n.subscription=s,this._transmit({command:"ACK",headers:n})}nack(t,s,n={}){return n=Object.assign({},n),this._connectedVersion===I.V1_2?n.id=t:n["message-id"]=t,n.subscription=s,this._transmit({command:"NACK",headers:n})}}class rc{constructor(t={}){this.stompVersions=I.default,this.connectionTimeout=0,this.reconnectDelay=5e3,this.heartbeatIncoming=1e4,this.heartbeatOutgoing=1e4,this.splitLargeFrames=!1,this.maxWebSocketChunkSize=8*1024,this.forceBinaryWSFrames=!1,this.appendMissingNULLonIncoming=!1,this.discardWebsocketOnCommFailure=!1,this.state=U.INACTIVE;const s=()=>{};this.debug=s,this.beforeConnect=s,this.onConnect=s,this.onDisconnect=s,this.onUnhandledMessage=s,this.onUnhandledReceipt=s,this.onUnhandledFrame=s,this.onStompError=s,this.onWebSocketClose=s,this.onWebSocketError=s,this.logRawCommunication=!1,this.onChangeState=s,this.connectHeaders={},this._disconnectHeaders={},this.configure(t)}get webSocket(){var t;return(t=this._stompHandler)==null?void 0:t._webSocket}get disconnectHeaders(){return this._disconnectHeaders}set disconnectHeaders(t){this._disconnectHeaders=t,this._stompHandler&&(this._stompHandler.disconnectHeaders=this._disconnectHeaders)}get connected(){return!!this._stompHandler&&this._stompHandler.connected}get connectedVersion(){return this._stompHandler?this._stompHandler.connectedVersion:void 0}get active(){return this.state===U.ACTIVE}_changeState(t){this.state=t,this.onChangeState(t)}configure(t){Object.assign(this,t)}activate(){const t=()=>{if(this.active){this.debug("Already ACTIVE, ignoring request to activate");return}this._changeState(U.ACTIVE),this._connect()};this.state===U.DEACTIVATING?(this.debug("Waiting for deactivation to finish before activating"),this.deactivate().then(()=>{t()})):t()}async _connect(){if(await this.beforeConnect(),this._stompHandler){this.debug("There is already a stompHandler, skipping the call to connect");return}if(!this.active){this.debug("Client has been marked inactive, will not attempt to connect");return}this.connectionTimeout>0&&(this._connectionWatcher&&clearTimeout(this._connectionWatcher),this._connectionWatcher=setTimeout(()=>{this.connected||(this.debug(`Connection not established in ${this.connectionTimeout}ms, closing socket`),this.forceDisconnect())},this.connectionTimeout)),this.debug("Opening Web Socket...");const t=this._createWebSocket();this._stompHandler=new nc(this,t,{debug:this.debug,stompVersions:this.stompVersions,connectHeaders:this.connectHeaders,disconnectHeaders:this._disconnectHeaders,heartbeatIncoming:this.heartbeatIncoming,heartbeatOutgoing:this.heartbeatOutgoing,splitLargeFrames:this.splitLargeFrames,maxWebSocketChunkSize:this.maxWebSocketChunkSize,forceBinaryWSFrames:this.forceBinaryWSFrames,logRawCommunication:this.logRawCommunication,appendMissingNULLonIncoming:this.appendMissingNULLonIncoming,discardWebsocketOnCommFailure:this.discardWebsocketOnCommFailure,onConnect:s=>{if(this._connectionWatcher&&(clearTimeout(this._connectionWatcher),this._connectionWatcher=void 0),!this.active){this.debug("STOMP got connected while deactivate was issued, will disconnect now"),this._disposeStompHandler();return}this.onConnect(s)},onDisconnect:s=>{this.onDisconnect(s)},onStompError:s=>{this.onStompError(s)},onWebSocketClose:s=>{this._stompHandler=void 0,this.state===U.DEACTIVATING&&this._changeState(U.INACTIVE),this.onWebSocketClose(s),this.active&&this._schedule_reconnect()},onWebSocketError:s=>{this.onWebSocketError(s)},onUnhandledMessage:s=>{this.onUnhandledMessage(s)},onUnhandledReceipt:s=>{this.onUnhandledReceipt(s)},onUnhandledFrame:s=>{this.onUnhandledFrame(s)}}),this._stompHandler.start()}_createWebSocket(){let t;if(this.webSocketFactory)t=this.webSocketFactory();else if(this.brokerURL)t=new WebSocket(this.brokerURL,this.stompVersions.protocolVersions());else throw new Error("Either brokerURL or webSocketFactory must be provided");return t.binaryType="arraybuffer",t}_schedule_reconnect(){this.reconnectDelay>0&&(this.debug(`STOMP: scheduling reconnection in ${this.reconnectDelay}ms`),this._reconnector=setTimeout(()=>{this._connect()},this.reconnectDelay))}async deactivate(t={}){var s;const n=t.force||!1,r=this.active;let i;if(this.state===U.INACTIVE)return this.debug("Already INACTIVE, nothing more to do"),Promise.resolve();if(this._changeState(U.DEACTIVATING),this._reconnector&&(clearTimeout(this._reconnector),this._reconnector=void 0),this._stompHandler&&this.webSocket.readyState!==oe.CLOSED){const a=this._stompHandler.onWebSocketClose;i=new Promise((o,c)=>{this._stompHandler.onWebSocketClose=_=>{a(_),o()}})}else return this._changeState(U.INACTIVE),Promise.resolve();return n?(s=this._stompHandler)==null||s.discardWebsocket():r&&this._disposeStompHandler(),i}forceDisconnect(){this._stompHandler&&this._stompHandler.forceDisconnect()}_disposeStompHandler(){this._stompHandler&&this._stompHandler.dispose()}publish(t){this._checkConnection(),this._stompHandler.publish(t)}_checkConnection(){if(!this.connected)throw new TypeError("There is no underlying STOMP connection")}watchForReceipt(t,s){this._checkConnection(),this._stompHandler.watchForReceipt(t,s)}subscribe(t,s,n={}){return this._checkConnection(),this._stompHandler.subscribe(t,s,n)}unsubscribe(t,s={}){this._checkConnection(),this._stompHandler.unsubscribe(t,s)}begin(t){return this._checkConnection(),this._stompHandler.begin(t)}commit(t){this._checkConnection(),this._stompHandler.commit(t)}abort(t){this._checkConnection(),this._stompHandler.abort(t)}ack(t,s,n={}){this._checkConnection(),this._stompHandler.ack(t,s,n)}nack(t,s,n={}){this._checkConnection(),this._stompHandler.nack(t,s,n)}}class ic{constructor(t,s){Xo(this,"client"),this.virtualHost=t,this.queue=s,this.client=new rc({brokerURL:window.VITE_BROKER_URL?window.VITE_BROKER_URL:"ws://192.168.20.107:15674/ws",connectHeaders:{login:window.VITE_USERNAME?window.VITE_USERNAME:"admin",passcode:window.VITE_PASSWORD?window.VITE_PASSWORD:"password",host:this.virtualHost}})}async connect(){return new Promise((t,s)=>{this.client.onConnect=()=>{t()},this.client.activate()})}async disconnectClient(){this.client.onDisconnect=()=>{},this.client.deactivate(),this.client.unsubscribe("")}async subscribe(t){await this.connect(),this.client.subscribe(`/queue/${this.queue}`,s=>{const n=JSON.parse(s.body);t(n)})}async publish(t){this.client.publish({destination:`/queue/${this.queue}`,body:JSON.stringify({data:t})})}}const ac={},oc={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cc=[d.createElementVNode("path",{d:"M16 31C24.2843 31 31 24.2843 31 16C31 7.71573 24.2843 1 16 1C7.71573 1 1 7.71573 1 16C1 24.2843 7.71573 31 16 31Z",stroke:"#B3B3B3","stroke-miterlimit":"10"},null,-1),d.createElementVNode("path",{d:"M19.78 22.3L15.98 16.63H15.9601L12.2001 22.3H11.0701L15.37 15.8899L11.25 9.69995H12.38L15.98 15.08H16L19.67 9.69995H20.8L16.55 15.82L20.92 22.3H19.77H19.78Z",fill:"#B3B3B3"},null,-1)];function lc(e,t){return d.openBlock(),d.createElementBlock("svg",oc,cc)}const dc=we(ac,[["render",lc]]),uc={},hc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fc=[d.createElementVNode("path",{d:"M11.9301 23.25C5.65005 23.25 0.550049 18.14 0.550049 11.87C0.550049 5.6 5.66005 0.48999 11.9301 0.48999C18.2001 0.48999 23.3101 5.6 23.3101 11.87C23.3101 18.14 18.2001 23.25 11.9301 23.25ZM11.9301 1.10999C6.00005 1.10999 1.17004 5.94 1.17004 11.87C1.17004 17.8 6.00005 22.63 11.9301 22.63C17.8601 22.63 22.6899 17.8 22.6899 11.87C22.6899 5.94 17.8601 1.10999 11.9301 1.10999Z",fill:"#F28B0C"},null,-1),d.createElementVNode("path",{d:"M8.68994 17.0601C8.63994 17.0601 8.58004 17.0501 8.54004 17.0201C8.44004 16.9701 8.38 16.8601 8.38 16.7501V6.99007C8.38 6.88007 8.44004 6.78005 8.54004 6.72005C8.64004 6.66005 8.74998 6.67005 8.84998 6.72005L17.1899 11.6001C17.2799 11.6601 17.34 11.7601 17.34 11.8701C17.34 11.9801 17.2799 12.0801 17.1899 12.1401L8.84998 17.0201C8.84998 17.0201 8.74994 17.0601 8.68994 17.0601ZM9 7.5301V16.21L16.42 11.8701L9 7.5301Z",fill:"#F28B0C"},null,-1)];function _c(e,t){return d.openBlock(),d.createElementBlock("svg",hc,fc)}const mc=we(uc,[["render",_c]]),pc={},yc={width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gc=[d.createElementVNode("path",{d:"M21.04 40.9399C32.0857 40.9399 41.04 31.9856 41.04 20.9399C41.04 9.89419 32.0857 0.939941 21.04 0.939941C9.99428 0.939941 1.03998 9.89419 1.03998 20.9399C1.03998 31.9856 9.99428 40.9399 21.04 40.9399Z",stroke:"#F28B0C","stroke-width":"1.5","stroke-miterlimit":"10"},null,-1),d.createElementVNode("path",{d:"M22.87 20.36C24.92 19.57 26.38 17.5801 26.38 15.2601C26.38 12.2401 23.93 9.79004 20.91 9.79004C17.89 9.79004 15.44 12.2401 15.44 15.2601C15.44 17.6301 16.95 19.6401 19.06 20.4001C16.15 21.2601 14.02 23.9501 14.02 27.1301V31.7701C14.02 31.9401 14.16 32.08 14.33 32.08H27.76C27.93 32.08 28.07 31.9401 28.07 31.7701V27.1301C28.07 23.8901 25.86 21.16 22.87 20.36Z",fill:"#F28B0C"},null,-1)];function wc(e,t){return d.openBlock(),d.createElementBlock("svg",yc,gc)}const bc=we(pc,[["render",wc]]),vc=e=>(d.pushScopeId("data-v-f8d5bc79"),e=e(),d.popScopeId(),e),Sc={class:"widget"},kc={class:"header-widget"},Oc=vc(()=>d.createElementVNode("span",null,null,-1)),Dc={class:"messages-container",id:"messages-container",ref:"messagesContainer"},Mc={class:"input-message w-full"},Cc=["onSubmit"],Tc={class:"form-message"},Nc={type:"submit"},Ec={class:"jl-inputgroup"},xc={type:"submit"},Yc=d.defineComponent({__name:"Chat",props:{toggleChat:{type:Function,required:!0},tokenAuth:{type:String,required:!0},phoneUser:{type:String,required:!0}},setup(e){const t=e,s=Yo(),n=d.ref("webchat"),r=d.ref("76177719"),i=d.ref(null),a=d.ref(null),o=d.ref([]),c=b=>b.startsWith("591")&&b.length===11?b.substring(3):b,_=async b=>{b.preventDefault();const{virtualHost:P}=s.state;await s.dispatch("sendMessageByAppAndPhone",{token:t.tokenAuth,data:{virtualHost:P,queue:`widget_chat_${sessionStorage.getItem("tabBrowser")}`,device:"00000000",phone:c(r.value),app:n.value,message:a.value,widget:!0}}),a.value=null},f=async b=>{b.resetConnection&&O(),p();const P=[];await s.dispatch("messagesByAppAndPhone",{token:t.tokenAuth,data:{phone:t.phoneUser,app:n.value,device:null}});const fe=s.getters.get_messages_chat;if(fe){for(const _e of fe)P.push(..._e.messages);o.value=P}},p=(b="webchat")=>{const{virtualHost:P}=s.state;if(!sessionStorage.getItem("tabBrowser")){let _e=Date.now();sessionStorage.setItem("tabBrowser",`${_e}`)}i.value=new ic(`${P}`,`widget_chat_${sessionStorage.getItem("tabBrowser")}`),i.value.connect(),i.value.subscribe(async()=>{await f({resetConnection:!1});const _e=document.getElementById("messages-container");_e.scrollTop=_e.scrollHeight})},O=()=>{var b;(b=i.value)==null||b.disconnectClient()};return d.onMounted(async()=>{await f({resetConnection:!1});const b=`WIDGET_CHAT_${t.phoneUser}`;await s.dispatch("syncVirtualHostCentral",{token:t.tokenAuth,data:{virtualHost:b}}),p()}),(b,P)=>(d.openBlock(),d.createElementBlock("div",Sc,[d.createElementVNode("div",kc,[Oc,d.createVNode(dc,{onClick:P[0]||(P[0]=fe=>e.toggleChat())})]),d.createElementVNode("div",Dc,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.value,(fe,_e)=>(d.openBlock(),d.createBlock(ko,{class:"message",key:_e,message:fe},null,8,["message"]))),128))],512),d.createElementVNode("div",Mc,[d.createElementVNode("form",{class:"message-send",onSubmit:d.withModifiers(_,["prevent"])},[d.createElementVNode("div",Tc,[d.createElementVNode("button",Nc,[d.createVNode(bc)]),d.createElementVNode("div",Ec,[d.withDirectives(d.createElementVNode("input",{"onUpdate:modelValue":P[1]||(P[1]=fe=>a.value=fe),class:"jl2-input",required:""},null,512),[[d.vModelText,a.value]]),d.createElementVNode("button",xc,[d.createVNode(mc)])])])],40,Cc)])]))}}),Kc="",Ic=we(Yc,[["__scopeId","data-v-f8d5bc79"]]),Wc={},Vc={width:"87",height:"87",viewBox:"0 0 87 87",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Rc=[d.createStaticVNode('<g filter="url(#filter0_d_4007_3488)"><path d="M43.5 77C64.2107 77 81 60.2107 81 39.5C81 18.7893 64.2107 2 43.5 2C22.7893 2 6 18.7893 6 39.5C6 60.2107 22.7893 77 43.5 77Z" fill="white" stroke="#F28B0C" stroke-width="3" stroke-miterlimit="10"></path><path d="M39.705 38.885C40.6908 38.885 41.49 38.0858 41.49 37.1C41.49 36.1142 40.6908 35.315 39.705 35.315C38.7192 35.315 37.92 36.1142 37.92 37.1C37.92 38.0858 38.7192 38.885 39.705 38.885Z" fill="#F28B0C"></path><path d="M45.075 38.885C46.0608 38.885 46.86 38.0858 46.86 37.1C46.86 36.1142 46.0608 35.315 45.075 35.315C44.0892 35.315 43.29 36.1142 43.29 37.1C43.29 38.0858 44.0892 38.885 45.075 38.885Z" fill="#F28B0C"></path><path d="M50.445 38.885C51.4308 38.885 52.23 38.0858 52.23 37.1C52.23 36.1142 51.4308 35.315 50.445 35.315C49.4592 35.315 48.66 36.1142 48.66 37.1C48.66 38.0858 49.4592 38.885 50.445 38.885Z" fill="#F28B0C"></path><path d="M63.27 58.235L58.755 47.78C61.125 44.765 62.415 40.97 62.415 37.175C62.415 26.435 52.665 18.185 41.925 20.12C39.99 19.325 37.98 18.905 35.835 18.905C26.955 18.905 19.785 26.135 19.785 34.955C19.785 38.54 21 41.975 23.145 44.765L18.99 54.44C18.84 54.8 18.915 55.235 19.2 55.445C19.485 55.73 19.92 55.73 20.205 55.595L30.6 50.15C31.89 50.585 33.255 50.87 34.68 50.945C39.48 54.53 45.57 55.25 50.655 53.45L61.905 59.33C62.265 59.48 62.625 59.48 62.91 59.18C63.345 58.97 63.405 58.61 63.27 58.25V58.235ZM51.24 51.71C51.03 51.56 50.745 51.56 50.52 51.635C48.795 52.28 46.935 52.64 45.15 52.64C36.69 52.64 29.61 45.755 29.61 37.1C29.61 29.72 34.845 23.345 42.075 21.845C51.75 19.91 60.705 27.29 60.705 37.1C60.705 40.685 59.415 44.27 57.12 46.985C56.91 47.27 56.835 47.63 56.97 47.915L60.69 56.585L51.24 51.71Z" fill="#F28B0C"></path></g><defs><filter id="filter0_d_4007_3488" x="0.5" y="0.5" width="86" height="86" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4007_3488"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4007_3488" result="shape"></feBlend></filter></defs>',2)];function Lc(e,t){return d.openBlock(),d.createElementBlock("svg",Vc,Rc)}const Pc=we(Wc,[["render",Lc]]),Ac={key:0,class:"chat-box"},Fc=d.defineComponent({__name:"Widget",props:{tokenAuth:{type:String,required:!0},phoneUser:{type:String,required:!0}},setup(e){const t=d.ref(!1),s=()=>{t.value=!t.value};return(n,r)=>(d.openBlock(),d.createElementBlock("div",null,[d.createElementVNode("div",null,[d.createElementVNode("div",{id:"chat-circle",onClick:s},[d.createVNode(Pc)]),t.value?(d.openBlock(),d.createElementBlock("div",Ac,[d.createVNode(Ic,{toggleChat:s,tokenAuth:e.tokenAuth,phoneUser:e.phoneUser},null,8,["tokenAuth","phoneUser"])])):d.createCommentVNode("",!0)])]))}}),Jc="",Hc=we(Fc,[["__scopeId","data-v-4b17fe0e"]]),Uc={install(e,t){}};ce.Widget=Hc,ce.default=Uc,Object.defineProperties(ce,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "vue-wiguet-chatweb",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "files": [
6
+ "dist",
7
+ "src/components/"
8
+ ],
9
+ "main": "./dist/vue-wiguet-chatweb.umd.cjs",
10
+ "module": "./dist/vue-wiguet-chatweb.js",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/vue-wiguet-chatweb.js",
14
+ "require": "./dist/vue-wiguet-chatweb.umd.cjs"
15
+ }
16
+ },
17
+ "types": "./dist/index.d.ts",
18
+ "keywords": [
19
+ "vue",
20
+ "vue3",
21
+ "vue-wiguet-chatweb"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "license": "MIT",
27
+ "scripts": {
28
+ "dev": "vite",
29
+ "build": "vue-tsc && vite build",
30
+ "preview": "vite preview"
31
+ },
32
+ "dependencies": {
33
+ "axios": "^1.4.0",
34
+ "moment": "^2.29.4",
35
+ "socket.io-client": "^4.7.2",
36
+ "vite-plugin-dts": "^3.4.0",
37
+ "vue": "^3.3.4",
38
+ "vue-rabbit-frontend": "^0.0.15",
39
+ "vuex": "^4.1.0"
40
+ },
41
+ "devDependencies": {
42
+ "@types/node": "^20.4.6",
43
+ "@vitejs/plugin-vue": "^4.2.3",
44
+ "typescript": "^5.0.2",
45
+ "vite": "^4.4.5",
46
+ "vue-tsc": "^1.8.5"
47
+ }
48
+ }
@@ -0,0 +1,137 @@
1
+ <template>
2
+ <div class="widget">
3
+ <div class="header-widget">
4
+ <span></span>
5
+ <IconClose @click="toggleChat()"/>
6
+ </div>
7
+ <div class="messages-container" id="messages-container" ref="messagesContainer">
8
+ <chat-message class="message" v-for="(message, index) in messages" :key="index" :message="message">
9
+ </chat-message>
10
+ </div>
11
+ <div class="input-message w-full">
12
+ <form class="message-send" @submit.prevent="submitMessage">
13
+ <div class="form-message">
14
+ <button type="submit">
15
+ <IconUser/>
16
+ </button>
17
+ <div class="jl-inputgroup">
18
+ <input v-model="message" class="jl2-input" required/>
19
+ <button type="submit">
20
+ <IconSend/>
21
+ </button>
22
+ </div>
23
+ </div>
24
+ </form>
25
+ </div>
26
+ </div>
27
+ </template>
28
+
29
+ <script setup lang="ts">
30
+ import { ref, onMounted, computed } from 'vue';
31
+ import ChatMessage from './ChatMessage.vue';
32
+ import { useStore } from 'vuex';
33
+ import { RabbitMQService } from 'vue-rabbit-frontend'
34
+ import IconClose from './IconClose.vue'
35
+ import IconSend from './IconSend.vue'
36
+ import IconUser from './IconUser.vue'
37
+
38
+ ///STORE
39
+ const store = useStore()
40
+ //DATA
41
+ const app = ref('webchat')
42
+ const deviceSelect = ref('76177719')
43
+ const rabbitMQServiceListen:any = ref(null);
44
+ const message:any = ref(null);
45
+ const messages:any = ref([]);
46
+
47
+ const props = defineProps({
48
+ toggleChat:{ type: Function, required: true },
49
+ tokenAuth:{ type: String, required: true },
50
+ phoneUser:{ type: String, required: true }
51
+ });
52
+
53
+ const removeNumPrefix = (num:string) => {
54
+ if (num.startsWith("591") && num.length === 11) {
55
+ return num.substring(3);
56
+ }
57
+ return num;
58
+ }
59
+
60
+ const submitMessage = async (event:any) => {
61
+ event.preventDefault();
62
+ const {virtualHost} = store.state
63
+ await store.dispatch('sendMessageByAppAndPhone',{
64
+ token:props.tokenAuth,
65
+ data:{
66
+ virtualHost:virtualHost,
67
+ queue:`widget_chat_${sessionStorage.getItem('tabBrowser')}`,//`${selectDetailtChat.value.app}_${queueUniqueUser.value}`,
68
+ device:'00000000',
69
+ phone:removeNumPrefix(deviceSelect.value),
70
+ app:app.value,
71
+ message: message.value,
72
+ widget:true
73
+ }
74
+ })
75
+ message.value = null
76
+ }
77
+
78
+
79
+ const getMessagesByApp = async (param:{resetConnection:boolean}) => {
80
+ if(param.resetConnection)
81
+ disconnectMsRabbit();
82
+ connectMsRabbit();
83
+ const messagesParse = [];
84
+ await store.dispatch('messagesByAppAndPhone', {
85
+ token:props.tokenAuth,
86
+ data:{
87
+ phone:props.phoneUser,
88
+ app:app.value,
89
+ device:null
90
+ }
91
+ });
92
+ const messagesData = store.getters.get_messages_chat;
93
+ if (messagesData) {
94
+ for (const msg of messagesData) {
95
+ messagesParse.push(...msg.messages);
96
+ }
97
+ messages.value = messagesParse;
98
+ }
99
+ };
100
+
101
+ const connectMsRabbit = (app:any = 'webchat') => {
102
+ const {virtualHost} = store.state
103
+ let data = sessionStorage.getItem('tabBrowser');
104
+ if(!data){
105
+ let tab = Date.now();
106
+ sessionStorage.setItem('tabBrowser', `${tab}`)
107
+ }
108
+ rabbitMQServiceListen.value = new RabbitMQService(`${virtualHost}`,`widget_chat_${sessionStorage.getItem('tabBrowser')}`);
109
+ rabbitMQServiceListen.value.connect();
110
+ rabbitMQServiceListen.value.subscribe(async () => {
111
+ await getMessagesByApp({resetConnection:false});
112
+ const objDiv = document.getElementById("messages-container") as HTMLElement;
113
+ objDiv.scrollTop = objDiv.scrollHeight;
114
+ });
115
+ };
116
+
117
+ const disconnectMsRabbit = () => {
118
+ rabbitMQServiceListen.value?.disconnectClient();
119
+ };
120
+
121
+ onMounted(async () => {
122
+ await getMessagesByApp({resetConnection:false})
123
+ const virtualHostUniqueUser = `WIDGET_CHAT_${props.phoneUser}`
124
+ await store.dispatch('syncVirtualHostCentral',{
125
+ token:props.tokenAuth,
126
+ data:{
127
+ virtualHost:virtualHostUniqueUser
128
+ }
129
+ })
130
+ connectMsRabbit()
131
+
132
+ });
133
+ </script>
134
+
135
+ <style scoped>
136
+ @import url(../style.css);
137
+ </style>
@@ -0,0 +1,104 @@
1
+ <template>
2
+ <div class="chat-message">
3
+
4
+ <div class="bubble" :class="self ? 'left' : 'right'">
5
+ <div :class="self ? 'content-left' : 'content-right'">
6
+ <div class="message">
7
+ {{ message.dataMessage }}
8
+ </div>
9
+ <div class="detail-message flex justify-content-between">
10
+ <span class="mr-5" v-if="message.user?.nombreCompleto">
11
+ {{ textCapitalize(message.user.nombreCompleto) }}
12
+ </span>
13
+ <span class="mr-5" v-else>
14
+ </span>
15
+ <span>
16
+ {{ formatTimeAPDate(message.createdAt) }}
17
+ </span>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ </div>
22
+ </template>
23
+
24
+ <script setup lang="ts">
25
+ import {computed } from 'vue';
26
+ import { formatTimeAPDate,textCapitalize } from '../resources/functions.helpers'
27
+ const props = defineProps({
28
+ message:{ type: Object, required: true },
29
+ });
30
+
31
+ const self = computed(() => {
32
+ return props.message.responseOrigin;
33
+ });
34
+
35
+ </script>
36
+
37
+ <style scoped>
38
+ .bubble {
39
+ --r: 25px;
40
+ /* the radius */
41
+ --t: 30px;
42
+ /* the size of the tail */
43
+
44
+ max-width: 50%;
45
+ min-width: 250px;
46
+ padding: calc(2*var(--r)/3);
47
+ -webkit-mask:
48
+ radial-gradient(var(--t) at var(--_d) 0, #0000 98%, #000 102%) var(--_d) 100%/calc(100% - var(--r)) var(--t) no-repeat,
49
+ conic-gradient(at var(--r) var(--r), #000 75%, #0000 0) calc(var(--r)/-2) calc(var(--r)/-2) padding-box,
50
+ radial-gradient(50% 50%, #000 98%, #0000 101%) 0 0/var(--r) var(--r) space padding-box;
51
+ /* background: linear-gradient(135deg, #FE6D00, #1384C5) border-box; */
52
+ color: #fff;
53
+ }
54
+
55
+ .left {
56
+ --_d: 0%;
57
+ border-left: var(--t) solid #0000;
58
+ margin-right: var(--t);
59
+ background-color: #fcd7ae;
60
+ color:#4d4d4d;
61
+ place-self: start;
62
+ }
63
+
64
+ .bubble > .content-left{
65
+ margin-right: 10px;
66
+ margin-bottom: 1px;
67
+ }
68
+
69
+ .right {
70
+ --_d: 100%;
71
+ border-right: var(--t) solid #0000;
72
+ margin-left: var(--t);
73
+ background-color: #fdeedb;
74
+ color:#4d4d4d;
75
+ place-self: end;
76
+ }
77
+
78
+ .bubble > .content-right{
79
+ margin-bottom: 1px;
80
+ margin-right: 10px;
81
+ }
82
+
83
+ .message{
84
+ text-align: initial;
85
+ word-break: break-all;
86
+ margin-bottom: 10px;
87
+ }
88
+ .detail-message{
89
+ font-size: 10px;
90
+ color: #808080;
91
+ display: flex;
92
+ justify-content:space-between;
93
+ }
94
+
95
+ .chat-message {
96
+ max-width: 250px;
97
+ min-width: 90%;
98
+ display: flex;
99
+ flex-direction: column;
100
+ justify-content: center;
101
+ /* box-shadow: 0 2px 8px rgba(0, 0, 0, 20%); */
102
+ }
103
+
104
+ </style>
@@ -0,0 +1,6 @@
1
+ <template>
2
+ <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M16 31C24.2843 31 31 24.2843 31 16C31 7.71573 24.2843 1 16 1C7.71573 1 1 7.71573 1 16C1 24.2843 7.71573 31 16 31Z" stroke="#B3B3B3" stroke-miterlimit="10"/>
4
+ <path d="M19.78 22.3L15.98 16.63H15.9601L12.2001 22.3H11.0701L15.37 15.8899L11.25 9.69995H12.38L15.98 15.08H16L19.67 9.69995H20.8L16.55 15.82L20.92 22.3H19.77H19.78Z" fill="#B3B3B3"/>
5
+ </svg>
6
+ </template>
@@ -0,0 +1,6 @@
1
+ <template>
2
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M11.9301 23.25C5.65005 23.25 0.550049 18.14 0.550049 11.87C0.550049 5.6 5.66005 0.48999 11.9301 0.48999C18.2001 0.48999 23.3101 5.6 23.3101 11.87C23.3101 18.14 18.2001 23.25 11.9301 23.25ZM11.9301 1.10999C6.00005 1.10999 1.17004 5.94 1.17004 11.87C1.17004 17.8 6.00005 22.63 11.9301 22.63C17.8601 22.63 22.6899 17.8 22.6899 11.87C22.6899 5.94 17.8601 1.10999 11.9301 1.10999Z" fill="#F28B0C"/>
4
+ <path d="M8.68994 17.0601C8.63994 17.0601 8.58004 17.0501 8.54004 17.0201C8.44004 16.9701 8.38 16.8601 8.38 16.7501V6.99007C8.38 6.88007 8.44004 6.78005 8.54004 6.72005C8.64004 6.66005 8.74998 6.67005 8.84998 6.72005L17.1899 11.6001C17.2799 11.6601 17.34 11.7601 17.34 11.8701C17.34 11.9801 17.2799 12.0801 17.1899 12.1401L8.84998 17.0201C8.84998 17.0201 8.74994 17.0601 8.68994 17.0601ZM9 7.5301V16.21L16.42 11.8701L9 7.5301Z" fill="#F28B0C"/>
5
+ </svg>
6
+ </template>
@@ -0,0 +1,6 @@
1
+ <template>
2
+ <svg width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M21.04 40.9399C32.0857 40.9399 41.04 31.9856 41.04 20.9399C41.04 9.89419 32.0857 0.939941 21.04 0.939941C9.99428 0.939941 1.03998 9.89419 1.03998 20.9399C1.03998 31.9856 9.99428 40.9399 21.04 40.9399Z" stroke="#F28B0C" stroke-width="1.5" stroke-miterlimit="10"/>
4
+ <path d="M22.87 20.36C24.92 19.57 26.38 17.5801 26.38 15.2601C26.38 12.2401 23.93 9.79004 20.91 9.79004C17.89 9.79004 15.44 12.2401 15.44 15.2601C15.44 17.6301 16.95 19.6401 19.06 20.4001C16.15 21.2601 14.02 23.9501 14.02 27.1301V31.7701C14.02 31.9401 14.16 32.08 14.33 32.08H27.76C27.93 32.08 28.07 31.9401 28.07 31.7701V27.1301C28.07 23.8901 25.86 21.16 22.87 20.36Z" fill="#F28B0C"/>
5
+ </svg>
6
+ </template>