vue-wiguet-chatweb 0.1.36 → 0.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Chat.vue.d.ts +1 -0
- package/dist/dto/app.dto.d.ts +1 -3
- package/dist/style.css +1 -1
- package/dist/vue-wiguet-chatweb.js +2279 -2206
- package/dist/vue-wiguet-chatweb.umd.cjs +10 -10
- package/package.json +1 -1
- package/src/components/Chat.vue +137 -41
@@ -1,17 +1,17 @@
|
|
1
|
-
(function(Ee,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(Ee=typeof globalThis<"u"?globalThis:Ee||self,l(Ee["vue-wiguet-chatweb"]={},Ee.Vue))})(this,function(Ee,l){"use strict";let pt;const ji=new Uint8Array(16);function Yi(){if(!pt&&(pt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pt(ji)}const z=[];for(let t=0;t<256;++t)z.push((t+256).toString(16).slice(1));function Ji(t,e=0){return z[t[e+0]]+z[t[e+1]]+z[t[e+2]]+z[t[e+3]]+"-"+z[t[e+4]]+z[t[e+5]]+"-"+z[t[e+6]]+z[t[e+7]]+"-"+z[t[e+8]]+z[t[e+9]]+"-"+z[t[e+10]]+z[t[e+11]]+z[t[e+12]]+z[t[e+13]]+z[t[e+14]]+z[t[e+15]]}const ss={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Gi(t,e,n){if(ss.randomUUID&&!t)return ss.randomUUID();t=t||{};const s=t.random||(t.rng||Yi)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Ji(s)}const K=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},Ki={},Qi={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xi(t,e){return l.openBlock(),l.createElementBlock("svg",Qi,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=K(Ki,[["render",Xi]]),eo={},to={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function no(t,e){return l.openBlock(),l.createElementBlock("svg",to,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=K(eo,[["render",no]]);function os(t,e){return function(){return t.apply(e,arguments)}}const{toString:so}=Object.prototype,{getPrototypeOf:sn}=Object,yt=(t=>e=>{const n=so.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),le=t=>(t=t.toLowerCase(),e=>yt(e)===t),gt=t=>e=>typeof e===t,{isArray:Le}=Array,Ke=gt("undefined");function ro(t){return t!==null&&!Ke(t)&&t.constructor!==null&&!Ke(t.constructor)&&Q(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const as=le("ArrayBuffer");function io(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&as(t.buffer),e}const oo=gt("string"),Q=gt("function"),ls=gt("number"),wt=t=>t!==null&&typeof t=="object",ao=t=>t===!0||t===!1,Et=t=>{if(yt(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)},lo=le("Date"),co=le("File"),uo=le("Blob"),fo=le("FileList"),ho=t=>wt(t)&&Q(t.pipe),mo=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Q(t.append)&&((e=yt(t))==="formdata"||e==="object"&&Q(t.toString)&&t.toString()==="[object FormData]"))},po=le("URLSearchParams"),[yo,go,wo,Eo]=["ReadableStream","Request","Response","Headers"].map(le),ko=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]),Le(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 Ne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,us=t=>!Ke(t)&&t!==Ne;function rn(){const{caseless:t}=us(this)&&this||{},e={},n=(s,r)=>{const i=t&&cs(e,r)||r;Et(e[i])&&Et(s)?e[i]=rn(e[i],s):Et(s)?e[i]=rn({},s):Le(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 bo=(t,e,n,{allOwnKeys:s}={})=>(Qe(e,(r,i)=>{n&&Q(r)?t[i]=os(r,n):t[i]=r},{allOwnKeys:s}),t),So=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),To=(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)},vo=(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},Oo=(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},_o=t=>{if(!t)return null;if(Le(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},No=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&sn(Uint8Array)),Co=(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])}},xo=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},Ao=le("HTMLFormElement"),Ro=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),fs=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Io=le("RegExp"),hs=(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)},Mo=t=>{hs(t,(e,n)=>{if(Q(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=t[n];if(Q(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 Le(t)?s(t):s(String(t).split(e)),n},Lo=()=>{},Vo=(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},Bo=(t=16,e=ms.ALPHA_DIGIT)=>{let n="";const{length:s}=e;for(;t--;)n+=e[Math.random()*s|0];return n};function Fo(t){return!!(t&&Q(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Uo=t=>{const e=new Array(10),n=(s,r)=>{if(wt(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[r]=s;const i=Le(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)},$o=le("AsyncFunction"),Po=t=>t&&(wt(t)||Q(t))&&Q(t.then)&&Q(t.catch),ps=((t,e)=>t?setImmediate:e?((n,s)=>(Ne.addEventListener("message",({source:r,data:i})=>{r===Ne&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),Ne.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Q(Ne.postMessage)),qo=typeof queueMicrotask<"u"?queueMicrotask.bind(Ne):typeof process<"u"&&process.nextTick||ps,d={isArray:Le,isArrayBuffer:as,isBuffer:ro,isFormData:mo,isArrayBufferView:io,isString:oo,isNumber:ls,isBoolean:ao,isObject:wt,isPlainObject:Et,isReadableStream:yo,isRequest:go,isResponse:wo,isHeaders:Eo,isUndefined:Ke,isDate:lo,isFile:co,isBlob:uo,isRegExp:Io,isFunction:Q,isStream:ho,isURLSearchParams:po,isTypedArray:No,isFileList:fo,forEach:Qe,merge:rn,extend:bo,trim:ko,stripBOM:So,inherits:To,toFlatObject:vo,kindOf:yt,kindOfTest:le,endsWith:Oo,toArray:_o,forEachEntry:Co,matchAll:xo,isHTMLForm:Ao,hasOwnProperty:fs,hasOwnProp:fs,reduceDescriptors:hs,freezeMethods:Mo,toObjectSet:Do,toCamelCase:Ro,noop:Lo,toFiniteNumber:Vo,findKey:cs,global:Ne,isContextDefined:us,ALPHABET:ms,generateString:Bo,isSpecCompliantForm:Fo,toJSONObject:Uo,isAsyncFn:$o,isThenable:Po,setImmediate:ps,asap:qo};function O(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)}d.inherits(O,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:d.toJSONObject(this.config),code:this.code,status:this.status}}});const ys=O.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(O,gs),Object.defineProperty(ys,"isAxiosError",{value:!0}),O.from=(t,e,n,s,r,i)=>{const o=Object.create(ys);return d.toFlatObject(t,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),O.call(o,t.message,e,n,s,r),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const Wo=null;function an(t){return d.isPlainObject(t)||d.isArray(t)}function ws(t){return d.endsWith(t,"[]")?t.slice(0,-2):t}function Es(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 d.isArray(t)&&!t.some(an)}const Ho=d.toFlatObject(d,{},null,function(e){return/^is[A-Z]/.test(e)});function kt(t,e,n){if(!d.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=d.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,E){return!d.isUndefined(E[b])});const s=n.metaTokens,r=n.visitor||f,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(e);if(!d.isFunction(r))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(d.isDate(m))return m.toISOString();if(!c&&d.isBlob(m))throw new O("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(m)||d.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,b,E){let _=m;if(m&&!E&&typeof m=="object"){if(d.endsWith(b,"{}"))b=s?b:b.slice(0,-2),m=JSON.stringify(m);else if(d.isArray(m)&&zo(m)||(d.isFileList(m)||d.endsWith(b,"[]"))&&(_=d.toArray(m)))return b=ws(b),_.forEach(function(M,ee){!(d.isUndefined(M)||M===null)&&e.append(o===!0?Es([b],ee,i):o===null?b:b+"[]",u(M))}),!1}return an(m)?!0:(e.append(Es(E,b,i),u(m)),!1)}const h=[],y=Object.assign(Ho,{defaultVisitor:f,convertValue:u,isVisitable:an});function p(m,b){if(!d.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+b.join("."));h.push(m),d.forEach(m,function(_,N){(!(d.isUndefined(_)||_===null)&&r.call(e,_,d.isString(N)?N.trim():N,b,y))===!0&&p(_,b?b.concat(N):[N])}),h.pop()}}if(!d.isObject(t))throw new TypeError("data must be an object");return p(t),e}function ks(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 bs=ln.prototype;bs.append=function(e,n){this._pairs.push([e,n])},bs.toString=function(e){const n=e?function(s){return e.call(this,s,ks)}:ks;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Zo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ss(t,e,n){if(!e)return t;const s=n&&n.encode||Zo;d.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(e,n):i=d.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 Ts{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){d.forEach(this.handlers,function(s){s!==null&&e(s)})}}const vs={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,Yo=cn&&(!un||["ReactNative","NativeScript","NS"].indexOf(un.product)<0),Jo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Go=cn&&window.location.href||"http://localhost",H={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cn,hasStandardBrowserEnv:Yo,hasStandardBrowserWebWorkerEnv:Jo,navigator:un,origin:Go},Symbol.toStringTag,{value:"Module"})),...jo};function Ko(t,e){return kt(t,new H.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return H.isNode&&d.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Qo(t){return d.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Xo(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&&d.isArray(r)?r.length:o,c?(d.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!d.isObject(r[o]))&&(r[o]=[]),e(n,s,r[o],i)&&d.isArray(r[o])&&(r[o]=Xo(r[o])),!a)}if(d.isFormData(t)&&d.isFunction(t.entries)){const n={};return d.forEachEntry(t,(s,r)=>{e(Qo(s),r,n,0)}),n}return null}function ea(t,e,n){if(d.isString(t))try{return(e||JSON.parse)(t),d.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const Xe={transitional:vs,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=d.isObject(e);if(i&&d.isHTMLForm(e)&&(e=new FormData(e)),d.isFormData(e))return r?JSON.stringify(Os(e)):e;if(d.isArrayBuffer(e)||d.isBuffer(e)||d.isStream(e)||d.isFile(e)||d.isBlob(e)||d.isReadableStream(e))return e;if(d.isArrayBufferView(e))return e.buffer;if(d.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 Ko(e,this.formSerializer).toString();if((a=d.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),ea(e)):e}],transformResponse:[function(e){const n=this.transitional||Xe.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(d.isResponse(e)||d.isReadableStream(e))return e;if(e&&d.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"?O.from(a,O.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}}};d.forEach(["delete","get","head","post","put","patch"],t=>{Xe.headers[t]={}});const ta=d.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"]),na=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[_s]=this[_s]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=et(o);s[a]||(oa(r,o),s[a]=!0)}return d.isArray(e)?e.forEach(i):i(e),this}};J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),d.reduceDescriptors(J.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(s){this[n]=s}}}),d.freezeMethods(J);function hn(t,e){const n=this||Xe,s=e||n,r=J.from(s.headers);let i=s.data;return d.forEach(t,function(a){i=a.call(n,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function Ns(t){return!!(t&&t.__CANCEL__)}function Ve(t,e,n){O.call(this,t??"canceled",O.ERR_CANCELED,e,n),this.name="CanceledError"}d.inherits(Ve,O,{__CANCEL__:!0});function Cs(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new O("Request failed with status code "+n.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function aa(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function la(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(),f=s[i];o||(o=u),n[r]=c,s[r]=u;let h=i,y=0;for(;h!==r;)y+=n[h++],h=h%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),u-o<e)return;const p=f&&u-f;return p?Math.round(y*1e3/p):void 0}}function ca(t,e){let n=0,s=1e3/e,r,i;const o=(u,f=Date.now())=>{n=f,r=null,i&&(clearTimeout(i),i=null),t.apply(null,u)};return[(...u)=>{const f=Date.now(),h=f-n;h>=s?o(u,f):(r=u,i||(i=setTimeout(()=>{i=null,o(r)},s-h)))},()=>r&&o(r)]}const St=(t,e,n=3)=>{let s=0;const r=la(50,250);return ca(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-s,u=r(c),f=o<=a;s=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&f?(a-o)/u:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(h)},n)},xs=(t,e)=>{const n=t!=null;return[s=>e[0]({lengthComputable:n,total:t,loaded:s}),e[1]]},As=t=>(...e)=>d.asap(()=>t(...e)),ua=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,fa=H.hasStandardBrowserEnv?{write(t,e,n,s,r,i){const o=[t+"="+encodeURIComponent(e)];d.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),d.isString(s)&&o.push("path="+s),d.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 ha(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function da(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Rs(t,e){return t&&!ha(e)?da(t,e):e}const Is=t=>t instanceof J?{...t}:t;function Ce(t,e){e=e||{};const n={};function s(u,f,h,y){return d.isPlainObject(u)&&d.isPlainObject(f)?d.merge.call({caseless:y},u,f):d.isPlainObject(f)?d.merge({},f):d.isArray(f)?f.slice():f}function r(u,f,h,y){if(d.isUndefined(f)){if(!d.isUndefined(u))return s(void 0,u,h,y)}else return s(u,f,h,y)}function i(u,f){if(!d.isUndefined(f))return s(void 0,f)}function o(u,f){if(d.isUndefined(f)){if(!d.isUndefined(u))return s(void 0,u)}else return s(void 0,f)}function a(u,f,h){if(h in e)return s(u,f);if(h 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,f,h)=>r(Is(u),Is(f),h,!0)};return d.forEach(Object.keys(Object.assign({},t,e)),function(f){const h=c[f]||r,y=h(t[f],e[f],f);d.isUndefined(y)&&h!==a||(n[f]=y)}),n}const Ms=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=Ss(Rs(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(d.isFormData(n)){if(H.hasStandardBrowserEnv||H.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[u,...f]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...f].join("; "))}}if(H.hasStandardBrowserEnv&&(s&&d.isFunction(s)&&(s=s(e)),s||s!==!1&&ua(e.url))){const u=r&&i&&fa.read(i);u&&o.set(r,u)}return e},ma=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,s){const r=Ms(t);let i=r.data;const o=J.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=r,f,h,y,p,m;function b(){p&&p(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(f),r.signal&&r.signal.removeEventListener("abort",f)}let E=new XMLHttpRequest;E.open(r.method.toUpperCase(),r.url,!0),E.timeout=r.timeout;function _(){if(!E)return;const M=J.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),L={data:!a||a==="text"||a==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:M,config:t,request:E};Cs(function(F){n(F),b()},function(F){s(F),b()},L),E=null}"onloadend"in E?E.onloadend=_:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(_)},E.onabort=function(){E&&(s(new O("Request aborted",O.ECONNABORTED,t,E)),E=null)},E.onerror=function(){s(new O("Network Error",O.ERR_NETWORK,t,E)),E=null},E.ontimeout=function(){let ee=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const L=r.transitional||vs;r.timeoutErrorMessage&&(ee=r.timeoutErrorMessage),s(new O(ee,L.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,E)),E=null},i===void 0&&o.setContentType(null),"setRequestHeader"in E&&d.forEach(o.toJSON(),function(ee,L){E.setRequestHeader(L,ee)}),d.isUndefined(r.withCredentials)||(E.withCredentials=!!r.withCredentials),a&&a!=="json"&&(E.responseType=r.responseType),u&&([y,m]=St(u,!0),E.addEventListener("progress",y)),c&&E.upload&&([h,p]=St(c),E.upload.addEventListener("progress",h),E.upload.addEventListener("loadend",p)),(r.cancelToken||r.signal)&&(f=M=>{E&&(s(!M||M.type?new Ve(null,t,E):M),E.abort(),E=null)},r.cancelToken&&r.cancelToken.subscribe(f),r.signal&&(r.signal.aborted?f():r.signal.addEventListener("abort",f)));const N=aa(r.url);if(N&&H.protocols.indexOf(N)===-1){s(new O("Unsupported protocol "+N+":",O.ERR_BAD_REQUEST,t));return}E.send(i||null)})},pa=(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 f=u instanceof Error?u:this.reason;s.abort(f instanceof O?f:new Ve(f instanceof Error?f.message:f))}};let o=e&&setTimeout(()=>{o=null,i(new O(`timeout ${e} of ms exceeded`,O.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=()=>d.asap(a),c}},ya=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},ga=async function*(t,e){for await(const n of wa(t))yield*ya(n,e)},wa=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()}},Ds=(t,e,n,s)=>{const r=ga(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:f}=await r.next();if(u){a(),c.close();return}let h=f.byteLength;if(n){let y=i+=h;n(y)}c.enqueue(new Uint8Array(f))}catch(u){throw a(u),u}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},Tt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ls=Tt&&typeof ReadableStream=="function",Ea=Tt&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Vs=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ka=Ls&&Vs(()=>{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&&Vs(()=>d.isReadableStream(new Response("").body)),vt={stream:dn&&(t=>t.body)};Tt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!vt[e]&&(vt[e]=d.isFunction(t[e])?n=>n[e]():(n,s)=>{throw new O(`Response type '${e}' is not supported`,O.ERR_NOT_SUPPORT,s)})})})(new Response);const ba=async t=>{if(t==null)return 0;if(d.isBlob(t))return t.size;if(d.isSpecCompliantForm(t))return(await new Request(H.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(d.isArrayBufferView(t)||d.isArrayBuffer(t))return t.byteLength;if(d.isURLSearchParams(t)&&(t=t+""),d.isString(t))return(await Ea(t)).byteLength},Sa=async(t,e)=>{const n=d.toFiniteNumber(t.getContentLength());return n??ba(e)},mn={http:Wo,xhr:ma,fetch:Tt&&(async t=>{let{url:e,method:n,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:f,withCredentials:h="same-origin",fetchOptions:y}=Ms(t);u=u?(u+"").toLowerCase():"text";let p=pa([r,i&&i.toAbortSignal()],o),m;const b=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let E;try{if(c&&ka&&n!=="get"&&n!=="head"&&(E=await Sa(f,s))!==0){let L=new Request(e,{method:"POST",body:s,duplex:"half"}),ae;if(d.isFormData(s)&&(ae=L.headers.get("content-type"))&&f.setContentType(ae),L.body){const[F,me]=xs(E,St(As(c)));s=Ds(L.body,Bs,F,me)}}d.isString(h)||(h=h?"include":"omit");const _="credentials"in Request.prototype;m=new Request(e,{...y,signal:p,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:s,duplex:"half",credentials:_?h:void 0});let N=await fetch(m);const M=dn&&(u==="stream"||u==="response");if(dn&&(a||M&&b)){const L={};["status","statusText","headers"].forEach(W=>{L[W]=N[W]});const ae=d.toFiniteNumber(N.headers.get("content-length")),[F,me]=a&&xs(ae,St(As(a),!0))||[];N=new Response(Ds(N.body,Bs,F,()=>{me&&me(),b&&b()}),L)}u=u||"text";let ee=await vt[d.findKey(vt,u)||"text"](N,t);return!M&&b&&b(),await new Promise((L,ae)=>{Cs(L,ae,{data:ee,headers:J.from(N.headers),status:N.status,statusText:N.statusText,config:t,request:m})})}catch(_){throw b&&b(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new O("Network Error",O.ERR_NETWORK,t,m),{cause:_.cause||_}):O.from(_,_&&_.code,t,m)}})};d.forEach(mn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Fs=t=>`- ${t}`,Ta=t=>d.isFunction(t)||t===null||t===!1,Us={getAdapter:t=>{t=d.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,!Ta(n)&&(s=mn[(o=String(n)).toLowerCase()],s===void 0))throw new O(`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(
|
5
|
-
`):" "+
|
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&&_t.assertOptions(s,{silentJSONParsing:pe.transitional(pe.boolean),forcedJSONParsing:pe.transitional(pe.boolean),clarifyTimeoutError:pe.transitional(pe.boolean)},!1),r!=null&&(d.isFunction(r)?n.paramsSerializer={serialize:r}:_t.assertOptions(r,{encode:pe.function,serialize:pe.function},!0)),_t.assertOptions(n,{baseUrl:pe.spelling("baseURL"),withXsrfToken:pe.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&d.merge(i.common,i[n.method]);i&&d.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(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(c=c&&b.synchronous,a.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let f,h=0,y;if(!c){const m=[$s.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),y=m.length,f=Promise.resolve(n);h<y;)f=f.then(m[h++],m[h++]);return f}y=a.length;let p=n;for(h=0;h<y;){const m=a[h++],b=a[h++];try{p=m(p)}catch(E){b.call(this,E);break}}try{f=$s.call(this,p)}catch(m){return Promise.reject(m)}for(h=0,y=u.length;h<y;)f=f.then(u[h++],u[h++]);return f}getUri(e){e=Ce(this.defaults,e);const n=Rs(e.baseURL,e.url);return Ss(n,e.params,e.paramsSerializer)}};d.forEach(["delete","get","head","options"],function(e){xe.prototype[e]=function(n,s){return this.request(Ce(s||{},{method:e,url:n,data:(s||{}).data}))}}),d.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}))}}xe.prototype[e]=n(),xe.prototype[e+"Form"]=n(!0)});let Oa=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 Ve(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 _a(t){return function(n){return t.apply(null,n)}}function Na(t){return d.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 xe(t),n=os(xe.prototype.request,e);return d.extend(n,xe.prototype,e,{allOwnKeys:!0}),d.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Ws(Ce(t,r))},n}const U=Ws(Xe);U.Axios=xe,U.CanceledError=Ve,U.CancelToken=Oa,U.isCancel=Ns,U.VERSION=Ps,U.toFormData=kt,U.AxiosError=O,U.Cancel=U.CanceledError,U.all=function(e){return Promise.all(e)},U.spread=_a,U.isAxiosError=Na,U.mergeConfig=Ce,U.AxiosHeaders=J,U.formToJSON=t=>Os(d.isHTMLForm(t)?new FormData(t):t),U.getAdapter=Us.getAdapter,U.HttpStatusCode=yn,U.default=U;const{Axios:fu,AxiosError:hu,CanceledError:du,isCancel:mu,CancelToken:pu,VERSION:yu,all:gu,Cancel:wu,isAxiosError:Eu,spread:ku,toFormData:bu,AxiosHeaders:Su,HttpStatusCode:Tu,formToJSON:vu,getAdapter:Ou,mergeConfig:_u}=U,Nt=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 Ca(t){const e={url:"/v1/message/list-messages",method:"post",data:t.body,token:t.token},n=await Nt(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 xa(t,e){var r;const s=await Nt({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 zs(t){var s;const n=await Nt({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 Hs(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 Nt(s).catch(o=>(console.error(o),null));return(i=r==null?void 0:r.response)==null?void 0:i.data}function Aa(t){return l.getCurrentScope()?(l.onScopeDispose(t),!0):!1}function Zs(t){return typeof t=="function"?t():l.unref(t)}const Ra=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ia=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 Ma=Ra?window:void 0;function Da(){const t=l.ref(!1),e=l.getCurrentInstance();return e&&l.onMounted(()=>{t.value=!0},e),t}function La(t){const e=Da();return l.computed(()=>(e.value,!!t()))}function Va(t,e,n={}){const{root:s,rootMargin:r="0px",threshold:i=.1,window:o=Ma,immediate:a=!0}=n,c=La(()=>o&&"IntersectionObserver"in o),u=l.computed(()=>{const m=Zs(t);return(Array.isArray(m)?m:[m]).map(wn).filter(Ia)});let f=gn;const h=l.ref(a),y=c.value?l.watch(()=>[u.value,wn(s),h.value],([m,b])=>{if(f(),!h.value||!m.length)return;const E=new IntersectionObserver(e,{root:wn(b),rootMargin:r,threshold:i});m.forEach(_=>_&&E.observe(_)),f=()=>{E.disconnect(),f=gn}},{immediate:a,flush:"post"}):gn,p=()=>{f(),y(),h.value=!1};return Aa(p),{isSupported:c,isActive:h,pause(){f(),h.value=!1},resume(){h.value=!0},stop:p}}class Ae extends Error{}class Ba extends Ae{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Fa extends Ae{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Ua extends Ae{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Be extends Ae{}class js extends Ae{constructor(e){super(`Invalid unit ${e}`)}}class Z extends Ae{}class ke extends Ae{constructor(){super("Zone is an abstract class")}}const w="numeric",ce="short",X="long",Ct={year:w,month:w,day:w},Ys={year:w,month:ce,day:w},$a={year:w,month:ce,day:w,weekday:ce},Js={year:w,month:X,day:w},Gs={year:w,month:X,day:w,weekday:X},Ks={hour:w,minute:w},Qs={hour:w,minute:w,second:w},Xs={hour:w,minute:w,second:w,timeZoneName:ce},er={hour:w,minute:w,second:w,timeZoneName:X},tr={hour:w,minute:w,hourCycle:"h23"},nr={hour:w,minute:w,second:w,hourCycle:"h23"},sr={hour:w,minute:w,second:w,hourCycle:"h23",timeZoneName:ce},rr={hour:w,minute:w,second:w,hourCycle:"h23",timeZoneName:X},ir={year:w,month:w,day:w,hour:w,minute:w},or={year:w,month:w,day:w,hour:w,minute:w,second:w},ar={year:w,month:ce,day:w,hour:w,minute:w},lr={year:w,month:ce,day:w,hour:w,minute:w,second:w},Pa={year:w,month:ce,day:w,weekday:ce,hour:w,minute:w},cr={year:w,month:X,day:w,hour:w,minute:w,timeZoneName:ce},ur={year:w,month:X,day:w,hour:w,minute:w,second:w,timeZoneName:ce},fr={year:w,month:X,day:w,weekday:X,hour:w,minute:w,timeZoneName:X},hr={year:w,month:X,day:w,weekday:X,hour:w,minute:w,second:w,timeZoneName:X};class tt{get type(){throw new ke}get name(){throw new ke}get ianaName(){return this.name}get isUniversal(){throw new ke}offsetName(e,n){throw new ke}formatOffset(e,n){throw new ke}offset(e){throw new ke}equals(e){throw new ke}get isValid(){throw new ke}}let En=null;class xt extends tt{static get instance(){return En===null&&(En=new xt),En}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 At={};function qa(t){return At[t]||(At[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"})),At[t]}const Wa={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function za(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,f]=s;return[o,r,i,a,c,u,f]}function Ha(t,e){const n=t.formatToParts(e),s=[];for(let r=0;r<n.length;r++){const{type:i,value:o}=n[r],a=Wa[i];i==="era"?s[a]=o:T(a)||(s[a]=parseInt(o,10))}return s}let Rt={};class ge extends tt{static create(e){return Rt[e]||(Rt[e]=new ge(e)),Rt[e]}static resetCache(){Rt={},At={}}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=ge.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=qa(this.name);let[r,i,o,a,c,u,f]=s.formatToParts?Ha(s,n):za(s,n);a==="BC"&&(r=-Math.abs(r)+1);const y=Vt({year:r,month:i,day:o,hour:c===24?0:c,minute:u,second:f,millisecond:0});let p=+n;const m=p%1e3;return p-=m>=0?m:1e3+m,(y-p)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let dr={};function Za(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 kn={};function bn(t,e={}){const n=JSON.stringify([t,e]);let s=kn[n];return s||(s=new Intl.DateTimeFormat(t,e),kn[n]=s),s}let Sn={};function ja(t,e={}){const n=JSON.stringify([t,e]);let s=Sn[n];return s||(s=new Intl.NumberFormat(t,e),Sn[n]=s),s}let Tn={};function Ya(t,e={}){const{base:n,...s}=e,r=JSON.stringify([t,s]);let i=Tn[r];return i||(i=new Intl.RelativeTimeFormat(t,e),Tn[r]=i),i}let nt=null;function Ja(){return nt||(nt=new Intl.DateTimeFormat().resolvedOptions().locale,nt)}let mr={};function Ga(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 Ka(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=bn(t).resolvedOptions(),r=t}catch{const c=t.substring(0,n);s=bn(c).resolvedOptions(),r=c}const{numberingSystem:i,calendar:o}=s;return[r,i,o]}}function Qa(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Xa(t){const e=[];for(let n=1;n<=12;n++){const s=v.utc(2009,n,1);e.push(t(s))}return e}function e2(t){const e=[];for(let n=1;n<=7;n++){const s=v.utc(2016,11,13+n);e.push(t(s))}return e}function It(t,e,n,s){const r=t.listingMode();return r==="error"?null:r==="en"?n(e):s(e)}function t2(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 n2{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=ja(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):Rn(e,3);return P(n,this.padTo)}}}class s2{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&&ge.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=bn(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 r2{constructor(e,n,s){this.opts={style:"long",...s},!n&&Mr()&&(this.rtf=Ya(e,s))}format(e,n){return this.rtf?this.rtf.format(e,n):N2(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const i2={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||V.defaultLocale,a=o||(i?"en-US":Ja()),c=n||V.defaultNumberingSystem,u=s||V.defaultOutputCalendar,f=xn(r)||V.defaultWeekSettings;return new R(a,c,u,f,o)}static resetCache(){nt=null,kn={},Sn={},Tn={}}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]=Ka(e);this.locale=o,this.numberingSystem=n||a||null,this.outputCalendar=s||c||null,this.weekSettings=r,this.intl=Qa(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=t2(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 It(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]=Xa(i=>this.extract(i,s,"month"))),this.monthsCache[r][e]})}weekdays(e,n=!1){return It(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]=e2(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return It(this,void 0,()=>zr,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[v.utc(2016,11,13,9),v.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return It(this,e,Hr,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[v.utc(-40,1,1),v.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 n2(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new s2(e,this.intl,n)}relFormatter(e={}){return new r2(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Za(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:Dr()?Ga(this.locale):i2}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 vn=null;class Y extends tt{static get utcInstance(){return vn===null&&(vn=new Y(0)),vn}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(Bt(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 o2 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 be(t,e){if(T(t)||t===null)return e;if(t instanceof tt)return t;if(h2(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?xt.instance:n==="utc"||n==="gmt"?Y.utcInstance:Y.parseSpecifier(n)||ge.create(t)}else return Se(t)?Y.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new o2(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]},a2=On.hanidec.replace(/[\[|\]]/g,"").split("");function l2(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+=a2.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 Fe={};function c2(){Fe={}}function ue({numberingSystem:t},e=""){const n=t||"latn";return Fe[n]||(Fe[n]={}),Fe[n][e]||(Fe[n][e]=new RegExp(`${On[n]}${e}`)),Fe[n][e]}let yr=()=>Date.now(),gr="system",wr=null,Er=null,kr=null,br=60,Sr,Tr=null;class V{static get now(){return yr}static set now(e){yr=e}static set defaultZone(e){gr=e}static get defaultZone(){return be(gr,xt.instance)}static get defaultLocale(){return wr}static set defaultLocale(e){wr=e}static get defaultNumberingSystem(){return Er}static set defaultNumberingSystem(e){Er=e}static get defaultOutputCalendar(){return kr}static set defaultOutputCalendar(e){kr=e}static get defaultWeekSettings(){return Tr}static set defaultWeekSettings(e){Tr=xn(e)}static get twoDigitCutoffYear(){return br}static set twoDigitCutoffYear(e){br=e%100}static get throwOnInvalid(){return Sr}static set throwOnInvalid(e){Sr=e}static resetCaches(){R.resetCache(),ge.resetCache(),v.resetCache(),c2()}}class fe{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const vr=[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 se(t,e){return new fe("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:vr)[e-1]}function Nr(t,e){const n=st(t)?Or:vr,s=n.findIndex(i=>i<e),r=e-n[s];return{month:s+1,day:r}}function Nn(t,e){return(t-e+7)%7+1}function Mt(t,e=4,n=1){const{year:s,month:r,day:i}=t,o=_r(s,r,i),a=Nn(_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,...Ut(t)}}function Cr(t,e=4,n=1){const{weekYear:s,weekNumber:r,weekday:i}=t,o=Nn(_n(s,1,e),n),a=$e(s);let c=r*7+i-o-7+e,u;c<1?(u=s-1,c+=$e(u)):c>a?(u=s+1,c-=$e(s)):u=s;const{month:f,day:h}=Nr(u,c);return{year:u,month:f,day:h,...Ut(t)}}function Cn(t){const{year:e,month:n,day:s}=t,r=_r(e,n,s);return{year:e,ordinal:r,...Ut(t)}}function xr(t){const{year:e,ordinal:n}=t,{month:s,day:r}=Nr(e,n);return{year:e,month:s,day:r,...Ut(t)}}function Ar(t,e){if(!T(t.localWeekday)||!T(t.localWeekNumber)||!T(t.localWeekYear)){if(!T(t.weekday)||!T(t.weekNumber)||!T(t.weekYear))throw new Be("Cannot mix locale-based week fields with ISO-based week fields");return T(t.localWeekday)||(t.weekday=t.localWeekday),T(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),T(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 u2(t,e=4,n=1){const s=Dt(t.weekYear),r=re(t.weekNumber,1,rt(t.weekYear,e,n)),i=re(t.weekday,1,7);return s?r?i?!1:se("weekday",t.weekday):se("week",t.weekNumber):se("weekYear",t.weekYear)}function f2(t){const e=Dt(t.year),n=re(t.ordinal,1,$e(t.year));return e?n?!1:se("ordinal",t.ordinal):se("year",t.year)}function Rr(t){const e=Dt(t.year),n=re(t.month,1,12),s=re(t.day,1,Lt(t.year,t.month));return e?n?s?!1:se("day",t.day):se("month",t.month):se("year",t.year)}function Ir(t){const{hour:e,minute:n,second:s,millisecond:r}=t,i=re(e,0,23)||e===24&&n===0&&s===0&&r===0,o=re(n,0,59),a=re(s,0,59),c=re(r,0,999);return i?o?a?c?!1:se("millisecond",r):se("second",s):se("minute",n):se("hour",e)}function T(t){return typeof t>"u"}function Se(t){return typeof t=="number"}function Dt(t){return typeof t=="number"&&t%1===0}function h2(t){return typeof t=="string"}function d2(t){return Object.prototype.toString.call(t)==="[object Date]"}function Mr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Dr(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function m2(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 p2(t,e){return e.reduce((n,s)=>(n[s]=t[s],n),{})}function Ue(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(!re(t.firstDay,1,7)||!re(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!re(e,1,7)))throw new Z("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function re(t,e,n){return Dt(t)&&t>=e&&t<=n}function y2(t,e){return t-e*Math.floor(t/e)}function P(t,e=2){const n=t<0;let s;return n?s="-"+(""+-t).padStart(e,"0"):s=(""+t).padStart(e,"0"),s}function Te(t){if(!(T(t)||t===null||t===""))return parseInt(t,10)}function Re(t){if(!(T(t)||t===null||t===""))return parseFloat(t)}function An(t){if(!(T(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Rn(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 $e(t){return st(t)?366:365}function Lt(t,e){const n=y2(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 Vt(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 Vr(t,e,n){return-Nn(_n(t,1,e),n)+e-1}function rt(t,e=4,n=1){const s=Vr(t,e,n),r=Vr(t+1,e,n);return($e(t)-s+r)/7}function In(t){return t>99?t:t>V.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 Bt(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 Ft(t,e){const n={};for(const s in t)if(Ue(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}${P(n,2)}:${P(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${P(n,2)}${P(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Ut(t){return p2(t,["hour","minute","second","millisecond"])}const g2=["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"],w2=["J","F","M","A","M","J","J","A","S","O","N","D"];function $r(t){switch(t){case"narrow":return[...w2];case"short":return[...Ur];case"long":return[...g2];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"],E2=["M","T","W","T","F","S","S"];function Wr(t){switch(t){case"narrow":return[...E2];case"short":return[...qr];case"long":return[...Pr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const zr=["AM","PM"],k2=["Before Christ","Anno Domini"],b2=["BC","AD"],S2=["B","A"];function Hr(t){switch(t){case"narrow":return[...S2];case"short":return[...b2];case"long":return[...k2];default:return null}}function T2(t){return zr[t.hour<12?0:1]}function v2(t,e){return Wr(e)[t.weekday-1]}function O2(t,e){return $r(e)[t.month-1]}function _2(t,e){return Hr(e)[t.year<0?0:1]}function N2(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 h=t==="days";switch(e){case 1:return h?"tomorrow":`next ${r[t][0]}`;case-1:return h?"yesterday":`last ${r[t][0]}`;case 0:return h?"today":`this ${r[t][0]}`}}const o=Object.is(e,-0)||e<0,a=Math.abs(e),c=a===1,u=r[t],f=s?c?u[1]:u[2]||u[1]:c?r[t][0]:t;return o?`${a} ${f} ago`:`in ${a} ${f}`}function Zr(t,e){let n="";for(const s of t)s.literal?n+=s.val:n+=e(s.val);return n}const C2={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:fr,F:or,FF:lr,FFF:ur,FFFF:hr};class j{static create(e,n={}){return new j(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 C2[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 P(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?T2(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(p,m)=>s?O2(e,p):i(m?{month:p}:{month:p,day:"numeric"},"month"),u=(p,m)=>s?v2(e,p):i(m?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),f=p=>{const m=j.macroTokenToFormatOpts(p);return m?this.formatWithSystemDefault(e,m):p},h=p=>s?_2(e,p):i({era:p},"era"),y=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 h("short");case"GG":return h("long");case"GGGGG":return h("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 f(p)}};return Zr(j.parseFormat(n),y)}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 f=s(u);return f?this.num(c.get(f),u.length):u},i=j.parseFormat(n),o=i.reduce((c,{literal:u,val:f})=>u?c:c.concat(f),[]),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 Pe(...t){const e=t.reduce((n,s)=>n+s.source,"");return RegExp(`^${e}$`)}function qe(...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 We(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]]=Te(e[n+r]);return[s,null,n+r]}}const Jr=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,x2=`(?:${Jr.source}?(?:\\[(${jr.source})\\])?)?`,Mn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Gr=RegExp(`${Mn.source}${x2}`),Dn=RegExp(`(?:T${Gr.source})?`),A2=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,R2=/(\d{4})-?W(\d\d)(?:-?(\d))?/,I2=/(\d{4})-?(\d{3})/,M2=Yr("weekYear","weekNumber","weekDay"),D2=Yr("year","ordinal"),L2=/(\d{4})-(\d\d)-(\d\d)/,Kr=RegExp(`${Mn.source} ?(?:${Jr.source}|(${jr.source}))?`),V2=RegExp(`(?: ${Kr.source})?`);function ze(t,e,n){const s=t[e];return T(s)?n:Te(s)}function B2(t,e){return[{year:ze(t,e),month:ze(t,e+1,1),day:ze(t,e+2,1)},null,e+3]}function He(t,e){return[{hours:ze(t,e,0),minutes:ze(t,e+1,0),seconds:ze(t,e+2,0),milliseconds:An(t[e+3])},null,e+4]}function ot(t,e){const n=!t[e]&&!t[e+1],s=Bt(t[e+1],t[e+2]),r=n?null:Y.instance(s);return[{},r,e+3]}function at(t,e){const n=t[e]?ge.create(t[e]):null;return[{},n,e+1]}const F2=RegExp(`^T?${Mn.source}$`),U2=/^-?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 $2(t){const[e,n,s,r,i,o,a,c,u]=t,f=e[0]==="-",h=c&&c[0]==="-",y=(p,m=!1)=>p!==void 0&&(m||p&&f)?-p:p;return[{years:y(Re(n)),months:y(Re(s)),weeks:y(Re(r)),days:y(Re(i)),hours:y(Re(o)),minutes:y(Re(a)),seconds:y(Re(c),c==="-0"),milliseconds:y(An(u),h)}]}const P2={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?In(Te(e)):Te(e),month:Ur.indexOf(n)+1,day:Te(s),hour:Te(r),minute:Te(i)};return o&&(a.second=Te(o)),t&&(a.weekday=t.length>3?Pr.indexOf(t)+1:qr.indexOf(t)+1),a}const q2=/^(?:(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 W2(t){const[,e,n,s,r,i,o,a,c,u,f,h]=t,y=Ln(e,r,s,n,i,o,a);let p;return c?p=P2[c]:u?p=0:p=Bt(f,h),[y,new Y(p)]}function z2(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const H2=/^(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$/,Z2=/^(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$/,j2=/^(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 Y2(t){const[,e,n,s,r,i,o,a]=t;return[Ln(e,a,n,s,r,i,o),Y.utcInstance]}const J2=Pe(A2,Dn),G2=Pe(R2,Dn),K2=Pe(I2,Dn),Q2=Pe(Gr),Xr=qe(B2,He,ot,at),X2=qe(M2,He,ot,at),e0=qe(D2,He,ot,at),t0=qe(He,ot,at);function n0(t){return We(t,[J2,Xr],[G2,X2],[K2,e0],[Q2,t0])}function s0(t){return We(z2(t),[q2,W2])}function r0(t){return We(t,[H2,Qr],[Z2,Qr],[j2,Y2])}function i0(t){return We(t,[U2,$2])}const o0=qe(He);function a0(t){return We(t,[F2,o0])}const l0=Pe(L2,V2),c0=Pe(Kr),u0=qe(He,ot,at);function f0(t){return We(t,[l0,Xr],[c0,u0])}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}},h0={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},ie=146097/400,Ze=146097/4800,d0={years:{quarters:4,months:12,weeks:ie/7,days:ie,hours:ie*24,minutes:ie*24*60,seconds:ie*24*60*60,milliseconds:ie*24*60*60*1e3},quarters:{months:3,weeks:ie/28,days:ie/4,hours:ie*24/4,minutes:ie*24*60/4,seconds:ie*24*60*60/4,milliseconds:ie*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},Ie=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],m0=Ie.slice(0).reverse();function ve(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 x(s)}function ni(t,e){let n=e.milliseconds??0;for(const s of m0.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function si(t,e){const n=ni(t,e)<0?-1:1;Ie.reduceRight((s,r)=>{if(T(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),Ie.reduce((s,r)=>{if(T(e[r]))return s;if(s){const i=e[s]%1;e[s]-=i,e[r]+=i*t[s][r]}return r},null)}function p0(t){const e={};for(const[n,s]of Object.entries(t))s!==0&&(e[n]=s);return e}class x{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let s=n?d0:h0;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 x.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 x({values:Ft(e,x.normalizeUnit),loc:R.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(Se(e))return x.fromMillis(e);if(x.isDuration(e))return e;if(typeof e=="object")return x.fromObject(e);throw new Z(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[s]=i0(e);return s?x.fromObject(s,n):x.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[s]=a0(e);return s?x.fromObject(s,n):x.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 fe?e:new fe(e,n);if(V.throwOnInvalid)throw new Ua(s);return new x({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?j.create(this.loc,s).formatDurationFromString(this,e):ei}toHuman(e={}){if(!this.isValid)return ei;const n=Ie.map(s=>{const r=this.values[s];return T(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+=Rn(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},v.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=x.fromDurationLike(e),s={};for(const r of Ie)(Ue(n.values,r)||Ue(this.values,r))&&(s[r]=n.get(r)+this.get(r));return ve(this,{values:s},!0)}minus(e){if(!this.isValid)return this;const n=x.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 ve(this,{values:n},!0)}get(e){return this[x.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Ft(e,x.normalizeUnit)};return ve(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 ve(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),ve(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=p0(this.normalize().shiftToAll().toObject());return ve(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>x.normalizeUnit(o));const n={},s={},r=this.toObject();let i;for(const o of Ie)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;Se(r[o])&&(a+=r[o]);const c=Math.trunc(a);n[o]=c,s[o]=(a*1e3-c*1e3)/1e3}else Se(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),ve(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 ve(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 Ie)if(!n(this.values[s],e.values[s]))return!1;return!0}}const je="Invalid Interval";function y0(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 fe?e:new fe(e,n);if(V.throwOnInvalid)throw new Fa(s);return new B({invalid:s})}static fromDateTimes(e,n){const s=ct(e),r=ct(n),i=y0(s,r);return i??new B({start:s,end:r})}static after(e,n){const s=x.fromDurationLike(n),r=ct(e);return B.fromDateTimes(r,r.plus(s))}static before(e,n){const s=x.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=v.fromISO(s,n),o=i.isValid}catch{o=!1}let a,c;try{a=v.fromISO(r,n),c=a.isValid}catch{c=!1}if(o&&c)return B.fromDateTimes(i,a);if(o){const u=x.fromISO(r,n);if(u.isValid)return B.after(i,u)}else if(c){const u=x.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=x.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()})`:je}[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?j.create(this.s.loc.clone(n),e).formatInterval(this):je}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:je}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:je}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:je}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:je}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):x.invalid(this.invalidReason)}mapEndpoints(e){return B.fromDateTimes(e(this.s),e(this.e))}}class $t{static hasDST(e=V.defaultZone){const n=v.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return ge.isValidZone(e)}static normalizeZone(e){return be(e,V.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:Mr(),localeWeek:Dr()}}}function ri(t,e){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(e)-n(t);return Math.floor(x.fromMillis(s).as("days"))}function g0(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 f=ri(c,u);return(f-f%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 w0(t,e,n,s){let[r,i,o,a]=g0(t,e,n);const c=e-r,u=n.filter(h=>["hours","minutes","seconds","milliseconds"].indexOf(h)>=0);u.length===0&&(o<e&&(o=r.plus({[a]:1})),o!==r&&(i[a]=(i[a]||0)+c/(o-r)));const f=x.fromObject(i,s);return u.length>0?x.fromMillis(c,s).shiftTo(...u).plus(f):f}const E0="missing Intl.DateTimeFormat.formatToParts support";function A(t,e=n=>n){return{regex:t,deser:([n])=>e(l2(n))}}const ii="[ ]",oi=new RegExp(ii,"g");function k0(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(k0).join("|")),deser:([n])=>t.findIndex(s=>ai(n)===ai(s))+e}}function li(t,e){return{regex:t,deser:([,n,s])=>Bt(n,s),groups:e}}function Pt(t){return{regex:t,deser:([e])=>e}}function b0(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function S0(t,e){const n=ue(e),s=ue(e,"{2}"),r=ue(e,"{3}"),i=ue(e,"{4}"),o=ue(e,"{6}"),a=ue(e,"{1,2}"),c=ue(e,"{1,3}"),u=ue(e,"{1,6}"),f=ue(e,"{1,9}"),h=ue(e,"{2,4}"),y=ue(e,"{4,6}"),p=E=>({regex:RegExp(b0(E.val)),deser:([_])=>_,literal:!0}),b=(E=>{if(t.literal)return p(E);switch(E.val){case"G":return he(e.eras("short"),0);case"GG":return he(e.eras("long"),0);case"y":return A(u);case"yy":return A(h,In);case"yyyy":return A(i);case"yyyyy":return A(y);case"yyyyyy":return A(o);case"M":return A(a);case"MM":return A(s);case"MMM":return he(e.months("short",!0),1);case"MMMM":return he(e.months("long",!0),1);case"L":return A(a);case"LL":return A(s);case"LLL":return he(e.months("short",!1),1);case"LLLL":return he(e.months("long",!1),1);case"d":return A(a);case"dd":return A(s);case"o":return A(c);case"ooo":return A(r);case"HH":return A(s);case"H":return A(a);case"hh":return A(s);case"h":return A(a);case"mm":return A(s);case"m":return A(a);case"q":return A(a);case"qq":return A(s);case"s":return A(a);case"ss":return A(s);case"S":return A(c);case"SSS":return A(r);case"u":return Pt(f);case"uu":return Pt(a);case"uuu":return A(n);case"a":return he(e.meridiems(),0);case"kkkk":return A(i);case"kk":return A(h,In);case"W":return A(a);case"WW":return A(s);case"E":case"c":return A(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 Pt(/[a-z_+-/]{1,256}?/i);case" ":return Pt(/[^\S\n\r]/);default:return p(E)}})(t)||{invalidReason:E0};return b.token=t,b}const T0={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 v0(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=T0[o];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function O0(t){return[`^${t.map(n=>n.regex).reduce((n,s)=>`${n}(${s.source})`,"")}$`,t]}function _0(t,e,n){const s=t.match(e);if(s){const r={};let i=1;for(const o in n)if(Ue(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 N0(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 T(t.z)||(n=ge.create(t.z)),T(t.Z)||(n||(n=new Y(t.Z)),s=t.Z),T(t.q)||(t.M=(t.q-1)*3+1),T(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),T(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 Vn=null;function C0(){return Vn||(Vn=v.fromMillis(1555555555555)),Vn}function x0(t,e){if(t.literal)return t;const n=j.macroTokenToFormatOpts(t.val),s=hi(n,e);return s==null||s.includes(void 0)?t:s}function ci(t,e){return Array.prototype.concat(...t.map(n=>x0(n,e)))}class ui{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=ci(j.parseFormat(n),e),this.units=this.tokens.map(s=>S0(s,e)),this.disqualifyingUnit=this.units.find(s=>s.invalidReason),!this.disqualifyingUnit){const[s,r]=O0(this.units);this.regex=RegExp(s,"i"),this.handlers=r}}explainFromTokens(e){if(this.isValid){const[n,s]=_0(e,this.regex,this.handlers),[r,i,o]=s?N0(s):[null,null,void 0];if(Ue(s,"a")&&Ue(s,"H"))throw new Be("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 fi(t,e,n){return new ui(t,n).explainFromTokens(e)}function A0(t,e,n){const{result:s,zone:r,specificOffset:i,invalidReason:o}=fi(t,e,n);return[s,r,i,o]}function hi(t,e){if(!t)return null;const s=j.create(e,t).dtFormatter(C0()),r=s.formatToParts(),i=s.resolvedOptions();return r.map(o=>v0(o,t,i))}const Bn="Invalid DateTime",R0=864e13;function lt(t){return new fe("unsupported zone",`the zone "${t.name}" is not supported`)}function Fn(t){return t.weekData===null&&(t.weekData=Mt(t.c)),t.weekData}function Un(t){return t.localWeekData===null&&(t.localWeekData=Mt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Me(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new v({...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 qt(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 Wt(t,e,n){return di(Vt(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,Lt(s,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=x.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=Vt(i);let[c,u]=di(a,n,t.zone);return o!==0&&(c+=o,u=t.zone.offset(c)),{ts:c,o:u}}function Ye(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=v.fromObject(t,{...n,zone:c,specificOffset:i});return o?u:u.setZone(a)}else return v.invalid(new fe("unparsable",`the input "${r}" can't be parsed as ${s}`))}function zt(t,e,n=!0){return t.isValid?j.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+=P(t.c.year,n?6:4),e?(s+="-",s+=P(t.c.month),s+="-",s+=P(t.c.day)):(s+=P(t.c.month),s+=P(t.c.day)),s}function pi(t,e,n,s,r,i){let o=P(t.c.hour);return e?(o+=":",o+=P(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=":")):o+=P(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=P(t.c.second),(t.c.millisecond!==0||!s)&&(o+=".",o+=P(t.c.millisecond,3))),r&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=P(Math.trunc(-t.o/60)),o+=":",o+=P(Math.trunc(-t.o%60))):(o+="+",o+=P(Math.trunc(t.o/60)),o+=":",o+=P(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},I0={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},M0={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"],L0=["year","ordinal","hour","minute","second","millisecond"];function V0(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 V0(t)}}function B0(t){return Zt[t]||(Ht===void 0&&(Ht=V.now()),Zt[t]=t.offset(Ht)),Zt[t]}function Ei(t,e){const n=be(e.zone,V.defaultZone);if(!n.isValid)return v.invalid(lt(n));const s=R.fromObject(e);let r,i;if(T(t.year))r=V.now();else{for(const c of gi)T(t[c])&&(t[c]=yi[c]);const o=Rr(t)||Ir(t);if(o)return v.invalid(o);const a=B0(n);[r,i]=Wt(t,a,n)}return new v({ts:r,zone:n,loc:s,o:i})}function ki(t,e,n){const s=T(n.round)?!0:n.round,r=(o,a)=>(o=Rn(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 bi(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 v{constructor(e){const n=e.zone||V.defaultZone;let s=e.invalid||(Number.isNaN(e.ts)?new fe("invalid input"):null)||(n.isValid?null:lt(n));this.ts=T(e.ts)?V.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=Se(e.o)&&!e.old?e.o:n.offset(this.ts);r=qt(this.ts,a),s=Number.isNaN(r.year)?new fe("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 v({})}static local(){const[e,n]=bi(arguments),[s,r,i,o,a,c,u]=n;return Ei({year:s,month:r,day:i,hour:o,minute:a,second:c,millisecond:u},e)}static utc(){const[e,n]=bi(arguments),[s,r,i,o,a,c,u]=n;return e.zone=Y.utcInstance,Ei({year:s,month:r,day:i,hour:o,minute:a,second:c,millisecond:u},e)}static fromJSDate(e,n={}){const s=d2(e)?e.valueOf():NaN;if(Number.isNaN(s))return v.invalid("invalid input");const r=be(n.zone,V.defaultZone);return r.isValid?new v({ts:s,zone:r,loc:R.fromObject(n)}):v.invalid(lt(r))}static fromMillis(e,n={}){if(Se(e))return e<-864e13||e>R0?v.invalid("Timestamp out of range"):new v({ts:e,zone:be(n.zone,V.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(Se(e))return new v({ts:e*1e3,zone:be(n.zone,V.defaultZone),loc:R.fromObject(n)});throw new Z("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const s=be(n.zone,V.defaultZone);if(!s.isValid)return v.invalid(lt(s));const r=R.fromObject(n),i=Ft(e,wi),{minDaysInFirstWeek:o,startOfWeek:a}=Ar(i,r),c=V.now(),u=T(n.specificOffset)?s.offset(c):n.specificOffset,f=!T(i.ordinal),h=!T(i.year),y=!T(i.month)||!T(i.day),p=h||y,m=i.weekYear||i.weekNumber;if((p||f)&&m)throw new Be("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(y&&f)throw new Be("Can't mix ordinal dates with month/day");const b=m||i.weekday&&!p;let E,_,N=qt(c,u);b?(E=D0,_=I0,N=Mt(N,o,a)):f?(E=L0,_=M0,N=Cn(N)):(E=gi,_=yi);let M=!1;for(const G of E){const ts=i[G];T(ts)?M?i[G]=_[G]:i[G]=N[G]:M=!0}const ee=b?u2(i,o,a):f?f2(i):Rr(i),L=ee||Ir(i);if(L)return v.invalid(L);const ae=b?Cr(i,o,a):f?xr(i):i,[F,me]=Wt(ae,u,s),W=new v({ts:F,zone:s,o:me,loc:r});return i.weekday&&p&&e.weekday!==W.weekday?v.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${W.toISO()}`):W.isValid?W:v.invalid(W.invalid)}static fromISO(e,n={}){const[s,r]=n0(e);return Ye(s,r,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[s,r]=s0(e);return Ye(s,r,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[s,r]=r0(e);return Ye(s,r,n,"HTTP",n)}static fromFormat(e,n,s={}){if(T(e)||T(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,f]=A0(o,e,n);return f?v.invalid(f):Ye(a,c,s,`format ${n}`,e,u)}static fromString(e,n,s={}){return v.fromFormat(e,n,s)}static fromSQL(e,n={}){const[s,r]=f0(e);return Ye(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 fe?e:new fe(e,n);if(V.throwOnInvalid)throw new Ba(s);return new v({invalid:s})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const s=hi(e,R.fromObject(n));return s?s.map(r=>r?r.val:null).join(""):null}static expandFormat(e,n={}){return ci(j.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?Cn(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=Vt(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,f=qt(c,o),h=qt(u,a);return f.hour===h.hour&&f.minute===h.minute&&f.second===h.second&&f.millisecond===h.millisecond?[Me(this,{ts:c}),Me(this,{ts:u})]:[this]}get isInLeapYear(){return st(this.year)}get daysInMonth(){return Lt(this.year,this.month)}get daysInYear(){return this.isValid?$e(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}=j.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(V.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:s=!1}={}){if(e=be(e,V.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]=Wt(o,i,e)}return Me(this,{ts:r,zone:e})}else return v.invalid(lt(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:s}={}){const r=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:s});return Me(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Ft(e,wi),{minDaysInFirstWeek:s,startOfWeek:r}=Ar(n,this.loc),i=!T(n.weekYear)||!T(n.weekNumber)||!T(n.weekday),o=!T(n.ordinal),a=!T(n.year),c=!T(n.month)||!T(n.day),u=a||c,f=n.weekYear||n.weekNumber;if((u||o)&&f)throw new Be("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&o)throw new Be("Can't mix ordinal dates with month/day");let h;i?h=Cr({...Mt(this.c,s,r),...n},s,r):T(n.ordinal)?(h={...this.toObject(),...n},T(n.day)&&(h.day=Math.min(Lt(h.year,h.month),h.day))):h=xr({...Cn(this.c),...n});const[y,p]=Wt(h,this.o,this.zone);return Me(this,{ts:y,o:p})}plus(e){if(!this.isValid)return this;const n=x.fromDurationLike(e);return Me(this,mi(this,n))}minus(e){if(!this.isValid)return this;const n=x.fromDurationLike(e).negate();return Me(this,mi(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const s={},r=x.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?j.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):Bn}toLocaleString(e=Ct,n={}){return this.isValid?j.create(this.loc.clone(n),e).formatDateTime(this):Bn}toLocaleParts(e={}){return this.isValid?j.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 zt(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 zt(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return zt(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")),zt(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 x.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...s},i=m2(n).map(x.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,c=o?e:this,u=w0(a,c,i,r);return o?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(v.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||v.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),ki(n,this.plus(s),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?ki(e.base||v.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(v.isDateTime))throw new Z("min requires all arguments be DateTimes");return Lr(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(v.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 fi(o,e,n)}static fromStringExplain(e,n,s={}){return v.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(T(e)||T(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:f}=n.explainFromTokens(e);return f?v.invalid(f):Ye(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 $a}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 Pa}static get DATETIME_FULL(){return cr}static get DATETIME_FULL_WITH_SECONDS(){return ur}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return hr}}function ct(t){if(v.isDateTime(t))return t;if(t&&t.valueOf&&Se(t.valueOf()))return v.fromJSDate(t);if(t&&typeof t=="object")return v.fromObject(t);throw new Z(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const F0={},U0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function $0(t,e){return l.openBlock(),l.createElementBlock("svg",U0,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 P0=K(F0,[["render",$0]]),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-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",Ti="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",vi="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",De={PREGUNTA:1,IMAGEN:2,AUDIO:3,VIDEO:4,NINGUNO:0},q0={class:"messages-container-list"},W0={class:"message-container"},z0={key:0,class:"btn-container-widget"},H0=["onClick"],Z0={class:"chat-message"},j0={key:0,class:"flex flex-col gap-2"},Y0={style:{"font-size":"14px"},class:"flex justify-between gap-2"},J0=["href","onClick"],G0={class:"flex flex-col items-center"},K0=["src"],Q0={key:1},X0={key:0,style:{"text-align":"center"}},el=["onClick"],tl=["src"],nl={key:1},sl=["src"],rl=["innerHTML"],il={class:"detail-message flex justify-between mt-2"},ol={key:0,class:"mr-5"},al={key:1,class:"mr-5"},ll=K(l.defineComponent({__name:"MessageList",props:{messages:{type:Array,default:()=>[]},canLoadMoreMessages:{type:Boolean,default:!1}},emits:["loadMore","retry","onQualifying","see"],setup(t,{emit:e}){const n=e,s=t,r=l.ref(),{pause:i,resume:o}=Va(r,([{isIntersecting:y}])=>{y&&n("loadMore")});function a(y,p){return!y.response||typeof y.response!="object"?!0:p.iconUnicode===y.response.message}l.onBeforeMount(()=>{s.canLoadMoreMessages||i()}),l.watch(()=>s.canLoadMoreMessages,y=>{if(y){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(y){const p=Object.values(c);return!p||Array.isArray(p)&&p.length===0?y:p.reduce((b,E)=>b.replace(E.regex,(_,N)=>/--custom-tag/.test(_)?_:E.tag.replace(/{val}/g,N)),y).replace(/--custom-tag/g,"")}const f=[{label:"Excelente",value:1,icon:vi,iconUnicode:"😊"},{label:"Buena",value:2,icon:_i,iconUnicode:"😄"},{label:"Aceptable",value:3,icon:Oi,iconUnicode:"🙂"},{label:"Mala",value:4,icon:Si,iconUnicode:"😐"},{label:"Muy Mala",value:5,icon:Ti,iconUnicode:"🙁"}],h={"😊":vi,"😄":_i,"🙂":Oi,"😐":Si,"🙁":Ti,"":null};return(y,p)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{ref_key:"target",ref:r,class:"target"},null,512),l.createElementVNode("div",q0,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.messages,m=>{var b,E,_;return l.openBlock(),l.createElementBlock("div",{key:m.id,class:l.normalizeClass(["message",m.esCliente?"message-right":"message-left"])},[l.createElementVNode("div",W0,[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:N=>n("retry",m)},[l.createVNode(P0)],8,H0)])):l.createCommentVNode("",!0),l.createElementVNode("div",Z0,[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",Y0,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(f,N=>l.createElementVNode("a",{key:N.value,href:m.response?void 0:"javascript:",class:l.normalizeClass(["btn-icon",{"content-disabled":!a(m,N)}]),onClick:M=>!m.response&&n("onQualifying",{message:m,emoji:N})},[l.createElementVNode("div",G0,[l.createElementVNode("img",{src:N.icon,alt:"icono",class:"icon"},null,8,K0),l.createElementVNode("span",null,l.toDisplayString(N.label),1)])],10,J0)),64))])])):(l.openBlock(),l.createElementBlock("div",Q0,[((b=m.messageType)==null?void 0:b.code)===l.unref(De).IMAGEN?(l.openBlock(),l.createElementBlock("div",X0,[l.createElementVNode("a",{href:"javascript:",class:"btn-icon",onClick:N=>n("see",m)},[l.createElementVNode("img",{src:m.thumbnailFile??m.urlFile,alt:"image",width:"150"},null,8,tl)],8,el)])):l.createCommentVNode("",!0),h[m.message??""]?(l.openBlock(),l.createElementBlock("div",nl,[l.createElementVNode("img",{src:h[m.message],alt:"icono",class:"icon"},null,8,sl)])):(l.openBlock(),l.createElementBlock("div",{key:2,class:"message-text",style:{"white-space":"pre-line"},innerHTML:u(m.message)},null,8,rl))])),l.createElementVNode("div",il,[(E=m.sender)!=null&&E.nombreCompleto?(l.openBlock(),l.createElementBlock("span",ol,l.toDisplayString(m.esCliente?(_=m.sender)==null?void 0:_.nombreCompleto:"ECOSISTEMA JL"),1)):(l.openBlock(),l.createElementBlock("span",al)),l.createElementVNode("span",null,l.toDisplayString(l.unref(v).fromISO(m.createdAt).toFormat("dd-MM-yyyy HH:mm")),1)])],2)],2)])])],2)}),128))])],64))}}),[["__scopeId","data-v-586d8c26"]]),cl={},ul={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{width:"28px",height:"28px"}};function fl(t,e){return l.openBlock(),l.createElementBlock("svg",ul,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 hl=K(cl,[["render",fl],["__scopeId","data-v-d9a6b2b7"]]);function dl(t,e,n){for(let s=t.length-1;s>=0;s--)if(t[s][e]===n)return s;return-1}const ye=Object.create(null);ye.open="0",ye.close="1",ye.ping="2",ye.pong="3",ye.message="4",ye.upgrade="5",ye.noop="6";const jt=Object.create(null);Object.keys(ye).forEach(t=>{jt[ye[t]]=t});const Pn={type:"error",data:"parser error"},Ni=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ci=typeof ArrayBuffer=="function",xi=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,qn=({type:t,data:e},n,s)=>Ni&&e instanceof Blob?n?s(e):Ai(e,s):Ci&&(e instanceof ArrayBuffer||xi(e))?n?s(e):Ai(new Blob([e]),s):s(ye[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 Ri(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Wn;function ml(t,e){if(Ni&&t.data instanceof Blob)return t.data.arrayBuffer().then(Ri).then(e);if(Ci&&(t.data instanceof ArrayBuffer||xi(t.data)))return e(Ri(t.data));qn(t,!1,n=>{Wn||(Wn=new TextEncoder),e(Wn.encode(n))})}const Ii="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ut=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Ii.length;t++)ut[Ii.charCodeAt(t)]=t;const pl=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),f=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)],f[r++]=i<<2|o>>4,f[r++]=(o&15)<<4|a>>2,f[r++]=(a&3)<<6|c&63;return u},yl=typeof ArrayBuffer=="function",zn=(t,e)=>{if(typeof t!="string")return{type:"message",data:Mi(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:gl(t.substring(1),e)}:jt[n]?t.length>1?{type:jt[n],data:t.substring(1)}:{type:jt[n]}:Pn},gl=(t,e)=>{if(yl){const n=pl(t);return Mi(n,e)}else return{base64:!0,data:t}},Mi=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Di="",wl=(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(Di))})})},El=(t,e)=>{const n=t.split(Di),s=[];for(let r=0;r<n.length;r++){const i=zn(n[r],e);if(s.push(i),i.type==="error")break}return s};function kl(){return new TransformStream({transform(t,e){ml(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 Hn;function Yt(t){return t.reduce((e,n)=>e+n.length,0)}function Jt(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 bl(t,e){Hn||(Hn=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(Yt(n)<1)break;const c=Jt(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(Yt(n)<2)break;const c=Jt(n,2);r=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),s=3}else if(s===2){if(Yt(n)<8)break;const c=Jt(n,8),u=new DataView(c.buffer,c.byteOffset,c.length),f=u.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Pn);break}r=f*Math.pow(2,32)+u.getUint32(4),s=3}else{if(Yt(n)<r)break;const c=Jt(n,r);a.enqueue(zn(i?c:Hn.decode(c),e)),s=0}if(r===0||r>t){a.enqueue(Pn);break}}}})}const Li=4;function q(t){if(t)return Sl(t)}function Sl(t){for(var e in q.prototype)t[e]=q.prototype[e];return t}q.prototype.on=q.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},q.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},q.prototype.off=q.prototype.removeListener=q.prototype.removeAllListeners=q.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},q.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},q.prototype.emitReserved=q.prototype.emit,q.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},q.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Gt=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),oe=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Tl="arraybuffer";function xu(){}function Vi(t,...e){return e.reduce((n,s)=>(t.hasOwnProperty(s)&&(n[s]=t[s]),n),{})}const vl=oe.setTimeout,Ol=oe.clearTimeout;function Kt(t,e){e.useNativeTimers?(t.setTimeoutFn=vl.bind(oe),t.clearTimeoutFn=Ol.bind(oe)):(t.setTimeoutFn=oe.setTimeout.bind(oe),t.clearTimeoutFn=oe.clearTimeout.bind(oe))}const _l=1.33;function Nl(t){return typeof t=="string"?Cl(t):Math.ceil((t.byteLength||t.size)*_l)}function Cl(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 xl(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function Al(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 Rl extends Error{constructor(e,n,s){super(e),this.description=n,this.context=s,this.type="TransportError"}}class Zn extends q{constructor(e){super(),this.writable=!1,Kt(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 Rl(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=zn(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=xl(e);return n.length?"?"+n:""}}class Il 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,wl(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 Ml=Fi;function Dl(){}class Ll extends Il{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 nn extends q{constructor(e,n,s){super(),this.createRequest=e,Kt(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=Vi(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=nn.requestsCount++,nn.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 nn.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 oe?"pagehide":"unload";addEventListener(t,Ui,!1)}}function Ui(){for(let t in Je.requests)Je.requests.hasOwnProperty(t)&&Je.requests[t].abort()}const Vl=function(){const t=$i({xdomain:!1});return t&&t.responseType!==null}();class Bl extends Ll{constructor(e){super(e);const n=e&&e.forceBase64;this.supportsBinary=Vl&&!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||Ml))return new XMLHttpRequest}catch{}if(!e)try{return new oe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Pi=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Fl extends Zn{get name(){return"websocket"}doOpen(){const e=this.uri(),n=this.opts.protocols,s=Pi?{}:Vi(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&&Gt(()=>{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=oe.WebSocket||oe.MozWebSocket;class Ul extends Fl{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 $l 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=bl(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(n).getReader(),r=kl();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&&Gt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const Pl={websocket:Ul,webtransport:$l,polling:Bl},ql=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Wl=["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=ql.exec(t||""),i={},o=14;for(;o--;)i[Wl[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=Hl(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 Hl(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",Qt=[];Jn&&addEventListener("offline",()=>{Qt.forEach(t=>t())},!1);class Oe extends q{constructor(e,n){if(super(),this.binaryType=Tl,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);Kt(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=Al(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"})},Qt.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+=Nl(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,Gt(()=>{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=Qt.indexOf(this._offlineEventListener);s!==-1&&Qt.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}}Oe.protocol=Li;class Zl 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",h=>{if(!s)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Oe.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const y=new Error("probe error");y.transport=n.name,this.emitReserved("upgradeError",y)}}))};function i(){s||(s=!0,f(),n.close(),n=null)}const o=h=>{const y=new Error("probe error: "+h);y.transport=n.name,i(),this.emitReserved("upgradeError",y)};function a(){o("transport closed")}function c(){o("socket closed")}function u(h){n&&h.name!==n.name&&i()}const f=()=>{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 Zl{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=>Pl[r]).filter(r=>!!r)),super(e,s)}};function Yl(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 Jl=typeof ArrayBuffer=="function",Gl=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,qi=Object.prototype.toString,Kl=typeof Blob=="function"||typeof Blob<"u"&&qi.call(Blob)==="[object BlobConstructor]",Ql=typeof File=="function"||typeof File<"u"&&qi.call(File)==="[object FileConstructor]";function Gn(t){return Jl&&(t instanceof ArrayBuffer||Gl(t))||Kl&&t instanceof Blob||Ql&&t instanceof File}function Xt(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,s=t.length;n<s;n++)if(Xt(t[n]))return!0;return!1}if(Gn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Xt(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Xt(t[n]))return!0;return!1}function Xl(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 ec(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 tc=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],nc=5;var C;(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"})(C||(C={}));class sc{constructor(e){this.replacer=e}encode(e){return(e.type===C.EVENT||e.type===C.ACK)&&Xt(e)?this.encodeAsBinary({type:e.type===C.EVENT?C.BINARY_EVENT:C.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===C.BINARY_EVENT||e.type===C.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=Xl(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 q{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===C.BINARY_EVENT;s||n.type===C.BINARY_ACK?(n.type=s?C.EVENT:C.ACK,this.reconstructor=new rc(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(C[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===C.BINARY_EVENT||s.type===C.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 C.CONNECT:return Wi(n);case C.DISCONNECT:return n===void 0;case C.CONNECT_ERROR:return typeof n=="string"||Wi(n);case C.EVENT:case C.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&tc.indexOf(n[0])===-1);case C.ACK:case C.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class rc{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=ec(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const ic=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Xn,Encoder:sc,get PacketType(){return C},protocol:nc},Symbol.toStringTag,{value:"Module"}));function de(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const oc=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class zi extends q{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=[de(e,"open",this.onopen.bind(this)),de(e,"packet",this.onpacket.bind(this)),de(e,"error",this.onerror.bind(this)),de(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(oc.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:C.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const f=this.ids++,h=n.pop();this._registerAckCallback(f,h),o.id=f}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:C.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 C.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 C.EVENT:case C.BINARY_EVENT:this.onevent(e);break;case C.ACK:case C.BINARY_ACK:this.onack(e);break;case C.DISCONNECT:this.ondisconnect();break;case C.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:C.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:C.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 q{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,Kt(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||ic;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=de(n,"open",function(){s.onopen(),e&&e()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=de(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(de(e,"ping",this.onping.bind(this)),de(e,"data",this.ondata.bind(this)),de(e,"error",this.onerror.bind(this)),de(e,"close",this.onclose.bind(this)),de(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){Gt(()=>{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 zi(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 ft={};function en(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=Yl(t,e.path||"/socket.io"),s=n.source,r=n.id,i=n.path,o=ft[r]&&i in ft[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new es(s,e):(ft[r]||(ft[r]=new es(s,e)),c=ft[r]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}Object.assign(en,{Manager:es,Socket:zi,io:en,connect:en});var Hi=(t=>(t.WEBCHAT="webchat",t.CENTRAL="central",t.WHATSAPP="whatsapp",t.TELEGRAM="telegram",t.SMS="sms",t))(Hi||{});function ac(){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 lc={},cc={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 uc(t,e){return l.openBlock(),l.createElementBlock("svg",cc,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
|
1
|
+
(function(be,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(be=typeof globalThis<"u"?globalThis:be||self,l(be["vue-wiguet-chatweb"]={},be.Vue))})(this,function(be,l){"use strict";let pt;const Yi=new Uint8Array(16);function Ji(){if(!pt&&(pt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pt(Yi)}const z=[];for(let t=0;t<256;++t)z.push((t+256).toString(16).slice(1));function Gi(t,e=0){return z[t[e+0]]+z[t[e+1]]+z[t[e+2]]+z[t[e+3]]+"-"+z[t[e+4]]+z[t[e+5]]+"-"+z[t[e+6]]+z[t[e+7]]+"-"+z[t[e+8]]+z[t[e+9]]+"-"+z[t[e+10]]+z[t[e+11]]+z[t[e+12]]+z[t[e+13]]+z[t[e+14]]+z[t[e+15]]}const rs={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ki(t,e,n){if(rs.randomUUID&&!t)return rs.randomUUID();t=t||{};const s=t.random||(t.rng||Ji)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Gi(s)}const K=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},Qi={},Xi={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function eo(t,e){return l.openBlock(),l.createElementBlock("svg",Xi,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 is=K(Qi,[["render",eo]]),to={},no={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function so(t,e){return l.openBlock(),l.createElementBlock("svg",no,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 os=K(to,[["render",so]]);function as(t,e){return function(){return t.apply(e,arguments)}}const{toString:ro}=Object.prototype,{getPrototypeOf:sn}=Object,yt=(t=>e=>{const n=ro.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),le=t=>(t=t.toLowerCase(),e=>yt(e)===t),gt=t=>e=>typeof e===t,{isArray:Be}=Array,Xe=gt("undefined");function io(t){return t!==null&&!Xe(t)&&t.constructor!==null&&!Xe(t.constructor)&&Q(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ls=le("ArrayBuffer");function oo(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ls(t.buffer),e}const ao=gt("string"),Q=gt("function"),cs=gt("number"),wt=t=>t!==null&&typeof t=="object",lo=t=>t===!0||t===!1,Et=t=>{if(yt(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)},co=le("Date"),uo=le("File"),fo=le("Blob"),ho=le("FileList"),mo=t=>wt(t)&&Q(t.pipe),po=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Q(t.append)&&((e=yt(t))==="formdata"||e==="object"&&Q(t.toString)&&t.toString()==="[object FormData]"))},yo=le("URLSearchParams"),[go,wo,Eo,ko]=["ReadableStream","Request","Response","Headers"].map(le),bo=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function et(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let s,r;if(typeof t!="object"&&(t=[t]),Be(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 us(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 Ce=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fs=t=>!Xe(t)&&t!==Ce;function rn(){const{caseless:t}=fs(this)&&this||{},e={},n=(s,r)=>{const i=t&&us(e,r)||r;Et(e[i])&&Et(s)?e[i]=rn(e[i],s):Et(s)?e[i]=rn({},s):Be(s)?e[i]=s.slice():e[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&et(arguments[s],n);return e}const To=(t,e,n,{allOwnKeys:s}={})=>(et(e,(r,i)=>{n&&Q(r)?t[i]=as(r,n):t[i]=r},{allOwnKeys:s}),t),So=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),vo=(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)},Oo=(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},_o=(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(Be(t))return t;let e=t.length;if(!cs(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Co=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&sn(Uint8Array)),xo=(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])}},Ao=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},Ro=le("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),Mo=le("RegExp"),ds=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),s={};et(n,(r,i)=>{let o;(o=e(r,i,t))!==!1&&(s[i]=o||r)}),Object.defineProperties(t,s)},Do=t=>{ds(t,(e,n)=>{if(Q(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=t[n];if(Q(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+"'")})}})},Lo=(t,e)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Be(t)?s(t):s(String(t).split(e)),n},Vo=()=>{},Bo=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,on="abcdefghijklmnopqrstuvwxyz",ms="0123456789",ps={DIGIT:ms,ALPHA:on,ALPHA_DIGIT:on+on.toUpperCase()+ms},Fo=(t=16,e=ps.ALPHA_DIGIT)=>{let n="";const{length:s}=e;for(;t--;)n+=e[Math.random()*s|0];return n};function Uo(t){return!!(t&&Q(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const $o=t=>{const e=new Array(10),n=(s,r)=>{if(wt(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[r]=s;const i=Be(s)?[]:{};return et(s,(o,a)=>{const c=n(o,r+1);!Xe(c)&&(i[a]=c)}),e[r]=void 0,i}}return s};return n(t,0)},Po=le("AsyncFunction"),qo=t=>t&&(wt(t)||Q(t))&&Q(t.then)&&Q(t.catch),ys=((t,e)=>t?setImmediate:e?((n,s)=>(Ce.addEventListener("message",({source:r,data:i})=>{r===Ce&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),Ce.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Q(Ce.postMessage)),Wo=typeof queueMicrotask<"u"?queueMicrotask.bind(Ce):typeof process<"u"&&process.nextTick||ys,d={isArray:Be,isArrayBuffer:ls,isBuffer:io,isFormData:po,isArrayBufferView:oo,isString:ao,isNumber:cs,isBoolean:lo,isObject:wt,isPlainObject:Et,isReadableStream:go,isRequest:wo,isResponse:Eo,isHeaders:ko,isUndefined:Xe,isDate:co,isFile:uo,isBlob:fo,isRegExp:Mo,isFunction:Q,isStream:mo,isURLSearchParams:yo,isTypedArray:Co,isFileList:ho,forEach:et,merge:rn,extend:To,trim:bo,stripBOM:So,inherits:vo,toFlatObject:Oo,kindOf:yt,kindOfTest:le,endsWith:_o,toArray:No,forEachEntry:xo,matchAll:Ao,isHTMLForm:Ro,hasOwnProperty:hs,hasOwnProp:hs,reduceDescriptors:ds,freezeMethods:Do,toObjectSet:Lo,toCamelCase:Io,noop:Vo,toFiniteNumber:Bo,findKey:us,global:Ce,isContextDefined:fs,ALPHABET:ps,generateString:Fo,isSpecCompliantForm:Uo,toJSONObject:$o,isAsyncFn:Po,isThenable:qo,setImmediate:ys,asap:Wo};function O(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)}d.inherits(O,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:d.toJSONObject(this.config),code:this.code,status:this.status}}});const gs=O.prototype,ws={};["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=>{ws[t]={value:t}}),Object.defineProperties(O,ws),Object.defineProperty(gs,"isAxiosError",{value:!0}),O.from=(t,e,n,s,r,i)=>{const o=Object.create(gs);return d.toFlatObject(t,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),O.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 d.isPlainObject(t)||d.isArray(t)}function Es(t){return d.endsWith(t,"[]")?t.slice(0,-2):t}function ks(t,e,n){return t?t.concat(e).map(function(r,i){return r=Es(r),!n&&i?"["+r+"]":r}).join(n?".":""):e}function Ho(t){return d.isArray(t)&&!t.some(an)}const Zo=d.toFlatObject(d,{},null,function(e){return/^is[A-Z]/.test(e)});function kt(t,e,n){if(!d.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=d.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,k){return!d.isUndefined(k[T])});const s=n.metaTokens,r=n.visitor||f,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(e);if(!d.isFunction(r))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(d.isDate(m))return m.toISOString();if(!c&&d.isBlob(m))throw new O("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(m)||d.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,T,k){let _=m;if(m&&!k&&typeof m=="object"){if(d.endsWith(T,"{}"))T=s?T:T.slice(0,-2),m=JSON.stringify(m);else if(d.isArray(m)&&Ho(m)||(d.isFileList(m)||d.endsWith(T,"[]"))&&(_=d.toArray(m)))return T=Es(T),_.forEach(function(L,ee){!(d.isUndefined(L)||L===null)&&e.append(o===!0?ks([T],ee,i):o===null?T:T+"[]",u(L))}),!1}return an(m)?!0:(e.append(ks(k,T,i),u(m)),!1)}const h=[],w=Object.assign(Zo,{defaultVisitor:f,convertValue:u,isVisitable:an});function g(m,T){if(!d.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+T.join("."));h.push(m),d.forEach(m,function(_,C){(!(d.isUndefined(_)||_===null)&&r.call(e,_,d.isString(C)?C.trim():C,T,w))===!0&&g(_,T?T.concat(C):[C])}),h.pop()}}if(!d.isObject(t))throw new TypeError("data must be an object");return g(t),e}function bs(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 Ts=ln.prototype;Ts.append=function(e,n){this._pairs.push([e,n])},Ts.toString=function(e){const n=e?function(s){return e.call(this,s,bs)}:bs;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function jo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ss(t,e,n){if(!e)return t;const s=n&&n.encode||jo;d.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(e,n):i=d.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 vs{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){d.forEach(this.handlers,function(s){s!==null&&e(s)})}}const Os={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yo={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,Jo=cn&&(!un||["ReactNative","NativeScript","NS"].indexOf(un.product)<0),Go=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ko=cn&&window.location.href||"http://localhost",H={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cn,hasStandardBrowserEnv:Jo,hasStandardBrowserWebWorkerEnv:Go,navigator:un,origin:Ko},Symbol.toStringTag,{value:"Module"})),...Yo};function Qo(t,e){return kt(t,new H.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return H.isNode&&d.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Xo(t){return d.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function ea(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 _s(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&&d.isArray(r)?r.length:o,c?(d.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!d.isObject(r[o]))&&(r[o]=[]),e(n,s,r[o],i)&&d.isArray(r[o])&&(r[o]=ea(r[o])),!a)}if(d.isFormData(t)&&d.isFunction(t.entries)){const n={};return d.forEachEntry(t,(s,r)=>{e(Xo(s),r,n,0)}),n}return null}function ta(t,e,n){if(d.isString(t))try{return(e||JSON.parse)(t),d.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const tt={transitional:Os,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=d.isObject(e);if(i&&d.isHTMLForm(e)&&(e=new FormData(e)),d.isFormData(e))return r?JSON.stringify(_s(e)):e;if(d.isArrayBuffer(e)||d.isBuffer(e)||d.isStream(e)||d.isFile(e)||d.isBlob(e)||d.isReadableStream(e))return e;if(d.isArrayBufferView(e))return e.buffer;if(d.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 Qo(e,this.formSerializer).toString();if((a=d.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),ta(e)):e}],transformResponse:[function(e){const n=this.transitional||tt.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(d.isResponse(e)||d.isReadableStream(e))return e;if(e&&d.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"?O.from(a,O.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}}};d.forEach(["delete","get","head","post","put","patch"],t=>{tt.headers[t]={}});const na=d.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"]),sa=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]&&na[n])&&(n==="set-cookie"?e[n]?e[n].push(s):e[n]=[s]:e[n]=e[n]?e[n]+", "+s:s)}),e},Ns=Symbol("internals");function nt(t){return t&&String(t).trim().toLowerCase()}function bt(t){return t===!1||t==null?t:d.isArray(t)?t.map(bt):String(t)}function ra(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 ia=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function fn(t,e,n,s,r){if(d.isFunction(s))return s.call(this,e,n);if(r&&(e=n),!!d.isString(e)){if(d.isString(s))return e.indexOf(s)!==-1;if(d.isRegExp(s))return s.test(e)}}function oa(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,s)=>n.toUpperCase()+s)}function aa(t,e){const n=d.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 f=nt(c);if(!f)throw new Error("header name must be a non-empty string");const h=d.findKey(r,f);(!h||r[h]===void 0||u===!0||u===void 0&&r[h]!==!1)&&(r[h||c]=bt(a))}const o=(a,c)=>d.forEach(a,(u,f)=>i(u,f,c));if(d.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(d.isString(e)&&(e=e.trim())&&!ia(e))o(sa(e),n);else if(d.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=nt(e),e){const s=d.findKey(this,e);if(s){const r=this[s];if(!n)return r;if(n===!0)return ra(r);if(d.isFunction(n))return n.call(this,r,s);if(d.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=nt(e),e){const s=d.findKey(this,e);return!!(s&&this[s]!==void 0&&(!n||fn(this,this[s],s,n)))}return!1}delete(e,n){const s=this;let r=!1;function i(o){if(o=nt(o),o){const a=d.findKey(s,o);a&&(!n||fn(s,s[a],a,n))&&(delete s[a],r=!0)}}return d.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||fn(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const n=this,s={};return d.forEach(this,(r,i)=>{const o=d.findKey(s,i);if(o){n[o]=bt(r),delete n[i];return}const a=e?oa(i):String(i).trim();a!==i&&delete n[i],n[a]=bt(r),s[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return d.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=e&&d.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[Ns]=this[Ns]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=nt(o);s[a]||(aa(r,o),s[a]=!0)}return d.isArray(e)?e.forEach(i):i(e),this}};J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),d.reduceDescriptors(J.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(s){this[n]=s}}}),d.freezeMethods(J);function hn(t,e){const n=this||tt,s=e||n,r=J.from(s.headers);let i=s.data;return d.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 Fe(t,e,n){O.call(this,t??"canceled",O.ERR_CANCELED,e,n),this.name="CanceledError"}d.inherits(Fe,O,{__CANCEL__:!0});function xs(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new O("Request failed with status code "+n.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function la(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ca(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(),f=s[i];o||(o=u),n[r]=c,s[r]=u;let h=i,w=0;for(;h!==r;)w+=n[h++],h=h%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),u-o<e)return;const g=f&&u-f;return g?Math.round(w*1e3/g):void 0}}function ua(t,e){let n=0,s=1e3/e,r,i;const o=(u,f=Date.now())=>{n=f,r=null,i&&(clearTimeout(i),i=null),t.apply(null,u)};return[(...u)=>{const f=Date.now(),h=f-n;h>=s?o(u,f):(r=u,i||(i=setTimeout(()=>{i=null,o(r)},s-h)))},()=>r&&o(r)]}const Tt=(t,e,n=3)=>{let s=0;const r=ca(50,250);return ua(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-s,u=r(c),f=o<=a;s=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&f?(a-o)/u:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(h)},n)},As=(t,e)=>{const n=t!=null;return[s=>e[0]({lengthComputable:n,total:t,loaded:s}),e[1]]},Rs=t=>(...e)=>d.asap(()=>t(...e)),fa=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,ha=H.hasStandardBrowserEnv?{write(t,e,n,s,r,i){const o=[t+"="+encodeURIComponent(e)];d.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),d.isString(s)&&o.push("path="+s),d.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 da(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ma(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Is(t,e){return t&&!da(e)?ma(t,e):e}const Ms=t=>t instanceof J?{...t}:t;function xe(t,e){e=e||{};const n={};function s(u,f,h,w){return d.isPlainObject(u)&&d.isPlainObject(f)?d.merge.call({caseless:w},u,f):d.isPlainObject(f)?d.merge({},f):d.isArray(f)?f.slice():f}function r(u,f,h,w){if(d.isUndefined(f)){if(!d.isUndefined(u))return s(void 0,u,h,w)}else return s(u,f,h,w)}function i(u,f){if(!d.isUndefined(f))return s(void 0,f)}function o(u,f){if(d.isUndefined(f)){if(!d.isUndefined(u))return s(void 0,u)}else return s(void 0,f)}function a(u,f,h){if(h in e)return s(u,f);if(h 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,f,h)=>r(Ms(u),Ms(f),h,!0)};return d.forEach(Object.keys(Object.assign({},t,e)),function(f){const h=c[f]||r,w=h(t[f],e[f],f);d.isUndefined(w)&&h!==a||(n[f]=w)}),n}const Ds=t=>{const e=xe({},t);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=e;e.headers=o=J.from(o),e.url=Ss(Is(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(d.isFormData(n)){if(H.hasStandardBrowserEnv||H.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[u,...f]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...f].join("; "))}}if(H.hasStandardBrowserEnv&&(s&&d.isFunction(s)&&(s=s(e)),s||s!==!1&&fa(e.url))){const u=r&&i&&ha.read(i);u&&o.set(r,u)}return e},pa=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,s){const r=Ds(t);let i=r.data;const o=J.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=r,f,h,w,g,m;function T(){g&&g(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(f),r.signal&&r.signal.removeEventListener("abort",f)}let k=new XMLHttpRequest;k.open(r.method.toUpperCase(),r.url,!0),k.timeout=r.timeout;function _(){if(!k)return;const L=J.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),B={data:!a||a==="text"||a==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:L,config:t,request:k};xs(function(V){n(V),T()},function(V){s(V),T()},B),k=null}"onloadend"in k?k.onloadend=_:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(_)},k.onabort=function(){k&&(s(new O("Request aborted",O.ECONNABORTED,t,k)),k=null)},k.onerror=function(){s(new O("Network Error",O.ERR_NETWORK,t,k)),k=null},k.ontimeout=function(){let ee=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const B=r.transitional||Os;r.timeoutErrorMessage&&(ee=r.timeoutErrorMessage),s(new O(ee,B.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,k)),k=null},i===void 0&&o.setContentType(null),"setRequestHeader"in k&&d.forEach(o.toJSON(),function(ee,B){k.setRequestHeader(B,ee)}),d.isUndefined(r.withCredentials)||(k.withCredentials=!!r.withCredentials),a&&a!=="json"&&(k.responseType=r.responseType),u&&([w,m]=Tt(u,!0),k.addEventListener("progress",w)),c&&k.upload&&([h,g]=Tt(c),k.upload.addEventListener("progress",h),k.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(f=L=>{k&&(s(!L||L.type?new Fe(null,t,k):L),k.abort(),k=null)},r.cancelToken&&r.cancelToken.subscribe(f),r.signal&&(r.signal.aborted?f():r.signal.addEventListener("abort",f)));const C=la(r.url);if(C&&H.protocols.indexOf(C)===-1){s(new O("Unsupported protocol "+C+":",O.ERR_BAD_REQUEST,t));return}k.send(i||null)})},ya=(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 f=u instanceof Error?u:this.reason;s.abort(f instanceof O?f:new Fe(f instanceof Error?f.message:f))}};let o=e&&setTimeout(()=>{o=null,i(new O(`timeout ${e} of ms exceeded`,O.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=()=>d.asap(a),c}},ga=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},wa=async function*(t,e){for await(const n of Ea(t))yield*ga(n,e)},Ea=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()}},Ls=(t,e,n,s)=>{const r=wa(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:f}=await r.next();if(u){a(),c.close();return}let h=f.byteLength;if(n){let w=i+=h;n(w)}c.enqueue(new Uint8Array(f))}catch(u){throw a(u),u}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},St=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vs=St&&typeof ReadableStream=="function",ka=St&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Bs=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ba=Vs&&Bs(()=>{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}),Fs=64*1024,dn=Vs&&Bs(()=>d.isReadableStream(new Response("").body)),vt={stream:dn&&(t=>t.body)};St&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!vt[e]&&(vt[e]=d.isFunction(t[e])?n=>n[e]():(n,s)=>{throw new O(`Response type '${e}' is not supported`,O.ERR_NOT_SUPPORT,s)})})})(new Response);const Ta=async t=>{if(t==null)return 0;if(d.isBlob(t))return t.size;if(d.isSpecCompliantForm(t))return(await new Request(H.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(d.isArrayBufferView(t)||d.isArrayBuffer(t))return t.byteLength;if(d.isURLSearchParams(t)&&(t=t+""),d.isString(t))return(await ka(t)).byteLength},Sa=async(t,e)=>{const n=d.toFiniteNumber(t.getContentLength());return n??Ta(e)},mn={http:zo,xhr:pa,fetch:St&&(async t=>{let{url:e,method:n,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:f,withCredentials:h="same-origin",fetchOptions:w}=Ds(t);u=u?(u+"").toLowerCase():"text";let g=ya([r,i&&i.toAbortSignal()],o),m;const T=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let k;try{if(c&&ba&&n!=="get"&&n!=="head"&&(k=await Sa(f,s))!==0){let B=new Request(e,{method:"POST",body:s,duplex:"half"}),ae;if(d.isFormData(s)&&(ae=B.headers.get("content-type"))&&f.setContentType(ae),B.body){const[V,me]=As(k,Tt(Rs(c)));s=Ls(B.body,Fs,V,me)}}d.isString(h)||(h=h?"include":"omit");const _="credentials"in Request.prototype;m=new Request(e,{...w,signal:g,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:s,duplex:"half",credentials:_?h:void 0});let C=await fetch(m);const L=dn&&(u==="stream"||u==="response");if(dn&&(a||L&&T)){const B={};["status","statusText","headers"].forEach(W=>{B[W]=C[W]});const ae=d.toFiniteNumber(C.headers.get("content-length")),[V,me]=a&&As(ae,Tt(Rs(a),!0))||[];C=new Response(Ls(C.body,Fs,V,()=>{me&&me(),T&&T()}),B)}u=u||"text";let ee=await vt[d.findKey(vt,u)||"text"](C,t);return!L&&T&&T(),await new Promise((B,ae)=>{xs(B,ae,{data:ee,headers:J.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:m})})}catch(_){throw T&&T(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new O("Network Error",O.ERR_NETWORK,t,m),{cause:_.cause||_}):O.from(_,_&&_.code,t,m)}})};d.forEach(mn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Us=t=>`- ${t}`,va=t=>d.isFunction(t)||t===null||t===!1,$s={getAdapter:t=>{t=d.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,!va(n)&&(s=mn[(o=String(n)).toLowerCase()],s===void 0))throw new O(`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(Us).join(`
|
5
|
+
`):" "+Us(i[0]):"as no adapter specified";throw new O("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 Fe(null,t)}function Ps(t){return pn(t),t.headers=J.from(t.headers),t.data=hn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),$s.getAdapter(t.adapter||tt.adapter)(t).then(function(s){return pn(t),s.data=hn.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=hn.call(t,t.transformResponse,s.response),s.response.headers=J.from(s.response.headers))),Promise.reject(s)})}const qs="1.7.9",Ot={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ot[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const Ws={};Ot.transitional=function(e,n,s){function r(i,o){return"[Axios v"+qs+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(e===!1)throw new O(r(o," has been removed"+(n?" in "+n:"")),O.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}},Ot.spelling=function(e){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${e}`),!0)};function Oa(t,e,n){if(typeof t!="object")throw new O("options must be an object",O.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 O("option "+i+" must be "+c,O.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new O("Unknown option "+i,O.ERR_BAD_OPTION)}}const _t={assertOptions:Oa,validators:Ot},pe=_t.validators;let Ae=class{constructor(e){this.defaults=e,this.interceptors={request:new vs,response:new vs}}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=xe(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&_t.assertOptions(s,{silentJSONParsing:pe.transitional(pe.boolean),forcedJSONParsing:pe.transitional(pe.boolean),clarifyTimeoutError:pe.transitional(pe.boolean)},!1),r!=null&&(d.isFunction(r)?n.paramsSerializer={serialize:r}:_t.assertOptions(r,{encode:pe.function,serialize:pe.function},!0)),_t.assertOptions(n,{baseUrl:pe.spelling("baseURL"),withXsrfToken:pe.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&d.merge(i.common,i[n.method]);i&&d.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(T){typeof T.runWhen=="function"&&T.runWhen(n)===!1||(c=c&&T.synchronous,a.unshift(T.fulfilled,T.rejected))});const u=[];this.interceptors.response.forEach(function(T){u.push(T.fulfilled,T.rejected)});let f,h=0,w;if(!c){const m=[Ps.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),w=m.length,f=Promise.resolve(n);h<w;)f=f.then(m[h++],m[h++]);return f}w=a.length;let g=n;for(h=0;h<w;){const m=a[h++],T=a[h++];try{g=m(g)}catch(k){T.call(this,k);break}}try{f=Ps.call(this,g)}catch(m){return Promise.reject(m)}for(h=0,w=u.length;h<w;)f=f.then(u[h++],u[h++]);return f}getUri(e){e=xe(this.defaults,e);const n=Is(e.baseURL,e.url);return Ss(n,e.params,e.paramsSerializer)}};d.forEach(["delete","get","head","options"],function(e){Ae.prototype[e]=function(n,s){return this.request(xe(s||{},{method:e,url:n,data:(s||{}).data}))}}),d.forEach(["post","put","patch"],function(e){function n(s){return function(i,o,a){return this.request(xe(a||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Ae.prototype[e]=n(),Ae.prototype[e+"Form"]=n(!0)});let _a=class ji{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 Fe(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 ji(function(r){e=r}),cancel:e}}};function Na(t){return function(n){return t.apply(null,n)}}function Ca(t){return d.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 zs(t){const e=new Ae(t),n=as(Ae.prototype.request,e);return d.extend(n,Ae.prototype,e,{allOwnKeys:!0}),d.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return zs(xe(t,r))},n}const $=zs(tt);$.Axios=Ae,$.CanceledError=Fe,$.CancelToken=_a,$.isCancel=Cs,$.VERSION=qs,$.toFormData=kt,$.AxiosError=O,$.Cancel=$.CanceledError,$.all=function(e){return Promise.all(e)},$.spread=Na,$.isAxiosError=Ca,$.mergeConfig=xe,$.AxiosHeaders=J,$.formToJSON=t=>_s(d.isHTMLForm(t)?new FormData(t):t),$.getAdapter=$s.getAdapter,$.HttpStatusCode=yn,$.default=$;const{Axios:pu,AxiosError:yu,CanceledError:gu,isCancel:wu,CancelToken:Eu,VERSION:ku,all:bu,Cancel:Tu,isAxiosError:Su,spread:vu,toFormData:Ou,AxiosHeaders:_u,HttpStatusCode:Nu,formToJSON:Cu,getAdapter:xu,mergeConfig:Au}=$,Nt=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 $(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 xa(t){const e={url:"/v1/message/list-messages",method:"post",data:t.body,token:t.token},n=await Nt(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 Aa(t,e){var o;const n=new FormData,s=(t==null?void 0:t.files)??[];n.append("body",JSON.stringify(t)),s.forEach(a=>{n.append("files",a)});const i=await Nt({url:"/v1/message/send-message",method:"POST",data:n,headers:{"Content-Type":"multipart/form-data"},token:e}).catch(a=>(console.error(a),null));return(o=i==null?void 0:i.response)==null?void 0:o.data}async function Hs(t){var s;const n=await Nt({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 Nt(s).catch(o=>(console.error(o),null));return(i=r==null?void 0:r.response)==null?void 0:i.data}function Ra(t){return l.getCurrentScope()?(l.onScopeDispose(t),!0):!1}function js(t){return typeof t=="function"?t():l.unref(t)}const Ia=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ma=t=>t!=null,gn=()=>{};function wn(t){var e;const n=js(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Da=Ia?window:void 0;function La(){const t=l.ref(!1),e=l.getCurrentInstance();return e&&l.onMounted(()=>{t.value=!0},e),t}function Va(t){const e=La();return l.computed(()=>(e.value,!!t()))}function Ba(t,e,n={}){const{root:s,rootMargin:r="0px",threshold:i=.1,window:o=Da,immediate:a=!0}=n,c=Va(()=>o&&"IntersectionObserver"in o),u=l.computed(()=>{const m=js(t);return(Array.isArray(m)?m:[m]).map(wn).filter(Ma)});let f=gn;const h=l.ref(a),w=c.value?l.watch(()=>[u.value,wn(s),h.value],([m,T])=>{if(f(),!h.value||!m.length)return;const k=new IntersectionObserver(e,{root:wn(T),rootMargin:r,threshold:i});m.forEach(_=>_&&k.observe(_)),f=()=>{k.disconnect(),f=gn}},{immediate:a,flush:"post"}):gn,g=()=>{f(),w(),h.value=!1};return Ra(g),{isSupported:c,isActive:h,pause(){f(),h.value=!1},resume(){h.value=!0},stop:g}}class Re extends Error{}class Fa extends Re{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Ua extends Re{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class $a extends Re{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Ue extends Re{}class Ys extends Re{constructor(e){super(`Invalid unit ${e}`)}}class Z extends Re{}class Te extends Re{constructor(){super("Zone is an abstract class")}}const E="numeric",ce="short",X="long",Ct={year:E,month:E,day:E},Js={year:E,month:ce,day:E},Pa={year:E,month:ce,day:E,weekday:ce},Gs={year:E,month:X,day:E},Ks={year:E,month:X,day:E,weekday:X},Qs={hour:E,minute:E},Xs={hour:E,minute:E,second:E},er={hour:E,minute:E,second:E,timeZoneName:ce},tr={hour:E,minute:E,second:E,timeZoneName:X},nr={hour:E,minute:E,hourCycle:"h23"},sr={hour:E,minute:E,second:E,hourCycle:"h23"},rr={hour:E,minute:E,second:E,hourCycle:"h23",timeZoneName:ce},ir={hour:E,minute:E,second:E,hourCycle:"h23",timeZoneName:X},or={year:E,month:E,day:E,hour:E,minute:E},ar={year:E,month:E,day:E,hour:E,minute:E,second:E},lr={year:E,month:ce,day:E,hour:E,minute:E},cr={year:E,month:ce,day:E,hour:E,minute:E,second:E},qa={year:E,month:ce,day:E,weekday:ce,hour:E,minute:E},ur={year:E,month:X,day:E,hour:E,minute:E,timeZoneName:ce},fr={year:E,month:X,day:E,hour:E,minute:E,second:E,timeZoneName:ce},hr={year:E,month:X,day:E,weekday:X,hour:E,minute:E,timeZoneName:X},dr={year:E,month:X,day:E,weekday:X,hour:E,minute:E,second:E,timeZoneName:X};class st{get type(){throw new Te}get name(){throw new Te}get ianaName(){return this.name}get isUniversal(){throw new Te}offsetName(e,n){throw new Te}formatOffset(e,n){throw new Te}offset(e){throw new Te}equals(e){throw new Te}get isValid(){throw new Te}}let En=null;class xt extends st{static get instance(){return En===null&&(En=new xt),En}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return Fr(e,n,s)}formatOffset(e,n){return at(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let At={};function Wa(t){return At[t]||(At[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"})),At[t]}const za={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Ha(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,f]=s;return[o,r,i,a,c,u,f]}function Za(t,e){const n=t.formatToParts(e),s=[];for(let r=0;r<n.length;r++){const{type:i,value:o}=n[r],a=za[i];i==="era"?s[a]=o:S(a)||(s[a]=parseInt(o,10))}return s}let Rt={};class we extends st{static create(e){return Rt[e]||(Rt[e]=new we(e)),Rt[e]}static resetCache(){Rt={},At={}}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=we.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return Fr(e,n,s,this.name)}formatOffset(e,n){return at(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const s=Wa(this.name);let[r,i,o,a,c,u,f]=s.formatToParts?Za(s,n):Ha(s,n);a==="BC"&&(r=-Math.abs(r)+1);const w=Vt({year:r,month:i,day:o,hour:c===24?0:c,minute:u,second:f,millisecond:0});let g=+n;const m=g%1e3;return g-=m>=0?m:1e3+m,(w-g)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let mr={};function ja(t,e={}){const n=JSON.stringify([t,e]);let s=mr[n];return s||(s=new Intl.ListFormat(t,e),mr[n]=s),s}let kn={};function bn(t,e={}){const n=JSON.stringify([t,e]);let s=kn[n];return s||(s=new Intl.DateTimeFormat(t,e),kn[n]=s),s}let Tn={};function Ya(t,e={}){const n=JSON.stringify([t,e]);let s=Tn[n];return s||(s=new Intl.NumberFormat(t,e),Tn[n]=s),s}let Sn={};function Ja(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 rt=null;function Ga(){return rt||(rt=new Intl.DateTimeFormat().resolvedOptions().locale,rt)}let pr={};function Ka(t){let e=pr[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,pr[t]=e}return e}function Qa(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=bn(t).resolvedOptions(),r=t}catch{const c=t.substring(0,n);s=bn(c).resolvedOptions(),r=c}const{numberingSystem:i,calendar:o}=s;return[r,i,o]}}function Xa(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function e2(t){const e=[];for(let n=1;n<=12;n++){const s=v.utc(2009,n,1);e.push(t(s))}return e}function t2(t){const e=[];for(let n=1;n<=7;n++){const s=v.utc(2016,11,13+n);e.push(t(s))}return e}function It(t,e,n,s){const r=t.listingMode();return r==="error"?null:r==="en"?n(e):s(e)}function n2(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 s2{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=Ya(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):Rn(e,3);return P(n,this.padTo)}}}class r2{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&&we.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=bn(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 i2{constructor(e,n,s){this.opts={style:"long",...s},!n&&Dr()&&(this.rtf=Ja(e,s))}format(e,n){return this.rtf?this.rtf.format(e,n):C2(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const o2={firstDay:1,minimalDays:4,weekend:[6,7]};class D{static fromOpts(e){return D.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,s,r,i=!1){const o=e||F.defaultLocale,a=o||(i?"en-US":Ga()),c=n||F.defaultNumberingSystem,u=s||F.defaultOutputCalendar,f=xn(r)||F.defaultWeekSettings;return new D(a,c,u,f,o)}static resetCache(){rt=null,kn={},Tn={},Sn={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:s,weekSettings:r}={}){return D.create(e,n,s,r)}constructor(e,n,s,r,i){const[o,a,c]=Qa(e);this.locale=o,this.numberingSystem=n||a||null,this.outputCalendar=s||c||null,this.weekSettings=r,this.intl=Xa(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=n2(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:D.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 It(this,e,Pr,()=>{const s=n?{month:e,day:"numeric"}:{month:e},r=n?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=e2(i=>this.extract(i,s,"month"))),this.monthsCache[r][e]})}weekdays(e,n=!1){return It(this,e,zr,()=>{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]=t2(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return It(this,void 0,()=>Hr,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[v.utc(2016,11,13,9),v.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return It(this,e,Zr,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[v.utc(-40,1,1),v.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 s2(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new r2(e,this.intl,n)}relFormatter(e={}){return new i2(this.intl,this.isEnglish(),e)}listFormatter(e={}){return ja(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:Lr()?Ka(this.locale):o2}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 vn=null;class Y extends st{static get utcInstance(){return vn===null&&(vn=new Y(0)),vn}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(Bt(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${at(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${at(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return at(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 a2 extends st{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 Se(t,e){if(S(t)||t===null)return e;if(t instanceof st)return t;if(d2(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?xt.instance:n==="utc"||n==="gmt"?Y.utcInstance:Y.parseSpecifier(n)||we.create(t)}else return ve(t)?Y.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new a2(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"},yr={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=On.hanidec.replace(/[\[|\]]/g,"").split("");function c2(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+=l2.indexOf(t[n]);else for(const r in yr){const[i,o]=yr[r];s>=i&&s<=o&&(e+=s-i)}}return parseInt(e,10)}else return e}let $e={};function u2(){$e={}}function ue({numberingSystem:t},e=""){const n=t||"latn";return $e[n]||($e[n]={}),$e[n][e]||($e[n][e]=new RegExp(`${On[n]}${e}`)),$e[n][e]}let gr=()=>Date.now(),wr="system",Er=null,kr=null,br=null,Tr=60,Sr,vr=null;class F{static get now(){return gr}static set now(e){gr=e}static set defaultZone(e){wr=e}static get defaultZone(){return Se(wr,xt.instance)}static get defaultLocale(){return Er}static set defaultLocale(e){Er=e}static get defaultNumberingSystem(){return kr}static set defaultNumberingSystem(e){kr=e}static get defaultOutputCalendar(){return br}static set defaultOutputCalendar(e){br=e}static get defaultWeekSettings(){return vr}static set defaultWeekSettings(e){vr=xn(e)}static get twoDigitCutoffYear(){return Tr}static set twoDigitCutoffYear(e){Tr=e%100}static get throwOnInvalid(){return Sr}static set throwOnInvalid(e){Sr=e}static resetCaches(){D.resetCache(),we.resetCache(),v.resetCache(),u2()}}class fe{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Or=[0,31,59,90,120,151,181,212,243,273,304,334],_r=[0,31,60,91,121,152,182,213,244,274,305,335];function se(t,e){return new fe("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 Nr(t,e,n){return n+(it(t)?_r:Or)[e-1]}function Cr(t,e){const n=it(t)?_r:Or,s=n.findIndex(i=>i<e),r=e-n[s];return{month:s+1,day:r}}function Nn(t,e){return(t-e+7)%7+1}function Mt(t,e=4,n=1){const{year:s,month:r,day:i}=t,o=Nr(s,r,i),a=Nn(_n(s,r,i),n);let c=Math.floor((o-a+14-e)/7),u;return c<1?(u=s-1,c=ot(u,e,n)):c>ot(s,e,n)?(u=s+1,c=1):u=s,{weekYear:u,weekNumber:c,weekday:a,...Ut(t)}}function xr(t,e=4,n=1){const{weekYear:s,weekNumber:r,weekday:i}=t,o=Nn(_n(s,1,e),n),a=qe(s);let c=r*7+i-o-7+e,u;c<1?(u=s-1,c+=qe(u)):c>a?(u=s+1,c-=qe(s)):u=s;const{month:f,day:h}=Cr(u,c);return{year:u,month:f,day:h,...Ut(t)}}function Cn(t){const{year:e,month:n,day:s}=t,r=Nr(e,n,s);return{year:e,ordinal:r,...Ut(t)}}function Ar(t){const{year:e,ordinal:n}=t,{month:s,day:r}=Cr(e,n);return{year:e,month:s,day:r,...Ut(t)}}function Rr(t,e){if(!S(t.localWeekday)||!S(t.localWeekNumber)||!S(t.localWeekYear)){if(!S(t.weekday)||!S(t.weekNumber)||!S(t.weekYear))throw new Ue("Cannot mix locale-based week fields with ISO-based week fields");return S(t.localWeekday)||(t.weekday=t.localWeekday),S(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),S(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 f2(t,e=4,n=1){const s=Dt(t.weekYear),r=re(t.weekNumber,1,ot(t.weekYear,e,n)),i=re(t.weekday,1,7);return s?r?i?!1:se("weekday",t.weekday):se("week",t.weekNumber):se("weekYear",t.weekYear)}function h2(t){const e=Dt(t.year),n=re(t.ordinal,1,qe(t.year));return e?n?!1:se("ordinal",t.ordinal):se("year",t.year)}function Ir(t){const e=Dt(t.year),n=re(t.month,1,12),s=re(t.day,1,Lt(t.year,t.month));return e?n?s?!1:se("day",t.day):se("month",t.month):se("year",t.year)}function Mr(t){const{hour:e,minute:n,second:s,millisecond:r}=t,i=re(e,0,23)||e===24&&n===0&&s===0&&r===0,o=re(n,0,59),a=re(s,0,59),c=re(r,0,999);return i?o?a?c?!1:se("millisecond",r):se("second",s):se("minute",n):se("hour",e)}function S(t){return typeof t>"u"}function ve(t){return typeof t=="number"}function Dt(t){return typeof t=="number"&&t%1===0}function d2(t){return typeof t=="string"}function m2(t){return Object.prototype.toString.call(t)==="[object Date]"}function Dr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Lr(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function p2(t){return Array.isArray(t)?t:[t]}function Vr(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 y2(t,e){return e.reduce((n,s)=>(n[s]=t[s],n),{})}function Pe(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(!re(t.firstDay,1,7)||!re(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!re(e,1,7)))throw new Z("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function re(t,e,n){return Dt(t)&&t>=e&&t<=n}function g2(t,e){return t-e*Math.floor(t/e)}function P(t,e=2){const n=t<0;let s;return n?s="-"+(""+-t).padStart(e,"0"):s=(""+t).padStart(e,"0"),s}function Oe(t){if(!(S(t)||t===null||t===""))return parseInt(t,10)}function Ie(t){if(!(S(t)||t===null||t===""))return parseFloat(t)}function An(t){if(!(S(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Rn(t,e,n=!1){const s=10**e;return(n?Math.trunc:Math.round)(t*s)/s}function it(t){return t%4===0&&(t%100!==0||t%400===0)}function qe(t){return it(t)?366:365}function Lt(t,e){const n=g2(e-1,12)+1,s=t+(e-n)/12;return n===2?it(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Vt(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 Br(t,e,n){return-Nn(_n(t,1,e),n)+e-1}function ot(t,e=4,n=1){const s=Br(t,e,n),r=Br(t+1,e,n);return(qe(t)-s+r)/7}function In(t){return t>99?t:t>F.twoDigitCutoffYear?1900+t:2e3+t}function Fr(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 Bt(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 Ur(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Z(`Invalid unit value ${t}`);return e}function Ft(t,e){const n={};for(const s in t)if(Pe(t,s)){const r=t[s];if(r==null)continue;n[e(s)]=Ur(r)}return n}function at(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}${P(n,2)}:${P(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${P(n,2)}${P(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Ut(t){return y2(t,["hour","minute","second","millisecond"])}const w2=["January","February","March","April","May","June","July","August","September","October","November","December"],$r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],E2=["J","F","M","A","M","J","J","A","S","O","N","D"];function Pr(t){switch(t){case"narrow":return[...E2];case"short":return[...$r];case"long":return[...w2];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 qr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Wr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],k2=["M","T","W","T","F","S","S"];function zr(t){switch(t){case"narrow":return[...k2];case"short":return[...Wr];case"long":return[...qr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"],b2=["Before Christ","Anno Domini"],T2=["BC","AD"],S2=["B","A"];function Zr(t){switch(t){case"narrow":return[...S2];case"short":return[...T2];case"long":return[...b2];default:return null}}function v2(t){return Hr[t.hour<12?0:1]}function O2(t,e){return zr(e)[t.weekday-1]}function _2(t,e){return Pr(e)[t.month-1]}function N2(t,e){return Zr(e)[t.year<0?0:1]}function C2(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 h=t==="days";switch(e){case 1:return h?"tomorrow":`next ${r[t][0]}`;case-1:return h?"yesterday":`last ${r[t][0]}`;case 0:return h?"today":`this ${r[t][0]}`}}const o=Object.is(e,-0)||e<0,a=Math.abs(e),c=a===1,u=r[t],f=s?c?u[1]:u[2]||u[1]:c?r[t][0]:t;return o?`${a} ${f} ago`:`in ${a} ${f}`}function jr(t,e){let n="";for(const s of t)s.literal?n+=s.val:n+=e(s.val);return n}const x2={D:Ct,DD:Js,DDD:Gs,DDDD:Ks,t:Qs,tt:Xs,ttt:er,tttt:tr,T:nr,TT:sr,TTT:rr,TTTT:ir,f:or,ff:lr,fff:ur,ffff:hr,F:ar,FF:cr,FFF:fr,FFFF:dr};class j{static create(e,n={}){return new j(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 x2[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 P(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=(g,m)=>this.loc.extract(e,g,m),o=g=>e.isOffsetFixed&&e.offset===0&&g.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,g.format):"",a=()=>s?v2(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(g,m)=>s?_2(e,g):i(m?{month:g}:{month:g,day:"numeric"},"month"),u=(g,m)=>s?O2(e,g):i(m?{weekday:g}:{weekday:g,month:"long",day:"numeric"},"weekday"),f=g=>{const m=j.macroTokenToFormatOpts(g);return m?this.formatWithSystemDefault(e,m):g},h=g=>s?N2(e,g):i({era:g},"era"),w=g=>{switch(g){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 h("short");case"GG":return h("long");case"GGGGG":return h("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 f(g)}};return jr(j.parseFormat(n),w)}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 f=s(u);return f?this.num(c.get(f),u.length):u},i=j.parseFormat(n),o=i.reduce((c,{literal:u,val:f})=>u?c:c.concat(f),[]),a=e.shiftTo(...o.map(s).filter(c=>c));return jr(i,r(a))}}const Yr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function We(...t){const e=t.reduce((n,s)=>n+s.source,"");return RegExp(`^${e}$`)}function ze(...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 He(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 Jr(...t){return(e,n)=>{const s={};let r;for(r=0;r<t.length;r++)s[t[r]]=Oe(e[n+r]);return[s,null,n+r]}}const Gr=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,A2=`(?:${Gr.source}?(?:\\[(${Yr.source})\\])?)?`,Mn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Kr=RegExp(`${Mn.source}${A2}`),Dn=RegExp(`(?:T${Kr.source})?`),R2=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,I2=/(\d{4})-?W(\d\d)(?:-?(\d))?/,M2=/(\d{4})-?(\d{3})/,D2=Jr("weekYear","weekNumber","weekDay"),L2=Jr("year","ordinal"),V2=/(\d{4})-(\d\d)-(\d\d)/,Qr=RegExp(`${Mn.source} ?(?:${Gr.source}|(${Yr.source}))?`),B2=RegExp(`(?: ${Qr.source})?`);function Ze(t,e,n){const s=t[e];return S(s)?n:Oe(s)}function F2(t,e){return[{year:Ze(t,e),month:Ze(t,e+1,1),day:Ze(t,e+2,1)},null,e+3]}function je(t,e){return[{hours:Ze(t,e,0),minutes:Ze(t,e+1,0),seconds:Ze(t,e+2,0),milliseconds:An(t[e+3])},null,e+4]}function lt(t,e){const n=!t[e]&&!t[e+1],s=Bt(t[e+1],t[e+2]),r=n?null:Y.instance(s);return[{},r,e+3]}function ct(t,e){const n=t[e]?we.create(t[e]):null;return[{},n,e+1]}const U2=RegExp(`^T?${Mn.source}$`),$2=/^-?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 P2(t){const[e,n,s,r,i,o,a,c,u]=t,f=e[0]==="-",h=c&&c[0]==="-",w=(g,m=!1)=>g!==void 0&&(m||g&&f)?-g:g;return[{years:w(Ie(n)),months:w(Ie(s)),weeks:w(Ie(r)),days:w(Ie(i)),hours:w(Ie(o)),minutes:w(Ie(a)),seconds:w(Ie(c),c==="-0"),milliseconds:w(An(u),h)}]}const q2={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?In(Oe(e)):Oe(e),month:$r.indexOf(n)+1,day:Oe(s),hour:Oe(r),minute:Oe(i)};return o&&(a.second=Oe(o)),t&&(a.weekday=t.length>3?qr.indexOf(t)+1:Wr.indexOf(t)+1),a}const W2=/^(?:(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 z2(t){const[,e,n,s,r,i,o,a,c,u,f,h]=t,w=Ln(e,r,s,n,i,o,a);let g;return c?g=q2[c]:u?g=0:g=Bt(f,h),[w,new Y(g)]}function H2(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Z2=/^(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$/,j2=/^(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$/,Y2=/^(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 Xr(t){const[,e,n,s,r,i,o,a]=t;return[Ln(e,r,s,n,i,o,a),Y.utcInstance]}function J2(t){const[,e,n,s,r,i,o,a]=t;return[Ln(e,a,n,s,r,i,o),Y.utcInstance]}const G2=We(R2,Dn),K2=We(I2,Dn),Q2=We(M2,Dn),X2=We(Kr),ei=ze(F2,je,lt,ct),e0=ze(D2,je,lt,ct),t0=ze(L2,je,lt,ct),n0=ze(je,lt,ct);function s0(t){return He(t,[G2,ei],[K2,e0],[Q2,t0],[X2,n0])}function r0(t){return He(H2(t),[W2,z2])}function i0(t){return He(t,[Z2,Xr],[j2,Xr],[Y2,J2])}function o0(t){return He(t,[$2,P2])}const a0=ze(je);function l0(t){return He(t,[U2,a0])}const c0=We(V2,B2),u0=We(Qr),f0=ze(je,lt,ct);function h0(t){return He(t,[c0,ei],[u0,f0])}const ti="Invalid Duration",ni={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}},d0={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},...ni},ie=146097/400,Ye=146097/4800,m0={years:{quarters:4,months:12,weeks:ie/7,days:ie,hours:ie*24,minutes:ie*24*60,seconds:ie*24*60*60,milliseconds:ie*24*60*60*1e3},quarters:{months:3,weeks:ie/28,days:ie/4,hours:ie*24/4,minutes:ie*24*60/4,seconds:ie*24*60*60/4,milliseconds:ie*24*60*60*1e3/4},months:{weeks:Ye/7,days:Ye,hours:Ye*24,minutes:Ye*24*60,seconds:Ye*24*60*60,milliseconds:Ye*24*60*60*1e3},...ni},Me=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],p0=Me.slice(0).reverse();function _e(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 R(s)}function si(t,e){let n=e.milliseconds??0;for(const s of p0.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function ri(t,e){const n=si(t,e)<0?-1:1;Me.reduceRight((s,r)=>{if(S(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(S(e[r]))return s;if(s){const i=e[s]%1;e[s]-=i,e[r]+=i*t[s][r]}return r},null)}function y0(t){const e={};for(const[n,s]of Object.entries(t))s!==0&&(e[n]=s);return e}class R{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let s=n?m0:d0;e.matrix&&(s=e.matrix),this.values=e.values,this.loc=e.loc||D.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(e,n){return R.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 R({values:Ft(e,R.normalizeUnit),loc:D.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(ve(e))return R.fromMillis(e);if(R.isDuration(e))return e;if(typeof e=="object")return R.fromObject(e);throw new Z(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[s]=o0(e);return s?R.fromObject(s,n):R.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[s]=l0(e);return s?R.fromObject(s,n):R.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 fe?e:new fe(e,n);if(F.throwOnInvalid)throw new $a(s);return new R({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 Ys(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?j.create(this.loc,s).formatDurationFromString(this,e):ti}toHuman(e={}){if(!this.isValid)return ti;const n=Me.map(s=>{const r=this.values[s];return S(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+=Rn(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},v.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?si(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=R.fromDurationLike(e),s={};for(const r of Me)(Pe(n.values,r)||Pe(this.values,r))&&(s[r]=n.get(r)+this.get(r));return _e(this,{values:s},!0)}minus(e){if(!this.isValid)return this;const n=R.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]=Ur(e(this.values[s],s));return _e(this,{values:n},!0)}get(e){return this[R.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Ft(e,R.normalizeUnit)};return _e(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 _e(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return ri(this.matrix,e),_e(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=y0(this.normalize().shiftToAll().toObject());return _e(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>R.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;ve(r[o])&&(a+=r[o]);const c=Math.trunc(a);n[o]=c,s[o]=(a*1e3-c*1e3)/1e3}else ve(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 ri(this.matrix,n),_e(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 _e(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 Je="Invalid Interval";function g0(t,e){return!t||!t.isValid?U.invalid("missing or invalid start"):!e||!e.isValid?U.invalid("missing or invalid end"):e<t?U.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 U{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 fe?e:new fe(e,n);if(F.throwOnInvalid)throw new Ua(s);return new U({invalid:s})}static fromDateTimes(e,n){const s=ft(e),r=ft(n),i=g0(s,r);return i??new U({start:s,end:r})}static after(e,n){const s=R.fromDurationLike(n),r=ft(e);return U.fromDateTimes(r,r.plus(s))}static before(e,n){const s=R.fromDurationLike(n),r=ft(e);return U.fromDateTimes(r.minus(s),r)}static fromISO(e,n){const[s,r]=(e||"").split("/",2);if(s&&r){let i,o;try{i=v.fromISO(s,n),o=i.isValid}catch{o=!1}let a,c;try{a=v.fromISO(r,n),c=a.isValid}catch{c=!1}if(o&&c)return U.fromDateTimes(i,a);if(o){const u=R.fromISO(r,n);if(u.isValid)return U.after(i,u)}else if(c){const u=R.fromISO(s,n);if(u.isValid)return U.before(a,u)}}return U.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?U.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(ft).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(U.fromDateTimes(r,a)),r=a,i+=1}return s}splitBy(e){const n=R.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(U.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:U.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 U.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(U.fromDateTimes(n,c.time)),n=null);return U.merge(r)}difference(...e){return U.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Je}[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?j.create(this.s.loc.clone(n),e).formatInterval(this):Je}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Je}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Je}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Je}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Je}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):R.invalid(this.invalidReason)}mapEndpoints(e){return U.fromDateTimes(e(this.s),e(this.e))}}class $t{static hasDST(e=F.defaultZone){const n=v.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return we.isValidZone(e)}static normalizeZone(e){return Se(e,F.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||D.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||D.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||D.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||D.create(n,s,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||D.create(n,s,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||D.create(n,s,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||D.create(n,s,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return D.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return D.create(n,null,"gregory").eras(e)}static features(){return{relative:Dr(),localeWeek:Lr()}}}function ii(t,e){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(e)-n(t);return Math.floor(R.fromMillis(s).as("days"))}function w0(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 f=ii(c,u);return(f-f%7)/7}],["days",ii]],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 E0(t,e,n,s){let[r,i,o,a]=w0(t,e,n);const c=e-r,u=n.filter(h=>["hours","minutes","seconds","milliseconds"].indexOf(h)>=0);u.length===0&&(o<e&&(o=r.plus({[a]:1})),o!==r&&(i[a]=(i[a]||0)+c/(o-r)));const f=R.fromObject(i,s);return u.length>0?R.fromMillis(c,s).shiftTo(...u).plus(f):f}const k0="missing Intl.DateTimeFormat.formatToParts support";function I(t,e=n=>n){return{regex:t,deser:([n])=>e(c2(n))}}const oi="[ ]",ai=new RegExp(oi,"g");function b0(t){return t.replace(/\./g,"\\.?").replace(ai,oi)}function li(t){return t.replace(/\./g,"").replace(ai," ").toLowerCase()}function he(t,e){return t===null?null:{regex:RegExp(t.map(b0).join("|")),deser:([n])=>t.findIndex(s=>li(n)===li(s))+e}}function ci(t,e){return{regex:t,deser:([,n,s])=>Bt(n,s),groups:e}}function Pt(t){return{regex:t,deser:([e])=>e}}function T0(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function S0(t,e){const n=ue(e),s=ue(e,"{2}"),r=ue(e,"{3}"),i=ue(e,"{4}"),o=ue(e,"{6}"),a=ue(e,"{1,2}"),c=ue(e,"{1,3}"),u=ue(e,"{1,6}"),f=ue(e,"{1,9}"),h=ue(e,"{2,4}"),w=ue(e,"{4,6}"),g=k=>({regex:RegExp(T0(k.val)),deser:([_])=>_,literal:!0}),T=(k=>{if(t.literal)return g(k);switch(k.val){case"G":return he(e.eras("short"),0);case"GG":return he(e.eras("long"),0);case"y":return I(u);case"yy":return I(h,In);case"yyyy":return I(i);case"yyyyy":return I(w);case"yyyyyy":return I(o);case"M":return I(a);case"MM":return I(s);case"MMM":return he(e.months("short",!0),1);case"MMMM":return he(e.months("long",!0),1);case"L":return I(a);case"LL":return I(s);case"LLL":return he(e.months("short",!1),1);case"LLLL":return he(e.months("long",!1),1);case"d":return I(a);case"dd":return I(s);case"o":return I(c);case"ooo":return I(r);case"HH":return I(s);case"H":return I(a);case"hh":return I(s);case"h":return I(a);case"mm":return I(s);case"m":return I(a);case"q":return I(a);case"qq":return I(s);case"s":return I(a);case"ss":return I(s);case"S":return I(c);case"SSS":return I(r);case"u":return Pt(f);case"uu":return Pt(a);case"uuu":return I(n);case"a":return he(e.meridiems(),0);case"kkkk":return I(i);case"kk":return I(h,In);case"W":return I(a);case"WW":return I(s);case"E":case"c":return I(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 ci(new RegExp(`([+-]${a.source})(?::(${s.source}))?`),2);case"ZZZ":return ci(new RegExp(`([+-]${a.source})(${s.source})?`),2);case"z":return Pt(/[a-z_+-/]{1,256}?/i);case" ":return Pt(/[^\S\n\r]/);default:return g(k)}})(t)||{invalidReason:k0};return T.token=t,T}const v0={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 O0(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=v0[o];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function _0(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(Pe(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 C0(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 S(t.z)||(n=we.create(t.z)),S(t.Z)||(n||(n=new Y(t.Z)),s=t.Z),S(t.q)||(t.M=(t.q-1)*3+1),S(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),S(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 Vn=null;function x0(){return Vn||(Vn=v.fromMillis(1555555555555)),Vn}function A0(t,e){if(t.literal)return t;const n=j.macroTokenToFormatOpts(t.val),s=di(n,e);return s==null||s.includes(void 0)?t:s}function ui(t,e){return Array.prototype.concat(...t.map(n=>A0(n,e)))}class fi{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=ui(j.parseFormat(n),e),this.units=this.tokens.map(s=>S0(s,e)),this.disqualifyingUnit=this.units.find(s=>s.invalidReason),!this.disqualifyingUnit){const[s,r]=_0(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?C0(s):[null,null,void 0];if(Pe(s,"a")&&Pe(s,"H"))throw new Ue("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 fi(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 di(t,e){if(!t)return null;const s=j.create(e,t).dtFormatter(x0()),r=s.formatToParts(),i=s.resolvedOptions();return r.map(o=>O0(o,t,i))}const Bn="Invalid DateTime",I0=864e13;function ut(t){return new fe("unsupported zone",`the zone "${t.name}" is not supported`)}function Fn(t){return t.weekData===null&&(t.weekData=Mt(t.c)),t.weekData}function Un(t){return t.localWeekData===null&&(t.localWeekData=Mt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function De(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new v({...n,...e,old:n})}function mi(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 qt(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 Wt(t,e,n){return mi(Vt(t),e,n)}function pi(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,Lt(s,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=R.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=Vt(i);let[c,u]=mi(a,n,t.zone);return o!==0&&(c+=o,u=t.zone.offset(c)),{ts:c,o:u}}function Ge(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=v.fromObject(t,{...n,zone:c,specificOffset:i});return o?u:u.setZone(a)}else return v.invalid(new fe("unparsable",`the input "${r}" can't be parsed as ${s}`))}function zt(t,e,n=!0){return t.isValid?j.create(D.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+=P(t.c.year,n?6:4),e?(s+="-",s+=P(t.c.month),s+="-",s+=P(t.c.day)):(s+=P(t.c.month),s+=P(t.c.day)),s}function yi(t,e,n,s,r,i){let o=P(t.c.hour);return e?(o+=":",o+=P(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=":")):o+=P(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=P(t.c.second),(t.c.millisecond!==0||!s)&&(o+=".",o+=P(t.c.millisecond,3))),r&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=P(Math.trunc(-t.o/60)),o+=":",o+=P(Math.trunc(-t.o%60))):(o+="+",o+=P(Math.trunc(t.o/60)),o+=":",o+=P(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const gi={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},M0={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},D0={ordinal:1,hour:0,minute:0,second:0,millisecond:0},wi=["year","month","day","hour","minute","second","millisecond"],L0=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],V0=["year","ordinal","hour","minute","second","millisecond"];function B0(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 Ys(t);return e}function Ei(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return B0(t)}}function F0(t){return Zt[t]||(Ht===void 0&&(Ht=F.now()),Zt[t]=t.offset(Ht)),Zt[t]}function ki(t,e){const n=Se(e.zone,F.defaultZone);if(!n.isValid)return v.invalid(ut(n));const s=D.fromObject(e);let r,i;if(S(t.year))r=F.now();else{for(const c of wi)S(t[c])&&(t[c]=gi[c]);const o=Ir(t)||Mr(t);if(o)return v.invalid(o);const a=F0(n);[r,i]=Wt(t,a,n)}return new v({ts:r,zone:n,loc:s,o:i})}function bi(t,e,n){const s=S(n.round)?!0:n.round,r=(o,a)=>(o=Rn(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 Ti(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 v{constructor(e){const n=e.zone||F.defaultZone;let s=e.invalid||(Number.isNaN(e.ts)?new fe("invalid input"):null)||(n.isValid?null:ut(n));this.ts=S(e.ts)?F.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=ve(e.o)&&!e.old?e.o:n.offset(this.ts);r=qt(this.ts,a),s=Number.isNaN(r.year)?new fe("invalid input"):null,r=s?null:r,i=s?null:a}this._zone=n,this.loc=e.loc||D.create(),this.invalid=s,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new v({})}static local(){const[e,n]=Ti(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]=Ti(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=m2(e)?e.valueOf():NaN;if(Number.isNaN(s))return v.invalid("invalid input");const r=Se(n.zone,F.defaultZone);return r.isValid?new v({ts:s,zone:r,loc:D.fromObject(n)}):v.invalid(ut(r))}static fromMillis(e,n={}){if(ve(e))return e<-864e13||e>I0?v.invalid("Timestamp out of range"):new v({ts:e,zone:Se(n.zone,F.defaultZone),loc:D.fromObject(n)});throw new Z(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(ve(e))return new v({ts:e*1e3,zone:Se(n.zone,F.defaultZone),loc:D.fromObject(n)});throw new Z("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const s=Se(n.zone,F.defaultZone);if(!s.isValid)return v.invalid(ut(s));const r=D.fromObject(n),i=Ft(e,Ei),{minDaysInFirstWeek:o,startOfWeek:a}=Rr(i,r),c=F.now(),u=S(n.specificOffset)?s.offset(c):n.specificOffset,f=!S(i.ordinal),h=!S(i.year),w=!S(i.month)||!S(i.day),g=h||w,m=i.weekYear||i.weekNumber;if((g||f)&&m)throw new Ue("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(w&&f)throw new Ue("Can't mix ordinal dates with month/day");const T=m||i.weekday&&!g;let k,_,C=qt(c,u);T?(k=L0,_=M0,C=Mt(C,o,a)):f?(k=V0,_=D0,C=Cn(C)):(k=wi,_=gi);let L=!1;for(const G of k){const ts=i[G];S(ts)?L?i[G]=_[G]:i[G]=C[G]:L=!0}const ee=T?f2(i,o,a):f?h2(i):Ir(i),B=ee||Mr(i);if(B)return v.invalid(B);const ae=T?xr(i,o,a):f?Ar(i):i,[V,me]=Wt(ae,u,s),W=new v({ts:V,zone:s,o:me,loc:r});return i.weekday&&g&&e.weekday!==W.weekday?v.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${W.toISO()}`):W.isValid?W:v.invalid(W.invalid)}static fromISO(e,n={}){const[s,r]=s0(e);return Ge(s,r,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[s,r]=r0(e);return Ge(s,r,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[s,r]=i0(e);return Ge(s,r,n,"HTTP",n)}static fromFormat(e,n,s={}){if(S(e)||S(n))throw new Z("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=s,o=D.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[a,c,u,f]=R0(o,e,n);return f?v.invalid(f):Ge(a,c,s,`format ${n}`,e,u)}static fromString(e,n,s={}){return v.fromFormat(e,n,s)}static fromSQL(e,n={}){const[s,r]=h0(e);return Ge(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 fe?e:new fe(e,n);if(F.throwOnInvalid)throw new Fa(s);return new v({invalid:s})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const s=di(e,D.fromObject(n));return s?s.map(r=>r?r.val:null).join(""):null}static expandFormat(e,n={}){return ui(j.parseFormat(e),D.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?Cn(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=Vt(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,f=qt(c,o),h=qt(u,a);return f.hour===h.hour&&f.minute===h.minute&&f.second===h.second&&f.millisecond===h.millisecond?[De(this,{ts:c}),De(this,{ts:u})]:[this]}get isInLeapYear(){return it(this.year)}get daysInMonth(){return Lt(this.year,this.month)}get daysInYear(){return this.isValid?qe(this.year):NaN}get weeksInWeekYear(){return this.isValid?ot(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ot(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:s,calendar:r}=j.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(F.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:s=!1}={}){if(e=Se(e,F.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]=Wt(o,i,e)}return De(this,{ts:r,zone:e})}else return v.invalid(ut(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:s}={}){const r=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:s});return De(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Ft(e,Ei),{minDaysInFirstWeek:s,startOfWeek:r}=Rr(n,this.loc),i=!S(n.weekYear)||!S(n.weekNumber)||!S(n.weekday),o=!S(n.ordinal),a=!S(n.year),c=!S(n.month)||!S(n.day),u=a||c,f=n.weekYear||n.weekNumber;if((u||o)&&f)throw new Ue("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&o)throw new Ue("Can't mix ordinal dates with month/day");let h;i?h=xr({...Mt(this.c,s,r),...n},s,r):S(n.ordinal)?(h={...this.toObject(),...n},S(n.day)&&(h.day=Math.min(Lt(h.year,h.month),h.day))):h=Ar({...Cn(this.c),...n});const[w,g]=Wt(h,this.o,this.zone);return De(this,{ts:w,o:g})}plus(e){if(!this.isValid)return this;const n=R.fromDurationLike(e);return De(this,pi(this,n))}minus(e){if(!this.isValid)return this;const n=R.fromDurationLike(e).negate();return De(this,pi(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const s={},r=R.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?j.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):Bn}toLocaleString(e=Ct,n={}){return this.isValid?j.create(this.loc.clone(n),e).formatDateTime(this):Bn}toLocaleParts(e={}){return this.isValid?j.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+=yi(this,o,n,s,r,i),a}toISODate({format:e="extended"}={}){return this.isValid?$n(this,e==="extended"):null}toISOWeekDate(){return zt(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":"")+yi(this,o==="extended",n,e,s,i):null}toRFC2822(){return zt(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return zt(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")),zt(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 R.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...s},i=p2(n).map(R.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,c=o?e:this,u=E0(a,c,i,r);return o?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(v.now(),e,n)}until(e){return this.isValid?U.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||v.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),bi(n,this.plus(s),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?bi(e.base||v.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(v.isDateTime))throw new Z("min requires all arguments be DateTimes");return Vr(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(v.isDateTime))throw new Z("max requires all arguments be DateTimes");return Vr(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,s={}){const{locale:r=null,numberingSystem:i=null}=s,o=D.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return hi(o,e,n)}static fromStringExplain(e,n,s={}){return v.fromFormatExplain(e,n,s)}static buildFormatParser(e,n={}){const{locale:s=null,numberingSystem:r=null}=n,i=D.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});return new fi(i,e)}static fromFormatParser(e,n,s={}){if(S(e)||S(n))throw new Z("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:i=null}=s,o=D.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:f}=n.explainFromTokens(e);return f?v.invalid(f):Ge(a,c,s,`format ${n.format}`,e,u)}static get DATE_SHORT(){return Ct}static get DATE_MED(){return Js}static get DATE_MED_WITH_WEEKDAY(){return Pa}static get DATE_FULL(){return Gs}static get DATE_HUGE(){return Ks}static get TIME_SIMPLE(){return Qs}static get TIME_WITH_SECONDS(){return Xs}static get TIME_WITH_SHORT_OFFSET(){return er}static get TIME_WITH_LONG_OFFSET(){return tr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return rr}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return or}static get DATETIME_SHORT_WITH_SECONDS(){return ar}static get DATETIME_MED(){return lr}static get DATETIME_MED_WITH_SECONDS(){return cr}static get DATETIME_MED_WITH_WEEKDAY(){return qa}static get DATETIME_FULL(){return ur}static get DATETIME_FULL_WITH_SECONDS(){return fr}static get DATETIME_HUGE(){return hr}static get DATETIME_HUGE_WITH_SECONDS(){return dr}}function ft(t){if(v.isDateTime(t))return t;if(t&&t.valueOf&&ve(t.valueOf()))return v.fromJSDate(t);if(t&&typeof t=="object")return v.fromObject(t);throw new Z(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const U0={},$0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function P0(t,e){return l.openBlock(),l.createElementBlock("svg",$0,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 q0=K(U0,[["render",P0]]),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-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",vi="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",Oi="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",_i="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",Ni="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",Le={PREGUNTA:1,IMAGEN:2,AUDIO:3,VIDEO:4,NINGUNO:0},W0={class:"messages-container-list"},z0={class:"message-container"},H0={key:0,class:"btn-container-widget"},Z0=["onClick"],j0={class:"chat-message"},Y0={key:0,class:"flex flex-col gap-2"},J0={style:{"font-size":"14px"},class:"flex justify-between gap-2"},G0=["href","onClick"],K0={class:"flex flex-col items-center"},Q0=["src"],X0={key:1},el={key:0,style:{"text-align":"center"}},tl=["onClick"],nl=["src"],sl={key:1},rl=["src"],il=["innerHTML"],ol={class:"detail-message flex justify-between mt-2"},al={key:0,class:"mr-5"},ll={key:1,class:"mr-5"},cl=K(l.defineComponent({__name:"MessageList",props:{messages:{type:Array,default:()=>[]},canLoadMoreMessages:{type:Boolean,default:!1}},emits:["loadMore","retry","onQualifying","see"],setup(t,{emit:e}){const n=e,s=t,r=l.ref(),{pause:i,resume:o}=Ba(r,([{isIntersecting:w}])=>{w&&n("loadMore")});function a(w,g){return!w.response||typeof w.response!="object"?!0:g.iconUnicode===w.response.message}l.onBeforeMount(()=>{s.canLoadMoreMessages||i()}),l.watch(()=>s.canLoadMoreMessages,w=>{if(w){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(w){const g=Object.values(c);return!g||Array.isArray(g)&&g.length===0?w:g.reduce((T,k)=>T.replace(k.regex,(_,C)=>/--custom-tag/.test(_)?_:k.tag.replace(/{val}/g,C)),w).replace(/--custom-tag/g,"")}const f=[{label:"Excelente",value:1,icon:Oi,iconUnicode:"😊"},{label:"Buena",value:2,icon:Ni,iconUnicode:"😄"},{label:"Aceptable",value:3,icon:_i,iconUnicode:"🙂"},{label:"Mala",value:4,icon:Si,iconUnicode:"😐"},{label:"Muy Mala",value:5,icon:vi,iconUnicode:"🙁"}],h={"😊":Oi,"😄":Ni,"🙂":_i,"😐":Si,"🙁":vi,"":null};return(w,g)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{ref_key:"target",ref:r,class:"target"},null,512),l.createElementVNode("div",W0,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.messages,m=>{var T,k,_;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",H0,[l.createElementVNode("button",{text:"",rounded:"",class:"btn-danger",icon:"fa-solid fa-circle-exclamation","aria-label":"Cancel",onClick:C=>n("retry",m)},[l.createVNode(q0)],8,Z0)])):l.createCommentVNode("",!0),l.createElementVNode("div",j0,[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",Y0,[g[0]||(g[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",J0,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(f,C=>l.createElementVNode("a",{key:C.value,href:m.response?void 0:"javascript:",class:l.normalizeClass(["btn-icon",{"content-disabled":!a(m,C)}]),onClick:L=>!m.response&&n("onQualifying",{message:m,emoji:C})},[l.createElementVNode("div",K0,[l.createElementVNode("img",{src:C.icon,alt:"icono",class:"icon"},null,8,Q0),l.createElementVNode("span",null,l.toDisplayString(C.label),1)])],10,G0)),64))])])):(l.openBlock(),l.createElementBlock("div",X0,[((T=m.messageType)==null?void 0:T.code)===l.unref(Le).IMAGEN?(l.openBlock(),l.createElementBlock("div",el,[l.createElementVNode("a",{href:"javascript:",class:"btn-icon",onClick:C=>n("see",m)},[l.createElementVNode("img",{src:m.thumbnailFile??m.urlFile,alt:"image",width:"150"},null,8,nl)],8,tl)])):l.createCommentVNode("",!0),h[m.message??""]?(l.openBlock(),l.createElementBlock("div",sl,[l.createElementVNode("img",{src:h[m.message],alt:"icono",class:"icon"},null,8,rl)])):(l.openBlock(),l.createElementBlock("div",{key:2,class:"message-text",style:{"white-space":"pre-line"},innerHTML:u(m.message)},null,8,il))])),l.createElementVNode("div",ol,[(k=m.sender)!=null&&k.nombreCompleto?(l.openBlock(),l.createElementBlock("span",al,l.toDisplayString(m.esCliente?(_=m.sender)==null?void 0:_.nombreCompleto:"ECOSISTEMA JL"),1)):(l.openBlock(),l.createElementBlock("span",ll)),l.createElementVNode("span",null,l.toDisplayString(l.unref(v).fromISO(m.createdAt).toFormat("dd-MM-yyyy HH:mm")),1)])],2)],2)])])],2)}),128))])],64))}}),[["__scopeId","data-v-586d8c26"]]),ul={},fl={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{width:"28px",height:"28px"}};function hl(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 dl=K(ul,[["render",hl],["__scopeId","data-v-d9a6b2b7"]]);function ml(t,e,n){for(let s=t.length-1;s>=0;s--)if(t[s][e]===n)return s;return-1}const ye=Object.create(null);ye.open="0",ye.close="1",ye.ping="2",ye.pong="3",ye.message="4",ye.upgrade="5",ye.noop="6";const jt=Object.create(null);Object.keys(ye).forEach(t=>{jt[ye[t]]=t});const Pn={type:"error",data:"parser error"},Ci=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",xi=typeof ArrayBuffer=="function",Ai=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):Ri(e,s):xi&&(e instanceof ArrayBuffer||Ai(e))?n?s(e):Ri(new Blob([e]),s):s(ye[t]+(e||"")),Ri=(t,e)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];e("b"+(s||""))},n.readAsDataURL(t)};function Ii(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Wn;function pl(t,e){if(Ci&&t.data instanceof Blob)return t.data.arrayBuffer().then(Ii).then(e);if(xi&&(t.data instanceof ArrayBuffer||Ai(t.data)))return e(Ii(t.data));qn(t,!1,n=>{Wn||(Wn=new TextEncoder),e(Wn.encode(n))})}const Mi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ht=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Mi.length;t++)ht[Mi.charCodeAt(t)]=t;const yl=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),f=new Uint8Array(u);for(s=0;s<n;s+=4)i=ht[t.charCodeAt(s)],o=ht[t.charCodeAt(s+1)],a=ht[t.charCodeAt(s+2)],c=ht[t.charCodeAt(s+3)],f[r++]=i<<2|o>>4,f[r++]=(o&15)<<4|a>>2,f[r++]=(a&3)<<6|c&63;return u},gl=typeof ArrayBuffer=="function",zn=(t,e)=>{if(typeof t!="string")return{type:"message",data:Di(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:wl(t.substring(1),e)}:jt[n]?t.length>1?{type:jt[n],data:t.substring(1)}:{type:jt[n]}:Pn},wl=(t,e)=>{if(gl){const n=yl(t);return Di(n,e)}else return{base64:!0,data:t}},Di=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Li="",El=(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(Li))})})},kl=(t,e)=>{const n=t.split(Li),s=[];for(let r=0;r<n.length;r++){const i=zn(n[r],e);if(s.push(i),i.type==="error")break}return s};function bl(){return new TransformStream({transform(t,e){pl(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 Hn;function Yt(t){return t.reduce((e,n)=>e+n.length,0)}function Jt(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 Tl(t,e){Hn||(Hn=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(Yt(n)<1)break;const c=Jt(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(Yt(n)<2)break;const c=Jt(n,2);r=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),s=3}else if(s===2){if(Yt(n)<8)break;const c=Jt(n,8),u=new DataView(c.buffer,c.byteOffset,c.length),f=u.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Pn);break}r=f*Math.pow(2,32)+u.getUint32(4),s=3}else{if(Yt(n)<r)break;const c=Jt(n,r);a.enqueue(zn(i?c:Hn.decode(c),e)),s=0}if(r===0||r>t){a.enqueue(Pn);break}}}})}const Vi=4;function q(t){if(t)return Sl(t)}function Sl(t){for(var e in q.prototype)t[e]=q.prototype[e];return t}q.prototype.on=q.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},q.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},q.prototype.off=q.prototype.removeListener=q.prototype.removeAllListeners=q.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},q.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},q.prototype.emitReserved=q.prototype.emit,q.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},q.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Gt=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),oe=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),vl="arraybuffer";function Mu(){}function Bi(t,...e){return e.reduce((n,s)=>(t.hasOwnProperty(s)&&(n[s]=t[s]),n),{})}const Ol=oe.setTimeout,_l=oe.clearTimeout;function Kt(t,e){e.useNativeTimers?(t.setTimeoutFn=Ol.bind(oe),t.clearTimeoutFn=_l.bind(oe)):(t.setTimeoutFn=oe.setTimeout.bind(oe),t.clearTimeoutFn=oe.clearTimeout.bind(oe))}const Nl=1.33;function Cl(t){return typeof t=="string"?xl(t):Math.ceil((t.byteLength||t.size)*Nl)}function xl(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 Fi(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Al(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 q{constructor(e){super(),this.writable=!1,Kt(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=zn(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=Al(e);return n.length?"?"+n:""}}class Ml 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)};kl(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,El(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]=Fi()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}let Ui=!1;try{Ui=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Dl=Ui;function Ll(){}class Vl extends Ml{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 Ke=class nn extends q{constructor(e,n,s){super(),this.createRequest=e,Kt(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=Bi(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=nn.requestsCount++,nn.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=Ll,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete nn.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(Ke.requestsCount=0,Ke.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",$i);else if(typeof addEventListener=="function"){const t="onpagehide"in oe?"pagehide":"unload";addEventListener(t,$i,!1)}}function $i(){for(let t in Ke.requests)Ke.requests.hasOwnProperty(t)&&Ke.requests[t].abort()}const Bl=function(){const t=Pi({xdomain:!1});return t&&t.responseType!==null}();class Fl extends Vl{constructor(e){super(e);const n=e&&e.forceBase64;this.supportsBinary=Bl&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Ke(Pi,this.uri(),e)}}function Pi(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Dl))return new XMLHttpRequest}catch{}if(!e)try{return new oe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const qi=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Ul extends Zn{get name(){return"websocket"}doOpen(){const e=this.uri(),n=this.opts.protocols,s=qi?{}:Bi(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&&Gt(()=>{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]=Fi()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}}const jn=oe.WebSocket||oe.MozWebSocket;class $l extends Ul{createSocket(e,n,s){return qi?new jn(e,n,s):n?new jn(e,n):new jn(e)}doWrite(e,n){this.ws.send(n)}}class Pl 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=Tl(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&&Gt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const ql={websocket:$l,webtransport:Pl,polling:Fl},Wl=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(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=Wl.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=Hl(i,i.path),i.queryKey=Zl(i,i.query),i}function Hl(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 Zl(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",Qt=[];Jn&&addEventListener("offline",()=>{Qt.forEach(t=>t())},!1);class Ne extends q{constructor(e,n){if(super(),this.binaryType=vl,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);Kt(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"})},Qt.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=Vi,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&&Ne.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",Ne.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+=Cl(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,Gt(()=>{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(Ne.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=Qt.indexOf(this._offlineEventListener);s!==-1&&Qt.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}}Ne.protocol=Vi;class jl extends Ne{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;Ne.priorWebsocketSuccess=!1;const r=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!s)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Ne.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(f(),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,f(),n.close(),n=null)}const o=h=>{const w=new Error("probe error: "+h);w.transport=n.name,i(),this.emitReserved("upgradeError",w)};function a(){o("transport closed")}function c(){o("socket closed")}function u(h){n&&h.name!==n.name&&i()}const f=()=>{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 Yl=class extends jl{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=>ql[r]).filter(r=>!!r)),super(e,s)}};function Jl(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 Gl=typeof ArrayBuffer=="function",Kl=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Wi=Object.prototype.toString,Ql=typeof Blob=="function"||typeof Blob<"u"&&Wi.call(Blob)==="[object BlobConstructor]",Xl=typeof File=="function"||typeof File<"u"&&Wi.call(File)==="[object FileConstructor]";function Gn(t){return Gl&&(t instanceof ArrayBuffer||Kl(t))||Ql&&t instanceof Blob||Xl&&t instanceof File}function Xt(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,s=t.length;n<s;n++)if(Xt(t[n]))return!0;return!1}if(Gn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Xt(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Xt(t[n]))return!0;return!1}function ec(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 tc(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 nc=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],sc=5;var A;(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"})(A||(A={}));class rc{constructor(e){this.replacer=e}encode(e){return(e.type===A.EVENT||e.type===A.ACK)&&Xt(e)?this.encodeAsBinary({type:e.type===A.EVENT?A.BINARY_EVENT:A.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===A.BINARY_EVENT||e.type===A.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=ec(e),s=this.encodeAsString(n.packet),r=n.buffers;return r.unshift(s),r}}function zi(t){return Object.prototype.toString.call(t)==="[object Object]"}class Xn extends q{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===A.BINARY_EVENT;s||n.type===A.BINARY_ACK?(n.type=s?A.EVENT:A.ACK,this.reconstructor=new ic(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(A[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===A.BINARY_EVENT||s.type===A.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 A.CONNECT:return zi(n);case A.DISCONNECT:return n===void 0;case A.CONNECT_ERROR:return typeof n=="string"||zi(n);case A.EVENT:case A.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&nc.indexOf(n[0])===-1);case A.ACK:case A.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ic{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=tc(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const oc=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Xn,Encoder:rc,get PacketType(){return A},protocol:sc},Symbol.toStringTag,{value:"Module"}));function de(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const ac=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Hi extends q{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=[de(e,"open",this.onopen.bind(this)),de(e,"packet",this.onpacket.bind(this)),de(e,"error",this.onerror.bind(this)),de(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(ac.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:A.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const f=this.ids++,h=n.pop();this._registerAckCallback(f,h),o.id=f}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:A.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 A.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 A.EVENT:case A.BINARY_EVENT:this.onevent(e);break;case A.ACK:case A.BINARY_ACK:this.onack(e);break;case A.DISCONNECT:this.ondisconnect();break;case A.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:A.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:A.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 Qe(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}Qe.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},Qe.prototype.reset=function(){this.attempts=0},Qe.prototype.setMin=function(t){this.ms=t},Qe.prototype.setMax=function(t){this.max=t},Qe.prototype.setJitter=function(t){this.jitter=t};class es extends q{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,Kt(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 Qe({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||oc;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 Yl(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=de(n,"open",function(){s.onopen(),e&&e()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=de(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(de(e,"ping",this.onping.bind(this)),de(e,"data",this.ondata.bind(this)),de(e,"error",this.onerror.bind(this)),de(e,"close",this.onclose.bind(this)),de(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){Gt(()=>{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 dt={};function en(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=Jl(t,e.path||"/socket.io"),s=n.source,r=n.id,i=n.path,o=dt[r]&&i in dt[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new es(s,e):(dt[r]||(dt[r]=new es(s,e)),c=dt[r]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}Object.assign(en,{Manager:es,Socket:Hi,io:en,connect:en});var Zi=(t=>(t.WEBCHAT="webchat",t.CENTRAL="central",t.WHATSAPP="whatsapp",t.TELEGRAM="telegram",t.SMS="sms",t))(Zi||{});function lc(){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 cc={},uc={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",uc,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
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
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
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
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
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
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
|
14
|
-
`,me();return}_({codigoTipoMensaje:k}),_e.modelValue=!1}function b(g,k){var I,D,te,ne;if((g==null?void 0:g.length)>300){h("show-toast",{severity:"warn",summary:"Error",detail:"El mensaje no puede superar los 300 caracteres",life:5e3});return}if(!g.trim()&&k!==De.IMAGEN){h("show-toast",{severity:"warn",summary:"Error",detail:"Por favor ingrese un mensaje",life:5e3});return}const S=k?{code:k}:void 0;return{id:Gi(),chatId:(D=(I=G.value)==null?void 0:I.chat)==null?void 0:D.id,message:g,visto:!0,multimedia:!1,esCliente:!0,appChatId:u.value,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),file:(te=ht.value)==null?void 0:te[0],urlFile:(ne=dt.value)==null?void 0:ne[0],messageType:S,sender:{nombreCompleto:y.user.nombreCompleto,ci:y.user.ci,msPersonaId:y.user.msPersonaId},response:void 0}}function E(g,k,S,$){if(k==null)throw new Error("idx is required");if(!S){if($){const D=c.value.data[k];D.response=void 0}else c.value.data[k].error={error:!0,id:g.id};h("show-toast",{severity:"error",summary:"Error",detail:"Ocurrio un error al enviar el mensaje, intente nuevamente",life:5e3});return}let I={...S,chatId:g==null?void 0:g.chatId};if($){const D=c.value.data[k];D.response=S,I={...D,chatId:g==null?void 0:g.chatId}}else c.value.data[k]=I;return I}const _=async g=>{const k=b(n.value,g==null?void 0:g.codigoTipoMensaje);if(n.value="",!k)return;let S=-1;if(g!=null&&g.tipoCalificacionId){S=c.value.data.findIndex(D=>D.id===(g==null?void 0:g.mensajeARespondeId));const I=c.value.data[S];I&&(I.response=k)}else S=c.value.data.push(k)-1;const $={message:n.value,appChatId:u.value,...g,codigoTipoMensaje:g==null?void 0:g.codigoTipoMensaje,files:ht.value};N($).then(I=>{var te,ne;let D=E(k,S,I,g==null?void 0:g.tipoCalificacionId);D&&(tn.value=!!c.value.data.find(we=>{var mt;return((mt=we.messageType)==null?void 0:mt.code)===De.PREGUNTA&&we.response==null}),(ne=W.value)==null||ne.emit("sendMessage",{roomId:(te=G==null?void 0:G.value)==null?void 0:te.appChat.id,message:D},we=>{console.log("🚀 ~ socketService.value.emit ~ response:",we)}))}),n.value="",L(),F.value&&(F.value.style.height="20px")},N=async g=>{const k={...g,esCliente:!0};return xa(k,y.tokenAuth)},M=async()=>{var $,I,D;const g=($=c.value.data[0])==null?void 0:$.id,k={lastMessagesId:g,appChatId:u.value,limit:10};f.value=!0;const S=await Ca({body:k,token:y.tokenAuth});f.value=!1,tn.value=!!S.data.find(te=>{var ne;return((ne=te.messageType)==null?void 0:ne.code)===De.PREGUNTA&&te.response==null}),c.value.data.unshift(...S.data.sort((te,ne)=>-ne.createdAt.localeCompare(te.createdAt))),c.value.canLoadMoreMessages=S.pagination.total>S.pagination.size,g&&((I=p.value)!=null&&I.scrollHeight)&&ae((D=p.value)==null?void 0:D.scrollHeight),g||L()},ee=async g=>{h("show-confirm",async()=>{var S,$,I;if(!((S=g.error)!=null&&S.id))return;const k=await N({message:g.message,appChatId:u.value});if(!k)h("show-toast",{severity:"error",summary:"Error",detail:"Ocurrio un error al enviar el mensaje, intente nuevamente",life:5e3});else{const D=dl(c.value.data,"id",g.error.id);c.value.data[D]={...k,error:void 0},(I=W.value)==null||I.emit("sendMessage",{roomId:($=G==null?void 0:G.value)==null?void 0:$.appChat.id,message:g})}L()})},L=()=>{l.nextTick(()=>{p.value&&(p.value.scrollTop=p.value.scrollHeight)})},ae=g=>{l.nextTick(()=>{const k=p.value;k&&(k.scrollTop=k.scrollHeight-g)})},F=l.ref();function me(){F.value&&(F.value.style.height=F.value.scrollHeight-Mc+"px",F.value.scrollHeight!==F.value.clientHeight&&(F.value.style.height=F.value.scrollHeight+"px"))}const W=l.ref(),G=l.ref();function ts(g,k=Hi.WEBCHAT){var S,$;if(!g)throw new Error("user chat is required");W.value=en(window.VITE_SOCKET_URI,{query:{usuarioId:`${($=(S=g==null?void 0:g.chat)==null?void 0:S.persona)==null?void 0:$.funcionarioId}`,aplicacion:k},extraHeaders:{Authorization:y.tokenAuth}}),W.value.removeAllListeners(),W.value.on("connect",()=>{var I,D;console.log("Conectado al servidor de sockets"),(D=W.value)==null||D.emit("joinRoom",`${(I=g==null?void 0:g.appChat)==null?void 0:I.id}`)}),W.value.on("disconnect",()=>{console.log("Desconectado del servidor de sockets")}),W.value.on("receiveMessage",I=>{var te,ne;console.log("Mensaje recibido:",I.message,g);const D=c.value.data.findIndex(we=>we.id===I.message.id);I.message.sender.msPersonaId===((ne=(te=g==null?void 0:g.chat)==null?void 0:te.persona)==null?void 0:ne.msPersonaId)&&D===-1||(D!==-1?c.value.data[D].response=I.message.response:c.value.data.push(I.message),tn.value=!!c.value.data.find(we=>{var mt;return((mt=we.messageType)==null?void 0:mt.code)===De.PREGUNTA&&we.response==null}),Hs(I.message.appChatId,y.tokenAuth),L(),!y.visible&&h("new-message"))})}const{isMobile:ns}=ac();function nu({message:g,emoji:k}){const S=async()=>{!g.id||!k||(n.value=k.iconUnicode,_({tipoCalificacionId:k.value,mensajeARespondeId:g.id}).then())};h("onQualifying",{message:k.iconUnicode,callback:S})}const tn=l.ref(!1);function su(){var S;ht.value=[],dt.value=[];const g=((S=r.value)==null?void 0:S.files)??[],k=g==null?void 0:g[0];if(ht.value=g,!!k){if(!["image/png","image/jpeg","image/jpg","image/webp"].includes(k.type)){h("show-toast",{severity:"warn",summary:"Error",detail:"El archivo debe ser una imagen permitida (png, jpeg, jpg, webp)",life:5e3});return}if(k.size>2e6){h("show-toast",{severity:"warn",summary:"Error",detail:"El archivo excede los 2MB",life:5e3});return}dt.value.push(URL.createObjectURL(k)),o.value=0,_e.title="Preparar imagen",_e.modelValue=!0,l.nextTick(()=>{var $;($=F.value)==null||$.focus()})}}const ht=l.ref([]),dt=l.ref([]),_e=l.reactive({modelValue:!1,"onUpdate:modelValue":g=>{_e.modelValue=g,!g&&(dt.value=[],ht.value=[])},title:"Preparar imagen"});return l.onMounted(async()=>{if(u.value)return;const g=await zs(y.tokenAuth);g&&(G.value=g,u.value=g.appChat.id,s.value=g.appChat.totalNoVistosCliente,ts(g),M(),h("not-viewed-total",g.appChat.totalNoVistosCliente))}),l.onUnmounted(()=>{var g;(g=W.value)==null||g.off()}),(g,k)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",yc,[l.createElementVNode("div",gc,[l.createElementVNode("h4",wc,l.toDisplayString(t.titlePrincipal),1),l.createElementVNode("button",{onClick:k[0]||(k[0]=()=>t.toggleChat()),class:"btn-close"},[l.createVNode(rs,{class:"pointer"})])]),l.createElementVNode("div",{class:"messages-container",ref_key:"messageContainerRef",ref:p},[f.value?(l.openBlock(),l.createElementBlock("div",Ec,[l.createVNode(hl)])):l.createCommentVNode("",!0),c.value.data.length>0?(l.openBlock(),l.createBlock(ll,{key:1,messages:c.value.data,canLoadMoreMessages:c.value.canLoadMoreMessages,onLoadMore:M,onRetry:ee,onOnQualifying:k[1]||(k[1]=S=>nu(S)),onSee:k[2]||(k[2]=S=>{o.value=1,a.value=S.urlFile,_e.title="Imagen",_e.modelValue=!0})},null,8,["messages","canLoadMoreMessages"])):(l.openBlock(),l.createElementBlock("div",kc,k[13]||(k[13]=[l.createElementVNode("span",{class:"center"},"No tienes mensajes",-1)])))],512),l.createElementVNode("div",bc,[tn.value?(l.openBlock(),l.createElementBlock("span",Oc," Necesitamos que nos califique la atención para continuar ")):(l.openBlock(),l.createElementBlock("form",{key:0,class:"message-send",onSubmit:k[7]||(k[7]=l.withModifiers(S=>_(),["prevent"]))},[l.createElementVNode("div",Sc,[l.createElementVNode("div",Tc,[l.withDirectives(l.createElementVNode("textarea",{"onUpdate:modelValue":k[3]||(k[3]=S=>n.value=S),class:"jl2-input-chat",placeholder:"Escribe tu mensaje",required:"",ref_key:"textAreaRef",ref:F,onInput:k[4]||(k[4]=()=>me()),onKeydown:k[5]||(k[5]=l.withKeys(S=>{!l.unref(ns)&&S.preventDefault()},["enter"])),onKeyup:l.withKeys(m,["enter"])},null,544),[[l.vModelText,n.value]]),l.createElementVNode("input",{type:"file",ref_key:"fileInputRef",ref:r,onChange:su,accept:"image/*",style:{display:"none"},key:"fileInputKey"},null,544),l.createElementVNode("button",{type:"button",class:"pointer btn-primary",title:"Adjuntar archivo",onClick:k[6]||(k[6]=()=>{var S;r.value.value="",i.value++,(S=r.value)==null||S.click()})},[l.createVNode(fc,{style:{width:"20px",height:"20px"}})]),l.createElementVNode("button",vc,[l.createVNode(is,{style:{width:"20px",height:"20px"}})])])])],32))])]),l.createVNode(pc,l.normalizeProps(l.guardReactiveProps(_e)),{default:l.withCtx(()=>[o.value===0?(l.openBlock(),l.createElementBlock("div",_c,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(dt.value,(S,$)=>(l.openBlock(),l.createElementBlock("img",{key:$,src:S.toString(),alt:"Image",width:"400"},null,8,Nc))),128)),l.createElementVNode("form",{class:"message-send",onSubmit:k[12]||(k[12]=l.withModifiers(S=>{_({codigoTipoMensaje:l.unref(De).IMAGEN}),_e.modelValue=!1},["prevent"]))},[l.createElementVNode("div",Cc,[l.createElementVNode("div",xc,[l.withDirectives(l.createElementVNode("textarea",{"onUpdate:modelValue":k[8]||(k[8]=S=>n.value=S),autofocus:"",class:"jl2-input-chat",placeholder:"Escribe tu mensaje",ref_key:"textAreaRef",ref:F,onInput:k[9]||(k[9]=()=>me()),onKeydown:k[10]||(k[10]=l.withKeys(S=>{!l.unref(ns)&&S.preventDefault()},["enter"])),onKeyup:k[11]||(k[11]=l.withKeys(S=>{m(S,l.unref(De).IMAGEN)},["enter"]))},null,544),[[l.vModelText,n.value]]),l.createElementVNode("button",Ac,[l.createVNode(is,{style:{width:"20px",height:"20px"}})])])])],32)])):(l.openBlock(),l.createElementBlock("div",Rc,[a.value?(l.openBlock(),l.createElementBlock("img",{key:0,src:a.value,alt:"Image",style:{width:"55vw"}},null,8,Ic)):l.createCommentVNode("",!0)]))]),_:1},16)],64))}}),[["__scopeId","data-v-21cc9c5d"]]),Lc={},Vc={width:"87",height:"87",viewBox:"0 0 87 87",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Bc(t,e){return l.openBlock(),l.createElementBlock("svg",Vc,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="currentColor" 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="currentColor"></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="currentColor"></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="currentColor"></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="currentColor"></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 Fc=K(Lc,[["render",Bc]]),Uc={},$c={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 Pc(t,e){return l.openBlock(),l.createElementBlock("svg",$c,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 qc=K(Uc,[["render",Pc]]),Wc={},zc={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 Hc(t,e){return l.openBlock(),l.createElementBlock("svg",zc,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
|
13
|
+
l-99.357,98.675C149.841,257.159,149.823,257.142,149.823,257.142z`})],-1)]))}const hc=K(cc,[["render",fc]]),dc={key:0,class:"dialog-overlay"},mc={class:"header-widget"},pc={class:"title-chat"},yc=K(l.defineComponent({__name:"ODialog",props:{modelValue:{type:Boolean},title:{},"onUpdate:modelValue":{type:Function}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,s=e,r=l.ref(!1),i=()=>{s("update:modelValue",!1)};return l.onMounted(()=>{const o=document.getElementById("app");if(!o)throw new Error("app is required");let a=document.getElementById("dialogs");a||(a=document.createElement("div"),a.id="dialogs",a.classList.add("widget-component"),o.appendChild(a),r.value=!0)}),(o,a)=>r.value?(l.openBlock(),l.createBlock(l.Teleport,{key:0,to:"#dialogs"},[n.modelValue?(l.openBlock(),l.createElementBlock("div",dc,[l.createElementVNode("div",{class:"dialog-content",onClick:a[1]||(a[1]=l.withModifiers(()=>{},["stop"]))},[l.createElementVNode("div",mc,[l.createElementVNode("h4",pc,l.toDisplayString(o.title),1),l.createElementVNode("button",{onClick:a[0]||(a[0]=()=>i()),class:"btn-close"},[l.createVNode(is,{class:"pointer"})])]),l.createElementVNode("div",null,[l.renderSlot(o.$slots,"default",{},void 0,!0)])])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)}}),[["__scopeId","data-v-532e0111"]]),gc={class:"widget"},wc={class:"header-widget flex-0"},Ec={class:"title-chat"},kc={class:"flex-1",style:{position:"relative",height:"0"}},bc={key:0,class:"loader"},Tc={key:2,class:"fit"},Sc={class:"w-full flex-0"},vc={class:"form-message"},Oc={class:"jl-inputgroup-chat"},_c={type:"submit",class:"pointer btn-primary"},Nc={key:1,class:"message-send-block"},Cc={key:0,class:"flex flex-col justify-center items-center"},xc=["src"],Ac={class:"form-message"},Rc={class:"jl-inputgroup-chat"},Ic={type:"submit",class:"pointer btn-primary"},Mc={key:1},Dc=["src"],Lc=14,Vc=K(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(),i=l.ref(1),o=l.ref(),a=l.ref(),c=l.ref({data:[],canLoadMoreMessages:!1}),u=l.ref(""),f=l.ref(!1),h=e,w=t,g=l.ref(null);l.watch(()=>w.visible,async y=>{if(!y||(h("clear-new-messages"),B(),s.value>0&&Zs(u.value,w.tokenAuth),u.value))return;const p=await Hs(w.tokenAuth);p&&(u.value=p.appChat.id)});function m(y,p){var b;if(ns.value){me();return}if(y.key==="Enter"&&y.shiftKey){const x=((b=y.target)==null?void 0:b.value)||"";y.target.value=x+`
|
14
|
+
`,me();return}_({codigoTipoMensaje:p}),ge.modelValue=!1}function T(y,p){var N,M,te,ne;if((y==null?void 0:y.length)>300){h("show-toast",{severity:"warn",summary:"Error",detail:"El mensaje no puede superar los 300 caracteres",life:5e3});return}if(!y.trim()&&p!==Le.IMAGEN){h("show-toast",{severity:"warn",summary:"Error",detail:"Por favor ingrese un mensaje",life:5e3});return}const b=p?{code:p}:void 0;return{id:Ki(),chatId:(M=(N=G.value)==null?void 0:N.chat)==null?void 0:M.id,message:y,visto:!0,multimedia:!1,esCliente:!0,appChatId:u.value,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),file:(te=Ve.value)==null?void 0:te[0],urlFile:(ne=Ee.value)==null?void 0:ne[0],messageType:b,sender:{nombreCompleto:w.user.nombreCompleto,ci:w.user.ci,msPersonaId:w.user.msPersonaId},response:void 0}}function k(y,p,b,x){if(p==null)throw new Error("idx is required");if(!b){if(x){const M=c.value.data[p];M.response=void 0}else c.value.data[p].error={error:!0,id:y.id};h("show-toast",{severity:"error",summary:"Error",detail:"Ocurrio un error al enviar el mensaje, intente nuevamente",life:5e3});return}let N={...b,chatId:y==null?void 0:y.chatId};if(x){const M=c.value.data[p];M.response=b,N={...M,chatId:y==null?void 0:y.chatId}}else{const M={...N};M.urlFile=c.value.data[p].urlFile,delete M.thumbnailFile,c.value.data[p]=M}return N}const _=async y=>{const p=T(n.value,y==null?void 0:y.codigoTipoMensaje);if(!p)return;let b=-1;if(y!=null&&y.tipoCalificacionId){b=c.value.data.findIndex(M=>M.id===(y==null?void 0:y.mensajeARespondeId));const N=c.value.data[b];N&&(N.response=p)}else b=c.value.data.push(p)-1;const x={message:n.value,appChatId:u.value,...y,codigoTipoMensaje:y==null?void 0:y.codigoTipoMensaje,files:Ve.value};n.value="",C(x).then(N=>{var te,ne;let M=k(p,b,N,y==null?void 0:y.tipoCalificacionId);M&&(tn.value=!!c.value.data.find(ke=>{var mt;return((mt=ke.messageType)==null?void 0:mt.code)===Le.PREGUNTA&&ke.response==null}),(ne=W.value)==null||ne.emit("sendMessage",{roomId:(te=G==null?void 0:G.value)==null?void 0:te.appChat.id,message:M},ke=>{console.log("🚀 ~ socketService.value.emit ~ response:",ke)}))}),n.value="",B(),V.value&&(V.value.style.height="20px")},C=async y=>{const p={...y,esCliente:!0};return Aa(p,w.tokenAuth)},L=async()=>{var x,N,M;const y=(x=c.value.data[0])==null?void 0:x.id,p={lastMessagesId:y,appChatId:u.value,limit:10};f.value=!0;const b=await xa({body:p,token:w.tokenAuth});f.value=!1,tn.value=!!b.data.find(te=>{var ne;return((ne=te.messageType)==null?void 0:ne.code)===Le.PREGUNTA&&te.response==null}),c.value.data.unshift(...b.data.sort((te,ne)=>-ne.createdAt.localeCompare(te.createdAt))),c.value.canLoadMoreMessages=b.pagination.total>b.pagination.size,y&&((N=g.value)!=null&&N.scrollHeight)&&ae((M=g.value)==null?void 0:M.scrollHeight),y||B()},ee=async y=>{h("show-confirm",async()=>{var b,x,N;if(!((b=y.error)!=null&&b.id))return;const p=await C({message:y.message,appChatId:u.value});if(!p)h("show-toast",{severity:"error",summary:"Error",detail:"Ocurrio un error al enviar el mensaje, intente nuevamente",life:5e3});else{const M=ml(c.value.data,"id",y.error.id);c.value.data[M]={...p,error:void 0},(N=W.value)==null||N.emit("sendMessage",{roomId:(x=G==null?void 0:G.value)==null?void 0:x.appChat.id,message:y})}B()})},B=()=>{l.nextTick(()=>{g.value&&(g.value.scrollTop=g.value.scrollHeight)})},ae=y=>{l.nextTick(()=>{const p=g.value;p&&(p.scrollTop=p.scrollHeight-y)})},V=l.ref();function me(){V.value&&(V.value.style.height=V.value.scrollHeight-Lc+"px",V.value.scrollHeight!==V.value.clientHeight&&(V.value.style.height=V.value.scrollHeight+"px"))}const W=l.ref(),G=l.ref();function ts(y,p=Zi.WEBCHAT){var b,x;if(!y)throw new Error("user chat is required");W.value=en(window.VITE_SOCKET_URI,{query:{usuarioId:`${(x=(b=y==null?void 0:y.chat)==null?void 0:b.persona)==null?void 0:x.funcionarioId}`,aplicacion:p},extraHeaders:{Authorization:w.tokenAuth}}),W.value.removeAllListeners(),W.value.on("connect",()=>{var N,M;console.log("Conectado al servidor de sockets"),(M=W.value)==null||M.emit("joinRoom",`${(N=y==null?void 0:y.appChat)==null?void 0:N.id}`)}),W.value.on("disconnect",()=>{console.log("Desconectado del servidor de sockets")}),W.value.on("receiveMessage",N=>{var te,ne;console.log("Mensaje recibido:",N.message,y);const M=c.value.data.findIndex(ke=>ke.id===N.message.id);N.message.sender.msPersonaId===((ne=(te=y==null?void 0:y.chat)==null?void 0:te.persona)==null?void 0:ne.msPersonaId)&&M===-1||(M!==-1?c.value.data[M].response=N.message.response:c.value.data.push(N.message),tn.value=!!c.value.data.find(ke=>{var mt;return((mt=ke.messageType)==null?void 0:mt.code)===Le.PREGUNTA&&ke.response==null}),Zs(N.message.appChatId,w.tokenAuth),B(),!w.visible&&h("new-message"))})}const{isMobile:ns}=lc();function ru({message:y,emoji:p}){const b=async()=>{!y.id||!p||(n.value=p.iconUnicode,_({tipoCalificacionId:p.value,mensajeARespondeId:y.id}).then())};h("onQualifying",{message:p.iconUnicode,callback:b})}const tn=l.ref(!1),ss=["image/png","image/jpeg","image/jpg","image/webp"];function iu(){var b;Ve.value=[],Ee.value=[];const y=Array.from((b=r.value)==null?void 0:b.files)??[],p=y==null?void 0:y[0];if(Ve.value=y,!!p){if(!ss.includes(p.type)){h("show-toast",{severity:"warn",summary:"Error",detail:"El archivo debe ser una imagen permitida (png, jpeg, jpg, webp)",life:5e3});return}if(p.size>2e6){h("show-toast",{severity:"warn",summary:"Error",detail:"El archivo excede los 2MB",life:5e3});return}Ee.value.push(URL.createObjectURL(p)),i.value=0,ge.title="Vista previa",ge.modelValue=!0,l.nextTick(()=>{var x;(x=V.value)==null||x.focus()})}}const ou=y=>{var x,N;const p=((x=y.clipboardData)==null?void 0:x.files)??((N=window.clipboardData)==null?void 0:N.files)??[];if(p.length===0)return;const b=p==null?void 0:p[0];b&&ss.includes(b==null?void 0:b.type)&&(i.value=0,Ee.value=[],Ve.value=[b],Ee.value.push(URL.createObjectURL(b)),ge.modelValue=!0,l.nextTick(()=>{var M;(M=V.value)==null||M.focus()}))};function au(y){var p;(p=y.dataTransfer)!=null&&p.items&&(i.value=0,Array.from(y.dataTransfer.items).forEach(b=>{if(b.kind==="file"){const x=b.getAsFile();if(!x)return;if(!ss.includes(x.type)){h("show-toast",{severity:"error",summary:"Error",detail:"El archivo debe ser una imagen",life:5e3});return}Ve.value=[x],Ee.value=[],Ee.value.push(URL.createObjectURL(x)),ge.modelValue=!0}}),l.nextTick(()=>{var b;(b=V.value)==null||b.focus()}))}const Ve=l.ref([]),Ee=l.ref([]),ge=l.reactive({modelValue:!1,"onUpdate:modelValue":y=>{ge.modelValue=y,!y&&(Ee.value=[],Ve.value=[])},title:"Preparar imagen"});return l.onMounted(async()=>{if(u.value)return;const y=await Hs(w.tokenAuth);y&&(G.value=y,u.value=y.appChat.id,s.value=y.appChat.totalNoVistosCliente,ts(y),L(),h("not-viewed-total",y.appChat.totalNoVistosCliente))}),l.onUnmounted(()=>{var y;(y=W.value)==null||y.off()}),(y,p)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",gc,[l.createElementVNode("div",wc,[l.createElementVNode("h4",Ec,l.toDisplayString(t.titlePrincipal),1),l.createElementVNode("button",{onClick:p[0]||(p[0]=()=>t.toggleChat()),class:"btn-close"},[l.createVNode(is,{class:"pointer"})])]),l.createElementVNode("div",kc,[l.createElementVNode("div",{ref_key:"dropZoneRef",ref:a,onDrop:p[1]||(p[1]=l.withModifiers(b=>{var x,N;au(b),(N=(x=b.target)==null?void 0:x.classList)==null||N.remove("drop-over"),b.target.style.zIndex="-1"},["self","prevent"])),onDragenter:p[2]||(p[2]=l.withModifiers(b=>{var x,N;(N=(x=b.target)==null?void 0:x.classList)==null||N.add("drop-over")},["self"])),onDragleave:p[3]||(p[3]=l.withModifiers(b=>{var x,N;(N=(x=b.target)==null?void 0:x.classList)==null||N.remove("drop-over"),b.target.style.zIndex="-1"},["self"])),onDragover:p[4]||(p[4]=l.withModifiers(()=>{},["prevent"])),style:{position:"absolute",bottom:"0",left:"0",right:"0",top:"0","z-index":"-1"}},null,544),l.createElementVNode("div",{class:"messages-container",ref_key:"messageContainerRef",ref:g,onDragenter:p[7]||(p[7]=l.withModifiers(b=>a.value.style.zIndex="1",["prevent"]))},[f.value?(l.openBlock(),l.createElementBlock("div",bc,[l.createVNode(dl)])):l.createCommentVNode("",!0),c.value.data.length>0?(l.openBlock(),l.createBlock(cl,{key:1,messages:c.value.data,canLoadMoreMessages:c.value.canLoadMoreMessages,onLoadMore:L,onRetry:ee,onOnQualifying:p[5]||(p[5]=b=>ru(b)),onSee:p[6]||(p[6]=b=>{i.value=1,o.value=b.urlFile,ge.title="Imagen",ge.modelValue=!0})},null,8,["messages","canLoadMoreMessages"])):(l.openBlock(),l.createElementBlock("div",Tc,p[18]||(p[18]=[l.createElementVNode("span",{class:"center"},"No tienes mensajes",-1)])))],544)]),l.createElementVNode("div",Sc,[tn.value?(l.openBlock(),l.createElementBlock("span",Nc," Necesitamos que nos califique la atención para continuar ")):(l.openBlock(),l.createElementBlock("form",{key:0,class:"message-send",onSubmit:p[12]||(p[12]=l.withModifiers(b=>_(),["prevent"]))},[l.createElementVNode("div",vc,[l.createElementVNode("div",Oc,[l.withDirectives(l.createElementVNode("textarea",{"onUpdate:modelValue":p[8]||(p[8]=b=>n.value=b),class:"jl2-input-chat",placeholder:"Escribe tu mensaje",required:"",ref_key:"textAreaRef",ref:V,onInput:p[9]||(p[9]=()=>me()),onKeydown:p[10]||(p[10]=l.withKeys(b=>{!l.unref(ns)&&b.preventDefault()},["enter"])),onKeyup:l.withKeys(m,["enter"]),onPaste:l.withModifiers(ou,["prevent"])},null,544),[[l.vModelText,n.value]]),l.createElementVNode("input",{type:"file",ref_key:"fileInputRef",ref:r,onChange:iu,accept:"image/png,image/jpeg,image/jpg,image/webp",style:{display:"none"}},null,544),l.createElementVNode("button",{type:"button",class:"pointer btn-primary",title:"Adjuntar archivo",onClick:p[11]||(p[11]=()=>{var b;r.value.value="",(b=r.value)==null||b.click()})},[l.createVNode(hc,{style:{width:"20px",height:"20px"}})]),l.createElementVNode("button",_c,[l.createVNode(os,{style:{width:"20px",height:"20px"}})])])])],32))])]),l.createVNode(yc,l.normalizeProps(l.guardReactiveProps(ge)),{default:l.withCtx(()=>[i.value===0?(l.openBlock(),l.createElementBlock("div",Cc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Ee.value,(b,x)=>(l.openBlock(),l.createElementBlock("img",{key:x,src:b.toString(),alt:"Image",width:"400"},null,8,xc))),128)),l.createElementVNode("form",{class:"message-send",onSubmit:p[17]||(p[17]=l.withModifiers(b=>{_({codigoTipoMensaje:l.unref(Le).IMAGEN}),ge.modelValue=!1},["prevent"]))},[l.createElementVNode("div",Ac,[l.createElementVNode("div",Rc,[l.withDirectives(l.createElementVNode("textarea",{"onUpdate:modelValue":p[13]||(p[13]=b=>n.value=b),autofocus:"",class:"jl2-input-chat",placeholder:"Escribe tu mensaje",ref_key:"textAreaRef",ref:V,onInput:p[14]||(p[14]=()=>me()),onKeydown:p[15]||(p[15]=l.withKeys(b=>{!l.unref(ns)&&b.preventDefault()},["enter"])),onKeyup:p[16]||(p[16]=l.withKeys(b=>{m(b,l.unref(Le).IMAGEN)},["enter"]))},null,544),[[l.vModelText,n.value]]),l.createElementVNode("button",Ic,[l.createVNode(os,{style:{width:"20px",height:"20px"}})])])])],32)])):(l.openBlock(),l.createElementBlock("div",Mc,[o.value?(l.openBlock(),l.createElementBlock("img",{key:0,src:o.value,alt:"Image",style:{"max-height":"85vh"}},null,8,Dc)):l.createCommentVNode("",!0)]))]),_:1},16)],64))}}),[["__scopeId","data-v-9d715781"]]),Bc={},Fc={width:"87",height:"87",viewBox:"0 0 87 87",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Uc(t,e){return l.openBlock(),l.createElementBlock("svg",Fc,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="currentColor" 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="currentColor"></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="currentColor"></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="currentColor"></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="currentColor"></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 $c=K(Bc,[["render",Uc]]),Pc={},qc={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 Wc(t,e){return l.openBlock(),l.createElementBlock("svg",qc,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 zc=K(Pc,[["render",Wc]]),Hc={},Zc={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 jc(t,e){return l.openBlock(),l.createElementBlock("svg",Zc,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
|
15
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
|
16
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
|
17
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
|
@@ -20,7 +20,7 @@
|
|
20
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
|
21
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
|
22
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
|
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
|
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 Yc=K(Hc,[["render",jc]]),Jc={},Gc={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 Kc(t,e){return l.openBlock(),l.createElementBlock("svg",Gc,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
|
24
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
|
25
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
|
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
|
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 Qc=K(Jc,[["render",Kc]]),Xc={key:0,id:"chat-circle",class:"widget-container"},eu={key:0,class:"new-message-badge"},tu={class:"chat-box"},nu=K(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;l.ref(!0);function s(u){var w;const f=((w=window.VITE_CELLPHONE_NUMBERS)==null?void 0:w.split(","))??[];if(f.length===0){console.warn("not found cellphone numbers");return}o.value=!1;const h=Math.floor(Math.random()*f.length);if(u===0){window.open("https://wa.me/"+f[h],"WhatsApp","noopener");return}window.open("https://t.me/+"+f[h],"Telegram","noopener")}const r=l.ref(!1),i=l.ref(0),o=l.ref(!1),a=()=>{r.value=!r.value},c=t;return(u,f)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["widget-component widget-css-reset widget-container",t.isDarkMode?"chat-dark-mode":""])},[c.tokenAuth.length>10?l.withDirectives((l.openBlock(),l.createElementBlock("div",Xc,[l.createElementVNode("div",{class:l.normalizeClass(["container-buttons-chat",{active:o.value}])},[l.createElementVNode("a",{href:"javascript:;",class:"button whatsapp",onClick:f[0]||(f[0]=h=>s(0))},[l.createVNode(Yc)]),l.createElementVNode("a",{href:"javascript:;",class:"button telegram",onClick:f[1]||(f[1]=h=>s(1))},[l.createVNode(zc)]),l.createElementVNode("a",{href:"javascript:;",class:l.normalizeClass(["button webchat",{disabled:c.tokenAuth.length<10}]),title:"Debe estar autenticado",onClick:f[2]||(f[2]=h=>o.value&&c.tokenAuth.length>10&&a())},[l.createVNode(Qc)],2)],2),i.value?(l.openBlock(),l.createElementBlock("div",eu,l.toDisplayString(i.value>9?"9+":i.value),1)):l.createCommentVNode("",!0),l.createElementVNode("a",{href:"javascript:;",onClick:f[3]||(f[3]=h=>c.tokenAuth.length>10&&a()),class:"btn-primary"},[l.createVNode($c)])],512)),[[l.vShow,!r.value]]):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",tu,[t.tokenAuth?(l.openBlock(),l.createBlock(Vc,{key:0,visible:r.value,titlePrincipal:t.titlePrincipal,toggleChat:a,tokenAuth:t.tokenAuth,user:t.user,onShowToast:f[4]||(f[4]=h=>n("show-toast",h)),onShowConfirm:f[5]||(f[5]=h=>n("show-confirm",h)),onClearNewMessages:f[6]||(f[6]=h=>i.value=0),onNewMessage:f[7]||(f[7]=()=>i.value++),onNotViewedTotal:f[8]||(f[8]=h=>i.value=h),onOnQualifying:f[9]||(f[9]=h=>n("onQualifying",h))},null,8,["visible","titlePrincipal","tokenAuth","user"])):l.createCommentVNode("",!0)],512),[[l.vShow,r.value]])],2))}}),[["__scopeId","data-v-b1fda095"]]),su={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}};be.Widget=nu,be.default=su,Object.defineProperties(be,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|