vue-wiguet-chatweb 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/App.vue.d.ts +2 -0
- package/dist/components/Chat.vue.d.ts +16 -6
- package/dist/components/ChatMessage.vue.d.ts +12 -0
- package/dist/components/DangerIcon.vue.d.ts +1 -1
- package/dist/components/IconAttach.vue.d.ts +2 -0
- package/dist/components/IconChat.vue.d.ts +1 -1
- package/dist/components/IconClose.vue.d.ts +1 -1
- package/dist/components/IconSend.vue.d.ts +1 -1
- package/dist/components/IconTelegram.vue.d.ts +1 -1
- package/dist/components/IconWhatsApp.vue.d.ts +1 -1
- package/dist/components/IconWidget.vue.d.ts +1 -1
- package/dist/components/Loader.vue.d.ts +1 -1
- package/dist/components/LoadingComponent.vue.d.ts +21 -0
- package/dist/components/MessageList.vue.d.ts +12 -6
- package/dist/components/ODialog/IPropsDialog.d.ts +6 -0
- package/dist/components/ODialog/IPropsSidebar.d.ts +14 -0
- package/dist/components/ODialog/ODialog.vue.d.ts +26 -0
- package/dist/components/Widget.vue.d.ts +10 -6
- package/dist/components/sidebar/SidebarHeader.vue.d.ts +36 -0
- package/dist/dto/app.dto.d.ts +9 -1
- package/dist/hooks/useMobile.d.ts +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/store/config.d.ts +1 -1
- package/dist/store/index.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/vue-wiguet-chatweb.js +3296 -2622
- package/dist/vue-wiguet-chatweb.umd.cjs +17 -7
- package/package.json +7 -7
- package/src/components/Chat.vue +147 -53
- package/src/components/IconAttach.vue +24 -0
- package/src/components/IconSend.vue +1 -1
- package/src/components/LoadingComponent.vue +111 -0
- package/src/components/MessageList.vue +22 -4
- package/src/components/ODialog/IPropsDialog.ts +10 -0
- package/src/components/ODialog/IPropsSidebar.ts +17 -0
- package/src/components/ODialog/ODialog.vue +82 -0
- package/src/components/sidebar/SidebarHeader.vue +40 -0
@@ -1,16 +1,26 @@
|
|
1
|
-
(function(me,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(me=typeof globalThis<"u"?globalThis:me||self,u(me["vue-wiguet-chatweb"]={},me.Vue))})(this,function(me,u){"use strict";let at;const Ii=new Uint8Array(16);function Mi(){if(!at&&(at=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!at))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return at(Ii)}const $=[];for(let t=0;t<256;++t)$.push((t+256).toString(16).slice(1));function Ri(t,e=0){return $[t[e+0]]+$[t[e+1]]+$[t[e+2]]+$[t[e+3]]+"-"+$[t[e+4]]+$[t[e+5]]+"-"+$[t[e+6]]+$[t[e+7]]+"-"+$[t[e+8]]+$[t[e+9]]+"-"+$[t[e+10]]+$[t[e+11]]+$[t[e+12]]+$[t[e+13]]+$[t[e+14]]+$[t[e+15]]}const zn={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Di(t,e,n){if(zn.randomUUID&&!e&&!t)return zn.randomUUID();t=t||{};const s=t.random||(t.rng||Mi)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Ri(s)}const ee=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},Li={},Vi={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fi=[u.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),u.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 Bi(t,e){return u.openBlock(),u.createElementBlock("svg",Vi,Fi)}const Ui=ee(Li,[["render",Bi]]),$i={},Pi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wi=[u.createElementVNode("path",{fill:"#F28B0C",d:"M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376V479.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"},null,-1)];function qi(t,e){return u.openBlock(),u.createElementBlock("svg",Pi,Wi)}const zi=ee($i,[["render",qi]]);function Hn(t,e){return function(){return t.apply(e,arguments)}}const{toString:Hi}=Object.prototype,{getPrototypeOf:zt}=Object,lt=(t=>e=>{const n=Hi.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),le=t=>(t=t.toLowerCase(),e=>lt(e)===t),ct=t=>e=>typeof e===t,{isArray:xe}=Array,Ze=ct("undefined");function Zi(t){return t!==null&&!Ze(t)&&t.constructor!==null&&!Ze(t.constructor)&&Y(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Zn=le("ArrayBuffer");function ji(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Zn(t.buffer),e}const Yi=ct("string"),Y=ct("function"),jn=ct("number"),ut=t=>t!==null&&typeof t=="object",Ji=t=>t===!0||t===!1,ht=t=>{if(lt(t)!=="object")return!1;const e=zt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Gi=le("Date"),Ki=le("File"),Qi=le("Blob"),Xi=le("FileList"),eo=t=>ut(t)&&Y(t.pipe),to=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Y(t.append)&&((e=lt(t))==="formdata"||e==="object"&&Y(t.toString)&&t.toString()==="[object FormData]"))},no=le("URLSearchParams"),so=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function je(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let s,r;if(typeof t!="object"&&(t=[t]),xe(t))for(s=0,r=t.length;s<r;s++)e.call(null,t[s],s,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(s=0;s<o;s++)a=i[s],e.call(null,t[a],a,t)}}function Yn(t,e){e=e.toLowerCase();const n=Object.keys(t);let s=n.length,r;for(;s-- >0;)if(r=n[s],e===r.toLowerCase())return r;return null}const Jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gn=t=>!Ze(t)&&t!==Jn;function Ht(){const{caseless:t}=Gn(this)&&this||{},e={},n=(s,r)=>{const i=t&&Yn(e,r)||r;ht(e[i])&&ht(s)?e[i]=Ht(e[i],s):ht(s)?e[i]=Ht({},s):xe(s)?e[i]=s.slice():e[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&je(arguments[s],n);return e}const ro=(t,e,n,{allOwnKeys:s}={})=>(je(e,(r,i)=>{n&&Y(r)?t[i]=Hn(r,n):t[i]=r},{allOwnKeys:s}),t),io=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),oo=(t,e,n,s)=>{t.prototype=Object.create(e.prototype,s),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},ao=(t,e,n,s)=>{let r,i,o;const a={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)o=r[i],(!s||s(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&zt(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},lo=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const s=t.indexOf(e,n);return s!==-1&&s===n},co=t=>{if(!t)return null;if(xe(t))return t;let e=t.length;if(!jn(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},uo=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&zt(Uint8Array)),ho=(t,e)=>{const s=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=s.next())&&!r.done;){const i=r.value;e.call(t,i[0],i[1])}},fo=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},mo=le("HTMLFormElement"),po=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Kn=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),yo=le("RegExp"),Qn=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),s={};je(n,(r,i)=>{e(r,i,t)!==!1&&(s[i]=r)}),Object.defineProperties(t,s)},go=t=>{Qn(t,(e,n)=>{if(Y(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=t[n];if(Y(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},wo=(t,e)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return xe(t)?s(t):s(String(t).split(e)),n},Eo=()=>{},ko=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Zt="abcdefghijklmnopqrstuvwxyz",Xn="0123456789",es={DIGIT:Xn,ALPHA:Zt,ALPHA_DIGIT:Zt+Zt.toUpperCase()+Xn},vo=(t=16,e=es.ALPHA_DIGIT)=>{let n="";const{length:s}=e;for(;t--;)n+=e[Math.random()*s|0];return n};function So(t){return!!(t&&Y(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const bo=t=>{const e=new Array(10),n=(s,r)=>{if(ut(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[r]=s;const i=xe(s)?[]:{};return je(s,(o,a)=>{const l=n(o,r+1);!Ze(l)&&(i[a]=l)}),e[r]=void 0,i}}return s};return n(t,0)},To=le("AsyncFunction"),f={isArray:xe,isArrayBuffer:Zn,isBuffer:Zi,isFormData:to,isArrayBufferView:ji,isString:Yi,isNumber:jn,isBoolean:Ji,isObject:ut,isPlainObject:ht,isUndefined:Ze,isDate:Gi,isFile:Ki,isBlob:Qi,isRegExp:yo,isFunction:Y,isStream:eo,isURLSearchParams:no,isTypedArray:uo,isFileList:Xi,forEach:je,merge:Ht,extend:ro,trim:so,stripBOM:io,inherits:oo,toFlatObject:ao,kindOf:lt,kindOfTest:le,endsWith:lo,toArray:co,forEachEntry:ho,matchAll:fo,isHTMLForm:mo,hasOwnProperty:Kn,hasOwnProp:Kn,reduceDescriptors:Qn,freezeMethods:go,toObjectSet:wo,toCamelCase:po,noop:Eo,toFiniteNumber:ko,findKey:Yn,global:Jn,isContextDefined:Gn,ALPHABET:es,generateString:vo,isSpecCompliantForm:So,toJSONObject:bo,isAsyncFn:To,isThenable:t=>t&&(ut(t)||Y(t))&&Y(t.then)&&Y(t.catch)};function N(t,e,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}f.inherits(N,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:f.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ts=N.prototype,ns={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{ns[t]={value:t}}),Object.defineProperties(N,ns),Object.defineProperty(ts,"isAxiosError",{value:!0}),N.from=(t,e,n,s,r,i)=>{const o=Object.create(ts);return f.toFlatObject(t,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),N.call(o,t.message,e,n,s,r),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const Oo=null;function jt(t){return f.isPlainObject(t)||f.isArray(t)}function ss(t){return f.endsWith(t,"[]")?t.slice(0,-2):t}function rs(t,e,n){return t?t.concat(e).map(function(r,i){return r=ss(r),!n&&i?"["+r+"]":r}).join(n?".":""):e}function No(t){return f.isArray(t)&&!t.some(jt)}const Co=f.toFlatObject(f,{},null,function(e){return/^is[A-Z]/.test(e)});function ft(t,e,n){if(!f.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=f.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,b){return!f.isUndefined(b[k])});const s=n.metaTokens,r=n.visitor||h,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&f.isSpecCompliantForm(e);if(!f.isFunction(r))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(f.isDate(p))return p.toISOString();if(!l&&f.isBlob(p))throw new N("Blob is not supported. Use a Buffer instead.");return f.isArrayBuffer(p)||f.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function h(p,k,b){let I=p;if(p&&!b&&typeof p=="object"){if(f.endsWith(k,"{}"))k=s?k:k.slice(0,-2),p=JSON.stringify(p);else if(f.isArray(p)&&No(p)||(f.isFileList(p)||f.endsWith(k,"[]"))&&(I=f.toArray(p)))return k=ss(k),I.forEach(function(oe,Z){!(f.isUndefined(oe)||oe===null)&&e.append(o===!0?rs([k],Z,i):o===null?k:k+"[]",c(oe))}),!1}return jt(p)?!0:(e.append(rs(b,k,i),c(p)),!1)}const d=[],w=Object.assign(Co,{defaultVisitor:h,convertValue:c,isVisitable:jt});function m(p,k){if(!f.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+k.join("."));d.push(p),f.forEach(p,function(I,M){(!(f.isUndefined(I)||I===null)&&r.call(e,I,f.isString(M)?M.trim():M,k,w))===!0&&m(I,k?k.concat(M):[M])}),d.pop()}}if(!f.isObject(t))throw new TypeError("data must be an object");return m(t),e}function is(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function Yt(t,e){this._pairs=[],t&&ft(t,this,e)}const os=Yt.prototype;os.append=function(e,n){this._pairs.push([e,n])},os.toString=function(e){const n=e?function(s){return e.call(this,s,is)}:is;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function _o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function as(t,e,n){if(!e)return t;const s=n&&n.encode||_o,r=n&&n.serialize;let i;if(r?i=r(e,n):i=f.isURLSearchParams(e)?e.toString():new Yt(e,n).toString(s),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class ls{constructor(){this.handlers=[]}use(e,n,s){return this.handlers.push({fulfilled:e,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){f.forEach(this.handlers,function(s){s!==null&&e(s)})}}const cs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xo=typeof URLSearchParams<"u"?URLSearchParams:Yt,Ao=typeof FormData<"u"?FormData:null,Io=typeof Blob<"u"?Blob:null,Mo=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Ro=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ce={isBrowser:!0,classes:{URLSearchParams:xo,FormData:Ao,Blob:Io},isStandardBrowserEnv:Mo,isStandardBrowserWebWorkerEnv:Ro,protocols:["http","https","file","blob","url","data"]};function Do(t,e){return ft(t,new ce.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return ce.isNode&&f.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Lo(t){return f.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Vo(t){const e={},n=Object.keys(t);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],e[i]=t[i];return e}function us(t){function e(n,s,r,i){let o=n[i++];const a=Number.isFinite(+o),l=i>=n.length;return o=!o&&f.isArray(r)?r.length:o,l?(f.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!f.isObject(r[o]))&&(r[o]=[]),e(n,s,r[o],i)&&f.isArray(r[o])&&(r[o]=Vo(r[o])),!a)}if(f.isFormData(t)&&f.isFunction(t.entries)){const n={};return f.forEachEntry(t,(s,r)=>{e(Lo(s),r,n,0)}),n}return null}const Fo={"Content-Type":void 0};function Bo(t,e,n){if(f.isString(t))try{return(e||JSON.parse)(t),f.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const Ae={transitional:cs,adapter:["xhr","http"],transformRequest:[function(e,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=f.isObject(e);if(i&&f.isHTMLForm(e)&&(e=new FormData(e)),f.isFormData(e))return r&&r?JSON.stringify(us(e)):e;if(f.isArrayBuffer(e)||f.isBuffer(e)||f.isStream(e)||f.isFile(e)||f.isBlob(e))return e;if(f.isArrayBufferView(e))return e.buffer;if(f.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Do(e,this.formSerializer).toString();if((a=f.isFileList(e))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ft(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),Bo(e)):e}],transformResponse:[function(e){const n=this.transitional||Ae.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(e&&f.isString(e)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?N.from(a,N.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ce.classes.FormData,Blob:ce.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};f.forEach(["delete","get","head"],function(e){Ae.headers[e]={}}),f.forEach(["post","put","patch"],function(e){Ae.headers[e]=f.merge(Fo)});const Uo=f.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$o=t=>{const e={};let n,s,r;return t&&t.split(`
|
2
|
-
`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||e[n]&&
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const s=new this(e);return n.forEach(r=>s.set(r)),s}static accessor(e){const s=(this[hs]=this[hs]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Ye(o);s[a]||(zo(r,o),s[a]=!0)}return f.isArray(e)?e.forEach(i):i(e),this}}J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),f.freezeMethods(J.prototype),f.freezeMethods(J);function Gt(t,e){const n=this||Ae,s=e||n,r=J.from(s.headers);let i=s.data;return f.forEach(t,function(a){i=a.call(n,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function fs(t){return!!(t&&t.__CANCEL__)}function Je(t,e,n){N.call(this,t??"canceled",N.ERR_CANCELED,e,n),this.name="CanceledError"}f.inherits(Je,N,{__CANCEL__:!0});function Ho(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new N("Request failed with status code "+n.status,[N.ERR_BAD_REQUEST,N.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Zo=ce.isStandardBrowserEnv?function(){return{write:function(n,s,r,i,o,a){const l=[];l.push(n+"="+encodeURIComponent(s)),f.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),f.isString(i)&&l.push("path="+i),f.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function jo(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Yo(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function ds(t,e){return t&&!jo(e)?Yo(t,e):e}const Jo=ce.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(i){let o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(o){const a=f.isString(o)?r(o):o;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function Go(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ko(t,e){t=t||10;const n=new Array(t),s=new Array(t);let r=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),h=s[i];o||(o=c),n[r]=l,s[r]=c;let d=i,w=0;for(;d!==r;)w+=n[d++],d=d%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),c-o<e)return;const m=h&&c-h;return m?Math.round(w*1e3/m):void 0}}function ms(t,e){let n=0;const s=Ko(50,250);return r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,l=s(a),c=i<=o;n=i;const h={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&c?(o-i)/l:void 0,event:r};h[e?"download":"upload"]=!0,t(h)}}const mt={http:Oo,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,s){let r=t.data;const i=J.from(t.headers).normalize(),o=t.responseType;let a;function l(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}f.isFormData(r)&&(ce.isStandardBrowserEnv||ce.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(t.auth){const m=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+p))}const h=ds(t.baseURL,t.url);c.open(t.method.toUpperCase(),as(h,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function d(){if(!c)return;const m=J.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),k={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:t,request:c};Ho(function(I){n(I),l()},function(I){s(I),l()},k),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(s(new N("Request aborted",N.ECONNABORTED,t,c)),c=null)},c.onerror=function(){s(new N("Network Error",N.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let p=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const k=t.transitional||cs;t.timeoutErrorMessage&&(p=t.timeoutErrorMessage),s(new N(p,k.clarifyTimeoutError?N.ETIMEDOUT:N.ECONNABORTED,t,c)),c=null},ce.isStandardBrowserEnv){const m=(t.withCredentials||Jo(h))&&t.xsrfCookieName&&Zo.read(t.xsrfCookieName);m&&i.set(t.xsrfHeaderName,m)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&f.forEach(i.toJSON(),function(p,k){c.setRequestHeader(k,p)}),f.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),o&&o!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",ms(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ms(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=m=>{c&&(s(!m||m.type?new Je(null,t,c):m),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const w=Go(h);if(w&&ce.protocols.indexOf(w)===-1){s(new N("Unsupported protocol "+w+":",N.ERR_BAD_REQUEST,t));return}c.send(r||null)})}};f.forEach(mt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Qo={getAdapter:t=>{t=f.isArray(t)?t:[t];const{length:e}=t;let n,s;for(let r=0;r<e&&(n=t[r],!(s=f.isString(n)?mt[n.toLowerCase()]:n));r++);if(!s)throw s===!1?new N(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(f.hasOwnProp(mt,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!f.isFunction(s))throw new TypeError("adapter is not a function");return s},adapters:mt};function Kt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Je(null,t)}function ps(t){return Kt(t),t.headers=J.from(t.headers),t.data=Gt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Qo.getAdapter(t.adapter||Ae.adapter)(t).then(function(s){return Kt(t),s.data=Gt.call(t,t.transformResponse,s),s.headers=J.from(s.headers),s},function(s){return fs(s)||(Kt(t),s&&s.response&&(s.response.data=Gt.call(t,t.transformResponse,s.response),s.response.headers=J.from(s.response.headers))),Promise.reject(s)})}const ys=t=>t instanceof J?t.toJSON():t;function Ie(t,e){e=e||{};const n={};function s(c,h,d){return f.isPlainObject(c)&&f.isPlainObject(h)?f.merge.call({caseless:d},c,h):f.isPlainObject(h)?f.merge({},h):f.isArray(h)?h.slice():h}function r(c,h,d){if(f.isUndefined(h)){if(!f.isUndefined(c))return s(void 0,c,d)}else return s(c,h,d)}function i(c,h){if(!f.isUndefined(h))return s(void 0,h)}function o(c,h){if(f.isUndefined(h)){if(!f.isUndefined(c))return s(void 0,c)}else return s(void 0,h)}function a(c,h,d){if(d in e)return s(c,h);if(d in t)return s(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,h)=>r(ys(c),ys(h),!0)};return f.forEach(Object.keys(Object.assign({},t,e)),function(h){const d=l[h]||r,w=d(t[h],e[h],h);f.isUndefined(w)&&d!==a||(n[h]=w)}),n}const gs="1.4.0",Qt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Qt[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const ws={};Qt.transitional=function(e,n,s){function r(i,o){return"[Axios v"+gs+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(e===!1)throw new N(r(o," has been removed"+(n?" in "+n:"")),N.ERR_DEPRECATED);return n&&!ws[o]&&(ws[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,a):!0}};function Xo(t,e,n){if(typeof t!="object")throw new N("options must be an object",N.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let r=s.length;for(;r-- >0;){const i=s[r],o=e[i];if(o){const a=t[i],l=a===void 0||o(a,i,t);if(l!==!0)throw new N("option "+i+" must be "+l,N.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new N("Unknown option "+i,N.ERR_BAD_OPTION)}}const Xt={assertOptions:Xo,validators:Qt},pe=Xt.validators;class ve{constructor(e){this.defaults=e,this.interceptors={request:new ls,response:new ls}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ie(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&Xt.assertOptions(s,{silentJSONParsing:pe.transitional(pe.boolean),forcedJSONParsing:pe.transitional(pe.boolean),clarifyTimeoutError:pe.transitional(pe.boolean)},!1),r!=null&&(f.isFunction(r)?n.paramsSerializer={serialize:r}:Xt.assertOptions(r,{encode:pe.function,serialize:pe.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&f.merge(i.common,i[n.method]),o&&f.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=J.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(l=l&&k.synchronous,a.unshift(k.fulfilled,k.rejected))});const c=[];this.interceptors.response.forEach(function(k){c.push(k.fulfilled,k.rejected)});let h,d=0,w;if(!l){const p=[ps.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),w=p.length,h=Promise.resolve(n);d<w;)h=h.then(p[d++],p[d++]);return h}w=a.length;let m=n;for(d=0;d<w;){const p=a[d++],k=a[d++];try{m=p(m)}catch(b){k.call(this,b);break}}try{h=ps.call(this,m)}catch(p){return Promise.reject(p)}for(d=0,w=c.length;d<w;)h=h.then(c[d++],c[d++]);return h}getUri(e){e=Ie(this.defaults,e);const n=ds(e.baseURL,e.url);return as(n,e.params,e.paramsSerializer)}}f.forEach(["delete","get","head","options"],function(e){ve.prototype[e]=function(n,s){return this.request(Ie(s||{},{method:e,url:n,data:(s||{}).data}))}}),f.forEach(["post","put","patch"],function(e){function n(s){return function(i,o,a){return this.request(Ie(a||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ve.prototype[e]=n(),ve.prototype[e+"Form"]=n(!0)});class en{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},e(function(i,o,a){s.reason||(s.reason=new Je(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new en(function(r){e=r}),cancel:e}}}function e2(t){return function(n){return t.apply(null,n)}}function t2(t){return f.isObject(t)&&t.isAxiosError===!0}const tn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tn).forEach(([t,e])=>{tn[e]=t});function Es(t){const e=new ve(t),n=Hn(ve.prototype.request,e);return f.extend(n,ve.prototype,e,{allOwnKeys:!0}),f.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Es(Ie(t,r))},n}const U=Es(Ae);U.Axios=ve,U.CanceledError=Je,U.CancelToken=en,U.isCancel=fs,U.VERSION=gs,U.toFormData=ft,U.AxiosError=N,U.Cancel=U.CanceledError,U.all=function(e){return Promise.all(e)},U.spread=e2,U.isAxiosError=t2,U.mergeConfig=Ie,U.AxiosHeaders=J,U.formToJSON=t=>us(f.isHTMLForm(t)?new FormData(t):t),U.HttpStatusCode=tn,U.default=U;const pt=async function(t){const e=t,n=window.VITE_BACKEND_URL?window.VITE_BACKEND_URL:"https://chatadmin-gw.dev.mp.gob.bo",s={method:e.method,url:`${n}${e.url}`,headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json; charset=utf-8",...e.headers},data:e.data};return await U(s).then(async function(r){return await r.data}).catch(async function(r){var o;console.error(r);const i=await((o=r.response)==null?void 0:o.data);if(i.statusCode==401&&i.message=="Unauthorized")localStorage.clear();else throw i})};async function n2(t){const e={url:"/v1/message/list-messages",method:"post",data:t.body,token:t.token},n=await pt(e).catch(r=>(console.error(r),null)),s=n==null?void 0:n.response;return s!=null&&s.data?{data:s.data,pagination:s.pagination}:{data:[],pagination:{total:0,limit:0,size:0}}}async function s2(t,e){var r;const s=await pt({url:"/v1/message/send-message",method:"POST",data:t,token:e}).catch(i=>(console.error(i),null));return(r=s==null?void 0:s.response)==null?void 0:r.data}async function ks(t){var s;const n=await pt({url:"/v1/app-chats/web-chat",method:"get",token:t}).catch(r=>(console.error(r),null));return(s=n==null?void 0:n.response)==null?void 0:s.data}async function vs(t,e){var i;const n={esCliente:!0,totalNoVistos:0,totalNoVistosCliente:0},s={url:`/v1/app-chats/update-vistos/${t}`,method:"PATCH",data:n,token:e},r=await pt(s).catch(o=>(console.error(o),null));return(i=r==null?void 0:r.response)==null?void 0:i.data}function r2(t){return u.getCurrentScope()?(u.onScopeDispose(t),!0):!1}function Ss(t){return typeof t=="function"?t():u.unref(t)}const i2=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const o2=t=>t!=null,nn=()=>{};function sn(t){var e;const n=Ss(t);return(e=n==null?void 0:n.$el)!=null?e:n}const a2=i2?window:void 0;function l2(){const t=u.ref(!1),e=u.getCurrentInstance();return e&&u.onMounted(()=>{t.value=!0},e),t}function c2(t){const e=l2();return u.computed(()=>(e.value,!!t()))}function u2(t,e,n={}){const{root:s,rootMargin:r="0px",threshold:i=.1,window:o=a2,immediate:a=!0}=n,l=c2(()=>o&&"IntersectionObserver"in o),c=u.computed(()=>{const p=Ss(t);return(Array.isArray(p)?p:[p]).map(sn).filter(o2)});let h=nn;const d=u.ref(a),w=l.value?u.watch(()=>[c.value,sn(s),d.value],([p,k])=>{if(h(),!d.value||!p.length)return;const b=new IntersectionObserver(e,{root:sn(k),rootMargin:r,threshold:i});p.forEach(I=>I&&b.observe(I)),h=()=>{b.disconnect(),h=nn}},{immediate:a,flush:"post"}):nn,m=()=>{h(),w(),d.value=!1};return r2(m),{isSupported:l,isActive:d,pause(){h(),d.value=!1},resume(){d.value=!0},stop:m}}class Se extends Error{}class h2 extends Se{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class f2 extends Se{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class d2 extends Se{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Me extends Se{}class bs extends Se{constructor(e){super(`Invalid unit ${e}`)}}class P extends Se{}class ye extends Se{constructor(){super("Zone is an abstract class")}}const y="numeric",te="short",H="long",yt={year:y,month:y,day:y},Ts={year:y,month:te,day:y},m2={year:y,month:te,day:y,weekday:te},Os={year:y,month:H,day:y},Ns={year:y,month:H,day:y,weekday:H},Cs={hour:y,minute:y},_s={hour:y,minute:y,second:y},xs={hour:y,minute:y,second:y,timeZoneName:te},As={hour:y,minute:y,second:y,timeZoneName:H},Is={hour:y,minute:y,hourCycle:"h23"},Ms={hour:y,minute:y,second:y,hourCycle:"h23"},Rs={hour:y,minute:y,second:y,hourCycle:"h23",timeZoneName:te},Ds={hour:y,minute:y,second:y,hourCycle:"h23",timeZoneName:H},Ls={year:y,month:y,day:y,hour:y,minute:y},Vs={year:y,month:y,day:y,hour:y,minute:y,second:y},Fs={year:y,month:te,day:y,hour:y,minute:y},Bs={year:y,month:te,day:y,hour:y,minute:y,second:y},p2={year:y,month:te,day:y,weekday:te,hour:y,minute:y},Us={year:y,month:H,day:y,hour:y,minute:y,timeZoneName:te},$s={year:y,month:H,day:y,hour:y,minute:y,second:y,timeZoneName:te},Ps={year:y,month:H,day:y,weekday:H,hour:y,minute:y,timeZoneName:H},Ws={year:y,month:H,day:y,weekday:H,hour:y,minute:y,second:y,timeZoneName:H};class Ge{get type(){throw new ye}get name(){throw new ye}get ianaName(){return this.name}get isUniversal(){throw new ye}offsetName(e,n){throw new ye}formatOffset(e,n){throw new ye}offset(e){throw new ye}equals(e){throw new ye}get isValid(){throw new ye}}let rn=null;class gt extends Ge{static get instance(){return rn===null&&(rn=new gt),rn}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return dr(e,n,s)}formatOffset(e,n){return et(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let wt={};function y2(t){return wt[t]||(wt[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),wt[t]}const g2={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function w2(t,e){const n=t.format(e).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,o,a,l,c,h]=s;return[o,r,i,a,l,c,h]}function E2(t,e){const n=t.formatToParts(e),s=[];for(let r=0;r<n.length;r++){const{type:i,value:o}=n[r],a=g2[i];i==="era"?s[a]=o:v(a)||(s[a]=parseInt(o,10))}return s}let Et={};class de extends Ge{static create(e){return Et[e]||(Et[e]=new de(e)),Et[e]}static resetCache(){Et={},wt={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=de.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return dr(e,n,s,this.name)}formatOffset(e,n){return et(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const s=y2(this.name);let[r,i,o,a,l,c,h]=s.formatToParts?E2(s,n):w2(s,n);a==="BC"&&(r=-Math.abs(r)+1);const w=Tt({year:r,month:i,day:o,hour:l===24?0:l,minute:c,second:h,millisecond:0});let m=+n;const p=m%1e3;return m-=p>=0?p:1e3+p,(w-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let qs={};function k2(t,e={}){const n=JSON.stringify([t,e]);let s=qs[n];return s||(s=new Intl.ListFormat(t,e),qs[n]=s),s}let on={};function an(t,e={}){const n=JSON.stringify([t,e]);let s=on[n];return s||(s=new Intl.DateTimeFormat(t,e),on[n]=s),s}let ln={};function v2(t,e={}){const n=JSON.stringify([t,e]);let s=ln[n];return s||(s=new Intl.NumberFormat(t,e),ln[n]=s),s}let cn={};function S2(t,e={}){const{base:n,...s}=e,r=JSON.stringify([t,s]);let i=cn[r];return i||(i=new Intl.RelativeTimeFormat(t,e),cn[r]=i),i}let Ke=null;function b2(){return Ke||(Ke=new Intl.DateTimeFormat().resolvedOptions().locale,Ke)}let zs={};function T2(t){let e=zs[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,zs[t]=e}return e}function O2(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let s,r;try{s=an(t).resolvedOptions(),r=t}catch{const l=t.substring(0,n);s=an(l).resolvedOptions(),r=l}const{numberingSystem:i,calendar:o}=s;return[r,i,o]}}function N2(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function C2(t){const e=[];for(let n=1;n<=12;n++){const s=S.utc(2009,n,1);e.push(t(s))}return e}function _2(t){const e=[];for(let n=1;n<=7;n++){const s=S.utc(2016,11,13+n);e.push(t(s))}return e}function kt(t,e,n,s){const r=t.listingMode();return r==="error"?null:r==="en"?n(e):s(e)}function x2(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class A2{constructor(e,n,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const{padTo:r,floor:i,...o}=s;if(!n||Object.keys(o).length>0){const a={useGrouping:!1,...s};s.padTo>0&&(a.minimumIntegerDigits=s.padTo),this.inf=v2(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):gn(e,3);return F(n,this.padTo)}}}class I2{constructor(e,n,s){this.opts=s,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&de.create(a).valid?(r=a,this.dt=e):(r="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=an(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const s=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:s}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class M2{constructor(e,n,s){this.opts={style:"long",...s},!n&&cr()&&(this.rtf=S2(e,s))}format(e,n){return this.rtf?this.rtf.format(e,n):ta(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const R2={firstDay:1,minimalDays:4,weekend:[6,7]};class x{static fromOpts(e){return x.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,s,r,i=!1){const o=e||D.defaultLocale,a=o||(i?"en-US":b2()),l=n||D.defaultNumberingSystem,c=s||D.defaultOutputCalendar,h=pn(r)||D.defaultWeekSettings;return new x(a,l,c,h,o)}static resetCache(){Ke=null,on={},ln={},cn={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:s,weekSettings:r}={}){return x.create(e,n,s,r)}constructor(e,n,s,r,i){const[o,a,l]=O2(e);this.locale=o,this.numberingSystem=n||a||null,this.outputCalendar=s||l||null,this.weekSettings=r,this.intl=N2(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=x2(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:x.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,pn(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return kt(this,e,yr,()=>{const s=n?{month:e,day:"numeric"}:{month:e},r=n?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=C2(i=>this.extract(i,s,"month"))),this.monthsCache[r][e]})}weekdays(e,n=!1){return kt(this,e,Er,()=>{const s=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=n?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=_2(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return kt(this,void 0,()=>kr,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[S.utc(2016,11,13,9),S.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return kt(this,e,vr,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[S.utc(-40,1,1),S.utc(2017,1,1)].map(s=>this.extract(s,n,"era"))),this.eraCache[e]})}extract(e,n,s){const r=this.dtFormatter(e,n),i=r.formatToParts(),o=i.find(a=>a.type.toLowerCase()===s);return o?o.value:null}numberFormatter(e={}){return new A2(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new I2(e,this.intl,n)}relFormatter(e={}){return new M2(this.intl,this.isEnglish(),e)}listFormatter(e={}){return k2(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ur()?T2(this.locale):R2}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let un=null;class q extends Ge{static get utcInstance(){return un===null&&(un=new q(0)),un}static instance(e){return e===0?q.utcInstance:new q(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new q(Ot(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${et(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${et(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return et(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class D2 extends Ge{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ge(t,e){if(v(t)||t===null)return e;if(t instanceof Ge)return t;if($2(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?gt.instance:n==="utc"||n==="gmt"?q.utcInstance:q.parseSpecifier(n)||de.create(t)}else return we(t)?q.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new D2(t)}const hn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Hs={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},L2=hn.hanidec.replace(/[\[|\]]/g,"").split("");function V2(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(t[n].search(hn.hanidec)!==-1)e+=L2.indexOf(t[n]);else for(const r in Hs){const[i,o]=Hs[r];s>=i&&s<=o&&(e+=s-i)}}return parseInt(e,10)}else return e}let Re={};function F2(){Re={}}function ne({numberingSystem:t},e=""){const n=t||"latn";return Re[n]||(Re[n]={}),Re[n][e]||(Re[n][e]=new RegExp(`${hn[n]}${e}`)),Re[n][e]}let Zs=()=>Date.now(),js="system",Ys=null,Js=null,Gs=null,Ks=60,Qs,Xs=null;class D{static get now(){return Zs}static set now(e){Zs=e}static set defaultZone(e){js=e}static get defaultZone(){return ge(js,gt.instance)}static get defaultLocale(){return Ys}static set defaultLocale(e){Ys=e}static get defaultNumberingSystem(){return Js}static set defaultNumberingSystem(e){Js=e}static get defaultOutputCalendar(){return Gs}static set defaultOutputCalendar(e){Gs=e}static get defaultWeekSettings(){return Xs}static set defaultWeekSettings(e){Xs=pn(e)}static get twoDigitCutoffYear(){return Ks}static set twoDigitCutoffYear(e){Ks=e%100}static get throwOnInvalid(){return Qs}static set throwOnInvalid(e){Qs=e}static resetCaches(){x.resetCache(),de.resetCache(),S.resetCache(),F2()}}class se{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const er=[0,31,59,90,120,151,181,212,243,273,304,334],tr=[0,31,60,91,121,152,182,213,244,274,305,335];function G(t,e){return new se("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function fn(t,e,n){const s=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return r===0?7:r}function nr(t,e,n){return n+(Qe(t)?tr:er)[e-1]}function sr(t,e){const n=Qe(t)?tr:er,s=n.findIndex(i=>i<e),r=e-n[s];return{month:s+1,day:r}}function dn(t,e){return(t-e+7)%7+1}function vt(t,e=4,n=1){const{year:s,month:r,day:i}=t,o=nr(s,r,i),a=dn(fn(s,r,i),n);let l=Math.floor((o-a+14-e)/7),c;return l<1?(c=s-1,l=Xe(c,e,n)):l>Xe(s,e,n)?(c=s+1,l=1):c=s,{weekYear:c,weekNumber:l,weekday:a,...Ct(t)}}function rr(t,e=4,n=1){const{weekYear:s,weekNumber:r,weekday:i}=t,o=dn(fn(s,1,e),n),a=Le(s);let l=r*7+i-o-7+e,c;l<1?(c=s-1,l+=Le(c)):l>a?(c=s+1,l-=Le(s)):c=s;const{month:h,day:d}=sr(c,l);return{year:c,month:h,day:d,...Ct(t)}}function mn(t){const{year:e,month:n,day:s}=t,r=nr(e,n,s);return{year:e,ordinal:r,...Ct(t)}}function ir(t){const{year:e,ordinal:n}=t,{month:s,day:r}=sr(e,n);return{year:e,month:s,day:r,...Ct(t)}}function or(t,e){if(!v(t.localWeekday)||!v(t.localWeekNumber)||!v(t.localWeekYear)){if(!v(t.weekday)||!v(t.weekNumber)||!v(t.weekYear))throw new Me("Cannot mix locale-based week fields with ISO-based week fields");return v(t.localWeekday)||(t.weekday=t.localWeekday),v(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),v(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function B2(t,e=4,n=1){const s=St(t.weekYear),r=K(t.weekNumber,1,Xe(t.weekYear,e,n)),i=K(t.weekday,1,7);return s?r?i?!1:G("weekday",t.weekday):G("week",t.weekNumber):G("weekYear",t.weekYear)}function U2(t){const e=St(t.year),n=K(t.ordinal,1,Le(t.year));return e?n?!1:G("ordinal",t.ordinal):G("year",t.year)}function ar(t){const e=St(t.year),n=K(t.month,1,12),s=K(t.day,1,bt(t.year,t.month));return e?n?s?!1:G("day",t.day):G("month",t.month):G("year",t.year)}function lr(t){const{hour:e,minute:n,second:s,millisecond:r}=t,i=K(e,0,23)||e===24&&n===0&&s===0&&r===0,o=K(n,0,59),a=K(s,0,59),l=K(r,0,999);return i?o?a?l?!1:G("millisecond",r):G("second",s):G("minute",n):G("hour",e)}function v(t){return typeof t>"u"}function we(t){return typeof t=="number"}function St(t){return typeof t=="number"&&t%1===0}function $2(t){return typeof t=="string"}function P2(t){return Object.prototype.toString.call(t)==="[object Date]"}function cr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ur(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function W2(t){return Array.isArray(t)?t:[t]}function hr(t,e,n){if(t.length!==0)return t.reduce((s,r)=>{const i=[e(r),r];return s&&n(s[0],i[0])===s[0]?s:i},null)[1]}function q2(t,e){return e.reduce((n,s)=>(n[s]=t[s],n),{})}function De(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function pn(t){if(t==null)return null;if(typeof t!="object")throw new P("Week settings must be an object");if(!K(t.firstDay,1,7)||!K(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!K(e,1,7)))throw new P("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function K(t,e,n){return St(t)&&t>=e&&t<=n}function z2(t,e){return t-e*Math.floor(t/e)}function F(t,e=2){const n=t<0;let s;return n?s="-"+(""+-t).padStart(e,"0"):s=(""+t).padStart(e,"0"),s}function Ee(t){if(!(v(t)||t===null||t===""))return parseInt(t,10)}function be(t){if(!(v(t)||t===null||t===""))return parseFloat(t)}function yn(t){if(!(v(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function gn(t,e,n=!1){const s=10**e;return(n?Math.trunc:Math.round)(t*s)/s}function Qe(t){return t%4===0&&(t%100!==0||t%400===0)}function Le(t){return Qe(t)?366:365}function bt(t,e){const n=z2(e-1,12)+1,s=t+(e-n)/12;return n===2?Qe(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Tt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function fr(t,e,n){return-dn(fn(t,1,e),n)+e-1}function Xe(t,e=4,n=1){const s=fr(t,e,n),r=fr(t+1,e,n);return(Le(t)-s+r)/7}function wn(t){return t>99?t:t>D.twoDigitCutoffYear?1900+t:2e3+t}function dr(t,e,n,s=null){const r=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);const o={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,o).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function Ot(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const s=parseInt(e,10)||0,r=n<0||Object.is(n,-0)?-s:s;return n*60+r}function mr(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new P(`Invalid unit value ${t}`);return e}function Nt(t,e){const n={};for(const s in t)if(De(t,s)){const r=t[s];if(r==null)continue;n[e(s)]=mr(r)}return n}function et(t,e){const n=Math.trunc(Math.abs(t/60)),s=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${F(n,2)}:${F(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${F(n,2)}${F(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Ct(t){return q2(t,["hour","minute","second","millisecond"])}const H2=["January","February","March","April","May","June","July","August","September","October","November","December"],pr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Z2=["J","F","M","A","M","J","J","A","S","O","N","D"];function yr(t){switch(t){case"narrow":return[...Z2];case"short":return[...pr];case"long":return[...H2];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],wr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],j2=["M","T","W","T","F","S","S"];function Er(t){switch(t){case"narrow":return[...j2];case"short":return[...wr];case"long":return[...gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const kr=["AM","PM"],Y2=["Before Christ","Anno Domini"],J2=["BC","AD"],G2=["B","A"];function vr(t){switch(t){case"narrow":return[...G2];case"short":return[...J2];case"long":return[...Y2];default:return null}}function K2(t){return kr[t.hour<12?0:1]}function Q2(t,e){return Er(e)[t.weekday-1]}function X2(t,e){return yr(e)[t.month-1]}function ea(t,e){return vr(e)[t.year<0?0:1]}function ta(t,e,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${r[t][0]}`;case-1:return d?"yesterday":`last ${r[t][0]}`;case 0:return d?"today":`this ${r[t][0]}`}}const o=Object.is(e,-0)||e<0,a=Math.abs(e),l=a===1,c=r[t],h=s?l?c[1]:c[2]||c[1]:l?r[t][0]:t;return o?`${a} ${h} ago`:`in ${a} ${h}`}function Sr(t,e){let n="";for(const s of t)s.literal?n+=s.val:n+=e(s.val);return n}const na={D:yt,DD:Ts,DDD:Os,DDDD:Ns,t:Cs,tt:_s,ttt:xs,tttt:As,T:Is,TT:Ms,TTT:Rs,TTTT:Ds,f:Ls,ff:Fs,fff:Us,ffff:Ps,F:Vs,FF:Bs,FFF:$s,FFFF:Ws};class W{static create(e,n={}){return new W(e,n)}static parseFormat(e){let n=null,s="",r=!1;const i=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);a==="'"?(s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),n=null,s="",r=!r):r||a===n?s+=a:(s.length>0&&i.push({literal:/^\s+$/.test(s),val:s}),s=a,n=a)}return s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),i}static macroTokenToFormatOpts(e){return na[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return F(e,n);const s={...this.opts};return n>0&&(s.padTo=n),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,n){const s=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(m,p)=>this.loc.extract(e,m,p),o=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",a=()=>s?K2(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(m,p)=>s?X2(e,m):i(p?{month:m}:{month:m,day:"numeric"},"month"),c=(m,p)=>s?Q2(e,m):i(p?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),h=m=>{const p=W.macroTokenToFormatOpts(m);return p?this.formatWithSystemDefault(e,p):m},d=m=>s?ea(e,m):i({era:m},"era"),w=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return h(m)}};return Sr(W.parseFormat(n),w)}formatDurationFromString(e,n){const s=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=l=>c=>{const h=s(c);return h?this.num(l.get(h),c.length):c},i=W.parseFormat(n),o=i.reduce((l,{literal:c,val:h})=>c?l:l.concat(h),[]),a=e.shiftTo(...o.map(s).filter(l=>l));return Sr(i,r(a))}}const br=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ve(...t){const e=t.reduce((n,s)=>n+s.source,"");return RegExp(`^${e}$`)}function Fe(...t){return e=>t.reduce(([n,s,r],i)=>{const[o,a,l]=i(e,r);return[{...n,...o},a||s,l]},[{},null,1]).slice(0,2)}function Be(t,...e){if(t==null)return[null,null];for(const[n,s]of e){const r=n.exec(t);if(r)return s(r)}return[null,null]}function Tr(...t){return(e,n)=>{const s={};let r;for(r=0;r<t.length;r++)s[t[r]]=Ee(e[n+r]);return[s,null,n+r]}}const Or=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,sa=`(?:${Or.source}?(?:\\[(${br.source})\\])?)?`,En=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Nr=RegExp(`${En.source}${sa}`),kn=RegExp(`(?:T${Nr.source})?`),ra=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ia=/(\d{4})-?W(\d\d)(?:-?(\d))?/,oa=/(\d{4})-?(\d{3})/,aa=Tr("weekYear","weekNumber","weekDay"),la=Tr("year","ordinal"),ca=/(\d{4})-(\d\d)-(\d\d)/,Cr=RegExp(`${En.source} ?(?:${Or.source}|(${br.source}))?`),ua=RegExp(`(?: ${Cr.source})?`);function Ue(t,e,n){const s=t[e];return v(s)?n:Ee(s)}function ha(t,e){return[{year:Ue(t,e),month:Ue(t,e+1,1),day:Ue(t,e+2,1)},null,e+3]}function $e(t,e){return[{hours:Ue(t,e,0),minutes:Ue(t,e+1,0),seconds:Ue(t,e+2,0),milliseconds:yn(t[e+3])},null,e+4]}function tt(t,e){const n=!t[e]&&!t[e+1],s=Ot(t[e+1],t[e+2]),r=n?null:q.instance(s);return[{},r,e+3]}function nt(t,e){const n=t[e]?de.create(t[e]):null;return[{},n,e+1]}const fa=RegExp(`^T?${En.source}$`),da=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ma(t){const[e,n,s,r,i,o,a,l,c]=t,h=e[0]==="-",d=l&&l[0]==="-",w=(m,p=!1)=>m!==void 0&&(p||m&&h)?-m:m;return[{years:w(be(n)),months:w(be(s)),weeks:w(be(r)),days:w(be(i)),hours:w(be(o)),minutes:w(be(a)),seconds:w(be(l),l==="-0"),milliseconds:w(yn(c),d)}]}const pa={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 vn(t,e,n,s,r,i,o){const a={year:e.length===2?wn(Ee(e)):Ee(e),month:pr.indexOf(n)+1,day:Ee(s),hour:Ee(r),minute:Ee(i)};return o&&(a.second=Ee(o)),t&&(a.weekday=t.length>3?gr.indexOf(t)+1:wr.indexOf(t)+1),a}const ya=/^(?:(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\d)(\d\d)))$/;function ga(t){const[,e,n,s,r,i,o,a,l,c,h,d]=t,w=vn(e,r,s,n,i,o,a);let m;return l?m=pa[l]:c?m=0:m=Ot(h,d),[w,new q(m)]}function wa(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Ea=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,ka=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,va=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function _r(t){const[,e,n,s,r,i,o,a]=t;return[vn(e,r,s,n,i,o,a),q.utcInstance]}function Sa(t){const[,e,n,s,r,i,o,a]=t;return[vn(e,a,n,s,r,i,o),q.utcInstance]}const ba=Ve(ra,kn),Ta=Ve(ia,kn),Oa=Ve(oa,kn),Na=Ve(Nr),xr=Fe(ha,$e,tt,nt),Ca=Fe(aa,$e,tt,nt),_a=Fe(la,$e,tt,nt),xa=Fe($e,tt,nt);function Aa(t){return Be(t,[ba,xr],[Ta,Ca],[Oa,_a],[Na,xa])}function Ia(t){return Be(wa(t),[ya,ga])}function Ma(t){return Be(t,[Ea,_r],[ka,_r],[va,Sa])}function Ra(t){return Be(t,[da,ma])}const Da=Fe($e);function La(t){return Be(t,[fa,Da])}const Va=Ve(ca,ua),Fa=Ve(Cr),Ba=Fe($e,tt,nt);function Ua(t){return Be(t,[Va,xr],[Fa,Ba])}const Ar="Invalid Duration",Ir={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},$a={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Ir},Q=146097/400,Pe=146097/4800,Pa={years:{quarters:4,months:12,weeks:Q/7,days:Q,hours:Q*24,minutes:Q*24*60,seconds:Q*24*60*60,milliseconds:Q*24*60*60*1e3},quarters:{months:3,weeks:Q/28,days:Q/4,hours:Q*24/4,minutes:Q*24*60/4,seconds:Q*24*60*60/4,milliseconds:Q*24*60*60*1e3/4},months:{weeks:Pe/7,days:Pe,hours:Pe*24,minutes:Pe*24*60,seconds:Pe*24*60*60,milliseconds:Pe*24*60*60*1e3},...Ir},Te=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Wa=Te.slice(0).reverse();function ke(t,e,n=!1){const s={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new C(s)}function Mr(t,e){let n=e.milliseconds??0;for(const s of Wa.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function Rr(t,e){const n=Mr(t,e)<0?-1:1;Te.reduceRight((s,r)=>{if(v(e[r]))return s;if(s){const i=e[s]*n,o=t[r][s],a=Math.floor(i/o);e[r]+=a*n,e[s]-=a*o*n}return r},null),Te.reduce((s,r)=>{if(v(e[r]))return s;if(s){const i=e[s]%1;e[s]-=i,e[r]+=i*t[s][r]}return r},null)}function qa(t){const e={};for(const[n,s]of Object.entries(t))s!==0&&(e[n]=s);return e}class C{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let s=n?Pa:$a;e.matrix&&(s=e.matrix),this.values=e.values,this.loc=e.loc||x.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(e,n){return C.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new P(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new C({values:Nt(e,C.normalizeUnit),loc:x.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(we(e))return C.fromMillis(e);if(C.isDuration(e))return e;if(typeof e=="object")return C.fromObject(e);throw new P(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[s]=Ra(e);return s?C.fromObject(s,n):C.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[s]=La(e);return s?C.fromObject(s,n):C.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new P("need to specify a reason the Duration is invalid");const s=e instanceof se?e:new se(e,n);if(D.throwOnInvalid)throw new d2(s);return new C({invalid:s})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new bs(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const s={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?W.create(this.loc,s).formatDurationFromString(this,e):Ar}toHuman(e={}){if(!this.isValid)return Ar;const n=Te.map(s=>{const r=this.values[s];return v(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:s.slice(0,-1)}).format(r)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=gn(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},S.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Mr(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=C.fromDurationLike(e),s={};for(const r of Te)(De(n.values,r)||De(this.values,r))&&(s[r]=n.get(r)+this.get(r));return ke(this,{values:s},!0)}minus(e){if(!this.isValid)return this;const n=C.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const s of Object.keys(this.values))n[s]=mr(e(this.values[s],s));return ke(this,{values:n},!0)}get(e){return this[C.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Nt(e,C.normalizeUnit)};return ke(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:s,matrix:r}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:r,conversionAccuracy:s};return ke(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Rr(this.matrix,e),ke(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=qa(this.normalize().shiftToAll().toObject());return ke(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>C.normalizeUnit(o));const n={},s={},r=this.toObject();let i;for(const o of Te)if(e.indexOf(o)>=0){i=o;let a=0;for(const c in s)a+=this.matrix[c][o]*s[c],s[c]=0;we(r[o])&&(a+=r[o]);const l=Math.trunc(a);n[o]=l,s[o]=(a*1e3-l*1e3)/1e3}else we(r[o])&&(s[o]=r[o]);for(const o in s)s[o]!==0&&(n[i]+=o===i?s[o]:s[o]/this.matrix[i][o]);return Rr(this.matrix,n),ke(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return ke(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(s,r){return s===void 0||s===0?r===void 0||r===0:s===r}for(const s of Te)if(!n(this.values[s],e.values[s]))return!1;return!0}}const We="Invalid Interval";function za(t,e){return!t||!t.isValid?L.invalid("missing or invalid start"):!e||!e.isValid?L.invalid("missing or invalid end"):e<t?L.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class L{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new P("need to specify a reason the Interval is invalid");const s=e instanceof se?e:new se(e,n);if(D.throwOnInvalid)throw new f2(s);return new L({invalid:s})}static fromDateTimes(e,n){const s=rt(e),r=rt(n),i=za(s,r);return i??new L({start:s,end:r})}static after(e,n){const s=C.fromDurationLike(n),r=rt(e);return L.fromDateTimes(r,r.plus(s))}static before(e,n){const s=C.fromDurationLike(n),r=rt(e);return L.fromDateTimes(r.minus(s),r)}static fromISO(e,n){const[s,r]=(e||"").split("/",2);if(s&&r){let i,o;try{i=S.fromISO(s,n),o=i.isValid}catch{o=!1}let a,l;try{a=S.fromISO(r,n),l=a.isValid}catch{l=!1}if(o&&l)return L.fromDateTimes(i,a);if(o){const c=C.fromISO(r,n);if(c.isValid)return L.after(i,c)}else if(l){const c=C.fromISO(s,n);if(c.isValid)return L.before(a,c)}}return L.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const s=this.start.startOf(e,n);let r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:s.locale}):r=this.end,r=r.startOf(e,n),Math.floor(r.diff(s,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?L.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(rt).filter(o=>this.contains(o)).sort((o,a)=>o.toMillis()-a.toMillis()),s=[];let{s:r}=this,i=0;for(;r<this.e;){const o=n[i]||this.e,a=+o>+this.e?this.e:o;s.push(L.fromDateTimes(r,a)),r=a,i+=1}return s}splitBy(e){const n=C.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s}=this,r=1,i;const o=[];for(;s<this.e;){const a=this.start.plus(n.mapUnits(l=>l*r));i=+a>+this.e?this.e:a,o.push(L.fromDateTimes(s,i)),s=i,r+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,s=this.e<e.e?this.e:e.e;return n>=s?null:L.fromDateTimes(n,s)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,s=this.e>e.e?this.e:e.e;return L.fromDateTimes(n,s)}static merge(e){const[n,s]=e.sort((r,i)=>r.s-i.s).reduce(([r,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[r,i.union(o)]:[r.concat([i]),o]:[r,o],[[],null]);return s&&n.push(s),n}static xor(e){let n=null,s=0;const r=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),a=o.sort((l,c)=>l.time-c.time);for(const l of a)s+=l.type==="s"?1:-1,s===1?n=l.time:(n&&+n!=+l.time&&r.push(L.fromDateTimes(n,l.time)),n=null);return L.merge(r)}difference(...e){return L.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:We}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=yt,n={}){return this.isValid?W.create(this.s.loc.clone(n),e).formatInterval(this):We}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:We}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:We}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:We}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:We}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):C.invalid(this.invalidReason)}mapEndpoints(e){return L.fromDateTimes(e(this.s),e(this.e))}}class _t{static hasDST(e=D.defaultZone){const n=S.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return de.isValidZone(e)}static normalizeZone(e){return ge(e,D.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||x.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||x.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||x.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||x.create(n,s,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||x.create(n,s,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||x.create(n,s,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||x.create(n,s,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return x.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return x.create(n,null,"gregory").eras(e)}static features(){return{relative:cr(),localeWeek:ur()}}}function Dr(t,e){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(e)-n(t);return Math.floor(C.fromMillis(s).as("days"))}function Ha(t,e,n){const s=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const h=Dr(l,c);return(h-h%7)/7}],["days",Dr]],r={},i=t;let o,a;for(const[l,c]of s)n.indexOf(l)>=0&&(o=l,r[l]=c(t,e),a=i.plus(r),a>e?(r[l]--,t=i.plus(r),t>e&&(a=t,r[l]--,t=i.plus(r))):t=a);return[t,r,a,o]}function Za(t,e,n,s){let[r,i,o,a]=Ha(t,e,n);const l=e-r,c=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(o<e&&(o=r.plus({[a]:1})),o!==r&&(i[a]=(i[a]||0)+l/(o-r)));const h=C.fromObject(i,s);return c.length>0?C.fromMillis(l,s).shiftTo(...c).plus(h):h}const ja="missing Intl.DateTimeFormat.formatToParts support";function _(t,e=n=>n){return{regex:t,deser:([n])=>e(V2(n))}}const Lr="[ ]",Vr=new RegExp(Lr,"g");function Ya(t){return t.replace(/\./g,"\\.?").replace(Vr,Lr)}function Fr(t){return t.replace(/\./g,"").replace(Vr," ").toLowerCase()}function re(t,e){return t===null?null:{regex:RegExp(t.map(Ya).join("|")),deser:([n])=>t.findIndex(s=>Fr(n)===Fr(s))+e}}function Br(t,e){return{regex:t,deser:([,n,s])=>Ot(n,s),groups:e}}function xt(t){return{regex:t,deser:([e])=>e}}function Ja(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ga(t,e){const n=ne(e),s=ne(e,"{2}"),r=ne(e,"{3}"),i=ne(e,"{4}"),o=ne(e,"{6}"),a=ne(e,"{1,2}"),l=ne(e,"{1,3}"),c=ne(e,"{1,6}"),h=ne(e,"{1,9}"),d=ne(e,"{2,4}"),w=ne(e,"{4,6}"),m=b=>({regex:RegExp(Ja(b.val)),deser:([I])=>I,literal:!0}),k=(b=>{if(t.literal)return m(b);switch(b.val){case"G":return re(e.eras("short"),0);case"GG":return re(e.eras("long"),0);case"y":return _(c);case"yy":return _(d,wn);case"yyyy":return _(i);case"yyyyy":return _(w);case"yyyyyy":return _(o);case"M":return _(a);case"MM":return _(s);case"MMM":return re(e.months("short",!0),1);case"MMMM":return re(e.months("long",!0),1);case"L":return _(a);case"LL":return _(s);case"LLL":return re(e.months("short",!1),1);case"LLLL":return re(e.months("long",!1),1);case"d":return _(a);case"dd":return _(s);case"o":return _(l);case"ooo":return _(r);case"HH":return _(s);case"H":return _(a);case"hh":return _(s);case"h":return _(a);case"mm":return _(s);case"m":return _(a);case"q":return _(a);case"qq":return _(s);case"s":return _(a);case"ss":return _(s);case"S":return _(l);case"SSS":return _(r);case"u":return xt(h);case"uu":return xt(a);case"uuu":return _(n);case"a":return re(e.meridiems(),0);case"kkkk":return _(i);case"kk":return _(d,wn);case"W":return _(a);case"WW":return _(s);case"E":case"c":return _(n);case"EEE":return re(e.weekdays("short",!1),1);case"EEEE":return re(e.weekdays("long",!1),1);case"ccc":return re(e.weekdays("short",!0),1);case"cccc":return re(e.weekdays("long",!0),1);case"Z":case"ZZ":return Br(new RegExp(`([+-]${a.source})(?::(${s.source}))?`),2);case"ZZZ":return Br(new RegExp(`([+-]${a.source})(${s.source})?`),2);case"z":return xt(/[a-z_+-/]{1,256}?/i);case" ":return xt(/[^\S\n\r]/);default:return m(b)}})(t)||{invalidReason:ja};return k.token=t,k}const Ka={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Qa(t,e,n){const{type:s,value:r}=t;if(s==="literal"){const l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}const i=e[s];let o=s;s==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let a=Ka[o];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function Xa(t){return[`^${t.map(n=>n.regex).reduce((n,s)=>`${n}(${s.source})`,"")}$`,t]}function e0(t,e,n){const s=t.match(e);if(s){const r={};let i=1;for(const o in n)if(De(n,o)){const a=n[o],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(s.slice(i,i+l))),i+=l}return[s,r]}else return[s,{}]}function t0(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,s;return v(t.z)||(n=de.create(t.z)),v(t.Z)||(n||(n=new q(t.Z)),s=t.Z),v(t.q)||(t.M=(t.q-1)*3+1),v(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),v(t.u)||(t.S=yn(t.u)),[Object.keys(t).reduce((i,o)=>{const a=e(o);return a&&(i[a]=t[o]),i},{}),n,s]}let Sn=null;function n0(){return Sn||(Sn=S.fromMillis(1555555555555)),Sn}function s0(t,e){if(t.literal)return t;const n=W.macroTokenToFormatOpts(t.val),s=Wr(n,e);return s==null||s.includes(void 0)?t:s}function Ur(t,e){return Array.prototype.concat(...t.map(n=>s0(n,e)))}class $r{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=Ur(W.parseFormat(n),e),this.units=this.tokens.map(s=>Ga(s,e)),this.disqualifyingUnit=this.units.find(s=>s.invalidReason),!this.disqualifyingUnit){const[s,r]=Xa(this.units);this.regex=RegExp(s,"i"),this.handlers=r}}explainFromTokens(e){if(this.isValid){const[n,s]=e0(e,this.regex,this.handlers),[r,i,o]=s?t0(s):[null,null,void 0];if(De(s,"a")&&De(s,"H"))throw new Me("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:s,result:r,zone:i,specificOffset:o}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Pr(t,e,n){return new $r(t,n).explainFromTokens(e)}function r0(t,e,n){const{result:s,zone:r,specificOffset:i,invalidReason:o}=Pr(t,e,n);return[s,r,i,o]}function Wr(t,e){if(!t)return null;const s=W.create(e,t).dtFormatter(n0()),r=s.formatToParts(),i=s.resolvedOptions();return r.map(o=>Qa(o,t,i))}const bn="Invalid DateTime",qr=864e13;function st(t){return new se("unsupported zone",`the zone "${t.name}" is not supported`)}function Tn(t){return t.weekData===null&&(t.weekData=vt(t.c)),t.weekData}function On(t){return t.localWeekData===null&&(t.localWeekData=vt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Oe(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new S({...n,...e,old:n})}function zr(t,e,n){let s=t-e*60*1e3;const r=n.offset(s);if(e===r)return[s,e];s-=(r-e)*60*1e3;const i=n.offset(s);return r===i?[s,r]:[t-Math.min(r,i)*60*1e3,Math.max(r,i)]}function At(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function It(t,e,n){return zr(Tt(t),e,n)}function Hr(t,e){const n=t.o,s=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:s,month:r,day:Math.min(t.c.day,bt(s,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=C.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=Tt(i);let[l,c]=zr(a,n,t.zone);return o!==0&&(l+=o,c=t.zone.offset(l)),{ts:l,o:c}}function qe(t,e,n,s,r,i){const{setZone:o,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const l=e||a,c=S.fromObject(t,{...n,zone:l,specificOffset:i});return o?c:c.setZone(a)}else return S.invalid(new se("unparsable",`the input "${r}" can't be parsed as ${s}`))}function Mt(t,e,n=!0){return t.isValid?W.create(x.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Nn(t,e){const n=t.c.year>9999||t.c.year<0;let s="";return n&&t.c.year>=0&&(s+="+"),s+=F(t.c.year,n?6:4),e?(s+="-",s+=F(t.c.month),s+="-",s+=F(t.c.day)):(s+=F(t.c.month),s+=F(t.c.day)),s}function Zr(t,e,n,s,r,i){let o=F(t.c.hour);return e?(o+=":",o+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=":")):o+=F(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=F(t.c.second),(t.c.millisecond!==0||!s)&&(o+=".",o+=F(t.c.millisecond,3))),r&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=F(Math.trunc(-t.o/60)),o+=":",o+=F(Math.trunc(-t.o%60))):(o+="+",o+=F(Math.trunc(t.o/60)),o+=":",o+=F(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const jr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},i0={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},o0={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Yr=["year","month","day","hour","minute","second","millisecond"],a0=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],l0=["year","ordinal","hour","minute","second","millisecond"];function c0(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new bs(t);return e}function Jr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return c0(t)}}function u0(t){return Dt[t]||(Rt===void 0&&(Rt=D.now()),Dt[t]=t.offset(Rt)),Dt[t]}function Gr(t,e){const n=ge(e.zone,D.defaultZone);if(!n.isValid)return S.invalid(st(n));const s=x.fromObject(e);let r,i;if(v(t.year))r=D.now();else{for(const l of Yr)v(t[l])&&(t[l]=jr[l]);const o=ar(t)||lr(t);if(o)return S.invalid(o);const a=u0(n);[r,i]=It(t,a,n)}return new S({ts:r,zone:n,loc:s,o:i})}function Kr(t,e,n){const s=v(n.round)?!0:n.round,r=(o,a)=>(o=gn(o,s||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,a)),i=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return r(i(n.unit),n.unit);for(const o of n.units){const a=i(o);if(Math.abs(a)>=1)return r(a,o)}return r(t>e?-0:0,n.units[n.units.length-1])}function Qr(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let Rt,Dt={};class S{constructor(e){const n=e.zone||D.defaultZone;let s=e.invalid||(Number.isNaN(e.ts)?new se("invalid input"):null)||(n.isValid?null:st(n));this.ts=v(e.ts)?D.now():e.ts;let r=null,i=null;if(!s)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[r,i]=[e.old.c,e.old.o];else{const a=we(e.o)&&!e.old?e.o:n.offset(this.ts);r=At(this.ts,a),s=Number.isNaN(r.year)?new se("invalid input"):null,r=s?null:r,i=s?null:a}this._zone=n,this.loc=e.loc||x.create(),this.invalid=s,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new S({})}static local(){const[e,n]=Qr(arguments),[s,r,i,o,a,l,c]=n;return Gr({year:s,month:r,day:i,hour:o,minute:a,second:l,millisecond:c},e)}static utc(){const[e,n]=Qr(arguments),[s,r,i,o,a,l,c]=n;return e.zone=q.utcInstance,Gr({year:s,month:r,day:i,hour:o,minute:a,second:l,millisecond:c},e)}static fromJSDate(e,n={}){const s=P2(e)?e.valueOf():NaN;if(Number.isNaN(s))return S.invalid("invalid input");const r=ge(n.zone,D.defaultZone);return r.isValid?new S({ts:s,zone:r,loc:x.fromObject(n)}):S.invalid(st(r))}static fromMillis(e,n={}){if(we(e))return e<-qr||e>qr?S.invalid("Timestamp out of range"):new S({ts:e,zone:ge(n.zone,D.defaultZone),loc:x.fromObject(n)});throw new P(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(we(e))return new S({ts:e*1e3,zone:ge(n.zone,D.defaultZone),loc:x.fromObject(n)});throw new P("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const s=ge(n.zone,D.defaultZone);if(!s.isValid)return S.invalid(st(s));const r=x.fromObject(n),i=Nt(e,Jr),{minDaysInFirstWeek:o,startOfWeek:a}=or(i,r),l=D.now(),c=v(n.specificOffset)?s.offset(l):n.specificOffset,h=!v(i.ordinal),d=!v(i.year),w=!v(i.month)||!v(i.day),m=d||w,p=i.weekYear||i.weekNumber;if((m||h)&&p)throw new Me("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(w&&h)throw new Me("Can't mix ordinal dates with month/day");const k=p||i.weekday&&!m;let b,I,M=At(l,c);k?(b=a0,I=i0,M=vt(M,o,a)):h?(b=l0,I=o0,M=mn(M)):(b=Yr,I=jr);let oe=!1;for(const fe of b){const g=i[fe];v(g)?oe?i[fe]=I[fe]:i[fe]=M[fe]:oe=!0}const Z=k?B2(i,o,a):h?U2(i):ar(i),ae=Z||lr(i);if(ae)return S.invalid(ae);const Wn=k?rr(i,o,a):h?ir(i):i,[qt,qn]=It(Wn,c,s),Ne=new S({ts:qt,zone:s,o:qn,loc:r});return i.weekday&&m&&e.weekday!==Ne.weekday?S.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${Ne.toISO()}`):Ne.isValid?Ne:S.invalid(Ne.invalid)}static fromISO(e,n={}){const[s,r]=Aa(e);return qe(s,r,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[s,r]=Ia(e);return qe(s,r,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[s,r]=Ma(e);return qe(s,r,n,"HTTP",n)}static fromFormat(e,n,s={}){if(v(e)||v(n))throw new P("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=s,o=x.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[a,l,c,h]=r0(o,e,n);return h?S.invalid(h):qe(a,l,s,`format ${n}`,e,c)}static fromString(e,n,s={}){return S.fromFormat(e,n,s)}static fromSQL(e,n={}){const[s,r]=Ua(e);return qe(s,r,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new P("need to specify a reason the DateTime is invalid");const s=e instanceof se?e:new se(e,n);if(D.throwOnInvalid)throw new h2(s);return new S({invalid:s})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const s=Wr(e,x.fromObject(n));return s?s.map(r=>r?r.val:null).join(""):null}static expandFormat(e,n={}){return Ur(W.parseFormat(e),x.fromObject(n)).map(r=>r.val).join("")}static resetCache(){Rt=void 0,Dt={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Tn(this).weekYear:NaN}get weekNumber(){return this.isValid?Tn(this).weekNumber:NaN}get weekday(){return this.isValid?Tn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?On(this).weekday:NaN}get localWeekNumber(){return this.isValid?On(this).weekNumber:NaN}get localWeekYear(){return this.isValid?On(this).weekYear:NaN}get ordinal(){return this.isValid?mn(this.c).ordinal:NaN}get monthShort(){return this.isValid?_t.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?_t.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?_t.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?_t.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,s=Tt(this.c),r=this.zone.offset(s-e),i=this.zone.offset(s+e),o=this.zone.offset(s-r*n),a=this.zone.offset(s-i*n);if(o===a)return[this];const l=s-o*n,c=s-a*n,h=At(l,o),d=At(c,a);return h.hour===d.hour&&h.minute===d.minute&&h.second===d.second&&h.millisecond===d.millisecond?[Oe(this,{ts:l}),Oe(this,{ts:c})]:[this]}get isInLeapYear(){return Qe(this.year)}get daysInMonth(){return bt(this.year,this.month)}get daysInYear(){return this.isValid?Le(this.year):NaN}get weeksInWeekYear(){return this.isValid?Xe(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Xe(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:s,calendar:r}=W.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:s,outputCalendar:r}}toUTC(e=0,n={}){return this.setZone(q.instance(e),n)}toLocal(){return this.setZone(D.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:s=!1}={}){if(e=ge(e,D.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(n||s){const i=e.offset(this.ts),o=this.toObject();[r]=It(o,i,e)}return Oe(this,{ts:r,zone:e})}else return S.invalid(st(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:s}={}){const r=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:s});return Oe(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Nt(e,Jr),{minDaysInFirstWeek:s,startOfWeek:r}=or(n,this.loc),i=!v(n.weekYear)||!v(n.weekNumber)||!v(n.weekday),o=!v(n.ordinal),a=!v(n.year),l=!v(n.month)||!v(n.day),c=a||l,h=n.weekYear||n.weekNumber;if((c||o)&&h)throw new Me("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Me("Can't mix ordinal dates with month/day");let d;i?d=rr({...vt(this.c,s,r),...n},s,r):v(n.ordinal)?(d={...this.toObject(),...n},v(n.day)&&(d.day=Math.min(bt(d.year,d.month),d.day))):d=ir({...mn(this.c),...n});const[w,m]=It(d,this.o,this.zone);return Oe(this,{ts:w,o:m})}plus(e){if(!this.isValid)return this;const n=C.fromDurationLike(e);return Oe(this,Hr(this,n))}minus(e){if(!this.isValid)return this;const n=C.fromDurationLike(e).negate();return Oe(this,Hr(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const s={},r=C.normalizeUnit(e);switch(r){case"years":s.month=1;case"quarters":case"months":s.day=1;case"weeks":case"days":s.hour=0;case"hours":s.minute=0;case"minutes":s.second=0;case"seconds":s.millisecond=0;break}if(r==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:o}=this;o<i&&(s.weekNumber=this.weekNumber-1),s.weekday=i}else s.weekday=1;if(r==="quarters"){const i=Math.ceil(this.month/3);s.month=(i-1)*3+1}return this.set(s)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?W.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):bn}toLocaleString(e=yt,n={}){return this.isValid?W.create(this.loc.clone(n),e).formatDateTime(this):bn}toLocaleParts(e={}){return this.isValid?W.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:s=!1,includeOffset:r=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=e==="extended";let a=Nn(this,o);return a+="T",a+=Zr(this,o,n,s,r,i),a}toISODate({format:e="extended"}={}){return this.isValid?Nn(this,e==="extended"):null}toISOWeekDate(){return Mt(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:s=!0,includePrefix:r=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+Zr(this,o==="extended",n,e,s,i):null}toRFC2822(){return Mt(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Mt(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Nn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:s=!0}={}){let r="HH:mm:ss.SSS";return(n||e)&&(s&&(r+=" "),n?r+="z":e&&(r+="ZZ")),Mt(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():bn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",s={}){if(!this.isValid||!e.isValid)return C.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...s},i=W2(n).map(C.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,l=o?e:this,c=Za(a,l,i,r);return o?c.negate():c}diffNow(e="milliseconds",n={}){return this.diff(S.now(),e,n)}until(e){return this.isValid?L.fromDateTimes(this,e):this}hasSame(e,n,s){if(!this.isValid)return!1;const r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,s)<=r&&r<=i.endOf(n,s)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||S.fromObject({},{zone:this.zone}),s=e.padding?this<n?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),Kr(n,this.plus(s),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?Kr(e.base||S.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(S.isDateTime))throw new P("min requires all arguments be DateTimes");return hr(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(S.isDateTime))throw new P("max requires all arguments be DateTimes");return hr(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,s={}){const{locale:r=null,numberingSystem:i=null}=s,o=x.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return Pr(o,e,n)}static fromStringExplain(e,n,s={}){return S.fromFormatExplain(e,n,s)}static buildFormatParser(e,n={}){const{locale:s=null,numberingSystem:r=null}=n,i=x.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});return new $r(i,e)}static fromFormatParser(e,n,s={}){if(v(e)||v(n))throw new P("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:i=null}=s,o=x.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!o.equals(n.locale))throw new P(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);const{result:a,zone:l,specificOffset:c,invalidReason:h}=n.explainFromTokens(e);return h?S.invalid(h):qe(a,l,s,`format ${n.format}`,e,c)}static get DATE_SHORT(){return yt}static get DATE_MED(){return Ts}static get DATE_MED_WITH_WEEKDAY(){return m2}static get DATE_FULL(){return Os}static get DATE_HUGE(){return Ns}static get TIME_SIMPLE(){return Cs}static get TIME_WITH_SECONDS(){return _s}static get TIME_WITH_SHORT_OFFSET(){return xs}static get TIME_WITH_LONG_OFFSET(){return As}static get TIME_24_SIMPLE(){return Is}static get TIME_24_WITH_SECONDS(){return Ms}static get TIME_24_WITH_SHORT_OFFSET(){return Rs}static get TIME_24_WITH_LONG_OFFSET(){return Ds}static get DATETIME_SHORT(){return Ls}static get DATETIME_SHORT_WITH_SECONDS(){return Vs}static get DATETIME_MED(){return Fs}static get DATETIME_MED_WITH_SECONDS(){return Bs}static get DATETIME_MED_WITH_WEEKDAY(){return p2}static get DATETIME_FULL(){return Us}static get DATETIME_FULL_WITH_SECONDS(){return $s}static get DATETIME_HUGE(){return Ps}static get DATETIME_HUGE_WITH_SECONDS(){return Ws}}function rt(t){if(S.isDateTime(t))return t;if(t&&t.valueOf&&we(t.valueOf()))return S.fromJSDate(t);if(t&&typeof t=="object")return S.fromObject(t);throw new P(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const h0={},f0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},d0=[u.createElementVNode("path",{fill:"rgb(248 113 113)",d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"},null,-1)];function m0(t,e){return u.openBlock(),u.createElementBlock("svg",f0,d0)}const p0=ee(h0,[["render",m0]]),Xr="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-323%20644-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm768%200-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm-424%20640-2%202-24%202-4%202-22%202-6%202-15%203-1%201-12%202-4%202-12%202-4%202-12%202-11%205-11%203-14%206-11%203-6%202-10%204-52%2026-18%2010-8%205-12%207-8%205-9%205-10%209-6%203-10%209-6%203-10%209-6%203-12%2011-19%2019-5%202-10%209-7%208-2%205-3%203v2h-2l-3%2011-2%203v32l9%2017%208%209%208%207%208%205%203%201v2l2%201%2014%201v2l4%201h8l5-3%2012-1%2011-6%2011-9%206-4%2017-17%208-7%205-4%206-4%2010-8%2016-12%206-4%2013-8%207-4%2010-6%2017-9%205-4%2010-3%2019-10%208-4%209-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%203-2%2013-2%206-2%2014-2%206-2%2014-2%207-2%2019-1%207-2%201-1h110l1%202%2010%201%2022%201v2l20%203%207%202%2013%202%205%202%2011%202%208%203%2016%205%208%203%2016%205%208%203%2013%206%2048%2024%2010%206%208%205%209%205%204%202%201%203%2011%207%209%206%2011%209%209%206%205%205h2l2%204h2l2%204h2l2%204h2l2%204h2v2l8%207%2011%207%206%204h3v2l2%201h9l5%202%203%202%208-1%202-2%2012-1%2016-8%209-7%204-5%205-5%204-8%205-11v-30l-3-6-2-7-6-8-3-5-9-10-7-6-6-3-25-25-5-4-6-3-10-9-6-3-10-9-6-3-10-9-7-3-8-5-5-4-14-7-6-5-23-11-17-9-23-11-10-5-10-3-35-12-14-5-51-13-22-4-21-3-19-2-7-2z'%20fill='%23C66021'/%3e%3c/svg%3e",ei="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-424%20579-18%201-19%2010-12%2012-4%207-7%2014v35l9%2017%2011%2012%208%207%209%206%207%207%208%207%209%206%206%205%205%205%209%206%206%205%205%205%209%206%205%205h2v2l9%206%208%207%205%205h2v2l9%206%208%207%202%202%201%205-4%202-5%205-6%203-10%209-24%2024v2h-2l-3%207-6%207-3%206-6%209-7%2014-6%2020-2%203-2%2013-2%202v69l2%203%203%2015%204%2012%205%2013%207%2012%2010%2017%207%2010%209%2010%2018%2018%2010%208%209%206%2016%209%209%206%206%203%209%202%209%203%207%203%2010%201%206%203h62l6-2%201-1%2011-1%205-3%2010-2%202-2%2010-2%209-5%209-6%2011-6%209-6%2011-9%2013-13%205-6%205-5%205-6%206-9%206-10%203-6%206-9%204-11%207-20%201-9%203-8v-65l-3-5-2-13-3-8-6-17-8-16-6-10-6-7-4-6-9-10-26-26-5-4-6-3-13-13-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-13-13-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-13-13-5-4-6-3-10-10-7-4-8-7-9-8-6-3-10-10-7-4-11-9-5-3-13-7zm1006%201-19%2010-8%208-6%203-10%209-6%205-7%204-11%2011-6%203-10%209-6%205-5%203-10%209-8%208-5%202-10%209-6%205-7%204-11%2011-6%203-10%209-5%205-5%202-12%2011-7%207-5%202-10%209-6%205-7%204-11%2011-6%203-10%209-6%205-7%204-11%2011-6%203-10%209-36%2036-4%207-7%2010-12%2024-3%2010-4%2012-2%2010-2%205-1%201v69l2%203%203%2015%204%2012%205%2013%207%2012%2010%2017%207%2010%209%2010%2018%2018%2010%208%209%206%2016%209%209%206%206%203%209%202%209%203%207%203%2010%201%206%203h62l6-2%201-1%2011-1%205-3%2010-2%202-2%2010-2%209-5%209-6%2011-6%209-6%2011-9%2013-13%205-6%205-5%205-6%206-9%206-10%203-6%206-9%204-11%207-20%201-9%203-8v-65l-3-5-2-13-3-8-6-17-7-14-6-8-3-5-5-7-3-5-9-10-22-22-5-4-6-3-5-5h-2l-1-4%203-5%208-6%206-4%208-7v-2l4-2%206-5%206-4%2012-11%208-5%2012-11%208-5%2012-11%208-5%207-6%205-5%206-5%209-6v-2l4-2%201-3%204-2%207-9%207-14%201-4v-32l-8-17-12-13-8-6-14-7zm-495%20827-4%204-53%201-3%202-23%202-5%202-16%202-5%202-15%202-4%202-15%203-42%2014-10%204-19%209-3%202-8%202-20%2011-4%203-14%207-18%2010-7%207-8%204-11%208-7%205-5%203-10%209-7%207-6%203-10%209-16%2016-4%207-7%2013v36l9%2017%209%2010h2v2l9%206%2013%207h34l19-9%2013-12%209-6%209-9%209-7%2018-12%208-7%2023-12%209-6%2016-8%205-3%209-2%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%203-2%2013-2%203-2%2013-2%204-2%2016-1%205-2%201-1h110l1%202%204%201%2016%201%208%203%2012%202%205%202%2011%202%208%203%2016%205%208%203%2016%207%2011%204%2016%208%209%206%2019%2010%206%204%203%201%201%203%2011%207%209%206%208%207%206%205%205%205%209%206%205%205h2v2l9%206%2013%207h34l19-9%2010-9%207-9%207-14%201-3v-34l-9-17-11-12-13-13-5-4-6-3-14-14-7-4-9-7-6-3-6-5-6-3-6-5-6-3-6-5-21-10-7-6-16-8-9-2-28-14-10-3-36-12-30-7-29-6-23-2-7-2-51-1-2-4z'%20fill='%23CA2E22'/%3e%3c/svg%3e",ti="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(988)'%20d='m0%200h72l44%202%2048%205%2035%205%2044%208%2035%208%2042%2011%2029%209%2021%207%2023%208%2010%204%2032%2013%2019%208%2015%207%2032%2016%2027%2014%2023%2013%2023%2014%2019%2012%2012%208%2016%2011%2017%2012%206%204v2l5%202%2014%2011%2010%208%2014%2011%2013%2011%2012%2011%2011%209%208%208%208%207%2048%2048%207%208%2011%2012%207%208%2011%2013%2011%2014%2010%2012%2010%2013%205%207v2h2l12%2017%2011%2016%2010%2015%2014%2022%209%2015%2011%2019%209%2016%2015%2029%2013%2026%2013%2029%2011%2027%208%2020%209%2026%207%2021%2011%2037%207%2027%206%2025%208%2040%206%2039%203%2024%204%2038%202%2044v72l-2%2044-5%2048-5%2035-8%2044-8%2035-11%2042-9%2029-7%2021-10%2028-15%2037-11%2025-16%2033-12%2024-11%2020-14%2024-13%2021-9%2014-10%2015-9%2013-13%2018-1%202h-2l-2%205-11%2014-8%2010-11%2014-11%2013-10%2011-9%2011-9%209-7%208-48%2048-8%207-11%2010-8%207-10%209-9%207-16%2013-14%2011-11%208h-2v2l-17%2012-16%2011-15%2010-19%2012-18%2011-17%2010-10%206-12%206-19%2010-32%2016-29%2013-27%2011-15%206-17%206-20%207-25%208-34%2010-36%209-39%208-41%207-32%204-38%204-44%202h-72l-44-2-48-5-35-5-44-8-35-8-42-11-29-9-21-7-23-8-10-4-32-13-19-8-15-7-32-16-27-14-23-13-23-14-19-12-12-8-16-11-17-12-6-4v-2l-5-2-14-11-10-8-14-11-13-11-12-11-11-9-8-8-8-7-48-48-7-8-11-12-7-8-11-13-11-14-10-12-10-13-5-7v-2h-2l-12-17-11-16-10-15-14-22-9-15-11-19-9-16-15-29-13-26-13-29-11-27-8-20-9-26-7-21-11-37-7-27-6-25-8-40-6-39-3-24-4-38-2-44v-72l2-44%205-48%205-35%208-44%208-35%2011-42%209-29%207-21%2010-28%2015-37%2011-25%2016-33%2013-26%2010-18%2014-24%2013-21%209-14%2010-15%209-13%2013-18%201-2h2l2-5%2011-14%208-10%2011-14%2011-13%2010-11%209-11%209-9%207-8%2048-48%208-7%2011-10%208-7%2010-9%209-7%2016-13%2014-11%2011-8h2v-2l17-12%2016-11%2015-10%2019-12%2021-13%2023-13%2022-12%2032-16%2021-10%2030-13%2030-12%2017-6%2020-7%2025-8%2034-10%2036-9%2039-8%2041-7%2032-4%2038-4zm-288%20579-17%203-20%206-16%208-14%209-13%2011-8%208-10%2013-10%2017-6%2015-5%2018-2%2013v25l3%2018%207%2021%2011%2021%2010%2013%2011%2012%2011%209%2013%209%2019%209%2016%205%2016%203h33l16-3%2018-6%2016-8%2011-7%2010-8%2016-16%209-13%206-10%208-19%205-18%202-16v-18l-2-15-6-21-5-12-7-13-11-15-12-13-14-11-13-8-17-8-21-6-13-2zm623%200-17%203-17%205-21%2010-13%209-14%2012-10%2011-12%2018-8%2017-5%2016-3%2016-1%208v18l2%2015%206%2021%208%2018%207%2011%209%2012%2017%2017%2013%209%2010%206%2019%208%2018%205%208%201h33l16-3%2016-5%2019-9%2017-12%2014-13%2011-14%208-13%208-17%206-21%202-13v-25l-3-18-7-21-8-16-8-12-11-13-8-8-13-10-17-10-15-6-18-5-13-2zm-859%20378-16%203-12%205-10%207-9%208-7%2010-6%2013-2%206-1%207v34l1%2021%205%2044%205%2028%206%2028%205%2020%209%2028%2010%2029%2013%2031%207%2015%2014%2027%2012%2021%206%209%205%209%2013%2019%2012%2017%2011%2014%2014%2017%2011%2012%209%2011%2030%2030%2011%209%207%207%2011%209%2016%2013%2019%2014%2027%2018%2031%2019%2014%207%2019%2010%2029%2013%2025%2010%2033%2011%2021%206%2028%207%2031%206%2020%203%2036%204%2021%201h52l21-1%2044-5%2028-5%2028-6%2020-5%2028-9%2029-10%2031-13%2015-7%2029-15%2019-11%209-6%209-5%2019-13%2017-12%2014-11%2017-14%2012-11%2011-9%2030-30%209-11%207-7%209-11%2013-16%2014-19%2018-27%208-13%2010-17%2014-26%209-19%2013-30%2011-30%208-26%205-18%208-36%206-36%204-36%201-21v-34l-2-10-5-13-7-10-8-9-10-7-12-6-12-3-14-1-17%203-16%208-6%204v2l-3%201v2l-4%202-8%2011-5%2010-3%2010-1%208-2%2046-3%2028-6%2035-8%2032-12%2036-13%2031-13%2027-9%2016-14%2023-20%2028-8%2010-9%2011-13%2015-32%2032-11%209-12%2010-14%2011-13%209-15%2010-25%2015-29%2015-19%208-11%205-23%208-15%205-25%207-29%206-19%203-28%203-22%201h-36l-34-2-35-5-29-6-29-8-34-12-25-11-25-12-18-10-19-12-12-8-22-16-11-9-15-13-8-7-30-30-9-11-10-12-10-13-10-14-10-15-9-15-8-14-13-25-14-33-7-20-5-15-7-26-4-18-5-29-3-28-2-46-2-12-5-13-7-10-5-6h-2l-1-3h-2v-2l-13-8-13-5-13-2z'%20fill='%233A8C03'/%3e%3c/svg%3e",ni="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-323%20644-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm768%200-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm-676%20764-2%202-17%202-19%2010-12%2012-4%207-6%2011-1%205v31l5%2012%205%208%208%209h2v2l9%206%2014%207%2017%201v2l4%201h628l8-1%201-2%2015-1%2011-5%209-5%2010-9v-2h2l6-10%205-10%201-3v-33l-8-17-12-13-8-6-14-7-11-1h-7v-2l-2-1z'%20fill='%23E8A654'/%3e%3c/svg%3e",si="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(932)'%20d='m0%200h184v3h15l18%201%203%201v2l28%201%209%203%2016%201%208%203%2012%201%208%203%2011%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%2010%203%209%202%208%203%2016%205%209%203%207%203%2021%207%2011%205%2011%204%209%204%2011%204%2024%2012%2010%203%2046%2023%208%206%2016%208%209%206%2016%209%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%2012%208v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2l4%202v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%206%207%2013%2013%203%206%206%206v2h2v2h2l7%208%205%206%203%205%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%208%2014%207%2011%206%209%208%2015%206%2012%206%209%208%2015%209%2019%206%2012%206%2016%208%2016%2011%2027%208%2020%2010%2030%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2014%202%202%202%2018%202%202%202%2018%202%201%202%2023%202%201%201%207v25l4%201%201%2035h3v183l-3%202-1%2030-2%205-1%201-1%2022-1%208-2%202-1%2018-2%205-1%201-1%2015-1%204h-2l-1%2012-3%205-1%2015-1%204h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-3%2010-4%2012-3%2010-6%2013-4%2011-10%2024-8%2016-8%2020-8%2016-10%2019-4%207-6%2010-9%2017-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-10%2011-2%205-7%207-1%202h-2l-2%204-8%207-4%208-93%2093h-5l-2%204-8%207-12%2012-6%203-10%209-6%203-10%209-4%204-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-9%206-11%206-9%206-12%206-13%208-19%2010-26%2013-20%208-22%2011-17%206-7%203-17%206-15%206-36%2012-23%207-11%203-24%206-54%2012-23%204-14%202-13%202-22%203-29%202-1%203h-184l-1-3-34-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-15-6-17-6-10-5-9-2-16-8-11-6-9-2-32-16-17-9-6-5-21-10-7-6-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-9-9-5-4-6-3-10-9-6-3-17-17-5-4-5-2-92-92-3-6-11-12-10-10-3-6-9-10-3-6-11-12-3-4-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-7-14-12-20-13-26-5-12-4-10-11-22-5-12-5-13-6-16-5-14-4-10-15-45-3-12-6-20-5-22-3-10-4-18-1-8-2-5-2-15-2-6-2-18-2-9-1-17-2-7-1-4-1-32-3-1v-183l3-3%201-26%202-8%201-3%201-23%203-7%201-17%203-11%202-13%202-6%202-14%205-18%208-32%205-16%203-12%2020-60%204-8%204-12%204-8%204-12%2012-24%203-10%2011-23%2011-20%203-6%205-7%208-16%207-13%205-7%206-12%206-8%206-9%207-11%207-10%204-5%203-6%208-9%206-10%203-3%203-6%2012-13%205-8%208-9%203-6%208-9h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%205-6%205-5h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2010-8%208-6%2010-9%2010-6%2011-8%209-7%2048-32%2014-8%2010-6%2019-10%207-4%2010-6%2019-10%2023-11%2010-3%2019-10%208-4%209-2%2011-6%209-2%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%202-2%2011-1%206-3%2013-1%205-2%201-1%2017-1%206-2%201-1%2015-1%204-2%206-1%2026-1%201-3%2034-1zm-219%20608-2%202-17%202-3%202-10%202-2%202-9%202-11%206-5%204-9%206-18%2018-4%207-7%2010-8%2015-5%2013-3%208v55l3%207%205%2017%209%2017%209%2010%203%206%204%205%2011%207%204%202%201%203%2011%207%209%206%206%203%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%209-5%209-6%2010-8%203-3%205-2%205-5%202-5%207-7%207-9%204-7%205-14%207-21v-53l-3-6-3-9-8-16-6-10-6-9-9-10-7-7-7-4-9-7-23-11-12-4-1-1-17-2-5-2zm600%200-2%202-17%202-3%202-10%202-2%202-9%202-8%206-7%204-4%203v2l-5%201-12%2011-7%207-4%207-7%2010-8%2015-5%2013-3%2010v53l3%207%206%2018%204%208%206%209%2012%2015%203%205%205%204%206%204%203%201%201%203%2011%207%209%206%206%203%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%209-5%209-6%2010-8%203-3%205-2%205-5%202-5%207-7%207-9%204-7%205-14%207-21v-53l-3-6-3-9-8-16-6-10-6-9-9-10-7-7-7-4-9-7-23-11-12-4-1-1-17-2-5-2zm-807%20604-19%2010-12%2012-4%207-6%2012-2%2012-3%205v8l3%205%201%2011%205%209%209%2010%203%206%205%205%208%209h2l2%204h2l2%204%2012%2012%203%206%2010%2010%2010%207%209%209h2l2%204h2l2%204h2l2%204h2v2l8%207%209%206%205%205h2v2l9%206%205%204h2v2l9%206%2010%207%206%204%208%207%2014%207%208%206%2013%207%209%206%2062%2031%209%203%209%204%2010%205%209%202%208%203%2016%205%208%203%2016%205%209%203%208%203%2011%202%205%202%2011%202%207%202%2013%202%207%202%2015%201%207%203%2023%201v2l9%201%2030%201%201%202%204%201h77l7-2%201-1%2028-1%2010-1%202-2%2021-1%206-2%201-1%2017-1%206-2%201-1%2018-2%202-2%2014-2%202-2%2014-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2010-2%202-2%207-3%2011-3%202-2%208-3%207-2%2023-11%2038-19%2015-8%209-6%2011-6%209-6%2011-6%209-8%208-5%2011-7%209-8%208-5%2012-11%208-5%2013-13%206-5%205-5v-2l4-2%205-5%206-3%2012-12%202-5%2011-11%205-6%206-5%207-8%205-5%203-6%208-9%205-10%201-11%203-4v-7l-3-7-2-11-8-16-11-12-8-6-14-7h-33l-2%202-9%202-11%206-14%2014-3%207-42%2042v2l-4%202-18%2018-5%202-12%2011-4%203-7%204-7%207-6%203-10%209-6%203-9%206-14%208-4%203-12%206-13%208-19%2010-9%203-19%209-14%205-10%204-7%203-11%203-6%202-7%203-12%202-8%203-9%203-15%202-4%202-16%202-4%202-21%202-3%202-31%202h-7l-1%203h-70l-10-1-2-2-24-1-34-5-44-9-29-8-35-12-25-10-5-3-7-3-6-2-5-2-4-2-1-3-10-2-3-3h-2v-2l-17-8-8-5-5-4-7-3-10-6-3-3-6-3-7-6-3-3-6-3-7-6-3-3-6-3-9-9-5-4-5-2-63-63-3-6-9-10-7-4-9-7-9-2-3-2z'%20fill='%238CBF50'/%3e%3c/svg%3e",y0=t=>(u.pushScopeId("data-v-6a7c2080"),t=t(),u.popScopeId(),t),g0={class:"messages-container-list"},w0={class:"message-container"},E0={key:0,class:"btn-container-widget"},k0=["onClick"],v0={class:"chat-message"},S0={key:0,class:"flex flex-col gap-2"},b0=y0(()=>u.createElementVNode("div",{class:"mb-2"},[u.createElementVNode("strong",{style:{display:"block"}},"Ayúdanos a mejorar nuestro servicio."),u.createElementVNode("span",null,"¿Que le pareció la atención?")],-1)),T0={style:{"font-size":"14px"},class:"flex justify-between gap-2"},O0=["href","onClick"],N0={class:"flex flex-col items-center"},C0=["src"],_0={key:1},x0=["src"],A0=["innerHTML"],I0={class:"detail-message flex justify-between mt-2"},M0={key:0,class:"mr-5"},R0={key:1,class:"mr-5"},D0=ee(u.defineComponent({__name:"MessageList",props:{messages:{type:Array,default:()=>[]},canLoadMoreMessages:{type:Boolean,default:!1}},emits:["loadMore","retry","onQualifying"],setup(t,{emit:e}){const n=t,s=u.ref(),{pause:r,resume:i}=u2(s,([{isIntersecting:d}])=>{d&&e("loadMore")});function o(d,w){return!d.response||typeof d.response!="object"?!0:w.iconUnicode===d.response.message}u.onBeforeMount(()=>{n.canLoadMoreMessages||r()}),u.watch(()=>n.canLoadMoreMessages,d=>{if(d){i();return}r()});const a={BOLD:{regex:/\*(.+?)\*(?!\*)/g,tag:"<strong--custom-tag>{val}</strong--custom-tag>"},ITALIC:{regex:/_(.+?)_/,tag:"<i--custom-tag>{val}</i--custom-tag>"},CROSSED_OUT:{regex:/~(.+?)~(?!~)/g,tag:"<del--custom-tag>{val}</del--custom-tag>"},URL:{regex:/(http?s?:\/\/[^\s]+)/g,tag:'<a--custom-tag href="{val}" target="_blank">{val}</a--custom-tag>'}};function l(d){const w=Object.values(a);return!w||Array.isArray(w)&&w.length===0?d:w.reduce((p,k)=>p.replace(k.regex,(b,I)=>/--custom-tag/.test(b)?b:k.tag.replace(/{val}/g,I)),d).replace(/--custom-tag/g,"")}const c=[{label:"Excelente",value:1,icon:ti,iconUnicode:"😊"},{label:"Buena",value:2,icon:si,iconUnicode:"😄"},{label:"Aceptable",value:3,icon:ni,iconUnicode:"🙂"},{label:"Mala",value:4,icon:Xr,iconUnicode:"😐"},{label:"Muy Mala",value:5,icon:ei,iconUnicode:"🙁"}],h={"😊":ti,"😄":si,"🙂":ni,"😐":Xr,"🙁":ei,"":null};return(d,w)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",{ref_key:"target",ref:s,class:"target"},null,512),u.createElementVNode("div",g0,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.messages,m=>{var p,k;return u.openBlock(),u.createElementBlock("div",{key:m.id,class:u.normalizeClass(["message",m.esCliente?"message-right":"message-left"])},[u.createElementVNode("div",w0,[m.error&&m.esCliente?(u.openBlock(),u.createElementBlock("div",E0,[u.createElementVNode("button",{text:"",rounded:"",class:"btn-danger",icon:"fa-solid fa-circle-exclamation","aria-label":"Cancel",onClick:b=>e("retry",m)},[u.createVNode(p0)],8,k0)])):u.createCommentVNode("",!0),u.createElementVNode("div",v0,[u.createElementVNode("div",{class:u.normalizeClass(["bubble",m.esCliente?"right":"left"])},[u.createElementVNode("div",{class:u.normalizeClass(m.esCliente?"content-right":"content-left")},[m.message==="😊😄🙂😐🙁"?(u.openBlock(),u.createElementBlock("div",S0,[b0,u.createElementVNode("div",T0,[(u.openBlock(),u.createElementBlock(u.Fragment,null,u.renderList(c,b=>u.createElementVNode("a",{key:b.value,href:m.response?void 0:"javascript:",class:u.normalizeClass(["btn-icon",{"content-disabled":!o(m,b)}]),onClick:I=>!m.response&&e("onQualifying",{message:m,emoji:b})},[u.createElementVNode("div",N0,[u.createElementVNode("img",{src:b.icon,alt:"icono",class:"icon"},null,8,C0),u.createElementVNode("span",null,u.toDisplayString(b.label),1)])],10,O0)),64))])])):h[m.message??""]?(u.openBlock(),u.createElementBlock("div",_0,[u.createElementVNode("img",{src:h[m.message],alt:"icono",class:"icon"},null,8,x0)])):(u.openBlock(),u.createElementBlock("div",{key:2,class:"message-text",style:{"white-space":"pre-line"},innerHTML:l(m.message)},null,8,A0)),u.createElementVNode("div",I0,[(p=m.sender)!=null&&p.nombreCompleto?(u.openBlock(),u.createElementBlock("span",M0,u.toDisplayString(m.esCliente?(k=m.sender)==null?void 0:k.nombreCompleto:"ECOSISTEMA JL"),1)):(u.openBlock(),u.createElementBlock("span",R0)),u.createElementVNode("span",null,u.toDisplayString(u.unref(S).fromISO(m.createdAt).toFormat("dd-MM-yyyy HH:mm")),1)])],2)],2)])])],2)}),128))])],64))}}),[["__scopeId","data-v-6a7c2080"]]),L0={},ri=t=>(u.pushScopeId("data-v-d9a6b2b7"),t=t(),u.popScopeId(),t),V0={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{width:"28px",height:"28px"}},F0=[ri(()=>u.createElementVNode("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"},null,-1)),ri(()=>u.createElementVNode("path",{d:"M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z",class:"spinner_ajPY"},null,-1))];function B0(t,e){return u.openBlock(),u.createElementBlock("svg",V0,F0)}const U0=ee(L0,[["render",B0],["__scopeId","data-v-d9a6b2b7"]]);function $0(t,e,n){for(let s=t.length-1;s>=0;s--)if(t[s][e]===n)return s;return-1}const ue=Object.create(null);ue.open="0",ue.close="1",ue.ping="2",ue.pong="3",ue.message="4",ue.upgrade="5",ue.noop="6";const Lt=Object.create(null);Object.keys(ue).forEach(t=>{Lt[ue[t]]=t});const Cn={type:"error",data:"parser error"},ii=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",oi=typeof ArrayBuffer=="function",ai=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,_n=({type:t,data:e},n,s)=>ii&&e instanceof Blob?n?s(e):li(e,s):oi&&(e instanceof ArrayBuffer||ai(e))?n?s(e):li(new Blob([e]),s):s(ue[t]+(e||"")),li=(t,e)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];e("b"+(s||""))},n.readAsDataURL(t)};function ci(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let xn;function P0(t,e){if(ii&&t.data instanceof Blob)return t.data.arrayBuffer().then(ci).then(e);if(oi&&(t.data instanceof ArrayBuffer||ai(t.data)))return e(ci(t.data));_n(t,!1,n=>{xn||(xn=new TextEncoder),e(xn.encode(n))})}const ui="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",it=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<ui.length;t++)it[ui.charCodeAt(t)]=t;const W0=t=>{let e=t.length*.75,n=t.length,s,r=0,i,o,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const c=new ArrayBuffer(e),h=new Uint8Array(c);for(s=0;s<n;s+=4)i=it[t.charCodeAt(s)],o=it[t.charCodeAt(s+1)],a=it[t.charCodeAt(s+2)],l=it[t.charCodeAt(s+3)],h[r++]=i<<2|o>>4,h[r++]=(o&15)<<4|a>>2,h[r++]=(a&3)<<6|l&63;return c},q0=typeof ArrayBuffer=="function",An=(t,e)=>{if(typeof t!="string")return{type:"message",data:hi(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:z0(t.substring(1),e)}:Lt[n]?t.length>1?{type:Lt[n],data:t.substring(1)}:{type:Lt[n]}:Cn},z0=(t,e)=>{if(q0){const n=W0(t);return hi(n,e)}else return{base64:!0,data:t}},hi=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},fi="",H0=(t,e)=>{const n=t.length,s=new Array(n);let r=0;t.forEach((i,o)=>{_n(i,!1,a=>{s[o]=a,++r===n&&e(s.join(fi))})})},Z0=(t,e)=>{const n=t.split(fi),s=[];for(let r=0;r<n.length;r++){const i=An(n[r],e);if(s.push(i),i.type==="error")break}return s};function j0(){return new TransformStream({transform(t,e){P0(t,n=>{const s=n.length;let r;if(s<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,s);else if(s<65536){r=new Uint8Array(3);const i=new DataView(r.buffer);i.setUint8(0,126),i.setUint16(1,s)}else{r=new Uint8Array(9);const i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(s))}t.data&&typeof t.data!="string"&&(r[0]|=128),e.enqueue(r),e.enqueue(n)})}})}let In;function Vt(t){return t.reduce((e,n)=>e+n.length,0)}function Ft(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let s=0;for(let r=0;r<e;r++)n[r]=t[0][s++],s===t[0].length&&(t.shift(),s=0);return t.length&&s<t[0].length&&(t[0]=t[0].slice(s)),n}function Y0(t,e){In||(In=new TextDecoder);const n=[];let s=0,r=-1,i=!1;return new TransformStream({transform(o,a){for(n.push(o);;){if(s===0){if(Vt(n)<1)break;const l=Ft(n,1);i=(l[0]&128)===128,r=l[0]&127,r<126?s=3:r===126?s=1:s=2}else if(s===1){if(Vt(n)<2)break;const l=Ft(n,2);r=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),s=3}else if(s===2){if(Vt(n)<8)break;const l=Ft(n,8),c=new DataView(l.buffer,l.byteOffset,l.length),h=c.getUint32(0);if(h>Math.pow(2,21)-1){a.enqueue(Cn);break}r=h*Math.pow(2,32)+c.getUint32(4),s=3}else{if(Vt(n)<r)break;const l=Ft(n,r);a.enqueue(An(i?l:In.decode(l),e)),s=0}if(r===0||r>t){a.enqueue(Cn);break}}}})}const di=4;function B(t){if(t)return J0(t)}function J0(t){for(var e in B.prototype)t[e]=B.prototype[e];return t}B.prototype.on=B.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},B.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},B.prototype.off=B.prototype.removeListener=B.prototype.removeAllListeners=B.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var s,r=0;r<n.length;r++)if(s=n[r],s===e||s.fn===e){n.splice(r,1);break}return n.length===0&&delete this._callbacks["$"+t],this},B.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(n){n=n.slice(0);for(var s=0,r=n.length;s<r;++s)n[s].apply(this,e)}return this},B.prototype.emitReserved=B.prototype.emit,B.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},B.prototype.hasListeners=function(t){return!!this.listeners(t).length};const X=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function mi(t,...e){return e.reduce((n,s)=>(t.hasOwnProperty(s)&&(n[s]=t[s]),n),{})}const G0=X.setTimeout,K0=X.clearTimeout;function Bt(t,e){e.useNativeTimers?(t.setTimeoutFn=G0.bind(X),t.clearTimeoutFn=K0.bind(X)):(t.setTimeoutFn=X.setTimeout.bind(X),t.clearTimeoutFn=X.clearTimeout.bind(X))}const Q0=1.33;function X0(t){return typeof t=="string"?el(t):Math.ceil((t.byteLength||t.size)*Q0)}function el(t){let e=0,n=0;for(let s=0,r=t.length;s<r;s++)e=t.charCodeAt(s),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(s++,n+=4);return n}function tl(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function nl(t){let e={},n=t.split("&");for(let s=0,r=n.length;s<r;s++){let i=n[s].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return e}class sl extends Error{constructor(e,n,s){super(e),this.description=n,this.context=s,this.type="TransportError"}}class Mn extends B{constructor(e){super(),this.writable=!1,Bt(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,s){return super.emitReserved("error",new sl(e,n,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=An(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const n=tl(e);return n.length?"?"+n:""}}const pi="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Rn=64,rl={};let yi=0,Ut=0,gi;function wi(t){let e="";do e=pi[t%Rn]+e,t=Math.floor(t/Rn);while(t>0);return e}function Ei(){const t=wi(+new Date);return t!==gi?(yi=0,gi=t):t+"."+wi(yi++)}for(;Ut<Rn;Ut++)rl[pi[Ut]]=Ut;let ki=!1;try{ki=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const il=ki;function vi(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||il))return new XMLHttpRequest}catch{}if(!e)try{return new X[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function _c(){}function ol(){}const al=function(){return new vi({xdomain:!1}).responseType!=null}();class ll extends Mn{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const s=location.protocol==="https:";let r=location.port;r||(r=s?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}const n=e&&e.forceBase64;this.supportsBinary=al&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let s=0;this.polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Z0(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,H0(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Ei()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new he(this.uri(),e)}doWrite(e,n){const s=this.request({method:"POST",data:e});s.on("success",n),s.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=e}}class he extends B{constructor(e,n){super(),Bt(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.data=n.data!==void 0?n.data:null,this.create()}create(){var e;const n=mi(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const s=this.xhr=new vi(n);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&s.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var r;s.readyState===3&&((r=this.opts.cookieJar)===null||r===void 0||r.parseCookies(s)),s.readyState===4&&(s.status===200||s.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof s.status=="number"?s.status:0)},0))},s.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=he.requestsCount++,he.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=ol,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete he.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(he.requestsCount=0,he.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Si);else if(typeof addEventListener=="function"){const t="onpagehide"in X?"pagehide":"unload";addEventListener(t,Si,!1)}}function Si(){for(let t in he.requests)he.requests.hasOwnProperty(t)&&he.requests[t].abort()}const Dn=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),$t=X.WebSocket||X.MozWebSocket,bi=!0,cl="arraybuffer",Ti=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ul extends Mn{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,s=Ti?{}:mi(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=bi&&!Ti?n?new $t(e,n):new $t(e):new $t(e,n,s)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const s=e[n],r=n===e.length-1;_n(s,this.supportsBinary,i=>{const o={};try{bi&&this.ws.send(i)}catch{}r&&Dn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Ei()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!$t}}class hl extends Mn{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const n=Y0(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(n).getReader(),r=j0();r.readable.pipeTo(e.writable),this.writer=r.writable.getWriter();const i=()=>{s.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const s=e[n],r=n===e.length-1;this.writer.write(s).then(()=>{r&&Dn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const fl={websocket:ul,webtransport:hl,polling:ll},dl=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ml=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ln(t){const e=t,n=t.indexOf("["),s=t.indexOf("]");n!=-1&&s!=-1&&(t=t.substring(0,n)+t.substring(n,s).replace(/:/g,";")+t.substring(s,t.length));let r=dl.exec(t||""),i={},o=14;for(;o--;)i[ml[o]]=r[o]||"";return n!=-1&&s!=-1&&(i.source=e,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=pl(i,i.path),i.queryKey=yl(i,i.query),i}function pl(t,e){const n=/\/{2,9}/g,s=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function yl(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,r,i){r&&(n[r]=i)}),n}let Oi=class He extends B{constructor(e,n={}){super(),this.binaryType=cl,this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=Ln(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=Ln(n.host).host),Bt(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=nl(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=di,n.transport=e,this.id&&(n.sid=this.id);const s=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new fl[e](s)}open(){let e;if(this.opts.rememberUpgrade&&He.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),s=!1;He.priorWebsocketSuccess=!1;const r=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!s)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;He.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(h(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=n.name,this.emitReserved("upgradeError",w)}}))};function i(){s||(s=!0,h(),n.close(),n=null)}const o=d=>{const w=new Error("probe error: "+d);w.transport=n.name,i(),this.emitReserved("upgradeError",w)};function a(){o("transport closed")}function l(){o("socket closed")}function c(d){n&&d.name!==n.name&&i()}const h=()=>{n.removeListener("open",r),n.removeListener("error",o),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",r),n.once("error",o),n.once("close",a),this.once("close",l),this.once("upgrading",c),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||n.open()},200):n.open()}onOpen(){if(this.readyState="open",He.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e<n;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=e.data,this.onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let s=0;s<this.writeBuffer.length;s++){const r=this.writeBuffer[s].data;if(r&&(n+=X0(r)),s>0&&n>this.maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}write(e,n,s){return this.sendPacket("message",e,n,s),this}send(e,n,s){return this.sendPacket("message",e,n,s),this}sendPacket(e,n,s,r){if(typeof n=="function"&&(r=n,n=void 0),typeof s=="function"&&(r=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const i={type:e,data:n,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},s=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}onError(e){He.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let s=0;const r=e.length;for(;s<r;s++)~this.transports.indexOf(e[s])&&n.push(e[s]);return n}};Oi.protocol=di;function gl(t,e="",n){let s=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),s=Ln(t)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const i=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+i+":"+s.port+e,s.href=s.protocol+"://"+i+(n&&n.port===s.port?"":":"+s.port),s}const wl=typeof ArrayBuffer=="function",El=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Ni=Object.prototype.toString,kl=typeof Blob=="function"||typeof Blob<"u"&&Ni.call(Blob)==="[object BlobConstructor]",vl=typeof File=="function"||typeof File<"u"&&Ni.call(File)==="[object FileConstructor]";function Vn(t){return wl&&(t instanceof ArrayBuffer||El(t))||kl&&t instanceof Blob||vl&&t instanceof File}function Pt(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,s=t.length;n<s;n++)if(Pt(t[n]))return!0;return!1}if(Vn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Pt(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Pt(t[n]))return!0;return!1}function Sl(t){const e=[],n=t.data,s=t;return s.data=Fn(n,e),s.attachments=e.length,{packet:s,buffers:e}}function Fn(t,e){if(!t)return t;if(Vn(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let s=0;s<t.length;s++)n[s]=Fn(t[s],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=Fn(t[s],e));return n}return t}function bl(t,e){return t.data=Bn(t.data,e),delete t.attachments,t}function Bn(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=Bn(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=Bn(t[n],e));return t}const Tl=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Ol=5;var T;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(T||(T={}));class Nl{constructor(e){this.replacer=e}encode(e){return(e.type===T.EVENT||e.type===T.ACK)&&Pt(e)?this.encodeAsBinary({type:e.type===T.EVENT?T.BINARY_EVENT:T.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===T.BINARY_EVENT||e.type===T.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=Sl(e),s=this.encodeAsString(n.packet),r=n.buffers;return r.unshift(s),r}}function Ci(t){return Object.prototype.toString.call(t)==="[object Object]"}class Un extends B{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const s=n.type===T.BINARY_EVENT;s||n.type===T.BINARY_ACK?(n.type=s?T.EVENT:T.ACK,this.reconstructor=new Cl(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Vn(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const s={type:Number(e.charAt(0))};if(T[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===T.BINARY_EVENT||s.type===T.BINARY_ACK){const i=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const o=e.substring(i,n);if(o!=Number(o)||e.charAt(n)!=="-")throw new Error("Illegal attachments");s.attachments=Number(o)}if(e.charAt(n+1)==="/"){const i=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););s.nsp=e.substring(i,n)}else s.nsp="/";const r=e.charAt(n+1);if(r!==""&&Number(r)==r){const i=n+1;for(;++n;){const o=e.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===e.length)break}s.id=Number(e.substring(i,n+1))}if(e.charAt(++n)){const i=this.tryParse(e.substr(n));if(Un.isPayloadValid(s.type,i))s.data=i;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case T.CONNECT:return Ci(n);case T.DISCONNECT:return n===void 0;case T.CONNECT_ERROR:return typeof n=="string"||Ci(n);case T.EVENT:case T.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Tl.indexOf(n[0])===-1);case T.ACK:case T.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Cl{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=bl(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const _l=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Un,Encoder:Nl,get PacketType(){return T},protocol:Ol},Symbol.toStringTag,{value:"Module"}));function ie(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const xl=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class _i extends B{constructor(e,n,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[ie(e,"open",this.onopen.bind(this)),ie(e,"packet",this.onpacket.bind(this)),ie(e,"error",this.onerror.bind(this)),ie(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){if(xl.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:T.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const o=this.ids++,a=n.pop();this._registerAckCallback(o,a),s.id=o}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,n){var s;const r=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(r===void 0){this.acks[e]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===e&&this.sendBuffer.splice(o,1);n.call(this,new Error("operation has timed out"))},r);this.acks[e]=(...o)=>{this.io.clearTimeoutFn(i),n.apply(this,[null,...o])}}emitWithAck(e,...n){const s=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((r,i)=>{n.push((o,a)=>s?o?i(o):r(a):r(o)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((r,...i)=>s!==this._queue[0]?void 0:(r!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(r)):(this._queue.shift(),n&&n(null,...i)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:T.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case T.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case T.EVENT:case T.BINARY_EVENT:this.onevent(e);break;case T.ACK:case T.BINARY_ACK:this.onack(e);break;case T.DISCONNECT:this.ondisconnect();break;case T.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const s of n)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let s=!1;return function(...r){s||(s=!0,n.packet({type:T.ACK,id:e,data:r}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:T.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let s=0;s<n.length;s++)if(e===n[s])return n.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let s=0;s<n.length;s++)if(e===n[s])return n.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const s of n)s.apply(this,e.data)}}}function ze(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}ze.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0},ze.prototype.reset=function(){this.attempts=0},ze.prototype.setMin=function(t){this.ms=t},ze.prototype.setMax=function(t){this.max=t},ze.prototype.setJitter=function(t){this.jitter=t};class $n extends B{constructor(e,n){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Bt(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new ze({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const r=n.parser||_l;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Oi(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=ie(n,"open",function(){s.onopen(),e&&e()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=ie(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(ie(e,"ping",this.onping.bind(this)),ie(e,"data",this.ondata.bind(this)),ie(e,"error",this.onerror.bind(this)),ie(e,"close",this.onclose.bind(this)),ie(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){Dn(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new _i(this,e,n),this.nsps[e]=s),s}_destroy(e){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let s=0;s<n.length;s++)this.engine.write(n[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},n);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ot={};function Wt(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=gl(t,e.path||"/socket.io"),s=n.source,r=n.id,i=n.path,o=ot[r]&&i in ot[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let l;return a?l=new $n(s,e):(ot[r]||(ot[r]=new $n(s,e)),l=ot[r]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(Wt,{Manager:$n,Socket:_i,io:Wt,connect:Wt});var xi=(t=>(t.WEBCHAT="webchat",t.CENTRAL="central",t.WHATSAPP="whatsapp",t.TELEGRAM="telegram",t.SMS="sms",t))(xi||{});const Pn={PREGUNTA:1,IMAGEN:2,AUDIO:3,VIDEO:4,NINGUNO:0},Al=t=>(u.pushScopeId("data-v-b7371fd9"),t=t(),u.popScopeId(),t),Il={class:"widget"},Ml={class:"header-widget"},Rl={class:"title-chat"},Dl={key:0,class:"loader"},Ll={key:2,class:"fit"},Vl=[Al(()=>u.createElementVNode("span",{class:"center"},"No tienes mensajes",-1))],Fl={class:"w-full"},Bl={class:"form-message"},Ul={class:"jl-inputgroup-chat"},$l=["onKeyup"],Pl={type:"submit",class:"pointer btn-primary"},Wl={key:1,class:"message-send-block"},ql=14,zl=ee(u.defineComponent({__name:"Chat",props:{titlePrincipal:{type:String,default:"Comunicación en linea para consultas"},toggleChat:{type:Function,required:!0},tokenAuth:{type:String,required:!0},user:{type:Object,required:!0},visible:{type:Boolean,required:!0}},emits:["show-toast","show-confirm","new-message","clear-new-messages","not-viewed-total","onQualifying"],setup(t,{emit:e}){const n=t,s=u.ref(""),r=u.ref(0),i=u.ref({data:[],canLoadMoreMessages:!1}),o=u.ref(""),a=u.ref(!1),l=u.ref(null);u.watch(()=>n.visible,async g=>{if(!g||(e("clear-new-messages"),b(),r.value>0&&vs(o.value,n.tokenAuth),o.value))return;const E=await ks(n.tokenAuth);E&&(o.value=E.appChat.id)});function c(g){var E;if(qt.value){oe();return}if(g.key==="Enter"&&g.shiftKey){const O=((E=g.target)==null?void 0:E.value)||"";g.target.value=O+`
|
4
|
-
`,oe();return}w()}function h(g){var O,V;if((g==null?void 0:g.length)>300){e("show-toast",{severity:"warn",summary:"Error",detail:"El mensaje no puede superar los 300 caracteres",life:5e3});return}if(!g.trim()){e("show-toast",{severity:"warn",summary:"Error",detail:"Por favor ingrese un mensaje",life:5e3});return}return{id:Di(),chatId:(V=(O=ae.value)==null?void 0:O.chat)==null?void 0:V.id,message:g,visto:!0,multimedia:!1,esCliente:!0,appChatId:o.value,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),sender:{nombreCompleto:n.user.nombreCompleto,ci:n.user.ci,msPersonaId:n.user.msPersonaId},response:void 0}}function d(g,E,O,V){if(!E)throw new Error("idx is required");if(!O){if(V){const A=i.value.data[E];A.response=void 0}else i.value.data[E].error={error:!0,id:g.id};e("show-toast",{severity:"error",summary:"Error",detail:"Ocurrio un error al enviar el mensaje, intente nuevamente",life:5e3});return}let R={...O,chatId:g==null?void 0:g.chatId};if(V){const A=i.value.data[E];A.response=O,R={...A,chatId:g==null?void 0:g.chatId}}else i.value.data[E]=R;return R}const w=async(g,E)=>{const O=h(s.value);if(!O)return;let V=-1;if(E!=null&&E.tipoCalificacionId){V=i.value.data.findIndex(z=>z.id===(E==null?void 0:E.mensajeARespondeId));const A=i.value.data[V];A&&(A.response=O)}else V=i.value.data.push(O)-1;const R={message:s.value,appChatId:o.value,...E};m(R).then(A=>{var j,Ce;let z=d(O,V,A,E==null?void 0:E.tipoCalificacionId);z&&(fe.value=!!i.value.data.find(_e=>{var Ai;return((Ai=_e.messageType)==null?void 0:Ai.code)===Pn.PREGUNTA&&_e.response==null}),(Ce=Z.value)==null||Ce.emit("sendMessage",{roomId:(j=ae==null?void 0:ae.value)==null?void 0:j.appChat.id,message:z},_e=>{console.log("🚀 ~ socketService.value.emit ~ response:",_e)}))}),s.value="",b(),M.value&&(M.value.style.height="20px")},m=async g=>{const E={...g,esCliente:!0};return s2(E,n.tokenAuth)},p=async()=>{var V,R,A;const g=(V=i.value.data[0])==null?void 0:V.id,E={lastMessagesId:g,appChatId:o.value,limit:10};a.value=!0;const O=await n2({body:E,token:n.tokenAuth});a.value=!1,fe.value=!!O.data.find(z=>{var j;return((j=z.messageType)==null?void 0:j.code)===Pn.PREGUNTA&&z.response==null}),i.value.data.unshift(...O.data.sort((z,j)=>-j.createdAt.localeCompare(z.createdAt))),i.value.canLoadMoreMessages=O.pagination.total>O.pagination.size,g&&((R=l.value)!=null&&R.scrollHeight)&&I((A=l.value)==null?void 0:A.scrollHeight),g||b()},k=async g=>{e("show-confirm",async()=>{var O,V,R;if(!((O=g.error)!=null&&O.id))return;const E=await m({message:g.message,appChatId:o.value});if(!E)e("show-toast",{severity:"error",summary:"Error",detail:"Ocurrio un error al enviar el mensaje, intente nuevamente",life:5e3});else{const A=$0(i.value.data,"id",g.error.id);i.value.data[A]={...E,error:void 0},(R=Z.value)==null||R.emit("sendMessage",{roomId:(V=ae==null?void 0:ae.value)==null?void 0:V.appChat.id,message:g})}b()})},b=()=>{u.nextTick(()=>{l.value&&(l.value.scrollTop=l.value.scrollHeight)})},I=g=>{u.nextTick(()=>{const E=l.value;E&&(E.scrollTop=E.scrollHeight-g)})},M=u.ref();function oe(){M.value&&(M.value.style.height=M.value.scrollHeight-ql+"px",M.value.scrollHeight!==M.value.clientHeight&&(M.value.style.height=M.value.scrollHeight+"px"))}const Z=u.ref(),ae=u.ref();function Wn(g,E=xi.WEBCHAT){var O,V;if(!g)throw new Error("user chat is required");Z.value=Wt(window.VITE_SOCKET_URI,{query:{usuarioId:`${(V=(O=g==null?void 0:g.chat)==null?void 0:O.persona)==null?void 0:V.funcionarioId}`,aplicacion:E},extraHeaders:{Authorization:n.tokenAuth}}),Z.value.removeAllListeners(),Z.value.on("connect",()=>{var R,A;console.log("Conectado al servidor de sockets"),(A=Z.value)==null||A.emit("joinRoom",`${(R=g==null?void 0:g.appChat)==null?void 0:R.id}`)}),Z.value.on("disconnect",()=>{console.log("Desconectado del servidor de sockets")}),Z.value.on("receiveMessage",R=>{var z,j;console.log("Mensaje recibido:",R.message,g);const A=i.value.data.findIndex(Ce=>Ce.id===R.message.id);R.message.sender.msPersonaId===((j=(z=g==null?void 0:g.chat)==null?void 0:z.persona)==null?void 0:j.msPersonaId)&&A===-1||(A!==-1?i.value.data[A].response=R.message.response:i.value.data.push(R.message),fe.value=!!i.value.data.find(Ce=>{var _e;return((_e=Ce.messageType)==null?void 0:_e.code)===Pn.PREGUNTA&&Ce.response==null}),vs(R.message.appChatId,n.tokenAuth),b(),!n.visible&&e("new-message"))})}const qt=u.computed(()=>["Android","iPhone"].includes(qn()));function qn(){var z,j;const g=window.navigator.userAgent,E=((j=(z=window.navigator)==null?void 0:z.userAgentData)==null?void 0:j.platform)||window.navigator.platform,O=["macOS","Macintosh","MacIntel","MacPPC","Mac68K"],V=["Win32","Win64","Windows","WinCE"],R=["iPhone","iPad","iPod"];let A=null;return O.indexOf(E)!==-1?A="Mac OS":R.indexOf(E)!==-1?A="iPhone":V.indexOf(E)!==-1?A="Windows":/Android/.test(g)?A="Android":/Linux/.test(E)&&(A="Linux"),A}function Ne({message:g,emoji:E}){const O=async()=>{!g.id||!E||(s.value=E.iconUnicode,w(void 0,{tipoCalificacionId:E.value,mensajeARespondeId:g.id}).then())};e("onQualifying",{message:E.iconUnicode,callback:O})}const fe=u.ref(!1);return u.onMounted(async()=>{if(o.value)return;const g=await ks(n.tokenAuth);g&&(ae.value=g,o.value=g.appChat.id,r.value=g.appChat.totalNoVistosCliente,Wn(g),p(),e("not-viewed-total",g.appChat.totalNoVistosCliente))}),u.onUnmounted(()=>{var g;(g=Z.value)==null||g.off()}),(g,E)=>(u.openBlock(),u.createElementBlock("div",Il,[u.createElementVNode("div",Ml,[u.createElementVNode("h4",Rl,u.toDisplayString(t.titlePrincipal),1),u.createElementVNode("button",{onClick:E[0]||(E[0]=()=>t.toggleChat()),class:"btn-close"},[u.createVNode(Ui,{class:"pointer"})])]),u.createElementVNode("div",{class:"messages-container",ref_key:"messageContainerRef",ref:l},[a.value?(u.openBlock(),u.createElementBlock("div",Dl,[u.createVNode(U0)])):u.createCommentVNode("",!0),i.value.data.length>0?(u.openBlock(),u.createBlock(D0,{key:1,messages:i.value.data,canLoadMoreMessages:i.value.canLoadMoreMessages,onLoadMore:p,onRetry:k,onOnQualifying:E[1]||(E[1]=O=>Ne(O))},null,8,["messages","canLoadMoreMessages"])):(u.openBlock(),u.createElementBlock("div",Ll,Vl))],512),u.createElementVNode("div",Fl,[fe.value?(u.openBlock(),u.createElementBlock("span",Wl," Necesitamos que nos califique la atención para continuar ")):(u.openBlock(),u.createElementBlock("form",{key:0,class:"message-send",onSubmit:E[5]||(E[5]=u.withModifiers(O=>w(),["prevent"]))},[u.createElementVNode("div",Bl,[u.createElementVNode("div",Ul,[u.withDirectives(u.createElementVNode("textarea",{"onUpdate:modelValue":E[2]||(E[2]=O=>s.value=O),class:"jl2-input-chat",placeholder:"Escribe tu mensaje",required:"",ref_key:"textAreaRef",ref:M,onInput:E[3]||(E[3]=()=>oe()),onKeydown:E[4]||(E[4]=u.withKeys(O=>{!qt.value&&O.preventDefault()},["enter"])),onKeyup:u.withKeys(c,["enter"])},null,40,$l),[[u.vModelText,s.value]]),u.createElementVNode("button",Pl,[u.createVNode(zi,{style:{width:"20px",height:"20px"}})])])])],32))])]))}}),[["__scopeId","data-v-b7371fd9"]]),Hl={},Zl={width:"87",height:"87",viewBox:"0 0 87 87",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jl=[u.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 Yl(t,e){return u.openBlock(),u.createElementBlock("svg",Zl,jl)}const Jl=ee(Hl,[["render",Yl]]),Gl={},Kl={viewBox:"0 0 256 256",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",preserveAspectRatio:"xMidYMid"},Ql=[u.createElementVNode("g",null,[u.createElementVNode("path",{d:"M128,0 C57.307,0 0,57.307 0,128 L0,128 C0,198.693 57.307,256 128,256 L128,256 C198.693,256 256,198.693 256,128 L256,128 C256,57.307 198.693,0 128,0 L128,0 Z",fill:"#40B3E0"}),u.createElementVNode("path",{d:"M190.2826,73.6308 L167.4206,188.8978 C167.4206,188.8978 164.2236,196.8918 155.4306,193.0548 L102.6726,152.6068 L83.4886,143.3348 L51.1946,132.4628 C51.1946,132.4628 46.2386,130.7048 45.7586,126.8678 C45.2796,123.0308 51.3546,120.9528 51.3546,120.9528 L179.7306,70.5928 C179.7306,70.5928 190.2826,65.9568 190.2826,73.6308",fill:"#FFFFFF"}),u.createElementVNode("path",{d:"M98.6178,187.6035 C98.6178,187.6035 97.0778,187.4595 95.1588,181.3835 C93.2408,175.3085 83.4888,143.3345 83.4888,143.3345 L161.0258,94.0945 C161.0258,94.0945 165.5028,91.3765 165.3428,94.0945 C165.3428,94.0945 166.1418,94.5735 163.7438,96.8115 C161.3458,99.0505 102.8328,151.6475 102.8328,151.6475",fill:"#D2E5F1"}),u.createElementVNode("path",{d:"M122.9015,168.1154 L102.0335,187.1414 C102.0335,187.1414 100.4025,188.3794 98.6175,187.6034 L102.6135,152.2624",fill:"#B5CFE4"})],-1)];function Xl(t,e){return u.openBlock(),u.createElementBlock("svg",Kl,Ql)}const ec=ee(Gl,[["render",Xl]]),tc={},nc={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 455.731 455.731","xml:space":"preserve"},sc=[u.createElementVNode("g",null,[u.createElementVNode("rect",{x:"0",y:"0",style:{fill:"#1bd741"},width:"455.731",height:"455.731"}),u.createElementVNode("g",null,[u.createElementVNode("path",{style:{fill:"#ffffff"},d:`M68.494,387.41l22.323-79.284c-14.355-24.387-21.913-52.134-21.913-80.638
|
1
|
+
(function(te,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("primevue/image"),require("primevue/dialog"),require("primevue/button"),require("primevue/fileupload")):typeof define=="function"&&define.amd?define(["exports","vue","primevue/image","primevue/dialog","primevue/button","primevue/fileupload"],l):(te=typeof globalThis<"u"?globalThis:te||self,l(te["vue-wiguet-chatweb"]={},te.Vue,te.PrimeVueImage,te.PrimeVueDialog,te.PrimeVueButton,te.PrimeVueFileUpload))})(this,function(te,l,ns,ji,nn,Yi){"use strict";let mt;const Ji=new Uint8Array(16);function Gi(){if(!mt&&(mt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!mt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mt(Ji)}const W=[];for(let t=0;t<256;++t)W.push((t+256).toString(16).slice(1));function Ki(t,e=0){return W[t[e+0]]+W[t[e+1]]+W[t[e+2]]+W[t[e+3]]+"-"+W[t[e+4]]+W[t[e+5]]+"-"+W[t[e+6]]+W[t[e+7]]+"-"+W[t[e+8]]+W[t[e+9]]+"-"+W[t[e+10]]+W[t[e+11]]+W[t[e+12]]+W[t[e+13]]+W[t[e+14]]+W[t[e+15]]}const ss={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Qi(t,e,n){if(ss.randomUUID&&!t)return ss.randomUUID();t=t||{};const s=t.random||(t.rng||Gi)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Ki(s)}const G=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},Xi={},eo={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function to(t,e){return l.openBlock(),l.createElementBlock("svg",eo,e[0]||(e[0]=[l.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),l.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)]))}const rs=G(Xi,[["render",to]]),no={},so={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function ro(t,e){return l.openBlock(),l.createElementBlock("svg",so,e[0]||(e[0]=[l.createElementVNode("path",{fill:"currentColor",d:"M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376V479.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"},null,-1)]))}const is=G(no,[["render",ro]]);function os(t,e){return function(){return t.apply(e,arguments)}}const{toString:io}=Object.prototype,{getPrototypeOf:sn}=Object,pt=(t=>e=>{const n=io.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ae=t=>(t=t.toLowerCase(),e=>pt(e)===t),yt=t=>e=>typeof e===t,{isArray:Ve}=Array,Ke=yt("undefined");function oo(t){return t!==null&&!Ke(t)&&t.constructor!==null&&!Ke(t.constructor)&&K(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const as=ae("ArrayBuffer");function ao(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&as(t.buffer),e}const lo=yt("string"),K=yt("function"),ls=yt("number"),gt=t=>t!==null&&typeof t=="object",co=t=>t===!0||t===!1,wt=t=>{if(pt(t)!=="object")return!1;const e=sn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},uo=ae("Date"),ho=ae("File"),fo=ae("Blob"),mo=ae("FileList"),po=t=>gt(t)&&K(t.pipe),yo=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||K(t.append)&&((e=pt(t))==="formdata"||e==="object"&&K(t.toString)&&t.toString()==="[object FormData]"))},go=ae("URLSearchParams"),[wo,ko,vo,Eo]=["ReadableStream","Request","Response","Headers"].map(ae),bo=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qe(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let s,r;if(typeof t!="object"&&(t=[t]),Ve(t))for(s=0,r=t.length;s<r;s++)e.call(null,t[s],s,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(s=0;s<o;s++)a=i[s],e.call(null,t[a],a,t)}}function cs(t,e){e=e.toLowerCase();const n=Object.keys(t);let s=n.length,r;for(;s-- >0;)if(r=n[s],e===r.toLowerCase())return r;return null}const _e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,us=t=>!Ke(t)&&t!==_e;function rn(){const{caseless:t}=us(this)&&this||{},e={},n=(s,r)=>{const i=t&&cs(e,r)||r;wt(e[i])&&wt(s)?e[i]=rn(e[i],s):wt(s)?e[i]=rn({},s):Ve(s)?e[i]=s.slice():e[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&Qe(arguments[s],n);return e}const So=(t,e,n,{allOwnKeys:s}={})=>(Qe(e,(r,i)=>{n&&K(r)?t[i]=os(r,n):t[i]=r},{allOwnKeys:s}),t),To=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Oo=(t,e,n,s)=>{t.prototype=Object.create(e.prototype,s),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},_o=(t,e,n,s)=>{let r,i,o;const a={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)o=r[i],(!s||s(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&sn(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Co=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const s=t.indexOf(e,n);return s!==-1&&s===n},No=t=>{if(!t)return null;if(Ve(t))return t;let e=t.length;if(!ls(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},xo=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&sn(Uint8Array)),Ao=(t,e)=>{const s=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=s.next())&&!r.done;){const i=r.value;e.call(t,i[0],i[1])}},Mo=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},Ro=ae("HTMLFormElement"),Io=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),hs=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Vo=ae("RegExp"),fs=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),s={};Qe(n,(r,i)=>{let o;(o=e(r,i,t))!==!1&&(s[i]=o||r)}),Object.defineProperties(t,s)},Lo=t=>{fs(t,(e,n)=>{if(K(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=t[n];if(K(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Do=(t,e)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Ve(t)?s(t):s(String(t).split(e)),n},Bo=()=>{},Fo=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,on="abcdefghijklmnopqrstuvwxyz",ds="0123456789",ms={DIGIT:ds,ALPHA:on,ALPHA_DIGIT:on+on.toUpperCase()+ds},Uo=(t=16,e=ms.ALPHA_DIGIT)=>{let n="";const{length:s}=e;for(;t--;)n+=e[Math.random()*s|0];return n};function $o(t){return!!(t&&K(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Po=t=>{const e=new Array(10),n=(s,r)=>{if(gt(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[r]=s;const i=Ve(s)?[]:{};return Qe(s,(o,a)=>{const c=n(o,r+1);!Ke(c)&&(i[a]=c)}),e[r]=void 0,i}}return s};return n(t,0)},qo=ae("AsyncFunction"),Wo=t=>t&&(gt(t)||K(t))&&K(t.then)&&K(t.catch),ps=((t,e)=>t?setImmediate:e?((n,s)=>(_e.addEventListener("message",({source:r,data:i})=>{r===_e&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),_e.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",K(_e.postMessage)),Ho=typeof queueMicrotask<"u"?queueMicrotask.bind(_e):typeof process<"u"&&process.nextTick||ps,f={isArray:Ve,isArrayBuffer:as,isBuffer:oo,isFormData:yo,isArrayBufferView:ao,isString:lo,isNumber:ls,isBoolean:co,isObject:gt,isPlainObject:wt,isReadableStream:wo,isRequest:ko,isResponse:vo,isHeaders:Eo,isUndefined:Ke,isDate:uo,isFile:ho,isBlob:fo,isRegExp:Vo,isFunction:K,isStream:po,isURLSearchParams:go,isTypedArray:xo,isFileList:mo,forEach:Qe,merge:rn,extend:So,trim:bo,stripBOM:To,inherits:Oo,toFlatObject:_o,kindOf:pt,kindOfTest:ae,endsWith:Co,toArray:No,forEachEntry:Ao,matchAll:Mo,isHTMLForm:Ro,hasOwnProperty:hs,hasOwnProp:hs,reduceDescriptors:fs,freezeMethods:Lo,toObjectSet:Do,toCamelCase:Io,noop:Bo,toFiniteNumber:Fo,findKey:cs,global:_e,isContextDefined:us,ALPHABET:ms,generateString:Uo,isSpecCompliantForm:$o,toJSONObject:Po,isAsyncFn:qo,isThenable:Wo,setImmediate:ps,asap:Ho};function _(t,e,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}f.inherits(_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:f.toJSONObject(this.config),code:this.code,status:this.status}}});const ys=_.prototype,gs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{gs[t]={value:t}}),Object.defineProperties(_,gs),Object.defineProperty(ys,"isAxiosError",{value:!0}),_.from=(t,e,n,s,r,i)=>{const o=Object.create(ys);return f.toFlatObject(t,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),_.call(o,t.message,e,n,s,r),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const Zo=null;function an(t){return f.isPlainObject(t)||f.isArray(t)}function ws(t){return f.endsWith(t,"[]")?t.slice(0,-2):t}function ks(t,e,n){return t?t.concat(e).map(function(r,i){return r=ws(r),!n&&i?"["+r+"]":r}).join(n?".":""):e}function zo(t){return f.isArray(t)&&!t.some(an)}const jo=f.toFlatObject(f,{},null,function(e){return/^is[A-Z]/.test(e)});function kt(t,e,n){if(!f.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=f.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,w){return!f.isUndefined(w[E])});const s=n.metaTokens,r=n.visitor||h,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&f.isSpecCompliantForm(e);if(!f.isFunction(r))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(f.isDate(m))return m.toISOString();if(!c&&f.isBlob(m))throw new _("Blob is not supported. Use a Buffer instead.");return f.isArrayBuffer(m)||f.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function h(m,E,w){let O=m;if(m&&!w&&typeof m=="object"){if(f.endsWith(E,"{}"))E=s?E:E.slice(0,-2),m=JSON.stringify(m);else if(f.isArray(m)&&zo(m)||(f.isFileList(m)||f.endsWith(E,"[]"))&&(O=f.toArray(m)))return E=ws(E),O.forEach(function(x,j){!(f.isUndefined(x)||x===null)&&e.append(o===!0?ks([E],j,i):o===null?E:E+"[]",u(x))}),!1}return an(m)?!0:(e.append(ks(w,E,i),u(m)),!1)}const d=[],k=Object.assign(jo,{defaultVisitor:h,convertValue:u,isVisitable:an});function p(m,E){if(!f.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));d.push(m),f.forEach(m,function(O,C){(!(f.isUndefined(O)||O===null)&&r.call(e,O,f.isString(C)?C.trim():C,E,k))===!0&&p(O,E?E.concat(C):[C])}),d.pop()}}if(!f.isObject(t))throw new TypeError("data must be an object");return p(t),e}function vs(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function ln(t,e){this._pairs=[],t&&kt(t,this,e)}const Es=ln.prototype;Es.append=function(e,n){this._pairs.push([e,n])},Es.toString=function(e){const n=e?function(s){return e.call(this,s,vs)}:vs;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Yo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bs(t,e,n){if(!e)return t;const s=n&&n.encode||Yo;f.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(e,n):i=f.isURLSearchParams(e)?e.toString():new ln(e,n).toString(s),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ss{constructor(){this.handlers=[]}use(e,n,s){return this.handlers.push({fulfilled:e,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){f.forEach(this.handlers,function(s){s!==null&&e(s)})}}const Ts={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jo={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ln,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},cn=typeof window<"u"&&typeof document<"u",un=typeof navigator=="object"&&navigator||void 0,Go=cn&&(!un||["ReactNative","NativeScript","NS"].indexOf(un.product)<0),Ko=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qo=cn&&window.location.href||"http://localhost",H={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cn,hasStandardBrowserEnv:Go,hasStandardBrowserWebWorkerEnv:Ko,navigator:un,origin:Qo},Symbol.toStringTag,{value:"Module"})),...Jo};function Xo(t,e){return kt(t,new H.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return H.isNode&&f.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function e2(t){return f.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function t2(t){const e={},n=Object.keys(t);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],e[i]=t[i];return e}function Os(t){function e(n,s,r,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=i>=n.length;return o=!o&&f.isArray(r)?r.length:o,c?(f.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!f.isObject(r[o]))&&(r[o]=[]),e(n,s,r[o],i)&&f.isArray(r[o])&&(r[o]=t2(r[o])),!a)}if(f.isFormData(t)&&f.isFunction(t.entries)){const n={};return f.forEachEntry(t,(s,r)=>{e(e2(s),r,n,0)}),n}return null}function n2(t,e,n){if(f.isString(t))try{return(e||JSON.parse)(t),f.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const Xe={transitional:Ts,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=f.isObject(e);if(i&&f.isHTMLForm(e)&&(e=new FormData(e)),f.isFormData(e))return r?JSON.stringify(Os(e)):e;if(f.isArrayBuffer(e)||f.isBuffer(e)||f.isStream(e)||f.isFile(e)||f.isBlob(e)||f.isReadableStream(e))return e;if(f.isArrayBufferView(e))return e.buffer;if(f.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Xo(e,this.formSerializer).toString();if((a=f.isFileList(e))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return kt(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),n2(e)):e}],transformResponse:[function(e){const n=this.transitional||Xe.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(f.isResponse(e)||f.isReadableStream(e))return e;if(e&&f.isString(e)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?_.from(a,_.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:H.classes.FormData,Blob:H.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f.forEach(["delete","get","head","post","put","patch"],t=>{Xe.headers[t]={}});const s2=f.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),r2=t=>{const e={};let n,s,r;return t&&t.split(`
|
2
|
+
`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||e[n]&&s2[n])&&(n==="set-cookie"?e[n]?e[n].push(s):e[n]=[s]:e[n]=e[n]?e[n]+", "+s:s)}),e},_s=Symbol("internals");function et(t){return t&&String(t).trim().toLowerCase()}function vt(t){return t===!1||t==null?t:f.isArray(t)?t.map(vt):String(t)}function i2(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(t);)e[s[1]]=s[2];return e}const o2=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function hn(t,e,n,s,r){if(f.isFunction(s))return s.call(this,e,n);if(r&&(e=n),!!f.isString(e)){if(f.isString(s))return e.indexOf(s)!==-1;if(f.isRegExp(s))return s.test(e)}}function a2(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,s)=>n.toUpperCase()+s)}function l2(t,e){const n=f.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+n,{value:function(r,i,o){return this[s].call(this,e,r,i,o)},configurable:!0})})}let J=class{constructor(e){e&&this.set(e)}set(e,n,s){const r=this;function i(a,c,u){const h=et(c);if(!h)throw new Error("header name must be a non-empty string");const d=f.findKey(r,h);(!d||r[d]===void 0||u===!0||u===void 0&&r[d]!==!1)&&(r[d||c]=vt(a))}const o=(a,c)=>f.forEach(a,(u,h)=>i(u,h,c));if(f.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(f.isString(e)&&(e=e.trim())&&!o2(e))o(r2(e),n);else if(f.isHeaders(e))for(const[a,c]of e.entries())i(c,a,s);else e!=null&&i(n,e,s);return this}get(e,n){if(e=et(e),e){const s=f.findKey(this,e);if(s){const r=this[s];if(!n)return r;if(n===!0)return i2(r);if(f.isFunction(n))return n.call(this,r,s);if(f.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=et(e),e){const s=f.findKey(this,e);return!!(s&&this[s]!==void 0&&(!n||hn(this,this[s],s,n)))}return!1}delete(e,n){const s=this;let r=!1;function i(o){if(o=et(o),o){const a=f.findKey(s,o);a&&(!n||hn(s,s[a],a,n))&&(delete s[a],r=!0)}}return f.isArray(e)?e.forEach(i):i(e),r}clear(e){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!e||hn(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const n=this,s={};return f.forEach(this,(r,i)=>{const o=f.findKey(s,i);if(o){n[o]=vt(r),delete n[i];return}const a=e?a2(i):String(i).trim();a!==i&&delete n[i],n[a]=vt(r),s[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return f.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=e&&f.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const s=new this(e);return n.forEach(r=>s.set(r)),s}static accessor(e){const s=(this[_s]=this[_s]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=et(o);s[a]||(l2(r,o),s[a]=!0)}return f.isArray(e)?e.forEach(i):i(e),this}};J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),f.reduceDescriptors(J.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(s){this[n]=s}}}),f.freezeMethods(J);function fn(t,e){const n=this||Xe,s=e||n,r=J.from(s.headers);let i=s.data;return f.forEach(t,function(a){i=a.call(n,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function Cs(t){return!!(t&&t.__CANCEL__)}function Le(t,e,n){_.call(this,t??"canceled",_.ERR_CANCELED,e,n),this.name="CanceledError"}f.inherits(Le,_,{__CANCEL__:!0});function Ns(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new _("Request failed with status code "+n.status,[_.ERR_BAD_REQUEST,_.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function c2(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function u2(t,e){t=t||10;const n=new Array(t),s=new Array(t);let r=0,i=0,o;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),h=s[i];o||(o=u),n[r]=c,s[r]=u;let d=i,k=0;for(;d!==r;)k+=n[d++],d=d%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),u-o<e)return;const p=h&&u-h;return p?Math.round(k*1e3/p):void 0}}function h2(t,e){let n=0,s=1e3/e,r,i;const o=(u,h=Date.now())=>{n=h,r=null,i&&(clearTimeout(i),i=null),t.apply(null,u)};return[(...u)=>{const h=Date.now(),d=h-n;d>=s?o(u,h):(r=u,i||(i=setTimeout(()=>{i=null,o(r)},s-d)))},()=>r&&o(r)]}const Et=(t,e,n=3)=>{let s=0;const r=u2(50,250);return h2(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-s,u=r(c),h=o<=a;s=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&h?(a-o)/u:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(d)},n)},xs=(t,e)=>{const n=t!=null;return[s=>e[0]({lengthComputable:n,total:t,loaded:s}),e[1]]},As=t=>(...e)=>f.asap(()=>t(...e)),f2=H.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,H.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(H.origin),H.navigator&&/(msie|trident)/i.test(H.navigator.userAgent)):()=>!0,d2=H.hasStandardBrowserEnv?{write(t,e,n,s,r,i){const o=[t+"="+encodeURIComponent(e)];f.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),f.isString(s)&&o.push("path="+s),f.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function m2(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function p2(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Ms(t,e){return t&&!m2(e)?p2(t,e):e}const Rs=t=>t instanceof J?{...t}:t;function Ce(t,e){e=e||{};const n={};function s(u,h,d,k){return f.isPlainObject(u)&&f.isPlainObject(h)?f.merge.call({caseless:k},u,h):f.isPlainObject(h)?f.merge({},h):f.isArray(h)?h.slice():h}function r(u,h,d,k){if(f.isUndefined(h)){if(!f.isUndefined(u))return s(void 0,u,d,k)}else return s(u,h,d,k)}function i(u,h){if(!f.isUndefined(h))return s(void 0,h)}function o(u,h){if(f.isUndefined(h)){if(!f.isUndefined(u))return s(void 0,u)}else return s(void 0,h)}function a(u,h,d){if(d in e)return s(u,h);if(d in t)return s(void 0,u)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,h,d)=>r(Rs(u),Rs(h),d,!0)};return f.forEach(Object.keys(Object.assign({},t,e)),function(h){const d=c[h]||r,k=d(t[h],e[h],h);f.isUndefined(k)&&d!==a||(n[h]=k)}),n}const Is=t=>{const e=Ce({},t);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=e;e.headers=o=J.from(o),e.url=bs(Ms(e.baseURL,e.url),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(f.isFormData(n)){if(H.hasStandardBrowserEnv||H.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[u,...h]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...h].join("; "))}}if(H.hasStandardBrowserEnv&&(s&&f.isFunction(s)&&(s=s(e)),s||s!==!1&&f2(e.url))){const u=r&&i&&d2.read(i);u&&o.set(r,u)}return e},y2=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,s){const r=Is(t);let i=r.data;const o=J.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=r,h,d,k,p,m;function E(){p&&p(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(h),r.signal&&r.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(r.method.toUpperCase(),r.url,!0),w.timeout=r.timeout;function O(){if(!w)return;const x=J.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),V={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:x,config:t,request:w};Ns(function(de){n(de),E()},function(de){s(de),E()},V),w=null}"onloadend"in w?w.onloadend=O:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(O)},w.onabort=function(){w&&(s(new _("Request aborted",_.ECONNABORTED,t,w)),w=null)},w.onerror=function(){s(new _("Network Error",_.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let j=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const V=r.transitional||Ts;r.timeoutErrorMessage&&(j=r.timeoutErrorMessage),s(new _(j,V.clarifyTimeoutError?_.ETIMEDOUT:_.ECONNABORTED,t,w)),w=null},i===void 0&&o.setContentType(null),"setRequestHeader"in w&&f.forEach(o.toJSON(),function(j,V){w.setRequestHeader(V,j)}),f.isUndefined(r.withCredentials)||(w.withCredentials=!!r.withCredentials),a&&a!=="json"&&(w.responseType=r.responseType),u&&([k,m]=Et(u,!0),w.addEventListener("progress",k)),c&&w.upload&&([d,p]=Et(c),w.upload.addEventListener("progress",d),w.upload.addEventListener("loadend",p)),(r.cancelToken||r.signal)&&(h=x=>{w&&(s(!x||x.type?new Le(null,t,w):x),w.abort(),w=null)},r.cancelToken&&r.cancelToken.subscribe(h),r.signal&&(r.signal.aborted?h():r.signal.addEventListener("abort",h)));const C=c2(r.url);if(C&&H.protocols.indexOf(C)===-1){s(new _("Unsupported protocol "+C+":",_.ERR_BAD_REQUEST,t));return}w.send(i||null)})},g2=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let s=new AbortController,r;const i=function(u){if(!r){r=!0,a();const h=u instanceof Error?u:this.reason;s.abort(h instanceof _?h:new Le(h instanceof Error?h.message:h))}};let o=e&&setTimeout(()=>{o=null,i(new _(`timeout ${e} of ms exceeded`,_.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),t=null)};t.forEach(u=>u.addEventListener("abort",i));const{signal:c}=s;return c.unsubscribe=()=>f.asap(a),c}},w2=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let s=0,r;for(;s<n;)r=s+e,yield t.slice(s,r),s=r},k2=async function*(t,e){for await(const n of v2(t))yield*w2(n,e)},v2=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:s}=await e.read();if(n)break;yield s}}finally{await e.cancel()}},Vs=(t,e,n,s)=>{const r=k2(t,e);let i=0,o,a=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:u,value:h}=await r.next();if(u){a(),c.close();return}let d=h.byteLength;if(n){let k=i+=d;n(k)}c.enqueue(new Uint8Array(h))}catch(u){throw a(u),u}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},bt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ls=bt&&typeof ReadableStream=="function",E2=bt&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Ds=(t,...e)=>{try{return!!t(...e)}catch{return!1}},b2=Ls&&Ds(()=>{let t=!1;const e=new Request(H.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Bs=64*1024,dn=Ls&&Ds(()=>f.isReadableStream(new Response("").body)),St={stream:dn&&(t=>t.body)};bt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!St[e]&&(St[e]=f.isFunction(t[e])?n=>n[e]():(n,s)=>{throw new _(`Response type '${e}' is not supported`,_.ERR_NOT_SUPPORT,s)})})})(new Response);const S2=async t=>{if(t==null)return 0;if(f.isBlob(t))return t.size;if(f.isSpecCompliantForm(t))return(await new Request(H.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(f.isArrayBufferView(t)||f.isArrayBuffer(t))return t.byteLength;if(f.isURLSearchParams(t)&&(t=t+""),f.isString(t))return(await E2(t)).byteLength},T2=async(t,e)=>{const n=f.toFiniteNumber(t.getContentLength());return n??S2(e)},mn={http:Zo,xhr:y2,fetch:bt&&(async t=>{let{url:e,method:n,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:h,withCredentials:d="same-origin",fetchOptions:k}=Is(t);u=u?(u+"").toLowerCase():"text";let p=g2([r,i&&i.toAbortSignal()],o),m;const E=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let w;try{if(c&&b2&&n!=="get"&&n!=="head"&&(w=await T2(h,s))!==0){let V=new Request(e,{method:"POST",body:s,duplex:"half"}),q;if(f.isFormData(s)&&(q=V.headers.get("content-type"))&&h.setContentType(q),V.body){const[de,ye]=xs(w,Et(As(c)));s=Vs(V.body,Bs,de,ye)}}f.isString(d)||(d=d?"include":"omit");const O="credentials"in Request.prototype;m=new Request(e,{...k,signal:p,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:s,duplex:"half",credentials:O?d:void 0});let C=await fetch(m);const x=dn&&(u==="stream"||u==="response");if(dn&&(a||x&&E)){const V={};["status","statusText","headers"].forEach(ge=>{V[ge]=C[ge]});const q=f.toFiniteNumber(C.headers.get("content-length")),[de,ye]=a&&xs(q,Et(As(a),!0))||[];C=new Response(Vs(C.body,Bs,de,()=>{ye&&ye(),E&&E()}),V)}u=u||"text";let j=await St[f.findKey(St,u)||"text"](C,t);return!x&&E&&E(),await new Promise((V,q)=>{Ns(V,q,{data:j,headers:J.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:m})})}catch(O){throw E&&E(),O&&O.name==="TypeError"&&/fetch/i.test(O.message)?Object.assign(new _("Network Error",_.ERR_NETWORK,t,m),{cause:O.cause||O}):_.from(O,O&&O.code,t,m)}})};f.forEach(mn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Fs=t=>`- ${t}`,O2=t=>f.isFunction(t)||t===null||t===!1,Us={getAdapter:t=>{t=f.isArray(t)?t:[t];const{length:e}=t;let n,s;const r={};for(let i=0;i<e;i++){n=t[i];let o;if(s=n,!O2(n)&&(s=mn[(o=String(n)).toLowerCase()],s===void 0))throw new _(`Unknown adapter '${o}'`);if(s)break;r[o||"#"+i]=s}if(!s){const i=Object.entries(r).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since :
|
4
|
+
`+i.map(Fs).join(`
|
5
|
+
`):" "+Fs(i[0]):"as no adapter specified";throw new _("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:mn};function pn(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Le(null,t)}function $s(t){return pn(t),t.headers=J.from(t.headers),t.data=fn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Us.getAdapter(t.adapter||Xe.adapter)(t).then(function(s){return pn(t),s.data=fn.call(t,t.transformResponse,s),s.headers=J.from(s.headers),s},function(s){return Cs(s)||(pn(t),s&&s.response&&(s.response.data=fn.call(t,t.transformResponse,s.response),s.response.headers=J.from(s.response.headers))),Promise.reject(s)})}const Ps="1.7.9",Tt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Tt[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const qs={};Tt.transitional=function(e,n,s){function r(i,o){return"[Axios v"+Ps+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(e===!1)throw new _(r(o," has been removed"+(n?" in "+n:"")),_.ERR_DEPRECATED);return n&&!qs[o]&&(qs[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,a):!0}},Tt.spelling=function(e){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${e}`),!0)};function _2(t,e,n){if(typeof t!="object")throw new _("options must be an object",_.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let r=s.length;for(;r-- >0;){const i=s[r],o=e[i];if(o){const a=t[i],c=a===void 0||o(a,i,t);if(c!==!0)throw new _("option "+i+" must be "+c,_.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _("Unknown option "+i,_.ERR_BAD_OPTION)}}const Ot={assertOptions:_2,validators:Tt},me=Ot.validators;let Ne=class{constructor(e){this.defaults=e,this.interceptors={request:new Ss,response:new Ss}}async request(e,n){try{return await this._request(e,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
6
|
+
`+i):s.stack=i}catch{}}throw s}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ce(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&Ot.assertOptions(s,{silentJSONParsing:me.transitional(me.boolean),forcedJSONParsing:me.transitional(me.boolean),clarifyTimeoutError:me.transitional(me.boolean)},!1),r!=null&&(f.isFunction(r)?n.paramsSerializer={serialize:r}:Ot.assertOptions(r,{encode:me.function,serialize:me.function},!0)),Ot.assertOptions(n,{baseUrl:me.spelling("baseURL"),withXsrfToken:me.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&f.merge(i.common,i[n.method]);i&&f.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=J.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(c=c&&E.synchronous,a.unshift(E.fulfilled,E.rejected))});const u=[];this.interceptors.response.forEach(function(E){u.push(E.fulfilled,E.rejected)});let h,d=0,k;if(!c){const m=[$s.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),k=m.length,h=Promise.resolve(n);d<k;)h=h.then(m[d++],m[d++]);return h}k=a.length;let p=n;for(d=0;d<k;){const m=a[d++],E=a[d++];try{p=m(p)}catch(w){E.call(this,w);break}}try{h=$s.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,k=u.length;d<k;)h=h.then(u[d++],u[d++]);return h}getUri(e){e=Ce(this.defaults,e);const n=Ms(e.baseURL,e.url);return bs(n,e.params,e.paramsSerializer)}};f.forEach(["delete","get","head","options"],function(e){Ne.prototype[e]=function(n,s){return this.request(Ce(s||{},{method:e,url:n,data:(s||{}).data}))}}),f.forEach(["post","put","patch"],function(e){function n(s){return function(i,o,a){return this.request(Ce(a||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Ne.prototype[e]=n(),Ne.prototype[e+"Form"]=n(!0)});let C2=class zi{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},e(function(i,o,a){s.reason||(s.reason=new Le(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=s=>{e.abort(s)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new zi(function(r){e=r}),cancel:e}}};function N2(t){return function(n){return t.apply(null,n)}}function x2(t){return f.isObject(t)&&t.isAxiosError===!0}const yn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yn).forEach(([t,e])=>{yn[e]=t});function Ws(t){const e=new Ne(t),n=os(Ne.prototype.request,e);return f.extend(n,Ne.prototype,e,{allOwnKeys:!0}),f.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Ws(Ce(t,r))},n}const F=Ws(Xe);F.Axios=Ne,F.CanceledError=Le,F.CancelToken=C2,F.isCancel=Cs,F.VERSION=Ps,F.toFormData=kt,F.AxiosError=_,F.Cancel=F.CanceledError,F.all=function(e){return Promise.all(e)},F.spread=N2,F.isAxiosError=x2,F.mergeConfig=Ce,F.AxiosHeaders=J,F.formToJSON=t=>Os(f.isHTMLForm(t)?new FormData(t):t),F.getAdapter=Us.getAdapter,F.HttpStatusCode=yn,F.default=F;const{Axios:m1,AxiosError:p1,CanceledError:y1,isCancel:g1,CancelToken:w1,VERSION:k1,all:v1,Cancel:E1,isAxiosError:b1,spread:S1,toFormData:T1,AxiosHeaders:O1,HttpStatusCode:_1,formToJSON:C1,getAdapter:N1,mergeConfig:x1}=F,_t=async function(t){const e=t,n=window.VITE_BACKEND_URL?window.VITE_BACKEND_URL:"https://chatadmin-gw.dev.mp.gob.bo",s={method:e.method,url:`${n}${e.url}`,headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json; charset=utf-8",...e.headers},data:e.data};return await F(s).then(async function(r){return await r.data}).catch(async function(r){var o;console.error(r);const i=await((o=r.response)==null?void 0:o.data);if(i.statusCode==401&&i.message=="Unauthorized")localStorage.clear();else throw i})};async function A2(t){const e={url:"/v1/message/list-messages",method:"post",data:t.body,token:t.token},n=await _t(e).catch(r=>(console.error(r),null)),s=n==null?void 0:n.response;return s!=null&&s.data?{data:s.data,pagination:s.pagination}:{data:[],pagination:{total:0,limit:0,size:0}}}async function M2(t,e){var r;const s=await _t({url:"/v1/message/send-message",method:"POST",data:t,token:e}).catch(i=>(console.error(i),null));return(r=s==null?void 0:s.response)==null?void 0:r.data}async function Hs(t){var s;const n=await _t({url:"/v1/app-chats/web-chat",method:"get",token:t}).catch(r=>(console.error(r),null));return(s=n==null?void 0:n.response)==null?void 0:s.data}async function Zs(t,e){var i;const n={esCliente:!0,totalNoVistos:0,totalNoVistosCliente:0},s={url:`/v1/app-chats/update-vistos/${t}`,method:"PATCH",data:n,token:e},r=await _t(s).catch(o=>(console.error(o),null));return(i=r==null?void 0:r.response)==null?void 0:i.data}function R2(t){return l.getCurrentScope()?(l.onScopeDispose(t),!0):!1}function zs(t){return typeof t=="function"?t():l.unref(t)}const I2=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const V2=t=>t!=null,gn=()=>{};function wn(t){var e;const n=zs(t);return(e=n==null?void 0:n.$el)!=null?e:n}const L2=I2?window:void 0;function D2(){const t=l.ref(!1),e=l.getCurrentInstance();return e&&l.onMounted(()=>{t.value=!0},e),t}function B2(t){const e=D2();return l.computed(()=>(e.value,!!t()))}function F2(t,e,n={}){const{root:s,rootMargin:r="0px",threshold:i=.1,window:o=L2,immediate:a=!0}=n,c=B2(()=>o&&"IntersectionObserver"in o),u=l.computed(()=>{const m=zs(t);return(Array.isArray(m)?m:[m]).map(wn).filter(V2)});let h=gn;const d=l.ref(a),k=c.value?l.watch(()=>[u.value,wn(s),d.value],([m,E])=>{if(h(),!d.value||!m.length)return;const w=new IntersectionObserver(e,{root:wn(E),rootMargin:r,threshold:i});m.forEach(O=>O&&w.observe(O)),h=()=>{w.disconnect(),h=gn}},{immediate:a,flush:"post"}):gn,p=()=>{h(),k(),d.value=!1};return R2(p),{isSupported:c,isActive:d,pause(){h(),d.value=!1},resume(){d.value=!0},stop:p}}class xe extends Error{}class U2 extends xe{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class $2 extends xe{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class P2 extends xe{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class De extends xe{}class js extends xe{constructor(e){super(`Invalid unit ${e}`)}}class Z extends xe{}class ve extends xe{constructor(){super("Zone is an abstract class")}}const g="numeric",le="short",Q="long",Ct={year:g,month:g,day:g},Ys={year:g,month:le,day:g},q2={year:g,month:le,day:g,weekday:le},Js={year:g,month:Q,day:g},Gs={year:g,month:Q,day:g,weekday:Q},Ks={hour:g,minute:g},Qs={hour:g,minute:g,second:g},Xs={hour:g,minute:g,second:g,timeZoneName:le},er={hour:g,minute:g,second:g,timeZoneName:Q},tr={hour:g,minute:g,hourCycle:"h23"},nr={hour:g,minute:g,second:g,hourCycle:"h23"},sr={hour:g,minute:g,second:g,hourCycle:"h23",timeZoneName:le},rr={hour:g,minute:g,second:g,hourCycle:"h23",timeZoneName:Q},ir={year:g,month:g,day:g,hour:g,minute:g},or={year:g,month:g,day:g,hour:g,minute:g,second:g},ar={year:g,month:le,day:g,hour:g,minute:g},lr={year:g,month:le,day:g,hour:g,minute:g,second:g},W2={year:g,month:le,day:g,weekday:le,hour:g,minute:g},cr={year:g,month:Q,day:g,hour:g,minute:g,timeZoneName:le},ur={year:g,month:Q,day:g,hour:g,minute:g,second:g,timeZoneName:le},hr={year:g,month:Q,day:g,weekday:Q,hour:g,minute:g,timeZoneName:Q},fr={year:g,month:Q,day:g,weekday:Q,hour:g,minute:g,second:g,timeZoneName:Q};class tt{get type(){throw new ve}get name(){throw new ve}get ianaName(){return this.name}get isUniversal(){throw new ve}offsetName(e,n){throw new ve}formatOffset(e,n){throw new ve}offset(e){throw new ve}equals(e){throw new ve}get isValid(){throw new ve}}let kn=null;class Nt extends tt{static get instance(){return kn===null&&(kn=new Nt),kn}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return Br(e,n,s)}formatOffset(e,n){return it(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let xt={};function H2(t){return xt[t]||(xt[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),xt[t]}const Z2={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function z2(t,e){const n=t.format(e).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,o,a,c,u,h]=s;return[o,r,i,a,c,u,h]}function j2(t,e){const n=t.formatToParts(e),s=[];for(let r=0;r<n.length;r++){const{type:i,value:o}=n[r],a=Z2[i];i==="era"?s[a]=o:b(a)||(s[a]=parseInt(o,10))}return s}let At={};class ke extends tt{static create(e){return At[e]||(At[e]=new ke(e)),At[e]}static resetCache(){At={},xt={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ke.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return Br(e,n,s,this.name)}formatOffset(e,n){return it(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const s=H2(this.name);let[r,i,o,a,c,u,h]=s.formatToParts?j2(s,n):z2(s,n);a==="BC"&&(r=-Math.abs(r)+1);const k=Lt({year:r,month:i,day:o,hour:c===24?0:c,minute:u,second:h,millisecond:0});let p=+n;const m=p%1e3;return p-=m>=0?m:1e3+m,(k-p)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let dr={};function Y2(t,e={}){const n=JSON.stringify([t,e]);let s=dr[n];return s||(s=new Intl.ListFormat(t,e),dr[n]=s),s}let vn={};function En(t,e={}){const n=JSON.stringify([t,e]);let s=vn[n];return s||(s=new Intl.DateTimeFormat(t,e),vn[n]=s),s}let bn={};function J2(t,e={}){const n=JSON.stringify([t,e]);let s=bn[n];return s||(s=new Intl.NumberFormat(t,e),bn[n]=s),s}let Sn={};function G2(t,e={}){const{base:n,...s}=e,r=JSON.stringify([t,s]);let i=Sn[r];return i||(i=new Intl.RelativeTimeFormat(t,e),Sn[r]=i),i}let nt=null;function K2(){return nt||(nt=new Intl.DateTimeFormat().resolvedOptions().locale,nt)}let mr={};function Q2(t){let e=mr[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,mr[t]=e}return e}function X2(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let s,r;try{s=En(t).resolvedOptions(),r=t}catch{const c=t.substring(0,n);s=En(c).resolvedOptions(),r=c}const{numberingSystem:i,calendar:o}=s;return[r,i,o]}}function ea(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function ta(t){const e=[];for(let n=1;n<=12;n++){const s=S.utc(2009,n,1);e.push(t(s))}return e}function na(t){const e=[];for(let n=1;n<=7;n++){const s=S.utc(2016,11,13+n);e.push(t(s))}return e}function Mt(t,e,n,s){const r=t.listingMode();return r==="error"?null:r==="en"?n(e):s(e)}function sa(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class ra{constructor(e,n,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const{padTo:r,floor:i,...o}=s;if(!n||Object.keys(o).length>0){const a={useGrouping:!1,...s};s.padTo>0&&(a.minimumIntegerDigits=s.padTo),this.inf=J2(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Mn(e,3);return $(n,this.padTo)}}}class ia{constructor(e,n,s){this.opts=s,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&ke.create(a).valid?(r=a,this.dt=e):(r="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=En(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const s=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:s}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class oa{constructor(e,n,s){this.opts={style:"long",...s},!n&&Ir()&&(this.rtf=G2(e,s))}format(e,n){return this.rtf?this.rtf.format(e,n):xa(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const aa={firstDay:1,minimalDays:4,weekend:[6,7]};class R{static fromOpts(e){return R.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,s,r,i=!1){const o=e||D.defaultLocale,a=o||(i?"en-US":K2()),c=n||D.defaultNumberingSystem,u=s||D.defaultOutputCalendar,h=xn(r)||D.defaultWeekSettings;return new R(a,c,u,h,o)}static resetCache(){nt=null,vn={},bn={},Sn={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:s,weekSettings:r}={}){return R.create(e,n,s,r)}constructor(e,n,s,r,i){const[o,a,c]=X2(e);this.locale=o,this.numberingSystem=n||a||null,this.outputCalendar=s||c||null,this.weekSettings=r,this.intl=ea(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=sa(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:R.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,xn(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return Mt(this,e,$r,()=>{const s=n?{month:e,day:"numeric"}:{month:e},r=n?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=ta(i=>this.extract(i,s,"month"))),this.monthsCache[r][e]})}weekdays(e,n=!1){return Mt(this,e,Wr,()=>{const s=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=n?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=na(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return Mt(this,void 0,()=>Hr,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[S.utc(2016,11,13,9),S.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Mt(this,e,Zr,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[S.utc(-40,1,1),S.utc(2017,1,1)].map(s=>this.extract(s,n,"era"))),this.eraCache[e]})}extract(e,n,s){const r=this.dtFormatter(e,n),i=r.formatToParts(),o=i.find(a=>a.type.toLowerCase()===s);return o?o.value:null}numberFormatter(e={}){return new ra(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new ia(e,this.intl,n)}relFormatter(e={}){return new oa(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Y2(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Vr()?Q2(this.locale):aa}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Tn=null;class Y extends tt{static get utcInstance(){return Tn===null&&(Tn=new Y(0)),Tn}static instance(e){return e===0?Y.utcInstance:new Y(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Y(Dt(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${it(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${it(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return it(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class la extends tt{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ee(t,e){if(b(t)||t===null)return e;if(t instanceof tt)return t;if(ma(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Nt.instance:n==="utc"||n==="gmt"?Y.utcInstance:Y.parseSpecifier(n)||ke.create(t)}else return be(t)?Y.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new la(t)}const On={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},pr={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ca=On.hanidec.replace(/[\[|\]]/g,"").split("");function ua(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(t[n].search(On.hanidec)!==-1)e+=ca.indexOf(t[n]);else for(const r in pr){const[i,o]=pr[r];s>=i&&s<=o&&(e+=s-i)}}return parseInt(e,10)}else return e}let Be={};function ha(){Be={}}function ce({numberingSystem:t},e=""){const n=t||"latn";return Be[n]||(Be[n]={}),Be[n][e]||(Be[n][e]=new RegExp(`${On[n]}${e}`)),Be[n][e]}let yr=()=>Date.now(),gr="system",wr=null,kr=null,vr=null,Er=60,br,Sr=null;class D{static get now(){return yr}static set now(e){yr=e}static set defaultZone(e){gr=e}static get defaultZone(){return Ee(gr,Nt.instance)}static get defaultLocale(){return wr}static set defaultLocale(e){wr=e}static get defaultNumberingSystem(){return kr}static set defaultNumberingSystem(e){kr=e}static get defaultOutputCalendar(){return vr}static set defaultOutputCalendar(e){vr=e}static get defaultWeekSettings(){return Sr}static set defaultWeekSettings(e){Sr=xn(e)}static get twoDigitCutoffYear(){return Er}static set twoDigitCutoffYear(e){Er=e%100}static get throwOnInvalid(){return br}static set throwOnInvalid(e){br=e}static resetCaches(){R.resetCache(),ke.resetCache(),S.resetCache(),ha()}}class ue{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Tr=[0,31,59,90,120,151,181,212,243,273,304,334],Or=[0,31,60,91,121,152,182,213,244,274,305,335];function ne(t,e){return new ue("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function _n(t,e,n){const s=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return r===0?7:r}function _r(t,e,n){return n+(st(t)?Or:Tr)[e-1]}function Cr(t,e){const n=st(t)?Or:Tr,s=n.findIndex(i=>i<e),r=e-n[s];return{month:s+1,day:r}}function Cn(t,e){return(t-e+7)%7+1}function Rt(t,e=4,n=1){const{year:s,month:r,day:i}=t,o=_r(s,r,i),a=Cn(_n(s,r,i),n);let c=Math.floor((o-a+14-e)/7),u;return c<1?(u=s-1,c=rt(u,e,n)):c>rt(s,e,n)?(u=s+1,c=1):u=s,{weekYear:u,weekNumber:c,weekday:a,...Ft(t)}}function Nr(t,e=4,n=1){const{weekYear:s,weekNumber:r,weekday:i}=t,o=Cn(_n(s,1,e),n),a=Ue(s);let c=r*7+i-o-7+e,u;c<1?(u=s-1,c+=Ue(u)):c>a?(u=s+1,c-=Ue(s)):u=s;const{month:h,day:d}=Cr(u,c);return{year:u,month:h,day:d,...Ft(t)}}function Nn(t){const{year:e,month:n,day:s}=t,r=_r(e,n,s);return{year:e,ordinal:r,...Ft(t)}}function xr(t){const{year:e,ordinal:n}=t,{month:s,day:r}=Cr(e,n);return{year:e,month:s,day:r,...Ft(t)}}function Ar(t,e){if(!b(t.localWeekday)||!b(t.localWeekNumber)||!b(t.localWeekYear)){if(!b(t.weekday)||!b(t.weekNumber)||!b(t.weekYear))throw new De("Cannot mix locale-based week fields with ISO-based week fields");return b(t.localWeekday)||(t.weekday=t.localWeekday),b(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),b(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function fa(t,e=4,n=1){const s=It(t.weekYear),r=se(t.weekNumber,1,rt(t.weekYear,e,n)),i=se(t.weekday,1,7);return s?r?i?!1:ne("weekday",t.weekday):ne("week",t.weekNumber):ne("weekYear",t.weekYear)}function da(t){const e=It(t.year),n=se(t.ordinal,1,Ue(t.year));return e?n?!1:ne("ordinal",t.ordinal):ne("year",t.year)}function Mr(t){const e=It(t.year),n=se(t.month,1,12),s=se(t.day,1,Vt(t.year,t.month));return e?n?s?!1:ne("day",t.day):ne("month",t.month):ne("year",t.year)}function Rr(t){const{hour:e,minute:n,second:s,millisecond:r}=t,i=se(e,0,23)||e===24&&n===0&&s===0&&r===0,o=se(n,0,59),a=se(s,0,59),c=se(r,0,999);return i?o?a?c?!1:ne("millisecond",r):ne("second",s):ne("minute",n):ne("hour",e)}function b(t){return typeof t>"u"}function be(t){return typeof t=="number"}function It(t){return typeof t=="number"&&t%1===0}function ma(t){return typeof t=="string"}function pa(t){return Object.prototype.toString.call(t)==="[object Date]"}function Ir(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Vr(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function ya(t){return Array.isArray(t)?t:[t]}function Lr(t,e,n){if(t.length!==0)return t.reduce((s,r)=>{const i=[e(r),r];return s&&n(s[0],i[0])===s[0]?s:i},null)[1]}function ga(t,e){return e.reduce((n,s)=>(n[s]=t[s],n),{})}function Fe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function xn(t){if(t==null)return null;if(typeof t!="object")throw new Z("Week settings must be an object");if(!se(t.firstDay,1,7)||!se(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!se(e,1,7)))throw new Z("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function se(t,e,n){return It(t)&&t>=e&&t<=n}function wa(t,e){return t-e*Math.floor(t/e)}function $(t,e=2){const n=t<0;let s;return n?s="-"+(""+-t).padStart(e,"0"):s=(""+t).padStart(e,"0"),s}function Se(t){if(!(b(t)||t===null||t===""))return parseInt(t,10)}function Ae(t){if(!(b(t)||t===null||t===""))return parseFloat(t)}function An(t){if(!(b(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Mn(t,e,n=!1){const s=10**e;return(n?Math.trunc:Math.round)(t*s)/s}function st(t){return t%4===0&&(t%100!==0||t%400===0)}function Ue(t){return st(t)?366:365}function Vt(t,e){const n=wa(e-1,12)+1,s=t+(e-n)/12;return n===2?st(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Lt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Dr(t,e,n){return-Cn(_n(t,1,e),n)+e-1}function rt(t,e=4,n=1){const s=Dr(t,e,n),r=Dr(t+1,e,n);return(Ue(t)-s+r)/7}function Rn(t){return t>99?t:t>D.twoDigitCutoffYear?1900+t:2e3+t}function Br(t,e,n,s=null){const r=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);const o={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,o).formatToParts(r).find(c=>c.type.toLowerCase()==="timezonename");return a?a.value:null}function Dt(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const s=parseInt(e,10)||0,r=n<0||Object.is(n,-0)?-s:s;return n*60+r}function Fr(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Z(`Invalid unit value ${t}`);return e}function Bt(t,e){const n={};for(const s in t)if(Fe(t,s)){const r=t[s];if(r==null)continue;n[e(s)]=Fr(r)}return n}function it(t,e){const n=Math.trunc(Math.abs(t/60)),s=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${$(n,2)}:${$(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${$(n,2)}${$(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Ft(t){return ga(t,["hour","minute","second","millisecond"])}const ka=["January","February","March","April","May","June","July","August","September","October","November","December"],Ur=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],va=["J","F","M","A","M","J","J","A","S","O","N","D"];function $r(t){switch(t){case"narrow":return[...va];case"short":return[...Ur];case"long":return[...ka];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Pr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],qr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ea=["M","T","W","T","F","S","S"];function Wr(t){switch(t){case"narrow":return[...Ea];case"short":return[...qr];case"long":return[...Pr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"],ba=["Before Christ","Anno Domini"],Sa=["BC","AD"],Ta=["B","A"];function Zr(t){switch(t){case"narrow":return[...Ta];case"short":return[...Sa];case"long":return[...ba];default:return null}}function Oa(t){return Hr[t.hour<12?0:1]}function _a(t,e){return Wr(e)[t.weekday-1]}function Ca(t,e){return $r(e)[t.month-1]}function Na(t,e){return Zr(e)[t.year<0?0:1]}function xa(t,e,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${r[t][0]}`;case-1:return d?"yesterday":`last ${r[t][0]}`;case 0:return d?"today":`this ${r[t][0]}`}}const o=Object.is(e,-0)||e<0,a=Math.abs(e),c=a===1,u=r[t],h=s?c?u[1]:u[2]||u[1]:c?r[t][0]:t;return o?`${a} ${h} ago`:`in ${a} ${h}`}function zr(t,e){let n="";for(const s of t)s.literal?n+=s.val:n+=e(s.val);return n}const Aa={D:Ct,DD:Ys,DDD:Js,DDDD:Gs,t:Ks,tt:Qs,ttt:Xs,tttt:er,T:tr,TT:nr,TTT:sr,TTTT:rr,f:ir,ff:ar,fff:cr,ffff:hr,F:or,FF:lr,FFF:ur,FFFF:fr};class z{static create(e,n={}){return new z(e,n)}static parseFormat(e){let n=null,s="",r=!1;const i=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);a==="'"?(s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),n=null,s="",r=!r):r||a===n?s+=a:(s.length>0&&i.push({literal:/^\s+$/.test(s),val:s}),s=a,n=a)}return s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),i}static macroTokenToFormatOpts(e){return Aa[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return $(e,n);const s={...this.opts};return n>0&&(s.padTo=n),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,n){const s=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(p,m)=>this.loc.extract(e,p,m),o=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",a=()=>s?Oa(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(p,m)=>s?Ca(e,p):i(m?{month:p}:{month:p,day:"numeric"},"month"),u=(p,m)=>s?_a(e,p):i(m?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),h=p=>{const m=z.macroTokenToFormatOpts(p);return m?this.formatWithSystemDefault(e,m):p},d=p=>s?Na(e,p):i({era:p},"era"),k=p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return h(p)}};return zr(z.parseFormat(n),k)}formatDurationFromString(e,n){const s=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=c=>u=>{const h=s(u);return h?this.num(c.get(h),u.length):u},i=z.parseFormat(n),o=i.reduce((c,{literal:u,val:h})=>u?c:c.concat(h),[]),a=e.shiftTo(...o.map(s).filter(c=>c));return zr(i,r(a))}}const jr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function $e(...t){const e=t.reduce((n,s)=>n+s.source,"");return RegExp(`^${e}$`)}function Pe(...t){return e=>t.reduce(([n,s,r],i)=>{const[o,a,c]=i(e,r);return[{...n,...o},a||s,c]},[{},null,1]).slice(0,2)}function qe(t,...e){if(t==null)return[null,null];for(const[n,s]of e){const r=n.exec(t);if(r)return s(r)}return[null,null]}function Yr(...t){return(e,n)=>{const s={};let r;for(r=0;r<t.length;r++)s[t[r]]=Se(e[n+r]);return[s,null,n+r]}}const Jr=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Ma=`(?:${Jr.source}?(?:\\[(${jr.source})\\])?)?`,In=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Gr=RegExp(`${In.source}${Ma}`),Vn=RegExp(`(?:T${Gr.source})?`),Ra=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ia=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Va=/(\d{4})-?(\d{3})/,La=Yr("weekYear","weekNumber","weekDay"),Da=Yr("year","ordinal"),Ba=/(\d{4})-(\d\d)-(\d\d)/,Kr=RegExp(`${In.source} ?(?:${Jr.source}|(${jr.source}))?`),Fa=RegExp(`(?: ${Kr.source})?`);function We(t,e,n){const s=t[e];return b(s)?n:Se(s)}function Ua(t,e){return[{year:We(t,e),month:We(t,e+1,1),day:We(t,e+2,1)},null,e+3]}function He(t,e){return[{hours:We(t,e,0),minutes:We(t,e+1,0),seconds:We(t,e+2,0),milliseconds:An(t[e+3])},null,e+4]}function ot(t,e){const n=!t[e]&&!t[e+1],s=Dt(t[e+1],t[e+2]),r=n?null:Y.instance(s);return[{},r,e+3]}function at(t,e){const n=t[e]?ke.create(t[e]):null;return[{},n,e+1]}const $a=RegExp(`^T?${In.source}$`),Pa=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function qa(t){const[e,n,s,r,i,o,a,c,u]=t,h=e[0]==="-",d=c&&c[0]==="-",k=(p,m=!1)=>p!==void 0&&(m||p&&h)?-p:p;return[{years:k(Ae(n)),months:k(Ae(s)),weeks:k(Ae(r)),days:k(Ae(i)),hours:k(Ae(o)),minutes:k(Ae(a)),seconds:k(Ae(c),c==="-0"),milliseconds:k(An(u),d)}]}const Wa={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 Ln(t,e,n,s,r,i,o){const a={year:e.length===2?Rn(Se(e)):Se(e),month:Ur.indexOf(n)+1,day:Se(s),hour:Se(r),minute:Se(i)};return o&&(a.second=Se(o)),t&&(a.weekday=t.length>3?Pr.indexOf(t)+1:qr.indexOf(t)+1),a}const Ha=/^(?:(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\d)(\d\d)))$/;function Za(t){const[,e,n,s,r,i,o,a,c,u,h,d]=t,k=Ln(e,r,s,n,i,o,a);let p;return c?p=Wa[c]:u?p=0:p=Dt(h,d),[k,new Y(p)]}function za(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ja=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ya=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ja=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Qr(t){const[,e,n,s,r,i,o,a]=t;return[Ln(e,r,s,n,i,o,a),Y.utcInstance]}function Ga(t){const[,e,n,s,r,i,o,a]=t;return[Ln(e,a,n,s,r,i,o),Y.utcInstance]}const Ka=$e(Ra,Vn),Qa=$e(Ia,Vn),Xa=$e(Va,Vn),e0=$e(Gr),Xr=Pe(Ua,He,ot,at),t0=Pe(La,He,ot,at),n0=Pe(Da,He,ot,at),s0=Pe(He,ot,at);function r0(t){return qe(t,[Ka,Xr],[Qa,t0],[Xa,n0],[e0,s0])}function i0(t){return qe(za(t),[Ha,Za])}function o0(t){return qe(t,[ja,Qr],[Ya,Qr],[Ja,Ga])}function a0(t){return qe(t,[Pa,qa])}const l0=Pe(He);function c0(t){return qe(t,[$a,l0])}const u0=$e(Ba,Fa),h0=$e(Kr),f0=Pe(He,ot,at);function d0(t){return qe(t,[u0,Xr],[h0,f0])}const ei="Invalid Duration",ti={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},m0={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...ti},re=146097/400,Ze=146097/4800,p0={years:{quarters:4,months:12,weeks:re/7,days:re,hours:re*24,minutes:re*24*60,seconds:re*24*60*60,milliseconds:re*24*60*60*1e3},quarters:{months:3,weeks:re/28,days:re/4,hours:re*24/4,minutes:re*24*60/4,seconds:re*24*60*60/4,milliseconds:re*24*60*60*1e3/4},months:{weeks:Ze/7,days:Ze,hours:Ze*24,minutes:Ze*24*60,seconds:Ze*24*60*60,milliseconds:Ze*24*60*60*1e3},...ti},Me=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],y0=Me.slice(0).reverse();function Te(t,e,n=!1){const s={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new A(s)}function ni(t,e){let n=e.milliseconds??0;for(const s of y0.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function si(t,e){const n=ni(t,e)<0?-1:1;Me.reduceRight((s,r)=>{if(b(e[r]))return s;if(s){const i=e[s]*n,o=t[r][s],a=Math.floor(i/o);e[r]+=a*n,e[s]-=a*o*n}return r},null),Me.reduce((s,r)=>{if(b(e[r]))return s;if(s){const i=e[s]%1;e[s]-=i,e[r]+=i*t[s][r]}return r},null)}function g0(t){const e={};for(const[n,s]of Object.entries(t))s!==0&&(e[n]=s);return e}class A{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let s=n?p0:m0;e.matrix&&(s=e.matrix),this.values=e.values,this.loc=e.loc||R.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(e,n){return A.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Z(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new A({values:Bt(e,A.normalizeUnit),loc:R.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(be(e))return A.fromMillis(e);if(A.isDuration(e))return e;if(typeof e=="object")return A.fromObject(e);throw new Z(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[s]=a0(e);return s?A.fromObject(s,n):A.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[s]=c0(e);return s?A.fromObject(s,n):A.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Z("need to specify a reason the Duration is invalid");const s=e instanceof ue?e:new ue(e,n);if(D.throwOnInvalid)throw new P2(s);return new A({invalid:s})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new js(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const s={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?z.create(this.loc,s).formatDurationFromString(this,e):ei}toHuman(e={}){if(!this.isValid)return ei;const n=Me.map(s=>{const r=this.values[s];return b(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:s.slice(0,-1)}).format(r)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Mn(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},S.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?ni(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=A.fromDurationLike(e),s={};for(const r of Me)(Fe(n.values,r)||Fe(this.values,r))&&(s[r]=n.get(r)+this.get(r));return Te(this,{values:s},!0)}minus(e){if(!this.isValid)return this;const n=A.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const s of Object.keys(this.values))n[s]=Fr(e(this.values[s],s));return Te(this,{values:n},!0)}get(e){return this[A.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Bt(e,A.normalizeUnit)};return Te(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:s,matrix:r}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:r,conversionAccuracy:s};return Te(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return si(this.matrix,e),Te(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=g0(this.normalize().shiftToAll().toObject());return Te(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>A.normalizeUnit(o));const n={},s={},r=this.toObject();let i;for(const o of Me)if(e.indexOf(o)>=0){i=o;let a=0;for(const u in s)a+=this.matrix[u][o]*s[u],s[u]=0;be(r[o])&&(a+=r[o]);const c=Math.trunc(a);n[o]=c,s[o]=(a*1e3-c*1e3)/1e3}else be(r[o])&&(s[o]=r[o]);for(const o in s)s[o]!==0&&(n[i]+=o===i?s[o]:s[o]/this.matrix[i][o]);return si(this.matrix,n),Te(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Te(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(s,r){return s===void 0||s===0?r===void 0||r===0:s===r}for(const s of Me)if(!n(this.values[s],e.values[s]))return!1;return!0}}const ze="Invalid Interval";function w0(t,e){return!t||!t.isValid?B.invalid("missing or invalid start"):!e||!e.isValid?B.invalid("missing or invalid end"):e<t?B.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class B{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Z("need to specify a reason the Interval is invalid");const s=e instanceof ue?e:new ue(e,n);if(D.throwOnInvalid)throw new $2(s);return new B({invalid:s})}static fromDateTimes(e,n){const s=ct(e),r=ct(n),i=w0(s,r);return i??new B({start:s,end:r})}static after(e,n){const s=A.fromDurationLike(n),r=ct(e);return B.fromDateTimes(r,r.plus(s))}static before(e,n){const s=A.fromDurationLike(n),r=ct(e);return B.fromDateTimes(r.minus(s),r)}static fromISO(e,n){const[s,r]=(e||"").split("/",2);if(s&&r){let i,o;try{i=S.fromISO(s,n),o=i.isValid}catch{o=!1}let a,c;try{a=S.fromISO(r,n),c=a.isValid}catch{c=!1}if(o&&c)return B.fromDateTimes(i,a);if(o){const u=A.fromISO(r,n);if(u.isValid)return B.after(i,u)}else if(c){const u=A.fromISO(s,n);if(u.isValid)return B.before(a,u)}}return B.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const s=this.start.startOf(e,n);let r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:s.locale}):r=this.end,r=r.startOf(e,n),Math.floor(r.diff(s,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?B.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(ct).filter(o=>this.contains(o)).sort((o,a)=>o.toMillis()-a.toMillis()),s=[];let{s:r}=this,i=0;for(;r<this.e;){const o=n[i]||this.e,a=+o>+this.e?this.e:o;s.push(B.fromDateTimes(r,a)),r=a,i+=1}return s}splitBy(e){const n=A.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s}=this,r=1,i;const o=[];for(;s<this.e;){const a=this.start.plus(n.mapUnits(c=>c*r));i=+a>+this.e?this.e:a,o.push(B.fromDateTimes(s,i)),s=i,r+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,s=this.e<e.e?this.e:e.e;return n>=s?null:B.fromDateTimes(n,s)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,s=this.e>e.e?this.e:e.e;return B.fromDateTimes(n,s)}static merge(e){const[n,s]=e.sort((r,i)=>r.s-i.s).reduce(([r,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[r,i.union(o)]:[r.concat([i]),o]:[r,o],[[],null]);return s&&n.push(s),n}static xor(e){let n=null,s=0;const r=[],i=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),o=Array.prototype.concat(...i),a=o.sort((c,u)=>c.time-u.time);for(const c of a)s+=c.type==="s"?1:-1,s===1?n=c.time:(n&&+n!=+c.time&&r.push(B.fromDateTimes(n,c.time)),n=null);return B.merge(r)}difference(...e){return B.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ze}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ct,n={}){return this.isValid?z.create(this.s.loc.clone(n),e).formatInterval(this):ze}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ze}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ze}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ze}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:ze}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):A.invalid(this.invalidReason)}mapEndpoints(e){return B.fromDateTimes(e(this.s),e(this.e))}}class Ut{static hasDST(e=D.defaultZone){const n=S.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return ke.isValidZone(e)}static normalizeZone(e){return Ee(e,D.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||R.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||R.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||R.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||R.create(n,s,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||R.create(n,s,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||R.create(n,s,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||R.create(n,s,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return R.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return R.create(n,null,"gregory").eras(e)}static features(){return{relative:Ir(),localeWeek:Vr()}}}function ri(t,e){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(e)-n(t);return Math.floor(A.fromMillis(s).as("days"))}function k0(t,e,n){const s=[["years",(c,u)=>u.year-c.year],["quarters",(c,u)=>u.quarter-c.quarter+(u.year-c.year)*4],["months",(c,u)=>u.month-c.month+(u.year-c.year)*12],["weeks",(c,u)=>{const h=ri(c,u);return(h-h%7)/7}],["days",ri]],r={},i=t;let o,a;for(const[c,u]of s)n.indexOf(c)>=0&&(o=c,r[c]=u(t,e),a=i.plus(r),a>e?(r[c]--,t=i.plus(r),t>e&&(a=t,r[c]--,t=i.plus(r))):t=a);return[t,r,a,o]}function v0(t,e,n,s){let[r,i,o,a]=k0(t,e,n);const c=e-r,u=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);u.length===0&&(o<e&&(o=r.plus({[a]:1})),o!==r&&(i[a]=(i[a]||0)+c/(o-r)));const h=A.fromObject(i,s);return u.length>0?A.fromMillis(c,s).shiftTo(...u).plus(h):h}const E0="missing Intl.DateTimeFormat.formatToParts support";function M(t,e=n=>n){return{regex:t,deser:([n])=>e(ua(n))}}const ii="[ ]",oi=new RegExp(ii,"g");function b0(t){return t.replace(/\./g,"\\.?").replace(oi,ii)}function ai(t){return t.replace(/\./g,"").replace(oi," ").toLowerCase()}function he(t,e){return t===null?null:{regex:RegExp(t.map(b0).join("|")),deser:([n])=>t.findIndex(s=>ai(n)===ai(s))+e}}function li(t,e){return{regex:t,deser:([,n,s])=>Dt(n,s),groups:e}}function $t(t){return{regex:t,deser:([e])=>e}}function S0(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function T0(t,e){const n=ce(e),s=ce(e,"{2}"),r=ce(e,"{3}"),i=ce(e,"{4}"),o=ce(e,"{6}"),a=ce(e,"{1,2}"),c=ce(e,"{1,3}"),u=ce(e,"{1,6}"),h=ce(e,"{1,9}"),d=ce(e,"{2,4}"),k=ce(e,"{4,6}"),p=w=>({regex:RegExp(S0(w.val)),deser:([O])=>O,literal:!0}),E=(w=>{if(t.literal)return p(w);switch(w.val){case"G":return he(e.eras("short"),0);case"GG":return he(e.eras("long"),0);case"y":return M(u);case"yy":return M(d,Rn);case"yyyy":return M(i);case"yyyyy":return M(k);case"yyyyyy":return M(o);case"M":return M(a);case"MM":return M(s);case"MMM":return he(e.months("short",!0),1);case"MMMM":return he(e.months("long",!0),1);case"L":return M(a);case"LL":return M(s);case"LLL":return he(e.months("short",!1),1);case"LLLL":return he(e.months("long",!1),1);case"d":return M(a);case"dd":return M(s);case"o":return M(c);case"ooo":return M(r);case"HH":return M(s);case"H":return M(a);case"hh":return M(s);case"h":return M(a);case"mm":return M(s);case"m":return M(a);case"q":return M(a);case"qq":return M(s);case"s":return M(a);case"ss":return M(s);case"S":return M(c);case"SSS":return M(r);case"u":return $t(h);case"uu":return $t(a);case"uuu":return M(n);case"a":return he(e.meridiems(),0);case"kkkk":return M(i);case"kk":return M(d,Rn);case"W":return M(a);case"WW":return M(s);case"E":case"c":return M(n);case"EEE":return he(e.weekdays("short",!1),1);case"EEEE":return he(e.weekdays("long",!1),1);case"ccc":return he(e.weekdays("short",!0),1);case"cccc":return he(e.weekdays("long",!0),1);case"Z":case"ZZ":return li(new RegExp(`([+-]${a.source})(?::(${s.source}))?`),2);case"ZZZ":return li(new RegExp(`([+-]${a.source})(${s.source})?`),2);case"z":return $t(/[a-z_+-/]{1,256}?/i);case" ":return $t(/[^\S\n\r]/);default:return p(w)}})(t)||{invalidReason:E0};return E.token=t,E}const O0={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function _0(t,e,n){const{type:s,value:r}=t;if(s==="literal"){const c=/^\s+$/.test(r);return{literal:!c,val:c?" ":r}}const i=e[s];let o=s;s==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let a=O0[o];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function C0(t){return[`^${t.map(n=>n.regex).reduce((n,s)=>`${n}(${s.source})`,"")}$`,t]}function N0(t,e,n){const s=t.match(e);if(s){const r={};let i=1;for(const o in n)if(Fe(n,o)){const a=n[o],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(s.slice(i,i+c))),i+=c}return[s,r]}else return[s,{}]}function x0(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,s;return b(t.z)||(n=ke.create(t.z)),b(t.Z)||(n||(n=new Y(t.Z)),s=t.Z),b(t.q)||(t.M=(t.q-1)*3+1),b(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),b(t.u)||(t.S=An(t.u)),[Object.keys(t).reduce((i,o)=>{const a=e(o);return a&&(i[a]=t[o]),i},{}),n,s]}let Dn=null;function A0(){return Dn||(Dn=S.fromMillis(1555555555555)),Dn}function M0(t,e){if(t.literal)return t;const n=z.macroTokenToFormatOpts(t.val),s=fi(n,e);return s==null||s.includes(void 0)?t:s}function ci(t,e){return Array.prototype.concat(...t.map(n=>M0(n,e)))}class ui{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=ci(z.parseFormat(n),e),this.units=this.tokens.map(s=>T0(s,e)),this.disqualifyingUnit=this.units.find(s=>s.invalidReason),!this.disqualifyingUnit){const[s,r]=C0(this.units);this.regex=RegExp(s,"i"),this.handlers=r}}explainFromTokens(e){if(this.isValid){const[n,s]=N0(e,this.regex,this.handlers),[r,i,o]=s?x0(s):[null,null,void 0];if(Fe(s,"a")&&Fe(s,"H"))throw new De("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:s,result:r,zone:i,specificOffset:o}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function hi(t,e,n){return new ui(t,n).explainFromTokens(e)}function R0(t,e,n){const{result:s,zone:r,specificOffset:i,invalidReason:o}=hi(t,e,n);return[s,r,i,o]}function fi(t,e){if(!t)return null;const s=z.create(e,t).dtFormatter(A0()),r=s.formatToParts(),i=s.resolvedOptions();return r.map(o=>_0(o,t,i))}const Bn="Invalid DateTime",I0=864e13;function lt(t){return new ue("unsupported zone",`the zone "${t.name}" is not supported`)}function Fn(t){return t.weekData===null&&(t.weekData=Rt(t.c)),t.weekData}function Un(t){return t.localWeekData===null&&(t.localWeekData=Rt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Re(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new S({...n,...e,old:n})}function di(t,e,n){let s=t-e*60*1e3;const r=n.offset(s);if(e===r)return[s,e];s-=(r-e)*60*1e3;const i=n.offset(s);return r===i?[s,r]:[t-Math.min(r,i)*60*1e3,Math.max(r,i)]}function Pt(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function qt(t,e,n){return di(Lt(t),e,n)}function mi(t,e){const n=t.o,s=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:s,month:r,day:Math.min(t.c.day,Vt(s,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=A.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=Lt(i);let[c,u]=di(a,n,t.zone);return o!==0&&(c+=o,u=t.zone.offset(c)),{ts:c,o:u}}function je(t,e,n,s,r,i){const{setZone:o,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const c=e||a,u=S.fromObject(t,{...n,zone:c,specificOffset:i});return o?u:u.setZone(a)}else return S.invalid(new ue("unparsable",`the input "${r}" can't be parsed as ${s}`))}function Wt(t,e,n=!0){return t.isValid?z.create(R.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function $n(t,e){const n=t.c.year>9999||t.c.year<0;let s="";return n&&t.c.year>=0&&(s+="+"),s+=$(t.c.year,n?6:4),e?(s+="-",s+=$(t.c.month),s+="-",s+=$(t.c.day)):(s+=$(t.c.month),s+=$(t.c.day)),s}function pi(t,e,n,s,r,i){let o=$(t.c.hour);return e?(o+=":",o+=$(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=":")):o+=$(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=$(t.c.second),(t.c.millisecond!==0||!s)&&(o+=".",o+=$(t.c.millisecond,3))),r&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=$(Math.trunc(-t.o/60)),o+=":",o+=$(Math.trunc(-t.o%60))):(o+="+",o+=$(Math.trunc(t.o/60)),o+=":",o+=$(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const yi={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},V0={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},L0={ordinal:1,hour:0,minute:0,second:0,millisecond:0},gi=["year","month","day","hour","minute","second","millisecond"],D0=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],B0=["year","ordinal","hour","minute","second","millisecond"];function F0(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new js(t);return e}function wi(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return F0(t)}}function U0(t){return Zt[t]||(Ht===void 0&&(Ht=D.now()),Zt[t]=t.offset(Ht)),Zt[t]}function ki(t,e){const n=Ee(e.zone,D.defaultZone);if(!n.isValid)return S.invalid(lt(n));const s=R.fromObject(e);let r,i;if(b(t.year))r=D.now();else{for(const c of gi)b(t[c])&&(t[c]=yi[c]);const o=Mr(t)||Rr(t);if(o)return S.invalid(o);const a=U0(n);[r,i]=qt(t,a,n)}return new S({ts:r,zone:n,loc:s,o:i})}function vi(t,e,n){const s=b(n.round)?!0:n.round,r=(o,a)=>(o=Mn(o,s||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,a)),i=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return r(i(n.unit),n.unit);for(const o of n.units){const a=i(o);if(Math.abs(a)>=1)return r(a,o)}return r(t>e?-0:0,n.units[n.units.length-1])}function Ei(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let Ht,Zt={};class S{constructor(e){const n=e.zone||D.defaultZone;let s=e.invalid||(Number.isNaN(e.ts)?new ue("invalid input"):null)||(n.isValid?null:lt(n));this.ts=b(e.ts)?D.now():e.ts;let r=null,i=null;if(!s)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[r,i]=[e.old.c,e.old.o];else{const a=be(e.o)&&!e.old?e.o:n.offset(this.ts);r=Pt(this.ts,a),s=Number.isNaN(r.year)?new ue("invalid input"):null,r=s?null:r,i=s?null:a}this._zone=n,this.loc=e.loc||R.create(),this.invalid=s,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new S({})}static local(){const[e,n]=Ei(arguments),[s,r,i,o,a,c,u]=n;return ki({year:s,month:r,day:i,hour:o,minute:a,second:c,millisecond:u},e)}static utc(){const[e,n]=Ei(arguments),[s,r,i,o,a,c,u]=n;return e.zone=Y.utcInstance,ki({year:s,month:r,day:i,hour:o,minute:a,second:c,millisecond:u},e)}static fromJSDate(e,n={}){const s=pa(e)?e.valueOf():NaN;if(Number.isNaN(s))return S.invalid("invalid input");const r=Ee(n.zone,D.defaultZone);return r.isValid?new S({ts:s,zone:r,loc:R.fromObject(n)}):S.invalid(lt(r))}static fromMillis(e,n={}){if(be(e))return e<-864e13||e>I0?S.invalid("Timestamp out of range"):new S({ts:e,zone:Ee(n.zone,D.defaultZone),loc:R.fromObject(n)});throw new Z(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(be(e))return new S({ts:e*1e3,zone:Ee(n.zone,D.defaultZone),loc:R.fromObject(n)});throw new Z("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const s=Ee(n.zone,D.defaultZone);if(!s.isValid)return S.invalid(lt(s));const r=R.fromObject(n),i=Bt(e,wi),{minDaysInFirstWeek:o,startOfWeek:a}=Ar(i,r),c=D.now(),u=b(n.specificOffset)?s.offset(c):n.specificOffset,h=!b(i.ordinal),d=!b(i.year),k=!b(i.month)||!b(i.day),p=d||k,m=i.weekYear||i.weekNumber;if((p||h)&&m)throw new De("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(k&&h)throw new De("Can't mix ordinal dates with month/day");const E=m||i.weekday&&!p;let w,O,C=Pt(c,u);E?(w=D0,O=V0,C=Rt(C,o,a)):h?(w=B0,O=L0,C=Nn(C)):(w=gi,O=yi);let x=!1;for(const we of w){const ts=i[we];b(ts)?x?i[we]=O[we]:i[we]=C[we]:x=!0}const j=E?fa(i,o,a):h?da(i):Mr(i),V=j||Rr(i);if(V)return S.invalid(V);const q=E?Nr(i,o,a):h?xr(i):i,[de,ye]=qt(q,u,s),ge=new S({ts:de,zone:s,o:ye,loc:r});return i.weekday&&p&&e.weekday!==ge.weekday?S.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${ge.toISO()}`):ge.isValid?ge:S.invalid(ge.invalid)}static fromISO(e,n={}){const[s,r]=r0(e);return je(s,r,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[s,r]=i0(e);return je(s,r,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[s,r]=o0(e);return je(s,r,n,"HTTP",n)}static fromFormat(e,n,s={}){if(b(e)||b(n))throw new Z("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=s,o=R.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[a,c,u,h]=R0(o,e,n);return h?S.invalid(h):je(a,c,s,`format ${n}`,e,u)}static fromString(e,n,s={}){return S.fromFormat(e,n,s)}static fromSQL(e,n={}){const[s,r]=d0(e);return je(s,r,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Z("need to specify a reason the DateTime is invalid");const s=e instanceof ue?e:new ue(e,n);if(D.throwOnInvalid)throw new U2(s);return new S({invalid:s})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const s=fi(e,R.fromObject(n));return s?s.map(r=>r?r.val:null).join(""):null}static expandFormat(e,n={}){return ci(z.parseFormat(e),R.fromObject(n)).map(r=>r.val).join("")}static resetCache(){Ht=void 0,Zt={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Fn(this).weekYear:NaN}get weekNumber(){return this.isValid?Fn(this).weekNumber:NaN}get weekday(){return this.isValid?Fn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Un(this).weekday:NaN}get localWeekNumber(){return this.isValid?Un(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Un(this).weekYear:NaN}get ordinal(){return this.isValid?Nn(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ut.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ut.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ut.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ut.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,s=Lt(this.c),r=this.zone.offset(s-e),i=this.zone.offset(s+e),o=this.zone.offset(s-r*n),a=this.zone.offset(s-i*n);if(o===a)return[this];const c=s-o*n,u=s-a*n,h=Pt(c,o),d=Pt(u,a);return h.hour===d.hour&&h.minute===d.minute&&h.second===d.second&&h.millisecond===d.millisecond?[Re(this,{ts:c}),Re(this,{ts:u})]:[this]}get isInLeapYear(){return st(this.year)}get daysInMonth(){return Vt(this.year,this.month)}get daysInYear(){return this.isValid?Ue(this.year):NaN}get weeksInWeekYear(){return this.isValid?rt(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?rt(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:s,calendar:r}=z.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:s,outputCalendar:r}}toUTC(e=0,n={}){return this.setZone(Y.instance(e),n)}toLocal(){return this.setZone(D.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:s=!1}={}){if(e=Ee(e,D.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(n||s){const i=e.offset(this.ts),o=this.toObject();[r]=qt(o,i,e)}return Re(this,{ts:r,zone:e})}else return S.invalid(lt(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:s}={}){const r=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:s});return Re(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Bt(e,wi),{minDaysInFirstWeek:s,startOfWeek:r}=Ar(n,this.loc),i=!b(n.weekYear)||!b(n.weekNumber)||!b(n.weekday),o=!b(n.ordinal),a=!b(n.year),c=!b(n.month)||!b(n.day),u=a||c,h=n.weekYear||n.weekNumber;if((u||o)&&h)throw new De("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&o)throw new De("Can't mix ordinal dates with month/day");let d;i?d=Nr({...Rt(this.c,s,r),...n},s,r):b(n.ordinal)?(d={...this.toObject(),...n},b(n.day)&&(d.day=Math.min(Vt(d.year,d.month),d.day))):d=xr({...Nn(this.c),...n});const[k,p]=qt(d,this.o,this.zone);return Re(this,{ts:k,o:p})}plus(e){if(!this.isValid)return this;const n=A.fromDurationLike(e);return Re(this,mi(this,n))}minus(e){if(!this.isValid)return this;const n=A.fromDurationLike(e).negate();return Re(this,mi(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const s={},r=A.normalizeUnit(e);switch(r){case"years":s.month=1;case"quarters":case"months":s.day=1;case"weeks":case"days":s.hour=0;case"hours":s.minute=0;case"minutes":s.second=0;case"seconds":s.millisecond=0;break}if(r==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:o}=this;o<i&&(s.weekNumber=this.weekNumber-1),s.weekday=i}else s.weekday=1;if(r==="quarters"){const i=Math.ceil(this.month/3);s.month=(i-1)*3+1}return this.set(s)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?z.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):Bn}toLocaleString(e=Ct,n={}){return this.isValid?z.create(this.loc.clone(n),e).formatDateTime(this):Bn}toLocaleParts(e={}){return this.isValid?z.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:s=!1,includeOffset:r=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=e==="extended";let a=$n(this,o);return a+="T",a+=pi(this,o,n,s,r,i),a}toISODate({format:e="extended"}={}){return this.isValid?$n(this,e==="extended"):null}toISOWeekDate(){return Wt(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:s=!0,includePrefix:r=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+pi(this,o==="extended",n,e,s,i):null}toRFC2822(){return Wt(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Wt(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?$n(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:s=!0}={}){let r="HH:mm:ss.SSS";return(n||e)&&(s&&(r+=" "),n?r+="z":e&&(r+="ZZ")),Wt(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Bn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",s={}){if(!this.isValid||!e.isValid)return A.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...s},i=ya(n).map(A.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,c=o?e:this,u=v0(a,c,i,r);return o?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(S.now(),e,n)}until(e){return this.isValid?B.fromDateTimes(this,e):this}hasSame(e,n,s){if(!this.isValid)return!1;const r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,s)<=r&&r<=i.endOf(n,s)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||S.fromObject({},{zone:this.zone}),s=e.padding?this<n?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),vi(n,this.plus(s),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?vi(e.base||S.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(S.isDateTime))throw new Z("min requires all arguments be DateTimes");return Lr(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(S.isDateTime))throw new Z("max requires all arguments be DateTimes");return Lr(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,s={}){const{locale:r=null,numberingSystem:i=null}=s,o=R.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return hi(o,e,n)}static fromStringExplain(e,n,s={}){return S.fromFormatExplain(e,n,s)}static buildFormatParser(e,n={}){const{locale:s=null,numberingSystem:r=null}=n,i=R.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});return new ui(i,e)}static fromFormatParser(e,n,s={}){if(b(e)||b(n))throw new Z("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:i=null}=s,o=R.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!o.equals(n.locale))throw new Z(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);const{result:a,zone:c,specificOffset:u,invalidReason:h}=n.explainFromTokens(e);return h?S.invalid(h):je(a,c,s,`format ${n.format}`,e,u)}static get DATE_SHORT(){return Ct}static get DATE_MED(){return Ys}static get DATE_MED_WITH_WEEKDAY(){return q2}static get DATE_FULL(){return Js}static get DATE_HUGE(){return Gs}static get TIME_SIMPLE(){return Ks}static get TIME_WITH_SECONDS(){return Qs}static get TIME_WITH_SHORT_OFFSET(){return Xs}static get TIME_WITH_LONG_OFFSET(){return er}static get TIME_24_SIMPLE(){return tr}static get TIME_24_WITH_SECONDS(){return nr}static get TIME_24_WITH_SHORT_OFFSET(){return sr}static get TIME_24_WITH_LONG_OFFSET(){return rr}static get DATETIME_SHORT(){return ir}static get DATETIME_SHORT_WITH_SECONDS(){return or}static get DATETIME_MED(){return ar}static get DATETIME_MED_WITH_SECONDS(){return lr}static get DATETIME_MED_WITH_WEEKDAY(){return W2}static get DATETIME_FULL(){return cr}static get DATETIME_FULL_WITH_SECONDS(){return ur}static get DATETIME_HUGE(){return hr}static get DATETIME_HUGE_WITH_SECONDS(){return fr}}function ct(t){if(S.isDateTime(t))return t;if(t&&t.valueOf&&be(t.valueOf()))return S.fromJSDate(t);if(t&&typeof t=="object")return S.fromObject(t);throw new Z(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const $0={},P0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function q0(t,e){return l.openBlock(),l.createElementBlock("svg",P0,e[0]||(e[0]=[l.createElementVNode("path",{fill:"rgb(248 113 113)",d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"},null,-1)]))}const W0=G($0,[["render",q0]]),bi="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-323%20644-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm768%200-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm-424%20640-2%202-24%202-4%202-22%202-6%202-15%203-1%201-12%202-4%202-12%202-4%202-12%202-11%205-11%203-14%206-11%203-6%202-10%204-52%2026-18%2010-8%205-12%207-8%205-9%205-10%209-6%203-10%209-6%203-10%209-6%203-12%2011-19%2019-5%202-10%209-7%208-2%205-3%203v2h-2l-3%2011-2%203v32l9%2017%208%209%208%207%208%205%203%201v2l2%201%2014%201v2l4%201h8l5-3%2012-1%2011-6%2011-9%206-4%2017-17%208-7%205-4%206-4%2010-8%2016-12%206-4%2013-8%207-4%2010-6%2017-9%205-4%2010-3%2019-10%208-4%209-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%203-2%2013-2%206-2%2014-2%206-2%2014-2%207-2%2019-1%207-2%201-1h110l1%202%2010%201%2022%201v2l20%203%207%202%2013%202%205%202%2011%202%208%203%2016%205%208%203%2016%205%208%203%2013%206%2048%2024%2010%206%208%205%209%205%204%202%201%203%2011%207%209%206%2011%209%209%206%205%205h2l2%204h2l2%204h2l2%204h2l2%204h2v2l8%207%2011%207%206%204h3v2l2%201h9l5%202%203%202%208-1%202-2%2012-1%2016-8%209-7%204-5%205-5%204-8%205-11v-30l-3-6-2-7-6-8-3-5-9-10-7-6-6-3-25-25-5-4-6-3-10-9-6-3-10-9-6-3-10-9-7-3-8-5-5-4-14-7-6-5-23-11-17-9-23-11-10-5-10-3-35-12-14-5-51-13-22-4-21-3-19-2-7-2z'%20fill='%23C66021'/%3e%3c/svg%3e",Si="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-424%20579-18%201-19%2010-12%2012-4%207-7%2014v35l9%2017%2011%2012%208%207%209%206%207%207%208%207%209%206%206%205%205%205%209%206%206%205%205%205%209%206%205%205h2v2l9%206%208%207%205%205h2v2l9%206%208%207%202%202%201%205-4%202-5%205-6%203-10%209-24%2024v2h-2l-3%207-6%207-3%206-6%209-7%2014-6%2020-2%203-2%2013-2%202v69l2%203%203%2015%204%2012%205%2013%207%2012%2010%2017%207%2010%209%2010%2018%2018%2010%208%209%206%2016%209%209%206%206%203%209%202%209%203%207%203%2010%201%206%203h62l6-2%201-1%2011-1%205-3%2010-2%202-2%2010-2%209-5%209-6%2011-6%209-6%2011-9%2013-13%205-6%205-5%205-6%206-9%206-10%203-6%206-9%204-11%207-20%201-9%203-8v-65l-3-5-2-13-3-8-6-17-8-16-6-10-6-7-4-6-9-10-26-26-5-4-6-3-13-13-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-13-13-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-9-9-5-4-6-3-13-13-5-4-6-3-10-10-7-4-8-7-9-8-6-3-10-10-7-4-11-9-5-3-13-7zm1006%201-19%2010-8%208-6%203-10%209-6%205-7%204-11%2011-6%203-10%209-6%205-5%203-10%209-8%208-5%202-10%209-6%205-7%204-11%2011-6%203-10%209-5%205-5%202-12%2011-7%207-5%202-10%209-6%205-7%204-11%2011-6%203-10%209-6%205-7%204-11%2011-6%203-10%209-36%2036-4%207-7%2010-12%2024-3%2010-4%2012-2%2010-2%205-1%201v69l2%203%203%2015%204%2012%205%2013%207%2012%2010%2017%207%2010%209%2010%2018%2018%2010%208%209%206%2016%209%209%206%206%203%209%202%209%203%207%203%2010%201%206%203h62l6-2%201-1%2011-1%205-3%2010-2%202-2%2010-2%209-5%209-6%2011-6%209-6%2011-9%2013-13%205-6%205-5%205-6%206-9%206-10%203-6%206-9%204-11%207-20%201-9%203-8v-65l-3-5-2-13-3-8-6-17-7-14-6-8-3-5-5-7-3-5-9-10-22-22-5-4-6-3-5-5h-2l-1-4%203-5%208-6%206-4%208-7v-2l4-2%206-5%206-4%2012-11%208-5%2012-11%208-5%2012-11%208-5%207-6%205-5%206-5%209-6v-2l4-2%201-3%204-2%207-9%207-14%201-4v-32l-8-17-12-13-8-6-14-7zm-495%20827-4%204-53%201-3%202-23%202-5%202-16%202-5%202-15%202-4%202-15%203-42%2014-10%204-19%209-3%202-8%202-20%2011-4%203-14%207-18%2010-7%207-8%204-11%208-7%205-5%203-10%209-7%207-6%203-10%209-16%2016-4%207-7%2013v36l9%2017%209%2010h2v2l9%206%2013%207h34l19-9%2013-12%209-6%209-9%209-7%2018-12%208-7%2023-12%209-6%2016-8%205-3%209-2%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%203-2%2013-2%203-2%2013-2%204-2%2016-1%205-2%201-1h110l1%202%204%201%2016%201%208%203%2012%202%205%202%2011%202%208%203%2016%205%208%203%2016%207%2011%204%2016%208%209%206%2019%2010%206%204%203%201%201%203%2011%207%209%206%208%207%206%205%205%205%209%206%205%205h2v2l9%206%2013%207h34l19-9%2010-9%207-9%207-14%201-3v-34l-9-17-11-12-13-13-5-4-6-3-14-14-7-4-9-7-6-3-6-5-6-3-6-5-6-3-6-5-21-10-7-6-16-8-9-2-28-14-10-3-36-12-30-7-29-6-23-2-7-2-51-1-2-4z'%20fill='%23CA2E22'/%3e%3c/svg%3e",Ti="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(988)'%20d='m0%200h72l44%202%2048%205%2035%205%2044%208%2035%208%2042%2011%2029%209%2021%207%2023%208%2010%204%2032%2013%2019%208%2015%207%2032%2016%2027%2014%2023%2013%2023%2014%2019%2012%2012%208%2016%2011%2017%2012%206%204v2l5%202%2014%2011%2010%208%2014%2011%2013%2011%2012%2011%2011%209%208%208%208%207%2048%2048%207%208%2011%2012%207%208%2011%2013%2011%2014%2010%2012%2010%2013%205%207v2h2l12%2017%2011%2016%2010%2015%2014%2022%209%2015%2011%2019%209%2016%2015%2029%2013%2026%2013%2029%2011%2027%208%2020%209%2026%207%2021%2011%2037%207%2027%206%2025%208%2040%206%2039%203%2024%204%2038%202%2044v72l-2%2044-5%2048-5%2035-8%2044-8%2035-11%2042-9%2029-7%2021-10%2028-15%2037-11%2025-16%2033-12%2024-11%2020-14%2024-13%2021-9%2014-10%2015-9%2013-13%2018-1%202h-2l-2%205-11%2014-8%2010-11%2014-11%2013-10%2011-9%2011-9%209-7%208-48%2048-8%207-11%2010-8%207-10%209-9%207-16%2013-14%2011-11%208h-2v2l-17%2012-16%2011-15%2010-19%2012-18%2011-17%2010-10%206-12%206-19%2010-32%2016-29%2013-27%2011-15%206-17%206-20%207-25%208-34%2010-36%209-39%208-41%207-32%204-38%204-44%202h-72l-44-2-48-5-35-5-44-8-35-8-42-11-29-9-21-7-23-8-10-4-32-13-19-8-15-7-32-16-27-14-23-13-23-14-19-12-12-8-16-11-17-12-6-4v-2l-5-2-14-11-10-8-14-11-13-11-12-11-11-9-8-8-8-7-48-48-7-8-11-12-7-8-11-13-11-14-10-12-10-13-5-7v-2h-2l-12-17-11-16-10-15-14-22-9-15-11-19-9-16-15-29-13-26-13-29-11-27-8-20-9-26-7-21-11-37-7-27-6-25-8-40-6-39-3-24-4-38-2-44v-72l2-44%205-48%205-35%208-44%208-35%2011-42%209-29%207-21%2010-28%2015-37%2011-25%2016-33%2013-26%2010-18%2014-24%2013-21%209-14%2010-15%209-13%2013-18%201-2h2l2-5%2011-14%208-10%2011-14%2011-13%2010-11%209-11%209-9%207-8%2048-48%208-7%2011-10%208-7%2010-9%209-7%2016-13%2014-11%2011-8h2v-2l17-12%2016-11%2015-10%2019-12%2021-13%2023-13%2022-12%2032-16%2021-10%2030-13%2030-12%2017-6%2020-7%2025-8%2034-10%2036-9%2039-8%2041-7%2032-4%2038-4zm-288%20579-17%203-20%206-16%208-14%209-13%2011-8%208-10%2013-10%2017-6%2015-5%2018-2%2013v25l3%2018%207%2021%2011%2021%2010%2013%2011%2012%2011%209%2013%209%2019%209%2016%205%2016%203h33l16-3%2018-6%2016-8%2011-7%2010-8%2016-16%209-13%206-10%208-19%205-18%202-16v-18l-2-15-6-21-5-12-7-13-11-15-12-13-14-11-13-8-17-8-21-6-13-2zm623%200-17%203-17%205-21%2010-13%209-14%2012-10%2011-12%2018-8%2017-5%2016-3%2016-1%208v18l2%2015%206%2021%208%2018%207%2011%209%2012%2017%2017%2013%209%2010%206%2019%208%2018%205%208%201h33l16-3%2016-5%2019-9%2017-12%2014-13%2011-14%208-13%208-17%206-21%202-13v-25l-3-18-7-21-8-16-8-12-11-13-8-8-13-10-17-10-15-6-18-5-13-2zm-859%20378-16%203-12%205-10%207-9%208-7%2010-6%2013-2%206-1%207v34l1%2021%205%2044%205%2028%206%2028%205%2020%209%2028%2010%2029%2013%2031%207%2015%2014%2027%2012%2021%206%209%205%209%2013%2019%2012%2017%2011%2014%2014%2017%2011%2012%209%2011%2030%2030%2011%209%207%207%2011%209%2016%2013%2019%2014%2027%2018%2031%2019%2014%207%2019%2010%2029%2013%2025%2010%2033%2011%2021%206%2028%207%2031%206%2020%203%2036%204%2021%201h52l21-1%2044-5%2028-5%2028-6%2020-5%2028-9%2029-10%2031-13%2015-7%2029-15%2019-11%209-6%209-5%2019-13%2017-12%2014-11%2017-14%2012-11%2011-9%2030-30%209-11%207-7%209-11%2013-16%2014-19%2018-27%208-13%2010-17%2014-26%209-19%2013-30%2011-30%208-26%205-18%208-36%206-36%204-36%201-21v-34l-2-10-5-13-7-10-8-9-10-7-12-6-12-3-14-1-17%203-16%208-6%204v2l-3%201v2l-4%202-8%2011-5%2010-3%2010-1%208-2%2046-3%2028-6%2035-8%2032-12%2036-13%2031-13%2027-9%2016-14%2023-20%2028-8%2010-9%2011-13%2015-32%2032-11%209-12%2010-14%2011-13%209-15%2010-25%2015-29%2015-19%208-11%205-23%208-15%205-25%207-29%206-19%203-28%203-22%201h-36l-34-2-35-5-29-6-29-8-34-12-25-11-25-12-18-10-19-12-12-8-22-16-11-9-15-13-8-7-30-30-9-11-10-12-10-13-10-14-10-15-9-15-8-14-13-25-14-33-7-20-5-15-7-26-4-18-5-29-3-28-2-46-2-12-5-13-7-10-5-6h-2l-1-3h-2v-2l-13-8-13-5-13-2z'%20fill='%233A8C03'/%3e%3c/svg%3e",Oi="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(936)'%20d='m0%200h176v3h16l20%201%2010%203%2017%201%2012%203%2014%201%208%203%2016%201%207%203%2012%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%208%203%2011%202%208%203%2016%205%209%203%2011%204%2012%205%208%203%2012%205%209%203%207%203%209%203%2032%2016%2012%204%2016%208%2015%208%209%206%2016%208%2011%206%209%206%2011%206%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%209%206%207%206v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2h2v2h2v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%207%208%205%206%203%205%205%205v2h2v2h2l7%208%205%206%203%205%201%203%203%201%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%209%2016%206%209%206%2011%205%208%2012%2023%207%2011%208%2015%208%2018%205%2013%2010%2019%205%2012%207%2020%205%2012%205%2013%206%2015%203%2010%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2018%202%202%202%2014%202%202%201%206%201%2016%202%201%202%2023%202%202%201%206v21l4%201%201%2038%203%201v175l-3%202-1%2034-2%205-1%201-2%2026-2%202-1%2018-2%205-1%201-1%2018-1%205h-2l-1%2012-3%205-1%2014-1%205h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-6%2020-5%2010-3%2010-6%2013-5%2015-4%2010-8%2016-7%2015-6%2015-10%2019-4%207-6%2010-10%2019-3%206-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-8%209-4%204h-2l-2%207-9%209-7%208-5%204-3%207-85%2085h-5l-2%204-8%207-13%2013-5%202-10%209-6%205-7%204-11%2011-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-13%208-12%207-7%204-12%207-14%207-7%205-16%208-19%209-6%202-25%2012-11%205-18%206-17%207-13%205-7%203-36%2012-23%207-11%203-24%206-23%205-25%206-20%203-11%202-25%204-22%203-33%202-1%203h-176l-1-3-38-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-35-14-7-3-9-2-32-16-3-2-9-2-16-8-17-9-6-5-23-11-8-5-5-4-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-10-10-7-4-8-7-9-8-6-3-17-17-5-4-5-2-84-84-3-6-11-12-10-10-3-6-11-12-3-4-3-5-9-10-4-5-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-8-16-7-13-5-7-8-16-8-17-3-9-8-16-9-19-7-21-5-11-5-14-4-10-15-45-3-12-6-20-5-22-2-5-2-15-3-10-3-12-2-18-2-5-2-19-2-8-2-20-2-5-1-36-3-1v-175l3-3%201-30%201-7%202-4%201-20%203-7%201-16%203-12%202-16%205-18%203-18%202-5%202-11%205-18%205-16%203-12%2016-48%204-8%204-12%205-11%207-21%2016-32%203-10%2013-26%2012-20%204-8%208-15%205-7%206-12%206-8%206-12%206-8%206-9%207-11%203-3%203-6%208-9%206-10%203-3%203-6%2013-14%203-6%208-9h2l5-10%207-7%202-3h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%202-3h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2012-11%209-6%2011-10%2010-6%2011-8%209-7%2033-22%2017-10%2013-8%207-4%2010-6%2019-10%207-4%2010-6%2019-10%209-4%209-3%2032-16%2011-3%202-2%2010-2%202-2%207-3%2011-3%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%204-2%2016-2%202-2%2014-2%203-2%2017-1%205-2%201-1%2018-1%208-3%2025-1%201-3%2038-1zm-323%20644-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm768%200-2%202-11%203-1%201-9%202-19%2010-8%208-5%202-12%2011-2%202-2%206-7%207-6%2010-5%2011-3%209-3%2011-2%203v52l3%207%205%2017%209%2017%2010%2012%203%205%204%205h2v2l9%206%2011%209%2019%2010%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%2017-9%2011-9%206-4%207-6%204-5%203-6%208-9%205-9%205-14%207-21v-48l-4-11-6-17-7-14-9-10-3-6-9-10-11-7-9-8-16-8-11-3-6-2-7-3zm-676%20764-2%202-17%202-19%2010-12%2012-4%207-6%2011-1%205v31l5%2012%205%208%208%209h2v2l9%206%2014%207%2017%201v2l4%201h628l8-1%201-2%2015-1%2011-5%209-5%2010-9v-2h2l6-10%205-10%201-3v-33l-8-17-12-13-8-6-14-7-11-1h-7v-2l-2-1z'%20fill='%23E8A654'/%3e%3c/svg%3e",_i="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%202048%202048'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20transform='translate(932)'%20d='m0%200h184v3h15l18%201%203%201v2l28%201%209%203%2016%201%208%203%2012%201%208%203%2011%202%207%202%2013%202%205%202%2011%202%205%202%2011%202%209%203%2010%203%209%202%208%203%2016%205%209%203%207%203%2021%207%2011%205%2011%204%209%204%2011%204%2024%2012%2010%203%2046%2023%208%206%2016%208%209%206%2016%209%209%206%2011%206%209%206%2010%207%2021%2014v2l4%202%2011%207%2010%207%207%206v2l4%202%2012%208v2l4%202%209%206%207%206%204%204v2l4%202%207%206%206%204%207%206%204%204v2h2v2h2v2l4%202v2l4%202v2l4%202v2l4%202v2h2v2h2l6%207%206%205%206%207%206%205%206%207%206%205%206%207%2013%2013%203%206%206%206v2h2v2h2l7%208%205%206%203%205%209%2011%203%205%209%2010%204%205%203%205%207%2011%2010%2012%203%205%207%2011%206%209%207%2010%208%2014%207%2011%206%209%208%2015%206%2012%206%209%208%2015%209%2019%206%2012%206%2016%208%2016%2011%2027%208%2020%2010%2030%203%2011%203%207%202%207%202%206%201%208%203%207%202%207%202%206%201%209%202%202%202%2014%202%202%202%2014%202%202%202%2018%202%202%202%2018%202%201%202%2023%202%201%201%207v25l4%201%201%2035h3v183l-3%202-1%2030-2%205-1%201-1%2022-1%208-2%202-1%2018-2%205-1%201-1%2015-1%204h-2l-1%2012-3%205-1%2015-1%204h-2l-1%2012-3%206-2%2014h-2l-1%209-3%205-2%2013-2%203-2%209-3%209-3%207-3%2010-4%2012-3%2010-6%2013-4%2011-10%2024-8%2016-8%2020-8%2016-10%2019-4%207-6%2010-9%2017-6%209-6%2011-5%207-6%2012-6%208-4%206-7%2011-5%206-2%205-4%205-5%205-3%206-6%207-2%205-8%209-4%204h-2l-2%207-10%2011-2%205-7%207-1%202h-2l-2%204-8%207-4%208-93%2093h-5l-2%204-8%207-12%2012-6%203-10%209-6%203-10%209-4%204-6%203-8%206-7%204-8%207-9%206-11%207-9%206-7%205-11%206-9%206-11%206-9%206-12%206-13%208-19%2010-26%2013-20%208-22%2011-17%206-7%203-17%206-15%206-36%2012-23%207-11%203-24%206-54%2012-23%204-14%202-13%202-22%203-29%202-1%203h-184l-1-3-34-2-9-2-39-6-33-6-41-9-34-9-36-11-29-10-15-6-17-6-10-5-9-2-16-8-11-6-9-2-32-16-17-9-6-5-21-10-7-6-14-7-6-5-14-7-6-5-6-3-6-5-6-3-6-5-6-3-8-7v-2l-7-2-7-6-6-3-9-9-5-4-6-3-10-9-6-3-17-17-5-4-5-2-92-92-3-6-11-12-10-10-3-6-9-10-3-6-11-12-3-4-3-5-5-7-3-5-9-11-3-5-6-9-7-10-7-11-8-14-5-7-6-12-6-8-7-14-12-20-13-26-5-12-4-10-11-22-5-12-5-13-6-16-5-14-4-10-15-45-3-12-6-20-5-22-3-10-4-18-1-8-2-5-2-15-2-6-2-18-2-9-1-17-2-7-1-4-1-32-3-1v-183l3-3%201-26%202-8%201-3%201-23%203-7%201-17%203-11%202-13%202-6%202-14%205-18%208-32%205-16%203-12%2020-60%204-8%204-12%204-8%204-12%2012-24%203-10%2011-23%2011-20%203-6%205-7%208-16%207-13%205-7%206-12%206-8%206-9%207-11%207-10%204-5%203-6%208-9%206-10%203-3%203-6%2012-13%205-8%208-9%203-6%208-9h2l2-4%209-9%202-5%2011-11%202-3h2l2-4h2l2-4%206-5%206-7%206-5%205-6%207-6%205-6%205-5h2l2-4h2l2-4h2l2-4h2l2-4h2l1-3%208-7%206-5%206-4%209-9%208-7%205-4%206-4%2010-8%208-6%2010-9%2010-6%2011-8%209-7%2048-32%2014-8%2010-6%2019-10%207-4%2010-6%2019-10%2023-11%2010-3%2019-10%208-4%209-2%2011-6%209-2%202-2%207-3%2011-3%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2014-2%203-2%2013-2%202-2%2011-1%206-3%2013-1%205-2%201-1%2017-1%206-2%201-1%2015-1%204-2%206-1%2026-1%201-3%2034-1zm-219%20608-2%202-17%202-3%202-10%202-2%202-9%202-11%206-5%204-9%206-18%2018-4%207-7%2010-8%2015-5%2013-3%208v55l3%207%205%2017%209%2017%209%2010%203%206%204%205%2011%207%204%202%201%203%2011%207%209%206%206%203%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%209-5%209-6%2010-8%203-3%205-2%205-5%202-5%207-7%207-9%204-7%205-14%207-21v-53l-3-6-3-9-8-16-6-10-6-9-9-10-7-7-7-4-9-7-23-11-12-4-1-1-17-2-5-2zm600%200-2%202-17%202-3%202-10%202-2%202-9%202-8%206-7%204-4%203v2l-5%201-12%2011-7%207-4%207-7%2010-8%2015-5%2013-3%2010v53l3%207%206%2018%204%208%206%209%2012%2015%203%205%205%204%206%204%203%201%201%203%2011%207%209%206%206%203%209%202%203%202%209%201v2l4%201h48l5-3%2010-2%202-2%2010-2%209-5%209-6%2010-8%203-3%205-2%205-5%202-5%207-7%207-9%204-7%205-14%207-21v-53l-3-6-3-9-8-16-6-10-6-9-9-10-7-7-7-4-9-7-23-11-12-4-1-1-17-2-5-2zm-807%20604-19%2010-12%2012-4%207-6%2012-2%2012-3%205v8l3%205%201%2011%205%209%209%2010%203%206%205%205%208%209h2l2%204h2l2%204%2012%2012%203%206%2010%2010%2010%207%209%209h2l2%204h2l2%204h2l2%204h2v2l8%207%209%206%205%205h2v2l9%206%205%204h2v2l9%206%2010%207%206%204%208%207%2014%207%208%206%2013%207%209%206%2062%2031%209%203%209%204%2010%205%209%202%208%203%2016%205%208%203%2016%205%209%203%208%203%2011%202%205%202%2011%202%207%202%2013%202%207%202%2015%201%207%203%2023%201v2l9%201%2030%201%201%202%204%201h77l7-2%201-1%2028-1%2010-1%202-2%2021-1%206-2%201-1%2017-1%206-2%201-1%2018-2%202-2%2014-2%202-2%2014-2%202-2%2010-2%202-2%2011-1%205-3%2010-2%202-2%2010-2%202-2%207-3%2011-3%202-2%208-3%207-2%2023-11%2038-19%2015-8%209-6%2011-6%209-6%2011-6%209-8%208-5%2011-7%209-8%208-5%2012-11%208-5%2013-13%206-5%205-5v-2l4-2%205-5%206-3%2012-12%202-5%2011-11%205-6%206-5%207-8%205-5%203-6%208-9%205-10%201-11%203-4v-7l-3-7-2-11-8-16-11-12-8-6-14-7h-33l-2%202-9%202-11%206-14%2014-3%207-42%2042v2l-4%202-18%2018-5%202-12%2011-4%203-7%204-7%207-6%203-10%209-6%203-9%206-14%208-4%203-12%206-13%208-19%2010-9%203-19%209-14%205-10%204-7%203-11%203-6%202-7%203-12%202-8%203-9%203-15%202-4%202-16%202-4%202-21%202-3%202-31%202h-7l-1%203h-70l-10-1-2-2-24-1-34-5-44-9-29-8-35-12-25-10-5-3-7-3-6-2-5-2-4-2-1-3-10-2-3-3h-2v-2l-17-8-8-5-5-4-7-3-10-6-3-3-6-3-7-6-3-3-6-3-7-6-3-3-6-3-9-9-5-4-5-2-63-63-3-6-9-10-7-4-9-7-9-2-3-2z'%20fill='%238CBF50'/%3e%3c/svg%3e",Ye={PREGUNTA:1,IMAGEN:2,AUDIO:3,VIDEO:4,NINGUNO:0},H0={class:"messages-container-list"},Z0={class:"message-container"},z0={key:0,class:"btn-container-widget"},j0=["onClick"],Y0={class:"chat-message"},J0={key:0,class:"flex flex-col gap-2"},G0={style:{"font-size":"14px"},class:"flex justify-between gap-2"},K0=["href","onClick"],Q0={class:"flex flex-col items-center"},X0=["src"],el={key:1},tl={key:0,class:"text-center"},nl=["src"],sl=["src","onClick"],rl={key:1},il=["src"],ol=["innerHTML"],al={class:"detail-message flex justify-between mt-2"},ll={key:0,class:"mr-5"},cl={key:1,class:"mr-5"},ul=G(l.defineComponent({__name:"MessageList",props:{messages:{type:Array,default:()=>[]},canLoadMoreMessages:{type:Boolean,default:!1}},emits:["loadMore","retry","onQualifying"],setup(t,{emit:e}){const n=e,s=t,r=l.ref(),{pause:i,resume:o}=F2(r,([{isIntersecting:k}])=>{k&&n("loadMore")});function a(k,p){return!k.response||typeof k.response!="object"?!0:p.iconUnicode===k.response.message}l.onBeforeMount(()=>{s.canLoadMoreMessages||i()}),l.watch(()=>s.canLoadMoreMessages,k=>{if(k){o();return}i()});const c={BOLD:{regex:/\*(.+?)\*(?!\*)/g,tag:"<strong--custom-tag>{val}</strong--custom-tag>"},ITALIC:{regex:/_(.+?)_/,tag:"<i--custom-tag>{val}</i--custom-tag>"},CROSSED_OUT:{regex:/~(.+?)~(?!~)/g,tag:"<del--custom-tag>{val}</del--custom-tag>"},URL:{regex:/(http?s?:\/\/[^\s]+)/g,tag:'<a--custom-tag href="{val}" target="_blank">{val}</a--custom-tag>'}};function u(k){const p=Object.values(c);return!p||Array.isArray(p)&&p.length===0?k:p.reduce((E,w)=>E.replace(w.regex,(O,C)=>/--custom-tag/.test(O)?O:w.tag.replace(/{val}/g,C)),k).replace(/--custom-tag/g,"")}const h=[{label:"Excelente",value:1,icon:Ti,iconUnicode:"😊"},{label:"Buena",value:2,icon:_i,iconUnicode:"😄"},{label:"Aceptable",value:3,icon:Oi,iconUnicode:"🙂"},{label:"Mala",value:4,icon:bi,iconUnicode:"😐"},{label:"Muy Mala",value:5,icon:Si,iconUnicode:"🙁"}],d={"😊":Ti,"😄":_i,"🙂":Oi,"😐":bi,"🙁":Si,"":null};return(k,p)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{ref_key:"target",ref:r,class:"target"},null,512),l.createElementVNode("div",H0,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.messages,m=>{var E,w,O;return l.openBlock(),l.createElementBlock("div",{key:m.id,class:l.normalizeClass(["message",m.esCliente?"message-right":"message-left"])},[l.createElementVNode("div",Z0,[m.error&&m.esCliente?(l.openBlock(),l.createElementBlock("div",z0,[l.createElementVNode("button",{text:"",rounded:"",class:"btn-danger",icon:"fa-solid fa-circle-exclamation","aria-label":"Cancel",onClick:C=>n("retry",m)},[l.createVNode(W0)],8,j0)])):l.createCommentVNode("",!0),l.createElementVNode("div",Y0,[l.createElementVNode("div",{class:l.normalizeClass(["bubble",m.esCliente?"right":"left"])},[l.createElementVNode("div",{class:l.normalizeClass(m.esCliente?"content-right":"content-left")},[m.message==="😊😄🙂😐🙁"?(l.openBlock(),l.createElementBlock("div",J0,[p[0]||(p[0]=l.createElementVNode("div",{class:"mb-2"},[l.createElementVNode("strong",{style:{display:"block"}},"Ayúdanos a mejorar nuestro servicio."),l.createElementVNode("span",null,"¿Que le pareció la atención?")],-1)),l.createElementVNode("div",G0,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(h,C=>l.createElementVNode("a",{key:C.value,href:m.response?void 0:"javascript:",class:l.normalizeClass(["btn-icon",{"content-disabled":!a(m,C)}]),onClick:x=>!m.response&&n("onQualifying",{message:m,emoji:C})},[l.createElementVNode("div",Q0,[l.createElementVNode("img",{src:C.icon,alt:"icono",class:"icon"},null,8,X0),l.createElementVNode("span",null,l.toDisplayString(C.label),1)])],10,K0)),64))])])):(l.openBlock(),l.createElementBlock("div",el,[((E=m.messageType)==null?void 0:E.code)===l.unref(Ye).IMAGEN?(l.openBlock(),l.createElementBlock("div",tl,[l.createVNode(l.unref(ns),{alt:"Image",preview:""},{image:l.withCtx(()=>[l.createElementVNode("img",{src:m.thumbnailFile??m.urlFile,alt:"image",width:"150"},null,8,nl)]),original:l.withCtx(C=>[l.createElementVNode("img",{src:m.urlFile,alt:"preview",style:l.normalizeStyle(C.style),width:"800",onClick:C.previewCallback},null,12,sl)]),_:2},1024)])):l.createCommentVNode("",!0),d[m.message??""]?(l.openBlock(),l.createElementBlock("div",rl,[l.createElementVNode("img",{src:d[m.message],alt:"icono",class:"icon"},null,8,il)])):(l.openBlock(),l.createElementBlock("div",{key:2,class:"message-text",style:{"white-space":"pre-line"},innerHTML:u(m.message)},null,8,ol))])),l.createElementVNode("div",al,[(w=m.sender)!=null&&w.nombreCompleto?(l.openBlock(),l.createElementBlock("span",ll,l.toDisplayString(m.esCliente?(O=m.sender)==null?void 0:O.nombreCompleto:"ECOSISTEMA JL"),1)):(l.openBlock(),l.createElementBlock("span",cl)),l.createElementVNode("span",null,l.toDisplayString(l.unref(S).fromISO(m.createdAt).toFormat("dd-MM-yyyy HH:mm")),1)])],2)],2)])])],2)}),128))])],64))}}),[["__scopeId","data-v-d73d4995"]]),hl={},fl={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{width:"28px",height:"28px"}};function dl(t,e){return l.openBlock(),l.createElementBlock("svg",fl,e[0]||(e[0]=[l.createElementVNode("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"},null,-1),l.createElementVNode("path",{d:"M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z",class:"spinner_ajPY"},null,-1)]))}const ml=G(hl,[["render",dl],["__scopeId","data-v-d9a6b2b7"]]);function pl(t,e,n){for(let s=t.length-1;s>=0;s--)if(t[s][e]===n)return s;return-1}const pe=Object.create(null);pe.open="0",pe.close="1",pe.ping="2",pe.pong="3",pe.message="4",pe.upgrade="5",pe.noop="6";const zt=Object.create(null);Object.keys(pe).forEach(t=>{zt[pe[t]]=t});const Pn={type:"error",data:"parser error"},Ci=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ni=typeof ArrayBuffer=="function",xi=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,qn=({type:t,data:e},n,s)=>Ci&&e instanceof Blob?n?s(e):Ai(e,s):Ni&&(e instanceof ArrayBuffer||xi(e))?n?s(e):Ai(new Blob([e]),s):s(pe[t]+(e||"")),Ai=(t,e)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];e("b"+(s||""))},n.readAsDataURL(t)};function Mi(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Wn;function yl(t,e){if(Ci&&t.data instanceof Blob)return t.data.arrayBuffer().then(Mi).then(e);if(Ni&&(t.data instanceof ArrayBuffer||xi(t.data)))return e(Mi(t.data));qn(t,!1,n=>{Wn||(Wn=new TextEncoder),e(Wn.encode(n))})}const Ri="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ut=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Ri.length;t++)ut[Ri.charCodeAt(t)]=t;const gl=t=>{let e=t.length*.75,n=t.length,s,r=0,i,o,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const u=new ArrayBuffer(e),h=new Uint8Array(u);for(s=0;s<n;s+=4)i=ut[t.charCodeAt(s)],o=ut[t.charCodeAt(s+1)],a=ut[t.charCodeAt(s+2)],c=ut[t.charCodeAt(s+3)],h[r++]=i<<2|o>>4,h[r++]=(o&15)<<4|a>>2,h[r++]=(a&3)<<6|c&63;return u},wl=typeof ArrayBuffer=="function",Hn=(t,e)=>{if(typeof t!="string")return{type:"message",data:Ii(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:kl(t.substring(1),e)}:zt[n]?t.length>1?{type:zt[n],data:t.substring(1)}:{type:zt[n]}:Pn},kl=(t,e)=>{if(wl){const n=gl(t);return Ii(n,e)}else return{base64:!0,data:t}},Ii=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Vi="",vl=(t,e)=>{const n=t.length,s=new Array(n);let r=0;t.forEach((i,o)=>{qn(i,!1,a=>{s[o]=a,++r===n&&e(s.join(Vi))})})},El=(t,e)=>{const n=t.split(Vi),s=[];for(let r=0;r<n.length;r++){const i=Hn(n[r],e);if(s.push(i),i.type==="error")break}return s};function bl(){return new TransformStream({transform(t,e){yl(t,n=>{const s=n.length;let r;if(s<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,s);else if(s<65536){r=new Uint8Array(3);const i=new DataView(r.buffer);i.setUint8(0,126),i.setUint16(1,s)}else{r=new Uint8Array(9);const i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(s))}t.data&&typeof t.data!="string"&&(r[0]|=128),e.enqueue(r),e.enqueue(n)})}})}let Zn;function jt(t){return t.reduce((e,n)=>e+n.length,0)}function Yt(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let s=0;for(let r=0;r<e;r++)n[r]=t[0][s++],s===t[0].length&&(t.shift(),s=0);return t.length&&s<t[0].length&&(t[0]=t[0].slice(s)),n}function Sl(t,e){Zn||(Zn=new TextDecoder);const n=[];let s=0,r=-1,i=!1;return new TransformStream({transform(o,a){for(n.push(o);;){if(s===0){if(jt(n)<1)break;const c=Yt(n,1);i=(c[0]&128)===128,r=c[0]&127,r<126?s=3:r===126?s=1:s=2}else if(s===1){if(jt(n)<2)break;const c=Yt(n,2);r=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),s=3}else if(s===2){if(jt(n)<8)break;const c=Yt(n,8),u=new DataView(c.buffer,c.byteOffset,c.length),h=u.getUint32(0);if(h>Math.pow(2,21)-1){a.enqueue(Pn);break}r=h*Math.pow(2,32)+u.getUint32(4),s=3}else{if(jt(n)<r)break;const c=Yt(n,r);a.enqueue(Hn(i?c:Zn.decode(c),e)),s=0}if(r===0||r>t){a.enqueue(Pn);break}}}})}const Li=4;function P(t){if(t)return Tl(t)}function Tl(t){for(var e in P.prototype)t[e]=P.prototype[e];return t}P.prototype.on=P.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},P.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},P.prototype.off=P.prototype.removeListener=P.prototype.removeAllListeners=P.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var s,r=0;r<n.length;r++)if(s=n[r],s===e||s.fn===e){n.splice(r,1);break}return n.length===0&&delete this._callbacks["$"+t],this},P.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(n){n=n.slice(0);for(var s=0,r=n.length;s<r;++s)n[s].apply(this,e)}return this},P.prototype.emitReserved=P.prototype.emit,P.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},P.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Jt=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),ie=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Ol="arraybuffer";function R1(){}function Di(t,...e){return e.reduce((n,s)=>(t.hasOwnProperty(s)&&(n[s]=t[s]),n),{})}const _l=ie.setTimeout,Cl=ie.clearTimeout;function Gt(t,e){e.useNativeTimers?(t.setTimeoutFn=_l.bind(ie),t.clearTimeoutFn=Cl.bind(ie)):(t.setTimeoutFn=ie.setTimeout.bind(ie),t.clearTimeoutFn=ie.clearTimeout.bind(ie))}const Nl=1.33;function xl(t){return typeof t=="string"?Al(t):Math.ceil((t.byteLength||t.size)*Nl)}function Al(t){let e=0,n=0;for(let s=0,r=t.length;s<r;s++)e=t.charCodeAt(s),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(s++,n+=4);return n}function Bi(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ml(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function Rl(t){let e={},n=t.split("&");for(let s=0,r=n.length;s<r;s++){let i=n[s].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return e}class Il extends Error{constructor(e,n,s){super(e),this.description=n,this.context=s,this.type="TransportError"}}class zn extends P{constructor(e){super(),this.writable=!1,Gt(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,s){return super.emitReserved("error",new Il(e,n,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=Hn(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const n=Ml(e);return n.length?"?"+n:""}}class Vl extends zn{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};El(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,vl(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Bi()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}let Fi=!1;try{Fi=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ll=Fi;function Dl(){}class Bl extends Vl{constructor(e){if(super(e),typeof location<"u"){const n=location.protocol==="https:";let s=location.port;s||(s=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,n){const s=this.request({method:"POST",data:e});s.on("success",n),s.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=e}}let Je=class tn extends P{constructor(e,n,s){super(),this.createRequest=e,Gt(this,s),this._opts=s,this._method=s.method||"GET",this._uri=n,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const n=Di(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(n);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&s.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var r;s.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=tn.requestsCount++,tn.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Dl,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete tn.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};if(Je.requestsCount=0,Je.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ui);else if(typeof addEventListener=="function"){const t="onpagehide"in ie?"pagehide":"unload";addEventListener(t,Ui,!1)}}function Ui(){for(let t in Je.requests)Je.requests.hasOwnProperty(t)&&Je.requests[t].abort()}const Fl=function(){const t=$i({xdomain:!1});return t&&t.responseType!==null}();class Ul extends Bl{constructor(e){super(e);const n=e&&e.forceBase64;this.supportsBinary=Fl&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Je($i,this.uri(),e)}}function $i(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Ll))return new XMLHttpRequest}catch{}if(!e)try{return new ie[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Pi=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class $l extends zn{get name(){return"websocket"}doOpen(){const e=this.uri(),n=this.opts.protocols,s=Pi?{}:Di(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,n,s)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const s=e[n],r=n===e.length-1;qn(s,this.supportsBinary,i=>{try{this.doWrite(s,i)}catch{}r&&Jt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Bi()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}}const jn=ie.WebSocket||ie.MozWebSocket;class Pl extends $l{createSocket(e,n,s){return Pi?new jn(e,n,s):n?new jn(e,n):new jn(e)}doWrite(e,n){this.ws.send(n)}}class ql extends zn{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const n=Sl(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(n).getReader(),r=bl();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const i=()=>{s.read().then(({done:a,value:c})=>{a||(this.onPacket(c),i())}).catch(a=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const s=e[n],r=n===e.length-1;this._writer.write(s).then(()=>{r&&Jt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const Wl={websocket:Pl,webtransport:ql,polling:Ul},Hl=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Zl=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Yn(t){if(t.length>8e3)throw"URI too long";const e=t,n=t.indexOf("["),s=t.indexOf("]");n!=-1&&s!=-1&&(t=t.substring(0,n)+t.substring(n,s).replace(/:/g,";")+t.substring(s,t.length));let r=Hl.exec(t||""),i={},o=14;for(;o--;)i[Zl[o]]=r[o]||"";return n!=-1&&s!=-1&&(i.source=e,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=zl(i,i.path),i.queryKey=jl(i,i.query),i}function zl(t,e){const n=/\/{2,9}/g,s=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function jl(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,r,i){r&&(n[r]=i)}),n}const Jn=typeof addEventListener=="function"&&typeof removeEventListener=="function",Kt=[];Jn&&addEventListener("offline",()=>{Kt.forEach(t=>t())},!1);class Oe extends P{constructor(e,n){if(super(),this.binaryType=Ol,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){const s=Yn(e);n.hostname=s.host,n.secure=s.protocol==="https"||s.protocol==="wss",n.port=s.port,s.query&&(n.query=s.query)}else n.host&&(n.hostname=Yn(n.host).host);Gt(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(s=>{const r=s.prototype.name;this.transports.push(r),this._transportsByName[r]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Rl(this.opts.query)),Jn&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Kt.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=Li,n.transport=e,this.id&&(n.sid=this.id);const s=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Oe.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(e);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Oe.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=e.data,this._onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let s=0;s<this.writeBuffer.length;s++){const r=this.writeBuffer[s].data;if(r&&(n+=xl(r)),s>0&&n>this._maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Jt(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,s){return this._sendPacket("message",e,n,s),this}send(e,n,s){return this._sendPacket("message",e,n,s),this}_sendPacket(e,n,s,r){if(typeof n=="function"&&(r=n,n=void 0),typeof s=="function"&&(r=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const i={type:e,data:n,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},s=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(Oe.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Jn&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Kt.indexOf(this._offlineEventListener);s!==-1&&Kt.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}}Oe.protocol=Li;class Yl extends Oe{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let n=this.createTransport(e),s=!1;Oe.priorWebsocketSuccess=!1;const r=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!s)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Oe.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(h(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const k=new Error("probe error");k.transport=n.name,this.emitReserved("upgradeError",k)}}))};function i(){s||(s=!0,h(),n.close(),n=null)}const o=d=>{const k=new Error("probe error: "+d);k.transport=n.name,i(),this.emitReserved("upgradeError",k)};function a(){o("transport closed")}function c(){o("socket closed")}function u(d){n&&d.name!==n.name&&i()}const h=()=>{n.removeListener("open",r),n.removeListener("error",o),n.removeListener("close",a),this.off("close",c),this.off("upgrading",u)};n.once("open",r),n.once("error",o),n.once("close",a),this.once("close",c),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const n=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&n.push(e[s]);return n}}let Jl=class extends Yl{constructor(e,n={}){const s=typeof e=="object"?e:n;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(r=>Wl[r]).filter(r=>!!r)),super(e,s)}};function Gl(t,e="",n){let s=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),s=Yn(t)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const i=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+i+":"+s.port+e,s.href=s.protocol+"://"+i+(n&&n.port===s.port?"":":"+s.port),s}const Kl=typeof ArrayBuffer=="function",Ql=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,qi=Object.prototype.toString,Xl=typeof Blob=="function"||typeof Blob<"u"&&qi.call(Blob)==="[object BlobConstructor]",ec=typeof File=="function"||typeof File<"u"&&qi.call(File)==="[object FileConstructor]";function Gn(t){return Kl&&(t instanceof ArrayBuffer||Ql(t))||Xl&&t instanceof Blob||ec&&t instanceof File}function Qt(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,s=t.length;n<s;n++)if(Qt(t[n]))return!0;return!1}if(Gn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Qt(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Qt(t[n]))return!0;return!1}function tc(t){const e=[],n=t.data,s=t;return s.data=Kn(n,e),s.attachments=e.length,{packet:s,buffers:e}}function Kn(t,e){if(!t)return t;if(Gn(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let s=0;s<t.length;s++)n[s]=Kn(t[s],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=Kn(t[s],e));return n}return t}function nc(t,e){return t.data=Qn(t.data,e),delete t.attachments,t}function Qn(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=Qn(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=Qn(t[n],e));return t}const sc=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],rc=5;var N;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(N||(N={}));class ic{constructor(e){this.replacer=e}encode(e){return(e.type===N.EVENT||e.type===N.ACK)&&Qt(e)?this.encodeAsBinary({type:e.type===N.EVENT?N.BINARY_EVENT:N.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===N.BINARY_EVENT||e.type===N.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=tc(e),s=this.encodeAsString(n.packet),r=n.buffers;return r.unshift(s),r}}function Wi(t){return Object.prototype.toString.call(t)==="[object Object]"}class Xn extends P{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const s=n.type===N.BINARY_EVENT;s||n.type===N.BINARY_ACK?(n.type=s?N.EVENT:N.ACK,this.reconstructor=new oc(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Gn(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const s={type:Number(e.charAt(0))};if(N[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===N.BINARY_EVENT||s.type===N.BINARY_ACK){const i=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const o=e.substring(i,n);if(o!=Number(o)||e.charAt(n)!=="-")throw new Error("Illegal attachments");s.attachments=Number(o)}if(e.charAt(n+1)==="/"){const i=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););s.nsp=e.substring(i,n)}else s.nsp="/";const r=e.charAt(n+1);if(r!==""&&Number(r)==r){const i=n+1;for(;++n;){const o=e.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===e.length)break}s.id=Number(e.substring(i,n+1))}if(e.charAt(++n)){const i=this.tryParse(e.substr(n));if(Xn.isPayloadValid(s.type,i))s.data=i;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case N.CONNECT:return Wi(n);case N.DISCONNECT:return n===void 0;case N.CONNECT_ERROR:return typeof n=="string"||Wi(n);case N.EVENT:case N.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&sc.indexOf(n[0])===-1);case N.ACK:case N.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class oc{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=nc(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const ac=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Xn,Encoder:ic,get PacketType(){return N},protocol:rc},Symbol.toStringTag,{value:"Module"}));function fe(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const lc=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Hi extends P{constructor(e,n,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[fe(e,"open",this.onopen.bind(this)),fe(e,"packet",this.onpacket.bind(this)),fe(e,"error",this.onerror.bind(this)),fe(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){var s,r,i;if(lc.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const o={type:N.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const h=this.ids++,d=n.pop();this._registerAckCallback(h,d),o.id=h}const a=(r=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||r===void 0?void 0:r.writable,c=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,n){var s;const r=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(r===void 0){this.acks[e]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},r),o=(...a)=>{this.io.clearTimeoutFn(i),n.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...n){return new Promise((s,r)=>{const i=(o,a)=>o?r(o):s(a);i.withError=!0,n.push(i),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((r,...i)=>s!==this._queue[0]?void 0:(r!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(r)):(this._queue.shift(),n&&n(null,...i)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:N.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case N.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case N.EVENT:case N.BINARY_EVENT:this.onevent(e);break;case N.ACK:case N.BINARY_ACK:this.onack(e);break;case N.DISCONNECT:this.ondisconnect();break;case N.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const s of n)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let s=!1;return function(...r){s||(s=!0,n.packet({type:N.ACK,id:e,data:r}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:N.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let s=0;s<n.length;s++)if(e===n[s])return n.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let s=0;s<n.length;s++)if(e===n[s])return n.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const s of n)s.apply(this,e.data)}}}function Ge(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Ge.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0},Ge.prototype.reset=function(){this.attempts=0},Ge.prototype.setMin=function(t){this.ms=t},Ge.prototype.setMax=function(t){this.max=t},Ge.prototype.setJitter=function(t){this.jitter=t};class es extends P{constructor(e,n){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Gt(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Ge({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const r=n.parser||ac;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Jl(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=fe(n,"open",function(){s.onopen(),e&&e()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=fe(n,"error",i);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(fe(e,"ping",this.onping.bind(this)),fe(e,"data",this.ondata.bind(this)),fe(e,"error",this.onerror.bind(this)),fe(e,"close",this.onclose.bind(this)),fe(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){Jt(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new Hi(this,e,n),this.nsps[e]=s),s}_destroy(e){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let s=0;s<n.length;s++)this.engine.write(n[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,n){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},n);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ht={};function Xt(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=Gl(t,e.path||"/socket.io"),s=n.source,r=n.id,i=n.path,o=ht[r]&&i in ht[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new es(s,e):(ht[r]||(ht[r]=new es(s,e)),c=ht[r]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}Object.assign(Xt,{Manager:es,Socket:Hi,io:Xt,connect:Xt});var Zi=(t=>(t.WEBCHAT="webchat",t.CENTRAL="central",t.WHATSAPP="whatsapp",t.TELEGRAM="telegram",t.SMS="sms",t))(Zi||{});function cc(){const t=l.computed(()=>["Android","iPhone"].includes(e()));function e(){var c,u;const n=window.navigator.userAgent,s=((u=(c=window.navigator)==null?void 0:c.userAgentData)==null?void 0:u.platform)||window.navigator.platform,r=["macOS","Macintosh","MacIntel","MacPPC","Mac68K"],i=["Win32","Win64","Windows","WinCE"],o=["iPhone","iPad","iPod"];let a=null;return r.indexOf(s)!==-1?a="Mac OS":o.indexOf(s)!==-1?a="iPhone":i.indexOf(s)!==-1?a="Windows":/Android/.test(n)?a="Android":/Linux/.test(s)&&(a="Linux"),a}return{isMobile:t}}const uc={},hc={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 280.067 280.067","xml:space":"preserve"};function fc(t,e){return l.openBlock(),l.createElementBlock("svg",hc,e[0]||(e[0]=[l.createElementVNode("g",null,[l.createElementVNode("path",{fill:"currentColor",d:`M149.823,257.142c-31.398,30.698-81.882,30.576-113.105-0.429
|
7
|
+
c-31.214-30.987-31.337-81.129-0.42-112.308l-0.026-0.018L149.841,31.615l14.203-14.098c23.522-23.356,61.65-23.356,85.172,0
|
8
|
+
s23.522,61.221,0,84.586l-125.19,123.02l-0.044-0.035c-15.428,14.771-40.018,14.666-55.262-0.394
|
9
|
+
c-15.244-15.069-15.34-39.361-0.394-54.588l-0.044-0.053l13.94-13.756l69.701-68.843l13.931,13.774l-83.632,82.599
|
10
|
+
c-7.701,7.596-7.701,19.926,0,27.53s20.188,7.604,27.88,0L235.02,87.987l-0.035-0.026l0.473-0.403
|
11
|
+
c15.682-15.568,15.682-40.823,0-56.39s-41.094-15.568-56.776,0l-0.42,0.473l-0.026-0.018l-14.194,14.089L50.466,158.485
|
12
|
+
c-23.522,23.356-23.522,61.221,0,84.577s61.659,23.356,85.163,0l99.375-98.675l14.194-14.089l14.194,14.089l-14.194,14.098
|
13
|
+
l-99.357,98.675C149.841,257.159,149.823,257.142,149.823,257.142z`})],-1)]))}const dc=G(uc,[["render",fc]]),mc={class:"auth-loading"},pc={class:"relative"},yc=G(l.defineComponent({__name:"LoadingComponent",props:{size:{type:String,default:"normal"},footer_text:{type:String}},setup(t){const e=t;return(n,s)=>(l.openBlock(),l.createElementBlock("div",mc,[l.createElementVNode("div",pc,[(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(["icon_1",{"sm-loader-size":e.size==="small"}]),viewBox:"0 0 275 276",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s[0]||(s[0]=[l.createStaticVNode('<path d="M137.1 1C124.2 1 111.2 2.80001 98.3 6.60001C68.5 15.4 43.9 33.5 26.8 56.7C9.69999 79.9 0.0999756 108.3 0.0999756 137.9C0.0999756 150.8 1.90001 163.8 5.70001 176.7C7.60001 183 13.3 187 19.5 187C25.7 187 22.2 186.8 23.6 186.4C31.2 184.1 35.6 176.1 33.3 168.5C30.3 158.3 28.8 148 28.8 137.8C28.8 114.5 36.4 92 49.9 73.7C63.4 55.3 82.7 41.1 106.3 34.2C116.5 31.2 126.8 29.7 137 29.7C160.3 29.7 182.8 37.3 201.1 50.8C219.5 64.3 233.7 83.6 240.6 107.2C242.5 113.5 248.2 117.5 254.4 117.5C260.6 117.5 257.1 117.3 258.5 116.9C266.1 114.6 270.5 106.6 268.2 99C259.4 69.2 241.3 44.6 218.1 27.5C194.9 10.4 166.5 0.799988 136.9 0.799988" fill="url(#paint0_linear_672_78)" data-v-decccef5></path><path d="M254.5 88.9C253.1 88.9 251.8 89.1 250.4 89.5C242.8 91.8 238.4 99.8 240.7 107.4C243.7 117.6 245.2 127.9 245.2 138.1C245.2 161.4 237.6 183.9 224.1 202.2C210.6 220.6 191.3 234.8 167.7 241.7C157.5 244.7 147.2 246.2 137 246.2C113.7 246.2 91.2 238.6 72.9 225.1C54.5 211.6 40.3001 192.3 33.4001 168.7C31.5001 162.4 25.8 158.4 19.6 158.4C13.4 158.4 16.9 158.6 15.5 159C7.90003 161.3 3.50001 169.3 5.80001 176.9C14.6 206.7 32.7001 231.3 55.9001 248.4C79.1001 265.5 107.5 275.1 137.1 275.1C150 275.1 163 273.3 175.9 269.5C205.7 260.7 230.3 242.6 247.4 219.4C264.5 196.2 274.1 167.8 274.1 138.2C274.1 125.4 272.3 112.3 268.5 99.4C266.6 93.1 260.9 89.1 254.7 89.1" fill="url(#paint1_linear_672_78)" data-v-decccef5></path><defs data-v-decccef5><linearGradient id="paint0_linear_672_78" x1="-2.44076e-05" y1="94.1" x2="269" y2="94.1" gradientUnits="userSpaceOnUse" data-v-decccef5><stop stop-color="white" data-v-decccef5></stop><stop offset="1" stop-color="white" stop-opacity="0" data-v-decccef5></stop></linearGradient><linearGradient id="paint1_linear_672_78" x1="5.00002" y1="181.9" x2="274" y2="181.9" gradientUnits="userSpaceOnUse" data-v-decccef5><stop stop-color="white" stop-opacity="0" data-v-decccef5></stop><stop offset="1" stop-color="white" data-v-decccef5></stop></linearGradient></defs>',3)]),2)),(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(["icon_2",{hidden:e.size==="small"}]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 176 74"},s[1]||(s[1]=[l.createElementVNode("path",{fill:"#fff",d:"M6.4 70v-3.5c-.3 1.3-1.5 4.5-2.2 6.6h-.8c-.6-1.7-1.7-5.2-2.1-6.6v6.6H.5v-7.3h1.4c.8 2.1 1.7 5.1 2 6.1.1-.7 1.3-3.9 2.1-6.1h1.3v7.3h-.9V70ZM10.8 65.8v7.3h-.9v-7.3h.9ZM13.5 73.1v-7.3h1.2c2.9 5.1 3.3 5.8 3.4 6.2v-6.1h.9v7.3h-1.1c-3.1-5.6-3.3-6-3.5-6.3v6.4h-.8l-.1-.2ZM22.5 65.8v7.3h-.9v-7.3h.9ZM25.5 71c.1.9.8 1.4 1.6 1.4s1.4-.4 1.4-1.3-.4-1.1-1.7-1.5c-1.5-.5-2.1-1-2.1-2s.9-1.9 2.2-1.9c1.3 0 2.2.9 2.3 1.9h-.9c-.1-.7-.5-1.2-1.4-1.2-.9 0-1.3.4-1.3 1.1 0 .7.4.9 1.5 1.3 1.8.5 2.2 1.2 2.2 2.2 0 1-.8 2.1-2.4 2.1-1.6 0-2.4-.8-2.5-2.1h1.1ZM32.9 66.6h-2.1v-.8H36v.8h-2.1v6.5H33v-6.5h-.1ZM41.9 69.6h-3.3v2.6h3.6v.8h-4.5v-7.3H42v.8h-3.4v2.3h3.3v.8ZM45.2 69.8v3.3h-.9v-7.3h2.6c1.3 0 2.2.6 2.2 1.9 0 1.3-.6 1.5-1.2 1.7.8.2 1.1.8 1.1 1.8 0 .8 0 1.4.1 1.9h-.9c0-.3-.1-1-.1-1.7 0-1.2-.4-1.6-1.6-1.6h-1.3Zm0-.7h1.3c.9 0 1.6-.3 1.6-1.3s-.5-1.2-1.4-1.2h-1.6v2.5h.1ZM52.3 65.8v7.3h-.9v-7.3h.9ZM60.7 69.4c0 2.1-1 3.8-3.1 3.8s-3-1.6-3-3.8c0-2.2 1-3.7 3.1-3.7s3 1.6 3 3.7Zm-5.2 0c0 1.7.7 3 2.1 3 1.4 0 2.1-1.3 2.1-3s-.7-2.9-2.1-2.9c-1.4 0-2.1 1.3-2.1 2.9ZM66.5 65.8h2.4c1.3 0 2.3.7 2.3 2s-1 2.1-2.5 2.1h-1.4V73h-.9v-7.3l.1.1Zm.9 3.4h1.4c.9 0 1.6-.3 1.6-1.4 0-1.1-.6-1.3-1.6-1.3h-1.4v2.7ZM74.2 65.8v4.6c0 1.1.4 2 1.7 2 1.3 0 1.7-.8 1.7-2v-4.6h.9v4.6c0 1.5-.6 2.7-2.6 2.7s-2.6-1-2.6-2.7v-4.7h.9v.1Zm3.5-2.1-1.6 1.4h-.9l1.3-1.4H77.7ZM81.1 65.8h2.5c1.3 0 2.1.7 2.1 1.8s-.6 1.4-1 1.5c.5.2 1.3.6 1.3 1.8 0 1.2-1 2.1-2.4 2.1h-2.4v-7.3l-.1.1Zm2.3 3c1 0 1.4-.4 1.4-1.1 0-.7-.4-1.1-1.4-1.1h-1.5v2.3h1.4l.1-.1ZM82 72.3h1.5c.9 0 1.6-.4 1.6-1.4 0-1-.6-1.4-1.7-1.4H82v2.8ZM88.2 65.8h.9v6.5h3.5v.8h-4.4v-7.3ZM95.3 65.8v7.3h-.9v-7.3h.9ZM103.2 71c-.2 1.2-1 2.2-2.7 2.2-1.7 0-2.9-1.6-2.9-3.8 0-2.2.9-3.7 3-3.7s2.4 1 2.6 2.2h-.9c-.2-.8-.6-1.5-1.7-1.5s-2 1.4-2 2.9.5 3 2 3 1.5-.6 1.7-1.5h.9v.2ZM111.1 69.4c0 2.1-1 3.8-3.1 3.8s-3-1.6-3-3.8c0-2.2 1-3.7 3.1-3.7s3 1.6 3 3.7Zm-5.2 0c0 1.7.7 3 2.1 3 1.4 0 2.1-1.3 2.1-3s-.7-2.9-2.1-2.9c-1.4 0-2.1 1.3-2.1 2.9ZM116.9 65.8h2.4c1.8 0 3.2 1.2 3.2 3.5s-1.2 3.8-3.4 3.8h-2.2v-7.3Zm.9 6.5h1.3c1.7 0 2.5-1.1 2.5-3s-1-2.7-2.4-2.7h-1.3v5.8l-.1-.1ZM128.9 69.6h-3.3v2.6h3.6v.8h-4.5v-7.3h4.3v.8h-3.4v2.3h3.3v.8ZM134.8 65.8h2.5c1.3 0 2.1.7 2.1 1.8s-.6 1.4-1 1.5c.5.2 1.3.6 1.3 1.8 0 1.2-1 2.1-2.4 2.1h-2.4v-7.3l-.1.1Zm2.3 3c1 0 1.4-.4 1.4-1.1 0-.7-.4-1.1-1.4-1.1h-1.5v2.3h1.4l.1-.1Zm-1.4 3.5h1.5c.9 0 1.6-.4 1.6-1.4 0-1-.6-1.4-1.7-1.4h-1.4v2.8ZM147.7 69.4c0 2.1-1 3.8-3.1 3.8s-3-1.6-3-3.8c0-2.2 1-3.7 3.1-3.7s3 1.6 3 3.7Zm-5.2 0c0 1.7.7 3 2.1 3 1.4 0 2.1-1.3 2.1-3s-.7-2.9-2.1-2.9c-1.4 0-2.1 1.3-2.1 2.9ZM150 65.8h.9v6.5h3.5v.8H150v-7.3ZM157.1 65.8v7.3h-.9v-7.3h.9ZM161.3 73.1l-2.4-7.3h1l1.1 3.6c.3 1 .7 2.1.8 2.8.1-.6.6-1.8.9-2.8l1.2-3.6h.9l-2.5 7.3h-1.1.1ZM167.6 65.8v7.3h-.9v-7.3h.9ZM171.1 70.9l-.7 2.2h-.9l2.4-7.3h1.1l2.5 7.3h-1l-.7-2.2h-2.7Zm2.4-.8c-.6-1.9-1-2.9-1.1-3.5-.2.9-.6 2-1.1 3.5h2.2ZM8.2 49.2c0 3.8-.9 6.3-5.5 6.3s-1.7 0-2.2-.2v-3.4c.4 0 .9.1 1.5.1 1.8 0 2.1-.9 2.1-2.6V32.3h4.1v16.9ZM15.3 32.4v15.7c0 1.9.5 4.1 3 4.1s3-1.9 3-4.1V32.3h4.1v15.8c0 4.1-1.6 7.4-7.1 7.4s-7-3.1-7-7.4V32.3h4.1l-.1.1ZM31.5 48.8c.2 1.9 1 3.6 3.1 3.6s2.8-1.3 2.8-3-.9-3-3.8-4.4c-3.9-1.9-5.5-3.5-5.5-6.9 0-3.4 2.4-6.2 6.5-6.2s6.4 3.5 6.5 6.5h-4c-.1-1.3-.5-3.2-2.5-3.2s-2.3 1.1-2.3 2.6.7 2.4 3.4 3.7c4.1 1.9 5.9 3.7 5.9 7.6 0 3.9-2.2 6.6-7.1 6.6-4.9 0-6.9-3.4-7-6.8h4.1l-.1-.1ZM47 35.9h-4.9v-3.6H56v3.6h-4.9v19.3H47V35.9ZM61.8 32.4v22.9h-4.1V32.4h4.1ZM78.7 48.6c-.1 1.2-.5 7.1-6.9 7.1s-7.3-5.7-7.3-11.9S66.7 32 72 32s6.5 5.2 6.6 7h-4.1c0-.8-.1-3.6-2.6-3.6s-3.2 3.1-3.2 8.4c0 5.3.4 8.4 3.1 8.4s2.6-2.8 2.7-3.6H78.7ZM84.8 32.4v22.9h-4.1V32.4h4.1ZM91.8 49.5l-1.1 5.8h-4.1l5.3-22.9h5.3l5.4 22.9h-4.3l-1.1-5.8H91.8Zm4.6-3.6c-.9-4.4-1.5-7.6-1.9-9.8-.3 2.1-1 5.5-1.8 9.8h3.8-.1ZM109.9 32.4h4.1v19.4h7.8l-.4 3.5h-11.5V32.4ZM127.5 32.4v22.9h-4.1V32.4h4.1ZM131 32.4h7c4 0 6.2 2.2 6.2 5.8 0 3.6-1.4 4.3-2.6 4.8 1.6.7 3.3 2.1 3.3 5.6 0 3.5-2.8 6.7-6.9 6.7h-6.9V32.4h-.1Zm6 9.1c2.5 0 3.2-1 3.2-3s-1.1-2.9-3.1-2.9H135v5.9h2Zm-2 10.6h2.4c2 0 3.2-1 3.2-3.6s-1-3.7-3.7-3.7h-2v7.4l.1-.1ZM151.2 45.5v9.8h-4.1V32.4h7c4.2 0 6.5 2.2 6.5 6.3s-1.8 4.7-3 5.2c1.8.8 2.6 2.3 2.6 5.7v.9c0 2.6.1 3.6.3 4.8h-4c-.3-1-.4-2.9-.4-4.8v-.8c0-3.1-.7-4.1-3.3-4.1H151l.2-.1Zm0-3.3h1.9c2.5 0 3.4-1.1 3.4-3.4s-.9-3.1-3-3.1h-2.3v6.5ZM174.6 45.1h-7.3v6.6h8.2l-.5 3.5h-11.8V32.3h11.7v3.6h-7.7v5.6h7.3v3.6h.1ZM10 12.3H2.9v8.2h7.9l-.3 2.1H.6V1.2h9.8v2.1H2.9v7H10v2.1-.1ZM29.4 16.6c0 1.2-.6 6.2-5.8 6.2s-6.1-6-6.1-11.2C17.5 6.4 19.1.7 23.9.7c4.8 0 5.4 4.8 5.5 6.1H27c0-.7-.2-4-3.2-4s-3.9 4.6-3.9 8.8c0 4.2.5 9.1 3.7 9.1s3.3-3.1 3.4-4.2h2.4v.1ZM49.2 11.7c0 7.3-1.7 11.2-6.4 11.2s-6.2-3.8-6.2-11.2C36.6 4.3 38.7.8 42.9.8c4.2 0 6.3 3.6 6.3 10.8v.1Zm-10.2 0c0 6.1 1.2 9.2 3.9 9.2s3.9-3 3.9-9.1S45.6 3 42.9 3 39 5.9 39 11.8v-.1ZM58.4 16.9c.2 2.2 1.2 4 3.6 4 2.4 0 3.4-1.2 3.4-3.7s-.9-3.5-3.8-4.9c-3.4-1.6-4.8-3.1-4.8-6.2S58.7.8 62.2.8c3.5 0 5.3 3 5.3 5.5h-2.3c-.1-1-.4-3.5-3.1-3.5s-2.9 1.4-2.9 3.1c0 1.7.9 3 3.6 4.3 3.7 1.8 5.1 3.6 5.1 6.8 0 3.2-1.9 5.9-5.9 5.9s-5.7-2.8-5.9-5.9h2.4l-.1-.1ZM77.9 1.1v21.4h-2.3V1.1h2.3ZM87.9 16.9c.2 2.2 1.2 4 3.6 4 2.4 0 3.4-1.2 3.4-3.7s-.9-3.5-3.8-4.9c-3.4-1.6-4.8-3.1-4.8-6.2S88.2.8 91.7.8c3.5 0 5.3 3 5.3 5.5h-2.3c-.1-1-.4-3.5-3.1-3.5s-2.9 1.4-2.9 3.1c0 1.7.9 3 3.6 4.3 3.7 1.8 5.1 3.6 5.1 6.8 0 3.2-1.9 5.9-5.9 5.9s-5.7-2.8-5.9-5.9H88l-.1-.1ZM107.9 3.2h-4.8V1.1H115v2.1h-4.8v19.3h-2.4V3.2h.1ZM131.5 12.3h-7.1v8.2h7.9l-.3 2.1h-9.9V1.2h9.8v2.1h-7.5v7h7.1v2.1-.1ZM152.5 13.4c0-4 0-8 .1-10.3-.8 3.7-2.7 12.6-4.4 19.4h-2.3c-1.3-5.9-3.3-15.5-4.1-19.4.1 2.5.2 7.2.2 10.9v8.5h-2.2V1.1h3.5c1.7 6.7 3.4 14.9 3.9 17.7.4-2.3 2.5-11.2 4.2-17.7h3.5v21.4h-2.3v-9.1h-.1ZM165.9 15.8l-1.6 6.8h-2.4l5.2-21.4h3l5.3 21.4h-2.5l-1.6-6.8h-5.6.2Zm5.1-2.1c-1.2-5.3-2-8.6-2.3-10.3-.3 1.9-1.2 5.7-2.2 10.3h4.6-.1Z"},null,-1)]),2))])]))}}),[["__scopeId","data-v-decccef5"]]),gc={class:"flex justify-between items-center border-b-2 p-2 pl-4 pb-0"},wc={class:"text-gray-500 dark:text-gray-200 text-xl font-roboto font-medium"},kc=l.defineComponent({__name:"SidebarHeader",props:{closeFn:{type:Function,required:!0},title:{type:String,required:!1}},setup(t){const e=t;return(n,s)=>(l.openBlock(),l.createElementBlock("header",gc,[l.renderSlot(n.$slots,"content",{},()=>[l.createElementVNode("span",wc,l.toDisplayString(e.title),1)]),l.createVNode(l.unref(nn),{icon:"pi pi-times",severity:"secondary",text:"",rounded:"","aria-label":"Cancel",onClick:e.closeFn},{icon:l.withCtx(()=>[l.createVNode(rs)]),_:1},8,["onClick"])]))}}),vc={class:"overflow-y-auto m-4 h-full max-h-full"},Ec={key:2,class:"flex sm:justify-between gap-16 items-center mx-5 py-5"},bc=l.defineComponent({__name:"ODialog",props:{position:{},"onUpdate:modelValue":{},modelValue:{type:Boolean},dismissable:{type:Boolean},title:{},isLoading:{type:Boolean},hideActions:{type:Boolean},hideHeader:{type:Boolean},acceptFn:{},beforeAcceptFn:{type:Function,default:async()=>!0},disable:{type:Boolean}},emits:["update:modelValue","accept"],setup(t,{emit:e}){const n=t,s=e,r=l.ref(!1),i=l.computed(()=>r.value||n.disable||n.isLoading);async function o(){var u;if(!n.acceptFn){s("accept");return}if(!await n.beforeAcceptFn())return;r.value=!0;const c=await((u=n.acceptFn)==null?void 0:u.call(n));r.value=!1,c&&(s("accept"),s("update:modelValue",!1))}return(a,c)=>(l.openBlock(),l.createBlock(l.unref(ji),{visible:n.modelValue,dismissable:a.dismissable,position:a.position,"onUpdate:visible":c[1]||(c[1]=u=>s("update:modelValue",u)),class:"!w-auto min-w-[20rem] dark:!bg-[var(--theme-background-secondary)]"},{container:l.withCtx(()=>[n.isLoading||r.value?(l.openBlock(),l.createBlock(yc,{key:0})):l.createCommentVNode("",!0),n.hideHeader?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(kc,{key:1,title:a.title,closeFn:()=>s("update:modelValue",!1)},null,8,["title","closeFn"])),l.createElementVNode("div",vc,[l.renderSlot(a.$slots,"default")]),a.hideActions?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("footer",Ec,[l.createVNode(l.unref(nn),{label:"Cancelar",severity:"secondary",class:"w-full h-[40px] !rounded-2xl pr-5 sm:max-w-48",icon:"pi pi-times",outlined:"",onClick:c[0]||(c[0]=()=>s("update:modelValue",!1))}),l.createVNode(l.unref(nn),{label:"Aceptar",disabled:a.disable||i.value,icon:"pi pi-check","aria-label":"save",class:"w-full h-[40px] !rounded-2xl pr-5 sm:max-w-48",onClick:o},null,8,["disabled"])]))]),_:3},8,["visible","dismissable","position"]))}}),Sc={class:"widget"},Tc={class:"header-widget"},Oc={class:"title-chat"},_c={key:0,class:"loader"},Cc={key:2,class:"fit"},Nc={class:"w-full"},xc={class:"form-message"},Ac={class:"jl-inputgroup-chat"},Mc={type:"submit",class:"pointer btn-primary"},Rc={key:1,class:"message-send-block"},Ic={class:"flex flex-col gap-3 justify-center items-center"},Vc={class:"w-full"},Lc={class:"form-message"},Dc={class:"jl-inputgroup-chat"},Bc={type:"submit",class:"pointer btn-primary"},Fc=14,Uc=G(l.defineComponent({__name:"Chat",props:{titlePrincipal:{type:String,default:"Comunicación en linea para consultas"},toggleChat:{type:Function,required:!0},tokenAuth:{type:String,required:!0},user:{type:Object,required:!0},visible:{type:Boolean,required:!0}},emits:["show-toast","show-confirm","new-message","clear-new-messages","not-viewed-total","onQualifying"],setup(t,{emit:e}){const n=l.ref(""),s=l.ref(0),r=l.ref({data:[],canLoadMoreMessages:!1}),i=l.ref(""),o=l.ref(!1),a=e,c=t,u=l.ref(null);l.watch(()=>c.visible,async y=>{if(!y||(a("clear-new-messages"),O(),s.value>0&&Zs(i.value,c.tokenAuth),i.value))return;const v=await Hs(c.tokenAuth);v&&(i.value=v.appChat.id)});function h(y,v){var T;if(ye.value){j();return}if(y.key==="Enter"&&y.shiftKey){const U=((T=y.target)==null?void 0:T.value)||"";y.target.value=U+`
|
14
|
+
`,j();return}p({codigoTipoMensaje:v})}function d(y,v){var I,L,X,ee,oe;if((y==null?void 0:y.length)>300){a("show-toast",{severity:"warn",summary:"Error",detail:"El mensaje no puede superar los 300 caracteres",life:5e3});return}if(!y.trim()&&v!==Ye.IMAGEN){a("show-toast",{severity:"warn",summary:"Error",detail:"Por favor ingrese un mensaje",life:5e3});return}const T=v?{code:v}:void 0;return console.warn(Ie.value),{id:Qi(),chatId:(L=(I=q.value)==null?void 0:I.chat)==null?void 0:L.id,message:y,visto:!0,multimedia:!1,esCliente:!0,appChatId:i.value,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),file:(X=Ie.value)==null?void 0:X[0],urlFile:(oe=(ee=Ie.value)==null?void 0:ee[0])==null?void 0:oe.objectURL,messageType:T,sender:{nombreCompleto:c.user.nombreCompleto,ci:c.user.ci,msPersonaId:c.user.msPersonaId},response:void 0}}function k(y,v,T,U){if(v==null)throw new Error("idx is required");if(!T){if(U){const L=r.value.data[v];L.response=void 0}else r.value.data[v].error={error:!0,id:y.id};a("show-toast",{severity:"error",summary:"Error",detail:"Ocurrio un error al enviar el mensaje, intente nuevamente",life:5e3});return}let I={...T,chatId:y==null?void 0:y.chatId};if(U){const L=r.value.data[v];L.response=T,I={...L,chatId:y==null?void 0:y.chatId}}else r.value.data[v]=I;return I}const p=async y=>{const v=d(n.value,y==null?void 0:y.codigoTipoMensaje);if(n.value="",!v)return;let T=-1;if(y!=null&&y.tipoCalificacionId){T=r.value.data.findIndex(L=>L.id===(y==null?void 0:y.mensajeARespondeId));const I=r.value.data[T];I&&(I.response=v)}else T=r.value.data.push(v)-1;const U={message:n.value,appChatId:i.value,...y,codigoTipoMensaje:y==null?void 0:y.codigoTipoMensaje,files:Ie.value};m(U).then(I=>{var X,ee;let L=k(v,T,I,y==null?void 0:y.tipoCalificacionId);L&&(we.value=!!r.value.data.find(oe=>{var dt;return((dt=oe.messageType)==null?void 0:dt.code)===Ye.PREGUNTA&&oe.response==null}),(ee=V.value)==null||ee.emit("sendMessage",{roomId:(X=q==null?void 0:q.value)==null?void 0:X.appChat.id,message:L},oe=>{console.log("🚀 ~ socketService.value.emit ~ response:",oe)}))}),n.value="",O(),x.value&&(x.value.style.height="20px")},m=async y=>{const v={...y,esCliente:!0};return M2(v,c.tokenAuth)},E=async()=>{var U,I,L;const y=(U=r.value.data[0])==null?void 0:U.id,v={lastMessagesId:y,appChatId:i.value,limit:10};o.value=!0;const T=await A2({body:v,token:c.tokenAuth});o.value=!1,we.value=!!T.data.find(X=>{var ee;return((ee=X.messageType)==null?void 0:ee.code)===Ye.PREGUNTA&&X.response==null}),r.value.data.unshift(...T.data.sort((X,ee)=>-ee.createdAt.localeCompare(X.createdAt))),r.value.canLoadMoreMessages=T.pagination.total>T.pagination.size,y&&((I=u.value)!=null&&I.scrollHeight)&&C((L=u.value)==null?void 0:L.scrollHeight),y||O()},w=async y=>{a("show-confirm",async()=>{var T,U,I;if(!((T=y.error)!=null&&T.id))return;const v=await m({message:y.message,appChatId:i.value});if(!v)a("show-toast",{severity:"error",summary:"Error",detail:"Ocurrio un error al enviar el mensaje, intente nuevamente",life:5e3});else{const L=pl(r.value.data,"id",y.error.id);r.value.data[L]={...v,error:void 0},(I=V.value)==null||I.emit("sendMessage",{roomId:(U=q==null?void 0:q.value)==null?void 0:U.appChat.id,message:y})}O()})},O=()=>{l.nextTick(()=>{u.value&&(u.value.scrollTop=u.value.scrollHeight)})},C=y=>{l.nextTick(()=>{const v=u.value;v&&(v.scrollTop=v.scrollHeight-y)})},x=l.ref();function j(){x.value&&(x.value.style.height=x.value.scrollHeight-Fc+"px",x.value.scrollHeight!==x.value.clientHeight&&(x.value.style.height=x.value.scrollHeight+"px"))}const V=l.ref(),q=l.ref();function de(y,v=Zi.WEBCHAT){var T,U;if(!y)throw new Error("user chat is required");V.value=Xt(window.VITE_SOCKET_URI,{query:{usuarioId:`${(U=(T=y==null?void 0:y.chat)==null?void 0:T.persona)==null?void 0:U.funcionarioId}`,aplicacion:v},extraHeaders:{Authorization:c.tokenAuth}}),V.value.removeAllListeners(),V.value.on("connect",()=>{var I,L;console.log("Conectado al servidor de sockets"),(L=V.value)==null||L.emit("joinRoom",`${(I=y==null?void 0:y.appChat)==null?void 0:I.id}`)}),V.value.on("disconnect",()=>{console.log("Desconectado del servidor de sockets")}),V.value.on("receiveMessage",I=>{var X,ee;console.log("Mensaje recibido:",I.message,y);const L=r.value.data.findIndex(oe=>oe.id===I.message.id);I.message.sender.msPersonaId===((ee=(X=y==null?void 0:y.chat)==null?void 0:X.persona)==null?void 0:ee.msPersonaId)&&L===-1||(L!==-1?r.value.data[L].response=I.message.response:r.value.data.push(I.message),we.value=!!r.value.data.find(oe=>{var dt;return((dt=oe.messageType)==null?void 0:dt.code)===Ye.PREGUNTA&&oe.response==null}),Zs(I.message.appChatId,c.tokenAuth),O(),!c.visible&&a("new-message"))})}const{isMobile:ye}=cc();function ge({message:y,emoji:v}){const T=async()=>{!y.id||!v||(n.value=v.iconUnicode,p({tipoCalificacionId:v.value,mensajeARespondeId:y.id}).then())};a("onQualifying",{message:v.iconUnicode,callback:T})}const we=l.ref(!1);function ts(y){Ie.value=[],en.value=[];const v=y.files[0];if(Ie.value=y.files,!v)return;const T=new FileReader;T.onload=U=>{var I,L;(I=U.target)!=null&&I.result&&en.value.push((L=U.target)==null?void 0:L.result)},T.readAsDataURL(v),ft.modelValue=!0}const Ie=l.ref([]),en=l.ref([]),ft=l.reactive({modelValue:!1,"onUpdate:modelValue":y=>{ft.modelValue=y,!y&&(en.value=[],Ie.value=[])},hideActions:!0,title:"SIN TITULO"});return l.onMounted(async()=>{if(i.value)return;const y=await Hs(c.tokenAuth);y&&(q.value=y,i.value=y.appChat.id,s.value=y.appChat.totalNoVistosCliente,de(y),E(),a("not-viewed-total",y.appChat.totalNoVistosCliente))}),l.onUnmounted(()=>{var y;(y=V.value)==null||y.off()}),(y,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",Sc,[l.createElementVNode("div",Tc,[l.createElementVNode("h4",Oc,l.toDisplayString(t.titlePrincipal),1),l.createElementVNode("button",{onClick:v[0]||(v[0]=()=>t.toggleChat()),class:"btn-close"},[l.createVNode(rs,{class:"pointer"})])]),l.createElementVNode("div",{class:"messages-container",ref_key:"messageContainerRef",ref:u},[o.value?(l.openBlock(),l.createElementBlock("div",_c,[l.createVNode(ml)])):l.createCommentVNode("",!0),r.value.data.length>0?(l.openBlock(),l.createBlock(ul,{key:1,messages:r.value.data,canLoadMoreMessages:r.value.canLoadMoreMessages,onLoadMore:E,onRetry:w,onOnQualifying:v[1]||(v[1]=T=>ge(T))},null,8,["messages","canLoadMoreMessages"])):(l.openBlock(),l.createElementBlock("div",Cc,v[11]||(v[11]=[l.createElementVNode("span",{class:"center"},"No tienes mensajes",-1)])))],512),l.createElementVNode("div",Nc,[we.value?(l.openBlock(),l.createElementBlock("span",Rc," Necesitamos que nos califique la atención para continuar ")):(l.openBlock(),l.createElementBlock("form",{key:0,class:"message-send",onSubmit:v[5]||(v[5]=l.withModifiers(T=>p(),["prevent"]))},[l.createElementVNode("div",xc,[l.createElementVNode("div",Ac,[l.withDirectives(l.createElementVNode("textarea",{"onUpdate:modelValue":v[2]||(v[2]=T=>n.value=T),class:"jl2-input-chat",placeholder:"Escribe tu mensaje",required:"",ref_key:"textAreaRef",ref:x,onInput:v[3]||(v[3]=()=>j()),onKeydown:v[4]||(v[4]=l.withKeys(T=>{!l.unref(ye)&&T.preventDefault()},["enter"])),onKeyup:l.withKeys(h,["enter"])},null,544),[[l.vModelText,n.value]]),l.createVNode(l.unref(Yi),{mode:"basic",accept:"image/png,image/jpeg,image/jpg,image/webp",maxFileSize:2e6,onSelect:ts,title:"Adjuntar imagen",chooseButtonProps:{label:"",outlined:!0},auto:!1,style:{height:"39px"}},{filelabel:l.withCtx(()=>v[12]||(v[12]=[l.createElementVNode("span",{style:{display:"none"}},null,-1)])),chooseicon:l.withCtx(()=>[l.createVNode(dc,{style:{width:"20px",height:"20px"}})]),_:1}),l.createElementVNode("button",Mc,[l.createVNode(is,{style:{width:"20px",height:"20px"}})])])])],32))])]),l.createVNode(bc,l.mergeProps(ft,{modal:""}),{default:l.withCtx(()=>[l.createElementVNode("div",Ic,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(en.value,(T,U)=>(l.openBlock(),l.createBlock(l.unref(ns),{key:U,src:T,alt:"Image",width:"400"},null,8,["src"]))),128)),l.createElementVNode("div",Vc,[l.createElementVNode("form",{class:"message-send",onSubmit:v[10]||(v[10]=l.withModifiers(T=>{p(),ft.modelValue=!1},["prevent"]))},[l.createElementVNode("div",Lc,[l.createElementVNode("div",Dc,[l.withDirectives(l.createElementVNode("textarea",{"onUpdate:modelValue":v[6]||(v[6]=T=>n.value=T),autofocus:"",class:"jl2-input-chat",placeholder:"Escribe tu mensaje",ref_key:"textAreaRef",ref:x,onInput:v[7]||(v[7]=()=>j()),onKeydown:v[8]||(v[8]=l.withKeys(T=>{!l.unref(ye)&&T.preventDefault()},["enter"])),onKeyup:v[9]||(v[9]=l.withKeys(T=>{h(T,l.unref(Ye).IMAGEN),ft.modelValue=!1},["enter"]))},null,544),[[l.vModelText,n.value]]),l.createElementVNode("button",Bc,[l.createVNode(is,{style:{width:"20px",height:"20px"}})])])])],32)])])]),_:1},16)],64))}}),[["__scopeId","data-v-118e9544"]]),$c={},Pc={width:"87",height:"87",viewBox:"0 0 87 87",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qc(t,e){return l.openBlock(),l.createElementBlock("svg",Pc,e[0]||(e[0]=[l.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)]))}const Wc=G($c,[["render",qc]]),Hc={},Zc={viewBox:"0 0 256 256",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",preserveAspectRatio:"xMidYMid"};function zc(t,e){return l.openBlock(),l.createElementBlock("svg",Zc,e[0]||(e[0]=[l.createElementVNode("g",null,[l.createElementVNode("path",{d:"M128,0 C57.307,0 0,57.307 0,128 L0,128 C0,198.693 57.307,256 128,256 L128,256 C198.693,256 256,198.693 256,128 L256,128 C256,57.307 198.693,0 128,0 L128,0 Z",fill:"#40B3E0"}),l.createElementVNode("path",{d:"M190.2826,73.6308 L167.4206,188.8978 C167.4206,188.8978 164.2236,196.8918 155.4306,193.0548 L102.6726,152.6068 L83.4886,143.3348 L51.1946,132.4628 C51.1946,132.4628 46.2386,130.7048 45.7586,126.8678 C45.2796,123.0308 51.3546,120.9528 51.3546,120.9528 L179.7306,70.5928 C179.7306,70.5928 190.2826,65.9568 190.2826,73.6308",fill:"#FFFFFF"}),l.createElementVNode("path",{d:"M98.6178,187.6035 C98.6178,187.6035 97.0778,187.4595 95.1588,181.3835 C93.2408,175.3085 83.4888,143.3345 83.4888,143.3345 L161.0258,94.0945 C161.0258,94.0945 165.5028,91.3765 165.3428,94.0945 C165.3428,94.0945 166.1418,94.5735 163.7438,96.8115 C161.3458,99.0505 102.8328,151.6475 102.8328,151.6475",fill:"#D2E5F1"}),l.createElementVNode("path",{d:"M122.9015,168.1154 L102.0335,187.1414 C102.0335,187.1414 100.4025,188.3794 98.6175,187.6034 L102.6135,152.2624",fill:"#B5CFE4"})],-1)]))}const jc=G(Hc,[["render",zc]]),Yc={},Jc={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 455.731 455.731","xml:space":"preserve"};function Gc(t,e){return l.openBlock(),l.createElementBlock("svg",Jc,e[0]||(e[0]=[l.createElementVNode("g",null,[l.createElementVNode("rect",{x:"0",y:"0",style:{fill:"#1bd741"},width:"455.731",height:"455.731"}),l.createElementVNode("g",null,[l.createElementVNode("path",{style:{fill:"#ffffff"},d:`M68.494,387.41l22.323-79.284c-14.355-24.387-21.913-52.134-21.913-80.638
|
5
15
|
c0-87.765,71.402-159.167,159.167-159.167s159.166,71.402,159.166,159.167c0,87.765-71.401,159.167-159.166,159.167
|
6
16
|
c-27.347,0-54.125-7-77.814-20.292L68.494,387.41z M154.437,337.406l4.872,2.975c20.654,12.609,44.432,19.274,68.762,19.274
|
7
17
|
c72.877,0,132.166-59.29,132.166-132.167S300.948,95.321,228.071,95.321S95.904,154.611,95.904,227.488
|
8
|
-
c0,25.393,7.217,50.052,20.869,71.311l3.281,5.109l-12.855,45.658L154.437,337.406z`}),
|
18
|
+
c0,25.393,7.217,50.052,20.869,71.311l3.281,5.109l-12.855,45.658L154.437,337.406z`}),l.createElementVNode("path",{style:{fill:"#ffffff"},d:`M183.359,153.407l-10.328-0.563c-3.244-0.177-6.426,0.907-8.878,3.037
|
9
19
|
c-5.007,4.348-13.013,12.754-15.472,23.708c-3.667,16.333,2,36.333,16.667,56.333c14.667,20,42,52,90.333,65.667
|
10
20
|
c15.575,4.404,27.827,1.435,37.28-4.612c7.487-4.789,12.648-12.476,14.508-21.166l1.649-7.702c0.524-2.448-0.719-4.932-2.993-5.98
|
11
21
|
l-34.905-16.089c-2.266-1.044-4.953-0.384-6.477,1.591l-13.703,17.764c-1.035,1.342-2.807,1.874-4.407,1.312
|
12
22
|
c-9.384-3.298-40.818-16.463-58.066-49.687c-0.748-1.441-0.562-3.19,0.499-4.419l13.096-15.15
|
13
|
-
c1.338-1.547,1.676-3.722,0.872-5.602l-15.046-35.201C187.187,154.774,185.392,153.518,183.359,153.407z`})])],-1)]
|
23
|
+
c1.338-1.547,1.676-3.722,0.872-5.602l-15.046-35.201C187.187,154.774,185.392,153.518,183.359,153.407z`})])],-1)]))}const Kc=G(Yc,[["render",Gc]]),Qc={},Xc={version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"-10 -10 78 78","xml:space":"preserve"};function e1(t,e){return l.openBlock(),l.createElementBlock("svg",Xc,e[0]||(e[0]=[l.createElementVNode("g",null,[l.createElementVNode("path",{style:{fill:"orange"},d:`M29,1.5c-16.016,0-29,11.641-29,26c0,5.292,1.768,10.211,4.796,14.318
|
14
24
|
C4.398,46.563,3.254,53.246,0,56.5c0,0,9.943-1.395,16.677-5.462c0.007,0.003,0.015,0.006,0.022,0.009
|
15
25
|
c2.764-1.801,5.532-3.656,6.105-4.126c0.3-0.421,0.879-0.548,1.33-0.277c0.296,0.178,0.483,0.503,0.489,0.848
|
16
|
-
c0.01,0.622-0.005,0.784-5.585,4.421C22.146,52.933,25.498,53.5,29,53.5c16.016,0,29-11.641,29-26S45.016,1.5,29,1.5z`}),
|
26
|
+
c0.01,0.622-0.005,0.784-5.585,4.421C22.146,52.933,25.498,53.5,29,53.5c16.016,0,29-11.641,29-26S45.016,1.5,29,1.5z`}),l.createElementVNode("circle",{style:{fill:"#ffffff"},cx:"15",cy:"27.5",r:"3"}),l.createElementVNode("circle",{style:{fill:"#ffffff"},cx:"29",cy:"27.5",r:"3"}),l.createElementVNode("circle",{style:{fill:"#ffffff"},cx:"43",cy:"27.5",r:"3"})],-1)]))}const t1=G(Qc,[["render",e1]]),n1={key:0,id:"chat-circle",class:"widget-container"},s1={key:0,class:"new-message-badge"},r1={class:"chat-box"},i1=G(l.defineComponent({__name:"Widget",props:{tokenAuth:{type:String,required:!0},titlePrincipal:{type:String},user:{type:Object,required:!0},isDarkMode:{type:Boolean,default:!1}},emits:["show-toast","show-confirm","onQualifying"],setup(t,{emit:e}){const n=e;function s(u){var k;const h=((k=window.VITE_CELLPHONE_NUMBERS)==null?void 0:k.split(","))??[];if(h.length===0){console.warn("not found cellphone numbers");return}o.value=!1;const d=Math.floor(Math.random()*h.length);if(u===0){window.open("https://wa.me/"+h[d],"WhatsApp","noopener");return}window.open("https://t.me/+"+h[d],"Telegram","noopener")}const r=l.ref(!1),i=l.ref(0),o=l.ref(!1),a=()=>{r.value=!r.value},c=t;return(u,h)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["widget-css-reset widget-container",t.isDarkMode?"chat-dark-mode":""])},[c.tokenAuth.length>10?l.withDirectives((l.openBlock(),l.createElementBlock("div",n1,[l.createElementVNode("div",{class:l.normalizeClass(["container-buttons-chat",{active:o.value}])},[l.createElementVNode("a",{href:"javascript:;",class:"button whatsapp",onClick:h[0]||(h[0]=d=>s(0))},[l.createVNode(Kc)]),l.createElementVNode("a",{href:"javascript:;",class:"button telegram",onClick:h[1]||(h[1]=d=>s(1))},[l.createVNode(jc)]),l.createElementVNode("a",{href:"javascript:;",class:l.normalizeClass(["button webchat",{disabled:c.tokenAuth.length<10}]),title:"Debe estar autenticado",onClick:h[2]||(h[2]=d=>o.value&&c.tokenAuth.length>10&&a())},[l.createVNode(t1)],2)],2),i.value?(l.openBlock(),l.createElementBlock("div",s1,l.toDisplayString(i.value>9?"9+":i.value),1)):l.createCommentVNode("",!0),l.createElementVNode("a",{href:"javascript:;",onClick:h[3]||(h[3]=d=>c.tokenAuth.length>10&&a())},[l.createVNode(Wc)])],512)),[[l.vShow,!r.value]]):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",r1,[t.tokenAuth?(l.openBlock(),l.createBlock(Uc,{key:0,visible:r.value,titlePrincipal:t.titlePrincipal,toggleChat:a,tokenAuth:t.tokenAuth,user:t.user,onShowToast:h[4]||(h[4]=d=>n("show-toast",d)),onShowConfirm:h[5]||(h[5]=d=>n("show-confirm",d)),onClearNewMessages:h[6]||(h[6]=d=>i.value=0),onNewMessage:h[7]||(h[7]=()=>i.value++),onNotViewedTotal:h[8]||(h[8]=d=>i.value=d),onOnQualifying:h[9]||(h[9]=d=>n("onQualifying",d))},null,8,["visible","titlePrincipal","tokenAuth","user"])):l.createCommentVNode("",!0)],512),[[l.vShow,r.value]])],2))}}),[["__scopeId","data-v-c7da0c7e"]]),o1={install(t,e){window.VITE_BACKEND_URL=e.VITE_BACKEND_URL,window.VITE_SOCKET_URI=e.VITE_SOCKET_URI,window.VITE_CELLPHONE_NUMBERS=e.VITE_CELLPHONE_NUMBERS}};te.Widget=i1,te.default=o1,Object.defineProperties(te,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|