@centive/aria-sdk 0.6.7 → 0.6.8

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/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { jsx as a, jsxs as y, Fragment as Te } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as y, Fragment as Re } from "react/jsx-runtime";
2
2
  import * as ne from "react";
3
- import { createContext as Rr, useContext as Tr, useState as R, useRef as he, useEffect as ee, useCallback as M, useMemo as Be } from "react";
4
- import { CheckCircle2 as Je, AlertCircle as He, Zap as Xe, RefreshCw as Pe, Clock as zr, MessageCircle as nr, Sparkles as Oe, User as Ir, Bot as Pr, Send as Dr, Wrench as Ze, MicOff as Ye, Mic as $e, Maximize2 as Vr, Phone as er, X as _e, Minimize2 as jr } from "lucide-react";
5
- import { createPortal as Wr } from "react-dom";
3
+ import { createContext as Tr, useContext as Rr, useState as T, useRef as he, useEffect as te, useCallback as M, useMemo as Be } from "react";
4
+ import { CheckCircle2 as Je, AlertCircle as He, Zap as Xe, RefreshCw as Pe, Clock as zr, MessageCircle as nr, Sparkles as Oe, User as Ir, Bot as Pr, Send as Dr, Wrench as Ze, MicOff as Ye, Mic as $e, Maximize2 as Vr, Phone as er, X as _e, Minimize2 as Wr } from "lucide-react";
5
+ import { createPortal as jr } from "react-dom";
6
6
  function Br(r) {
7
7
  return typeof r == "object" && r !== null && "status" in r && (r.status === "success" || r.status === "error") && !("type" in r);
8
8
  }
