@centive/aria-sdk 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context/AriaContext.d.ts +1 -1
- package/dist/context/AriaContext.d.ts.map +1 -1
- package/dist/context/AriaProvider.d.ts.map +1 -1
- package/dist/{index-Q7g2dXGq.js → index-CRFQTgbT.js} +935 -945
- package/dist/index-CRFQTgbT.js.map +1 -0
- package/dist/{index-Bu8qpssv.js → index-DC4s4pYo.js} +3 -3
- package/dist/{index-Bu8qpssv.js.map → index-DC4s4pYo.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-Q7g2dXGq.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as y, jsxs as B, Fragment as
|
|
2
|
-
import * as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { CheckCircle2 as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
if (
|
|
9
|
-
|
|
1
|
+
import { jsx as y, jsxs as B, Fragment as ft } from "react/jsx-runtime";
|
|
2
|
+
import * as xe from "react";
|
|
3
|
+
import { createContext as cr, useContext as dr, useState as he, useRef as ve, useEffect as Ee, useCallback as ce } from "react";
|
|
4
|
+
import { CheckCircle2 as Et, AlertCircle as dt, Zap as xt, RefreshCw as St, Clock as ur, MessageCircle as Bt, Sparkles as mt, User as hr, Bot as pr, Send as gr, X as Ut, MicOff as fr, Mic as mr, Phone as wr } from "lucide-react";
|
|
5
|
+
import { createPortal as vr } from "react-dom";
|
|
6
|
+
var ut = {}, Ze = {}, kt;
|
|
7
|
+
function br() {
|
|
8
|
+
if (kt) return Ze;
|
|
9
|
+
kt = 1, Ze.byteLength = l, Ze.toByteArray = w, Ze.fromByteArray = R;
|
|
10
10
|
for (var i = [], r = [], n = typeof Uint8Array < "u" ? Uint8Array : Array, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", d = 0, h = o.length; d < h; ++d)
|
|
11
11
|
i[d] = o[d], r[o.charCodeAt(d)] = d;
|
|
12
12
|
r[45] = 62, r[95] = 63;
|
|
@@ -14,51 +14,51 @@ function Ar() {
|
|
|
14
14
|
var A = v.length;
|
|
15
15
|
if (A % 4 > 0)
|
|
16
16
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
return [
|
|
17
|
+
var C = v.indexOf("=");
|
|
18
|
+
C === -1 && (C = A);
|
|
19
|
+
var D = C === A ? 0 : 4 - C % 4;
|
|
20
|
+
return [C, D];
|
|
21
21
|
}
|
|
22
22
|
function l(v) {
|
|
23
|
-
var A = c(v),
|
|
24
|
-
return (
|
|
23
|
+
var A = c(v), C = A[0], D = A[1];
|
|
24
|
+
return (C + D) * 3 / 4 - D;
|
|
25
25
|
}
|
|
26
|
-
function m(v, A,
|
|
27
|
-
return (A +
|
|
26
|
+
function m(v, A, C) {
|
|
27
|
+
return (A + C) * 3 / 4 - C;
|
|
28
28
|
}
|
|
29
29
|
function w(v) {
|
|
30
|
-
var A,
|
|
30
|
+
var A, C = c(v), D = C[0], _ = C[1], V = new n(m(v, D, _)), j = 0, W = _ > 0 ? D - 4 : D, L;
|
|
31
31
|
for (L = 0; L < W; L += 4)
|
|
32
32
|
A = r[v.charCodeAt(L)] << 18 | r[v.charCodeAt(L + 1)] << 12 | r[v.charCodeAt(L + 2)] << 6 | r[v.charCodeAt(L + 3)], V[j++] = A >> 16 & 255, V[j++] = A >> 8 & 255, V[j++] = A & 255;
|
|
33
|
-
return
|
|
33
|
+
return _ === 2 && (A = r[v.charCodeAt(L)] << 2 | r[v.charCodeAt(L + 1)] >> 4, V[j++] = A & 255), _ === 1 && (A = r[v.charCodeAt(L)] << 10 | r[v.charCodeAt(L + 1)] << 4 | r[v.charCodeAt(L + 2)] >> 2, V[j++] = A >> 8 & 255, V[j++] = A & 255), V;
|
|
34
34
|
}
|
|
35
35
|
function f(v) {
|
|
36
36
|
return i[v >> 18 & 63] + i[v >> 12 & 63] + i[v >> 6 & 63] + i[v & 63];
|
|
37
37
|
}
|
|
38
|
-
function u(v, A,
|
|
39
|
-
for (var
|
|
40
|
-
|
|
41
|
-
return
|
|
38
|
+
function u(v, A, C) {
|
|
39
|
+
for (var D, _ = [], V = A; V < C; V += 3)
|
|
40
|
+
D = (v[V] << 16 & 16711680) + (v[V + 1] << 8 & 65280) + (v[V + 2] & 255), _.push(f(D));
|
|
41
|
+
return _.join("");
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
for (var A,
|
|
45
|
-
|
|
46
|
-
return
|
|
43
|
+
function R(v) {
|
|
44
|
+
for (var A, C = v.length, D = C % 3, _ = [], V = 16383, j = 0, W = C - D; j < W; j += V)
|
|
45
|
+
_.push(u(v, j, j + V > W ? W : j + V));
|
|
46
|
+
return D === 1 ? (A = v[C - 1], _.push(
|
|
47
47
|
i[A >> 2] + i[A << 4 & 63] + "=="
|
|
48
|
-
)) :
|
|
48
|
+
)) : D === 2 && (A = (v[C - 2] << 8) + v[C - 1], _.push(
|
|
49
49
|
i[A >> 10] + i[A >> 4 & 63] + i[A << 2 & 63] + "="
|
|
50
|
-
)),
|
|
50
|
+
)), _.join("");
|
|
51
51
|
}
|
|
52
52
|
return Ze;
|
|
53
53
|
}
|
|
54
54
|
var rt = {};
|
|
55
|
-
var
|
|
56
|
-
function
|
|
57
|
-
return
|
|
58
|
-
var h, c, l = d * 8 - o - 1, m = (1 << l) - 1, w = m >> 1, f = -7, u = n ? d - 1 : 0,
|
|
59
|
-
for (u +=
|
|
55
|
+
var Ct;
|
|
56
|
+
function yr() {
|
|
57
|
+
return Ct || (Ct = 1, rt.read = function(i, r, n, o, d) {
|
|
58
|
+
var h, c, l = d * 8 - o - 1, m = (1 << l) - 1, w = m >> 1, f = -7, u = n ? d - 1 : 0, R = n ? -1 : 1, v = i[r + u];
|
|
59
|
+
for (u += R, h = v & (1 << -f) - 1, v >>= -f, f += l; f > 0; h = h * 256 + i[r + u], u += R, f -= 8)
|
|
60
60
|
;
|
|
61
|
-
for (c = h & (1 << -f) - 1, h >>= -f, f += o; f > 0; c = c * 256 + i[r + u], u +=
|
|
61
|
+
for (c = h & (1 << -f) - 1, h >>= -f, f += o; f > 0; c = c * 256 + i[r + u], u += R, f -= 8)
|
|
62
62
|
;
|
|
63
63
|
if (h === 0)
|
|
64
64
|
h = 1 - w;
|
|
@@ -69,18 +69,18 @@ function Er() {
|
|
|
69
69
|
}
|
|
70
70
|
return (v ? -1 : 1) * c * Math.pow(2, h - o);
|
|
71
71
|
}, rt.write = function(i, r, n, o, d, h) {
|
|
72
|
-
var c, l, m, w = h * 8 - d - 1, f = (1 << w) - 1, u = f >> 1,
|
|
73
|
-
for (r = Math.abs(r), isNaN(r) || r === 1 / 0 ? (l = isNaN(r) ? 1 : 0, c = f) : (c = Math.floor(Math.log(r) / Math.LN2), r * (m = Math.pow(2, -c)) < 1 && (c--, m *= 2), c + u >= 1 ? r +=
|
|
72
|
+
var c, l, m, w = h * 8 - d - 1, f = (1 << w) - 1, u = f >> 1, R = d === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v = o ? 0 : h - 1, A = o ? 1 : -1, C = r < 0 || r === 0 && 1 / r < 0 ? 1 : 0;
|
|
73
|
+
for (r = Math.abs(r), isNaN(r) || r === 1 / 0 ? (l = isNaN(r) ? 1 : 0, c = f) : (c = Math.floor(Math.log(r) / Math.LN2), r * (m = Math.pow(2, -c)) < 1 && (c--, m *= 2), c + u >= 1 ? r += R / m : r += R * Math.pow(2, 1 - u), r * m >= 2 && (c++, m /= 2), c + u >= f ? (l = 0, c = f) : c + u >= 1 ? (l = (r * m - 1) * Math.pow(2, d), c = c + u) : (l = r * Math.pow(2, u - 1) * Math.pow(2, d), c = 0)); d >= 8; i[n + v] = l & 255, v += A, l /= 256, d -= 8)
|
|
74
74
|
;
|
|
75
75
|
for (c = c << d | l, w += d; w > 0; i[n + v] = c & 255, v += A, c /= 256, w -= 8)
|
|
76
76
|
;
|
|
77
|
-
i[n + v - A] |=
|
|
77
|
+
i[n + v - A] |= C * 128;
|
|
78
78
|
}), rt;
|
|
79
79
|
}
|
|
80
|
-
var
|
|
81
|
-
function
|
|
82
|
-
return
|
|
83
|
-
const r =
|
|
80
|
+
var It;
|
|
81
|
+
function Ar() {
|
|
82
|
+
return It || (It = 1, (function(i) {
|
|
83
|
+
const r = br(), n = yr(), o = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
|
|
84
84
|
i.Buffer = l, i.SlowBuffer = V, i.INSPECT_MAX_BYTES = 50;
|
|
85
85
|
const d = 2147483647;
|
|
86
86
|
i.kMaxLength = d, l.TYPED_ARRAY_SUPPORT = h(), !l.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
@@ -128,7 +128,7 @@ function xr() {
|
|
|
128
128
|
l.poolSize = 8192;
|
|
129
129
|
function m(a, e, t) {
|
|
130
130
|
if (typeof a == "string")
|
|
131
|
-
return
|
|
131
|
+
return R(a, e);
|
|
132
132
|
if (ArrayBuffer.isView(a))
|
|
133
133
|
return A(a);
|
|
134
134
|
if (a == null)
|
|
@@ -136,7 +136,7 @@ function xr() {
|
|
|
136
136
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof a
|
|
137
137
|
);
|
|
138
138
|
if (oe(a, ArrayBuffer) || a && oe(a.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (oe(a, SharedArrayBuffer) || a && oe(a.buffer, SharedArrayBuffer)))
|
|
139
|
-
return
|
|
139
|
+
return C(a, e, t);
|
|
140
140
|
if (typeof a == "number")
|
|
141
141
|
throw new TypeError(
|
|
142
142
|
'The "value" argument must not be of type number. Received type number'
|
|
@@ -144,7 +144,7 @@ function xr() {
|
|
|
144
144
|
const s = a.valueOf && a.valueOf();
|
|
145
145
|
if (s != null && s !== a)
|
|
146
146
|
return l.from(s, e, t);
|
|
147
|
-
const p =
|
|
147
|
+
const p = D(a);
|
|
148
148
|
if (p) return p;
|
|
149
149
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof a[Symbol.toPrimitive] == "function")
|
|
150
150
|
return l.from(a[Symbol.toPrimitive]("string"), e, t);
|
|
@@ -168,14 +168,14 @@ function xr() {
|
|
|
168
168
|
return f(a, e, t);
|
|
169
169
|
};
|
|
170
170
|
function u(a) {
|
|
171
|
-
return w(a), c(a < 0 ? 0 :
|
|
171
|
+
return w(a), c(a < 0 ? 0 : _(a) | 0);
|
|
172
172
|
}
|
|
173
173
|
l.allocUnsafe = function(a) {
|
|
174
174
|
return u(a);
|
|
175
175
|
}, l.allocUnsafeSlow = function(a) {
|
|
176
176
|
return u(a);
|
|
177
177
|
};
|
|
178
|
-
function
|
|
178
|
+
function R(a, e) {
|
|
179
179
|
if ((typeof e != "string" || e === "") && (e = "utf8"), !l.isEncoding(e))
|
|
180
180
|
throw new TypeError("Unknown encoding: " + e);
|
|
181
181
|
const t = j(a, e) | 0;
|
|
@@ -184,7 +184,7 @@ function xr() {
|
|
|
184
184
|
return p !== t && (s = s.slice(0, p)), s;
|
|
185
185
|
}
|
|
186
186
|
function v(a) {
|
|
187
|
-
const e = a.length < 0 ? 0 :
|
|
187
|
+
const e = a.length < 0 ? 0 : _(a.length) | 0, t = c(e);
|
|
188
188
|
for (let s = 0; s < e; s += 1)
|
|
189
189
|
t[s] = a[s] & 255;
|
|
190
190
|
return t;
|
|
@@ -192,11 +192,11 @@ function xr() {
|
|
|
192
192
|
function A(a) {
|
|
193
193
|
if (oe(a, Uint8Array)) {
|
|
194
194
|
const e = new Uint8Array(a);
|
|
195
|
-
return
|
|
195
|
+
return C(e.buffer, e.byteOffset, e.byteLength);
|
|
196
196
|
}
|
|
197
197
|
return v(a);
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function C(a, e, t) {
|
|
200
200
|
if (e < 0 || a.byteLength < e)
|
|
201
201
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
202
202
|
if (a.byteLength < e + (t || 0))
|
|
@@ -204,17 +204,17 @@ function xr() {
|
|
|
204
204
|
let s;
|
|
205
205
|
return e === void 0 && t === void 0 ? s = new Uint8Array(a) : t === void 0 ? s = new Uint8Array(a, e) : s = new Uint8Array(a, e, t), Object.setPrototypeOf(s, l.prototype), s;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function D(a) {
|
|
208
208
|
if (l.isBuffer(a)) {
|
|
209
|
-
const e =
|
|
209
|
+
const e = _(a.length) | 0, t = c(e);
|
|
210
210
|
return t.length === 0 || a.copy(t, 0, 0, e), t;
|
|
211
211
|
}
|
|
212
212
|
if (a.length !== void 0)
|
|
213
|
-
return typeof a.length != "number" ||
|
|
213
|
+
return typeof a.length != "number" || ct(a.length) ? c(0) : v(a);
|
|
214
214
|
if (a.type === "Buffer" && Array.isArray(a.data))
|
|
215
215
|
return v(a.data);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function _(a) {
|
|
218
218
|
if (a >= d)
|
|
219
219
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + d.toString(16) + " bytes");
|
|
220
220
|
return a | 0;
|
|
@@ -301,7 +301,7 @@ function xr() {
|
|
|
301
301
|
return t;
|
|
302
302
|
case "utf8":
|
|
303
303
|
case "utf-8":
|
|
304
|
-
return
|
|
304
|
+
return I(a).length;
|
|
305
305
|
case "ucs2":
|
|
306
306
|
case "ucs-2":
|
|
307
307
|
case "utf16le":
|
|
@@ -310,10 +310,10 @@ function xr() {
|
|
|
310
310
|
case "hex":
|
|
311
311
|
return t >>> 1;
|
|
312
312
|
case "base64":
|
|
313
|
-
return
|
|
313
|
+
return Oe(a).length;
|
|
314
314
|
default:
|
|
315
315
|
if (p)
|
|
316
|
-
return s ? -1 :
|
|
316
|
+
return s ? -1 : I(a).length;
|
|
317
317
|
e = ("" + e).toLowerCase(), p = !0;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -328,7 +328,7 @@ function xr() {
|
|
|
328
328
|
return Ge(this, e, t);
|
|
329
329
|
case "utf8":
|
|
330
330
|
case "utf-8":
|
|
331
|
-
return
|
|
331
|
+
return ke(this, e, t);
|
|
332
332
|
case "ascii":
|
|
333
333
|
return fe(this, e, t);
|
|
334
334
|
case "latin1":
|
|
@@ -374,7 +374,7 @@ function xr() {
|
|
|
374
374
|
return this;
|
|
375
375
|
}, l.prototype.toString = function() {
|
|
376
376
|
const e = this.length;
|
|
377
|
-
return e === 0 ? "" : arguments.length === 0 ?
|
|
377
|
+
return e === 0 ? "" : arguments.length === 0 ? ke(this, 0, e) : W.apply(this, arguments);
|
|
378
378
|
}, l.prototype.toLocaleString = l.prototype.toString, l.prototype.equals = function(e) {
|
|
379
379
|
if (!l.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
|
|
380
380
|
return this === e ? !0 : l.compare(this, e) === 0;
|
|
@@ -397,29 +397,29 @@ function xr() {
|
|
|
397
397
|
return 1;
|
|
398
398
|
if (t >>>= 0, s >>>= 0, p >>>= 0, g >>>= 0, this === e) return 0;
|
|
399
399
|
let b = g - p, P = s - t;
|
|
400
|
-
const Y = Math.min(b, P),
|
|
400
|
+
const Y = Math.min(b, P), Q = this.slice(p, g), Z = e.slice(t, s);
|
|
401
401
|
for (let z = 0; z < Y; ++z)
|
|
402
|
-
if (
|
|
403
|
-
b =
|
|
402
|
+
if (Q[z] !== Z[z]) {
|
|
403
|
+
b = Q[z], P = Z[z];
|
|
404
404
|
break;
|
|
405
405
|
}
|
|
406
406
|
return b < P ? -1 : P < b ? 1 : 0;
|
|
407
407
|
};
|
|
408
|
-
function
|
|
408
|
+
function q(a, e, t, s, p) {
|
|
409
409
|
if (a.length === 0) return -1;
|
|
410
|
-
if (typeof t == "string" ? (s = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t,
|
|
410
|
+
if (typeof t == "string" ? (s = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, ct(t) && (t = p ? 0 : a.length - 1), t < 0 && (t = a.length + t), t >= a.length) {
|
|
411
411
|
if (p) return -1;
|
|
412
412
|
t = a.length - 1;
|
|
413
413
|
} else if (t < 0)
|
|
414
414
|
if (p) t = 0;
|
|
415
415
|
else return -1;
|
|
416
416
|
if (typeof e == "string" && (e = l.from(e, s)), l.isBuffer(e))
|
|
417
|
-
return e.length === 0 ? -1 :
|
|
417
|
+
return e.length === 0 ? -1 : ae(a, e, t, s, p);
|
|
418
418
|
if (typeof e == "number")
|
|
419
|
-
return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? p ? Uint8Array.prototype.indexOf.call(a, e, t) : Uint8Array.prototype.lastIndexOf.call(a, e, t) :
|
|
419
|
+
return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? p ? Uint8Array.prototype.indexOf.call(a, e, t) : Uint8Array.prototype.lastIndexOf.call(a, e, t) : ae(a, [e], t, s, p);
|
|
420
420
|
throw new TypeError("val must be string, number or Buffer");
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function ae(a, e, t, s, p) {
|
|
423
423
|
let g = 1, b = a.length, P = e.length;
|
|
424
424
|
if (s !== void 0 && (s = String(s).toLowerCase(), s === "ucs2" || s === "ucs-2" || s === "utf16le" || s === "utf-16le")) {
|
|
425
425
|
if (a.length < 2 || e.length < 2)
|
|
@@ -429,34 +429,34 @@ function xr() {
|
|
|
429
429
|
function Y(Z, z) {
|
|
430
430
|
return g === 1 ? Z[z] : Z.readUInt16BE(z * g);
|
|
431
431
|
}
|
|
432
|
-
let
|
|
432
|
+
let Q;
|
|
433
433
|
if (p) {
|
|
434
434
|
let Z = -1;
|
|
435
|
-
for (
|
|
436
|
-
if (Y(a,
|
|
437
|
-
if (Z === -1 && (Z =
|
|
435
|
+
for (Q = t; Q < b; Q++)
|
|
436
|
+
if (Y(a, Q) === Y(e, Z === -1 ? 0 : Q - Z)) {
|
|
437
|
+
if (Z === -1 && (Z = Q), Q - Z + 1 === P) return Z * g;
|
|
438
438
|
} else
|
|
439
|
-
Z !== -1 && (
|
|
439
|
+
Z !== -1 && (Q -= Q - Z), Z = -1;
|
|
440
440
|
} else
|
|
441
|
-
for (t + P > b && (t = b - P),
|
|
441
|
+
for (t + P > b && (t = b - P), Q = t; Q >= 0; Q--) {
|
|
442
442
|
let Z = !0;
|
|
443
443
|
for (let z = 0; z < P; z++)
|
|
444
|
-
if (Y(a,
|
|
444
|
+
if (Y(a, Q + z) !== Y(e, z)) {
|
|
445
445
|
Z = !1;
|
|
446
446
|
break;
|
|
447
447
|
}
|
|
448
|
-
if (Z) return
|
|
448
|
+
if (Z) return Q;
|
|
449
449
|
}
|
|
450
450
|
return -1;
|
|
451
451
|
}
|
|
452
452
|
l.prototype.includes = function(e, t, s) {
|
|
453
453
|
return this.indexOf(e, t, s) !== -1;
|
|
454
454
|
}, l.prototype.indexOf = function(e, t, s) {
|
|
455
|
-
return
|
|
455
|
+
return q(this, e, t, s, !0);
|
|
456
456
|
}, l.prototype.lastIndexOf = function(e, t, s) {
|
|
457
|
-
return
|
|
457
|
+
return q(this, e, t, s, !1);
|
|
458
458
|
};
|
|
459
|
-
function
|
|
459
|
+
function O(a, e, t, s) {
|
|
460
460
|
t = Number(t) || 0;
|
|
461
461
|
const p = a.length - t;
|
|
462
462
|
s ? (s = Number(s), s > p && (s = p)) : s = p;
|
|
@@ -465,22 +465,22 @@ function xr() {
|
|
|
465
465
|
let b;
|
|
466
466
|
for (b = 0; b < s; ++b) {
|
|
467
467
|
const P = parseInt(e.substr(b * 2, 2), 16);
|
|
468
|
-
if (
|
|
468
|
+
if (ct(P)) return b;
|
|
469
469
|
a[t + b] = P;
|
|
470
470
|
}
|
|
471
471
|
return b;
|
|
472
472
|
}
|
|
473
473
|
function G(a, e, t, s) {
|
|
474
|
-
return De(
|
|
474
|
+
return De(I(e, a.length - t), a, t, s);
|
|
475
475
|
}
|
|
476
476
|
function H(a, e, t, s) {
|
|
477
|
-
return De(
|
|
477
|
+
return De(ze(e), a, t, s);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return De(
|
|
479
|
+
function ye(a, e, t, s) {
|
|
480
|
+
return De(Oe(e), a, t, s);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
return De(
|
|
482
|
+
function Se(a, e, t, s) {
|
|
483
|
+
return De(ee(e, a.length - t), a, t, s);
|
|
484
484
|
}
|
|
485
485
|
l.prototype.write = function(e, t, s, p) {
|
|
486
486
|
if (t === void 0)
|
|
@@ -501,7 +501,7 @@ function xr() {
|
|
|
501
501
|
for (; ; )
|
|
502
502
|
switch (p) {
|
|
503
503
|
case "hex":
|
|
504
|
-
return
|
|
504
|
+
return O(this, e, t, s);
|
|
505
505
|
case "utf8":
|
|
506
506
|
case "utf-8":
|
|
507
507
|
return G(this, e, t, s);
|
|
@@ -510,12 +510,12 @@ function xr() {
|
|
|
510
510
|
case "binary":
|
|
511
511
|
return H(this, e, t, s);
|
|
512
512
|
case "base64":
|
|
513
|
-
return
|
|
513
|
+
return ye(this, e, t, s);
|
|
514
514
|
case "ucs2":
|
|
515
515
|
case "ucs-2":
|
|
516
516
|
case "utf16le":
|
|
517
517
|
case "utf-16le":
|
|
518
|
-
return
|
|
518
|
+
return Se(this, e, t, s);
|
|
519
519
|
default:
|
|
520
520
|
if (b) throw new TypeError("Unknown encoding: " + p);
|
|
521
521
|
p = ("" + p).toLowerCase(), b = !0;
|
|
@@ -529,7 +529,7 @@ function xr() {
|
|
|
529
529
|
function ge(a, e, t) {
|
|
530
530
|
return e === 0 && t === a.length ? r.fromByteArray(a) : r.fromByteArray(a.slice(e, t));
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function ke(a, e, t) {
|
|
533
533
|
t = Math.min(a.length, t);
|
|
534
534
|
const s = [];
|
|
535
535
|
let p = e;
|
|
@@ -537,7 +537,7 @@ function xr() {
|
|
|
537
537
|
const g = a[p];
|
|
538
538
|
let b = null, P = g > 239 ? 4 : g > 223 ? 3 : g > 191 ? 2 : 1;
|
|
539
539
|
if (p + P <= t) {
|
|
540
|
-
let Y,
|
|
540
|
+
let Y, Q, Z, z;
|
|
541
541
|
switch (P) {
|
|
542
542
|
case 1:
|
|
543
543
|
g < 128 && (b = g);
|
|
@@ -546,26 +546,26 @@ function xr() {
|
|
|
546
546
|
Y = a[p + 1], (Y & 192) === 128 && (z = (g & 31) << 6 | Y & 63, z > 127 && (b = z));
|
|
547
547
|
break;
|
|
548
548
|
case 3:
|
|
549
|
-
Y = a[p + 1],
|
|
549
|
+
Y = a[p + 1], Q = a[p + 2], (Y & 192) === 128 && (Q & 192) === 128 && (z = (g & 15) << 12 | (Y & 63) << 6 | Q & 63, z > 2047 && (z < 55296 || z > 57343) && (b = z));
|
|
550
550
|
break;
|
|
551
551
|
case 4:
|
|
552
|
-
Y = a[p + 1],
|
|
552
|
+
Y = a[p + 1], Q = a[p + 2], Z = a[p + 3], (Y & 192) === 128 && (Q & 192) === 128 && (Z & 192) === 128 && (z = (g & 15) << 18 | (Y & 63) << 12 | (Q & 63) << 6 | Z & 63, z > 65535 && z < 1114112 && (b = z));
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
b === null ? (b = 65533, P = 1) : b > 65535 && (b -= 65536, s.push(b >>> 10 & 1023 | 55296), b = 56320 | b & 1023), s.push(b), p += P;
|
|
556
556
|
}
|
|
557
|
-
return
|
|
557
|
+
return se(s);
|
|
558
558
|
}
|
|
559
|
-
const
|
|
560
|
-
function
|
|
559
|
+
const ie = 4096;
|
|
560
|
+
function se(a) {
|
|
561
561
|
const e = a.length;
|
|
562
|
-
if (e <=
|
|
562
|
+
if (e <= ie)
|
|
563
563
|
return String.fromCharCode.apply(String, a);
|
|
564
564
|
let t = "", s = 0;
|
|
565
565
|
for (; s < e; )
|
|
566
566
|
t += String.fromCharCode.apply(
|
|
567
567
|
String,
|
|
568
|
-
a.slice(s, s +=
|
|
568
|
+
a.slice(s, s += ie)
|
|
569
569
|
);
|
|
570
570
|
return t;
|
|
571
571
|
}
|
|
@@ -588,7 +588,7 @@ function xr() {
|
|
|
588
588
|
(!e || e < 0) && (e = 0), (!t || t < 0 || t > s) && (t = s);
|
|
589
589
|
let p = "";
|
|
590
590
|
for (let g = e; g < t; ++g)
|
|
591
|
-
p +=
|
|
591
|
+
p += sr[a[g]];
|
|
592
592
|
return p;
|
|
593
593
|
}
|
|
594
594
|
function je(a, e, t) {
|
|
@@ -604,91 +604,91 @@ function xr() {
|
|
|
604
604
|
const p = this.subarray(e, t);
|
|
605
605
|
return Object.setPrototypeOf(p, l.prototype), p;
|
|
606
606
|
};
|
|
607
|
-
function
|
|
607
|
+
function K(a, e, t) {
|
|
608
608
|
if (a % 1 !== 0 || a < 0) throw new RangeError("offset is not uint");
|
|
609
609
|
if (a + e > t) throw new RangeError("Trying to access beyond buffer length");
|
|
610
610
|
}
|
|
611
611
|
l.prototype.readUintLE = l.prototype.readUIntLE = function(e, t, s) {
|
|
612
|
-
e = e >>> 0, t = t >>> 0, s ||
|
|
612
|
+
e = e >>> 0, t = t >>> 0, s || K(e, t, this.length);
|
|
613
613
|
let p = this[e], g = 1, b = 0;
|
|
614
614
|
for (; ++b < t && (g *= 256); )
|
|
615
615
|
p += this[e + b] * g;
|
|
616
616
|
return p;
|
|
617
617
|
}, l.prototype.readUintBE = l.prototype.readUIntBE = function(e, t, s) {
|
|
618
|
-
e = e >>> 0, t = t >>> 0, s ||
|
|
618
|
+
e = e >>> 0, t = t >>> 0, s || K(e, t, this.length);
|
|
619
619
|
let p = this[e + --t], g = 1;
|
|
620
620
|
for (; t > 0 && (g *= 256); )
|
|
621
621
|
p += this[e + --t] * g;
|
|
622
622
|
return p;
|
|
623
623
|
}, l.prototype.readUint8 = l.prototype.readUInt8 = function(e, t) {
|
|
624
|
-
return e = e >>> 0, t ||
|
|
624
|
+
return e = e >>> 0, t || K(e, 1, this.length), this[e];
|
|
625
625
|
}, l.prototype.readUint16LE = l.prototype.readUInt16LE = function(e, t) {
|
|
626
|
-
return e = e >>> 0, t ||
|
|
626
|
+
return e = e >>> 0, t || K(e, 2, this.length), this[e] | this[e + 1] << 8;
|
|
627
627
|
}, l.prototype.readUint16BE = l.prototype.readUInt16BE = function(e, t) {
|
|
628
|
-
return e = e >>> 0, t ||
|
|
628
|
+
return e = e >>> 0, t || K(e, 2, this.length), this[e] << 8 | this[e + 1];
|
|
629
629
|
}, l.prototype.readUint32LE = l.prototype.readUInt32LE = function(e, t) {
|
|
630
|
-
return e = e >>> 0, t ||
|
|
630
|
+
return e = e >>> 0, t || K(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
|
|
631
631
|
}, l.prototype.readUint32BE = l.prototype.readUInt32BE = function(e, t) {
|
|
632
|
-
return e = e >>> 0, t ||
|
|
632
|
+
return e = e >>> 0, t || K(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
|
|
633
633
|
}, l.prototype.readBigUInt64LE = Me(function(e) {
|
|
634
|
-
e = e >>> 0,
|
|
634
|
+
e = e >>> 0, Te(e, "offset");
|
|
635
635
|
const t = this[e], s = this[e + 7];
|
|
636
|
-
(t === void 0 || s === void 0) &&
|
|
636
|
+
(t === void 0 || s === void 0) && k(e, this.length - 8);
|
|
637
637
|
const p = t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, g = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + s * 2 ** 24;
|
|
638
638
|
return BigInt(p) + (BigInt(g) << BigInt(32));
|
|
639
639
|
}), l.prototype.readBigUInt64BE = Me(function(e) {
|
|
640
|
-
e = e >>> 0,
|
|
640
|
+
e = e >>> 0, Te(e, "offset");
|
|
641
641
|
const t = this[e], s = this[e + 7];
|
|
642
|
-
(t === void 0 || s === void 0) &&
|
|
642
|
+
(t === void 0 || s === void 0) && k(e, this.length - 8);
|
|
643
643
|
const p = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], g = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + s;
|
|
644
644
|
return (BigInt(p) << BigInt(32)) + BigInt(g);
|
|
645
645
|
}), l.prototype.readIntLE = function(e, t, s) {
|
|
646
|
-
e = e >>> 0, t = t >>> 0, s ||
|
|
646
|
+
e = e >>> 0, t = t >>> 0, s || K(e, t, this.length);
|
|
647
647
|
let p = this[e], g = 1, b = 0;
|
|
648
648
|
for (; ++b < t && (g *= 256); )
|
|
649
649
|
p += this[e + b] * g;
|
|
650
650
|
return g *= 128, p >= g && (p -= Math.pow(2, 8 * t)), p;
|
|
651
651
|
}, l.prototype.readIntBE = function(e, t, s) {
|
|
652
|
-
e = e >>> 0, t = t >>> 0, s ||
|
|
652
|
+
e = e >>> 0, t = t >>> 0, s || K(e, t, this.length);
|
|
653
653
|
let p = t, g = 1, b = this[e + --p];
|
|
654
654
|
for (; p > 0 && (g *= 256); )
|
|
655
655
|
b += this[e + --p] * g;
|
|
656
656
|
return g *= 128, b >= g && (b -= Math.pow(2, 8 * t)), b;
|
|
657
657
|
}, l.prototype.readInt8 = function(e, t) {
|
|
658
|
-
return e = e >>> 0, t ||
|
|
658
|
+
return e = e >>> 0, t || K(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
|
|
659
659
|
}, l.prototype.readInt16LE = function(e, t) {
|
|
660
|
-
e = e >>> 0, t ||
|
|
660
|
+
e = e >>> 0, t || K(e, 2, this.length);
|
|
661
661
|
const s = this[e] | this[e + 1] << 8;
|
|
662
662
|
return s & 32768 ? s | 4294901760 : s;
|
|
663
663
|
}, l.prototype.readInt16BE = function(e, t) {
|
|
664
|
-
e = e >>> 0, t ||
|
|
664
|
+
e = e >>> 0, t || K(e, 2, this.length);
|
|
665
665
|
const s = this[e + 1] | this[e] << 8;
|
|
666
666
|
return s & 32768 ? s | 4294901760 : s;
|
|
667
667
|
}, l.prototype.readInt32LE = function(e, t) {
|
|
668
|
-
return e = e >>> 0, t ||
|
|
668
|
+
return e = e >>> 0, t || K(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
|
|
669
669
|
}, l.prototype.readInt32BE = function(e, t) {
|
|
670
|
-
return e = e >>> 0, t ||
|
|
670
|
+
return e = e >>> 0, t || K(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
|
|
671
671
|
}, l.prototype.readBigInt64LE = Me(function(e) {
|
|
672
|
-
e = e >>> 0,
|
|
672
|
+
e = e >>> 0, Te(e, "offset");
|
|
673
673
|
const t = this[e], s = this[e + 7];
|
|
674
|
-
(t === void 0 || s === void 0) &&
|
|
674
|
+
(t === void 0 || s === void 0) && k(e, this.length - 8);
|
|
675
675
|
const p = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (s << 24);
|
|
676
676
|
return (BigInt(p) << BigInt(32)) + BigInt(t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
|
|
677
677
|
}), l.prototype.readBigInt64BE = Me(function(e) {
|
|
678
|
-
e = e >>> 0,
|
|
678
|
+
e = e >>> 0, Te(e, "offset");
|
|
679
679
|
const t = this[e], s = this[e + 7];
|
|
680
|
-
(t === void 0 || s === void 0) &&
|
|
680
|
+
(t === void 0 || s === void 0) && k(e, this.length - 8);
|
|
681
681
|
const p = (t << 24) + // Overflow
|
|
682
682
|
this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
|
|
683
683
|
return (BigInt(p) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + s);
|
|
684
684
|
}), l.prototype.readFloatLE = function(e, t) {
|
|
685
|
-
return e = e >>> 0, t ||
|
|
685
|
+
return e = e >>> 0, t || K(e, 4, this.length), n.read(this, e, !0, 23, 4);
|
|
686
686
|
}, l.prototype.readFloatBE = function(e, t) {
|
|
687
|
-
return e = e >>> 0, t ||
|
|
687
|
+
return e = e >>> 0, t || K(e, 4, this.length), n.read(this, e, !1, 23, 4);
|
|
688
688
|
}, l.prototype.readDoubleLE = function(e, t) {
|
|
689
|
-
return e = e >>> 0, t ||
|
|
689
|
+
return e = e >>> 0, t || K(e, 8, this.length), n.read(this, e, !0, 52, 8);
|
|
690
690
|
}, l.prototype.readDoubleBE = function(e, t) {
|
|
691
|
-
return e = e >>> 0, t ||
|
|
691
|
+
return e = e >>> 0, t || K(e, 8, this.length), n.read(this, e, !1, 52, 8);
|
|
692
692
|
};
|
|
693
693
|
function $(a, e, t, s, p, g) {
|
|
694
694
|
if (!l.isBuffer(a)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
@@ -725,14 +725,14 @@ function xr() {
|
|
|
725
725
|
return e = +e, t = t >>> 0, s || $(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
726
726
|
};
|
|
727
727
|
function X(a, e, t, s, p) {
|
|
728
|
-
|
|
728
|
+
Re(e, s, p, a, t, 7);
|
|
729
729
|
let g = Number(e & BigInt(4294967295));
|
|
730
730
|
a[t++] = g, g = g >> 8, a[t++] = g, g = g >> 8, a[t++] = g, g = g >> 8, a[t++] = g;
|
|
731
731
|
let b = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
732
732
|
return a[t++] = b, b = b >> 8, a[t++] = b, b = b >> 8, a[t++] = b, b = b >> 8, a[t++] = b, t;
|
|
733
733
|
}
|
|
734
734
|
function ne(a, e, t, s, p) {
|
|
735
|
-
|
|
735
|
+
Re(e, s, p, a, t, 7);
|
|
736
736
|
let g = Number(e & BigInt(4294967295));
|
|
737
737
|
a[t + 7] = g, g = g >> 8, a[t + 6] = g, g = g >> 8, a[t + 5] = g, g = g >> 8, a[t + 4] = g;
|
|
738
738
|
let b = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
@@ -779,21 +779,21 @@ function xr() {
|
|
|
779
779
|
if (t + s > a.length) throw new RangeError("Index out of range");
|
|
780
780
|
if (t < 0) throw new RangeError("Index out of range");
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Ce(a, e, t, s, p) {
|
|
783
783
|
return e = +e, t = t >>> 0, p || me(a, e, t, 4), n.write(a, e, t, s, 23, 4), t + 4;
|
|
784
784
|
}
|
|
785
785
|
l.prototype.writeFloatLE = function(e, t, s) {
|
|
786
|
-
return
|
|
786
|
+
return Ce(this, e, t, !0, s);
|
|
787
787
|
}, l.prototype.writeFloatBE = function(e, t, s) {
|
|
788
|
-
return
|
|
788
|
+
return Ce(this, e, t, !1, s);
|
|
789
789
|
};
|
|
790
|
-
function
|
|
790
|
+
function J(a, e, t, s, p) {
|
|
791
791
|
return e = +e, t = t >>> 0, p || me(a, e, t, 8), n.write(a, e, t, s, 52, 8), t + 8;
|
|
792
792
|
}
|
|
793
793
|
l.prototype.writeDoubleLE = function(e, t, s) {
|
|
794
|
-
return
|
|
794
|
+
return J(this, e, t, !0, s);
|
|
795
795
|
}, l.prototype.writeDoubleBE = function(e, t, s) {
|
|
796
|
-
return
|
|
796
|
+
return J(this, e, t, !1, s);
|
|
797
797
|
}, l.prototype.copy = function(e, t, s, p) {
|
|
798
798
|
if (!l.isBuffer(e)) throw new TypeError("argument should be a Buffer");
|
|
799
799
|
if (s || (s = 0), !p && p !== 0 && (p = this.length), t >= e.length && (t = e.length), t || (t = 0), p > 0 && p < s && (p = s), p === s || e.length === 0 || this.length === 0) return 0;
|
|
@@ -838,7 +838,7 @@ function xr() {
|
|
|
838
838
|
return this;
|
|
839
839
|
};
|
|
840
840
|
const we = {};
|
|
841
|
-
function
|
|
841
|
+
function Ae(a, e, t) {
|
|
842
842
|
we[a] = class extends t {
|
|
843
843
|
constructor() {
|
|
844
844
|
super(), Object.defineProperty(this, "message", {
|
|
@@ -863,27 +863,27 @@ function xr() {
|
|
|
863
863
|
}
|
|
864
864
|
};
|
|
865
865
|
}
|
|
866
|
-
|
|
866
|
+
Ae(
|
|
867
867
|
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
868
868
|
function(a) {
|
|
869
869
|
return a ? `${a} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
870
870
|
},
|
|
871
871
|
RangeError
|
|
872
|
-
),
|
|
872
|
+
), Ae(
|
|
873
873
|
"ERR_INVALID_ARG_TYPE",
|
|
874
874
|
function(a, e) {
|
|
875
875
|
return `The "${a}" argument must be of type number. Received type ${typeof e}`;
|
|
876
876
|
},
|
|
877
877
|
TypeError
|
|
878
|
-
),
|
|
878
|
+
), Ae(
|
|
879
879
|
"ERR_OUT_OF_RANGE",
|
|
880
880
|
function(a, e, t) {
|
|
881
881
|
let s = `The value of "${a}" is out of range.`, p = t;
|
|
882
|
-
return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? p =
|
|
882
|
+
return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? p = Ie(String(t)) : typeof t == "bigint" && (p = String(t), (t > BigInt(2) ** BigInt(32) || t < -(BigInt(2) ** BigInt(32))) && (p = Ie(p)), p += "n"), s += ` It must be ${e}. Received ${p}`, s;
|
|
883
883
|
},
|
|
884
884
|
RangeError
|
|
885
885
|
);
|
|
886
|
-
function
|
|
886
|
+
function Ie(a) {
|
|
887
887
|
let e = "", t = a.length;
|
|
888
888
|
const s = a[0] === "-" ? 1 : 0;
|
|
889
889
|
for (; t >= s + 4; t -= 3)
|
|
@@ -891,9 +891,9 @@ function xr() {
|
|
|
891
891
|
return `${a.slice(0, t)}${e}`;
|
|
892
892
|
}
|
|
893
893
|
function He(a, e, t) {
|
|
894
|
-
|
|
894
|
+
Te(e, "offset"), (a[e] === void 0 || a[e + t] === void 0) && k(e, a.length - (t + 1));
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Re(a, e, t, s, p, g) {
|
|
897
897
|
if (a > t || a < e) {
|
|
898
898
|
const b = typeof e == "bigint" ? "n" : "";
|
|
899
899
|
let P;
|
|
@@ -901,25 +901,25 @@ function xr() {
|
|
|
901
901
|
}
|
|
902
902
|
He(s, p, g);
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function Te(a, e) {
|
|
905
905
|
if (typeof a != "number")
|
|
906
906
|
throw new we.ERR_INVALID_ARG_TYPE(e, "number", a);
|
|
907
907
|
}
|
|
908
|
-
function
|
|
909
|
-
throw Math.floor(a) !== a ? (
|
|
908
|
+
function k(a, e, t) {
|
|
909
|
+
throw Math.floor(a) !== a ? (Te(a, t), new we.ERR_OUT_OF_RANGE("offset", "an integer", a)) : e < 0 ? new we.ERR_BUFFER_OUT_OF_BOUNDS() : new we.ERR_OUT_OF_RANGE(
|
|
910
910
|
"offset",
|
|
911
911
|
`>= 0 and <= ${e}`,
|
|
912
912
|
a
|
|
913
913
|
);
|
|
914
914
|
}
|
|
915
|
-
const
|
|
916
|
-
function
|
|
917
|
-
if (a = a.split("=")[0], a = a.trim().replace(
|
|
915
|
+
const T = /[^+/0-9A-Za-z-_]/g;
|
|
916
|
+
function M(a) {
|
|
917
|
+
if (a = a.split("=")[0], a = a.trim().replace(T, ""), a.length < 2) return "";
|
|
918
918
|
for (; a.length % 4 !== 0; )
|
|
919
919
|
a = a + "=";
|
|
920
920
|
return a;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function I(a, e) {
|
|
923
923
|
e = e || 1 / 0;
|
|
924
924
|
let t;
|
|
925
925
|
const s = a.length;
|
|
@@ -973,21 +973,21 @@ function xr() {
|
|
|
973
973
|
}
|
|
974
974
|
return g;
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function ze(a) {
|
|
977
977
|
const e = [];
|
|
978
978
|
for (let t = 0; t < a.length; ++t)
|
|
979
979
|
e.push(a.charCodeAt(t) & 255);
|
|
980
980
|
return e;
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function ee(a, e) {
|
|
983
983
|
let t, s, p;
|
|
984
984
|
const g = [];
|
|
985
985
|
for (let b = 0; b < a.length && !((e -= 2) < 0); ++b)
|
|
986
986
|
t = a.charCodeAt(b), s = t >> 8, p = t % 256, g.push(p), g.push(s);
|
|
987
987
|
return g;
|
|
988
988
|
}
|
|
989
|
-
function
|
|
990
|
-
return r.toByteArray(
|
|
989
|
+
function Oe(a) {
|
|
990
|
+
return r.toByteArray(M(a));
|
|
991
991
|
}
|
|
992
992
|
function De(a, e, t, s) {
|
|
993
993
|
let p;
|
|
@@ -998,10 +998,10 @@ function xr() {
|
|
|
998
998
|
function oe(a, e) {
|
|
999
999
|
return a instanceof e || a != null && a.constructor != null && a.constructor.name != null && a.constructor.name === e.name;
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function ct(a) {
|
|
1002
1002
|
return a !== a;
|
|
1003
1003
|
}
|
|
1004
|
-
const
|
|
1004
|
+
const sr = (function() {
|
|
1005
1005
|
const a = "0123456789abcdef", e = new Array(256);
|
|
1006
1006
|
for (let t = 0; t < 16; ++t) {
|
|
1007
1007
|
const s = t * 16;
|
|
@@ -1011,19 +1011,19 @@ function xr() {
|
|
|
1011
1011
|
return e;
|
|
1012
1012
|
})();
|
|
1013
1013
|
function Me(a) {
|
|
1014
|
-
return typeof BigInt > "u" ?
|
|
1014
|
+
return typeof BigInt > "u" ? lr : a;
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function lr() {
|
|
1017
1017
|
throw new Error("BigInt not supported");
|
|
1018
1018
|
}
|
|
1019
|
-
})(
|
|
1019
|
+
})(ut)), ut;
|
|
1020
1020
|
}
|
|
1021
|
-
var
|
|
1022
|
-
const
|
|
1021
|
+
var Er = Ar();
|
|
1022
|
+
const xr = "https://api.anam.ai", Sr = "/v1", Pt = {
|
|
1023
1023
|
client: "js-sdk",
|
|
1024
1024
|
version: "4.7.0"
|
|
1025
1025
|
};
|
|
1026
|
-
var
|
|
1026
|
+
var kr = function(i, r, n, o) {
|
|
1027
1027
|
function d(h) {
|
|
1028
1028
|
return h instanceof n ? h : new n(function(c) {
|
|
1029
1029
|
c(h);
|
|
@@ -1050,18 +1050,18 @@ var Ir = function(i, r, n, o) {
|
|
|
1050
1050
|
w((o = o.apply(i, r || [])).next());
|
|
1051
1051
|
});
|
|
1052
1052
|
};
|
|
1053
|
-
const
|
|
1054
|
-
var
|
|
1053
|
+
const Lt = "https://api.anam.ai", bt = "/v1";
|
|
1054
|
+
var _e;
|
|
1055
1055
|
(function(i) {
|
|
1056
1056
|
i.CLIENT_METRIC_MEASUREMENT_ERROR = "client_error", i.CLIENT_METRIC_MEASUREMENT_CONNECTION_CLOSED = "client_connection_closed", i.CLIENT_METRIC_MEASUREMENT_CONNECTION_ESTABLISHED = "client_connection_established", i.CLIENT_METRIC_MEASUREMENT_SESSION_ATTEMPT = "client_session_attempt", i.CLIENT_METRIC_MEASUREMENT_SESSION_SUCCESS = "client_session_success";
|
|
1057
|
-
})(
|
|
1058
|
-
let
|
|
1059
|
-
const
|
|
1060
|
-
|
|
1061
|
-
},
|
|
1057
|
+
})(_e || (_e = {}));
|
|
1058
|
+
let wt = Lt, Ft = bt, Pe, Vt = !1;
|
|
1059
|
+
const Cr = (i, r = bt) => {
|
|
1060
|
+
wt = i, Ft = r;
|
|
1061
|
+
}, Ir = (i) => {
|
|
1062
1062
|
Pe = i;
|
|
1063
|
-
},
|
|
1064
|
-
|
|
1063
|
+
}, Rr = (i) => {
|
|
1064
|
+
Vt = i;
|
|
1065
1065
|
};
|
|
1066
1066
|
let Le = {
|
|
1067
1067
|
sessionId: null,
|
|
@@ -1070,16 +1070,16 @@ let Le = {
|
|
|
1070
1070
|
};
|
|
1071
1071
|
const Je = (i) => {
|
|
1072
1072
|
Le = Object.assign(Object.assign({}, Le), i);
|
|
1073
|
-
},
|
|
1074
|
-
if (!
|
|
1073
|
+
}, Ke = (i, r, n) => kr(void 0, void 0, void 0, function* () {
|
|
1074
|
+
if (!Vt)
|
|
1075
1075
|
try {
|
|
1076
|
-
const o = Object.assign(Object.assign({},
|
|
1076
|
+
const o = Object.assign(Object.assign({}, Pt), n);
|
|
1077
1077
|
Le.sessionId && (o.sessionId = Le.sessionId), Le.organizationId && (o.organizationId = Le.organizationId), Le.attemptCorrelationId && (o.attemptCorrelationId = Le.attemptCorrelationId);
|
|
1078
|
-
const d = `${
|
|
1078
|
+
const d = `${Ft}/metrics/client`;
|
|
1079
1079
|
let h, c = {
|
|
1080
1080
|
"Content-Type": "application/json"
|
|
1081
1081
|
};
|
|
1082
|
-
Pe?.enabled && Pe?.baseUrl ? (h = `${Pe.baseUrl}${d}`, c["X-Anam-Target-Url"] = `${
|
|
1082
|
+
Pe?.enabled && Pe?.baseUrl ? (h = `${Pe.baseUrl}${d}`, c["X-Anam-Target-Url"] = `${wt}${d}`) : h = `${wt}${d}`, yield fetch(h, {
|
|
1083
1083
|
method: "POST",
|
|
1084
1084
|
headers: c,
|
|
1085
1085
|
body: JSON.stringify({
|
|
@@ -1091,7 +1091,7 @@ const Je = (i) => {
|
|
|
1091
1091
|
} catch (o) {
|
|
1092
1092
|
console.error("Failed to send error metric:", o);
|
|
1093
1093
|
}
|
|
1094
|
-
}),
|
|
1094
|
+
}), Nr = (i, r = "console") => {
|
|
1095
1095
|
var n, o, d;
|
|
1096
1096
|
const h = {};
|
|
1097
1097
|
i.forEach((u) => {
|
|
@@ -1101,56 +1101,56 @@ const Je = (i) => {
|
|
|
1101
1101
|
issues: []
|
|
1102
1102
|
}, l = ((n = h["inbound-rtp"]) === null || n === void 0 ? void 0 : n.filter((u) => u.kind === "video")) || [];
|
|
1103
1103
|
l.length > 0 && (c.personaVideoStream = [], l.forEach((u) => {
|
|
1104
|
-
var
|
|
1105
|
-
const
|
|
1106
|
-
framesReceived: (
|
|
1104
|
+
var R, v, A, C, D;
|
|
1105
|
+
const _ = {
|
|
1106
|
+
framesReceived: (R = u.framesReceived) !== null && R !== void 0 ? R : "unknown",
|
|
1107
1107
|
framesDropped: (v = u.framesDropped) !== null && v !== void 0 ? v : "unknown",
|
|
1108
1108
|
framesPerSecond: (A = u.framesPerSecond) !== null && A !== void 0 ? A : "unknown",
|
|
1109
|
-
packetsReceived: (
|
|
1110
|
-
packetsLost: (
|
|
1109
|
+
packetsReceived: (C = u.packetsReceived) !== null && C !== void 0 ? C : "unknown",
|
|
1110
|
+
packetsLost: (D = u.packetsLost) !== null && D !== void 0 ? D : "unknown",
|
|
1111
1111
|
resolution: u.frameWidth && u.frameHeight ? `${u.frameWidth}x${u.frameHeight}` : void 0,
|
|
1112
1112
|
jitter: u.jitter !== void 0 ? u.jitter : void 0
|
|
1113
1113
|
};
|
|
1114
|
-
c.personaVideoStream.push(
|
|
1114
|
+
c.personaVideoStream.push(_);
|
|
1115
1115
|
}));
|
|
1116
1116
|
const m = ((o = h["inbound-rtp"]) === null || o === void 0 ? void 0 : o.filter((u) => u.kind === "audio")) || [];
|
|
1117
1117
|
m.length > 0 && (c.personaAudioStream = [], m.forEach((u) => {
|
|
1118
|
-
var
|
|
1119
|
-
const
|
|
1120
|
-
packetsReceived: (
|
|
1118
|
+
var R, v, A;
|
|
1119
|
+
const C = {
|
|
1120
|
+
packetsReceived: (R = u.packetsReceived) !== null && R !== void 0 ? R : "unknown",
|
|
1121
1121
|
packetsLost: (v = u.packetsLost) !== null && v !== void 0 ? v : "unknown",
|
|
1122
1122
|
audioLevel: (A = u.audioLevel) !== null && A !== void 0 ? A : "unknown",
|
|
1123
1123
|
jitter: u.jitter !== void 0 ? u.jitter : void 0,
|
|
1124
1124
|
totalAudioEnergy: u.totalAudioEnergy !== void 0 ? u.totalAudioEnergy : void 0
|
|
1125
1125
|
};
|
|
1126
|
-
c.personaAudioStream.push(
|
|
1126
|
+
c.personaAudioStream.push(C);
|
|
1127
1127
|
}));
|
|
1128
1128
|
const w = ((d = h["outbound-rtp"]) === null || d === void 0 ? void 0 : d.filter((u) => u.kind === "audio")) || [];
|
|
1129
1129
|
w.length > 0 && (c.userAudioInput = [], w.forEach((u) => {
|
|
1130
|
-
var
|
|
1130
|
+
var R, v;
|
|
1131
1131
|
const A = {
|
|
1132
|
-
packetsSent: (
|
|
1132
|
+
packetsSent: (R = u.packetsSent) !== null && R !== void 0 ? R : "unknown",
|
|
1133
1133
|
retransmittedPackets: (v = u.retransmittedPacketsSent) !== null && v !== void 0 ? v : void 0,
|
|
1134
1134
|
avgPacketSendDelay: u.totalPacketSendDelay !== void 0 ? u.totalPacketSendDelay / (u.packetsSent || 1) * 1e3 : void 0
|
|
1135
1135
|
};
|
|
1136
1136
|
c.userAudioInput.push(A);
|
|
1137
1137
|
})), h.codec && (c.codecs = [], h.codec.forEach((u) => {
|
|
1138
|
-
const
|
|
1138
|
+
const R = {
|
|
1139
1139
|
status: u.payloadType ? "Active" : "Available",
|
|
1140
1140
|
mimeType: u.mimeType || "Unknown",
|
|
1141
1141
|
payloadType: u.payloadType || "N/A",
|
|
1142
1142
|
clockRate: u.clockRate || void 0,
|
|
1143
1143
|
channels: u.channels || void 0
|
|
1144
1144
|
};
|
|
1145
|
-
c.codecs.push(
|
|
1145
|
+
c.codecs.push(R);
|
|
1146
1146
|
})), h.transport && (c.transportLayer = [], h.transport.forEach((u) => {
|
|
1147
|
-
const
|
|
1147
|
+
const R = {
|
|
1148
1148
|
dtlsState: u.dtlsState || "unknown",
|
|
1149
1149
|
iceState: u.iceState || "unknown",
|
|
1150
1150
|
bytesSent: u.bytesSent || void 0,
|
|
1151
1151
|
bytesReceived: u.bytesReceived || void 0
|
|
1152
1152
|
};
|
|
1153
|
-
c.transportLayer.push(
|
|
1153
|
+
c.transportLayer.push(R);
|
|
1154
1154
|
}));
|
|
1155
1155
|
const f = [];
|
|
1156
1156
|
if (l.forEach((u) => {
|
|
@@ -1171,22 +1171,22 @@ const Je = (i) => {
|
|
|
1171
1171
|
console.log(`DTLS State: ${u.dtlsState}`), console.log(`ICE State: ${u.iceState}`), (u.bytesReceived || u.bytesSent) && console.log(`Data Transfer (bytes) - Sent: ${(u.bytesSent || 0).toLocaleString()}, Received: ${(u.bytesReceived || 0).toLocaleString()}`);
|
|
1172
1172
|
}), console.groupEnd()), c.issues.length > 0 ? (console.group("⚠️ Potential Issues Detected"), c.issues.forEach((u) => console.warn(u)), console.groupEnd()) : console.log("✅ No significant issues detected"), console.groupEnd();
|
|
1173
1173
|
};
|
|
1174
|
-
var
|
|
1174
|
+
var le;
|
|
1175
1175
|
(function(i) {
|
|
1176
1176
|
i.CLIENT_ERROR_CODE_USAGE_LIMIT_REACHED = "CLIENT_ERROR_CODE_USAGE_LIMIT_REACHED", i.CLIENT_ERROR_CODE_SPEND_CAP_REACHED = "CLIENT_ERROR_CODE_SPEND_CAP_REACHED", i.CLIENT_ERROR_CODE_VALIDATION_ERROR = "CLIENT_ERROR_CODE_VALIDATION_ERROR", i.CLIENT_ERROR_CODE_AUTHENTICATION_ERROR = "CLIENT_ERROR_CODE_AUTHENTICATION_ERROR", i.CLIENT_ERROR_CODE_SERVER_ERROR = "CLIENT_ERROR_CODE_SERVER_ERROR", i.CLIENT_ERROR_CODE_MAX_CONCURRENT_SESSIONS_REACHED = "CLIENT_ERROR_CODE_MAX_CONCURRENT_SESSIONS_REACHED", i.CLIENT_ERROR_CODE_SERVICE_BUSY = "CLIENT_ERROR_CODE_SERVICE_BUSY", i.CLIENT_ERROR_CODE_NO_PLAN_FOUND = "CLIENT_ERROR_CODE_NO_PLAN_FOUND", i.CLIENT_ERROR_CODE_UNKNOWN_ERROR = "CLIENT_ERROR_CODE_UNKNOWN_ERROR", i.CLIENT_ERROR_CODE_CONFIGURATION_ERROR = "CLIENT_ERROR_CODE_CONFIGURATION_ERROR";
|
|
1177
|
-
})(
|
|
1178
|
-
class
|
|
1177
|
+
})(le || (le = {}));
|
|
1178
|
+
class re extends Error {
|
|
1179
1179
|
constructor(r, n, o = 500, d) {
|
|
1180
|
-
super(r), this.name = "ClientError", this.code = n, this.statusCode = o, this.details = d, Object.setPrototypeOf(this,
|
|
1180
|
+
super(r), this.name = "ClientError", this.code = n, this.statusCode = o, this.details = d, Object.setPrototypeOf(this, re.prototype), Ke(_e.CLIENT_METRIC_MEASUREMENT_ERROR, n, {
|
|
1181
1181
|
details: d,
|
|
1182
1182
|
statusCode: o
|
|
1183
1183
|
});
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Rt() {
|
|
1187
1187
|
return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : Date.now().toString(36) + Math.random().toString(36).substr(2, 9);
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function _r(i) {
|
|
1190
1190
|
if (!(!i || !i.enabled)) {
|
|
1191
1191
|
if (!i.baseUrl)
|
|
1192
1192
|
return "API Gateway baseUrl is required when enabled";
|
|
@@ -1201,10 +1201,10 @@ function Or(i) {
|
|
|
1201
1201
|
return "API Gateway wsPath must start with /";
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
var
|
|
1204
|
+
var de;
|
|
1205
1205
|
(function(i) {
|
|
1206
1206
|
i.OFFER = "offer", i.ANSWER = "answer", i.ICE_CANDIDATE = "icecandidate", i.END_SESSION = "endsession", i.HEARTBEAT = "heartbeat", i.WARNING = "warning", i.TALK_STREAM_INTERRUPTED = "talkinputstreaminterrupted", i.TALK_STREAM_INPUT = "talkstream", i.SESSION_READY = "sessionready", i.AGENT_AUDIO_INPUT = "agentaudioinput", i.AGENT_AUDIO_INPUT_END = "agentaudioinputend";
|
|
1207
|
-
})(
|
|
1207
|
+
})(de || (de = {}));
|
|
1208
1208
|
var ot;
|
|
1209
1209
|
(function(i) {
|
|
1210
1210
|
i.SPEECH_TEXT = "speechText", i.CLIENT_TOOL_EVENT = "clientToolEvent";
|
|
@@ -1221,15 +1221,15 @@ var F;
|
|
|
1221
1221
|
(function(i) {
|
|
1222
1222
|
i.MESSAGE_HISTORY_UPDATED = "MESSAGE_HISTORY_UPDATED", i.MESSAGE_STREAM_EVENT_RECEIVED = "MESSAGE_STREAM_EVENT_RECEIVED", i.CONNECTION_ESTABLISHED = "CONNECTION_ESTABLISHED", i.CONNECTION_CLOSED = "CONNECTION_CLOSED", i.INPUT_AUDIO_STREAM_STARTED = "INPUT_AUDIO_STREAM_STARTED", i.VIDEO_STREAM_STARTED = "VIDEO_STREAM_STARTED", i.VIDEO_PLAY_STARTED = "VIDEO_PLAY_STARTED", i.AUDIO_STREAM_STARTED = "AUDIO_STREAM_STARTED", i.TALK_STREAM_INTERRUPTED = "TALK_STREAM_INTERRUPTED", i.SESSION_READY = "SESSION_READY", i.SERVER_WARNING = "SERVER_WARNING", i.MIC_PERMISSION_PENDING = "MIC_PERMISSION_PENDING", i.MIC_PERMISSION_GRANTED = "MIC_PERMISSION_GRANTED", i.MIC_PERMISSION_DENIED = "MIC_PERMISSION_DENIED", i.INPUT_AUDIO_DEVICE_CHANGED = "INPUT_AUDIO_DEVICE_CHANGED", i.CLIENT_TOOL_EVENT_RECEIVED = "CLIENT_TOOL_EVENT_RECEIVED";
|
|
1223
1223
|
})(F || (F = {}));
|
|
1224
|
-
var
|
|
1224
|
+
var be;
|
|
1225
1225
|
(function(i) {
|
|
1226
1226
|
i.WEB_SOCKET_OPEN = "WEB_SOCKET_OPEN", i.SIGNAL_MESSAGE_RECEIVED = "SIGNAL_MESSAGE_RECEIVED", i.WEBRTC_CHAT_MESSAGE_RECEIVED = "WEBRTC_CHAT_MESSAGE_RECEIVED", i.WEBRTC_CLIENT_TOOL_EVENT_RECEIVED = "WEBRTC_CLIENT_TOOL_EVENT_RECEIVED";
|
|
1227
|
-
})(
|
|
1227
|
+
})(be || (be = {}));
|
|
1228
1228
|
var Ve;
|
|
1229
1229
|
(function(i) {
|
|
1230
1230
|
i.NORMAL = "CONNECTION_CLOSED_CODE_NORMAL", i.MICROPHONE_PERMISSION_DENIED = "CONNECTION_CLOSED_CODE_MICROPHONE_PERMISSION_DENIED", i.SIGNALLING_CLIENT_CONNECTION_FAILURE = "CONNECTION_CLOSED_CODE_SIGNALLING_CLIENT_CONNECTION_FAILURE", i.WEBRTC_FAILURE = "CONNECTION_CLOSED_CODE_WEBRTC_FAILURE", i.SERVER_CLOSED_CONNECTION = "CONNECTION_CLOSED_CODE_SERVER_CLOSED_CONNECTION";
|
|
1231
1231
|
})(Ve || (Ve = {}));
|
|
1232
|
-
class
|
|
1232
|
+
class Tr {
|
|
1233
1233
|
constructor(r, n) {
|
|
1234
1234
|
this.sequenceNumber = 0, this.config = r, this.signallingClient = n;
|
|
1235
1235
|
}
|
|
@@ -1298,24 +1298,24 @@ var Qe = function(i, r, n, o) {
|
|
|
1298
1298
|
w((o = o.apply(i, r || [])).next());
|
|
1299
1299
|
});
|
|
1300
1300
|
};
|
|
1301
|
-
const
|
|
1302
|
-
class
|
|
1301
|
+
const Or = 5, Dr = 5;
|
|
1302
|
+
class Mr {
|
|
1303
1303
|
constructor(r, n, o, d, h) {
|
|
1304
1304
|
var c, l, m, w, f;
|
|
1305
1305
|
if (this.stopSignal = !1, this.sendingBuffer = [], this.wsConnectionAttempts = 0, this.socket = null, this.heartBeatIntervalRef = null, this.publicEventEmitter = o, this.internalEventEmitter = d, this.apiGatewayConfig = h, !r)
|
|
1306
1306
|
throw new Error("Signalling Client: sessionId is required");
|
|
1307
1307
|
this.sessionId = r;
|
|
1308
|
-
const { heartbeatIntervalSeconds: u, maxWsReconnectionAttempts:
|
|
1309
|
-
if (this.heartbeatIntervalSeconds = u ||
|
|
1308
|
+
const { heartbeatIntervalSeconds: u, maxWsReconnectionAttempts: R, url: v } = n;
|
|
1309
|
+
if (this.heartbeatIntervalSeconds = u || Or, this.maxWsReconnectionAttempts = R || Dr, !v.baseUrl)
|
|
1310
1310
|
throw new Error("Signalling Client: baseUrl is required");
|
|
1311
1311
|
if (!((c = this.apiGatewayConfig) === null || c === void 0) && c.enabled && (!((l = this.apiGatewayConfig) === null || l === void 0) && l.baseUrl)) {
|
|
1312
|
-
const A = new URL(this.apiGatewayConfig.baseUrl),
|
|
1313
|
-
A.protocol = A.protocol.replace("http", "ws"), A.pathname =
|
|
1314
|
-
const
|
|
1315
|
-
W.protocol =
|
|
1312
|
+
const A = new URL(this.apiGatewayConfig.baseUrl), C = (m = this.apiGatewayConfig.wsPath) !== null && m !== void 0 ? m : "/ws";
|
|
1313
|
+
A.protocol = A.protocol.replace("http", "ws"), A.pathname = C, this.url = A;
|
|
1314
|
+
const D = v.protocol || "https", _ = D === "http" ? "ws" : "wss", V = `${D}://${v.baseUrl}`, j = (w = v.signallingPath) !== null && w !== void 0 ? w : "/ws", W = new URL(V);
|
|
1315
|
+
W.protocol = _ === "ws" ? "ws:" : "wss:", v.port && (W.port = v.port), W.pathname = j, W.searchParams.append("session_id", r), this.url.searchParams.append("target_url", W.href);
|
|
1316
1316
|
} else {
|
|
1317
|
-
const
|
|
1318
|
-
this.url = new URL(
|
|
1317
|
+
const C = `${v.protocol || "https"}://${v.baseUrl}`;
|
|
1318
|
+
this.url = new URL(C), this.url.protocol = v.protocol === "http" ? "ws:" : "wss:", v.port && (this.url.port = v.port), this.url.pathname = (f = v.signallingPath) !== null && f !== void 0 ? f : "/ws", this.url.searchParams.append("session_id", r);
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
stop() {
|
|
@@ -1331,7 +1331,7 @@ class Ur {
|
|
|
1331
1331
|
userUid: this.sessionId
|
|
1332
1332
|
// TODO: this should be renamed to session Id on the server
|
|
1333
1333
|
}, o = {
|
|
1334
|
-
actionType:
|
|
1334
|
+
actionType: de.OFFER,
|
|
1335
1335
|
sessionId: this.sessionId,
|
|
1336
1336
|
payload: n
|
|
1337
1337
|
};
|
|
@@ -1341,7 +1341,7 @@ class Ur {
|
|
|
1341
1341
|
sendIceCandidate(r) {
|
|
1342
1342
|
return Qe(this, void 0, void 0, function* () {
|
|
1343
1343
|
const n = {
|
|
1344
|
-
actionType:
|
|
1344
|
+
actionType: de.ICE_CANDIDATE,
|
|
1345
1345
|
sessionId: this.sessionId,
|
|
1346
1346
|
payload: r.toJSON()
|
|
1347
1347
|
};
|
|
@@ -1362,7 +1362,7 @@ class Ur {
|
|
|
1362
1362
|
sendTalkMessage(r) {
|
|
1363
1363
|
return Qe(this, void 0, void 0, function* () {
|
|
1364
1364
|
const n = {
|
|
1365
|
-
actionType:
|
|
1365
|
+
actionType: de.TALK_STREAM_INPUT,
|
|
1366
1366
|
sessionId: this.sessionId,
|
|
1367
1367
|
payload: r
|
|
1368
1368
|
};
|
|
@@ -1371,7 +1371,7 @@ class Ur {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
sendAgentAudioInput(r) {
|
|
1373
1373
|
const n = {
|
|
1374
|
-
actionType:
|
|
1374
|
+
actionType: de.AGENT_AUDIO_INPUT,
|
|
1375
1375
|
sessionId: this.sessionId,
|
|
1376
1376
|
payload: r
|
|
1377
1377
|
};
|
|
@@ -1379,7 +1379,7 @@ class Ur {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
sendAgentAudioInputEnd() {
|
|
1381
1381
|
const r = {
|
|
1382
|
-
actionType:
|
|
1382
|
+
actionType: de.AGENT_AUDIO_INPUT_END,
|
|
1383
1383
|
sessionId: this.sessionId,
|
|
1384
1384
|
payload: {}
|
|
1385
1385
|
};
|
|
@@ -1393,7 +1393,7 @@ class Ur {
|
|
|
1393
1393
|
if (!this.socket)
|
|
1394
1394
|
throw new Error("SignallingClient - onOpen: socket is null");
|
|
1395
1395
|
try {
|
|
1396
|
-
this.wsConnectionAttempts = 0, this.flushSendingBuffer(), this.socket.onmessage = this.onMessage.bind(this), this.startSendingHeartBeats(), this.internalEventEmitter.emit(
|
|
1396
|
+
this.wsConnectionAttempts = 0, this.flushSendingBuffer(), this.socket.onmessage = this.onMessage.bind(this), this.startSendingHeartBeats(), this.internalEventEmitter.emit(be.WEB_SOCKET_OPEN);
|
|
1397
1397
|
} catch (r) {
|
|
1398
1398
|
console.error("SignallingClient - onOpen: error in onOpen", r), this.publicEventEmitter.emit(F.CONNECTION_CLOSED, Ve.SIGNALLING_CLIENT_CONNECTION_FAILURE);
|
|
1399
1399
|
}
|
|
@@ -1419,7 +1419,7 @@ class Ur {
|
|
|
1419
1419
|
onMessage(r) {
|
|
1420
1420
|
return Qe(this, void 0, void 0, function* () {
|
|
1421
1421
|
const n = JSON.parse(r.data);
|
|
1422
|
-
this.internalEventEmitter.emit(
|
|
1422
|
+
this.internalEventEmitter.emit(be.SIGNAL_MESSAGE_RECEIVED, n);
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
1425
1425
|
startSendingHeartBeats() {
|
|
@@ -1427,7 +1427,7 @@ class Ur {
|
|
|
1427
1427
|
throw new Error("SignallingClient - startSendingHeartBeats: socket is null");
|
|
1428
1428
|
this.heartBeatIntervalRef && console.warn("SignallingClient - startSendingHeartBeats: heartbeat interval already set");
|
|
1429
1429
|
const r = this.heartbeatIntervalSeconds * 1e3, n = {
|
|
1430
|
-
actionType:
|
|
1430
|
+
actionType: de.HEARTBEAT,
|
|
1431
1431
|
sessionId: this.sessionId,
|
|
1432
1432
|
payload: ""
|
|
1433
1433
|
}, o = JSON.stringify(n);
|
|
@@ -1437,7 +1437,7 @@ class Ur {
|
|
|
1437
1437
|
}, r);
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function Br(i) {
|
|
1441
1441
|
return "brainType" in i || "llmId" in i;
|
|
1442
1442
|
}
|
|
1443
1443
|
var Nt = function(i, r, n, o) {
|
|
@@ -1467,11 +1467,11 @@ var Nt = function(i, r, n, o) {
|
|
|
1467
1467
|
w((o = o.apply(i, r || [])).next());
|
|
1468
1468
|
});
|
|
1469
1469
|
};
|
|
1470
|
-
class
|
|
1470
|
+
class Ur {
|
|
1471
1471
|
constructor(r, n, o) {
|
|
1472
1472
|
if (!r && !n)
|
|
1473
1473
|
throw new Error("Either sessionToken or apiKey must be provided");
|
|
1474
|
-
this.sessionToken = r || null, this.apiKey = n || null, this.baseUrl = o?.baseUrl ||
|
|
1474
|
+
this.sessionToken = r || null, this.apiKey = n || null, this.baseUrl = o?.baseUrl || xr, this.apiVersion = o?.apiVersion || Sr, this.apiGatewayConfig = o?.apiGateway || void 0;
|
|
1475
1475
|
}
|
|
1476
1476
|
/**
|
|
1477
1477
|
* Builds URL and headers for a request, applying API Gateway configuration if enabled
|
|
@@ -1491,7 +1491,7 @@ class Lr {
|
|
|
1491
1491
|
return Nt(this, void 0, void 0, function* () {
|
|
1492
1492
|
if (!this.sessionToken) {
|
|
1493
1493
|
if (!r)
|
|
1494
|
-
throw new
|
|
1494
|
+
throw new re("Persona configuration must be provided when using apiKey", le.CLIENT_ERROR_CODE_VALIDATION_ERROR, 400);
|
|
1495
1495
|
this.sessionToken = yield this.unsafe_getSessionToken(r);
|
|
1496
1496
|
}
|
|
1497
1497
|
r && "brainType" in r && console.warn("Warning: brainType is deprecated and will be removed in a future version. Please use llmId instead.");
|
|
@@ -1505,7 +1505,7 @@ class Lr {
|
|
|
1505
1505
|
body: JSON.stringify({
|
|
1506
1506
|
personaConfig: r,
|
|
1507
1507
|
sessionOptions: n,
|
|
1508
|
-
clientMetadata:
|
|
1508
|
+
clientMetadata: Pt
|
|
1509
1509
|
})
|
|
1510
1510
|
}), l = yield c.json(), m = l.error;
|
|
1511
1511
|
switch (c.status) {
|
|
@@ -1513,22 +1513,22 @@ class Lr {
|
|
|
1513
1513
|
case 201:
|
|
1514
1514
|
return l;
|
|
1515
1515
|
case 400:
|
|
1516
|
-
throw new
|
|
1516
|
+
throw new re("Invalid request to start session", le.CLIENT_ERROR_CODE_VALIDATION_ERROR, 400, { cause: l.message });
|
|
1517
1517
|
case 401:
|
|
1518
|
-
throw new
|
|
1518
|
+
throw new re("Authentication failed when starting session", le.CLIENT_ERROR_CODE_AUTHENTICATION_ERROR, 401, { cause: l.message });
|
|
1519
1519
|
case 402:
|
|
1520
|
-
throw new
|
|
1520
|
+
throw new re("Please sign up for a plan to start a session", le.CLIENT_ERROR_CODE_NO_PLAN_FOUND, 402, { cause: l.message });
|
|
1521
1521
|
case 403:
|
|
1522
|
-
throw new
|
|
1522
|
+
throw new re("Authentication failed when starting session", le.CLIENT_ERROR_CODE_AUTHENTICATION_ERROR, 403, { cause: l.message });
|
|
1523
1523
|
case 429:
|
|
1524
|
-
throw m === "Concurrent session limit reached" ? new
|
|
1524
|
+
throw m === "Concurrent session limit reached" ? new re("Concurrency limit reached, please upgrade your plan", le.CLIENT_ERROR_CODE_MAX_CONCURRENT_SESSIONS_REACHED, 429, { cause: l.message }) : m === "Spend cap reached" ? new re("Spend cap reached, please upgrade your plan", le.CLIENT_ERROR_CODE_SPEND_CAP_REACHED, 429, { cause: l.message }) : new re("Usage limit reached, please upgrade your plan", le.CLIENT_ERROR_CODE_USAGE_LIMIT_REACHED, 429, { cause: l.message });
|
|
1525
1525
|
case 503:
|
|
1526
|
-
throw new
|
|
1526
|
+
throw new re("There are no available personas, please try again later", le.CLIENT_ERROR_CODE_SERVICE_BUSY, 503, { cause: l.message });
|
|
1527
1527
|
default:
|
|
1528
|
-
throw new
|
|
1528
|
+
throw new re("Unknown error when starting session", le.CLIENT_ERROR_CODE_SERVER_ERROR, 500, { cause: l.message });
|
|
1529
1529
|
}
|
|
1530
1530
|
} catch (o) {
|
|
1531
|
-
throw o instanceof
|
|
1531
|
+
throw o instanceof re ? o : new re("Failed to start session", le.CLIENT_ERROR_CODE_SERVER_ERROR, 500, { cause: o instanceof Error ? o.message : String(o) });
|
|
1532
1532
|
}
|
|
1533
1533
|
});
|
|
1534
1534
|
}
|
|
@@ -1540,7 +1540,7 @@ class Lr {
|
|
|
1540
1540
|
let n = {
|
|
1541
1541
|
clientLabel: "js-sdk-api-key"
|
|
1542
1542
|
};
|
|
1543
|
-
|
|
1543
|
+
Br(r) && (n = Object.assign(Object.assign({}, n), { personaConfig: r }));
|
|
1544
1544
|
try {
|
|
1545
1545
|
const o = `${this.apiVersion}/auth/session-token`, { url: d, headers: h } = this.buildGatewayUrlAndHeaders(o, {
|
|
1546
1546
|
"Content-Type": "application/json",
|
|
@@ -1560,7 +1560,7 @@ class Lr {
|
|
|
1560
1560
|
return `${this.baseUrl}${this.apiVersion}`;
|
|
1561
1561
|
}
|
|
1562
1562
|
}
|
|
1563
|
-
var
|
|
1563
|
+
var Pr = function(i, r, n, o) {
|
|
1564
1564
|
function d(h) {
|
|
1565
1565
|
return h instanceof n ? h : new n(function(c) {
|
|
1566
1566
|
c(h);
|
|
@@ -1587,12 +1587,12 @@ var Fr = function(i, r, n, o) {
|
|
|
1587
1587
|
w((o = o.apply(i, r || [])).next());
|
|
1588
1588
|
});
|
|
1589
1589
|
};
|
|
1590
|
-
class
|
|
1590
|
+
class Lr {
|
|
1591
1591
|
constructor(r, n, o) {
|
|
1592
1592
|
this.baseUrl = r, this.sessionId = n, this.apiGatewayConfig = o;
|
|
1593
1593
|
}
|
|
1594
1594
|
sendTalkCommand(r) {
|
|
1595
|
-
return
|
|
1595
|
+
return Pr(this, void 0, void 0, function* () {
|
|
1596
1596
|
var n, o;
|
|
1597
1597
|
try {
|
|
1598
1598
|
let d, h = {
|
|
@@ -1620,7 +1620,7 @@ class Vr {
|
|
|
1620
1620
|
});
|
|
1621
1621
|
}
|
|
1622
1622
|
}
|
|
1623
|
-
class
|
|
1623
|
+
class Fr {
|
|
1624
1624
|
constructor() {
|
|
1625
1625
|
this.listeners = {};
|
|
1626
1626
|
}
|
|
@@ -1636,9 +1636,9 @@ class Gr {
|
|
|
1636
1636
|
});
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
|
-
class
|
|
1639
|
+
class Vr {
|
|
1640
1640
|
constructor(r, n) {
|
|
1641
|
-
this.messages = [], this.publicEventEmitter = r, this.internalEventEmitter = n, this.internalEventEmitter.addListener(
|
|
1641
|
+
this.messages = [], this.publicEventEmitter = r, this.internalEventEmitter = n, this.internalEventEmitter.addListener(be.WEBRTC_CHAT_MESSAGE_RECEIVED, this.processWebRtcTextMessageEvent.bind(this));
|
|
1642
1642
|
}
|
|
1643
1643
|
webRtcTextMessageEventToMessageStreamEvent(r) {
|
|
1644
1644
|
return {
|
|
@@ -1684,7 +1684,7 @@ class jr {
|
|
|
1684
1684
|
n.endOfSpeech && this.publicEventEmitter.emit(F.MESSAGE_HISTORY_UPDATED, this.messages);
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
1687
|
-
class
|
|
1687
|
+
class Gr {
|
|
1688
1688
|
constructor() {
|
|
1689
1689
|
this.listeners = {};
|
|
1690
1690
|
}
|
|
@@ -1695,9 +1695,9 @@ class Hr {
|
|
|
1695
1695
|
this.listeners[r] && this.listeners[r].delete(n);
|
|
1696
1696
|
}
|
|
1697
1697
|
emit(r, ...n) {
|
|
1698
|
-
if (r === F.CONNECTION_ESTABLISHED &&
|
|
1698
|
+
if (r === F.CONNECTION_ESTABLISHED && Ke(_e.CLIENT_METRIC_MEASUREMENT_CONNECTION_ESTABLISHED, "1"), r === F.CONNECTION_CLOSED) {
|
|
1699
1699
|
const [o, d] = n;
|
|
1700
|
-
|
|
1700
|
+
Ke(_e.CLIENT_METRIC_MEASUREMENT_CONNECTION_CLOSED, o, d ? { details: d } : void 0);
|
|
1701
1701
|
}
|
|
1702
1702
|
this.listeners[r] && this.listeners[r].forEach((o) => {
|
|
1703
1703
|
o(...n);
|
|
@@ -1708,7 +1708,7 @@ var ue;
|
|
|
1708
1708
|
(function(i) {
|
|
1709
1709
|
i[i.UNSTARTED = 0] = "UNSTARTED", i[i.STREAMING = 1] = "STREAMING", i[i.INTERRUPTED = 2] = "INTERRUPTED", i[i.ENDED = 3] = "ENDED";
|
|
1710
1710
|
})(ue || (ue = {}));
|
|
1711
|
-
var
|
|
1711
|
+
var ht = function(i, r, n, o) {
|
|
1712
1712
|
function d(h) {
|
|
1713
1713
|
return h instanceof n ? h : new n(function(c) {
|
|
1714
1714
|
c(h);
|
|
@@ -1735,20 +1735,20 @@ var pt = function(i, r, n, o) {
|
|
|
1735
1735
|
w((o = o.apply(i, r || [])).next());
|
|
1736
1736
|
});
|
|
1737
1737
|
};
|
|
1738
|
-
class
|
|
1738
|
+
class jr {
|
|
1739
1739
|
constructor(r, n, o) {
|
|
1740
|
-
this.state = ue.UNSTARTED, this.correlationId = r, this.internalEventEmitter = n, this.signallingClient = o, this.internalEventEmitter.addListener(
|
|
1740
|
+
this.state = ue.UNSTARTED, this.correlationId = r, this.internalEventEmitter = n, this.signallingClient = o, this.internalEventEmitter.addListener(be.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this));
|
|
1741
1741
|
}
|
|
1742
1742
|
onDeactivate() {
|
|
1743
|
-
this.internalEventEmitter.removeListener(
|
|
1743
|
+
this.internalEventEmitter.removeListener(be.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this));
|
|
1744
1744
|
}
|
|
1745
1745
|
onSignalMessage(r) {
|
|
1746
|
-
return
|
|
1747
|
-
r.actionType ===
|
|
1746
|
+
return ht(this, void 0, void 0, function* () {
|
|
1747
|
+
r.actionType === de.TALK_STREAM_INTERRUPTED && r.payload.correlationId === this.correlationId && (this.state = ue.INTERRUPTED, this.onDeactivate());
|
|
1748
1748
|
});
|
|
1749
1749
|
}
|
|
1750
1750
|
endMessage() {
|
|
1751
|
-
return
|
|
1751
|
+
return ht(this, void 0, void 0, function* () {
|
|
1752
1752
|
if (this.state === ue.ENDED) {
|
|
1753
1753
|
console.warn("Talk stream is already ended via end of speech. No need to call endMessage.");
|
|
1754
1754
|
return;
|
|
@@ -1767,7 +1767,7 @@ class zr {
|
|
|
1767
1767
|
});
|
|
1768
1768
|
}
|
|
1769
1769
|
streamMessageChunk(r, n) {
|
|
1770
|
-
return
|
|
1770
|
+
return ht(this, void 0, void 0, function* () {
|
|
1771
1771
|
if (this.state !== ue.STREAMING && this.state !== ue.UNSTARTED)
|
|
1772
1772
|
throw new Error("Talk stream is not in an active state: " + this.state);
|
|
1773
1773
|
const o = {
|
|
@@ -1816,8 +1816,8 @@ var pe = function(i, r, n, o) {
|
|
|
1816
1816
|
w((o = o.apply(i, r || [])).next());
|
|
1817
1817
|
});
|
|
1818
1818
|
};
|
|
1819
|
-
const
|
|
1820
|
-
class
|
|
1819
|
+
const Hr = 15e3, zr = 5e3, Wr = 2;
|
|
1820
|
+
class Kr {
|
|
1821
1821
|
constructor(r, n, o, d) {
|
|
1822
1822
|
var h, c, l, m;
|
|
1823
1823
|
this.peerConnection = null, this.connectionReceivedAnswer = !1, this.remoteIceCandidateBuffer = [], this.inputAudioStream = null, this.dataChannel = null, this.videoElement = null, this.videoStream = null, this.audioStream = null, this.inputAudioState = {
|
|
@@ -1825,7 +1825,7 @@ class Qr {
|
|
|
1825
1825
|
permissionState: Fe.NOT_REQUESTED
|
|
1826
1826
|
}, this.successMetricPoller = null, this.successMetricFired = !1, this.showPeerConnectionStatsReport = !1, this.peerConnectionStatsReportOutputFormat = "console", this.statsCollectionInterval = null, this.agentAudioInputStream = null, this.publicEventEmitter = o, this.internalEventEmitter = d, this.apiGatewayConfig = n.apiGateway;
|
|
1827
1827
|
const { inputAudio: w } = n;
|
|
1828
|
-
this.inputAudioState = w.inputAudioState, n.inputAudio.userProvidedMediaStream && (this.inputAudioStream = n.inputAudio.userProvidedMediaStream), this.disableInputAudio = n.inputAudio.disableInputAudio === !0, this.internalEventEmitter.addListener(
|
|
1828
|
+
this.inputAudioState = w.inputAudioState, n.inputAudio.userProvidedMediaStream && (this.inputAudioStream = n.inputAudio.userProvidedMediaStream), this.disableInputAudio = n.inputAudio.disableInputAudio === !0, this.internalEventEmitter.addListener(be.WEB_SOCKET_OPEN, this.onSignallingClientConnected.bind(this)), this.internalEventEmitter.addListener(be.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this)), this.iceServers = n.iceServers, this.signallingClient = new Mr(r, n.signalling, this.publicEventEmitter, this.internalEventEmitter, this.apiGatewayConfig), this.engineApiRestClient = new Lr(n.engine.baseUrl, r, this.apiGatewayConfig), this.audioDeviceId = n.inputAudio.audioDeviceId, this.showPeerConnectionStatsReport = (c = (h = n.metrics) === null || h === void 0 ? void 0 : h.showPeerConnectionStatsReport) !== null && c !== void 0 ? c : !1, this.peerConnectionStatsReportOutputFormat = (m = (l = n.metrics) === null || l === void 0 ? void 0 : l.peerConnectionStatsReportOutputFormat) !== null && m !== void 0 ? m : "console";
|
|
1829
1829
|
}
|
|
1830
1830
|
onInputAudioStateChange(r, n) {
|
|
1831
1831
|
r.isMuted !== n.isMuted && (n.isMuted ? this.muteAllAudioTracks() : this.unmuteAllAudioTracks());
|
|
@@ -1851,7 +1851,7 @@ class Qr {
|
|
|
1851
1851
|
} catch (r) {
|
|
1852
1852
|
console.error("Failed to collect and send stats:", r);
|
|
1853
1853
|
}
|
|
1854
|
-
}),
|
|
1854
|
+
}), zr));
|
|
1855
1855
|
}
|
|
1856
1856
|
sendClientSideMetrics(r) {
|
|
1857
1857
|
r.forEach((n) => {
|
|
@@ -1869,7 +1869,7 @@ class Qr {
|
|
|
1869
1869
|
return;
|
|
1870
1870
|
const r = setTimeout(() => {
|
|
1871
1871
|
this.successMetricPoller && (console.warn("No video frames received, there is a problem with the connection."), clearInterval(this.successMetricPoller), this.successMetricPoller = null);
|
|
1872
|
-
},
|
|
1872
|
+
}, Hr);
|
|
1873
1873
|
this.successMetricPoller = setInterval(() => pe(this, void 0, void 0, function* () {
|
|
1874
1874
|
if (!this.peerConnection || this.successMetricFired) {
|
|
1875
1875
|
this.successMetricPoller && clearInterval(this.successMetricPoller), clearTimeout(r);
|
|
@@ -1881,7 +1881,7 @@ class Qr {
|
|
|
1881
1881
|
n.forEach((h) => {
|
|
1882
1882
|
h.type === "inbound-rtp" && h.kind === "video" && (h.framesDecoded !== void 0 && h.framesDecoded > 0 ? (o = !0, d = "framesDecoded") : h.framesReceived !== void 0 && h.framesReceived > 0 ? (o = !0, d = "framesReceived") : h.bytesReceived > 0 && h.packetsReceived > 0 && // Additional check: ensure we've received enough data for actual video
|
|
1883
1883
|
h.bytesReceived > 1e5 && (o = !0, d = "bytesReceived"));
|
|
1884
|
-
}), o && !this.successMetricFired && (this.successMetricFired = !0,
|
|
1884
|
+
}), o && !this.successMetricFired && (this.successMetricFired = !0, Ke(_e.CLIENT_METRIC_MEASUREMENT_SESSION_SUCCESS, "1", d ? { detectionMethod: d } : void 0), this.successMetricPoller && clearInterval(this.successMetricPoller), clearTimeout(r), this.successMetricPoller = null);
|
|
1885
1885
|
} catch {
|
|
1886
1886
|
}
|
|
1887
1887
|
}), 500);
|
|
@@ -1969,10 +1969,10 @@ class Qr {
|
|
|
1969
1969
|
});
|
|
1970
1970
|
}
|
|
1971
1971
|
startTalkMessageStream(r) {
|
|
1972
|
-
return r || (r = Math.random().toString(36).substring(2, 15)), new
|
|
1972
|
+
return r || (r = Math.random().toString(36).substring(2, 15)), new jr(r, this.internalEventEmitter, this.signallingClient);
|
|
1973
1973
|
}
|
|
1974
1974
|
createAgentAudioInputStream(r) {
|
|
1975
|
-
return this.agentAudioInputStream = new
|
|
1975
|
+
return this.agentAudioInputStream = new Tr(r, this.signallingClient), this.agentAudioInputStream;
|
|
1976
1976
|
}
|
|
1977
1977
|
getAgentAudioInputStream() {
|
|
1978
1978
|
return this.agentAudioInputStream;
|
|
@@ -1981,7 +1981,7 @@ class Qr {
|
|
|
1981
1981
|
return pe(this, void 0, void 0, function* () {
|
|
1982
1982
|
this.peerConnection = new RTCPeerConnection({
|
|
1983
1983
|
iceServers: this.iceServers,
|
|
1984
|
-
iceCandidatePoolSize:
|
|
1984
|
+
iceCandidatePoolSize: Wr
|
|
1985
1985
|
}), this.peerConnection.onicecandidate = this.onIceCandidate.bind(this), this.peerConnection.oniceconnectionstatechange = this.onIceConnectionStateChange.bind(this), this.peerConnection.onconnectionstatechange = this.onConnectionStateChange.bind(this), this.peerConnection.addEventListener("track", this.onTrackEventHandler.bind(this)), yield this.setupDataChannels(), this.peerConnection.addTransceiver("video", { direction: "recvonly" }), this.disableInputAudio ? this.peerConnection.addTransceiver("audio", { direction: "recvonly" }) : (this.peerConnection.addTransceiver("audio", { direction: "sendrecv" }), this.inputAudioStream ? yield this.setupAudioTrack() : this.requestMicrophonePermissionAsync().catch((r) => {
|
|
1986
1986
|
console.error("Async microphone permission request failed:", r);
|
|
1987
1987
|
}));
|
|
@@ -1994,31 +1994,31 @@ class Qr {
|
|
|
1994
1994
|
return;
|
|
1995
1995
|
}
|
|
1996
1996
|
switch (r.actionType) {
|
|
1997
|
-
case
|
|
1997
|
+
case de.ANSWER:
|
|
1998
1998
|
const n = r.payload;
|
|
1999
1999
|
yield this.peerConnection.setRemoteDescription(n), this.connectionReceivedAnswer = !0, this.flushRemoteIceCandidateBuffer();
|
|
2000
2000
|
break;
|
|
2001
|
-
case
|
|
2001
|
+
case de.ICE_CANDIDATE:
|
|
2002
2002
|
const o = r.payload, d = new RTCIceCandidate(o);
|
|
2003
2003
|
this.connectionReceivedAnswer ? yield this.peerConnection.addIceCandidate(d) : this.remoteIceCandidateBuffer.push(d);
|
|
2004
2004
|
break;
|
|
2005
|
-
case
|
|
2005
|
+
case de.END_SESSION:
|
|
2006
2006
|
const h = r.payload;
|
|
2007
2007
|
this.publicEventEmitter.emit(F.CONNECTION_CLOSED, Ve.SERVER_CLOSED_CONNECTION, h), this.shutdown();
|
|
2008
2008
|
break;
|
|
2009
|
-
case
|
|
2009
|
+
case de.WARNING:
|
|
2010
2010
|
const c = r.payload;
|
|
2011
2011
|
console.warn("Warning received from server: " + c), this.publicEventEmitter.emit(F.SERVER_WARNING, c);
|
|
2012
2012
|
break;
|
|
2013
|
-
case
|
|
2013
|
+
case de.TALK_STREAM_INTERRUPTED:
|
|
2014
2014
|
const l = r.payload;
|
|
2015
2015
|
this.publicEventEmitter.emit(F.TALK_STREAM_INTERRUPTED, l.correlationId);
|
|
2016
2016
|
break;
|
|
2017
|
-
case
|
|
2017
|
+
case de.SESSION_READY:
|
|
2018
2018
|
const m = r.sessionId;
|
|
2019
2019
|
this.publicEventEmitter.emit(F.SESSION_READY, m);
|
|
2020
2020
|
break;
|
|
2021
|
-
case
|
|
2021
|
+
case de.HEARTBEAT:
|
|
2022
2022
|
break;
|
|
2023
2023
|
default:
|
|
2024
2024
|
console.warn("StreamingClient - onSignalMessage: unknown signal message action type. Is your anam-sdk version up to date?", r);
|
|
@@ -2071,7 +2071,7 @@ class Qr {
|
|
|
2071
2071
|
this.videoElement.srcObject = this.videoStream;
|
|
2072
2072
|
const n = this.videoElement.requestVideoFrameCallback(() => {
|
|
2073
2073
|
var o;
|
|
2074
|
-
(o = this.videoElement) === null || o === void 0 || o.cancelVideoFrameCallback(n), this.publicEventEmitter.emit(F.VIDEO_PLAY_STARTED), this.successMetricFired || (this.successMetricFired = !0,
|
|
2074
|
+
(o = this.videoElement) === null || o === void 0 || o.cancelVideoFrameCallback(n), this.publicEventEmitter.emit(F.VIDEO_PLAY_STARTED), this.successMetricFired || (this.successMetricFired = !0, Ke(_e.CLIENT_METRIC_MEASUREMENT_SESSION_SUCCESS, "1", { detectionMethod: "videoElement" }));
|
|
2075
2075
|
});
|
|
2076
2076
|
}
|
|
2077
2077
|
} else r.track.kind === "audio" && (this.audioStream = r.streams[0], this.publicEventEmitter.emit(F.AUDIO_STREAM_STARTED, this.audioStream));
|
|
@@ -2098,12 +2098,12 @@ class Qr {
|
|
|
2098
2098
|
const o = JSON.parse(n.data);
|
|
2099
2099
|
switch (o.messageType) {
|
|
2100
2100
|
case ot.SPEECH_TEXT:
|
|
2101
|
-
this.internalEventEmitter.emit(
|
|
2101
|
+
this.internalEventEmitter.emit(be.WEBRTC_CHAT_MESSAGE_RECEIVED, o.data);
|
|
2102
2102
|
break;
|
|
2103
2103
|
case ot.CLIENT_TOOL_EVENT:
|
|
2104
2104
|
const d = o.data;
|
|
2105
|
-
this.internalEventEmitter.emit(
|
|
2106
|
-
const h =
|
|
2105
|
+
this.internalEventEmitter.emit(be.WEBRTC_CLIENT_TOOL_EVENT_RECEIVED, d);
|
|
2106
|
+
const h = Jr.WebRTCClientToolEventToClientToolEvent(d);
|
|
2107
2107
|
this.publicEventEmitter.emit(F.CLIENT_TOOL_EVENT_RECEIVED, h);
|
|
2108
2108
|
break;
|
|
2109
2109
|
// Unknown message types are silently ignored to maintain forward compatibility
|
|
@@ -2190,7 +2190,7 @@ class Qr {
|
|
|
2190
2190
|
if (this.showPeerConnectionStatsReport) {
|
|
2191
2191
|
const n = yield (r = this.peerConnection) === null || r === void 0 ? void 0 : r.getStats();
|
|
2192
2192
|
if (n) {
|
|
2193
|
-
const o =
|
|
2193
|
+
const o = Nr(n, this.peerConnectionStatsReportOutputFormat);
|
|
2194
2194
|
o && console.log(o, void 0, 2);
|
|
2195
2195
|
}
|
|
2196
2196
|
}
|
|
@@ -2215,7 +2215,7 @@ class Qr {
|
|
|
2215
2215
|
});
|
|
2216
2216
|
}
|
|
2217
2217
|
}
|
|
2218
|
-
class
|
|
2218
|
+
class Jr {
|
|
2219
2219
|
/**
|
|
2220
2220
|
* Converts a WebRtcClientToolEvent to a ClientToolEvent
|
|
2221
2221
|
*/
|
|
@@ -2267,12 +2267,12 @@ class pn {
|
|
|
2267
2267
|
}, this.sessionId = null, this.organizationId = null, this.streamingClient = null, this._isStreaming = !1;
|
|
2268
2268
|
const w = this.validateClientConfig(r, n, o);
|
|
2269
2269
|
if (w)
|
|
2270
|
-
throw new
|
|
2271
|
-
this.personaConfig = n, this.clientOptions = o, (!((d = o?.api) === null || d === void 0) && d.baseUrl || !((h = o?.api) === null || h === void 0) && h.apiVersion) &&
|
|
2270
|
+
throw new re(w, le.CLIENT_ERROR_CODE_CONFIGURATION_ERROR, 400);
|
|
2271
|
+
this.personaConfig = n, this.clientOptions = o, (!((d = o?.api) === null || d === void 0) && d.baseUrl || !((h = o?.api) === null || h === void 0) && h.apiVersion) && Cr(o.api.baseUrl || Lt, o.api.apiVersion || bt), !((l = (c = o?.api) === null || c === void 0 ? void 0 : c.apiGateway) === null || l === void 0) && l.enabled && Ir(o.api.apiGateway), !((m = o?.metrics) === null || m === void 0) && m.disableClientMetrics && Rr(!0), this.publicEventEmitter = new Gr(), this.internalEventEmitter = new Fr(), this.apiClient = new Ur(r, o?.apiKey, o?.api), this.messageHistoryClient = new Vr(this.publicEventEmitter, this.internalEventEmitter);
|
|
2272
2272
|
}
|
|
2273
2273
|
decodeJwt(r) {
|
|
2274
2274
|
try {
|
|
2275
|
-
const n = r.split(".")[1], o =
|
|
2275
|
+
const n = r.split(".")[1], o = Er.Buffer.from(n, "base64").toString("utf8");
|
|
2276
2276
|
return JSON.parse(o);
|
|
2277
2277
|
} catch {
|
|
2278
2278
|
throw new Error("Invalid session token format");
|
|
@@ -2284,7 +2284,7 @@ class pn {
|
|
|
2284
2284
|
return "Either sessionToken or apiKey must be provided";
|
|
2285
2285
|
if (o?.apiKey && r)
|
|
2286
2286
|
return "Only one of sessionToken or apiKey should be used";
|
|
2287
|
-
const c =
|
|
2287
|
+
const c = _r((d = o?.api) === null || d === void 0 ? void 0 : d.apiGateway);
|
|
2288
2288
|
if (c)
|
|
2289
2289
|
return c;
|
|
2290
2290
|
if (r) {
|
|
@@ -2318,20 +2318,20 @@ class pn {
|
|
|
2318
2318
|
}
|
|
2319
2319
|
startSession(r) {
|
|
2320
2320
|
return Be(this, void 0, void 0, function* () {
|
|
2321
|
-
var n, o, d, h, c, l, m, w, f, u,
|
|
2322
|
-
const A = this.personaConfig,
|
|
2323
|
-
this.sessionId =
|
|
2321
|
+
var n, o, d, h, c, l, m, w, f, u, R, v;
|
|
2322
|
+
const A = this.personaConfig, C = this.buildStartSessionOptionsForClient(), D = yield this.apiClient.startSession(A, C), { sessionId: _, clientConfig: V, engineHost: j, engineProtocol: W, signallingEndpoint: L } = D, { heartbeatIntervalSeconds: q, maxWsReconnectionAttempts: ae, iceServers: O } = V;
|
|
2323
|
+
this.sessionId = _, Je({
|
|
2324
2324
|
sessionId: this.sessionId
|
|
2325
2325
|
});
|
|
2326
|
-
const G = !((n = this.clientOptions) === null || n === void 0) && n.iceServers ? this.clientOptions.iceServers :
|
|
2326
|
+
const G = !((n = this.clientOptions) === null || n === void 0) && n.iceServers ? this.clientOptions.iceServers : O;
|
|
2327
2327
|
try {
|
|
2328
|
-
this.streamingClient = new
|
|
2328
|
+
this.streamingClient = new Kr(_, {
|
|
2329
2329
|
engine: {
|
|
2330
2330
|
baseUrl: `${W}://${j}`
|
|
2331
2331
|
},
|
|
2332
2332
|
signalling: {
|
|
2333
|
-
heartbeatIntervalSeconds:
|
|
2334
|
-
maxWsReconnectionAttempts:
|
|
2333
|
+
heartbeatIntervalSeconds: q,
|
|
2334
|
+
maxWsReconnectionAttempts: ae,
|
|
2335
2335
|
url: {
|
|
2336
2336
|
baseUrl: j,
|
|
2337
2337
|
protocol: W,
|
|
@@ -2348,24 +2348,24 @@ class pn {
|
|
|
2348
2348
|
apiGateway: (l = (c = this.clientOptions) === null || c === void 0 ? void 0 : c.api) === null || l === void 0 ? void 0 : l.apiGateway,
|
|
2349
2349
|
metrics: {
|
|
2350
2350
|
showPeerConnectionStatsReport: (f = (w = (m = this.clientOptions) === null || m === void 0 ? void 0 : m.metrics) === null || w === void 0 ? void 0 : w.showPeerConnectionStatsReport) !== null && f !== void 0 ? f : !1,
|
|
2351
|
-
peerConnectionStatsReportOutputFormat: (v = (
|
|
2351
|
+
peerConnectionStatsReportOutputFormat: (v = (R = (u = this.clientOptions) === null || u === void 0 ? void 0 : u.metrics) === null || R === void 0 ? void 0 : R.peerConnectionStatsReportOutputFormat) !== null && v !== void 0 ? v : "console"
|
|
2352
2352
|
}
|
|
2353
2353
|
}, this.publicEventEmitter, this.internalEventEmitter);
|
|
2354
2354
|
} catch (H) {
|
|
2355
2355
|
throw Je({
|
|
2356
2356
|
sessionId: null
|
|
2357
|
-
}), new
|
|
2357
|
+
}), new re("Failed to initialize streaming client", le.CLIENT_ERROR_CODE_SERVER_ERROR, 500, {
|
|
2358
2358
|
cause: H instanceof Error ? H.message : String(H),
|
|
2359
|
-
sessionId:
|
|
2359
|
+
sessionId: _
|
|
2360
2360
|
});
|
|
2361
2361
|
}
|
|
2362
|
-
return
|
|
2362
|
+
return _;
|
|
2363
2363
|
});
|
|
2364
2364
|
}
|
|
2365
2365
|
startSessionIfNeeded(r) {
|
|
2366
2366
|
return Be(this, void 0, void 0, function* () {
|
|
2367
2367
|
if ((!this.sessionId || !this.streamingClient) && (yield this.startSession(r), !this.sessionId || !this.streamingClient))
|
|
2368
|
-
throw new
|
|
2368
|
+
throw new re("Session ID or streaming client is not available after starting session", le.CLIENT_ERROR_CODE_SERVER_ERROR, 500, {
|
|
2369
2369
|
cause: "Failed to initialize session properly"
|
|
2370
2370
|
});
|
|
2371
2371
|
});
|
|
@@ -2375,12 +2375,12 @@ class pn {
|
|
|
2375
2375
|
var n;
|
|
2376
2376
|
if (this._isStreaming)
|
|
2377
2377
|
throw new Error("Already streaming");
|
|
2378
|
-
const o =
|
|
2378
|
+
const o = Rt();
|
|
2379
2379
|
return Je({
|
|
2380
2380
|
attemptCorrelationId: o,
|
|
2381
2381
|
sessionId: null
|
|
2382
2382
|
// reset sessionId
|
|
2383
|
-
}),
|
|
2383
|
+
}), Ke(_e.CLIENT_METRIC_MEASUREMENT_SESSION_ATTEMPT, "1"), !((n = this.clientOptions) === null || n === void 0) && n.disableInputAudio && r && console.warn("AnamClient:Input audio is disabled. User provided audio stream will be ignored."), yield this.startSessionIfNeeded(r), this._isStreaming = !0, new Promise((d) => {
|
|
2384
2384
|
var h;
|
|
2385
2385
|
const c = [];
|
|
2386
2386
|
let l = !1, m = !1;
|
|
@@ -2403,16 +2403,16 @@ class pn {
|
|
|
2403
2403
|
streamToVideoElement(r, n) {
|
|
2404
2404
|
return Be(this, void 0, void 0, function* () {
|
|
2405
2405
|
var o;
|
|
2406
|
-
const d =
|
|
2406
|
+
const d = Rt();
|
|
2407
2407
|
Je({
|
|
2408
2408
|
attemptCorrelationId: d,
|
|
2409
2409
|
sessionId: null
|
|
2410
2410
|
// reset sessionId
|
|
2411
|
-
}),
|
|
2411
|
+
}), Ke(_e.CLIENT_METRIC_MEASUREMENT_SESSION_ATTEMPT, "1"), !((o = this.clientOptions) === null || o === void 0) && o.disableInputAudio && n && console.warn("AnamClient:Input audio is disabled. User provided audio stream will be ignored.");
|
|
2412
2412
|
try {
|
|
2413
2413
|
yield this.startSessionIfNeeded(n);
|
|
2414
2414
|
} catch (h) {
|
|
2415
|
-
throw h instanceof
|
|
2415
|
+
throw h instanceof re ? h : new re("Failed to start session", le.CLIENT_ERROR_CODE_SERVER_ERROR, 500, {
|
|
2416
2416
|
cause: h instanceof Error ? h.message : String(h),
|
|
2417
2417
|
sessionId: this.sessionId
|
|
2418
2418
|
});
|
|
@@ -2549,65 +2549,65 @@ class pn {
|
|
|
2549
2549
|
return this.sessionId;
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
|
-
const
|
|
2553
|
-
const i =
|
|
2552
|
+
const Gt = cr(null), tt = () => {
|
|
2553
|
+
const i = dr(Gt);
|
|
2554
2554
|
if (!i)
|
|
2555
2555
|
throw new Error("useAria must be used within an AriaProvider");
|
|
2556
2556
|
return i;
|
|
2557
2557
|
};
|
|
2558
|
-
function
|
|
2558
|
+
function jt(i) {
|
|
2559
2559
|
var r, n, o = "";
|
|
2560
2560
|
if (typeof i == "string" || typeof i == "number") o += i;
|
|
2561
2561
|
else if (typeof i == "object") if (Array.isArray(i)) {
|
|
2562
2562
|
var d = i.length;
|
|
2563
|
-
for (r = 0; r < d; r++) i[r] && (n =
|
|
2563
|
+
for (r = 0; r < d; r++) i[r] && (n = jt(i[r])) && (o && (o += " "), o += n);
|
|
2564
2564
|
} else for (n in i) i[n] && (o && (o += " "), o += n);
|
|
2565
2565
|
return o;
|
|
2566
2566
|
}
|
|
2567
|
-
function
|
|
2568
|
-
for (var i, r, n = 0, o = "", d = arguments.length; n < d; n++) (i = arguments[n]) && (r =
|
|
2567
|
+
function Qr() {
|
|
2568
|
+
for (var i, r, n = 0, o = "", d = arguments.length; n < d; n++) (i = arguments[n]) && (r = jt(i)) && (o && (o += " "), o += r);
|
|
2569
2569
|
return o;
|
|
2570
2570
|
}
|
|
2571
|
-
const
|
|
2571
|
+
const qr = (i, r) => {
|
|
2572
2572
|
const n = new Array(i.length + r.length);
|
|
2573
2573
|
for (let o = 0; o < i.length; o++)
|
|
2574
2574
|
n[o] = i[o];
|
|
2575
2575
|
for (let o = 0; o < r.length; o++)
|
|
2576
2576
|
n[i.length + o] = r[o];
|
|
2577
2577
|
return n;
|
|
2578
|
-
},
|
|
2578
|
+
}, $r = (i, r) => ({
|
|
2579
2579
|
classGroupId: i,
|
|
2580
2580
|
validator: r
|
|
2581
|
-
}),
|
|
2581
|
+
}), Ht = (i = /* @__PURE__ */ new Map(), r = null, n) => ({
|
|
2582
2582
|
nextPart: i,
|
|
2583
2583
|
validators: r,
|
|
2584
2584
|
classGroupId: n
|
|
2585
|
-
}), st = "-",
|
|
2586
|
-
const r =
|
|
2585
|
+
}), st = "-", _t = [], Xr = "arbitrary..", Yr = (i) => {
|
|
2586
|
+
const r = ei(i), {
|
|
2587
2587
|
conflictingClassGroups: n,
|
|
2588
2588
|
conflictingClassGroupModifiers: o
|
|
2589
2589
|
} = i;
|
|
2590
2590
|
return {
|
|
2591
2591
|
getClassGroupId: (c) => {
|
|
2592
2592
|
if (c.startsWith("[") && c.endsWith("]"))
|
|
2593
|
-
return
|
|
2593
|
+
return Zr(c);
|
|
2594
2594
|
const l = c.split(st), m = l[0] === "" && l.length > 1 ? 1 : 0;
|
|
2595
|
-
return
|
|
2595
|
+
return zt(l, m, r);
|
|
2596
2596
|
},
|
|
2597
2597
|
getConflictingClassGroupIds: (c, l) => {
|
|
2598
2598
|
if (l) {
|
|
2599
2599
|
const m = o[c], w = n[c];
|
|
2600
|
-
return m ? w ?
|
|
2600
|
+
return m ? w ? qr(w, m) : m : w || _t;
|
|
2601
2601
|
}
|
|
2602
|
-
return n[c] ||
|
|
2602
|
+
return n[c] || _t;
|
|
2603
2603
|
}
|
|
2604
2604
|
};
|
|
2605
|
-
},
|
|
2605
|
+
}, zt = (i, r, n) => {
|
|
2606
2606
|
if (i.length - r === 0)
|
|
2607
2607
|
return n.classGroupId;
|
|
2608
2608
|
const d = i[r], h = n.nextPart.get(d);
|
|
2609
2609
|
if (h) {
|
|
2610
|
-
const w =
|
|
2610
|
+
const w = zt(i, r + 1, h);
|
|
2611
2611
|
if (w) return w;
|
|
2612
2612
|
}
|
|
2613
2613
|
const c = n.validators;
|
|
@@ -2619,63 +2619,63 @@ const Xr = (i, r) => {
|
|
|
2619
2619
|
if (f.validator(l))
|
|
2620
2620
|
return f.classGroupId;
|
|
2621
2621
|
}
|
|
2622
|
-
},
|
|
2622
|
+
}, Zr = (i) => i.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
2623
2623
|
const r = i.slice(1, -1), n = r.indexOf(":"), o = r.slice(0, n);
|
|
2624
|
-
return o ?
|
|
2625
|
-
})(),
|
|
2624
|
+
return o ? Xr + o : void 0;
|
|
2625
|
+
})(), ei = (i) => {
|
|
2626
2626
|
const {
|
|
2627
2627
|
theme: r,
|
|
2628
2628
|
classGroups: n
|
|
2629
2629
|
} = i;
|
|
2630
|
-
return
|
|
2631
|
-
},
|
|
2632
|
-
const n =
|
|
2630
|
+
return ti(n, r);
|
|
2631
|
+
}, ti = (i, r) => {
|
|
2632
|
+
const n = Ht();
|
|
2633
2633
|
for (const o in i) {
|
|
2634
2634
|
const d = i[o];
|
|
2635
|
-
|
|
2635
|
+
yt(d, n, o, r);
|
|
2636
2636
|
}
|
|
2637
2637
|
return n;
|
|
2638
|
-
},
|
|
2638
|
+
}, yt = (i, r, n, o) => {
|
|
2639
2639
|
const d = i.length;
|
|
2640
2640
|
for (let h = 0; h < d; h++) {
|
|
2641
2641
|
const c = i[h];
|
|
2642
|
-
|
|
2642
|
+
ri(c, r, n, o);
|
|
2643
2643
|
}
|
|
2644
|
-
},
|
|
2644
|
+
}, ri = (i, r, n, o) => {
|
|
2645
2645
|
if (typeof i == "string") {
|
|
2646
|
-
|
|
2646
|
+
ii(i, r, n);
|
|
2647
2647
|
return;
|
|
2648
2648
|
}
|
|
2649
2649
|
if (typeof i == "function") {
|
|
2650
|
-
|
|
2650
|
+
ni(i, r, n, o);
|
|
2651
2651
|
return;
|
|
2652
2652
|
}
|
|
2653
|
-
|
|
2654
|
-
},
|
|
2655
|
-
const o = i === "" ? r :
|
|
2653
|
+
oi(i, r, n, o);
|
|
2654
|
+
}, ii = (i, r, n) => {
|
|
2655
|
+
const o = i === "" ? r : Wt(r, i);
|
|
2656
2656
|
o.classGroupId = n;
|
|
2657
|
-
},
|
|
2658
|
-
if (
|
|
2659
|
-
|
|
2657
|
+
}, ni = (i, r, n, o) => {
|
|
2658
|
+
if (ai(i)) {
|
|
2659
|
+
yt(i(o), r, n, o);
|
|
2660
2660
|
return;
|
|
2661
2661
|
}
|
|
2662
|
-
r.validators === null && (r.validators = []), r.validators.push(
|
|
2663
|
-
},
|
|
2662
|
+
r.validators === null && (r.validators = []), r.validators.push($r(n, i));
|
|
2663
|
+
}, oi = (i, r, n, o) => {
|
|
2664
2664
|
const d = Object.entries(i), h = d.length;
|
|
2665
2665
|
for (let c = 0; c < h; c++) {
|
|
2666
2666
|
const [l, m] = d[c];
|
|
2667
|
-
|
|
2667
|
+
yt(m, Wt(r, l), n, o);
|
|
2668
2668
|
}
|
|
2669
|
-
},
|
|
2669
|
+
}, Wt = (i, r) => {
|
|
2670
2670
|
let n = i;
|
|
2671
2671
|
const o = r.split(st), d = o.length;
|
|
2672
2672
|
for (let h = 0; h < d; h++) {
|
|
2673
2673
|
const c = o[h];
|
|
2674
2674
|
let l = n.nextPart.get(c);
|
|
2675
|
-
l || (l =
|
|
2675
|
+
l || (l = Ht(), n.nextPart.set(c, l)), n = l;
|
|
2676
2676
|
}
|
|
2677
2677
|
return n;
|
|
2678
|
-
},
|
|
2678
|
+
}, ai = (i) => "isThemeGetter" in i && i.isThemeGetter === !0, si = (i) => {
|
|
2679
2679
|
if (i < 1)
|
|
2680
2680
|
return {
|
|
2681
2681
|
get: () => {
|
|
@@ -2699,13 +2699,13 @@ const Xr = (i, r) => {
|
|
|
2699
2699
|
h in n ? n[h] = c : d(h, c);
|
|
2700
2700
|
}
|
|
2701
2701
|
};
|
|
2702
|
-
},
|
|
2702
|
+
}, vt = "!", Tt = ":", li = [], Ot = (i, r, n, o, d) => ({
|
|
2703
2703
|
modifiers: i,
|
|
2704
2704
|
hasImportantModifier: r,
|
|
2705
2705
|
baseClassName: n,
|
|
2706
2706
|
maybePostfixModifierPosition: o,
|
|
2707
2707
|
isExternal: d
|
|
2708
|
-
}),
|
|
2708
|
+
}), ci = (i) => {
|
|
2709
2709
|
const {
|
|
2710
2710
|
prefix: r,
|
|
2711
2711
|
experimentalParseClassName: n
|
|
@@ -2714,35 +2714,35 @@ const Xr = (i, r) => {
|
|
|
2714
2714
|
const h = [];
|
|
2715
2715
|
let c = 0, l = 0, m = 0, w;
|
|
2716
2716
|
const f = d.length;
|
|
2717
|
-
for (let
|
|
2718
|
-
const
|
|
2717
|
+
for (let C = 0; C < f; C++) {
|
|
2718
|
+
const D = d[C];
|
|
2719
2719
|
if (c === 0 && l === 0) {
|
|
2720
|
-
if (
|
|
2721
|
-
h.push(d.slice(m,
|
|
2720
|
+
if (D === Tt) {
|
|
2721
|
+
h.push(d.slice(m, C)), m = C + 1;
|
|
2722
2722
|
continue;
|
|
2723
2723
|
}
|
|
2724
|
-
if (
|
|
2725
|
-
w =
|
|
2724
|
+
if (D === "/") {
|
|
2725
|
+
w = C;
|
|
2726
2726
|
continue;
|
|
2727
2727
|
}
|
|
2728
2728
|
}
|
|
2729
|
-
|
|
2729
|
+
D === "[" ? c++ : D === "]" ? c-- : D === "(" ? l++ : D === ")" && l--;
|
|
2730
2730
|
}
|
|
2731
2731
|
const u = h.length === 0 ? d : d.slice(m);
|
|
2732
|
-
let
|
|
2733
|
-
u.endsWith(
|
|
2732
|
+
let R = u, v = !1;
|
|
2733
|
+
u.endsWith(vt) ? (R = u.slice(0, -1), v = !0) : (
|
|
2734
2734
|
/**
|
|
2735
2735
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
2736
2736
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
2737
2737
|
*/
|
|
2738
|
-
u.startsWith(
|
|
2738
|
+
u.startsWith(vt) && (R = u.slice(1), v = !0)
|
|
2739
2739
|
);
|
|
2740
2740
|
const A = w && w > m ? w - m : void 0;
|
|
2741
|
-
return
|
|
2741
|
+
return Ot(h, v, R, A);
|
|
2742
2742
|
};
|
|
2743
2743
|
if (r) {
|
|
2744
|
-
const d = r +
|
|
2745
|
-
o = (c) => c.startsWith(d) ? h(c.slice(d.length)) :
|
|
2744
|
+
const d = r + Tt, h = o;
|
|
2745
|
+
o = (c) => c.startsWith(d) ? h(c.slice(d.length)) : Ot(li, !1, c, void 0, !0);
|
|
2746
2746
|
}
|
|
2747
2747
|
if (n) {
|
|
2748
2748
|
const d = o;
|
|
@@ -2752,7 +2752,7 @@ const Xr = (i, r) => {
|
|
|
2752
2752
|
});
|
|
2753
2753
|
}
|
|
2754
2754
|
return o;
|
|
2755
|
-
},
|
|
2755
|
+
}, di = (i) => {
|
|
2756
2756
|
const r = /* @__PURE__ */ new Map();
|
|
2757
2757
|
return i.orderSensitiveModifiers.forEach((n, o) => {
|
|
2758
2758
|
r.set(n, 1e6 + o);
|
|
@@ -2765,96 +2765,96 @@ const Xr = (i, r) => {
|
|
|
2765
2765
|
}
|
|
2766
2766
|
return d.length > 0 && (d.sort(), o.push(...d)), o;
|
|
2767
2767
|
};
|
|
2768
|
-
},
|
|
2769
|
-
cache:
|
|
2770
|
-
parseClassName:
|
|
2771
|
-
sortModifiers:
|
|
2772
|
-
...
|
|
2773
|
-
}),
|
|
2768
|
+
}, ui = (i) => ({
|
|
2769
|
+
cache: si(i.cacheSize),
|
|
2770
|
+
parseClassName: ci(i),
|
|
2771
|
+
sortModifiers: di(i),
|
|
2772
|
+
...Yr(i)
|
|
2773
|
+
}), hi = /\s+/, pi = (i, r) => {
|
|
2774
2774
|
const {
|
|
2775
2775
|
parseClassName: n,
|
|
2776
2776
|
getClassGroupId: o,
|
|
2777
2777
|
getConflictingClassGroupIds: d,
|
|
2778
2778
|
sortModifiers: h
|
|
2779
|
-
} = r, c = [], l = i.trim().split(
|
|
2779
|
+
} = r, c = [], l = i.trim().split(hi);
|
|
2780
2780
|
let m = "";
|
|
2781
2781
|
for (let w = l.length - 1; w >= 0; w -= 1) {
|
|
2782
2782
|
const f = l[w], {
|
|
2783
2783
|
isExternal: u,
|
|
2784
|
-
modifiers:
|
|
2784
|
+
modifiers: R,
|
|
2785
2785
|
hasImportantModifier: v,
|
|
2786
2786
|
baseClassName: A,
|
|
2787
|
-
maybePostfixModifierPosition:
|
|
2787
|
+
maybePostfixModifierPosition: C
|
|
2788
2788
|
} = n(f);
|
|
2789
2789
|
if (u) {
|
|
2790
2790
|
m = f + (m.length > 0 ? " " + m : m);
|
|
2791
2791
|
continue;
|
|
2792
2792
|
}
|
|
2793
|
-
let
|
|
2794
|
-
if (!
|
|
2795
|
-
if (!
|
|
2793
|
+
let D = !!C, _ = o(D ? A.substring(0, C) : A);
|
|
2794
|
+
if (!_) {
|
|
2795
|
+
if (!D) {
|
|
2796
2796
|
m = f + (m.length > 0 ? " " + m : m);
|
|
2797
2797
|
continue;
|
|
2798
2798
|
}
|
|
2799
|
-
if (
|
|
2799
|
+
if (_ = o(A), !_) {
|
|
2800
2800
|
m = f + (m.length > 0 ? " " + m : m);
|
|
2801
2801
|
continue;
|
|
2802
2802
|
}
|
|
2803
|
-
|
|
2803
|
+
D = !1;
|
|
2804
2804
|
}
|
|
2805
|
-
const V =
|
|
2805
|
+
const V = R.length === 0 ? "" : R.length === 1 ? R[0] : h(R).join(":"), j = v ? V + vt : V, W = j + _;
|
|
2806
2806
|
if (c.indexOf(W) > -1)
|
|
2807
2807
|
continue;
|
|
2808
2808
|
c.push(W);
|
|
2809
|
-
const L = d(
|
|
2810
|
-
for (let
|
|
2811
|
-
const
|
|
2812
|
-
c.push(j +
|
|
2809
|
+
const L = d(_, D);
|
|
2810
|
+
for (let q = 0; q < L.length; ++q) {
|
|
2811
|
+
const ae = L[q];
|
|
2812
|
+
c.push(j + ae);
|
|
2813
2813
|
}
|
|
2814
2814
|
m = f + (m.length > 0 ? " " + m : m);
|
|
2815
2815
|
}
|
|
2816
2816
|
return m;
|
|
2817
|
-
},
|
|
2817
|
+
}, gi = (...i) => {
|
|
2818
2818
|
let r = 0, n, o, d = "";
|
|
2819
2819
|
for (; r < i.length; )
|
|
2820
|
-
(n = i[r++]) && (o =
|
|
2820
|
+
(n = i[r++]) && (o = Kt(n)) && (d && (d += " "), d += o);
|
|
2821
2821
|
return d;
|
|
2822
|
-
},
|
|
2822
|
+
}, Kt = (i) => {
|
|
2823
2823
|
if (typeof i == "string")
|
|
2824
2824
|
return i;
|
|
2825
2825
|
let r, n = "";
|
|
2826
2826
|
for (let o = 0; o < i.length; o++)
|
|
2827
|
-
i[o] && (r =
|
|
2827
|
+
i[o] && (r = Kt(i[o])) && (n && (n += " "), n += r);
|
|
2828
2828
|
return n;
|
|
2829
|
-
},
|
|
2829
|
+
}, fi = (i, ...r) => {
|
|
2830
2830
|
let n, o, d, h;
|
|
2831
2831
|
const c = (m) => {
|
|
2832
2832
|
const w = r.reduce((f, u) => u(f), i());
|
|
2833
|
-
return n =
|
|
2833
|
+
return n = ui(w), o = n.cache.get, d = n.cache.set, h = l, l(m);
|
|
2834
2834
|
}, l = (m) => {
|
|
2835
2835
|
const w = o(m);
|
|
2836
2836
|
if (w)
|
|
2837
2837
|
return w;
|
|
2838
|
-
const f =
|
|
2838
|
+
const f = pi(m, n);
|
|
2839
2839
|
return d(m, f), f;
|
|
2840
2840
|
};
|
|
2841
|
-
return h = c, (...m) => h(
|
|
2842
|
-
},
|
|
2843
|
-
const r = (n) => n[i] ||
|
|
2841
|
+
return h = c, (...m) => h(gi(...m));
|
|
2842
|
+
}, mi = [], te = (i) => {
|
|
2843
|
+
const r = (n) => n[i] || mi;
|
|
2844
2844
|
return r.isThemeGetter = !0, r;
|
|
2845
|
-
},
|
|
2845
|
+
}, Jt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Qt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, wi = /^\d+\/\d+$/, vi = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bi = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, yi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ai = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ei = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, qe = (i) => wi.test(i), U = (i) => !!i && !Number.isNaN(Number(i)), Ue = (i) => !!i && Number.isInteger(Number(i)), pt = (i) => i.endsWith("%") && U(i.slice(0, -1)), Ne = (i) => vi.test(i), xi = () => !0, Si = (i) => (
|
|
2846
2846
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
2847
2847
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2848
2848
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2849
|
-
|
|
2850
|
-
),
|
|
2851
|
-
const o =
|
|
2849
|
+
bi.test(i) && !yi.test(i)
|
|
2850
|
+
), qt = () => !1, ki = (i) => Ai.test(i), Ci = (i) => Ei.test(i), Ii = (i) => !x(i) && !S(i), Ri = (i) => Xe(i, Yt, qt), x = (i) => Jt.test(i), We = (i) => Xe(i, Zt, Si), gt = (i) => Xe(i, Di, U), Dt = (i) => Xe(i, $t, qt), Ni = (i) => Xe(i, Xt, Ci), it = (i) => Xe(i, er, ki), S = (i) => Qt.test(i), et = (i) => Ye(i, Zt), _i = (i) => Ye(i, Mi), Mt = (i) => Ye(i, $t), Ti = (i) => Ye(i, Yt), Oi = (i) => Ye(i, Xt), nt = (i) => Ye(i, er, !0), Xe = (i, r, n) => {
|
|
2851
|
+
const o = Jt.exec(i);
|
|
2852
2852
|
return o ? o[1] ? r(o[1]) : n(o[2]) : !1;
|
|
2853
2853
|
}, Ye = (i, r, n = !1) => {
|
|
2854
|
-
const o =
|
|
2854
|
+
const o = Qt.exec(i);
|
|
2855
2855
|
return o ? o[1] ? r(o[1]) : n : !1;
|
|
2856
|
-
},
|
|
2857
|
-
const i =
|
|
2856
|
+
}, $t = (i) => i === "position" || i === "percentage", Xt = (i) => i === "image" || i === "url", Yt = (i) => i === "length" || i === "size" || i === "bg-size", Zt = (i) => i === "length", Di = (i) => i === "number", Mi = (i) => i === "family-name", er = (i) => i === "shadow", Bi = () => {
|
|
2857
|
+
const i = te("color"), r = te("font"), n = te("text"), o = te("font-weight"), d = te("tracking"), h = te("leading"), c = te("breakpoint"), l = te("container"), m = te("spacing"), w = te("radius"), f = te("shadow"), u = te("inset-shadow"), R = te("text-shadow"), v = te("drop-shadow"), A = te("blur"), C = te("perspective"), D = te("aspect"), _ = te("ease"), V = te("animate"), j = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [
|
|
2858
2858
|
"center",
|
|
2859
2859
|
"top",
|
|
2860
2860
|
"bottom",
|
|
@@ -2872,30 +2872,30 @@ const Xr = (i, r) => {
|
|
|
2872
2872
|
"bottom-left",
|
|
2873
2873
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
2874
2874
|
"left-bottom"
|
|
2875
|
-
], L = () => [...W(),
|
|
2876
|
-
span: ["full", Ue,
|
|
2877
|
-
}, Ue,
|
|
2878
|
-
position: [
|
|
2875
|
+
], L = () => [...W(), S, x], q = () => ["auto", "hidden", "clip", "visible", "scroll"], ae = () => ["auto", "contain", "none"], O = () => [S, x, m], G = () => [qe, "full", "auto", ...O()], H = () => [Ue, "none", "subgrid", S, x], ye = () => ["auto", {
|
|
2876
|
+
span: ["full", Ue, S, x]
|
|
2877
|
+
}, Ue, S, x], Se = () => [Ue, "auto", S, x], ge = () => ["auto", "min", "max", "fr", S, x], ke = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], ie = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], se = () => ["auto", ...O()], fe = () => [qe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...O()], N = () => [i, S, x], Ge = () => [...W(), Mt, Dt, {
|
|
2878
|
+
position: [S, x]
|
|
2879
2879
|
}], je = () => ["no-repeat", {
|
|
2880
2880
|
repeat: ["", "x", "y", "space", "round"]
|
|
2881
|
-
}],
|
|
2882
|
-
size: [
|
|
2883
|
-
}], $ = () => [
|
|
2881
|
+
}], K = () => ["auto", "cover", "contain", Ti, Ri, {
|
|
2882
|
+
size: [S, x]
|
|
2883
|
+
}], $ = () => [pt, et, We], X = () => [
|
|
2884
2884
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2885
2885
|
"",
|
|
2886
2886
|
"none",
|
|
2887
2887
|
"full",
|
|
2888
2888
|
w,
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
], ne = () => ["", U, et,
|
|
2889
|
+
S,
|
|
2890
|
+
x
|
|
2891
|
+
], ne = () => ["", U, et, We], me = () => ["solid", "dashed", "dotted", "double"], Ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => [U, pt, Mt, Dt], we = () => [
|
|
2892
2892
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2893
2893
|
"",
|
|
2894
2894
|
"none",
|
|
2895
2895
|
A,
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
],
|
|
2896
|
+
S,
|
|
2897
|
+
x
|
|
2898
|
+
], Ae = () => ["none", U, S, x], Ie = () => ["none", U, S, x], He = () => [U, S, x], Re = () => [qe, "full", ...O()];
|
|
2899
2899
|
return {
|
|
2900
2900
|
cacheSize: 500,
|
|
2901
2901
|
theme: {
|
|
@@ -2903,11 +2903,11 @@ const Xr = (i, r) => {
|
|
|
2903
2903
|
aspect: ["video"],
|
|
2904
2904
|
blur: [Ne],
|
|
2905
2905
|
breakpoint: [Ne],
|
|
2906
|
-
color: [
|
|
2906
|
+
color: [xi],
|
|
2907
2907
|
container: [Ne],
|
|
2908
2908
|
"drop-shadow": [Ne],
|
|
2909
2909
|
ease: ["in", "out", "in-out"],
|
|
2910
|
-
font: [
|
|
2910
|
+
font: [Ii],
|
|
2911
2911
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
2912
2912
|
"inset-shadow": [Ne],
|
|
2913
2913
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -2928,7 +2928,7 @@ const Xr = (i, r) => {
|
|
|
2928
2928
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
2929
2929
|
*/
|
|
2930
2930
|
aspect: [{
|
|
2931
|
-
aspect: ["auto", "square", qe,
|
|
2931
|
+
aspect: ["auto", "square", qe, x, S, D]
|
|
2932
2932
|
}],
|
|
2933
2933
|
/**
|
|
2934
2934
|
* Container
|
|
@@ -2941,7 +2941,7 @@ const Xr = (i, r) => {
|
|
|
2941
2941
|
* @see https://tailwindcss.com/docs/columns
|
|
2942
2942
|
*/
|
|
2943
2943
|
columns: [{
|
|
2944
|
-
columns: [U,
|
|
2944
|
+
columns: [U, x, S, l]
|
|
2945
2945
|
}],
|
|
2946
2946
|
/**
|
|
2947
2947
|
* Break After
|
|
@@ -3026,42 +3026,42 @@ const Xr = (i, r) => {
|
|
|
3026
3026
|
* @see https://tailwindcss.com/docs/overflow
|
|
3027
3027
|
*/
|
|
3028
3028
|
overflow: [{
|
|
3029
|
-
overflow:
|
|
3029
|
+
overflow: q()
|
|
3030
3030
|
}],
|
|
3031
3031
|
/**
|
|
3032
3032
|
* Overflow X
|
|
3033
3033
|
* @see https://tailwindcss.com/docs/overflow
|
|
3034
3034
|
*/
|
|
3035
3035
|
"overflow-x": [{
|
|
3036
|
-
"overflow-x":
|
|
3036
|
+
"overflow-x": q()
|
|
3037
3037
|
}],
|
|
3038
3038
|
/**
|
|
3039
3039
|
* Overflow Y
|
|
3040
3040
|
* @see https://tailwindcss.com/docs/overflow
|
|
3041
3041
|
*/
|
|
3042
3042
|
"overflow-y": [{
|
|
3043
|
-
"overflow-y":
|
|
3043
|
+
"overflow-y": q()
|
|
3044
3044
|
}],
|
|
3045
3045
|
/**
|
|
3046
3046
|
* Overscroll Behavior
|
|
3047
3047
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
3048
3048
|
*/
|
|
3049
3049
|
overscroll: [{
|
|
3050
|
-
overscroll:
|
|
3050
|
+
overscroll: ae()
|
|
3051
3051
|
}],
|
|
3052
3052
|
/**
|
|
3053
3053
|
* Overscroll Behavior X
|
|
3054
3054
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
3055
3055
|
*/
|
|
3056
3056
|
"overscroll-x": [{
|
|
3057
|
-
"overscroll-x":
|
|
3057
|
+
"overscroll-x": ae()
|
|
3058
3058
|
}],
|
|
3059
3059
|
/**
|
|
3060
3060
|
* Overscroll Behavior Y
|
|
3061
3061
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
3062
3062
|
*/
|
|
3063
3063
|
"overscroll-y": [{
|
|
3064
|
-
"overscroll-y":
|
|
3064
|
+
"overscroll-y": ae()
|
|
3065
3065
|
}],
|
|
3066
3066
|
/**
|
|
3067
3067
|
* Position
|
|
@@ -3141,7 +3141,7 @@ const Xr = (i, r) => {
|
|
|
3141
3141
|
* @see https://tailwindcss.com/docs/z-index
|
|
3142
3142
|
*/
|
|
3143
3143
|
z: [{
|
|
3144
|
-
z: [Ue, "auto",
|
|
3144
|
+
z: [Ue, "auto", S, x]
|
|
3145
3145
|
}],
|
|
3146
3146
|
// ------------------------
|
|
3147
3147
|
// --- Flexbox and Grid ---
|
|
@@ -3151,7 +3151,7 @@ const Xr = (i, r) => {
|
|
|
3151
3151
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
3152
3152
|
*/
|
|
3153
3153
|
basis: [{
|
|
3154
|
-
basis: [qe, "full", "auto", l, ...
|
|
3154
|
+
basis: [qe, "full", "auto", l, ...O()]
|
|
3155
3155
|
}],
|
|
3156
3156
|
/**
|
|
3157
3157
|
* Flex Direction
|
|
@@ -3172,28 +3172,28 @@ const Xr = (i, r) => {
|
|
|
3172
3172
|
* @see https://tailwindcss.com/docs/flex
|
|
3173
3173
|
*/
|
|
3174
3174
|
flex: [{
|
|
3175
|
-
flex: [U, qe, "auto", "initial", "none",
|
|
3175
|
+
flex: [U, qe, "auto", "initial", "none", x]
|
|
3176
3176
|
}],
|
|
3177
3177
|
/**
|
|
3178
3178
|
* Flex Grow
|
|
3179
3179
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
3180
3180
|
*/
|
|
3181
3181
|
grow: [{
|
|
3182
|
-
grow: ["", U,
|
|
3182
|
+
grow: ["", U, S, x]
|
|
3183
3183
|
}],
|
|
3184
3184
|
/**
|
|
3185
3185
|
* Flex Shrink
|
|
3186
3186
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
3187
3187
|
*/
|
|
3188
3188
|
shrink: [{
|
|
3189
|
-
shrink: ["", U,
|
|
3189
|
+
shrink: ["", U, S, x]
|
|
3190
3190
|
}],
|
|
3191
3191
|
/**
|
|
3192
3192
|
* Order
|
|
3193
3193
|
* @see https://tailwindcss.com/docs/order
|
|
3194
3194
|
*/
|
|
3195
3195
|
order: [{
|
|
3196
|
-
order: [Ue, "first", "last", "none",
|
|
3196
|
+
order: [Ue, "first", "last", "none", S, x]
|
|
3197
3197
|
}],
|
|
3198
3198
|
/**
|
|
3199
3199
|
* Grid Template Columns
|
|
@@ -3207,21 +3207,21 @@ const Xr = (i, r) => {
|
|
|
3207
3207
|
* @see https://tailwindcss.com/docs/grid-column
|
|
3208
3208
|
*/
|
|
3209
3209
|
"col-start-end": [{
|
|
3210
|
-
col:
|
|
3210
|
+
col: ye()
|
|
3211
3211
|
}],
|
|
3212
3212
|
/**
|
|
3213
3213
|
* Grid Column Start
|
|
3214
3214
|
* @see https://tailwindcss.com/docs/grid-column
|
|
3215
3215
|
*/
|
|
3216
3216
|
"col-start": [{
|
|
3217
|
-
"col-start":
|
|
3217
|
+
"col-start": Se()
|
|
3218
3218
|
}],
|
|
3219
3219
|
/**
|
|
3220
3220
|
* Grid Column End
|
|
3221
3221
|
* @see https://tailwindcss.com/docs/grid-column
|
|
3222
3222
|
*/
|
|
3223
3223
|
"col-end": [{
|
|
3224
|
-
"col-end":
|
|
3224
|
+
"col-end": Se()
|
|
3225
3225
|
}],
|
|
3226
3226
|
/**
|
|
3227
3227
|
* Grid Template Rows
|
|
@@ -3235,21 +3235,21 @@ const Xr = (i, r) => {
|
|
|
3235
3235
|
* @see https://tailwindcss.com/docs/grid-row
|
|
3236
3236
|
*/
|
|
3237
3237
|
"row-start-end": [{
|
|
3238
|
-
row:
|
|
3238
|
+
row: ye()
|
|
3239
3239
|
}],
|
|
3240
3240
|
/**
|
|
3241
3241
|
* Grid Row Start
|
|
3242
3242
|
* @see https://tailwindcss.com/docs/grid-row
|
|
3243
3243
|
*/
|
|
3244
3244
|
"row-start": [{
|
|
3245
|
-
"row-start":
|
|
3245
|
+
"row-start": Se()
|
|
3246
3246
|
}],
|
|
3247
3247
|
/**
|
|
3248
3248
|
* Grid Row End
|
|
3249
3249
|
* @see https://tailwindcss.com/docs/grid-row
|
|
3250
3250
|
*/
|
|
3251
3251
|
"row-end": [{
|
|
3252
|
-
"row-end":
|
|
3252
|
+
"row-end": Se()
|
|
3253
3253
|
}],
|
|
3254
3254
|
/**
|
|
3255
3255
|
* Grid Auto Flow
|
|
@@ -3277,56 +3277,56 @@ const Xr = (i, r) => {
|
|
|
3277
3277
|
* @see https://tailwindcss.com/docs/gap
|
|
3278
3278
|
*/
|
|
3279
3279
|
gap: [{
|
|
3280
|
-
gap:
|
|
3280
|
+
gap: O()
|
|
3281
3281
|
}],
|
|
3282
3282
|
/**
|
|
3283
3283
|
* Gap X
|
|
3284
3284
|
* @see https://tailwindcss.com/docs/gap
|
|
3285
3285
|
*/
|
|
3286
3286
|
"gap-x": [{
|
|
3287
|
-
"gap-x":
|
|
3287
|
+
"gap-x": O()
|
|
3288
3288
|
}],
|
|
3289
3289
|
/**
|
|
3290
3290
|
* Gap Y
|
|
3291
3291
|
* @see https://tailwindcss.com/docs/gap
|
|
3292
3292
|
*/
|
|
3293
3293
|
"gap-y": [{
|
|
3294
|
-
"gap-y":
|
|
3294
|
+
"gap-y": O()
|
|
3295
3295
|
}],
|
|
3296
3296
|
/**
|
|
3297
3297
|
* Justify Content
|
|
3298
3298
|
* @see https://tailwindcss.com/docs/justify-content
|
|
3299
3299
|
*/
|
|
3300
3300
|
"justify-content": [{
|
|
3301
|
-
justify: [...
|
|
3301
|
+
justify: [...ke(), "normal"]
|
|
3302
3302
|
}],
|
|
3303
3303
|
/**
|
|
3304
3304
|
* Justify Items
|
|
3305
3305
|
* @see https://tailwindcss.com/docs/justify-items
|
|
3306
3306
|
*/
|
|
3307
3307
|
"justify-items": [{
|
|
3308
|
-
"justify-items": [...
|
|
3308
|
+
"justify-items": [...ie(), "normal"]
|
|
3309
3309
|
}],
|
|
3310
3310
|
/**
|
|
3311
3311
|
* Justify Self
|
|
3312
3312
|
* @see https://tailwindcss.com/docs/justify-self
|
|
3313
3313
|
*/
|
|
3314
3314
|
"justify-self": [{
|
|
3315
|
-
"justify-self": ["auto", ...
|
|
3315
|
+
"justify-self": ["auto", ...ie()]
|
|
3316
3316
|
}],
|
|
3317
3317
|
/**
|
|
3318
3318
|
* Align Content
|
|
3319
3319
|
* @see https://tailwindcss.com/docs/align-content
|
|
3320
3320
|
*/
|
|
3321
3321
|
"align-content": [{
|
|
3322
|
-
content: ["normal", ...
|
|
3322
|
+
content: ["normal", ...ke()]
|
|
3323
3323
|
}],
|
|
3324
3324
|
/**
|
|
3325
3325
|
* Align Items
|
|
3326
3326
|
* @see https://tailwindcss.com/docs/align-items
|
|
3327
3327
|
*/
|
|
3328
3328
|
"align-items": [{
|
|
3329
|
-
items: [...
|
|
3329
|
+
items: [...ie(), {
|
|
3330
3330
|
baseline: ["", "last"]
|
|
3331
3331
|
}]
|
|
3332
3332
|
}],
|
|
@@ -3335,7 +3335,7 @@ const Xr = (i, r) => {
|
|
|
3335
3335
|
* @see https://tailwindcss.com/docs/align-self
|
|
3336
3336
|
*/
|
|
3337
3337
|
"align-self": [{
|
|
3338
|
-
self: ["auto", ...
|
|
3338
|
+
self: ["auto", ...ie(), {
|
|
3339
3339
|
baseline: ["", "last"]
|
|
3340
3340
|
}]
|
|
3341
3341
|
}],
|
|
@@ -3344,21 +3344,21 @@ const Xr = (i, r) => {
|
|
|
3344
3344
|
* @see https://tailwindcss.com/docs/place-content
|
|
3345
3345
|
*/
|
|
3346
3346
|
"place-content": [{
|
|
3347
|
-
"place-content":
|
|
3347
|
+
"place-content": ke()
|
|
3348
3348
|
}],
|
|
3349
3349
|
/**
|
|
3350
3350
|
* Place Items
|
|
3351
3351
|
* @see https://tailwindcss.com/docs/place-items
|
|
3352
3352
|
*/
|
|
3353
3353
|
"place-items": [{
|
|
3354
|
-
"place-items": [...
|
|
3354
|
+
"place-items": [...ie(), "baseline"]
|
|
3355
3355
|
}],
|
|
3356
3356
|
/**
|
|
3357
3357
|
* Place Self
|
|
3358
3358
|
* @see https://tailwindcss.com/docs/place-self
|
|
3359
3359
|
*/
|
|
3360
3360
|
"place-self": [{
|
|
3361
|
-
"place-self": ["auto", ...
|
|
3361
|
+
"place-self": ["auto", ...ie()]
|
|
3362
3362
|
}],
|
|
3363
3363
|
// Spacing
|
|
3364
3364
|
/**
|
|
@@ -3366,133 +3366,133 @@ const Xr = (i, r) => {
|
|
|
3366
3366
|
* @see https://tailwindcss.com/docs/padding
|
|
3367
3367
|
*/
|
|
3368
3368
|
p: [{
|
|
3369
|
-
p:
|
|
3369
|
+
p: O()
|
|
3370
3370
|
}],
|
|
3371
3371
|
/**
|
|
3372
3372
|
* Padding X
|
|
3373
3373
|
* @see https://tailwindcss.com/docs/padding
|
|
3374
3374
|
*/
|
|
3375
3375
|
px: [{
|
|
3376
|
-
px:
|
|
3376
|
+
px: O()
|
|
3377
3377
|
}],
|
|
3378
3378
|
/**
|
|
3379
3379
|
* Padding Y
|
|
3380
3380
|
* @see https://tailwindcss.com/docs/padding
|
|
3381
3381
|
*/
|
|
3382
3382
|
py: [{
|
|
3383
|
-
py:
|
|
3383
|
+
py: O()
|
|
3384
3384
|
}],
|
|
3385
3385
|
/**
|
|
3386
3386
|
* Padding Start
|
|
3387
3387
|
* @see https://tailwindcss.com/docs/padding
|
|
3388
3388
|
*/
|
|
3389
3389
|
ps: [{
|
|
3390
|
-
ps:
|
|
3390
|
+
ps: O()
|
|
3391
3391
|
}],
|
|
3392
3392
|
/**
|
|
3393
3393
|
* Padding End
|
|
3394
3394
|
* @see https://tailwindcss.com/docs/padding
|
|
3395
3395
|
*/
|
|
3396
3396
|
pe: [{
|
|
3397
|
-
pe:
|
|
3397
|
+
pe: O()
|
|
3398
3398
|
}],
|
|
3399
3399
|
/**
|
|
3400
3400
|
* Padding Top
|
|
3401
3401
|
* @see https://tailwindcss.com/docs/padding
|
|
3402
3402
|
*/
|
|
3403
3403
|
pt: [{
|
|
3404
|
-
pt:
|
|
3404
|
+
pt: O()
|
|
3405
3405
|
}],
|
|
3406
3406
|
/**
|
|
3407
3407
|
* Padding Right
|
|
3408
3408
|
* @see https://tailwindcss.com/docs/padding
|
|
3409
3409
|
*/
|
|
3410
3410
|
pr: [{
|
|
3411
|
-
pr:
|
|
3411
|
+
pr: O()
|
|
3412
3412
|
}],
|
|
3413
3413
|
/**
|
|
3414
3414
|
* Padding Bottom
|
|
3415
3415
|
* @see https://tailwindcss.com/docs/padding
|
|
3416
3416
|
*/
|
|
3417
3417
|
pb: [{
|
|
3418
|
-
pb:
|
|
3418
|
+
pb: O()
|
|
3419
3419
|
}],
|
|
3420
3420
|
/**
|
|
3421
3421
|
* Padding Left
|
|
3422
3422
|
* @see https://tailwindcss.com/docs/padding
|
|
3423
3423
|
*/
|
|
3424
3424
|
pl: [{
|
|
3425
|
-
pl:
|
|
3425
|
+
pl: O()
|
|
3426
3426
|
}],
|
|
3427
3427
|
/**
|
|
3428
3428
|
* Margin
|
|
3429
3429
|
* @see https://tailwindcss.com/docs/margin
|
|
3430
3430
|
*/
|
|
3431
3431
|
m: [{
|
|
3432
|
-
m:
|
|
3432
|
+
m: se()
|
|
3433
3433
|
}],
|
|
3434
3434
|
/**
|
|
3435
3435
|
* Margin X
|
|
3436
3436
|
* @see https://tailwindcss.com/docs/margin
|
|
3437
3437
|
*/
|
|
3438
3438
|
mx: [{
|
|
3439
|
-
mx:
|
|
3439
|
+
mx: se()
|
|
3440
3440
|
}],
|
|
3441
3441
|
/**
|
|
3442
3442
|
* Margin Y
|
|
3443
3443
|
* @see https://tailwindcss.com/docs/margin
|
|
3444
3444
|
*/
|
|
3445
3445
|
my: [{
|
|
3446
|
-
my:
|
|
3446
|
+
my: se()
|
|
3447
3447
|
}],
|
|
3448
3448
|
/**
|
|
3449
3449
|
* Margin Start
|
|
3450
3450
|
* @see https://tailwindcss.com/docs/margin
|
|
3451
3451
|
*/
|
|
3452
3452
|
ms: [{
|
|
3453
|
-
ms:
|
|
3453
|
+
ms: se()
|
|
3454
3454
|
}],
|
|
3455
3455
|
/**
|
|
3456
3456
|
* Margin End
|
|
3457
3457
|
* @see https://tailwindcss.com/docs/margin
|
|
3458
3458
|
*/
|
|
3459
3459
|
me: [{
|
|
3460
|
-
me:
|
|
3460
|
+
me: se()
|
|
3461
3461
|
}],
|
|
3462
3462
|
/**
|
|
3463
3463
|
* Margin Top
|
|
3464
3464
|
* @see https://tailwindcss.com/docs/margin
|
|
3465
3465
|
*/
|
|
3466
3466
|
mt: [{
|
|
3467
|
-
mt:
|
|
3467
|
+
mt: se()
|
|
3468
3468
|
}],
|
|
3469
3469
|
/**
|
|
3470
3470
|
* Margin Right
|
|
3471
3471
|
* @see https://tailwindcss.com/docs/margin
|
|
3472
3472
|
*/
|
|
3473
3473
|
mr: [{
|
|
3474
|
-
mr:
|
|
3474
|
+
mr: se()
|
|
3475
3475
|
}],
|
|
3476
3476
|
/**
|
|
3477
3477
|
* Margin Bottom
|
|
3478
3478
|
* @see https://tailwindcss.com/docs/margin
|
|
3479
3479
|
*/
|
|
3480
3480
|
mb: [{
|
|
3481
|
-
mb:
|
|
3481
|
+
mb: se()
|
|
3482
3482
|
}],
|
|
3483
3483
|
/**
|
|
3484
3484
|
* Margin Left
|
|
3485
3485
|
* @see https://tailwindcss.com/docs/margin
|
|
3486
3486
|
*/
|
|
3487
3487
|
ml: [{
|
|
3488
|
-
ml:
|
|
3488
|
+
ml: se()
|
|
3489
3489
|
}],
|
|
3490
3490
|
/**
|
|
3491
3491
|
* Space Between X
|
|
3492
3492
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
3493
3493
|
*/
|
|
3494
3494
|
"space-x": [{
|
|
3495
|
-
"space-x":
|
|
3495
|
+
"space-x": O()
|
|
3496
3496
|
}],
|
|
3497
3497
|
/**
|
|
3498
3498
|
* Space Between X Reverse
|
|
@@ -3504,7 +3504,7 @@ const Xr = (i, r) => {
|
|
|
3504
3504
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
3505
3505
|
*/
|
|
3506
3506
|
"space-y": [{
|
|
3507
|
-
"space-y":
|
|
3507
|
+
"space-y": O()
|
|
3508
3508
|
}],
|
|
3509
3509
|
/**
|
|
3510
3510
|
* Space Between Y Reverse
|
|
@@ -3588,7 +3588,7 @@ const Xr = (i, r) => {
|
|
|
3588
3588
|
* @see https://tailwindcss.com/docs/font-size
|
|
3589
3589
|
*/
|
|
3590
3590
|
"font-size": [{
|
|
3591
|
-
text: ["base", n, et,
|
|
3591
|
+
text: ["base", n, et, We]
|
|
3592
3592
|
}],
|
|
3593
3593
|
/**
|
|
3594
3594
|
* Font Smoothing
|
|
@@ -3605,21 +3605,21 @@ const Xr = (i, r) => {
|
|
|
3605
3605
|
* @see https://tailwindcss.com/docs/font-weight
|
|
3606
3606
|
*/
|
|
3607
3607
|
"font-weight": [{
|
|
3608
|
-
font: [o,
|
|
3608
|
+
font: [o, S, gt]
|
|
3609
3609
|
}],
|
|
3610
3610
|
/**
|
|
3611
3611
|
* Font Stretch
|
|
3612
3612
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
3613
3613
|
*/
|
|
3614
3614
|
"font-stretch": [{
|
|
3615
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
3615
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", pt, x]
|
|
3616
3616
|
}],
|
|
3617
3617
|
/**
|
|
3618
3618
|
* Font Family
|
|
3619
3619
|
* @see https://tailwindcss.com/docs/font-family
|
|
3620
3620
|
*/
|
|
3621
3621
|
"font-family": [{
|
|
3622
|
-
font: [
|
|
3622
|
+
font: [_i, x, r]
|
|
3623
3623
|
}],
|
|
3624
3624
|
/**
|
|
3625
3625
|
* Font Variant Numeric
|
|
@@ -3656,14 +3656,14 @@ const Xr = (i, r) => {
|
|
|
3656
3656
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
3657
3657
|
*/
|
|
3658
3658
|
tracking: [{
|
|
3659
|
-
tracking: [d,
|
|
3659
|
+
tracking: [d, S, x]
|
|
3660
3660
|
}],
|
|
3661
3661
|
/**
|
|
3662
3662
|
* Line Clamp
|
|
3663
3663
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
3664
3664
|
*/
|
|
3665
3665
|
"line-clamp": [{
|
|
3666
|
-
"line-clamp": [U, "none",
|
|
3666
|
+
"line-clamp": [U, "none", S, gt]
|
|
3667
3667
|
}],
|
|
3668
3668
|
/**
|
|
3669
3669
|
* Line Height
|
|
@@ -3673,7 +3673,7 @@ const Xr = (i, r) => {
|
|
|
3673
3673
|
leading: [
|
|
3674
3674
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
3675
3675
|
h,
|
|
3676
|
-
...
|
|
3676
|
+
...O()
|
|
3677
3677
|
]
|
|
3678
3678
|
}],
|
|
3679
3679
|
/**
|
|
@@ -3681,7 +3681,7 @@ const Xr = (i, r) => {
|
|
|
3681
3681
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
3682
3682
|
*/
|
|
3683
3683
|
"list-image": [{
|
|
3684
|
-
"list-image": ["none",
|
|
3684
|
+
"list-image": ["none", S, x]
|
|
3685
3685
|
}],
|
|
3686
3686
|
/**
|
|
3687
3687
|
* List Style Position
|
|
@@ -3695,7 +3695,7 @@ const Xr = (i, r) => {
|
|
|
3695
3695
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
3696
3696
|
*/
|
|
3697
3697
|
"list-style-type": [{
|
|
3698
|
-
list: ["disc", "decimal", "none",
|
|
3698
|
+
list: ["disc", "decimal", "none", S, x]
|
|
3699
3699
|
}],
|
|
3700
3700
|
/**
|
|
3701
3701
|
* Text Alignment
|
|
@@ -3736,7 +3736,7 @@ const Xr = (i, r) => {
|
|
|
3736
3736
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
3737
3737
|
*/
|
|
3738
3738
|
"text-decoration-thickness": [{
|
|
3739
|
-
decoration: [U, "from-font", "auto",
|
|
3739
|
+
decoration: [U, "from-font", "auto", S, We]
|
|
3740
3740
|
}],
|
|
3741
3741
|
/**
|
|
3742
3742
|
* Text Decoration Color
|
|
@@ -3750,7 +3750,7 @@ const Xr = (i, r) => {
|
|
|
3750
3750
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
3751
3751
|
*/
|
|
3752
3752
|
"underline-offset": [{
|
|
3753
|
-
"underline-offset": [U, "auto",
|
|
3753
|
+
"underline-offset": [U, "auto", S, x]
|
|
3754
3754
|
}],
|
|
3755
3755
|
/**
|
|
3756
3756
|
* Text Transform
|
|
@@ -3774,14 +3774,14 @@ const Xr = (i, r) => {
|
|
|
3774
3774
|
* @see https://tailwindcss.com/docs/text-indent
|
|
3775
3775
|
*/
|
|
3776
3776
|
indent: [{
|
|
3777
|
-
indent:
|
|
3777
|
+
indent: O()
|
|
3778
3778
|
}],
|
|
3779
3779
|
/**
|
|
3780
3780
|
* Vertical Alignment
|
|
3781
3781
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
3782
3782
|
*/
|
|
3783
3783
|
"vertical-align": [{
|
|
3784
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
3784
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", S, x]
|
|
3785
3785
|
}],
|
|
3786
3786
|
/**
|
|
3787
3787
|
* Whitespace
|
|
@@ -3816,7 +3816,7 @@ const Xr = (i, r) => {
|
|
|
3816
3816
|
* @see https://tailwindcss.com/docs/content
|
|
3817
3817
|
*/
|
|
3818
3818
|
content: [{
|
|
3819
|
-
content: ["none",
|
|
3819
|
+
content: ["none", S, x]
|
|
3820
3820
|
}],
|
|
3821
3821
|
// -------------------
|
|
3822
3822
|
// --- Backgrounds ---
|
|
@@ -3861,7 +3861,7 @@ const Xr = (i, r) => {
|
|
|
3861
3861
|
* @see https://tailwindcss.com/docs/background-size
|
|
3862
3862
|
*/
|
|
3863
3863
|
"bg-size": [{
|
|
3864
|
-
bg:
|
|
3864
|
+
bg: K()
|
|
3865
3865
|
}],
|
|
3866
3866
|
/**
|
|
3867
3867
|
* Background Image
|
|
@@ -3871,10 +3871,10 @@ const Xr = (i, r) => {
|
|
|
3871
3871
|
bg: ["none", {
|
|
3872
3872
|
linear: [{
|
|
3873
3873
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
3874
|
-
}, Ue,
|
|
3875
|
-
radial: ["",
|
|
3876
|
-
conic: [Ue,
|
|
3877
|
-
},
|
|
3874
|
+
}, Ue, S, x],
|
|
3875
|
+
radial: ["", S, x],
|
|
3876
|
+
conic: [Ue, S, x]
|
|
3877
|
+
}, Oi, Ni]
|
|
3878
3878
|
}],
|
|
3879
3879
|
/**
|
|
3880
3880
|
* Background Color
|
|
@@ -4216,14 +4216,14 @@ const Xr = (i, r) => {
|
|
|
4216
4216
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
4217
4217
|
*/
|
|
4218
4218
|
"outline-offset": [{
|
|
4219
|
-
"outline-offset": [U,
|
|
4219
|
+
"outline-offset": [U, S, x]
|
|
4220
4220
|
}],
|
|
4221
4221
|
/**
|
|
4222
4222
|
* Outline Width
|
|
4223
4223
|
* @see https://tailwindcss.com/docs/outline-width
|
|
4224
4224
|
*/
|
|
4225
4225
|
"outline-w": [{
|
|
4226
|
-
outline: ["", U, et,
|
|
4226
|
+
outline: ["", U, et, We]
|
|
4227
4227
|
}],
|
|
4228
4228
|
/**
|
|
4229
4229
|
* Outline Color
|
|
@@ -4298,7 +4298,7 @@ const Xr = (i, r) => {
|
|
|
4298
4298
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
4299
4299
|
*/
|
|
4300
4300
|
"ring-offset-w": [{
|
|
4301
|
-
"ring-offset": [U,
|
|
4301
|
+
"ring-offset": [U, We]
|
|
4302
4302
|
}],
|
|
4303
4303
|
/**
|
|
4304
4304
|
* Ring Offset Color
|
|
@@ -4328,7 +4328,7 @@ const Xr = (i, r) => {
|
|
|
4328
4328
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
4329
4329
|
*/
|
|
4330
4330
|
"text-shadow": [{
|
|
4331
|
-
"text-shadow": ["none",
|
|
4331
|
+
"text-shadow": ["none", R, nt, it]
|
|
4332
4332
|
}],
|
|
4333
4333
|
/**
|
|
4334
4334
|
* Text Shadow Color
|
|
@@ -4342,21 +4342,21 @@ const Xr = (i, r) => {
|
|
|
4342
4342
|
* @see https://tailwindcss.com/docs/opacity
|
|
4343
4343
|
*/
|
|
4344
4344
|
opacity: [{
|
|
4345
|
-
opacity: [U,
|
|
4345
|
+
opacity: [U, S, x]
|
|
4346
4346
|
}],
|
|
4347
4347
|
/**
|
|
4348
4348
|
* Mix Blend Mode
|
|
4349
4349
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
4350
4350
|
*/
|
|
4351
4351
|
"mix-blend": [{
|
|
4352
|
-
"mix-blend": [...
|
|
4352
|
+
"mix-blend": [...Ce(), "plus-darker", "plus-lighter"]
|
|
4353
4353
|
}],
|
|
4354
4354
|
/**
|
|
4355
4355
|
* Background Blend Mode
|
|
4356
4356
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
4357
4357
|
*/
|
|
4358
4358
|
"bg-blend": [{
|
|
4359
|
-
"bg-blend":
|
|
4359
|
+
"bg-blend": Ce()
|
|
4360
4360
|
}],
|
|
4361
4361
|
/**
|
|
4362
4362
|
* Mask Clip
|
|
@@ -4380,10 +4380,10 @@ const Xr = (i, r) => {
|
|
|
4380
4380
|
"mask-linear": [U]
|
|
4381
4381
|
}],
|
|
4382
4382
|
"mask-image-linear-from-pos": [{
|
|
4383
|
-
"mask-linear-from":
|
|
4383
|
+
"mask-linear-from": J()
|
|
4384
4384
|
}],
|
|
4385
4385
|
"mask-image-linear-to-pos": [{
|
|
4386
|
-
"mask-linear-to":
|
|
4386
|
+
"mask-linear-to": J()
|
|
4387
4387
|
}],
|
|
4388
4388
|
"mask-image-linear-from-color": [{
|
|
4389
4389
|
"mask-linear-from": N()
|
|
@@ -4392,10 +4392,10 @@ const Xr = (i, r) => {
|
|
|
4392
4392
|
"mask-linear-to": N()
|
|
4393
4393
|
}],
|
|
4394
4394
|
"mask-image-t-from-pos": [{
|
|
4395
|
-
"mask-t-from":
|
|
4395
|
+
"mask-t-from": J()
|
|
4396
4396
|
}],
|
|
4397
4397
|
"mask-image-t-to-pos": [{
|
|
4398
|
-
"mask-t-to":
|
|
4398
|
+
"mask-t-to": J()
|
|
4399
4399
|
}],
|
|
4400
4400
|
"mask-image-t-from-color": [{
|
|
4401
4401
|
"mask-t-from": N()
|
|
@@ -4404,10 +4404,10 @@ const Xr = (i, r) => {
|
|
|
4404
4404
|
"mask-t-to": N()
|
|
4405
4405
|
}],
|
|
4406
4406
|
"mask-image-r-from-pos": [{
|
|
4407
|
-
"mask-r-from":
|
|
4407
|
+
"mask-r-from": J()
|
|
4408
4408
|
}],
|
|
4409
4409
|
"mask-image-r-to-pos": [{
|
|
4410
|
-
"mask-r-to":
|
|
4410
|
+
"mask-r-to": J()
|
|
4411
4411
|
}],
|
|
4412
4412
|
"mask-image-r-from-color": [{
|
|
4413
4413
|
"mask-r-from": N()
|
|
@@ -4416,10 +4416,10 @@ const Xr = (i, r) => {
|
|
|
4416
4416
|
"mask-r-to": N()
|
|
4417
4417
|
}],
|
|
4418
4418
|
"mask-image-b-from-pos": [{
|
|
4419
|
-
"mask-b-from":
|
|
4419
|
+
"mask-b-from": J()
|
|
4420
4420
|
}],
|
|
4421
4421
|
"mask-image-b-to-pos": [{
|
|
4422
|
-
"mask-b-to":
|
|
4422
|
+
"mask-b-to": J()
|
|
4423
4423
|
}],
|
|
4424
4424
|
"mask-image-b-from-color": [{
|
|
4425
4425
|
"mask-b-from": N()
|
|
@@ -4428,10 +4428,10 @@ const Xr = (i, r) => {
|
|
|
4428
4428
|
"mask-b-to": N()
|
|
4429
4429
|
}],
|
|
4430
4430
|
"mask-image-l-from-pos": [{
|
|
4431
|
-
"mask-l-from":
|
|
4431
|
+
"mask-l-from": J()
|
|
4432
4432
|
}],
|
|
4433
4433
|
"mask-image-l-to-pos": [{
|
|
4434
|
-
"mask-l-to":
|
|
4434
|
+
"mask-l-to": J()
|
|
4435
4435
|
}],
|
|
4436
4436
|
"mask-image-l-from-color": [{
|
|
4437
4437
|
"mask-l-from": N()
|
|
@@ -4440,10 +4440,10 @@ const Xr = (i, r) => {
|
|
|
4440
4440
|
"mask-l-to": N()
|
|
4441
4441
|
}],
|
|
4442
4442
|
"mask-image-x-from-pos": [{
|
|
4443
|
-
"mask-x-from":
|
|
4443
|
+
"mask-x-from": J()
|
|
4444
4444
|
}],
|
|
4445
4445
|
"mask-image-x-to-pos": [{
|
|
4446
|
-
"mask-x-to":
|
|
4446
|
+
"mask-x-to": J()
|
|
4447
4447
|
}],
|
|
4448
4448
|
"mask-image-x-from-color": [{
|
|
4449
4449
|
"mask-x-from": N()
|
|
@@ -4452,10 +4452,10 @@ const Xr = (i, r) => {
|
|
|
4452
4452
|
"mask-x-to": N()
|
|
4453
4453
|
}],
|
|
4454
4454
|
"mask-image-y-from-pos": [{
|
|
4455
|
-
"mask-y-from":
|
|
4455
|
+
"mask-y-from": J()
|
|
4456
4456
|
}],
|
|
4457
4457
|
"mask-image-y-to-pos": [{
|
|
4458
|
-
"mask-y-to":
|
|
4458
|
+
"mask-y-to": J()
|
|
4459
4459
|
}],
|
|
4460
4460
|
"mask-image-y-from-color": [{
|
|
4461
4461
|
"mask-y-from": N()
|
|
@@ -4464,13 +4464,13 @@ const Xr = (i, r) => {
|
|
|
4464
4464
|
"mask-y-to": N()
|
|
4465
4465
|
}],
|
|
4466
4466
|
"mask-image-radial": [{
|
|
4467
|
-
"mask-radial": [
|
|
4467
|
+
"mask-radial": [S, x]
|
|
4468
4468
|
}],
|
|
4469
4469
|
"mask-image-radial-from-pos": [{
|
|
4470
|
-
"mask-radial-from":
|
|
4470
|
+
"mask-radial-from": J()
|
|
4471
4471
|
}],
|
|
4472
4472
|
"mask-image-radial-to-pos": [{
|
|
4473
|
-
"mask-radial-to":
|
|
4473
|
+
"mask-radial-to": J()
|
|
4474
4474
|
}],
|
|
4475
4475
|
"mask-image-radial-from-color": [{
|
|
4476
4476
|
"mask-radial-from": N()
|
|
@@ -4494,10 +4494,10 @@ const Xr = (i, r) => {
|
|
|
4494
4494
|
"mask-conic": [U]
|
|
4495
4495
|
}],
|
|
4496
4496
|
"mask-image-conic-from-pos": [{
|
|
4497
|
-
"mask-conic-from":
|
|
4497
|
+
"mask-conic-from": J()
|
|
4498
4498
|
}],
|
|
4499
4499
|
"mask-image-conic-to-pos": [{
|
|
4500
|
-
"mask-conic-to":
|
|
4500
|
+
"mask-conic-to": J()
|
|
4501
4501
|
}],
|
|
4502
4502
|
"mask-image-conic-from-color": [{
|
|
4503
4503
|
"mask-conic-from": N()
|
|
@@ -4538,7 +4538,7 @@ const Xr = (i, r) => {
|
|
|
4538
4538
|
* @see https://tailwindcss.com/docs/mask-size
|
|
4539
4539
|
*/
|
|
4540
4540
|
"mask-size": [{
|
|
4541
|
-
mask:
|
|
4541
|
+
mask: K()
|
|
4542
4542
|
}],
|
|
4543
4543
|
/**
|
|
4544
4544
|
* Mask Type
|
|
@@ -4552,7 +4552,7 @@ const Xr = (i, r) => {
|
|
|
4552
4552
|
* @see https://tailwindcss.com/docs/mask-image
|
|
4553
4553
|
*/
|
|
4554
4554
|
"mask-image": [{
|
|
4555
|
-
mask: ["none",
|
|
4555
|
+
mask: ["none", S, x]
|
|
4556
4556
|
}],
|
|
4557
4557
|
// ---------------
|
|
4558
4558
|
// --- Filters ---
|
|
@@ -4566,8 +4566,8 @@ const Xr = (i, r) => {
|
|
|
4566
4566
|
// Deprecated since Tailwind CSS v3.0.0
|
|
4567
4567
|
"",
|
|
4568
4568
|
"none",
|
|
4569
|
-
|
|
4570
|
-
|
|
4569
|
+
S,
|
|
4570
|
+
x
|
|
4571
4571
|
]
|
|
4572
4572
|
}],
|
|
4573
4573
|
/**
|
|
@@ -4582,14 +4582,14 @@ const Xr = (i, r) => {
|
|
|
4582
4582
|
* @see https://tailwindcss.com/docs/brightness
|
|
4583
4583
|
*/
|
|
4584
4584
|
brightness: [{
|
|
4585
|
-
brightness: [U,
|
|
4585
|
+
brightness: [U, S, x]
|
|
4586
4586
|
}],
|
|
4587
4587
|
/**
|
|
4588
4588
|
* Contrast
|
|
4589
4589
|
* @see https://tailwindcss.com/docs/contrast
|
|
4590
4590
|
*/
|
|
4591
4591
|
contrast: [{
|
|
4592
|
-
contrast: [U,
|
|
4592
|
+
contrast: [U, S, x]
|
|
4593
4593
|
}],
|
|
4594
4594
|
/**
|
|
4595
4595
|
* Drop Shadow
|
|
@@ -4617,35 +4617,35 @@ const Xr = (i, r) => {
|
|
|
4617
4617
|
* @see https://tailwindcss.com/docs/grayscale
|
|
4618
4618
|
*/
|
|
4619
4619
|
grayscale: [{
|
|
4620
|
-
grayscale: ["", U,
|
|
4620
|
+
grayscale: ["", U, S, x]
|
|
4621
4621
|
}],
|
|
4622
4622
|
/**
|
|
4623
4623
|
* Hue Rotate
|
|
4624
4624
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
4625
4625
|
*/
|
|
4626
4626
|
"hue-rotate": [{
|
|
4627
|
-
"hue-rotate": [U,
|
|
4627
|
+
"hue-rotate": [U, S, x]
|
|
4628
4628
|
}],
|
|
4629
4629
|
/**
|
|
4630
4630
|
* Invert
|
|
4631
4631
|
* @see https://tailwindcss.com/docs/invert
|
|
4632
4632
|
*/
|
|
4633
4633
|
invert: [{
|
|
4634
|
-
invert: ["", U,
|
|
4634
|
+
invert: ["", U, S, x]
|
|
4635
4635
|
}],
|
|
4636
4636
|
/**
|
|
4637
4637
|
* Saturate
|
|
4638
4638
|
* @see https://tailwindcss.com/docs/saturate
|
|
4639
4639
|
*/
|
|
4640
4640
|
saturate: [{
|
|
4641
|
-
saturate: [U,
|
|
4641
|
+
saturate: [U, S, x]
|
|
4642
4642
|
}],
|
|
4643
4643
|
/**
|
|
4644
4644
|
* Sepia
|
|
4645
4645
|
* @see https://tailwindcss.com/docs/sepia
|
|
4646
4646
|
*/
|
|
4647
4647
|
sepia: [{
|
|
4648
|
-
sepia: ["", U,
|
|
4648
|
+
sepia: ["", U, S, x]
|
|
4649
4649
|
}],
|
|
4650
4650
|
/**
|
|
4651
4651
|
* Backdrop Filter
|
|
@@ -4656,8 +4656,8 @@ const Xr = (i, r) => {
|
|
|
4656
4656
|
// Deprecated since Tailwind CSS v3.0.0
|
|
4657
4657
|
"",
|
|
4658
4658
|
"none",
|
|
4659
|
-
|
|
4660
|
-
|
|
4659
|
+
S,
|
|
4660
|
+
x
|
|
4661
4661
|
]
|
|
4662
4662
|
}],
|
|
4663
4663
|
/**
|
|
@@ -4672,56 +4672,56 @@ const Xr = (i, r) => {
|
|
|
4672
4672
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
4673
4673
|
*/
|
|
4674
4674
|
"backdrop-brightness": [{
|
|
4675
|
-
"backdrop-brightness": [U,
|
|
4675
|
+
"backdrop-brightness": [U, S, x]
|
|
4676
4676
|
}],
|
|
4677
4677
|
/**
|
|
4678
4678
|
* Backdrop Contrast
|
|
4679
4679
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
4680
4680
|
*/
|
|
4681
4681
|
"backdrop-contrast": [{
|
|
4682
|
-
"backdrop-contrast": [U,
|
|
4682
|
+
"backdrop-contrast": [U, S, x]
|
|
4683
4683
|
}],
|
|
4684
4684
|
/**
|
|
4685
4685
|
* Backdrop Grayscale
|
|
4686
4686
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
4687
4687
|
*/
|
|
4688
4688
|
"backdrop-grayscale": [{
|
|
4689
|
-
"backdrop-grayscale": ["", U,
|
|
4689
|
+
"backdrop-grayscale": ["", U, S, x]
|
|
4690
4690
|
}],
|
|
4691
4691
|
/**
|
|
4692
4692
|
* Backdrop Hue Rotate
|
|
4693
4693
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
4694
4694
|
*/
|
|
4695
4695
|
"backdrop-hue-rotate": [{
|
|
4696
|
-
"backdrop-hue-rotate": [U,
|
|
4696
|
+
"backdrop-hue-rotate": [U, S, x]
|
|
4697
4697
|
}],
|
|
4698
4698
|
/**
|
|
4699
4699
|
* Backdrop Invert
|
|
4700
4700
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
4701
4701
|
*/
|
|
4702
4702
|
"backdrop-invert": [{
|
|
4703
|
-
"backdrop-invert": ["", U,
|
|
4703
|
+
"backdrop-invert": ["", U, S, x]
|
|
4704
4704
|
}],
|
|
4705
4705
|
/**
|
|
4706
4706
|
* Backdrop Opacity
|
|
4707
4707
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
4708
4708
|
*/
|
|
4709
4709
|
"backdrop-opacity": [{
|
|
4710
|
-
"backdrop-opacity": [U,
|
|
4710
|
+
"backdrop-opacity": [U, S, x]
|
|
4711
4711
|
}],
|
|
4712
4712
|
/**
|
|
4713
4713
|
* Backdrop Saturate
|
|
4714
4714
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
4715
4715
|
*/
|
|
4716
4716
|
"backdrop-saturate": [{
|
|
4717
|
-
"backdrop-saturate": [U,
|
|
4717
|
+
"backdrop-saturate": [U, S, x]
|
|
4718
4718
|
}],
|
|
4719
4719
|
/**
|
|
4720
4720
|
* Backdrop Sepia
|
|
4721
4721
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
4722
4722
|
*/
|
|
4723
4723
|
"backdrop-sepia": [{
|
|
4724
|
-
"backdrop-sepia": ["", U,
|
|
4724
|
+
"backdrop-sepia": ["", U, S, x]
|
|
4725
4725
|
}],
|
|
4726
4726
|
// --------------
|
|
4727
4727
|
// --- Tables ---
|
|
@@ -4738,21 +4738,21 @@ const Xr = (i, r) => {
|
|
|
4738
4738
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
4739
4739
|
*/
|
|
4740
4740
|
"border-spacing": [{
|
|
4741
|
-
"border-spacing":
|
|
4741
|
+
"border-spacing": O()
|
|
4742
4742
|
}],
|
|
4743
4743
|
/**
|
|
4744
4744
|
* Border Spacing X
|
|
4745
4745
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
4746
4746
|
*/
|
|
4747
4747
|
"border-spacing-x": [{
|
|
4748
|
-
"border-spacing-x":
|
|
4748
|
+
"border-spacing-x": O()
|
|
4749
4749
|
}],
|
|
4750
4750
|
/**
|
|
4751
4751
|
* Border Spacing Y
|
|
4752
4752
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
4753
4753
|
*/
|
|
4754
4754
|
"border-spacing-y": [{
|
|
4755
|
-
"border-spacing-y":
|
|
4755
|
+
"border-spacing-y": O()
|
|
4756
4756
|
}],
|
|
4757
4757
|
/**
|
|
4758
4758
|
* Table Layout
|
|
@@ -4776,7 +4776,7 @@ const Xr = (i, r) => {
|
|
|
4776
4776
|
* @see https://tailwindcss.com/docs/transition-property
|
|
4777
4777
|
*/
|
|
4778
4778
|
transition: [{
|
|
4779
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
4779
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", S, x]
|
|
4780
4780
|
}],
|
|
4781
4781
|
/**
|
|
4782
4782
|
* Transition Behavior
|
|
@@ -4790,28 +4790,28 @@ const Xr = (i, r) => {
|
|
|
4790
4790
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
4791
4791
|
*/
|
|
4792
4792
|
duration: [{
|
|
4793
|
-
duration: [U, "initial",
|
|
4793
|
+
duration: [U, "initial", S, x]
|
|
4794
4794
|
}],
|
|
4795
4795
|
/**
|
|
4796
4796
|
* Transition Timing Function
|
|
4797
4797
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
4798
4798
|
*/
|
|
4799
4799
|
ease: [{
|
|
4800
|
-
ease: ["linear", "initial",
|
|
4800
|
+
ease: ["linear", "initial", _, S, x]
|
|
4801
4801
|
}],
|
|
4802
4802
|
/**
|
|
4803
4803
|
* Transition Delay
|
|
4804
4804
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
4805
4805
|
*/
|
|
4806
4806
|
delay: [{
|
|
4807
|
-
delay: [U,
|
|
4807
|
+
delay: [U, S, x]
|
|
4808
4808
|
}],
|
|
4809
4809
|
/**
|
|
4810
4810
|
* Animation
|
|
4811
4811
|
* @see https://tailwindcss.com/docs/animation
|
|
4812
4812
|
*/
|
|
4813
4813
|
animate: [{
|
|
4814
|
-
animate: ["none", V,
|
|
4814
|
+
animate: ["none", V, S, x]
|
|
4815
4815
|
}],
|
|
4816
4816
|
// ------------------
|
|
4817
4817
|
// --- Transforms ---
|
|
@@ -4828,7 +4828,7 @@ const Xr = (i, r) => {
|
|
|
4828
4828
|
* @see https://tailwindcss.com/docs/perspective
|
|
4829
4829
|
*/
|
|
4830
4830
|
perspective: [{
|
|
4831
|
-
perspective: [
|
|
4831
|
+
perspective: [C, S, x]
|
|
4832
4832
|
}],
|
|
4833
4833
|
/**
|
|
4834
4834
|
* Perspective Origin
|
|
@@ -4842,56 +4842,56 @@ const Xr = (i, r) => {
|
|
|
4842
4842
|
* @see https://tailwindcss.com/docs/rotate
|
|
4843
4843
|
*/
|
|
4844
4844
|
rotate: [{
|
|
4845
|
-
rotate:
|
|
4845
|
+
rotate: Ae()
|
|
4846
4846
|
}],
|
|
4847
4847
|
/**
|
|
4848
4848
|
* Rotate X
|
|
4849
4849
|
* @see https://tailwindcss.com/docs/rotate
|
|
4850
4850
|
*/
|
|
4851
4851
|
"rotate-x": [{
|
|
4852
|
-
"rotate-x":
|
|
4852
|
+
"rotate-x": Ae()
|
|
4853
4853
|
}],
|
|
4854
4854
|
/**
|
|
4855
4855
|
* Rotate Y
|
|
4856
4856
|
* @see https://tailwindcss.com/docs/rotate
|
|
4857
4857
|
*/
|
|
4858
4858
|
"rotate-y": [{
|
|
4859
|
-
"rotate-y":
|
|
4859
|
+
"rotate-y": Ae()
|
|
4860
4860
|
}],
|
|
4861
4861
|
/**
|
|
4862
4862
|
* Rotate Z
|
|
4863
4863
|
* @see https://tailwindcss.com/docs/rotate
|
|
4864
4864
|
*/
|
|
4865
4865
|
"rotate-z": [{
|
|
4866
|
-
"rotate-z":
|
|
4866
|
+
"rotate-z": Ae()
|
|
4867
4867
|
}],
|
|
4868
4868
|
/**
|
|
4869
4869
|
* Scale
|
|
4870
4870
|
* @see https://tailwindcss.com/docs/scale
|
|
4871
4871
|
*/
|
|
4872
4872
|
scale: [{
|
|
4873
|
-
scale:
|
|
4873
|
+
scale: Ie()
|
|
4874
4874
|
}],
|
|
4875
4875
|
/**
|
|
4876
4876
|
* Scale X
|
|
4877
4877
|
* @see https://tailwindcss.com/docs/scale
|
|
4878
4878
|
*/
|
|
4879
4879
|
"scale-x": [{
|
|
4880
|
-
"scale-x":
|
|
4880
|
+
"scale-x": Ie()
|
|
4881
4881
|
}],
|
|
4882
4882
|
/**
|
|
4883
4883
|
* Scale Y
|
|
4884
4884
|
* @see https://tailwindcss.com/docs/scale
|
|
4885
4885
|
*/
|
|
4886
4886
|
"scale-y": [{
|
|
4887
|
-
"scale-y":
|
|
4887
|
+
"scale-y": Ie()
|
|
4888
4888
|
}],
|
|
4889
4889
|
/**
|
|
4890
4890
|
* Scale Z
|
|
4891
4891
|
* @see https://tailwindcss.com/docs/scale
|
|
4892
4892
|
*/
|
|
4893
4893
|
"scale-z": [{
|
|
4894
|
-
"scale-z":
|
|
4894
|
+
"scale-z": Ie()
|
|
4895
4895
|
}],
|
|
4896
4896
|
/**
|
|
4897
4897
|
* Scale 3D
|
|
@@ -4924,7 +4924,7 @@ const Xr = (i, r) => {
|
|
|
4924
4924
|
* @see https://tailwindcss.com/docs/transform
|
|
4925
4925
|
*/
|
|
4926
4926
|
transform: [{
|
|
4927
|
-
transform: [
|
|
4927
|
+
transform: [S, x, "", "none", "gpu", "cpu"]
|
|
4928
4928
|
}],
|
|
4929
4929
|
/**
|
|
4930
4930
|
* Transform Origin
|
|
@@ -4945,28 +4945,28 @@ const Xr = (i, r) => {
|
|
|
4945
4945
|
* @see https://tailwindcss.com/docs/translate
|
|
4946
4946
|
*/
|
|
4947
4947
|
translate: [{
|
|
4948
|
-
translate:
|
|
4948
|
+
translate: Re()
|
|
4949
4949
|
}],
|
|
4950
4950
|
/**
|
|
4951
4951
|
* Translate X
|
|
4952
4952
|
* @see https://tailwindcss.com/docs/translate
|
|
4953
4953
|
*/
|
|
4954
4954
|
"translate-x": [{
|
|
4955
|
-
"translate-x":
|
|
4955
|
+
"translate-x": Re()
|
|
4956
4956
|
}],
|
|
4957
4957
|
/**
|
|
4958
4958
|
* Translate Y
|
|
4959
4959
|
* @see https://tailwindcss.com/docs/translate
|
|
4960
4960
|
*/
|
|
4961
4961
|
"translate-y": [{
|
|
4962
|
-
"translate-y":
|
|
4962
|
+
"translate-y": Re()
|
|
4963
4963
|
}],
|
|
4964
4964
|
/**
|
|
4965
4965
|
* Translate Z
|
|
4966
4966
|
* @see https://tailwindcss.com/docs/translate
|
|
4967
4967
|
*/
|
|
4968
4968
|
"translate-z": [{
|
|
4969
|
-
"translate-z":
|
|
4969
|
+
"translate-z": Re()
|
|
4970
4970
|
}],
|
|
4971
4971
|
/**
|
|
4972
4972
|
* Translate None
|
|
@@ -5009,7 +5009,7 @@ const Xr = (i, r) => {
|
|
|
5009
5009
|
* @see https://tailwindcss.com/docs/cursor
|
|
5010
5010
|
*/
|
|
5011
5011
|
cursor: [{
|
|
5012
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
5012
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", S, x]
|
|
5013
5013
|
}],
|
|
5014
5014
|
/**
|
|
5015
5015
|
* Field Sizing
|
|
@@ -5044,126 +5044,126 @@ const Xr = (i, r) => {
|
|
|
5044
5044
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5045
5045
|
*/
|
|
5046
5046
|
"scroll-m": [{
|
|
5047
|
-
"scroll-m":
|
|
5047
|
+
"scroll-m": O()
|
|
5048
5048
|
}],
|
|
5049
5049
|
/**
|
|
5050
5050
|
* Scroll Margin X
|
|
5051
5051
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5052
5052
|
*/
|
|
5053
5053
|
"scroll-mx": [{
|
|
5054
|
-
"scroll-mx":
|
|
5054
|
+
"scroll-mx": O()
|
|
5055
5055
|
}],
|
|
5056
5056
|
/**
|
|
5057
5057
|
* Scroll Margin Y
|
|
5058
5058
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5059
5059
|
*/
|
|
5060
5060
|
"scroll-my": [{
|
|
5061
|
-
"scroll-my":
|
|
5061
|
+
"scroll-my": O()
|
|
5062
5062
|
}],
|
|
5063
5063
|
/**
|
|
5064
5064
|
* Scroll Margin Start
|
|
5065
5065
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5066
5066
|
*/
|
|
5067
5067
|
"scroll-ms": [{
|
|
5068
|
-
"scroll-ms":
|
|
5068
|
+
"scroll-ms": O()
|
|
5069
5069
|
}],
|
|
5070
5070
|
/**
|
|
5071
5071
|
* Scroll Margin End
|
|
5072
5072
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5073
5073
|
*/
|
|
5074
5074
|
"scroll-me": [{
|
|
5075
|
-
"scroll-me":
|
|
5075
|
+
"scroll-me": O()
|
|
5076
5076
|
}],
|
|
5077
5077
|
/**
|
|
5078
5078
|
* Scroll Margin Top
|
|
5079
5079
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5080
5080
|
*/
|
|
5081
5081
|
"scroll-mt": [{
|
|
5082
|
-
"scroll-mt":
|
|
5082
|
+
"scroll-mt": O()
|
|
5083
5083
|
}],
|
|
5084
5084
|
/**
|
|
5085
5085
|
* Scroll Margin Right
|
|
5086
5086
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5087
5087
|
*/
|
|
5088
5088
|
"scroll-mr": [{
|
|
5089
|
-
"scroll-mr":
|
|
5089
|
+
"scroll-mr": O()
|
|
5090
5090
|
}],
|
|
5091
5091
|
/**
|
|
5092
5092
|
* Scroll Margin Bottom
|
|
5093
5093
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5094
5094
|
*/
|
|
5095
5095
|
"scroll-mb": [{
|
|
5096
|
-
"scroll-mb":
|
|
5096
|
+
"scroll-mb": O()
|
|
5097
5097
|
}],
|
|
5098
5098
|
/**
|
|
5099
5099
|
* Scroll Margin Left
|
|
5100
5100
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5101
5101
|
*/
|
|
5102
5102
|
"scroll-ml": [{
|
|
5103
|
-
"scroll-ml":
|
|
5103
|
+
"scroll-ml": O()
|
|
5104
5104
|
}],
|
|
5105
5105
|
/**
|
|
5106
5106
|
* Scroll Padding
|
|
5107
5107
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5108
5108
|
*/
|
|
5109
5109
|
"scroll-p": [{
|
|
5110
|
-
"scroll-p":
|
|
5110
|
+
"scroll-p": O()
|
|
5111
5111
|
}],
|
|
5112
5112
|
/**
|
|
5113
5113
|
* Scroll Padding X
|
|
5114
5114
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5115
5115
|
*/
|
|
5116
5116
|
"scroll-px": [{
|
|
5117
|
-
"scroll-px":
|
|
5117
|
+
"scroll-px": O()
|
|
5118
5118
|
}],
|
|
5119
5119
|
/**
|
|
5120
5120
|
* Scroll Padding Y
|
|
5121
5121
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5122
5122
|
*/
|
|
5123
5123
|
"scroll-py": [{
|
|
5124
|
-
"scroll-py":
|
|
5124
|
+
"scroll-py": O()
|
|
5125
5125
|
}],
|
|
5126
5126
|
/**
|
|
5127
5127
|
* Scroll Padding Start
|
|
5128
5128
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5129
5129
|
*/
|
|
5130
5130
|
"scroll-ps": [{
|
|
5131
|
-
"scroll-ps":
|
|
5131
|
+
"scroll-ps": O()
|
|
5132
5132
|
}],
|
|
5133
5133
|
/**
|
|
5134
5134
|
* Scroll Padding End
|
|
5135
5135
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5136
5136
|
*/
|
|
5137
5137
|
"scroll-pe": [{
|
|
5138
|
-
"scroll-pe":
|
|
5138
|
+
"scroll-pe": O()
|
|
5139
5139
|
}],
|
|
5140
5140
|
/**
|
|
5141
5141
|
* Scroll Padding Top
|
|
5142
5142
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5143
5143
|
*/
|
|
5144
5144
|
"scroll-pt": [{
|
|
5145
|
-
"scroll-pt":
|
|
5145
|
+
"scroll-pt": O()
|
|
5146
5146
|
}],
|
|
5147
5147
|
/**
|
|
5148
5148
|
* Scroll Padding Right
|
|
5149
5149
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5150
5150
|
*/
|
|
5151
5151
|
"scroll-pr": [{
|
|
5152
|
-
"scroll-pr":
|
|
5152
|
+
"scroll-pr": O()
|
|
5153
5153
|
}],
|
|
5154
5154
|
/**
|
|
5155
5155
|
* Scroll Padding Bottom
|
|
5156
5156
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5157
5157
|
*/
|
|
5158
5158
|
"scroll-pb": [{
|
|
5159
|
-
"scroll-pb":
|
|
5159
|
+
"scroll-pb": O()
|
|
5160
5160
|
}],
|
|
5161
5161
|
/**
|
|
5162
5162
|
* Scroll Padding Left
|
|
5163
5163
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5164
5164
|
*/
|
|
5165
5165
|
"scroll-pl": [{
|
|
5166
|
-
"scroll-pl":
|
|
5166
|
+
"scroll-pl": O()
|
|
5167
5167
|
}],
|
|
5168
5168
|
/**
|
|
5169
5169
|
* Scroll Snap Align
|
|
@@ -5231,7 +5231,7 @@ const Xr = (i, r) => {
|
|
|
5231
5231
|
* @see https://tailwindcss.com/docs/will-change
|
|
5232
5232
|
*/
|
|
5233
5233
|
"will-change": [{
|
|
5234
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
5234
|
+
"will-change": ["auto", "scroll", "contents", "transform", S, x]
|
|
5235
5235
|
}],
|
|
5236
5236
|
// -----------
|
|
5237
5237
|
// --- SVG ---
|
|
@@ -5248,7 +5248,7 @@ const Xr = (i, r) => {
|
|
|
5248
5248
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
5249
5249
|
*/
|
|
5250
5250
|
"stroke-w": [{
|
|
5251
|
-
stroke: [U, et,
|
|
5251
|
+
stroke: [U, et, We, gt]
|
|
5252
5252
|
}],
|
|
5253
5253
|
/**
|
|
5254
5254
|
* Stroke
|
|
@@ -5323,11 +5323,11 @@ const Xr = (i, r) => {
|
|
|
5323
5323
|
},
|
|
5324
5324
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
5325
5325
|
};
|
|
5326
|
-
},
|
|
5326
|
+
}, Ui = /* @__PURE__ */ fi(Bi);
|
|
5327
5327
|
function E(...i) {
|
|
5328
|
-
return
|
|
5328
|
+
return Ui(Qr(i));
|
|
5329
5329
|
}
|
|
5330
|
-
const lt =
|
|
5330
|
+
const lt = xe.forwardRef(
|
|
5331
5331
|
({ className: i, variant: r = "default", size: n = "default", ...o }, d) => {
|
|
5332
5332
|
const h = E(
|
|
5333
5333
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium",
|
|
@@ -5380,7 +5380,7 @@ const lt = Se.forwardRef(
|
|
|
5380
5380
|
}
|
|
5381
5381
|
);
|
|
5382
5382
|
lt.displayName = "Button";
|
|
5383
|
-
const
|
|
5383
|
+
const tr = xe.forwardRef(
|
|
5384
5384
|
({ className: i, type: r, ...n }, o) => /* @__PURE__ */ y(
|
|
5385
5385
|
"input",
|
|
5386
5386
|
{
|
|
@@ -5399,7 +5399,7 @@ const rr = Se.forwardRef(
|
|
|
5399
5399
|
}
|
|
5400
5400
|
)
|
|
5401
5401
|
);
|
|
5402
|
-
|
|
5402
|
+
tr.displayName = "Input";
|
|
5403
5403
|
function $e({ className: i, variant: r = "default", ...n }) {
|
|
5404
5404
|
const o = {
|
|
5405
5405
|
default: E(
|
|
@@ -5435,7 +5435,7 @@ function $e({ className: i, variant: r = "default", ...n }) {
|
|
|
5435
5435
|
}
|
|
5436
5436
|
);
|
|
5437
5437
|
}
|
|
5438
|
-
const
|
|
5438
|
+
const rr = xe.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y(
|
|
5439
5439
|
"div",
|
|
5440
5440
|
{
|
|
5441
5441
|
ref: n,
|
|
@@ -5448,8 +5448,8 @@ const ir = Se.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y(
|
|
|
5448
5448
|
...r
|
|
5449
5449
|
}
|
|
5450
5450
|
));
|
|
5451
|
-
|
|
5452
|
-
const
|
|
5451
|
+
rr.displayName = "Card";
|
|
5452
|
+
const Pi = xe.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y(
|
|
5453
5453
|
"div",
|
|
5454
5454
|
{
|
|
5455
5455
|
ref: n,
|
|
@@ -5457,8 +5457,8 @@ const Fi = Se.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y(
|
|
|
5457
5457
|
...r
|
|
5458
5458
|
}
|
|
5459
5459
|
));
|
|
5460
|
-
|
|
5461
|
-
const
|
|
5460
|
+
Pi.displayName = "CardHeader";
|
|
5461
|
+
const Li = xe.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y(
|
|
5462
5462
|
"h3",
|
|
5463
5463
|
{
|
|
5464
5464
|
ref: n,
|
|
@@ -5469,8 +5469,8 @@ const Vi = Se.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y(
|
|
|
5469
5469
|
...r
|
|
5470
5470
|
}
|
|
5471
5471
|
));
|
|
5472
|
-
|
|
5473
|
-
const
|
|
5472
|
+
Li.displayName = "CardTitle";
|
|
5473
|
+
const Fi = xe.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y(
|
|
5474
5474
|
"p",
|
|
5475
5475
|
{
|
|
5476
5476
|
ref: n,
|
|
@@ -5478,10 +5478,10 @@ const Gi = Se.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y(
|
|
|
5478
5478
|
...r
|
|
5479
5479
|
}
|
|
5480
5480
|
));
|
|
5481
|
-
|
|
5482
|
-
const
|
|
5483
|
-
|
|
5484
|
-
const
|
|
5481
|
+
Fi.displayName = "CardDescription";
|
|
5482
|
+
const Vi = xe.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y("div", { ref: n, className: E("p-6 pt-0", i), ...r }));
|
|
5483
|
+
Vi.displayName = "CardContent";
|
|
5484
|
+
const Gi = xe.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y(
|
|
5485
5485
|
"div",
|
|
5486
5486
|
{
|
|
5487
5487
|
ref: n,
|
|
@@ -5489,8 +5489,8 @@ const Hi = Se.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y(
|
|
|
5489
5489
|
...r
|
|
5490
5490
|
}
|
|
5491
5491
|
));
|
|
5492
|
-
|
|
5493
|
-
const
|
|
5492
|
+
Gi.displayName = "CardFooter";
|
|
5493
|
+
const ji = ({ compact: i = !1 }) => {
|
|
5494
5494
|
const { sessionState: r, triggerSession: n, theme: o } = tt(), d = o === "dark", h = (c) => {
|
|
5495
5495
|
if (!c) return "N/A";
|
|
5496
5496
|
try {
|
|
@@ -5504,13 +5504,13 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5504
5504
|
};
|
|
5505
5505
|
return i ? /* @__PURE__ */ B("div", { className: "flex items-center gap-2", children: [
|
|
5506
5506
|
r.isSessionReady ? /* @__PURE__ */ B($e, { variant: "success", className: "gap-1", children: [
|
|
5507
|
-
/* @__PURE__ */ y(
|
|
5507
|
+
/* @__PURE__ */ y(Et, { className: "h-3 w-3" }),
|
|
5508
5508
|
"Session Active"
|
|
5509
5509
|
] }) : r.lastError ? /* @__PURE__ */ B($e, { variant: "destructive", className: "gap-1", children: [
|
|
5510
|
-
/* @__PURE__ */ y(
|
|
5510
|
+
/* @__PURE__ */ y(dt, { className: "h-3 w-3" }),
|
|
5511
5511
|
"Error"
|
|
5512
5512
|
] }) : /* @__PURE__ */ B($e, { variant: "secondary", className: "gap-1", children: [
|
|
5513
|
-
/* @__PURE__ */ y(
|
|
5513
|
+
/* @__PURE__ */ y(xt, { className: "h-3 w-3" }),
|
|
5514
5514
|
"Ready"
|
|
5515
5515
|
] }),
|
|
5516
5516
|
!r.isSessionReady && /* @__PURE__ */ B(
|
|
@@ -5524,12 +5524,12 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5524
5524
|
d ? "border-gray-700 hover:bg-gray-800 hover:border-gray-600" : "border-gray-200 hover:bg-gray-50 hover:border-gray-300"
|
|
5525
5525
|
),
|
|
5526
5526
|
children: [
|
|
5527
|
-
/* @__PURE__ */ y(
|
|
5527
|
+
/* @__PURE__ */ y(St, { className: "h-3 w-3 mr-1" }),
|
|
5528
5528
|
"Start"
|
|
5529
5529
|
]
|
|
5530
5530
|
}
|
|
5531
5531
|
)
|
|
5532
|
-
] }) : /* @__PURE__ */ y(
|
|
5532
|
+
] }) : /* @__PURE__ */ y(rr, { className: E(
|
|
5533
5533
|
"p-3 border",
|
|
5534
5534
|
d ? "bg-gray-800/50 border-gray-700/50" : "bg-gray-50 border-gray-100"
|
|
5535
5535
|
), children: /* @__PURE__ */ B("div", { className: "space-y-3", children: [
|
|
@@ -5538,7 +5538,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5538
5538
|
/* @__PURE__ */ y("div", { className: E(
|
|
5539
5539
|
"w-6 h-6 rounded-md flex items-center justify-center",
|
|
5540
5540
|
r.isSessionReady ? "bg-emerald-100 dark:bg-emerald-500/20" : d ? "bg-gray-800" : "bg-gray-100"
|
|
5541
|
-
), children: /* @__PURE__ */ y(
|
|
5541
|
+
), children: /* @__PURE__ */ y(xt, { className: E(
|
|
5542
5542
|
"h-3.5 w-3.5",
|
|
5543
5543
|
r.isSessionReady ? "text-emerald-600 dark:text-emerald-400" : d ? "text-gray-400" : "text-gray-500"
|
|
5544
5544
|
) }) }),
|
|
@@ -5548,10 +5548,10 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5548
5548
|
), children: "Session" })
|
|
5549
5549
|
] }),
|
|
5550
5550
|
r.isSessionReady ? /* @__PURE__ */ B($e, { variant: "success", children: [
|
|
5551
|
-
/* @__PURE__ */ y(
|
|
5551
|
+
/* @__PURE__ */ y(Et, { className: "h-3 w-3 mr-1" }),
|
|
5552
5552
|
"Active"
|
|
5553
5553
|
] }) : r.lastError ? /* @__PURE__ */ B($e, { variant: "destructive", children: [
|
|
5554
|
-
/* @__PURE__ */ y(
|
|
5554
|
+
/* @__PURE__ */ y(dt, { className: "h-3 w-3 mr-1" }),
|
|
5555
5555
|
"Error"
|
|
5556
5556
|
] }) : /* @__PURE__ */ y($e, { variant: "secondary", children: "Not Started" })
|
|
5557
5557
|
] }),
|
|
@@ -5573,7 +5573,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5573
5573
|
"flex items-center gap-2 p-2 rounded-lg",
|
|
5574
5574
|
d ? "bg-gray-800/50 border border-gray-700/50" : "bg-white border border-gray-100"
|
|
5575
5575
|
), children: [
|
|
5576
|
-
/* @__PURE__ */ y(
|
|
5576
|
+
/* @__PURE__ */ y(ur, { className: E("h-3.5 w-3.5", d ? "text-gray-500" : "text-gray-400") }),
|
|
5577
5577
|
/* @__PURE__ */ B("span", { className: E("text-xs", d ? "text-gray-400" : "text-gray-600"), children: [
|
|
5578
5578
|
"Expires in: ",
|
|
5579
5579
|
/* @__PURE__ */ y("span", { className: "font-medium", children: h(r.expires_at) })
|
|
@@ -5583,7 +5583,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5583
5583
|
"flex items-start gap-3 p-3 rounded-xl border",
|
|
5584
5584
|
d ? "bg-red-950/30 border-red-900/50" : "bg-red-50 border-red-100"
|
|
5585
5585
|
), children: [
|
|
5586
|
-
/* @__PURE__ */ y("div", { className: "w-6 h-6 rounded-lg bg-red-500 flex items-center justify-center shrink-0", children: /* @__PURE__ */ y(
|
|
5586
|
+
/* @__PURE__ */ y("div", { className: "w-6 h-6 rounded-lg bg-red-500 flex items-center justify-center shrink-0", children: /* @__PURE__ */ y(dt, { className: "h-3.5 w-3.5 text-white" }) }),
|
|
5587
5587
|
/* @__PURE__ */ B("div", { className: "flex-1 min-w-0", children: [
|
|
5588
5588
|
/* @__PURE__ */ y("p", { className: E(
|
|
5589
5589
|
"text-xs font-medium mb-0.5",
|
|
@@ -5607,17 +5607,17 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5607
5607
|
d ? "border-gray-700 hover:bg-gray-800 hover:border-gray-600" : "border-gray-200 hover:bg-gray-50 hover:border-gray-300"
|
|
5608
5608
|
),
|
|
5609
5609
|
children: [
|
|
5610
|
-
/* @__PURE__ */ y(
|
|
5610
|
+
/* @__PURE__ */ y(St, { className: "h-4 w-4 mr-2" }),
|
|
5611
5611
|
"Start Session"
|
|
5612
5612
|
]
|
|
5613
5613
|
}
|
|
5614
5614
|
)
|
|
5615
5615
|
] }) });
|
|
5616
|
-
},
|
|
5617
|
-
const { chatMessages: i, sendMessage: r, isConnected: n, theme: o } = tt(), [d, h] = he(""), [c, l] = he(!1), m =
|
|
5616
|
+
}, Hi = () => {
|
|
5617
|
+
const { chatMessages: i, sendMessage: r, isConnected: n, theme: o } = tt(), [d, h] = he(""), [c, l] = he(!1), m = ve(null), w = o === "dark", f = () => {
|
|
5618
5618
|
m.current?.scrollIntoView({ behavior: "smooth" });
|
|
5619
5619
|
};
|
|
5620
|
-
|
|
5620
|
+
Ee(() => {
|
|
5621
5621
|
f();
|
|
5622
5622
|
}, [i]);
|
|
5623
5623
|
const u = async () => {
|
|
@@ -5626,12 +5626,12 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5626
5626
|
h(""), l(!0);
|
|
5627
5627
|
try {
|
|
5628
5628
|
await r(A);
|
|
5629
|
-
} catch (
|
|
5630
|
-
console.error("Failed to send message:",
|
|
5629
|
+
} catch (C) {
|
|
5630
|
+
console.error("Failed to send message:", C), h(A);
|
|
5631
5631
|
} finally {
|
|
5632
5632
|
l(!1);
|
|
5633
5633
|
}
|
|
5634
|
-
},
|
|
5634
|
+
}, R = (A) => {
|
|
5635
5635
|
A.key === "Enter" && !A.shiftKey && (A.preventDefault(), u());
|
|
5636
5636
|
}, v = (A) => new Date(A).toLocaleTimeString("en-US", {
|
|
5637
5637
|
hour: "2-digit",
|
|
@@ -5649,7 +5649,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5649
5649
|
/* @__PURE__ */ y("div", { className: E(
|
|
5650
5650
|
"w-7 h-7 rounded-lg flex items-center justify-center",
|
|
5651
5651
|
w ? "bg-indigo-900/30" : "bg-indigo-100"
|
|
5652
|
-
), children: /* @__PURE__ */ y(
|
|
5652
|
+
), children: /* @__PURE__ */ y(Bt, { className: E(
|
|
5653
5653
|
"w-4 h-4",
|
|
5654
5654
|
w ? "text-indigo-400" : "text-indigo-600"
|
|
5655
5655
|
) }) }),
|
|
@@ -5658,7 +5658,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5658
5658
|
w ? "text-white" : "text-gray-900"
|
|
5659
5659
|
), children: "Chat with Aria" })
|
|
5660
5660
|
] }),
|
|
5661
|
-
/* @__PURE__ */ y(
|
|
5661
|
+
/* @__PURE__ */ y(ji, { compact: !0 })
|
|
5662
5662
|
] }) }),
|
|
5663
5663
|
/* @__PURE__ */ B("div", { className: E(
|
|
5664
5664
|
"flex-1 overflow-y-auto p-4 space-y-4",
|
|
@@ -5668,7 +5668,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5668
5668
|
/* @__PURE__ */ y("div", { className: E(
|
|
5669
5669
|
"rounded-2xl p-6 mb-4",
|
|
5670
5670
|
w ? "bg-gradient-to-br from-indigo-900/20 to-purple-900/20" : "bg-gradient-to-br from-indigo-50 to-purple-50"
|
|
5671
|
-
), children: /* @__PURE__ */ y(
|
|
5671
|
+
), children: /* @__PURE__ */ y(mt, { className: E(
|
|
5672
5672
|
"h-8 w-8",
|
|
5673
5673
|
w ? "text-indigo-400" : "text-indigo-500"
|
|
5674
5674
|
) }) }),
|
|
@@ -5680,14 +5680,14 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5680
5680
|
"text-xs",
|
|
5681
5681
|
w ? "text-gray-400" : "text-gray-500"
|
|
5682
5682
|
), children: "Aria is here to chat with you" })
|
|
5683
|
-
] }) : i.filter((A) => A.content && A.content.trim() !== "").map((A,
|
|
5683
|
+
] }) : i.filter((A) => A.content && A.content.trim() !== "").map((A, C) => /* @__PURE__ */ B(
|
|
5684
5684
|
"div",
|
|
5685
5685
|
{
|
|
5686
5686
|
className: E(
|
|
5687
5687
|
"flex gap-2 aria-animate-fade-in",
|
|
5688
5688
|
A.role === "user" ? "flex-row-reverse" : "flex-row"
|
|
5689
5689
|
),
|
|
5690
|
-
style: { animationDelay: `${
|
|
5690
|
+
style: { animationDelay: `${C * 50}ms` },
|
|
5691
5691
|
children: [
|
|
5692
5692
|
/* @__PURE__ */ y(
|
|
5693
5693
|
"div",
|
|
@@ -5696,7 +5696,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5696
5696
|
"shrink-0 w-6 h-6 rounded-full flex items-center justify-center",
|
|
5697
5697
|
A.role === "user" ? "bg-indigo-500 text-white" : w ? "bg-gray-700 text-gray-300" : "bg-gray-200 text-gray-600"
|
|
5698
5698
|
),
|
|
5699
|
-
children: A.role === "user" ? /* @__PURE__ */ y(
|
|
5699
|
+
children: A.role === "user" ? /* @__PURE__ */ y(hr, { className: "h-3 w-3" }) : /* @__PURE__ */ y(pr, { className: "h-3 w-3" })
|
|
5700
5700
|
}
|
|
5701
5701
|
),
|
|
5702
5702
|
/* @__PURE__ */ B(
|
|
@@ -5729,7 +5729,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5729
5729
|
)
|
|
5730
5730
|
]
|
|
5731
5731
|
},
|
|
5732
|
-
|
|
5732
|
+
C
|
|
5733
5733
|
)),
|
|
5734
5734
|
/* @__PURE__ */ y("div", { ref: m })
|
|
5735
5735
|
] }),
|
|
@@ -5741,11 +5741,11 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5741
5741
|
w ? "bg-gray-850 border-gray-700 focus-within:border-primary/50" : "bg-gray-50 border-gray-200 focus-within:border-primary/50 focus-within:bg-white"
|
|
5742
5742
|
), children: [
|
|
5743
5743
|
/* @__PURE__ */ y(
|
|
5744
|
-
|
|
5744
|
+
tr,
|
|
5745
5745
|
{
|
|
5746
5746
|
value: d,
|
|
5747
5747
|
onChange: (A) => h(A.target.value),
|
|
5748
|
-
onKeyDown:
|
|
5748
|
+
onKeyDown: R,
|
|
5749
5749
|
placeholder: n ? "Message Aria..." : "Connecting...",
|
|
5750
5750
|
disabled: !n || c,
|
|
5751
5751
|
className: E(
|
|
@@ -5764,12 +5764,12 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5764
5764
|
"h-7 w-7 rounded-md shrink-0 transition-all duration-200",
|
|
5765
5765
|
"bg-primary hover:bg-primary/90 disabled:opacity-40"
|
|
5766
5766
|
),
|
|
5767
|
-
children: /* @__PURE__ */ y(
|
|
5767
|
+
children: /* @__PURE__ */ y(gr, { className: "h-3.5 w-3.5" })
|
|
5768
5768
|
}
|
|
5769
5769
|
)
|
|
5770
5770
|
] }) })
|
|
5771
5771
|
] });
|
|
5772
|
-
},
|
|
5772
|
+
}, ir = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAkACQAAD/4QCSRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAACQAAAAAQAAAJAAAAABAAOShgAHAAAAEgAAAHigAgAEAAAAAQAAAMigAwAEAAAAAQAAAJkAAAAAQVNDSUkAAABTY3JlZW5zaG90/+0AOFBob3Rvc2hvcCAzLjAAOEJJTQQEAAAAAAAAOEJJTQQlAAAAAAAQ1B2M2Y8AsgTpgAmY7PhCfv/iAihJQ0NfUFJPRklMRQABAQAAAhhhcHBsBAAAAG1udHJSR0IgWFlaIAfmAAEAAQAAAAAAAGFjc3BBUFBMAAAAAEFQUEwAAAAAAAAAAAAAAAAAAAAAAAD21gABAAAAANMtYXBwbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACmRlc2MAAAD8AAAAMGNwcnQAAAEsAAAAUHd0cHQAAAF8AAAAFHJYWVoAAAGQAAAAFGdYWVoAAAGkAAAAFGJYWVoAAAG4AAAAFHJUUkMAAAHMAAAAIGNoYWQAAAHsAAAALGJUUkMAAAHMAAAAIGdUUkMAAAHMAAAAIG1sdWMAAAAAAAAAAQAAAAxlblVTAAAAFAAAABwARABpAHMAcABsAGEAeQAgAFAAM21sdWMAAAAAAAAAAQAAAAxlblVTAAAANAAAABwAQwBvAHAAeQByAGkAZwBoAHQAIABBAHAAcABsAGUAIABJAG4AYwAuACwAIAAyADAAMgAyWFlaIAAAAAAAAPbVAAEAAAAA0yxYWVogAAAAAAAAg98AAD2/////u1hZWiAAAAAAAABKvwAAsTcAAAq5WFlaIAAAAAAAACg4AAARCwAAyLlwYXJhAAAAAAADAAAAAmZmAADypwAADVkAABPQAAAKW3NmMzIAAAAAAAEMQgAABd7///MmAAAHkwAA/ZD///ui///9owAAA9wAAMBu/8AAEQgAmQDIAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMABAQEBAQEBgQEBgkGBgYJDAkJCQkMDwwMDAwMDxIPDw8PDw8SEhISEhISEhUVFRUVFRkZGRkZHBwcHBwcHBwcHP/bAEMBBAUFBwcHDAcHDB0UEBQdHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHf/dAAQADf/aAAwDAQACEQMRAD8A98/sPRP+gda/9+Y//iaP7D0T/oHWv/fmP/4mtKlzQcZl/wBiaL/0DrX/AL8x/wDxNJ/Ymif9A61/78x//E1qUUBcy/7D0T/oHWv/AH5j/wDiaP7D0T/oHWv/AH5j/wDia1KTNAXZmf2Hon/QOtf+/Mf/AMTR/YmiD/mHWv8A35T/AOJrTzRQK5l/2Jov/QOtf+/Mf/xNJ/Ymif8AQOtf+/Mf/wATWpXM+K/FOm+EtKk1TUm4Hyxxj7zt2AoC5oHRdE6nT7X/AL8x/wDxNU57TwtaoXuLaxjVeSWjiH9K+PvEvxe8R6/cMkcpsrQ8eVCTkj3auLuLyS7iM0sr59Cc/wA6Tdhn2jL4g+HEUnlM+nFvaOM/0pLbxB8NruQRQyadvPABjjB/UV8UWEUs0c02SUiA6+5rKu7l/MIjGB61Kld2HayP0STSdClUPHY2jqehEUZH8qd/Yui/9A+1/wC/Kf8AxNfB3h/x34p8OSq2n3biNesTnchH+6en4Yr6u+HvxMs/GKGzu0FrqKDOwH5ZB3K/TuKsi56F/Yui/wDQPtf+/Kf/ABNJ/Yui/wDQPtf+/Kf/ABNadJmgZm/2Lov/AED7X/vyn+FJ/Yui/wDQPtf+/Kf/ABNaVFAjM/sXRf8AoH2v/flP/iaadG0X/oH2v/flP/ia0ic0lAzN/sXRv+gfbf8AflP8KT+xtF/6B9t/35T/AArSJpKAM3+xdG/6B9t/35T/AApP7F0b/oH23/flP8K06KBn/9D6OzRTaKDiHUlJRQMXNJRRQIKKKSgBrMqqWYhVAySewr4S+KnjGbxX4klMTYsbQmK3QH7wB5f/AIEefpX1t8SNS/svwVqlwp2u8XlKQcHLkD+Wa+NvCnh5Ndvx5gPluc5rOpNQV2XCDnJRRyun6bf3r/6PEzjI6DJrubfwV4hvV2pbMiercV9F6L4f0zSY1htIlXHU45NdKYwvAFeW8VKWx68cDFfEz5y0/wAE6lZwS290uRKB932rgte8LalZSM32eQqTwQDivrySNSTWdeRRmPDgH61isRNO5tLCQcbI+IngurcjfGy/WtnQtZn0jUYNRt3KS27h1I9R2Psehr3nW9OsrxHjeJeM4IFfPupaabO6kVOgJx9K9ChiFU3PLxGGdPY/QPw1r1r4l0S11m0+7OvzL3Vhwyn6Gt3OK+VvgLrrx6hdaG8h8q4QyohP/LRMZI+q9fpX1Lmu44x26kJzTc0ZoAM0mTSZozQAtJmkzSZoAWim80UDP//R+jKKKM0HEFFJmjNAwzSZoooEGaKKaTQM8O+PV95Hha3ss4+0z5z2wg/+vXlPwxVXy6jlBjPua779oBwdO0y3cfKzyNu9GAFc98P9Pj0vQk1Cc4EoMhPotcGMfuWO3Bq9S569bg4rXRGKHPpXkk3jHV4SZrXS2aAdC/BPviprb4jalORDcaeYkzjK815sYWV2e17RN2R38pGSB1rFvS5X2pW1FPL85uMjNeV6x47vkuJIbO0LBTjce9ZRi5OyNZNQV2bepKVV/evFPFcBT98B7GuybWvE93mRreNV9GOKrPENThZbmLYx4Knnn2NdNJODu2cNdqcbWOY+G2rf2P4psb1zhBKFc/7L/Kf5195jkA1+bluk/wDaaWttnzGmCL9d3H61+jsBYwRmT72xd31xzXuJng2Js0maTNJTAXNGaSkoAXIpM+lJRmgAopM0lAH/0voqim7qN1BxjqKbupCaBD6KZk0Ek0AKabRTSe1AHhnxy2yaHbW/lbnLllf0HGf6VieEwV8JWCY3MI+/sTXf/EO4h8q0sZQGaZn2Ke5CmuP8P7rbSrdJE2kbhjt1NeTjJO9j3cBSTSmvQ4TV5tfkuLiMLgxqHUN3GeijvxUPhJNYvJ0W8RVLsw4GCAOma9qbSYNRUO65xVi20ew06J5Ykw/r3rkv7trHc4tTu38jm9chW20R5F/1icV53a6XO1uswx5kkbuJHGVUj7ox6sfyFek+IlaTTHRefmBx7Cue0OSK6ga3OGCnBFZRfK7lyi3oeLSxa9JveaYmTf8AKmB0/Ct6yiuYcedxnsfWvUbjTNPizJsGR3ritRmV51RR0PFbe1cnsY/V+VN3PImgaz1q5uF4MLswz256190eFtT/ALX0CyvictJEhb67RmviDX0khur+6z+6kOwe7HAI/Cvqb4OXZufBlujHJiJX8M8V69F31PCrxUbRPWaTNNzQTXScouaQmmlqYWoAeSO9JuqIsKYWoFcm3Ub6g3UbxQFz/9P6EBp2ahBp1BxklFR0UAPyKTdTaKAFJNNJoNIaAPnj42389jf6LcQHBhLSge6kVvqbeawgubf7kyrJj03DNch8edwv9HHQOkq/qK4zwL4inkuhodzKWRbfbCCeAYjnj6gn8q83Fxum0erga3K+V9T3fTr/AOz9elQXF9cXdxIsQzGo3EDqcVy7yXHlMIjl8cVFbarFo48mcyPIfvvjgn0FeUpuS5T6FpXv1Ket+MAmnkNbPEeQA64ziuL8L+Im/tBXMZjSbIkB4wexrodX8WafNxNbmRY84DD7xIxXEnWLSFd4tWQk9MfyrdU3bYmcZR957Ho+r3+4HYRiuCMxkugc96vQRyXdnPdvuiGAyq1c8JVty0sjfLGCxPsKinvYxrT904rxTeFmjtBjG95Dj0JwP619KfAebd4bniz92Ukf5/Gvj2e8e8lMr4HUAD0JJ/rX1X+z5MZNK1GP/nnIp/76H/1q9ynHlSR8vVnzycj6KJAphOaaTTGatzC44tUZao2cVXaSgROZKjMvvVN5agaWgC/5gFHmj1rMM3fNJ51AH//U9/Bp+aiFPoOMdmim0UAOoptFAgJpDSGigD5g/aFk8u40dgedkp/Va+Z7PVrjTNRhv7dsPC4YfnyD9RX0N+0Xcg6jpNqOscEjn/gTAD+VfMEiuTuI4PA96hwTbuWpNbH1taaoLm1t7tAUFxGsi59DXRoEvbQwuoYHrWdp2iq/hmws34lggjAPcHaM1iJqd3ok/l3iHYD97sa+ZcfevE+rjVaS5ipqmi6ur/6LHvQfdzjisFNBvFuPtOoYG3k5Oa7668ZWbQhVwTXBar4gNyGSLgN1rXnqPQ6Kla8feZn3erSfvIkb5HPH4V5v4n1pkU6ZASGbBkPsecf411i/O+T2rzPxPxrM+e4Uj8hXfhacec8LF1XyaGVE2K+rP2dplNvrMGeQYm/D5hXyUjYP1r6a/Z4n26jqkWeGhU/k1eozx0fVjNUDvQ7VUkemSK8mOKpyS0ySTFUJJsUATPN71VefHeqUs9UHnPrSuBqm5FN+0isJrg0z7TSuM//V99FLUYPNPoOIdmjNJRQAuaM0lJmgANNJxmmSSLGpd2CqvJJOAPqa8z8V/FPw34eVraGX7ddspISEgqvpubp17CiwjwT44XKah40S1UnbaWyK59ySxx+eK858O6Vb6r4j0+0nwIVYuV/vbOQPxqXX9Zn13U7jVLkASTtuIHQAdAPpWVY30mm6ha38fWCQN+GeaVWL9nJLc1pNc65tj7Et9u3FVr6ytrpdkyBgexqtYXkd3aRXUJykqhh+NWHlBGTXzCXc+nWp5nrnhKKLdNZMR321wM1rLCxWQHIr266feSM8Vyd3pscpdmH41rGXczlBHmxYopZRkjtXBeLYSLyO5x8siBT9RXpWoQeQ5Velc1qFst3GYZE356D37V2UJ8skzgrw5otHmKgFgK+h/gO3keIbuPPEsA/9Crxu60JrGdGzlD1B9e9eg/DDUl0vxfaeYwSObdExPA+YcfqBXsWurnj7H2m7ACqEr4qZ2zVGZqQitLJisuaWp55KyZpOalgRyynmqEktEslZ8klQ2Ow95qj841UZ6Z5gqLsZ/9b3ing5qPNOBxQcI+imZNeZ+LfihoPhyKSC2kF7fLlRGh+VSP7zf0FOwM9BvtT0/TIftGoXEdtH/ekYDP09a8s1j41eFdPZorFZL5x3X5U/M8/pXzB4k8Wav4mvWu9TnLnnao4VB6KO1cmZDuq1HuFzt/F/xH8QeLb1knmMFop+WCMkKB7+p9zXFmQs2T1bn8BWchzcOO/FXF+8SeMcCq9BDmbBqOT50OO1E0scY3OcAVgXGpSM22H5V/nQxo+kfhprRnsjpcxy0PKZ9DXp118seSOtfHOkeJNU0ieO9s3CupzjHBHoa+m/A/j7RPGBTSdQQ2uokZAB+STHXaT0PtXiVcHLmvE9ili4pWkaSo8r8Dg1W1CEwQe5rub+wg05d9vGXA9TkVlQWsWuEb0ZFXqF/wAayeGnsb/W6bPIP7OlvrjYqliTgADNdbZeB/L+eZczt0Xrt/8Ar113iPUtG8B6K1+8S+e/yxR/xO3164HU15lafGbTZbaRtTtHt9o+UQnIc/U8iuyjhuXWR59bEc2kUcd8QrSDS72Cyj6rGXY+pY4H8q8xSZhJuU4NbninxJL4n1SXVMBEfCog/hVRgCuegXLZNemlZWOA+ifB3xZS0sI9O8RiSUx4WOdeTtA6MD1I9a9U0/xToet/Lpt0sj4zsPDfka+LpW2JkdiKsWWoXNjOlzayGOSM5VlOCDQ4gfZ879TWTM9eX+H/AImw3Kra658j9BMo4P8AvD+tegfaYbiITW7iSNuQynIrCSaBEc0nWs93qSVupqi7c1ztlis+aZuqIvSb6QH/1/dqKbRQcRyvjfxBH4b8NXmosR5hUxRD1kcYH5dfwr4PuZyZyC2c85PrX0H8edZZrqw0RG+WJDO4/wBp+B+QH6183XGSN1bJWRL1HSHBxUIOW5qPeXTnqKchyc0DKbSGO7O04JFUZLi8LkK55qxdHFyp9qkVRkGgCB7Vmh3SsWcjNVY7ZWi8wnJrcYArVCNdrvF2PIotqA8RoUAxxiiES2sqXFu7I8Z3KV4II75qVBxtoAI602gPpfwn4vuNc8PSfa3LXEAALdz2r0/wvbSw2IlumJMhyOe1fNfw2WSe9kskPyyMmR68/wD1q9t+JnihPDPhia2tH23U0flJjqu7gn8s1zcvvWNLnzR8TvEsmu+K75o5zLa27mGEZ+UKvBx9Tk1w15qTXLtJsVAQFCgcAD0quI3kOaGtyeK25bk3K8E5hf8A2T1FdBbuGwQc1jC2UGriho8eWdtWkJmtPzE49qowyb0Dd+9V2urlMq2DxUNs5ViG6GjqFjVDYrqvDnii70W4C7i9u5w8ZPH1Hoa5EcikB5oaT3EfT0F7BfW6XVs2+OQZBqN2rxvwr4kbS5/styc20p5/2T6j+teu+YrgOpDK3II6GuGcOVlpgTRmoyaM1FgP/9D2j7fYf8/MP/fxf8aPt9h/z8w/9/F/xr80aKDH2Z618VtVj1HxlqDpIrJE4iUggjCADj8c15m0iMuNw/OuRuf9c/1NV6vmJ9l5nVK65bkfnViNkCZ3D864unCjmD2Xmbt4wMqkEVaRkwpyOlcoetOFNSH7PzOwLrtHI/OqkpCOsgI4PPPrXN0hocg9n5nWBl7EfnTiycciuRoo5hez8z6J+EUluviBnuJESOJPMJZgPug+tVfipqX9o/ZZ2dT9rkkkUAg4jTCIP5mvDLP77fSkufux/Q/zqPtXH7PTc2FCr0Ipp28nIrnqKvmD2Xmb6lSc5FTAqO4/OuZFBp8wvZ+Zu5BnzkVMSnA4rnO9LS5h+y8zpQy+opscgLHkVzlIKOcPZeZ0jzKh6ivUPAusCezmtZ5APKYMm4j7p4/mK8KarNt1NTN3Vhqn5n1GbmHr5qf99D/Gj7VD/wA9U/76H+NfMxpK5+TzH7M//9k=", zi = ({ onClose: i }) => {
|
|
5773
5773
|
const {
|
|
5774
5774
|
isConnected: r,
|
|
5775
5775
|
isLoading: n,
|
|
@@ -5782,8 +5782,8 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5782
5782
|
displayMode: w,
|
|
5783
5783
|
theme: f,
|
|
5784
5784
|
setVideoElement: u
|
|
5785
|
-
} = tt(),
|
|
5786
|
-
|
|
5785
|
+
} = tt(), R = ve(null);
|
|
5786
|
+
Ee(() => (R.current && u(R.current), () => {
|
|
5787
5787
|
u(null);
|
|
5788
5788
|
}), [u]);
|
|
5789
5789
|
const v = f === "dark", A = w === "bottom-right";
|
|
@@ -5858,11 +5858,11 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5858
5858
|
), children: /* @__PURE__ */ y(
|
|
5859
5859
|
"img",
|
|
5860
5860
|
{
|
|
5861
|
-
src:
|
|
5861
|
+
src: ir,
|
|
5862
5862
|
alt: "Aria",
|
|
5863
5863
|
className: "w-full h-full object-cover",
|
|
5864
|
-
onError: (
|
|
5865
|
-
|
|
5864
|
+
onError: (D) => {
|
|
5865
|
+
D.currentTarget.style.display = "none";
|
|
5866
5866
|
}
|
|
5867
5867
|
}
|
|
5868
5868
|
) })
|
|
@@ -5871,7 +5871,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5871
5871
|
"text-2xl font-bold tracking-tight mb-2",
|
|
5872
5872
|
v ? "text-white" : "text-gray-900"
|
|
5873
5873
|
), children: "Aria is joining..." }),
|
|
5874
|
-
/* @__PURE__ */ y("div", { className: "flex items-center gap-1.5 mb-6", children: [0, 1, 2].map((
|
|
5874
|
+
/* @__PURE__ */ y("div", { className: "flex items-center gap-1.5 mb-6", children: [0, 1, 2].map((D) => /* @__PURE__ */ y(
|
|
5875
5875
|
"div",
|
|
5876
5876
|
{
|
|
5877
5877
|
className: E(
|
|
@@ -5880,10 +5880,10 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5880
5880
|
),
|
|
5881
5881
|
style: {
|
|
5882
5882
|
animation: "aria-loading-bounce 1.4s ease-in-out infinite",
|
|
5883
|
-
animationDelay: `${
|
|
5883
|
+
animationDelay: `${D * 0.15}s`
|
|
5884
5884
|
}
|
|
5885
5885
|
},
|
|
5886
|
-
|
|
5886
|
+
D
|
|
5887
5887
|
)) }),
|
|
5888
5888
|
/* @__PURE__ */ y("p", { className: E(
|
|
5889
5889
|
"text-sm font-medium px-4 py-2 rounded-full",
|
|
@@ -5905,7 +5905,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5905
5905
|
"rounded-lg p-6 max-w-sm w-full shadow-lg border",
|
|
5906
5906
|
v ? "bg-gray-900 border-red-900/30" : "bg-white border-red-100"
|
|
5907
5907
|
), children: /* @__PURE__ */ B("div", { className: "flex flex-col items-center text-center gap-3", children: [
|
|
5908
|
-
/* @__PURE__ */ y("div", { className: "w-12 h-12 rounded-full bg-red-500/10 flex items-center justify-center", children: /* @__PURE__ */ y(
|
|
5908
|
+
/* @__PURE__ */ y("div", { className: "w-12 h-12 rounded-full bg-red-500/10 flex items-center justify-center", children: /* @__PURE__ */ y(Ut, { className: "w-6 h-6 text-red-500" }) }),
|
|
5909
5909
|
/* @__PURE__ */ B("div", { children: [
|
|
5910
5910
|
/* @__PURE__ */ y("p", { className: E(
|
|
5911
5911
|
"text-base font-bold mb-2",
|
|
@@ -5922,7 +5922,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5922
5922
|
/* @__PURE__ */ y(
|
|
5923
5923
|
"video",
|
|
5924
5924
|
{
|
|
5925
|
-
ref:
|
|
5925
|
+
ref: R,
|
|
5926
5926
|
autoPlay: !0,
|
|
5927
5927
|
playsInline: !0,
|
|
5928
5928
|
className: "w-full h-full object-contain"
|
|
@@ -5964,7 +5964,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5964
5964
|
o ? v ? "bg-indigo-600 hover:bg-indigo-700 text-white" : "bg-indigo-500 hover:bg-indigo-600 text-white" : v ? "bg-gray-800/80 hover:bg-gray-700 text-gray-300" : "bg-gray-100/80 hover:bg-gray-200 text-gray-600"
|
|
5965
5965
|
),
|
|
5966
5966
|
title: o ? "Hide Chat" : "Show Chat",
|
|
5967
|
-
children: /* @__PURE__ */ y(
|
|
5967
|
+
children: /* @__PURE__ */ y(Bt, { className: "h-4 w-4" })
|
|
5968
5968
|
}
|
|
5969
5969
|
),
|
|
5970
5970
|
/* @__PURE__ */ y(
|
|
@@ -5977,7 +5977,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5977
5977
|
d ? "bg-red-500 hover:bg-red-600 text-white" : v ? "bg-gray-800/80 hover:bg-gray-700 text-gray-300" : "bg-gray-100/80 hover:bg-gray-200 text-gray-600"
|
|
5978
5978
|
),
|
|
5979
5979
|
title: d ? "Unmute" : "Mute",
|
|
5980
|
-
children: d ? /* @__PURE__ */ y(
|
|
5980
|
+
children: d ? /* @__PURE__ */ y(fr, { className: "h-4 w-4" }) : /* @__PURE__ */ y(mr, { className: "h-4 w-4" })
|
|
5981
5981
|
}
|
|
5982
5982
|
),
|
|
5983
5983
|
/* @__PURE__ */ y(
|
|
@@ -5986,7 +5986,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5986
5986
|
onClick: i,
|
|
5987
5987
|
className: "w-10 h-9 rounded-full bg-red-500 hover:bg-red-600 flex items-center justify-center transition-all duration-200 text-white border-0 outline-none focus:outline-none shadow-sm",
|
|
5988
5988
|
title: "End Call",
|
|
5989
|
-
children: /* @__PURE__ */ y(
|
|
5989
|
+
children: /* @__PURE__ */ y(wr, { className: "h-4 w-4 rotate-[135deg]" })
|
|
5990
5990
|
}
|
|
5991
5991
|
)
|
|
5992
5992
|
]
|
|
@@ -5997,24 +5997,24 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
5997
5997
|
"flex flex-col shrink-0 border-l",
|
|
5998
5998
|
A ? "w-[320px]" : "w-[360px]",
|
|
5999
5999
|
v ? "bg-gray-900 border-gray-800" : "bg-white border-gray-100"
|
|
6000
|
-
), children: /* @__PURE__ */ y(
|
|
6000
|
+
), children: /* @__PURE__ */ y(Hi, {}) })
|
|
6001
6001
|
] })
|
|
6002
6002
|
}
|
|
6003
6003
|
);
|
|
6004
|
-
},
|
|
6004
|
+
}, nr = ({
|
|
6005
6005
|
children: i,
|
|
6006
6006
|
styles: r = "",
|
|
6007
6007
|
className: n,
|
|
6008
6008
|
style: o,
|
|
6009
6009
|
as: d = "div"
|
|
6010
6010
|
}) => {
|
|
6011
|
-
const h =
|
|
6012
|
-
|
|
6011
|
+
const h = ve(null), [c, l] = he(null);
|
|
6012
|
+
Ee(() => {
|
|
6013
6013
|
const f = h.current;
|
|
6014
6014
|
if (!f) return;
|
|
6015
6015
|
let u = f.shadowRoot;
|
|
6016
6016
|
u || (u = f.attachShadow({ mode: "open" })), l(u);
|
|
6017
|
-
}, []),
|
|
6017
|
+
}, []), Ee(() => {
|
|
6018
6018
|
if (!c || !r) return;
|
|
6019
6019
|
const f = c.querySelector("style[data-aria-styles]");
|
|
6020
6020
|
if (f) {
|
|
@@ -6027,7 +6027,7 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
6027
6027
|
};
|
|
6028
6028
|
}, [c, r]);
|
|
6029
6029
|
const [m, w] = he(null);
|
|
6030
|
-
return
|
|
6030
|
+
return Ee(() => {
|
|
6031
6031
|
if (!c) return;
|
|
6032
6032
|
let f = c.querySelector(".aria-shadow-content");
|
|
6033
6033
|
f || (f = document.createElement("div"), f.className = "aria-shadow-content", c.appendChild(f)), w(f);
|
|
@@ -6037,14 +6037,14 @@ const zi = ({ compact: i = !1 }) => {
|
|
|
6037
6037
|
ref: h,
|
|
6038
6038
|
className: n,
|
|
6039
6039
|
style: o,
|
|
6040
|
-
children: m &&
|
|
6040
|
+
children: m && vr(i, m)
|
|
6041
6041
|
}
|
|
6042
6042
|
);
|
|
6043
|
-
}, ar = '@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer aria-theme{:root,:host{--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-amber-600:oklch(66.6% .179 58.318);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-800:oklch(47.6% .114 61.907);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-600:oklch(62.7% .194 149.214);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-900:oklch(35.9% .144 278.697);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--blur-3xl:64px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1)}}@layer aria-utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.-inset-1\\.5{inset:calc(var(--spacing)*-1.5)}.-inset-3{inset:calc(var(--spacing)*-3)}.inset-0{inset:calc(var(--spacing)*0)}.inset-8{inset:calc(var(--spacing)*8)}.inset-\\[3px\\]{inset:3px}.top-0{top:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.right-6{right:calc(var(--spacing)*6)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-6{bottom:calc(var(--spacing)*6)}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-6{margin-top:calc(var(--spacing)*6)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-0\\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-4{margin-left:calc(var(--spacing)*4)}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2\\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-14{height:calc(var(--spacing)*14)}.h-20{height:calc(var(--spacing)*20)}.h-32{height:calc(var(--spacing)*32)}.h-64{height:calc(var(--spacing)*64)}.h-96{height:calc(var(--spacing)*96)}.h-\\[500px\\]{height:500px}.h-full{height:100%}.max-h-32{max-height:calc(var(--spacing)*32)}.max-h-40{max-height:calc(var(--spacing)*40)}.max-h-64{max-height:calc(var(--spacing)*64)}.max-h-\\[90vh\\]{max-height:90vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-screen{min-height:100vh}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-20{width:calc(var(--spacing)*20)}.w-64{width:calc(var(--spacing)*64)}.w-96{width:calc(var(--spacing)*96)}.w-\\[320px\\]{width:320px}.w-\\[360px\\]{width:360px}.w-\\[640px\\]{width:640px}.w-\\[960px\\]{width:960px}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[80\\%\\]{max-width:80%}.max-w-full{max-width:100%}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\\[60px\\]{min-width:60px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-\\[135deg\\]{rotate:135deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-br-md{border-bottom-right-radius:var(--radius-md)}.rounded-bl-md{border-bottom-left-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-blue-200{border-color:var(--color-blue-200)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-200\\/80{border-color:#e5e7ebcc}@supports (color:color-mix(in lab,red,red)){.border-gray-200\\/80{border-color:color-mix(in oklab,var(--color-gray-200)80%,transparent)}}.border-gray-700{border-color:var(--color-gray-700)}.border-gray-700\\/50{border-color:#36415380}@supports (color:color-mix(in lab,red,red)){.border-gray-700\\/50{border-color:color-mix(in oklab,var(--color-gray-700)50%,transparent)}}.border-gray-800{border-color:var(--color-gray-800)}.border-gray-800\\/50{border-color:#1e293980}@supports (color:color-mix(in lab,red,red)){.border-gray-800\\/50{border-color:color-mix(in oklab,var(--color-gray-800)50%,transparent)}}.border-gray-900{border-color:var(--color-gray-900)}.border-purple-200{border-color:var(--color-purple-200)}.border-red-100{border-color:var(--color-red-100)}.border-red-900\\/30{border-color:#82181a4d}@supports (color:color-mix(in lab,red,red)){.border-red-900\\/30{border-color:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.border-red-900\\/50{border-color:#82181a80}@supports (color:color-mix(in lab,red,red)){.border-red-900\\/50{border-color:color-mix(in oklab,var(--color-red-900)50%,transparent)}}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-yellow-200{border-color:var(--color-yellow-200)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-black\\/60{background-color:#0009}@supports (color:color-mix(in lab,red,red)){.bg-black\\/60{background-color:color-mix(in oklab,var(--color-black)60%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-50\\/30{background-color:#f9fafb4d}@supports (color:color-mix(in lab,red,red)){.bg-gray-50\\/30{background-color:color-mix(in oklab,var(--color-gray-50)30%,transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-100\\/80{background-color:#f3f4f6cc}@supports (color:color-mix(in lab,red,red)){.bg-gray-100\\/80{background-color:color-mix(in oklab,var(--color-gray-100)80%,transparent)}}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-700{background-color:var(--color-gray-700)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-gray-800\\/50{background-color:#1e293980}@supports (color:color-mix(in lab,red,red)){.bg-gray-800\\/50{background-color:color-mix(in oklab,var(--color-gray-800)50%,transparent)}}.bg-gray-800\\/80{background-color:#1e2939cc}@supports (color:color-mix(in lab,red,red)){.bg-gray-800\\/80{background-color:color-mix(in oklab,var(--color-gray-800)80%,transparent)}}.bg-gray-900{background-color:var(--color-gray-900)}.bg-gray-900\\/30{background-color:#1018284d}@supports (color:color-mix(in lab,red,red)){.bg-gray-900\\/30{background-color:color-mix(in oklab,var(--color-gray-900)30%,transparent)}}.bg-gray-900\\/90{background-color:#101828e6}@supports (color:color-mix(in lab,red,red)){.bg-gray-900\\/90{background-color:color-mix(in oklab,var(--color-gray-900)90%,transparent)}}.bg-gray-950{background-color:var(--color-gray-950)}.bg-gray-950\\/80{background-color:#030712cc}@supports (color:color-mix(in lab,red,red)){.bg-gray-950\\/80{background-color:color-mix(in oklab,var(--color-gray-950)80%,transparent)}}.bg-gray-950\\/95{background-color:#030712f2}@supports (color:color-mix(in lab,red,red)){.bg-gray-950\\/95{background-color:color-mix(in oklab,var(--color-gray-950)95%,transparent)}}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-indigo-100{background-color:var(--color-indigo-100)}.bg-indigo-300{background-color:var(--color-indigo-300)}.bg-indigo-400{background-color:var(--color-indigo-400)}.bg-indigo-500{background-color:var(--color-indigo-500)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-indigo-900{background-color:var(--color-indigo-900)}.bg-indigo-900\\/30{background-color:#312c854d}@supports (color:color-mix(in lab,red,red)){.bg-indigo-900\\/30{background-color:color-mix(in oklab,var(--color-indigo-900)30%,transparent)}}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-300{background-color:var(--color-purple-300)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-900{background-color:var(--color-purple-900)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\\/10{background-color:color-mix(in oklab,var(--color-red-500)10%,transparent)}}.bg-red-950\\/30{background-color:#4608094d}@supports (color:color-mix(in lab,red,red)){.bg-red-950\\/30{background-color:color-mix(in oklab,var(--color-red-950)30%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-white\\/80{background-color:#fffc}@supports (color:color-mix(in lab,red,red)){.bg-white\\/80{background-color:color-mix(in oklab,var(--color-white)80%,transparent)}}.bg-white\\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-white\\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.bg-white\\/95{background-color:#fffffff2}@supports (color:color-mix(in lab,red,red)){.bg-white\\/95{background-color:color-mix(in oklab,var(--color-white)95%,transparent)}}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-black\\/60{--tw-gradient-from:#0009}@supports (color:color-mix(in lab,red,red)){.from-black\\/60{--tw-gradient-from:color-mix(in oklab,var(--color-black)60%,transparent)}}.from-black\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-50{--tw-gradient-from:var(--color-blue-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-500{--tw-gradient-from:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-50{--tw-gradient-from:var(--color-gray-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-100{--tw-gradient-from:var(--color-gray-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-800{--tw-gradient-from:var(--color-gray-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-900{--tw-gradient-from:var(--color-gray-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-indigo-50{--tw-gradient-from:var(--color-indigo-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-indigo-400{--tw-gradient-from:var(--color-indigo-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-indigo-500{--tw-gradient-from:var(--color-indigo-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-indigo-900\\/20{--tw-gradient-from:#312c8533}@supports (color:color-mix(in lab,red,red)){.from-indigo-900\\/20{--tw-gradient-from:color-mix(in oklab,var(--color-indigo-900)20%,transparent)}}.from-indigo-900\\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-white\\/60{--tw-gradient-from:#fff9}@supports (color:color-mix(in lab,red,red)){.from-white\\/60{--tw-gradient-from:color-mix(in oklab,var(--color-white)60%,transparent)}}.from-white\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-indigo-50{--tw-gradient-via:var(--color-indigo-50);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-purple-400{--tw-gradient-via:var(--color-purple-400);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-purple-500{--tw-gradient-via:var(--color-purple-500);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-black{--tw-gradient-to:var(--color-black);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-gray-50{--tw-gradient-to:var(--color-gray-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-gray-950{--tw-gradient-to:var(--color-gray-950);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-400{--tw-gradient-to:var(--color-pink-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500{--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-50{--tw-gradient-to:var(--color-purple-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-400{--tw-gradient-to:var(--color-purple-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-500{--tw-gradient-to:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-900\\/20{--tw-gradient-to:#59168b33}@supports (color:color-mix(in lab,red,red)){.to-purple-900\\/20{--tw-gradient-to:color-mix(in oklab,var(--color-purple-900)20%,transparent)}}.to-purple-900\\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-white{--tw-gradient-to:var(--color-white);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-3\\.5{padding-inline:calc(var(--spacing)*3.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-12{padding-block:calc(var(--spacing)*12)}.pt-0{padding-top:calc(var(--spacing)*0)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[9px\\]{font-size:9px}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-blue-600{color:var(--color-blue-600)}.text-blue-800{color:var(--color-blue-800)}.text-emerald-600{color:var(--color-emerald-600)}.text-gray-100{color:var(--color-gray-100)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-600{color:var(--color-green-600)}.text-green-800{color:var(--color-green-800)}.text-indigo-400{color:var(--color-indigo-400)}.text-indigo-500{color:var(--color-indigo-500)}.text-indigo-600{color:var(--color-indigo-600)}.text-purple-600{color:var(--color-purple-600)}.text-purple-800{color:var(--color-purple-800)}.text-red-200{color:var(--color-red-200)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-red-900{color:var(--color-red-900)}.text-white{color:var(--color-white)}.text-yellow-800{color:var(--color-yellow-800)}.uppercase{text-transform:uppercase}.underline-offset-4{text-underline-offset:4px}.opacity-20{opacity:.2}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_8px_30px_rgb\\(0\\,0\\,0\\,0\\.3\\)\\]{--tw-shadow:0 8px 30px var(--tw-shadow-color,#0000004d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_8px_30px_rgb\\(0\\,0\\,0\\,0\\.12\\)\\]{--tw-shadow:0 8px 30px var(--tw-shadow-color,#0000001f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-gray-900{--tw-ring-color:var(--color-gray-900)}.ring-white{--tw-ring-color:var(--color-white)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur-3xl{--tw-blur:blur(var(--blur-3xl));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}@media(hover:hover){.group-hover\\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.placeholder\\:text-gray-400::-moz-placeholder{color:var(--color-gray-400)}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}.placeholder\\:text-gray-500::-moz-placeholder{color:var(--color-gray-500)}.placeholder\\:text-gray-500::placeholder{color:var(--color-gray-500)}.focus-within\\:bg-white:focus-within{background-color:var(--color-white)}@media(hover:hover){.hover\\:-translate-y-0\\.5:hover{--tw-translate-y:calc(var(--spacing)*-.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:border-gray-600:hover{border-color:var(--color-gray-600)}.hover\\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\\:bg-gray-800:hover{background-color:var(--color-gray-800)}.hover\\:bg-green-200:hover{background-color:var(--color-green-200)}.hover\\:bg-indigo-600:hover{background-color:var(--color-indigo-600)}.hover\\:bg-indigo-700:hover{background-color:var(--color-indigo-700)}.hover\\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\\:text-blue-800:hover{color:var(--color-blue-800)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-90:hover{opacity:.9}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-\\[0_8px_30px_rgb\\(0\\,0\\,0\\,0\\.4\\)\\]:hover{--tw-shadow:0 8px 30px var(--tw-shadow-color,#0006);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:shadow-\\[0_8px_30px_rgb\\(0\\,0\\,0\\,0\\.16\\)\\]:hover{--tw-shadow:0 8px 30px var(--tw-shadow-color,#00000029);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:shadow-indigo-500\\/25:hover{--tw-shadow-color:#625fff40}@supports (color:color-mix(in lab,red,red)){.hover\\:shadow-indigo-500\\/25:hover{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-indigo-500)25%,transparent)var(--tw-shadow-alpha),transparent)}}}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:scale-\\[0\\.98\\]:active{scale:.98}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\\:text-left{text-align:left}}@media(min-width:48rem){.md\\:inset-16{inset:calc(var(--spacing)*16)}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:64rem){.lg\\:inset-20{inset:calc(var(--spacing)*20)}}@media(prefers-color-scheme:dark){.dark\\:bg-emerald-500\\/20{background-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-emerald-500\\/20{background-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.dark\\:text-emerald-400{color:var(--color-emerald-400)}}}.aria-assistant-container{--aria-background:0 0% 100%;--aria-foreground:222 47% 11%;--aria-card:0 0% 100%;--aria-card-foreground:222 47% 11%;--aria-popover:0 0% 100%;--aria-popover-foreground:222 47% 11%;--aria-primary:221 83% 53%;--aria-primary-foreground:0 0% 100%;--aria-secondary:210 40% 96%;--aria-secondary-foreground:215 16% 47%;--aria-muted:210 40% 96%;--aria-muted-foreground:215 16% 47%;--aria-accent:210 40% 96%;--aria-accent-foreground:222 47% 11%;--aria-destructive:0 84% 60%;--aria-destructive-foreground:0 0% 100%;--aria-success:142 72% 29%;--aria-success-foreground:0 0% 100%;--aria-border:214 32% 91%;--aria-input:214 32% 91%;--aria-ring:221 83% 53%;--aria-radius:.5rem;--aria-gradient-from:221 83% 53%;--aria-gradient-to:221 83% 53%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;isolation:isolate;color:hsl(var(--aria-foreground));--background:var(--aria-background);--foreground:var(--aria-foreground);--card:var(--aria-card);--card-foreground:var(--aria-card-foreground);--primary:var(--aria-primary);--primary-foreground:var(--aria-primary-foreground);--secondary:var(--aria-secondary);--secondary-foreground:var(--aria-secondary-foreground);--muted:var(--aria-muted);--muted-foreground:var(--aria-muted-foreground);--accent:var(--aria-accent);--accent-foreground:var(--aria-accent-foreground);--destructive:var(--aria-destructive);--destructive-foreground:var(--aria-destructive-foreground);--success:var(--aria-success);--success-foreground:var(--aria-success-foreground);--border:var(--aria-border);--input:var(--aria-input);--ring:var(--aria-ring);--radius:var(--aria-radius);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;line-height:1.6}.aria-assistant-container *,.aria-assistant-container :before,.aria-assistant-container :after{box-sizing:border-box}.aria-assistant-container.aria-dark{--aria-background:222 47% 4%;--aria-foreground:210 40% 98%;--aria-card:222 47% 6%;--aria-card-foreground:210 40% 98%;--aria-popover:222 47% 6%;--aria-popover-foreground:210 40% 98%;--aria-primary:217 91% 60%;--aria-primary-foreground:0 0% 100%;--aria-secondary:217 33% 17%;--aria-secondary-foreground:210 40% 98%;--aria-muted:217 33% 17%;--aria-muted-foreground:215 20% 65%;--aria-accent:217 33% 17%;--aria-accent-foreground:210 40% 98%;--aria-destructive:0 84% 60%;--aria-destructive-foreground:0 0% 100%;--aria-success:142 71% 45%;--aria-success-foreground:0 0% 100%;--aria-border:217 33% 17%;--aria-input:217 33% 17%;--aria-ring:217 91% 60%;--aria-gradient-from:217 91% 60%;--aria-gradient-to:217 91% 60%;--background:var(--aria-background);--foreground:var(--aria-foreground);--card:var(--aria-card);--card-foreground:var(--aria-card-foreground);--primary:var(--aria-primary);--primary-foreground:var(--aria-primary-foreground);--secondary:var(--aria-secondary);--secondary-foreground:var(--aria-secondary-foreground);--muted:var(--aria-muted);--muted-foreground:var(--aria-muted-foreground);--accent:var(--aria-accent);--accent-foreground:var(--aria-accent-foreground);--destructive:var(--aria-destructive);--destructive-foreground:var(--aria-destructive-foreground);--success:var(--aria-success);--success-foreground:var(--aria-success-foreground);--border:var(--aria-border);--input:var(--aria-input);--ring:var(--aria-ring)}@keyframes aria-fade-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes aria-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes aria-slide-up{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes aria-pulse-ring{0%,to{box-shadow:0 0 hsl(var(--aria-primary)/.4)}50%{box-shadow:0 0 0 8px hsl(var(--aria-primary)/0)}}@keyframes aria-gradient-shift{0%,to{background-position:0%}50%{background-position:100%}}@keyframes aria-pulse-dot{0%{opacity:.5;transform:scale(.95)}50%{opacity:1;transform:scale(1.05)}to{opacity:.5;transform:scale(.95)}}@keyframes aria-loading-bounce{0%,to{opacity:.5;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}.aria-assistant-container .aria-animate-pulse-dot{animation:2s ease-in-out infinite aria-pulse-dot}.aria-assistant-container .aria-animate-fade-in{animation:.3s ease-out forwards aria-fade-in}.aria-assistant-container .aria-animate-scale-in{animation:.2s ease-out forwards aria-scale-in}.aria-assistant-container .aria-animate-slide-up{animation:.4s ease-out forwards aria-slide-up}.aria-assistant-container .aria-animate-pulse-ring{animation:2s ease-in-out infinite aria-pulse-ring}.aria-assistant-container .aria-glass{background:hsl(var(--aria-background)/.8);-webkit-backdrop-filter:blur(12px)saturate(180%)}.aria-assistant-container.aria-dark .aria-glass{background:hsl(var(--aria-background)/.75);-webkit-backdrop-filter:blur(16px)saturate(180%)}.aria-assistant-container .aria-gradient-text{background:linear-gradient(135deg,hsl(var(--aria-gradient-from)),hsl(var(--aria-gradient-to)));-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}.aria-assistant-container .aria-gradient-bg{background:linear-gradient(135deg,hsl(var(--aria-gradient-from)),hsl(var(--aria-gradient-to)))}.aria-assistant-container ::-webkit-scrollbar{width:6px;height:6px}.aria-assistant-container ::-webkit-scrollbar-track{background:0 0}.aria-assistant-container ::-webkit-scrollbar-thumb{background:hsl(var(--aria-border));border-radius:3px}.aria-assistant-container ::-webkit-scrollbar-thumb:hover{background:hsl(var(--aria-muted-foreground)/.5)}.aria-assistant-container .aria-focus-ring:focus-visible{box-shadow:0 0 0 2px hsl(var(--aria-ring)/.2);outline:none}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}';
|
|
6044
|
-
function
|
|
6045
|
-
return
|
|
6043
|
+
}, or = '@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer aria-theme{:root,:host{--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-amber-600:oklch(66.6% .179 58.318);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-800:oklch(47.6% .114 61.907);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-600:oklch(62.7% .194 149.214);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-900:oklch(35.9% .144 278.697);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--blur-3xl:64px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1)}}@layer aria-utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.-inset-1\\.5{inset:calc(var(--spacing)*-1.5)}.-inset-3{inset:calc(var(--spacing)*-3)}.inset-0{inset:calc(var(--spacing)*0)}.inset-8{inset:calc(var(--spacing)*8)}.inset-\\[3px\\]{inset:3px}.top-0{top:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.right-6{right:calc(var(--spacing)*6)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-6{bottom:calc(var(--spacing)*6)}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-6{margin-top:calc(var(--spacing)*6)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-0\\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-4{margin-left:calc(var(--spacing)*4)}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2\\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-14{height:calc(var(--spacing)*14)}.h-20{height:calc(var(--spacing)*20)}.h-32{height:calc(var(--spacing)*32)}.h-64{height:calc(var(--spacing)*64)}.h-96{height:calc(var(--spacing)*96)}.h-\\[500px\\]{height:500px}.h-full{height:100%}.max-h-32{max-height:calc(var(--spacing)*32)}.max-h-40{max-height:calc(var(--spacing)*40)}.max-h-64{max-height:calc(var(--spacing)*64)}.max-h-\\[90vh\\]{max-height:90vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-screen{min-height:100vh}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-20{width:calc(var(--spacing)*20)}.w-64{width:calc(var(--spacing)*64)}.w-96{width:calc(var(--spacing)*96)}.w-\\[320px\\]{width:320px}.w-\\[360px\\]{width:360px}.w-\\[640px\\]{width:640px}.w-\\[960px\\]{width:960px}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[80\\%\\]{max-width:80%}.max-w-full{max-width:100%}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\\[60px\\]{min-width:60px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-\\[135deg\\]{rotate:135deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-br-md{border-bottom-right-radius:var(--radius-md)}.rounded-bl-md{border-bottom-left-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-blue-200{border-color:var(--color-blue-200)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-200\\/80{border-color:#e5e7ebcc}@supports (color:color-mix(in lab,red,red)){.border-gray-200\\/80{border-color:color-mix(in oklab,var(--color-gray-200)80%,transparent)}}.border-gray-700{border-color:var(--color-gray-700)}.border-gray-700\\/50{border-color:#36415380}@supports (color:color-mix(in lab,red,red)){.border-gray-700\\/50{border-color:color-mix(in oklab,var(--color-gray-700)50%,transparent)}}.border-gray-800{border-color:var(--color-gray-800)}.border-gray-800\\/50{border-color:#1e293980}@supports (color:color-mix(in lab,red,red)){.border-gray-800\\/50{border-color:color-mix(in oklab,var(--color-gray-800)50%,transparent)}}.border-gray-900{border-color:var(--color-gray-900)}.border-purple-200{border-color:var(--color-purple-200)}.border-red-100{border-color:var(--color-red-100)}.border-red-900\\/30{border-color:#82181a4d}@supports (color:color-mix(in lab,red,red)){.border-red-900\\/30{border-color:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.border-red-900\\/50{border-color:#82181a80}@supports (color:color-mix(in lab,red,red)){.border-red-900\\/50{border-color:color-mix(in oklab,var(--color-red-900)50%,transparent)}}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-yellow-200{border-color:var(--color-yellow-200)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-black\\/60{background-color:#0009}@supports (color:color-mix(in lab,red,red)){.bg-black\\/60{background-color:color-mix(in oklab,var(--color-black)60%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-50\\/30{background-color:#f9fafb4d}@supports (color:color-mix(in lab,red,red)){.bg-gray-50\\/30{background-color:color-mix(in oklab,var(--color-gray-50)30%,transparent)}}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-100\\/80{background-color:#f3f4f6cc}@supports (color:color-mix(in lab,red,red)){.bg-gray-100\\/80{background-color:color-mix(in oklab,var(--color-gray-100)80%,transparent)}}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-700{background-color:var(--color-gray-700)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-gray-800\\/50{background-color:#1e293980}@supports (color:color-mix(in lab,red,red)){.bg-gray-800\\/50{background-color:color-mix(in oklab,var(--color-gray-800)50%,transparent)}}.bg-gray-800\\/80{background-color:#1e2939cc}@supports (color:color-mix(in lab,red,red)){.bg-gray-800\\/80{background-color:color-mix(in oklab,var(--color-gray-800)80%,transparent)}}.bg-gray-900{background-color:var(--color-gray-900)}.bg-gray-900\\/30{background-color:#1018284d}@supports (color:color-mix(in lab,red,red)){.bg-gray-900\\/30{background-color:color-mix(in oklab,var(--color-gray-900)30%,transparent)}}.bg-gray-900\\/90{background-color:#101828e6}@supports (color:color-mix(in lab,red,red)){.bg-gray-900\\/90{background-color:color-mix(in oklab,var(--color-gray-900)90%,transparent)}}.bg-gray-950{background-color:var(--color-gray-950)}.bg-gray-950\\/80{background-color:#030712cc}@supports (color:color-mix(in lab,red,red)){.bg-gray-950\\/80{background-color:color-mix(in oklab,var(--color-gray-950)80%,transparent)}}.bg-gray-950\\/95{background-color:#030712f2}@supports (color:color-mix(in lab,red,red)){.bg-gray-950\\/95{background-color:color-mix(in oklab,var(--color-gray-950)95%,transparent)}}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-indigo-100{background-color:var(--color-indigo-100)}.bg-indigo-300{background-color:var(--color-indigo-300)}.bg-indigo-400{background-color:var(--color-indigo-400)}.bg-indigo-500{background-color:var(--color-indigo-500)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-indigo-900{background-color:var(--color-indigo-900)}.bg-indigo-900\\/30{background-color:#312c854d}@supports (color:color-mix(in lab,red,red)){.bg-indigo-900\\/30{background-color:color-mix(in oklab,var(--color-indigo-900)30%,transparent)}}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-300{background-color:var(--color-purple-300)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-900{background-color:var(--color-purple-900)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\\/10{background-color:color-mix(in oklab,var(--color-red-500)10%,transparent)}}.bg-red-950\\/30{background-color:#4608094d}@supports (color:color-mix(in lab,red,red)){.bg-red-950\\/30{background-color:color-mix(in oklab,var(--color-red-950)30%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-white\\/80{background-color:#fffc}@supports (color:color-mix(in lab,red,red)){.bg-white\\/80{background-color:color-mix(in oklab,var(--color-white)80%,transparent)}}.bg-white\\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-white\\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.bg-white\\/95{background-color:#fffffff2}@supports (color:color-mix(in lab,red,red)){.bg-white\\/95{background-color:color-mix(in oklab,var(--color-white)95%,transparent)}}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-black\\/60{--tw-gradient-from:#0009}@supports (color:color-mix(in lab,red,red)){.from-black\\/60{--tw-gradient-from:color-mix(in oklab,var(--color-black)60%,transparent)}}.from-black\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-50{--tw-gradient-from:var(--color-blue-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-500{--tw-gradient-from:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-50{--tw-gradient-from:var(--color-gray-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-100{--tw-gradient-from:var(--color-gray-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-800{--tw-gradient-from:var(--color-gray-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-900{--tw-gradient-from:var(--color-gray-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-indigo-50{--tw-gradient-from:var(--color-indigo-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-indigo-400{--tw-gradient-from:var(--color-indigo-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-indigo-500{--tw-gradient-from:var(--color-indigo-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-indigo-900\\/20{--tw-gradient-from:#312c8533}@supports (color:color-mix(in lab,red,red)){.from-indigo-900\\/20{--tw-gradient-from:color-mix(in oklab,var(--color-indigo-900)20%,transparent)}}.from-indigo-900\\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-white\\/60{--tw-gradient-from:#fff9}@supports (color:color-mix(in lab,red,red)){.from-white\\/60{--tw-gradient-from:color-mix(in oklab,var(--color-white)60%,transparent)}}.from-white\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-indigo-50{--tw-gradient-via:var(--color-indigo-50);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-purple-400{--tw-gradient-via:var(--color-purple-400);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-purple-500{--tw-gradient-via:var(--color-purple-500);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-black{--tw-gradient-to:var(--color-black);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-gray-50{--tw-gradient-to:var(--color-gray-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-gray-950{--tw-gradient-to:var(--color-gray-950);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-400{--tw-gradient-to:var(--color-pink-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500{--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-50{--tw-gradient-to:var(--color-purple-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-400{--tw-gradient-to:var(--color-purple-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-500{--tw-gradient-to:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-900\\/20{--tw-gradient-to:#59168b33}@supports (color:color-mix(in lab,red,red)){.to-purple-900\\/20{--tw-gradient-to:color-mix(in oklab,var(--color-purple-900)20%,transparent)}}.to-purple-900\\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-white{--tw-gradient-to:var(--color-white);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-3\\.5{padding-inline:calc(var(--spacing)*3.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-12{padding-block:calc(var(--spacing)*12)}.pt-0{padding-top:calc(var(--spacing)*0)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[9px\\]{font-size:9px}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-blue-600{color:var(--color-blue-600)}.text-blue-800{color:var(--color-blue-800)}.text-emerald-600{color:var(--color-emerald-600)}.text-gray-100{color:var(--color-gray-100)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-600{color:var(--color-green-600)}.text-green-800{color:var(--color-green-800)}.text-indigo-400{color:var(--color-indigo-400)}.text-indigo-500{color:var(--color-indigo-500)}.text-indigo-600{color:var(--color-indigo-600)}.text-purple-600{color:var(--color-purple-600)}.text-purple-800{color:var(--color-purple-800)}.text-red-200{color:var(--color-red-200)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-red-900{color:var(--color-red-900)}.text-white{color:var(--color-white)}.text-yellow-800{color:var(--color-yellow-800)}.uppercase{text-transform:uppercase}.underline-offset-4{text-underline-offset:4px}.opacity-20{opacity:.2}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_8px_30px_rgb\\(0\\,0\\,0\\,0\\.3\\)\\]{--tw-shadow:0 8px 30px var(--tw-shadow-color,#0000004d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_8px_30px_rgb\\(0\\,0\\,0\\,0\\.12\\)\\]{--tw-shadow:0 8px 30px var(--tw-shadow-color,#0000001f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-gray-900{--tw-ring-color:var(--color-gray-900)}.ring-white{--tw-ring-color:var(--color-white)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur-3xl{--tw-blur:blur(var(--blur-3xl));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}@media(hover:hover){.group-hover\\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.placeholder\\:text-gray-400::-moz-placeholder{color:var(--color-gray-400)}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}.placeholder\\:text-gray-500::-moz-placeholder{color:var(--color-gray-500)}.placeholder\\:text-gray-500::placeholder{color:var(--color-gray-500)}.focus-within\\:bg-white:focus-within{background-color:var(--color-white)}@media(hover:hover){.hover\\:-translate-y-0\\.5:hover{--tw-translate-y:calc(var(--spacing)*-.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:border-gray-600:hover{border-color:var(--color-gray-600)}.hover\\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\\:bg-gray-800:hover{background-color:var(--color-gray-800)}.hover\\:bg-green-200:hover{background-color:var(--color-green-200)}.hover\\:bg-indigo-600:hover{background-color:var(--color-indigo-600)}.hover\\:bg-indigo-700:hover{background-color:var(--color-indigo-700)}.hover\\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\\:text-blue-800:hover{color:var(--color-blue-800)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-90:hover{opacity:.9}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-\\[0_8px_30px_rgb\\(0\\,0\\,0\\,0\\.4\\)\\]:hover{--tw-shadow:0 8px 30px var(--tw-shadow-color,#0006);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:shadow-\\[0_8px_30px_rgb\\(0\\,0\\,0\\,0\\.16\\)\\]:hover{--tw-shadow:0 8px 30px var(--tw-shadow-color,#00000029);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:shadow-indigo-500\\/25:hover{--tw-shadow-color:#625fff40}@supports (color:color-mix(in lab,red,red)){.hover\\:shadow-indigo-500\\/25:hover{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-indigo-500)25%,transparent)var(--tw-shadow-alpha),transparent)}}}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:scale-\\[0\\.98\\]:active{scale:.98}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\\:text-left{text-align:left}}@media(min-width:48rem){.md\\:inset-16{inset:calc(var(--spacing)*16)}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:64rem){.lg\\:inset-20{inset:calc(var(--spacing)*20)}}@media(prefers-color-scheme:dark){.dark\\:bg-emerald-500\\/20{background-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-emerald-500\\/20{background-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.dark\\:text-emerald-400{color:var(--color-emerald-400)}}}.aria-assistant-container{--aria-background:0 0% 100%;--aria-foreground:222 47% 11%;--aria-card:0 0% 100%;--aria-card-foreground:222 47% 11%;--aria-popover:0 0% 100%;--aria-popover-foreground:222 47% 11%;--aria-primary:221 83% 53%;--aria-primary-foreground:0 0% 100%;--aria-secondary:210 40% 96%;--aria-secondary-foreground:215 16% 47%;--aria-muted:210 40% 96%;--aria-muted-foreground:215 16% 47%;--aria-accent:210 40% 96%;--aria-accent-foreground:222 47% 11%;--aria-destructive:0 84% 60%;--aria-destructive-foreground:0 0% 100%;--aria-success:142 72% 29%;--aria-success-foreground:0 0% 100%;--aria-border:214 32% 91%;--aria-input:214 32% 91%;--aria-ring:221 83% 53%;--aria-radius:.5rem;--aria-gradient-from:221 83% 53%;--aria-gradient-to:221 83% 53%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;isolation:isolate;color:hsl(var(--aria-foreground));--background:var(--aria-background);--foreground:var(--aria-foreground);--card:var(--aria-card);--card-foreground:var(--aria-card-foreground);--primary:var(--aria-primary);--primary-foreground:var(--aria-primary-foreground);--secondary:var(--aria-secondary);--secondary-foreground:var(--aria-secondary-foreground);--muted:var(--aria-muted);--muted-foreground:var(--aria-muted-foreground);--accent:var(--aria-accent);--accent-foreground:var(--aria-accent-foreground);--destructive:var(--aria-destructive);--destructive-foreground:var(--aria-destructive-foreground);--success:var(--aria-success);--success-foreground:var(--aria-success-foreground);--border:var(--aria-border);--input:var(--aria-input);--ring:var(--aria-ring);--radius:var(--aria-radius);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;line-height:1.6}.aria-assistant-container *,.aria-assistant-container :before,.aria-assistant-container :after{box-sizing:border-box}.aria-assistant-container.aria-dark{--aria-background:222 47% 4%;--aria-foreground:210 40% 98%;--aria-card:222 47% 6%;--aria-card-foreground:210 40% 98%;--aria-popover:222 47% 6%;--aria-popover-foreground:210 40% 98%;--aria-primary:217 91% 60%;--aria-primary-foreground:0 0% 100%;--aria-secondary:217 33% 17%;--aria-secondary-foreground:210 40% 98%;--aria-muted:217 33% 17%;--aria-muted-foreground:215 20% 65%;--aria-accent:217 33% 17%;--aria-accent-foreground:210 40% 98%;--aria-destructive:0 84% 60%;--aria-destructive-foreground:0 0% 100%;--aria-success:142 71% 45%;--aria-success-foreground:0 0% 100%;--aria-border:217 33% 17%;--aria-input:217 33% 17%;--aria-ring:217 91% 60%;--aria-gradient-from:217 91% 60%;--aria-gradient-to:217 91% 60%;--background:var(--aria-background);--foreground:var(--aria-foreground);--card:var(--aria-card);--card-foreground:var(--aria-card-foreground);--primary:var(--aria-primary);--primary-foreground:var(--aria-primary-foreground);--secondary:var(--aria-secondary);--secondary-foreground:var(--aria-secondary-foreground);--muted:var(--aria-muted);--muted-foreground:var(--aria-muted-foreground);--accent:var(--aria-accent);--accent-foreground:var(--aria-accent-foreground);--destructive:var(--aria-destructive);--destructive-foreground:var(--aria-destructive-foreground);--success:var(--aria-success);--success-foreground:var(--aria-success-foreground);--border:var(--aria-border);--input:var(--aria-input);--ring:var(--aria-ring)}@keyframes aria-fade-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes aria-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes aria-slide-up{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes aria-pulse-ring{0%,to{box-shadow:0 0 hsl(var(--aria-primary)/.4)}50%{box-shadow:0 0 0 8px hsl(var(--aria-primary)/0)}}@keyframes aria-gradient-shift{0%,to{background-position:0%}50%{background-position:100%}}@keyframes aria-pulse-dot{0%{opacity:.5;transform:scale(.95)}50%{opacity:1;transform:scale(1.05)}to{opacity:.5;transform:scale(.95)}}@keyframes aria-loading-bounce{0%,to{opacity:.5;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}.aria-assistant-container .aria-animate-pulse-dot{animation:2s ease-in-out infinite aria-pulse-dot}.aria-assistant-container .aria-animate-fade-in{animation:.3s ease-out forwards aria-fade-in}.aria-assistant-container .aria-animate-scale-in{animation:.2s ease-out forwards aria-scale-in}.aria-assistant-container .aria-animate-slide-up{animation:.4s ease-out forwards aria-slide-up}.aria-assistant-container .aria-animate-pulse-ring{animation:2s ease-in-out infinite aria-pulse-ring}.aria-assistant-container .aria-glass{background:hsl(var(--aria-background)/.8);-webkit-backdrop-filter:blur(12px)saturate(180%)}.aria-assistant-container.aria-dark .aria-glass{background:hsl(var(--aria-background)/.75);-webkit-backdrop-filter:blur(16px)saturate(180%)}.aria-assistant-container .aria-gradient-text{background:linear-gradient(135deg,hsl(var(--aria-gradient-from)),hsl(var(--aria-gradient-to)));-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}.aria-assistant-container .aria-gradient-bg{background:linear-gradient(135deg,hsl(var(--aria-gradient-from)),hsl(var(--aria-gradient-to)))}.aria-assistant-container ::-webkit-scrollbar{width:6px;height:6px}.aria-assistant-container ::-webkit-scrollbar-track{background:0 0}.aria-assistant-container ::-webkit-scrollbar-thumb{background:hsl(var(--aria-border));border-radius:3px}.aria-assistant-container ::-webkit-scrollbar-thumb:hover{background:hsl(var(--aria-muted-foreground)/.5)}.aria-assistant-container .aria-focus-ring:focus-visible{box-shadow:0 0 0 2px hsl(var(--aria-ring)/.2);outline:none}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}';
|
|
6044
|
+
function ar() {
|
|
6045
|
+
return or;
|
|
6046
6046
|
}
|
|
6047
|
-
const gn =
|
|
6047
|
+
const gn = or, Wi = ({
|
|
6048
6048
|
label: i,
|
|
6049
6049
|
showAvatar: r = !1,
|
|
6050
6050
|
onTrigger: n,
|
|
@@ -6053,9 +6053,9 @@ const gn = ar, Ji = ({
|
|
|
6053
6053
|
}) => {
|
|
6054
6054
|
const { openAssistant: h, triggerSession: c, config: l, isOpen: m, theme: w } = tt(), f = i || l.triggerLabel || "Talk to Aria", u = w === "dark";
|
|
6055
6055
|
return m ? null : /* @__PURE__ */ y(
|
|
6056
|
-
|
|
6056
|
+
nr,
|
|
6057
6057
|
{
|
|
6058
|
-
styles:
|
|
6058
|
+
styles: ar(),
|
|
6059
6059
|
style: {
|
|
6060
6060
|
position: "fixed",
|
|
6061
6061
|
bottom: "1.5rem",
|
|
@@ -6065,8 +6065,8 @@ const gn = ar, Ji = ({
|
|
|
6065
6065
|
children: /* @__PURE__ */ y("div", { className: E("aria-assistant-container", u && "aria-dark"), children: /* @__PURE__ */ B(
|
|
6066
6066
|
"button",
|
|
6067
6067
|
{
|
|
6068
|
-
onClick: (
|
|
6069
|
-
|
|
6068
|
+
onClick: (R) => {
|
|
6069
|
+
R.preventDefault(), c({ userTrigger: !0 }), h("user"), n?.();
|
|
6070
6070
|
},
|
|
6071
6071
|
className: E(
|
|
6072
6072
|
"group relative flex items-center gap-3 px-3.5 py-2.5 rounded-xl",
|
|
@@ -6095,12 +6095,12 @@ const gn = ar, Ji = ({
|
|
|
6095
6095
|
/* @__PURE__ */ y(
|
|
6096
6096
|
"img",
|
|
6097
6097
|
{
|
|
6098
|
-
src:
|
|
6098
|
+
src: ir,
|
|
6099
6099
|
alt: f,
|
|
6100
6100
|
className: "w-full h-full object-cover",
|
|
6101
|
-
onError: (
|
|
6102
|
-
|
|
6103
|
-
const v =
|
|
6101
|
+
onError: (R) => {
|
|
6102
|
+
R.currentTarget.style.display = "none";
|
|
6103
|
+
const v = R.currentTarget.nextElementSibling;
|
|
6104
6104
|
v && (v.style.display = "flex");
|
|
6105
6105
|
}
|
|
6106
6106
|
}
|
|
@@ -6109,7 +6109,7 @@ const gn = ar, Ji = ({
|
|
|
6109
6109
|
"div",
|
|
6110
6110
|
{
|
|
6111
6111
|
className: "hidden w-full h-full items-center justify-center aria-gradient-bg text-white",
|
|
6112
|
-
children: /* @__PURE__ */ y(
|
|
6112
|
+
children: /* @__PURE__ */ y(mt, { className: "w-4 h-4" })
|
|
6113
6113
|
}
|
|
6114
6114
|
),
|
|
6115
6115
|
/* @__PURE__ */ y("span", { className: E(
|
|
@@ -6121,7 +6121,7 @@ const gn = ar, Ji = ({
|
|
|
6121
6121
|
"relative w-9 h-9 rounded-lg flex items-center justify-center shrink-0",
|
|
6122
6122
|
"aria-gradient-bg text-white shadow-sm",
|
|
6123
6123
|
"transition-transform duration-200 group-hover:scale-105"
|
|
6124
|
-
), children: /* @__PURE__ */ y(
|
|
6124
|
+
), children: /* @__PURE__ */ y(mt, { className: "w-4 h-4" }) }),
|
|
6125
6125
|
/* @__PURE__ */ B("div", { className: "relative flex flex-col items-start min-w-0 text-left", children: [
|
|
6126
6126
|
/* @__PURE__ */ y("span", { className: E(
|
|
6127
6127
|
"font-bold text-[13px] tracking-tight leading-none",
|
|
@@ -6137,15 +6137,15 @@ const gn = ar, Ji = ({
|
|
|
6137
6137
|
) })
|
|
6138
6138
|
}
|
|
6139
6139
|
);
|
|
6140
|
-
},
|
|
6140
|
+
}, Ki = ({
|
|
6141
6141
|
showTrigger: i = !0,
|
|
6142
6142
|
showAvatar: r = !0,
|
|
6143
6143
|
triggerLabel: n
|
|
6144
6144
|
}) => {
|
|
6145
6145
|
const { isOpen: o, closeAssistant: d } = tt();
|
|
6146
|
-
return /* @__PURE__ */ B(
|
|
6147
|
-
i && /* @__PURE__ */ y(
|
|
6148
|
-
o && /* @__PURE__ */ B(
|
|
6146
|
+
return /* @__PURE__ */ B(ft, { children: [
|
|
6147
|
+
i && /* @__PURE__ */ y(Wi, { showAvatar: r, label: n }),
|
|
6148
|
+
o && /* @__PURE__ */ B(ft, { children: [
|
|
6149
6149
|
/* @__PURE__ */ y(
|
|
6150
6150
|
"div",
|
|
6151
6151
|
{
|
|
@@ -6162,9 +6162,9 @@ const gn = ar, Ji = ({
|
|
|
6162
6162
|
}
|
|
6163
6163
|
),
|
|
6164
6164
|
/* @__PURE__ */ y(
|
|
6165
|
-
|
|
6165
|
+
nr,
|
|
6166
6166
|
{
|
|
6167
|
-
styles:
|
|
6167
|
+
styles: ar(),
|
|
6168
6168
|
style: {
|
|
6169
6169
|
position: "fixed",
|
|
6170
6170
|
zIndex: 9999,
|
|
@@ -6172,340 +6172,280 @@ const gn = ar, Ji = ({
|
|
|
6172
6172
|
inset: 0,
|
|
6173
6173
|
pointerEvents: "none"
|
|
6174
6174
|
},
|
|
6175
|
-
children: /* @__PURE__ */ y("div", { style: { pointerEvents: "auto" }, children: /* @__PURE__ */ y(
|
|
6175
|
+
children: /* @__PURE__ */ y("div", { style: { pointerEvents: "auto" }, children: /* @__PURE__ */ y(zi, { onClose: d }) })
|
|
6176
6176
|
}
|
|
6177
6177
|
)
|
|
6178
6178
|
] })
|
|
6179
6179
|
] });
|
|
6180
6180
|
};
|
|
6181
|
-
function
|
|
6182
|
-
return !i || typeof i != "string" ? !1 : i.split(".").length === 3;
|
|
6183
|
-
}
|
|
6184
|
-
function ct(i) {
|
|
6185
|
-
if (!lr(i))
|
|
6186
|
-
return null;
|
|
6187
|
-
try {
|
|
6188
|
-
const o = i.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), d = o.padEnd(o.length + (4 - o.length % 4) % 4, "="), h = atob(d);
|
|
6189
|
-
return JSON.parse(h);
|
|
6190
|
-
} catch (r) {
|
|
6191
|
-
return console.error("Failed to decode JWT:", r), null;
|
|
6192
|
-
}
|
|
6193
|
-
}
|
|
6194
|
-
function yt(i) {
|
|
6195
|
-
const r = ct(i);
|
|
6196
|
-
if (!r)
|
|
6197
|
-
return null;
|
|
6198
|
-
const n = [
|
|
6199
|
-
"session_id",
|
|
6200
|
-
"sessionId",
|
|
6201
|
-
"sid",
|
|
6202
|
-
"jti",
|
|
6203
|
-
// JWT ID
|
|
6204
|
-
"sub"
|
|
6205
|
-
// Subject (sometimes used for session)
|
|
6206
|
-
];
|
|
6207
|
-
for (const o of n)
|
|
6208
|
-
if (o in r && typeof r[o] == "string")
|
|
6209
|
-
return r[o];
|
|
6210
|
-
return null;
|
|
6211
|
-
}
|
|
6212
|
-
function fn(i) {
|
|
6213
|
-
const r = ct(i);
|
|
6214
|
-
if (!r)
|
|
6215
|
-
return {
|
|
6216
|
-
sessionId: null,
|
|
6217
|
-
payload: null,
|
|
6218
|
-
exp: null,
|
|
6219
|
-
iat: null
|
|
6220
|
-
};
|
|
6221
|
-
const n = yt(i), o = typeof r.exp == "number" ? r.exp : null, d = typeof r.iat == "number" ? r.iat : null;
|
|
6222
|
-
return {
|
|
6223
|
-
sessionId: n,
|
|
6224
|
-
payload: r,
|
|
6225
|
-
exp: o,
|
|
6226
|
-
iat: d
|
|
6227
|
-
};
|
|
6228
|
-
}
|
|
6229
|
-
function mn(i) {
|
|
6230
|
-
const r = ct(i);
|
|
6231
|
-
if (!r || typeof r.exp != "number")
|
|
6232
|
-
return !0;
|
|
6233
|
-
const n = Math.floor(Date.now() / 1e3);
|
|
6234
|
-
return r.exp < n;
|
|
6235
|
-
}
|
|
6236
|
-
function qi(i) {
|
|
6181
|
+
function Ji(i) {
|
|
6237
6182
|
return typeof i == "object" && i !== null && "status" in i && (i.status === "success" || i.status === "error") && !("type" in i);
|
|
6238
6183
|
}
|
|
6239
|
-
function
|
|
6184
|
+
function Qi(i) {
|
|
6240
6185
|
return typeof i == "object" && i !== null && "type" in i && i.type === "message_history_ack" && "status" in i && i.status === "ok";
|
|
6241
6186
|
}
|
|
6242
|
-
function
|
|
6187
|
+
function qi(i) {
|
|
6243
6188
|
return typeof i == "object" && i !== null && "type" in i && i.type === "message_stream_ack" && "status" in i && i.status === "ok";
|
|
6244
6189
|
}
|
|
6245
|
-
function
|
|
6190
|
+
function $i(i) {
|
|
6246
6191
|
return typeof i == "object" && i !== null && "type" in i && i.type === "session_end_ack" && "status" in i && i.status === "ok";
|
|
6247
6192
|
}
|
|
6248
|
-
function
|
|
6193
|
+
function Xi(i) {
|
|
6249
6194
|
return typeof i == "object" && i !== null && "type" in i && i.type === "session_end_error" && "status" in i && i.status === "error";
|
|
6250
6195
|
}
|
|
6251
|
-
function
|
|
6196
|
+
function Yi(i) {
|
|
6252
6197
|
return typeof i == "object" && i !== null && "type" in i && i.type === "trigger_event";
|
|
6253
6198
|
}
|
|
6254
|
-
function
|
|
6199
|
+
function Zi(i) {
|
|
6255
6200
|
return typeof i == "object" && i !== null && "status" in i && i.status === "ok" && "message" in i && !("type" in i);
|
|
6256
6201
|
}
|
|
6257
|
-
function
|
|
6202
|
+
function en(i) {
|
|
6258
6203
|
return typeof i == "object" && i !== null && "status" in i && i.status === "error" && "error" in i && i.error === "MISSING_FIELDS";
|
|
6259
6204
|
}
|
|
6260
|
-
const
|
|
6261
|
-
const [n, o] = he(!1), [d, h] = he(!1), [c, l] = he(!1), [m, w] = he([]), [f, u] = he(""), [
|
|
6205
|
+
const fn = ({ config: i, children: r }) => {
|
|
6206
|
+
const [n, o] = he(!1), [d, h] = he(!1), [c, l] = he(!1), [m, w] = he([]), [f, u] = he(""), [R, v] = he(!1), [A, C] = he(!1), [D, _] = he(null), [V, j] = he("user"), [W, L] = he("bottom-right"), [q, ae] = he({
|
|
6262
6207
|
session_id: null,
|
|
6263
6208
|
token: null,
|
|
6264
6209
|
expires_at: null,
|
|
6265
6210
|
isSessionReady: !1,
|
|
6266
6211
|
lastError: null
|
|
6267
|
-
}),
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
}, [
|
|
6271
|
-
|
|
6212
|
+
}), O = i.theme || "light", G = ve(null), H = ve(null), ye = ve(null), Se = ve(null), ge = ve([]), ke = ve(!1), ie = ve(null), se = ve(i.userId);
|
|
6213
|
+
Ee(() => {
|
|
6214
|
+
ie.current = q.session_id;
|
|
6215
|
+
}, [q.session_id]), Ee(() => {
|
|
6216
|
+
se.current = i.userId;
|
|
6272
6217
|
}, [i.userId]);
|
|
6273
|
-
const fe =
|
|
6274
|
-
|
|
6275
|
-
}, []), N =
|
|
6218
|
+
const fe = ce((k) => {
|
|
6219
|
+
ye.current = k;
|
|
6220
|
+
}, []), N = ce((k, T = !1) => {
|
|
6276
6221
|
if (!H.current || H.current.readyState !== WebSocket.OPEN)
|
|
6277
6222
|
return;
|
|
6278
|
-
const
|
|
6279
|
-
if (console.log("[Aria SDK] sendMessageHistory called - sessionId:",
|
|
6223
|
+
const M = ie.current, I = se.current;
|
|
6224
|
+
if (console.log("[Aria SDK] sendMessageHistory called - sessionId:", M, "userId:", I, "messages:", k.length), !M) {
|
|
6280
6225
|
console.warn("[Aria SDK] Cannot send message history: session_id not available yet");
|
|
6281
6226
|
return;
|
|
6282
6227
|
}
|
|
6283
|
-
if (!
|
|
6228
|
+
if (!I) {
|
|
6284
6229
|
console.warn("[Aria SDK] Cannot send message history: userId not configured. Add userId to AriaSDKConfig to enable message tracking.");
|
|
6285
6230
|
return;
|
|
6286
6231
|
}
|
|
6287
|
-
if (!
|
|
6232
|
+
if (!T && JSON.stringify(k) === JSON.stringify(ge.current))
|
|
6288
6233
|
return;
|
|
6289
|
-
ge.current =
|
|
6290
|
-
const
|
|
6234
|
+
ge.current = k;
|
|
6235
|
+
const ze = {
|
|
6291
6236
|
type: "message_history",
|
|
6292
|
-
session_id:
|
|
6293
|
-
user_id:
|
|
6294
|
-
messages:
|
|
6237
|
+
session_id: M,
|
|
6238
|
+
user_id: I,
|
|
6239
|
+
messages: k
|
|
6295
6240
|
};
|
|
6296
6241
|
try {
|
|
6297
|
-
H.current.send(JSON.stringify(
|
|
6298
|
-
} catch (
|
|
6299
|
-
console.error("Failed to send message history:",
|
|
6242
|
+
H.current.send(JSON.stringify(ze)), console.log("Sent message history:", k.length, "messages to session:", M);
|
|
6243
|
+
} catch (ee) {
|
|
6244
|
+
console.error("Failed to send message history:", ee);
|
|
6300
6245
|
}
|
|
6301
|
-
}, []), Ge =
|
|
6246
|
+
}, []), Ge = ce((k, T) => {
|
|
6302
6247
|
if (!H.current || H.current.readyState !== WebSocket.OPEN)
|
|
6303
6248
|
return;
|
|
6304
|
-
const
|
|
6305
|
-
if (console.log("[Aria SDK] sendMessageStream called - sessionId:",
|
|
6249
|
+
const M = ie.current, I = se.current;
|
|
6250
|
+
if (console.log("[Aria SDK] sendMessageStream called - sessionId:", M, "userId:", I, "is_final:", T), !M) {
|
|
6306
6251
|
console.warn("[Aria SDK] Cannot send message stream: session_id not available yet");
|
|
6307
6252
|
return;
|
|
6308
6253
|
}
|
|
6309
|
-
if (!
|
|
6254
|
+
if (!I) {
|
|
6310
6255
|
console.warn("[Aria SDK] Cannot send message stream: userId not configured. Add userId to AriaSDKConfig to enable message tracking.");
|
|
6311
6256
|
return;
|
|
6312
6257
|
}
|
|
6313
|
-
const
|
|
6258
|
+
const ze = {
|
|
6314
6259
|
type: "message_stream",
|
|
6315
|
-
session_id:
|
|
6316
|
-
user_id:
|
|
6260
|
+
session_id: M,
|
|
6261
|
+
user_id: I,
|
|
6317
6262
|
message: {
|
|
6318
|
-
...
|
|
6319
|
-
is_final:
|
|
6263
|
+
...k,
|
|
6264
|
+
is_final: T
|
|
6320
6265
|
}
|
|
6321
6266
|
};
|
|
6322
6267
|
try {
|
|
6323
|
-
H.current.send(JSON.stringify(
|
|
6324
|
-
} catch (
|
|
6325
|
-
console.error("Failed to send message stream:",
|
|
6268
|
+
H.current.send(JSON.stringify(ze)), T && console.log("Sent final message stream:", k.role);
|
|
6269
|
+
} catch (ee) {
|
|
6270
|
+
console.error("Failed to send message stream:", ee);
|
|
6326
6271
|
}
|
|
6327
|
-
}, []), je =
|
|
6272
|
+
}, []), je = ce(async (k) => {
|
|
6328
6273
|
if (!G.current) {
|
|
6329
|
-
if (!
|
|
6330
|
-
console.error("Video element not available"),
|
|
6274
|
+
if (!ye.current) {
|
|
6275
|
+
console.error("Video element not available"), _("Video element not ready. Please try again."), l(!1);
|
|
6331
6276
|
return;
|
|
6332
6277
|
}
|
|
6333
|
-
l(!0),
|
|
6278
|
+
l(!0), _(null);
|
|
6334
6279
|
try {
|
|
6335
|
-
const { createClient:
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6280
|
+
const { createClient: T } = await import("./index-DC4s4pYo.js"), M = T(k);
|
|
6281
|
+
M.addListener(F.SESSION_READY, () => {
|
|
6282
|
+
const ee = M.getActiveSessionId();
|
|
6283
|
+
ee ? (ie.current = ee, ae((Oe) => ({
|
|
6284
|
+
...Oe,
|
|
6285
|
+
session_id: ee
|
|
6286
|
+
})), console.log("[Aria SDK] Session ready with ID from Anam client:", ee)) : console.warn("[Aria SDK] Session ready but no sessionId available from Anam client"), h(!0), l(!1), i.onSessionReady?.(), i.onConnectionStateChange?.(!0);
|
|
6287
|
+
}), M.addListener(F.CONNECTION_CLOSED, () => {
|
|
6339
6288
|
h(!1), i.onConnectionStateChange?.(!1);
|
|
6340
|
-
}),
|
|
6341
|
-
const
|
|
6289
|
+
}), M.addListener(F.MESSAGE_HISTORY_UPDATED, (ee) => {
|
|
6290
|
+
const Oe = ee.map((oe) => ({
|
|
6342
6291
|
role: oe.role,
|
|
6343
6292
|
content: oe.content,
|
|
6344
6293
|
timestamp: Date.now()
|
|
6345
6294
|
}));
|
|
6346
|
-
w(
|
|
6347
|
-
const De =
|
|
6295
|
+
w(Oe);
|
|
6296
|
+
const De = ee.map((oe) => ({
|
|
6348
6297
|
role: oe.role,
|
|
6349
6298
|
content: oe.content,
|
|
6350
6299
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
6351
6300
|
}));
|
|
6352
6301
|
N(De);
|
|
6353
|
-
}),
|
|
6354
|
-
|
|
6355
|
-
const
|
|
6356
|
-
role:
|
|
6357
|
-
content:
|
|
6302
|
+
}), M.addListener(F.MESSAGE_STREAM_EVENT_RECEIVED, (ee) => {
|
|
6303
|
+
ee.role === "persona" ? u((oe) => oe + ee.content) : ee.role === "user" && u("");
|
|
6304
|
+
const Oe = {
|
|
6305
|
+
role: ee.role,
|
|
6306
|
+
content: ee.content,
|
|
6358
6307
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
6359
|
-
}, De =
|
|
6360
|
-
Ge(
|
|
6361
|
-
}), G.current =
|
|
6362
|
-
const
|
|
6363
|
-
|
|
6364
|
-
} catch (
|
|
6365
|
-
const
|
|
6366
|
-
|
|
6308
|
+
}, De = ee.is_final ?? !1;
|
|
6309
|
+
Ge(Oe, De);
|
|
6310
|
+
}), G.current = M;
|
|
6311
|
+
const I = await navigator.mediaDevices.getUserMedia({ audio: !0 }), [ze] = await M.stream(I);
|
|
6312
|
+
ye.current && (ye.current.srcObject = ze);
|
|
6313
|
+
} catch (T) {
|
|
6314
|
+
const M = T instanceof Error ? T.message : "Failed to initialize Anam client";
|
|
6315
|
+
_(M), l(!1), i.onError?.(T instanceof Error ? T : new Error(M));
|
|
6367
6316
|
}
|
|
6368
6317
|
}
|
|
6369
|
-
}, [i, N, Ge]),
|
|
6370
|
-
if (
|
|
6371
|
-
if (console.log("Session response:",
|
|
6372
|
-
const
|
|
6373
|
-
if (!
|
|
6374
|
-
console.error("No session token found in response. Expected sessionToken or token field."), console.log("Session data received:",
|
|
6375
|
-
...
|
|
6318
|
+
}, [i, N, Ge]), K = ce((k) => {
|
|
6319
|
+
if (k.status === "success")
|
|
6320
|
+
if (console.log("Session response:", k.message), k.session_data) {
|
|
6321
|
+
const T = k.session_data.sessionToken || k.session_data.token;
|
|
6322
|
+
if (!T) {
|
|
6323
|
+
console.error("No session token found in response. Expected sessionToken or token field."), console.log("Session data received:", k.session_data), ae((M) => ({
|
|
6324
|
+
...M,
|
|
6376
6325
|
isSessionReady: !1,
|
|
6377
6326
|
lastError: "No session token found in response"
|
|
6378
|
-
})),
|
|
6327
|
+
})), _("No session token found in response"), i.onError?.(new Error("No session token found in response"));
|
|
6379
6328
|
return;
|
|
6380
6329
|
}
|
|
6381
|
-
console.log("Token extracted successfully from:",
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
const ve = ct(R);
|
|
6387
|
-
console.log("[Aria SDK] Token payload keys:", ve ? Object.keys(ve) : "null"), T = yt(R), T ? console.log("[Aria SDK] Extracted session_id from token:", T) : (console.warn("[Aria SDK] Token is JWT but no session_id found in standard claims"), console.log("[Aria SDK] Available claims:", ve), T = R, console.log("[Aria SDK] Using full token as session_id"));
|
|
6388
|
-
} else
|
|
6389
|
-
console.log("[Aria SDK] Token is opaque (not JWT), using token as session_id"), T = R;
|
|
6390
|
-
}
|
|
6391
|
-
re.current = T, se({
|
|
6392
|
-
session_id: T,
|
|
6393
|
-
token: R,
|
|
6394
|
-
expires_at: x.session_data.expires_at || null,
|
|
6330
|
+
console.log("[Aria SDK] Token extracted successfully from:", k.session_data.sessionToken ? "sessionToken" : "token"), ae({
|
|
6331
|
+
session_id: null,
|
|
6332
|
+
// Will be set when Anam client is ready
|
|
6333
|
+
token: T,
|
|
6334
|
+
expires_at: k.session_data.expires_at || null,
|
|
6395
6335
|
isSessionReady: !0,
|
|
6396
6336
|
lastError: null
|
|
6397
|
-
}), console.log("[Aria SDK] Session
|
|
6337
|
+
}), console.log("[Aria SDK] Session token stored, waiting for Anam client to provide session_id");
|
|
6398
6338
|
} else
|
|
6399
|
-
console.log("Session not triggered:",
|
|
6400
|
-
...
|
|
6339
|
+
console.log("Session not triggered:", k.message), ie.current = null, ae((T) => ({
|
|
6340
|
+
...T,
|
|
6401
6341
|
isSessionReady: !1,
|
|
6402
6342
|
lastError: null
|
|
6403
6343
|
}));
|
|
6404
6344
|
else {
|
|
6405
|
-
console.error("Session error:",
|
|
6406
|
-
const
|
|
6407
|
-
|
|
6408
|
-
...
|
|
6345
|
+
console.error("Session error:", k.message, k.error);
|
|
6346
|
+
const T = `${k.error}: ${k.message}`;
|
|
6347
|
+
ie.current = null, ae((M) => ({
|
|
6348
|
+
...M,
|
|
6409
6349
|
isSessionReady: !1,
|
|
6410
|
-
lastError:
|
|
6411
|
-
})),
|
|
6350
|
+
lastError: T
|
|
6351
|
+
})), _(T), i.onError?.(new Error(T));
|
|
6412
6352
|
}
|
|
6413
|
-
}, [i]), $ =
|
|
6353
|
+
}, [i]), $ = ce(() => {
|
|
6414
6354
|
if (!H.current || H.current.readyState !== WebSocket.OPEN)
|
|
6415
6355
|
return;
|
|
6416
|
-
const
|
|
6417
|
-
if (!
|
|
6356
|
+
const k = ie.current, T = se.current;
|
|
6357
|
+
if (!k) {
|
|
6418
6358
|
console.warn("[Aria SDK] Cannot send session end: session_id not available");
|
|
6419
6359
|
return;
|
|
6420
6360
|
}
|
|
6421
|
-
if (!
|
|
6361
|
+
if (!T) {
|
|
6422
6362
|
console.warn("[Aria SDK] Cannot send session end: userId not configured. Add userId to AriaSDKConfig to enable session tracking.");
|
|
6423
6363
|
return;
|
|
6424
6364
|
}
|
|
6425
|
-
const
|
|
6365
|
+
const M = {
|
|
6426
6366
|
type: "session_end",
|
|
6427
|
-
session_id:
|
|
6428
|
-
user_id:
|
|
6367
|
+
session_id: k,
|
|
6368
|
+
user_id: T
|
|
6429
6369
|
};
|
|
6430
6370
|
try {
|
|
6431
|
-
H.current.send(JSON.stringify(
|
|
6432
|
-
} catch (
|
|
6433
|
-
console.error("Failed to send session end:",
|
|
6371
|
+
H.current.send(JSON.stringify(M)), console.log("Sent session end event for session:", k);
|
|
6372
|
+
} catch (I) {
|
|
6373
|
+
console.error("Failed to send session end:", I);
|
|
6434
6374
|
}
|
|
6435
|
-
}, []), X =
|
|
6375
|
+
}, []), X = ce(() => {
|
|
6436
6376
|
if (H.current?.readyState === WebSocket.OPEN) {
|
|
6437
6377
|
console.log("WebSocket already connected");
|
|
6438
6378
|
return;
|
|
6439
6379
|
}
|
|
6440
6380
|
try {
|
|
6441
|
-
const
|
|
6442
|
-
H.current =
|
|
6443
|
-
if (console.log("WebSocket connected"), i.onConnectionStateChange?.(!0), i.autoTriggerOnMount && !
|
|
6444
|
-
|
|
6445
|
-
const
|
|
6446
|
-
|
|
6381
|
+
const k = new WebSocket(i.websocketUrl);
|
|
6382
|
+
H.current = k, k.onopen = () => {
|
|
6383
|
+
if (console.log("WebSocket connected"), i.onConnectionStateChange?.(!0), i.autoTriggerOnMount && !ke.current) {
|
|
6384
|
+
ke.current = !0;
|
|
6385
|
+
const T = JSON.stringify({ user_trigger: !1 });
|
|
6386
|
+
k.send(T), console.log("Auto-triggered session on mount (user_trigger=false)");
|
|
6447
6387
|
}
|
|
6448
|
-
},
|
|
6388
|
+
}, k.onmessage = (T) => {
|
|
6449
6389
|
try {
|
|
6450
|
-
const
|
|
6451
|
-
if (
|
|
6452
|
-
|
|
6390
|
+
const M = T.data, I = JSON.parse(M);
|
|
6391
|
+
if (Ji(I)) {
|
|
6392
|
+
K(I);
|
|
6453
6393
|
return;
|
|
6454
6394
|
}
|
|
6455
|
-
if (
|
|
6456
|
-
console.log(`Message history acknowledged: ${
|
|
6395
|
+
if (Qi(I)) {
|
|
6396
|
+
console.log(`Message history acknowledged: ${I.message_count} messages`), i.onMessageHistoryAck?.(I.message_count);
|
|
6457
6397
|
return;
|
|
6458
6398
|
}
|
|
6459
|
-
if (
|
|
6399
|
+
if (qi(I)) {
|
|
6460
6400
|
console.log("Message stream acknowledged"), i.onMessageStreamAck?.();
|
|
6461
6401
|
return;
|
|
6462
6402
|
}
|
|
6463
|
-
if (
|
|
6464
|
-
console.log(`Session end acknowledged: ${
|
|
6403
|
+
if ($i(I)) {
|
|
6404
|
+
console.log(`Session end acknowledged: ${I.message}. Saved: ${I.saved_count} messages`), i.onSessionEndAck?.(I.saved_count);
|
|
6465
6405
|
return;
|
|
6466
6406
|
}
|
|
6467
|
-
if (
|
|
6468
|
-
console.error(`Session end error: ${
|
|
6407
|
+
if (Xi(I)) {
|
|
6408
|
+
console.error(`Session end error: ${I.message}`), _(I.message), i.onSessionEndError?.(I.message, I.error), i.onError?.(new Error(`Session end failed: ${I.error} - ${I.message}`));
|
|
6469
6409
|
return;
|
|
6470
6410
|
}
|
|
6471
|
-
if (
|
|
6472
|
-
console.error(`Missing fields error: ${
|
|
6411
|
+
if (en(I)) {
|
|
6412
|
+
console.error(`Missing fields error: ${I.message}`), _(I.message), i.onError?.(new Error(I.message));
|
|
6473
6413
|
return;
|
|
6474
6414
|
}
|
|
6475
|
-
if (
|
|
6476
|
-
console.log("WebSocket trigger event received:",
|
|
6415
|
+
if (Yi(I)) {
|
|
6416
|
+
console.log("WebSocket trigger event received:", I.data), i.onWebSocketEvent?.(I), Se.current?.("websocket");
|
|
6477
6417
|
return;
|
|
6478
6418
|
}
|
|
6479
|
-
if (
|
|
6480
|
-
console.log(`Generic acknowledgment: ${
|
|
6419
|
+
if (Zi(I)) {
|
|
6420
|
+
console.log(`Generic acknowledgment: ${I.message}`);
|
|
6481
6421
|
return;
|
|
6482
6422
|
}
|
|
6483
|
-
if (typeof
|
|
6484
|
-
console.warn("Received legacy session_token format, converting to new format"),
|
|
6423
|
+
if (typeof I == "object" && I !== null && "type" in I && I.type === "session_token" && "sessionToken" in I && typeof I.sessionToken == "string") {
|
|
6424
|
+
console.warn("Received legacy session_token format, converting to new format"), K({
|
|
6485
6425
|
status: "success",
|
|
6486
6426
|
message: "Session created successfully (legacy format)",
|
|
6487
6427
|
session_data: {
|
|
6488
6428
|
session_id: "legacy",
|
|
6489
|
-
token:
|
|
6429
|
+
token: I.sessionToken,
|
|
6490
6430
|
expires_at: new Date(Date.now() + 36e5).toISOString()
|
|
6491
6431
|
},
|
|
6492
6432
|
time_taken: 0
|
|
6493
6433
|
});
|
|
6494
6434
|
return;
|
|
6495
6435
|
}
|
|
6496
|
-
console.warn("Received unknown message type:",
|
|
6497
|
-
} catch (
|
|
6498
|
-
if (
|
|
6499
|
-
console.error("Failed to parse WebSocket message as JSON:",
|
|
6436
|
+
console.warn("Received unknown message type:", I);
|
|
6437
|
+
} catch (M) {
|
|
6438
|
+
if (M instanceof SyntaxError)
|
|
6439
|
+
console.error("Failed to parse WebSocket message as JSON:", T.data), _("Received invalid JSON from server"), i.onError?.(new Error("Invalid JSON received from WebSocket"));
|
|
6500
6440
|
else {
|
|
6501
|
-
const
|
|
6502
|
-
console.error("Error handling WebSocket message:",
|
|
6441
|
+
const I = M instanceof Error ? M.message : "Unknown error";
|
|
6442
|
+
console.error("Error handling WebSocket message:", I), _(I), i.onError?.(M instanceof Error ? M : new Error(I));
|
|
6503
6443
|
}
|
|
6504
6444
|
}
|
|
6505
|
-
},
|
|
6506
|
-
console.error("WebSocket error:",
|
|
6507
|
-
},
|
|
6508
|
-
console.log("WebSocket disconnected"), i.onConnectionStateChange?.(!1),
|
|
6445
|
+
}, k.onerror = (T) => {
|
|
6446
|
+
console.error("WebSocket error:", T), _("WebSocket connection error"), i.onError?.(new Error("WebSocket connection failed"));
|
|
6447
|
+
}, k.onclose = () => {
|
|
6448
|
+
console.log("WebSocket disconnected"), i.onConnectionStateChange?.(!1), ae({
|
|
6509
6449
|
session_id: null,
|
|
6510
6450
|
token: null,
|
|
6511
6451
|
expires_at: null,
|
|
@@ -6513,95 +6453,90 @@ const wn = ({ config: i, children: r }) => {
|
|
|
6513
6453
|
lastError: null
|
|
6514
6454
|
});
|
|
6515
6455
|
};
|
|
6516
|
-
} catch (
|
|
6517
|
-
const
|
|
6518
|
-
|
|
6456
|
+
} catch (k) {
|
|
6457
|
+
const T = k instanceof Error ? k.message : "Failed to connect WebSocket";
|
|
6458
|
+
_(T), i.onError?.(k instanceof Error ? k : new Error(T));
|
|
6519
6459
|
}
|
|
6520
|
-
}, [i,
|
|
6460
|
+
}, [i, K]), ne = ce((k) => {
|
|
6521
6461
|
if (!H.current || H.current.readyState !== WebSocket.OPEN) {
|
|
6522
|
-
console.error("WebSocket not connected"),
|
|
6462
|
+
console.error("WebSocket not connected"), _("WebSocket not connected. Please connect first.");
|
|
6523
6463
|
return;
|
|
6524
6464
|
}
|
|
6525
|
-
const
|
|
6465
|
+
const T = k?.userTrigger ?? !0;
|
|
6526
6466
|
try {
|
|
6527
|
-
const
|
|
6528
|
-
H.current.send(
|
|
6529
|
-
} catch (
|
|
6530
|
-
const
|
|
6531
|
-
|
|
6467
|
+
const M = JSON.stringify({ user_trigger: T });
|
|
6468
|
+
H.current.send(M), console.log(`Sent user_trigger message: user_trigger=${T}`), T && i.userId && i.onManualTrigger?.(i.userId);
|
|
6469
|
+
} catch (M) {
|
|
6470
|
+
const I = M instanceof Error ? M.message : "Failed to trigger session";
|
|
6471
|
+
_(I), i.onError?.(M instanceof Error ? M : new Error(I));
|
|
6532
6472
|
}
|
|
6533
|
-
}, [i]), me =
|
|
6473
|
+
}, [i]), me = ce(async () => {
|
|
6534
6474
|
(!H.current || H.current.readyState !== WebSocket.OPEN) && X();
|
|
6535
|
-
}, [X]),
|
|
6475
|
+
}, [X]), Ce = ce(async () => {
|
|
6536
6476
|
if (G.current)
|
|
6537
6477
|
try {
|
|
6538
6478
|
ge.current.length > 0 && (console.log("Sending final message history before session end..."), N(ge.current, !0)), $(), await G.current.stopStreaming(), G.current = null, h(!1), w([]), u(""), ge.current = [], i.onConnectionStateChange?.(!1);
|
|
6539
|
-
} catch (
|
|
6540
|
-
const
|
|
6541
|
-
|
|
6479
|
+
} catch (k) {
|
|
6480
|
+
const T = k instanceof Error ? k.message : "Failed to stop session";
|
|
6481
|
+
_(T), i.onError?.(k instanceof Error ? k : new Error(T));
|
|
6542
6482
|
}
|
|
6543
|
-
}, [i, $, N]),
|
|
6544
|
-
j(
|
|
6483
|
+
}, [i, $, N]), J = ce((k = "user") => {
|
|
6484
|
+
j(k), L(k === "websocket" ? "center" : "bottom-right"), o(!0), l(!0), _(null), G.current || me();
|
|
6545
6485
|
}, [me]);
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
}, [
|
|
6549
|
-
n &&
|
|
6550
|
-
}, [n,
|
|
6551
|
-
const we =
|
|
6552
|
-
o(!1),
|
|
6553
|
-
}, [
|
|
6554
|
-
v((
|
|
6555
|
-
}, []),
|
|
6486
|
+
Ee(() => {
|
|
6487
|
+
Se.current = J;
|
|
6488
|
+
}, [J]), Ee(() => {
|
|
6489
|
+
n && q.isSessionReady && q.token && ye.current && !G.current && je(q.token);
|
|
6490
|
+
}, [n, q.isSessionReady, q.token, je]);
|
|
6491
|
+
const we = ce(() => {
|
|
6492
|
+
o(!1), Ce();
|
|
6493
|
+
}, [Ce]), Ae = ce(() => {
|
|
6494
|
+
v((k) => !k);
|
|
6495
|
+
}, []), Ie = ce(async (k) => {
|
|
6556
6496
|
if (!G.current || !d)
|
|
6557
6497
|
throw new Error("Not connected to Aria");
|
|
6558
6498
|
try {
|
|
6559
|
-
await G.current.talk(
|
|
6560
|
-
} catch (
|
|
6561
|
-
const
|
|
6562
|
-
throw
|
|
6499
|
+
await G.current.talk(k);
|
|
6500
|
+
} catch (T) {
|
|
6501
|
+
const M = T instanceof Error ? T.message : "Failed to send message";
|
|
6502
|
+
throw _(M), i.onError?.(T instanceof Error ? T : new Error(M)), T;
|
|
6563
6503
|
}
|
|
6564
|
-
}, [d, i]), He =
|
|
6504
|
+
}, [d, i]), He = ce(() => {
|
|
6565
6505
|
if (!G.current) return;
|
|
6566
|
-
G.current.getInputAudioState().isMuted ? (G.current.unmuteInputAudio(),
|
|
6567
|
-
}, []),
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
const R = yt(x);
|
|
6571
|
-
return !R && K.token === x ? K.session_id : R;
|
|
6572
|
-
}, [K]);
|
|
6573
|
-
xe(() => (X(), () => {
|
|
6574
|
-
re.current && ie.current && (ge.current.length > 0 && N(ge.current, !0), $()), G.current && G.current.stopStreaming(), H.current && H.current.close();
|
|
6506
|
+
G.current.getInputAudioState().isMuted ? (G.current.unmuteInputAudio(), C(!1)) : (G.current.muteInputAudio(), C(!0));
|
|
6507
|
+
}, []), Re = ce(() => q.session_id, [q.session_id]);
|
|
6508
|
+
Ee(() => (X(), () => {
|
|
6509
|
+
ie.current && se.current && (ge.current.length > 0 && N(ge.current, !0), $()), G.current && G.current.stopStreaming(), H.current && H.current.close();
|
|
6575
6510
|
}), [X, $, N]);
|
|
6576
|
-
const
|
|
6511
|
+
const Te = {
|
|
6577
6512
|
isOpen: n,
|
|
6578
6513
|
isConnected: d,
|
|
6579
6514
|
isLoading: c,
|
|
6580
6515
|
chatMessages: m,
|
|
6581
6516
|
liveTranscript: f,
|
|
6582
|
-
isChatVisible:
|
|
6517
|
+
isChatVisible: R,
|
|
6583
6518
|
isMuted: A,
|
|
6584
|
-
error:
|
|
6585
|
-
sessionState:
|
|
6586
|
-
openAssistant:
|
|
6519
|
+
error: D,
|
|
6520
|
+
sessionState: q,
|
|
6521
|
+
openAssistant: J,
|
|
6587
6522
|
closeAssistant: we,
|
|
6588
|
-
toggleChat:
|
|
6589
|
-
sendMessage:
|
|
6523
|
+
toggleChat: Ae,
|
|
6524
|
+
sendMessage: Ie,
|
|
6590
6525
|
toggleMute: He,
|
|
6591
6526
|
startSession: me,
|
|
6592
|
-
stopSession:
|
|
6527
|
+
stopSession: Ce,
|
|
6593
6528
|
triggerSession: ne,
|
|
6594
6529
|
setVideoElement: fe,
|
|
6595
6530
|
displayMode: W,
|
|
6596
6531
|
triggerMode: V,
|
|
6597
|
-
theme:
|
|
6532
|
+
theme: O,
|
|
6598
6533
|
config: i,
|
|
6599
|
-
|
|
6534
|
+
getSessionId: Re
|
|
6600
6535
|
};
|
|
6601
|
-
return /* @__PURE__ */ B(
|
|
6536
|
+
return /* @__PURE__ */ B(Gt.Provider, { value: Te, children: [
|
|
6602
6537
|
r,
|
|
6603
6538
|
i.showAssistant !== !1 && /* @__PURE__ */ y(
|
|
6604
|
-
|
|
6539
|
+
Ki,
|
|
6605
6540
|
{
|
|
6606
6541
|
showTrigger: i.showFloatingButton !== !1,
|
|
6607
6542
|
showAvatar: !0,
|
|
@@ -6609,7 +6544,7 @@ const wn = ({ config: i, children: r }) => {
|
|
|
6609
6544
|
}
|
|
6610
6545
|
)
|
|
6611
6546
|
] });
|
|
6612
|
-
},
|
|
6547
|
+
}, mn = ({ open: i, onOpenChange: r, children: n }) => /* @__PURE__ */ y(ft, { children: i && /* @__PURE__ */ B("div", { className: "fixed inset-0 z-50 flex items-center justify-center aria-animate-fade-in", children: [
|
|
6613
6548
|
/* @__PURE__ */ y(
|
|
6614
6549
|
"div",
|
|
6615
6550
|
{
|
|
@@ -6618,7 +6553,7 @@ const wn = ({ config: i, children: r }) => {
|
|
|
6618
6553
|
}
|
|
6619
6554
|
),
|
|
6620
6555
|
n
|
|
6621
|
-
] }) }),
|
|
6556
|
+
] }) }), tn = xe.forwardRef(
|
|
6622
6557
|
({ className: i, children: r, ...n }, o) => /* @__PURE__ */ y(
|
|
6623
6558
|
"div",
|
|
6624
6559
|
{
|
|
@@ -6633,8 +6568,8 @@ const wn = ({ config: i, children: r }) => {
|
|
|
6633
6568
|
}
|
|
6634
6569
|
)
|
|
6635
6570
|
);
|
|
6636
|
-
|
|
6637
|
-
const
|
|
6571
|
+
tn.displayName = "DialogContent";
|
|
6572
|
+
const rn = ({
|
|
6638
6573
|
className: i,
|
|
6639
6574
|
...r
|
|
6640
6575
|
}) => /* @__PURE__ */ y(
|
|
@@ -6647,8 +6582,8 @@ const on = ({
|
|
|
6647
6582
|
...r
|
|
6648
6583
|
}
|
|
6649
6584
|
);
|
|
6650
|
-
|
|
6651
|
-
const
|
|
6585
|
+
rn.displayName = "DialogHeader";
|
|
6586
|
+
const nn = xe.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y(
|
|
6652
6587
|
"h2",
|
|
6653
6588
|
{
|
|
6654
6589
|
ref: n,
|
|
@@ -6659,8 +6594,8 @@ const an = Se.forwardRef(({ className: i, ...r }, n) => /* @__PURE__ */ y(
|
|
|
6659
6594
|
...r
|
|
6660
6595
|
}
|
|
6661
6596
|
));
|
|
6662
|
-
|
|
6663
|
-
const
|
|
6597
|
+
nn.displayName = "DialogTitle";
|
|
6598
|
+
const on = ({
|
|
6664
6599
|
className: i,
|
|
6665
6600
|
onClick: r,
|
|
6666
6601
|
...n
|
|
@@ -6678,53 +6613,108 @@ const sn = ({
|
|
|
6678
6613
|
onClick: r,
|
|
6679
6614
|
...n,
|
|
6680
6615
|
children: [
|
|
6681
|
-
/* @__PURE__ */ y(
|
|
6616
|
+
/* @__PURE__ */ y(Ut, { className: "h-4 w-4" }),
|
|
6682
6617
|
/* @__PURE__ */ y("span", { className: "sr-only", children: "Close" })
|
|
6683
6618
|
]
|
|
6684
6619
|
}
|
|
6685
6620
|
);
|
|
6686
|
-
|
|
6621
|
+
on.displayName = "DialogClose";
|
|
6622
|
+
function an(i) {
|
|
6623
|
+
return !i || typeof i != "string" ? !1 : i.split(".").length === 3;
|
|
6624
|
+
}
|
|
6625
|
+
function At(i) {
|
|
6626
|
+
if (!an(i))
|
|
6627
|
+
return null;
|
|
6628
|
+
try {
|
|
6629
|
+
const o = i.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), d = o.padEnd(o.length + (4 - o.length % 4) % 4, "="), h = atob(d);
|
|
6630
|
+
return JSON.parse(h);
|
|
6631
|
+
} catch (r) {
|
|
6632
|
+
return console.error("Failed to decode JWT:", r), null;
|
|
6633
|
+
}
|
|
6634
|
+
}
|
|
6635
|
+
function sn(i) {
|
|
6636
|
+
const r = At(i);
|
|
6637
|
+
if (!r)
|
|
6638
|
+
return null;
|
|
6639
|
+
const n = [
|
|
6640
|
+
"session_id",
|
|
6641
|
+
"sessionId",
|
|
6642
|
+
"sid",
|
|
6643
|
+
"jti",
|
|
6644
|
+
// JWT ID
|
|
6645
|
+
"sub"
|
|
6646
|
+
// Subject (sometimes used for session)
|
|
6647
|
+
];
|
|
6648
|
+
for (const o of n)
|
|
6649
|
+
if (o in r && typeof r[o] == "string")
|
|
6650
|
+
return r[o];
|
|
6651
|
+
return null;
|
|
6652
|
+
}
|
|
6653
|
+
function wn(i) {
|
|
6654
|
+
const r = At(i);
|
|
6655
|
+
if (!r)
|
|
6656
|
+
return {
|
|
6657
|
+
sessionId: null,
|
|
6658
|
+
payload: null,
|
|
6659
|
+
exp: null,
|
|
6660
|
+
iat: null
|
|
6661
|
+
};
|
|
6662
|
+
const n = sn(i), o = typeof r.exp == "number" ? r.exp : null, d = typeof r.iat == "number" ? r.iat : null;
|
|
6663
|
+
return {
|
|
6664
|
+
sessionId: n,
|
|
6665
|
+
payload: r,
|
|
6666
|
+
exp: o,
|
|
6667
|
+
iat: d
|
|
6668
|
+
};
|
|
6669
|
+
}
|
|
6670
|
+
function vn(i) {
|
|
6671
|
+
const r = At(i);
|
|
6672
|
+
if (!r || typeof r.exp != "number")
|
|
6673
|
+
return !0;
|
|
6674
|
+
const n = Math.floor(Date.now() / 1e3);
|
|
6675
|
+
return r.exp < n;
|
|
6676
|
+
}
|
|
6687
6677
|
export {
|
|
6688
6678
|
pn as A,
|
|
6689
6679
|
lt as B,
|
|
6690
|
-
|
|
6680
|
+
re as C,
|
|
6691
6681
|
ot as D,
|
|
6692
|
-
|
|
6693
|
-
|
|
6682
|
+
le as E,
|
|
6683
|
+
on as F,
|
|
6694
6684
|
E as G,
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6685
|
+
At as H,
|
|
6686
|
+
be as I,
|
|
6687
|
+
sn as J,
|
|
6688
|
+
an as K,
|
|
6689
|
+
wn as L,
|
|
6700
6690
|
at as M,
|
|
6701
|
-
|
|
6702
|
-
|
|
6691
|
+
vn as N,
|
|
6692
|
+
de as S,
|
|
6703
6693
|
Fe as a,
|
|
6704
6694
|
F as b,
|
|
6705
6695
|
Ve as c,
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6696
|
+
Tr as d,
|
|
6697
|
+
fn as e,
|
|
6698
|
+
Ki as f,
|
|
6699
|
+
Wi as g,
|
|
6700
|
+
Hi as h,
|
|
6701
|
+
zi as i,
|
|
6702
|
+
ji as j,
|
|
6703
|
+
nr as k,
|
|
6704
|
+
ar as l,
|
|
6715
6705
|
gn as m,
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6706
|
+
rr as n,
|
|
6707
|
+
Pi as o,
|
|
6708
|
+
Vi as p,
|
|
6709
|
+
Li as q,
|
|
6710
|
+
Fi as r,
|
|
6711
|
+
Gi as s,
|
|
6712
|
+
tr as t,
|
|
6723
6713
|
tt as u,
|
|
6724
6714
|
$e as v,
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6715
|
+
mn as w,
|
|
6716
|
+
tn as x,
|
|
6717
|
+
rn as y,
|
|
6718
|
+
nn as z
|
|
6729
6719
|
};
|
|
6730
|
-
//# sourceMappingURL=index-
|
|
6720
|
+
//# sourceMappingURL=index-CRFQTgbT.js.map
|