vue-wiguet-chatweb 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/style.css +1 -1
- package/dist/vue-wiguet-chatweb.js +728 -727
- package/dist/vue-wiguet-chatweb.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components/Widget.vue +1 -0
@@ -1,92 +1,92 @@
|
|
1
|
-
import { openBlock as
|
1
|
+
import { openBlock as L, createElementBlock as B, createElementVNode as w, getCurrentScope as Ri, onScopeDispose as Ii, unref as js, computed as Ys, ref as q, watch as En, getCurrentInstance as Di, onMounted as Js, defineComponent as On, onBeforeMount as Li, Fragment as Hn, renderList as Fi, normalizeClass as Me, createVNode as he, createCommentVNode as Ct, toDisplayString as Je, pushScopeId as Vi, popScopeId as Bi, nextTick as zn, onUnmounted as $i, withModifiers as qt, withDirectives as an, withKeys as Zn, vModelText as Ui, createStaticVNode as Pi, vShow as jn, createBlock as Wi } from "vue";
|
2
2
|
let it;
|
3
|
-
const
|
4
|
-
function
|
3
|
+
const qi = new Uint8Array(16);
|
4
|
+
function Hi() {
|
5
5
|
if (!it && (it = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !it))
|
6
6
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
7
|
-
return it(
|
7
|
+
return it(qi);
|
8
8
|
}
|
9
9
|
const U = [];
|
10
10
|
for (let t = 0; t < 256; ++t)
|
11
11
|
U.push((t + 256).toString(16).slice(1));
|
12
|
-
function
|
12
|
+
function zi(t, e = 0) {
|
13
13
|
return U[t[e + 0]] + U[t[e + 1]] + U[t[e + 2]] + U[t[e + 3]] + "-" + U[t[e + 4]] + U[t[e + 5]] + "-" + U[t[e + 6]] + U[t[e + 7]] + "-" + U[t[e + 8]] + U[t[e + 9]] + "-" + U[t[e + 10]] + U[t[e + 11]] + U[t[e + 12]] + U[t[e + 13]] + U[t[e + 14]] + U[t[e + 15]];
|
14
14
|
}
|
15
|
-
const
|
16
|
-
randomUUID:
|
15
|
+
const Zi = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Yn = {
|
16
|
+
randomUUID: Zi
|
17
17
|
};
|
18
|
-
function
|
18
|
+
function ji(t, e, n) {
|
19
19
|
if (Yn.randomUUID && !e && !t)
|
20
20
|
return Yn.randomUUID();
|
21
21
|
t = t || {};
|
22
|
-
const s = t.random || (t.rng ||
|
23
|
-
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128,
|
22
|
+
const s = t.random || (t.rng || Hi)();
|
23
|
+
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, zi(s);
|
24
24
|
}
|
25
25
|
const oe = (t, e) => {
|
26
26
|
const n = t.__vccOpts || t;
|
27
27
|
for (const [s, r] of e)
|
28
28
|
n[s] = r;
|
29
29
|
return n;
|
30
|
-
},
|
30
|
+
}, Yi = {}, Ji = {
|
31
31
|
width: "32",
|
32
32
|
height: "32",
|
33
33
|
viewBox: "0 0 32 32",
|
34
34
|
fill: "none",
|
35
35
|
xmlns: "http://www.w3.org/2000/svg"
|
36
|
-
},
|
36
|
+
}, Gi = /* @__PURE__ */ w("path", {
|
37
37
|
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",
|
38
38
|
stroke: "#B3B3B3",
|
39
39
|
"stroke-miterlimit": "10"
|
40
|
-
}, null, -1),
|
40
|
+
}, null, -1), Ki = /* @__PURE__ */ w("path", {
|
41
41
|
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",
|
42
42
|
fill: "#B3B3B3"
|
43
|
-
}, null, -1),
|
44
|
-
|
45
|
-
|
43
|
+
}, null, -1), Xi = [
|
44
|
+
Gi,
|
45
|
+
Ki
|
46
46
|
];
|
47
|
-
function
|
48
|
-
return
|
47
|
+
function Qi(t, e) {
|
48
|
+
return L(), B("svg", Ji, Xi);
|
49
49
|
}
|
50
|
-
const
|
50
|
+
const eo = /* @__PURE__ */ oe(Yi, [["render", Qi]]), to = {}, no = {
|
51
51
|
xmlns: "http://www.w3.org/2000/svg",
|
52
52
|
viewBox: "0 0 512 512"
|
53
|
-
},
|
53
|
+
}, so = /* @__PURE__ */ w("path", {
|
54
54
|
fill: "#F28B0C",
|
55
55
|
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"
|
56
|
-
}, null, -1),
|
57
|
-
|
56
|
+
}, null, -1), ro = [
|
57
|
+
so
|
58
58
|
];
|
59
|
-
function
|
60
|
-
return
|
59
|
+
function io(t, e) {
|
60
|
+
return L(), B("svg", no, ro);
|
61
61
|
}
|
62
|
-
const
|
62
|
+
const oo = /* @__PURE__ */ oe(to, [["render", io]]);
|
63
63
|
function Gs(t, e) {
|
64
64
|
return function() {
|
65
65
|
return t.apply(e, arguments);
|
66
66
|
};
|
67
67
|
}
|
68
|
-
const { toString:
|
69
|
-
const n =
|
68
|
+
const { toString: ao } = Object.prototype, { getPrototypeOf: Cn } = Object, Mt = /* @__PURE__ */ ((t) => (e) => {
|
69
|
+
const n = ao.call(e);
|
70
70
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
71
|
-
})(/* @__PURE__ */ Object.create(null)),
|
72
|
-
function
|
71
|
+
})(/* @__PURE__ */ Object.create(null)), le = (t) => (t = t.toLowerCase(), (e) => Mt(e) === t), Rt = (t) => (e) => typeof e === t, { isArray: Fe } = Array, Ke = Rt("undefined");
|
72
|
+
function co(t) {
|
73
73
|
return t !== null && !Ke(t) && t.constructor !== null && !Ke(t.constructor) && Q(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
74
74
|
}
|
75
|
-
const Ks =
|
76
|
-
function
|
75
|
+
const Ks = le("ArrayBuffer");
|
76
|
+
function uo(t) {
|
77
77
|
let e;
|
78
78
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Ks(t.buffer), e;
|
79
79
|
}
|
80
|
-
const
|
81
|
-
if (
|
80
|
+
const lo = Rt("string"), Q = Rt("function"), Xs = Rt("number"), It = (t) => t !== null && typeof t == "object", fo = (t) => t === !0 || t === !1, yt = (t) => {
|
81
|
+
if (Mt(t) !== "object")
|
82
82
|
return !1;
|
83
83
|
const e = Cn(t);
|
84
84
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
85
|
-
},
|
85
|
+
}, ho = le("Date"), mo = le("File"), po = le("Blob"), yo = le("FileList"), go = (t) => It(t) && Q(t.pipe), wo = (t) => {
|
86
86
|
let e;
|
87
|
-
return t && (typeof FormData == "function" && t instanceof FormData || Q(t.append) && ((e =
|
87
|
+
return t && (typeof FormData == "function" && t instanceof FormData || Q(t.append) && ((e = Mt(t)) === "formdata" || // detect form-data instance
|
88
88
|
e === "object" && Q(t.toString) && t.toString() === "[object FormData]"));
|
89
|
-
},
|
89
|
+
}, So = le("URLSearchParams"), vo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
90
90
|
function Qe(t, e, { allOwnKeys: n = !1 } = {}) {
|
91
91
|
if (t === null || typeof t > "u")
|
92
92
|
return;
|
@@ -111,22 +111,22 @@ function Qs(t, e) {
|
|
111
111
|
return null;
|
112
112
|
}
|
113
113
|
const er = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, tr = (t) => !Ke(t) && t !== er;
|
114
|
-
function
|
114
|
+
function cn() {
|
115
115
|
const { caseless: t } = tr(this) && this || {}, e = {}, n = (s, r) => {
|
116
116
|
const i = t && Qs(e, r) || r;
|
117
|
-
yt(e[i]) && yt(s) ? e[i] =
|
117
|
+
yt(e[i]) && yt(s) ? e[i] = cn(e[i], s) : yt(s) ? e[i] = cn({}, s) : Fe(s) ? e[i] = s.slice() : e[i] = s;
|
118
118
|
};
|
119
119
|
for (let s = 0, r = arguments.length; s < r; s++)
|
120
120
|
arguments[s] && Qe(arguments[s], n);
|
121
121
|
return e;
|
122
122
|
}
|
123
|
-
const
|
123
|
+
const bo = (t, e, n, { allOwnKeys: s } = {}) => (Qe(e, (r, i) => {
|
124
124
|
n && Q(r) ? t[i] = Gs(r, n) : t[i] = r;
|
125
|
-
}, { allOwnKeys: s }), t),
|
125
|
+
}, { allOwnKeys: s }), t), To = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), ko = (t, e, n, s) => {
|
126
126
|
t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
127
127
|
value: e.prototype
|
128
128
|
}), n && Object.assign(t.prototype, n);
|
129
|
-
},
|
129
|
+
}, Eo = (t, e, n, s) => {
|
130
130
|
let r, i, o;
|
131
131
|
const a = {};
|
132
132
|
if (e = e || {}, t == null) return e;
|
@@ -136,11 +136,11 @@ const vo = (t, e, n, { allOwnKeys: s } = {}) => (Qe(e, (r, i) => {
|
|
136
136
|
t = n !== !1 && Cn(t);
|
137
137
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
138
138
|
return e;
|
139
|
-
},
|
139
|
+
}, Oo = (t, e, n) => {
|
140
140
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
141
141
|
const s = t.indexOf(e, n);
|
142
142
|
return s !== -1 && s === n;
|
143
|
-
},
|
143
|
+
}, Co = (t) => {
|
144
144
|
if (!t) return null;
|
145
145
|
if (Fe(t)) return t;
|
146
146
|
let e = t.length;
|
@@ -149,30 +149,30 @@ const vo = (t, e, n, { allOwnKeys: s } = {}) => (Qe(e, (r, i) => {
|
|
149
149
|
for (; e-- > 0; )
|
150
150
|
n[e] = t[e];
|
151
151
|
return n;
|
152
|
-
},
|
152
|
+
}, xo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Cn(Uint8Array)), No = (t, e) => {
|
153
153
|
const s = (t && t[Symbol.iterator]).call(t);
|
154
154
|
let r;
|
155
155
|
for (; (r = s.next()) && !r.done; ) {
|
156
156
|
const i = r.value;
|
157
157
|
e.call(t, i[0], i[1]);
|
158
158
|
}
|
159
|
-
},
|
159
|
+
}, _o = (t, e) => {
|
160
160
|
let n;
|
161
161
|
const s = [];
|
162
162
|
for (; (n = t.exec(e)) !== null; )
|
163
163
|
s.push(n);
|
164
164
|
return s;
|
165
|
-
},
|
165
|
+
}, Ao = le("HTMLFormElement"), Mo = (t) => t.toLowerCase().replace(
|
166
166
|
/[-_\s]([a-z\d])(\w*)/g,
|
167
167
|
function(n, s, r) {
|
168
168
|
return s.toUpperCase() + r;
|
169
169
|
}
|
170
|
-
), Jn = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype),
|
170
|
+
), Jn = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ro = le("RegExp"), nr = (t, e) => {
|
171
171
|
const n = Object.getOwnPropertyDescriptors(t), s = {};
|
172
172
|
Qe(n, (r, i) => {
|
173
173
|
e(r, i, t) !== !1 && (s[i] = r);
|
174
174
|
}), Object.defineProperties(t, s);
|
175
|
-
},
|
175
|
+
}, Io = (t) => {
|
176
176
|
nr(t, (e, n) => {
|
177
177
|
if (Q(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
178
178
|
return !1;
|
@@ -187,31 +187,31 @@ const vo = (t, e, n, { allOwnKeys: s } = {}) => (Qe(e, (r, i) => {
|
|
187
187
|
});
|
188
188
|
}
|
189
189
|
});
|
190
|
-
},
|
190
|
+
}, Do = (t, e) => {
|
191
191
|
const n = {}, s = (r) => {
|
192
192
|
r.forEach((i) => {
|
193
193
|
n[i] = !0;
|
194
194
|
});
|
195
195
|
};
|
196
196
|
return Fe(t) ? s(t) : s(String(t).split(e)), n;
|
197
|
-
},
|
198
|
-
},
|
197
|
+
}, Lo = () => {
|
198
|
+
}, Fo = (t, e) => (t = +t, Number.isFinite(t) ? t : e), Ht = "abcdefghijklmnopqrstuvwxyz", Gn = "0123456789", sr = {
|
199
199
|
DIGIT: Gn,
|
200
|
-
ALPHA:
|
201
|
-
ALPHA_DIGIT:
|
202
|
-
},
|
200
|
+
ALPHA: Ht,
|
201
|
+
ALPHA_DIGIT: Ht + Ht.toUpperCase() + Gn
|
202
|
+
}, Vo = (t = 16, e = sr.ALPHA_DIGIT) => {
|
203
203
|
let n = "";
|
204
204
|
const { length: s } = e;
|
205
205
|
for (; t--; )
|
206
206
|
n += e[Math.random() * s | 0];
|
207
207
|
return n;
|
208
208
|
};
|
209
|
-
function
|
209
|
+
function Bo(t) {
|
210
210
|
return !!(t && Q(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
211
211
|
}
|
212
|
-
const
|
212
|
+
const $o = (t) => {
|
213
213
|
const e = new Array(10), n = (s, r) => {
|
214
|
-
if (
|
214
|
+
if (It(s)) {
|
215
215
|
if (e.indexOf(s) >= 0)
|
216
216
|
return;
|
217
217
|
if (!("toJSON" in s)) {
|
@@ -226,59 +226,59 @@ const Bo = (t) => {
|
|
226
226
|
return s;
|
227
227
|
};
|
228
228
|
return n(t, 0);
|
229
|
-
},
|
229
|
+
}, Uo = le("AsyncFunction"), Po = (t) => t && (It(t) || Q(t)) && Q(t.then) && Q(t.catch), f = {
|
230
230
|
isArray: Fe,
|
231
231
|
isArrayBuffer: Ks,
|
232
|
-
isBuffer:
|
233
|
-
isFormData:
|
234
|
-
isArrayBufferView:
|
235
|
-
isString:
|
232
|
+
isBuffer: co,
|
233
|
+
isFormData: wo,
|
234
|
+
isArrayBufferView: uo,
|
235
|
+
isString: lo,
|
236
236
|
isNumber: Xs,
|
237
|
-
isBoolean:
|
238
|
-
isObject:
|
237
|
+
isBoolean: fo,
|
238
|
+
isObject: It,
|
239
239
|
isPlainObject: yt,
|
240
240
|
isUndefined: Ke,
|
241
|
-
isDate:
|
242
|
-
isFile:
|
243
|
-
isBlob:
|
244
|
-
isRegExp:
|
241
|
+
isDate: ho,
|
242
|
+
isFile: mo,
|
243
|
+
isBlob: po,
|
244
|
+
isRegExp: Ro,
|
245
245
|
isFunction: Q,
|
246
|
-
isStream:
|
247
|
-
isURLSearchParams:
|
248
|
-
isTypedArray:
|
249
|
-
isFileList:
|
246
|
+
isStream: go,
|
247
|
+
isURLSearchParams: So,
|
248
|
+
isTypedArray: xo,
|
249
|
+
isFileList: yo,
|
250
250
|
forEach: Qe,
|
251
|
-
merge:
|
252
|
-
extend:
|
253
|
-
trim:
|
254
|
-
stripBOM:
|
255
|
-
inherits:
|
256
|
-
toFlatObject:
|
257
|
-
kindOf:
|
258
|
-
kindOfTest:
|
259
|
-
endsWith:
|
260
|
-
toArray:
|
261
|
-
forEachEntry:
|
262
|
-
matchAll:
|
263
|
-
isHTMLForm:
|
251
|
+
merge: cn,
|
252
|
+
extend: bo,
|
253
|
+
trim: vo,
|
254
|
+
stripBOM: To,
|
255
|
+
inherits: ko,
|
256
|
+
toFlatObject: Eo,
|
257
|
+
kindOf: Mt,
|
258
|
+
kindOfTest: le,
|
259
|
+
endsWith: Oo,
|
260
|
+
toArray: Co,
|
261
|
+
forEachEntry: No,
|
262
|
+
matchAll: _o,
|
263
|
+
isHTMLForm: Ao,
|
264
264
|
hasOwnProperty: Jn,
|
265
265
|
hasOwnProp: Jn,
|
266
266
|
// an alias to avoid ESLint no-prototype-builtins detection
|
267
267
|
reduceDescriptors: nr,
|
268
|
-
freezeMethods:
|
269
|
-
toObjectSet:
|
270
|
-
toCamelCase:
|
271
|
-
noop:
|
272
|
-
toFiniteNumber:
|
268
|
+
freezeMethods: Io,
|
269
|
+
toObjectSet: Do,
|
270
|
+
toCamelCase: Mo,
|
271
|
+
noop: Lo,
|
272
|
+
toFiniteNumber: Fo,
|
273
273
|
findKey: Qs,
|
274
274
|
global: er,
|
275
275
|
isContextDefined: tr,
|
276
276
|
ALPHABET: sr,
|
277
|
-
generateString:
|
278
|
-
isSpecCompliantForm:
|
279
|
-
toJSONObject:
|
280
|
-
isAsyncFn:
|
281
|
-
isThenable:
|
277
|
+
generateString: Vo,
|
278
|
+
isSpecCompliantForm: Bo,
|
279
|
+
toJSONObject: $o,
|
280
|
+
isAsyncFn: Uo,
|
281
|
+
isThenable: Po
|
282
282
|
};
|
283
283
|
function E(t, e, n, s, r) {
|
284
284
|
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);
|
@@ -330,8 +330,8 @@ E.from = (t, e, n, s, r, i) => {
|
|
330
330
|
return c !== Error.prototype;
|
331
331
|
}, (a) => a !== "isAxiosError"), E.call(o, t.message, e, n, s, r), o.cause = t, o.name = t.name, i && Object.assign(o, i), o;
|
332
332
|
};
|
333
|
-
const
|
334
|
-
function
|
333
|
+
const Wo = null;
|
334
|
+
function un(t) {
|
335
335
|
return f.isPlainObject(t) || f.isArray(t);
|
336
336
|
}
|
337
337
|
function or(t) {
|
@@ -342,13 +342,13 @@ function Kn(t, e, n) {
|
|
342
342
|
return r = or(r), !n && i ? "[" + r + "]" : r;
|
343
343
|
}).join(n ? "." : "") : e;
|
344
344
|
}
|
345
|
-
function
|
346
|
-
return f.isArray(t) && !t.some(
|
345
|
+
function qo(t) {
|
346
|
+
return f.isArray(t) && !t.some(un);
|
347
347
|
}
|
348
|
-
const
|
348
|
+
const Ho = f.toFlatObject(f, {}, null, function(e) {
|
349
349
|
return /^is[A-Z]/.test(e);
|
350
350
|
});
|
351
|
-
function
|
351
|
+
function Dt(t, e, n) {
|
352
352
|
if (!f.isObject(t))
|
353
353
|
throw new TypeError("target must be an object");
|
354
354
|
e = e || new FormData(), n = f.toFlatObject(n, {
|
@@ -374,21 +374,21 @@ function It(t, e, n) {
|
|
374
374
|
if (m && !_ && typeof m == "object") {
|
375
375
|
if (f.endsWith(y, "{}"))
|
376
376
|
y = s ? y : y.slice(0, -2), m = JSON.stringify(m);
|
377
|
-
else if (f.isArray(m) &&
|
378
|
-
return y = or(y), C.forEach(function(
|
379
|
-
!(f.isUndefined(
|
377
|
+
else if (f.isArray(m) && qo(m) || (f.isFileList(m) || f.endsWith(y, "[]")) && (C = f.toArray(m)))
|
378
|
+
return y = or(y), C.forEach(function(fe, b) {
|
379
|
+
!(f.isUndefined(fe) || fe === null) && e.append(
|
380
380
|
// eslint-disable-next-line no-nested-ternary
|
381
381
|
o === !0 ? Kn([y], b, i) : o === null ? y : y + "[]",
|
382
|
-
u(
|
382
|
+
u(fe)
|
383
383
|
);
|
384
384
|
}), !1;
|
385
385
|
}
|
386
|
-
return
|
386
|
+
return un(m) ? !0 : (e.append(Kn(_, y, i), u(m)), !1);
|
387
387
|
}
|
388
|
-
const h = [], g = Object.assign(
|
388
|
+
const h = [], g = Object.assign(Ho, {
|
389
389
|
defaultVisitor: l,
|
390
390
|
convertValue: u,
|
391
|
-
isVisitable:
|
391
|
+
isVisitable: un
|
392
392
|
});
|
393
393
|
function d(m, y) {
|
394
394
|
if (!f.isUndefined(m)) {
|
@@ -424,7 +424,7 @@ function Xn(t) {
|
|
424
424
|
});
|
425
425
|
}
|
426
426
|
function xn(t, e) {
|
427
|
-
this._pairs = [], t &&
|
427
|
+
this._pairs = [], t && Dt(t, this, e);
|
428
428
|
}
|
429
429
|
const ar = xn.prototype;
|
430
430
|
ar.append = function(e, n) {
|
@@ -438,13 +438,13 @@ ar.toString = function(e) {
|
|
438
438
|
return n(r[0]) + "=" + n(r[1]);
|
439
439
|
}, "").join("&");
|
440
440
|
};
|
441
|
-
function
|
441
|
+
function zo(t) {
|
442
442
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
443
443
|
}
|
444
444
|
function cr(t, e, n) {
|
445
445
|
if (!e)
|
446
446
|
return t;
|
447
|
-
const s = n && n.encode ||
|
447
|
+
const s = n && n.encode || zo, r = n && n.serialize;
|
448
448
|
let i;
|
449
449
|
if (r ? i = r(e, n) : i = f.isURLSearchParams(e) ? e.toString() : new xn(e, n).toString(s), i) {
|
450
450
|
const o = t.indexOf("#");
|
@@ -510,32 +510,32 @@ const ur = {
|
|
510
510
|
silentJSONParsing: !0,
|
511
511
|
forcedJSONParsing: !0,
|
512
512
|
clarifyTimeoutError: !1
|
513
|
-
},
|
513
|
+
}, Zo = typeof URLSearchParams < "u" ? URLSearchParams : xn, jo = typeof FormData < "u" ? FormData : null, Yo = typeof Blob < "u" ? Blob : null, Jo = (() => {
|
514
514
|
let t;
|
515
515
|
return typeof navigator < "u" && ((t = navigator.product) === "ReactNative" || t === "NativeScript" || t === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
516
|
-
})(),
|
517
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
516
|
+
})(), Go = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
517
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ae = {
|
518
518
|
isBrowser: !0,
|
519
519
|
classes: {
|
520
|
-
URLSearchParams:
|
521
|
-
FormData:
|
522
|
-
Blob:
|
520
|
+
URLSearchParams: Zo,
|
521
|
+
FormData: jo,
|
522
|
+
Blob: Yo
|
523
523
|
},
|
524
|
-
isStandardBrowserEnv:
|
525
|
-
isStandardBrowserWebWorkerEnv:
|
524
|
+
isStandardBrowserEnv: Jo,
|
525
|
+
isStandardBrowserWebWorkerEnv: Go,
|
526
526
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
527
527
|
};
|
528
|
-
function
|
529
|
-
return
|
528
|
+
function Ko(t, e) {
|
529
|
+
return Dt(t, new ae.classes.URLSearchParams(), Object.assign({
|
530
530
|
visitor: function(n, s, r, i) {
|
531
|
-
return
|
531
|
+
return ae.isNode && f.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
532
532
|
}
|
533
533
|
}, e));
|
534
534
|
}
|
535
|
-
function
|
535
|
+
function Xo(t) {
|
536
536
|
return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
537
537
|
}
|
538
|
-
function
|
538
|
+
function Qo(t) {
|
539
539
|
const e = {}, n = Object.keys(t);
|
540
540
|
let s;
|
541
541
|
const r = n.length;
|
@@ -548,20 +548,20 @@ function lr(t) {
|
|
548
548
|
function e(n, s, r, i) {
|
549
549
|
let o = n[i++];
|
550
550
|
const a = Number.isFinite(+o), c = i >= n.length;
|
551
|
-
return o = !o && f.isArray(r) ? r.length : o, c ? (f.hasOwnProp(r, o) ? r[o] = [r[o], s] : r[o] = s, !a) : ((!r[o] || !f.isObject(r[o])) && (r[o] = []), e(n, s, r[o], i) && f.isArray(r[o]) && (r[o] =
|
551
|
+
return o = !o && f.isArray(r) ? r.length : o, c ? (f.hasOwnProp(r, o) ? r[o] = [r[o], s] : r[o] = s, !a) : ((!r[o] || !f.isObject(r[o])) && (r[o] = []), e(n, s, r[o], i) && f.isArray(r[o]) && (r[o] = Qo(r[o])), !a);
|
552
552
|
}
|
553
553
|
if (f.isFormData(t) && f.isFunction(t.entries)) {
|
554
554
|
const n = {};
|
555
555
|
return f.forEachEntry(t, (s, r) => {
|
556
|
-
e(
|
556
|
+
e(Xo(s), r, n, 0);
|
557
557
|
}), n;
|
558
558
|
}
|
559
559
|
return null;
|
560
560
|
}
|
561
|
-
const
|
561
|
+
const ea = {
|
562
562
|
"Content-Type": void 0
|
563
563
|
};
|
564
|
-
function
|
564
|
+
function ta(t, e, n) {
|
565
565
|
if (f.isString(t))
|
566
566
|
try {
|
567
567
|
return (e || JSON.parse)(t), f.trim(t);
|
@@ -587,17 +587,17 @@ const Ve = {
|
|
587
587
|
let a;
|
588
588
|
if (i) {
|
589
589
|
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
590
|
-
return
|
590
|
+
return Ko(e, this.formSerializer).toString();
|
591
591
|
if ((a = f.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
|
592
592
|
const c = this.env && this.env.FormData;
|
593
|
-
return
|
593
|
+
return Dt(
|
594
594
|
a ? { "files[]": e } : e,
|
595
595
|
c && new c(),
|
596
596
|
this.formSerializer
|
597
597
|
);
|
598
598
|
}
|
599
599
|
}
|
600
|
-
return i || r ? (n.setContentType("application/json", !1),
|
600
|
+
return i || r ? (n.setContentType("application/json", !1), ta(e)) : e;
|
601
601
|
}],
|
602
602
|
transformResponse: [function(e) {
|
603
603
|
const n = this.transitional || Ve.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
|
@@ -622,8 +622,8 @@ const Ve = {
|
|
622
622
|
maxContentLength: -1,
|
623
623
|
maxBodyLength: -1,
|
624
624
|
env: {
|
625
|
-
FormData:
|
626
|
-
Blob:
|
625
|
+
FormData: ae.classes.FormData,
|
626
|
+
Blob: ae.classes.Blob
|
627
627
|
},
|
628
628
|
validateStatus: function(e) {
|
629
629
|
return e >= 200 && e < 300;
|
@@ -638,9 +638,9 @@ f.forEach(["delete", "get", "head"], function(e) {
|
|
638
638
|
Ve.headers[e] = {};
|
639
639
|
});
|
640
640
|
f.forEach(["post", "put", "patch"], function(e) {
|
641
|
-
Ve.headers[e] = f.merge(
|
641
|
+
Ve.headers[e] = f.merge(ea);
|
642
642
|
});
|
643
|
-
const
|
643
|
+
const na = f.toObjectSet([
|
644
644
|
"age",
|
645
645
|
"authorization",
|
646
646
|
"content-length",
|
@@ -658,12 +658,12 @@ const ta = f.toObjectSet([
|
|
658
658
|
"referer",
|
659
659
|
"retry-after",
|
660
660
|
"user-agent"
|
661
|
-
]),
|
661
|
+
]), sa = (t) => {
|
662
662
|
const e = {};
|
663
663
|
let n, s, r;
|
664
664
|
return t && t.split(`
|
665
665
|
`).forEach(function(o) {
|
666
|
-
r = o.indexOf(":"), n = o.substring(0, r).trim().toLowerCase(), s = o.substring(r + 1).trim(), !(!n || e[n] &&
|
666
|
+
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);
|
667
667
|
}), e;
|
668
668
|
}, es = Symbol("internals");
|
669
669
|
function qe(t) {
|
@@ -672,15 +672,15 @@ function qe(t) {
|
|
672
672
|
function gt(t) {
|
673
673
|
return t === !1 || t == null ? t : f.isArray(t) ? t.map(gt) : String(t);
|
674
674
|
}
|
675
|
-
function
|
675
|
+
function ra(t) {
|
676
676
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
677
677
|
let s;
|
678
678
|
for (; s = n.exec(t); )
|
679
679
|
e[s[1]] = s[2];
|
680
680
|
return e;
|
681
681
|
}
|
682
|
-
const
|
683
|
-
function
|
682
|
+
const ia = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
683
|
+
function zt(t, e, n, s, r) {
|
684
684
|
if (f.isFunction(s))
|
685
685
|
return s.call(this, e, n);
|
686
686
|
if (r && (e = n), !!f.isString(e)) {
|
@@ -690,10 +690,10 @@ function Ht(t, e, n, s, r) {
|
|
690
690
|
return s.test(e);
|
691
691
|
}
|
692
692
|
}
|
693
|
-
function
|
693
|
+
function oa(t) {
|
694
694
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, s) => n.toUpperCase() + s);
|
695
695
|
}
|
696
|
-
function
|
696
|
+
function aa(t, e) {
|
697
697
|
const n = f.toCamelCase(" " + e);
|
698
698
|
["get", "set", "has"].forEach((s) => {
|
699
699
|
Object.defineProperty(t, s + n, {
|
@@ -718,7 +718,7 @@ class ee {
|
|
718
718
|
(!h || r[h] === void 0 || u === !0 || u === void 0 && r[h] !== !1) && (r[h || c] = gt(a));
|
719
719
|
}
|
720
720
|
const o = (a, c) => f.forEach(a, (u, l) => i(u, l, c));
|
721
|
-
return f.isPlainObject(e) || e instanceof this.constructor ? o(e, n) : f.isString(e) && (e = e.trim()) && !
|
721
|
+
return f.isPlainObject(e) || e instanceof this.constructor ? o(e, n) : f.isString(e) && (e = e.trim()) && !ia(e) ? o(sa(e), n) : e != null && i(n, e, s), this;
|
722
722
|
}
|
723
723
|
get(e, n) {
|
724
724
|
if (e = qe(e), e) {
|
@@ -728,7 +728,7 @@ class ee {
|
|
728
728
|
if (!n)
|
729
729
|
return r;
|
730
730
|
if (n === !0)
|
731
|
-
return
|
731
|
+
return ra(r);
|
732
732
|
if (f.isFunction(n))
|
733
733
|
return n.call(this, r, s);
|
734
734
|
if (f.isRegExp(n))
|
@@ -740,7 +740,7 @@ class ee {
|
|
740
740
|
has(e, n) {
|
741
741
|
if (e = qe(e), e) {
|
742
742
|
const s = f.findKey(this, e);
|
743
|
-
return !!(s && this[s] !== void 0 && (!n ||
|
743
|
+
return !!(s && this[s] !== void 0 && (!n || zt(this, this[s], s, n)));
|
744
744
|
}
|
745
745
|
return !1;
|
746
746
|
}
|
@@ -750,7 +750,7 @@ class ee {
|
|
750
750
|
function i(o) {
|
751
751
|
if (o = qe(o), o) {
|
752
752
|
const a = f.findKey(s, o);
|
753
|
-
a && (!n ||
|
753
|
+
a && (!n || zt(s, s[a], a, n)) && (delete s[a], r = !0);
|
754
754
|
}
|
755
755
|
}
|
756
756
|
return f.isArray(e) ? e.forEach(i) : i(e), r;
|
@@ -760,7 +760,7 @@ class ee {
|
|
760
760
|
let s = n.length, r = !1;
|
761
761
|
for (; s--; ) {
|
762
762
|
const i = n[s];
|
763
|
-
(!e ||
|
763
|
+
(!e || zt(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
764
764
|
}
|
765
765
|
return r;
|
766
766
|
}
|
@@ -772,7 +772,7 @@ class ee {
|
|
772
772
|
n[o] = gt(r), delete n[i];
|
773
773
|
return;
|
774
774
|
}
|
775
|
-
const a = e ?
|
775
|
+
const a = e ? oa(i) : String(i).trim();
|
776
776
|
a !== i && delete n[i], n[a] = gt(r), s[a] = !0;
|
777
777
|
}), this;
|
778
778
|
}
|
@@ -808,7 +808,7 @@ class ee {
|
|
808
808
|
}).accessors, r = this.prototype;
|
809
809
|
function i(o) {
|
810
810
|
const a = qe(o);
|
811
|
-
s[a] || (
|
811
|
+
s[a] || (aa(r, o), s[a] = !0);
|
812
812
|
}
|
813
813
|
return f.isArray(e) ? e.forEach(i) : i(e), this;
|
814
814
|
}
|
@@ -816,7 +816,7 @@ class ee {
|
|
816
816
|
ee.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
817
817
|
f.freezeMethods(ee.prototype);
|
818
818
|
f.freezeMethods(ee);
|
819
|
-
function
|
819
|
+
function Zt(t, e) {
|
820
820
|
const n = this || Ve, s = e || n, r = ee.from(s.headers);
|
821
821
|
let i = s.data;
|
822
822
|
return f.forEach(t, function(a) {
|
@@ -832,7 +832,7 @@ function et(t, e, n) {
|
|
832
832
|
f.inherits(et, E, {
|
833
833
|
__CANCEL__: !0
|
834
834
|
});
|
835
|
-
function
|
835
|
+
function ca(t, e, n) {
|
836
836
|
const s = n.config.validateStatus;
|
837
837
|
!n.status || !s || s(n.status) ? t(n) : e(new E(
|
838
838
|
"Request failed with status code " + n.status,
|
@@ -842,7 +842,7 @@ function aa(t, e, n) {
|
|
842
842
|
n
|
843
843
|
));
|
844
844
|
}
|
845
|
-
const
|
845
|
+
const ua = ae.isStandardBrowserEnv ? (
|
846
846
|
// Standard browser envs support document.cookie
|
847
847
|
/* @__PURE__ */ function() {
|
848
848
|
return {
|
@@ -873,16 +873,16 @@ const ca = ce.isStandardBrowserEnv ? (
|
|
873
873
|
};
|
874
874
|
}()
|
875
875
|
);
|
876
|
-
function
|
876
|
+
function la(t) {
|
877
877
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
878
878
|
}
|
879
|
-
function
|
879
|
+
function fa(t, e) {
|
880
880
|
return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
881
881
|
}
|
882
882
|
function hr(t, e) {
|
883
|
-
return t && !
|
883
|
+
return t && !la(e) ? fa(t, e) : e;
|
884
884
|
}
|
885
|
-
const
|
885
|
+
const ha = ae.isStandardBrowserEnv ? (
|
886
886
|
// Standard browser envs have full support of the APIs needed to test
|
887
887
|
// whether the request URL is of the same origin as current location.
|
888
888
|
function() {
|
@@ -914,11 +914,11 @@ const fa = ce.isStandardBrowserEnv ? (
|
|
914
914
|
};
|
915
915
|
}()
|
916
916
|
);
|
917
|
-
function
|
917
|
+
function da(t) {
|
918
918
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
919
919
|
return e && e[1] || "";
|
920
920
|
}
|
921
|
-
function
|
921
|
+
function ma(t, e) {
|
922
922
|
t = t || 10;
|
923
923
|
const n = new Array(t), s = new Array(t);
|
924
924
|
let r = 0, i = 0, o;
|
@@ -936,7 +936,7 @@ function da(t, e) {
|
|
936
936
|
}
|
937
937
|
function ts(t, e) {
|
938
938
|
let n = 0;
|
939
|
-
const s =
|
939
|
+
const s = ma(50, 250);
|
940
940
|
return (r) => {
|
941
941
|
const i = r.loaded, o = r.lengthComputable ? r.total : void 0, a = i - n, c = s(a), u = i <= o;
|
942
942
|
n = i;
|
@@ -952,7 +952,7 @@ function ts(t, e) {
|
|
952
952
|
l[e ? "download" : "upload"] = !0, t(l);
|
953
953
|
};
|
954
954
|
}
|
955
|
-
const
|
955
|
+
const pa = typeof XMLHttpRequest < "u", ya = pa && function(t) {
|
956
956
|
return new Promise(function(n, s) {
|
957
957
|
let r = t.data;
|
958
958
|
const i = ee.from(t.headers).normalize(), o = t.responseType;
|
@@ -960,7 +960,7 @@ const ma = typeof XMLHttpRequest < "u", pa = ma && function(t) {
|
|
960
960
|
function c() {
|
961
961
|
t.cancelToken && t.cancelToken.unsubscribe(a), t.signal && t.signal.removeEventListener("abort", a);
|
962
962
|
}
|
963
|
-
f.isFormData(r) && (
|
963
|
+
f.isFormData(r) && (ae.isStandardBrowserEnv || ae.isStandardBrowserWebWorkerEnv ? i.setContentType(!1) : i.setContentType("multipart/form-data;", !1));
|
964
964
|
let u = new XMLHttpRequest();
|
965
965
|
if (t.auth) {
|
966
966
|
const d = t.auth.username || "", m = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
@@ -981,7 +981,7 @@ const ma = typeof XMLHttpRequest < "u", pa = ma && function(t) {
|
|
981
981
|
config: t,
|
982
982
|
request: u
|
983
983
|
};
|
984
|
-
|
984
|
+
ca(function(C) {
|
985
985
|
n(C), c();
|
986
986
|
}, function(C) {
|
987
987
|
s(C), c();
|
@@ -1002,8 +1002,8 @@ const ma = typeof XMLHttpRequest < "u", pa = ma && function(t) {
|
|
1002
1002
|
t,
|
1003
1003
|
u
|
1004
1004
|
)), u = null;
|
1005
|
-
},
|
1006
|
-
const d = (t.withCredentials ||
|
1005
|
+
}, ae.isStandardBrowserEnv) {
|
1006
|
+
const d = (t.withCredentials || ha(l)) && t.xsrfCookieName && ua.read(t.xsrfCookieName);
|
1007
1007
|
d && i.set(t.xsrfHeaderName, d);
|
1008
1008
|
}
|
1009
1009
|
r === void 0 && i.setContentType(null), "setRequestHeader" in u && f.forEach(i.toJSON(), function(m, y) {
|
@@ -1011,16 +1011,16 @@ const ma = typeof XMLHttpRequest < "u", pa = ma && function(t) {
|
|
1011
1011
|
}), f.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials), o && o !== "json" && (u.responseType = t.responseType), typeof t.onDownloadProgress == "function" && u.addEventListener("progress", ts(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", ts(t.onUploadProgress)), (t.cancelToken || t.signal) && (a = (d) => {
|
1012
1012
|
u && (s(!d || d.type ? new et(null, t, u) : d), u.abort(), u = null);
|
1013
1013
|
}, t.cancelToken && t.cancelToken.subscribe(a), t.signal && (t.signal.aborted ? a() : t.signal.addEventListener("abort", a)));
|
1014
|
-
const g =
|
1015
|
-
if (g &&
|
1014
|
+
const g = da(l);
|
1015
|
+
if (g && ae.protocols.indexOf(g) === -1) {
|
1016
1016
|
s(new E("Unsupported protocol " + g + ":", E.ERR_BAD_REQUEST, t));
|
1017
1017
|
return;
|
1018
1018
|
}
|
1019
1019
|
u.send(r || null);
|
1020
1020
|
});
|
1021
1021
|
}, wt = {
|
1022
|
-
http:
|
1023
|
-
xhr:
|
1022
|
+
http: Wo,
|
1023
|
+
xhr: ya
|
1024
1024
|
};
|
1025
1025
|
f.forEach(wt, (t, e) => {
|
1026
1026
|
if (t) {
|
@@ -1031,7 +1031,7 @@ f.forEach(wt, (t, e) => {
|
|
1031
1031
|
Object.defineProperty(t, "adapterName", { value: e });
|
1032
1032
|
}
|
1033
1033
|
});
|
1034
|
-
const
|
1034
|
+
const ga = {
|
1035
1035
|
getAdapter: (t) => {
|
1036
1036
|
t = f.isArray(t) ? t : [t];
|
1037
1037
|
const { length: e } = t;
|
@@ -1051,22 +1051,22 @@ const ya = {
|
|
1051
1051
|
},
|
1052
1052
|
adapters: wt
|
1053
1053
|
};
|
1054
|
-
function
|
1054
|
+
function jt(t) {
|
1055
1055
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
1056
1056
|
throw new et(null, t);
|
1057
1057
|
}
|
1058
1058
|
function ns(t) {
|
1059
|
-
return
|
1059
|
+
return jt(t), t.headers = ee.from(t.headers), t.data = Zt.call(
|
1060
1060
|
t,
|
1061
1061
|
t.transformRequest
|
1062
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1),
|
1063
|
-
return
|
1062
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), ga.getAdapter(t.adapter || Ve.adapter)(t).then(function(s) {
|
1063
|
+
return jt(t), s.data = Zt.call(
|
1064
1064
|
t,
|
1065
1065
|
t.transformResponse,
|
1066
1066
|
s
|
1067
1067
|
), s.headers = ee.from(s.headers), s;
|
1068
1068
|
}, function(s) {
|
1069
|
-
return fr(s) || (
|
1069
|
+
return fr(s) || (jt(t), s && s.response && (s.response.data = Zt.call(
|
1070
1070
|
t,
|
1071
1071
|
t.transformResponse,
|
1072
1072
|
s.response
|
@@ -1162,7 +1162,7 @@ Nn.transitional = function(e, n, s) {
|
|
1162
1162
|
)), e ? e(i, o, a) : !0;
|
1163
1163
|
};
|
1164
1164
|
};
|
1165
|
-
function
|
1165
|
+
function wa(t, e, n) {
|
1166
1166
|
if (typeof t != "object")
|
1167
1167
|
throw new E("options must be an object", E.ERR_BAD_OPTION_VALUE);
|
1168
1168
|
const s = Object.keys(t);
|
@@ -1179,10 +1179,10 @@ function ga(t, e, n) {
|
|
1179
1179
|
throw new E("Unknown option " + i, E.ERR_BAD_OPTION);
|
1180
1180
|
}
|
1181
1181
|
}
|
1182
|
-
const
|
1183
|
-
assertOptions:
|
1182
|
+
const ln = {
|
1183
|
+
assertOptions: wa,
|
1184
1184
|
validators: Nn
|
1185
|
-
}, me =
|
1185
|
+
}, me = ln.validators;
|
1186
1186
|
class ke {
|
1187
1187
|
constructor(e) {
|
1188
1188
|
this.defaults = e, this.interceptors = {
|
@@ -1201,13 +1201,13 @@ class ke {
|
|
1201
1201
|
request(e, n) {
|
1202
1202
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = De(this.defaults, n);
|
1203
1203
|
const { transitional: s, paramsSerializer: r, headers: i } = n;
|
1204
|
-
s !== void 0 &&
|
1204
|
+
s !== void 0 && ln.assertOptions(s, {
|
1205
1205
|
silentJSONParsing: me.transitional(me.boolean),
|
1206
1206
|
forcedJSONParsing: me.transitional(me.boolean),
|
1207
1207
|
clarifyTimeoutError: me.transitional(me.boolean)
|
1208
1208
|
}, !1), r != null && (f.isFunction(r) ? n.paramsSerializer = {
|
1209
1209
|
serialize: r
|
1210
|
-
} :
|
1210
|
+
} : ln.assertOptions(r, {
|
1211
1211
|
encode: me.function,
|
1212
1212
|
serialize: me.function
|
1213
1213
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
@@ -1354,15 +1354,15 @@ class _n {
|
|
1354
1354
|
};
|
1355
1355
|
}
|
1356
1356
|
}
|
1357
|
-
function
|
1357
|
+
function Sa(t) {
|
1358
1358
|
return function(n) {
|
1359
1359
|
return t.apply(null, n);
|
1360
1360
|
};
|
1361
1361
|
}
|
1362
|
-
function
|
1362
|
+
function va(t) {
|
1363
1363
|
return f.isObject(t) && t.isAxiosError === !0;
|
1364
1364
|
}
|
1365
|
-
const
|
1365
|
+
const fn = {
|
1366
1366
|
Continue: 100,
|
1367
1367
|
SwitchingProtocols: 101,
|
1368
1368
|
Processing: 102,
|
@@ -1427,8 +1427,8 @@ const ln = {
|
|
1427
1427
|
NotExtended: 510,
|
1428
1428
|
NetworkAuthenticationRequired: 511
|
1429
1429
|
};
|
1430
|
-
Object.entries(
|
1431
|
-
|
1430
|
+
Object.entries(fn).forEach(([t, e]) => {
|
1431
|
+
fn[e] = t;
|
1432
1432
|
});
|
1433
1433
|
function mr(t) {
|
1434
1434
|
const e = new ke(t), n = Gs(ke.prototype.request, e);
|
@@ -1436,26 +1436,26 @@ function mr(t) {
|
|
1436
1436
|
return mr(De(t, r));
|
1437
1437
|
}, n;
|
1438
1438
|
}
|
1439
|
-
const
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1439
|
+
const F = mr(Ve);
|
1440
|
+
F.Axios = ke;
|
1441
|
+
F.CanceledError = et;
|
1442
|
+
F.CancelToken = _n;
|
1443
|
+
F.isCancel = fr;
|
1444
|
+
F.VERSION = dr;
|
1445
|
+
F.toFormData = Dt;
|
1446
|
+
F.AxiosError = E;
|
1447
|
+
F.Cancel = F.CanceledError;
|
1448
|
+
F.all = function(e) {
|
1449
1449
|
return Promise.all(e);
|
1450
1450
|
};
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
const
|
1451
|
+
F.spread = Sa;
|
1452
|
+
F.isAxiosError = va;
|
1453
|
+
F.mergeConfig = De;
|
1454
|
+
F.AxiosHeaders = ee;
|
1455
|
+
F.formToJSON = (t) => lr(f.isHTMLForm(t) ? new FormData(t) : t);
|
1456
|
+
F.HttpStatusCode = fn;
|
1457
|
+
F.default = F;
|
1458
|
+
const Lt = async function(t) {
|
1459
1459
|
const e = t, n = window.VITE_BACKEND_URL ? window.VITE_BACKEND_URL : "https://chatadmin-gw.dev.mp.gob.bo", s = {
|
1460
1460
|
method: e.method,
|
1461
1461
|
url: `${n}${e.url}`,
|
@@ -1466,7 +1466,7 @@ const Dt = async function(t) {
|
|
1466
1466
|
},
|
1467
1467
|
data: e.data
|
1468
1468
|
};
|
1469
|
-
return await
|
1469
|
+
return await F(s).then(async function(r) {
|
1470
1470
|
return await r.data;
|
1471
1471
|
}).catch(async function(r) {
|
1472
1472
|
console.error(r);
|
@@ -1477,13 +1477,13 @@ const Dt = async function(t) {
|
|
1477
1477
|
throw i;
|
1478
1478
|
});
|
1479
1479
|
};
|
1480
|
-
async function
|
1480
|
+
async function ba(t) {
|
1481
1481
|
const e = {
|
1482
1482
|
url: "/v1/message/list-messages",
|
1483
1483
|
method: "post",
|
1484
1484
|
data: t.body,
|
1485
1485
|
token: t.token
|
1486
|
-
}, n = await
|
1486
|
+
}, n = await Lt(e).catch((r) => (console.error(r), null)), s = n == null ? void 0 : n.response;
|
1487
1487
|
return s != null && s.data ? {
|
1488
1488
|
data: s.data,
|
1489
1489
|
pagination: s.pagination
|
@@ -1492,9 +1492,9 @@ async function va(t) {
|
|
1492
1492
|
pagination: { total: 0, limit: 0, size: 0 }
|
1493
1493
|
};
|
1494
1494
|
}
|
1495
|
-
async function
|
1495
|
+
async function Ta(t, e) {
|
1496
1496
|
var r;
|
1497
|
-
const s = await
|
1497
|
+
const s = await Lt({
|
1498
1498
|
url: "/v1/message/send-message",
|
1499
1499
|
method: "POST",
|
1500
1500
|
data: t,
|
@@ -1504,7 +1504,7 @@ async function ba(t, e) {
|
|
1504
1504
|
}
|
1505
1505
|
async function is(t) {
|
1506
1506
|
var s;
|
1507
|
-
const n = await
|
1507
|
+
const n = await Lt({
|
1508
1508
|
url: "/v1/app-chats/web-chat",
|
1509
1509
|
method: "get",
|
1510
1510
|
token: t
|
@@ -1522,69 +1522,69 @@ async function os(t, e) {
|
|
1522
1522
|
method: "PATCH",
|
1523
1523
|
data: n,
|
1524
1524
|
token: e
|
1525
|
-
}, r = await
|
1525
|
+
}, r = await Lt(s).catch((o) => (console.error(o), null));
|
1526
1526
|
return (i = r == null ? void 0 : r.response) == null ? void 0 : i.data;
|
1527
1527
|
}
|
1528
|
-
function
|
1528
|
+
function ka(t) {
|
1529
1529
|
return Ri() ? (Ii(t), !0) : !1;
|
1530
1530
|
}
|
1531
1531
|
function pr(t) {
|
1532
1532
|
return typeof t == "function" ? t() : js(t);
|
1533
1533
|
}
|
1534
|
-
const
|
1534
|
+
const Ea = typeof window < "u" && typeof document < "u";
|
1535
1535
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
1536
|
-
const
|
1536
|
+
const Oa = (t) => t != null, Yt = () => {
|
1537
1537
|
};
|
1538
|
-
function
|
1538
|
+
function Jt(t) {
|
1539
1539
|
var e;
|
1540
1540
|
const n = pr(t);
|
1541
1541
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
1542
1542
|
}
|
1543
|
-
const
|
1544
|
-
function
|
1543
|
+
const Ca = Ea ? window : void 0;
|
1544
|
+
function xa() {
|
1545
1545
|
const t = q(!1), e = Di();
|
1546
1546
|
return e && Js(() => {
|
1547
1547
|
t.value = !0;
|
1548
1548
|
}, e), t;
|
1549
1549
|
}
|
1550
|
-
function
|
1551
|
-
const e =
|
1550
|
+
function Na(t) {
|
1551
|
+
const e = xa();
|
1552
1552
|
return Ys(() => (e.value, !!t()));
|
1553
1553
|
}
|
1554
|
-
function
|
1554
|
+
function _a(t, e, n = {}) {
|
1555
1555
|
const {
|
1556
1556
|
root: s,
|
1557
1557
|
rootMargin: r = "0px",
|
1558
1558
|
threshold: i = 0.1,
|
1559
|
-
window: o =
|
1559
|
+
window: o = Ca,
|
1560
1560
|
immediate: a = !0
|
1561
|
-
} = n, c =
|
1561
|
+
} = n, c = Na(() => o && "IntersectionObserver" in o), u = Ys(() => {
|
1562
1562
|
const m = pr(t);
|
1563
|
-
return (Array.isArray(m) ? m : [m]).map(
|
1563
|
+
return (Array.isArray(m) ? m : [m]).map(Jt).filter(Oa);
|
1564
1564
|
});
|
1565
|
-
let l =
|
1566
|
-
const h = q(a), g = c.value ?
|
1567
|
-
() => [u.value,
|
1565
|
+
let l = Yt;
|
1566
|
+
const h = q(a), g = c.value ? En(
|
1567
|
+
() => [u.value, Jt(s), h.value],
|
1568
1568
|
([m, y]) => {
|
1569
1569
|
if (l(), !h.value || !m.length)
|
1570
1570
|
return;
|
1571
1571
|
const _ = new IntersectionObserver(
|
1572
1572
|
e,
|
1573
1573
|
{
|
1574
|
-
root:
|
1574
|
+
root: Jt(y),
|
1575
1575
|
rootMargin: r,
|
1576
1576
|
threshold: i
|
1577
1577
|
}
|
1578
1578
|
);
|
1579
1579
|
m.forEach((C) => C && _.observe(C)), l = () => {
|
1580
|
-
_.disconnect(), l =
|
1580
|
+
_.disconnect(), l = Yt;
|
1581
1581
|
};
|
1582
1582
|
},
|
1583
1583
|
{ immediate: a, flush: "post" }
|
1584
|
-
) :
|
1584
|
+
) : Yt, d = () => {
|
1585
1585
|
l(), g(), h.value = !1;
|
1586
1586
|
};
|
1587
|
-
return
|
1587
|
+
return ka(d), {
|
1588
1588
|
isSupported: c,
|
1589
1589
|
isActive: h,
|
1590
1590
|
pause() {
|
@@ -1598,17 +1598,17 @@ function Na(t, e, n = {}) {
|
|
1598
1598
|
}
|
1599
1599
|
class Ee extends Error {
|
1600
1600
|
}
|
1601
|
-
class
|
1601
|
+
class Aa extends Ee {
|
1602
1602
|
constructor(e) {
|
1603
1603
|
super(`Invalid DateTime: ${e.toMessage()}`);
|
1604
1604
|
}
|
1605
1605
|
}
|
1606
|
-
class
|
1606
|
+
class Ma extends Ee {
|
1607
1607
|
constructor(e) {
|
1608
1608
|
super(`Invalid Interval: ${e.toMessage()}`);
|
1609
1609
|
}
|
1610
1610
|
}
|
1611
|
-
class
|
1611
|
+
class Ra extends Ee {
|
1612
1612
|
constructor(e) {
|
1613
1613
|
super(`Invalid Duration: ${e.toMessage()}`);
|
1614
1614
|
}
|
@@ -1627,7 +1627,7 @@ class pe extends Ee {
|
|
1627
1627
|
super("Zone is an abstract class");
|
1628
1628
|
}
|
1629
1629
|
}
|
1630
|
-
const p = "numeric", ie = "short", j = "long",
|
1630
|
+
const p = "numeric", ie = "short", j = "long", xt = {
|
1631
1631
|
year: p,
|
1632
1632
|
month: p,
|
1633
1633
|
day: p
|
@@ -1635,7 +1635,7 @@ const p = "numeric", ie = "short", j = "long", Ct = {
|
|
1635
1635
|
year: p,
|
1636
1636
|
month: ie,
|
1637
1637
|
day: p
|
1638
|
-
},
|
1638
|
+
}, Ia = {
|
1639
1639
|
year: p,
|
1640
1640
|
month: ie,
|
1641
1641
|
day: p,
|
@@ -1713,7 +1713,7 @@ const p = "numeric", ie = "short", j = "long", Ct = {
|
|
1713
1713
|
hour: p,
|
1714
1714
|
minute: p,
|
1715
1715
|
second: p
|
1716
|
-
},
|
1716
|
+
}, Da = {
|
1717
1717
|
year: p,
|
1718
1718
|
month: ie,
|
1719
1719
|
day: p,
|
@@ -1837,14 +1837,14 @@ class tt {
|
|
1837
1837
|
throw new pe();
|
1838
1838
|
}
|
1839
1839
|
}
|
1840
|
-
let
|
1841
|
-
class
|
1840
|
+
let Gt = null;
|
1841
|
+
class Ft extends tt {
|
1842
1842
|
/**
|
1843
1843
|
* Get a singleton instance of the local zone
|
1844
1844
|
* @return {SystemZone}
|
1845
1845
|
*/
|
1846
1846
|
static get instance() {
|
1847
|
-
return
|
1847
|
+
return Gt === null && (Gt = new Ft()), Gt;
|
1848
1848
|
}
|
1849
1849
|
/** @override **/
|
1850
1850
|
get type() {
|
@@ -1880,7 +1880,7 @@ class Lt extends tt {
|
|
1880
1880
|
}
|
1881
1881
|
}
|
1882
1882
|
let St = {};
|
1883
|
-
function
|
1883
|
+
function La(t) {
|
1884
1884
|
return St[t] || (St[t] = new Intl.DateTimeFormat("en-US", {
|
1885
1885
|
hour12: !1,
|
1886
1886
|
timeZone: t,
|
@@ -1893,7 +1893,7 @@ function Da(t) {
|
|
1893
1893
|
era: "short"
|
1894
1894
|
})), St[t];
|
1895
1895
|
}
|
1896
|
-
const
|
1896
|
+
const Fa = {
|
1897
1897
|
year: 0,
|
1898
1898
|
month: 1,
|
1899
1899
|
day: 2,
|
@@ -1902,14 +1902,14 @@ const La = {
|
|
1902
1902
|
minute: 5,
|
1903
1903
|
second: 6
|
1904
1904
|
};
|
1905
|
-
function
|
1905
|
+
function Va(t, e) {
|
1906
1906
|
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, l] = s;
|
1907
1907
|
return [o, r, i, a, c, u, l];
|
1908
1908
|
}
|
1909
|
-
function
|
1909
|
+
function Ba(t, e) {
|
1910
1910
|
const n = t.formatToParts(e), s = [];
|
1911
1911
|
for (let r = 0; r < n.length; r++) {
|
1912
|
-
const { type: i, value: o } = n[r], a =
|
1912
|
+
const { type: i, value: o } = n[r], a = Fa[i];
|
1913
1913
|
i === "era" ? s[a] = o : v(a) || (s[a] = parseInt(o, 10));
|
1914
1914
|
}
|
1915
1915
|
return s;
|
@@ -2018,10 +2018,10 @@ class de extends tt {
|
|
2018
2018
|
offset(e) {
|
2019
2019
|
const n = new Date(e);
|
2020
2020
|
if (isNaN(n)) return NaN;
|
2021
|
-
const s =
|
2022
|
-
let [r, i, o, a, c, u, l] = s.formatToParts ?
|
2021
|
+
const s = La(this.name);
|
2022
|
+
let [r, i, o, a, c, u, l] = s.formatToParts ? Ba(s, n) : Va(s, n);
|
2023
2023
|
a === "BC" && (r = -Math.abs(r) + 1);
|
2024
|
-
const g =
|
2024
|
+
const g = Bt({
|
2025
2025
|
year: r,
|
2026
2026
|
month: i,
|
2027
2027
|
day: o,
|
@@ -2053,35 +2053,35 @@ class de extends tt {
|
|
2053
2053
|
}
|
2054
2054
|
}
|
2055
2055
|
let as = {};
|
2056
|
-
function
|
2056
|
+
function $a(t, e = {}) {
|
2057
2057
|
const n = JSON.stringify([t, e]);
|
2058
2058
|
let s = as[n];
|
2059
2059
|
return s || (s = new Intl.ListFormat(t, e), as[n] = s), s;
|
2060
2060
|
}
|
2061
|
-
let
|
2062
|
-
function
|
2061
|
+
let hn = {};
|
2062
|
+
function dn(t, e = {}) {
|
2063
2063
|
const n = JSON.stringify([t, e]);
|
2064
|
-
let s =
|
2065
|
-
return s || (s = new Intl.DateTimeFormat(t, e),
|
2066
|
-
}
|
2067
|
-
let dn = {};
|
2068
|
-
function $a(t, e = {}) {
|
2069
|
-
const n = JSON.stringify([t, e]);
|
2070
|
-
let s = dn[n];
|
2071
|
-
return s || (s = new Intl.NumberFormat(t, e), dn[n] = s), s;
|
2064
|
+
let s = hn[n];
|
2065
|
+
return s || (s = new Intl.DateTimeFormat(t, e), hn[n] = s), s;
|
2072
2066
|
}
|
2073
2067
|
let mn = {};
|
2074
2068
|
function Ua(t, e = {}) {
|
2069
|
+
const n = JSON.stringify([t, e]);
|
2070
|
+
let s = mn[n];
|
2071
|
+
return s || (s = new Intl.NumberFormat(t, e), mn[n] = s), s;
|
2072
|
+
}
|
2073
|
+
let pn = {};
|
2074
|
+
function Pa(t, e = {}) {
|
2075
2075
|
const { base: n, ...s } = e, r = JSON.stringify([t, s]);
|
2076
|
-
let i =
|
2077
|
-
return i || (i = new Intl.RelativeTimeFormat(t, e),
|
2076
|
+
let i = pn[r];
|
2077
|
+
return i || (i = new Intl.RelativeTimeFormat(t, e), pn[r] = i), i;
|
2078
2078
|
}
|
2079
2079
|
let Ze = null;
|
2080
|
-
function
|
2080
|
+
function Wa() {
|
2081
2081
|
return Ze || (Ze = new Intl.DateTimeFormat().resolvedOptions().locale, Ze);
|
2082
2082
|
}
|
2083
2083
|
let cs = {};
|
2084
|
-
function
|
2084
|
+
function qa(t) {
|
2085
2085
|
let e = cs[t];
|
2086
2086
|
if (!e) {
|
2087
2087
|
const n = new Intl.Locale(t);
|
@@ -2089,7 +2089,7 @@ function Wa(t) {
|
|
2089
2089
|
}
|
2090
2090
|
return e;
|
2091
2091
|
}
|
2092
|
-
function
|
2092
|
+
function Ha(t) {
|
2093
2093
|
const e = t.indexOf("-x-");
|
2094
2094
|
e !== -1 && (t = t.substring(0, e));
|
2095
2095
|
const n = t.indexOf("-u-");
|
@@ -2098,19 +2098,19 @@ function qa(t) {
|
|
2098
2098
|
{
|
2099
2099
|
let s, r;
|
2100
2100
|
try {
|
2101
|
-
s =
|
2101
|
+
s = dn(t).resolvedOptions(), r = t;
|
2102
2102
|
} catch {
|
2103
2103
|
const c = t.substring(0, n);
|
2104
|
-
s =
|
2104
|
+
s = dn(c).resolvedOptions(), r = c;
|
2105
2105
|
}
|
2106
2106
|
const { numberingSystem: i, calendar: o } = s;
|
2107
2107
|
return [r, i, o];
|
2108
2108
|
}
|
2109
2109
|
}
|
2110
|
-
function
|
2110
|
+
function za(t, e, n) {
|
2111
2111
|
return (n || e) && (t.includes("-u-") || (t += "-u"), n && (t += `-ca-${n}`), e && (t += `-nu-${e}`)), t;
|
2112
2112
|
}
|
2113
|
-
function
|
2113
|
+
function Za(t) {
|
2114
2114
|
const e = [];
|
2115
2115
|
for (let n = 1; n <= 12; n++) {
|
2116
2116
|
const s = S.utc(2009, n, 1);
|
@@ -2118,7 +2118,7 @@ function za(t) {
|
|
2118
2118
|
}
|
2119
2119
|
return e;
|
2120
2120
|
}
|
2121
|
-
function
|
2121
|
+
function ja(t) {
|
2122
2122
|
const e = [];
|
2123
2123
|
for (let n = 1; n <= 7; n++) {
|
2124
2124
|
const s = S.utc(2016, 11, 13 + n);
|
@@ -2130,16 +2130,16 @@ function at(t, e, n, s) {
|
|
2130
2130
|
const r = t.listingMode();
|
2131
2131
|
return r === "error" ? null : r === "en" ? n(e) : s(e);
|
2132
2132
|
}
|
2133
|
-
function
|
2133
|
+
function Ya(t) {
|
2134
2134
|
return t.numberingSystem && t.numberingSystem !== "latn" ? !1 : t.numberingSystem === "latn" || !t.locale || t.locale.startsWith("en") || new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem === "latn";
|
2135
2135
|
}
|
2136
|
-
class
|
2136
|
+
class Ja {
|
2137
2137
|
constructor(e, n, s) {
|
2138
2138
|
this.padTo = s.padTo || 0, this.floor = s.floor || !1;
|
2139
2139
|
const { padTo: r, floor: i, ...o } = s;
|
2140
2140
|
if (!n || Object.keys(o).length > 0) {
|
2141
2141
|
const a = { useGrouping: !1, ...s };
|
2142
|
-
s.padTo > 0 && (a.minimumIntegerDigits = s.padTo), this.inf =
|
2142
|
+
s.padTo > 0 && (a.minimumIntegerDigits = s.padTo), this.inf = Ua(e, a);
|
2143
2143
|
}
|
2144
2144
|
}
|
2145
2145
|
format(e) {
|
@@ -2152,7 +2152,7 @@ class Ya {
|
|
2152
2152
|
}
|
2153
2153
|
}
|
2154
2154
|
}
|
2155
|
-
class
|
2155
|
+
class Ga {
|
2156
2156
|
constructor(e, n, s) {
|
2157
2157
|
this.opts = s, this.originalZone = void 0;
|
2158
2158
|
let r;
|
@@ -2163,7 +2163,7 @@ class Ja {
|
|
2163
2163
|
e.offset !== 0 && de.create(a).valid ? (r = a, this.dt = e) : (r = "UTC", this.dt = e.offset === 0 ? e : e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
2164
2164
|
} 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);
|
2165
2165
|
const i = { ...this.opts };
|
2166
|
-
i.timeZone = i.timeZone || r, this.dtf =
|
2166
|
+
i.timeZone = i.timeZone || r, this.dtf = dn(n, i);
|
2167
2167
|
}
|
2168
2168
|
format() {
|
2169
2169
|
return this.originalZone ? this.formatToParts().map(({ value: e }) => e).join("") : this.dtf.format(this.dt.toJSDate());
|
@@ -2188,18 +2188,18 @@ class Ja {
|
|
2188
2188
|
return this.dtf.resolvedOptions();
|
2189
2189
|
}
|
2190
2190
|
}
|
2191
|
-
class
|
2191
|
+
class Ka {
|
2192
2192
|
constructor(e, n, s) {
|
2193
|
-
this.opts = { style: "long", ...s }, !n && Wr() && (this.rtf =
|
2193
|
+
this.opts = { style: "long", ...s }, !n && Wr() && (this.rtf = Pa(e, s));
|
2194
2194
|
}
|
2195
2195
|
format(e, n) {
|
2196
|
-
return this.rtf ? this.rtf.format(e, n) :
|
2196
|
+
return this.rtf ? this.rtf.format(e, n) : vc(n, e, this.opts.numeric, this.opts.style !== "long");
|
2197
2197
|
}
|
2198
2198
|
formatToParts(e, n) {
|
2199
2199
|
return this.rtf ? this.rtf.formatToParts(e, n) : [];
|
2200
2200
|
}
|
2201
2201
|
}
|
2202
|
-
const
|
2202
|
+
const Xa = {
|
2203
2203
|
firstDay: 1,
|
2204
2204
|
minimalDays: 4,
|
2205
2205
|
weekend: [6, 7]
|
@@ -2215,21 +2215,21 @@ class N {
|
|
2215
2215
|
);
|
2216
2216
|
}
|
2217
2217
|
static create(e, n, s, r, i = !1) {
|
2218
|
-
const o = e || M.defaultLocale, a = o || (i ? "en-US" :
|
2218
|
+
const o = e || M.defaultLocale, a = o || (i ? "en-US" : Wa()), c = n || M.defaultNumberingSystem, u = s || M.defaultOutputCalendar, l = yn(r) || M.defaultWeekSettings;
|
2219
2219
|
return new N(a, c, u, l, o);
|
2220
2220
|
}
|
2221
2221
|
static resetCache() {
|
2222
|
-
Ze = null,
|
2222
|
+
Ze = null, hn = {}, mn = {}, pn = {};
|
2223
2223
|
}
|
2224
2224
|
static fromObject({ locale: e, numberingSystem: n, outputCalendar: s, weekSettings: r } = {}) {
|
2225
2225
|
return N.create(e, n, s, r);
|
2226
2226
|
}
|
2227
2227
|
constructor(e, n, s, r, i) {
|
2228
|
-
const [o, a, c] =
|
2229
|
-
this.locale = o, this.numberingSystem = n || a || null, this.outputCalendar = s || c || null, this.weekSettings = r, this.intl =
|
2228
|
+
const [o, a, c] = Ha(e);
|
2229
|
+
this.locale = o, this.numberingSystem = n || a || null, this.outputCalendar = s || c || null, this.weekSettings = r, this.intl = za(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;
|
2230
2230
|
}
|
2231
2231
|
get fastNumbers() {
|
2232
|
-
return this.fastNumbersCached == null && (this.fastNumbersCached =
|
2232
|
+
return this.fastNumbersCached == null && (this.fastNumbersCached = Ya(this)), this.fastNumbersCached;
|
2233
2233
|
}
|
2234
2234
|
listingMode() {
|
2235
2235
|
const e = this.isEnglish(), n = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory");
|
@@ -2240,7 +2240,7 @@ class N {
|
|
2240
2240
|
e.locale || this.specifiedLocale,
|
2241
2241
|
e.numberingSystem || this.numberingSystem,
|
2242
2242
|
e.outputCalendar || this.outputCalendar,
|
2243
|
-
|
2243
|
+
yn(e.weekSettings) || this.weekSettings,
|
2244
2244
|
e.defaultToEN || !1
|
2245
2245
|
);
|
2246
2246
|
}
|
@@ -2253,13 +2253,13 @@ class N {
|
|
2253
2253
|
months(e, n = !1) {
|
2254
2254
|
return at(this, e, jr, () => {
|
2255
2255
|
const s = n ? { month: e, day: "numeric" } : { month: e }, r = n ? "format" : "standalone";
|
2256
|
-
return this.monthsCache[r][e] || (this.monthsCache[r][e] =
|
2256
|
+
return this.monthsCache[r][e] || (this.monthsCache[r][e] = Za((i) => this.extract(i, s, "month"))), this.monthsCache[r][e];
|
2257
2257
|
});
|
2258
2258
|
}
|
2259
2259
|
weekdays(e, n = !1) {
|
2260
2260
|
return at(this, e, Gr, () => {
|
2261
2261
|
const s = n ? { weekday: e, year: "numeric", month: "long", day: "numeric" } : { weekday: e }, r = n ? "format" : "standalone";
|
2262
|
-
return this.weekdaysCache[r][e] || (this.weekdaysCache[r][e] =
|
2262
|
+
return this.weekdaysCache[r][e] || (this.weekdaysCache[r][e] = ja(
|
2263
2263
|
(i) => this.extract(i, s, "weekday")
|
2264
2264
|
)), this.weekdaysCache[r][e];
|
2265
2265
|
});
|
@@ -2293,22 +2293,22 @@ class N {
|
|
2293
2293
|
return o ? o.value : null;
|
2294
2294
|
}
|
2295
2295
|
numberFormatter(e = {}) {
|
2296
|
-
return new
|
2296
|
+
return new Ja(this.intl, e.forceSimple || this.fastNumbers, e);
|
2297
2297
|
}
|
2298
2298
|
dtFormatter(e, n = {}) {
|
2299
|
-
return new
|
2299
|
+
return new Ga(e, this.intl, n);
|
2300
2300
|
}
|
2301
2301
|
relFormatter(e = {}) {
|
2302
|
-
return new
|
2302
|
+
return new Ka(this.intl, this.isEnglish(), e);
|
2303
2303
|
}
|
2304
2304
|
listFormatter(e = {}) {
|
2305
|
-
return
|
2305
|
+
return $a(this.intl, e);
|
2306
2306
|
}
|
2307
2307
|
isEnglish() {
|
2308
2308
|
return this.locale === "en" || this.locale.toLowerCase() === "en-us" || new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us");
|
2309
2309
|
}
|
2310
2310
|
getWeekSettings() {
|
2311
|
-
return this.weekSettings ? this.weekSettings : qr() ?
|
2311
|
+
return this.weekSettings ? this.weekSettings : qr() ? qa(this.locale) : Xa;
|
2312
2312
|
}
|
2313
2313
|
getStartOfWeek() {
|
2314
2314
|
return this.getWeekSettings().firstDay;
|
@@ -2326,14 +2326,14 @@ class N {
|
|
2326
2326
|
return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;
|
2327
2327
|
}
|
2328
2328
|
}
|
2329
|
-
let
|
2329
|
+
let Kt = null;
|
2330
2330
|
class H extends tt {
|
2331
2331
|
/**
|
2332
2332
|
* Get a singleton instance of UTC
|
2333
2333
|
* @return {FixedOffsetZone}
|
2334
2334
|
*/
|
2335
2335
|
static get utcInstance() {
|
2336
|
-
return
|
2336
|
+
return Kt === null && (Kt = new H(0)), Kt;
|
2337
2337
|
}
|
2338
2338
|
/**
|
2339
2339
|
* Get an instance with a specified offset
|
@@ -2355,7 +2355,7 @@ class H extends tt {
|
|
2355
2355
|
if (e) {
|
2356
2356
|
const n = e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
|
2357
2357
|
if (n)
|
2358
|
-
return new H(
|
2358
|
+
return new H($t(n[1], n[2]));
|
2359
2359
|
}
|
2360
2360
|
return null;
|
2361
2361
|
}
|
@@ -2446,7 +2446,7 @@ class H extends tt {
|
|
2446
2446
|
return !0;
|
2447
2447
|
}
|
2448
2448
|
}
|
2449
|
-
class
|
2449
|
+
class Qa extends tt {
|
2450
2450
|
constructor(e) {
|
2451
2451
|
super(), this.zoneName = e;
|
2452
2452
|
}
|
@@ -2488,10 +2488,10 @@ function we(t, e) {
|
|
2488
2488
|
return e;
|
2489
2489
|
if (t instanceof tt)
|
2490
2490
|
return t;
|
2491
|
-
if (
|
2491
|
+
if (ic(t)) {
|
2492
2492
|
const n = t.toLowerCase();
|
2493
|
-
return n === "default" ? e : n === "local" || n === "system" ?
|
2494
|
-
} else return Se(t) ? H.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new
|
2493
|
+
return n === "default" ? e : n === "local" || n === "system" ? Ft.instance : n === "utc" || n === "gmt" ? H.utcInstance : H.parseSpecifier(n) || de.create(t);
|
2494
|
+
} else return Se(t) ? H.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new Qa(t);
|
2495
2495
|
}
|
2496
2496
|
const An = {
|
2497
2497
|
arab: "[٠-٩]",
|
@@ -2535,15 +2535,15 @@ const An = {
|
|
2535
2535
|
telu: [3174, 3183],
|
2536
2536
|
thai: [3664, 3673],
|
2537
2537
|
tibt: [3872, 3881]
|
2538
|
-
},
|
2539
|
-
function
|
2538
|
+
}, ec = An.hanidec.replace(/[\[|\]]/g, "").split("");
|
2539
|
+
function tc(t) {
|
2540
2540
|
let e = parseInt(t, 10);
|
2541
2541
|
if (isNaN(e)) {
|
2542
2542
|
e = "";
|
2543
2543
|
for (let n = 0; n < t.length; n++) {
|
2544
2544
|
const s = t.charCodeAt(n);
|
2545
2545
|
if (t[n].search(An.hanidec) !== -1)
|
2546
|
-
e +=
|
2546
|
+
e += ec.indexOf(t[n]);
|
2547
2547
|
else
|
2548
2548
|
for (const r in us) {
|
2549
2549
|
const [i, o] = us[r];
|
@@ -2555,7 +2555,7 @@ function ec(t) {
|
|
2555
2555
|
return e;
|
2556
2556
|
}
|
2557
2557
|
let Ne = {};
|
2558
|
-
function
|
2558
|
+
function nc() {
|
2559
2559
|
Ne = {};
|
2560
2560
|
}
|
2561
2561
|
function te({ numberingSystem: t }, e = "") {
|
@@ -2595,7 +2595,7 @@ class M {
|
|
2595
2595
|
* @type {Zone}
|
2596
2596
|
*/
|
2597
2597
|
static get defaultZone() {
|
2598
|
-
return we(fs,
|
2598
|
+
return we(fs, Ft.instance);
|
2599
2599
|
}
|
2600
2600
|
/**
|
2601
2601
|
* Get the default locale to create DateTimes with. Does not affect existing instances.
|
@@ -2659,7 +2659,7 @@ class M {
|
|
2659
2659
|
* @param {WeekSettings|null} weekSettings
|
2660
2660
|
*/
|
2661
2661
|
static set defaultWeekSettings(e) {
|
2662
|
-
gs =
|
2662
|
+
gs = yn(e);
|
2663
2663
|
}
|
2664
2664
|
/**
|
2665
2665
|
* Get the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.
|
@@ -2699,7 +2699,7 @@ class M {
|
|
2699
2699
|
* @return {void}
|
2700
2700
|
*/
|
2701
2701
|
static resetCaches() {
|
2702
|
-
N.resetCache(), de.resetCache(), S.resetCache(),
|
2702
|
+
N.resetCache(), de.resetCache(), S.resetCache(), nc();
|
2703
2703
|
}
|
2704
2704
|
}
|
2705
2705
|
class re {
|
@@ -2733,25 +2733,25 @@ function $r(t, e) {
|
|
2733
2733
|
function Rn(t, e) {
|
2734
2734
|
return (t - e + 7) % 7 + 1;
|
2735
2735
|
}
|
2736
|
-
function
|
2736
|
+
function Nt(t, e = 4, n = 1) {
|
2737
2737
|
const { year: s, month: r, day: i } = t, o = Br(s, r, i), a = Rn(Mn(s, r, i), n);
|
2738
2738
|
let c = Math.floor((o - a + 14 - e) / 7), u;
|
2739
|
-
return c < 1 ? (u = s - 1, c = Xe(u, e, n)) : c > Xe(s, e, n) ? (u = s + 1, c = 1) : u = s, { weekYear: u, weekNumber: c, weekday: a,
|
2739
|
+
return c < 1 ? (u = s - 1, c = Xe(u, e, n)) : c > Xe(s, e, n) ? (u = s + 1, c = 1) : u = s, { weekYear: u, weekNumber: c, weekday: a, ...Ut(t) };
|
2740
2740
|
}
|
2741
2741
|
function ws(t, e = 4, n = 1) {
|
2742
2742
|
const { weekYear: s, weekNumber: r, weekday: i } = t, o = Rn(Mn(s, 1, e), n), a = Re(s);
|
2743
2743
|
let c = r * 7 + i - o - 7 + e, u;
|
2744
2744
|
c < 1 ? (u = s - 1, c += Re(u)) : c > a ? (u = s + 1, c -= Re(s)) : u = s;
|
2745
2745
|
const { month: l, day: h } = $r(u, c);
|
2746
|
-
return { year: u, month: l, day: h,
|
2746
|
+
return { year: u, month: l, day: h, ...Ut(t) };
|
2747
2747
|
}
|
2748
|
-
function
|
2748
|
+
function Xt(t) {
|
2749
2749
|
const { year: e, month: n, day: s } = t, r = Br(e, n, s);
|
2750
|
-
return { year: e, ordinal: r,
|
2750
|
+
return { year: e, ordinal: r, ...Ut(t) };
|
2751
2751
|
}
|
2752
2752
|
function Ss(t) {
|
2753
2753
|
const { year: e, ordinal: n } = t, { month: s, day: r } = $r(e, n);
|
2754
|
-
return { year: e, month: s, day: r,
|
2754
|
+
return { year: e, month: s, day: r, ...Ut(t) };
|
2755
2755
|
}
|
2756
2756
|
function vs(t, e) {
|
2757
2757
|
if (!v(t.localWeekday) || !v(t.localWeekNumber) || !v(t.localWeekYear)) {
|
@@ -2766,20 +2766,20 @@ function vs(t, e) {
|
|
2766
2766
|
} else
|
2767
2767
|
return { minDaysInFirstWeek: 4, startOfWeek: 1 };
|
2768
2768
|
}
|
2769
|
-
function
|
2770
|
-
const s =
|
2769
|
+
function sc(t, e = 4, n = 1) {
|
2770
|
+
const s = Vt(t.weekYear), r = X(
|
2771
2771
|
t.weekNumber,
|
2772
2772
|
1,
|
2773
2773
|
Xe(t.weekYear, e, n)
|
2774
2774
|
), i = X(t.weekday, 1, 7);
|
2775
2775
|
return s ? r ? i ? !1 : K("weekday", t.weekday) : K("week", t.weekNumber) : K("weekYear", t.weekYear);
|
2776
2776
|
}
|
2777
|
-
function
|
2778
|
-
const e =
|
2777
|
+
function rc(t) {
|
2778
|
+
const e = Vt(t.year), n = X(t.ordinal, 1, Re(t.year));
|
2779
2779
|
return e ? n ? !1 : K("ordinal", t.ordinal) : K("year", t.year);
|
2780
2780
|
}
|
2781
2781
|
function Ur(t) {
|
2782
|
-
const e =
|
2782
|
+
const e = Vt(t.year), n = X(t.month, 1, 12), s = X(t.day, 1, _t(t.year, t.month));
|
2783
2783
|
return e ? n ? s ? !1 : K("day", t.day) : K("month", t.month) : K("year", t.year);
|
2784
2784
|
}
|
2785
2785
|
function Pr(t) {
|
@@ -2792,13 +2792,13 @@ function v(t) {
|
|
2792
2792
|
function Se(t) {
|
2793
2793
|
return typeof t == "number";
|
2794
2794
|
}
|
2795
|
-
function
|
2795
|
+
function Vt(t) {
|
2796
2796
|
return typeof t == "number" && t % 1 === 0;
|
2797
2797
|
}
|
2798
|
-
function
|
2798
|
+
function ic(t) {
|
2799
2799
|
return typeof t == "string";
|
2800
2800
|
}
|
2801
|
-
function
|
2801
|
+
function oc(t) {
|
2802
2802
|
return Object.prototype.toString.call(t) === "[object Date]";
|
2803
2803
|
}
|
2804
2804
|
function Wr() {
|
@@ -2815,7 +2815,7 @@ function qr() {
|
|
2815
2815
|
return !1;
|
2816
2816
|
}
|
2817
2817
|
}
|
2818
|
-
function
|
2818
|
+
function ac(t) {
|
2819
2819
|
return Array.isArray(t) ? t : [t];
|
2820
2820
|
}
|
2821
2821
|
function bs(t, e, n) {
|
@@ -2825,13 +2825,13 @@ function bs(t, e, n) {
|
|
2825
2825
|
return s && n(s[0], i[0]) === s[0] ? s : i;
|
2826
2826
|
}, null)[1];
|
2827
2827
|
}
|
2828
|
-
function
|
2828
|
+
function cc(t, e) {
|
2829
2829
|
return e.reduce((n, s) => (n[s] = t[s], n), {});
|
2830
2830
|
}
|
2831
2831
|
function Le(t, e) {
|
2832
2832
|
return Object.prototype.hasOwnProperty.call(t, e);
|
2833
2833
|
}
|
2834
|
-
function
|
2834
|
+
function yn(t) {
|
2835
2835
|
if (t == null)
|
2836
2836
|
return null;
|
2837
2837
|
if (typeof t != "object")
|
@@ -2845,9 +2845,9 @@ function pn(t) {
|
|
2845
2845
|
};
|
2846
2846
|
}
|
2847
2847
|
function X(t, e, n) {
|
2848
|
-
return
|
2848
|
+
return Vt(t) && t >= e && t <= n;
|
2849
2849
|
}
|
2850
|
-
function
|
2850
|
+
function uc(t, e) {
|
2851
2851
|
return t - e * Math.floor(t / e);
|
2852
2852
|
}
|
2853
2853
|
function I(t, e = 2) {
|
@@ -2879,11 +2879,11 @@ function nt(t) {
|
|
2879
2879
|
function Re(t) {
|
2880
2880
|
return nt(t) ? 366 : 365;
|
2881
2881
|
}
|
2882
|
-
function
|
2883
|
-
const n =
|
2882
|
+
function _t(t, e) {
|
2883
|
+
const n = uc(e - 1, 12) + 1, s = t + (e - n) / 12;
|
2884
2884
|
return n === 2 ? nt(s) ? 29 : 28 : [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][n - 1];
|
2885
2885
|
}
|
2886
|
-
function
|
2886
|
+
function Bt(t) {
|
2887
2887
|
let e = Date.UTC(
|
2888
2888
|
t.year,
|
2889
2889
|
t.month - 1,
|
@@ -2902,7 +2902,7 @@ function Xe(t, e = 4, n = 1) {
|
|
2902
2902
|
const s = Ts(t, e, n), r = Ts(t + 1, e, n);
|
2903
2903
|
return (Re(t) - s + r) / 7;
|
2904
2904
|
}
|
2905
|
-
function
|
2905
|
+
function gn(t) {
|
2906
2906
|
return t > 99 ? t : t > M.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
|
2907
2907
|
}
|
2908
2908
|
function Hr(t, e, n, s = null) {
|
@@ -2918,7 +2918,7 @@ function Hr(t, e, n, s = null) {
|
|
2918
2918
|
const o = { timeZoneName: e, ...i }, a = new Intl.DateTimeFormat(n, o).formatToParts(r).find((c) => c.type.toLowerCase() === "timezonename");
|
2919
2919
|
return a ? a.value : null;
|
2920
2920
|
}
|
2921
|
-
function
|
2921
|
+
function $t(t, e) {
|
2922
2922
|
let n = parseInt(t, 10);
|
2923
2923
|
Number.isNaN(n) && (n = 0);
|
2924
2924
|
const s = parseInt(e, 10) || 0, r = n < 0 || Object.is(n, -0) ? -s : s;
|
@@ -2930,7 +2930,7 @@ function zr(t) {
|
|
2930
2930
|
throw new P(`Invalid unit value ${t}`);
|
2931
2931
|
return e;
|
2932
2932
|
}
|
2933
|
-
function
|
2933
|
+
function At(t, e) {
|
2934
2934
|
const n = {};
|
2935
2935
|
for (const s in t)
|
2936
2936
|
if (Le(t, s)) {
|
@@ -2953,10 +2953,10 @@ function Ge(t, e) {
|
|
2953
2953
|
throw new RangeError(`Value format ${e} is out of range for property format`);
|
2954
2954
|
}
|
2955
2955
|
}
|
2956
|
-
function
|
2957
|
-
return
|
2956
|
+
function Ut(t) {
|
2957
|
+
return cc(t, ["hour", "minute", "second", "millisecond"]);
|
2958
2958
|
}
|
2959
|
-
const
|
2959
|
+
const lc = [
|
2960
2960
|
"January",
|
2961
2961
|
"February",
|
2962
2962
|
"March",
|
@@ -2982,15 +2982,15 @@ const uc = [
|
|
2982
2982
|
"Oct",
|
2983
2983
|
"Nov",
|
2984
2984
|
"Dec"
|
2985
|
-
],
|
2985
|
+
], fc = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"];
|
2986
2986
|
function jr(t) {
|
2987
2987
|
switch (t) {
|
2988
2988
|
case "narrow":
|
2989
|
-
return [...
|
2989
|
+
return [...fc];
|
2990
2990
|
case "short":
|
2991
2991
|
return [...Zr];
|
2992
2992
|
case "long":
|
2993
|
-
return [...
|
2993
|
+
return [...lc];
|
2994
2994
|
case "numeric":
|
2995
2995
|
return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
2996
2996
|
case "2-digit":
|
@@ -3007,11 +3007,11 @@ const Yr = [
|
|
3007
3007
|
"Friday",
|
3008
3008
|
"Saturday",
|
3009
3009
|
"Sunday"
|
3010
|
-
], Jr = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
3010
|
+
], Jr = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], hc = ["M", "T", "W", "T", "F", "S", "S"];
|
3011
3011
|
function Gr(t) {
|
3012
3012
|
switch (t) {
|
3013
3013
|
case "narrow":
|
3014
|
-
return [...
|
3014
|
+
return [...hc];
|
3015
3015
|
case "short":
|
3016
3016
|
return [...Jr];
|
3017
3017
|
case "long":
|
@@ -3022,32 +3022,32 @@ function Gr(t) {
|
|
3022
3022
|
return null;
|
3023
3023
|
}
|
3024
3024
|
}
|
3025
|
-
const Kr = ["AM", "PM"],
|
3025
|
+
const Kr = ["AM", "PM"], dc = ["Before Christ", "Anno Domini"], mc = ["BC", "AD"], pc = ["B", "A"];
|
3026
3026
|
function Xr(t) {
|
3027
3027
|
switch (t) {
|
3028
3028
|
case "narrow":
|
3029
|
-
return [...
|
3029
|
+
return [...pc];
|
3030
3030
|
case "short":
|
3031
|
-
return [...
|
3031
|
+
return [...mc];
|
3032
3032
|
case "long":
|
3033
|
-
return [...
|
3033
|
+
return [...dc];
|
3034
3034
|
default:
|
3035
3035
|
return null;
|
3036
3036
|
}
|
3037
3037
|
}
|
3038
|
-
function
|
3038
|
+
function yc(t) {
|
3039
3039
|
return Kr[t.hour < 12 ? 0 : 1];
|
3040
3040
|
}
|
3041
|
-
function
|
3041
|
+
function gc(t, e) {
|
3042
3042
|
return Gr(e)[t.weekday - 1];
|
3043
3043
|
}
|
3044
|
-
function
|
3044
|
+
function wc(t, e) {
|
3045
3045
|
return jr(e)[t.month - 1];
|
3046
3046
|
}
|
3047
|
-
function
|
3047
|
+
function Sc(t, e) {
|
3048
3048
|
return Xr(e)[t.year < 0 ? 0 : 1];
|
3049
3049
|
}
|
3050
|
-
function
|
3050
|
+
function vc(t, e, n = "always", s = !1) {
|
3051
3051
|
const r = {
|
3052
3052
|
years: ["year", "yr."],
|
3053
3053
|
quarters: ["quarter", "qtr."],
|
@@ -3078,8 +3078,8 @@ function ks(t, e) {
|
|
3078
3078
|
s.literal ? n += s.val : n += e(s.val);
|
3079
3079
|
return n;
|
3080
3080
|
}
|
3081
|
-
const
|
3082
|
-
D:
|
3081
|
+
const bc = {
|
3082
|
+
D: xt,
|
3083
3083
|
DD: gr,
|
3084
3084
|
DDD: wr,
|
3085
3085
|
DDDD: Sr,
|
@@ -3114,7 +3114,7 @@ class W {
|
|
3114
3114
|
return s.length > 0 && i.push({ literal: r || /^\s+$/.test(s), val: s }), i;
|
3115
3115
|
}
|
3116
3116
|
static macroTokenToFormatOpts(e) {
|
3117
|
-
return
|
3117
|
+
return bc[e];
|
3118
3118
|
}
|
3119
3119
|
constructor(e, n) {
|
3120
3120
|
this.opts = n, this.loc = e, this.systemLoc = null;
|
@@ -3144,13 +3144,13 @@ class W {
|
|
3144
3144
|
return n > 0 && (s.padTo = n), this.loc.numberFormatter(s).format(e);
|
3145
3145
|
}
|
3146
3146
|
formatDateTimeFromString(e, n) {
|
3147
|
-
const s = this.loc.listingMode() === "en", r = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (d, m) => this.loc.extract(e, d, m), o = (d) => e.isOffsetFixed && e.offset === 0 && d.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, d.format) : "", a = () => s ?
|
3147
|
+
const s = this.loc.listingMode() === "en", r = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (d, m) => this.loc.extract(e, d, m), o = (d) => e.isOffsetFixed && e.offset === 0 && d.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, d.format) : "", a = () => s ? yc(e) : i({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), c = (d, m) => s ? wc(e, d) : i(m ? { month: d } : { month: d, day: "numeric" }, "month"), u = (d, m) => s ? gc(e, d) : i(
|
3148
3148
|
m ? { weekday: d } : { weekday: d, month: "long", day: "numeric" },
|
3149
3149
|
"weekday"
|
3150
3150
|
), l = (d) => {
|
3151
3151
|
const m = W.macroTokenToFormatOpts(d);
|
3152
3152
|
return m ? this.formatWithSystemDefault(e, m) : d;
|
3153
|
-
}, h = (d) => s ?
|
3153
|
+
}, h = (d) => s ? Sc(e, d) : i({ era: d }, "era"), g = (d) => {
|
3154
3154
|
switch (d) {
|
3155
3155
|
case "S":
|
3156
3156
|
return this.num(e.millisecond);
|
@@ -3344,14 +3344,14 @@ function ei(...t) {
|
|
3344
3344
|
return [s, null, n + r];
|
3345
3345
|
};
|
3346
3346
|
}
|
3347
|
-
const ti = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,
|
3347
|
+
const ti = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, Tc = `(?:${ti.source}?(?:\\[(${Qr.source})\\])?)?`, Ln = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, ni = RegExp(`${Ln.source}${Tc}`), Fn = RegExp(`(?:T${ni.source})?`), kc = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Ec = /(\d{4})-?W(\d\d)(?:-?(\d))?/, Oc = /(\d{4})-?(\d{3})/, Cc = ei("weekYear", "weekNumber", "weekDay"), xc = ei("year", "ordinal"), Nc = /(\d{4})-(\d\d)-(\d\d)/, si = RegExp(
|
3348
3348
|
`${Ln.source} ?(?:${ti.source}|(${Qr.source}))?`
|
3349
|
-
),
|
3349
|
+
), _c = RegExp(`(?: ${si.source})?`);
|
3350
3350
|
function Ie(t, e, n) {
|
3351
3351
|
const s = t[e];
|
3352
3352
|
return v(s) ? n : ge(s);
|
3353
3353
|
}
|
3354
|
-
function
|
3354
|
+
function Ac(t, e) {
|
3355
3355
|
return [{
|
3356
3356
|
year: Ie(t, e),
|
3357
3357
|
month: Ie(t, e + 1, 1),
|
@@ -3367,15 +3367,15 @@ function Pe(t, e) {
|
|
3367
3367
|
}, null, e + 4];
|
3368
3368
|
}
|
3369
3369
|
function st(t, e) {
|
3370
|
-
const n = !t[e] && !t[e + 1], s =
|
3370
|
+
const n = !t[e] && !t[e + 1], s = $t(t[e + 1], t[e + 2]), r = n ? null : H.instance(s);
|
3371
3371
|
return [{}, r, e + 3];
|
3372
3372
|
}
|
3373
3373
|
function rt(t, e) {
|
3374
3374
|
const n = t[e] ? de.create(t[e]) : null;
|
3375
3375
|
return [{}, n, e + 1];
|
3376
3376
|
}
|
3377
|
-
const
|
3378
|
-
function
|
3377
|
+
const Mc = RegExp(`^T?${Ln.source}$`), Rc = /^-?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)?)?)$/;
|
3378
|
+
function Ic(t) {
|
3379
3379
|
const [e, n, s, r, i, o, a, c, u] = t, l = e[0] === "-", h = c && c[0] === "-", g = (d, m = !1) => d !== void 0 && (m || d && l) ? -d : d;
|
3380
3380
|
return [
|
3381
3381
|
{
|
@@ -3390,7 +3390,7 @@ function Rc(t) {
|
|
3390
3390
|
}
|
3391
3391
|
];
|
3392
3392
|
}
|
3393
|
-
const
|
3393
|
+
const Dc = {
|
3394
3394
|
GMT: 0,
|
3395
3395
|
EDT: -4 * 60,
|
3396
3396
|
EST: -5 * 60,
|
@@ -3403,7 +3403,7 @@ const Ic = {
|
|
3403
3403
|
};
|
3404
3404
|
function Vn(t, e, n, s, r, i, o) {
|
3405
3405
|
const a = {
|
3406
|
-
year: e.length === 2 ?
|
3406
|
+
year: e.length === 2 ? gn(ge(e)) : ge(e),
|
3407
3407
|
month: Zr.indexOf(n) + 1,
|
3408
3408
|
day: ge(s),
|
3409
3409
|
hour: ge(r),
|
@@ -3411,8 +3411,8 @@ function Vn(t, e, n, s, r, i, o) {
|
|
3411
3411
|
};
|
3412
3412
|
return o && (a.second = ge(o)), t && (a.weekday = t.length > 3 ? Yr.indexOf(t) + 1 : Jr.indexOf(t) + 1), a;
|
3413
3413
|
}
|
3414
|
-
const
|
3415
|
-
function
|
3414
|
+
const Lc = /^(?:(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)))$/;
|
3415
|
+
function Fc(t) {
|
3416
3416
|
const [
|
3417
3417
|
,
|
3418
3418
|
e,
|
@@ -3428,27 +3428,22 @@ function Lc(t) {
|
|
3428
3428
|
h
|
3429
3429
|
] = t, g = Vn(e, r, s, n, i, o, a);
|
3430
3430
|
let d;
|
3431
|
-
return c ? d =
|
3431
|
+
return c ? d = Dc[c] : u ? d = 0 : d = $t(l, h), [g, new H(d)];
|
3432
3432
|
}
|
3433
|
-
function
|
3433
|
+
function Vc(t) {
|
3434
3434
|
return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
3435
3435
|
}
|
3436
|
-
const
|
3436
|
+
const Bc = /^(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$/, $c = /^(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$/, Uc = /^(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})$/;
|
3437
3437
|
function Es(t) {
|
3438
3438
|
const [, e, n, s, r, i, o, a] = t;
|
3439
3439
|
return [Vn(e, r, s, n, i, o, a), H.utcInstance];
|
3440
3440
|
}
|
3441
|
-
function
|
3441
|
+
function Pc(t) {
|
3442
3442
|
const [, e, n, s, r, i, o, a] = t;
|
3443
3443
|
return [Vn(e, a, n, s, r, i, o), H.utcInstance];
|
3444
3444
|
}
|
3445
|
-
const
|
3446
|
-
|
3447
|
-
Pe,
|
3448
|
-
st,
|
3449
|
-
rt
|
3450
|
-
), zc = $e(
|
3451
|
-
Oc,
|
3445
|
+
const Wc = Be(kc, Fn), qc = Be(Ec, Fn), Hc = Be(Oc, Fn), zc = Be(ni), ri = $e(
|
3446
|
+
Ac,
|
3452
3447
|
Pe,
|
3453
3448
|
st,
|
3454
3449
|
rt
|
@@ -3458,47 +3453,52 @@ const Pc = Be(Tc, Fn), Wc = Be(kc, Fn), qc = Be(Ec, Fn), Hc = Be(ni), ri = $e(
|
|
3458
3453
|
st,
|
3459
3454
|
rt
|
3460
3455
|
), jc = $e(
|
3456
|
+
xc,
|
3457
|
+
Pe,
|
3458
|
+
st,
|
3459
|
+
rt
|
3460
|
+
), Yc = $e(
|
3461
3461
|
Pe,
|
3462
3462
|
st,
|
3463
3463
|
rt
|
3464
3464
|
);
|
3465
|
-
function
|
3465
|
+
function Jc(t) {
|
3466
3466
|
return Ue(
|
3467
3467
|
t,
|
3468
|
-
[
|
3469
|
-
[Wc, zc],
|
3468
|
+
[Wc, ri],
|
3470
3469
|
[qc, Zc],
|
3471
|
-
[Hc, jc]
|
3470
|
+
[Hc, jc],
|
3471
|
+
[zc, Yc]
|
3472
3472
|
);
|
3473
3473
|
}
|
3474
|
-
function Jc(t) {
|
3475
|
-
return Ue(Fc(t), [Dc, Lc]);
|
3476
|
-
}
|
3477
3474
|
function Gc(t) {
|
3475
|
+
return Ue(Vc(t), [Lc, Fc]);
|
3476
|
+
}
|
3477
|
+
function Kc(t) {
|
3478
3478
|
return Ue(
|
3479
3479
|
t,
|
3480
|
-
[Vc, Es],
|
3481
3480
|
[Bc, Es],
|
3482
|
-
[$c,
|
3481
|
+
[$c, Es],
|
3482
|
+
[Uc, Pc]
|
3483
3483
|
);
|
3484
3484
|
}
|
3485
|
-
function
|
3486
|
-
return Ue(t, [
|
3485
|
+
function Xc(t) {
|
3486
|
+
return Ue(t, [Rc, Ic]);
|
3487
3487
|
}
|
3488
|
-
const
|
3489
|
-
function
|
3490
|
-
return Ue(t, [
|
3488
|
+
const Qc = $e(Pe);
|
3489
|
+
function eu(t) {
|
3490
|
+
return Ue(t, [Mc, Qc]);
|
3491
3491
|
}
|
3492
|
-
const
|
3492
|
+
const tu = Be(Nc, _c), nu = Be(si), su = $e(
|
3493
3493
|
Pe,
|
3494
3494
|
st,
|
3495
3495
|
rt
|
3496
3496
|
);
|
3497
|
-
function
|
3497
|
+
function ru(t) {
|
3498
3498
|
return Ue(
|
3499
3499
|
t,
|
3500
|
-
[
|
3501
|
-
[
|
3500
|
+
[tu, ri],
|
3501
|
+
[nu, su]
|
3502
3502
|
);
|
3503
3503
|
}
|
3504
3504
|
const Os = "Invalid Duration", ii = {
|
@@ -3518,7 +3518,7 @@ const Os = "Invalid Duration", ii = {
|
|
3518
3518
|
hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1e3 },
|
3519
3519
|
minutes: { seconds: 60, milliseconds: 60 * 1e3 },
|
3520
3520
|
seconds: { milliseconds: 1e3 }
|
3521
|
-
},
|
3521
|
+
}, iu = {
|
3522
3522
|
years: {
|
3523
3523
|
quarters: 4,
|
3524
3524
|
months: 12,
|
@@ -3547,7 +3547,7 @@ const Os = "Invalid Duration", ii = {
|
|
3547
3547
|
milliseconds: 30 * 24 * 60 * 60 * 1e3
|
3548
3548
|
},
|
3549
3549
|
...ii
|
3550
|
-
}, J = 146097 / 400, Oe = 146097 / 4800,
|
3550
|
+
}, J = 146097 / 400, Oe = 146097 / 4800, ou = {
|
3551
3551
|
years: {
|
3552
3552
|
quarters: 4,
|
3553
3553
|
months: 12,
|
@@ -3586,7 +3586,7 @@ const Os = "Invalid Duration", ii = {
|
|
3586
3586
|
"minutes",
|
3587
3587
|
"seconds",
|
3588
3588
|
"milliseconds"
|
3589
|
-
],
|
3589
|
+
], au = Te.slice(0).reverse();
|
3590
3590
|
function ye(t, e, n = !1) {
|
3591
3591
|
const s = {
|
3592
3592
|
values: n ? e.values : { ...t.values, ...e.values || {} },
|
@@ -3598,7 +3598,7 @@ function ye(t, e, n = !1) {
|
|
3598
3598
|
}
|
3599
3599
|
function oi(t, e) {
|
3600
3600
|
let n = e.milliseconds ?? 0;
|
3601
|
-
for (const s of
|
3601
|
+
for (const s of au.slice(1))
|
3602
3602
|
e[s] && (n += e[s] * t[s].milliseconds);
|
3603
3603
|
return n;
|
3604
3604
|
}
|
@@ -3622,7 +3622,7 @@ function Cs(t, e) {
|
|
3622
3622
|
return r;
|
3623
3623
|
}, null);
|
3624
3624
|
}
|
3625
|
-
function
|
3625
|
+
function cu(t) {
|
3626
3626
|
const e = {};
|
3627
3627
|
for (const [n, s] of Object.entries(t))
|
3628
3628
|
s !== 0 && (e[n] = s);
|
@@ -3634,7 +3634,7 @@ class k {
|
|
3634
3634
|
*/
|
3635
3635
|
constructor(e) {
|
3636
3636
|
const n = e.conversionAccuracy === "longterm" || !1;
|
3637
|
-
let s = n ?
|
3637
|
+
let s = n ? ou : iu;
|
3638
3638
|
e.matrix && (s = e.matrix), this.values = e.values, this.loc = e.loc || N.create(), this.conversionAccuracy = n ? "longterm" : "casual", this.invalid = e.invalid || null, this.matrix = s, this.isLuxonDuration = !0;
|
3639
3639
|
}
|
3640
3640
|
/**
|
@@ -3675,7 +3675,7 @@ class k {
|
|
3675
3675
|
`Duration.fromObject: argument expected to be an object, got ${e === null ? "null" : typeof e}`
|
3676
3676
|
);
|
3677
3677
|
return new k({
|
3678
|
-
values:
|
3678
|
+
values: At(e, k.normalizeUnit),
|
3679
3679
|
loc: N.fromObject(n),
|
3680
3680
|
conversionAccuracy: n.conversionAccuracy,
|
3681
3681
|
matrix: n.matrix
|
@@ -3717,7 +3717,7 @@ class k {
|
|
3717
3717
|
* @return {Duration}
|
3718
3718
|
*/
|
3719
3719
|
static fromISO(e, n) {
|
3720
|
-
const [s] =
|
3720
|
+
const [s] = Xc(e);
|
3721
3721
|
return s ? k.fromObject(s, n) : k.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
|
3722
3722
|
}
|
3723
3723
|
/**
|
@@ -3737,7 +3737,7 @@ class k {
|
|
3737
3737
|
* @return {Duration}
|
3738
3738
|
*/
|
3739
3739
|
static fromISOTime(e, n) {
|
3740
|
-
const [s] =
|
3740
|
+
const [s] = eu(e);
|
3741
3741
|
return s ? k.fromObject(s, n) : k.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
|
3742
3742
|
}
|
3743
3743
|
/**
|
@@ -3751,7 +3751,7 @@ class k {
|
|
3751
3751
|
throw new P("need to specify a reason the Duration is invalid");
|
3752
3752
|
const s = e instanceof re ? e : new re(e, n);
|
3753
3753
|
if (M.throwOnInvalid)
|
3754
|
-
throw new
|
3754
|
+
throw new Ra(s);
|
3755
3755
|
return new k({ invalid: s });
|
3756
3756
|
}
|
3757
3757
|
/**
|
@@ -3997,7 +3997,7 @@ class k {
|
|
3997
3997
|
*/
|
3998
3998
|
set(e) {
|
3999
3999
|
if (!this.isValid) return this;
|
4000
|
-
const n = { ...this.values, ...
|
4000
|
+
const n = { ...this.values, ...At(e, k.normalizeUnit) };
|
4001
4001
|
return ye(this, { values: n });
|
4002
4002
|
}
|
4003
4003
|
/**
|
@@ -4047,7 +4047,7 @@ class k {
|
|
4047
4047
|
*/
|
4048
4048
|
rescale() {
|
4049
4049
|
if (!this.isValid) return this;
|
4050
|
-
const e =
|
4050
|
+
const e = cu(this.normalize().shiftToAll().toObject());
|
4051
4051
|
return ye(this, { values: e }, !0);
|
4052
4052
|
}
|
4053
4053
|
/**
|
@@ -4209,7 +4209,7 @@ class k {
|
|
4209
4209
|
}
|
4210
4210
|
}
|
4211
4211
|
const Ce = "Invalid Interval";
|
4212
|
-
function
|
4212
|
+
function uu(t, e) {
|
4213
4213
|
return !t || !t.isValid ? A.invalid("missing or invalid start") : !e || !e.isValid ? A.invalid("missing or invalid end") : e < t ? A.invalid(
|
4214
4214
|
"end before start",
|
4215
4215
|
`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`
|
@@ -4233,7 +4233,7 @@ class A {
|
|
4233
4233
|
throw new P("need to specify a reason the Interval is invalid");
|
4234
4234
|
const s = e instanceof re ? e : new re(e, n);
|
4235
4235
|
if (M.throwOnInvalid)
|
4236
|
-
throw new
|
4236
|
+
throw new Ma(s);
|
4237
4237
|
return new A({ invalid: s });
|
4238
4238
|
}
|
4239
4239
|
/**
|
@@ -4243,7 +4243,7 @@ class A {
|
|
4243
4243
|
* @return {Interval}
|
4244
4244
|
*/
|
4245
4245
|
static fromDateTimes(e, n) {
|
4246
|
-
const s = He(e), r = He(n), i =
|
4246
|
+
const s = He(e), r = He(n), i = uu(s, r);
|
4247
4247
|
return i ?? new A({
|
4248
4248
|
start: s,
|
4249
4249
|
end: r
|
@@ -4593,7 +4593,7 @@ class A {
|
|
4593
4593
|
* @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p
|
4594
4594
|
* @return {string}
|
4595
4595
|
*/
|
4596
|
-
toLocaleString(e =
|
4596
|
+
toLocaleString(e = xt, n = {}) {
|
4597
4597
|
return this.isValid ? W.create(this.s.loc.clone(n), e).formatInterval(this) : Ce;
|
4598
4598
|
}
|
4599
4599
|
/**
|
@@ -4839,7 +4839,7 @@ function xs(t, e) {
|
|
4839
4839
|
const n = (r) => r.toUTC(0, { keepLocalTime: !0 }).startOf("day").valueOf(), s = n(e) - n(t);
|
4840
4840
|
return Math.floor(k.fromMillis(s).as("days"));
|
4841
4841
|
}
|
4842
|
-
function
|
4842
|
+
function lu(t, e, n) {
|
4843
4843
|
const s = [
|
4844
4844
|
["years", (c, u) => u.year - c.year],
|
4845
4845
|
["quarters", (c, u) => u.quarter - c.quarter + (u.year - c.year) * 4],
|
@@ -4858,8 +4858,8 @@ function uu(t, e, n) {
|
|
4858
4858
|
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);
|
4859
4859
|
return [t, r, a, o];
|
4860
4860
|
}
|
4861
|
-
function
|
4862
|
-
let [r, i, o, a] =
|
4861
|
+
function fu(t, e, n, s) {
|
4862
|
+
let [r, i, o, a] = lu(t, e, n);
|
4863
4863
|
const c = e - r, u = n.filter(
|
4864
4864
|
(h) => ["hours", "minutes", "seconds", "milliseconds"].indexOf(h) >= 0
|
4865
4865
|
);
|
@@ -4867,12 +4867,12 @@ function lu(t, e, n, s) {
|
|
4867
4867
|
const l = k.fromObject(i, s);
|
4868
4868
|
return u.length > 0 ? k.fromMillis(c, s).shiftTo(...u).plus(l) : l;
|
4869
4869
|
}
|
4870
|
-
const
|
4870
|
+
const hu = "missing Intl.DateTimeFormat.formatToParts support";
|
4871
4871
|
function O(t, e = (n) => n) {
|
4872
|
-
return { regex: t, deser: ([n]) => e(
|
4872
|
+
return { regex: t, deser: ([n]) => e(tc(n)) };
|
4873
4873
|
}
|
4874
|
-
const
|
4875
|
-
function
|
4874
|
+
const du = " ", ai = `[ ${du}]`, ci = new RegExp(ai, "g");
|
4875
|
+
function mu(t) {
|
4876
4876
|
return t.replace(/\./g, "\\.?").replace(ci, ai);
|
4877
4877
|
}
|
4878
4878
|
function Ns(t) {
|
@@ -4880,21 +4880,21 @@ function Ns(t) {
|
|
4880
4880
|
}
|
4881
4881
|
function ne(t, e) {
|
4882
4882
|
return t === null ? null : {
|
4883
|
-
regex: RegExp(t.map(
|
4883
|
+
regex: RegExp(t.map(mu).join("|")),
|
4884
4884
|
deser: ([n]) => t.findIndex((s) => Ns(n) === Ns(s)) + e
|
4885
4885
|
};
|
4886
4886
|
}
|
4887
4887
|
function _s(t, e) {
|
4888
|
-
return { regex: t, deser: ([, n, s]) =>
|
4888
|
+
return { regex: t, deser: ([, n, s]) => $t(n, s), groups: e };
|
4889
4889
|
}
|
4890
4890
|
function ut(t) {
|
4891
4891
|
return { regex: t, deser: ([e]) => e };
|
4892
4892
|
}
|
4893
|
-
function
|
4893
|
+
function pu(t) {
|
4894
4894
|
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
4895
4895
|
}
|
4896
|
-
function
|
4897
|
-
const n = te(e), s = te(e, "{2}"), r = te(e, "{3}"), i = te(e, "{4}"), o = te(e, "{6}"), a = te(e, "{1,2}"), c = te(e, "{1,3}"), u = te(e, "{1,6}"), l = te(e, "{1,9}"), h = te(e, "{2,4}"), g = te(e, "{4,6}"), d = (_) => ({ regex: RegExp(
|
4896
|
+
function yu(t, e) {
|
4897
|
+
const n = te(e), s = te(e, "{2}"), r = te(e, "{3}"), i = te(e, "{4}"), o = te(e, "{6}"), a = te(e, "{1,2}"), c = te(e, "{1,3}"), u = te(e, "{1,6}"), l = te(e, "{1,9}"), h = te(e, "{2,4}"), g = te(e, "{4,6}"), d = (_) => ({ regex: RegExp(pu(_.val)), deser: ([C]) => C, literal: !0 }), y = ((_) => {
|
4898
4898
|
if (t.literal)
|
4899
4899
|
return d(_);
|
4900
4900
|
switch (_.val) {
|
@@ -4905,7 +4905,7 @@ function pu(t, e) {
|
|
4905
4905
|
case "y":
|
4906
4906
|
return O(u);
|
4907
4907
|
case "yy":
|
4908
|
-
return O(h,
|
4908
|
+
return O(h, gn);
|
4909
4909
|
case "yyyy":
|
4910
4910
|
return O(i);
|
4911
4911
|
case "yyyyy":
|
@@ -4971,7 +4971,7 @@ function pu(t, e) {
|
|
4971
4971
|
case "kkkk":
|
4972
4972
|
return O(i);
|
4973
4973
|
case "kk":
|
4974
|
-
return O(h,
|
4974
|
+
return O(h, gn);
|
4975
4975
|
case "W":
|
4976
4976
|
return O(a);
|
4977
4977
|
case "WW":
|
@@ -5000,11 +5000,11 @@ function pu(t, e) {
|
|
5000
5000
|
return d(_);
|
5001
5001
|
}
|
5002
5002
|
})(t) || {
|
5003
|
-
invalidReason:
|
5003
|
+
invalidReason: hu
|
5004
5004
|
};
|
5005
5005
|
return y.token = t, y;
|
5006
5006
|
}
|
5007
|
-
const
|
5007
|
+
const gu = {
|
5008
5008
|
year: {
|
5009
5009
|
"2-digit": "yy",
|
5010
5010
|
numeric: "yyyyy"
|
@@ -5046,7 +5046,7 @@ const yu = {
|
|
5046
5046
|
short: "ZZZ"
|
5047
5047
|
}
|
5048
5048
|
};
|
5049
|
-
function
|
5049
|
+
function wu(t, e, n) {
|
5050
5050
|
const { type: s, value: r } = t;
|
5051
5051
|
if (s === "literal") {
|
5052
5052
|
const c = /^\s+$/.test(r);
|
@@ -5058,17 +5058,17 @@ function gu(t, e, n) {
|
|
5058
5058
|
const i = e[s];
|
5059
5059
|
let o = s;
|
5060
5060
|
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");
|
5061
|
-
let a =
|
5061
|
+
let a = gu[o];
|
5062
5062
|
if (typeof a == "object" && (a = a[i]), a)
|
5063
5063
|
return {
|
5064
5064
|
literal: !1,
|
5065
5065
|
val: a
|
5066
5066
|
};
|
5067
5067
|
}
|
5068
|
-
function
|
5068
|
+
function Su(t) {
|
5069
5069
|
return [`^${t.map((n) => n.regex).reduce((n, s) => `${n}(${s.source})`, "")}$`, t];
|
5070
5070
|
}
|
5071
|
-
function
|
5071
|
+
function vu(t, e, n) {
|
5072
5072
|
const s = t.match(e);
|
5073
5073
|
if (s) {
|
5074
5074
|
const r = {};
|
@@ -5082,7 +5082,7 @@ function Su(t, e, n) {
|
|
5082
5082
|
} else
|
5083
5083
|
return [s, {}];
|
5084
5084
|
}
|
5085
|
-
function
|
5085
|
+
function bu(t) {
|
5086
5086
|
const e = (i) => {
|
5087
5087
|
switch (i) {
|
5088
5088
|
case "S":
|
@@ -5122,29 +5122,29 @@ function vu(t) {
|
|
5122
5122
|
return a && (i[a] = t[o]), i;
|
5123
5123
|
}, {}), n, s];
|
5124
5124
|
}
|
5125
|
-
let
|
5126
|
-
function
|
5127
|
-
return
|
5125
|
+
let Qt = null;
|
5126
|
+
function Tu() {
|
5127
|
+
return Qt || (Qt = S.fromMillis(1555555555555)), Qt;
|
5128
5128
|
}
|
5129
|
-
function
|
5129
|
+
function ku(t, e) {
|
5130
5130
|
if (t.literal)
|
5131
5131
|
return t;
|
5132
5132
|
const n = W.macroTokenToFormatOpts(t.val), s = hi(n, e);
|
5133
5133
|
return s == null || s.includes(void 0) ? t : s;
|
5134
5134
|
}
|
5135
5135
|
function ui(t, e) {
|
5136
|
-
return Array.prototype.concat(...t.map((n) =>
|
5136
|
+
return Array.prototype.concat(...t.map((n) => ku(n, e)));
|
5137
5137
|
}
|
5138
5138
|
class li {
|
5139
5139
|
constructor(e, n) {
|
5140
|
-
if (this.locale = e, this.format = n, this.tokens = ui(W.parseFormat(n), e), this.units = this.tokens.map((s) =>
|
5141
|
-
const [s, r] =
|
5140
|
+
if (this.locale = e, this.format = n, this.tokens = ui(W.parseFormat(n), e), this.units = this.tokens.map((s) => yu(s, e)), this.disqualifyingUnit = this.units.find((s) => s.invalidReason), !this.disqualifyingUnit) {
|
5141
|
+
const [s, r] = Su(this.units);
|
5142
5142
|
this.regex = RegExp(s, "i"), this.handlers = r;
|
5143
5143
|
}
|
5144
5144
|
}
|
5145
5145
|
explainFromTokens(e) {
|
5146
5146
|
if (this.isValid) {
|
5147
|
-
const [n, s] =
|
5147
|
+
const [n, s] = vu(e, this.regex, this.handlers), [r, i, o] = s ? bu(s) : [null, null, void 0];
|
5148
5148
|
if (Le(s, "a") && Le(s, "H"))
|
5149
5149
|
throw new Ae(
|
5150
5150
|
"Can't include meridiem when specifying 24-hour format"
|
@@ -5172,25 +5172,25 @@ class li {
|
|
5172
5172
|
function fi(t, e, n) {
|
5173
5173
|
return new li(t, n).explainFromTokens(e);
|
5174
5174
|
}
|
5175
|
-
function
|
5175
|
+
function Eu(t, e, n) {
|
5176
5176
|
const { result: s, zone: r, specificOffset: i, invalidReason: o } = fi(t, e, n);
|
5177
5177
|
return [s, r, i, o];
|
5178
5178
|
}
|
5179
5179
|
function hi(t, e) {
|
5180
5180
|
if (!t)
|
5181
5181
|
return null;
|
5182
|
-
const s = W.create(e, t).dtFormatter(
|
5183
|
-
return r.map((o) =>
|
5182
|
+
const s = W.create(e, t).dtFormatter(Tu()), r = s.formatToParts(), i = s.resolvedOptions();
|
5183
|
+
return r.map((o) => wu(o, t, i));
|
5184
5184
|
}
|
5185
|
-
const
|
5185
|
+
const en = "Invalid DateTime", As = 864e13;
|
5186
5186
|
function je(t) {
|
5187
5187
|
return new re("unsupported zone", `the zone "${t.name}" is not supported`);
|
5188
5188
|
}
|
5189
|
-
function en(t) {
|
5190
|
-
return t.weekData === null && (t.weekData = xt(t.c)), t.weekData;
|
5191
|
-
}
|
5192
5189
|
function tn(t) {
|
5193
|
-
return t.
|
5190
|
+
return t.weekData === null && (t.weekData = Nt(t.c)), t.weekData;
|
5191
|
+
}
|
5192
|
+
function nn(t) {
|
5193
|
+
return t.localWeekData === null && (t.localWeekData = Nt(
|
5194
5194
|
t.c,
|
5195
5195
|
t.loc.getMinDaysInFirstWeek(),
|
5196
5196
|
t.loc.getStartOfWeek()
|
@@ -5230,14 +5230,14 @@ function lt(t, e) {
|
|
5230
5230
|
};
|
5231
5231
|
}
|
5232
5232
|
function vt(t, e, n) {
|
5233
|
-
return di(
|
5233
|
+
return di(Bt(t), e, n);
|
5234
5234
|
}
|
5235
5235
|
function Ms(t, e) {
|
5236
5236
|
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 = {
|
5237
5237
|
...t.c,
|
5238
5238
|
year: s,
|
5239
5239
|
month: r,
|
5240
|
-
day: Math.min(t.c.day,
|
5240
|
+
day: Math.min(t.c.day, _t(s, r)) + Math.trunc(e.days) + Math.trunc(e.weeks) * 7
|
5241
5241
|
}, o = k.fromObject({
|
5242
5242
|
years: e.years - Math.trunc(e.years),
|
5243
5243
|
quarters: e.quarters - Math.trunc(e.quarters),
|
@@ -5248,7 +5248,7 @@ function Ms(t, e) {
|
|
5248
5248
|
minutes: e.minutes,
|
5249
5249
|
seconds: e.seconds,
|
5250
5250
|
milliseconds: e.milliseconds
|
5251
|
-
}).as("milliseconds"), a =
|
5251
|
+
}).as("milliseconds"), a = Bt(i);
|
5252
5252
|
let [c, u] = di(a, n, t.zone);
|
5253
5253
|
return o !== 0 && (c += o, u = t.zone.offset(c)), { ts: c, o: u };
|
5254
5254
|
}
|
@@ -5272,7 +5272,7 @@ function ft(t, e, n = !0) {
|
|
5272
5272
|
forceSimple: !0
|
5273
5273
|
}).formatDateTimeFromString(t, e) : null;
|
5274
5274
|
}
|
5275
|
-
function
|
5275
|
+
function sn(t, e) {
|
5276
5276
|
const n = t.c.year > 9999 || t.c.year < 0;
|
5277
5277
|
let s = "";
|
5278
5278
|
return n && t.c.year >= 0 && (s += "+"), s += I(t.c.year, n ? 6 : 4), e ? (s += "-", s += I(t.c.month), s += "-", s += I(t.c.day)) : (s += I(t.c.month), s += I(t.c.day)), s;
|
@@ -5288,20 +5288,20 @@ const mi = {
|
|
5288
5288
|
minute: 0,
|
5289
5289
|
second: 0,
|
5290
5290
|
millisecond: 0
|
5291
|
-
},
|
5291
|
+
}, Ou = {
|
5292
5292
|
weekNumber: 1,
|
5293
5293
|
weekday: 1,
|
5294
5294
|
hour: 0,
|
5295
5295
|
minute: 0,
|
5296
5296
|
second: 0,
|
5297
5297
|
millisecond: 0
|
5298
|
-
},
|
5298
|
+
}, Cu = {
|
5299
5299
|
ordinal: 1,
|
5300
5300
|
hour: 0,
|
5301
5301
|
minute: 0,
|
5302
5302
|
second: 0,
|
5303
5303
|
millisecond: 0
|
5304
|
-
}, pi = ["year", "month", "day", "hour", "minute", "second", "millisecond"],
|
5304
|
+
}, pi = ["year", "month", "day", "hour", "minute", "second", "millisecond"], xu = [
|
5305
5305
|
"weekYear",
|
5306
5306
|
"weekNumber",
|
5307
5307
|
"weekday",
|
@@ -5309,8 +5309,8 @@ const mi = {
|
|
5309
5309
|
"minute",
|
5310
5310
|
"second",
|
5311
5311
|
"millisecond"
|
5312
|
-
],
|
5313
|
-
function
|
5312
|
+
], Nu = ["year", "ordinal", "hour", "minute", "second", "millisecond"];
|
5313
|
+
function _u(t) {
|
5314
5314
|
const e = {
|
5315
5315
|
year: "year",
|
5316
5316
|
years: "year",
|
@@ -5352,10 +5352,10 @@ function Is(t) {
|
|
5352
5352
|
case "localweekyears":
|
5353
5353
|
return "localWeekYear";
|
5354
5354
|
default:
|
5355
|
-
return
|
5355
|
+
return _u(t);
|
5356
5356
|
}
|
5357
5357
|
}
|
5358
|
-
function
|
5358
|
+
function Au(t) {
|
5359
5359
|
return Tt[t] || (bt === void 0 && (bt = M.now()), Tt[t] = t.offset(bt)), Tt[t];
|
5360
5360
|
}
|
5361
5361
|
function Ds(t, e) {
|
@@ -5372,7 +5372,7 @@ function Ds(t, e) {
|
|
5372
5372
|
const o = Ur(t) || Pr(t);
|
5373
5373
|
if (o)
|
5374
5374
|
return S.invalid(o);
|
5375
|
-
const a =
|
5375
|
+
const a = Au(n);
|
5376
5376
|
[r, i] = vt(t, a, n);
|
5377
5377
|
}
|
5378
5378
|
return new S({ ts: r, zone: n, loc: s, o: i });
|
@@ -5484,7 +5484,7 @@ class S {
|
|
5484
5484
|
* @return {DateTime}
|
5485
5485
|
*/
|
5486
5486
|
static fromJSDate(e, n = {}) {
|
5487
|
-
const s =
|
5487
|
+
const s = oc(e) ? e.valueOf() : NaN;
|
5488
5488
|
if (Number.isNaN(s))
|
5489
5489
|
return S.invalid("invalid input");
|
5490
5490
|
const r = we(n.zone, M.defaultZone);
|
@@ -5574,7 +5574,7 @@ class S {
|
|
5574
5574
|
const s = we(n.zone, M.defaultZone);
|
5575
5575
|
if (!s.isValid)
|
5576
5576
|
return S.invalid(je(s));
|
5577
|
-
const r = N.fromObject(n), i =
|
5577
|
+
const r = N.fromObject(n), i = At(e, Is), { minDaysInFirstWeek: o, startOfWeek: a } = vs(i, r), c = M.now(), u = v(n.specificOffset) ? s.offset(c) : n.specificOffset, l = !v(i.ordinal), h = !v(i.year), g = !v(i.month) || !v(i.day), d = h || g, m = i.weekYear || i.weekNumber;
|
5578
5578
|
if ((d || l) && m)
|
5579
5579
|
throw new Ae(
|
5580
5580
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
@@ -5583,19 +5583,19 @@ class S {
|
|
5583
5583
|
throw new Ae("Can't mix ordinal dates with month/day");
|
5584
5584
|
const y = m || i.weekday && !d;
|
5585
5585
|
let _, C, R = lt(c, u);
|
5586
|
-
y ? (_ =
|
5587
|
-
let
|
5586
|
+
y ? (_ = xu, C = Ou, R = Nt(R, o, a)) : l ? (_ = Nu, C = Cu, R = Xt(R)) : (_ = pi, C = mi);
|
5587
|
+
let fe = !1;
|
5588
5588
|
for (const Y of _) {
|
5589
|
-
const
|
5590
|
-
v(
|
5589
|
+
const Wt = i[Y];
|
5590
|
+
v(Wt) ? fe ? i[Y] = C[Y] : i[Y] = R[Y] : fe = !0;
|
5591
5591
|
}
|
5592
|
-
const b = y ?
|
5592
|
+
const b = y ? sc(i, o, a) : l ? rc(i) : Ur(i), x = b || Pr(i);
|
5593
5593
|
if (x)
|
5594
5594
|
return S.invalid(x);
|
5595
|
-
const $ = y ? ws(i, o, a) : l ? Ss(i) : i, [Z,
|
5595
|
+
const $ = y ? ws(i, o, a) : l ? Ss(i) : i, [Z, V] = vt($, u, s), z = new S({
|
5596
5596
|
ts: Z,
|
5597
5597
|
zone: s,
|
5598
|
-
o:
|
5598
|
+
o: V,
|
5599
5599
|
loc: r
|
5600
5600
|
});
|
5601
5601
|
return i.weekday && d && e.weekday !== z.weekday ? S.invalid(
|
@@ -5621,7 +5621,7 @@ class S {
|
|
5621
5621
|
* @return {DateTime}
|
5622
5622
|
*/
|
5623
5623
|
static fromISO(e, n = {}) {
|
5624
|
-
const [s, r] =
|
5624
|
+
const [s, r] = Jc(e);
|
5625
5625
|
return xe(s, r, n, "ISO 8601", e);
|
5626
5626
|
}
|
5627
5627
|
/**
|
@@ -5640,7 +5640,7 @@ class S {
|
|
5640
5640
|
* @return {DateTime}
|
5641
5641
|
*/
|
5642
5642
|
static fromRFC2822(e, n = {}) {
|
5643
|
-
const [s, r] =
|
5643
|
+
const [s, r] = Gc(e);
|
5644
5644
|
return xe(s, r, n, "RFC 2822", e);
|
5645
5645
|
}
|
5646
5646
|
/**
|
@@ -5660,7 +5660,7 @@ class S {
|
|
5660
5660
|
* @return {DateTime}
|
5661
5661
|
*/
|
5662
5662
|
static fromHTTP(e, n = {}) {
|
5663
|
-
const [s, r] =
|
5663
|
+
const [s, r] = Kc(e);
|
5664
5664
|
return xe(s, r, n, "HTTP", n);
|
5665
5665
|
}
|
5666
5666
|
/**
|
@@ -5684,7 +5684,7 @@ class S {
|
|
5684
5684
|
locale: r,
|
5685
5685
|
numberingSystem: i,
|
5686
5686
|
defaultToEN: !0
|
5687
|
-
}), [a, c, u, l] =
|
5687
|
+
}), [a, c, u, l] = Eu(o, e, n);
|
5688
5688
|
return l ? S.invalid(l) : xe(a, c, s, `format ${n}`, e, u);
|
5689
5689
|
}
|
5690
5690
|
/**
|
@@ -5715,7 +5715,7 @@ class S {
|
|
5715
5715
|
* @return {DateTime}
|
5716
5716
|
*/
|
5717
5717
|
static fromSQL(e, n = {}) {
|
5718
|
-
const [s, r] =
|
5718
|
+
const [s, r] = ru(e);
|
5719
5719
|
return xe(s, r, n, "SQL", e);
|
5720
5720
|
}
|
5721
5721
|
/**
|
@@ -5729,7 +5729,7 @@ class S {
|
|
5729
5729
|
throw new P("need to specify a reason the DateTime is invalid");
|
5730
5730
|
const s = e instanceof re ? e : new re(e, n);
|
5731
5731
|
if (M.throwOnInvalid)
|
5732
|
-
throw new
|
5732
|
+
throw new Aa(s);
|
5733
5733
|
return new S({ invalid: s });
|
5734
5734
|
}
|
5735
5735
|
/**
|
@@ -5906,7 +5906,7 @@ class S {
|
|
5906
5906
|
* @type {number}
|
5907
5907
|
*/
|
5908
5908
|
get weekYear() {
|
5909
|
-
return this.isValid ?
|
5909
|
+
return this.isValid ? tn(this).weekYear : NaN;
|
5910
5910
|
}
|
5911
5911
|
/**
|
5912
5912
|
* Get the week number of the week year (1-52ish).
|
@@ -5915,7 +5915,7 @@ class S {
|
|
5915
5915
|
* @type {number}
|
5916
5916
|
*/
|
5917
5917
|
get weekNumber() {
|
5918
|
-
return this.isValid ?
|
5918
|
+
return this.isValid ? tn(this).weekNumber : NaN;
|
5919
5919
|
}
|
5920
5920
|
/**
|
5921
5921
|
* Get the day of the week.
|
@@ -5925,7 +5925,7 @@ class S {
|
|
5925
5925
|
* @type {number}
|
5926
5926
|
*/
|
5927
5927
|
get weekday() {
|
5928
|
-
return this.isValid ?
|
5928
|
+
return this.isValid ? tn(this).weekday : NaN;
|
5929
5929
|
}
|
5930
5930
|
/**
|
5931
5931
|
* Returns true if this date is on a weekend according to the locale, false otherwise
|
@@ -5941,7 +5941,7 @@ class S {
|
|
5941
5941
|
* @returns {number}
|
5942
5942
|
*/
|
5943
5943
|
get localWeekday() {
|
5944
|
-
return this.isValid ?
|
5944
|
+
return this.isValid ? nn(this).weekday : NaN;
|
5945
5945
|
}
|
5946
5946
|
/**
|
5947
5947
|
* Get the week number of the week year according to the locale. Different locales assign week numbers differently,
|
@@ -5950,7 +5950,7 @@ class S {
|
|
5950
5950
|
* @returns {number}
|
5951
5951
|
*/
|
5952
5952
|
get localWeekNumber() {
|
5953
|
-
return this.isValid ?
|
5953
|
+
return this.isValid ? nn(this).weekNumber : NaN;
|
5954
5954
|
}
|
5955
5955
|
/**
|
5956
5956
|
* Get the week year according to the locale. Different locales assign week numbers (and therefor week years)
|
@@ -5958,7 +5958,7 @@ class S {
|
|
5958
5958
|
* @returns {number}
|
5959
5959
|
*/
|
5960
5960
|
get localWeekYear() {
|
5961
|
-
return this.isValid ?
|
5961
|
+
return this.isValid ? nn(this).weekYear : NaN;
|
5962
5962
|
}
|
5963
5963
|
/**
|
5964
5964
|
* Get the ordinal (meaning the day of the year)
|
@@ -5966,7 +5966,7 @@ class S {
|
|
5966
5966
|
* @type {number|DateTime}
|
5967
5967
|
*/
|
5968
5968
|
get ordinal() {
|
5969
|
-
return this.isValid ?
|
5969
|
+
return this.isValid ? Xt(this.c).ordinal : NaN;
|
5970
5970
|
}
|
5971
5971
|
/**
|
5972
5972
|
* Get the human readable short month name, such as 'Oct'.
|
@@ -6059,7 +6059,7 @@ class S {
|
|
6059
6059
|
getPossibleOffsets() {
|
6060
6060
|
if (!this.isValid || this.isOffsetFixed)
|
6061
6061
|
return [this];
|
6062
|
-
const e = 864e5, n = 6e4, s =
|
6062
|
+
const e = 864e5, n = 6e4, s = Bt(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);
|
6063
6063
|
if (o === a)
|
6064
6064
|
return [this];
|
6065
6065
|
const c = s - o * n, u = s - a * n, l = lt(c, o), h = lt(u, a);
|
@@ -6081,7 +6081,7 @@ class S {
|
|
6081
6081
|
* @type {number}
|
6082
6082
|
*/
|
6083
6083
|
get daysInMonth() {
|
6084
|
-
return
|
6084
|
+
return _t(this.year, this.month);
|
6085
6085
|
}
|
6086
6086
|
/**
|
6087
6087
|
* Returns the number of days in this DateTime's year
|
@@ -6205,7 +6205,7 @@ class S {
|
|
6205
6205
|
*/
|
6206
6206
|
set(e) {
|
6207
6207
|
if (!this.isValid) return this;
|
6208
|
-
const n =
|
6208
|
+
const n = At(e, Is), { minDaysInFirstWeek: s, startOfWeek: r } = vs(n, this.loc), i = !v(n.weekYear) || !v(n.weekNumber) || !v(n.weekday), o = !v(n.ordinal), a = !v(n.year), c = !v(n.month) || !v(n.day), u = a || c, l = n.weekYear || n.weekNumber;
|
6209
6209
|
if ((u || o) && l)
|
6210
6210
|
throw new Ae(
|
6211
6211
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
@@ -6214,10 +6214,10 @@ class S {
|
|
6214
6214
|
throw new Ae("Can't mix ordinal dates with month/day");
|
6215
6215
|
let h;
|
6216
6216
|
i ? h = ws(
|
6217
|
-
{ ...
|
6217
|
+
{ ...Nt(this.c, s, r), ...n },
|
6218
6218
|
s,
|
6219
6219
|
r
|
6220
|
-
) : v(n.ordinal) ? (h = { ...this.toObject(), ...n }, v(n.day) && (h.day = Math.min(
|
6220
|
+
) : v(n.ordinal) ? (h = { ...this.toObject(), ...n }, v(n.day) && (h.day = Math.min(_t(h.year, h.month), h.day))) : h = Ss({ ...Xt(this.c), ...n });
|
6221
6221
|
const [g, d] = vt(h, this.o, this.zone);
|
6222
6222
|
return be(this, { ts: g, o: d });
|
6223
6223
|
}
|
@@ -6323,7 +6323,7 @@ class S {
|
|
6323
6323
|
* @return {string}
|
6324
6324
|
*/
|
6325
6325
|
toFormat(e, n = {}) {
|
6326
|
-
return this.isValid ? W.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this, e) :
|
6326
|
+
return this.isValid ? W.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this, e) : en;
|
6327
6327
|
}
|
6328
6328
|
/**
|
6329
6329
|
* Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.
|
@@ -6344,8 +6344,8 @@ class S {
|
|
6344
6344
|
* @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'
|
6345
6345
|
* @return {string}
|
6346
6346
|
*/
|
6347
|
-
toLocaleString(e =
|
6348
|
-
return this.isValid ? W.create(this.loc.clone(n), e).formatDateTime(this) :
|
6347
|
+
toLocaleString(e = xt, n = {}) {
|
6348
|
+
return this.isValid ? W.create(this.loc.clone(n), e).formatDateTime(this) : en;
|
6349
6349
|
}
|
6350
6350
|
/**
|
6351
6351
|
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
|
@@ -6387,7 +6387,7 @@ class S {
|
|
6387
6387
|
if (!this.isValid)
|
6388
6388
|
return null;
|
6389
6389
|
const o = e === "extended";
|
6390
|
-
let a =
|
6390
|
+
let a = sn(this, o);
|
6391
6391
|
return a += "T", a += Rs(this, o, n, s, r, i), a;
|
6392
6392
|
}
|
6393
6393
|
/**
|
@@ -6399,7 +6399,7 @@ class S {
|
|
6399
6399
|
* @return {string}
|
6400
6400
|
*/
|
6401
6401
|
toISODate({ format: e = "extended" } = {}) {
|
6402
|
-
return this.isValid ?
|
6402
|
+
return this.isValid ? sn(this, e === "extended") : null;
|
6403
6403
|
}
|
6404
6404
|
/**
|
6405
6405
|
* Returns an ISO 8601-compliant string representation of this DateTime's week date
|
@@ -6467,7 +6467,7 @@ class S {
|
|
6467
6467
|
* @return {string}
|
6468
6468
|
*/
|
6469
6469
|
toSQLDate() {
|
6470
|
-
return this.isValid ?
|
6470
|
+
return this.isValid ? sn(this, !0) : null;
|
6471
6471
|
}
|
6472
6472
|
/**
|
6473
6473
|
* Returns a string representation of this DateTime appropriate for use in SQL Time
|
@@ -6505,7 +6505,7 @@ class S {
|
|
6505
6505
|
* @return {string}
|
6506
6506
|
*/
|
6507
6507
|
toString() {
|
6508
|
-
return this.isValid ? this.toISO() :
|
6508
|
+
return this.isValid ? this.toISO() : en;
|
6509
6509
|
}
|
6510
6510
|
/**
|
6511
6511
|
* Returns a string representation of this DateTime appropriate for the REPL.
|
@@ -6594,7 +6594,7 @@ class S {
|
|
6594
6594
|
diff(e, n = "milliseconds", s = {}) {
|
6595
6595
|
if (!this.isValid || !e.isValid)
|
6596
6596
|
return k.invalid("created by diffing an invalid DateTime");
|
6597
|
-
const r = { locale: this.locale, numberingSystem: this.numberingSystem, ...s }, i =
|
6597
|
+
const r = { locale: this.locale, numberingSystem: this.numberingSystem, ...s }, i = ac(n).map(k.normalizeUnit), o = e.valueOf() > this.valueOf(), a = o ? this : e, c = o ? e : this, u = fu(a, c, i, r);
|
6598
6598
|
return o ? u.negate() : u;
|
6599
6599
|
}
|
6600
6600
|
/**
|
@@ -6794,7 +6794,7 @@ class S {
|
|
6794
6794
|
* @type {Object}
|
6795
6795
|
*/
|
6796
6796
|
static get DATE_SHORT() {
|
6797
|
-
return
|
6797
|
+
return xt;
|
6798
6798
|
}
|
6799
6799
|
/**
|
6800
6800
|
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983'
|
@@ -6808,7 +6808,7 @@ class S {
|
|
6808
6808
|
* @type {Object}
|
6809
6809
|
*/
|
6810
6810
|
static get DATE_MED_WITH_WEEKDAY() {
|
6811
|
-
return
|
6811
|
+
return Ia;
|
6812
6812
|
}
|
6813
6813
|
/**
|
6814
6814
|
* {@link DateTime#toLocaleString} format like 'October 14, 1983'
|
@@ -6913,7 +6913,7 @@ class S {
|
|
6913
6913
|
* @type {Object}
|
6914
6914
|
*/
|
6915
6915
|
static get DATETIME_MED_WITH_WEEKDAY() {
|
6916
|
-
return
|
6916
|
+
return Da;
|
6917
6917
|
}
|
6918
6918
|
/**
|
6919
6919
|
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
@@ -6955,28 +6955,28 @@ function He(t) {
|
|
6955
6955
|
`Unknown datetime argument: ${t}, of type ${typeof t}`
|
6956
6956
|
);
|
6957
6957
|
}
|
6958
|
-
const
|
6958
|
+
const Mu = {}, Ru = {
|
6959
6959
|
xmlns: "http://www.w3.org/2000/svg",
|
6960
6960
|
viewBox: "0 0 512 512"
|
6961
|
-
},
|
6961
|
+
}, Iu = /* @__PURE__ */ w("path", {
|
6962
6962
|
fill: "rgb(248 113 113)",
|
6963
6963
|
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"
|
6964
|
-
}, null, -1),
|
6965
|
-
|
6964
|
+
}, null, -1), Du = [
|
6965
|
+
Iu
|
6966
6966
|
];
|
6967
|
-
function
|
6968
|
-
return
|
6967
|
+
function Lu(t, e) {
|
6968
|
+
return L(), B("svg", Ru, Du);
|
6969
6969
|
}
|
6970
|
-
const
|
6970
|
+
const Fu = /* @__PURE__ */ oe(Mu, [["render", Lu]]), Vu = { class: "messages-container-list" }, Bu = { class: "message-container" }, $u = {
|
6971
6971
|
key: 0,
|
6972
6972
|
class: "btn-container-widget"
|
6973
|
-
},
|
6973
|
+
}, Uu = ["onClick"], Pu = { class: "chat-message" }, Wu = { class: "message-text" }, qu = { class: "detail-message flex justify-content-between" }, Hu = {
|
6974
6974
|
key: 0,
|
6975
6975
|
class: "mr-5"
|
6976
|
-
},
|
6976
|
+
}, zu = {
|
6977
6977
|
key: 1,
|
6978
6978
|
class: "mr-5"
|
6979
|
-
},
|
6979
|
+
}, Zu = /* @__PURE__ */ On({
|
6980
6980
|
__name: "MessageList",
|
6981
6981
|
props: {
|
6982
6982
|
messages: {
|
@@ -6990,7 +6990,7 @@ const Lu = /* @__PURE__ */ oe(Au, [["render", Du]]), Fu = { class: "messages-con
|
|
6990
6990
|
},
|
6991
6991
|
emits: ["loadMore", "retry"],
|
6992
6992
|
setup(t, { emit: e }) {
|
6993
|
-
const n = t, s = q(), { pause: r, resume: i } =
|
6993
|
+
const n = t, s = q(), { pause: r, resume: i } = _a(
|
6994
6994
|
s,
|
6995
6995
|
([{ isIntersecting: o }]) => {
|
6996
6996
|
o && e("loadMore");
|
@@ -6998,7 +6998,7 @@ const Lu = /* @__PURE__ */ oe(Au, [["render", Du]]), Fu = { class: "messages-con
|
|
6998
6998
|
);
|
6999
6999
|
return Li(() => {
|
7000
7000
|
n.canLoadMoreMessages || r();
|
7001
|
-
}),
|
7001
|
+
}), En(
|
7002
7002
|
() => n.canLoadMoreMessages,
|
7003
7003
|
(o) => {
|
7004
7004
|
if (o) {
|
@@ -7007,21 +7007,21 @@ const Lu = /* @__PURE__ */ oe(Au, [["render", Du]]), Fu = { class: "messages-con
|
|
7007
7007
|
}
|
7008
7008
|
r();
|
7009
7009
|
}
|
7010
|
-
), (o, a) => (
|
7010
|
+
), (o, a) => (L(), B(Hn, null, [
|
7011
7011
|
w("div", {
|
7012
7012
|
ref_key: "target",
|
7013
7013
|
ref: s,
|
7014
7014
|
class: "target"
|
7015
7015
|
}, null, 512),
|
7016
|
-
w("div",
|
7017
|
-
(
|
7016
|
+
w("div", Vu, [
|
7017
|
+
(L(!0), B(Hn, null, Fi(n.messages, (c) => {
|
7018
7018
|
var u, l;
|
7019
|
-
return
|
7019
|
+
return L(), B("div", {
|
7020
7020
|
key: c.id,
|
7021
7021
|
class: Me(["message", c.esCliente ? "message-right" : "message-left"])
|
7022
7022
|
}, [
|
7023
|
-
w("div",
|
7024
|
-
c.error && c.esCliente ? (
|
7023
|
+
w("div", Bu, [
|
7024
|
+
c.error && c.esCliente ? (L(), B("div", $u, [
|
7025
7025
|
w("button", {
|
7026
7026
|
text: "",
|
7027
7027
|
rounded: "",
|
@@ -7030,19 +7030,19 @@ const Lu = /* @__PURE__ */ oe(Au, [["render", Du]]), Fu = { class: "messages-con
|
|
7030
7030
|
"aria-label": "Cancel",
|
7031
7031
|
onClick: (h) => e("retry", c)
|
7032
7032
|
}, [
|
7033
|
-
|
7034
|
-
], 8,
|
7035
|
-
])) :
|
7036
|
-
w("div",
|
7033
|
+
he(Fu)
|
7034
|
+
], 8, Uu)
|
7035
|
+
])) : Ct("", !0),
|
7036
|
+
w("div", Pu, [
|
7037
7037
|
w("div", {
|
7038
7038
|
class: Me(["bubble", c.esCliente ? "right" : "left"])
|
7039
7039
|
}, [
|
7040
7040
|
w("div", {
|
7041
7041
|
class: Me(c.esCliente ? "content-right" : "content-left")
|
7042
7042
|
}, [
|
7043
|
-
w("div",
|
7044
|
-
w("div",
|
7045
|
-
(u = c.sender) != null && u.nombreCompleto ? (
|
7043
|
+
w("div", Wu, Je(c.message), 1),
|
7044
|
+
w("div", qu, [
|
7045
|
+
(u = c.sender) != null && u.nombreCompleto ? (L(), B("span", Hu, Je(c.esCliente ? (l = c.sender) == null ? void 0 : l.nombreCompleto : "ECOSISTEMA JL"), 1)) : (L(), B("span", zu)),
|
7046
7046
|
w("span", null, Je(js(S).fromISO(c.createdAt).toFormat(
|
7047
7047
|
"dd-MM-yyyy HH:mm"
|
7048
7048
|
)), 1)
|
@@ -7056,42 +7056,42 @@ const Lu = /* @__PURE__ */ oe(Au, [["render", Du]]), Fu = { class: "messages-con
|
|
7056
7056
|
])
|
7057
7057
|
], 64));
|
7058
7058
|
}
|
7059
|
-
}),
|
7059
|
+
}), ju = /* @__PURE__ */ oe(Zu, [["__scopeId", "data-v-a9fc4a05"]]), Yu = {}, yi = (t) => (Vi("data-v-d9a6b2b7"), t = t(), Bi(), t), Ju = {
|
7060
7060
|
viewBox: "0 0 24 24",
|
7061
7061
|
xmlns: "http://www.w3.org/2000/svg",
|
7062
7062
|
style: { width: "28px", height: "28px" }
|
7063
|
-
},
|
7063
|
+
}, Gu = /* @__PURE__ */ yi(() => /* @__PURE__ */ w("path", {
|
7064
7064
|
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",
|
7065
7065
|
opacity: ".25"
|
7066
|
-
}, null, -1)),
|
7066
|
+
}, null, -1)), Ku = /* @__PURE__ */ yi(() => /* @__PURE__ */ w("path", {
|
7067
7067
|
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",
|
7068
7068
|
class: "spinner_ajPY"
|
7069
|
-
}, null, -1)),
|
7070
|
-
|
7071
|
-
|
7069
|
+
}, null, -1)), Xu = [
|
7070
|
+
Gu,
|
7071
|
+
Ku
|
7072
7072
|
];
|
7073
|
-
function
|
7074
|
-
return
|
7073
|
+
function Qu(t, e) {
|
7074
|
+
return L(), B("svg", Ju, Xu);
|
7075
7075
|
}
|
7076
|
-
const
|
7077
|
-
function
|
7076
|
+
const el = /* @__PURE__ */ oe(Yu, [["render", Qu], ["__scopeId", "data-v-d9a6b2b7"]]);
|
7077
|
+
function tl(t, e, n) {
|
7078
7078
|
for (let s = t.length - 1; s >= 0; s--)
|
7079
7079
|
if (t[s][e] === n) return s;
|
7080
7080
|
return -1;
|
7081
7081
|
}
|
7082
|
-
const
|
7083
|
-
|
7084
|
-
|
7085
|
-
|
7086
|
-
|
7087
|
-
|
7088
|
-
|
7089
|
-
|
7082
|
+
const ue = /* @__PURE__ */ Object.create(null);
|
7083
|
+
ue.open = "0";
|
7084
|
+
ue.close = "1";
|
7085
|
+
ue.ping = "2";
|
7086
|
+
ue.pong = "3";
|
7087
|
+
ue.message = "4";
|
7088
|
+
ue.upgrade = "5";
|
7089
|
+
ue.noop = "6";
|
7090
7090
|
const kt = /* @__PURE__ */ Object.create(null);
|
7091
|
-
Object.keys(
|
7092
|
-
kt[
|
7091
|
+
Object.keys(ue).forEach((t) => {
|
7092
|
+
kt[ue[t]] = t;
|
7093
7093
|
});
|
7094
|
-
const
|
7094
|
+
const wn = { type: "error", data: "parser error" }, gi = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", wi = typeof ArrayBuffer == "function", Si = (t) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t && t.buffer instanceof ArrayBuffer, Bn = ({ type: t, data: e }, n, s) => gi && e instanceof Blob ? n ? s(e) : Vs(e, s) : wi && (e instanceof ArrayBuffer || Si(e)) ? n ? s(e) : Vs(new Blob([e]), s) : s(ue[t] + (e || "")), Vs = (t, e) => {
|
7095
7095
|
const n = new FileReader();
|
7096
7096
|
return n.onload = function() {
|
7097
7097
|
const s = n.result.split(",")[1];
|
@@ -7101,27 +7101,27 @@ const gn = { type: "error", data: "parser error" }, gi = typeof Blob == "functio
|
|
7101
7101
|
function Bs(t) {
|
7102
7102
|
return t instanceof Uint8Array ? t : t instanceof ArrayBuffer ? new Uint8Array(t) : new Uint8Array(t.buffer, t.byteOffset, t.byteLength);
|
7103
7103
|
}
|
7104
|
-
let
|
7105
|
-
function
|
7104
|
+
let rn;
|
7105
|
+
function nl(t, e) {
|
7106
7106
|
if (gi && t.data instanceof Blob)
|
7107
7107
|
return t.data.arrayBuffer().then(Bs).then(e);
|
7108
7108
|
if (wi && (t.data instanceof ArrayBuffer || Si(t.data)))
|
7109
7109
|
return e(Bs(t.data));
|
7110
7110
|
Bn(t, !1, (n) => {
|
7111
|
-
|
7111
|
+
rn || (rn = new TextEncoder()), e(rn.encode(n));
|
7112
7112
|
});
|
7113
7113
|
}
|
7114
7114
|
const $s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ye = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
7115
7115
|
for (let t = 0; t < $s.length; t++)
|
7116
7116
|
Ye[$s.charCodeAt(t)] = t;
|
7117
|
-
const
|
7117
|
+
const sl = (t) => {
|
7118
7118
|
let e = t.length * 0.75, n = t.length, s, r = 0, i, o, a, c;
|
7119
7119
|
t[t.length - 1] === "=" && (e--, t[t.length - 2] === "=" && e--);
|
7120
7120
|
const u = new ArrayBuffer(e), l = new Uint8Array(u);
|
7121
7121
|
for (s = 0; s < n; s += 4)
|
7122
7122
|
i = Ye[t.charCodeAt(s)], o = Ye[t.charCodeAt(s + 1)], a = Ye[t.charCodeAt(s + 2)], c = Ye[t.charCodeAt(s + 3)], l[r++] = i << 2 | o >> 4, l[r++] = (o & 15) << 4 | a >> 2, l[r++] = (a & 3) << 6 | c & 63;
|
7123
7123
|
return u;
|
7124
|
-
},
|
7124
|
+
}, rl = typeof ArrayBuffer == "function", $n = (t, e) => {
|
7125
7125
|
if (typeof t != "string")
|
7126
7126
|
return {
|
7127
7127
|
type: "message",
|
@@ -7130,16 +7130,16 @@ const nl = (t) => {
|
|
7130
7130
|
const n = t.charAt(0);
|
7131
7131
|
return n === "b" ? {
|
7132
7132
|
type: "message",
|
7133
|
-
data:
|
7133
|
+
data: il(t.substring(1), e)
|
7134
7134
|
} : kt[n] ? t.length > 1 ? {
|
7135
7135
|
type: kt[n],
|
7136
7136
|
data: t.substring(1)
|
7137
7137
|
} : {
|
7138
7138
|
type: kt[n]
|
7139
|
-
} :
|
7140
|
-
},
|
7141
|
-
if (
|
7142
|
-
const n =
|
7139
|
+
} : wn;
|
7140
|
+
}, il = (t, e) => {
|
7141
|
+
if (rl) {
|
7142
|
+
const n = sl(t);
|
7143
7143
|
return vi(n, e);
|
7144
7144
|
} else
|
7145
7145
|
return { base64: !0, data: t };
|
@@ -7151,7 +7151,7 @@ const nl = (t) => {
|
|
7151
7151
|
default:
|
7152
7152
|
return t instanceof ArrayBuffer ? t : t.buffer;
|
7153
7153
|
}
|
7154
|
-
}, bi = "",
|
7154
|
+
}, bi = "", ol = (t, e) => {
|
7155
7155
|
const n = t.length, s = new Array(n);
|
7156
7156
|
let r = 0;
|
7157
7157
|
t.forEach((i, o) => {
|
@@ -7159,7 +7159,7 @@ const nl = (t) => {
|
|
7159
7159
|
s[o] = a, ++r === n && e(s.join(bi));
|
7160
7160
|
});
|
7161
7161
|
});
|
7162
|
-
},
|
7162
|
+
}, al = (t, e) => {
|
7163
7163
|
const n = t.split(bi), s = [];
|
7164
7164
|
for (let r = 0; r < n.length; r++) {
|
7165
7165
|
const i = $n(n[r], e);
|
@@ -7168,10 +7168,10 @@ const nl = (t) => {
|
|
7168
7168
|
}
|
7169
7169
|
return s;
|
7170
7170
|
};
|
7171
|
-
function
|
7171
|
+
function cl() {
|
7172
7172
|
return new TransformStream({
|
7173
7173
|
transform(t, e) {
|
7174
|
-
|
7174
|
+
nl(t, (n) => {
|
7175
7175
|
const s = n.length;
|
7176
7176
|
let r;
|
7177
7177
|
if (s < 126)
|
@@ -7190,7 +7190,7 @@ function al() {
|
|
7190
7190
|
}
|
7191
7191
|
});
|
7192
7192
|
}
|
7193
|
-
let
|
7193
|
+
let on;
|
7194
7194
|
function ht(t) {
|
7195
7195
|
return t.reduce((e, n) => e + n.length, 0);
|
7196
7196
|
}
|
@@ -7203,8 +7203,8 @@ function dt(t, e) {
|
|
7203
7203
|
n[r] = t[0][s++], s === t[0].length && (t.shift(), s = 0);
|
7204
7204
|
return t.length && s < t[0].length && (t[0] = t[0].slice(s)), n;
|
7205
7205
|
}
|
7206
|
-
function
|
7207
|
-
|
7206
|
+
function ul(t, e) {
|
7207
|
+
on || (on = new TextDecoder());
|
7208
7208
|
const n = [];
|
7209
7209
|
let s = 0, r = -1, i = !1;
|
7210
7210
|
return new TransformStream({
|
@@ -7225,7 +7225,7 @@ function cl(t, e) {
|
|
7225
7225
|
break;
|
7226
7226
|
const c = dt(n, 8), u = new DataView(c.buffer, c.byteOffset, c.length), l = u.getUint32(0);
|
7227
7227
|
if (l > Math.pow(2, 21) - 1) {
|
7228
|
-
a.enqueue(
|
7228
|
+
a.enqueue(wn);
|
7229
7229
|
break;
|
7230
7230
|
}
|
7231
7231
|
r = l * Math.pow(2, 32) + u.getUint32(4), s = 3;
|
@@ -7233,10 +7233,10 @@ function cl(t, e) {
|
|
7233
7233
|
if (ht(n) < r)
|
7234
7234
|
break;
|
7235
7235
|
const c = dt(n, r);
|
7236
|
-
a.enqueue($n(i ? c :
|
7236
|
+
a.enqueue($n(i ? c : on.decode(c), e)), s = 0;
|
7237
7237
|
}
|
7238
7238
|
if (r === 0 || r > t) {
|
7239
|
-
a.enqueue(
|
7239
|
+
a.enqueue(wn);
|
7240
7240
|
break;
|
7241
7241
|
}
|
7242
7242
|
}
|
@@ -7245,9 +7245,9 @@ function cl(t, e) {
|
|
7245
7245
|
}
|
7246
7246
|
const Ti = 4;
|
7247
7247
|
function D(t) {
|
7248
|
-
if (t) return
|
7248
|
+
if (t) return ll(t);
|
7249
7249
|
}
|
7250
|
-
function
|
7250
|
+
function ll(t) {
|
7251
7251
|
for (var e in D.prototype)
|
7252
7252
|
t[e] = D.prototype[e];
|
7253
7253
|
return t;
|
@@ -7297,27 +7297,27 @@ const G = typeof self < "u" ? self : typeof window < "u" ? window : Function("re
|
|
7297
7297
|
function ki(t, ...e) {
|
7298
7298
|
return e.reduce((n, s) => (t.hasOwnProperty(s) && (n[s] = t[s]), n), {});
|
7299
7299
|
}
|
7300
|
-
const
|
7301
|
-
function
|
7302
|
-
e.useNativeTimers ? (t.setTimeoutFn =
|
7303
|
-
}
|
7304
|
-
const hl = 1.33;
|
7305
|
-
function dl(t) {
|
7306
|
-
return typeof t == "string" ? ml(t) : Math.ceil((t.byteLength || t.size) * hl);
|
7300
|
+
const fl = G.setTimeout, hl = G.clearTimeout;
|
7301
|
+
function Pt(t, e) {
|
7302
|
+
e.useNativeTimers ? (t.setTimeoutFn = fl.bind(G), t.clearTimeoutFn = hl.bind(G)) : (t.setTimeoutFn = G.setTimeout.bind(G), t.clearTimeoutFn = G.clearTimeout.bind(G));
|
7307
7303
|
}
|
7304
|
+
const dl = 1.33;
|
7308
7305
|
function ml(t) {
|
7306
|
+
return typeof t == "string" ? pl(t) : Math.ceil((t.byteLength || t.size) * dl);
|
7307
|
+
}
|
7308
|
+
function pl(t) {
|
7309
7309
|
let e = 0, n = 0;
|
7310
7310
|
for (let s = 0, r = t.length; s < r; s++)
|
7311
7311
|
e = t.charCodeAt(s), e < 128 ? n += 1 : e < 2048 ? n += 2 : e < 55296 || e >= 57344 ? n += 3 : (s++, n += 4);
|
7312
7312
|
return n;
|
7313
7313
|
}
|
7314
|
-
function
|
7314
|
+
function yl(t) {
|
7315
7315
|
let e = "";
|
7316
7316
|
for (let n in t)
|
7317
7317
|
t.hasOwnProperty(n) && (e.length && (e += "&"), e += encodeURIComponent(n) + "=" + encodeURIComponent(t[n]));
|
7318
7318
|
return e;
|
7319
7319
|
}
|
7320
|
-
function
|
7320
|
+
function gl(t) {
|
7321
7321
|
let e = {}, n = t.split("&");
|
7322
7322
|
for (let s = 0, r = n.length; s < r; s++) {
|
7323
7323
|
let i = n[s].split("=");
|
@@ -7325,7 +7325,7 @@ function yl(t) {
|
|
7325
7325
|
}
|
7326
7326
|
return e;
|
7327
7327
|
}
|
7328
|
-
class
|
7328
|
+
class wl extends Error {
|
7329
7329
|
constructor(e, n, s) {
|
7330
7330
|
super(e), this.description = n, this.context = s, this.type = "TransportError";
|
7331
7331
|
}
|
@@ -7338,7 +7338,7 @@ class Un extends D {
|
|
7338
7338
|
* @protected
|
7339
7339
|
*/
|
7340
7340
|
constructor(e) {
|
7341
|
-
super(), this.writable = !1,
|
7341
|
+
super(), this.writable = !1, Pt(this, e), this.opts = e, this.query = e.query, this.socket = e.socket;
|
7342
7342
|
}
|
7343
7343
|
/**
|
7344
7344
|
* Emits an error.
|
@@ -7350,7 +7350,7 @@ class Un extends D {
|
|
7350
7350
|
* @protected
|
7351
7351
|
*/
|
7352
7352
|
onError(e, n, s) {
|
7353
|
-
return super.emitReserved("error", new
|
7353
|
+
return super.emitReserved("error", new wl(e, n, s)), this;
|
7354
7354
|
}
|
7355
7355
|
/**
|
7356
7356
|
* Opens the transport.
|
@@ -7424,16 +7424,16 @@ class Un extends D {
|
|
7424
7424
|
return this.opts.port && (this.opts.secure && +(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80) ? ":" + this.opts.port : "";
|
7425
7425
|
}
|
7426
7426
|
_query(e) {
|
7427
|
-
const n =
|
7427
|
+
const n = yl(e);
|
7428
7428
|
return n.length ? "?" + n : "";
|
7429
7429
|
}
|
7430
7430
|
}
|
7431
|
-
const Ei = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),
|
7431
|
+
const Ei = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Sn = 64, Sl = {};
|
7432
7432
|
let Us = 0, mt = 0, Ps;
|
7433
7433
|
function Ws(t) {
|
7434
7434
|
let e = "";
|
7435
7435
|
do
|
7436
|
-
e = Ei[t %
|
7436
|
+
e = Ei[t % Sn] + e, t = Math.floor(t / Sn);
|
7437
7437
|
while (t > 0);
|
7438
7438
|
return e;
|
7439
7439
|
}
|
@@ -7441,18 +7441,18 @@ function Oi() {
|
|
7441
7441
|
const t = Ws(+/* @__PURE__ */ new Date());
|
7442
7442
|
return t !== Ps ? (Us = 0, Ps = t) : t + "." + Ws(Us++);
|
7443
7443
|
}
|
7444
|
-
for (; mt <
|
7445
|
-
|
7444
|
+
for (; mt < Sn; mt++)
|
7445
|
+
Sl[Ei[mt]] = mt;
|
7446
7446
|
let Ci = !1;
|
7447
7447
|
try {
|
7448
7448
|
Ci = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
|
7449
7449
|
} catch {
|
7450
7450
|
}
|
7451
|
-
const
|
7451
|
+
const vl = Ci;
|
7452
7452
|
function xi(t) {
|
7453
7453
|
const e = t.xdomain;
|
7454
7454
|
try {
|
7455
|
-
if (typeof XMLHttpRequest < "u" && (!e ||
|
7455
|
+
if (typeof XMLHttpRequest < "u" && (!e || vl))
|
7456
7456
|
return new XMLHttpRequest();
|
7457
7457
|
} catch {
|
7458
7458
|
}
|
@@ -7462,14 +7462,14 @@ function xi(t) {
|
|
7462
7462
|
} catch {
|
7463
7463
|
}
|
7464
7464
|
}
|
7465
|
-
function
|
7465
|
+
function bl() {
|
7466
7466
|
}
|
7467
|
-
const
|
7467
|
+
const Tl = function() {
|
7468
7468
|
return new xi({
|
7469
7469
|
xdomain: !1
|
7470
7470
|
}).responseType != null;
|
7471
7471
|
}();
|
7472
|
-
class
|
7472
|
+
class kl extends Un {
|
7473
7473
|
/**
|
7474
7474
|
* XHR Polling constructor.
|
7475
7475
|
*
|
@@ -7483,7 +7483,7 @@ class Tl extends Un {
|
|
7483
7483
|
r || (r = s ? "443" : "80"), this.xd = typeof location < "u" && e.hostname !== location.hostname || r !== e.port;
|
7484
7484
|
}
|
7485
7485
|
const n = e && e.forceBase64;
|
7486
|
-
this.supportsBinary =
|
7486
|
+
this.supportsBinary = Tl && !n, this.opts.withCredentials && (this.cookieJar = void 0);
|
7487
7487
|
}
|
7488
7488
|
get name() {
|
7489
7489
|
return "polling";
|
@@ -7537,7 +7537,7 @@ class Tl extends Un {
|
|
7537
7537
|
return this.onClose({ description: "transport closed by the server" }), !1;
|
7538
7538
|
this.onPacket(s);
|
7539
7539
|
};
|
7540
|
-
|
7540
|
+
al(e, this.socket.binaryType).forEach(n), this.readyState !== "closed" && (this.polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this.poll());
|
7541
7541
|
}
|
7542
7542
|
/**
|
7543
7543
|
* For polling, send a close packet.
|
@@ -7557,7 +7557,7 @@ class Tl extends Un {
|
|
7557
7557
|
* @protected
|
7558
7558
|
*/
|
7559
7559
|
write(e) {
|
7560
|
-
this.writable = !1,
|
7560
|
+
this.writable = !1, ol(e, (n) => {
|
7561
7561
|
this.doWrite(n, () => {
|
7562
7562
|
this.writable = !0, this.emitReserved("drain");
|
7563
7563
|
});
|
@@ -7579,7 +7579,7 @@ class Tl extends Un {
|
|
7579
7579
|
* @private
|
7580
7580
|
*/
|
7581
7581
|
request(e = {}) {
|
7582
|
-
return Object.assign(e, { xd: this.xd, cookieJar: this.cookieJar }, this.opts), new
|
7582
|
+
return Object.assign(e, { xd: this.xd, cookieJar: this.cookieJar }, this.opts), new ce(this.uri(), e);
|
7583
7583
|
}
|
7584
7584
|
/**
|
7585
7585
|
* Sends data.
|
@@ -7609,7 +7609,7 @@ class Tl extends Un {
|
|
7609
7609
|
}), this.pollXhr = e;
|
7610
7610
|
}
|
7611
7611
|
}
|
7612
|
-
class
|
7612
|
+
class ce extends D {
|
7613
7613
|
/**
|
7614
7614
|
* Request constructor
|
7615
7615
|
*
|
@@ -7617,7 +7617,7 @@ class ue extends D {
|
|
7617
7617
|
* @package
|
7618
7618
|
*/
|
7619
7619
|
constructor(e, n) {
|
7620
|
-
super(),
|
7620
|
+
super(), Pt(this, n), this.opts = n, this.method = n.method || "GET", this.uri = e, this.data = n.data !== void 0 ? n.data : null, this.create();
|
7621
7621
|
}
|
7622
7622
|
/**
|
7623
7623
|
* Creates the XHR object and sends the request.
|
@@ -7660,7 +7660,7 @@ class ue extends D {
|
|
7660
7660
|
}, 0);
|
7661
7661
|
return;
|
7662
7662
|
}
|
7663
|
-
typeof document < "u" && (this.index =
|
7663
|
+
typeof document < "u" && (this.index = ce.requestsCount++, ce.requests[this.index] = this);
|
7664
7664
|
}
|
7665
7665
|
/**
|
7666
7666
|
* Called upon error.
|
@@ -7677,12 +7677,12 @@ class ue extends D {
|
|
7677
7677
|
*/
|
7678
7678
|
cleanup(e) {
|
7679
7679
|
if (!(typeof this.xhr > "u" || this.xhr === null)) {
|
7680
|
-
if (this.xhr.onreadystatechange =
|
7680
|
+
if (this.xhr.onreadystatechange = bl, e)
|
7681
7681
|
try {
|
7682
7682
|
this.xhr.abort();
|
7683
7683
|
} catch {
|
7684
7684
|
}
|
7685
|
-
typeof document < "u" && delete
|
7685
|
+
typeof document < "u" && delete ce.requests[this.index], this.xhr = null;
|
7686
7686
|
}
|
7687
7687
|
}
|
7688
7688
|
/**
|
@@ -7703,8 +7703,8 @@ class ue extends D {
|
|
7703
7703
|
this.cleanup();
|
7704
7704
|
}
|
7705
7705
|
}
|
7706
|
-
|
7707
|
-
|
7706
|
+
ce.requestsCount = 0;
|
7707
|
+
ce.requests = {};
|
7708
7708
|
if (typeof document < "u") {
|
7709
7709
|
if (typeof attachEvent == "function")
|
7710
7710
|
attachEvent("onunload", qs);
|
@@ -7714,11 +7714,11 @@ if (typeof document < "u") {
|
|
7714
7714
|
}
|
7715
7715
|
}
|
7716
7716
|
function qs() {
|
7717
|
-
for (let t in
|
7718
|
-
|
7717
|
+
for (let t in ce.requests)
|
7718
|
+
ce.requests.hasOwnProperty(t) && ce.requests[t].abort();
|
7719
7719
|
}
|
7720
|
-
const Pn = typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, n) => n(e, 0), pt = G.WebSocket || G.MozWebSocket, Hs = !0,
|
7721
|
-
class
|
7720
|
+
const Pn = typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, n) => n(e, 0), pt = G.WebSocket || G.MozWebSocket, Hs = !0, El = "arraybuffer", zs = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
7721
|
+
class Ol extends Un {
|
7722
7722
|
/**
|
7723
7723
|
* WebSocket transport constructor.
|
7724
7724
|
*
|
@@ -7794,7 +7794,7 @@ class El extends Un {
|
|
7794
7794
|
return !!pt;
|
7795
7795
|
}
|
7796
7796
|
}
|
7797
|
-
class
|
7797
|
+
class Cl extends Un {
|
7798
7798
|
get name() {
|
7799
7799
|
return "webtransport";
|
7800
7800
|
}
|
@@ -7805,7 +7805,7 @@ class Ol extends Un {
|
|
7805
7805
|
this.onError("webtransport error", e);
|
7806
7806
|
}), this.transport.ready.then(() => {
|
7807
7807
|
this.transport.createBidirectionalStream().then((e) => {
|
7808
|
-
const n =
|
7808
|
+
const n = ul(Number.MAX_SAFE_INTEGER, this.socket.binaryType), s = e.readable.pipeThrough(n).getReader(), r = cl();
|
7809
7809
|
r.readable.pipeTo(e.writable), this.writer = r.writable.getWriter();
|
7810
7810
|
const i = () => {
|
7811
7811
|
s.read().then(({ done: a, value: c }) => {
|
@@ -7835,11 +7835,11 @@ class Ol extends Un {
|
|
7835
7835
|
(e = this.transport) === null || e === void 0 || e.close();
|
7836
7836
|
}
|
7837
7837
|
}
|
7838
|
-
const
|
7839
|
-
websocket:
|
7840
|
-
webtransport:
|
7841
|
-
polling:
|
7842
|
-
},
|
7838
|
+
const xl = {
|
7839
|
+
websocket: Ol,
|
7840
|
+
webtransport: Cl,
|
7841
|
+
polling: kl
|
7842
|
+
}, Nl = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, _l = [
|
7843
7843
|
"source",
|
7844
7844
|
"protocol",
|
7845
7845
|
"authority",
|
@@ -7855,19 +7855,19 @@ const Cl = {
|
|
7855
7855
|
"query",
|
7856
7856
|
"anchor"
|
7857
7857
|
];
|
7858
|
-
function
|
7858
|
+
function vn(t) {
|
7859
7859
|
const e = t, n = t.indexOf("["), s = t.indexOf("]");
|
7860
7860
|
n != -1 && s != -1 && (t = t.substring(0, n) + t.substring(n, s).replace(/:/g, ";") + t.substring(s, t.length));
|
7861
|
-
let r =
|
7861
|
+
let r = Nl.exec(t || ""), i = {}, o = 14;
|
7862
7862
|
for (; o--; )
|
7863
|
-
i[
|
7864
|
-
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 =
|
7863
|
+
i[_l[o]] = r[o] || "";
|
7864
|
+
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 = Al(i, i.path), i.queryKey = Ml(i, i.query), i;
|
7865
7865
|
}
|
7866
|
-
function
|
7866
|
+
function Al(t, e) {
|
7867
7867
|
const n = /\/{2,9}/g, s = e.replace(n, "/").split("/");
|
7868
7868
|
return (e.slice(0, 1) == "/" || e.length === 0) && s.splice(0, 1), e.slice(-1) == "/" && s.splice(s.length - 1, 1), s;
|
7869
7869
|
}
|
7870
|
-
function
|
7870
|
+
function Ml(t, e) {
|
7871
7871
|
const n = {};
|
7872
7872
|
return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function(s, r, i) {
|
7873
7873
|
r && (n[r] = i);
|
@@ -7881,7 +7881,7 @@ let Ni = class _e extends D {
|
|
7881
7881
|
* @param {Object} opts - options
|
7882
7882
|
*/
|
7883
7883
|
constructor(e, n = {}) {
|
7884
|
-
super(), this.binaryType =
|
7884
|
+
super(), this.binaryType = El, this.writeBuffer = [], e && typeof e == "object" && (n = e, e = null), e ? (e = vn(e), n.hostname = e.host, n.secure = e.protocol === "https" || e.protocol === "wss", n.port = e.port, e.query && (n.query = e.query)) : n.host && (n.hostname = vn(n.host).host), Pt(this, n), this.secure = n.secure != null ? n.secure : typeof location < "u" && location.protocol === "https:", n.hostname && !n.port && (n.port = this.secure ? "443" : "80"), this.hostname = n.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = n.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = n.transports || [
|
7885
7885
|
"polling",
|
7886
7886
|
"websocket",
|
7887
7887
|
"webtransport"
|
@@ -7899,7 +7899,7 @@ let Ni = class _e extends D {
|
|
7899
7899
|
},
|
7900
7900
|
transportOptions: {},
|
7901
7901
|
closeOnBeforeunload: !1
|
7902
|
-
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query =
|
7902
|
+
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = gl(this.opts.query)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingTimeoutTimer = null, typeof addEventListener == "function" && (this.opts.closeOnBeforeunload && (this.beforeunloadEventListener = () => {
|
7903
7903
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
7904
7904
|
}, addEventListener("beforeunload", this.beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this.offlineEventListener = () => {
|
7905
7905
|
this.onClose("transport close", {
|
@@ -7924,7 +7924,7 @@ let Ni = class _e extends D {
|
|
7924
7924
|
secure: this.secure,
|
7925
7925
|
port: this.port
|
7926
7926
|
}, this.opts.transportOptions[e]);
|
7927
|
-
return new
|
7927
|
+
return new xl[e](s);
|
7928
7928
|
}
|
7929
7929
|
/**
|
7930
7930
|
* Initializes transport to use and starts probe.
|
@@ -8092,7 +8092,7 @@ let Ni = class _e extends D {
|
|
8092
8092
|
let n = 1;
|
8093
8093
|
for (let s = 0; s < this.writeBuffer.length; s++) {
|
8094
8094
|
const r = this.writeBuffer[s].data;
|
8095
|
-
if (r && (n +=
|
8095
|
+
if (r && (n += ml(r)), s > 0 && n > this.maxPayload)
|
8096
8096
|
return this.writeBuffer.slice(0, s);
|
8097
8097
|
n += 2;
|
8098
8098
|
}
|
@@ -8179,15 +8179,15 @@ let Ni = class _e extends D {
|
|
8179
8179
|
}
|
8180
8180
|
};
|
8181
8181
|
Ni.protocol = Ti;
|
8182
|
-
function
|
8182
|
+
function Rl(t, e = "", n) {
|
8183
8183
|
let s = t;
|
8184
|
-
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 =
|
8184
|
+
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 = vn(t)), s.port || (/^(http|ws)$/.test(s.protocol) ? s.port = "80" : /^(http|ws)s$/.test(s.protocol) && (s.port = "443")), s.path = s.path || "/";
|
8185
8185
|
const i = s.host.indexOf(":") !== -1 ? "[" + s.host + "]" : s.host;
|
8186
8186
|
return s.id = s.protocol + "://" + i + ":" + s.port + e, s.href = s.protocol + "://" + i + (n && n.port === s.port ? "" : ":" + s.port), s;
|
8187
8187
|
}
|
8188
|
-
const
|
8188
|
+
const Il = typeof ArrayBuffer == "function", Dl = (t) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t.buffer instanceof ArrayBuffer, _i = Object.prototype.toString, Ll = typeof Blob == "function" || typeof Blob < "u" && _i.call(Blob) === "[object BlobConstructor]", Fl = typeof File == "function" || typeof File < "u" && _i.call(File) === "[object FileConstructor]";
|
8189
8189
|
function Wn(t) {
|
8190
|
-
return
|
8190
|
+
return Il && (t instanceof ArrayBuffer || Dl(t)) || Ll && t instanceof Blob || Fl && t instanceof File;
|
8191
8191
|
}
|
8192
8192
|
function Et(t, e) {
|
8193
8193
|
if (!t || typeof t != "object")
|
@@ -8207,11 +8207,11 @@ function Et(t, e) {
|
|
8207
8207
|
return !0;
|
8208
8208
|
return !1;
|
8209
8209
|
}
|
8210
|
-
function
|
8210
|
+
function Vl(t) {
|
8211
8211
|
const e = [], n = t.data, s = t;
|
8212
|
-
return s.data =
|
8212
|
+
return s.data = bn(n, e), s.attachments = e.length, { packet: s, buffers: e };
|
8213
8213
|
}
|
8214
|
-
function
|
8214
|
+
function bn(t, e) {
|
8215
8215
|
if (!t)
|
8216
8216
|
return t;
|
8217
8217
|
if (Wn(t)) {
|
@@ -8220,20 +8220,20 @@ function vn(t, e) {
|
|
8220
8220
|
} else if (Array.isArray(t)) {
|
8221
8221
|
const n = new Array(t.length);
|
8222
8222
|
for (let s = 0; s < t.length; s++)
|
8223
|
-
n[s] =
|
8223
|
+
n[s] = bn(t[s], e);
|
8224
8224
|
return n;
|
8225
8225
|
} else if (typeof t == "object" && !(t instanceof Date)) {
|
8226
8226
|
const n = {};
|
8227
8227
|
for (const s in t)
|
8228
|
-
Object.prototype.hasOwnProperty.call(t, s) && (n[s] =
|
8228
|
+
Object.prototype.hasOwnProperty.call(t, s) && (n[s] = bn(t[s], e));
|
8229
8229
|
return n;
|
8230
8230
|
}
|
8231
8231
|
return t;
|
8232
8232
|
}
|
8233
|
-
function
|
8234
|
-
return t.data =
|
8233
|
+
function Bl(t, e) {
|
8234
|
+
return t.data = Tn(t.data, e), delete t.attachments, t;
|
8235
8235
|
}
|
8236
|
-
function
|
8236
|
+
function Tn(t, e) {
|
8237
8237
|
if (!t)
|
8238
8238
|
return t;
|
8239
8239
|
if (t && t._placeholder === !0) {
|
@@ -8242,13 +8242,13 @@ function bn(t, e) {
|
|
8242
8242
|
throw new Error("illegal attachments");
|
8243
8243
|
} else if (Array.isArray(t))
|
8244
8244
|
for (let n = 0; n < t.length; n++)
|
8245
|
-
t[n] =
|
8245
|
+
t[n] = Tn(t[n], e);
|
8246
8246
|
else if (typeof t == "object")
|
8247
8247
|
for (const n in t)
|
8248
|
-
Object.prototype.hasOwnProperty.call(t, n) && (t[n] =
|
8248
|
+
Object.prototype.hasOwnProperty.call(t, n) && (t[n] = Tn(t[n], e));
|
8249
8249
|
return t;
|
8250
8250
|
}
|
8251
|
-
const
|
8251
|
+
const $l = [
|
8252
8252
|
"connect",
|
8253
8253
|
"connect_error",
|
8254
8254
|
"disconnect",
|
@@ -8256,12 +8256,12 @@ const Bl = [
|
|
8256
8256
|
"newListener",
|
8257
8257
|
"removeListener"
|
8258
8258
|
// used by the Node.js EventEmitter
|
8259
|
-
],
|
8259
|
+
], Ul = 5;
|
8260
8260
|
var T;
|
8261
8261
|
(function(t) {
|
8262
8262
|
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";
|
8263
8263
|
})(T || (T = {}));
|
8264
|
-
class
|
8264
|
+
class Pl {
|
8265
8265
|
/**
|
8266
8266
|
* Encoder constructor
|
8267
8267
|
*
|
@@ -8297,7 +8297,7 @@ class Ul {
|
|
8297
8297
|
* a list of buffers.
|
8298
8298
|
*/
|
8299
8299
|
encodeAsBinary(e) {
|
8300
|
-
const n =
|
8300
|
+
const n = Vl(e), s = this.encodeAsString(n.packet), r = n.buffers;
|
8301
8301
|
return r.unshift(s), r;
|
8302
8302
|
}
|
8303
8303
|
}
|
@@ -8325,7 +8325,7 @@ class qn extends D {
|
|
8325
8325
|
throw new Error("got plaintext data when reconstructing a packet");
|
8326
8326
|
n = this.decodeString(e);
|
8327
8327
|
const s = n.type === T.BINARY_EVENT;
|
8328
|
-
s || n.type === T.BINARY_ACK ? (n.type = s ? T.EVENT : T.ACK, this.reconstructor = new
|
8328
|
+
s || n.type === T.BINARY_ACK ? (n.type = s ? T.EVENT : T.ACK, this.reconstructor = new Wl(n), n.attachments === 0 && super.emitReserved("decoded", n)) : super.emitReserved("decoded", n);
|
8329
8329
|
} else if (Wn(e) || e.base64)
|
8330
8330
|
if (this.reconstructor)
|
8331
8331
|
n = this.reconstructor.takeBinaryData(e), n && (this.reconstructor = null, super.emitReserved("decoded", n));
|
@@ -8403,7 +8403,7 @@ class qn extends D {
|
|
8403
8403
|
return typeof n == "string" || Zs(n);
|
8404
8404
|
case T.EVENT:
|
8405
8405
|
case T.BINARY_EVENT:
|
8406
|
-
return Array.isArray(n) && (typeof n[0] == "number" || typeof n[0] == "string" &&
|
8406
|
+
return Array.isArray(n) && (typeof n[0] == "number" || typeof n[0] == "string" && $l.indexOf(n[0]) === -1);
|
8407
8407
|
case T.ACK:
|
8408
8408
|
case T.BINARY_ACK:
|
8409
8409
|
return Array.isArray(n);
|
@@ -8416,7 +8416,7 @@ class qn extends D {
|
|
8416
8416
|
this.reconstructor && (this.reconstructor.finishedReconstruction(), this.reconstructor = null);
|
8417
8417
|
}
|
8418
8418
|
}
|
8419
|
-
class
|
8419
|
+
class Wl {
|
8420
8420
|
constructor(e) {
|
8421
8421
|
this.packet = e, this.buffers = [], this.reconPack = e;
|
8422
8422
|
}
|
@@ -8430,7 +8430,7 @@ class Pl {
|
|
8430
8430
|
*/
|
8431
8431
|
takeBinaryData(e) {
|
8432
8432
|
if (this.buffers.push(e), this.buffers.length === this.reconPack.attachments) {
|
8433
|
-
const n =
|
8433
|
+
const n = Bl(this.reconPack, this.buffers);
|
8434
8434
|
return this.finishedReconstruction(), n;
|
8435
8435
|
}
|
8436
8436
|
return null;
|
@@ -8442,21 +8442,21 @@ class Pl {
|
|
8442
8442
|
this.reconPack = null, this.buffers = [];
|
8443
8443
|
}
|
8444
8444
|
}
|
8445
|
-
const
|
8445
|
+
const ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
8446
8446
|
__proto__: null,
|
8447
8447
|
Decoder: qn,
|
8448
|
-
Encoder:
|
8448
|
+
Encoder: Pl,
|
8449
8449
|
get PacketType() {
|
8450
8450
|
return T;
|
8451
8451
|
},
|
8452
|
-
protocol:
|
8452
|
+
protocol: Ul
|
8453
8453
|
}, Symbol.toStringTag, { value: "Module" }));
|
8454
8454
|
function se(t, e, n) {
|
8455
8455
|
return t.on(e, n), function() {
|
8456
8456
|
t.off(e, n);
|
8457
8457
|
};
|
8458
8458
|
}
|
8459
|
-
const
|
8459
|
+
const Hl = Object.freeze({
|
8460
8460
|
connect: 1,
|
8461
8461
|
connect_error: 1,
|
8462
8462
|
disconnect: 1,
|
@@ -8580,7 +8580,7 @@ class Ai extends D {
|
|
8580
8580
|
* @return self
|
8581
8581
|
*/
|
8582
8582
|
emit(e, ...n) {
|
8583
|
-
if (
|
8583
|
+
if (Hl.hasOwnProperty(e))
|
8584
8584
|
throw new Error('"' + e.toString() + '" is a reserved event name');
|
8585
8585
|
if (n.unshift(e), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
|
8586
8586
|
return this._addToQueue(n), this;
|
@@ -9065,15 +9065,15 @@ We.prototype.setMax = function(t) {
|
|
9065
9065
|
We.prototype.setJitter = function(t) {
|
9066
9066
|
this.jitter = t;
|
9067
9067
|
};
|
9068
|
-
class
|
9068
|
+
class kn extends D {
|
9069
9069
|
constructor(e, n) {
|
9070
9070
|
var s;
|
9071
|
-
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,
|
9071
|
+
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, Pt(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 : 0.5), this.backoff = new We({
|
9072
9072
|
min: this.reconnectionDelay(),
|
9073
9073
|
max: this.reconnectionDelayMax(),
|
9074
9074
|
jitter: this.randomizationFactor()
|
9075
9075
|
}), this.timeout(n.timeout == null ? 2e4 : n.timeout), this._readyState = "closed", this.uri = e;
|
9076
|
-
const r = n.parser ||
|
9076
|
+
const r = n.parser || ql;
|
9077
9077
|
this.encoder = new r.Encoder(), this.decoder = new r.Decoder(), this._autoConnect = n.autoConnect !== !1, this._autoConnect && this.open();
|
9078
9078
|
}
|
9079
9079
|
reconnection(e) {
|
@@ -9294,24 +9294,24 @@ class Tn extends D {
|
|
9294
9294
|
const ze = {};
|
9295
9295
|
function Ot(t, e) {
|
9296
9296
|
typeof t == "object" && (e = t, t = void 0), e = e || {};
|
9297
|
-
const n =
|
9297
|
+
const n = Rl(t, e.path || "/socket.io"), s = n.source, r = n.id, i = n.path, o = ze[r] && i in ze[r].nsps, a = e.forceNew || e["force new connection"] || e.multiplex === !1 || o;
|
9298
9298
|
let c;
|
9299
|
-
return a ? c = new
|
9299
|
+
return a ? c = new kn(s, e) : (ze[r] || (ze[r] = new kn(s, e)), c = ze[r]), n.query && !e.query && (e.query = n.queryKey), c.socket(n.path, e);
|
9300
9300
|
}
|
9301
9301
|
Object.assign(Ot, {
|
9302
|
-
Manager:
|
9302
|
+
Manager: kn,
|
9303
9303
|
Socket: Ai,
|
9304
9304
|
io: Ot,
|
9305
9305
|
connect: Ot
|
9306
9306
|
});
|
9307
9307
|
var Mi = /* @__PURE__ */ ((t) => (t.WEBCHAT = "webchat", t.CENTRAL = "central", t.WHATSAPP = "whatsapp", t.TELEGRAM = "telegram", t.SMS = "sms", t))(Mi || {});
|
9308
|
-
const
|
9308
|
+
const zl = { class: "widget" }, Zl = { class: "header-widget" }, jl = { class: "title-chat" }, Yl = {
|
9309
9309
|
key: 0,
|
9310
9310
|
class: "loader"
|
9311
|
-
},
|
9311
|
+
}, Jl = { class: "w-full" }, Gl = ["onSubmit"], Kl = { class: "form-message" }, Xl = { class: "jl-inputgroup-chat" }, Ql = ["onKeyup"], ef = {
|
9312
9312
|
type: "submit",
|
9313
9313
|
class: "pointer btn-primary"
|
9314
|
-
},
|
9314
|
+
}, tf = 14, nf = /* @__PURE__ */ On({
|
9315
9315
|
__name: "Chat",
|
9316
9316
|
props: {
|
9317
9317
|
titlePrincipal: {
|
@@ -9338,7 +9338,7 @@ const Hl = { class: "widget" }, zl = { class: "header-widget" }, Zl = { class: "
|
|
9338
9338
|
data: [],
|
9339
9339
|
canLoadMoreMessages: !1
|
9340
9340
|
}), o = q(""), a = q(!1), c = q(null);
|
9341
|
-
|
9341
|
+
En(
|
9342
9342
|
() => n.visible,
|
9343
9343
|
async (b) => {
|
9344
9344
|
if (!b || (e("clear-new-messages"), d(), r.value > 0 && os(o.value, n.tokenAuth), o.value)) return;
|
@@ -9367,7 +9367,7 @@ const Hl = { class: "widget" }, zl = { class: "header-widget" }, Zl = { class: "
|
|
9367
9367
|
return;
|
9368
9368
|
}
|
9369
9369
|
const x = {
|
9370
|
-
id:
|
9370
|
+
id: ji(),
|
9371
9371
|
message: s.value,
|
9372
9372
|
visto: !0,
|
9373
9373
|
multimedia: !1,
|
@@ -9381,11 +9381,11 @@ const Hl = { class: "widget" }, zl = { class: "header-widget" }, Zl = { class: "
|
|
9381
9381
|
msPersonaId: n.user.msPersonaId
|
9382
9382
|
}
|
9383
9383
|
}, $ = i.value.data.push(x) - 1;
|
9384
|
-
l(s.value, o.value).then((
|
9384
|
+
l(s.value, o.value).then((V) => {
|
9385
9385
|
var z;
|
9386
|
-
|
9386
|
+
V ? (i.value.data[$] = V, C.value.emit(
|
9387
9387
|
"sendMessage",
|
9388
|
-
{ roomId: (z = R == null ? void 0 : R.value) == null ? void 0 : z.appChat.id, message:
|
9388
|
+
{ roomId: (z = R == null ? void 0 : R.value) == null ? void 0 : z.appChat.id, message: V },
|
9389
9389
|
(Y) => {
|
9390
9390
|
console.log("🚀 ~ socketService.value.emit ~ response:", Y);
|
9391
9391
|
}
|
@@ -9399,22 +9399,22 @@ const Hl = { class: "widget" }, zl = { class: "header-widget" }, Zl = { class: "
|
|
9399
9399
|
life: 5e3
|
9400
9400
|
}));
|
9401
9401
|
}), s.value = "", d(), y.value && (y.value.style.height = "20px");
|
9402
|
-
}, l = async (b, x) =>
|
9402
|
+
}, l = async (b, x) => Ta({
|
9403
9403
|
esCliente: !0,
|
9404
9404
|
message: b,
|
9405
9405
|
appChatId: x
|
9406
9406
|
}, n.tokenAuth), h = async () => {
|
9407
|
-
var Z,
|
9407
|
+
var Z, V, z;
|
9408
9408
|
const b = (Z = i.value.data[0]) == null ? void 0 : Z.id, x = {
|
9409
9409
|
lastMessagesId: b,
|
9410
9410
|
appChatId: o.value,
|
9411
9411
|
limit: 10
|
9412
9412
|
};
|
9413
9413
|
a.value = !0;
|
9414
|
-
const $ = await
|
9414
|
+
const $ = await ba({ body: x, token: n.tokenAuth });
|
9415
9415
|
a.value = !1, i.value.data.unshift(
|
9416
|
-
...$.data.sort((Y,
|
9417
|
-
), i.value.canLoadMoreMessages = $.pagination.total > $.pagination.size, b && ((
|
9416
|
+
...$.data.sort((Y, Wt) => -Wt.createdAt.localeCompare(Y.createdAt))
|
9417
|
+
), i.value.canLoadMoreMessages = $.pagination.total > $.pagination.size, b && ((V = c.value) != null && V.scrollHeight) && m((z = c.value) == null ? void 0 : z.scrollHeight), b || d();
|
9418
9418
|
}, g = async (b) => {
|
9419
9419
|
e("show-confirm", async () => {
|
9420
9420
|
var $, Z;
|
@@ -9428,12 +9428,12 @@ const Hl = { class: "widget" }, zl = { class: "header-widget" }, Zl = { class: "
|
|
9428
9428
|
life: 5e3
|
9429
9429
|
});
|
9430
9430
|
else {
|
9431
|
-
const
|
9431
|
+
const V = tl(
|
9432
9432
|
i.value.data,
|
9433
9433
|
"id",
|
9434
9434
|
b.error.id
|
9435
9435
|
);
|
9436
|
-
i.value.data[
|
9436
|
+
i.value.data[V] = { ...x, error: void 0 }, C.value.emit(
|
9437
9437
|
"sendMessage",
|
9438
9438
|
{ roomId: (Z = R == null ? void 0 : R.value) == null ? void 0 : Z.appChat.id, message: b }
|
9439
9439
|
);
|
@@ -9451,10 +9451,10 @@ const Hl = { class: "widget" }, zl = { class: "header-widget" }, Zl = { class: "
|
|
9451
9451
|
});
|
9452
9452
|
}, y = q();
|
9453
9453
|
function _() {
|
9454
|
-
y.value && (y.value.style.height = y.value.scrollHeight -
|
9454
|
+
y.value && (y.value.style.height = y.value.scrollHeight - tf + "px", y.value.scrollHeight !== y.value.clientHeight && (y.value.style.height = y.value.scrollHeight + "px"));
|
9455
9455
|
}
|
9456
9456
|
const C = q(), R = q();
|
9457
|
-
function
|
9457
|
+
function fe(b, x = Mi.WEBCHAT) {
|
9458
9458
|
var $, Z;
|
9459
9459
|
if (!b) throw new Error("user chat is required");
|
9460
9460
|
C.value = Ot(window.VITE_SOCKET_URI, {
|
@@ -9465,32 +9465,32 @@ const Hl = { class: "widget" }, zl = { class: "header-widget" }, Zl = { class: "
|
|
9465
9465
|
},
|
9466
9466
|
extraHeaders: { Authorization: n.tokenAuth }
|
9467
9467
|
}), C.value.on("connect", () => {
|
9468
|
-
var
|
9468
|
+
var V;
|
9469
9469
|
console.log("Conectado al servidor de sockets"), C.value.emit(
|
9470
9470
|
"joinRoom",
|
9471
|
-
`${(
|
9471
|
+
`${(V = b == null ? void 0 : b.appChat) == null ? void 0 : V.id}`
|
9472
9472
|
);
|
9473
9473
|
}), C.value.on("disconnect", () => {
|
9474
9474
|
console.log("Desconectado del servidor de sockets");
|
9475
|
-
}), C.value.on("receiveMessage", (
|
9475
|
+
}), C.value.on("receiveMessage", (V) => {
|
9476
9476
|
var z, Y;
|
9477
|
-
console.log("Mensaje recibido:",
|
9477
|
+
console.log("Mensaje recibido:", V.message, b), V.message.sender.msPersonaId !== ((Y = (z = b == null ? void 0 : b.chat) == null ? void 0 : z.persona) == null ? void 0 : Y.msPersonaId) && (i.value.data.push(V.message), os(V.message.appChatId, n.tokenAuth), d());
|
9478
9478
|
});
|
9479
9479
|
}
|
9480
9480
|
return Js(async () => {
|
9481
9481
|
if (o.value) return;
|
9482
9482
|
const b = await is(n.tokenAuth);
|
9483
|
-
b && (R.value = b, o.value = b.appChat.id, r.value = b.appChat.totalNoVistosCliente,
|
9483
|
+
b && (R.value = b, o.value = b.appChat.id, r.value = b.appChat.totalNoVistosCliente, fe(b), h(), e("not-viewed-total", b.appChat.totalNoVistosCliente));
|
9484
9484
|
}), $i(() => {
|
9485
9485
|
C.value.off();
|
9486
|
-
}), (b, x) => (
|
9487
|
-
w("div",
|
9488
|
-
w("h4",
|
9486
|
+
}), (b, x) => (L(), B("div", zl, [
|
9487
|
+
w("div", Zl, [
|
9488
|
+
w("h4", jl, Je(t.titlePrincipal), 1),
|
9489
9489
|
w("button", {
|
9490
9490
|
onClick: x[0] || (x[0] = () => t.toggleChat()),
|
9491
9491
|
class: "btn-close"
|
9492
9492
|
}, [
|
9493
|
-
|
9493
|
+
he(eo, { class: "pointer" })
|
9494
9494
|
])
|
9495
9495
|
]),
|
9496
9496
|
w("div", {
|
@@ -9498,64 +9498,64 @@ const Hl = { class: "widget" }, zl = { class: "header-widget" }, Zl = { class: "
|
|
9498
9498
|
ref_key: "messageContainerRef",
|
9499
9499
|
ref: c
|
9500
9500
|
}, [
|
9501
|
-
a.value ? (
|
9502
|
-
|
9503
|
-
])) :
|
9504
|
-
|
9501
|
+
a.value ? (L(), B("div", Yl, [
|
9502
|
+
he(el)
|
9503
|
+
])) : Ct("", !0),
|
9504
|
+
he(ju, {
|
9505
9505
|
messages: i.value.data,
|
9506
9506
|
canLoadMoreMessages: i.value.canLoadMoreMessages,
|
9507
9507
|
onLoadMore: h,
|
9508
9508
|
onRetry: g
|
9509
9509
|
}, null, 8, ["messages", "canLoadMoreMessages"])
|
9510
9510
|
], 512),
|
9511
|
-
w("div",
|
9511
|
+
w("div", Jl, [
|
9512
9512
|
w("form", {
|
9513
9513
|
class: "message-send",
|
9514
|
-
onSubmit:
|
9514
|
+
onSubmit: qt(u, ["prevent"])
|
9515
9515
|
}, [
|
9516
|
-
w("div",
|
9517
|
-
w("div",
|
9518
|
-
|
9516
|
+
w("div", Kl, [
|
9517
|
+
w("div", Xl, [
|
9518
|
+
an(w("textarea", {
|
9519
9519
|
"onUpdate:modelValue": x[1] || (x[1] = ($) => s.value = $),
|
9520
9520
|
class: "jl2-input-chat",
|
9521
9521
|
required: "",
|
9522
9522
|
ref_key: "textAreaRef",
|
9523
9523
|
ref: y,
|
9524
9524
|
onInput: x[2] || (x[2] = () => _()),
|
9525
|
-
onKeydown: x[3] || (x[3] = Zn(
|
9525
|
+
onKeydown: x[3] || (x[3] = Zn(qt(() => {
|
9526
9526
|
}, ["prevent"]), ["enter"])),
|
9527
|
-
onKeyup: Zn(
|
9528
|
-
}, null, 40,
|
9527
|
+
onKeyup: Zn(qt(u, ["prevent"]), ["enter"])
|
9528
|
+
}, null, 40, Ql), [
|
9529
9529
|
[Ui, s.value]
|
9530
9530
|
]),
|
9531
|
-
w("button",
|
9532
|
-
|
9531
|
+
w("button", ef, [
|
9532
|
+
he(oo, { style: { width: "20px", height: "20px" } })
|
9533
9533
|
])
|
9534
9534
|
])
|
9535
9535
|
])
|
9536
|
-
], 40,
|
9536
|
+
], 40, Gl)
|
9537
9537
|
])
|
9538
9538
|
]));
|
9539
9539
|
}
|
9540
|
-
}),
|
9540
|
+
}), sf = /* @__PURE__ */ oe(nf, [["__scopeId", "data-v-a9ff4a6e"]]), rf = {}, of = {
|
9541
9541
|
width: "87",
|
9542
9542
|
height: "87",
|
9543
9543
|
viewBox: "0 0 87 87",
|
9544
9544
|
fill: "none",
|
9545
9545
|
xmlns: "http://www.w3.org/2000/svg"
|
9546
|
-
},
|
9547
|
-
|
9546
|
+
}, af = /* @__PURE__ */ Pi('<g filter="url(#filter0_d_4007_3488)"><path d="M43.5 77C64.2107 77 81 60.2107 81 39.5C81 18.7893 64.2107 2 43.5 2C22.7893 2 6 18.7893 6 39.5C6 60.2107 22.7893 77 43.5 77Z" fill="white" stroke="#F28B0C" stroke-width="3" stroke-miterlimit="10"></path><path d="M39.705 38.885C40.6908 38.885 41.49 38.0858 41.49 37.1C41.49 36.1142 40.6908 35.315 39.705 35.315C38.7192 35.315 37.92 36.1142 37.92 37.1C37.92 38.0858 38.7192 38.885 39.705 38.885Z" fill="#F28B0C"></path><path d="M45.075 38.885C46.0608 38.885 46.86 38.0858 46.86 37.1C46.86 36.1142 46.0608 35.315 45.075 35.315C44.0892 35.315 43.29 36.1142 43.29 37.1C43.29 38.0858 44.0892 38.885 45.075 38.885Z" fill="#F28B0C"></path><path d="M50.445 38.885C51.4308 38.885 52.23 38.0858 52.23 37.1C52.23 36.1142 51.4308 35.315 50.445 35.315C49.4592 35.315 48.66 36.1142 48.66 37.1C48.66 38.0858 49.4592 38.885 50.445 38.885Z" fill="#F28B0C"></path><path d="M63.27 58.235L58.755 47.78C61.125 44.765 62.415 40.97 62.415 37.175C62.415 26.435 52.665 18.185 41.925 20.12C39.99 19.325 37.98 18.905 35.835 18.905C26.955 18.905 19.785 26.135 19.785 34.955C19.785 38.54 21 41.975 23.145 44.765L18.99 54.44C18.84 54.8 18.915 55.235 19.2 55.445C19.485 55.73 19.92 55.73 20.205 55.595L30.6 50.15C31.89 50.585 33.255 50.87 34.68 50.945C39.48 54.53 45.57 55.25 50.655 53.45L61.905 59.33C62.265 59.48 62.625 59.48 62.91 59.18C63.345 58.97 63.405 58.61 63.27 58.25V58.235ZM51.24 51.71C51.03 51.56 50.745 51.56 50.52 51.635C48.795 52.28 46.935 52.64 45.15 52.64C36.69 52.64 29.61 45.755 29.61 37.1C29.61 29.72 34.845 23.345 42.075 21.845C51.75 19.91 60.705 27.29 60.705 37.1C60.705 40.685 59.415 44.27 57.12 46.985C56.91 47.27 56.835 47.63 56.97 47.915L60.69 56.585L51.24 51.71Z" fill="#F28B0C"></path></g><defs><filter id="filter0_d_4007_3488" x="0.5" y="0.5" width="86" height="86" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4007_3488"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4007_3488" result="shape"></feBlend></filter></defs>', 2), cf = [
|
9547
|
+
af
|
9548
9548
|
];
|
9549
|
-
function
|
9550
|
-
return
|
9549
|
+
function uf(t, e) {
|
9550
|
+
return L(), B("svg", of, cf);
|
9551
9551
|
}
|
9552
|
-
const
|
9552
|
+
const lf = /* @__PURE__ */ oe(rf, [["render", uf]]), ff = {}, hf = {
|
9553
9553
|
viewBox: "0 0 256 256",
|
9554
9554
|
version: "1.1",
|
9555
9555
|
xmlns: "http://www.w3.org/2000/svg",
|
9556
9556
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
9557
9557
|
preserveAspectRatio: "xMidYMid"
|
9558
|
-
},
|
9558
|
+
}, df = /* @__PURE__ */ w("g", null, [
|
9559
9559
|
/* @__PURE__ */ w("path", {
|
9560
9560
|
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",
|
9561
9561
|
fill: "#40B3E0"
|
@@ -9572,20 +9572,20 @@ const uf = /* @__PURE__ */ oe(sf, [["render", cf]]), lf = {}, ff = {
|
|
9572
9572
|
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",
|
9573
9573
|
fill: "#B5CFE4"
|
9574
9574
|
})
|
9575
|
-
], -1),
|
9576
|
-
|
9575
|
+
], -1), mf = [
|
9576
|
+
df
|
9577
9577
|
];
|
9578
|
-
function
|
9579
|
-
return
|
9578
|
+
function pf(t, e) {
|
9579
|
+
return L(), B("svg", hf, mf);
|
9580
9580
|
}
|
9581
|
-
const
|
9581
|
+
const yf = /* @__PURE__ */ oe(ff, [["render", pf]]), gf = {}, wf = {
|
9582
9582
|
version: "1.1",
|
9583
9583
|
id: "Capa_1",
|
9584
9584
|
xmlns: "http://www.w3.org/2000/svg",
|
9585
9585
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
9586
9586
|
viewBox: "0 0 455.731 455.731",
|
9587
9587
|
"xml:space": "preserve"
|
9588
|
-
},
|
9588
|
+
}, Sf = /* @__PURE__ */ w("g", null, [
|
9589
9589
|
/* @__PURE__ */ w("rect", {
|
9590
9590
|
x: "0",
|
9591
9591
|
y: "0",
|
@@ -9612,20 +9612,20 @@ const pf = /* @__PURE__ */ oe(lf, [["render", mf]]), yf = {}, gf = {
|
|
9612
9612
|
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`
|
9613
9613
|
})
|
9614
9614
|
])
|
9615
|
-
], -1),
|
9616
|
-
|
9615
|
+
], -1), vf = [
|
9616
|
+
Sf
|
9617
9617
|
];
|
9618
|
-
function
|
9619
|
-
return
|
9618
|
+
function bf(t, e) {
|
9619
|
+
return L(), B("svg", wf, vf);
|
9620
9620
|
}
|
9621
|
-
const
|
9621
|
+
const Tf = /* @__PURE__ */ oe(gf, [["render", bf]]), kf = {}, Ef = {
|
9622
9622
|
version: "1.1",
|
9623
9623
|
id: "Capa_1",
|
9624
9624
|
xmlns: "http://www.w3.org/2000/svg",
|
9625
9625
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
9626
9626
|
viewBox: "-10 -10 78 78",
|
9627
9627
|
"xml:space": "preserve"
|
9628
|
-
},
|
9628
|
+
}, Of = /* @__PURE__ */ w("g", null, [
|
9629
9629
|
/* @__PURE__ */ w("path", {
|
9630
9630
|
style: { fill: "orange" },
|
9631
9631
|
d: `M29,1.5c-16.016,0-29,11.641-29,26c0,5.292,1.768,10.211,4.796,14.318
|
@@ -9651,19 +9651,19 @@ const bf = /* @__PURE__ */ oe(yf, [["render", vf]]), Tf = {}, kf = {
|
|
9651
9651
|
cy: "27.5",
|
9652
9652
|
r: "3"
|
9653
9653
|
})
|
9654
|
-
], -1),
|
9655
|
-
|
9654
|
+
], -1), Cf = [
|
9655
|
+
Of
|
9656
9656
|
];
|
9657
|
-
function
|
9658
|
-
return
|
9657
|
+
function xf(t, e) {
|
9658
|
+
return L(), B("svg", Ef, Cf);
|
9659
9659
|
}
|
9660
|
-
const
|
9660
|
+
const Nf = /* @__PURE__ */ oe(kf, [["render", xf]]), _f = {
|
9661
9661
|
id: "chat-circle",
|
9662
9662
|
class: "widget-container"
|
9663
|
-
},
|
9663
|
+
}, Af = {
|
9664
9664
|
key: 0,
|
9665
9665
|
class: "new-message-badge"
|
9666
|
-
},
|
9666
|
+
}, Mf = { class: "chat-box" }, Rf = /* @__PURE__ */ On({
|
9667
9667
|
__name: "Widget",
|
9668
9668
|
props: {
|
9669
9669
|
tokenAuth: { type: String, required: !0 },
|
@@ -9698,10 +9698,10 @@ const xf = /* @__PURE__ */ oe(Tf, [["render", Cf]]), Nf = {
|
|
9698
9698
|
const r = q(!1), i = q(0), o = q(!1), a = () => {
|
9699
9699
|
r.value = !r.value;
|
9700
9700
|
};
|
9701
|
-
return (c, u) => (
|
9701
|
+
return (c, u) => (L(), B("div", {
|
9702
9702
|
class: Me(["widget-css-reset widget-container", t.isDarkMode ? "chat-dark-mode" : ""])
|
9703
9703
|
}, [
|
9704
|
-
|
9704
|
+
an(w("div", _f, [
|
9705
9705
|
w("div", {
|
9706
9706
|
class: Me(["container-buttons-chat", { active: o.value }])
|
9707
9707
|
}, [
|
@@ -9713,7 +9713,7 @@ const xf = /* @__PURE__ */ oe(Tf, [["render", Cf]]), Nf = {
|
|
9713
9713
|
/* WHATSAPP */
|
9714
9714
|
))
|
9715
9715
|
}, [
|
9716
|
-
|
9716
|
+
he(Tf)
|
9717
9717
|
]),
|
9718
9718
|
w("a", {
|
9719
9719
|
href: "javascript:;",
|
@@ -9723,7 +9723,7 @@ const xf = /* @__PURE__ */ oe(Tf, [["render", Cf]]), Nf = {
|
|
9723
9723
|
/* TELEGRAM */
|
9724
9724
|
))
|
9725
9725
|
}, [
|
9726
|
-
|
9726
|
+
he(yf)
|
9727
9727
|
]),
|
9728
9728
|
w("a", {
|
9729
9729
|
href: "javascript:;",
|
@@ -9731,21 +9731,22 @@ const xf = /* @__PURE__ */ oe(Tf, [["render", Cf]]), Nf = {
|
|
9731
9731
|
title: "Debe estar autenticado",
|
9732
9732
|
onClick: u[2] || (u[2] = (l) => o.value && n.tokenAuth.length > 10 && a())
|
9733
9733
|
}, [
|
9734
|
-
|
9734
|
+
he(Nf)
|
9735
9735
|
], 2)
|
9736
9736
|
], 2),
|
9737
|
-
i.value ? (
|
9737
|
+
i.value ? (L(), B("div", Af, Je(i.value > 9 ? "9+" : i.value), 1)) : Ct("", !0),
|
9738
9738
|
w("a", {
|
9739
9739
|
href: "javascript:;",
|
9740
9740
|
onClick: u[3] || (u[3] = (l) => o.value = !o.value)
|
9741
9741
|
}, [
|
9742
|
-
|
9742
|
+
he(lf)
|
9743
9743
|
])
|
9744
9744
|
], 512), [
|
9745
9745
|
[jn, !r.value]
|
9746
9746
|
]),
|
9747
|
-
|
9748
|
-
|
9747
|
+
an(w("div", Mf, [
|
9748
|
+
t.tokenAuth ? (L(), Wi(sf, {
|
9749
|
+
key: 0,
|
9749
9750
|
visible: r.value,
|
9750
9751
|
titlePrincipal: t.titlePrincipal,
|
9751
9752
|
toggleChat: a,
|
@@ -9756,18 +9757,18 @@ const xf = /* @__PURE__ */ oe(Tf, [["render", Cf]]), Nf = {
|
|
9756
9757
|
onClearNewMessages: u[6] || (u[6] = (l) => i.value = 0),
|
9757
9758
|
onNewMessage: u[7] || (u[7] = () => i.value++),
|
9758
9759
|
onNotViewedTotal: u[8] || (u[8] = (l) => i.value = l)
|
9759
|
-
}, null, 8, ["visible", "titlePrincipal", "tokenAuth", "user"])
|
9760
|
+
}, null, 8, ["visible", "titlePrincipal", "tokenAuth", "user"])) : Ct("", !0)
|
9760
9761
|
], 512), [
|
9761
9762
|
[jn, r.value]
|
9762
9763
|
])
|
9763
9764
|
], 2));
|
9764
9765
|
}
|
9765
|
-
}),
|
9766
|
+
}), Df = /* @__PURE__ */ oe(Rf, [["__scopeId", "data-v-e2e1f135"]]), Lf = {
|
9766
9767
|
install(t, e) {
|
9767
9768
|
window.VITE_BACKEND_URL = e.VITE_BACKEND_URL, window.VITE_SOCKET_URI = e.VITE_SOCKET_URI, window.VITE_CELLPHONE_NUMBERS = e.VITE_CELLPHONE_NUMBERS;
|
9768
9769
|
}
|
9769
9770
|
};
|
9770
9771
|
export {
|
9771
|
-
|
9772
|
-
|
9772
|
+
Df as Widget,
|
9773
|
+
Lf as default
|
9773
9774
|
};
|