@@ -846,6 +846,30 @@ class Q {
846
846
  async forceEndSession() {
847
847
  console.log("[AriaSessionManager] Force ending session"), this.sendSessionEnd(), await this.stopStreaming(), this.resetSessionState(), this.isPaused = !1, this.setStatus("idle");
848
848
  }
849
+ /**
850
+ * End the current session but keep WebSocket connected for new session creation
851
+ * This is called when widget closes without persistSession enabled
852
+ * The next time the widget opens, a new session will be created
853
+ */
854
+ async endCurrentSession() {
855
+ if (console.log("[AriaSessionManager] Ending current session (keeping WebSocket alive)"), this.sendSessionEnd(), this.anamClient) {
856
+ try {
857
+ await this.anamClient.stopStreaming();
858
+ } catch (e) {
859
+ console.error("[AriaSessionManager] Error stopping streaming:", e);
860
+ }
861
+ this.anamClient = null;
862
+ }
863
+ this.audioInputStream && (this.audioInputStream.getTracks().forEach((e) => e.stop()), this.audioInputStream = null), this.videoStream = null, this.chatMessages = [], this.liveTranscript = "", this.lastMessageHistory = [], this.clearToolCallState(), this.updateSessionState({
864
+ session_id: null,
865
+ token: null,
866
+ expires_at: null,
867
+ isSessionReady: !1,
868
+ lastError: null,
869
+ isPreloaded: !1,
870
+ isRefreshing: !1
871
+ }), this.isPaused = !1, this.isAnamInitializing = !1, this.isConnected() ? (this.setStatus("connected"), this.config.preloadSession !== !1 && this.config.userId && (console.log("[AriaSessionManager] Requesting new session token for next open"), this.requestSessionToken())) : this.setStatus("idle");
872
+ }
849
873
  // ============================================================================
850
874
  // Cleanup
851
875
  // ============================================================================
@@ -878,7 +902,7 @@ const z = {
878
902
  uiContainer: null,
879
903
  reactRoot: null
880
904
  };
881
- class Re {
905
+ class Te {
882
906
  /**
883
907
  * Initialize the Aria SDK with the given configuration.
884
908
  * This sets up the WebSocket connection, session management, and UI components.
@@ -907,8 +931,8 @@ class Re {
907
931
  if (!e.userId)
908
932
  throw new Error("[AriaCore] userId is required");
909
933
  console.log("[AriaCore] Initializing Aria SDK..."), z.config = e;
910
- const t = Re.buildFullConfig(e);
911
- z.sessionManager = Q.getInstance(t), z.sessionManager.connect(), Re.mountUI(e.theme || "light", e.triggerLabel), z.initialized = !0, console.log("[AriaCore] Aria SDK initialized successfully");
934
+ const t = Te.buildFullConfig(e);
935
+ z.sessionManager = Q.getInstance(t), z.sessionManager.connect(), Te.mountUI(e.theme || "light", e.triggerLabel), z.initialized = !0, console.log("[AriaCore] Aria SDK initialized successfully");
912
936
  }
913
937
  /**
914
938
  * Open the Aria assistant widget.
@@ -1039,7 +1063,7 @@ class Re {
1039
1063
  console.log("[AriaCore] Not initialized, nothing to destroy.");
1040
1064
  return;
1041
1065
  }
1042
- console.log("[AriaCore] Destroying Aria SDK..."), Re.unmountUI(), Q.destroyInstance(), z.initialized = !1, z.config = null, z.sessionManager = null, z.uiContainer = null, z.reactRoot = null, console.log("[AriaCore] Aria SDK destroyed");
1066
+ console.log("[AriaCore] Destroying Aria SDK..."), Te.unmountUI(), Q.destroyInstance(), z.initialized = !1, z.config = null, z.sessionManager = null, z.uiContainer = null, z.reactRoot = null, console.log("[AriaCore] Aria SDK destroyed");
1043
1067
  }
1044
1068
  // ============================================================================
1045
1069
  // Private Methods
@@ -1087,7 +1111,7 @@ class Re {
1087
1111
  */
1088
1112
  static mountUI(e, t) {
1089
1113
  const o = document.createElement("div");
1090
- o.id = "aria-sdk-root", o.setAttribute("data-aria-theme", e), o.setAttribute("data-aria-open", "false"), document.body.appendChild(o), z.uiContainer = o, Re.renderReactUI(o, e, t);
1114
+ o.id = "aria-sdk-root", o.setAttribute("data-aria-theme", e), o.setAttribute("data-aria-open", "false"), document.body.appendChild(o), z.uiContainer = o, Te.renderReactUI(o, e, t);
1091
1115
  }
1092
1116
  /**
1093
1117
  * Render React UI components
@@ -1113,8 +1137,8 @@ class Re {
1113
1137
  z.reactRoot && typeof z.reactRoot.unmount == "function" && z.reactRoot.unmount(), z.uiContainer && z.uiContainer.remove();
1114
1138
  }
1115
1139
  }
1116
- const lr = Rr(null), Se = () => {
1117
- const r = Tr(lr);
1140
+ const lr = Tr(null), Se = () => {
1141
+ const r = Rr(lr);
1118
1142
  if (!r)
1119
1143
  throw new Error("useAria must be used within an AriaProvider");
1120
1144
  return r;
@@ -1132,14 +1156,14 @@ function Qr() {
1132
1156
  for (var r, e, t = 0, o = "", i = arguments.length; t < i; t++) (r = arguments[t]) && (e = cr(r)) && (o && (o += " "), o += e);
1133
1157
  return o;
1134
1158
  }
1135
- const Kr = (r, e) => {
1159
+ const qr = (r, e) => {
1136
1160
  const t = new Array(r.length + e.length);
1137
1161
  for (let o = 0; o < r.length; o++)
1138
1162
  t[o] = r[o];
1139
1163
  for (let o = 0; o < e.length; o++)
1140
1164
  t[r.length + o] = e[o];
1141
1165
  return t;
1142
- }, qr = (r, e) => ({
1166
+ }, Kr = (r, e) => ({
1143
1167
  classGroupId: r,
1144
1168
  validator: e
1145
1169
  }), dr = (r = /* @__PURE__ */ new Map(), e = null, t) => ({
@@ -1161,7 +1185,7 @@ const Kr = (r, e) => {
1161
1185
  getConflictingClassGroupIds: (s, c) => {
1162
1186
  if (c) {
1163
1187
  const d = o[s], g = t[s];
1164
- return d ? g ? Kr(g, d) : d : g || tr;
1188
+ return d ? g ? qr(g, d) : d : g || tr;
1165
1189
  }
1166
1190
  return t[s] || tr;
1167
1191
  }
@@ -1223,7 +1247,7 @@ const Kr = (r, e) => {
1223
1247
  Qe(r(o), e, t, o);
1224
1248
  return;
1225
1249
  }
1226
- e.validators === null && (e.validators = []), e.validators.push(qr(t, r));
1250
+ e.validators === null && (e.validators = []), e.validators.push(Kr(t, r));
1227
1251
  }, ot = (r, e, t, o) => {
1228
1252
  const i = Object.entries(r), l = i.length;
1229
1253
  for (let s = 0; s < l; s++) {
@@ -1293,16 +1317,16 @@ const Kr = (r, e) => {
1293
1317
  j === "[" ? s++ : j === "]" ? s-- : j === "(" ? c++ : j === ")" && c--;
1294
1318
  }
1295
1319
  const E = l.length === 0 ? i : i.slice(d);
1296
- let T = E, V = !1;
1297
- E.endsWith(Ue) ? (T = E.slice(0, -1), V = !0) : (
1320
+ let R = E, V = !1;
1321
+ E.endsWith(Ue) ? (R = E.slice(0, -1), V = !0) : (
1298
1322
  /**
1299
1323
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
1300
1324
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
1301
1325
  */
1302
- E.startsWith(Ue) && (T = E.slice(1), V = !0)
1326
+ E.startsWith(Ue) && (R = E.slice(1), V = !0)
1303
1327
  );
1304
1328
  const x = g && g > d ? g - d : void 0;
1305
- return ar(l, V, T, x);
1329
+ return ar(l, V, R, x);
1306
1330
  };
1307
1331
  if (e) {
1308
1332
  const i = e + or, l = o;
@@ -1345,7 +1369,7 @@ const Kr = (r, e) => {
1345
1369
  for (let g = c.length - 1; g >= 0; g -= 1) {
1346
1370
  const w = c[g], {
1347
1371
  isExternal: E,
1348
- modifiers: T,
1372
+ modifiers: R,
1349
1373
  hasImportantModifier: V,
1350
1374
  baseClassName: x,
1351
1375
  maybePostfixModifierPosition: I
@@ -1354,26 +1378,26 @@ const Kr = (r, e) => {
1354
1378
  d = w + (d.length > 0 ? " " + d : d);
1355
1379
  continue;
1356
1380
  }
1357
- let j = !!I, W = o(j ? x.substring(0, I) : x);
1358
- if (!W) {
1381
+ let j = !!I, B = o(j ? x.substring(0, I) : x);
1382
+ if (!B) {
1359
1383
  if (!j) {
1360
1384
  d = w + (d.length > 0 ? " " + d : d);
1361
1385
  continue;
1362
1386
  }
1363
- if (W = o(x), !W) {
1387
+ if (B = o(x), !B) {
1364
1388
  d = w + (d.length > 0 ? " " + d : d);
1365
1389
  continue;
1366
1390
  }
1367
1391
  j = !1;
1368
1392
  }
1369
- const O = T.length === 0 ? "" : T.length === 1 ? T[0] : l(T).join(":"), P = V ? O + Ue : O, h = P + W;
1393
+ const O = R.length === 0 ? "" : R.length === 1 ? R[0] : l(R).join(":"), D = V ? O + Ue : O, h = D + B;
1370
1394
  if (s.indexOf(h) > -1)
1371
1395
  continue;
1372
1396
  s.push(h);
1373
- const _ = i(W, j);
1374
- for (let q = 0; q < _.length; ++q) {
1375
- const L = _[q];
1376
- s.push(P + L);
1397
+ const _ = i(B, j);
1398
+ for (let J = 0; J < _.length; ++J) {
1399
+ const H = _[J];
1400
+ s.push(D + H);
1377
1401
  }
1378
1402
  d = w + (d.length > 0 ? " " + d : d);
1379
1403
  }
@@ -1406,19 +1430,19 @@ const Kr = (r, e) => {
1406
1430
  }, pt = [], F = (r) => {
1407
1431
  const e = (t) => t[r] || pt;
1408
1432
  return e.isThemeGetter = !0, e;
1409
- }, pr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, mr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, mt = /^\d+\/\d+$/, ft = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wt = /\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$/, bt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, vt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, yt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ae = (r) => mt.test(r), C = (r) => !!r && !Number.isNaN(Number(r)), fe = (r) => !!r && Number.isInteger(Number(r)), Le = (r) => r.endsWith("%") && C(r.slice(0, -1)), ge = (r) => ft.test(r), xt = () => !0, At = (r) => (
1433
+ }, pr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, mr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, mt = /^\d+\/\d+$/, ft = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wt = /\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$/, bt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, vt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, yt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ae = (r) => mt.test(r), C = (r) => !!r && !Number.isNaN(Number(r)), we = (r) => !!r && Number.isInteger(Number(r)), Le = (r) => r.endsWith("%") && C(r.slice(0, -1)), ge = (r) => ft.test(r), xt = () => !0, At = (r) => (
1410
1434
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1411
1435
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1412
1436
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1413
1437
  wt.test(r) && !bt.test(r)
1414
- ), fr = () => !1, kt = (r) => vt.test(r), St = (r) => yt.test(r), Et = (r) => !m(r) && !f(r), Mt = (r) => Ee(r, vr, fr), m = (r) => pr.test(r), ve = (r) => Ee(r, yr, At), Fe = (r) => Ee(r, zt, C), ir = (r) => Ee(r, wr, fr), Ct = (r) => Ee(r, br, St), ze = (r) => Ee(r, xr, kt), f = (r) => mr.test(r), Ne = (r) => Me(r, yr), Nt = (r) => Me(r, It), sr = (r) => Me(r, wr), Rt = (r) => Me(r, vr), Tt = (r) => Me(r, br), Ie = (r) => Me(r, xr, !0), Ee = (r, e, t) => {
1438
+ ), fr = () => !1, kt = (r) => vt.test(r), St = (r) => yt.test(r), Et = (r) => !m(r) && !f(r), Mt = (r) => Ee(r, vr, fr), m = (r) => pr.test(r), ve = (r) => Ee(r, yr, At), Fe = (r) => Ee(r, zt, C), ir = (r) => Ee(r, wr, fr), Ct = (r) => Ee(r, br, St), ze = (r) => Ee(r, xr, kt), f = (r) => mr.test(r), Ne = (r) => Me(r, yr), Nt = (r) => Me(r, It), sr = (r) => Me(r, wr), Tt = (r) => Me(r, vr), Rt = (r) => Me(r, br), Ie = (r) => Me(r, xr, !0), Ee = (r, e, t) => {
1415
1439
  const o = pr.exec(r);
1416
1440
  return o ? o[1] ? e(o[1]) : t(o[2]) : !1;
1417
1441
  }, Me = (r, e, t = !1) => {
1418
1442
  const o = mr.exec(r);
1419
1443
  return o ? o[1] ? e(o[1]) : t : !1;
1420
1444
  }, wr = (r) => r === "position" || r === "percentage", br = (r) => r === "image" || r === "url", vr = (r) => r === "length" || r === "size" || r === "bg-size", yr = (r) => r === "length", zt = (r) => r === "number", It = (r) => r === "family-name", xr = (r) => r === "shadow", Pt = () => {
1421
- const r = F("color"), e = F("font"), t = F("text"), o = F("font-weight"), i = F("tracking"), l = F("leading"), s = F("breakpoint"), c = F("container"), d = F("spacing"), g = F("radius"), w = F("shadow"), E = F("inset-shadow"), T = F("text-shadow"), V = F("drop-shadow"), x = F("blur"), I = F("perspective"), j = F("aspect"), W = F("ease"), O = F("animate"), P = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], h = () => [
1445
+ const r = F("color"), e = F("font"), t = F("text"), o = F("font-weight"), i = F("tracking"), l = F("leading"), s = F("breakpoint"), c = F("container"), d = F("spacing"), g = F("radius"), w = F("shadow"), E = F("inset-shadow"), R = F("text-shadow"), V = F("drop-shadow"), x = F("blur"), I = F("perspective"), j = F("aspect"), B = F("ease"), O = F("animate"), D = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], h = () => [
1422
1446
  "center",
1423
1447
  "top",
1424
1448
  "bottom",
@@ -1436,15 +1460,15 @@ const Kr = (r, e) => {
1436
1460
  "bottom-left",
1437
1461
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1438
1462
  "left-bottom"
1439
- ], _ = () => [...h(), f, m], q = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", "contain", "none"], A = () => [f, m, d], K = () => [Ae, "full", "auto", ...A()], re = () => [fe, "none", "subgrid", f, m], J = () => ["auto", {
1440
- span: ["full", fe, f, m]
1441
- }, fe, f, m], G = () => [fe, "auto", f, m], ue = () => ["auto", "min", "max", "fr", f, m], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], k = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], U = () => ["auto", ...A()], b = () => [Ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...A()], v = () => [r, f, m], le = () => [...h(), sr, ir, {
1463
+ ], _ = () => [...h(), f, m], J = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", "contain", "none"], k = () => [f, m, d], q = () => [Ae, "full", "auto", ...k()], oe = () => [we, "none", "subgrid", f, m], X = () => ["auto", {
1464
+ span: ["full", we, f, m]
1465
+ }, we, f, m], G = () => [we, "auto", f, m], ue = () => ["auto", "min", "max", "fr", f, m], ae = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], S = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], U = () => ["auto", ...k()], b = () => [Ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], v = () => [r, f, m], le = () => [...h(), sr, ir, {
1442
1466
  position: [f, m]
1443
- }], oe = () => ["no-repeat", {
1467
+ }], ie = () => ["no-repeat", {
1444
1468
  repeat: ["", "x", "y", "space", "round"]
1445
- }], ae = () => ["auto", "cover", "contain", Rt, Mt, {
1469
+ }], se = () => ["auto", "cover", "contain", Tt, Mt, {
1446
1470
  size: [f, m]
1447
- }], $ = () => [Le, Ne, ve], B = () => [
1471
+ }], re = () => [Le, Ne, ve], W = () => [
1448
1472
  // Deprecated since Tailwind CSS v4.0.0
1449
1473
  "",
1450
1474
  "none",
@@ -1452,14 +1476,14 @@ const Kr = (r, e) => {
1452
1476
  g,
1453
1477
  f,
1454
1478
  m
1455
- ], H = () => ["", C, Ne, ve], ie = () => ["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"], D = () => [C, Le, sr, ir], we = () => [
1479
+ ], L = () => ["", C, Ne, ve], K = () => ["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"], P = () => [C, Le, sr, ir], pe = () => [
1456
1480
  // Deprecated since Tailwind CSS v4.0.0
1457
1481
  "",
1458
1482
  "none",
1459
1483
  x,
1460
1484
  f,
1461
1485
  m
1462
- ], de = () => ["none", C, f, m], pe = () => ["none", C, f, m], be = () => [C, f, m], me = () => [Ae, "full", ...A()];
1486
+ ], de = () => ["none", C, f, m], me = () => ["none", C, f, m], be = () => [C, f, m], fe = () => [Ae, "full", ...k()];
1463
1487
  return {
1464
1488
  cacheSize: 500,
1465
1489
  theme: {
@@ -1512,14 +1536,14 @@ const Kr = (r, e) => {
1512
1536
  * @see https://tailwindcss.com/docs/break-after
1513
1537
  */
1514
1538
  "break-after": [{
1515
- "break-after": P()
1539
+ "break-after": D()
1516
1540
  }],
1517
1541
  /**
1518
1542
  * Break Before
1519
1543
  * @see https://tailwindcss.com/docs/break-before
1520
1544
  */
1521
1545
  "break-before": [{
1522
- "break-before": P()
1546
+ "break-before": D()
1523
1547
  }],
1524
1548
  /**
1525
1549
  * Break Inside
@@ -1590,42 +1614,42 @@ const Kr = (r, e) => {
1590
1614
  * @see https://tailwindcss.com/docs/overflow
1591
1615
  */
1592
1616
  overflow: [{
1593
- overflow: q()
1617
+ overflow: J()
1594
1618
  }],
1595
1619
  /**
1596
1620
  * Overflow X
1597
1621
  * @see https://tailwindcss.com/docs/overflow
1598
1622
  */
1599
1623
  "overflow-x": [{
1600
- "overflow-x": q()
1624
+ "overflow-x": J()
1601
1625
  }],
1602
1626
  /**
1603
1627
  * Overflow Y
1604
1628
  * @see https://tailwindcss.com/docs/overflow
1605
1629
  */
1606
1630
  "overflow-y": [{
1607
- "overflow-y": q()
1631
+ "overflow-y": J()
1608
1632
  }],
1609
1633
  /**
1610
1634
  * Overscroll Behavior
1611
1635
  * @see https://tailwindcss.com/docs/overscroll-behavior
1612
1636
  */
1613
1637
  overscroll: [{
1614
- overscroll: L()
1638
+ overscroll: H()
1615
1639
  }],
1616
1640
  /**
1617
1641
  * Overscroll Behavior X
1618
1642
  * @see https://tailwindcss.com/docs/overscroll-behavior
1619
1643
  */
1620
1644
  "overscroll-x": [{
1621
- "overscroll-x": L()
1645
+ "overscroll-x": H()
1622
1646
  }],
1623
1647
  /**
1624
1648
  * Overscroll Behavior Y
1625
1649
  * @see https://tailwindcss.com/docs/overscroll-behavior
1626
1650
  */
1627
1651
  "overscroll-y": [{
1628
- "overscroll-y": L()
1652
+ "overscroll-y": H()
1629
1653
  }],
1630
1654
  /**
1631
1655
  * Position
@@ -1637,63 +1661,63 @@ const Kr = (r, e) => {
1637
1661
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1638
1662
  */
1639
1663
  inset: [{
1640
- inset: K()
1664
+ inset: q()
1641
1665
  }],
1642
1666
  /**
1643
1667
  * Right / Left
1644
1668
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1645
1669
  */
1646
1670
  "inset-x": [{
1647
- "inset-x": K()
1671
+ "inset-x": q()
1648
1672
  }],
1649
1673
  /**
1650
1674
  * Top / Bottom
1651
1675
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1652
1676
  */
1653
1677
  "inset-y": [{
1654
- "inset-y": K()
1678
+ "inset-y": q()
1655
1679
  }],
1656
1680
  /**
1657
1681
  * Start
1658
1682
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1659
1683
  */
1660
1684
  start: [{
1661
- start: K()
1685
+ start: q()
1662
1686
  }],
1663
1687
  /**
1664
1688
  * End
1665
1689
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1666
1690
  */
1667
1691
  end: [{
1668
- end: K()
1692
+ end: q()
1669
1693
  }],
1670
1694
  /**
1671
1695
  * Top
1672
1696
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1673
1697
  */
1674
1698
  top: [{
1675
- top: K()
1699
+ top: q()
1676
1700
  }],
1677
1701
  /**
1678
1702
  * Right
1679
1703
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1680
1704
  */
1681
1705
  right: [{
1682
- right: K()
1706
+ right: q()
1683
1707
  }],
1684
1708
  /**
1685
1709
  * Bottom
1686
1710
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1687
1711
  */
1688
1712
  bottom: [{
1689
- bottom: K()
1713
+ bottom: q()
1690
1714
  }],
1691
1715
  /**
1692
1716
  * Left
1693
1717
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1694
1718
  */
1695
1719
  left: [{
1696
- left: K()
1720
+ left: q()
1697
1721
  }],
1698
1722
  /**
1699
1723
  * Visibility
@@ -1705,7 +1729,7 @@ const Kr = (r, e) => {
1705
1729
  * @see https://tailwindcss.com/docs/z-index
1706
1730
  */
1707
1731
  z: [{
1708
- z: [fe, "auto", f, m]
1732
+ z: [we, "auto", f, m]
1709
1733
  }],
1710
1734
  // ------------------------
1711
1735
  // --- Flexbox and Grid ---
@@ -1715,7 +1739,7 @@ const Kr = (r, e) => {
1715
1739
  * @see https://tailwindcss.com/docs/flex-basis
1716
1740
  */
1717
1741
  basis: [{
1718
- basis: [Ae, "full", "auto", c, ...A()]
1742
+ basis: [Ae, "full", "auto", c, ...k()]
1719
1743
  }],
1720
1744
  /**
1721
1745
  * Flex Direction
@@ -1757,21 +1781,21 @@ const Kr = (r, e) => {
1757
1781
  * @see https://tailwindcss.com/docs/order
1758
1782
  */
1759
1783
  order: [{
1760
- order: [fe, "first", "last", "none", f, m]
1784
+ order: [we, "first", "last", "none", f, m]
1761
1785
  }],
1762
1786
  /**
1763
1787
  * Grid Template Columns
1764
1788
  * @see https://tailwindcss.com/docs/grid-template-columns
1765
1789
  */
1766
1790
  "grid-cols": [{
1767
- "grid-cols": re()
1791
+ "grid-cols": oe()
1768
1792
  }],
1769
1793
  /**
1770
1794
  * Grid Column Start / End
1771
1795
  * @see https://tailwindcss.com/docs/grid-column
1772
1796
  */
1773
1797
  "col-start-end": [{
1774
- col: J()
1798
+ col: X()
1775
1799
  }],
1776
1800
  /**
1777
1801
  * Grid Column Start
@@ -1792,14 +1816,14 @@ const Kr = (r, e) => {
1792
1816
  * @see https://tailwindcss.com/docs/grid-template-rows
1793
1817
  */
1794
1818
  "grid-rows": [{
1795
- "grid-rows": re()
1819
+ "grid-rows": oe()
1796
1820
  }],
1797
1821
  /**
1798
1822
  * Grid Row Start / End
1799
1823
  * @see https://tailwindcss.com/docs/grid-row
1800
1824
  */
1801
1825
  "row-start-end": [{
1802
- row: J()
1826
+ row: X()
1803
1827
  }],
1804
1828
  /**
1805
1829
  * Grid Row Start
@@ -1841,56 +1865,56 @@ const Kr = (r, e) => {
1841
1865
  * @see https://tailwindcss.com/docs/gap
1842
1866
  */
1843
1867
  gap: [{
1844
- gap: A()
1868
+ gap: k()
1845
1869
  }],
1846
1870
  /**
1847
1871
  * Gap X
1848
1872
  * @see https://tailwindcss.com/docs/gap
1849
1873
  */
1850
1874
  "gap-x": [{
1851
- "gap-x": A()
1875
+ "gap-x": k()
1852
1876
  }],
1853
1877
  /**
1854
1878
  * Gap Y
1855
1879
  * @see https://tailwindcss.com/docs/gap
1856
1880
  */
1857
1881
  "gap-y": [{
1858
- "gap-y": A()
1882
+ "gap-y": k()
1859
1883
  }],
1860
1884
  /**
1861
1885
  * Justify Content
1862
1886
  * @see https://tailwindcss.com/docs/justify-content
1863
1887
  */
1864
1888
  "justify-content": [{
1865
- justify: [...te(), "normal"]
1889
+ justify: [...ae(), "normal"]
1866
1890
  }],
1867
1891
  /**
1868
1892
  * Justify Items
1869
1893
  * @see https://tailwindcss.com/docs/justify-items
1870
1894
  */
1871
1895
  "justify-items": [{
1872
- "justify-items": [...k(), "normal"]
1896
+ "justify-items": [...S(), "normal"]
1873
1897
  }],
1874
1898
  /**
1875
1899
  * Justify Self
1876
1900
  * @see https://tailwindcss.com/docs/justify-self
1877
1901
  */
1878
1902
  "justify-self": [{
1879
- "justify-self": ["auto", ...k()]
1903
+ "justify-self": ["auto", ...S()]
1880
1904
  }],
1881
1905
  /**
1882
1906
  * Align Content
1883
1907
  * @see https://tailwindcss.com/docs/align-content
1884
1908
  */
1885
1909
  "align-content": [{
1886
- content: ["normal", ...te()]
1910
+ content: ["normal", ...ae()]
1887
1911
  }],
1888
1912
  /**
1889
1913
  * Align Items
1890
1914
  * @see https://tailwindcss.com/docs/align-items
1891
1915
  */
1892
1916
  "align-items": [{
1893
- items: [...k(), {
1917
+ items: [...S(), {
1894
1918
  baseline: ["", "last"]
1895
1919
  }]
1896
1920
  }],
@@ -1899,7 +1923,7 @@ const Kr = (r, e) => {
1899
1923
  * @see https://tailwindcss.com/docs/align-self
1900
1924
  */
1901
1925
  "align-self": [{
1902
- self: ["auto", ...k(), {
1926
+ self: ["auto", ...S(), {
1903
1927
  baseline: ["", "last"]
1904
1928
  }]
1905
1929
  }],
@@ -1908,21 +1932,21 @@ const Kr = (r, e) => {
1908
1932
  * @see https://tailwindcss.com/docs/place-content
1909
1933
  */
1910
1934
  "place-content": [{
1911
- "place-content": te()
1935
+ "place-content": ae()
1912
1936
  }],
1913
1937
  /**
1914
1938
  * Place Items
1915
1939
  * @see https://tailwindcss.com/docs/place-items
1916
1940
  */
1917
1941
  "place-items": [{
1918
- "place-items": [...k(), "baseline"]
1942
+ "place-items": [...S(), "baseline"]
1919
1943
  }],
1920
1944
  /**
1921
1945
  * Place Self
1922
1946
  * @see https://tailwindcss.com/docs/place-self
1923
1947
  */
1924
1948
  "place-self": [{
1925
- "place-self": ["auto", ...k()]
1949
+ "place-self": ["auto", ...S()]
1926
1950
  }],
1927
1951
  // Spacing
1928
1952
  /**
@@ -1930,63 +1954,63 @@ const Kr = (r, e) => {
1930
1954
  * @see https://tailwindcss.com/docs/padding
1931
1955
  */
1932
1956
  p: [{
1933
- p: A()
1957
+ p: k()
1934
1958
  }],
1935
1959
  /**
1936
1960
  * Padding X
1937
1961
  * @see https://tailwindcss.com/docs/padding
1938
1962
  */
1939
1963
  px: [{
1940
- px: A()
1964
+ px: k()
1941
1965
  }],
1942
1966
  /**
1943
1967
  * Padding Y
1944
1968
  * @see https://tailwindcss.com/docs/padding
1945
1969
  */
1946
1970
  py: [{
1947
- py: A()
1971
+ py: k()
1948
1972
  }],
1949
1973
  /**
1950
1974
  * Padding Start
1951
1975
  * @see https://tailwindcss.com/docs/padding
1952
1976
  */
1953
1977
  ps: [{
1954
- ps: A()
1978
+ ps: k()
1955
1979
  }],
1956
1980
  /**
1957
1981
  * Padding End
1958
1982
  * @see https://tailwindcss.com/docs/padding
1959
1983
  */
1960
1984
  pe: [{
1961
- pe: A()
1985
+ pe: k()
1962
1986
  }],
1963
1987
  /**
1964
1988
  * Padding Top
1965
1989
  * @see https://tailwindcss.com/docs/padding
1966
1990
  */
1967
1991
  pt: [{
1968
- pt: A()
1992
+ pt: k()
1969
1993
  }],
1970
1994
  /**
1971
1995
  * Padding Right
1972
1996
  * @see https://tailwindcss.com/docs/padding
1973
1997
  */
1974
1998
  pr: [{
1975
- pr: A()
1999
+ pr: k()
1976
2000
  }],
1977
2001
  /**
1978
2002
  * Padding Bottom
1979
2003
  * @see https://tailwindcss.com/docs/padding
1980
2004
  */
1981
2005
  pb: [{
1982
- pb: A()
2006
+ pb: k()
1983
2007
  }],
1984
2008
  /**
1985
2009
  * Padding Left
1986
2010
  * @see https://tailwindcss.com/docs/padding
1987
2011
  */
1988
2012
  pl: [{
1989
- pl: A()
2013
+ pl: k()
1990
2014
  }],
1991
2015
  /**
1992
2016
  * Margin
@@ -2056,7 +2080,7 @@ const Kr = (r, e) => {
2056
2080
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2057
2081
  */
2058
2082
  "space-x": [{
2059
- "space-x": A()
2083
+ "space-x": k()
2060
2084
  }],
2061
2085
  /**
2062
2086
  * Space Between X Reverse
@@ -2068,7 +2092,7 @@ const Kr = (r, e) => {
2068
2092
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2069
2093
  */
2070
2094
  "space-y": [{
2071
- "space-y": A()
2095
+ "space-y": k()
2072
2096
  }],
2073
2097
  /**
2074
2098
  * Space Between Y Reverse
@@ -2237,7 +2261,7 @@ const Kr = (r, e) => {
2237
2261
  leading: [
2238
2262
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2239
2263
  l,
2240
- ...A()
2264
+ ...k()
2241
2265
  ]
2242
2266
  }],
2243
2267
  /**
@@ -2293,7 +2317,7 @@ const Kr = (r, e) => {
2293
2317
  * @see https://tailwindcss.com/docs/text-decoration-style
2294
2318
  */
2295
2319
  "text-decoration-style": [{
2296
- decoration: [...ie(), "wavy"]
2320
+ decoration: [...K(), "wavy"]
2297
2321
  }],
2298
2322
  /**
2299
2323
  * Text Decoration Thickness
@@ -2338,7 +2362,7 @@ const Kr = (r, e) => {
2338
2362
  * @see https://tailwindcss.com/docs/text-indent
2339
2363
  */
2340
2364
  indent: [{
2341
- indent: A()
2365
+ indent: k()
2342
2366
  }],
2343
2367
  /**
2344
2368
  * Vertical Alignment
@@ -2418,14 +2442,14 @@ const Kr = (r, e) => {
2418
2442
  * @see https://tailwindcss.com/docs/background-repeat
2419
2443
  */
2420
2444
  "bg-repeat": [{
2421
- bg: oe()
2445
+ bg: ie()
2422
2446
  }],
2423
2447
  /**
2424
2448
  * Background Size
2425
2449
  * @see https://tailwindcss.com/docs/background-size
2426
2450
  */
2427
2451
  "bg-size": [{
2428
- bg: ae()
2452
+ bg: se()
2429
2453
  }],
2430
2454
  /**
2431
2455
  * Background Image
@@ -2435,10 +2459,10 @@ const Kr = (r, e) => {
2435
2459
  bg: ["none", {
2436
2460
  linear: [{
2437
2461
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
2438
- }, fe, f, m],
2462
+ }, we, f, m],
2439
2463
  radial: ["", f, m],
2440
- conic: [fe, f, m]
2441
- }, Tt, Ct]
2464
+ conic: [we, f, m]
2465
+ }, Rt, Ct]
2442
2466
  }],
2443
2467
  /**
2444
2468
  * Background Color
@@ -2452,21 +2476,21 @@ const Kr = (r, e) => {
2452
2476
  * @see https://tailwindcss.com/docs/gradient-color-stops
2453
2477
  */
2454
2478
  "gradient-from-pos": [{
2455
- from: $()
2479
+ from: re()
2456
2480
  }],
2457
2481
  /**
2458
2482
  * Gradient Color Stops Via Position
2459
2483
  * @see https://tailwindcss.com/docs/gradient-color-stops
2460
2484
  */
2461
2485
  "gradient-via-pos": [{
2462
- via: $()
2486
+ via: re()
2463
2487
  }],
2464
2488
  /**
2465
2489
  * Gradient Color Stops To Position
2466
2490
  * @see https://tailwindcss.com/docs/gradient-color-stops
2467
2491
  */
2468
2492
  "gradient-to-pos": [{
2469
- to: $()
2493
+ to: re()
2470
2494
  }],
2471
2495
  /**
2472
2496
  * Gradient Color Stops From
@@ -2497,175 +2521,175 @@ const Kr = (r, e) => {
2497
2521
  * @see https://tailwindcss.com/docs/border-radius
2498
2522
  */
2499
2523
  rounded: [{
2500
- rounded: B()
2524
+ rounded: W()
2501
2525
  }],
2502
2526
  /**
2503
2527
  * Border Radius Start
2504
2528
  * @see https://tailwindcss.com/docs/border-radius
2505
2529
  */
2506
2530
  "rounded-s": [{
2507
- "rounded-s": B()
2531
+ "rounded-s": W()
2508
2532
  }],
2509
2533
  /**
2510
2534
  * Border Radius End
2511
2535
  * @see https://tailwindcss.com/docs/border-radius
2512
2536
  */
2513
2537
  "rounded-e": [{
2514
- "rounded-e": B()
2538
+ "rounded-e": W()
2515
2539
  }],
2516
2540
  /**
2517
2541
  * Border Radius Top
2518
2542
  * @see https://tailwindcss.com/docs/border-radius
2519
2543
  */
2520
2544
  "rounded-t": [{
2521
- "rounded-t": B()
2545
+ "rounded-t": W()
2522
2546
  }],
2523
2547
  /**
2524
2548
  * Border Radius Right
2525
2549
  * @see https://tailwindcss.com/docs/border-radius
2526
2550
  */
2527
2551
  "rounded-r": [{
2528
- "rounded-r": B()
2552
+ "rounded-r": W()
2529
2553
  }],
2530
2554
  /**
2531
2555
  * Border Radius Bottom
2532
2556
  * @see https://tailwindcss.com/docs/border-radius
2533
2557
  */
2534
2558
  "rounded-b": [{
2535
- "rounded-b": B()
2559
+ "rounded-b": W()
2536
2560
  }],
2537
2561
  /**
2538
2562
  * Border Radius Left
2539
2563
  * @see https://tailwindcss.com/docs/border-radius
2540
2564
  */
2541
2565
  "rounded-l": [{
2542
- "rounded-l": B()
2566
+ "rounded-l": W()
2543
2567
  }],
2544
2568
  /**
2545
2569
  * Border Radius Start Start
2546
2570
  * @see https://tailwindcss.com/docs/border-radius
2547
2571
  */
2548
2572
  "rounded-ss": [{
2549
- "rounded-ss": B()
2573
+ "rounded-ss": W()
2550
2574
  }],
2551
2575
  /**
2552
2576
  * Border Radius Start End
2553
2577
  * @see https://tailwindcss.com/docs/border-radius
2554
2578
  */
2555
2579
  "rounded-se": [{
2556
- "rounded-se": B()
2580
+ "rounded-se": W()
2557
2581
  }],
2558
2582
  /**
2559
2583
  * Border Radius End End
2560
2584
  * @see https://tailwindcss.com/docs/border-radius
2561
2585
  */
2562
2586
  "rounded-ee": [{
2563
- "rounded-ee": B()
2587
+ "rounded-ee": W()
2564
2588
  }],
2565
2589
  /**
2566
2590
  * Border Radius End Start
2567
2591
  * @see https://tailwindcss.com/docs/border-radius
2568
2592
  */
2569
2593
  "rounded-es": [{
2570
- "rounded-es": B()
2594
+ "rounded-es": W()
2571
2595
  }],
2572
2596
  /**
2573
2597
  * Border Radius Top Left
2574
2598
  * @see https://tailwindcss.com/docs/border-radius
2575
2599
  */
2576
2600
  "rounded-tl": [{
2577
- "rounded-tl": B()
2601
+ "rounded-tl": W()
2578
2602
  }],
2579
2603
  /**
2580
2604
  * Border Radius Top Right
2581
2605
  * @see https://tailwindcss.com/docs/border-radius
2582
2606
  */
2583
2607
  "rounded-tr": [{
2584
- "rounded-tr": B()
2608
+ "rounded-tr": W()
2585
2609
  }],
2586
2610
  /**
2587
2611
  * Border Radius Bottom Right
2588
2612
  * @see https://tailwindcss.com/docs/border-radius
2589
2613
  */
2590
2614
  "rounded-br": [{
2591
- "rounded-br": B()
2615
+ "rounded-br": W()
2592
2616
  }],
2593
2617
  /**
2594
2618
  * Border Radius Bottom Left
2595
2619
  * @see https://tailwindcss.com/docs/border-radius
2596
2620
  */
2597
2621
  "rounded-bl": [{
2598
- "rounded-bl": B()
2622
+ "rounded-bl": W()
2599
2623
  }],
2600
2624
  /**
2601
2625
  * Border Width
2602
2626
  * @see https://tailwindcss.com/docs/border-width
2603
2627
  */
2604
2628
  "border-w": [{
2605
- border: H()
2629
+ border: L()
2606
2630
  }],
2607
2631
  /**
2608
2632
  * Border Width X
2609
2633
  * @see https://tailwindcss.com/docs/border-width
2610
2634
  */
2611
2635
  "border-w-x": [{
2612
- "border-x": H()
2636
+ "border-x": L()
2613
2637
  }],
2614
2638
  /**
2615
2639
  * Border Width Y
2616
2640
  * @see https://tailwindcss.com/docs/border-width
2617
2641
  */
2618
2642
  "border-w-y": [{
2619
- "border-y": H()
2643
+ "border-y": L()
2620
2644
  }],
2621
2645
  /**
2622
2646
  * Border Width Start
2623
2647
  * @see https://tailwindcss.com/docs/border-width
2624
2648
  */
2625
2649
  "border-w-s": [{
2626
- "border-s": H()
2650
+ "border-s": L()
2627
2651
  }],
2628
2652
  /**
2629
2653
  * Border Width End
2630
2654
  * @see https://tailwindcss.com/docs/border-width
2631
2655
  */
2632
2656
  "border-w-e": [{
2633
- "border-e": H()
2657
+ "border-e": L()
2634
2658
  }],
2635
2659
  /**
2636
2660
  * Border Width Top
2637
2661
  * @see https://tailwindcss.com/docs/border-width
2638
2662
  */
2639
2663
  "border-w-t": [{
2640
- "border-t": H()
2664
+ "border-t": L()
2641
2665
  }],
2642
2666
  /**
2643
2667
  * Border Width Right
2644
2668
  * @see https://tailwindcss.com/docs/border-width
2645
2669
  */
2646
2670
  "border-w-r": [{
2647
- "border-r": H()
2671
+ "border-r": L()
2648
2672
  }],
2649
2673
  /**
2650
2674
  * Border Width Bottom
2651
2675
  * @see https://tailwindcss.com/docs/border-width
2652
2676
  */
2653
2677
  "border-w-b": [{
2654
- "border-b": H()
2678
+ "border-b": L()
2655
2679
  }],
2656
2680
  /**
2657
2681
  * Border Width Left
2658
2682
  * @see https://tailwindcss.com/docs/border-width
2659
2683
  */
2660
2684
  "border-w-l": [{
2661
- "border-l": H()
2685
+ "border-l": L()
2662
2686
  }],
2663
2687
  /**
2664
2688
  * Divide Width X
2665
2689
  * @see https://tailwindcss.com/docs/border-width#between-children
2666
2690
  */
2667
2691
  "divide-x": [{
2668
- "divide-x": H()
2692
+ "divide-x": L()
2669
2693
  }],
2670
2694
  /**
2671
2695
  * Divide Width X Reverse
@@ -2677,7 +2701,7 @@ const Kr = (r, e) => {
2677
2701
  * @see https://tailwindcss.com/docs/border-width#between-children
2678
2702
  */
2679
2703
  "divide-y": [{
2680
- "divide-y": H()
2704
+ "divide-y": L()
2681
2705
  }],
2682
2706
  /**
2683
2707
  * Divide Width Y Reverse
@@ -2689,14 +2713,14 @@ const Kr = (r, e) => {
2689
2713
  * @see https://tailwindcss.com/docs/border-style
2690
2714
  */
2691
2715
  "border-style": [{
2692
- border: [...ie(), "hidden", "none"]
2716
+ border: [...K(), "hidden", "none"]
2693
2717
  }],
2694
2718
  /**
2695
2719
  * Divide Style
2696
2720
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2697
2721
  */
2698
2722
  "divide-style": [{
2699
- divide: [...ie(), "hidden", "none"]
2723
+ divide: [...K(), "hidden", "none"]
2700
2724
  }],
2701
2725
  /**
2702
2726
  * Border Color
@@ -2773,7 +2797,7 @@ const Kr = (r, e) => {
2773
2797
  * @see https://tailwindcss.com/docs/outline-style
2774
2798
  */
2775
2799
  "outline-style": [{
2776
- outline: [...ie(), "none", "hidden"]
2800
+ outline: [...K(), "none", "hidden"]
2777
2801
  }],
2778
2802
  /**
2779
2803
  * Outline Offset
@@ -2839,7 +2863,7 @@ const Kr = (r, e) => {
2839
2863
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2840
2864
  */
2841
2865
  "ring-w": [{
2842
- ring: H()
2866
+ ring: L()
2843
2867
  }],
2844
2868
  /**
2845
2869
  * Ring Width Inset
@@ -2878,7 +2902,7 @@ const Kr = (r, e) => {
2878
2902
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2879
2903
  */
2880
2904
  "inset-ring-w": [{
2881
- "inset-ring": H()
2905
+ "inset-ring": L()
2882
2906
  }],
2883
2907
  /**
2884
2908
  * Inset Ring Color
@@ -2892,7 +2916,7 @@ const Kr = (r, e) => {
2892
2916
  * @see https://tailwindcss.com/docs/text-shadow
2893
2917
  */
2894
2918
  "text-shadow": [{
2895
- "text-shadow": ["none", T, Ie, ze]
2919
+ "text-shadow": ["none", R, Ie, ze]
2896
2920
  }],
2897
2921
  /**
2898
2922
  * Text Shadow Color
@@ -2944,10 +2968,10 @@ const Kr = (r, e) => {
2944
2968
  "mask-linear": [C]
2945
2969
  }],
2946
2970
  "mask-image-linear-from-pos": [{
2947
- "mask-linear-from": D()
2971
+ "mask-linear-from": P()
2948
2972
  }],
2949
2973
  "mask-image-linear-to-pos": [{
2950
- "mask-linear-to": D()
2974
+ "mask-linear-to": P()
2951
2975
  }],
2952
2976
  "mask-image-linear-from-color": [{
2953
2977
  "mask-linear-from": v()
@@ -2956,10 +2980,10 @@ const Kr = (r, e) => {
2956
2980
  "mask-linear-to": v()
2957
2981
  }],
2958
2982
  "mask-image-t-from-pos": [{
2959
- "mask-t-from": D()
2983
+ "mask-t-from": P()
2960
2984
  }],
2961
2985
  "mask-image-t-to-pos": [{
2962
- "mask-t-to": D()
2986
+ "mask-t-to": P()
2963
2987
  }],
2964
2988
  "mask-image-t-from-color": [{
2965
2989
  "mask-t-from": v()
@@ -2968,10 +2992,10 @@ const Kr = (r, e) => {
2968
2992
  "mask-t-to": v()
2969
2993
  }],
2970
2994
  "mask-image-r-from-pos": [{
2971
- "mask-r-from": D()
2995
+ "mask-r-from": P()
2972
2996
  }],
2973
2997
  "mask-image-r-to-pos": [{
2974
- "mask-r-to": D()
2998
+ "mask-r-to": P()
2975
2999
  }],
2976
3000
  "mask-image-r-from-color": [{
2977
3001
  "mask-r-from": v()
@@ -2980,10 +3004,10 @@ const Kr = (r, e) => {
2980
3004
  "mask-r-to": v()
2981
3005
  }],
2982
3006
  "mask-image-b-from-pos": [{
2983
- "mask-b-from": D()
3007
+ "mask-b-from": P()
2984
3008
  }],
2985
3009
  "mask-image-b-to-pos": [{
2986
- "mask-b-to": D()
3010
+ "mask-b-to": P()
2987
3011
  }],
2988
3012
  "mask-image-b-from-color": [{
2989
3013
  "mask-b-from": v()
@@ -2992,10 +3016,10 @@ const Kr = (r, e) => {
2992
3016
  "mask-b-to": v()
2993
3017
  }],
2994
3018
  "mask-image-l-from-pos": [{
2995
- "mask-l-from": D()
3019
+ "mask-l-from": P()
2996
3020
  }],
2997
3021
  "mask-image-l-to-pos": [{
2998
- "mask-l-to": D()
3022
+ "mask-l-to": P()
2999
3023
  }],
3000
3024
  "mask-image-l-from-color": [{
3001
3025
  "mask-l-from": v()
@@ -3004,10 +3028,10 @@ const Kr = (r, e) => {
3004
3028
  "mask-l-to": v()
3005
3029
  }],
3006
3030
  "mask-image-x-from-pos": [{
3007
- "mask-x-from": D()
3031
+ "mask-x-from": P()
3008
3032
  }],
3009
3033
  "mask-image-x-to-pos": [{
3010
- "mask-x-to": D()
3034
+ "mask-x-to": P()
3011
3035
  }],
3012
3036
  "mask-image-x-from-color": [{
3013
3037
  "mask-x-from": v()
@@ -3016,10 +3040,10 @@ const Kr = (r, e) => {
3016
3040
  "mask-x-to": v()
3017
3041
  }],
3018
3042
  "mask-image-y-from-pos": [{
3019
- "mask-y-from": D()
3043
+ "mask-y-from": P()
3020
3044
  }],
3021
3045
  "mask-image-y-to-pos": [{
3022
- "mask-y-to": D()
3046
+ "mask-y-to": P()
3023
3047
  }],
3024
3048
  "mask-image-y-from-color": [{
3025
3049
  "mask-y-from": v()
@@ -3031,10 +3055,10 @@ const Kr = (r, e) => {
3031
3055
  "mask-radial": [f, m]
3032
3056
  }],
3033
3057
  "mask-image-radial-from-pos": [{
3034
- "mask-radial-from": D()
3058
+ "mask-radial-from": P()
3035
3059
  }],
3036
3060
  "mask-image-radial-to-pos": [{
3037
- "mask-radial-to": D()
3061
+ "mask-radial-to": P()
3038
3062
  }],
3039
3063
  "mask-image-radial-from-color": [{
3040
3064
  "mask-radial-from": v()
@@ -3058,10 +3082,10 @@ const Kr = (r, e) => {
3058
3082
  "mask-conic": [C]
3059
3083
  }],
3060
3084
  "mask-image-conic-from-pos": [{
3061
- "mask-conic-from": D()
3085
+ "mask-conic-from": P()
3062
3086
  }],
3063
3087
  "mask-image-conic-to-pos": [{
3064
- "mask-conic-to": D()
3088
+ "mask-conic-to": P()
3065
3089
  }],
3066
3090
  "mask-image-conic-from-color": [{
3067
3091
  "mask-conic-from": v()
@@ -3095,14 +3119,14 @@ const Kr = (r, e) => {
3095
3119
  * @see https://tailwindcss.com/docs/mask-repeat
3096
3120
  */
3097
3121
  "mask-repeat": [{
3098
- mask: oe()
3122
+ mask: ie()
3099
3123
  }],
3100
3124
  /**
3101
3125
  * Mask Size
3102
3126
  * @see https://tailwindcss.com/docs/mask-size
3103
3127
  */
3104
3128
  "mask-size": [{
3105
- mask: ae()
3129
+ mask: se()
3106
3130
  }],
3107
3131
  /**
3108
3132
  * Mask Type
@@ -3139,7 +3163,7 @@ const Kr = (r, e) => {
3139
3163
  * @see https://tailwindcss.com/docs/blur
3140
3164
  */
3141
3165
  blur: [{
3142
- blur: we()
3166
+ blur: pe()
3143
3167
  }],
3144
3168
  /**
3145
3169
  * Brightness
@@ -3229,7 +3253,7 @@ const Kr = (r, e) => {
3229
3253
  * @see https://tailwindcss.com/docs/backdrop-blur
3230
3254
  */
3231
3255
  "backdrop-blur": [{
3232
- "backdrop-blur": we()
3256
+ "backdrop-blur": pe()
3233
3257
  }],
3234
3258
  /**
3235
3259
  * Backdrop Brightness
@@ -3302,21 +3326,21 @@ const Kr = (r, e) => {
3302
3326
  * @see https://tailwindcss.com/docs/border-spacing
3303
3327
  */
3304
3328
  "border-spacing": [{
3305
- "border-spacing": A()
3329
+ "border-spacing": k()
3306
3330
  }],
3307
3331
  /**
3308
3332
  * Border Spacing X
3309
3333
  * @see https://tailwindcss.com/docs/border-spacing
3310
3334
  */
3311
3335
  "border-spacing-x": [{
3312
- "border-spacing-x": A()
3336
+ "border-spacing-x": k()
3313
3337
  }],
3314
3338
  /**
3315
3339
  * Border Spacing Y
3316
3340
  * @see https://tailwindcss.com/docs/border-spacing
3317
3341
  */
3318
3342
  "border-spacing-y": [{
3319
- "border-spacing-y": A()
3343
+ "border-spacing-y": k()
3320
3344
  }],
3321
3345
  /**
3322
3346
  * Table Layout
@@ -3361,7 +3385,7 @@ const Kr = (r, e) => {
3361
3385
  * @see https://tailwindcss.com/docs/transition-timing-function
3362
3386
  */
3363
3387
  ease: [{
3364
- ease: ["linear", "initial", W, f, m]
3388
+ ease: ["linear", "initial", B, f, m]
3365
3389
  }],
3366
3390
  /**
3367
3391
  * Transition Delay
@@ -3434,28 +3458,28 @@ const Kr = (r, e) => {
3434
3458
  * @see https://tailwindcss.com/docs/scale
3435
3459
  */
3436
3460
  scale: [{
3437
- scale: pe()
3461
+ scale: me()
3438
3462
  }],
3439
3463
  /**
3440
3464
  * Scale X
3441
3465
  * @see https://tailwindcss.com/docs/scale
3442
3466
  */
3443
3467
  "scale-x": [{
3444
- "scale-x": pe()
3468
+ "scale-x": me()
3445
3469
  }],
3446
3470
  /**
3447
3471
  * Scale Y
3448
3472
  * @see https://tailwindcss.com/docs/scale
3449
3473
  */
3450
3474
  "scale-y": [{
3451
- "scale-y": pe()
3475
+ "scale-y": me()
3452
3476
  }],
3453
3477
  /**
3454
3478
  * Scale Z
3455
3479
  * @see https://tailwindcss.com/docs/scale
3456
3480
  */
3457
3481
  "scale-z": [{
3458
- "scale-z": pe()
3482
+ "scale-z": me()
3459
3483
  }],
3460
3484
  /**
3461
3485
  * Scale 3D
@@ -3509,28 +3533,28 @@ const Kr = (r, e) => {
3509
3533
  * @see https://tailwindcss.com/docs/translate
3510
3534
  */
3511
3535
  translate: [{
3512
- translate: me()
3536
+ translate: fe()
3513
3537
  }],
3514
3538
  /**
3515
3539
  * Translate X
3516
3540
  * @see https://tailwindcss.com/docs/translate
3517
3541
  */
3518
3542
  "translate-x": [{
3519
- "translate-x": me()
3543
+ "translate-x": fe()
3520
3544
  }],
3521
3545
  /**
3522
3546
  * Translate Y
3523
3547
  * @see https://tailwindcss.com/docs/translate
3524
3548
  */
3525
3549
  "translate-y": [{
3526
- "translate-y": me()
3550
+ "translate-y": fe()
3527
3551
  }],
3528
3552
  /**
3529
3553
  * Translate Z
3530
3554
  * @see https://tailwindcss.com/docs/translate
3531
3555
  */
3532
3556
  "translate-z": [{
3533
- "translate-z": me()
3557
+ "translate-z": fe()
3534
3558
  }],
3535
3559
  /**
3536
3560
  * Translate None
@@ -3608,126 +3632,126 @@ const Kr = (r, e) => {
3608
3632
  * @see https://tailwindcss.com/docs/scroll-margin
3609
3633
  */
3610
3634
  "scroll-m": [{
3611
- "scroll-m": A()
3635
+ "scroll-m": k()
3612
3636
  }],
3613
3637
  /**
3614
3638
  * Scroll Margin X
3615
3639
  * @see https://tailwindcss.com/docs/scroll-margin
3616
3640
  */
3617
3641
  "scroll-mx": [{
3618
- "scroll-mx": A()
3642
+ "scroll-mx": k()
3619
3643
  }],
3620
3644
  /**
3621
3645
  * Scroll Margin Y
3622
3646
  * @see https://tailwindcss.com/docs/scroll-margin
3623
3647
  */
3624
3648
  "scroll-my": [{
3625
- "scroll-my": A()
3649
+ "scroll-my": k()
3626
3650
  }],
3627
3651
  /**
3628
3652
  * Scroll Margin Start
3629
3653
  * @see https://tailwindcss.com/docs/scroll-margin
3630
3654
  */
3631
3655
  "scroll-ms": [{
3632
- "scroll-ms": A()
3656
+ "scroll-ms": k()
3633
3657
  }],
3634
3658
  /**
3635
3659
  * Scroll Margin End
3636
3660
  * @see https://tailwindcss.com/docs/scroll-margin
3637
3661
  */
3638
3662
  "scroll-me": [{
3639
- "scroll-me": A()
3663
+ "scroll-me": k()
3640
3664
  }],
3641
3665
  /**
3642
3666
  * Scroll Margin Top
3643
3667
  * @see https://tailwindcss.com/docs/scroll-margin
3644
3668
  */
3645
3669
  "scroll-mt": [{
3646
- "scroll-mt": A()
3670
+ "scroll-mt": k()
3647
3671
  }],
3648
3672
  /**
3649
3673
  * Scroll Margin Right
3650
3674
  * @see https://tailwindcss.com/docs/scroll-margin
3651
3675
  */
3652
3676
  "scroll-mr": [{
3653
- "scroll-mr": A()
3677
+ "scroll-mr": k()
3654
3678
  }],
3655
3679
  /**
3656
3680
  * Scroll Margin Bottom
3657
3681
  * @see https://tailwindcss.com/docs/scroll-margin
3658
3682
  */
3659
3683
  "scroll-mb": [{
3660
- "scroll-mb": A()
3684
+ "scroll-mb": k()
3661
3685
  }],
3662
3686
  /**
3663
3687
  * Scroll Margin Left
3664
3688
  * @see https://tailwindcss.com/docs/scroll-margin
3665
3689
  */
3666
3690
  "scroll-ml": [{
3667
- "scroll-ml": A()
3691
+ "scroll-ml": k()
3668
3692
  }],
3669
3693
  /**
3670
3694
  * Scroll Padding
3671
3695
  * @see https://tailwindcss.com/docs/scroll-padding
3672
3696
  */
3673
3697
  "scroll-p": [{
3674
- "scroll-p": A()
3698
+ "scroll-p": k()
3675
3699
  }],
3676
3700
  /**
3677
3701
  * Scroll Padding X
3678
3702
  * @see https://tailwindcss.com/docs/scroll-padding
3679
3703
  */
3680
3704
  "scroll-px": [{
3681
- "scroll-px": A()
3705
+ "scroll-px": k()
3682
3706
  }],
3683
3707
  /**
3684
3708
  * Scroll Padding Y
3685
3709
  * @see https://tailwindcss.com/docs/scroll-padding
3686
3710
  */
3687
3711
  "scroll-py": [{
3688
- "scroll-py": A()
3712
+ "scroll-py": k()
3689
3713
  }],
3690
3714
  /**
3691
3715
  * Scroll Padding Start
3692
3716
  * @see https://tailwindcss.com/docs/scroll-padding
3693
3717
  */
3694
3718
  "scroll-ps": [{
3695
- "scroll-ps": A()
3719
+ "scroll-ps": k()
3696
3720
  }],
3697
3721
  /**
3698
3722
  * Scroll Padding End
3699
3723
  * @see https://tailwindcss.com/docs/scroll-padding
3700
3724
  */
3701
3725
  "scroll-pe": [{
3702
- "scroll-pe": A()
3726
+ "scroll-pe": k()
3703
3727
  }],
3704
3728
  /**
3705
3729
  * Scroll Padding Top
3706
3730
  * @see https://tailwindcss.com/docs/scroll-padding
3707
3731
  */
3708
3732
  "scroll-pt": [{
3709
- "scroll-pt": A()
3733
+ "scroll-pt": k()
3710
3734
  }],
3711
3735
  /**
3712
3736
  * Scroll Padding Right
3713
3737
  * @see https://tailwindcss.com/docs/scroll-padding
3714
3738
  */
3715
3739
  "scroll-pr": [{
3716
- "scroll-pr": A()
3740
+ "scroll-pr": k()
3717
3741
  }],
3718
3742
  /**
3719
3743
  * Scroll Padding Bottom
3720
3744
  * @see https://tailwindcss.com/docs/scroll-padding
3721
3745
  */
3722
3746
  "scroll-pb": [{
3723
- "scroll-pb": A()
3747
+ "scroll-pb": k()
3724
3748
  }],
3725
3749
  /**
3726
3750
  * Scroll Padding Left
3727
3751
  * @see https://tailwindcss.com/docs/scroll-padding
3728
3752
  */
3729
3753
  "scroll-pl": [{
3730
- "scroll-pl": A()
3754
+ "scroll-pl": k()
3731
3755
  }],
3732
3756
  /**
3733
3757
  * Scroll Snap Align
@@ -4022,7 +4046,7 @@ const Vt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4022
4046
  }
4023
4047
  ));
4024
4048
  Vt.displayName = "CardHeader";
4025
- const jt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4049
+ const Wt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4026
4050
  "h3",
4027
4051
  {
4028
4052
  ref: t,
@@ -4033,8 +4057,8 @@ const jt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4033
4057
  ...e
4034
4058
  }
4035
4059
  ));
4036
- jt.displayName = "CardTitle";
4037
- const Wt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4060
+ Wt.displayName = "CardTitle";
4061
+ const jt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4038
4062
  "p",
4039
4063
  {
4040
4064
  ref: t,
@@ -4042,7 +4066,7 @@ const Wt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
4042
4066
  ...e
4043
4067
  }
4044
4068
  ));
4045
- Wt.displayName = "CardDescription";
4069
+ jt.displayName = "CardDescription";
4046
4070
  const Bt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a("div", { ref: t, className: n("p-6 pt-0", r), ...e }));
4047
4071
  Bt.displayName = "CardContent";
4048
4072
  const Ht = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
@@ -4178,10 +4202,10 @@ const Lt = ({ compact: r = !1 }) => {
4178
4202
  )
4179
4203
  ] }) });
4180
4204
  }, Ft = () => {
4181
- const { chatMessages: r, sendMessage: e, isConnected: t, theme: o } = Se(), [i, l] = R(""), [s, c] = R(!1), d = he(null), g = o === "dark", w = () => {
4205
+ const { chatMessages: r, sendMessage: e, isConnected: t, theme: o } = Se(), [i, l] = T(""), [s, c] = T(!1), d = he(null), g = o === "dark", w = () => {
4182
4206
  d.current?.scrollIntoView({ behavior: "smooth" });
4183
4207
  };
4184
- ee(() => {
4208
+ te(() => {
4185
4209
  w();
4186
4210
  }, [r]);
4187
4211
  const E = async () => {
@@ -4195,7 +4219,7 @@ const Lt = ({ compact: r = !1 }) => {
4195
4219
  } finally {
4196
4220
  c(!1);
4197
4221
  }
4198
- }, T = (x) => {
4222
+ }, R = (x) => {
4199
4223
  x.key === "Enter" && !x.shiftKey && (x.preventDefault(), E());
4200
4224
  }, V = (x) => new Date(x).toLocaleTimeString("en-US", {
4201
4225
  hour: "2-digit",
@@ -4309,7 +4333,7 @@ const Lt = ({ compact: r = !1 }) => {
4309
4333
  {
4310
4334
  value: i,
4311
4335
  onChange: (x) => l(x.target.value),
4312
- onKeyDown: T,
4336
+ onKeyDown: R,
4313
4337
  placeholder: t ? "Message Aria..." : "Connecting...",
4314
4338
  disabled: !t || s,
4315
4339
  className: n(
@@ -4345,19 +4369,19 @@ const Lt = ({ compact: r = !1 }) => {
4345
4369
  toggleMute: g,
4346
4370
  displayMode: w,
4347
4371
  theme: E,
4348
- setVideoElement: T,
4372
+ setVideoElement: R,
4349
4373
  isSessionPreloaded: V,
4350
4374
  refreshSession: x,
4351
4375
  minimizeAssistant: I,
4352
4376
  maximizeAssistant: j,
4353
- toolCallState: W
4354
- } = Se(), O = he(null), P = he(null);
4355
- ee(() => {
4356
- P.current && (P.current.scrollTop = P.current.scrollHeight);
4357
- }, [s]), ee(() => (O.current && (console.log("[AriaWidget] Registering video element, preloaded:", V, "minimized:", e), T(O.current)), () => {
4358
- T(null);
4359
- }), [T, V, e]);
4360
- const h = E === "dark", _ = w === "bottom-right", q = w === "center";
4377
+ toolCallState: B
4378
+ } = Se(), O = he(null), D = he(null);
4379
+ te(() => {
4380
+ D.current && (D.current.scrollTop = D.current.scrollHeight);
4381
+ }, [s]), te(() => (O.current && (console.log("[AriaWidget] Registering video element, preloaded:", V, "minimized:", e), R(O.current)), () => {
4382
+ R(null);
4383
+ }), [R, V, e]);
4384
+ const h = E === "dark", _ = w === "bottom-right", J = w === "center";
4361
4385
  return e ? /* @__PURE__ */ a(
4362
4386
  "div",
4363
4387
  {
@@ -4388,7 +4412,7 @@ const Lt = ({ compact: r = !1 }) => {
4388
4412
  className: "w-full h-full object-cover"
4389
4413
  }
4390
4414
  ),
4391
- W.isActive && t && /* @__PURE__ */ y(
4415
+ B.isActive && t && /* @__PURE__ */ y(
4392
4416
  "div",
4393
4417
  {
4394
4418
  className: n(
@@ -4409,7 +4433,7 @@ const Lt = ({ compact: r = !1 }) => {
4409
4433
  /* @__PURE__ */ a("span", { className: n(
4410
4434
  "text-[10px] font-semibold",
4411
4435
  h ? "text-amber-200" : "text-amber-800"
4412
- ), children: W.toolName ? W.toolName.replace(/_/g, " ") : "Processing..." })
4436
+ ), children: B.toolName ? B.toolName.replace(/_/g, " ") : "Processing..." })
4413
4437
  ]
4414
4438
  }
4415
4439
  ),
@@ -4483,8 +4507,8 @@ const Lt = ({ compact: r = !1 }) => {
4483
4507
  src: Ge,
4484
4508
  alt: "Aria",
4485
4509
  className: "w-full h-full object-cover",
4486
- onError: (L) => {
4487
- L.currentTarget.style.display = "none";
4510
+ onError: (H) => {
4511
+ H.currentTarget.style.display = "none";
4488
4512
  }
4489
4513
  }
4490
4514
  ) })
@@ -4538,7 +4562,7 @@ const Lt = ({ compact: r = !1 }) => {
4538
4562
  _ && (i ? "w-[960px]" : "w-[640px]"),
4539
4563
  _ && "h-[500px]",
4540
4564
  // Center mode: immersive but with breathing room
4541
- q && "fixed inset-8 md:inset-16 lg:inset-20 rounded-2xl"
4565
+ J && "fixed inset-8 md:inset-16 lg:inset-20 rounded-2xl"
4542
4566
  ),
4543
4567
  style: {
4544
4568
  zIndex: 9999,
@@ -4595,8 +4619,8 @@ const Lt = ({ compact: r = !1 }) => {
4595
4619
  src: Ge,
4596
4620
  alt: "Aria",
4597
4621
  className: "w-full h-full object-cover",
4598
- onError: (L) => {
4599
- L.currentTarget.style.display = "none";
4622
+ onError: (H) => {
4623
+ H.currentTarget.style.display = "none";
4600
4624
  }
4601
4625
  }
4602
4626
  ) })
@@ -4605,7 +4629,7 @@ const Lt = ({ compact: r = !1 }) => {
4605
4629
  "text-2xl font-bold tracking-tight mb-2",
4606
4630
  h ? "text-white" : "text-gray-900"
4607
4631
  ), children: "Aria is joining..." }),
4608
- /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5 mb-6", children: [0, 1, 2].map((L) => /* @__PURE__ */ a(
4632
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5 mb-6", children: [0, 1, 2].map((H) => /* @__PURE__ */ a(
4609
4633
  "div",
4610
4634
  {
4611
4635
  className: n(
@@ -4614,10 +4638,10 @@ const Lt = ({ compact: r = !1 }) => {
4614
4638
  ),
4615
4639
  style: {
4616
4640
  animation: "aria-loading-bounce 1.4s ease-in-out infinite",
4617
- animationDelay: `${L * 0.15}s`
4641
+ animationDelay: `${H * 0.15}s`
4618
4642
  }
4619
4643
  },
4620
- L
4644
+ H
4621
4645
  )) }),
4622
4646
  /* @__PURE__ */ a("p", { className: n(
4623
4647
  "text-sm font-medium px-4 py-2 rounded-full",
@@ -4677,7 +4701,7 @@ const Lt = ({ compact: r = !1 }) => {
4677
4701
  className: "w-full h-full object-contain"
4678
4702
  }
4679
4703
  ),
4680
- W.isActive && t && /* @__PURE__ */ y(
4704
+ B.isActive && t && /* @__PURE__ */ y(
4681
4705
  "div",
4682
4706
  {
4683
4707
  className: n(
@@ -4699,13 +4723,13 @@ const Lt = ({ compact: r = !1 }) => {
4699
4723
  /* @__PURE__ */ a("span", { className: n(
4700
4724
  "text-xs font-semibold",
4701
4725
  h ? "text-amber-200" : "text-amber-800"
4702
- ), children: W.toolName ? `Running: ${W.toolName.replace(/_/g, " ")}` : "Processing..." }),
4726
+ ), children: B.toolName ? `Running: ${B.toolName.replace(/_/g, " ")}` : "Processing..." }),
4703
4727
  /* @__PURE__ */ a("span", { className: n(
4704
4728
  "text-[10px]",
4705
4729
  h ? "text-amber-400" : "text-amber-600"
4706
4730
  ), children: "Please wait..." })
4707
4731
  ] }),
4708
- /* @__PURE__ */ a("div", { className: "flex items-center gap-0.5 ml-1", children: [0, 1, 2].map((L) => /* @__PURE__ */ a(
4732
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-0.5 ml-1", children: [0, 1, 2].map((H) => /* @__PURE__ */ a(
4709
4733
  "div",
4710
4734
  {
4711
4735
  className: n(
@@ -4714,15 +4738,15 @@ const Lt = ({ compact: r = !1 }) => {
4714
4738
  ),
4715
4739
  style: {
4716
4740
  animation: "aria-loading-bounce 1.4s ease-in-out infinite",
4717
- animationDelay: `${L * 0.15}s`
4741
+ animationDelay: `${H * 0.15}s`
4718
4742
  }
4719
4743
  },
4720
- L
4744
+ H
4721
4745
  )) })
4722
4746
  ]
4723
4747
  }
4724
4748
  ),
4725
- s && t && !W.isActive && /* @__PURE__ */ a(
4749
+ s && t && !B.isActive && /* @__PURE__ */ a(
4726
4750
  "div",
4727
4751
  {
4728
4752
  className: n(
@@ -4733,7 +4757,7 @@ const Lt = ({ compact: r = !1 }) => {
4733
4757
  style: { backdropFilter: "blur(4px)" },
4734
4758
  children: /* @__PURE__ */ y("div", { className: "flex items-start gap-2 max-w-full", children: [
4735
4759
  /* @__PURE__ */ a("div", { className: "w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse shrink-0 mt-1" }),
4736
- /* @__PURE__ */ a("p", { ref: P, className: "text-xs leading-relaxed flex-1 max-h-[3.5em] overflow-y-auto scrollbar-hide", children: s })
4760
+ /* @__PURE__ */ a("p", { ref: D, className: "text-xs leading-relaxed flex-1 max-h-[3.5em] overflow-y-auto scrollbar-hide", children: s })
4737
4761
  ] })
4738
4762
  }
4739
4763
  ),
@@ -4784,7 +4808,7 @@ const Lt = ({ compact: r = !1 }) => {
4784
4808
  h ? "bg-gray-800/80 hover:bg-gray-700 text-gray-300" : "bg-gray-100/80 hover:bg-gray-200 text-gray-600"
4785
4809
  ),
4786
4810
  title: "Minimize",
4787
- children: /* @__PURE__ */ a(jr, { className: "h-4 w-4" })
4811
+ children: /* @__PURE__ */ a(Wr, { className: "h-4 w-4" })
4788
4812
  }
4789
4813
  ),
4790
4814
  /* @__PURE__ */ a(
@@ -4808,20 +4832,20 @@ const Lt = ({ compact: r = !1 }) => {
4808
4832
  ] })
4809
4833
  }
4810
4834
  );
4811
- }, je = ({
4835
+ }, We = ({
4812
4836
  children: r,
4813
4837
  styles: e = "",
4814
4838
  className: t,
4815
4839
  style: o,
4816
4840
  as: i = "div"
4817
4841
  }) => {
4818
- const l = he(null), [s, c] = R(null);
4819
- ee(() => {
4842
+ const l = he(null), [s, c] = T(null);
4843
+ te(() => {
4820
4844
  const w = l.current;
4821
4845
  if (!w) return;
4822
4846
  let E = w.shadowRoot;
4823
4847
  E || (E = w.attachShadow({ mode: "open" })), c(E);
4824
- }, []), ee(() => {
4848
+ }, []), te(() => {
4825
4849
  if (!s || !e) return;
4826
4850
  const w = s.querySelector("style[data-aria-styles]");
4827
4851
  if (w) {
@@ -4833,8 +4857,8 @@ const Lt = ({ compact: r = !1 }) => {
4833
4857
  E.remove();
4834
4858
  };
4835
4859
  }, [s, e]);
4836
- const [d, g] = R(null);
4837
- return ee(() => {
4860
+ const [d, g] = T(null);
4861
+ return te(() => {
4838
4862
  if (!s) return;
4839
4863
  let w = s.querySelector(".aria-shadow-content");
4840
4864
  w || (w = document.createElement("div"), w.className = "aria-shadow-content", s.appendChild(w)), g(w);
@@ -4844,11 +4868,11 @@ const Lt = ({ compact: r = !1 }) => {
4844
4868
  ref: l,
4845
4869
  className: t,
4846
4870
  style: o,
4847
- children: d && Wr(r, d)
4871
+ children: d && jr(r, d)
4848
4872
  }
4849
4873
  );
4850
4874
  }, Er = '@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-700:oklch(50.5% .213 27.518);--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-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--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}.static{position:static}.-inset-1\\.5{inset:calc(var(--spacing)*-1.5)}.-inset-2{inset:calc(var(--spacing)*-2)}.-inset-3{inset:calc(var(--spacing)*-3)}.inset-0{inset:calc(var(--spacing)*0)}.inset-8{inset:calc(var(--spacing)*8)}.inset-\\[2px\\]{inset:2px}.inset-\\[3px\\]{inset:3px}.top-0{top:calc(var(--spacing)*0)}.top-3{top:calc(var(--spacing)*3)}.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-3{bottom:calc(var(--spacing)*3)}.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%}.left-3{left:calc(var(--spacing)*3)}.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-1{margin-left:calc(var(--spacing)*1)}.ml-4{margin-left:calc(var(--spacing)*4)}.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-5{height:calc(var(--spacing)*5)}.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-\\[240px\\]{height:240px}.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-\\[3\\.5em\\]{max-height:3.5em}.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-5{width:calc(var(--spacing)*5)}.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-0\\.5{gap:calc(var(--spacing)*.5)}.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-amber-200{border-color:var(--color-amber-200)}.border-amber-700\\/50{border-color:#b7500080}@supports (color:color-mix(in lab,red,red)){.border-amber-700\\/50{border-color:color-mix(in oklab,var(--color-amber-700)50%,transparent)}}.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-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-amber-800\\/50{background-color:#953d0080}@supports (color:color-mix(in lab,red,red)){.bg-amber-800\\/50{background-color:color-mix(in oklab,var(--color-amber-800)50%,transparent)}}.bg-amber-900\\/30{background-color:#7b33064d}@supports (color:color-mix(in lab,red,red)){.bg-amber-900\\/30{background-color:color-mix(in oklab,var(--color-amber-900)30%,transparent)}}.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\\/90{background-color:#030712e6}@supports (color:color-mix(in lab,red,red)){.bg-gray-950\\/90{background-color:color-mix(in oklab,var(--color-gray-950)90%,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-600{--tw-gradient-to:var(--color-purple-600);--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-1\\.5{padding-block:calc(var(--spacing)*1.5)}.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-amber-200{color:var(--color-amber-200)}.text-amber-400{color:var(--color-amber-400)}.text-amber-600{color:var(--color-amber-600)}.text-amber-800{color:var(--color-amber-800)}.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-700{color:var(--color-red-700)}.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-2{--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)}.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\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-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-xl:hover{--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)}.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}.aria-assistant-container .scrollbar-hide::-webkit-scrollbar{display:none}.aria-assistant-container .scrollbar-hide{-ms-overflow-style:none;scrollbar-width: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}}';
4851
- function We() {
4875
+ function je() {
4852
4876
  return Er;
4853
4877
  }
4854
4878
  const ao = Er, Ot = ({
@@ -4858,18 +4882,18 @@ const ao = Er, Ot = ({
4858
4882
  className: o,
4859
4883
  ...i
4860
4884
  }) => {
4861
- const { openAssistant: l, isSessionPreloaded: s, sessionManagerStatus: c, config: d, isOpen: g, theme: w } = Se(), E = r || d.triggerLabel || "Talk to Aria", T = w === "dark", V = s || c === "ready";
4885
+ const { openAssistant: l, isSessionPreloaded: s, sessionManagerStatus: c, config: d, isOpen: g, theme: w } = Se(), E = r || d.triggerLabel || "Talk to Aria", R = w === "dark", V = s || c === "ready";
4862
4886
  return g ? null : /* @__PURE__ */ a(
4863
- je,
4887
+ We,
4864
4888
  {
4865
- styles: We(),
4889
+ styles: je(),
4866
4890
  style: {
4867
4891
  position: "fixed",
4868
4892
  bottom: "1.5rem",
4869
4893
  right: "1.5rem",
4870
4894
  zIndex: 9997
4871
4895
  },
4872
- children: /* @__PURE__ */ a("div", { className: n("aria-assistant-container", T && "aria-dark"), children: /* @__PURE__ */ y(
4896
+ children: /* @__PURE__ */ a("div", { className: n("aria-assistant-container", R && "aria-dark"), children: /* @__PURE__ */ y(
4873
4897
  "button",
4874
4898
  {
4875
4899
  onClick: (x) => {
@@ -4881,12 +4905,12 @@ const ao = Er, Ot = ({
4881
4905
  "aria-animate-slide-up",
4882
4906
  "border-none outline-none",
4883
4907
  // Light mode styling
4884
- !T && [
4908
+ !R && [
4885
4909
  "bg-white shadow-[0_8px_30px_rgb(0,0,0,0.12)]",
4886
4910
  "hover:bg-gray-50 hover:shadow-[0_8px_30px_rgb(0,0,0,0.16)] hover:-translate-y-0.5"
4887
4911
  ],
4888
4912
  // Dark mode styling
4889
- T && [
4913
+ R && [
4890
4914
  "bg-gray-900 shadow-[0_8px_30px_rgb(0,0,0,0.3)]",
4891
4915
  "hover:bg-gray-850 hover:shadow-[0_8px_30px_rgb(0,0,0,0.4)] hover:-translate-y-0.5"
4892
4916
  ],
@@ -4897,7 +4921,7 @@ const ao = Er, Ot = ({
4897
4921
  e ? /* @__PURE__ */ y("div", { className: n(
4898
4922
  "relative w-9 h-9 rounded-lg overflow-hidden shrink-0",
4899
4923
  "shadow-sm transition-all duration-200",
4900
- T ? "bg-gray-800" : "bg-gray-100"
4924
+ R ? "bg-gray-800" : "bg-gray-100"
4901
4925
  ), children: [
4902
4926
  /* @__PURE__ */ a(
4903
4927
  "img",
@@ -4921,7 +4945,7 @@ const ao = Er, Ot = ({
4921
4945
  ),
4922
4946
  /* @__PURE__ */ a("span", { className: n(
4923
4947
  "absolute bottom-0 right-0 w-2.5 h-2.5 rounded-full border-2",
4924
- T ? "border-gray-900" : "border-white",
4948
+ R ? "border-gray-900" : "border-white",
4925
4949
  V ? "bg-emerald-500" : "bg-amber-500 animate-pulse"
4926
4950
  ) })
4927
4951
  ] }) : /* @__PURE__ */ a("div", { className: n(
@@ -4932,11 +4956,11 @@ const ao = Er, Ot = ({
4932
4956
  /* @__PURE__ */ y("div", { className: "relative flex flex-col items-start min-w-0 text-left", children: [
4933
4957
  /* @__PURE__ */ a("span", { className: n(
4934
4958
  "font-bold text-[13px] tracking-tight leading-none",
4935
- T ? "text-white" : "text-gray-900"
4959
+ R ? "text-white" : "text-gray-900"
4936
4960
  ), children: E }),
4937
4961
  /* @__PURE__ */ a("span", { className: n(
4938
4962
  "text-[10px] font-medium mt-1 leading-none opacity-70",
4939
- T ? "text-gray-400" : "text-gray-500"
4963
+ R ? "text-gray-400" : "text-gray-500"
4940
4964
  ), children: "I'm here to chat" })
4941
4965
  ] })
4942
4966
  ]
@@ -4950,9 +4974,9 @@ const ao = Er, Ot = ({
4950
4974
  triggerLabel: t
4951
4975
  }) => {
4952
4976
  const { isOpen: o, isMinimized: i, closeAssistant: l, minimizeAssistant: s } = Se();
4953
- return /* @__PURE__ */ y(Te, { children: [
4977
+ return /* @__PURE__ */ y(Re, { children: [
4954
4978
  r && !o && /* @__PURE__ */ a(Ot, { showAvatar: e, label: t }),
4955
- o && /* @__PURE__ */ y(Te, { children: [
4979
+ o && /* @__PURE__ */ y(Re, { children: [
4956
4980
  !i && /* @__PURE__ */ a(
4957
4981
  "div",
4958
4982
  {
@@ -4972,9 +4996,9 @@ const ao = Er, Ot = ({
4972
4996
  }
4973
4997
  ),
4974
4998
  /* @__PURE__ */ a(
4975
- je,
4999
+ We,
4976
5000
  {
4977
- styles: We(),
5001
+ styles: je(),
4978
5002
  style: {
4979
5003
  position: "fixed",
4980
5004
  zIndex: 9999,
@@ -4988,11 +5012,11 @@ const ao = Er, Ot = ({
4988
5012
  ] })
4989
5013
  ] });
4990
5014
  }, io = ({ config: r, children: e }) => {
4991
- const [t, o] = R(!1), [i, l] = R(!1), [s, c] = R(!1), [d, g] = R(!1), [w, E] = R([]), [T, V] = R(""), [x, I] = R(!1), [j, W] = R(!1), [O, P] = R(null), [h, _] = R("user"), [q, L] = R("bottom-right"), [A, K] = R({
5015
+ const [t, o] = T(!1), [i, l] = T(!1), [s, c] = T(!1), [d, g] = T(!1), [w, E] = T([]), [R, V] = T(""), [x, I] = T(!1), [j, B] = T(!1), [O, D] = T(null), [h, _] = T("user"), [J, H] = T("bottom-right"), [k, q] = T({
4992
5016
  isActive: !1,
4993
5017
  toolName: null,
4994
5018
  toolData: null
4995
- }), [re, J] = R({
5019
+ }), [oe, X] = T({
4996
5020
  session_id: null,
4997
5021
  token: null,
4998
5022
  expires_at: null,
@@ -5000,184 +5024,182 @@ const ao = Er, Ot = ({
5000
5024
  lastError: null,
5001
5025
  isPreloaded: !1,
5002
5026
  isRefreshing: !1
5003
- }), [G, ue] = R("idle"), [te, k] = R(!1), U = r.theme || "light", b = he(null), v = he(null), le = he(null), oe = M((u) => {
5004
- const { newStatus: S } = u.data;
5005
- ue(S), S === "preloading" || S === "connecting" ? t && g(!0) : S === "ready" ? (g(!1), c(!0)) : S === "error" && g(!1);
5006
- }, [t]), ae = M((u) => {
5007
- const S = u.data;
5008
- if (console.log("[AriaProvider] Session ready event:", S), b.current) {
5009
- const Z = b.current.getSessionState();
5010
- J(Z);
5027
+ }), [G, ue] = T("idle"), [ae, S] = T(!1), U = r.theme || "light", b = he(null), v = he(null), le = he(null), ie = M((u) => {
5028
+ const { newStatus: A } = u.data;
5029
+ ue(A), A === "preloading" || A === "connecting" ? t && g(!0) : A === "ready" ? (g(!1), c(!0)) : A === "error" && g(!1);
5030
+ }, [t]), se = M((u) => {
5031
+ const A = u.data;
5032
+ if (console.log("[AriaProvider] Session ready event:", A), b.current) {
5033
+ const $ = b.current.getSessionState();
5034
+ X($);
5011
5035
  }
5012
- if (S.lazyInit && S.tokenReady && t && b.current && !b.current.isAnamClientInitialized()) {
5036
+ if (A.lazyInit && A.tokenReady && t && b.current && !b.current.isAnamClientInitialized()) {
5013
5037
  console.log("[AriaProvider] Token received while widget is open, initializing Anam client"), g(!0), b.current.initializeSessionOnDemand().then(() => {
5014
- console.log("[AriaProvider] Anam client initialized after token received"), g(!1), c(!0), P(null);
5038
+ console.log("[AriaProvider] Anam client initialized after token received"), g(!1), c(!0), D(null);
5015
5039
  }).catch((xe) => {
5016
- console.error("[AriaProvider] Failed to initialize Anam client:", xe), g(!1), P(xe instanceof Error ? xe.message : "Failed to initialize session");
5040
+ console.error("[AriaProvider] Failed to initialize Anam client:", xe), g(!1), D(xe instanceof Error ? xe.message : "Failed to initialize session");
5017
5041
  });
5018
5042
  return;
5019
5043
  }
5020
- c(!0), g(!1), P(null);
5021
- }, [t]), $ = M((u) => {
5022
- const S = u.error?.message || "Session error";
5023
- if (console.error("[AriaProvider] Session error:", S), P(S), g(!1), b.current) {
5024
- const Z = b.current.getSessionState();
5025
- J(Z);
5044
+ c(!0), g(!1), D(null);
5045
+ }, [t]), re = M((u) => {
5046
+ const A = u.error?.message || "Session error";
5047
+ if (console.error("[AriaProvider] Session error:", A), D(A), g(!1), b.current) {
5048
+ const $ = b.current.getSessionState();
5049
+ X($);
5026
5050
  }
5027
- }, []), B = M((u) => {
5028
- const { connected: S } = u.data;
5029
- if (c(S), !S && b.current) {
5030
- const Z = b.current.getSessionState();
5031
- J(Z);
5051
+ }, []), W = M((u) => {
5052
+ const { connected: A } = u.data;
5053
+ if (c(A), !A && b.current) {
5054
+ const $ = b.current.getSessionState();
5055
+ X($);
5032
5056
  }
5033
- }, []), H = M((u) => {
5034
- const { messages: S } = u.data;
5035
- S && E(S);
5036
- }, []), ie = M((u) => {
5037
- const { liveTranscript: S } = u.data;
5038
- S !== void 0 && V(S);
5057
+ }, []), L = M((u) => {
5058
+ const { messages: A } = u.data;
5059
+ A && E(A);
5060
+ }, []), K = M((u) => {
5061
+ const { liveTranscript: A } = u.data;
5062
+ A !== void 0 && V(A);
5039
5063
  }, []), ce = M((u) => {
5040
5064
  console.log("[AriaProvider] WebSocket trigger event:", u.data), le.current?.("websocket");
5041
- }, []), D = M((u) => {
5042
- const S = u.data;
5043
- console.log("[AriaProvider] Tool call event:", S), K({
5044
- isActive: S.isActive,
5045
- toolName: S.toolName,
5046
- toolData: S.toolData
5065
+ }, []), P = M((u) => {
5066
+ const A = u.data;
5067
+ console.log("[AriaProvider] Tool call event:", A), q({
5068
+ isActive: A.isActive,
5069
+ toolName: A.toolName,
5070
+ toolData: A.toolData
5047
5071
  });
5048
5072
  }, []);
5049
- ee(() => {
5073
+ te(() => {
5050
5074
  const u = Q.getInstance(r);
5051
- b.current = u, u.addEventListener("status_change", oe), u.addEventListener("session_ready", ae), u.addEventListener("session_error", $), u.addEventListener("connection_change", B), u.addEventListener("message_history", H), u.addEventListener("message_stream", ie), u.addEventListener("tool_call", D), u.setWebSocketTriggerCallback(ce), J(u.getSessionState()), ue(u.getStatus()), c(u.isConnected()), E(u.getChatMessages()), V(u.getLiveTranscript()), W(u.isMuted()), k(u.isSessionPaused());
5052
- const S = u.getToolCallState();
5053
- return K(S), !u.isConnected() && u.getStatus() === "idle" && u.connect(), () => {
5054
- u.removeEventListener("status_change", oe), u.removeEventListener("session_ready", ae), u.removeEventListener("session_error", $), u.removeEventListener("connection_change", B), u.removeEventListener("message_history", H), u.removeEventListener("message_stream", ie), u.removeEventListener("tool_call", D), u.setWebSocketTriggerCallback(null);
5075
+ b.current = u, u.addEventListener("status_change", ie), u.addEventListener("session_ready", se), u.addEventListener("session_error", re), u.addEventListener("connection_change", W), u.addEventListener("message_history", L), u.addEventListener("message_stream", K), u.addEventListener("tool_call", P), u.setWebSocketTriggerCallback(ce), X(u.getSessionState()), ue(u.getStatus()), c(u.isConnected()), E(u.getChatMessages()), V(u.getLiveTranscript()), B(u.isMuted()), S(u.isSessionPaused());
5076
+ const A = u.getToolCallState();
5077
+ return q(A), !u.isConnected() && u.getStatus() === "idle" && u.connect(), () => {
5078
+ u.removeEventListener("status_change", ie), u.removeEventListener("session_ready", se), u.removeEventListener("session_error", re), u.removeEventListener("connection_change", W), u.removeEventListener("message_history", L), u.removeEventListener("message_stream", K), u.removeEventListener("tool_call", P), u.setWebSocketTriggerCallback(null);
5055
5079
  };
5056
5080
  }, [
5057
5081
  r,
5058
- oe,
5059
- ae,
5060
- $,
5061
- B,
5062
- H,
5063
5082
  ie,
5064
- D,
5083
+ se,
5084
+ re,
5085
+ W,
5086
+ L,
5087
+ K,
5088
+ P,
5065
5089
  ce
5066
5090
  ]);
5067
- const we = M((u) => {
5068
- const S = v.current;
5069
- v.current = u, u && b.current ? (console.log("[AriaProvider] Attaching video stream to element"), b.current.attachToVideoElement(u)) : !u && S && b.current && (console.log("[AriaProvider] Detaching video stream from element"), b.current.detachFromVideoElement(S));
5091
+ const pe = M((u) => {
5092
+ const A = v.current;
5093
+ v.current = u, u && b.current ? (console.log("[AriaProvider] Attaching video stream to element"), b.current.attachToVideoElement(u)) : !u && A && b.current && (console.log("[AriaProvider] Detaching video stream from element"), b.current.detachFromVideoElement(A));
5070
5094
  }, []), de = M((u) => {
5071
5095
  if (!b.current) {
5072
5096
  console.error("[AriaProvider] Session manager not initialized");
5073
5097
  return;
5074
5098
  }
5075
- const S = u?.userTrigger ?? !0;
5076
- b.current.triggerSession(S);
5077
- }, []), pe = M(async () => {
5099
+ const A = u?.userTrigger ?? !0;
5100
+ b.current.triggerSession(A);
5101
+ }, []), me = M(async () => {
5078
5102
  b.current && (b.current.isConnected() || b.current.connect());
5079
5103
  }, []), be = M(async () => {
5080
5104
  if (b.current)
5081
5105
  try {
5082
5106
  await b.current.forceEndSession(), c(!1), E([]), V("");
5083
5107
  const u = b.current.getSessionState();
5084
- J(u);
5108
+ X(u);
5085
5109
  } catch (u) {
5086
- const S = u instanceof Error ? u.message : "Failed to stop session";
5087
- P(S), r.onError?.(u instanceof Error ? u : new Error(S));
5110
+ const A = u instanceof Error ? u.message : "Failed to stop session";
5111
+ D(A), r.onError?.(u instanceof Error ? u : new Error(A));
5088
5112
  }
5089
- }, [r]), me = M(async () => {
5113
+ }, [r]), fe = M(async () => {
5090
5114
  b.current && await b.current.refreshSession();
5091
5115
  }, []), p = M((u = "user") => {
5092
- if (_(u), L(u === "websocket" ? "center" : "bottom-right"), o(!0), l(!1), P(null), !b.current) return;
5093
- const S = b.current.isSessionPaused();
5094
- if (console.log("[AriaProvider] openAssistant - isSessionPaused:", S, "persistSession:", r.persistSession), S) {
5116
+ if (_(u), H(u === "websocket" ? "center" : "bottom-right"), o(!0), l(!1), D(null), !b.current) return;
5117
+ const A = b.current.isSessionPaused();
5118
+ if (console.log("[AriaProvider] openAssistant - isSessionPaused:", A, "persistSession:", r.persistSession), A) {
5095
5119
  console.log("[AriaProvider] Resuming paused session"), g(!0), b.current.resumeSession().then(() => {
5096
- g(!1), c(!0), k(!1);
5097
- const Y = b.current.getSessionState();
5098
- J(Y), E(b.current.getChatMessages());
5099
- }).catch((Y) => {
5100
- console.error("[AriaProvider] Failed to resume session:", Y), g(!1), k(!1), P(Y instanceof Error ? Y.message : "Failed to resume session");
5120
+ g(!1), c(!0), S(!1);
5121
+ const ee = b.current.getSessionState();
5122
+ X(ee), E(b.current.getChatMessages());
5123
+ }).catch((ee) => {
5124
+ console.error("[AriaProvider] Failed to resume session:", ee), g(!1), S(!1), D(ee instanceof Error ? ee.message : "Failed to resume session");
5101
5125
  });
5102
5126
  return;
5103
5127
  }
5104
- const Z = b.current.isAnamClientInitialized(), xe = b.current.hasSessionToken(), qe = b.current.getStatus();
5105
- console.log("[AriaProvider] openAssistant - isAnamReady:", Z, "hasToken:", xe, "status:", qe), Z && qe === "ready" ? (g(!1), c(!0), console.log("[AriaProvider] Opening with already initialized session")) : xe ? (g(!0), console.log("[AriaProvider] Initializing Anam client on demand (lazy init)"), b.current.initializeSessionOnDemand().then(() => {
5128
+ const $ = b.current.isAnamClientInitialized(), xe = b.current.hasSessionToken(), Ke = b.current.getStatus();
5129
+ console.log("[AriaProvider] openAssistant - isAnamReady:", $, "hasToken:", xe, "status:", Ke), $ && Ke === "ready" ? (g(!1), c(!0), console.log("[AriaProvider] Opening with already initialized session")) : xe ? (g(!0), console.log("[AriaProvider] Initializing Anam client on demand (lazy init)"), b.current.initializeSessionOnDemand().then(() => {
5106
5130
  console.log("[AriaProvider] Anam client initialized successfully"), g(!1), c(!0);
5107
- const Y = b.current.getSessionState();
5108
- J(Y);
5109
- }).catch((Y) => {
5110
- console.error("[AriaProvider] Failed to initialize Anam client:", Y), g(!1), Y.message?.includes("expired") ? P("Session expired, getting a new session...") : P(Y instanceof Error ? Y.message : "Failed to initialize session");
5131
+ const ee = b.current.getSessionState();
5132
+ X(ee);
5133
+ }).catch((ee) => {
5134
+ console.error("[AriaProvider] Failed to initialize Anam client:", ee), g(!1), ee.message?.includes("expired") ? D("Session expired, getting a new session...") : D(ee instanceof Error ? ee.message : "Failed to initialize session");
5111
5135
  })) : (g(!0), console.log("[AriaProvider] Opening, waiting for session token..."), b.current.isConnected() ? console.log("[AriaProvider] WebSocket connected, waiting for token response...") : (console.log("[AriaProvider] WebSocket not connected, connecting..."), b.current.connect()));
5112
5136
  }, [r.persistSession]);
5113
- ee(() => {
5137
+ te(() => {
5114
5138
  le.current = p;
5115
5139
  }, [p]);
5116
5140
  const N = M(() => {
5117
5141
  console.log("[AriaProvider] Minimizing assistant"), l(!0);
5118
- }, []), se = M(() => {
5142
+ }, []), Z = M(() => {
5119
5143
  console.log("[AriaProvider] Maximizing assistant"), l(!1);
5120
5144
  }, []), ye = M(() => {
5121
5145
  if (o(!1), l(!1), !b.current) return;
5122
5146
  v.current && b.current.detachFromVideoElement(v.current), V(""), b.current.clearLiveTranscript();
5123
5147
  const u = b.current.isPersistSessionEnabled();
5124
- console.log("[AriaProvider] closeAssistant - persistSession enabled:", u, "config:", r.persistSession), u ? (console.log("[AriaProvider] Pausing session (persistSession: true)"), b.current.pauseSession(), k(!0)) : (console.log("[AriaProvider] Ending session (persistSession: false)"), b.current.sendSessionEnd(), b.current.stopStreaming(), J({
5125
- session_id: null,
5126
- token: null,
5127
- expires_at: null,
5128
- isSessionReady: !1,
5129
- lastError: null,
5130
- isPreloaded: !1,
5131
- isRefreshing: !1
5132
- }), c(!1), E([]));
5148
+ if (console.log("[AriaProvider] closeAssistant - persistSession enabled:", u, "config:", r.persistSession), u)
5149
+ console.log("[AriaProvider] Pausing session (persistSession: true)"), b.current.pauseSession(), S(!0);
5150
+ else {
5151
+ console.log("[AriaProvider] Ending session (persistSession: false)"), b.current.endCurrentSession(), c(!1), E([]);
5152
+ const A = b.current.getSessionState();
5153
+ X(A);
5154
+ }
5133
5155
  }, [r.persistSession]), Ce = M(() => {
5134
5156
  I((u) => !u);
5135
- }, []), X = M(async (u) => {
5157
+ }, []), Y = M(async (u) => {
5136
5158
  if (!b.current || !s)
5137
5159
  throw new Error("Not connected to Aria");
5138
5160
  try {
5139
5161
  await b.current.sendMessage(u);
5140
- } catch (S) {
5141
- const Z = S instanceof Error ? S.message : "Failed to send message";
5142
- throw P(Z), r.onError?.(S instanceof Error ? S : new Error(Z)), S;
5162
+ } catch (A) {
5163
+ const $ = A instanceof Error ? A.message : "Failed to send message";
5164
+ throw D($), r.onError?.(A instanceof Error ? A : new Error($)), A;
5143
5165
  }
5144
5166
  }, [s, r]), Mr = M(() => {
5145
5167
  if (!b.current) return;
5146
5168
  const u = b.current.toggleMute();
5147
- W(u);
5148
- }, []), Cr = M(() => re.session_id, [re.session_id]), Nr = {
5169
+ B(u);
5170
+ }, []), Cr = M(() => oe.session_id, [oe.session_id]), Nr = {
5149
5171
  // UI State
5150
5172
  isOpen: t,
5151
5173
  isMinimized: i,
5152
5174
  isConnected: s,
5153
5175
  isLoading: d,
5154
5176
  chatMessages: w,
5155
- liveTranscript: T,
5177
+ liveTranscript: R,
5156
5178
  isChatVisible: x,
5157
5179
  isMuted: j,
5158
5180
  error: O,
5159
5181
  // Tool Call State
5160
- toolCallState: A,
5182
+ toolCallState: k,
5161
5183
  // Session State
5162
- sessionState: re,
5184
+ sessionState: oe,
5163
5185
  sessionManagerStatus: G,
5164
- isSessionPreloaded: re.isPreloaded && G === "ready",
5165
- isSessionPaused: te,
5186
+ isSessionPreloaded: oe.isPreloaded && G === "ready",
5187
+ isSessionPaused: ae,
5166
5188
  // Actions
5167
5189
  openAssistant: p,
5168
5190
  closeAssistant: ye,
5169
5191
  minimizeAssistant: N,
5170
- maximizeAssistant: se,
5192
+ maximizeAssistant: Z,
5171
5193
  toggleChat: Ce,
5172
- sendMessage: X,
5194
+ sendMessage: Y,
5173
5195
  toggleMute: Mr,
5174
- startSession: pe,
5196
+ startSession: me,
5175
5197
  stopSession: be,
5176
5198
  triggerSession: de,
5177
- refreshSession: me,
5178
- setVideoElement: we,
5199
+ refreshSession: fe,
5200
+ setVideoElement: pe,
5179
5201
  // Display State
5180
- displayMode: q,
5202
+ displayMode: J,
5181
5203
  triggerMode: h,
5182
5204
  theme: U,
5183
5205
  // Config
@@ -5216,13 +5238,13 @@ const ao = Er, Ot = ({
5216
5238
  isExpiringSoon: !1,
5217
5239
  timeUntilExpiry: null
5218
5240
  };
5219
- const O = new Date(r.expires_at).getTime(), P = Date.now(), h = O - P, _ = 300 * 1e3;
5241
+ const O = new Date(r.expires_at).getTime(), D = Date.now(), h = O - D, _ = 300 * 1e3;
5220
5242
  return {
5221
5243
  isExpired: h <= 0,
5222
5244
  isExpiringSoon: h > 0 && h <= _,
5223
5245
  timeUntilExpiry: h > 0 ? h : null
5224
5246
  };
5225
- }, [r.expires_at]), T = Be(() => ({
5247
+ }, [r.expires_at]), R = Be(() => ({
5226
5248
  sessionState: r,
5227
5249
  status: e,
5228
5250
  isPreloaded: t,
@@ -5248,14 +5270,14 @@ const ao = Er, Ot = ({
5248
5270
  await d();
5249
5271
  }, [d]), j = M((O = !0) => {
5250
5272
  g({ userTrigger: O });
5251
- }, [g]), W = Be(() => ({
5273
+ }, [g]), B = Be(() => ({
5252
5274
  endSession: V,
5253
5275
  refreshSession: x,
5254
5276
  startSession: I,
5255
5277
  triggerSession: j
5256
5278
  }), [V, x, I, j]);
5257
- return { session: T, actions: W };
5258
- }, no = ({ open: r, onOpenChange: e, children: t }) => /* @__PURE__ */ a(Te, { children: r && /* @__PURE__ */ y("div", { className: "fixed inset-0 z-50 flex items-center justify-center aria-animate-fade-in", children: [
5279
+ return { session: R, actions: B };
5280
+ }, no = ({ open: r, onOpenChange: e, children: t }) => /* @__PURE__ */ a(Re, { children: r && /* @__PURE__ */ y("div", { className: "fixed inset-0 z-50 flex items-center justify-center aria-animate-fade-in", children: [
5259
5281
  /* @__PURE__ */ a(
5260
5282
  "div",
5261
5283
  {
@@ -5306,7 +5328,7 @@ const Qt = ne.forwardRef(({ className: r, ...e }, t) => /* @__PURE__ */ a(
5306
5328
  }
5307
5329
  ));
5308
5330
  Qt.displayName = "DialogTitle";
5309
- const Kt = ({
5331
+ const qt = ({
5310
5332
  className: r,
5311
5333
  onClick: e,
5312
5334
  ...t
@@ -5329,12 +5351,12 @@ const Kt = ({
5329
5351
  ]
5330
5352
  }
5331
5353
  );
5332
- Kt.displayName = "DialogClose";
5333
- function qt(r) {
5354
+ qt.displayName = "DialogClose";
5355
+ function Kt(r) {
5334
5356
  return !r || typeof r != "string" ? !1 : r.split(".").length === 3;
5335
5357
  }
5336
- function Ke(r) {
5337
- if (!qt(r))
5358
+ function qe(r) {
5359
+ if (!Kt(r))
5338
5360
  return null;
5339
5361
  try {
5340
5362
  const o = r.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), i = o.padEnd(o.length + (4 - o.length % 4) % 4, "="), l = atob(i);
@@ -5344,7 +5366,7 @@ function Ke(r) {
5344
5366
  }
5345
5367
  }
5346
5368
  function Jt(r) {
5347
- const e = Ke(r);
5369
+ const e = qe(r);
5348
5370
  if (!e)
5349
5371
  return null;
5350
5372
  const t = [
@@ -5362,7 +5384,7 @@ function Jt(r) {
5362
5384
  return null;
5363
5385
  }
5364
5386
  function lo(r) {
5365
- const e = Ke(r);
5387
+ const e = qe(r);
5366
5388
  if (!e)
5367
5389
  return {
5368
5390
  sessionId: null,
@@ -5379,7 +5401,7 @@ function lo(r) {
5379
5401
  };
5380
5402
  }
5381
5403
  function co(r) {
5382
- const e = Ke(r);
5404
+ const e = qe(r);
5383
5405
  if (!e || typeof e.exp != "number")
5384
5406
  return !0;
5385
5407
  const t = Math.floor(Date.now() / 1e3);
@@ -5390,11 +5412,11 @@ const Xt = ({
5390
5412
  triggerLabel: e,
5391
5413
  container: t
5392
5414
  }) => {
5393
- const [o, i] = R(!1), [l, s] = R(!1), [c, d] = R(!1), [g, w] = R(!1), [E, T] = R([]), [V, x] = R(""), [I, j] = R(!1), [W, O] = R(!1), [P, h] = R(null), [_, q] = R("user"), [L, A] = R("bottom-right"), [K, re] = R({
5415
+ const [o, i] = T(!1), [l, s] = T(!1), [c, d] = T(!1), [g, w] = T(!1), [E, R] = T([]), [V, x] = T(""), [I, j] = T(!1), [B, O] = T(!1), [D, h] = T(null), [_, J] = T("user"), [H, k] = T("bottom-right"), [q, oe] = T({
5394
5416
  isActive: !1,
5395
5417
  toolName: null,
5396
5418
  toolData: null
5397
- }), [J, G] = R({
5419
+ }), [X, G] = T({
5398
5420
  session_id: null,
5399
5421
  token: null,
5400
5422
  expires_at: null,
@@ -5402,144 +5424,144 @@ const Xt = ({
5402
5424
  lastError: null,
5403
5425
  isPreloaded: !1,
5404
5426
  isRefreshing: !1
5405
- }), [, ue] = R("idle"), [, te] = R(!1), k = he(null), U = he(null), b = M((p) => {
5427
+ }), [, ue] = T("idle"), [, ae] = T(!1), S = he(null), U = he(null), b = M((p) => {
5406
5428
  const { newStatus: N } = p.data;
5407
5429
  ue(N), N === "preloading" || N === "connecting" ? o && w(!0) : N === "ready" ? (w(!1), d(!0)) : N === "error" && w(!1);
5408
5430
  }, [o]), v = M((p) => {
5409
- if (console.log("[AriaStandaloneUI] Session ready event:", p.data), k.current) {
5410
- const N = k.current.getSessionState();
5431
+ if (console.log("[AriaStandaloneUI] Session ready event:", p.data), S.current) {
5432
+ const N = S.current.getSessionState();
5411
5433
  G(N);
5412
5434
  }
5413
5435
  d(!0), w(!1), h(null);
5414
5436
  }, []), le = M((p) => {
5415
5437
  const N = p.error?.message || "Session error";
5416
- if (console.error("[AriaStandaloneUI] Session error:", N), h(N), w(!1), k.current) {
5417
- const se = k.current.getSessionState();
5418
- G(se);
5438
+ if (console.error("[AriaStandaloneUI] Session error:", N), h(N), w(!1), S.current) {
5439
+ const Z = S.current.getSessionState();
5440
+ G(Z);
5419
5441
  }
5420
- }, []), oe = M((p) => {
5442
+ }, []), ie = M((p) => {
5421
5443
  const { connected: N } = p.data;
5422
- if (d(N), !N && k.current) {
5423
- const se = k.current.getSessionState();
5424
- G(se);
5444
+ if (d(N), !N && S.current) {
5445
+ const Z = S.current.getSessionState();
5446
+ G(Z);
5425
5447
  }
5426
- }, []), ae = M((p) => {
5448
+ }, []), se = M((p) => {
5427
5449
  const { messages: N } = p.data;
5428
- N && T(N);
5429
- }, []), $ = M((p) => {
5450
+ N && R(N);
5451
+ }, []), re = M((p) => {
5430
5452
  const { liveTranscript: N } = p.data;
5431
5453
  N !== void 0 && x(N);
5432
- }, []), B = M((p) => {
5433
- console.log("[AriaStandaloneUI] WebSocket trigger event"), ce("websocket");
5434
- }, []), H = M((p) => {
5454
+ }, []), W = M((p) => {
5435
5455
  const N = p.data;
5436
- re({
5456
+ oe({
5437
5457
  isActive: N.isActive,
5438
5458
  toolName: N.toolName,
5439
5459
  toolData: N.toolData
5440
5460
  });
5441
- }, []);
5442
- ee(() => {
5461
+ }, []), L = M((p) => {
5462
+ const N = U.current;
5463
+ U.current = p, p && S.current ? (console.log("[AriaStandaloneUI] Attaching video stream to element"), S.current.attachToVideoElement(p)) : !p && N && S.current && (console.log("[AriaStandaloneUI] Detaching video stream from element"), S.current.detachFromVideoElement(N));
5464
+ }, []), K = M((p = "user") => {
5465
+ if (J(p), k(p === "websocket" ? "center" : "bottom-right"), i(!0), s(!1), h(null), !S.current) return;
5466
+ if (S.current.isSessionPaused()) {
5467
+ w(!0), S.current.resumeSession().then(() => {
5468
+ w(!1), d(!0), ae(!1);
5469
+ const Y = S.current.getSessionState();
5470
+ G(Y), R(S.current.getChatMessages());
5471
+ }).catch((Y) => {
5472
+ w(!1), ae(!1), h(Y instanceof Error ? Y.message : "Failed to resume session");
5473
+ });
5474
+ return;
5475
+ }
5476
+ const Z = S.current.isAnamClientInitialized(), ye = S.current.hasSessionToken(), Ce = S.current.getStatus();
5477
+ Z && Ce === "ready" ? (w(!1), d(!0)) : ye ? (w(!0), S.current.initializeSessionOnDemand().then(() => {
5478
+ w(!1), d(!0);
5479
+ const Y = S.current.getSessionState();
5480
+ G(Y);
5481
+ }).catch((Y) => {
5482
+ w(!1), h(Y instanceof Error ? Y.message : "Failed to initialize session");
5483
+ })) : (w(!0), S.current.isConnected() || S.current.connect());
5484
+ }, []), ce = M(() => {
5485
+ s(!0);
5486
+ }, []), P = M(() => {
5487
+ s(!1);
5488
+ }, []), pe = M(() => {
5489
+ if (i(!1), s(!1), !S.current) return;
5490
+ if (U.current && S.current.detachFromVideoElement(U.current), x(""), S.current.clearLiveTranscript(), S.current.isPersistSessionEnabled())
5491
+ S.current.pauseSession(), ae(!0);
5492
+ else {
5493
+ S.current.endCurrentSession(), d(!1), R([]);
5494
+ const N = S.current.getSessionState();
5495
+ G(N);
5496
+ }
5497
+ }, []), de = M(() => {
5498
+ console.log("[AriaStandaloneUI] WebSocket trigger event"), K("websocket");
5499
+ }, [K]);
5500
+ te(() => {
5443
5501
  if (!Q.hasInstance()) {
5444
5502
  console.error("[AriaStandaloneUI] AriaSessionManager not initialized");
5445
5503
  return;
5446
5504
  }
5447
5505
  const p = Q.getInstance({});
5448
- k.current = p, p.addEventListener("status_change", b), p.addEventListener("session_ready", v), p.addEventListener("session_error", le), p.addEventListener("connection_change", oe), p.addEventListener("message_history", ae), p.addEventListener("message_stream", $), p.addEventListener("tool_call", H), p.setWebSocketTriggerCallback(B), G(p.getSessionState()), ue(p.getStatus()), d(p.isConnected()), T(p.getChatMessages()), x(p.getLiveTranscript()), O(p.isMuted()), te(p.isSessionPaused());
5449
- const N = p.getToolCallState();
5450
- return re(N), () => {
5451
- p.removeEventListener("status_change", b), p.removeEventListener("session_ready", v), p.removeEventListener("session_error", le), p.removeEventListener("connection_change", oe), p.removeEventListener("message_history", ae), p.removeEventListener("message_stream", $), p.removeEventListener("tool_call", H), p.setWebSocketTriggerCallback(null);
5506
+ return S.current = p, p.addEventListener("status_change", b), p.addEventListener("session_ready", v), p.addEventListener("session_error", le), p.addEventListener("connection_change", ie), p.addEventListener("message_history", se), p.addEventListener("message_stream", re), p.addEventListener("tool_call", W), p.setWebSocketTriggerCallback(de), queueMicrotask(() => {
5507
+ G(p.getSessionState()), ue(p.getStatus()), d(p.isConnected()), R(p.getChatMessages()), x(p.getLiveTranscript()), O(p.isMuted()), ae(p.isSessionPaused());
5508
+ const Z = p.getToolCallState();
5509
+ oe(Z);
5510
+ }), () => {
5511
+ p.removeEventListener("status_change", b), p.removeEventListener("session_ready", v), p.removeEventListener("session_error", le), p.removeEventListener("connection_change", ie), p.removeEventListener("message_history", se), p.removeEventListener("message_stream", re), p.removeEventListener("tool_call", W), p.setWebSocketTriggerCallback(null);
5452
5512
  };
5453
5513
  }, [
5454
5514
  b,
5455
5515
  v,
5456
5516
  le,
5457
- oe,
5458
- ae,
5459
- $,
5460
- H,
5461
- B
5462
- ]), ee(() => {
5517
+ ie,
5518
+ se,
5519
+ re,
5520
+ W,
5521
+ de
5522
+ ]), te(() => {
5463
5523
  const p = (Ce) => {
5464
- ce(Ce.detail?.mode || "user");
5524
+ K(Ce.detail?.mode || "user");
5465
5525
  }, N = () => {
5466
- de();
5467
- }, se = () => {
5468
- D();
5526
+ pe();
5527
+ }, Z = () => {
5528
+ ce();
5469
5529
  }, ye = () => {
5470
- we();
5530
+ P();
5471
5531
  };
5472
- return window.addEventListener("aria:open", p), window.addEventListener("aria:close", N), window.addEventListener("aria:minimize", se), window.addEventListener("aria:maximize", ye), () => {
5473
- window.removeEventListener("aria:open", p), window.removeEventListener("aria:close", N), window.removeEventListener("aria:minimize", se), window.removeEventListener("aria:maximize", ye);
5532
+ return window.addEventListener("aria:open", p), window.addEventListener("aria:close", N), window.addEventListener("aria:minimize", Z), window.addEventListener("aria:maximize", ye), () => {
5533
+ window.removeEventListener("aria:open", p), window.removeEventListener("aria:close", N), window.removeEventListener("aria:minimize", Z), window.removeEventListener("aria:maximize", ye);
5474
5534
  };
5475
- }, []), ee(() => {
5535
+ }, [K, pe, ce, P]), te(() => {
5476
5536
  t.setAttribute("data-aria-open", String(o));
5477
5537
  }, [o, t]);
5478
- const ie = M((p) => {
5479
- const N = U.current;
5480
- U.current = p, p && k.current ? (console.log("[AriaStandaloneUI] Attaching video stream to element"), k.current.attachToVideoElement(p)) : !p && N && k.current && (console.log("[AriaStandaloneUI] Detaching video stream from element"), k.current.detachFromVideoElement(N));
5481
- }, []), ce = M((p = "user") => {
5482
- if (q(p), A(p === "websocket" ? "center" : "bottom-right"), i(!0), s(!1), h(null), !k.current) return;
5483
- if (k.current.isSessionPaused()) {
5484
- w(!0), k.current.resumeSession().then(() => {
5485
- w(!1), d(!0), te(!1);
5486
- const X = k.current.getSessionState();
5487
- G(X), T(k.current.getChatMessages());
5488
- }).catch((X) => {
5489
- w(!1), te(!1), h(X instanceof Error ? X.message : "Failed to resume session");
5490
- });
5491
- return;
5492
- }
5493
- const se = k.current.isAnamClientInitialized(), ye = k.current.hasSessionToken(), Ce = k.current.getStatus();
5494
- se && Ce === "ready" ? (w(!1), d(!0)) : ye ? (w(!0), k.current.initializeSessionOnDemand().then(() => {
5495
- w(!1), d(!0);
5496
- const X = k.current.getSessionState();
5497
- G(X);
5498
- }).catch((X) => {
5499
- w(!1), h(X instanceof Error ? X.message : "Failed to initialize session");
5500
- })) : (w(!0), k.current.isConnected() || k.current.connect());
5501
- }, []), D = M(() => {
5502
- s(!0);
5503
- }, []), we = M(() => {
5504
- s(!1);
5505
- }, []), de = M(() => {
5506
- if (i(!1), s(!1), !k.current) return;
5507
- U.current && k.current.detachFromVideoElement(U.current), x(""), k.current.clearLiveTranscript(), k.current.isPersistSessionEnabled() ? (k.current.pauseSession(), te(!0)) : (k.current.sendSessionEnd(), k.current.stopStreaming(), G({
5508
- session_id: null,
5509
- token: null,
5510
- expires_at: null,
5511
- isSessionReady: !1,
5512
- lastError: null,
5513
- isPreloaded: !1,
5514
- isRefreshing: !1
5515
- }), d(!1), T([]));
5516
- }, []), pe = M(() => {
5538
+ const me = M(() => {
5517
5539
  j((p) => !p);
5518
5540
  }, []), be = M(async (p) => {
5519
- if (!k.current || !c)
5541
+ if (!S.current || !c)
5520
5542
  throw new Error("Not connected to Aria");
5521
- await k.current.sendMessage(p);
5522
- }, [c]), me = M(() => {
5523
- if (!k.current) return;
5524
- const p = k.current.toggleMute();
5543
+ await S.current.sendMessage(p);
5544
+ }, [c]), fe = M(() => {
5545
+ if (!S.current) return;
5546
+ const p = S.current.toggleMute();
5525
5547
  O(p);
5526
5548
  }, []);
5527
- return /* @__PURE__ */ y(Te, { children: [
5549
+ return /* @__PURE__ */ y(Re, { children: [
5528
5550
  !o && /* @__PURE__ */ a(
5529
5551
  Zt,
5530
5552
  {
5531
5553
  showAvatar: !0,
5532
5554
  label: e,
5533
5555
  theme: r,
5534
- onClick: () => ce("user")
5556
+ onClick: () => K("user")
5535
5557
  }
5536
5558
  ),
5537
- o && /* @__PURE__ */ y(Te, { children: [
5559
+ o && /* @__PURE__ */ y(Re, { children: [
5538
5560
  !l && /* @__PURE__ */ a(
5539
5561
  "div",
5540
5562
  {
5541
5563
  onClick: (p) => {
5542
- p.preventDefault(), p.stopPropagation(), D();
5564
+ p.preventDefault(), p.stopPropagation(), ce();
5543
5565
  },
5544
5566
  style: {
5545
5567
  position: "fixed",
@@ -5554,9 +5576,9 @@ const Xt = ({
5554
5576
  }
5555
5577
  ),
5556
5578
  /* @__PURE__ */ a(
5557
- je,
5579
+ We,
5558
5580
  {
5559
- styles: We(),
5581
+ styles: je(),
5560
5582
  style: {
5561
5583
  position: "fixed",
5562
5584
  zIndex: 9999,
@@ -5566,25 +5588,25 @@ const Xt = ({
5566
5588
  children: /* @__PURE__ */ a("div", { style: { pointerEvents: "auto" }, children: /* @__PURE__ */ a(
5567
5589
  Yt,
5568
5590
  {
5569
- onClose: de,
5591
+ onClose: pe,
5570
5592
  isMinimized: l,
5571
- onMaximize: we,
5593
+ onMaximize: P,
5572
5594
  theme: r,
5573
- displayMode: L,
5595
+ displayMode: H,
5574
5596
  triggerMode: _,
5575
5597
  isConnected: c,
5576
5598
  isLoading: g,
5577
5599
  chatMessages: E,
5578
5600
  liveTranscript: V,
5579
5601
  isChatVisible: I,
5580
- isMuted: W,
5581
- error: P,
5582
- toolCallState: K,
5583
- sessionState: J,
5584
- setVideoElement: ie,
5585
- toggleChat: pe,
5602
+ isMuted: B,
5603
+ error: D,
5604
+ toolCallState: q,
5605
+ sessionState: X,
5606
+ setVideoElement: L,
5607
+ toggleChat: me,
5586
5608
  sendMessage: be,
5587
- toggleMute: me
5609
+ toggleMute: fe
5588
5610
  }
5589
5611
  ) })
5590
5612
  }
@@ -5597,9 +5619,9 @@ const Xt = ({
5597
5619
  theme: t,
5598
5620
  onClick: o
5599
5621
  }) => /* @__PURE__ */ a(
5600
- je,
5622
+ We,
5601
5623
  {
5602
- styles: We(),
5624
+ styles: je(),
5603
5625
  style: {
5604
5626
  position: "fixed",
5605
5627
  bottom: "24px",
@@ -5633,9 +5655,9 @@ const Xt = ({
5633
5655
  AriaStandaloneUI: Xt
5634
5656
  }, Symbol.toStringTag, { value: "Module" }));
5635
5657
  export {
5636
- Re as Aria,
5658
+ Te as Aria,
5637
5659
  _t as AriaAssistant,
5638
- Re as AriaCore,
5660
+ Te as AriaCore,
5639
5661
  io as AriaProvider,
5640
5662
  Q as AriaSessionManager,
5641
5663
  Ot as AriaTriggerButton,
@@ -5644,26 +5666,26 @@ export {
5644
5666
  Ve as Button,
5645
5667
  kr as Card,
5646
5668
  Bt as CardContent,
5647
- Wt as CardDescription,
5669
+ jt as CardDescription,
5648
5670
  Ht as CardFooter,
5649
5671
  Vt as CardHeader,
5650
- jt as CardTitle,
5672
+ Wt as CardTitle,
5651
5673
  Ft as ChatPanel,
5652
5674
  no as Dialog,
5653
- Kt as DialogClose,
5675
+ qt as DialogClose,
5654
5676
  Ut as DialogContent,
5655
5677
  Gt as DialogHeader,
5656
5678
  Qt as DialogTitle,
5657
5679
  Ar as Input,
5658
5680
  Lt as SessionInfo,
5659
- je as ShadowContainer,
5681
+ We as ShadowContainer,
5660
5682
  ao as ariaStyles,
5661
5683
  n as cn,
5662
- Ke as decodeJWT,
5684
+ qe as decodeJWT,
5663
5685
  Jt as extractSessionIdFromToken,
5664
- We as getAriaStyles,
5686
+ je as getAriaStyles,
5665
5687
  lo as getTokenInfo,
5666
- qt as isJWT,
5688
+ Kt as isJWT,
5667
5689
  co as isTokenExpired,
5668
5690
  Se as useAria,
5669
5691
  so as useAriaSession